/* Family Affairs Studio
   The homepage opens on a cue stack: photographs are scenes, Go fires the next cue.
   Below it, the company's story in acts. As you scroll, each act fades up like a lighting cue.
   Rules: amber means live (the current cue, Go, the timer, house lights). Mono lives only in the stage console. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --stage: #000;
  --house: #0D0C0B;
  --fg: #F1EEE8;
  --muted: #8F897F;
  --unlit: #34312D;
  --line: rgba(241, 238, 232, 0.14);
  --live: #FFB547;
  --live-ink: #1A1206;

  --face: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --g: max(16px, 2.2vw);
  color-scheme: dark;
}
:root.house-up {
  --house: #EAE6DE;
  --fg: #161513;
  --muted: #6F695F;
  --unlit: #C9C2B6;
  --line: rgba(22, 21, 19, 0.16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--house); color: var(--fg);
  font-family: var(--face); font-optical-sizing: auto; font-size: 1.0625rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .6s ease, color .6s ease;
}
img { display: block; width: 100%; height: 100%; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; }

/* inline links in prose: an underline, nothing appended */
.prose a, .partners a, .also a, .src-line a, .legal-body a, .bio a, .fine a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}

/* ---------- top bar ---------- */
.bar { position: absolute; z-index: 10; inset: 0 0 auto 0; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1.5rem; padding: 1rem var(--g); color: #F1EEE8; }
.logo { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
.bar nav { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; column-gap: clamp(0.9rem, 1.8vw, 1.6rem); row-gap: .4rem; font-size: 0.9375rem; }
.bar nav a { opacity: .85; } .bar nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .25em; }
.house { display: inline-flex; align-items: center; column-gap: 0.55rem; border: 1px solid rgba(241,238,232,.35); border-radius: 999px; padding: 0.38rem 0.85rem 0.38rem 0.6rem; white-space: nowrap; transition: background-color .3s, color .3s; }
.house .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1px solid currentColor; transition: background-color .3s, box-shadow .3s; }
.house[aria-pressed="true"] { background: #F1EEE8; color: #161513; border-color: #F1EEE8; }
.house[aria-pressed="true"] .dot { background: var(--live); border-color: var(--live); box-shadow: 0 0 10px var(--live); }
@media (max-width: 1000px) { .bar nav a { display: none; } }
@media (max-width: 760px) { .house .lbl { display: none; } .house { padding: 0.5rem; } }

/* ---------- the stage ---------- */
.m { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.stage { position: relative; height: max(100svh, 560px); background: var(--stage); color: #F1EEE8; overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
@media (max-width: 760px) { .stage { height: max(88svh, 560px); } }
.scenes { position: absolute; inset: 0; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.scene.on { opacity: 1; }
.scene > picture { position: absolute; inset: 0; }
.scene img { object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (prefers-reduced-motion: no-preference) { .scene.on img { animation: drift 9s ease-out both; } @keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } } }
.scene.framed .bg img { filter: blur(48px) saturate(1.3); opacity: 0.42; transform: scale(1.2); animation: none; }
.scene.framed > .fg { inset: 0 clamp(0px, 9vw, 9rem) 0 auto; width: auto; height: 100%; aspect-ratio: 2 / 3; }
.scene.framed.landscape > .fg { inset: 13% clamp(0px, 9vw, 9rem) auto auto; height: auto; width: min(42vw, 620px); aspect-ratio: 800 / 623; }
@media (max-width: 760px) {
  .scene.framed > .fg { inset: 0; width: 100%; aspect-ratio: auto; }
  .scene.framed.landscape > .fg { inset: 16% 0 auto 0; width: 100%; aspect-ratio: 800 / 623; }
}
.dim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 38%, transparent 60%), linear-gradient(to bottom, rgba(0,0,0,.45), transparent 18%); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; transition: opacity .38s ease; }
.stage.out::after { opacity: 1; }

.console { grid-row: 2; position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 2rem; row-gap: 1.4rem; padding: 0 var(--g) 1.6rem; }
.readout { min-width: 0; }
.cue { display: flex; flex-wrap: wrap; column-gap: 1rem; row-gap: 0.25rem; color: rgba(241,238,232,.78); }
.cue span { white-space: nowrap; }
.cue span:empty { display: none; }
.cue .qn { color: var(--live); }
.cue .of { margin-left: -0.6rem; }
.cue .kind { color: var(--live-ink); background: var(--live); padding: 0 0.4rem; border-radius: 3px; }
.title { font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.8rem, 9.6vw, 9.5rem); line-height: 0.86; letter-spacing: -0.02em; margin: 0.5rem 0 0.7rem; text-wrap: balance; }
.title a:hover { color: var(--live); }
.r-by { font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(241,238,232,.85); text-wrap: balance; max-width: 40ch; }
.controls { display: grid; grid-auto-flow: column; column-gap: 0.5rem; align-items: center; }
.ctl { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; height: 2.6rem; min-width: 4.4rem; padding: 0 1rem; border: 1px solid rgba(241,238,232,.4); border-radius: 999px; transition: background-color .2s, border-color .2s; }
.ctl:hover { border-color: #F1EEE8; }
.ctl.go { background: var(--live); border-color: var(--live); color: var(--live-ink); min-width: 6.5rem; height: 3.4rem; font-size: 0.875rem; font-weight: 500; }
.ctl.go:hover { background: #FFC872; }
.hold[aria-pressed="true"] { background: rgba(241,238,232,.14); }
.ticks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: 0.15rem; row-gap: 0.2rem; }
.ticks button { padding: 0.25rem 0.45rem; border-radius: 4px; color: rgba(241,238,232,.5); }
.ticks button:hover { color: #F1EEE8; }
.ticks button[aria-current] { color: var(--live-ink); background: var(--live); }
.timer { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(241,238,232,.12); }
.timer span { display: block; height: 100%; background: var(--live); transform-origin: left; transform: scaleX(0); }
.held .timer span { opacity: 0; }
@media (max-width: 760px) { .console { grid-template-columns: 1fr; padding-bottom: 1.2rem; } .controls { justify-content: start; } .title { font-size: clamp(2.6rem, 14vw, 4.5rem); } }

/* ---------- acts ---------- */
.act { padding: clamp(5.5rem, 11vw, 10rem) var(--g) 0; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(1.5rem, 2.6vw, 2.4rem); }
.act > * { min-width: 0; }
.say { font-weight: 700; font-stretch: 78%; font-size: clamp(2.6rem, 7.4vw, 7.2rem); line-height: 0.92; letter-spacing: -0.025em; text-wrap: balance; }
.say .l { white-space: nowrap; }
.say.manifesto { max-width: 24ch; }
@media (max-width: 600px) { .say .l { white-space: normal; } }
.lead { font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; }
.prose { display: grid; row-gap: 1.1rem; max-width: 42rem; }
.prose p:not(.lead) { font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }
.narrow { max-width: 44rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); row-gap: 2.4rem; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

.does h3 { font-weight: 600; font-size: 1.05rem; color: var(--muted); padding-bottom: 0.6rem; border-bottom: 1px solid var(--fg); }
.practice { display: grid; }
.practice li { display: grid; row-gap: 0.15rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.practice b { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.practice span { color: var(--muted); font-size: 0.975rem; }

.ro { display: grid; margin-top: 1rem; }
.ro h3 { font-weight: 600; font-size: 1.05rem; color: var(--muted); padding: 2.2rem 0 0.6rem; border-bottom: 1px solid var(--fg); }
.table > li { display: grid; grid-template-columns: 4.5rem minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 1.25fr); column-gap: var(--g); align-items: baseline; padding: 0.9rem 0 1rem; border-bottom: 1px solid var(--line); }
.table .yr, .table .by, .table .d { color: var(--muted); font-size: 0.975rem; font-variant-numeric: tabular-nums; }
.table .w { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
.table .w a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.table .w a:hover { background-size: 100% 1px; }
@media (max-width: 860px) {
  .table > li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.3rem; }
  .table .w { grid-column: 1; grid-row: 1; } .table .yr { grid-column: 2; grid-row: 1; }
  .table .by, .table .d { grid-column: 1 / -1; }
}

.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0.4rem; }
.engines > div { display: grid; row-gap: 0.8rem; align-content: start; padding: 1.3rem clamp(1rem, 2vw, 1.8rem) 0 0; border-top: 1px solid var(--fg); }
.engines > div + div { padding-left: clamp(1rem, 2vw, 1.8rem); border-left: 1px solid var(--line); }
.engines h3 { font-weight: 700; font-stretch: 78%; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 0.95; letter-spacing: -0.02em; }
.engines h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.engines p { font-size: 1.05rem; line-height: 1.5; max-width: 34ch; }
@media (max-width: 860px) { .engines { grid-template-columns: 1fr; row-gap: 1.6rem; } .engines > div + div { padding-left: 0; border-left: 0; } }
.plate { display: grid; row-gap: 0.6rem; }
.plate picture { overflow: hidden; background: var(--stage); }
.plate img { object-fit: cover; object-position: var(--pos, 50% 50%); aspect-ratio: 3 / 2; }
.plate figcaption { color: var(--muted); font-size: 0.875rem; }
.plate.wide { margin: 0.6rem calc(-1 * var(--g)) 0.4rem; }
.plate.wide img { aspect-ratio: auto; height: min(56vw, 82svh); min-height: 320px; }
.plate.wide figcaption { padding: 0 var(--g); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 4vw, 4rem); row-gap: 2rem; align-items: end; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.diptych { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--g); row-gap: 1.6rem; margin-bottom: 1rem; }
.diptych img { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .diptych { grid-template-columns: 1fr; } }
.door { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 5vw, 5rem); row-gap: 2rem; align-items: center; }
.door .plate { order: -1; }
.door .plate img { aspect-ratio: 4 / 5; }
.door-text { display: grid; row-gap: 1.6rem; align-content: start; container-type: inline-size; }
.door-text .mail { font-size: clamp(2rem, 11.2cqi, 7rem); }
.door .tracks { grid-template-columns: 1fr; margin-top: 0.6rem; }
@media (max-width: 860px) { .door { grid-template-columns: 1fr; } .door .plate { order: 0; } .door .plate img { aspect-ratio: 4 / 3; } }
.partners { margin-top: clamp(2rem, 5vw, 4rem); display: grid; row-gap: 0.9rem; }
.partners h3 { font-weight: 600; font-size: 1.05rem; color: var(--muted); padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.billing { font-weight: 700; font-stretch: 75%; font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; max-width: 60rem; }
.billing span { white-space: nowrap; margin-right: 0.75em; }
.billing span:last-child { margin-right: 0; }

.notices { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(2rem, 5vw, 5rem); row-gap: 3rem; margin-top: 0.6rem; align-items: start; }
@media (max-width: 900px) { .notices { grid-template-columns: 1fr; } }
.notice { display: grid; row-gap: 1rem; border-top: 1px solid var(--fg); padding-top: 1.1rem; }
.notice h3 { font-weight: 700; font-stretch: 78%; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; }
.stars { font-size: 1.1rem; letter-spacing: 0.12em; }
.stars span { letter-spacing: 0; color: var(--muted); font-size: 0.975rem; margin-left: 0.4rem; }
.notice blockquote { margin: 0; }
.notice.cc blockquote p { font-weight: 600; font-stretch: 85%; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.notice.cc blockquote.second p { font-size: clamp(1.5rem, 2.4vw, 2.2rem); color: var(--muted); }
.src-line, .also { color: var(--muted); font-size: 0.975rem; }
.press li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.2rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.press .q { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.3; text-wrap: balance; }
.press .src { color: var(--muted); font-size: 0.9rem; white-space: nowrap; text-align: right; }
.press .src:hover { color: var(--fg); }
@media (max-width: 600px) { .press li { grid-template-columns: 1fr; row-gap: 0.2rem; } .press .src { text-align: left; } }
.next { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.01em; margin-top: 1rem; max-width: 50rem; }
.next > span:first-child { color: var(--muted); margin-right: 0.6rem; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g); row-gap: 2.6rem; margin-top: 0.6rem; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
.card { display: grid; row-gap: 0.35rem; align-content: start; }
.card picture { margin-bottom: 0.6rem; overflow: hidden; }
.card img { aspect-ratio: 1; object-fit: cover; }
.card h3 { font-weight: 700; font-stretch: 85%; font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.015em; }
.card .role { font-size: 0.975rem; }
.card .bio { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.stagedoor { padding-bottom: clamp(4rem, 8vw, 7rem); }
.mail { justify-self: start; font-weight: 800; font-stretch: 75%; font-size: clamp(2.2rem, 8.4vw, 8.6rem); line-height: 0.9; letter-spacing: -0.02em; white-space: nowrap; }
.mail:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.1em; }
@media (max-width: 420px) { .mail { white-space: normal; overflow-wrap: anywhere; } }
.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); row-gap: 1.6rem; margin-top: 1rem; }
.tracks div { display: grid; row-gap: 0.4rem; align-content: start; border-top: 1px solid var(--line); padding-top: 1rem; }
.tracks dt { font-weight: 600; font-size: 1.15rem; }
.tracks dd { font-size: 1.02rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 860px) { .tracks { grid-template-columns: 1fr; } }
.fine { color: var(--muted); font-size: 0.95rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 1.4rem var(--g) 2rem; display: grid; row-gap: 0.8rem; color: var(--muted); font-size: 0.95rem; }
.foot ul { display: flex; flex-wrap: wrap; column-gap: 1.4rem; row-gap: 0.4rem; color: var(--fg); }
.foot .legal-links { color: var(--muted); }
.foot li { white-space: nowrap; }
.foot a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- legal pages ---------- */
.legal { padding: 8rem var(--g) 5rem; display: grid; row-gap: 1rem; }
.legal .say { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.updated { color: var(--muted); }
.legal-body { max-width: 42rem; display: grid; row-gap: 1rem; margin-top: 1.5rem; }
.legal-body h2 { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; margin-top: 1.4rem; }
.legal-body p { font-size: 1.075rem; line-height: 1.6; }
.legal ~ .foot, .legal + .foot { margin-top: 0; }
body:has(.legal) .bar { position: relative; color: var(--fg); }
body:has(.legal) .house { border-color: var(--line); }
body:has(.legal) .legal { padding-top: 4rem; }

/* ---------- lighting cues on scroll ----------
   Each photograph opens like a follow spot as it reaches the reader.
   Unlit states apply only under .motion, which the script adds when motion is welcome, so the page is fully lit without it. */
.motion .iris picture { clip-path: circle(7% at var(--at, 50% 50%)); filter: brightness(.3) saturate(.4); transition: clip-path 1.7s cubic-bezier(.75, 0, .2, 1), filter 2.2s ease .3s; }
.motion .iris img { transform: scale(1.14); transition: transform 2.8s cubic-bezier(.2, .6, .2, 1); }
.motion .iris figcaption { opacity: 0; transition: opacity .8s ease 1.4s; }
.motion .iris.lit picture { clip-path: circle(125% at var(--at, 50% 50%)); filter: none; }
.motion .iris.lit img { transform: none; }
.motion .iris.lit figcaption { opacity: 1; }
.motion .diptych .iris + .iris picture, .motion .diptych .iris + .iris img { transition-delay: .35s; }

.nw { white-space: nowrap; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pull { display: grid; row-gap: 1.2rem; margin: clamp(1.5rem, 4vw, 3.5rem) 0 1rem; }
.pull blockquote { margin: 0; }
.pull blockquote p { font-weight: 700; font-stretch: 78%; font-size: clamp(2.4rem, 5.6vw, 5.4rem); line-height: 0.95; letter-spacing: -0.025em; text-wrap: balance; max-width: 18ch; }
.pull figcaption { color: var(--muted); font-size: 0.975rem; }
.pull figcaption a { color: var(--fg); }
