/* ============================================================
   firstclick — Blueprint
   Drafting-paper aesthetic. Navy ink, oxide red accent.
   Sans-serif throughout. Grid + inner frame on hero only.
   ============================================================ */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist_wght_.woff2') format('woff2-variations'),
       url('/fonts/Geist_wght_.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Italic_wght_.woff2') format('woff2-variations'),
       url('/fonts/Geist-Italic_wght_.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
/* Geist Mono — variable weight, latin subset, self-hosted to remove the
   external Google Fonts dependency. Replaces the previous fonts.googleapis
   stylesheet link. */
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-latin.woff2') format('woff2-variations'),
       url('/fonts/GeistMono-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- COLOR ---------- */
  --ink:        #0E2240;   /* deep navy — primary text */
  --ink-soft:   #1B2A4A;   /* body emphasis */
  --body:       #2A3B5C;   /* default body copy (not pure ink) */
  --stone:      #5A6987;   /* secondary text, hairline rules */
  --pebble:     #B8C2D1;   /* dividers, disabled */
  --paper:      #F2F4F7;   /* drafting paper — cool off-white */
  --paper-deep: #E8ECF2;   /* alt-section background */
  --accent:     #B82E18;   /* oxide red — single accent, ~5% surface (darkened from #C8341E to clear WCAG AA contrast on --paper-deep) */
  --accent-ink: var(--paper);

  /* Grid (hero / title-block only) */
  --grid-line: rgba(20, 40, 90, 0.06);
  --grid-major: rgba(20, 40, 90, 0.18);

  --error:    #C8341E;
  --success:  #1F6049;

  --fg-1: var(--ink);
  --fg-2: var(--body);
  --fg-3: var(--stone);
  --fg-4: var(--pebble);
  --bg-1: var(--paper);
  --bg-2: var(--paper-deep);

  /* ---------- TYPE ---------- */
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Geist Mono', 'SF Mono', Menlo, Consolas, monospace;

  --t-eyebrow:    11px;
  --t-caption:    13px;
  --t-body-sm:    15px;
  --t-body:       17px;
  --t-body-lg:    19px;
  --t-h6:         18px;
  --t-h5:         22px;
  --t-h4:         26px;
  --t-h3:         32px;
  --t-h2:         44px;
  --t-h1:         56px;

  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.5;
  --lh-loose:   1.65;

  --tr-tight:    -0.025em;
  --tr-normal:    0;
  --tr-eyebrow:   0.12em;
  --tr-caps:      0.08em;

  --w-regular:  400;
  --w-medium:   500;
  --w-semibold: 600;
  --w-bold:     700;

  /* ---------- SPACING ---------- */
  --s-1:   4px;
  --s-2:   8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10:128px;
  --s-11:192px;

  --section-y-mobile: var(--s-8);
  --section-y:        var(--s-10);
  --section-y-lg:     var(--s-11);

  /* ---------- LAYOUT ---------- */
  --gutter-mobile: 24px;
  --gutter:        32px;
  --max-width:     1200px;
  --measure:       62ch;

  /* ---------- BORDERS ---------- */
  --radius-sharp:  0;

  --rule:          1px solid var(--stone);
  --rule-strong:   1px solid var(--ink);
  --rule-soft:     1px solid var(--pebble);

  /* ---------- MOTION ---------- */
  --ease-out:    cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-hover:   180ms;
  --dur-state:   280ms;
  --dur-enter:   480ms;
}

/* Desktop type bump */
@media (min-width: 768px) {
  :root {
    --t-body:    18px;
    --t-body-lg: 20px;
    --t-h4:      30px;
    --t-h3:      40px;
    --t-h2:      56px;
    --t-h1:      72px;
  }
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

html { scroll-behavior: smooth; }

/* ---------- TYPE ---------- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: var(--t-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  margin: 0;
  text-wrap: pretty;
  color: var(--fg-1);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: var(--t-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  margin: 0;
  text-wrap: pretty;
  color: var(--fg-1);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: var(--t-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  margin: 0;
  color: var(--fg-1);
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: var(--w-medium);
  font-size: var(--t-h4);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg-1);
}
h5, .h5 {
  font-family: var(--font-display);
  font-weight: var(--w-medium);
  font-size: var(--t-h5);
  margin: 0;
  color: var(--fg-1);
}

p {
  margin: 0 0 var(--s-4) 0;
  max-width: var(--measure);
  color: var(--fg-2);
}
p.lead {
  font-size: var(--t-body-lg);
  color: var(--ink-soft);
}

small, .caption {
  font-size: var(--t-caption);
  color: var(--fg-3);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

em, i { font-style: italic; }

a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 4px;
  transition: background-size var(--dur-hover) var(--ease-out);
}
a:hover { background-image: linear-gradient(var(--ink), var(--ink)); background-size: 100% 2px; }

/* Eyebrow (mono — Blueprint uses mono for the small caps role) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-medium);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-block;
}
.eyebrow--accent { color: var(--accent); }

/* Mono metadata strip (e.g., "scale 1:1 · drawn 04.26.26") */
.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.04em;
}

/* ---------- COMPONENTS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: var(--t-body-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0;
  border-radius: var(--radius-sharp);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  background-image: none;
  padding-bottom: 14px;
  transition:
    background var(--dur-hover) var(--ease-out),
    color var(--dur-hover) var(--ease-out),
    border-color var(--dur-hover) var(--ease-out),
    transform 80ms var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.btn:active { transform: scale(0.98); }
.btn:hover { background-image: none; }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--secondary:hover { background: var(--ink); color: var(--paper); }

.input {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  color: var(--fg-1);
  background: transparent;
  border: 0;
  border-bottom: var(--rule);
  border-radius: 0;
  transition: border-color var(--dur-hover) var(--ease-out);
}
.input::placeholder { color: var(--fg-3); }
.input:focus {
  outline: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 9px;
}

/* ---------- LAYOUT HELPERS ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--gutter); }
}

.section {
  padding-top: var(--section-y-mobile);
  padding-bottom: var(--section-y-mobile);
}
@media (min-width: 768px) {
  .section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: var(--gutter-mobile);
  top: var(--s-3);
  width: auto;
  height: auto;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
}

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

/* ============================================================
   PAGE-SPECIFIC SECTIONS
   ============================================================ */

/* ---------- NAV ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-state) var(--ease-out);
}
.site-nav[data-scrolled="true"] { border-bottom-color: var(--ink); }
.site-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-nav__brand {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: var(--w-medium);
  letter-spacing: 0.04em;
  color: var(--ink);
  background-image: none;
  padding-bottom: 0;
  text-transform: uppercase;
}
.site-nav__brand:hover { background-image: none; }
.site-nav__sheet {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav__cta { font-size: 15px; }

/* ---------- HERO (the title block) ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(0deg, transparent 0 47px, var(--grid-line) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, var(--grid-line) 47px 48px);
  background-blend-mode: multiply;
  padding-top: var(--s-7);
  padding-bottom: var(--s-9);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--grid-major);
  pointer-events: none;
}
@media (min-width: 768px) {
  .hero::before { inset: 24px; }
}
.hero__inner { position: relative; padding: var(--s-5) 0; }
.hero__sheet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.hero h1 {
  margin-top: var(--s-5);
  max-width: 14ch;
}
.hero__lead {
  margin-top: var(--s-6);
  max-width: 44ch;
  color: var(--body);
  line-height: 1.45;
}
.hero__lead .accent { color: var(--accent); font-weight: var(--w-medium); }
.hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: var(--s-7);
  flex-wrap: wrap;
}
.hero__footer {
  margin-top: var(--s-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--stone);
}

/* ---------- SECTION HEAD ---------- */
.section-head h2 {
  margin-top: var(--s-4);
  max-width: 18ch;
}
.section-head__lead {
  margin-top: var(--s-5);
  font-size: var(--t-body-lg);
  max-width: 56ch;
  color: var(--body);
  line-height: 1.45;
}

/* ---------- STEPS LIST ---------- */
.steps {
  margin-top: var(--s-7);
  padding: 0;
  list-style: none;
}
.steps__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--ink);
}
.steps__item:last-child { border-bottom: 1px solid var(--ink); }
.steps__num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 8px;
  font-weight: var(--w-medium);
}
.steps__item h3 {
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.15;
  margin: 0;
}
.steps__item p {
  margin-top: var(--s-3);
  margin-bottom: 0;
  font-size: var(--t-body);
  max-width: 56ch;
  color: var(--body);
}

/* ---------- OFFER (scope statement) ---------- */
.offer {
  position: relative;
  background: var(--paper-deep);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: var(--s-9) 0;
}
.offer__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: end;
}
@media (min-width: 768px) {
  .offer__row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--s-9);
  }
}
.offer__price {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: clamp(56px, 10vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: var(--s-5);
  color: var(--ink);
}
.offer__price small {
  font-family: var(--font-mono);
  font-weight: var(--w-medium);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--stone);
  margin-left: var(--s-3);
  vertical-align: middle;
}
.offer__terms {
  margin-top: var(--s-3);
  font-size: var(--t-body-lg);
  max-width: 52ch;
  color: var(--body);
  line-height: 1.45;
}
.offer__terms p { font-size: inherit; margin: 0; }
.offer__cta { margin-top: var(--s-6); }

/* ---------- STUDIO (Who we are) ---------- */
.studio__body {
  margin-top: var(--s-6);
  font-size: var(--t-body-lg);
  max-width: 60ch;
  color: var(--ink-soft);
  line-height: 1.5;
}
.studio__body p + p { margin-top: var(--s-4); }

/* ---------- FAQ ---------- */
.faq__list {
  margin-top: var(--s-7);
  max-width: 820px;
  border-top: 1px solid var(--ink);
}
.faq__item {
  border-bottom: 1px solid var(--ink);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  flex: none;
  transition: transform var(--dur-state) var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 var(--s-6) 0; max-width: 60ch; }
.faq__answer p {
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  margin: 0;
  color: var(--body);
}

/* ---------- CONTACT ---------- */
.contact {
  border-top: 1px solid var(--ink);
}
.contact__form {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  max-width: 560px;
}
.contact__field { display: flex; flex-direction: column; gap: var(--s-2); }
.contact__field textarea.input {
  min-height: 120px;
  resize: vertical;
  padding: var(--s-3) 0;
}
.contact__submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-3);
}
.contact__hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
}
.contact__ack { margin-top: var(--s-7); max-width: 560px; }

/* ---------- FOOTER (the title block at the bottom) ---------- */
.site-footer {
  border-top: 1px solid var(--ink);
  padding: var(--s-8) 0 var(--s-7);
  background: var(--paper-deep);
}
.site-footer__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 768px) {
  .site-footer__row {
    grid-template-columns: 2fr 3fr;
    gap: var(--s-9);
  }
}
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: var(--w-bold);
  font-size: clamp(40px, 7vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.site-footer__col { display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer__col a,
.site-footer__col span:not(.eyebrow) {
  font-size: 16px;
  color: var(--ink);
}
.site-footer__legal {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--stone);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
