/* Layout: Iron Press brand — charcoal and black grounds, light grey panels, red #B52025 accent with greys only; Fraunces stands in for Recoleta, full-bleed hero with moving canvas, serif italics for emphasis, numbered carousel, five-row accordion. Single dark theme by design. */
:root {
  --bg: #1c1c1d;
  --fg: #f1f0ee;
  --muted: #a6a5a7;
  --line: #3a393b;
  --soft: #262627;
  --accent: #b52025;
  --accent-ink: #ffffff;
  --teal: #8f8e91;
  --night: #121212;
  --night-fg: #f1f0ee;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.55 var(--sans); padding-inline: 0; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.gutter { padding-inline: clamp(1rem, 4vw, 3.5rem); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
p { margin: 0; }
em, .it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.02em; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.paren { font-family: var(--serif); font-style: italic; color: var(--muted); }

/* Header: inverts over whatever is behind it */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto 0; padding-top: env(safe-area-inset-top, 0px); color: #fff; mix-blend-mode: difference; pointer-events: none; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.site-header a, .site-header button { pointer-events: auto; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none; }
.brand sup { font-size: .55em; font-weight: 500; }
.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a { text-decoration: none; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; 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 .pill { border: 1px solid currentColor; border-radius: 999px; padding: .5rem 1rem; }
.nav .pill::after { display: none; }
.menu-btn { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
}
/* Mobile menu overlay */
.overlay { position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--night-fg); display: grid; align-content: center; gap: .5rem; padding: 2rem clamp(1rem, 4vw, 3.5rem); clip-path: circle(0% at calc(100% - 3rem) 2.5rem); transition: clip-path .8s var(--ease); }
.overlay.open { clip-path: circle(150% at calc(100% - 3rem) 2.5rem); }
.overlay a { font-size: clamp(2.5rem, 12vw, 4.5rem); font-weight: 500; letter-spacing: -0.04em; text-decoration: none; line-height: 1.05; }
.overlay a:hover { font-family: var(--serif); font-style: italic; }
.overlay .close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 1.1rem); right: clamp(1rem, 4vw, 3.5rem); background: none; color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: .5rem 1rem; font: inherit; cursor: pointer; }

/* Buttons */
.btn { --b: var(--fg); display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.4rem; border-radius: 999px; border: 1px solid var(--b); color: var(--b); background: transparent; text-decoration: none; font: 500 .95rem/1 var(--sans); cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.solid::before { background: var(--fg); }
.btn.solid:hover { color: var(--bg); border-color: var(--fg); }
.on-night .btn { --b: var(--night-fg); }

/* Hero */
.hero { position: relative; background: var(--night); color: var(--night-fg); min-height: min(92vh, 58rem); display: grid; place-items: center; text-align: center; overflow: hidden; padding-block: 8rem 6rem; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 0 30%, rgba(0,0,0,.65) 85%); }
.hero .inner { position: relative; display: grid; gap: 1.75rem; justify-items: center; max-width: 64rem; }
.hero h1 { font-size: clamp(2.8rem, 8.2vw, 7.6rem); }
.hero p { color: color-mix(in srgb, var(--night-fg) 72%, transparent); max-width: 42ch; font-size: 1.1rem; }
.hero .eyebrow { color: color-mix(in srgb, var(--night-fg) 70%, transparent); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; display: grid; justify-items: center; gap: .6rem; color: color-mix(in srgb, var(--night-fg) 60%, transparent); }
.scroll-cue i { width: 1px; height: 42px; background: color-mix(in srgb, var(--night-fg) 25%, transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--night-fg); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Page hero for inner pages */
.page-hero { padding-block: clamp(7rem, 16vw, 11rem) clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1.5rem; }
.page-hero h1 { font-size: clamp(3rem, 10vw, 9rem); }
.page-hero p { color: var(--muted); max-width: 48ch; font-size: 1.15rem; }

/* Manifesto */
.manifesto { padding-block: clamp(5rem, 12vw, 10rem); text-align: center; display: grid; justify-items: center; gap: 2rem; }
.manifesto .label { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.manifesto p.big { font-size: clamp(1.7rem, 4.2vw, 3.6rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 24ch; font-weight: 500; }
.manifesto p.big .w { opacity: var(--o, 1); transition: opacity .25s linear; }
.manifesto .bracket { font-family: var(--serif); font-style: italic; color: var(--accent); }

/* Section heads */
.sec { padding-block: clamp(4rem, 9vw, 7.5rem); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(2.4rem, 6.5vw, 5.5rem); }
.controls { display: flex; align-items: center; gap: .75rem; }
.count { font-variant-numeric: tabular-nums; font-size: .95rem; color: var(--muted); min-width: 4.5rem; text-align: right; }
.count b { color: var(--fg); font-weight: 500; }
.round { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.round:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Carousel */
.carousel { display: flex; gap: clamp(1rem, 2vw, 1.75rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: clamp(1rem, 4vw, 3.5rem); scroll-padding-inline: clamp(1rem, 4vw, 3.5rem); cursor: grab; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.dragging a { pointer-events: none; }
.slide { flex: 0 0 min(78vw, 46rem); scroll-snap-align: start; text-decoration: none; display: grid; gap: 1rem; }
.slide .meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; }
.slide .num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--muted); }
.slide h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.slide .tags { color: var(--muted); font-size: .9rem; text-align: right; }
.progress { height: 1px; background: var(--line); margin-top: 2rem; position: relative; }
.progress span { position: absolute; inset: 0 auto 0 0; background: var(--fg); width: calc(var(--p, 0) * 100%); transition: width .2s linear; }

/* Covers (generated artwork in place of photography) */
.cover { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--c1); border-radius: 4px; }
.cover.tall { aspect-ratio: 4 / 5; }
.cover .art { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.slide:hover .cover .art, .card:hover .cover .art { transform: scale(1.06); }
.cover .view { position: absolute; left: 50%; top: 50%; width: 6.5rem; height: 6.5rem; margin: -3.25rem 0 0 -3.25rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .9rem; font-weight: 500; transform: scale(0); transition: transform .6s var(--ease); }
.slide:hover .view, .card:hover .view { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .has-cursor .cover .view { display: none; } }
.art.sun { background: radial-gradient(circle at 50% 62%, var(--c2) 0 22%, transparent 22.5%), linear-gradient(transparent 62%, var(--c3) 62% 62.6%, transparent 62.6%); }
.art.stripes { background: repeating-linear-gradient(-35deg, var(--c2) 0 18px, transparent 18px 44px); }
.art.arch { background: radial-gradient(ellipse 28% 48% at 50% 100%, var(--c2) 0 98%, transparent 100%); }
.art.grid { background: radial-gradient(circle, var(--c2) 0 6px, transparent 6.5px) 0 0 / 34px 34px; }
.art.tin { background: linear-gradient(var(--c2), var(--c2)) 50% 55% / 26% 62% no-repeat, linear-gradient(var(--c3), var(--c3)) 50% 32% / 26% 3px no-repeat; }
.art.fold { background: conic-gradient(from 45deg at 50% 50%, var(--c2) 0 25%, transparent 25% 50%, var(--c2) 50% 75%, transparent 75%); }

/* Inline list of all project names */
.namelist { font-size: clamp(1.6rem, 4.4vw, 3.4rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; }
.namelist a { text-decoration: none; transition: color .3s; }
.namelist a:hover { font-family: var(--serif); font-style: italic; color: var(--accent); }
.namelist .dot { color: var(--muted); padding-inline: .35em; }
.namelist:hover a:not(:hover) { color: var(--muted); }

/* Territories accordion */
.terr { border-top: 1px solid var(--line); }
.terr-item { border-bottom: 1px solid var(--line); }
.terr-btn { width: 100%; display: grid; grid-template-columns: 4rem minmax(0, 1fr) 2.5rem; align-items: center; gap: 1rem; padding-block: clamp(1.1rem, 2.4vw, 1.8rem); background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative; }
.terr-btn .n { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.2rem; }
.terr-btn .t { font-size: clamp(1.8rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; transition: transform .6s var(--ease); }
.terr-btn .plus { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .6s var(--ease), background .3s, color .3s; }
.terr-btn:hover .t { transform: translateX(.6rem); }
.terr-item.open .plus { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.terr-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.terr-item.open .terr-body { grid-template-rows: 1fr; }
.terr-body > div { overflow: hidden; }
.terr-inner { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2rem; padding-bottom: 2rem; }
.terr-inner p { grid-column: 2; color: var(--muted); max-width: 46ch; }
.terr-inner ul { grid-column: 3; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-content: start; }
.terr-inner li { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-size: .9rem; }
@media (max-width: 760px) {
  .terr-btn { grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; }
  .terr-inner { grid-template-columns: 1fr; }
  .terr-inner p, .terr-inner ul { grid-column: 1; }
}

/* Client wordmark marquee */
.logos { border-block: 1px solid var(--line); padding-block: 2rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos .track { display: flex; width: max-content; gap: 4.5rem; animation: marq 36s linear infinite; padding-right: 4.5rem; }
.logos:hover .track { animation-play-state: paused; }
.logos span { font-size: 1.6rem; white-space: nowrap; color: var(--muted); transition: color .3s; }
.logos span:hover { color: var(--fg); }
.logos .f1 { font-weight: 800; letter-spacing: -0.04em; }
.logos .f2 { font-family: var(--serif); font-style: italic; font-size: 1.9rem; }
.logos .f3 { font-weight: 400; text-transform: uppercase; letter-spacing: .25em; font-size: 1.1rem; }
.logos .f4 { font-weight: 600; text-transform: lowercase; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Big CTA */
.cta { background: var(--night); color: var(--night-fg); text-align: center; padding-block: clamp(6rem, 14vw, 11rem); display: grid; justify-items: center; gap: 2.5rem; border-radius: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 0 0; }
.cta h2 { font-size: clamp(2.8rem, 9vw, 8rem); max-width: 12ch; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-fg); padding-block: 3rem 1.5rem; overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid color-mix(in srgb, var(--night-fg) 15%, transparent); }
.foot-cols h4 { margin: 0 0 .9rem; font-weight: 400; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: color-mix(in srgb, var(--night-fg) 60%, transparent); }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--accent); }
.wordmark { font-size: clamp(4rem, 19vw, 19rem); font-weight: 700; letter-spacing: -0.06em; line-height: .8; padding-top: 2rem; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--night-fg) 35%, transparent); transition: color .8s var(--ease); }
.wordmark:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: color-mix(in srgb, var(--night-fg) 55%, transparent); padding-top: 1.5rem; }

/* Projects page grid */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip { font: 500 .9rem/1 var(--sans); padding: .65rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip sup { font-size: .7em; margin-left: .2em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 3.5rem 1.75rem; }
.card { text-decoration: none; display: grid; gap: 1rem; min-width: 0; }
.card:nth-child(even) { margin-top: 5rem; }
@media (max-width: 860px) { .card:nth-child(even) { margin-top: 0; } }
.card .meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; }
.card .num { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.2rem; }
.card h3 { font-size: 1.8rem; }
.card .tags { color: var(--muted); font-size: .9rem; }
.grid.swap .card { animation: card-in .8s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes card-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Project detail */
.detail-hero { padding-block: clamp(7rem, 15vw, 10rem) 2.5rem; display: grid; gap: 1.5rem; }
.detail-hero h1 { font-size: clamp(3rem, 9.5vw, 8.5rem); }
.detail-hero .lede { font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 40ch; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1rem; }
.facts dt { font-family: var(--serif); font-style: italic; color: var(--muted); }
.facts dd { margin: .2rem 0 0; }
.detail-cover { padding-inline: clamp(1rem, 4vw, 3.5rem); }
.detail-cover .cover { aspect-ratio: 21 / 9; border-radius: 6px; }
@media (max-width: 760px) { .detail-cover .cover { aspect-ratio: 4 / 3; } }
.chapters { display: grid; gap: clamp(3rem, 6vw, 5rem); padding-block: clamp(4rem, 9vw, 7rem); }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 3rem; }
.chapter h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.chapter p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 52ch; }
@media (max-width: 760px) { .chapter { grid-template-columns: 1fr; } }
.swatches { display: flex; gap: .4rem; }
.swatch { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line); }
.next-proj { display: grid; gap: 1rem; text-decoration: none; text-align: center; justify-items: center; padding-block: clamp(5rem, 12vw, 9rem); border-top: 1px solid var(--line); }
.next-proj .label { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.2rem; }
.next-proj .t { font-size: clamp(2.6rem, 9vw, 8rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; transition: color .4s; }
.next-proj:hover .t { color: var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; background: var(--soft); border-radius: 6px; position: relative; overflow: hidden; }
.portrait::before { content: ""; position: absolute; left: 50%; top: 24%; width: 34%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--fg); opacity: .9; }
.portrait::after { content: ""; position: absolute; left: 50%; bottom: -20%; width: 72%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--fg); opacity: .9; }
.portrait span { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; font-size: .8rem; color: var(--bg); }
.about-copy { display: grid; gap: 1.5rem; }
.about-copy p.big { font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.025em; font-weight: 500; }
.about-copy p { color: var(--muted); max-width: 56ch; font-size: 1.1rem; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 22rem; } }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), background .3s; }
.row:hover { padding-inline: 1rem; background: var(--soft); }
.row .yr { font-variant-numeric: tabular-nums; color: var(--muted); }
.row .role { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
.row .where { color: var(--muted); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: .25rem; } }
.tagcloud { display: flex; flex-wrap: wrap; gap: .6rem; }
.tagcloud span { border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.1rem; font-size: 1rem; transition: background .3s, color .3s; }
.tagcloud span:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: clamp(4rem, 9vw, 7rem); }
.contact-side { display: grid; gap: 2rem; }
.mail { font-size: clamp(1.5rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; font-weight: 500; word-break: break-all; user-select: all; }
.side-list { display: grid; gap: .35rem; }
.side-list .k { font-family: var(--serif); font-style: italic; color: var(--muted); }
form { display: grid; gap: 1.75rem; }
.field { display: grid; gap: .3rem; }
.field label { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.05rem; }
.field input, .field textarea { font: 500 clamp(1.15rem, 2vw, 1.5rem)/1.3 var(--sans); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .5rem 0 .8rem; width: 100%; border-radius: 0; transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { min-height: 7rem; resize: vertical; }
.pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label { font: 500 .95rem/1 var(--sans); font-style: normal; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.1rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.pick input:checked + label { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
legend { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.05rem; padding: 0; margin-bottom: .6rem; }
.note { font-size: .9rem; color: var(--muted); }
.ok { border-left: 2px solid var(--accent); padding: .75rem 1rem; background: var(--soft); }
.ok code { font-family: inherit; font-weight: 600; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Motion helpers */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 150ms); }
@keyframes rise { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
.fade-up { animation: fade-up 1.1s var(--ease) both; animation-delay: var(--d, .5s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.reveal { transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.pending { transform: translateY(48px); opacity: .2; }
body { animation: page-in .6s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.curtain { position: fixed; inset: 0; z-index: 80; background: var(--night); transform: translateY(100%); pointer-events: none; visibility: hidden; }
.curtain.go { visibility: visible; transform: translateY(0); transition: transform .55s var(--ease); }

/* Custom cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-size: 0; font-weight: 500; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), font-size .3s; will-change: transform; }
.cursor.big { width: 92px; height: 92px; margin: -46px 0 0 -46px; font-size: .9rem; }
.cursor.hide { width: 0; height: 0; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pending { transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* Project artwork shows muted until hovered */
.cover { filter: grayscale(.85) brightness(.85); transition: filter .8s var(--ease); }
.slide:hover .cover, .card:hover .cover, .detail-cover .cover { filter: none; }
.sec.alt { background: var(--soft); }
.btn.solid::before { background: var(--fg); }
.btn.solid:hover { color: var(--bg); }

/* Contrast bands: light grey and mid grey sections between the blacks */
.light {
  --bg: #dcdcdc; --fg: #1c1c1d; --muted: #555456; --line: #bcbcbc; --soft: #ebebeb;
  --accent: #b52025; --accent-ink: #ffffff;
  background: var(--bg); color: var(--fg); color-scheme: light;
}
.mid {
  --bg: #414042; --soft: #4b4a4c; --line: #58575a; --muted: #c6c5c7;
  background: var(--bg); color: var(--fg);
}
.light .round { background: transparent; }
.light .portrait::before, .light .portrait::after { background: var(--fg); }
.band-round { border-radius: clamp(1.25rem, 3vw, 2.5rem); margin-inline: clamp(.5rem, 1.5vw, 1rem); }
.cursor { background: #ffffff; color: #000; mix-blend-mode: difference; }
.cursor.big { background: #ffffff; }

/* Brand assets */
.brand { display: block; line-height: 0; }
.brand img { height: 2.4rem; width: auto; display: block; }
.eyebrow::before { background: var(--accent); }
.hero h1 em { color: var(--accent); }
.manifesto .bracket { color: var(--accent); }
.light .manifesto .bracket, .manifesto.light .bracket { color: var(--accent); }
.badge { position: absolute; width: clamp(6.5rem, 12vw, 10rem); aspect-ratio: 1; pointer-events: none; animation: spin-badge 28s linear infinite; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.badge img { width: 100%; height: 100%; object-fit: contain; }
@keyframes spin-badge { to { transform: rotate(360deg); } }
.hero .badge { right: clamp(1rem, 5vw, 4rem); bottom: clamp(2rem, 7vw, 5rem); }
.cta { position: relative; overflow: hidden; }
.cta .badge { left: clamp(1rem, 6vw, 5rem); top: clamp(1.5rem, 5vw, 3.5rem); width: clamp(5rem, 9vw, 7.5rem); animation-direction: reverse; }
@media (max-width: 640px) { .hero .badge { width: 5.5rem; bottom: 4.5rem; } .cta .badge { display: none; } }
.foot-logo { padding-top: 3rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.foot-logo img { width: min(100%, 34rem); height: auto; display: block; }
.foot-logo .tag { font-family: var(--serif); font-style: italic; color: color-mix(in srgb, var(--night-fg) 60%, transparent); font-size: clamp(1.1rem, 2vw, 1.6rem); writing-mode: horizontal-tb; }
.portrait.brandmark { background: var(--accent); display: grid; place-items: center; }
.portrait.brandmark::before, .portrait.brandmark::after { display: none; }
.portrait.brandmark img { width: 72%; height: auto; animation: spin-badge 40s linear infinite; }
.portrait.brandmark span { color: #fff; }
.palette-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.palette-row span { flex: 1 1 6rem; height: 3rem; border-radius: 4px; }

/* AI showreel */
.reel-sec { padding-block: clamp(4rem, 9vw, 7rem); }
.reel { position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: clamp(.75rem, 2vw, 1.5rem); overflow: hidden; background: var(--night); cursor: pointer; color: #fff; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease), filter .6s; filter: brightness(.8); }
.reel:hover video { transform: scale(1.06); filter: brightness(.65); }
.reel-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(6rem, 12vw, 9rem); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; align-content: center; gap: .4rem; font: 500 .9rem/1 var(--sans); transition: transform .6s var(--ease); }
.reel:hover .reel-play { transform: translate(-50%, -50%) scale(1.1); }
.reel-play .tri { width: 0; height: 0; border-left: 1rem solid #fff; border-block: .65rem solid transparent; margin-left: .25rem; }
.reel-tag { position: absolute; left: 1.25rem; bottom: 1rem; font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.3rem); }
.reel-note { margin-top: 1rem; color: var(--muted); max-width: 60ch; }
.reel-modal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); padding-top: calc(env(safe-area-inset-top, 0px) + 4rem); }
.reel-modal video { width: min(100%, 1280px); max-height: 80vh; border-radius: 8px; background: #000; }
.reel-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 1rem); right: clamp(1rem, 4vw, 3rem); background: none; color: #fff; border: 1px solid #fff; border-radius: 999px; padding: .55rem 1.1rem; font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .reel video { transform: none; } }
.cover.has-img { filter: none; }
.cover.has-img .art { width: 100%; height: 100%; object-fit: cover; }

[hidden] { display: none !important; }

.portrait.photo { background: #0d1418; }
.portrait.photo::before, .portrait.photo::after { display: none; }
.portrait.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; display: block; transition: transform 1.4s var(--ease); }
.portrait.photo:hover img { transform: scale(1.03); }
