/* =========================================================
   SOTTOVOCE — FRAGMENTS PAGE
   Page-specific CSS only
   Footer is controlled globally
========================================================= */

:root {
  --sv-bg: #f3f0eb;
  --sv-bg-soft: #ebe6df;
  --sv-text: #201e1a;
  --sv-muted: #6f675e;
  --sv-line: rgba(32, 30, 26, 0.16);
  --sv-line-strong: rgba(32, 30, 26, 0.28);
  --sv-dark: #0e0d0b;
  --sv-serif: Georgia, "Times New Roman", serif;
  --sv-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* PAGE BASE */

html,
body {
  background: var(--sv-bg);
}

.sv-fragments-page {
  width: 100%;
  min-height: 100vh;
  background: var(--sv-bg);
  color: var(--sv-text);
  font-family: var(--sv-serif);
  overflow-x: hidden;
}

.sv-fragments-page * {
  box-sizing: border-box;
}

.sv-fragments-page a {
  color: inherit;
  text-decoration: none;
}

/* BRICKS WIDTH RESET FOR THIS PAGE */

body .brxe-code:has(.sv-fragments-page),
body .brxe-shortcode:has(.modula),
body .brxe-container:has(.sv-fragments-page),
body .brxe-section:has(.sv-fragments-page) {
  width: 100% !important;
  max-width: none !important;
}

body .brxe-code:has(.sv-fragments-page) {
  display: block !important;
}

/* HEADER */

.sv-site-header {
  width: 100%;
  min-height: 78px;
  padding: 0 clamp(24px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sv-line);
  background: rgba(243, 240, 235, 0.96);
  position: relative;
  z-index: 10;
}

.sv-logo {
  font-family: var(--sv-serif);
  font-size: clamp(17px, 1.35vw, 22px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1;
}

.sv-main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  font-family: var(--sv-sans);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sv-main-nav a {
  position: relative;
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.sv-main-nav a:hover,
.sv-main-nav a[aria-current="page"] {
  opacity: 1;
}

.sv-main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 1px;
  background: var(--sv-text);
}

/* MAIN */

.sv-fragments-main {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 96px);
}

/* HERO */

.sv-fragments-hero {
  position: relative;
  min-height: clamp(540px, 70vh, 760px);
  margin-left: calc(clamp(22px, 5vw, 96px) * -1);
  margin-right: calc(clamp(22px, 5vw, 96px) * -1);
  overflow: hidden;
  border-bottom: 1px solid var(--sv-line);
  background: var(--sv-bg);
}

.sv-fragments-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sv-fragments-hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.sv-fragments-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(243, 240, 235, 0.00) 0%,
      rgba(243, 240, 235, 0.00) 38%,
      rgba(243, 240, 235, 0.38) 58%,
      rgba(243, 240, 235, 0.82) 76%,
      rgba(243, 240, 235, 1.00) 100%
    ),
    linear-gradient(
      0deg,
      rgba(14, 13, 11, 0.10) 0%,
      rgba(14, 13, 11, 0.00) 45%,
      rgba(14, 13, 11, 0.04) 100%
    );
  pointer-events: none;
}

.sv-fragments-hero-copy {
  position: relative;
  z-index: 3;
  min-height: inherit;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(86px, 9vw, 140px) clamp(22px, 5vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  color: var(--sv-text);
}

.sv-fragments-hero-copy > * {
  width: min(100%, 520px);
}

.sv-kicker {
  margin: 0 0 24px;
  font-family: var(--sv-sans);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sv-muted);
}

.sv-fragments-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 80px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: none;
}

.sv-small-rule {
  width: 38px;
  height: 1px;
  background: var(--sv-line-strong);
  margin: 32px 0;
}

.sv-hero-text {
  max-width: 430px;
  margin: 0;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.78;
  color: var(--sv-muted);
}

/* STATEMENT */

.sv-fragments-statement {
  max-width: 680px;
  padding: clamp(76px, 9vw, 142px) 0 clamp(72px, 8vw, 128px);
}

.sv-fragments-statement p {
  margin: 0;
  font-size: clamp(26px, 3.1vw, 46px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

/* MOOD / MODULA SECTIONS */

.sv-mood-section {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 86px);
  padding: clamp(56px, 7vw, 108px) 0;
  border-top: 1px solid var(--sv-line);
  align-items: start;
}

.sv-mood-info {
  min-width: 0;
  padding-top: 3px;
}

.sv-mood-index {
  margin: 0 0 14px;
  font-family: var(--sv-sans);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sv-muted);
}

.sv-mood-info h2 {
  margin: 0;
  max-width: 210px;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.sv-mood-note {
  max-width: 170px;
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--sv-muted);
}

.sv-mood-count {
  display: none;
}

/* MODULA WRAPPER */

.sv-modula-gallery-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

/* Force Modula to use the full editorial column */

.sv-modula-gallery-wrap .modula,
.sv-modula-gallery-wrap .modula-gallery,
.sv-modula-gallery-wrap .modula-items,
.sv-modula-gallery-wrap .modula-gallery-initialized,
.sv-modula-gallery-wrap .modula-items-container,
.sv-modula-gallery-wrap .modula-gallery-container,
.sv-modula-gallery-wrap .jtg,
.sv-modula-gallery-wrap .jtg-custom-grid,
.sv-modula-gallery-wrap .modula-fancybox-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Modula items */

.sv-modula-gallery-wrap .modula-item,
.sv-modula-gallery-wrap .modula-item-content,
.sv-modula-gallery-wrap .jtg-item {
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: hidden;
}

/* Images */

.sv-modula-gallery-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Hide Modula visible captions / titles */

.sv-modula-gallery-wrap .figc,
.sv-modula-gallery-wrap .modula-item-title,
.sv-modula-gallery-wrap .modula-item-description,
.sv-modula-gallery-wrap .modula-title,
.sv-modula-gallery-wrap .modula-caption,
.sv-modula-gallery-wrap .modula-fancybox-caption,
.sv-modula-gallery-wrap .jtg-title,
.sv-modula-gallery-wrap .jtg-caption {
  display: none !important;
}

/* Keep gallery links clean */

.sv-modula-gallery-wrap a {
  color: inherit;
  text-decoration: none;
}

/* Remove old placeholder/grid system from previous version */

.sv-mood-grid,
.sv-fragment-card,
.sv-fragment-placeholder {
  display: none !important;
}

/* CLOSING */

.sv-fragments-closing {
  border-top: 1px solid var(--sv-line);
  padding: clamp(78px, 9vw, 140px) 0 clamp(82px, 9vw, 150px);
  display: grid;
  grid-template-columns: minmax(280px, 620px) auto;
  align-items: end;
  gap: clamp(36px, 6vw, 108px);
}

.sv-closing-kicker {
  margin: 0 0 24px;
  font-family: var(--sv-sans);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sv-muted);
}

.sv-closing-text {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 42px);
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: -0.035em;
}

.sv-text-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid var(--sv-text);
  font-family: var(--sv-sans);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.sv-text-link:hover {
  background: var(--sv-text);
  color: var(--sv-bg);
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .sv-fragments-hero {
    min-height: clamp(520px, 74vh, 720px);
    background: var(--sv-dark);
  }

  .sv-fragments-hero-bg::after {
    background:
      linear-gradient(
        0deg,
        rgba(14, 13, 11, 0.64) 0%,
        rgba(14, 13, 11, 0.24) 56%,
        rgba(14, 13, 11, 0.18) 100%
      );
  }

  .sv-fragments-hero-copy {
    align-items: flex-start;
    justify-content: flex-end;
    color: #f3f0eb;
    padding: clamp(60px, 8vw, 90px) clamp(22px, 5vw, 44px);
  }

  .sv-fragments-hero-copy > * {
    width: auto;
    max-width: 440px;
  }

  .sv-kicker {
    color: rgba(243, 240, 235, 0.72);
  }

  .sv-small-rule {
    background: rgba(243, 240, 235, 0.5);
  }

  .sv-hero-text {
    color: rgba(243, 240, 235, 0.74);
  }

  .sv-mood-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sv-mood-info {
    display: block;
    max-width: 460px;
  }

  .sv-mood-note {
    max-width: 420px;
    margin-top: 18px;
  }

  .sv-fragments-closing {
    grid-template-columns: 1fr;
  }

  .sv-text-link {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .sv-site-header {
    min-height: 72px;
    padding: 0 20px;
  }

  .sv-logo {
    font-size: 15px;
    letter-spacing: 0.22em;
  }

  .sv-main-nav {
    gap: 16px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .sv-main-nav a[aria-current="page"]::after {
    bottom: -9px;
  }

  .sv-fragments-main {
    padding: 0 18px;
  }

  .sv-fragments-hero {
    min-height: 560px;
    margin-left: -18px;
    margin-right: -18px;
  }

  .sv-fragments-hero-bg img {
    object-position: center center;
  }

  .sv-fragments-hero-copy {
    padding: 90px 18px 54px;
  }

  .sv-kicker {
    margin-bottom: 20px;
    font-size: 10px;
  }

  .sv-fragments-hero h1 {
    max-width: 360px;
    font-size: clamp(36px, 11vw, 52px);
    line-height: 1.02;
  }

  .sv-small-rule {
    margin: 28px 0;
  }

  .sv-hero-text {
    font-size: 15px;
  }

  .sv-fragments-statement {
    padding: 58px 0 70px;
  }

  .sv-fragments-statement p {
    font-size: clamp(25px, 7.6vw, 36px);
    line-height: 1.18;
  }

  .sv-mood-section {
    padding: 54px 0;
    gap: 26px;
  }

  .sv-mood-info h2 {
    font-size: 30px;
  }

  .sv-mood-note {
    margin-top: 18px;
  }

  .sv-fragments-closing {
    padding: 64px 0 84px;
  }

  .sv-closing-text {
    font-size: clamp(25px, 7.5vw, 36px);
  }

  .sv-text-link {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .sv-site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .sv-main-nav {
    width: 100%;
    justify-content: space-between;
  }

  .sv-fragments-hero {
    min-height: 520px;
  }
}