:root {
  --bg: #f4efe6;
  --bg-2: #efe6d6;
  --ink: #1c1914;
  --muted: #6d6458;
  --line: rgba(28, 25, 20, 0.14);
  --ember: #7b1e33;
  --ember-deep: #4a1020;
  --pine: #3c121c;
  --sand: #fffaf3;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav: 96px;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); color-scheme: light; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 50% 18%, rgba(123, 30, 51, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

html.js:not(.is-ready),
html.js:not(.is-ready) body { overflow: hidden; height: 100%; }

::selection { background: var(--ember); color: #fffaf3; }

img { max-width: 100%; }

a { color: inherit; }

button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3, p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

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

.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 90;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  background: var(--ink);
  color: var(--sand);
  border-radius: 8px;
}

#scene,
.wash,
.vignette,
.grain { position: fixed; pointer-events: none; }

#scene { z-index: 0; inset: 0; width: 100%; height: 100%; display: block; }

.wash {
  z-index: 0;
  width: min(70vw, 820px);
  height: min(70vw, 820px);
  left: 50%;
  top: 8vh;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(123, 30, 51, 0.16), rgba(74, 21, 34, 0.05) 42%, transparent 70%);
  filter: blur(8px);
}

.vignette {
  z-index: 1;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 36%, rgba(244, 239, 230, 0.55) 100%);
}

.grain {
  z-index: 1;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--pine), var(--ember));
}

.shape-label {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pine);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.shape-label.is-hidden { opacity: 0; }

.nav {
  position: fixed;
  top: 14px;
  left: max(14px, calc((100% - 1120px) / 2));
  right: max(14px, calc((100% - 1120px) / 2));
  z-index: 40;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.82);
  box-shadow: 0 10px 40px rgba(28, 25, 20, 0.06);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-12px);
}

html.is-ready .nav {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease 0.15s, transform 0.8s var(--ease) 0.15s, background 0.3s, border-color 0.3s;
}

.nav.is-solid,
html.menu-open .nav {
  background: rgba(255, 250, 243, 0.94);
  border-color: rgba(28, 25, 20, 0.16);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-word {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.logo-mark svg { display: block; width: 100%; height: 100%; }

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }

.nav-links a.is-active::after,
.nav-links a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}

.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }

.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--ember);
  color: #fffaf3;
  box-shadow: 0 10px 24px rgba(123, 30, 51, 0.22);
}

.btn-primary:hover { background: var(--ember-deep); }

.btn-ghost {
  background: transparent;
  border-color: rgba(28, 25, 20, 0.22);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 250, 243, 0.7);
}

.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--sand);
  padding: 0;
}

.menu-btn span:not(.sr) {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }

html.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
html.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18vh 40px 48px;
  background: #f4efe6;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.7s var(--ease), visibility 0.7s;
}

.menu.is-open { transform: none; visibility: visible; }

.menu a {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-decoration: none;
}

.menu a:hover { color: var(--ember); font-style: italic; }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.copy { max-width: 760px; margin-inline: auto; }

.kicker {
  margin-bottom: 14px;
  color: var(--ember);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, .loader-word, .passport-mark {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1 {
  max-width: 12em;
  margin-inline: auto;
  font-size: clamp(2.8rem, 5.4vw, 5.1rem);
  font-weight: 500;
  text-wrap: balance;
}

h2 { font-size: clamp(2.15rem, 4vw, 3.5rem); }

h3 { font-family: var(--display); font-size: 1.55rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }

.accent {
  display: inline-block;
  margin-top: 0.04em;
  font-style: italic;
  font-weight: 560;
  color: var(--ember);
}

.lede { margin-top: 22px; max-width: 42rem; color: var(--muted); font-size: 1.12rem; }

.hero { position: relative; z-index: 2; }

.hero-main {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav) + 8px) 0 88px;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, rgba(244, 239, 230, 0.82) 0%, rgba(244, 239, 230, 0.42) 46%, rgba(244, 239, 230, 0.05) 72%);
}

.hero-main .wrap { position: relative; z-index: 1; }

.hero .copy { max-width: 920px; text-align: center; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.hero-note { margin-top: 18px; color: var(--muted); }

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 36px;
  list-style: none;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.facts span {
  display: block;
  margin-bottom: 4px;
  color: var(--ember);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: rgba(28, 25, 20, 0.18);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 45%;
  background: var(--ember);
  animation: fall 1.6s ease-in-out infinite;
}

@keyframes fall {
  to { top: 110%; }
}

.marquee {
  overflow: hidden;
  background: var(--pine);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: drift 36s linear infinite;
}

.marquee p {
  margin: 0;
  color: #f6f1e7;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes drift {
  to { transform: translateX(-50%); }
}

.band {
  position: relative;
  z-index: 2;
  padding: 108px 0;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.72), rgba(239, 230, 214, 0.88));
}

.band + .band { border-top: 1px solid var(--line); }

[id] { scroll-margin-top: 96px; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
  perspective: 1000px;
}

.frame {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--sand);
  box-shadow: 0 16px 40px rgba(28, 25, 20, 0.04);
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, transform 0.35s var(--ease), background 0.35s ease;
}

.frame:hover {
  border-color: var(--ember);
  background: #fff;
}

.frame-index {
  font-family: var(--display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ember);
}

.frame p { margin-top: 8px; color: var(--muted); }

.frame-note {
  color: var(--pine);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services { margin-top: 10px; }

.service {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  padding: 28px 8px;
  border-top: 1px solid var(--line);
  transition: background 0.35s ease;
}

.service:last-child { border-bottom: 1px solid var(--line); }

.service:hover { background: linear-gradient(90deg, rgba(123, 30, 51, 0.08), transparent 78%); }

.service > span {
  padding-top: 4px;
  color: var(--ember);
  font-family: var(--display);
  font-style: italic;
}

.service p { margin-top: 8px; color: var(--muted); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 16px;
}

.pills li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.7);
  color: var(--ink);
  font-size: 12.5px;
}

.timeline { list-style: none; margin-top: 36px; }

.timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  position: relative;
  padding: 0 0 34px 26px;
  border-left: 1px solid var(--line);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 5px rgba(123, 30, 51, 0.15);
}

.timeline span {
  color: var(--pine);
  font-family: var(--display);
  font-style: italic;
}

.timeline p { margin-top: 6px; color: var(--muted); }

.subhead { margin: 36px 0 8px; }

.check { list-style: none; }

.check li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
}

.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pine);
}

.passport {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--sand);
}

.passport-mark {
  width: 72px;
  height: 72px;
  margin: 0;
}

.passport-mark svg { display: block; width: 100%; height: 100%; }

.passport dl { margin: 0; }

.passport div + div { margin-top: 10px; }

.passport dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.passport dd { margin: 2px 0 0; }

.passport a { text-decoration: none; border-bottom: 1px solid rgba(123, 30, 51, 0.45); }

.notes { list-style: none; margin-top: 28px; }

.notes a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.notes li:last-child a { border-bottom: 1px solid var(--line); }

.notes a span:first-child { color: var(--ember); font-family: var(--display); font-style: italic; }

.notes a:hover span:nth-child(2) { color: var(--ember-deep); }

.contact-band { background: rgba(255, 250, 243, 0.9); }

.contact-layout {
  display: grid;
  gap: 36px;
}

.contact-aside {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 26px;
}

.contact-aside a:not(.btn) { color: var(--ember-deep); }

.contact-aside p { color: var(--muted); }

form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--sand);
  box-shadow: 0 18px 40px rgba(28, 25, 20, 0.05);
}

label { display: block; margin-bottom: 14px; }

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

input, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  outline: none;
  resize: vertical;
}

input:focus, textarea:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 4px rgba(74, 21, 34, 0.12);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--ember); }

.form-status { min-height: 1.4em; margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

.form-status.is-error { color: var(--ember-deep); }

.fine { margin-top: 8px; color: var(--muted); font-size: 0.85rem; }

footer {
  position: relative;
  z-index: 2;
  padding: 72px 0 28px;
  background: var(--pine);
  color: #f6f1e7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 32px;
}

footer p { color: rgba(246, 241, 231, 0.72); margin-top: 10px; }

.footer-role { color: #f6f1e7 !important; }

footer .kicker { color: #f0c8ce; }

footer nav, .footer-grid > div:last-child { display: grid; gap: 8px; align-content: start; }

footer nav a, .footer-grid a { text-decoration: none; }

footer nav a:hover, .footer-grid a:hover { color: #f0c8ce; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 241, 231, 0.16);
}

.footer-base p { margin: 0; font-size: 0.92rem; }

.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

html.is-ready .hero .reveal,
[data-reveal].in {
  opacity: 1;
  transform: none;
}

.loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  background: #f4efe6;
  transition: transform 1.05s cubic-bezier(0.77, 0, 0.18, 1);
}

html.js .loader { display: grid; }

.loader.is-done { transform: translateY(-100%); }

.loader-inner { width: min(460px, calc(100% - 48px)); }

.loader-kicker {
  color: var(--ember);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.loader-word {
  margin-top: 10px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.loader-word span {
  display: inline-block;
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(var(--i) * 0.045s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40%); }
}

.loader-bar {
  height: 2px;
  margin-top: 22px;
  background: rgba(28, 25, 20, 0.1);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pine), var(--ember));
  transform: scaleX(0.05);
  transform-origin: 0 50%;
}

.loader-pct {
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.cursor { display: none; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  border-radius: 50%;
  pointer-events: none;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--ember);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(28, 25, 20, 0.7);
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.25s ease;
}

html.has-cursor .cursor { display: block; }

html.has-cursor,
html.has-cursor a,
html.has-cursor button { cursor: none; }

html.has-cursor input,
html.has-cursor textarea { cursor: text; }

html.has-cursor.is-typing .cursor { opacity: 0; }

html.has-cursor .cursor.is-hot .cursor-ring {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  background: rgba(123, 30, 51, 0.1);
}

html.no-webgl .wash {
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  transform: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(123, 30, 51, 0.2), transparent 36%),
    radial-gradient(circle at 60% 62%, rgba(74, 21, 34, 0.12), transparent 30%);
}

@media (min-width: 980px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: start;
    max-width: 1040px;
    margin-inline: auto;
  }
}

@media (max-width: 980px) {
  .shape-label { display: none; }
  .band { background: rgba(244, 239, 230, 0.9); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { left: 12px; right: 12px; padding: 0 10px 0 16px; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .hero-main::before {
    background: radial-gradient(ellipse at 50% 42%, rgba(244, 239, 230, 0.88), rgba(244, 239, 230, 0.72) 70%);
  }
  .work-grid, .service, .timeline li, .passport, .notes a { grid-template-columns: 1fr; }
  .service > span, .timeline span { margin-bottom: 4px; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .facts { flex-direction: column; align-items: center; text-align: center; }
  .footer-grid, .footer-base { grid-template-columns: 1fr; display: grid; }
  .hero-actions .btn { width: 100%; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
