:root {
  --black: #0b0b0a;
  --black-2: #141412;
  --ivory: #f3ede2;
  --ivory-dim: #bdb7ab;
  --champagne: #d6c19a;
  --champagne-deep: #b49b6e;
  --chrome-1: #8e9296;
  --chrome-2: #e6e8ea;
  --line: rgba(243, 237, 226, 0.16);
  --error: #f0a08c;

  --sans: "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font: 400 1rem/1.55 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--champagne); color: var(--black); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--ivory); color: var(--black); padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* chrome hairline */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chrome-1) 12%, var(--chrome-2) 50%, var(--chrome-1) 88%, transparent);
  opacity: .55;
}

/* ---------- Wordmark ---------- */
.masthead { padding: max(20px, env(safe-area-inset-top)) var(--gutter) 0; }
.wordmark {
  margin: 0;
  padding: clamp(14px, 3vw, 36px) 0 clamp(10px, 2.4vw, 28px);
  font-family: var(--sans);
  font-weight: 900;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  line-height: .84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--ivory);
}
.wm-line { display: block; white-space: nowrap; }
.fit { display: inline-block; }
.wordmark em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--champagne);
  font-size: 1.04em;
  padding: 0 .02em;
}
/* CSS-only fallback sizes (JS refines to exact fit) */
.wm-a { font-size: 33vw; }
.wm-b { font-size: 18.4vw; margin-top: .06em; }
.wm-one { display: none; font-size: 11.6vw; }

@media (min-width: 900px) {
  .wm-a, .wm-b { display: none; }
  .wm-one { display: block; }
}

/* ---------- Layout ---------- */
.layout {
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  grid-template-areas: "intro" "actions" "services";
}
.intro { grid-area: intro; }
.actions { grid-area: actions; }
.services-index { grid-area: services; }
@media (min-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "intro actions" "services actions";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 112px); row-gap: 40px; align-items: start;
  }
}

.tagline {
  margin: 0 0 18px;
  font-weight: 600;
  font-size: clamp(.8125rem, .75rem + .3vw, .9375rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--champagne);
}
.lede {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ivory);
  max-width: 34ch;
  text-wrap: pretty;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.services-index ul {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.services-index li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  display: flex; align-items: center; gap: 12px;
}
.services-index li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--chrome-2), var(--chrome-1));
}

/* ---------- Pills ---------- */
.actions { display: grid; gap: clamp(22px, 3vw, 30px); }
.action { display: grid; gap: 12px; }
.action-note {
  margin: 0; padding: 0 clamp(8px, 2vw, 28px);
  color: var(--ivory-dim);
  font-size: .9375rem;
  line-height: 1.55;
  max-width: 60ch;
}

.pill {
  position: relative;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 22px);
  width: 100%;
  min-height: clamp(76px, 9vw, 96px);
  padding: 0 clamp(22px, 3vw, 36px);
  border-radius: var(--r-pill);
  border: 1px solid rgba(243, 237, 226, .38);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
  color: var(--ivory);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.pill::after { /* chrome top-edge highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(230, 232, 234, .18);
}
.pill-num {
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em;
  color: var(--champagne);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.pill-label {
  flex: 1;
  font-weight: 800;
  font-size: clamp(1.0625rem, .9rem + .7vw, 1.5rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.15;
  font-variation-settings: "wdth" 100;
}
.pill-icon {
  width: 26px; height: 26px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 240ms var(--ease-out);
}
@media (hover: hover) {
  .pill:hover { border-color: var(--champagne); background-color: rgba(214, 193, 154, .06); }
  .pill:hover .pill-icon { transform: translateX(4px); }
  a.pill:hover .pill-icon { transform: translate(3px, -3px); }
}
.pill:active { transform: scale(.975); transition-duration: 80ms; }

.pill-primary {
  background: var(--ivory);
  color: var(--black);
  border-color: var(--ivory);
}
.pill-primary .pill-num { color: var(--champagne-deep); }
.pill-primary::after { box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.08); }
@media (hover: hover) {
  .pill-primary:hover { background: #fffaf0; border-color: #fffaf0; }
}

/* ---------- Footer ---------- */
.footer { padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom)); }
.disclaimer {
  margin: clamp(28px, 4vw, 40px) 0 28px;
  max-width: 78ch;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ivory-dim);
}
.footer-row {
  display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.footer-row ul { list-style: none; margin: 0 -12px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-row a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory);
  border-radius: var(--r-pill);
  transition: color 160ms ease, background-color 160ms ease;
}
@media (hover: hover) { .footer-row a:hover { color: var(--champagne); } }
.social a[aria-disabled="true"] { color: var(--ivory-dim); }
.copyright { margin: 20px 0 0; font-size: .8125rem; color: var(--ivory-dim); letter-spacing: .02em; }

/* ---------- Sheets (forms) ---------- */
.sheet {
  padding: 0; border: 0; margin: 0;
  width: 100%; max-width: 100%;
  max-height: 100%;
  background: transparent; color: var(--ivory);
  inset: auto 0 0 0;
  overflow: visible;
}
.sheet::backdrop {
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sheet-body {
  position: relative;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--black-2);
  border: 1px solid rgba(230, 232, 234, .14);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  padding: 26px 20px max(24px, env(safe-area-inset-bottom));
  display: grid; gap: 16px;
  box-shadow: 0 -30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(230,232,234,.12);
}
.sheet-head { position: relative; padding-right: 52px; margin-bottom: 4px; }
.sheet-head h2 {
  margin: 0;
  font-weight: 900;
  font-variation-settings: "wdth" 108;
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.sheet-head .eyebrow { color: var(--champagne); margin-bottom: 10px; }
.close {
  position: absolute; top: -6px; right: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  display: grid; place-items: center;
  transition: transform 120ms var(--ease-out), border-color 160ms ease;
}
.close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.close:active { transform: scale(.92); }
@media (hover: hover) { .close:hover { border-color: var(--champagne); } }

.field { display: grid; gap: 6px; }
.field label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font-size: 1rem; /* 16px: no iOS zoom */
  background: rgba(243, 237, 226, .04);
  border: 1px solid rgba(243, 237, 226, .22);
  border-radius: 14px;
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6c19a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
.field select option { background: var(--black-2); color: var(--ivory); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--champagne); background: rgba(214, 193, 154, .06); }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { margin: 0; font-size: .8125rem; color: var(--error); }

.consent {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  font-size: .875rem; line-height: 1.5; color: var(--ivory-dim);
  cursor: pointer;
}
.consent input {
  width: 22px; height: 22px; margin: 1px 0 0;
  accent-color: var(--champagne);
}
.consent a { color: var(--champagne); }
.consent.is-invalid span { color: var(--error); }

.submit { min-height: 64px; justify-content: center; text-align: center; margin-top: 4px; }
.submit .pill-label { flex: none; font-size: 1.0625rem; }
.submit[disabled] { opacity: .55; cursor: progress; }
.status { margin: 0; min-height: 1.4em; font-size: .9375rem; line-height: 1.5; }
.status.ok { color: var(--champagne); }
.status.warn { color: var(--ivory-dim); }
.status.bad { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alt-email { margin: 0; font-size: .875rem; color: var(--ivory-dim); text-align: center; }
.alt-email a { color: var(--champagne); }

/* sheet motion: slides up from the bottom edge on phones */
.sheet .sheet-body { transform: translateY(100%); transition: transform 380ms var(--ease-out); }
.sheet[open] .sheet-body { transform: translateY(0); }
.sheet.is-closing .sheet-body { transform: translateY(100%); transition-duration: 240ms; transition-timing-function: cubic-bezier(.4, 0, 1, 1); }
.sheet::backdrop { opacity: 1; transition: opacity 300ms ease; }
.sheet.is-closing::backdrop { opacity: 0; }

@media (min-width: 720px) {
  .sheet { inset: 0; margin: auto; width: min(620px, calc(100% - 48px)); height: fit-content; }
  .sheet-body {
    border-radius: 32px; border-bottom: 1px solid rgba(230, 232, 234, .14);
    padding: 36px 36px 32px; max-height: calc(100dvh - 48px);
    box-shadow: 0 40px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(230,232,234,.12);
  }
  .sheet .sheet-body { transform: translateY(24px) scale(.97); opacity: 0; transition: transform 380ms var(--ease-out), opacity 240ms ease; }
  .sheet[open] .sheet-body { transform: none; opacity: 1; }
  .sheet.is-closing .sheet-body { transform: translateY(16px) scale(.98); opacity: 0; transition-duration: 200ms; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 14px 22px; border-radius: var(--r-pill);
  background: rgba(243, 237, 226, .94); color: var(--black);
  font-size: .9375rem; font-weight: 500;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}

/* entrance: one quiet reveal for the wordmark */
@media (prefers-reduced-motion: no-preference) {
  .js .wm-line .fit { animation: rise 900ms var(--ease-out) both; }
  .js .wm-b .fit { animation-delay: 80ms; }
  .js .layout { animation: fade 700ms 250ms ease both; }
  @keyframes rise { from { transform: translateY(18%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .sheet .sheet-body, .sheet[open] .sheet-body, .sheet.is-closing .sheet-body { transform: none !important; transition: opacity 180ms ease; }
  .sheet.is-closing .sheet-body { opacity: 0; }
  .pill:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .sheet::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,.85); }
}
@media (prefers-contrast: more) {
  :root { --ivory-dim: #e2ddd3; --line: rgba(243, 237, 226, .4); }
  .pill { border-color: var(--ivory); }
}
