/* Vespera Studio — shared stylesheet
   Palette: warm bone, ink, burnt orange. Type: Instrument Serif + Space Grotesk. */

:root {
  --paper: #f2ece1;
  --paper-2: #e9e0d0;
  --ink: #14110d;
  --muted: #6f665a;
  --line: rgba(20, 17, 13, 0.15);
  --line-strong: rgba(20, 17, 13, 0.3);
  --accent: #c0542c;
  --accent-soft: #e8b294;
  --footer: #14110d;
  --footer-fg: #f0e8d9;
  --band: #14110d;
  --band-fg: #f0e8d9;
  --error: #a53522;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.19, 0.7, 0.22, 1);
}

[data-theme="dark"] {
  --paper: #12100d;
  --paper-2: #1a1611;
  --ink: #f1e9da;
  --muted: #a29786;
  --line: rgba(241, 233, 218, 0.16);
  --line-strong: rgba(241, 233, 218, 0.32);
  --accent: #e07a48;
  --accent-soft: #7a3f26;
  --footer: #1a1611;
  --footer-fg: #f1e9da;
  --band: #1c1812;
  --band-fg: #f1e9da;
  --error: #e0876f;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
  transition: background-color 0.5s ease, color 0.5s ease;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.035; }

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, blockquote, figure { margin: 0; }
em { font-style: italic; }

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.section { padding: clamp(84px, 10vw, 150px) 0; }
.section[style], section[id] { scroll-margin-top: 100px; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  padding-bottom: 28px;
  margin-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}
.section-note { color: var(--muted); max-width: 44ch; justify-self: end; font-size: 0.98rem; }
.section-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.section-note a:hover { color: var(--accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 7px;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 18px 0;
  transition: padding 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 23px; height: 23px; color: var(--ink); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: baseline;
}
.brand-name em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-left: 7px;
  color: var(--muted);
}
.nav-desktop { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-desktop a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-tools { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.71rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.btn-line { border: 1px solid var(--line-strong); padding: 11px 20px; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid {
  background: var(--ink);
  color: var(--paper);
  padding: 17px 30px;
}
.btn-solid:hover { background: var(--accent); color: #fff7ee; }

.menu-btn { display: none; align-items: center; gap: 10px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.menu-bars { display: grid; gap: 5px; width: 22px; }
.menu-bars i { height: 1px; background: currentColor; transition: transform 0.3s; }

@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  .theme-toggle { width: 36px; height: 36px; }
  .brand-name { font-size: 1.3rem; }
}

/* ---------- drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #14110d;
  color: #f0e8d9;
  padding: 22px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.6s var(--ease), visibility 0s 0.6s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.6s var(--ease), visibility 0s; }
.drawer-top { position: sticky; top: -22px; z-index: 2; display: flex; align-items: center; justify-content: space-between; background: #14110d; padding-top: 22px; padding-bottom: 6px; }
.drawer-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.55; }
.drawer-close { width: 44px; height: 44px; border: 1px solid rgba(240, 232, 217, 0.25); border-radius: 50%; display: grid; place-items: center; color: inherit; }
.drawer-close svg { width: 18px; height: 18px; }
.drawer-nav { margin-top: clamp(18px, 9vh, 96px); display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 11vw, 4.4rem);
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(240, 232, 217, 0.12);
  transition: color 0.3s, padding-left 0.4s var(--ease);
}
.drawer-nav a:hover { color: #e07a48; padding-left: 10px; }
.drawer-nav span { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.16em; opacity: 0.45; }
.drawer-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 8px; font-size: 0.86rem; }
.drawer-theme {
  justify-self: start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(240, 232, 217, 0.28);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.drawer-theme:hover { border-color: #e07a48; color: #e07a48; }

/* Short viewports (phone held sideways, small laptops): keep every menu item
   reachable without scrolling the full-screen drawer. */
@media (max-height: 620px) {
  .drawer { padding-top: 12px; padding-bottom: 16px; }
  .drawer-top { top: -12px; padding-top: 12px; }
  .drawer-nav { margin-top: 6px; gap: 2px; }
  .drawer-nav a { font-size: clamp(1.4rem, 6.4vh, 2.2rem); padding: 3px 0; }
  .drawer-foot { padding-top: 12px; font-size: 0.74rem; gap: 3px; }
  .drawer-theme { margin-top: 2px; padding: 6px 13px; font-size: 0.62rem; }
}
.drawer-foot p { opacity: 0.55; }
.drawer-foot a:first-child { font-size: 1.05rem; }
.drawer-social { opacity: 0.7; }

/* ---------- curtain intro ---------- */

.curtain { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; overflow: hidden; }
.curtain-panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.curtain-panels span {
  background: #14110d;
  transform-origin: top;
  transition: transform 0.85s var(--ease);
}
.curtain-panels span:nth-child(1) { transition-delay: 0.05s; }
.curtain-panels span:nth-child(2) { transition-delay: 0.11s; }
.curtain-panels span:nth-child(3) { transition-delay: 0.17s; }
.curtain-panels span:nth-child(4) { transition-delay: 0.23s; }
.curtain-panels span:nth-child(5) { transition-delay: 0.29s; }
.curtain.is-lifting .curtain-panels span { transform: translateY(-101%); }
.curtain.is-lifting { pointer-events: none; }

.curtain-center { position: relative; z-index: 1; text-align: center; color: #f0e8d9; transition: opacity 0.4s ease, transform 0.6s var(--ease); }
.curtain.is-lifting .curtain-center { opacity: 0; transform: translateY(-16px); }
.curtain-word {
  font-family: var(--serif);
  font-size: clamp(4rem, 15vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  animation: curtainWord 1.1s var(--ease) 0.1s both;
}
.curtain-word em { font-style: italic; }
.curtain-meta {
  margin-top: 18px;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: fadeUp 0.8s ease 0.5s both;
}
.curtain-hint {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: #f0e8d9;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
  animation: fadeUp 0.8s ease 0.8s both;
}
html.intro-skip .curtain { display: none; }
@keyframes curtainWord { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- reveal + split text ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word-inner {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 48ms);
}
[data-split].is-live .split-word-inner { transform: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 150px 0 44px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 74% 26%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px 48px;
  align-items: end;
}
.hero .eyebrow { grid-column: 1 / -1; }
.hero-title {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.15rem, 8.8vw, 8.4rem);
  line-height: 0.91;
  letter-spacing: -0.028em;
  margin: 4px 0 18px;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-line { display: block; white-space: nowrap; }
.hero-aside { grid-column: 2; grid-row: 3; align-self: end; padding-bottom: 4px; }
.hero-aside p { color: var(--muted); font-size: 0.98rem; margin-bottom: 22px; }
.hero-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: clamp(34px, 6vh, 70px);
  padding-top: 20px;
}
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.scroll-line { width: 54px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
.hero-meta { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.hero-disc {
  position: absolute;
  right: 3vw;
  top: 16%;
  width: clamp(220px, 25vw, 360px);
  aspect-ratio: 1;
  color: var(--ink);
  z-index: 1;
  animation: spin 52s linear infinite;
  pointer-events: none;
  opacity: 0.85;
}
.hero-disc svg { width: 100%; height: 100%; overflow: visible; }
.hero-disc text { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; fill: currentColor; }
.disc-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--accent);
  animation: spinBack 52s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinBack { to { transform: rotate(-360deg); } }

@media (max-width: 1080px) {
  .hero-disc { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { grid-column: 1; grid-row: auto; max-width: 46ch; margin-top: 8px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 128px; min-height: auto; }
  .hero-title { font-size: clamp(2.75rem, 12.4vw, 4rem); margin-bottom: 26px; }
  .hero-line { white-space: normal; }
  .hero-foot { margin-top: 40px; }
  .hero-meta { text-align: right; }
}

/* ---------- marquee ---------- */

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.9rem); white-space: nowrap; }
.marquee-track i { color: var(--accent); font-style: normal; font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- work list ---------- */

.work-list { border-bottom: 1px solid var(--line); }
.work-item { border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 210px 66px 34px;
  align-items: center;
  gap: 18px;
  padding: 30px 0;
  position: relative;
  transition: color 0.4s ease;
}
.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.work-row:hover::before, .work-row:focus-visible::before { opacity: 1; }
.work-index, .work-tag, .work-year {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}
.work-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease), color 0.4s;
  position: relative;
}
.work-row:hover .work-title { transform: translateX(14px); color: var(--accent); }
.work-arrow { justify-self: end; color: var(--muted); font-size: 1.15rem; transition: transform 0.4s var(--ease), color 0.4s; }
.work-row:hover .work-arrow { transform: translate(3px, -3px); color: var(--accent); }

.work-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 300px;
  pointer-events: none;
  opacity: 0;
  display: block;
  will-change: transform, opacity;
}
.work-preview.is-active { opacity: 1; }
.work-preview-card { background: var(--paper); border: 1px solid var(--line); padding: 9px 9px 0; box-shadow: 0 30px 60px rgba(20, 17, 13, 0.22); }
.work-preview-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.work-preview-caption { font-size: 0.74rem; line-height: 1.35; padding: 10px 3px 11px; color: var(--ink); }

/* ---------- CSS poster art ---------- */

.art { position: absolute; inset: 0; background: var(--a-bg, #ddd); color: var(--a-fg, #111); display: grid; place-items: center; overflow: hidden; }
.art--orra { --a-bg: radial-gradient(120% 90% at 18% 8%, #f7e5c8, #dda06f 52%, #b45a32); --a-fg: #3a1a0f; }
.art--orra::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; left: -14%; bottom: -16%; opacity: 0.55; }
.art--orra::after { content: ""; position: absolute; right: 12%; top: 12%; width: 24%; height: 46%; border: 1px solid currentColor; opacity: 0.45; }
.art--field { --a-bg: linear-gradient(150deg, #e6e9e0, #a8b5a5 55%, #47584c); --a-fg: #13241b; }
.art--field::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 34px); opacity: 0.16; }
.art--field::after { content: ""; position: absolute; inset: 20% 16%; border: 1px solid currentColor; opacity: 0.4; }
.art--sable { --a-bg: linear-gradient(200deg, #f2ded4, #d9a48f 55%, #a9604a); --a-fg: #341710; }
.art--sable::before { content: ""; position: absolute; width: 150%; height: 62%; border: 1px solid currentColor; border-radius: 50%; left: -24%; top: 20%; transform: rotate(-14deg); opacity: 0.5; }
.art--sable::after { content: ""; position: absolute; width: 34%; height: 34%; background: currentColor; border-radius: 50%; right: 12%; bottom: 10%; opacity: 0.14; }
.art--harbor { --a-bg: linear-gradient(160deg, #204038, #10241f 68%, #0a1713); --a-fg: #ecdfc6; }
.art--harbor::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 27px); opacity: 0.12; }
.art--harbor::after { content: ""; position: absolute; width: 42%; aspect-ratio: 1; border-radius: 50%; background: currentColor; right: 12%; bottom: 14%; opacity: 0.14; }
.art--loam { --a-bg: radial-gradient(130% 120% at 68% 18%, #4c4c2d, #2a2a17 62%, #191a0e); --a-fg: #d9d4a6; }
.art--loam::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(currentColor 1px, transparent 1px); background-size: 15px 15px; opacity: 0.18; }
.art--loam::after { content: ""; position: absolute; width: 70%; height: 1px; background: currentColor; left: 15%; bottom: 26%; opacity: 0.5; }
.art--casa { --a-bg: linear-gradient(150deg, #e0e9ea, #9fb9bf 50%, #3f6068); --a-fg: #12262b; }
.art--casa::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 12%, currentColor 12% calc(12% + 1px)); opacity: 0.18; }
.art--casa::after { content: ""; position: absolute; width: 40%; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; left: 12%; top: 14%; opacity: 0.5; }

.art-label, .art-note { position: absolute; z-index: 2; font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; }
.art-label { top: 14px; left: 15px; }
.art-note { bottom: 14px; right: 15px; opacity: 0.72; }
.art-letter { position: relative; z-index: 2; font-family: var(--serif); font-style: italic; font-size: clamp(6rem, 10vw, 8.8rem); line-height: 0.8; transform: translateY(5%); }
.work-preview .art { opacity: 0; transition: opacity 0.3s ease; }
.work-preview .art.is-shown { opacity: 1; }

/* ---------- services ---------- */

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service { padding: 34px 30px 10px 0; border-right: 1px solid var(--line); }
.service:last-child { border-right: 0; }
.service:not(:first-child) { padding-left: 30px; }
.service-num { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--accent); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; margin: 22px 0 14px; }
.service p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.service ul { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 6px; }
.service li { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.service li:last-child { border-bottom: 0; }

/* ---------- stats band ---------- */

.stats-band { background: var(--band); color: var(--band-fg); padding: clamp(60px, 7vw, 90px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 6px 28px; border-left: 1px solid rgba(240, 232, 217, 0.18); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 12px; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; max-width: 18ch; }

/* ---------- studio teaser ---------- */

.teaser-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(38px, 6vw, 96px); align-items: center; }
.teaser-media { position: relative; }
.teaser-art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(155deg, #dcc7a7, #b08256 52%, #6d4326);
  color: #f6ebd9;
  display: grid;
  place-items: center;
}
.teaser-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(246, 235, 217, 0.08) 46px 47px); }
.teaser-ring { position: absolute; width: 78%; aspect-ratio: 1; border: 1px solid rgba(246, 235, 217, 0.5); border-radius: 50%; }
.teaser-ring::after { content: ""; position: absolute; inset: 11%; border: 1px solid rgba(246, 235, 217, 0.3); border-radius: 50%; }
.teaser-letter { position: relative; z-index: 2; font-family: var(--serif); font-style: italic; font-size: clamp(9rem, 22vw, 16rem); line-height: 0.8; }
.teaser-caption { position: absolute; z-index: 2; left: 20px; bottom: 18px; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.5; opacity: 0.8; }
.teaser-copy .eyebrow { margin-bottom: 18px; }
.teaser-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 0.98; letter-spacing: -0.015em; margin-bottom: 24px; }
.teaser-copy p { color: var(--muted); max-width: 48ch; margin-bottom: 16px; }
.teaser-copy .link-arrow { margin-top: 12px; }

/* ---------- quote + clients ---------- */

.quote-section { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.quote p { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.06; letter-spacing: -0.015em; max-width: 20ch; }
.quote p::before { content: "“"; color: var(--accent); }
.quote p::after { content: "”"; color: var(--accent); }
.quote cite { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-style: normal; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.quote cite::before { content: ""; width: 40px; height: 1px; background: var(--accent); }

.clients { padding: 0 0 clamp(80px, 9vw, 130px); }
.clients .eyebrow { margin-bottom: 26px; }
.client-list { display: flex; flex-wrap: wrap; gap: 10px 44px; border-top: 1px solid var(--line); padding-top: 26px; }
.client-list li { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: var(--muted); transition: color 0.3s; }
.client-list li:hover { color: var(--ink); }

/* ---------- footer ---------- */

.site-footer { background: var(--footer); color: var(--footer-fg); padding: clamp(70px, 9vw, 110px) 0 34px; }
.footer-cta p { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5; margin-bottom: 18px; }
.footer-cta a { display: inline-flex; align-items: center; gap: 22px; font-family: var(--serif); font-size: clamp(2.9rem, 7.6vw, 7rem); line-height: 0.92; letter-spacing: -0.02em; transition: color 0.3s; }
.footer-cta a span { font-family: var(--sans); font-size: 0.5em; transition: transform 0.4s var(--ease); }
.footer-cta a:hover { color: #e07a48; }
.footer-cta a:hover span { transform: translate(6px, -6px); }
.footer-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1.1fr; gap: 36px; margin-top: clamp(60px, 8vw, 100px); border-top: 1px solid rgba(240, 232, 217, 0.16); padding-top: 40px; }
.footer-brand .brand-name { font-size: 1.6rem; }
.footer-brand p { opacity: 0.55; font-size: 0.88rem; max-width: 32ch; margin-top: 14px; }
.footer-label { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.42; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 0.88rem; opacity: 0.72; padding: 3px 0; transition: opacity 0.3s, color 0.3s; }
.footer-col a:hover { opacity: 1; color: #e07a48; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; border-top: 1px solid rgba(240, 232, 217, 0.12); padding-top: 22px; font-size: 0.68rem; letter-spacing: 0.04em; opacity: 0.42; }

/* ---------- inner page hero ---------- */

.page-hero { padding: clamp(140px, 17vh, 200px) 0 clamp(40px, 6vw, 70px); }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 30px 60px; align-items: end; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 7.2rem); line-height: 0.9; letter-spacing: -0.025em; grid-column: 1 / -1; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-lead { color: var(--muted); max-width: 52ch; font-size: clamp(1rem, 1.3vw, 1.14rem); }
.page-aside { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1.9; justify-self: end; text-align: right; }
.page-aside strong { font-weight: 500; color: var(--ink); }

/* ---------- work page ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding: 22px 0 0; margin-bottom: clamp(38px, 5vw, 64px); }
.filter-btn { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 9px 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.filter-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-count { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-left: auto; align-self: center; }

.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 6vw, 74px) clamp(24px, 3.4vw, 44px); }
.case-card { display: block; scroll-margin-top: 110px; }
.case-card:nth-child(even) { margin-top: clamp(0px, 6vw, 84px); }
.case-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; }
.case-media .art { opacity: 1; transition: transform 0.9s var(--ease); }
.case-media .art-letter { font-size: clamp(6rem, 12vw, 11rem); }
.case-card:hover .case-media .art { transform: scale(1.045); }
.case-card:hover .case-title { color: var(--accent); }
.case-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.case-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1; transition: color 0.3s; }
.case-result { color: var(--muted); font-size: 0.92rem; margin-top: 10px; max-width: 44ch; }
.case-card[hidden] { display: none; }
.case-card.is-shown { animation: cardIn 0.5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.index-table { margin-top: clamp(80px, 10vw, 130px); }
.index-head, .index-row { display: grid; grid-template-columns: 80px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 16px; align-items: baseline; }
.index-head { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 12px; }
.index-row { padding: 18px 0; border-bottom: 1px solid var(--line); transition: color 0.3s, padding-left 0.35s var(--ease); }
.index-row:hover { color: var(--accent); padding-left: 8px; }
.index-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.index-row span { font-size: 0.86rem; color: var(--muted); }
.index-row:hover span { color: var(--accent); }

/* ---------- studio page ---------- */

.studio-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); }
.studio-copy p { color: var(--muted); max-width: 60ch; margin-bottom: 18px; }
.studio-copy p.lead { color: var(--ink); font-size: clamp(1.22rem, 1.8vw, 1.55rem); line-height: 1.4; max-width: 40ch; }
.studio-facts { border-top: 1px solid var(--line); align-self: start; }
.studio-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.78rem; }
.studio-facts dt { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.64rem; }
.studio-facts dd { margin: 0; text-align: right; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 44px) clamp(16px, 2.4vw, 30px); }
.portrait { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; color: rgba(248, 240, 226, 0.9); }
.portrait span { font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; }
.portrait::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(125deg, transparent 0 40px, rgba(255, 255, 255, 0.07) 40px 41px); }
.portrait--1 { background: linear-gradient(160deg, #7d4a2e, #3a1f13); }
.portrait--2 { background: linear-gradient(160deg, #5e6b5a, #222e26); }
.portrait--3 { background: linear-gradient(160deg, #9a7a55, #4a3520); }
.portrait--4 { background: linear-gradient(160deg, #855b4f, #331c17); }
.portrait--5 { background: linear-gradient(160deg, #6b6b52, #2c2c1c); }
.portrait--6 { background: linear-gradient(160deg, #8a6a4c, #402a17); }
.team-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin-top: 14px; line-height: 1.1; }
.team-card p { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.process-list { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, 5vw, 70px); }
.process-step { padding: 26px 0 30px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.process-num { font-size: 0.66rem; letter-spacing: 0.14em; color: var(--accent); padding-top: 6px; }
.process-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.92rem; max-width: 40ch; }
.process-time { display: inline-block; margin-top: 10px; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 50px); }
.value h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.value p { color: var(--muted); font-size: 0.94rem; }
.value .value-index { display: block; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 14px; }

.clients-page { display: flex; flex-wrap: wrap; gap: 8px 36px; border-top: 1px solid var(--line); padding-top: 26px; }
.clients-page li { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--muted); }

/* ---------- contact page ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.form-lead { color: var(--muted); max-width: 44ch; margin-bottom: 36px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 11px 0;
  font: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  transition: border-color 0.3s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f665a' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
  cursor: pointer;
}
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a29786' stroke-width='1.2'/%3E%3C/svg%3E"); }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field .field-error { display: none; font-size: 0.74rem; color: var(--error); margin-top: 7px; }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-bottom-color: var(--error); }
.field.is-error .field-error { display: block; }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.form-note { font-size: 0.72rem; color: var(--muted); max-width: 30ch; line-height: 1.5; }
.form-success { display: none; border: 1px solid var(--line-strong); padding: clamp(26px, 4vw, 44px); }
.form-success.is-visible { display: block; animation: cardIn 0.5s var(--ease) both; }
.form-success h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; margin-bottom: 14px; }
.form-success p { color: var(--muted); max-width: 44ch; }
.form-success .link-arrow { margin-top: 24px; }

.contact-aside { border-top: 1px solid var(--line); }
.contact-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-block .footer-label { opacity: 1; color: var(--muted); margin-bottom: 8px; }
.contact-block a { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; transition: color 0.3s; }
.contact-block a:hover { color: var(--accent); }
.contact-block p { color: var(--muted); font-size: 0.92rem; }
.contact-hours { display: grid; gap: 4px; color: var(--muted); font-size: 0.88rem; }
.contact-hours span { display: flex; justify-content: space-between; gap: 18px; }

.faq { border-top: 1px solid var(--line); margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; cursor: pointer; font-size: 0.95rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.15rem; color: var(--accent); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 0.9rem; padding: 0 0 20px; max-width: 52ch; }

/* ---------- custom cursor ---------- */

.cursor { display: none; }
@media (pointer: fine) {
  html.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 350; pointer-events: none; }
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor select, html.has-cursor label { cursor: none; }
  .cursor-dot, .cursor-ring { position: absolute; top: 0; left: 0; border-radius: 50%; transform: translate3d(-50%, -50%, 0); }
  .cursor-dot { width: 5px; height: 5px; background: var(--accent); }
  .cursor-ring { width: 36px; height: 36px; border: 1px solid var(--ink); opacity: 0.55; transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.25s ease; }
  .cursor.is-hover .cursor-ring { width: 62px; height: 62px; opacity: 1; border-color: var(--accent); }
  .cursor.is-down .cursor-ring { width: 28px; height: 28px; }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0 30px; }
  .service:not(:first-child) { padding-left: 0; }
  .service:last-child { border-bottom: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser-art { aspect-ratio: 16 / 10; }
  .teaser-letter { font-size: clamp(7rem, 24vw, 12rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-aside { justify-self: start; text-align: left; }
  .studio-intro { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .section-note { justify-self: start; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card:nth-child(even) { margin-top: 0; }
  .work-row { grid-template-columns: 34px minmax(0, 1fr) 26px; gap: 12px; padding: 24px 0; }
  .work-tag, .work-year { display: none; }
  .work-title { font-size: clamp(1.55rem, 6.6vw, 2.1rem); }
  .index-head, .index-row { grid-template-columns: 54px minmax(0, 1.4fr) minmax(0, 1fr); }
  .index-head span:nth-child(4), .index-row span:nth-child(4) { display: none; }
  .index-name { font-size: 1.25rem; }
  .page-hero { padding-top: 128px; }
  .quote cite { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; gap: 26px; }
  .stat, .stat:nth-child(3) { border-left: 0; padding: 0; border-top: 1px solid rgba(240, 232, 217, 0.18); padding-top: 20px; }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 8px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .footer-cta a { gap: 12px; }
  .form-foot { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .split-word-inner { transform: none !important; }
  .marquee-track { animation: none; }
}
