/* Innovait Space. One accent, sharp corners, Archivo variable (width axis echoes the wide logotype). */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Bright gallery-white page, warm-neutral surfaces, dark footer as the one anchor. */
  --bg: #fcfcfa;
  --surface: #f1f1ed;
  --ink: #141414;
  --muted: #5b5b57;
  --line: #e2e2dc;
  --accent: #e8541e;      /* fills, with --on-accent text */
  --accent-text: #b8400f; /* accent used as text on --bg */
  --on-accent: #141414;
  --scrim: rgb(20 20 20 / .55);
  --shadow: 0 24px 60px -30px rgb(20 20 20 / .28);
  color-scheme: light;
  --logo-filter: none;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; font-stretch: 112%; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sec-tight { padding-block: calc(var(--sec) * .6); }
.surface { background: var(--surface); }

/* Type scale */
.display { font-size: clamp(2.4rem, 4.6vw, 4.1rem); font-weight: 650; font-stretch: 106%; }
.h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 52ch; }
.body { color: var(--muted); max-width: 65ch; }
.body + .body { margin-top: 1.1em; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; font-stretch: 125%; text-transform: uppercase; letter-spacing: .2em; color: var(--accent-text); margin-bottom: 20px; }
.stack > * + * { margin-top: 24px; }

/* Buttons: sharp, one line, press feedback */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  min-height: 52px; padding: 0 26px; border: 1px solid var(--ink);
  font-weight: 600; font-stretch: 110%; font-size: .98rem; text-decoration: none;
  background: var(--ink); color: var(--bg); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico-move, .btn:hover .ico:last-child { transform: translateX(3px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-stretch: 110%; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translate(2px, -2px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand img { height: 34px; width: auto; filter: var(--logo-filter); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; text-decoration: none; font-weight: 500; font-stretch: 108%; font-size: .95rem; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); cursor: pointer; font-size: 1.3rem; }
.menu-open { display: inline-flex; }
.menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: inline-flex; }

@media (max-width: 1100px) { .header-phone span { display: none; } }
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-btn { display: inline-flex; }
  .header-phone { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); margin: 0;
    padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font-size: 2rem; font-weight: 600; font-stretch: 115%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav ul a[aria-current="page"] { color: var(--accent-text); }
  .nav-extra { display: grid; gap: 4px; }
  .nav-extra a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 1.05rem; }
  body.menu-lock { overflow: hidden; }
}
@media (max-width: 420px) { .header-actions .btn { display: none; } }

/* Home hero: asymmetric split, three-photo composition */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: var(--sec); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: calc(100dvh - var(--header-h) - 120px); }
.hero-copy .lead { margin-top: 28px; }
.hero-copy .btn-row { margin-top: 40px; }
.hero-art { position: relative; aspect-ratio: 1; max-height: calc(100dvh - var(--header-h) - 64px); }
.hero-art figure { position: absolute; margin: 0; overflow: hidden; background: var(--surface); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .a1 { inset: 0 18% 22% 0; }
.hero-art .a2 { right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.hero-art .a3 { left: 8%; bottom: 0; width: 34%; aspect-ratio: 1; box-shadow: var(--shadow); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); list-style: none; padding-left: 0; }
.hero-tags a { text-decoration: none; font-weight: 500; color: var(--muted); }
.hero-tags a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { aspect-ratio: 4 / 3.6; }
}

/* Line-mask reveal for headings */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; }

/* Services list with sticky preview */
.svc-head { margin-bottom: 56px; max-width: 760px; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-item a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.svc-item h3 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); transition: transform .45s var(--ease), color .3s; }
.svc-item p { grid-column: 1; color: var(--muted); max-width: 46ch; }
.svc-item .arrow { grid-row: 1 / span 2; grid-column: 2; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 1.3rem; transition: background .3s var(--ease), color .3s, border-color .3s, transform .45s var(--ease); }
.svc-item a:hover h3, .svc-item a:focus-visible h3, .svc-item.is-active h3 { transform: translateX(10px); }
.svc-item a:hover .arrow, .svc-item.is-active .arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
.svc-item .thumb { display: none; }
.svc-preview { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.svc-preview img.is-active { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .svc-item a { grid-template-columns: 96px 1fr; }
  .svc-item .thumb { display: block; grid-row: 1 / span 2; width: 96px; aspect-ratio: 1; object-fit: cover; }
  .svc-item h3, .svc-item p { grid-column: 2; }
  .svc-item .arrow { display: none; }
  .svc-item a:hover h3, .svc-item a:focus-visible h3, .svc-item.is-active h3 { transform: none; }
}

/* Bento of recent work (5 cells, 5 photos) */
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 16vw, 230px); gap: 16px; }
.tile { position: relative; margin: 0; display: flex; flex-direction: column; text-decoration: none; }
.tile .media { flex: 1; overflow: hidden; background: var(--surface); min-height: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption, .tile .cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-weight: 500; }
.tile .cap span:last-child { color: var(--muted); }
.b1 { grid-column: span 7; grid-row: span 3; }
.b2 { grid-column: span 5; grid-row: span 2; }
.b3 { grid-column: span 5; grid-row: span 2; }
.b4 { grid-column: span 4; grid-row: span 2; }
.b5 { grid-column: span 3; grid-row: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .b1 { grid-column: span 2; grid-row: span 2; }
  .b2, .b3, .b4, .b5 { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .b1, .b2, .b3, .b4, .b5 { grid-column: span 1; grid-row: span 1; }
}

/* Split with portrait (about) */
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 14px 20px 0 0; font-weight: 600; font-stretch: 110%; }
.points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points .ico { font-size: 1.4rem; color: var(--accent-text); margin-top: 2px; }
.points strong { display: block; font-weight: 600; font-stretch: 108%; }
.points span { color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-media { aspect-ratio: 4 / 3.4; } }

/* Process: horizontal track with a scroll-drawn rule */
.process-wrap { position: relative; }
.process-head { max-width: 720px; margin-bottom: 64px; }
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 40px 0 0; counter-reset: step; }
.process::before, .process-rule { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.process-rule { background: var(--accent); transform-origin: left; transform: scaleX(1); }
.process li { counter-increment: step; }
.process li::before { content: counter(step, decimal-leading-zero); display: block; font-size: .85rem; font-weight: 600; font-stretch: 125%; color: var(--accent-text); margin-bottom: 18px; }
.process h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 12px; }
.process p { color: var(--muted); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; padding: 0 0 0 28px; }
  .process::before, .process-rule { top: 0; bottom: 0; left: 0; right: auto; width: 2px; height: auto; }
  .process-rule { transform-origin: top; }
}

/* Full-bleed statement band */
.band { position: relative; min-height: clamp(420px, 70vh, 720px); display: grid; align-items: end; overflow: hidden; color: #f4f4f2; }
.band-media { position: absolute; inset: 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(12 12 12 / .82), rgb(12 12 12 / .15) 70%); }
.band .wrap { position: relative; z-index: 1; padding-block: clamp(40px, 7vw, 88px); }
.band .band-stat { font-size: clamp(4.5rem, 12vw, 10rem); font-weight: 700; font-stretch: 118%; line-height: .9; letter-spacing: -.04em; }
.band p { max-width: 40ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); margin-top: 18px; color: rgb(244 244 242 / .88); }

/* Inner page header */
.page-head { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(40px, 5vw, 72px); }
.crumbs { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head .lead { margin-top: 24px; }
.page-hero-img { aspect-ratio: 21 / 9; overflow: hidden; background: var(--surface); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .page-hero-img { aspect-ratio: 4 / 3; } }

/* Service detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.detail-main h2 { margin-bottom: 24px; }
.detail-main > section + section { margin-top: 72px; }
.aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 16px; }
.aside-card { border: 1px solid var(--line); padding: 28px; }
.aside-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.aside-card p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-card .btn + .btn { margin-top: 10px; }
.aside-nav { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.aside-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.aside-nav a[aria-current="page"] { color: var(--accent-text); }
.aside-nav a:hover .ico { transform: translateX(3px); }
.aside-nav .ico { transition: transform .25s var(--ease); }
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.scope div { background: var(--surface); padding: 28px; }
.scope h3 { font-size: 1.25rem; margin-bottom: 10px; }
.scope p { color: var(--muted); }
.pull { margin: 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--accent); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; font-stretch: 108%; line-height: 1.3; letter-spacing: -.01em; max-width: 30ch; }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } .aside { position: static; } }
@media (max-width: 600px) { .scope { grid-template-columns: 1fr; } }

/* Photo strip on service pages: horizontal snap */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 30vw, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin; }
.strip a { scroll-snap-align: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); display: block; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.strip a:hover img { transform: scale(1.04); }
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }

/* FAQ accordion (native details) */
.faq { 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: 22px 0; font-weight: 600; font-stretch: 106%; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { font-size: 1.3rem; transition: transform .35s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--accent-text); }
.faq details p { color: var(--muted); padding: 0 48px 24px 0; max-width: 70ch; }
.faq-group + .faq-group { margin-top: 72px; }
.faq-group h2 { margin-bottom: 24px; }
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-jump { position: sticky; top: calc(var(--header-h) + 32px); list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.faq-jump a { display: block; padding: 8px 0; text-decoration: none; color: var(--muted); font-weight: 500; }
.faq-jump a:hover { color: var(--ink); }
@media (max-width: 800px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-jump { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-jump a { border: 1px solid var(--line); padding: 8px 14px; }
}

/* Projects index: 4 category panels, asymmetric */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cat { position: relative; display: block; overflow: hidden; text-decoration: none; color: #f4f4f2; background: #1b1b1a; min-height: 340px; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(12 12 12 / .8), transparent 60%); }
.cat:hover img { transform: scale(1.05); }
.cat-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 3vw, 36px); display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.cat h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.cat p { color: rgb(244 244 242 / .8); margin-top: 6px; }
.cat .arrow { width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent); color: #141414; font-size: 1.3rem; flex: none; transition: transform .4s var(--ease); }
.cat:hover .arrow { transform: rotate(-45deg); }
.c1 { grid-column: span 7; min-height: 520px; }
.c2 { grid-column: span 5; min-height: 520px; }
.c3 { grid-column: span 5; }
.c4 { grid-column: span 7; }
@media (max-width: 800px) { .c1, .c2, .c3, .c4 { grid-column: span 12; min-height: 360px; } }

/* Gallery: masonry columns + dialog lightbox */
.masonry { columns: 3 320px; column-gap: 16px; }
.masonry button { all: unset; display: block; width: 100%; margin-bottom: 16px; break-inside: avoid; cursor: zoom-in; overflow: hidden; background: var(--surface); }
.masonry button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.masonry img { width: 100%; transition: transform 1s var(--ease); }
.masonry button:hover img { transform: scale(1.03); }
.gallery-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.gallery-nav a { padding: 10px 18px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.gallery-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery-nav a:hover { border-color: var(--ink); }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 10 10 / .94); color: #f4f4f2; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); }
.lb-stage { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; min-height: 0; padding: 0 8px 24px; }
.lb-stage img { max-height: calc(100dvh - 110px); width: auto; max-width: 100%; margin: auto; object-fit: contain; }
.lb-btn { width: 48px; height: 48px; display: grid; place-items: center; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18); color: inherit; cursor: pointer; font-size: 1.3rem; }
.lb-btn:hover { background: rgb(255 255 255 / .16); }
@media (max-width: 600px) { .lb-stage { grid-template-columns: 1fr; } .lb-prev, .lb-next { position: fixed; bottom: 20px; } .lb-prev { left: 20px; } .lb-next { right: 20px; } }

/* About */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv div { padding: clamp(28px, 4vw, 48px); background: var(--surface); }
.mv div:first-child { background: var(--ink); color: var(--bg); }
.mv div:first-child p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.mv h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 16px; }
.mv p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 700px) { .mv { grid-template-columns: 1fr; } }
.statement { font-size: clamp(1.8rem, 3.6vw, 3.1rem); font-weight: 500; font-stretch: 108%; line-height: 1.2; letter-spacing: -.02em; max-width: 26ch; }
.statement em { font-style: normal; color: var(--accent-text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 40%, var(--bg)); border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.field .hint { font-size: .85rem; color: var(--muted); }
.field .err { font-size: .88rem; color: var(--accent-text); font-weight: 600; min-height: 0; }
.field [aria-invalid="true"] { border-color: var(--accent-text); }
.phone-wrap { display: grid; grid-template-columns: auto 1fr; }
.phone-wrap span { display: grid; place-items: center; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--ink) 40%, var(--bg)); border-right: 0; color: var(--muted); font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { font-weight: 500; }
.form-status.ok { color: var(--ink); }
.form-status.bad { color: var(--accent-text); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.contact-cards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-cards a, .contact-cards div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-cards .ico { font-size: 1.5rem; color: var(--accent-text); margin-top: 2px; }
.contact-cards small { display: block; color: var(--muted); font-size: .88rem; }
.contact-cards strong { font-weight: 600; font-stretch: 106%; font-size: 1.08rem; }
.map { margin-top: 32px; aspect-ratio: 4 / 3; background: var(--surface); border: 0; width: 100%; filter: grayscale(1) contrast(1.05); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--surface); padding-top: clamp(64px, 9vw, 120px); }
.footer-cta { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.footer-title { font-size: clamp(2rem, 4.4vw, 3.8rem); }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-block: 56px; }
.footer-logo { width: 150px; filter: var(--logo-filter); }
.footer-h { font-size: .8rem; font-weight: 600; font-stretch: 125%; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list a, .footer-address a { text-decoration: none; }
.footer-list a:hover, .footer-address a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-address { line-height: 2; }
.footer-address span { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 1.2rem; color: var(--ink); }
.social a:hover { border-color: var(--ink); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.nf { min-height: calc(100dvh - var(--header-h)); display: grid; align-items: center; }
.nf-code { font-size: clamp(6rem, 20vw, 16rem); font-weight: 700; font-stretch: 120%; line-height: .85; letter-spacing: -.05em; color: var(--accent-text); }

/* Reveal states: only hidden when JS + motion are on (site.js removes .js-motion otherwise) */
html.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
html.js-motion .line > span { transform: translateY(105%); }
html.js-motion [data-clip] { clip-path: inset(100% 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== Studio redesign additions ===== */
/* Full-bleed hero: one strong photo, copy bottom-left on a scrim */
.hero-full { position: relative; display: grid; align-items: end; min-height: min(calc(100dvh - var(--header-h)), 880px); overflow: hidden; color: #f4f4f2; background: #141414; }
.hero-full-media { position: absolute; inset: 0; margin: 0; }
.hero-full-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-full-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(12 12 12 / .78) 0%, rgb(12 12 12 / .35) 45%, rgb(12 12 12 / .05) 75%); }
.hero-full-copy { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 96px); }
.hero-full-copy .lead { color: rgb(244 244 242 / .86); margin-top: 20px; max-width: 46ch; }
.hero-full-copy .btn-row { margin-top: 32px; }
.btn-ghost-light { background: transparent; color: #f4f4f2; border-color: rgb(244 244 242 / .55); }
.btn-ghost-light:hover { background: #f4f4f2; color: #141414; border-color: #f4f4f2; }

/* Project cards (home feature grid + portfolio grid) */
.proj-card { display: block; text-decoration: none; }
.proj-card .media { margin: 0; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.proj-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.proj-card:hover .media img { transform: scale(1.04); }
.proj-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.proj-title { font-weight: 600; font-stretch: 108%; font-size: 1.15rem; letter-spacing: -.01em; }
.proj-tag { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) 16px; }
.feature-grid .f1 { grid-column: 1 / 8; }
.feature-grid .f2 { grid-column: 9 / 13; margin-top: 14%; }
.feature-grid .f3 { grid-column: 1 / 6; }
.feature-grid .f4 { grid-column: 7 / 13; margin-top: 10%; }
.feature-grid .f1 .media, .feature-grid .f4 .media { aspect-ratio: 5 / 4; }
.feature-grid .f2 .media, .feature-grid .f3 .media { aspect-ratio: 4 / 5; }
@media (max-width: 800px) {
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid .f1, .feature-grid .f2, .feature-grid .f3, .feature-grid .f4 { grid-column: auto; margin-top: 0; }
  .feature-grid .media { aspect-ratio: 4 / 3 !important; }
}

/* Portfolio filters + grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filters button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.proj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 20px; }
.cat-h { font-size: clamp(1.7rem, 3vw, 2.6rem); }

/* Project case study */
.project-hero { margin: 0; aspect-ratio: 21 / 9; max-height: 82vh; overflow: hidden; background: var(--surface); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .project-hero { aspect-ratio: 4 / 3; } }
.project-intro { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 800px) { .project-intro { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; gap: 20px; }
.facts > div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font-size: .78rem; font-weight: 600; font-stretch: 125%; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 500; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.project-photos { display: grid; gap: 16px; }
.project-photos figure { margin: 0; overflow: hidden; background: var(--surface); }
.project-photos img { width: 100%; }
.next-project { border-top: 1px solid var(--line); }
.next-link { display: grid; grid-template-columns: 1fr minmax(0, 340px); grid-template-rows: auto auto; gap: 8px 40px; align-items: end; padding-block: clamp(48px, 7vw, 96px); text-decoration: none; }
.next-label { grid-column: 1; color: var(--muted); font-weight: 500; }
.next-title { grid-column: 1; display: inline-flex; align-items: center; gap: 16px; font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 600; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.05; }
.next-title .ico { transition: transform .4s var(--ease); }
.next-link:hover .next-title .ico { transform: translateX(8px); }
.next-media { grid-column: 2; grid-row: 1 / span 2; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.next-link:hover .next-media img { transform: scale(1.05); }
@media (max-width: 700px) { .next-link { grid-template-columns: 1fr; } .next-media { grid-column: 1; grid-row: auto; } }

/* Reviews: horizontal snap strip */
.reviews { list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(84vw, 280px), 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.review { scroll-snap-align: start; background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.stars { color: var(--accent-text); letter-spacing: .15em; font-size: 1rem; }
.review blockquote { margin: 0; font-size: 1.08rem; line-height: 1.5; flex: 1; }
.review-by { display: grid; gap: 2px; }
.review-by span { color: var(--muted); font-size: .9rem; }

/* WhatsApp button (desktop) and quick-contact bar (phones) */
.wa-float { position: fixed; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 1.6rem; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.wa-float:hover { transform: translateY(-2px); }
.mbar { display: none; }
@media (max-width: 900px) {
  .wa-float { display: none; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .mbar a + a { border-left: 1px solid var(--line); }
  .mbar .mbar-primary { background: var(--accent); color: var(--on-accent); border-left: 0; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .hero-full { min-height: min(calc(100dvh - var(--header-h) - 56px), 760px); }
}

/* Header tucks away while scrolling down through photos, returns on scroll up */
.site-header { transition: border-color .3s, transform .35s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }

/* ===== White edition: dark footer only ===== */
.site-footer { --bg: #141414; --surface: #1c1c1b; --ink: #f4f4f2; --muted: #a8a8a3; --line: #2f2f2d; --logo-filter: invert(1); background: var(--bg); color: var(--ink); }
.site-footer .btn-ghost { color: var(--ink); }
.site-footer .social a { color: var(--ink); }
.surface { background: var(--surface); }
.site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); }

/* Smooth scrolling (Lenis, desktop only) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Hero and feature photos get room to drift for scroll depth */
.hero-full-media img { height: 110%; margin-top: -5%; will-change: transform; }
.feature-grid .media img { height: 110%; margin-top: -5%; }

/* Page fade between internal links */
body { transition: opacity .3s var(--ease); }
/* Logo curtain: between pages, and over a few signature photos */
.page-curtain { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #141413; color: #f4f4f2; transform: translateY(100%); visibility: hidden; pointer-events: none; }
.page-curtain svg, .img-curtain svg { width: clamp(56px, 7vw, 96px); height: auto; display: block; }
.page-curtain path, .img-curtain path { fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
body.is-leaving .page-curtain { visibility: visible; transform: none; transition: transform .55s cubic-bezier(.76, 0, .24, 1); }
body.is-leaving .page-curtain path { stroke-dashoffset: 0; fill-opacity: 1; transition: stroke-dashoffset .45s .2s ease, fill-opacity .25s .5s; }
html.curtain-in .page-curtain, html.curtain-out .page-curtain { visibility: visible; transform: none; }
html.curtain-in .page-curtain path, html.curtain-out .page-curtain path { stroke-dashoffset: 0; fill-opacity: 1; }
html.curtain-out .page-curtain { transform: translateY(-100%); transition: transform .8s cubic-bezier(.76, 0, .24, 1) .1s; }
[data-curtain] { position: relative; overflow: hidden; }
.img-curtain { display: none; }
html.js-motion .img-curtain { display: grid; place-items: center; position: absolute; inset: 0; z-index: 2; background: #141413; color: #f4f4f2; }
.feature-grid .media img { transition: none; }  /* GSAP drives these transforms; a CSS transition would lag them */
.wa-float { border: 1px solid rgb(255 255 255 / .22); }  /* stays visible over the dark footer */

/* ===== Editorial edition ===== */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
}
/* Headlines: capitals, with the closing phrase in lowercase italic of the same face */
.mix { text-transform: uppercase; font-weight: 600; letter-spacing: -.015em; line-height: 1.04; }
.mix em { text-transform: none; font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -.01em; }
.mix .line { padding-bottom: .12em; margin-bottom: -.12em; }   /* italic descenders (y, g, p) stay clear of the mask */
.hero-full-copy .mix { font-size: clamp(2.6rem, 5.6vw, 5.2rem); }

/* Hero: interior photo wipes to a finished house as you scroll (desktop) */
.hero-after { clip-path: inset(100% 0 0 0); }
.hero-after::after { display: none; }
.hero-wipe .hero-full-media:first-child::after { z-index: 1; }
.hero-wipe .hero-after { z-index: 0; }
.hero-wipe .hero-full-media:first-child { z-index: 0; }
.hero-full-media { pointer-events: none; }
.hero-wipe::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgb(12 12 12 / .78) 0%, rgb(12 12 12 / .32) 45%, rgb(12 12 12 / .04) 75%); }
.hero-wipe .hero-full-media::after { display: none; }
.hero-wipe .hero-full-copy { z-index: 2; }
.hero-tag { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: clamp(48px, 8vw, 96px); z-index: 2; margin: 0; display: grid; font-size: .8rem; font-weight: 600; font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; color: rgb(244 244 242 / .85); }
.hero-tag span { grid-area: 1 / 1; text-align: right; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.hero-tag .t2 { opacity: 0; transform: translateY(8px); }
.hero-wipe.is-after .hero-tag .t1 { opacity: 0; transform: translateY(-8px); }
.hero-wipe.is-after .hero-tag .t2 { opacity: 1; transform: none; }
@media (max-width: 1023px) { .hero-after, .hero-tag { display: none; } }

/* Projects strip: pinned horizontal pan on desktop, swipe row on phones */
.hstrip { padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 80px); overflow: hidden; }
.hstrip-head { display: flex; align-items: end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.hstrip-head .h2 { margin-right: auto; }
.hcount { margin: 0; font-size: 1.1rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.hcount b { color: var(--ink); font-weight: 600; }
.hstrip-viewport { padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hstrip-track { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2vw, 32px); width: max-content; }
.hstrip-track li { width: min(56vw, calc(52vh * 4 / 3)); flex: none; }  /* card + heading fit one screen while pinned */
.hstrip-track .media { aspect-ratio: 4 / 3; }
@media (max-width: 1023px) {
  .hstrip-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .hstrip-viewport::-webkit-scrollbar { display: none; }
  .hstrip-track li { width: min(82vw, 520px); scroll-snap-align: start; }
}

/* Key figures in large type */
.figs { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); }
.figs li { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--line); padding-top: 24px; }
.fig-n { font-size: clamp(4.5rem, 10vw, 9rem); font-weight: 600; font-stretch: 112%; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fig-n em { font-style: italic; font-weight: 300; color: var(--accent-text); }
.fig-l { color: var(--muted); max-width: 28ch; font-size: 1.05rem; }
@media (max-width: 760px) { .figs { grid-template-columns: 1fr; } }

/* Opening intro overlay (built by JS, first visit per session). Dark cover until JS takes over avoids a flash of the page. */
html.intro-pending body::after { content: ""; position: fixed; inset: 0; z-index: 199; background: #141414; }
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #141414; color: #f4f4f2; }
.intro-inner { display: grid; justify-items: center; gap: 28px; text-align: center; padding: 24px; }
.intro img { width: clamp(120px, 14vw, 180px); filter: invert(1); }
.intro p { margin: 0; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: .02em; overflow: hidden; }
.intro p span { display: block; }
.intro-skip { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: max(24px, env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 0 18px; background: transparent; color: #f4f4f2; border: 1px solid rgb(244 244 242 / .35); font-weight: 500; cursor: pointer; }
.intro-skip:hover { border-color: #f4f4f2; }

/* ===== Story edition: from a line to a space ===== */
/* Hero layers: photo (house) < interior (wipe) < sketch lines < scrim < copy */
.hero-story { background: var(--bg); --hero-ink: #f4f4f2; --scrim-o: 1; }
.hero-story .hero-full-media img { height: 100%; margin-top: 0; }
.hero-story .hero-photo, .hero-story .hero-after { z-index: 0; }
.hero-story::before { opacity: var(--scrim-o); }
.hero-lines { display: none; position: absolute; inset: 0; z-index: 1; pointer-events: none; color: #141414; }
.hero-lines svg { width: 100%; height: 100%; }
.hero-story .hero-full-copy { color: var(--hero-ink); }
.hero-story .hero-full-copy .lead { color: color-mix(in srgb, var(--hero-ink) 86%, transparent); }
.hero-story .btn-ghost-light { color: var(--hero-ink); border-color: color-mix(in srgb, var(--hero-ink) 55%, transparent); }
.hero-story .btn-ghost-light:hover { background: var(--hero-ink); color: #141414; }
.hero-story .hero-tag { color: color-mix(in srgb, var(--hero-ink) 85%, transparent); }
.hero-story .hero-tag .t0 { opacity: 0; }
.hero-story .hero-tag .t1 { opacity: 1; transform: none; }
.hero-story.is-after .hero-tag .t1 { opacity: 0; transform: translateY(-8px); }
html.js-motion .hero-story { --hero-ink: #141414; --scrim-o: 0; }
html.js-motion .hero-story .hero-photo { clip-path: inset(0% 100% 0% 0%); }
html.js-motion .hero-lines { display: block; }
html.js-motion .hero-lines line { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js-motion .hero-story .hero-tag .t0 { opacity: 1; }
html.js-motion .hero-story .hero-tag .t1 { opacity: 0; transform: translateY(8px); }
html.js-motion .hero-story.is-built .hero-tag .t0 { opacity: 0; transform: translateY(-8px); }
html.js-motion .hero-story.is-built .hero-tag .t1 { opacity: 1; transform: none; }
html.js-motion .hero-story.is-built.is-after .hero-tag .t1 { opacity: 0; transform: translateY(-8px); }
.hero-tag .t0 { grid-area: 1 / 1; text-align: right; transition: opacity .4s var(--ease), transform .4s var(--ease); }

/* The logo's open square frame as a bracket on section headings */
h2.mix { position: relative; padding-left: .6em; --b: 1; }
h2.mix::before { content: ""; position: absolute; left: 0; top: .06em; bottom: .14em; width: .34em; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: scaleY(var(--b)); transform-origin: top; }
h2.mix::after { content: ""; position: absolute; left: 0; bottom: .14em; width: 1.6em; height: 2px; background: currentColor; transform: scaleX(var(--b)); transform-origin: left; }
html.js-motion h2.mix { --b: 0; }

/* Reading line under the header traces progress down the page */
.read-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
html:not(.js-motion) .read-line { display: none; }

/* Footer finale: the mark draws itself */
.footer-cta { align-items: center; }
.footer-mark { width: clamp(64px, 7vw, 96px); flex: none; color: var(--ink); }
.footer-mark svg { width: 100%; height: auto; display: block; }
.footer-mark path, .intro .mono, .intro .word { fill: currentColor; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
html.js-motion .footer-mark path { fill-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }
.footer-cta .footer-title { margin-right: auto; }

/* Intro uses the vector logo */
.intro svg { width: clamp(180px, 20vw, 260px); height: auto; color: #f4f4f2; }

/* Photos open outward from a square frame, like the mark */
html.js-motion [data-clip] { clip-path: inset(14% 14% 14% 14%); }
.site-header:has(.nav.is-open) { background: var(--bg); }
