:root {
  --ink: #101826;
  --muted: #657184;
  --line: rgba(16, 24, 38, 0.18);
  --blue: #164cff;
  --paper: #f3f5f7;
  --white: #ffffff;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { margin: 0; background: var(--paper); }
a { color: inherit; }
button, input, textarea { font: inherit; }

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

.imprint-link {
  position: fixed; z-index: 20; top: 28px; right: clamp(24px, 4vw, 64px);
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  color: var(--white); font: 400 12px/1 "DM Mono", monospace; letter-spacing: 0.08em;
  text-decoration: none; text-transform: uppercase; border-bottom: 1px solid currentColor;
  mix-blend-mode: difference;
}
.imprint-link span { transition: transform 180ms ease; }
.imprint-link:hover span { transform: translate(3px, -3px); }

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 64px 24px 120px; color: var(--white); background: var(--ink); overflow: hidden; scroll-snap-align: start; }
.hero::before { content: "01 / Welcome"; position: absolute; top: 34px; left: clamp(24px, 4vw, 64px); font: 400 11px/1 "DM Mono", monospace; letter-spacing: 0.12em; }
.hero-grid { position: absolute; inset: 0; opacity: 0.45; background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px); background-size: clamp(64px, 8vw, 128px) clamp(64px, 8vw, 128px); mask-image: radial-gradient(circle at center, black, transparent 72%); }
.logo { position: relative; width: min(72vw, 860px); height: auto; animation: reveal 900ms cubic-bezier(.2,.8,.2,1) both; }

.scroll-cue { position: absolute; bottom: 30px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--white); font: 400 11px/1 "DM Mono", monospace; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; transform: translateX(-50%); }
.scroll-cue .arrow { font-family: sans-serif; font-size: 30px; font-weight: 300; animation: nudge 1.8s ease-in-out infinite; }

.contact { min-height: 100svh; display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(440px, 1.2fr); gap: clamp(60px, 9vw, 160px); align-items: center; padding: clamp(96px, 10vw, 160px) clamp(24px, 8vw, 140px); color: var(--ink); background: var(--paper); scroll-snap-align: start; }
.eyebrow, .section-number { margin: 0 0 30px; color: #8f9aab; font: 400 11px/1.3 "DM Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; }
.contact h2, .legal-layout h1, .not-found h1 { margin: 0; font-size: clamp(48px, 6vw, 94px); font-weight: 500; letter-spacing: -0.065em; line-height: 0.98; }
.intro-copy { max-width: 390px; margin: 36px 0 80px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.section-number { margin: 0; }
.contact-form { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-form label { display: block; margin-bottom: 30px; }
.contact-form label > span { display: block; margin-bottom: 10px; color: var(--muted); font: 400 10px/1 "DM Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-form em { color: #5277ff; font-style: normal; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 0 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; transition: border-color 180ms ease; }
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8d96a4; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; }
.contact-form button { flex: 0 0 auto; display: inline-flex; justify-content: space-between; gap: 60px; min-width: 230px; padding: 18px 20px; color: var(--white); background: var(--blue); border: 1px solid var(--blue); cursor: pointer; transition: color 180ms ease, background 180ms ease; }
.contact-form button:hover { color: var(--blue); background: transparent; }
.contact-form button:disabled { cursor: wait; opacity: 0.55; }
.form-status { margin: 0; font-size: 13px; line-height: 1.5; }
.form-status.is-success { color: #18794e; }
.form-status.is-error { color: #c33636; }

.legal-page { min-height: 100svh; }
.legal-layout { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr); gap: clamp(50px, 10vw, 180px); width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 150px 0 100px; }
.legal-layout > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.legal-layout h1 { font-size: clamp(64px, 10vw, 140px); }
.legal-copy { border-top: 1px solid var(--line); }
.legal-copy section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.legal-copy h2 { margin: 0 0 14px; font: 500 12px/1.3 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.legal-copy p { margin: 0; color: var(--muted); line-height: 1.7; }
.legal-copy .placeholder-note { margin-top: 40px; padding: 20px; color: #7b5c00; background: #fff1b8; font-size: 13px; }
.not-found { min-height: 100svh; display: grid; place-items: center; }
.not-found main { text-align: center; }
.not-found a { display: inline-block; margin-top: 40px; font: 400 12px/1 "DM Mono", monospace; text-transform: uppercase; }

@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

@media (max-width: 760px) {
  .imprint-link { top: 18px; }
  .hero::before { top: 26px; }
  .logo { width: 88vw; }
  .scroll-cue { width: 100%; }
  .contact { grid-template-columns: 1fr; gap: 70px; align-items: start; padding-top: 110px; }
  .intro-copy { margin-bottom: 35px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .contact-form button { width: 100%; }
  .legal-layout { grid-template-columns: 1fr; gap: 50px; padding-top: 120px; }
  .legal-layout > .eyebrow { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
