/* =========================================================
   Ground Studio — Architectural Solutions
   ========================================================= */
:root {
  --ink: #0b0b0b;
  --ink-2: #141414;
  --ink-3: #1d1d1c;
  --paper: #f2efea;
  --stone: #cfc8be;
  --muted: #8d877f;
  --line: rgba(242, 239, 234, .14);
  --line-2: rgba(242, 239, 234, .28);
  --accent: #b9a58a;
  --sans: "Montserrat", system-ui, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
  --ar: "Cairo", var(--sans);
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }

.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.label span { color: var(--paper); font-weight: 600; letter-spacing: .1em; }
.label span { display: inline-flex; align-items: center; gap: 14px; }
.label span::after { content: ""; width: 36px; height: 1px; background: var(--line-2); }

.h2 {
  font-size: clamp(2.2rem, 6vw, 5.6rem);
  font-weight: 900; line-height: .95; letter-spacing: -.02em; text-transform: uppercase;
  margin: 0 0 clamp(32px, 5vw, 72px);
}

/* split text helpers */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; will-change: transform; }
.char { display: inline-block; will-change: transform; }
.word { display: inline-block; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) }
  60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) }
}

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 28px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease-out), border-color .5s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid::before { background: var(--accent); }
.btn--line, .btn--ghost { border: 1px solid var(--line-2); }
.btn--line::before, .btn--ghost::before { background: var(--paper); }
.btn--line:hover, .btn--ghost:hover { color: var(--ink); border-color: var(--paper); }
.btn--big { --h: 64px; padding: 0 36px; font-size: 14px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  pointer-events: none;
}
html:not(.js) .loader { display: none; }
.loader__panel { position: absolute; inset: 0; background: var(--ink); }
.loader__inner { position: relative; width: min(320px, 70vw); display: grid; justify-items: center; gap: 28px; }
.loader__mark { width: 84px; height: auto; overflow: visible; }
.loader__mark polygon {
  fill: var(--paper); fill-opacity: 0; stroke: var(--paper); stroke-width: 10;
  stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: miter;
}
.loader__meta { width: 100%; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.loader__count b { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.loader__bar { width: 100%; height: 1px; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255,255,255,.6);
  display: grid; place-items: center; transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .45s, border-color .45s;
}
.cursor__label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #000; opacity: 0; transform: scale(.6); transition: .35s var(--ease-out); }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: #fff; }
.cursor.is-view { mix-blend-mode: normal; }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--paper); border-color: var(--paper); }
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
.cursor.is-view .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label { cursor: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--gut);
  transition: transform .6s var(--ease-out), background .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(11,11,11,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.nav__mark { width: 22px; height: 31px; fill: var(--paper); }
.nav__word { height: 26px; width: auto; }
.nav__links { display: flex; gap: 34px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.nav__links a { position: relative; display: inline-block; overflow: hidden; height: 1.6em; }
.nav__links a span { display: block; transition: transform .5s var(--ease-out); }
.nav__links a span + span { position: absolute; top: 100%; left: 0; }
.nav__links a:hover span { transform: translateY(-100%); }
.nav__cta { --h: 44px; padding: 0 22px; font-size: 11px; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--paper); transition: transform .5s var(--ease-out); }
.nav__burger i:first-child { top: 17px; } .nav__burger i:last-child { top: 26px; }
.menu-open .nav__burger i:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .nav__burger i:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gut) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; }
.menu__links { display: grid; gap: 4px; }
.menu__links a { font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 900; text-transform: uppercase; line-height: 1.1; display: flex; align-items: baseline; gap: 14px;
  transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease-out), opacity .8s; }
.menu__links small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .1em; }
.menu-open .menu__links a { transform: none; opacity: 1; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .06s } .menu-open .menu__links a:nth-child(3) { transition-delay: .12s }
.menu-open .menu__links a:nth-child(4) { transition-delay: .18s } .menu-open .menu__links a:nth-child(5) { transition-delay: .24s } .menu-open .menu__links a:nth-child(6) { transition-delay: .3s }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--stone); flex-wrap: wrap; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__word { height: 20px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gut) 40px; overflow: hidden;
}
.hero__lines { position: absolute; inset: 0; pointer-events: none; }
.hero__lines i { position: absolute; height: 1px; width: 70vmax; background: var(--line-2); transform-origin: left center; }
.hero__lines i:nth-child(1) { left: 70%; top: -2%; transform: rotate(45deg); width: 60vmax; }
.hero__lines i:nth-child(2) { left: -6vmax; top: 30%; transform: rotate(-45deg); width: 34vmax; }
.hero__lines i:nth-child(3) { left: -6vmax; top: calc(30% + 16px); transform: rotate(-45deg); width: 34vmax; opacity: .6; }
.hero__eyebrow {
  display: flex; justify-content: space-between; gap: 16px; margin: 0 0 clamp(20px, 3vw, 40px);
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero__title { margin: 0; position: relative; text-align: center; line-height: 1; }
.hero__big {
  display: block; font-weight: 900; text-transform: uppercase; letter-spacing: -.035em;
  font-size: clamp(2.3rem, 10.2vw, 12rem); line-height: .9; white-space: nowrap; letter-spacing: -.045em;
}
.hero__script {
  display: block; font-family: var(--script); font-weight: 400; text-transform: none;
  font-size: clamp(3rem, 10vw, 10.5rem); line-height: 1; letter-spacing: 0;
  margin-top: -.42em; position: relative; z-index: 2; padding-left: 6vw;
  text-shadow: 0 0 30px rgba(11,11,11,.6);
}
.hero__script .char { display: inline-block; }
.hero__foot {
  display: grid; grid-template-columns: 1.1fr auto auto; align-items: end; gap: 32px;
  margin-top: clamp(32px, 6vw, 80px);
}
.hero__lede { max-width: 440px; margin: 0; color: var(--stone); font-size: clamp(15px, 1.2vw, 17px); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll { display: grid; justify-items: center; gap: 10px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--paper); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%) } 100% { transform: translateY(260%) } }
@media (max-width: 860px) {
  .hero__foot { grid-template-columns: 1fr; gap: 24px; }
  .hero__scroll { display: none; }
  .hero__eyebrow { font-size: 10px; letter-spacing: .2em; }
}

/* ---------- expanding reveal ---------- */
.reveal { position: relative; height: 100svh; }
.reveal__stage { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.reveal__frame {
  position: relative; width: 100%; height: 100%;
  clip-path: inset(18% 30% 18% 30%);
  will-change: clip-path;
}
.reveal__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); will-change: transform; }
.reveal__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.reveal__word {
  position: absolute; left: 0; right: 0; bottom: 6%; margin: 0; text-align: center;
  font-size: clamp(3.4rem, 15vw, 16rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .8;
  color: var(--paper);
}
.reveal__outline {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center;
  font-size: 22vh; font-weight: 400; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px var(--line-2);
  pointer-events: none; white-space: nowrap; right: -38vh; z-index: -1;
}
.reveal__cap { position: absolute; top: 50%; transform: translateY(-50%); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); line-height: 1.7; }
.reveal__cap--l { left: var(--gut); }
.reveal__cap--r { right: var(--gut); text-align: right; }
@media (max-width: 760px) {
  .reveal__cap { top: auto; bottom: 7%; transform: none; font-size: 10px; }
  .reveal__frame { clip-path: inset(22% 10% 22% 10%); }
}

/* ---------- marquee ---------- */
.marquee { padding: clamp(40px, 7vw, 100px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); width: max-content; white-space: nowrap; will-change: transform; }
.marquee span { font-size: clamp(3rem, 9vw, 9rem); font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -.02em; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.marquee span.s { font-family: var(--script); font-weight: 400; text-transform: none; font-size: clamp(3.4rem, 9vw, 9.4rem); color: var(--accent); letter-spacing: 0; }
.marquee em { font-style: normal; font-size: clamp(1.4rem, 3vw, 2.6rem); color: var(--muted); }

/* ---------- studio ---------- */
.studio { padding: clamp(100px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); }
.studio__manifesto {
  font-size: clamp(1.6rem, 3.6vw, 3.6rem); line-height: 1.18; font-weight: 500; letter-spacing: -.015em;
  margin: 0; max-width: 1200px;
}
.studio__manifesto .word { opacity: .14; transition: none; }
html:not(.js) .studio__manifesto .word { opacity: 1; }
.studio__ar { font-family: var(--ar); font-size: clamp(1.2rem, 2.2vw, 2rem); color: var(--accent); margin: 32px 0 0; font-weight: 600; }
/* facts */
.facts { display: grid; grid-template-columns: .6fr 1.3fr 1fr 1fr; margin: clamp(56px, 8vw, 110px) 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 26px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.facts dd { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.45rem); font-weight: 600; line-height: 1.3; }
.facts dd:first-child, .facts > div:first-child dd { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 900; line-height: 1; }
.facts dd span { color: var(--accent); }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div, .facts > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line); }
.pillar { padding: 36px 32px 8px 0; position: relative; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar__n { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.pillar h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; text-transform: uppercase; margin: 18px 0 12px; letter-spacing: -.01em; }
.pillar p { color: var(--stone); margin: 0; max-width: 34ch; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- gallery ---------- */
.gallery { position: relative; background: var(--ink-2); }
.gallery__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 84px 0 28px; }
.gallery__head .h2 { font-size: clamp(2rem, 4.6vw, 4.4rem); }
.gallery__head { padding: 0 var(--gut); display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0 40px; }
.gallery__head .label { width: 100%; }
.gallery__head .h2 { margin-bottom: clamp(24px, 3vw, 44px); }
.gallery__hint { margin: 0 0 clamp(30px, 3.4vw, 50px) auto; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gallery__hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.gallery__track { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); padding: 0 var(--gut); width: max-content; will-change: transform; }
.card { margin: 0; flex: none; width: clamp(280px, min(38vw, 58svh), 620px); }
.card--tall { width: clamp(220px, min(24vw, 36svh), 420px); }
.card__img { position: relative; overflow: hidden; aspect-ratio: 855 / 712; border-radius: 4px; background: var(--ink-3); }
.card--tall .card__img { aspect-ratio: 4 / 5; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; transition: filter .8s; }
.card:hover .card__img img { filter: brightness(1.06); }
.card figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; margin-top: 18px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.card figcaption span { font-size: 11px; color: var(--muted); font-weight: 500; padding-top: 3px; }
.card figcaption em { grid-column: 2; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 14px; }
.card--end {
  width: clamp(240px, 24vw, 380px); aspect-ratio: 4 / 5; border: 1px solid var(--line-2); border-radius: 4px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 32px;
  transition: background .6s var(--ease-out), color .6s;
}
.card--end span { font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 900; text-transform: uppercase; line-height: 1; }
.card--end em { font-style: normal; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.card__mark { width: 40px; height: 56px; fill: currentColor; }
.card--end:hover { background: var(--paper); color: var(--ink); }
.gallery__progress { margin: clamp(28px, 4vw, 50px) var(--gut) 0; height: 1px; background: var(--line); }
.gallery__progress i { display: block; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }

@media (max-width: 860px) {
  .gallery__pin { height: auto; padding: 100px 0 80px; }
  .gallery__hint, .gallery__progress { display: none; }
  .gallery__track { flex-direction: column; width: 100%; gap: 48px; }
  .card, .card--tall, .card--end { width: 100%; }
  .card--tall .card__img { aspect-ratio: 855 / 712; }
  .card--end { aspect-ratio: auto; min-height: 240px; }
}

/* ---------- projects ---------- */
.projects { padding: clamp(100px, 14vw, 200px) 0; }
.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); }
.project { display: block; position: relative; }
.project--wide { grid-column: span 2; }
.project__img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--ink-3); }
.project--wide .project__img { aspect-ratio: 21 / 9; }
.project__img img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .8s; }
.project:hover .project__img img { transform: scale(1.05); }
.project__sharp { opacity: 0; }
.project:hover .project__sharp { opacity: 1; }
.project__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); pointer-events: none; }
.project__meta { display: grid; grid-template-columns: 180px 1fr; gap: 6px 24px; padding-top: 22px; align-items: baseline; }
.project__meta span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.project__meta h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2.3rem); font-weight: 900; text-transform: uppercase; line-height: 1.05; letter-spacing: -.01em; }
.project__meta h3 i { font-family: var(--script); font-style: normal; font-weight: 400; text-transform: none; font-size: 1.35em; color: var(--accent); letter-spacing: 0; margin-left: .1em; }
.project__meta h3 b { font-family: var(--ar); font-weight: 800; color: var(--accent); margin-left: .2em; }
.project__meta p { grid-column: 2; margin: 0; color: var(--stone); max-width: 48ch; }
@media (max-width: 760px) {
  .projects__grid { grid-template-columns: 1fr; }
  .project--wide { grid-column: auto; }
  .project--wide .project__img { aspect-ratio: 4 / 3; }
  .project__meta { grid-template-columns: 1fr; }
  .project__meta p { grid-column: 1; }
}

/* ---------- case study ---------- */
.case { padding: clamp(100px, 14vw, 200px) 0 clamp(60px, 8vw, 120px); }
.case__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 60px; align-items: end; }
.case__head .label { grid-column: 1 / -1; }
.case__title { margin-bottom: 0; }
.case__title > span { display: block; }
.case__title b { display: block; font-family: var(--ar); font-weight: 800; color: var(--accent); font-size: .5em; letter-spacing: 0; margin-top: .25em; text-align: left; }
.case__lede { color: var(--stone); max-width: 44ch; margin: 0 0 .6em; font-size: clamp(15px, 1.25vw, 18px); }
.morph { height: 100svh; margin-top: clamp(24px, 4vw, 60px); }
.morph__stage { position: relative; height: 100svh; overflow: hidden; }
.morph__stage > img, .morph__b, .morph__b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.morph__b { clip-path: inset(0 0 0 100%); will-change: clip-path; }
.morph__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 70%, rgba(0,0,0,.5)); pointer-events: none; }
.morph__line { position: absolute; top: 0; bottom: 0; left: 100%; width: 1px; background: var(--paper); z-index: 2; will-change: transform; }
.morph__line span { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-size: 20px; }
.morph__tag { position: absolute; bottom: 32px; z-index: 3; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; padding: 10px 16px; border-radius: 100px; background: rgba(11,11,11,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.morph__tag--a { left: var(--gut); }
.morph__tag--b { right: var(--gut); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(24px, 3vw, 44px); }
.mosaic__i { margin: 0; position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 1; background: var(--ink-3); }
.mosaic__i--plan { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic__i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.mosaic__i:hover img { transform: scale(1.06); }
.mosaic__i figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; font-size: 13px; letter-spacing: .04em; background: linear-gradient(transparent, rgba(0,0,0,.75)); transform: translateY(100%); transition: transform .7s var(--ease-out); }
.mosaic__i:hover figcaption { transform: none; }
@media (hover: none) { .mosaic__i figcaption { transform: none; } }
@media (max-width: 860px) {
  .case__head { grid-template-columns: 1fr; }
  .case__lede { margin-top: 24px; }
  .morph, .morph__stage { height: 75svh; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic__i--plan { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* ---------- services ---------- */
.services { padding: clamp(100px, 12vw, 180px) 0; background: var(--paper); color: var(--ink); position: relative; }
.services .label { color: #6b665f; } .services .label span { color: var(--ink); } .services .label span::after { background: rgba(11,11,11,.25); }
.services ::selection { background: var(--ink); color: var(--paper); }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(11,11,11,.15); }
.svc__item { border-bottom: 1px solid rgba(11,11,11,.15); position: relative; }
.svc__row { width: 100%; display: grid; grid-template-columns: 80px 1fr 44px; align-items: center; text-align: left; padding: clamp(22px, 3vw, 40px) 0; position: relative; }
.svc__n { font-size: 12px; color: #6b665f; letter-spacing: .1em; }
.svc__t { font-size: clamp(1.6rem, 4.6vw, 4.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; transition: transform .7s var(--ease-out), color .5s; }
.svc__row:hover .svc__t { transform: translateX(20px); }
.svc__plus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(11,11,11,.2); position: relative; transition: background .4s, transform .6s var(--ease-out); }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.svc__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc__item.is-open .svc__plus { background: var(--ink); color: var(--paper); transform: rotate(180deg); }
.svc__item.is-open .svc__plus::after { transform: translate(-50%, -50%) rotate(0); }
.svc__body { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 0 40px; height: 0; overflow: hidden; }
html:not(.js) .svc__body { height: auto; }
.svc__body p { grid-column: 2; margin: 0 0 40px; font-size: clamp(15px, 1.3vw, 18px); max-width: 52ch; }
.svc__body ul { grid-column: 3; list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.svc__body li { border: 1px solid rgba(11,11,11,.2); border-radius: 100px; padding: 6px 16px; font-size: 13px; }
.svc__float {
  position: fixed; top: 0; left: 0; z-index: 5; width: 300px; aspect-ratio: 4/5; pointer-events: none; overflow: hidden; border-radius: 4px;
  opacity: 0; transform: scale(.7); will-change: transform;
}
.svc__float img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .svc__row { grid-template-columns: 44px 1fr 44px; }
  .svc__body { grid-template-columns: 1fr; }
  .svc__body p, .svc__body ul { grid-column: 1; }
  .svc__body p { margin-bottom: 20px; }
  .svc__float { display: none; }
}

/* ---------- process ---------- */
.process { padding: clamp(100px, 14vw, 200px) 0; position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.step { position: relative; padding-top: 48px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--paper); background: var(--ink); z-index: 1; transition: background .4s; }
.step.is-on::before { background: var(--paper); }
.step__n { font-size: clamp(3rem, 5vw, 5rem); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); display: block; margin-bottom: 18px; transition: -webkit-text-stroke-color .5s, color .5s; }
.step.is-on .step__n { -webkit-text-stroke-color: var(--paper); }
.step h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; font-weight: 800; }
.step p { margin: 0; color: var(--stone); font-size: 15px; }
.steps { position: relative; }
.steps::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--paper); transform: scaleX(var(--p, 0)); transform-origin: left; }
html:not(.js) .step::before { background: var(--paper); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 44px; padding-left: 36px; }
  .step { padding-top: 0; }
  .step::before { left: -36px; top: 8px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .steps::after { transform: scaleY(var(--p, 0)); transform-origin: top; }
}

/* ---------- visit ---------- */
.visit { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.visit__img { position: absolute; inset: 0; }
.visit__img img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.visit__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,11,.92) 0%, rgba(11,11,11,.55) 45%, rgba(11,11,11,.05) 80%); }
.visit__card { position: relative; padding: 120px var(--gut); max-width: 720px; }
.visit__card p { color: var(--stone); max-width: 42ch; margin: 0 0 36px; font-size: 17px; }
.visit__links { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .visit__img::after { background: linear-gradient(0deg, rgba(11,11,11,.95) 20%, rgba(11,11,11,.4)); }
  .visit { align-items: end; }
}

/* ---------- quote ---------- */
.quote { padding: clamp(100px, 14vw, 200px) 0; background: var(--ink-2); }
.quote__wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.quote__intro { position: sticky; top: 120px; }
.quote__title { margin: 0 0 28px; font-size: clamp(2.6rem, 6vw, 5.8rem); font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: -.02em; }
.quote__title > span { display: block; }
.quote__script { font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .82em; color: var(--accent); margin-top: -.05em; line-height: 1.1; }
.quote__intro > p { color: var(--stone); max-width: 42ch; margin: 0 0 40px; }
.quote__direct { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.quote__direct li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.quote__direct span { color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.quote__direct a { transition: color .3s; } .quote__direct a:hover { color: var(--accent); }

.form { position: relative; display: grid; gap: 34px; background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 4vw, 56px); overflow: hidden; }
.form__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__group legend { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 100px; border: 1px solid var(--line-2);
  font-size: 14px; transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease-out); user-select: none; cursor: pointer;
}
.chips label:hover span { border-color: var(--paper); }
.chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chips input:focus-visible + span { outline: 1px solid var(--paper); outline-offset: 3px; }
.chips label:active span { transform: scale(.96); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--paper);
  font: inherit; font-size: 17px; padding: 26px 0 12px; border-radius: 0; outline: none; resize: vertical;
}
.field span { position: absolute; left: 0; top: 26px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease-out), color .3s; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within::after { transform: none; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-24px) scale(.78); color: var(--stone); }
.field.is-invalid input { border-bottom-color: #d9826b; }
.field.is-invalid span { color: #d9826b; }
.form__submit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__note { margin: 0; font-size: 13px; color: var(--muted); }
.form__error { margin: -14px 0 0; min-height: 1em; color: #d9826b; font-size: 14px; }
.form__done {
  position: absolute; inset: 0; background: var(--ink); display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 32px;
  clip-path: circle(0% at 50% 100%); visibility: hidden; transition: clip-path 1s var(--ease), visibility 0s 1s;
}
.form.is-sent .form__done { clip-path: circle(150% at 50% 100%); visibility: visible; transition: clip-path 1s var(--ease); }
.form__done-mark { width: 50px; height: 70px; fill: var(--paper); margin-bottom: 16px; }
.form__done h3 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; text-transform: uppercase; margin: 0; }
.form__done p { color: var(--stone); max-width: 36ch; margin: 0 0 20px; }
@media (max-width: 960px) {
  .quote__wrap { grid-template-columns: 1fr; }
  .quote__intro { position: static; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .chips span { min-height: 42px; padding: 0 16px; font-size: 13px; }
  .btn--big { width: 100%; justify-content: center; }
}

/* ---------- footer ---------- */
.footer { padding: clamp(100px, 12vw, 180px) 0 28px; overflow: hidden; position: relative; }
.footer__cta { border-bottom: 1px solid var(--line); padding-bottom: clamp(48px, 7vw, 100px); }
.footer__cta p { color: var(--muted); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 18px; }
.footer__big { display: inline-flex; align-items: center; gap: .2em; font-size: clamp(3.4rem, 12vw, 12rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; transition: color .5s; }
.footer__big svg { width: .7em; height: .7em; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .7s var(--ease-out); }
.footer__big:hover { color: var(--accent); }
.footer__big:hover svg { transform: rotate(45deg); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 60px 0; }
.footer__grid h4 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 16px; }
.footer__grid a, .footer__grid p { display: block; margin: 0 0 6px; color: var(--stone); transition: color .3s; font-size: 15px; }
.footer__grid a:hover { color: var(--paper); }
.footer__mark { width: 34px; height: 48px; fill: var(--paper); margin-bottom: 18px; }
.footer__word { width: 220px; height: auto; }
.footer__outline { font-size: 17.5vw; line-height: .8; font-weight: 900; letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-2); text-align: center; margin: 0 -2vw; user-select: none; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 28px; }
.footer__top:hover { color: var(--paper); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div:first-child { grid-column: span 2; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll i::after { animation: none; }
  .reveal__frame { clip-path: none !important; }
  .reveal__img { transform: none !important; }
}

/* =========================================================
   Brand post frame — mirrors the Ground Studio Instagram style:
   offset hairline boxes over the render, a heavy word at the
   bottom, a boxed caption beneath and an outlined side word.
   Geometry is taken from the 1080×1440 posts (photo 855×861).
   ========================================================= */
.gf { position: relative; container-type: inline-size; }
.gf__b1, .gf__b2 {
  position: absolute; left: 10.6%; right: 10.6%; z-index: 2; pointer-events: none;
  border: 1px solid rgba(255,255,255,.72);
}
.gf__b1 { top: 38%; height: 24.6%; border-top: 0; }
.gf__b2 { top: 65.5%; bottom: -1.3%; }
.gf__w {
  position: absolute; left: 0; right: 0; bottom: 7.5%; z-index: 3; text-align: center; pointer-events: none;
  font-weight: 900; text-transform: uppercase; color: #fff; line-height: .8; letter-spacing: -.01em;
  font-size: 10.6cqw; text-shadow: 0 2px 30px rgba(0,0,0,.18);
}
.gf .card__img, .gf .project__img { border-radius: 0; }
.card--tall .gf__w { font-size: 13.5cqw; }

/* caption box under the frame (open at the bottom, like the posts) */
.card figcaption {
  display: block; text-align: center; margin: 2.2em 10.6% 0; padding: 16px 12px 26px;
  border: 1px solid var(--line-2); border-bottom: 0;
  font-size: 14px; font-weight: 600; letter-spacing: .08em;
}
.card figcaption span { display: block; font-size: 10px; letter-spacing: .3em; margin-bottom: 4px; padding: 0; }
.card figcaption em { display: block; font-size: 13px; margin-top: 2px; }

/* projects: frame + meta inside a caption box */
.gf--project .project__img::after { display: none; }
.projects .project__meta { margin: 1.4em 10.6% 0; padding: 20px 20px 26px; border: 1px solid var(--line-2); border-bottom: 0; grid-template-columns: 1fr; text-align: center; justify-items: center; }
.projects .project__meta p { grid-column: 1; }
.project--wide .gf__b1 { top: 30%; height: 30%; }
.project--wide .gf__b2 { top: 63%; }
.project--wide .gf__w { font-size: 8cqw; bottom: 8%; }
.gf--project .gf__w { font-size: 12cqw; }
.project--wide .gf--project .gf__w { font-size: 8cqw; }

/* mosaic: frames without the word */
.mosaic__i .gf__b1, .mosaic__i .gf__b2 { left: 10.6%; right: 10.6%; }
.mosaic__i .gf__b2 { bottom: 5%; }
.mosaic__i--plan .gf__b1 { top: 30%; height: 28%; }
.mosaic__i--plan .gf__b2 { top: 61%; bottom: 6%; }
.mosaic__i figcaption { z-index: 4; text-align: center; }

/* outlined vertical side word */
.studio, .projects, .case, .process { position: relative; overflow: hidden; }
.side-word {
  position: absolute; top: 12%; right: 0; z-index: 0; pointer-events: none; user-select: none;
  writing-mode: vertical-rl; font-size: clamp(90px, 13vw, 210px); font-weight: 500; line-height: .82; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(242,239,234,.22); transform: translateX(28%);
}
.studio > .wrap, .projects > .wrap, .case > .wrap, .process > .wrap, .case > .morph { position: relative; z-index: 1; }
@media (max-width: 760px) { .side-word { font-size: 90px; transform: translateX(45%); opacity: .6; } }

/* frame line draw-in states (set by JS) */
.js .gf__b1, .js .gf__b2 { clip-path: inset(0 100% 0 0); }
.js .gf__w { opacity: 0; transform: translateY(30%); }
.gf.is-in .gf__b1, .gf.is-in .gf__b2, .is-in > .gf__b1, .is-in > .gf__b2 { clip-path: inset(-2px -2px -2px -2px); transition: clip-path 1.4s var(--ease) .2s; }
.gf.is-in .gf__b2, .is-in > .gf__b2 { transition-delay: .4s; }
.gf.is-in .gf__w { opacity: 1; transform: none; transition: opacity 1s .5s, transform 1.2s var(--ease-out) .5s; }
@media (prefers-reduced-motion: reduce) { .js .gf__b1, .js .gf__b2 { clip-path: none; } .js .gf__w { opacity: 1; transform: none; } }
