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

:root {
  --black: #080809;
  --surface: #0f0f11;
  --surface2: #161619;
  --surface3: #1e1e22;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(255,255,255,0.14);
  --gold: #c9a96e;
  --gold-light: #e2c99a;
  --gold-dim: rgba(201,169,110,0.15);
  --text: #f0ede8;
  --text-muted: #8a8780;
  --text-dim: #4a4844;
  --radius: 3px;
  --nav-height: 4rem;
}

/* Self-hosted: Playfair Display, DM Sans, DM Mono (SIL OFL 1.1 — see public/fonts/OFL-*.txt) */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-mono-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-mono-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  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;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 3rem;
  background: rgba(8,8,9,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.nav-logo {
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 0.5px solid var(--gold);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--gold); color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: transparent;
  border: 0.5px solid var(--border-accent);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eyebrow-line { width: 40px; height: 0.5px; background: var(--gold); }

.eyebrow-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  max-width: 750px;
  margin-bottom: 1.25rem;
}

.hero h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text); }

.marquee-wrap {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee 28s linear infinite;
}

.marquee-item {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a7771;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

.marquee-dot {
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section { padding: 3.5rem 3rem; }

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header--center { justify-content: center; }

.section-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.section-line { width: 30px; height: 0.5px; background: var(--border-accent); }

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.section-title--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
  margin: -0.5rem 0 1.75rem;
}

.services-bg { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.services-grid--four {
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  background: var(--surface2);
  padding: 1.75rem 1.5rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover { background: var(--surface3); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.work-card {
  background: var(--surface2);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.work-thumb-link,
.work-thumb-static {
  display: block;
  border-bottom: 0.5px solid var(--border);
  overflow: hidden;
  line-height: 0;
}

.work-thumb-link:focus-visible {
  outline-offset: -2px;
}

.work-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.work-thumb-link:hover .work-thumb {
  transform: scale(1.03);
  opacity: 0.92;
}

.work-card-body {
  padding: 1.75rem 1.5rem;
}

.work-card > :not(.work-thumb-link):not(.work-thumb-static) {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.work-card > .work-tag {
  margin-top: 1.25rem;
}

.work-card > .work-links {
  margin-bottom: 1.5rem;
}

.work-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.work-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.work-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.work-stack {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.work-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.work-link:hover {
  color: var(--gold-light);
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.case-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 6.5rem 2rem 4rem;
}

.case-back { margin-bottom: 1.5rem; }

.case-back a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.case-back a:hover { color: var(--gold); }

.case-page .eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.case-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.case-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.case-page .hero-sub { margin-bottom: 2rem; }

.case-thumb {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 2.5rem;
  border: 0.5px solid var(--border);
}

.case-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
}

.case-page p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.work-domain {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 480px;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1.5px solid var(--border);
  margin-top: 1.75rem;
}

.stat-cell { background: var(--surface); padding: 1.25rem; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; }

.about-visual {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  padding: 1.75rem 1.5rem;
}

.audience-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.audience-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.85rem 0;
  border-top: 0.5px solid var(--border);
}

.audience-list li:first-child { border-top: none; padding-top: 0; }

.process-bg { background: var(--surface); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1.5px solid var(--border);
  background: var(--border);
}

.process-step { background: var(--surface2); padding: 1.75rem 1.5rem; }

.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

.contact-inner { max-width: 580px; margin: 0 auto; text-align: center; }

.contact-email {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold-dim);
  padding-bottom: 0.2rem;
  transition: border-color 0.3s;
  margin: 1.25rem 0 0.75rem;
}

.contact-email:hover { border-color: var(--gold); }

.contact-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.8;
}

.contact-note {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-copy { font-size: 11px; color: var(--text-dim); letter-spacing: 0.05em; }

.flash {
  list-style: none;
  max-width: 40rem;
  margin: 1rem auto;
  padding: 0 1.5rem;
}

.flash li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  border: 0.5px solid var(--border-accent);
  background: var(--surface2);
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 1rem 2rem;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-nav { padding: 1rem 1.5rem; flex-wrap: wrap; }

  .nav-toggle { display: flex; }

  .nav-end {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 1rem 0 0.5rem;
    gap: 1rem;
    border-top: 0.5px solid var(--border);
    margin-top: 0.5rem;
  }

  .site-nav.is-open .nav-end { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-cta { text-align: center; }

  section { padding: 2.5rem 1.5rem; }
  .hero { padding: 5rem 1.5rem 3rem; }
  .case-page { padding: 5.5rem 1.5rem 3rem; }
  .services-grid,
  .services-grid--four,
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .site-footer {
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
