/* ============== TOKENS ============== */
:root {
  --bg: #f4efe8;
  --bg-2: #ece5db;
  --bg-3: #e2dbd0;
  --ink: #17202b;
  --ink-dim: #4a5566;
  --ink-mute: #7a8391;
  --line: rgba(23, 32, 43, 0.14);
  --line-strong: rgba(23, 32, 43, 0.26);
  --accent: #2b4a70;
  --accent-2: #1e3a5c;
  --accent-ink: #f4efe8;
  --warn: #b0402f;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 2px;
  --radius-lg: 6px;
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body { cursor: none; }
@media (max-width: 900px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
@media (max-width: 900px) { button { cursor: pointer; } }

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

/* ============== GRAIN ============== */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============== CURSOR ============== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s, opacity 0.25s;
}
.cursor.is-hover .cursor-dot { width: 44px; height: 44px; background: var(--accent); opacity: 0.5; }
.cursor.is-view .cursor-dot { width: 72px; height: 72px; background: var(--accent); opacity: 0.95; }
.cursor-label {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink);
  opacity: 0; transform: translate(-50%, -50%);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.cursor.is-view .cursor-label { opacity: 1; }
@media (max-width: 900px) { .cursor { display: none; } }

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  background: linear-gradient(180deg, rgba(244, 239, 232, 0.92), rgba(244, 239, 232, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-mark {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.nav-mark .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(43, 74, 112, 0.2);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(184, 212, 238, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(184, 212, 238, 0.02); }
}
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  counter-reset: navcount;
}
.nav-links a {
  color: var(--ink-dim); position: relative; padding: 4px 0;
  transition: color 0.2s;
  counter-increment: navcount;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::before {
  content: counter(navcount, decimal-leading-zero) " ";
  color: var(--ink-mute); margin-right: 6px;
}
.nav-cta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); padding: 10px 16px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-2); }
.nav-cta .arr { display: inline-block; transition: transform 0.3s; }
.nav-cta:hover .arr { transform: translate(2px, -2px); }

@media (max-width: 720px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-right { display: none; }
}

/* ============== LAYOUT ============== */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }
@media (max-width: 720px) { .shell { padding: 0 20px; } }

section { position: relative; }

.meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.meta::before { content: "// "; color: var(--accent); }

/* ============== HERO ============== */
.hero { padding: 180px 0 120px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(68px, 12vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-title .slash {
  display: inline-block;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.35em;
  letter-spacing: 0;
  vertical-align: middle;
  margin: 0 0.1em;
  font-style: normal;
}
.hero-aside {
  max-width: 260px;
  text-align: right;
  padding-bottom: 12px;
}
.hero-aside .meta { margin-bottom: 10px; }
.hero-aside p { font-size: 13px; color: var(--ink-dim); line-height: 1.55; }

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  gap: 24px;
}
.hero-strip > div .meta { margin-bottom: 8px; }
.hero-strip > div .val { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.01em; }

.hero-scroll {
  position: absolute;
  right: 40px;
  bottom: 40px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 8px;
}
.hero-scroll .bar {
  display: inline-block; width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: slide 2s infinite;
}
@keyframes slide {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

@media (max-width: 900px) {
  .hero { padding: 140px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-aside { text-align: left; max-width: none; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
  .hero-scroll { display: none; }
}

@media (max-width: 600px) {
  .hero-strip { grid-template-columns: 1fr; gap: 16px; }
}

/* ============== MARQUEE ============== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: -0.01em;
  color: var(--ink-dim);
}
.marquee-track span.accent { color: var(--accent); font-style: italic; }
.marquee-track .star { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============== WORK ============== */
.work { padding: 140px 0 80px; }
.section-head {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 40px; margin-bottom: 80px; align-items: end;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 6vw, 80px); line-height: 1;
  letter-spacing: -0.02em;
}
.section-head h2 em { color: var(--accent); font-style: italic; }
.section-head h2 .meta {
  display: block; margin-bottom: 20px; color: var(--accent);
}
.section-head p { font-size: 15px; color: var(--ink-dim); max-width: 52ch; line-height: 1.6; }

.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink-dim); }
.filter-btn.active {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.filter-count { opacity: 0.6; margin-left: 6px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 24px;
}
.work-item {
  position: relative;
  transition: opacity 0.4s, filter 0.4s;
}
.work-item.dim { opacity: 0.2; filter: saturate(0); }

.work-item[data-size="hero"] { grid-column: span 12; }
.work-item[data-size="half"] { grid-column: span 6; }
.work-item[data-size="third"] { grid-column: span 4; }
.work-item[data-size="two-thirds"] { grid-column: span 8; }

@media (max-width: 900px) {
  .filters { display: none; }
  .work-item[data-size="half"], .work-item[data-size="third"], .work-item[data-size="two-thirds"], .work-item[data-size="hero"] { grid-column: span 12; }
  .section-head { grid-template-columns: 1fr; }
}

.work-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 4 / 3;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-item[data-size="hero"] .work-media { aspect-ratio: 16 / 7; }
.work-item[data-size="two-thirds"] .work-media { aspect-ratio: 16 / 10; }
.work-item[data-size="third"] .work-media { aspect-ratio: 4 / 5; }

.work-item:hover .work-media { transform: translateY(-4px); }

.work-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6));
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.work-item:hover .work-media::after { opacity: 1; }

.work-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: translate3d(0, var(--py, 0), 0) scale(var(--ps, 1.18));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s;
  will-change: transform;
}
.work-item:hover .work-media img { --ps: 1.1; }

.work-media .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-image:
    repeating-linear-gradient(135deg, rgba(184,212,238,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  color: var(--ink-mute);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center; padding: 40px;
}
.work-media .placeholder .icon {
  font-family: var(--font-display); font-size: 56px;
  color: var(--accent); font-style: italic; margin-bottom: 16px;
  opacity: 0.5;
}

.work-media.tint-a .placeholder { background: linear-gradient(135deg, #dfd6c8, #c7bba8); }
.work-media.tint-b .placeholder { background: linear-gradient(135deg, #e8dfd0, #cdc0ab); }
.work-media.tint-c .placeholder { background: linear-gradient(160deg, #dcd2c0 0%, #bfb29b 100%); }
.work-media.tint-d .placeholder { background: radial-gradient(circle at 30% 30%, #e6ddcd, #c4b79f); }
.work-media.tint-e .placeholder { background: linear-gradient(135deg, #e3dacc, #d1c4ae); }
.work-media.tint-f .placeholder { background: linear-gradient(180deg, #ddd3c2, #c2b59d); }

.work-info {
  display: grid; grid-template-columns: 1fr auto;
  gap: 20px; margin-top: 18px;
  align-items: start;
}
.work-info h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; line-height: 1.1;
  letter-spacing: -0.01em;
}
.work-info .rhs {
  text-align: right;
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-end;
}
.work-info .yr { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.1em; }
.work-info .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.work-info p { grid-column: 1 / -1; font-size: 14px; color: var(--ink-dim); max-width: 56ch; margin-top: 4px; }

@media (max-width: 900px) {
  .work-info { grid-template-columns: 1fr; gap: 10px; }
  .work-info .rhs { text-align: left; align-items: flex-start; flex-direction: row; gap: 12px; flex-wrap: wrap; }
}

.stat-block {
  grid-column: span 4;
  padding: 32px 0 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-block .meta { margin-bottom: auto; }
.stat-block .big {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.95; letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-block .big em { font-style: italic; }
.stat-block p { font-size: 14px; color: var(--ink-dim); margin-top: 20px; max-width: 32ch; }

@media (max-width: 900px) {
  .stat-block { grid-column: span 12; padding: 20px 0; }
}

/* ============== PRACTICE ============== */
.practice { padding: 140px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.discipline-list {
  border-top: 1px solid var(--line);
}
.discipline-row {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 100px;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background 0.3s, padding 0.3s;
  position: relative;
  overflow: hidden;
}
.discipline-row::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(184,212,238,0.06), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.discipline-row:hover::before { opacity: 1; }
.discipline-row:hover { padding-left: 16px; }
.discipline-row .num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.1em; }
.discipline-row h4 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.01em; font-weight: 400; }
.discipline-row h4 em { font-style: italic; color: var(--accent); }
.discipline-row p { font-size: 14px; color: var(--ink-dim); line-height: 1.55; }
.discipline-row .tools {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
}
.tool-chip {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-dim);
  border-radius: 2px;
  transition: all 0.2s;
}
.discipline-row:hover .tool-chip { border-color: var(--accent); color: var(--accent); }

@media (max-width: 900px) {
  .discipline-row { grid-template-columns: 40px 1fr; gap: 16px; }
  .discipline-row p, .discipline-row .tools { grid-column: 2; }
  .discipline-row .tools { justify-content: flex-start; }
}

/* ============== ART ============== */
.art { padding: 140px 0 80px; }
.art-lead {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.art-lead h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 7vw, 110px); line-height: 0.95;
  letter-spacing: -0.02em;
}
.art-lead h2 em { color: var(--accent); font-style: italic; }
.art-lead h2 .meta { display: block; margin-bottom: 20px; color: var(--accent); }
.art-lead .rhs .meta { margin-bottom: 14px; }
.art-lead .rhs p { font-size: 15px; color: var(--ink-dim); line-height: 1.65; max-width: 50ch; }
.art-lead .rhs p + p { margin-top: 12px; }

.art-stack {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.art-stack .art-item { position: relative; }
.art-stack .art-item:nth-child(1) { grid-column: span 7; }
.art-stack .art-item:nth-child(2) { grid-column: span 5; margin-top: 80px; }
.art-stack .art-item:nth-child(3) { grid-column: span 4; }
.art-stack .art-item:nth-child(4) { grid-column: span 4; margin-top: 40px;}
.art-stack .art-item:nth-child(5) { grid-column: span 4; }

.art-media {
  background: var(--bg-3);
  aspect-ratio: 4 / 5;
  overflow: hidden; position: relative;
}
.art-item:nth-child(1) .art-media { aspect-ratio: 4 / 3; }
.art-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: translate3d(0, var(--py, 0), 0) scale(var(--ps, 1.18));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.art-item:hover .art-media img { --ps: 1.1; }

/* Parallax is scroll-driven; disabled on small screens and reduced-motion. */
@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  [data-parallax] { --py: 0 !important; }
}

.art-item .art-media .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(184,212,238,0.08), transparent 70%),
    repeating-linear-gradient(45deg, rgba(184,212,238,0.04) 0 1px, transparent 1px 10px);
  color: var(--ink-mute);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; text-align: center;
  padding: 20px;
}
.art-item .art-media .placeholder .art-icon {
  font-family: var(--font-display); font-size: 72px; color: var(--accent);
  font-style: italic; opacity: 0.4;
}
.art-item .caption {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-top: 12px;
  display: flex; justify-content: space-between;
}

@media (max-width: 900px) {
  .art-lead { grid-template-columns: 1fr; gap: 30px; }
  .art-stack .art-item { grid-column: span 12 !important; margin-top: 0 !important; }
}

/* ============== QUOTE ============== */
.quote-block {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 auto 24px;
}
.quote-block blockquote em { color: var(--accent); font-style: italic; }
.quote-block cite { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); font-style: normal; }
.quote-block cite::before { content: "— "; }

/* ============== CONTACT ============== */
.contact { padding: 140px 0 80px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.contact-grid h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 8vw, 120px); line-height: 0.95;
  letter-spacing: -0.02em; margin-bottom: 40px;
}
.contact-grid h2 em { color: var(--accent); font-style: italic; }

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.info-row { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.info-row .meta { margin: 0; }
.info-row .val { font-size: 18px; font-family: var(--font-body); color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.info-row .val a { word-break: break-word; overflow-wrap: anywhere; }
.info-row .copy {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
  padding: 4px 8px; border: 1px solid var(--line-strong);
  transition: all 0.2s;
}
.info-row .copy:hover { color: var(--accent); border-color: var(--accent); }
.info-row .copy.copied { color: var(--accent); border-color: var(--accent); background: rgba(184,212,238,0.1); }

.form-wrap {
  border: 1px solid var(--line-strong);
  padding: 32px;
  background: var(--bg-2);
  position: relative;
}
.form-row { display: flex; flex-direction: column; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.form-row.has-error { border-bottom-color: var(--warn); }
.form-row label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 8px;
  display: flex; justify-content: space-between;
}
.form-row label .req { color: var(--accent); }
.form-row .err-msg {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--warn);
  display: none; margin-top: 6px;
}
.form-row.has-error .err-msg { display: block; }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-body);
  font-size: 15px;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 4px 0;
  outline: none;
  width: 100%;
  resize: vertical;
  cursor: none;
}
@media (max-width: 900px) { .form-row input, .form-row textarea, .form-row select { cursor: text; } }
.form-row textarea { min-height: 100px; font-family: var(--font-body); }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--ink-mute); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.form-row select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23a6b3c2' stroke-width='1.2' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right center; padding-right: 20px; }
.form-row select option { background: var(--bg-2); color: var(--ink); }

.char-count {
  position: absolute; right: 0; bottom: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  color: var(--ink-mute);
}
.char-count.over { color: var(--warn); }

.form-submit {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
}
.btn-primary {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); padding: 14px 24px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.25s;
}
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:disabled { opacity: 0.4; }
.btn-primary .arr { transition: transform 0.3s; }
.btn-primary:hover .arr { transform: translate(3px, -3px); }

.form-status {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
}
.form-status.ok { color: var(--accent); }

.form-success {
  position: absolute; inset: 0;
  background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
  padding: 32px; text-align: center;
}
.form-wrap.sent .form-success { opacity: 1; pointer-events: auto; }
.form-success .big { font-family: var(--font-display); font-size: 48px; color: var(--accent); font-style: italic; }
.form-success p { color: var(--ink-dim); font-size: 14px; max-width: 40ch; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-wrap { padding: 24px; }
}

@media (max-width: 600px) {
  .contact { padding: 80px 0 60px; }
  .contact-grid h2 { font-size: clamp(44px, 13vw, 64px); margin-bottom: 28px; }
  .info-row {
    grid-template-columns: 1fr;
    gap: 6px; padding: 14px 0;
    align-items: start;
  }
  .info-row .val { font-size: 16px; gap: 8px 12px; }
  .form-wrap { padding: 20px; }
  .form-submit { flex-wrap: wrap; gap: 14px; }
  .form-submit .btn-primary { width: 100%; justify-content: center; }
  .form-success { padding: 24px; }
  .form-success .big { font-size: 36px; }
}

/* ============== FOOTER ============== */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.footer-brand {
  font-family: var(--font-display); font-size: 48px; font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.footer-brand + p {
  font-size: 13px; color: var(--ink-dim); margin-top: 12px; max-width: 30ch;
}
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; font-weight: 400; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--ink-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ============== REVEAL ============== */
:root {
  --reveal-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --reveal-dur: 0.9s;
  --reveal-step: 0.07s;
}

/* Base — default is a gentle "up" fade */
.reveal,
.reveal-up { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--reveal-dur) var(--reveal-ease), transform var(--reveal-dur) var(--reveal-ease), filter var(--reveal-dur) var(--reveal-ease); }
.reveal-down { opacity: 0; transform: translate3d(0, -28px, 0); transition: opacity var(--reveal-dur) var(--reveal-ease), transform var(--reveal-dur) var(--reveal-ease); }
.reveal-left  { opacity: 0; transform: translate3d(-40px, 0, 0); transition: opacity var(--reveal-dur) var(--reveal-ease), transform var(--reveal-dur) var(--reveal-ease); }
.reveal-right { opacity: 0; transform: translate3d(40px, 0, 0);  transition: opacity var(--reveal-dur) var(--reveal-ease), transform var(--reveal-dur) var(--reveal-ease); }
.reveal-scale { opacity: 0; transform: scale(0.92);              transition: opacity var(--reveal-dur) var(--reveal-ease), transform var(--reveal-dur) var(--reveal-ease); }
.reveal-blur  { opacity: 0; filter: blur(14px); transform: translate3d(0, 14px, 0); transition: opacity var(--reveal-dur) var(--reveal-ease), transform var(--reveal-dur) var(--reveal-ease), filter var(--reveal-dur) var(--reveal-ease); }

.reveal.in,
.reveal-up.in,
.reveal-down.in,
.reveal-left.in,
.reveal-right.in { opacity: 1; transform: translate3d(0, 0, 0); filter: none; }
.reveal-scale.in { opacity: 1; transform: scale(1); }
.reveal-blur.in  { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }

/* Stagger — JS assigns --i on each child, so delay scales uniformly */
.reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.7s var(--reveal-ease), transform 0.7s var(--reveal-ease);
  transition-delay: calc(var(--i, 0) * var(--reveal-step));
}
.reveal-stagger.in > * { opacity: 1; transform: translate3d(0, 0, 0); }

/* Split-word hero — each word is wrapped by JS in .reveal-word > span.
   Once the JS has split, the h1 itself shouldn't animate — only the words. */
.hero-title[data-split="1"] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}
.hero-title .reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: inherit;
}
.hero-title .reveal-word > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  filter: blur(10px);
  transition:
    transform 1s var(--reveal-ease),
    opacity 1s var(--reveal-ease),
    filter 1s var(--reveal-ease);
  transition-delay: calc(var(--i, 0) * 0.06s);
}
.hero-title.in .reveal-word > span { transform: translate3d(0, 0, 0); opacity: 1; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-down, .reveal-left, .reveal-right,
  .reveal-scale, .reveal-blur,
  .reveal-stagger > *,
  .hero-title .reveal-word > span {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* ============== LIGHTBOX ============== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease-out;
}
.lightbox[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 15, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lightbox-stage {
  position: relative; z-index: 1;
  width: min(92vw, 1200px);
  max-height: 88vh;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.lightbox-figure {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; min-width: 0;
}
.lightbox-image {
  max-width: 100%; max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
  background: var(--bg-2);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6);
}
.lightbox-caption {
  display: flex; gap: 24px; align-items: baseline;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-dim);
}
.lightbox-title { color: var(--ink); }
.lightbox-counter { color: var(--accent); }
.lightbox-nav,
.lightbox-close {
  font-family: var(--font-display);
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #f4efe8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.lightbox-nav:hover,
.lightbox-close:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox-nav { font-size: 34px; line-height: 1; }
.lightbox-nav[hidden] { display: none; }
.lightbox-close {
  position: absolute; top: 22px; right: 22px;
  font-size: 18px; z-index: 2;
}
body.lightbox-open { overflow: hidden; }

/* ============== LENIS SMOOTH SCROLL ============== */
/* Canonical Lenis reset — overrides any CSS smooth-scroll and lets the JS own it. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

@media (max-width: 720px) {
  .lightbox-stage { grid-template-columns: 1fr; width: 94vw; gap: 18px; }
  .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: 14px; right: 14px; width: 44px; height: 44px; }
  .lightbox-image { max-height: 70vh; }
}

/* Make work-media gallery trigger discoverable via keyboard focus. */
.work-media[data-gallery-id] { cursor: pointer; }
.work-media[data-gallery-id]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) {
  .work-media[data-gallery-id] { cursor: pointer; }
}
