:root {
  --bg: #f5f3ee;
  --bg-veil: rgba(245, 243, 238, 0.9);
  --ink: #17191c;
  --graphite: #2e3033;
  --body: #3f454c;
  --muted: #555b63;
  --line: #ddd8cd;
  --line-strong: #c6c1b4;
  --accent: #1a63ff;
  --max-width: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  width: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: rgba(26, 99, 255, 0.16);
}

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

.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;
}

/* ---------- 3D canvas ---------- */

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  pointer-events: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad-x);
  background: rgba(245, 243, 238, 0.84);
  border-bottom: 1px solid rgba(221, 216, 205, 0.7);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--ink);
  transform: rotate(45deg);
  background: transparent;
  transition: transform 400ms var(--ease-out);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.brand:hover .brand-mark {
  transform: rotate(135deg);
}

.brand-name {
  display: grid;
  min-width: 0;
  line-height: 1.18;
}

.brand-name strong {
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.brand-name small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 4px;
  color: var(--body);
  font-size: 0.94rem;
  font-weight: 530;
  letter-spacing: -0.006em;
  padding: 9px 13px;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav .nav-cta {
  margin-left: 10px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 590;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span[aria-hidden="true"],
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  content: "";
}

.nav-toggle span[aria-hidden="true"] {
  position: relative;
}

.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  position: absolute;
  left: 0;
}

.nav-toggle span[aria-hidden="true"]::before {
  top: -6px;
}

.nav-toggle span[aria-hidden="true"]::after {
  top: 6px;
}

/* ---------- typography ---------- */

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  font-weight: 620;
  letter-spacing: -0.032em;
  line-height: 1.03;
  text-wrap: balance;
}

h2 {
  max-width: 24ch;
  font-size: clamp(1.9rem, 4.3vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.026em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 em {
  color: var(--muted);
  font-style: normal;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--graphite);
  font-size: 0.72rem;
  font-weight: 640;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

.eyebrow .index {
  color: var(--muted);
  font-weight: 480;
  letter-spacing: 0.1em;
}

.lede {
  max-width: 54ch;
  color: var(--body);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  font-weight: 420;
  line-height: 1.65;
}

.copy {
  display: grid;
  gap: 20px;
  max-width: 58ch;
}

.copy p {
  color: var(--body);
  font-size: 1.06rem;
  font-weight: 410;
  line-height: 1.72;
}

.copy strong {
  color: var(--ink);
  font-weight: 590;
}

.statement {
  max-width: 36ch;
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 590;
  letter-spacing: -0.014em;
  line-height: 1.45;
  text-wrap: balance;
}

/* ---------- panels / scroll structure ---------- */

.panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  overflow: clip;
  min-height: 108vh;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
}

.panel-inner {
  position: relative;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.text-col {
  display: grid;
  gap: 28px;
  max-width: 620px;
}

.text-col-right {
  margin-left: auto;
}

/* soft veil so type stays readable when geometry passes behind it */
.text-col,
.system-statement {
  isolation: isolate;
  position: relative;
}

.text-col::before,
.system-statement::before {
  content: "";
  position: absolute;
  inset: -56px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    var(--bg-veil) 0%,
    rgba(245, 243, 238, 0.74) 58%,
    rgba(245, 243, 238, 0.12) 82%,
    transparent 92%
  );
  filter: blur(8px);
}

/* oversized editorial numerals behind the three areas */
.ghost-index {
  position: absolute;
  top: 50%;
  z-index: -2;
  transform: translateY(-58%);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(23, 25, 28, 0.075);
  font-size: clamp(9rem, 22vw, 19rem);
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.area-right .ghost-index {
  left: -0.04em;
}

.area-left .ghost-index {
  right: -0.04em;
}

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

.hero {
  min-height: 100svh;
}

.hero .panel-inner {
  position: relative;
}

.hero-content {
  display: grid;
  gap: 30px;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 8px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 570;
  font-size: 0.98rem;
  letter-spacing: -0.008em;
}

.link-arrow::after {
  content: "\2193";
  color: var(--accent);
  transition: transform 300ms var(--ease-out);
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: translateY(3px);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 480;
  letter-spacing: 0.01em;
}

.hero-meta .dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2fa36b;
  box-shadow: 0 0 0 4px rgba(47, 163, 107, 0.16);
}

.hero-meta-booked .dot {
  background: #c98b19;
  box-shadow: 0 0 0 4px rgba(201, 139, 25, 0.18);
}

.scroll-hint {
  position: absolute;
  right: 4px;
  bottom: -6vh;
  display: grid;
  place-items: center;
  width: 44px;
  height: 64px;
}

.scroll-hint span {
  display: block;
  width: 1.5px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--graphite));
  animation: hint-drop 2.6s ease-in-out infinite;
}

@keyframes hint-drop {
  0%,
  100% {
    transform: translateY(-4px);
    opacity: 0.35;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

/* ---------- buttons ---------- */

.button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 590;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 14px 30px;
  background: var(--ink);
  color: var(--bg);
  transition:
    transform 200ms var(--ease-out),
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(26, 99, 255, 0.22);
}

.button:active {
  transform: translateY(0);
}

.button[disabled] {
  cursor: default;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

/* ---------- areas ---------- */

.area-lead {
  color: var(--ink);
  font-size: clamp(1.14rem, 2vw, 1.32rem);
  font-weight: 590;
  letter-spacing: -0.014em;
}

.voices {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.voices li {
  position: relative;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(9px) saturate(1.08);
  -webkit-backdrop-filter: blur(9px) saturate(1.08);
  color: var(--graphite);
  font-size: 0.96rem;
  font-weight: 470;
  line-height: 1.5;
  padding: 11px 18px;
}

.voices li:last-child {
  border-color: rgba(26, 99, 255, 0.35);
  color: var(--ink);
  font-weight: 570;
}

.voices li:last-child::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: var(--accent);
}

/* ---------- system statement ---------- */

.system {
  min-height: 120vh;
}

.system-statement {
  display: grid;
  gap: 24px;
  justify-items: center;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.system-statement .lede {
  max-width: 44ch;
}

/* ---------- about ---------- */

.about {
  min-height: 118vh;
}

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

.contact {
  min-height: 110vh;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.contact-grid .text-col {
  gap: 26px;
}

.contact-mail {
  justify-self: start;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  transition: color 160ms ease;
}

.contact-mail:hover,
.contact-mail:focus-visible {
  color: var(--accent);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(26px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(252, 251, 248, 0.95);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  box-shadow:
    0 1px 2px rgba(23, 25, 28, 0.03),
    0 24px 60px rgba(23, 25, 28, 0.07);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 450;
  letter-spacing: 0.04em;
  text-transform: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fdfcfa;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 440;
  letter-spacing: normal;
  text-transform: none;
  padding: 13px 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--line-strong);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 99, 255, 0.13);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.contact-form ::placeholder {
  color: #a3a5a9;
  font-weight: 400;
}

/* honeypot — invisible to humans, irresistible to bots */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 480;
  font-size: 0.94rem;
  letter-spacing: normal;
  text-transform: none;
}

.form-status.is-success {
  color: #1f7a4f;
  font-weight: 560;
}

.form-status.is-error {
  color: #b3401f;
  font-weight: 560;
}

.form-status a {
  color: inherit;
  text-decoration: underline;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 64px) var(--pad-x) 34px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-brand strong {
  font-size: 1.06rem;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.footer-brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-mail {
  color: var(--ink);
  font-weight: 570;
  font-size: 0.98rem;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: color 160ms ease;
}

.footer-mail:hover,
.footer-mail:focus-visible {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 460;
}

.footer-meta a {
  color: var(--ink);
  font-weight: 570;
  transition: color 160ms ease;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--accent);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-hint span {
    animation: none;
  }
}

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(250, 249, 245, 0.97);
    box-shadow: 0 18px 50px rgba(23, 25, 28, 0.1);
  }

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

  .site-nav a {
    padding: 13px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  .panel {
    min-height: 96vh;
    align-items: flex-end;
    padding-top: 60px;
    padding-bottom: 12vh;
  }

  .hero {
    align-items: center;
  }

  h1 {
    max-width: min(16ch, 100%);
    font-size: clamp(2.7rem, 9vw, 4rem);
  }

  .text-col,
  .text-col-right {
    margin-left: 0;
    max-width: 560px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .scroll-hint {
    display: none;
  }

  .ghost-index {
    top: 8%;
    transform: none;
    font-size: clamp(7rem, 26vw, 11rem);
  }
}

@media (max-width: 620px) {
  .brand-name small {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .link-arrow {
    justify-content: center;
  }

  .button {
    width: 100%;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .text-col::before,
  .system-statement::before {
    inset: -36px -26px;
  }
}
