:root {
  --paper: #ece4d4;
  --paper-2: #e4d9c4;
  --ink: #1c1a18;
  --ink-soft: #4a4540;
  --blueprint: #1f3a7a;
  --blueprint-line: rgba(236, 228, 212, .09);
  --blueprint-line-strong: rgba(236, 228, 212, .18);
  --chalk: #ece4d4;
  --terracotta: #b5573b;
  --sun: #e2a457;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
main > section { scroll-margin-top: 56px; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* paper grain over everything, multiplied in */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 50; mix-blend-mode: multiply; opacity: .45;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .24  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, box-shadow .3s; }
.nav a { text-decoration: none; }
.nav .mark { font-weight: 500; }
.nav .links { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav .links a { border-bottom: 1px solid transparent; }
.nav .links a:hover { border-color: currentColor; }
.nav.solid { background: rgba(236, 228, 212, .92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(28, 26, 24, .12); }
/* the nav waits for the intro, like the rest of the hero ui */
.nav { opacity: 0; }
body.intro-done .nav, .nav.solid { opacity: 1; transition: opacity 1.2s, background .3s; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(60, 45, 30, .16) 100%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.noscript-name { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 18vw; }
.hero-ui { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 6vh, 56px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  opacity: 0; transform: translateY(8px); transition: opacity 1.2s ease, transform 1.2s ease; pointer-events: none; }
.hero.intro-done .hero-ui { opacity: 1; transform: none; pointer-events: auto; }
.tag-line { font-style: italic; font-weight: 500; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.05; }
.tag-sub { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.replay, .scroll-cue { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink); background: none; padding: 9px 14px; cursor: pointer; text-decoration: none; }
.replay { border-color: transparent; color: var(--ink-soft); }
.replay:hover { color: var(--ink); }
.scroll-cue:hover { background: var(--ink); color: var(--paper); }

/* ---------- section heads ---------- */
.section-head h2 { font-weight: 600; font-size: clamp(40px, 6vw, 80px); line-height: .98; letter-spacing: -.01em; margin-top: 12px; }
.lede { margin-top: 18px; max-width: 46ch; font-size: 22px; }

/* ---------- work: the blueprint sheet ---------- */
.blueprint { position: relative; background-color: var(--blueprint); color: var(--chalk);
  background-image:
    linear-gradient(var(--blueprint-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line-strong) 1px, transparent 1px),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.work { padding: clamp(96px, 14vh, 160px) 0 clamp(120px, 16vh, 180px); }
.work .lede { color: rgba(236, 228, 212, .82); }
.sheet-corner { position: absolute; top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; opacity: .6; }
.sheet-corner.tl { left: var(--gutter); } .sheet-corner.tr { right: var(--gutter); }
.title-block { position: absolute; right: var(--gutter); bottom: 28px; display: grid; grid-template-columns: auto auto;
  border: 1px solid var(--blueprint-line-strong); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }
.title-block > * { padding: 5px 10px; border-bottom: 1px solid var(--blueprint-line-strong); }
.title-block span { opacity: .6; border-right: 1px solid var(--blueprint-line-strong); }
.title-block b { font-weight: 500; }
.title-block > :nth-last-child(-n+2) { border-bottom: 0; }

.cards { margin-top: clamp(48px, 7vh, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.card { background: var(--accent); color: var(--ink); display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .15), 0 24px 48px -28px rgba(0, 0, 0, .55); transition: transform .35s ease; }
.card:hover { transform: translateY(-4px) rotate(-.3deg); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1.5px solid var(--ink); background: rgba(28, 26, 24, .08); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, rgba(28, 26, 24, .16) 0 1.5px, transparent 1.5px 11px); }
.placeholder span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--accent); border: 1.5px solid var(--ink); padding: 8px 14px; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.kicker span { opacity: .55; margin-right: 6px; }
.card h3 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; line-height: 1; }
.blurb { font-size: 19px; line-height: 1.4; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tags li { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(28, 26, 24, .5); padding: 4px 8px; }
.card-link { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; align-self: flex-start;
  text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }

/* ---------- about: warm editorial ---------- */
.about { background: var(--paper-2); padding: clamp(96px, 14vh, 160px) 0; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about .label { color: var(--terracotta); }
.about-text p + p { margin-top: 16px; }
.about-text { font-size: 22px; }
.facts { margin-top: 32px; border-top: 1.5px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 120px 1fr; padding: 12px 0; border-bottom: 1px solid rgba(28, 26, 24, .2); }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); padding-top: 5px; }
.why { margin-top: 40px; padding: 22px 24px; border-left: 3px solid var(--terracotta); background: rgba(181, 87, 59, .07); }
.why p:last-child { margin-top: 8px; font-style: italic; }

/* ---------- contact: terracotta ---------- */
.contact { background: var(--terracotta); color: var(--paper); padding: clamp(96px, 14vh, 150px) 0; }
.contact h2 { font-weight: 600; font-size: clamp(56px, 10vw, 140px); line-height: .9; margin-top: 12px; }
.contact-line { margin-top: 24px; font-family: var(--mono); font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .06em; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 22px var(--gutter); background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- phone ---------- */
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .title-block { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero-ui { flex-direction: column; align-items: flex-start; }
  .hero-actions { width: 100%; justify-content: space-between; }
  .sheet-corner.tr { display: none; }
  .facts div { grid-template-columns: 96px 1fr; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .hero-ui, .nav { transition: none; }
}
