/* Yah-Man Productions — Night Seal (approved views-v12). Self-hosted fonts: Geist 600 + IBM Plex Sans 400/500/600 (both SIL OFL 1.1; see assets/fonts/*-OFL.txt). */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/Geist-SemiBold-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #0C0C0C; --surface: #161616; --text: #F3F1EC; --primary: #FFFFFF;
  --accent: #C4A574; --muted: #8C8C88; --rule: #2A2A2A; --link-line: #5A5A56; --field-focus: #C4A574;
  --font-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  /* u = 1px at >=1440px wide, scales down proportionally to the 900px breakpoint */
  --u: min(1px, 100vw / 1440);
  --pad: max(calc(72 * var(--u)), calc((100vw - 1440px) / 2 + 72px));
  --header-h: 64px; --logo: 36px; --legal-h: 40px;
  --nav-gap: 52px; --nav-size: 12px; --nav-track: 0.12em;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; position: relative;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* Restrained brass grid — very low opacity, slow drift */
.motif {
  pointer-events: none; position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(196,165,116,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,165,116,0.07) 1px, transparent 1px);
  background-size: 88px 88px;
  animation: grid-shift 60s linear infinite;
}
@keyframes grid-shift { from { background-position: 0 0; } to { background-position: 88px 88px; } }

/* Faint radial glow — Home, and lightly Contact */
.glow {
  pointer-events: none; position: absolute; z-index: 0; inset: 0;
  background: radial-gradient(ellipse at 28% 48%, rgba(196,165,116,0.11), transparent 62%);
  animation: glow-breathe 12s ease-in-out infinite alternate;
}
#contact .glow { background: radial-gradient(ellipse at 22% 44%, rgba(196,165,116,0.09), transparent 64%); }
@keyframes glow-breathe { from { opacity: 0.7; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .motif, .glow { animation: none; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 14px; font-size: 13px; font-weight: 500;
}
.skip-link:focus { left: 16px; top: 8px; }

header, main, footer { position: relative; z-index: 1; }

/* —— Header —— */
header {
  flex: 0 0 auto; min-height: var(--header-h);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  z-index: 20;
}
.logo, .logo img { width: var(--logo); height: var(--logo); display: block; }
nav { display: flex; gap: var(--nav-gap); }
nav a { font-size: var(--nav-size); font-weight: 500; letter-spacing: var(--nav-track); text-transform: uppercase; color: var(--text); }
nav a:hover { color: var(--accent); }
nav a[aria-current="page"] { color: var(--accent); }
html[data-view="what-we-do"] nav a[href="#what-we-do"],
html[data-view="current-work"] nav a[href="#current-work"],
html[data-view="about"] nav a[href="#about"],
html[data-view="contact"] nav a[href="#contact"] { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--field-focus); outline-offset: 3px; }
/* tabindex=-1 targets (view headings, main) receive programmatic focus on
   route change. Don't draw an outline for scripted, mouse, or touch focus.
   Keyboard rings stay on real controls via a:focus-visible / .btn:focus-visible. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible { outline: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px;
  font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: #FFFFFF; color: #0C0C0C; }

/* —— Main / views —— */
main { flex: 1 1 auto; position: relative; min-height: 0; }
.view { position: relative; display: flex; flex-direction: column; overflow: hidden; border-top: 1px solid var(--rule); }
.view:first-child { border-top: 0; }
.view-inner { flex: 1; padding: 40px var(--pad) 36px; display: flex; flex-direction: column; justify-content: center; min-height: 0; position: relative; z-index: 1; }

/* With JS: one view at a time, chosen by <html data-view> (set in <head> before first paint) */
.js .view { display: none; border-top: 0; }
.js[data-view="home"] #home,
.js[data-view="what-we-do"] #what-we-do,
.js[data-view="current-work"] #current-work,
.js[data-view="about"] #about,
.js[data-view="contact"] #contact { display: flex; }

.view-kicker {
  font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 28px; width: fit-content;
}

/* —— Legal bar —— */
.legal-bar {
  flex: 0 0 auto; min-height: var(--legal-h); padding: 12px var(--pad);
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.5; color: var(--muted);
}
.legal-bar a { color: var(--muted); }
.legal-bar a:hover { color: var(--text); }
.legal-bar .sep { color: var(--rule); }

/* —— Home —— */
.home-block { position: relative; z-index: 1; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 18px; }
#home h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(54px, 15.6vw, 138.5px); line-height: 0.9; letter-spacing: -0.05em;
  color: var(--text); margin: 0 0 24px; overflow-wrap: normal;
}
#home h1 span { display: block; }
.lede { font-size: 23px; line-height: 1.4; font-weight: 400; letter-spacing: 0.01em; color: var(--muted); margin: 0 0 40px; }

/* —— What we do —— */
.pillars { display: flex; flex-direction: column; }
.pillar { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: baseline; padding: 24px 0 26px; border-top: 1px solid var(--rule); }
.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: 38px; letter-spacing: -0.04em; line-height: 1.05; color: var(--text); }
.pillar p { font-size: 18px; line-height: 1.4; color: var(--muted); }
.media-list { letter-spacing: 0.02em; } /* stays muted, as rendered in the approved views-v12 PNGs */

/* —— Current work —— */
.work-intro {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 8.4vw, 48px); line-height: 1.08; letter-spacing: -0.045em;
  color: var(--text); margin: 0 0 32px; max-width: 20em;
}
.works { display: grid; grid-template-columns: 1fr; gap: 40px; }
.work { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.work-figure { width: 192px; }
.work-media { width: 192px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-name { font-family: var(--font-display); font-weight: 600; font-size: 38px; letter-spacing: -0.03em; line-height: 1.05; color: var(--text); margin: 0 0 12px; }
.work-desc { font-size: 17px; line-height: 1.45; color: var(--muted); max-width: 22em; margin: 0 0 18px; }
.text-link { color: var(--text); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; border-bottom: 1px solid var(--link-line); padding-bottom: 2px; }

/* —— Current work: launching-soon note —— */
.work-soon-note {
  font-size: 17px; line-height: 1.5; color: var(--muted);
  max-width: 28em; margin: 0;
}

/* —— About —— */
.about-story { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.vision { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 14vw, 80px); line-height: 1.02; letter-spacing: -0.05em; color: var(--text); width: fit-content; max-width: 100%; margin: 0 0 28px; }
.principles { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 28px; }
.principles li { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--rule); }
.principles li:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.about-note { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--muted); max-width: 520px; }

/* —— Contact —— */
.contact-block { position: relative; z-index: 1; }
.contact-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 21vw, 188px); line-height: 0.92; letter-spacing: -0.05em; color: var(--text); width: fit-content; max-width: 100%; margin: 0 0 24px; }
.email-link { display: inline-block; font-family: var(--font-body); font-weight: 400; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); border-bottom: 1px solid var(--link-line); padding-bottom: 4px; overflow-wrap: anywhere; }
.email-link:hover { color: var(--accent); }

/* —— Mobile: header wraps; sections stack and scroll with the page —— */
@media (max-width: 899.98px) {
  :root { --pad: 20px; }
  header { padding-top: 14px; padding-bottom: 10px; gap: 12px 0; }
  header > .btn { display: none; }
  nav { width: 100%; justify-content: space-between; gap: 8px; }
  nav a { font-size: 11px; letter-spacing: 0.08em; padding: 8px 0; }
  header .logo { order: -1; }
  .view-inner { padding-top: 32px; padding-bottom: 40px; justify-content: flex-start; }
  #home .view-inner, #contact .view-inner { justify-content: center; }
  #home .view-inner { min-height: 60vh; }
  #home h1 span:last-child { margin-left: 0; }
  .lede { font-size: 19px; }
  #current-work .view-kicker { margin-bottom: 18px; }
  #current-work .work-intro { font-size: clamp(28px, 8vw, 36px); margin-bottom: 24px; }
  #current-work .work-intro-go { display: block; }
  #current-work .works { gap: 32px; }
  .principles { gap: 0 18px; }
  .principles li { font-size: 22px; padding-right: 0; margin-right: 0; border-right: 0; }
  .legal-copy { flex-basis: 100%; }
  .legal-copy + .sep { display: none; }
}

/* —— Desktop (>=900px): five single screens, no page scroll —— */
@media (min-width: 900px) {
  .js, .js body { height: 100vh; height: 100dvh; overflow: hidden; }
  .js body { min-height: 0; }
  .js main { overflow: hidden; }
  .js .view { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; }
  .legal-bar { flex-wrap: nowrap; height: var(--legal-h); padding-top: 0; padding-bottom: 0; white-space: nowrap; overflow: hidden; }
  header { flex-wrap: nowrap; height: var(--header-h); }
  .view-inner { padding: 40px var(--pad) 36px; }

  #home .view-inner { padding-top: 32px; }
  #home h1 { font-size: calc(138.5 * var(--u)); white-space: nowrap; line-height: 0.88; margin-bottom: 28px; width: fit-content; max-width: 100%; }
  #home h1 span { display: inline; }
  .lede { font-size: 23px; }

  .pillar { grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 28px 0 32px; }
  .pillar h3 { font-size: calc(52 * var(--u)); line-height: 1.02; }
  .pillar p { font-size: 20px; padding-top: 10px; }

  .work-intro { font-size: calc(48 * var(--u)); margin-bottom: 44px; }
  .works { grid-template-columns: 1fr 1fr; gap: 0 80px; }
  .work { flex-direction: row; gap: 28px; align-items: flex-start; }
  .work + .work { border-left: 1px solid var(--rule); padding-left: 80px; }
  .work-figure { flex: 0 0 128px; width: 128px; }
  .work-media { width: 128px; height: 72px; aspect-ratio: auto; }
  .work-name { font-size: calc(42 * var(--u)); }

  .about-story { margin-bottom: 32px; }
  .vision { font-size: calc(80 * var(--u)); margin-bottom: 36px; }
  .principles { margin-bottom: 36px; }
  .principles li { font-size: 28px; padding-right: 32px; margin-right: 32px; }
  .principles li:last-child { padding-right: 0; margin-right: 0; }

  .contact-title { font-size: calc(188 * var(--u)); line-height: 0.86; white-space: nowrap; margin-bottom: 28px; }
  .email-link { font-size: calc(36 * var(--u)); }
}

/* Document pages (privacy, 404): normal scrolling page in the same shell */
.doc .view-inner { justify-content: flex-start; max-width: calc(720px + 2 * var(--pad)); }
.doc h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 8vw, 72px); letter-spacing: -0.05em; line-height: 1; margin: 0 0 24px; }
.doc h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--muted); margin-bottom: 12px; }
.doc ul { padding-left: 20px; }
.doc .view-inner a:not(.btn) { color: var(--text); border-bottom: 1px solid var(--link-line); }
.doc strong { color: var(--text); font-weight: 500; }
.doc .legal-bar { margin-top: auto; }
