@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("fonts/alte_haas_grotesk/AlteHaasGroteskRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("fonts/alte_haas_grotesk/AlteHaasGroteskBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090707;
  --surface: #120e0e;
  --ink: #f4f1ec;
  --muted: #a29c96;
  --line: rgba(244, 241, 236, .14);
  --line-strong: rgba(244, 241, 236, .42);
  --accent: #d45a42;
  --green: #4ade80;
  --danger: #f87171;
  --page-gutter: clamp(20px, 4vw, 68px);
  --content-max: 1480px;
  --font-serif: "Alte Haas Grotesk", Arial, sans-serif;
  --font-index: "Alte Haas Grotesk", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--font-index);
  letter-spacing: -.04em;
  word-spacing: -.04em;
  overflow-x: clip;
  accent-color: var(--ink);
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; }
.ink-pending {
  opacity: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
button, input, textarea { font: inherit; color: inherit; }

.index-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.01em;
}

.skip {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  z-index: 200;
}
.skip:focus-visible {
  left: max(16px, env(safe-area-inset-left));
  top: max(16px, env(safe-area-inset-top));
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  clip-path: none;
  opacity: 1;
  pointer-events: auto;
}

:is(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Main container */
.contact-shell {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(96px, 11svh, 132px) max(var(--page-gutter), env(safe-area-inset-left)) clamp(72px, 10svh, 128px);
}

/* Hero split */
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(44px, 6.5svh, 80px);
  border-bottom: 1px solid var(--line);
}
.status-pill {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  filter: url(#ink-bleed-xs);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, .55);
}
.status-dot--warm {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(212, 90, 66, .55);
}
.contact-hero h1 {
  margin: 0;
  font: 700 clamp(60px, 9.8vw, 148px)/.88 var(--font-index);
  letter-spacing: -.085em;
  word-spacing: -.06em;
  transform: scaleX(.88);
  transform-origin: left center;
  filter: url(#ink-bleed-xl);
}
.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.42;
  color: var(--ink);
  max-width: 44ch;
  filter: url(#ink-bleed-xs);
}
.hero-meta {
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  filter: url(#ink-bleed-xs);
}
.hero-meta > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}
.hero-meta dt {
  color: var(--muted);
}
.hero-meta dd {
  margin: 0;
  color: var(--ink);
}
.hero-meta a {
  text-decoration: underline;
  text-decoration-color: rgba(244, 241, 236, .35);
  text-underline-offset: 4px;
}
.hero-meta a:hover {
  text-decoration-color: var(--ink);
}

/* Asymmetric Form + Live Brief Receipt */
.brief-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .72fr);
  gap: clamp(36px, 5.5vw, 96px);
  align-items: start;
  padding-top: clamp(40px, 6svh, 72px);
}
#contact-brief-form {
  min-width: 0;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.brief-section {
  min-width: 0;
  min-inline-size: 0;
  border: 0;
  margin: 0 0 clamp(38px, 5.5svh, 64px);
  padding: 0;
  scroll-margin-top: 96px;
}
.brief-section legend {
  max-width: 100%;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -.065em;
  margin-bottom: 22px;
  padding: 0;
  filter: url(#ink-bleed-sm);
}
.brief-section legend .index-serif {
  font-size: .82em;
  color: var(--muted);
  margin-right: 8px;
}

.field-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}
.field-line {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  scroll-margin-top: 96px;
}
.field-error {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--danger);
}
.field-line label {
  font-size: 14px;
  color: var(--ink);
  filter: url(#ink-bleed-xs);
}
.opt {
  color: var(--muted);
  font-weight: 400;
}
.field-line input,
.field-line textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s ease;
}
.field-line textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.45;
}
.field-line input::placeholder,
.field-line textarea::placeholder {
  color: rgba(162, 156, 150, .58);
}
.field-line input:focus,
.field-line textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field-line [aria-invalid="true"] {
  border-bottom-color: var(--danger);
}

/* Pill radio groups */
.pill-group {
  margin-bottom: 28px;
}
.group-label {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink);
  filter: url(#ink-bleed-xs);
}
.group-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  filter: url(#ink-bleed-xs);
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.pill-choice {
  position: relative;
  cursor: pointer;
}
.pill-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pill-choice > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  font-size: 14px;
  letter-spacing: -.03em;
  color: var(--ink);
  background: transparent;
  transition: background-color .18s ease 0s, color .32s cubic-bezier(.34, 0, .14, 1), border-color .28s ease, transform .34s cubic-bezier(.22, .88, .24, 1);
}
.pill-choice > span::before {
  content: "";
  position: absolute;
  left: var(--ink-x, 50%);
  top: var(--ink-y, 50%);
  width: 260%;
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: 44% 56% 52% 48% / 48% 44% 56% 52%;
  transform: translate(-50%, -50%) scale(0) rotate(0deg);
  transition: transform .52s cubic-bezier(.34, 0, .14, 1);
  z-index: -1;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .pill-choice:hover > span {
    background-color: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    transform: translateY(-1px);
    transition: background-color .16s ease .26s, color .32s cubic-bezier(.34, 0, .14, 1), border-color .28s ease, transform .34s cubic-bezier(.22, .88, .24, 1);
  }
  .pill-choice:hover > span::before {
    transform: translate(-50%, -50%) scale(1) rotate(22deg);
  }
}
.pill-choice input:checked + span {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pill-choice input:checked + span::before {
  transform: translate(-50%, -50%) scale(1) rotate(22deg);
}
.pill-choice input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Submit actions */
.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 12px;
}
.btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ink);
  color: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease 0s, color .32s cubic-bezier(.34, 0, .14, 1), box-shadow .28s ease, transform .36s cubic-bezier(.22, .88, .24, 1);
}
.btn-submit::before {
  content: "";
  position: absolute;
  left: var(--ink-x, 50%);
  top: var(--ink-y, 50%);
  width: 260%;
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: 44% 56% 52% 48% / 48% 44% 56% 52%;
  transform: translate(-50%, -50%) scale(0) rotate(0deg);
  transition: transform .54s cubic-bezier(.34, 0, .14, 1);
  z-index: 0;
  pointer-events: none;
}
.pill-choice .btn-label,
.btn-submit .btn-label,
.btn-submit-secondary .btn-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  filter: url(#ink-bleed-xs);
}
.btn-submit-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  background-color: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease 0s, color .32s cubic-bezier(.34, 0, .14, 1), border-color .28s ease, transform .36s cubic-bezier(.22, .88, .24, 1);
}
.btn-submit-secondary::before {
  content: "";
  position: absolute;
  left: var(--ink-x, 50%);
  top: var(--ink-y, 50%);
  width: 260%;
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: 44% 56% 52% 48% / 48% 44% 56% 52%;
  transform: translate(-50%, -50%) scale(0) rotate(0deg);
  transition: transform .54s cubic-bezier(.34, 0, .14, 1);
  z-index: 0;
  pointer-events: none;
}
.btn-submit-secondary:focus-visible {
  background-color: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-submit-secondary:focus-visible::before {
  transform: translate(-50%, -50%) scale(1) rotate(22deg);
}
.btn-submit:focus-visible {
  background-color: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transform: translateY(-2px);
  transition: background-color .16s ease .28s, color .32s cubic-bezier(.34, 0, .14, 1), box-shadow .28s ease, transform .36s cubic-bezier(.22, .88, .24, 1);
}
.btn-submit:focus-visible::before {
  transform: translate(-50%, -50%) scale(1) rotate(22deg);
}
@media (hover: hover) and (pointer: fine) {
  .btn-submit:hover {
    background-color: var(--bg);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    transform: translateY(-2px);
    transition: background-color .16s ease .28s, color .32s cubic-bezier(.34, 0, .14, 1), box-shadow .28s ease, transform .36s cubic-bezier(.22, .88, .24, 1);
  }
  .btn-submit:hover::before {
    transform: translate(-50%, -50%) scale(1) rotate(22deg);
  }
  .btn-submit-secondary:hover {
    background-color: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    transform: translateY(-2px);
    transition: background-color .16s ease .28s, color .32s cubic-bezier(.34, 0, .14, 1), border-color .28s ease, transform .36s cubic-bezier(.22, .88, .24, 1);
  }
  .btn-submit-secondary:hover::before {
    transform: translate(-50%, -50%) scale(1) rotate(22deg);
  }
}
.btn-submit:active,
.btn-submit-secondary:active { transform: scale(.98); }

.privacy-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  filter: url(#ink-bleed-xs);
}
.brief-status {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--green);
  filter: url(#ink-bleed-xs);
}
.brief-status.is-error {
  color: var(--danger);
}

/* Sticky Live Brief Receipt Card */
.brief-receipt-wrap {
  position: sticky;
  top: 92px;
}
.brief-receipt {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(244, 241, 236, .08);
  padding: 24px 22px 20px;
}
.brief-receipt::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: radial-gradient(circle at 6px 0, var(--bg) 4px, transparent 4.5px) 0 0 / 12px 6px repeat-x;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  filter: url(#ink-bleed-xs);
}
.receipt-rows {
  margin: 16px 0 24px;
  display: grid;
  gap: 11px;
  font-size: 13px;
  filter: url(#ink-bleed-xs);
}
.receipt-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.receipt-rows dt {
  color: var(--muted);
  flex-shrink: 0;
}
.receipt-rows dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.receipt-rows dd.is-filled {
  color: var(--ink);
  font-weight: 700;
}
.receipt-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.receipt-foot span {
  font-size: 12px;
  color: var(--muted);
}
.receipt-foot strong {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  color: var(--ink);
}
.receipt-progress {
  position: relative;
  height: 6px;
  margin: 12px -22px -20px;
  background: rgba(212, 90, 66, .18);
  overflow: hidden;
}
.receipt-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #b83b26, #e66b52);
  box-shadow: 0 0 18px rgba(212, 90, 66, .85);
  transition: width .28s cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 900px) {
  .contact-hero,
  .brief-workspace {
    grid-template-columns: 1fr;
  }
  .brief-receipt-wrap {
    position: static;
  }
}
@media (max-width: 640px) {
  .field-grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ink-pending { opacity: 1; transform: none; filter: none; }
}
