:root {
  --bg: #090a0d;
  --bg-soft: #11131a;
  --text: #f4efe6;
  --muted: #a9a09a;
  --line: rgba(244, 239, 230, 0.12);
  --line-strong: rgba(244, 239, 230, 0.26);
  --accent: #c8a46b;
  --accent-soft: rgba(200, 164, 107, 0.16);
  --wine: #4d1f38;
  --panel: rgba(255, 255, 255, 0.045);
  --max: 1160px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 12%, rgba(77,31,56,.55), transparent 28rem),
    radial-gradient(circle at 18% 22%, rgba(200,164,107,.13), transparent 24rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent); color: #111; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 50;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
  background: rgba(9,10,13,.78);
  backdrop-filter: blur(18px);
  border-color: var(--line);
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  letter-spacing: .04em;
}
.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  letter-spacing: -.04em;
}
.brand small {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}
.site-nav a {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  transition: color .2s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--text); }
.nav-toggle { display: none; }

.section {
  position: relative;
  z-index: 2;
  padding: clamp(76px, 10vw, 138px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 112px;
  overflow: hidden;
}
#signal-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: .5;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,10,13,.86) 0%, rgba(9,10,13,.58) 55%, rgba(9,10,13,.88) 100%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, var(--bg));
  z-index: -1;
}
.hero-grid,
.split-section,
.timeline-section,
.project-section,
.capabilities,
.contact-section,
.site-footer {
  max-width: var(--max);
  margin-inline: auto;
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .62fr);
  gap: clamp(38px, 7vw, 94px);
  align-items: end;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .77rem;
  margin: 0 0 24px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 10.4rem);
  line-height: .84;
  letter-spacing: -.075em;
  font-weight: 400;
}
.lead {
  max-width: 650px;
  color: rgba(244,239,230,.84);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  transition: transform .2s var(--ease), border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(200,164,107,.7); }
.button-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.button-ghost { color: var(--text); }

.hero-panel {
  border-left: 1px solid var(--line);
  padding-left: clamp(22px, 3vw, 34px);
  background: linear-gradient(90deg, rgba(255,255,255,.035), transparent);
}
.panel-line {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.panel-line:last-child { border-bottom: 0; }
.panel-line span {
  display: block;
  color: var(--accent);
  font-size: .74rem;
  letter-spacing: .18em;
  margin-bottom: 10px;
}
.panel-line strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -.02em;
}
.panel-line p { color: var(--muted); margin: 8px 0 0; font-size: .95rem; }
.scroll-cue {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 30px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 58px;
  margin-top: 12px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 1.8s ease infinite;
}
@keyframes cue {
  0%, 100% { opacity: .25; transform: translateY(-4px); }
  50% { opacity: 1; transform: translateY(8px); }
}

.split-section,
.timeline-section,
.project-section,
.capabilities,
.contact-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
}
.section-label {
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding-top: 10px;
}
.section-label::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-bottom: 16px;
  background: var(--accent);
}
.section-body h2 {
  max-width: 850px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 5.4rem);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.055em;
}
.section-body > p {
  max-width: 780px;
  color: rgba(244,239,230,.78);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.inline-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: .83rem;
}

.work-list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}
.work-item { border-bottom: 1px solid var(--line); }
.work-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 28px 0;
  cursor: pointer;
}
.work-trigger span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -.04em;
}
.work-trigger small {
  justify-self: end;
  max-width: 270px;
  color: var(--muted);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
}
.work-content {
  max-width: 720px;
  color: rgba(244,239,230,.74);
  padding: 0 0 30px;
}

.project-list {
  margin-top: 42px;
  display: grid;
  border-top: 1px solid var(--line);
}
.project-link {
  display: grid;
  grid-template-columns: 70px minmax(190px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease, padding-left .2s var(--ease);
}
.project-link:hover {
  color: var(--accent);
  padding-left: 14px;
}
.project-link span {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .2em;
}
.project-link strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.8vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.045em;
}
.project-link p {
  color: var(--muted);
  margin-bottom: 0;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}
.capability-grid > div {
  background: rgba(9,10,13,.9);
  padding: clamp(22px, 3.5vw, 38px);
}
.capability-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -.04em;
  margin-bottom: 14px;
}
.capability-grid p { color: var(--muted); margin-bottom: 0; }

.contact-section { border-bottom: 0; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 780px;
  margin-top: 38px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-form .full { grid-column: 1 / -1; }
input, textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
input:focus, textarea:focus {
  border-color: rgba(200,164,107,.7);
  background: rgba(255,255,255,.07);
}
textarea { resize: vertical; }
.contact-form button { justify-self: start; margin-top: 8px; }
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--muted);
  margin-top: 32px;
}
.contact-meta a { color: var(--text); }

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(18px, 5vw, 64px) 54px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .86rem;
}
.site-footer a { color: var(--text); }

.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cursor-dot {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 60;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .2s ease, width .2s ease, height .2s ease;
  mix-blend-mode: difference;
}
.cursor-dot.is-active { opacity: .9; width: 34px; height: 34px; background: rgba(244,239,230,.7); }

@media (max-width: 880px) {
  .brand small { display: none; }
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
  }
  .nav-toggle em {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .site-nav {
    position: fixed;
    inset: 76px 16px auto;
    display: grid;
    gap: 0;
    padding: 8px;
    background: rgba(9,10,13,.95);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-panel { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .split-section,
  .timeline-section,
  .project-section,
  .capabilities,
  .contact-section { grid-template-columns: 1fr; }
  .project-link { grid-template-columns: 42px 1fr; }
  .project-link p { grid-column: 2; }
  .capability-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .cursor-dot { display: none; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(3.4rem, 18vw, 6rem); }
  .hero { padding-top: 96px; }
  .section { padding-block: 72px; }
  .work-trigger { grid-template-columns: 1fr; }
  .work-trigger small { justify-self: start; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .scroll-cue { display: none; }
}

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