/* ============================================================
   Are You Really Behind? — editorial, mobile-first
   ============================================================ */

:root {
  --bone: #f4f1ea;
  --paper: #fbf9f5;
  --ink: #17140f;
  --ink-soft: #3a342c;
  --muted: #6e655a;
  --clay: #8c3a24;
  --clay-soft: #b4562f;
  --line: rgba(23, 20, 15, 0.12);
  --line-strong: rgba(23, 20, 15, 0.22);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --pad: 1.25rem;
  --measure: 34rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) { :root { --pad: 2.5rem; } }
@media (min-width: 1024px) { :root { --pad: 4rem; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

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

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { --btn-bg: var(--clay); --btn-border: var(--clay); border-color: var(--clay); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn--primary { background: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bone); border-color: var(--ink); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn--full { width: 100%; }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ============================================================
   Header
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--pad);
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--line); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: -0.01em;
  min-height: 2.75rem;
}
.wordmark__mark {
  display: block;
  width: auto;
  height: 1.65rem;
  flex: none;
}
@media (max-width: 400px) { .wordmark__text { display: none; } }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(2.5rem, 9vw, 6rem) var(--pad) clamp(3rem, 10vw, 6rem);
  max-width: 76rem;
  margin-inline: auto;
}

.hero__eyebrow {
  margin: 0 0 clamp(1.5rem, 5vw, 2.5rem);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__question {
  font-size: clamp(2.75rem, 12.5vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: clamp(1.25rem, 4vw, 2rem);
}
.hero__question em {
  font-style: italic;
  color: var(--clay);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.hero__sub {
  max-width: 30rem;
  margin: 0 0 clamp(2rem, 6vw, 3rem);
  font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.hero__actions { margin-bottom: clamp(3rem, 9vw, 5rem); }
.hero__note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* triptych — integrated, staggered, not three random headshots */
.triptych {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.triptych__item { margin: 0; }
.triptych__item:nth-child(2) { margin-top: 1.75rem; }
.triptych__item:nth-child(3) { margin-top: 3.5rem; }

.triptych img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.triptych__name {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}
.triptych__role {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 768px) {
  .triptych { gap: 1.25rem; }
  .triptych__item:nth-child(2) { margin-top: 2.5rem; }
  .triptych__item:nth-child(3) { margin-top: 5rem; }
  .triptych__name { font-size: 0.95rem; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: clamp(4rem, 14vw, 9rem); }
.section--about { background: var(--paper); }

.section__lede {
  font-size: clamp(1.6rem, 6.4vw, 3.25rem);
  line-height: 1.15;
  max-width: 30ch;
  margin-bottom: clamp(2rem, 6vw, 3rem);
  text-wrap: balance;
}

.section__label {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.25rem; color: var(--ink-soft); font-size: 1.0625rem; }
.prose__emphasis {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink) !important;
  padding-top: 0.5rem;
}
.prose__emphasis em { font-style: italic; color: var(--clay); }

/* ============================================================
   People
   ============================================================ */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 8vw, 4rem); }

.person { margin: 0; display: grid; gap: 1.25rem; }

.person__frame { overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.person__frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }

.person__body { display: flex; flex-direction: column; align-items: flex-start; }

.person__badge {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}
.person__name { font-size: clamp(1.6rem, 5.6vw, 2.1rem); }
.person__designation {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 28rem;
}
.person__bio { margin: 0.85rem 0 0; max-width: 30rem; color: var(--ink-soft); }

.person__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.person__social:hover { border-color: var(--clay); color: var(--clay); }
.person__social svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

@media (min-width: 768px) {
  .person { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2.5rem; }
}
@media (min-width: 1024px) {
  .people { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: start; }
  .person { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   Topics
   ============================================================ */
.section--topics { background: var(--paper); border-top: 1px solid var(--line); }

.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 8vw, 3.5rem); }

.topic { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.topic__word {
  font-size: clamp(1.9rem, 8vw, 3rem);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.topic__q { margin: 0.6rem 0 0; max-width: 26rem; color: var(--muted); font-size: 1rem; }

@media (min-width: 768px) { .topics { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
@media (min-width: 1024px) { .topics { grid-template-columns: repeat(4, 1fr); column-gap: 2.5rem; } }

/* ============================================================
   CTA
   ============================================================ */
.section--cta { padding-block: 0; }
.cta-art { margin: 0; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; justify-content: center; }
.cta-art img { display: block; width: 100%; max-width: 26rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.cta__inner { padding-block: clamp(3rem, 10vw, 5.5rem); text-align: center; }
.cta__inner .section__lede { margin-inline: auto; }
.cta__copy { max-width: 34rem; margin: 0 auto 0.75rem; color: var(--ink-soft); font-size: 1.0625rem; }
.cta__meta {
  margin: 0 0 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(3rem, 9vw, 4.5rem) 1.5rem;
}
.foot__grid { display: grid; gap: 2.5rem; }

.foot__heading {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
  margin-bottom: 0.9rem;
}
.foot__event { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1.25rem; }
.foot__muted { margin: 0 0 0.4rem; font-size: 0.9rem; color: rgba(244, 241, 234, 0.68); }
.foot__muted strong { color: var(--bone); font-weight: 500; }

.foot__social { list-style: none; display: flex; gap: 0.6rem; margin: 1.1rem 0 0; padding: 0; }
.foot__social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: 50%;
  color: var(--bone);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.foot__social a:hover { background: var(--clay); border-color: var(--clay); }
.foot__social svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

.foot__mail { color: var(--bone); text-underline-offset: 4px; }

.foot__base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 241, 234, 0.14);
  font-size: 0.8rem;
  color: rgba(244, 241, 234, 0.5);
}
.foot__base p { margin: 0; }

@media (min-width: 768px) { .foot__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ============================================================
   Application sheet
   ============================================================ */
.sheet { position: fixed; inset: 0; z-index: 150; }
.sheet[hidden] { display: none; }

.sheet__scrim { position: absolute; inset: 0; background: rgba(23, 20, 15, 0.55); backdrop-filter: blur(3px); }

.sheet__panel {
  position: relative;
  background: var(--paper);
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem var(--pad) 2.5rem;
  animation: sheetIn 0.45s var(--ease);
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sheet__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  z-index: 3;
}
.sheet__close svg { width: 1.1rem; height: 1.1rem; }

@media (min-width: 768px) {
  .sheet { display: grid; place-items: center; padding: 2rem; }
  .sheet__panel {
    height: auto;
    max-height: min(90vh, 52rem);
    max-width: 34rem;
    border-radius: 1.25rem;
    padding: 2.5rem 2.5rem 2.5rem;
    box-shadow: 0 30px 80px rgba(23, 20, 15, 0.25);
  }
  .sheet__close { top: 1rem; right: 1rem; }
}

body.is-locked { overflow: hidden; }

/* progress */
.progress { margin: 3rem 0 2rem; }
.progress__label {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress__track { height: 2px; background: var(--line); overflow: hidden; }
.progress__bar {
  display: block;
  height: 100%;
  width: 33.33%;
  background: var(--clay);
  transition: width 0.5s var(--ease);
}

/* steps */
/* spam honeypot — hidden from people, tempting to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__viewport { position: relative; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }

.step__heading {
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  padding: 0;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

.field { margin-bottom: 1.5rem; }
.field > label,
.field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: var(--bone);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
textarea { min-height: 5rem; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus { border-color: var(--clay); background: #fff; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--clay); background: color-mix(in srgb, var(--clay) 5%, var(--bone)); }

.field__error {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--clay);
  min-height: 0;
}
.field__error:empty { display: none; }

/* phone with country code */
.phone { display: flex; align-items: stretch; gap: 0.5rem; }
.phone__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
  min-height: 3.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: var(--bone);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}
.phone__flag svg { width: 0.9rem; height: 0.9rem; }
.phone input { flex: 1; min-width: 0; }

.phone__list {
  margin-top: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: #fff;
  max-height: 13rem;
  overflow-y: auto;
}
.phone__list[hidden] { display: none; }
.phone__list button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
.phone__list button:hover, .phone__list button[aria-selected="true"] { background: var(--bone); }
.phone__list b { font-weight: 500; min-width: 3rem; }

/* choice cards */
.choices { display: grid; gap: 0.55rem; }
.choices--row { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .choices--row { grid-template-columns: repeat(4, 1fr); } }

.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: var(--bone);
  font-size: 0.9rem;
  line-height: 1.3;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.choice input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }

.step__nav { display: flex; gap: 0.75rem; margin-top: 2rem; }
.step__nav .btn--primary { flex: 1; }
.step__nav .btn--ghost { flex: 0 0 auto; }

.form__error {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--clay);
  border-radius: 0.6rem;
  background: color-mix(in srgb, var(--clay) 7%, transparent);
  color: var(--clay);
  font-size: 0.875rem;
}

/* success */
.success { text-align: center; padding-block: 1rem; }
.success__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}
.success__title { font-size: clamp(2.25rem, 10vw, 3.25rem); margin-bottom: 1rem; }
.success__copy { max-width: 28rem; margin: 0 auto 2rem; color: var(--ink-soft); }
.success__timer { margin: 1rem 0 0; font-size: 0.8rem; color: var(--muted); }
.success .btn--full { margin-top: 0.5rem; }

/* ============================================================
   Motion & print
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
