/* ── Syverro Studio project page ──
   Mirrors the Niqual project-page grammar: shell, hero, problem, strict
   4-column principles grid, role band, next-project nav, frame-breaking
   and responsive behaviour. Differences are intentional and page-scoped:
   Cormorant Garamond identity in the hero, a deep navy ("Studio") visual
   instead of the sand scene, real Studio screenshots instead of a product
   shelf, and no public product CTA.
   The site outer shell (.article-page .site-canvas) has overflow:hidden;
   all deliberate block offsets stay inside the canvas — no page scrollbar,
   no horizontal page overflow. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url('/fonts/CormorantGaramond-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

main#content.syverro-shell { display: block; padding: clamp(16px, 2vw, 28px) clamp(24px, 5vw, 72px) 0; }

.syverro-article {
  width: 100%;
}

.syverro-micro {
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.syverro-eyebrow { margin: 0; font-size: .6rem; line-height: 1.2; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ── Hero: asymmetric identity + studio visual ── */

.syverro-hero {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: clamp(360px, 46.5vh, 480px);
}

.syverro-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 72px) clamp(8px, 2vw, 24px) clamp(56px, 6vw, 88px) 0;
}

.syverro-identity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.syverro-hero-rule {
  height: 1px;
  background: var(--ink);
  opacity: .55;
  margin: 18px 0 26px;
}

.syverro-identity h1 {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 6.8vw, 5.8rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
}

.syverro-lead {
  margin: 0;
  max-width: 38ch;
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
}

/* Studio visual — right column. Deep navy with a mineral sand texture.
   Escapes the inner frame at Nikkalma scale like the Niqual sand scene. */
.syverro-studio {
  position: relative;
  z-index: 1;
  margin-bottom: -52px;
  margin-right: calc(-1 * clamp(96px, 9.5vw, 150px));
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, #0c1322 0%, #0b1220 60%, #0a0e18 100%);
}
.syverro-studio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/sand-grain-alpha.png') repeat;
  background-size: 128px;
  opacity: .07;
  pointer-events: none;
}

.syverro-hero-caption {
  position: absolute;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(14px, 2vw, 24px);
  margin: 0;
  z-index: 2;
  pointer-events: none;
  line-height: 1.25;
  text-align: right;
  color: var(--paper);
  opacity: .85;
}

/* ── Problem — asymmetric multi-part composition ──
   01 / ПРОБЛЕМА · main statement · gap · body column · projecting fragment.
   Same proportional tracks as Niqual's problem block. */

.syverro-problem {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 5.6fr) clamp(48px, 4.2vw, 56px) minmax(0, 4.6fr) clamp(32px, 3vw, 40px) minmax(0, 1.5fr);
  padding: clamp(48px, 6vw, 84px) 0 clamp(8px, 1vw, 16px);
  background: var(--paper);
}

.syverro-problem-index {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.syverro-problem-index-label {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.syverro-problem-title {
  grid-column: 2 / 3;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
}

.syverro-problem-body {
  grid-column: 4 / 5;
  padding-top: 6px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}
.syverro-problem-body p { margin: 0 0 1em; }
.syverro-problem-body p:last-child { margin-bottom: 0; }

.syverro-problem-fragment {
  grid-column: 6 / 7;
  margin-right: calc(-1 * clamp(12px, 1.5vw, 28px));
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.4vw, 34px);
}
.syverro-problem-fragment p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

/* ── Strict clean 4-column principles grid 01–04 ──
   Same geometry as Niqual's principles table. No overlaps. */

.syverro-grid { padding: clamp(48px, 5vw, 72px) 0 clamp(14px, 1.6vw, 22px); }

.syverro-grid-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  position: relative;
}
.syverro-grid-list::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: clamp(40px, 5vw, 64px);
  background-image: linear-gradient(to bottom, rgba(25, 24, 20, .28) 0%, rgba(25, 24, 20, 0) 100%);
  background-repeat: no-repeat;
  background-size: 1px 100%;
  background-position: 25% 0, 50% 0, 75% 0;
  pointer-events: none;
}
.syverro-grid-list li {
  padding: clamp(22px, 2.4vw, 34px) clamp(16px, 1.8vw, 26px) clamp(30px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.syverro-grid-num {
  display: block;
  margin-bottom: 22px;
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.syverro-grid-list h3 { margin: 0 0 12px; font-size: clamp(1.02rem, 1.4vw, 1.28rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.syverro-grid-list p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--muted); }

@media (min-width: 681px) {
  .syverro-grid-list h3 {
    /* Shared title area so wrapped headings don't push body copy down. */
    min-height: calc(1.15em * 2);
  }
}

/* ── Inside Studio — three real screenshots ──
   No device frames, no fake UI. Hierarchy runs large → medium → small
   (author detail → authors list → dashboard); captions stay secondary. */

.syverro-studios { padding: clamp(36px, 5vw, 72px) 0 clamp(16px, 2vw, 24px); }
.syverro-studios > .syverro-eyebrow { margin-bottom: 8px; }

.syverro-studios-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.syverro-shot {
  position: relative;
  margin: 0;
}

.syverro-shot-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(25, 24, 20, .16);
  background: var(--paper-deep);
}

.syverro-shot-caption {
  margin-top: clamp(14px, 1.6vw, 20px);
}
.syverro-shot-label {
  display: block;
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.syverro-shot-caption p {
  margin: 8px 0 0;
  max-width: 46ch;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--muted);
}

.syverro-shot--large { width: 82%; }
.syverro-shot--mid { width: 58%; margin: clamp(52px, 5.5vw, 76px) 0 0 auto; }
.syverro-shot--small { width: 42%; margin: clamp(44px, 4.5vw, 64px) 0 0 auto; }

/* ── Nikkalma role — light horizontal structural band ──
   No public product CTA; the only link is the private essay case study
   in the fourth column. */

.syverro-role {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, .9fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.syverro-role > * {
  padding: clamp(22px, 2.6vw, 34px) clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line);
}
.syverro-role > :first-child { border-left: 0; padding-left: 0; }

.syverro-role-index {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.syverro-role-index-label {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.syverro-role h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.03em;
}

.syverro-role-text {
  margin: 0;
  max-width: 46ch;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
}

.syverro-role-case {
  display: flex;
  align-items: center;
}
.syverro-role-case-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  color: var(--ink);
  text-decoration: none;
}
.syverro-role-case-label {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}
.syverro-role-case-arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform .25s ease;
}
.syverro-role-case-link:hover .syverro-role-case-label { text-decoration: underline; text-underline-offset: .25em; }
.syverro-role-case-link:hover .syverro-role-case-arrow { transform: translateX(4px); }
a.syverro-role-case-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── Next project — compact navigation after Role, before the footer ── */

.syverro-next-row {
  padding: clamp(20px, 2.6vw, 32px) 0;
}
.syverro-next-row-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  color: var(--ink);
  text-decoration: none;
}
.syverro-next-row-label {
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
}
.syverro-next-row-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform .25s ease;
}
.syverro-next-row-link:hover .syverro-next-row-arrow { transform: translateX(4px); }
a.syverro-next-row-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── Frame-breaking: mirror of the Niqual-project precedent ── */

@media (min-width: 961px) {
  body.article-page:has(main.syverro-shell) { overflow-x: clip; }
  .article-page .site-canvas:has(> main.syverro-shell) { overflow: visible; }
  .syverro-problem-index {
    margin-top: calc(-1 * clamp(12px, 1.2vw, 18px));
    margin-right: clamp(32px, 2.8vw, 40px);
  }

  .syverro-problem-title { margin-left: clamp(32px, 2.5vw, 40px); }
}

@media (min-width: 961px) and (max-width: 1280px) {
  .syverro-problem {
    grid-template-columns: minmax(0, .9fr) minmax(0, 5.6fr) clamp(56px, 4.8vw, 68px) minmax(0, 4.6fr) clamp(32px, 3vw, 40px) minmax(0, 1.5fr);
  }
}

/* ── Mid desktop 961–1310 — amplitude capped to fit the canvas ── */

@media (min-width: 961px) and (max-width: 1310px) {
  .syverro-studio { margin-right: calc(-1 * clamp(40px, 7vw, 76px)); }
}

/* ── Tablet 681–960 ── */

@media (min-width: 681px) and (max-width: 960px) {
  .syverro-hero { grid-template-columns: 50% 50%; }
  .syverro-studio { margin-bottom: -28px; margin-right: calc(-1 * clamp(20px, 3vw, 28px)); }

  .syverro-problem {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .syverro-problem-index { grid-column: 1 / 4; }
  .syverro-problem-title { grid-column: 1 / 9; }
  .syverro-problem-body { grid-column: 4 / 12; margin-top: 26px; }
  .syverro-problem-fragment { grid-column: 8 / 14; margin-right: 0; margin-top: 34px; flex-direction: row; flex-wrap: wrap; gap: 20px 40px; }

  .syverro-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .syverro-shot--large { width: 90%; }
  .syverro-shot--mid { width: 72%; }
  .syverro-shot--small { width: 58%; }

  .syverro-role {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-areas:
      "index title"
      "text  case";
  }
  .syverro-role-index { grid-area: index; }
  .syverro-role h2 { grid-area: title; }
  .syverro-role-text { grid-area: text; }
  .syverro-role-case { grid-area: case; align-items: flex-end; }
  .syverro-role-index { border-left: 0; padding-left: 0; }
}

/* ── Mobile ≤680 — clean stacking ── */

@media (max-width: 680px) {
  main#content.syverro-shell { padding: 8px 0 0; }

  .syverro-hero { display: block; min-height: 0; }
  .syverro-identity { order: 1; padding: 40px 20px 40px; }
  .syverro-studio { order: 0; height: 200px; margin-bottom: 0; margin-right: 0; }

  .syverro-problem { display: block; padding: 64px 20px 56px; }
  .syverro-problem-index { margin-bottom: 24px; }
  .syverro-problem-title { font-size: clamp(2rem, 10vw, 2.6rem); }
  .syverro-problem-body { margin-top: 28px; }
  .syverro-problem-fragment { margin-top: 34px; margin-right: 0; flex-direction: row; flex-wrap: wrap; gap: 18px 32px; }

  .syverro-grid { padding: 48px 0; }
  .syverro-grid-list { grid-template-columns: minmax(0, 1fr); }

  .syverro-studios { padding: 48px 20px 56px; }
  .syverro-studios-flow { gap: 34px; }
  .syverro-shot--large, .syverro-shot--mid, .syverro-shot--small { width: 100%; margin-left: 0; margin-right: 0; margin-top: 0; }

  .syverro-role { display: block; border-bottom: 1px solid var(--line); }
  .syverro-role > * { padding: 24px 20px; border-left: 0; border-bottom: 1px solid var(--line); }
  .syverro-role > :first-child { padding-left: 20px; padding-top: 32px; }
}

/* Honor the global reduced-motion contract. */
@media (prefers-reduced-motion: reduce) {
  .syverro-studio { scroll-behavior: auto; }
}/* Inside Studio: native editorial carousel, isolated from the page layout. */
.studio-carousel { min-width: 0; }
.syverro-studios-flow {
  --slide-width: 80%;
  --slide-gap: 24px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--slide-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.syverro-studios-flow::-webkit-scrollbar { display: none; }
.syverro-studios-flow::after { content: ''; flex: 0 0 max(0px, calc(100% - var(--slide-width) - var(--slide-gap))); }
.syverro-studios-flow .syverro-shot { flex: 0 0 var(--slide-width); width: var(--slide-width); min-width: 0; margin: 0; scroll-snap-align: start; }
.syverro-shot > .syverro-shot-label { margin: 12px 0; }
.syverro-shot-image { object-fit: contain; }
.syverro-shot-caption h3 { margin: 0; font-size: .8rem; font-weight: 500; line-height: 1.55; }
.studio-carousel-controls { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 18px; }
.studio-carousel-controls[hidden] { display: none; }
.studio-carousel-controls button { appearance: none; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; font-size: 1.1rem; min-width: 44px; min-height: 44px; padding: 8px; cursor: pointer; }
.studio-carousel-controls button:hover { text-decoration: underline; text-underline-offset: .2em; }
.studio-carousel-controls button[aria-disabled="true"] { opacity: .35; cursor: default; }
.studio-carousel-controls button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.syverro-studios-flow:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.studio-carousel-count { font-size: .58rem; letter-spacing: .16em; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 680px) {
  .syverro-studios-flow { --slide-width: 94%; --slide-gap: 12px; margin-right: -20px; }
}

/* Identity typography inside the right hero artwork only. */
.syverro-hero-art-title {
  position: absolute;
  z-index: 1;
  top: 18%;
  left: clamp(24px, 4vw, 58px);
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--paper);
  text-align: left;
}
@media (max-width: 680px) {
  .syverro-hero-art-title { top: 24px; font-size: 3rem; }
}
