/* ============================================================================
   LIMONTAGE — design system
   World: shader portal. Planes of thin tracked type floating over a living
   field. Depth carries hierarchy; enclosure is the exception, never the default.

   BRAND TOKENS BELOW ARE PLACEHOLDERS. Replace the --brand-* block only.
   Everything else derives from it. See PLACEHOLDERS.md.
   ========================================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Big Shoulders';
  src: url('../fonts/bigshoulders-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* ---- BRAND (placeholder — swap for the real Limontage identity) ---- */
  --brand-void:    #06070C;
  --brand-accent:  #D8F24B;   /* citrus — nods to "Limon" */
  --brand-cool:    #5B7CFF;
  --brand-display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --brand-text:    'Archivo', system-ui, -apple-system, sans-serif;

  /* ---- derived surface ---- */
  --void:   var(--brand-void);
  --ink:    #0B0E15;
  --night:  #12161F;
  --plane:  rgba(255, 255, 255, 0.035);
  --hair:   rgba(199, 208, 224, 0.16);
  --hair-2: rgba(199, 208, 224, 0.28);

  --mist:   #C7D0E0;
  --bright: #EEF3FA;
  --dim:    #98A2B3;

  --accent: var(--brand-accent);
  --cool:   var(--brand-cool);
  --accent-ink: #0B0E15;

  --display: var(--brand-display);
  --text:    var(--brand-text);

  /* ---- rhythm ---- */
  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
  --sect: clamp(4rem, 7vw, 7.5rem);

  --label: 0.6875rem;
  --track-label: 0.2em;
  --track-body: 0.01em;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* UA margin resets. figure ships with margin:1em 40px, which silently inset
   every testimonial inside its grid cell. */
figure, blockquote, dl, dd, h1, h2, h3, h4, p { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--mist);
  font-family: var(--text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: var(--track-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- the field
   Fixed behind everything. A CSS poster paints instantly so the canvas never
   blocks LCP; the canvas fades in after load. */
#field-poster,
#field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#field-poster {
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(91, 124, 255, 0.20) 0%, transparent 58%),
    radial-gradient(90% 70% at 18% 78%, rgba(216, 242, 75, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #080A11 0%, var(--void) 60%);
}
#field {
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
#field.is-live { opacity: 1; }

/* Scrim keeps every text plane at AA over a moving field. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(6, 7, 12, 0.62) 0%,
    rgba(6, 7, 12, 0.50) 38%,
    rgba(6, 7, 12, 0.80) 100%);
}

/* On a phone the field fills the whole screen behind dense body copy, so the
   scrim carries more of the legibility burden than it does on desktop. */
@media (max-width: 700px) {
  body::after {
    background: linear-gradient(180deg,
      rgba(6, 7, 12, 0.74) 0%,
      rgba(6, 7, 12, 0.60) 38%,
      rgba(6, 7, 12, 0.84) 100%);
  }
}

/* --------------------------------------------------------------- primitives */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.label {
  font-family: var(--text);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}
.label--accent { color: var(--accent); }

.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--bright);
  margin: 0;
  text-wrap: balance;
}
.d-xl { font-size: clamp(3.5rem, 13vw, 11.5rem); }
.d-lg { font-size: clamp(2.75rem, 8vw, 6.5rem); }
.d-md { font-size: clamp(2rem, 5vw, 3.75rem); }
.d-sm { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--mist);
  max-width: 46ch;
  margin: 0;
}

.muted { color: var(--dim); }
.hair { border: 0; border-top: 1px solid var(--hair); margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ----------------------------------------------------------------- actions */
.act {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.0625rem 1.75rem;
  border: 1px solid var(--hair-2);
  background: transparent;
  color: var(--bright);
  cursor: pointer;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease),
              background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.act .arw { flex: none; transition: transform 0.35s var(--ease); }
.act:hover { border-color: var(--accent); color: var(--accent); }
.act:hover .arw { transform: translateX(4px); }

.act--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.act--primary:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.act--bare {
  padding: 0;
  border: 0;
  color: var(--accent);
}
.act--bare:hover { color: var(--bright); }

/* -------------------------------------------------------------------- nav */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead.is-stuck {
  background: rgba(6, 7, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hair);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 74px;
}
.brand {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bright);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand .dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav a {
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--bright); }
.nav a[aria-current='page'] { color: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1px solid var(--hair-2);
    color: var(--bright);
    font-family: var(--text);
    font-size: var(--label);
    font-weight: 600;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
  }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(6, 7, 12, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--hair);
    padding: 0.5rem var(--gut) 1.75rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    width: 100%;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--hair);
    font-size: 0.8125rem;
  }
  .nav .act { margin-top: 1.25rem; width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------------------ portal */
.portal {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  position: relative;
}
.portal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.portal h1 { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.portal h1 .thin { font-weight: 400; color: var(--mist); }
.portal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* the one real figure surfacing out of the field */
.portal__readout {
  border-left: 1px solid var(--hair);
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 2rem);
  min-width: 210px;
  /* a readable plane over the live field, rather than type sitting on contours */
  background: linear-gradient(90deg, rgba(6,7,12,0.72) 0%, rgba(6,7,12,0.52) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.portal__readout .fig {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
  color: var(--accent);
  display: block;
}
.portal__readout .cap {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--mist);
  max-width: 24ch;
}
.portal__readout .src {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 900px) {
  .portal__grid { grid-template-columns: 1fr; align-items: start; }
  .portal__readout {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding-left: 0;
    padding-top: 1.5rem;
    margin-top: 2.5rem;
  }
}

@media (max-width: 560px) {
  .portal__actions { flex-direction: column; align-items: stretch; }
  .portal__actions .act { justify-content: space-between; }
}

.scrollcue {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.scrollcue .bar {
  width: 46px; height: 1px; background: var(--hair-2);
  position: relative; overflow: hidden;
}
.scrollcue .bar::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .scrollcue .bar::after { animation: none; transform: none; opacity: 0.5; }
}

/* ---------------------------------------------------------------- sections */
.sect { padding-block: var(--sect); position: relative; }
.sect__head {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--hair);
}
.sect__head .label { grid-column: 1; }
.sect__title { max-width: 24ch; grid-column: 2; }
.sect__head .act { grid-column: 3; }
@media (max-width: 820px) {
  .sect__head { grid-template-columns: 1fr; gap: .75rem; }
  .sect__head .label, .sect__title, .sect__head .act { grid-column: 1; }
}

/* ------------------------------------------------------------- proof band */
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-top: 1px solid var(--hair);
}
.proof__cell {
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2vw, 2rem) clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--hair);
}
.proof__cell + .proof__cell {
  border-left: 1px solid var(--hair);
  padding-left: clamp(1rem, 2vw, 2rem);
}
.proof__fig {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.9;
  color: var(--bright);
  display: block;
}
.proof__cell:nth-child(odd) .proof__fig { color: var(--accent); }
.proof__what {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--mist);
}
.proof__meta {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ------------------------------------------------------- lead case (funnel) */
.lead {
  border: 1px solid var(--hair);
  background: var(--plane);
  backdrop-filter: blur(2px);
}
.lead__top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
}
.lead__copy { padding: clamp(1.75rem, 4vw, 3.25rem); }
.lead__shot {
  border-left: 1px solid var(--hair);
  min-height: 260px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #10141D 0%, #0A0D14 100%);
}
.lead__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead__shot svg, .wcard__shot svg, .case-shot svg { width: 100%; height: 100%; display: block; }

.funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
}
.funnel__step {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-left: 1px solid var(--hair);
}
.funnel__step:first-child { border-left: 0; }
.funnel__step .n {
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}
.funnel__step h4 {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bright);
  letter-spacing: 0.01em;
}
.funnel__step p { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--dim); }

@media (max-width: 900px) {
  .lead__top { grid-template-columns: 1fr; }
  .lead__shot { border-left: 0; border-top: 1px solid var(--hair); min-height: 200px; }
  .funnel { grid-template-columns: repeat(2, 1fr); }
  .funnel__step:nth-child(3) { border-left: 0; }
  .funnel__step:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 520px) {
  .funnel { grid-template-columns: 1fr; }
  .funnel__step { border-left: 0; border-top: 1px solid var(--hair); }
  .funnel__step:first-child { border-top: 0; }
}

/* ---------------------------------------------------------- capabilities */
.caps { border-top: 1px solid var(--hair); }
.cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 11rem;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  transition: background-color 0.4s var(--ease);
}
.cap:hover { background: rgba(255,255,255,0.03); }
.cap__n {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dim);
  transition: color 0.3s var(--ease);
}
.cap:hover .cap__n { color: var(--accent); }
.cap__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bright);
  margin: 0;
}
.cap__how { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--dim); }
.cap__proof {
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  text-align: right;
}
@media (max-width: 900px) {
  .cap {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .cap__how, .cap__proof { grid-column: 1; }
}

/* ------------------------------------------------------------- work grid */
.grid-work {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.wcard {
  background: var(--ink);
  padding: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s var(--ease);
  min-height: 340px;
}
.wcard:hover { background: var(--night); }
.wcard__shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: linear-gradient(140deg, #131824 0%, #0A0D14 100%);
  border-bottom: 1px solid var(--hair);
}
.wcard__shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease);
}
.wcard:hover .wcard__shot img { transform: scale(1.04); }
.wcard__body {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.wcard__client {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bright);
  margin: 0;
}
.wcard__what { margin: 0; font-size: 0.875rem; color: var(--dim); line-height: 1.5; }
/* the metric rides the face, so the grid reads as evidence not gallery */
.wcard__metric {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.wcard__metric .fig {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.wcard__metric .of { font-size: 0.8125rem; color: var(--dim); }
.wcard__tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--hair);
  padding: 0.25rem 0.5rem;
}
/* a shorter entry must not look unfinished */
.wcard--brief .wcard__metric { align-items: center; }
.wcard--brief .wcard__metric .fig {
  font-family: var(--text);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: .3rem .55rem;
  white-space: nowrap;
  line-height: 1.3;
}
.wcard--brief .wcard__metric .of { font-size: .8125rem; }

/* --------------------------------------------------------- own scorecard */
.score {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.score__cell {
  background: var(--ink);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  text-align: left;
}
.score__val {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--accent);
  display: block;
}
.score__name {
  display: block;
  margin-top: 0.55rem;
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--mist);
}
.score__note { display: block; margin-top: 0.3rem; font-size: 0.75rem; color: var(--dim); }

/* ------------------------------------------------------------ testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--hair);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.quote {
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.quote blockquote {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--bright);
}
.quote blockquote::before { content: '“'; color: var(--accent); }
.quote blockquote::after { content: '”'; color: var(--accent); }
.quote__who { margin-top: auto; }
.quote__who .n {
  display: block; font-weight: 600; color: var(--bright); font-size: 0.9375rem;
}
.quote__who .r {
  display: block; font-size: 0.8125rem; color: var(--dim); margin-top: 0.15rem;
}

/* ------------------------------------------------------------ track record */
.record {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.record__item .fig {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--bright);
  display: block;
}
.record__item .cap {
  display: block; margin-top: 0.5rem; font-size: 0.875rem; color: var(--dim);
}

/* track record reads as a line of fact, so the page has one big-number grammar,
   not three variations of it */
.tally {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--hair);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}
.tally li { font-size: 1rem; color: var(--dim); }
.tally b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--bright);
  margin-right: 0.35rem;
}

/* -------------------------------------------------------------------- close */
.close { padding-block: clamp(6rem, 14vw, 12rem); text-align: left; }
.close .lede { margin-top: 1.5rem; }
.close .act { margin-top: clamp(2rem, 4vw, 3rem); }

/* ------------------------------------------------------------------ footer */
.foot {
  border-top: 1px solid var(--hair);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.foot h3 {
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 1.1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.foot a { text-decoration: none; color: var(--mist); font-size: 0.9375rem; }
.foot a:hover { color: var(--accent); }
.foot__bottom {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  font-size: 0.8125rem;
  color: var(--dim);
}
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- case study */
.case-hero { padding-top: 150px; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.case-hero .display { margin-block: 1.25rem 1.5rem; }
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.case-meta__cell { background: var(--void); padding: 1.15rem 1.35rem; }
.case-meta__cell dt {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim); margin: 0 0 0.4rem;
}
.case-meta__cell dd { margin: 0; font-size: 0.9375rem; color: var(--bright); }

.case-shot {
  border: 1px solid var(--hair);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, #131824 0%, #0A0D14 100%);
}
.case-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.case-body {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: var(--sect);
  border-top: 1px solid var(--hair);
}
.case-body + .case-body { border-top: 1px solid var(--hair); }
.case-body h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bright);
  margin: 0;
}
.case-body p { margin: 0 0 1.1rem; max-width: 62ch; }
.case-body p:last-child { margin-bottom: 0; }
.case-body ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.6rem; max-width: 62ch; }
.case-body li::marker { color: var(--accent); }
@media (max-width: 820px) {
  .case-body { grid-template-columns: 1fr; gap: 1.25rem; }
}

.results {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.results caption {
  text-align: left;
  font-size: 0.75rem;
  color: var(--dim);
  padding-bottom: 0.85rem;
}
.results th, .results td {
  text-align: left;
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.9375rem;
  vertical-align: baseline;
}
.results th {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim);
}
.results td.n {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.results td.src { color: var(--dim); font-size: 0.8125rem; }
.table-scroll { overflow-x: auto; }

.nextcase {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--hair);
  text-decoration: none;
}
.nextcase:hover .display { color: var(--accent); }

/* ----------------------------------------------------------- case gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  margin-bottom: var(--sect);
}
.gallery__item { margin: 0; background: var(--ink); overflow: hidden; }
.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.facts { display: grid; gap: 0.7rem; margin: 0; padding-left: 1.1rem; max-width: 62ch; }
.facts li::marker { color: var(--accent); }
.closed-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-left: 1px solid var(--accent);
  background: rgba(216, 242, 75, 0.06);
  font-size: 0.9375rem;
  color: var(--mist);
}

/* -------------------------------------------------------------------- form */
.form { display: grid; gap: 1.5rem; max-width: 640px; }
.field { display: grid; gap: 0.55rem; }
.field label {
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--mist);
}
.field input, .field textarea, .field select {
  font-family: var(--text);
  font-size: 1rem;
  color: var(--bright);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hair-2);
  padding: 0.95rem 1.1rem;
  width: 100%;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
  outline: none;
}
.field .err { font-size: 0.8125rem; color: #FF6B6B; display: none; }
.field.is-invalid .err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF6B6B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formnote { font-size: 0.8125rem; color: var(--dim); max-width: 46ch; }
.formstate { display: none; padding: 1rem 1.15rem; border: 1px solid var(--hair-2); font-size: 0.9375rem; }
.formstate.is-on { display: block; }
.formstate--ok { border-color: var(--accent); color: var(--bright); }
.formstate--bad { border-color: #FF6B6B; color: #FFB3B3; }


/* ------------------------------------------------------- placeholder audit
   Values invented for the design pass. Invisible by default so the design can
   be judged; add ?ph=1 to any URL (or press Shift+P) to reveal every one. */
[data-ph] { position: relative; }
html.show-ph [data-ph] {
  background: rgba(216, 242, 75, 0.14);
  outline: 1px dashed rgba(216, 242, 75, 0.55);
  outline-offset: 2px;
}
.ph-banner {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.6rem var(--gut);
}
html.show-ph .ph-banner { display: block; }

/* --------------------------------------------------------------------- 404 */
.oops { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; }
