/* ============================================================================
   LimitState Consult — public site ("portfolio" design)
   Light, editorial layout on drawing-paper neutrals; brand red #BE0000 accent.
   Archivo (display) · Inter (text) · JetBrains Mono (labels / specs).
   No inline styles are used by public templates (strict CSP).
   The admin keeps its own carbon.css + admin.css.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --paper:        #f4f2ee;
  --paper-2:      #ebe8e2;
  --surface:      #ffffff;
  --ink:          #131416;
  --ink-2:        #2b2d31;
  --text:         #3b3e44;
  --muted:        #62666d;   /* 5.2:1 on --paper */
  --line:         #d8d4cb;
  --line-strong:  #b8b3a8;

  --red:          #be0000;   /* 6.3:1 on --paper */
  --red-deep:     #960000;
  --red-on-dark:  #ff5d55;   /* 5.6:1 on --dark */

  --dark:         #131416;
  --dark-2:       #1d1f22;
  --dark-line:    #33363b;
  --on-dark:      #f4f2ee;
  --on-dark-mute: #a6abb2;   /* 8:1 on --dark */

  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-text:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --container:    1320px;
  --gutter:       clamp(16px, 4vw, 40px);
  --section-y:    clamp(4rem, 9vw, 7.5rem);
  --header-h:     72px;
  --ease:         cubic-bezier(.2, .7, .2, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
svg { flex: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: .7rem 1rem; background: var(--ink); color: var(--paper); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.accent { color: var(--red); }
.muted { color: var(--muted); }

/* Mono label — the "drawing annotation" voice of the site */
.label {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.label svg { width: 14px; height: 14px; }
.label__count { color: var(--red); }
.label--on-dark { color: var(--on-dark-mute); }

/* 3. BUTTONS & LINKS ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border: 1.5px solid transparent; border-radius: 0;
  font-family: var(--font-text); font-size: .95rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { min-height: 54px; padding-inline: 1.6rem; font-size: 1rem; }
.btn--red  { background: var(--red); color: #fff; }
.btn--red:hover  { background: var(--red-deep); }
.btn--ink  { background: var(--ink); color: var(--paper); }
.btn--ink:hover  { background: var(--red); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--ink); padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.link-arrow svg { width: 17px; height: 17px; }
.link-arrow:hover { color: var(--red); border-color: var(--red); }

/* 4. HEADER ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 242, 238, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); }
.brand__name span { color: var(--red); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 2.2rem; }
.site-nav ul { display: flex; gap: 2rem; }
.site-nav ul a {
  position: relative; display: inline-block; padding: .4rem 0;
  font-weight: 500; font-size: .98rem; color: var(--ink-2); text-decoration: none;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav__cta { min-height: 44px; padding: .6rem 1.1rem; font-size: .9rem; }

.menu-toggle {
  display: none; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem .2rem .5rem .8rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    display: none; flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { display: block; padding: 1rem 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--red); }
  .site-nav__cta { min-height: 52px; }
}
/* No-JS fallback: keep navigation reachable */
.no-js .site-nav { position: static; display: flex; box-shadow: none; }

/* 5. SECTIONS -------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--rule { border-top: 1px solid var(--line); }
.section--paper2 { background: var(--paper-2); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head__title { font-size: clamp(1.9rem, 4vw, 3.1rem); max-width: 20ch; }

.split-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.split-head__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.split-head__aside .section-head__title { margin-bottom: 1rem; }
.split-head__aside .muted { max-width: 34ch; }
@media (max-width: 900px) {
  .split-head { grid-template-columns: 1fr; }
  .split-head__aside { position: static; }
}

/* Page intro (inner pages) */
.page-intro { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-intro__title { font-size: clamp(2.6rem, 7.5vw, 6rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; max-width: 16ch; }
.page-intro__lede { margin-top: 1.5rem; max-width: 58ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.crumbs li { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { color: var(--red); border-color: var(--red); }
.crumbs [aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 6. HOME HERO ------------------------------------------------------------- */
.hero { padding-top: clamp(2rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.hero__title { font-size: clamp(3rem, 7.6vw, 6.6rem); font-weight: 800; line-height: .94; letter-spacing: -.045em; }
.hero__lede { margin: 1.6rem 0 2rem; max-width: 44ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }

.hero__media { display: block; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero__media:hover img { transform: scale(1.03); }
.hero__caption {
  display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: baseline;
  padding-top: .9rem; border-top: 1px solid var(--ink); margin-top: .9rem;
}
.hero__caption .label { margin: 0; grid-row: span 2; }
.hero__caption a { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.hero__caption a:hover { color: var(--red); }
.hero__caption-meta { font-size: .9rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* Key figures */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--ink);
}
.facts__item { padding: 1.2rem 1.2rem 0 0; }
.facts__item + .facts__item { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.facts__item dt { margin-bottom: .4rem; }
.facts__item dd { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.facts--rule { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 700px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__item:nth-child(n+3) { margin-top: 1.4rem; }
}

/* 7. PORTFOLIO CARDS ------------------------------------------------------- */
.work-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.work-grid--two   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Editorial rhythm: wide + narrow, then narrow + wide */
.work-grid--editorial { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.work-grid--editorial > :nth-child(4n+1), .work-grid--editorial > :nth-child(4n+4) { grid-column: span 7; }
.work-grid--editorial > :nth-child(4n+2), .work-grid--editorial > :nth-child(4n+3) { grid-column: span 5; }
.work-grid--editorial > :nth-child(4n+2) { margin-top: clamp(3rem, 9vw, 8rem); }
.work-grid--editorial > :nth-child(4n+3) .work-card__media { aspect-ratio: 4 / 5; }

.work-card__link { display: block; text-decoration: none; color: inherit; }
.work-card__media { overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card__caption {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem;
  padding-top: .9rem; margin-top: .9rem; border-top: 1px solid var(--line-strong);
}
.work-card__num { grid-row: span 2; font-family: var(--font-mono); font-size: .8rem; color: var(--red); padding-top: .35rem; }
.work-card__title { font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 700; letter-spacing: -.02em; transition: color .2s; }
.work-card__meta { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.work-card__link:hover .work-card__media img { transform: scale(1.04); }
.work-card__link:hover .work-card__title { color: var(--red); }
.work-card__link:hover .work-card__caption { border-color: var(--ink); }

@media (max-width: 900px) {
  .work-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid--editorial > * { grid-column: span 6 !important; margin-top: 0 !important; }
  .work-grid--editorial > :nth-child(4n+3) .work-card__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 620px) {
  .work-grid--two, .work-grid--three { grid-template-columns: 1fr; }
  .work-grid--editorial > * { grid-column: 1 / -1 !important; }
}

/* Toolbar: filters + view toggle */
.toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem;
  padding: 1rem 0; margin-bottom: clamp(2rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
}
.toolbar[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem .9rem;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter__count { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter[aria-pressed="true"] .filter__count { color: var(--on-dark-mute); }

@media (max-width: 620px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: .4rem; scrollbar-width: thin; }
  .filter { flex: none; }
}
.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); }
.view-toggle button {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .85rem;
  border: 0; background: transparent; cursor: pointer; font-size: .88rem; font-weight: 500;
}
.view-toggle button + button { border-left: 1px solid var(--line-strong); }
.view-toggle svg { width: 16px; height: 16px; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Index (table) view */
.table-wrap { overflow-x: auto; }
.table-wrap[hidden], [data-view-panel][hidden] { display: none; }
.work-index { width: 100%; border-collapse: collapse; font-size: .95rem; }
.work-index th, .work-index td { padding: .9rem 1rem .9rem 0; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.work-index thead th { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom-color: var(--ink); }
.work-index tbody th { font-weight: 400; }
.work-index__num { font-family: var(--font-mono); font-size: .8rem; color: var(--red); width: 4rem; }
.work-index__project { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; }
.work-index__project img { width: 72px; height: 54px; object-fit: cover; background: var(--paper-2); }
.work-index__project span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.work-index tbody tr:hover .work-index__project span { color: var(--red); }
.work-index td { color: var(--text); }
@media (max-width: 700px) {
  .work-index thead th:nth-child(4), .work-index td:nth-child(4) { display: none; }
}

.empty-note { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.empty-note a { color: var(--ink); }

/* 8. LISTS: capabilities, principles, process ------------------------------ */
.index-list { border-top: 1px solid var(--ink); }
.index-list > li { border-bottom: 1px solid var(--line); }
.index-list__row {
  display: grid; grid-template-columns: 3.2rem minmax(0, 5fr) minmax(0, 6fr) 1.5rem; gap: 1rem 1.5rem; align-items: baseline;
  padding: 1.4rem 0; text-decoration: none; color: inherit;
}
.index-list--static .index-list__row { grid-template-columns: 3.2rem minmax(0, 5fr) minmax(0, 7fr); border-bottom: 1px solid var(--line); }
.index-list__num { font-family: var(--font-mono); font-size: .8rem; color: var(--red); }
.index-list__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.index-list__text { font-size: .97rem; color: var(--text); }
.index-list__go { align-self: center; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.index-list__go svg { width: 22px; height: 22px; }
a.index-list__row:hover .index-list__title { color: var(--red); }
a.index-list__row:hover .index-list__go { color: var(--red); transform: translate(3px, -3px); }
@media (max-width: 700px) {
  .index-list__row, .index-list--static .index-list__row { grid-template-columns: 2.6rem minmax(0, 1fr) 1.5rem; }
  .index-list__text { grid-column: 2 / -1; }
}

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.process__step { padding: 1.4rem 1.5rem 0 0; }
.process__step + .process__step { padding-left: 1.5rem; border-left: 1px solid var(--line-strong); }
.process__num { display: block; margin-bottom: 2.5rem; font-family: var(--font-mono); font-size: .8rem; color: var(--red); }
.process__title { font-size: 1.3rem; margin-bottom: .7rem; }
.process__step p { font-size: .96rem; margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__step:nth-child(3) { padding-left: 0; border-left: 0; }
  .process__step:nth-child(n+3) { margin-top: 2rem; }
  .process__num { margin-bottom: 1rem; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .process__step, .process__step + .process__step { padding-left: 0; border-left: 0; }
  .process__step + .process__step { margin-top: 1.8rem; }
}

/* Services page rows */
.service-rows { border-top: 1px solid var(--ink); }
.service-row {
  position: relative;
  display: grid; grid-template-columns: 3.2rem 2.5rem minmax(0, 5fr) minmax(0, 6fr) 1.5rem; gap: 1rem 1.5rem; align-items: center;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0; border-bottom: 1px solid var(--line);
}
.service-row__num { font-family: var(--font-mono); font-size: .8rem; color: var(--red); }
.service-row__icon { color: var(--ink); }
.service-row__icon svg { width: 30px; height: 30px; }
.service-row__title { font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 700; }
.service-row__title a { text-decoration: none; }
.service-row__title a::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.service-row__text { margin: 0; font-size: .98rem; }
.service-row__go { color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.service-row__go svg { width: 24px; height: 24px; }
.service-row:hover .service-row__title { color: var(--red); }
.service-row:hover .service-row__go { color: var(--red); transform: translate(3px, -3px); }
.service-row:focus-within { outline: 2px solid var(--red); outline-offset: 4px; }
.service-row:focus-within a:focus-visible { outline: none; }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 2.6rem minmax(0, 1fr) 1.5rem; align-items: start; }
  .service-row__icon { display: none; }
  .service-row__text { grid-column: 2 / 3; }
  .service-row__go { grid-column: 3; grid-row: 1; }
}

/* 9. CASE STUDY ------------------------------------------------------------ */
.case__head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.case__title { font-size: clamp(2.4rem, 6.4vw, 5.2rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; max-width: 18ch; }
.case__lede { margin: 1.4rem 0 0; max-width: 60ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

.spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ink);
}
.spec__item { padding: 1rem 1.2rem 0 0; }
.spec__item + .spec__item { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.spec__item dt { margin-bottom: .3rem; }
.spec__item dd { font-weight: 600; color: var(--ink); }
@media (max-width: 560px) {
  .spec { grid-template-columns: 1fr 1fr; }
  .spec__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .spec__item:nth-child(n+3) { margin-top: 1rem; }
}

.case__media { position: relative; display: block; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.case__media img { width: 100%; max-height: 82vh; object-fit: cover; }
.case__zoom {
  position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center;
  width: 44px; height: 44px; background: rgba(19, 20, 22, .82); color: #fff;
  transition: background-color .2s;
}
.case__zoom svg { width: 20px; height: 20px; }
.case__media:hover .case__zoom { background: var(--red); }

.case__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem clamp(2rem, 6vw, 6rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.case__body-label { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.case__cta { margin-top: 2rem; }
@media (max-width: 800px) { .case__body { grid-template-columns: 1fr; } .case__body-label { position: static; } }

.prose { max-width: 68ch; }
.prose p { font-size: 1.08rem; line-height: 1.75; }
.prose__lead { font-size: clamp(1.2rem, 2vw, 1.45rem) !important; line-height: 1.5 !important; color: var(--ink); }

.case-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-nav__grid { display: grid; grid-template-columns: 1fr 1fr; }
.case-nav__link { display: flex; flex-direction: column; gap: .2rem; padding: clamp(1.6rem, 4vw, 2.6rem) 1.5rem clamp(1.6rem, 4vw, 2.6rem) 0; text-decoration: none; }
.case-nav__link--next { align-items: flex-end; text-align: right; padding: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(1.6rem, 4vw, 2.6rem) 1.5rem; border-left: 1px solid var(--line); }
.case-nav__link .label { margin: 0; }
.case-nav__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.8rem); letter-spacing: -.02em; color: var(--ink); line-height: 1.15; transition: color .2s; }
.case-nav__link:hover .case-nav__title { color: var(--red); }
@media (max-width: 600px) {
  .case-nav__grid { grid-template-columns: 1fr; }
  .case-nav__link--next { align-items: flex-start; text-align: left; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Lightbox */
.lightbox { width: min(96vw, 1600px); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 10, 11, .9); }
.lightbox__img { width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: -52px; right: 0; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer;
}
.lightbox__close svg { width: 22px; height: 22px; }

/* Service detail */
.detail { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: start; }
.detail__aside { padding-top: 1rem; border-top: 1px solid var(--ink); }
.plain-links li { border-bottom: 1px solid var(--line); }
.plain-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; font-weight: 600; color: var(--ink); text-decoration: none; }
.plain-links svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.plain-links a:hover { color: var(--red); }
.plain-links a:hover svg { color: var(--red); transform: translateX(3px); }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } }

/* 10. STUDIO --------------------------------------------------------------- */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.story__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story__media figcaption { margin-top: .8rem; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2.5rem 1.5rem; }
.team__photo { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; margin-bottom: 1rem; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__initials { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-weight: 800; font-size: 4rem; color: var(--line-strong); }
.team__name { font-size: 1.2rem; }
.team__role { margin: .2rem 0 .6rem; font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.team__bio { font-size: .95rem; }

/* 11. CONTACT -------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__list { border-top: 1px solid var(--ink); }
.contact__list > div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact__list dt { margin-bottom: .2rem; }
.contact__list dd { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; border-bottom: 1.5px solid var(--line-strong); }
.contact__list a:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact__info { order: 2; } }

.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.req { color: var(--red); }
.input {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #8a8e94; }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(190, 0, 0, .25); }
.input[aria-invalid="true"] { border-color: var(--red); }
.input--area { min-height: 180px; resize: vertical; line-height: 1.6; }
.field__error { font-size: .9rem; font-weight: 500; color: var(--red); }
.form__note { margin: 0; font-size: .9rem; color: var(--muted); }
.form .btn { justify-self: start; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 3px solid; background: var(--surface); }
.notice svg { width: 22px; height: 22px; margin-top: .1rem; }
.notice--ok { border-color: #1d7a46; color: #145a33; }
.notice--error { border-color: var(--red); color: var(--red-deep); }

/* 404 */
.not-found { padding: clamp(4rem, 12vw, 9rem) 0; }
.not-found__title { font-size: clamp(2.6rem, 8vw, 6.4rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; max-width: 14ch; }
.not-found .hero__actions { margin-top: 2rem; }

/* 12. DARK BANDS: CTA + FOOTER --------------------------------------------- */
.band--dark { background: var(--dark); color: var(--on-dark-mute); }
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: end; padding-block: var(--section-y); }
.cta__heading { color: var(--on-dark); font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.cta__lede { margin: 1.3rem 0 0; max-width: 48ch; font-size: 1.1rem; }
.cta__actions { display: grid; gap: 1.8rem; }
.cta__actions .btn { justify-self: start; }
.cta__direct { border-top: 1px solid var(--dark-line); }
.cta__direct li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--dark-line); }
.cta__direct .label { margin: 0; }
.cta__direct a { color: var(--on-dark); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; text-align: right; }
.cta__direct a:hover { color: var(--red-on-dark); }
.band--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--red-on-dark); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; align-items: start; } }

.site-footer { background: var(--dark); color: var(--on-dark-mute); border-top: 1px solid var(--dark-line); font-size: .95rem; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.brand--footer img { width: 44px; height: 44px; }
.brand--footer .brand__name { color: var(--on-dark); }
.brand--footer .brand__name span { color: var(--red-on-dark); }
.site-footer__brand p:not(.brand) { margin-top: 1.2rem; max-width: 36ch; }
.site-footer__col ul { display: grid; gap: .55rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--red-on-dark); }
.site-footer__contact li { overflow-wrap: anywhere; }
.site-footer__muted { color: var(--on-dark-mute); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.4rem 0 2rem; border-top: 1px solid var(--dark-line);
  font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
}
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

/* WhatsApp shortcut */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #1f8f4c; color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-2px); }

/* 13. MOTION PREFERENCES --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 14. PRINT ---------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .wa-float, .toolbar, .band--dark, .case-nav { display: none !important; }
  body { background: #fff; }
}
