/* ==========================================================================
   Projects by Infinite Art — site styles
   Light theme only (house rule for all Infinite Art sites): no dark mode,
   no theme toggle. One accent (vermilion, shared with pradeepsekar.net),
   warm paper neutrals, Geist for text, Instrument Serif italic for accents,
   Geist Mono for labels and captions.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback keeps layout steady while Geist loads */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --paper: #f3f1ec;
  --paper-2: #eae6de;
  --paper-3: #dfd9ce;
  --card: #fbfaf7;
  --ink: #171614;
  --ink-2: #45423c;
  --ink-3: #625e56;
  --rule: #d6d0c4;
  --rule-2: #bfb8aa;
  --accent: #c92f17;
  --accent-deep: #a92512;
  --accent-ink: #ffffff;
  --accent-soft: #f6e3dc;

  --font-sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;

  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;

  --shadow-1: 0 1px 2px rgba(64, 44, 24, 0.06), 0 6px 18px -10px rgba(64, 44, 24, 0.22);
  --shadow-2: 0 2px 4px rgba(64, 44, 24, 0.05), 0 28px 60px -28px rgba(64, 44, 24, 0.35);

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-base: 1;
  --z-sticky: 20;
  --z-bar: 40;
  --z-header: 50;
  --z-menu: 60;
  --z-dialog: 80;
  --z-grain: 90;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (max-width: 820px) { html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
main:focus { outline: none; }
body { margin: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, picture, video, canvas, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:where([hidden]) { display: none !important; }

/* ---------- Base ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Fine film grain over everything — breaks the flat-screen feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(1600px + var(--gutter) * 2); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: calc(var(--z-dialog) + 1);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r-s);
  text-decoration: none;
  font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.6rem, 1.15rem + 5.4vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 560;
  color: var(--ink);
}
.display--page { font-size: clamp(2.3rem, 1.2rem + 4vw, 5rem); line-height: 0.98; }
.display em,
.h2 em,
.serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.h2 {
  font-size: clamp(2rem, 1.1rem + 2.9vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 540;
}
.h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 560;
}
.lede {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38ch;
}
.body-copy { color: var(--ink-2); max-width: 64ch; }
.body-copy p + p { margin-top: 1em; }

.kicker,
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}
.kicker {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 4px rgba(201, 47, 23, 0.12);
}
.kicker .dot { margin-top: 0.3em; }

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--rule-2);
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link:hover { text-decoration-color: var(--accent); color: var(--accent-deep); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 1px solid var(--rule-2);
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.arrow-link:hover { border-color: var(--ink); gap: 14px; }
.arrow-link svg { width: 16px; height: 16px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 520;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); box-shadow: 0 10px 24px -14px rgba(201, 47, 23, 0.8); }
.btn--accent:hover { --btn-bg: var(--accent-deep); }
.btn--ink:hover { --btn-bg: #000; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--rule-2); }
.btn--ghost:hover { border-color: var(--ink); --btn-bg: var(--card); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.94rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(243, 241, 236, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); background: rgba(243, 241, 236, 0.92); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 44px;
}
.brand img { width: 28px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 620; font-size: 1.08rem; letter-spacing: -0.03em; }
.brand-by { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-3); letter-spacing: 0.02em; }

.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 480;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 560; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 6px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: transparent;
  font-weight: 520;
}
.menu-btn .bars { display: grid; gap: 4px; }
.menu-btn .bars span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.menu-btn[aria-expanded="true"] .bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.menu-sheet {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  background: var(--paper);
  overflow-y: auto;
  padding: 24px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-top: 1px solid var(--rule);
}
.menu-sheet.is-open { animation: sheet-in 0.35s var(--ease-out) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.menu-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  letter-spacing: -0.035em;
  font-weight: 520;
  text-decoration: none;
}
.menu-links a .mono { font-size: 0.75rem; }
.menu-links a[aria-current="page"] { color: var(--accent); }
.menu-contact { display: grid; gap: 10px; }

@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
}
@media (min-width: 1241px) {
  .menu-sheet { display: none !important; }
}
@media (min-width: 1241px) and (max-width: 1360px) {
  .nav a { padding: 0 9px; font-size: 0.9rem; }
}

/* Thin progress line under the header, driven by scroll (no JS) */
.progress {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 2px;
  z-index: calc(var(--z-header) + 1);
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { margin-bottom: clamp(22px, 3vw, 36px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--rule-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero-grid {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); }
}
.hero h1 { max-width: 13.5ch; }
.hero-side { display: grid; gap: 22px; padding-bottom: 6px; }
.rating {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
  width: fit-content;
}
.rating .stars { color: var(--accent); letter-spacing: 2px; font-size: 0.95rem; }
.rating:hover .rating-text { text-decoration: underline; text-underline-offset: 3px; }

/* The viewfinder: WebGL corridor of frames over a real photo fallback */
/* Full-bleed: edge to edge, no frame */
.viewfinder-wrap { width: 100%; }
.viewfinder {
  position: relative;
  margin-top: clamp(28px, 4vw, 56px);
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 82vh;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}
@media (max-width: 900px) { .viewfinder { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .viewfinder { aspect-ratio: 4 / 5; } }
.viewfinder picture,
.viewfinder > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.viewfinder canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  z-index: 1;
}
.viewfinder.gl-ready canvas { opacity: 1; }
.viewfinder.gl-ready picture { opacity: 0; transition: opacity 1.2s var(--ease) 0.2s; }
.vf-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink);
}
.vf-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  max-width: calc(100% - 120px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.vf-chip.tl { top: 22px; left: var(--gutter); }
.vf-chip.tr { top: 22px; right: var(--gutter); }
.vf-chip.bl { bottom: 22px; left: var(--gutter); }
.vf-chip.br { bottom: 22px; right: var(--gutter); pointer-events: auto; text-decoration: none; color: var(--ink); }
.vf-chip.br:hover { background: var(--card); }
.vf-rec { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.vf-caption { transition: opacity 0.35s var(--ease); }
.vf-link { z-index: 3; font-family: var(--font-mono); font-size: 0.72rem; min-height: 36px; }
.vf-caption.is-swapping { opacity: 0; }
@media (max-width: 560px) {
  .vf-chip.tr { display: none; }
  .vf-chip.tl, .vf-chip.bl { left: var(--gutter); }
  .vf-chip.tl { top: 18px; }
  .vf-chip.bl { bottom: 56px; max-width: calc(100% - 44px); }
  .vf-chip.br { right: auto; left: var(--gutter); bottom: 18px; }
}

/* ---------- Facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  margin-top: clamp(28px, 4vw, 48px);
}
.fact { padding: 22px 22px 6px 0; border-right: 1px solid var(--rule); }
.fact + .fact { padding-left: 22px; }
.fact:last-child { border-right: 0; }
.fact dt { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 2rem); letter-spacing: -0.035em; font-weight: 560; line-height: 1.1; }
.fact dd { margin-top: 8px; color: var(--ink-3); font-size: 0.93rem; line-height: 1.45; max-width: 26ch; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

/* ---------- Marquee ---------- */
.marquee-wrap { margin-top: clamp(40px, 6vw, 72px); }
.marquee {
  border-block: 1px solid var(--rule);
  overflow: hidden;
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-wrap { position: relative; }
.marquee:hover .marquee-track,
.marquee-wrap:focus-within .marquee-track,
.marquee-wrap.is-paused .marquee-track { animation-play-state: paused; }
.marquee-toggle {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  display: grid;
  place-items: center;
}
.marquee-toggle:hover { border-color: var(--ink); }
.marquee-toggle svg { width: 14px; height: 14px; }
.marquee-toggle .i-play { display: none; }
.marquee-wrap.is-paused .marquee-toggle .i-play { display: block; }
.marquee-wrap.is-paused .marquee-toggle .i-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .marquee-toggle { display: none; } }
.marquee ul { display: flex; align-items: center; flex: none; }
.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink-2);
}
.marquee li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rule-2); }
.marquee li:nth-child(4n + 1) { font-family: var(--font-serif); font-style: italic; letter-spacing: -0.01em; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--paper-2 { background: var(--paper-2); }
.section + .section--paper-2,
.section--paper-2 + .section { border-top: 0; }
.sec-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (min-width: 960px) {
  .sec-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 48px; }
  .sec-head--split .sec-index { grid-column: 1 / -1; }
}
.sec-index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}
.sec-index::after { content: ""; flex: 1; height: 1px; background: var(--rule); max-width: 120px; }
.sec-intro { color: var(--ink-2); max-width: 52ch; font-size: 1.06rem; }

/* ---------- Featured work ---------- */
.featured { display: grid; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 960px) {
  .featured { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
  .feature--b { margin-top: clamp(80px, 12vw, 180px); }
}
.feature { position: relative; }
.feature a.feature-link { text-decoration: none; color: inherit; display: block; }
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--ph, var(--paper-2));
}
.media picture { display: block; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
a:hover .media img,
.media--zoom:hover img { transform: scale(1.035); }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-2x3 { aspect-ratio: 2 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
.feature-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding-top: 18px;
}
.feature-meta .mono { white-space: nowrap; }
.feature-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); letter-spacing: -0.035em; font-weight: 560; line-height: 1.1; }
.feature-text { margin-top: 12px; color: var(--ink-2); max-width: 54ch; }
.ext-icon { width: 14px; height: 14px; display: inline-block; vertical-align: -1px; }

.pull {
  margin-top: clamp(40px, 6vw, 72px);
  max-width: 34ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pull-cite { display: block; margin-top: 16px; font-family: var(--font-mono); font-style: normal; font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.01em; }

/* ---------- Services index ---------- */
.svc-list { border-top: 1px solid var(--rule-2); counter-reset: svc; }
.svc { border-bottom: 1px solid var(--rule); }
.svc-link {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) 40px;
  gap: 24px;
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}
.svc-link::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: -1;
  background: var(--card);
  border-radius: var(--r-s);
  transform: scaleY(0.2);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease);
}
.svc-link:hover::before,
.svc-link:focus-visible::before { transform: none; opacity: 1; }
.svc-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); }
.svc-title {
  font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.5rem);
  letter-spacing: -0.04em;
  font-weight: 540;
  line-height: 1.05;
  transition: transform 0.45s var(--ease-out), color 0.3s var(--ease);
}
.svc-link:hover .svc-title { transform: translateX(10px); }
.svc-desc { color: var(--ink-2); font-size: 0.98rem; max-width: 48ch; }
.svc-arrow { justify-self: end; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease-out); }
.svc-arrow svg { width: 16px; height: 16px; }
.svc-link:hover .svc-arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
@media (max-width: 760px) {
  .svc-link { grid-template-columns: 36px minmax(0, 1fr) 36px; row-gap: 8px; }
  .svc-desc { grid-column: 2 / 3; }
  .svc-arrow { grid-row: 1; grid-column: 3; }
}
.svc-preview {
  position: fixed;
  left: 0; top: 0;
  z-index: var(--z-sticky);
  width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-s);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.92);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out);
  box-shadow: var(--shadow-2);
  background: var(--paper-2);
}
.svc-preview.is-on { opacity: 1; }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
.svc-also { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: transparent;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
}
a.chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Audience stack (sticky cards) ---------- */
.stack { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.stack-card {
  position: sticky;
  top: calc(var(--header-h) + 20px + var(--i, 0) * 18px);
  display: grid;
  gap: 0;
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  min-height: min(560px, 74vh);
}
@media (min-width: 900px) {
  .stack-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
.stack-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.stack-body .mono { display: flex; gap: 10px; }
.stack-body .h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); letter-spacing: -0.04em; }
.stack-body p { color: var(--ink-2); max-width: 46ch; }
.stack-body .arrow-link { margin-top: auto; width: fit-content; }
.stack-media { min-height: 280px; position: relative; }
.stack-media picture, .stack-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .stack-card { position: relative; top: auto; min-height: 0; }
  .stack-media { aspect-ratio: 4 / 3; min-height: 0; order: -1; }
}

/* ---------- Rail (horizontal portfolio) ---------- */
.rail-wrap { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 30vw, 420px);
  gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-2) transparent;
}
.rail > li { scroll-snap-align: start; }
.rail a { display: block; text-decoration: none; color: inherit; }
.rail .media { aspect-ratio: 4 / 5; }
.rail-cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; }
.rail-cap strong { font-weight: 540; letter-spacing: -0.02em; font-size: 1.05rem; line-height: 1.25; }
.rail-cap .mono { white-space: nowrap; padding-top: 3px; }
.rail-sub { display: block; color: var(--ink-3); font-size: 0.9rem; margin-top: 2px; }
.rail-controls { display: flex; gap: 10px; }
.round-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rule-2);
  background: transparent;
  display: grid;
  place-items: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s;
}
.round-btn:hover { background: var(--card); border-color: var(--ink); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn svg { width: 18px; height: 18px; }

/* ---------- Films ---------- */
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(22px, 2.6vw, 36px) clamp(16px, 2vw, 28px); }
.film-grid--feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .film-grid--feature { grid-template-columns: 1fr; } }
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.film-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--ph, #2a2622);
  color: #fff;
}
.film-frame--vertical { aspect-ratio: 9 / 16; }
.film-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out), filter 0.4s var(--ease); }
.film-frame:hover img { transform: scale(1.04); }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute;
  left: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.92);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 520;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.play i {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.play i::before { content: ""; margin-left: 3px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.film-frame:hover .play { background: var(--accent); color: #fff; }
.film-frame:hover .play i { background: #fff; }
.film-frame:hover .play i::before { border-left-color: var(--accent); }
.film-body { padding-top: 14px; display: grid; gap: 4px; }
.film-title { font-size: 1.06rem; font-weight: 540; letter-spacing: -0.02em; line-height: 1.3; }
.film-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); }
.film-meta a { color: var(--ink-3); display: inline-flex; align-items: center; min-height: 32px; margin-block: -8px; }
.film-meta a:hover { color: var(--accent-deep); }

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: var(--z-sticky);
  background: rgba(243, 241, 236, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--rule);
}
.subnav ul { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); white-space: nowrap; font-size: 0.92rem; }
.subnav a:hover { background: var(--paper-2); color: var(--ink); }
.subnav a.is-active { background: var(--ink); color: var(--paper); }
.subnav .count { font-family: var(--font-mono); font-size: 0.72rem; opacity: 0.7; }
.film-section + .film-section { margin-top: clamp(64px, 8vw, 110px); }
.film-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.film-section-head p { color: var(--ink-2); max-width: 56ch; }

/* Branding page */
.reel-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); align-items: start; }
.reel-trio .film:nth-child(2) { transform: translateY(-28px); }
.reel-trio .film-frame { aspect-ratio: 9 / 16; }
@media (max-width: 560px) { .reel-trio .film:nth-child(2) { transform: none; } .reel-trio .film-body { display: none; } }
.brand-more { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; }
@media (min-width: 900px) { .brand-more { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); } }
.brand-reel { max-width: 320px; }
.review-grid--two { columns: 2 300px; }

/* ---------- Process (what you get) ---------- */
.process { display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
@media (min-width: 900px) { .process { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.process-step { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) {
  .process-step { border-bottom: 0; border-right: 1px solid var(--rule); padding: 32px; }
  .process-step:first-child { padding-left: 0; }
  .process-step:last-child { border-right: 0; }
}
.process-step .mono { display: block; margin-bottom: 18px; }
.process-step h3 { margin-bottom: 14px; }
.ticks { display: grid; gap: 10px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1.5px; background: var(--accent); }

/* ---------- Reviews ---------- */
.quote-hero { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .quote-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.big-quote blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.9rem, 1.1rem + 2.9vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.big-quote blockquote p::before { content: "“"; color: var(--accent); margin-right: 0.04em; }
.big-quote blockquote p::after { content: "”"; color: var(--accent); }
.who { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.who-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-3); font-weight: 600; letter-spacing: -0.02em; }
.who-name { font-weight: 560; line-height: 1.2; }
.who-role { font-size: 0.9rem; color: var(--ink-3); }
.mini-quotes { display: grid; gap: 14px; }
.mini {
  padding: 22px 24px;
  border-radius: var(--r-m);
  background: var(--card);
  box-shadow: var(--shadow-1);
}
.mini p { color: var(--ink-2); font-size: 0.98rem; white-space: pre-line; }
.mini .who { margin-top: 14px; }
.mini .who-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 0.85rem; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 0.9rem; }
.review-grid { columns: 3 320px; column-gap: clamp(14px, 2vw, 24px); }
.review {
  break-inside: avoid;
  margin-bottom: clamp(14px, 2vw, 24px);
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-m);
  background: var(--card);
  box-shadow: var(--shadow-1);
}
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-text { color: var(--ink-2); white-space: pre-line; }
.review-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { margin-top: 10px; background: none; border: 0; padding: 6px 0; font-weight: 520; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.review-more:hover { text-decoration-color: var(--accent); }
.review .who { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.review-source { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); display: inline-flex; align-items: center; min-height: 32px; }
.score-card {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow-2);
}
.score { font-size: clamp(3.4rem, 2rem + 4vw, 5.6rem); line-height: 0.9; letter-spacing: -0.06em; font-weight: 560; }
.score small { font-size: 0.32em; letter-spacing: -0.02em; color: var(--ink-3); font-weight: 450; margin-left: 6px; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.about .media { aspect-ratio: 1 / 1; max-width: 560px; }
.about .media::after {
  content: "";
  position: absolute;
  right: 18px; bottom: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(251, 250, 247, 0.7);
}
.signature { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; margin-top: 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: end; }
@media (min-width: 980px) { .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.page-hero-grid:has(.page-hero-media--tall) { align-items: center; }
.page-hero-grid--text { align-items: end; }
@media (min-width: 980px) { .page-hero-grid--text { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.page-hero .lede { margin-top: clamp(18px, 2.4vw, 28px); max-width: 46ch; }
.page-hero .actions { margin-top: 28px; }
.page-hero-media { position: relative; }
.page-hero-media .media { aspect-ratio: 4 / 3; border-radius: var(--r-l); }
.page-hero-media--tall .media { aspect-ratio: 4 / 5; max-height: 78vh; margin-left: auto; }
.page-hero-media figcaption { margin-top: 12px; }
.cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}

/* ---------- Gallery (masonry: every photo keeps its own shape) ---------- */
.gallery { columns: 3 300px; column-gap: clamp(12px, 1.6vw, 22px); }
.g-item { break-inside: avoid; margin-bottom: clamp(18px, 2.2vw, 30px); }
.g-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--r-m);
}
.g-item figcaption { padding-top: 10px; }
span.media { display: block; }

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(243, 241, 236, 0.97);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(23, 22, 20, 0.25); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in 0.3s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); gap: 12px; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-s); box-shadow: var(--shadow-2); }
.lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter) 20px; }
.lb-cap { font-size: 0.95rem; color: var(--ink-2); }
.lb-nav { display: flex; gap: 10px; }

/* ---------- Work grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.filter {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.93rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.work-card a { text-decoration: none; color: inherit; display: block; }
.work-card .media { aspect-ratio: 4 / 5; }
.work-card[data-hidden="true"] { display: none; }
.work-body { padding-top: 16px; display: grid; gap: 6px; }
.work-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.work-title { font-size: 1.25rem; letter-spacing: -0.03em; font-weight: 560; line-height: 1.2; }
.work-desc { color: var(--ink-2); font-size: 0.96rem; }
.work-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.9rem; font-weight: 520; color: var(--ink); }
.work-card a:hover .work-go { color: var(--accent-deep); }

/* ---------- Two-column text blocks ---------- */
.split { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.list-rows { border-top: 1px solid var(--rule-2); }
.list-rows > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px 18px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.list-rows h3 { font-size: 1.2rem; letter-spacing: -0.025em; font-weight: 560; }
.list-rows p { grid-column: 2; color: var(--ink-2); font-size: 0.98rem; }
.list-rows .mono { padding-top: 4px; }

.note {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-m);
  background: var(--card);
  box-shadow: var(--shadow-1);
}
.note--accent { background: var(--accent-soft); box-shadow: none; }

.links-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.links-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.links-list a:hover { color: var(--accent-deep); }
.links-list .mono { white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 0;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.cta-body { padding: clamp(28px, 5vw, 64px); display: grid; gap: 20px; align-content: center; }
.cta-body .h2 { max-width: 16ch; }
.cta-body p { color: var(--ink-2); max-width: 44ch; }
.cta-media { min-height: 260px; position: relative; }
.cta-media picture, .cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-direct { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.95rem; }
.cta-direct a { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.form { display: grid; gap: 18px; padding: clamp(22px, 3.5vw, 44px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-2); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.92rem; font-weight: 520; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--r-s);
  border: 1px solid #8a8478;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23171614' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--ink); }
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus-visible { border-color: var(--accent); border-width: 2px; }
.field-error { color: var(--accent-deep); font-size: 0.86rem; min-height: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.form-note { font-size: 0.88rem; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-ok { color: #1f6b3a; font-weight: 520; }
.form-status.is-error { color: var(--accent-deep); }
.form-status { font-size: 0.95rem; color: var(--ink); }
.form-status:empty { display: none; }

.contact-card { display: grid; gap: 22px; }
.contact-lines { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.contact-lines > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-lines dt { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); padding-top: 3px; }
.contact-lines dd a { color: var(--ink); }
.contact-lines address { font-style: normal; }
.map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px rgba(23, 22, 20, 0.08);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.02); }
.map:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.map-wide { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .map-wide { aspect-ratio: 4 / 3; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(64px, 9vw, 120px); padding-bottom: 28px; border-top: 1px solid var(--rule); background: var(--paper); }
.footer-cta { display: grid; gap: 28px; padding-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) { .footer-cta { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; } }
.footer-cta .h2 { max-width: 18ch; }
.footer-cta .actions { justify-content: flex-start; }
@media (min-width: 960px) { .footer-cta .actions { justify-content: flex-end; } }
.footer-grid {
  display: grid;
  gap: 36px 28px;
  padding-block: clamp(40px, 5vw, 64px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 960px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); } }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 16px; align-content: start; }
@media (min-width: 960px) { .footer-brand { grid-column: auto; } }
.footer-brand img { width: 92px; height: auto; }
.footer-brand address { font-style: normal; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.footer-brand address a { display: inline-block; padding-block: 4px; }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 400; color: var(--ink-3); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 2px; }
.footer-col a { display: inline-block; padding-block: 9px; color: var(--ink); text-decoration: none; font-size: 0.97rem; line-height: 1.4; }
.footer-col a .ext-icon { margin-left: 4px; }
.footer-col a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 0.86rem; color: var(--ink-3); }
.footer-base a { color: var(--ink-2); }
.footer-word {
  margin-top: 36px;
  font-size: clamp(3.4rem, 1rem + 11.5vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
  font-weight: 600;
  color: var(--paper-3);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.footer-word em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.03em; color: var(--rule-2); }
/* Drawn with generated content so the decorative word carries no text for screen readers or contrast checks */
.footer-word [data-w]::before { content: attr(data-w); }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-bar);
  display: none;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(40, 28, 16, 0.35), inset 0 0 0 1px rgba(23, 22, 20, 0.08);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease-out);
}
.action-bar.is-on { transform: none; }
.action-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 540; font-size: 0.95rem; color: var(--ink); }
.action-bar a svg { width: 18px; height: 18px; }
.action-bar a.is-accent { background: var(--accent); color: #fff; }
@media (max-width: 820px) {
  .action-bar { display: grid; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; align-content: center; gap: 22px; padding-block: clamp(60px, 10vw, 140px); }
.notfound .display { max-width: 14ch; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* The wipe clips the photo, not its frame: a clipped element reads as
   invisible to IntersectionObserver and would never be revealed. */
.js [data-reveal="wipe"] { opacity: 1; transform: none; }
.js [data-reveal="wipe"] > picture { display: block; height: 100%; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="wipe"].is-in > picture { clip-path: inset(0 0 0 0); }

/* Scroll-linked image drift where supported */
@supports (animation-timeline: view()) {
  .parallax img { animation: drift linear both; animation-timeline: view(); animation-range: cover; scale: 1.12; }
  @keyframes drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal], .js [data-reveal="wipe"] { opacity: 1; transform: none; }
  .js [data-reveal="wipe"] > picture { clip-path: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .parallax img { animation: none; scale: 1; }
  .stack-card { position: relative; top: auto; }
}

/* ---------- Print ---------- */
@media print {
  body::after, .site-header, .action-bar, .progress, .viewfinder canvas, .menu-sheet { display: none !important; }
  body { background: #fff; }
}
