/* ==========================================================================
   Litework Studio — design system
   ========================================================================== */

:root {
  --bg: #f1f0ec;
  --bg-2: #e7e5df;
  --ink: #0d0d0c;
  --ink-2: #3b3a37;
  --muted: #74726c;
  --line: rgba(13, 13, 12, 0.14);
  --dark: #0d0d0c;
  --dark-2: #171716;
  --on-dark: #f1f0ec;
  --on-dark-muted: #8f8d87;
  --line-dark: rgba(241, 240, 236, 0.16);
  --accent: #ff5b1a;

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(16px, 3.6vw, 56px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(88px, 12vw, 180px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--pad); top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(40px, 13vw, 232px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.h1 { font-size: clamp(44px, 8vw, 128px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 500; }
.h2 { font-size: clamp(34px, 5vw, 76px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 500; }
.h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; }
.lead { font-size: clamp(22px, 2.6vw, 40px); line-height: 1.16; letter-spacing: -0.03em; font-weight: 400; }
.body-lg { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--muted); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}
.dark .body-lg, .dark .muted { color: var(--on-dark-muted); }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.dark { background: var(--dark); color: var(--on-dark); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dark .rule { border-color: var(--line-dark); }

.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end; padding-bottom: clamp(32px, 4vw, 64px);
}
.section-head .label { grid-column: 1 / span 3; align-self: start; padding-top: 0.6em; }
.section-head .h2 { grid-column: 4 / span 9; }
.section-head--split .h2 { grid-column: 4 / span 7; }
.section-head--split .section-head__aside { grid-column: 11 / span 2; justify-self: end; white-space: nowrap; }

@media (max-width: 860px) {
  .section-head, .section-head--split { grid-template-columns: 1fr; row-gap: 16px; }
  .section-head > * { grid-column: 1 / -1 !important; justify-self: start !important; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px 0 24px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--ink); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }

.link-u {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .5s var(--ease);
}
.link-u:hover { background-size: 100% 1px; }

.arrow { display: inline-block; width: 1em; height: 1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad);
  color: var(--ink);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
body.hero-dark .site-header:not(.is-solid) { color: var(--on-dark); }

.logo { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 600; font-size: 19px; letter-spacing: -0.035em; }
.logo sup { font-size: 0.5em; font-weight: 500; transform: translateY(-0.2em); }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px currentColor;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
body.hero-dark .site-header:not(.is-solid) .nav-cta:hover { background: var(--on-dark); color: var(--ink); box-shadow: none; }

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 91, 26, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,91,26,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,91,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,91,26,0); } }

.menu-btn { display: none; height: 40px; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.menu-btn__icon { position: relative; width: 22px; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 8.5px; }
.menu-open .menu-btn__icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-btn__icon::after { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--dark); color: var(--on-dark);
  padding: calc(var(--header-h) + 24px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .site-header { color: var(--on-dark) !important; background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mobile-menu nav a { display: block; font-size: clamp(44px, 13vw, 72px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 500; }
.mobile-menu nav a span { font-family: var(--mono); font-size: 12px; letter-spacing: 0; vertical-align: top; color: var(--on-dark-muted); margin-right: 10px; }
.mobile-menu__foot { display: grid; gap: 6px; color: var(--on-dark-muted); font-size: 15px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--on-dark); background: var(--dark); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 2.4s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
}
.hero__content { position: relative; padding: 0 var(--pad) clamp(24px, 3vw, 44px); }
.hero__top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  padding-bottom: clamp(20px, 3vw, 40px);
}
.hero__intro { grid-column: 1 / span 5; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.22; letter-spacing: -0.025em; }
.hero__intro strong { font-weight: 500; }
.hero__actions { grid-column: 9 / span 4; justify-self: end; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero__title { white-space: nowrap; margin-left: -0.04em; }
.hero__meta {
  display: flex; justify-content: space-between; gap: 16px; padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--line-dark); color: rgba(241,240,236,.75);
}
@media (max-width: 860px) {
  .hero__top { grid-template-columns: 1fr; row-gap: 24px; }
  .hero__intro, .hero__actions { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; }
  .hero__meta span:nth-child(2) { display: none; }
}

/* ---------- Intro statement ---------- */
.statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.statement .label { grid-column: 1 / span 3; padding-top: 0.7em; }
.statement .lead { grid-column: 4 / span 9; text-indent: 0; }
.statement .lead .muted { color: var(--muted); }
.stats { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding-top: clamp(24px, 4vw, 56px); }
.stat { border-top: 1px solid var(--line); padding-top: 16px; }
.stat__num { font-size: clamp(44px, 6vw, 96px); line-height: 1; letter-spacing: -0.05em; font-weight: 500; }
.stat__label { margin-top: 8px; }
@media (max-width: 860px) {
  .statement { grid-template-columns: 1fr; }
  .statement > * { grid-column: 1 / -1 !important; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat__num { font-size: clamp(32px, 10vw, 44px); }
  .stat__label { font-size: 10px; }
}

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 4.5vw, 72px); }
.work-card { display: block; }
.work-card__media { position: relative; overflow: hidden; background: var(--bg-2); border-radius: var(--radius); aspect-ratio: 3 / 2; }
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .6s var(--ease);
}
.work-card__media .img-hover { position: absolute; inset: 0; opacity: 0; }
.work-card:hover .work-card__media img { transform: scale(1.035); }
.work-card:hover .work-card__media .img-hover { opacity: 1; }
.work-card__view {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.work-card:hover .work-card__view { opacity: 1; transform: none; }
.work-card__info {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline;
  padding-top: 16px;
}
.work-card__num { color: var(--muted); }
.work-card__title { font-size: clamp(19px, 1.5vw, 24px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.work-card__sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.work-card__meta { text-align: right; color: var(--muted); white-space: nowrap; line-height: 1.6; }
.work-card__title, .work-card__num { transition: color .4s var(--ease); }
.work-card:hover .work-card__title { color: var(--accent); }
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card__view { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .work-card__info { grid-template-columns: 28px minmax(0, 1fr); }
  .work-card__meta { grid-column: 2; text-align: left; margin-top: 6px; }
}

/* Filters (work page) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, color .3s, box-shadow .3s;
}
.filter:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.filter sup { font-family: var(--mono); font-size: 10px; margin-left: 2px; opacity: .6; }
.work-card.is-hidden { display: none; }

.inline-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(64px, 8vw, 128px); padding: clamp(24px, 3vw, 40px);
  background: var(--bg-2); border-radius: var(--radius);
}

/* Reassurance line under quote buttons */
.cta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-note { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; margin: 0; }
.dark .cta-note { color: var(--on-dark-muted); }
.hero__actions .cta-note { flex-basis: 100%; text-align: right; color: rgba(241, 240, 236, 0.72); }
.cta__row .cta-stack { align-items: flex-end; }
@media (max-width: 860px) {
  .hero__actions .cta-note { text-align: left; }
  .cta__row .cta-stack { align-items: flex-start; }
}

/* "What happens next" list on contact page */
.next-steps { display: grid; gap: 20px; padding-top: 8px; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 8px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.next-steps li span { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.next-steps strong { color: var(--ink); font-weight: 500; }

/* ---------- Services list ---------- */
.services { border-top: 1px solid var(--line-dark); }
.service {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 12px;
  padding-block: clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--line-dark);
  transition: padding .6s var(--ease);
}
.service__num { grid-column: 1 / span 1; color: var(--on-dark-muted); padding-top: 0.55em; }
.service__title { grid-column: 2 / span 5; font-size: clamp(28px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; transition: color .4s var(--ease), transform .6s var(--ease); }
.service__body { grid-column: 8 / span 5; color: var(--on-dark-muted); }
.service__body p { color: var(--on-dark); font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; }
.service__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--on-dark-muted);
}
.light-tags .tag { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.service:hover .service__title { transform: translateX(10px); color: var(--accent); }
@media (max-width: 860px) {
  .service { grid-template-columns: 40px 1fr; }
  .service__num { grid-column: 1; }
  .service__title, .service__body { grid-column: 2; }
}

/* ---------- Pipeline / process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); row-gap: clamp(40px, 5vw, 72px); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { border-top: 1px solid var(--line); padding-top: 18px; }
.dark .step { border-color: var(--line-dark); }
.step__num { display: block; margin-bottom: clamp(32px, 5vw, 72px); color: var(--muted); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 34ch; }
.dark .step p { color: var(--on-dark-muted); }
@media (max-width: 960px) { .steps, .steps--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .steps--4 { grid-template-columns: 1fr; } .step__num { margin-bottom: 20px; } }

/* ---------- Showcase strip (full-bleed image band) ---------- */
.band { position: relative; overflow: hidden; background: var(--dark); }
.band img { width: 100%; height: clamp(320px, 70vw, 92vh); object-fit: cover; }
.band__caption { position: absolute; left: var(--pad); bottom: var(--pad); color: var(--on-dark); display: flex; gap: 16px; align-items: center; }

/* ---------- Testimonial ---------- */
.quote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.quote .label { grid-column: 1 / span 3; padding-top: .8em; }
.quote blockquote { grid-column: 4 / span 8; }
.quote blockquote p { font-size: clamp(28px, 3.6vw, 56px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 400; text-indent: -0.4em; }
.quote figcaption { grid-column: 4 / span 8; display: flex; gap: 24px; align-items: center; color: var(--muted); }
.quote .stars { color: var(--ink); letter-spacing: 2px; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } .quote > * { grid-column: 1 / -1 !important; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.faq__head { grid-column: 1 / span 4; }
.faq__head .h2 { margin-top: 20px; }
.faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.025em; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; inset: 6.25px 0 auto; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq details p { padding: 0 48px 28px 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq > * { grid-column: 1 / -1 !important; } }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(100px, 14vw, 220px) clamp(48px, 6vw, 88px); }
.cta__eyebrow { color: var(--on-dark-muted); margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.cta__title { font-size: clamp(48px, 10.5vw, 184px); line-height: 0.88; letter-spacing: -0.055em; font-weight: 500; }
.cta__title a { display: inline-flex; align-items: center; gap: 0.12em; transition: color .4s var(--ease); }
.cta__title a:hover { color: var(--accent); }
.cta__title .arrow { width: 0.7em; height: 0.7em; transition: transform .6s var(--ease); }
.cta__title a:hover .arrow { transform: rotate(-45deg); }
.cta__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 6vw, 88px); align-items: end; }
.cta__mail { font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -0.03em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 0 var(--pad) 28px; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding-block: 56px; border-top: 1px solid var(--line-dark); }
.footer__col { grid-column: span 3; display: grid; gap: 8px; align-content: start; }
.footer__col .label { color: var(--on-dark-muted); margin-bottom: 8px; }
.footer__col a { width: fit-content; }
.footer__col:first-child { grid-column: span 6; }
.footer__blurb { max-width: 32ch; color: var(--on-dark-muted); }
.footer__word { font-size: clamp(64px, 21vw, 440px); line-height: 0.8; letter-spacing: -0.06em; font-weight: 600; white-space: nowrap; margin-left: -0.05em; padding-top: 24px; }
.footer__word sup { font-size: 0.24em; font-weight: 500; vertical-align: top; position: relative; top: 0.35em; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; color: var(--on-dark-muted); }
@media (max-width: 860px) {
  .footer__col, .footer__col:first-child { grid-column: span 6; }
  .footer__col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer__col { grid-column: 1 / -1 !important; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(56px, 10vw, 160px)); padding-bottom: clamp(48px, 6vw, 96px); }
.page-head__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; margin-top: clamp(32px, 4vw, 56px); }
.page-head__row .label { grid-column: 1 / span 3; }
.page-head__row .body-lg { grid-column: 4 / span 5; }
.page-head__row .page-head__aside { grid-column: 10 / span 3; justify-self: end; }
@media (max-width: 860px) {
  .page-head__row { grid-template-columns: 1fr; }
  .page-head__row > * { grid-column: 1 / -1 !important; justify-self: start !important; }
}

/* ---------- Case study ---------- */
.case-head { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 128px)); padding-bottom: clamp(32px, 4vw, 56px); }
.case-head .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: clamp(24px, 4vw, 48px); }
.case-head .back:hover { color: var(--ink); }
.case-head .back .arrow { transform: rotate(180deg); }
.case-head__sub { margin-top: 16px; color: var(--muted); }
.case-cover { padding-inline: var(--pad); }
.case-cover figure { border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.case-cover img { width: 100%; max-height: 92vh; object-fit: cover; }
.case-info { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.case-meta { grid-column: 1 / span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; align-content: start; }
.case-meta dt { color: var(--muted); margin-bottom: 6px; }
.case-meta dd { font-size: 16px; line-height: 1.4; }
.case-meta .full { grid-column: 1 / -1; }
.case-summary { grid-column: 6 / span 7; }
@media (max-width: 860px) {
  .case-info { grid-template-columns: 1fr; }
  .case-info > * { grid-column: 1 / -1 !important; }
}
.gallery { display: grid; gap: var(--gap); padding-inline: var(--pad); }
.gallery__row { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.gallery__row--2 { grid-template-columns: 1fr 1fr; }
.gallery figure { border-radius: var(--radius); overflow: hidden; background: var(--bg-2); cursor: zoom-in; position: relative; }
.gallery__row--2 figure { aspect-ratio: 4 / 3; }
.gallery__row--2 figure.portrait-pair { aspect-ratio: 2 / 3; }
.gallery__row--2 img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure img { transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.015); }
.gallery__row--inset { padding-inline: clamp(0px, 16vw, 280px); }
@media (max-width: 640px) { .gallery__row--2 { grid-template-columns: 1fr; } .gallery__row--2 figure { aspect-ratio: auto; } .gallery__row--2 img { height: auto; } }

.next-project { display: block; position: relative; overflow: hidden; color: var(--on-dark); background: var(--dark); }
.next-project img { width: 100%; height: clamp(360px, 70vh, 820px); object-fit: cover; opacity: .62; transition: transform 1.4s var(--ease), opacity .8s var(--ease); }
.next-project:hover img { transform: scale(1.03); opacity: .78; }
.next-project__inner { position: absolute; inset: 0; padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; }
.next-project__title { font-size: clamp(56px, 12vw, 200px); line-height: .86; letter-spacing: -0.055em; font-weight: 500; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.next-project__title .arrow { width: 0.5em; height: 0.5em; transition: transform .6s var(--ease); }
.next-project:hover .next-project__title .arrow { transform: translateX(12px); }

.case-head { padding-bottom: 0; }
.case-sub { padding-top: 16px; padding-bottom: clamp(32px, 4vw, 56px); }

/* ---------- Password-protected projects ---------- */
.lock-icon { width: 28px; height: 28px; flex: none; }
.work-card--locked .work-card__media { background: var(--dark); color: var(--on-dark); }
.locked-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 24px;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
}
.locked-panel__title { font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 500; }
.locked-panel .label { color: var(--on-dark-muted); }
.work-card--locked:hover .locked-panel { color: var(--accent); }
.locked-panel { transition: color .5s var(--ease); }

.gate { padding-top: clamp(24px, 3vw, 48px); padding-bottom: var(--section); }
.gate__panel {
  background: var(--bg-2); border-radius: var(--radius); padding: clamp(28px, 5vw, 72px);
  display: grid; gap: 18px; justify-items: start; max-width: 880px;
}
.gate__panel .h2 { max-width: 16ch; }
.gate__panel .body-lg { max-width: 48ch; }
.gate__form { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; max-width: 520px; margin-top: 8px; }
.gate__form input {
  flex: 1 1 220px; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 17px; outline: none;
}
.gate__form input:focus { border-color: var(--ink); }
.gate__form .btn:disabled { opacity: .6; cursor: progress; }
.gate__error { color: #c2360a; }

.next-project--locked { min-height: clamp(320px, 50vh, 560px); background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 64px 64px; }
.next-project--locked .lock-icon { width: 0.45em; height: 0.45em; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,10,10,.96); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  padding: 64px var(--pad);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 128px); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; color: var(--on-dark); font-size: 14px; font-weight: 500; height: 44px; padding: 0 14px; }
.lightbox .lb-close { top: 12px; right: var(--pad); }
.lightbox .lb-prev { left: var(--pad); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--pad); top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--on-dark-muted); }

/* ---------- Studio page ---------- */
.team { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.team .section-intro { grid-column: 1 / span 4; }
.person { grid-column: span 4; }
.person:nth-of-type(1) { grid-column: 5 / span 4; }
.person figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--dark-2); }
.person img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.person:hover img { filter: grayscale(0); transform: scale(1.02); }
.person__name { margin-top: 18px; font-size: 22px; font-weight: 500; letter-spacing: -0.025em; }
.person__role { color: var(--muted); }
@media (max-width: 860px) {
  .team { grid-template-columns: 1fr 1fr; }
  .team .section-intro { grid-column: 1 / -1; }
  .person, .person:nth-of-type(1) { grid-column: span 1; }
}

.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.cap { background: var(--bg-2); border-radius: var(--radius); padding: clamp(20px, 2vw, 28px); min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.cap p { color: var(--ink-2); margin-top: 8px; }
@media (max-width: 960px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } .cap { min-height: 0; gap: 40px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; }
.contact__info { grid-column: 1 / span 4; display: grid; gap: 32px; align-content: start; }
.contact__info .label { color: var(--muted); margin-bottom: 6px; }
.contact__info a, .contact__info p { font-size: 20px; letter-spacing: -0.02em; }
.contact__form { grid-column: 6 / span 7; }
.field { position: relative; border-bottom: 1px solid var(--line); padding-top: 22px; }
.field label { display: block; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit;
  font-size: 22px; letter-spacing: -0.02em; padding: 8px 0 16px; outline: none; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field ::placeholder { color: var(--muted); opacity: .6; font-size: 18px; }
.field:focus-within { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 20px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; transition: all .3s var(--ease);
}
.chip:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact > * { grid-column: 1 / -1 !important; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .split-line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
  .hero__media img { transform: none; }
}

/* utility */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: clamp(48px, 6vw, 96px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
