:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6d6d6d;
  --line: #dedede;
  --soft: #f6f6f3;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 999px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image:
    radial-gradient(circle at 16% 22%, rgba(0,0,0,.045) 0 1px, transparent 1.3px),
    radial-gradient(circle at 81% 73%, rgba(0,0,0,.035) 0 1px, transparent 1.2px);
  background-size: 31px 31px, 37px 37px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-weight: 650;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
}

.brand-name { font-size: 17px; }

.hero-copy {
  width: min(1040px, 100%);
  align-self: center;
  padding-block: clamp(72px, 12vh, 150px);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(48px, 8.4vw, 132px);
  font-weight: 580;
  line-height: .91;
  letter-spacing: -.065em;
}

.subtitle {
  max-width: 560px;
  margin: clamp(26px, 4vw, 48px) 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.45;
  letter-spacing: -.025em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 56px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 0 22px 0 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--ink);
}

.cta:focus-visible,
.close-button:focus-visible,
.submit-button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.cta-arrow { font-size: 20px; }

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(0,0,0,.18);
}

.contact-dialog::backdrop {
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(6px);
}

.dialog-shell {
  position: relative;
  padding: clamp(28px, 6vw, 64px);
}

.close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

.dialog-intro h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(36px, 7vw, 66px);
  font-weight: 580;
  line-height: .95;
  letter-spacing: -.055em;
}

.dialog-intro > p:last-child {
  max-width: 460px;
  margin: 22px 0 38px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.contact-form { display: grid; gap: 22px; }

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 0 12px;
  font-size: 18px;
  line-height: 1.4;
  outline: none;
  transition: border-color .2s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--ink); }

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 58px;
  margin-top: 6px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.submit-button:hover { opacity: .88; }

.form-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
}

@media (max-width: 640px) {
  .hero { padding: 22px; }
  .hero-copy { padding-block: 72px; }
  h1 { max-width: 11ch; font-size: clamp(52px, 16vw, 82px); }
  .subtitle { max-width: 26ch; }
  .cta { width: 100%; justify-content: space-between; }
  .footer-note { font-size: 9px; }
  .dialog-shell { padding: 62px 24px 28px; }
}

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