@import url("fonts.css");

/* ==========================================================================
   GolfCrafted — design tokens
   ========================================================================== */
:root {
  /* Ink & surfaces */
  --ink:            #09090B;
  --ink-800:        #0C0C0E;
  --ink-700:        #18181B;
  --ink-600:        #27272A;
  --ink-500:        #3F3F46;

  /* Text */
  --text:           #52525B;
  --text-muted:     #71717A;
  --text-dim:       #A1A1AA;

  /* Light surfaces */
  --page:           #FAFAFA;
  --white:          #FFFFFF;
  --cream:          #FAF7F2;
  --cream-line:     #F0E8D9;
  --line:           #E4E4E7;
  --line-soft:      #F4F4F5;

  /* Gold */
  --gold:           #B8956A;
  --gold-light:     #C9A96E;
  --gold-dark:      #96734D;
  --gold-link:      #8A6942;
  --gold-pale:      #D4B896;
  --gold-paler:     #E2CEAF;

  /* Type */
  --serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:   'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system,
            BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rhythm */
  --gutter:         clamp(20px, 5vw, 32px);
  --section-y:      clamp(64px, 9vw, 112px);
  --section-y-sm:   clamp(56px, 7.5vw, 104px);
  --radius:         clamp(20px, 3vw, 32px);
  --radius-sm:      12px;
  --maxw:           1280px;

  /* Motion */
  --ease:           cubic-bezier(.16, 1, .3, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* offset anchor targets so the sticky header never covers a heading */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--gold-link); }
a:hover { color: var(--gold-dark); }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; }

p { margin: 0; text-wrap: pretty; }

/* Visible, consistent focus ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.wrap--narrow { max-width: 900px; }
.wrap--mid { max-width: 1000px; }
.wrap--wide { max-width: 1120px; }

.section { padding-block: var(--section-y); }
.section--sm { padding-block: var(--section-y-sm); }
.section--page { background: var(--page); }
.section--dark { background: var(--ink); }
.section--cream {
  background: var(--cream);
  border-top: 1px solid var(--cream-line);
  border-bottom: 1px solid var(--cream-line);
}

/* auto-fit grid that can never force horizontal overflow on narrow screens */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ==========================================================================
   Type scale
   ========================================================================== */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-link);
  margin: 0 0 14px;
}
.eyebrow--dark { color: var(--gold-pale); }

.h1 {
  font-size: clamp(36px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--page);
}
.h2 {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
}
.h2--light { color: var(--page); }
.h2--sm { font-size: clamp(26px, 3.4vw, 40px); }
.h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
}
.lede {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.65;
  color: var(--text);
  max-width: 46ch;
}
em { font-style: italic; }
.em-gold { font-style: italic; color: var(--gold-link); }

/* Decorative rule + label, centred */
.rule-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 18px);
  margin-bottom: 18px;
}
.rule-label .rule {
  width: clamp(28px, 8vw, 52px);
  height: 1px;
  background: var(--gold);
  display: block;
  flex: none;
}
.rule-label--dark .rule { background: var(--gold-light); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 15px 28px;
  /* 44px minimum tap target */
  min-height: 48px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: inset rgba(255,255,255,.15) 0 6px 0 -5px,
              rgba(0,0,0,.06) 0 4px 10px -5px;
}
.btn--gold:hover { background: var(--gold-light); color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--page);
  border-color: var(--ink-500);
}
.btn--ghost:hover { background: var(--ink-700); color: var(--page); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover { background: var(--white); color: var(--ink); }
.btn--sm { padding: 13px 24px; font-size: 14.5px; min-height: 44px; }
.btn:active { transform: translateY(1px); }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-row--center { justify-content: center; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 9, 11, .88);
  border-bottom: 1px solid var(--ink-600);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .site-header {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.site-header__bar {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: padding .25s var(--ease);
}

/* Compact state, toggled by JS past a scroll threshold. Only padding and the
   wordmark shrink, so nothing reflows except the header's own height. */
.site-header.is-compact { box-shadow: 0 8px 24px -12px rgb(0 0 0 / .55); }
.site-header.is-compact .site-header__bar { padding-block: 6px; }
.site-header.is-compact .brand__name { font-size: clamp(18px, 3.4vw, 20px); }
.site-header.is-compact .brand__rule { width: 18px; }
.brand__name, .brand__rule { transition: font-size .25s var(--ease), width .25s var(--ease); }
.site-header.is-compact .nav a { padding-block: 7px; }
.site-header.is-compact .btn--sm { padding-block: 9px; min-height: 38px; }
.nav a, .header-cta { transition: padding .25s var(--ease), min-height .25s var(--ease),
                                  color .2s var(--ease), background-color .2s var(--ease); }
.site-header.is-compact .burger { height: 40px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: none;
}
.brand .brand__rule {
  width: 28px; height: 1px;
  background: var(--gold-light);
  display: block;
  flex: none;
}
.brand__name {
  font-family: var(--serif);
  font-size: clamp(21px, 4vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--page);
  white-space: nowrap;
}
/* hide the short rule on very narrow screens to buy room for the burger */
@media (max-width: 380px) { .brand .brand__rule { display: none; } }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 10px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--page); background: var(--ink-700); }
.nav a[aria-current="page"] { color: var(--page); background: var(--ink-700); }

.header-cta { flex: none; }

/* Burger — hidden on desktop */
.burger {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ink-600);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.burger__box { display: block; width: 20px; height: 14px; position: relative; }
.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--page);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .18s var(--ease), top .28s var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6.25px; }
.burger__box span:nth-child(3) { top: 12.5px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { top: 6.25px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { top: 6.25px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--ink-600);
  background: rgba(9, 9, 11, .97);
}
.mobile-nav__inner {
  padding: 12px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: var(--maxw);
  margin-inline: auto;
}
/* :not(.btn) so the drawer's call to action keeps its own colour and shape */
.mobile-nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 17px;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid var(--ink-700);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.mobile-nav a:not(.btn)[aria-current="page"] { color: var(--page); }
.mobile-nav a:not(.btn):last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: 18px; width: 100%; }

/* Breakpoint: swap to burger when the inline nav runs out of room */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav { display: block; }
  .mobile-nav[hidden] { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  min-height: min(88vh, 820px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* small viewport unit keeps the hero off the mobile browser chrome */
@supports (min-height: 88svh) {
  .hero { min-height: min(88svh, 820px); }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: image-set(
    url("../img/hero-900.webp") type("image/webp") 1x,
    url("../img/hero-900.jpg")  type("image/jpeg") 1x
  );
  background-size: cover;
  background-position: center 55%;
  animation: gcZoom 3.2s var(--ease) forwards;
}
@media (min-width: 800px) {
  .hero__bg {
    background-image: image-set(
      url("../img/hero-1600.webp") type("image/webp") 1x,
      url("../img/hero-1600.jpg")  type("image/jpeg") 1x
    );
  }
}
/* Fallback for engines without image-set() support */
@supports not (background-image: image-set(url("x.webp") type("image/webp") 1x)) {
  .hero__bg { background-image: url("../img/hero-1600.jpg"); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(9,9,11,.72) 0%,
    rgba(9,9,11,.58) 45%,
    rgba(9,9,11,.88) 100%);
}
.hero__inner {
  position: relative;
  text-align: center;
  padding: clamp(96px, 14vw, 120px) var(--gutter) clamp(88px, 16vw, 140px);
  max-width: 1000px;
}
.hero__lede {
  font-size: clamp(16.5px, 2.4vw, 20px);
  line-height: 1.6;
  color: #D4D4D8;
  max-width: 640px;
  margin: 24px auto 0;
}
.hero__underline {
  height: 1px;
  width: min(420px, 70%);
  margin: 22px auto 0;
  background: linear-gradient(90deg,
    rgba(201,169,110,0), var(--gold-light), rgba(201,169,110,0));
  clip-path: inset(0 100% 0 0);
  animation: gcUnderline 1.1s var(--ease) 1.25s forwards;
}
.hero .btn-row { margin-top: clamp(28px, 5vw, 38px); }
/* full-width stacked buttons on the narrowest screens */
@media (max-width: 420px) {
  .hero .btn-row .btn { width: 100%; }
}

/* ==========================================================================
   Stat strip
   ========================================================================== */
.stats {
  background: var(--ink);
  border-top: 1px solid var(--ink-700);
}
.stats__grid {
  padding-block: clamp(34px, 6vw, 44px) clamp(40px, 7vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(22px, 4vw, 32px);
}
.stat__k {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 600;
  line-height: 1;
  color: var(--page);
  letter-spacing: -.02em;
}
.stat__v { font-size: 14.5px; color: var(--text-dim); margin-top: 10px; }

/* ==========================================================================
   Rotating "built for" strip
   ========================================================================== */
.rotator {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-line);
}
.rotator__inner {
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 20px);
  flex-wrap: wrap;
}
.rotator__label {
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted);
}
.rotator__word {
  font-family: var(--serif);
  font-size: clamp(21px, 3.4vw, 27px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  min-width: min(270px, 62vw);
  text-align: center;
}
.rotator__dots { display: flex; gap: 7px; }
.rotator__dots span {
  display: block; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-paler);
  transition: background-color .3s var(--ease);
}
.rotator__dots span.is-on { background: var(--gold); }

/* ==========================================================================
   Section headers with a trailing link
   ========================================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 44px);
}
.section-head__link { margin-left: auto; }
@media (max-width: 640px) {
  .section-head__link { margin-left: 0; }
}

.section-head--center { text-align: center; flex-direction: column; align-items: center; }
.section-head--center .lede { margin-inline: auto; max-width: 60ch; }

/* ==========================================================================
   Template gallery (marquee / grid)
   ========================================================================== */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(84vw, 330px), 380px);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-500) transparent;
  overscroll-behavior-x: contain;
}
.gallery > * { scroll-snap-align: start; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb {
  background: var(--ink-500); border-radius: 4px;
}
/* while the JS marquee drives scrollLeft, snapping would fight it */
.gallery.is-marquee { scroll-snap-type: none; scrollbar-width: none; }
.gallery.is-marquee::-webkit-scrollbar { display: none; }

.gallery--grid {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

/* Template card — a miniature of a real site */
.tcard {
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 40px -8px rgb(0 0 0 / .45);
}
.tcard__mock {
  margin: 10px 10px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--tc-bg, #fff);
}
.tcard__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(128,128,128,.18);
}
.tcard__brand { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tcard__dot {
  width: 7px; height: 7px; flex: none;
  border-radius: var(--tc-dot-radius, 50%);
  background: var(--tc-accent, #B8956A);
  display: block;
}
.tcard__word {
  font-family: var(--tc-font, var(--sans));
  font-size: 10.5px; font-weight: 600;
  color: var(--tc-ink, #09090B);
  letter-spacing: var(--tc-track, 0);
  text-transform: var(--tc-case, none);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tcard__chip {
  font-family: var(--sans);
  font-size: 8px; font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--tc-chip-radius, 9999px);
  background: var(--tc-accent, #B8956A);
  color: var(--tc-on-accent, #fff);
  white-space: nowrap; flex: none;
}
.tcard__body {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px;
  padding: 16px 14px 12px;
}
.tcard__headline {
  font-family: var(--tc-font, var(--sans));
  font-size: 15px; line-height: 1.14;
  font-weight: var(--tc-weight, 700);
  letter-spacing: -.02em;
  color: var(--tc-ink, #09090B);
  text-transform: var(--tc-case, none);
  margin-bottom: 7px;
  min-height: 52px;
}
.tcard__sub {
  font-family: var(--sans);
  font-size: 7.5px; line-height: 1.5;
  color: var(--tc-ink, #09090B);
  opacity: .62;
  margin-bottom: 10px;
  min-height: 34px;
}
.tcard__btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 7.5px; font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--tc-chip-radius, 9999px);
  background: var(--tc-accent, #B8956A);
  color: var(--tc-on-accent, #fff);
}
.tcard__shot {
  border-radius: 8px;
  min-height: 74px;
  background: var(--tc-shot, linear-gradient(135deg, rgba(184,149,106,.35), rgba(184,149,106,.08)));
}
.tcard__tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 0 14px 16px;
}
.tcard__tiles span {
  display: block; height: 26px; border-radius: 6px;
  background: var(--tc-soft, rgba(0,0,0,.06));
}
.tcard__meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 16px 20px 18px;
}
.tcard__title { font-size: 15px; font-weight: 600; color: var(--page); }
.tcard__label { font-size: 13.5px; color: var(--gold-light); }

/* Templates page: each card is paired with its "who it suits" note */
.tcard-cell { display: flex; flex-direction: column; gap: 16px; }
.tcard-suits {
  font-size: 15px; line-height: 1.6;
  color: var(--text-dim);
  margin: 0; padding: 0 4px;
}

.gallery-hint {
  font-size: 13.5px; color: var(--text-dim);
  margin-top: 14px;
}

/* ==========================================================================
   Feature / segment / step cards
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 6vw, 64px);
  align-items: start;
}
.split__sticky { position: static; }
/* sticky only helps once the two columns sit side by side */
@media (min-width: 980px) {
  .split__sticky { position: sticky; top: 110px; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 30px);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / .04);
}
.card h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.01em; }
.card--tight h3 { font-family: var(--sans); font-size: 17px; margin: 0 0 8px; }
.card--tight p { font-size: 15px; line-height: 1.6; }
.card p { font-size: 15px; line-height: 1.65; color: var(--text); }

.segment {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / .04);
}
.segment__n {
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-link);
}
.segment h3 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.segment p { font-size: 15px; line-height: 1.65; }
.segment__list {
  list-style: none; margin: auto 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.segment__list li {
  font-size: 14px; line-height: 1.5; color: var(--text);
  display: flex; gap: 9px;
}
.segment__list li::before { content: "—"; color: var(--gold); flex: none; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(28px, 4vw, 40px);
}
.step { border-top: 1px solid var(--line); padding-top: 26px; }
.step__n {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 52px);
  font-weight: 500; font-style: italic;
  line-height: 1; color: var(--gold);
}
.step h3 { font-size: clamp(22px, 3vw, 26px); margin: 18px 0 10px; letter-spacing: -.02em; }
.step p { font-size: 16px; line-height: 1.65; }

/* ==========================================================================
   Pull quote with photo
   ========================================================================== */
.pullquote {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  background-color: var(--ink);
  background-image: image-set(
    url("../img/quote-900.webp") type("image/webp") 1x,
    url("../img/quote-900.jpg")  type("image/jpeg") 1x
  );
  background-size: cover;
  background-position: center 60%;
}
@media (min-width: 800px) {
  .pullquote {
    background-image: image-set(
      url("../img/quote-1600.webp") type("image/webp") 1x,
      url("../img/quote-1600.jpg")  type("image/jpeg") 1x
    );
  }
}
@supports not (background-image: image-set(url("x.webp") type("image/webp") 1x)) {
  .pullquote { background-image: url("../img/quote-1600.jpg"); }
}
/* Parallax only where it works — iOS Safari mis-renders background-attachment:fixed */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .pullquote { background-attachment: fixed; }
}
.pullquote::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,9,11,.55), rgba(9,9,11,.72));
}
.pullquote blockquote {
  position: relative;
  margin: 0;
  padding: clamp(64px, 10vw, 88px) var(--gutter);
  max-width: 860px;
  text-align: center;
}
.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.3;
  color: var(--page);
  margin: 0;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.plan {
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 32px);
  border: 1px solid var(--ink-600);
  background: var(--ink-800);
  color: var(--page);
  display: flex;
  flex-direction: column;
}
.plan--featured { border-color: var(--gold); background: var(--ink-700); }
.plan__name {
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: .75;
}
.plan__price {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 44px);
  font-weight: 600; letter-spacing: -.02em;
  margin: 18px 0 4px;
}
.plan__unit { font-size: 14px; opacity: .7; margin-bottom: 18px; }
.plan p { font-size: 15px; line-height: 1.6; opacity: .85; }
.plan__list {
  list-style: none; margin: 22px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--ink-600);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14.5px;
}
.plan__list li { display: flex; gap: 10px; opacity: .88; }
.plan__list li::before { content: "✓"; color: var(--gold); flex: none; }
.plan .btn { margin-top: 24px; }
.plan--featured .plan__badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 5px 10px;
  border-radius: 9999px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.pricing-note { font-size: 15px; color: var(--text-dim); margin-top: 28px; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  padding: 22px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  min-height: 48px;
}
.faq__q span:first-child {
  font-family: var(--serif);
  font-size: clamp(18px, 2.3vw, 21px);
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  letter-spacing: -.01em;
}
.faq__sign {
  font-size: 22px; line-height: 1;
  color: var(--gold);
  flex: none;
  transition: transform .3s var(--ease);
}
.faq__q[aria-expanded="true"] .faq__sign { transform: rotate(45deg); }
/* grid-rows animation — never clips long answers the way max-height does */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  font-size: clamp(15.5px, 2vw, 17px);
  line-height: 1.7;
  color: var(--text);
  max-width: 68ch;
  padding-bottom: 26px;
}

/* ==========================================================================
   Mock-up form
   ========================================================================== */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 20px -4px rgb(0 0 0 / .08);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 13.5px; font-weight: 500;
  color: var(--ink);
  letter-spacing: .01em;
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: var(--page);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: inherit;
  /* 16px stops iOS Safari zooming the viewport on focus */
  font-size: 16px;
  color: var(--ink);
  outline: none;
  width: 100%;
  min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2371717A' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 42px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, .18);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #B91C1C; }

.form-card .btn { margin-top: 4px; width: 100%; }
.form-note {
  font-size: 13px; color: var(--text-muted);
  margin: 2px 0 0; text-align: center;
}
.form-status {
  font-size: 14.5px;
  border-radius: 10px;
  padding: 12px 14px;
  display: none;
}
.form-status.is-ok    { display: block; background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.form-status.is-error { display: block; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

.contact-lines {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  color: var(--text);
}
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* ==========================================================================
   Floating call to action
   ========================================================================== */
.fab {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  /* clear the iOS home indicator */
  bottom: calc(clamp(16px, 4vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 50;

  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  min-height: 52px;

  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 10px 30px -6px rgb(0 0 0 / .35),
              inset rgba(255,255,255,.18) 0 6px 0 -5px;

  /* hidden until scrolled; visibility keeps it out of the tab order */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.96);
  transition: opacity .28s var(--ease), transform .28s var(--ease),
              visibility .28s, background-color .2s var(--ease);
}
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab:hover { background: var(--gold-light); color: var(--ink); }
.fab:active { transform: translateY(1px); }
.fab svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 480px) {
  .fab { padding: 13px 18px; font-size: 14.5px; min-height: 48px; }
}
/* On the narrowest screens the label would crowd the edge — keep the icon only */
@media (max-width: 360px) {
  .fab { padding: 14px; gap: 0; }
  .fab span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fab { transform: none !important; }
}

@media print { .fab { display: none !important; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--text-dim);
  border-top: 1px solid var(--ink-600);
}
.site-footer__grid {
  padding-block: clamp(48px, 8vw, 64px) 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(32px, 5vw, 40px);
}
.site-footer__about { max-width: 320px; }
.site-footer__about p {
  font-size: 15px; line-height: 1.6;
  margin: 18px 0 0; color: var(--text-dim);
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-pale);
  margin: 0 0 16px;
}
.site-footer__col {
  display: flex; flex-direction: column; gap: 10px; font-size: 15px;
}
.site-footer__col a { color: var(--text-dim); text-decoration: none; }
.site-footer__col a:hover { color: var(--page); text-decoration: underline; }
.site-footer__col a.is-gold { color: var(--gold-pale); }
.site-footer__bottom {
  padding: 24px 0 40px;
  border-top: 1px solid var(--ink-700);
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}
.site-footer__bottom span:last-child { margin-left: auto; }
@media (max-width: 720px) {
  .site-footer__bottom span:last-child { margin-left: 0; }
}

/* ==========================================================================
   Page hero (interior pages) — photo behind a heavy scrim
   ========================================================================== */
.page-hero {
  position: relative;
  background: var(--ink);
  padding-block: clamp(64px, 10vw, 96px) clamp(56px, 9vw, 88px);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-700);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: var(--ph-pos, center);
}
.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,9,11,.76), rgba(9,9,11,.95));
}
.page-hero__inner {
  position: relative;
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.page-hero__h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.6vw, 76px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--page);
  margin: 0;
}
.page-hero__h1 em { font-style: italic; color: var(--gold-paler); }
.page-hero__lede {
  font-size: clamp(16.5px, 2.2vw, 19px);
  line-height: 1.65;
  color: #D4D4D8;
  max-width: 620px;
  margin: 26px auto 0;
}

/* One rule per hero photo, WebP with a JPEG fallback */
.page-hero__bg--templates {
  background-image: image-set(
    url("../img/templates-900.webp") type("image/webp") 1x,
    url("../img/templates-900.jpg")  type("image/jpeg") 1x);
}
.page-hero__bg--pricing {
  background-image: image-set(
    url("../img/pricing-900.webp") type("image/webp") 1x,
    url("../img/pricing-900.jpg")  type("image/jpeg") 1x);
}
.page-hero__bg--faq {
  background-image: image-set(
    url("../img/faq-900.webp") type("image/webp") 1x,
    url("../img/faq-900.jpg")  type("image/jpeg") 1x);
}
.page-hero__bg--hero {
  background-image: image-set(
    url("../img/hero-900.webp") type("image/webp") 1x,
    url("../img/hero-900.jpg")  type("image/jpeg") 1x);
}
@media (min-width: 800px) {
  .page-hero__bg--templates {
    background-image: image-set(
      url("../img/templates-1600.webp") type("image/webp") 1x,
      url("../img/templates-1600.jpg")  type("image/jpeg") 1x);
  }
  .page-hero__bg--pricing {
    background-image: image-set(
      url("../img/pricing-1600.webp") type("image/webp") 1x,
      url("../img/pricing-1600.jpg")  type("image/jpeg") 1x);
  }
  .page-hero__bg--faq {
    background-image: image-set(
      url("../img/faq-1600.webp") type("image/webp") 1x,
      url("../img/faq-1600.jpg")  type("image/jpeg") 1x);
  }
  .page-hero__bg--hero {
    background-image: image-set(
      url("../img/hero-1600.webp") type("image/webp") 1x,
      url("../img/hero-1600.jpg")  type("image/jpeg") 1x);
  }
}
@supports not (background-image: image-set(url("x.webp") type("image/webp") 1x)) {
  .page-hero__bg--templates { background-image: url("../img/templates-1600.jpg"); }
  .page-hero__bg--pricing   { background-image: url("../img/pricing-1600.jpg"); }
  .page-hero__bg--faq       { background-image: url("../img/faq-1600.jpg"); }
  .page-hero__bg--hero      { background-image: url("../img/hero-1600.jpg"); }
}

/* ==========================================================================
   Pricing page plan cards
   ========================================================================== */
/* Lift the deck so it overlaps the hero, as the design does. */
.plan-deck { padding-block: 0 var(--section-y); margin-top: clamp(-56px, -6vw, -32px); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  align-items: stretch;
}
.pplan {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 36px);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / .06);
}
.pplan--dark {
  border-color: var(--gold);
  background: var(--ink-700);
  color: var(--page);
  box-shadow: 0 32px 64px -16px rgb(0 0 0 / .28);
}
.pplan__tag {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--gold-link);
}
.pplan--dark .pplan__tag { color: var(--gold-pale); }
.pplan__name {
  font-family: var(--serif);
  font-size: 28px; font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
  color: inherit;
}
.pplan__price {
  display: flex; align-items: baseline; gap: 8px;
  margin: 18px 0 6px;
}
.pplan__amount {
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 56px);
  font-weight: 600; letter-spacing: -.03em; line-height: 1;
}
.pplan__unit { font-size: 15px; opacity: .7; }
.pplan__blurb { font-size: 15.5px; line-height: 1.6; opacity: .82; margin: 0 0 24px; }
.pplan__list {
  list-style: none;
  margin: 0 0 28px; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
  font-size: 15px; line-height: 1.5;
}
.pplan--dark .pplan__list { border-top-color: var(--ink-500); }
.pplan__list li { display: flex; gap: 11px; }
.pplan__list li::before { content: "—"; color: var(--gold); flex: none; }
.pplan--dark .pplan__list li::before { color: var(--gold-light); }
.pplan__cta {
  width: 100%;
  background: var(--ink-700);
  color: var(--page);
  box-shadow: inset rgba(255,255,255,.15) 0 6px 0 -5px;
}
.pplan__cta:hover { background: var(--ink); color: var(--page); }
.pplan--dark .pplan__cta { background: var(--gold); color: var(--ink); }
.pplan--dark .pplan__cta:hover { background: var(--gold-light); color: var(--ink); }
.plan-note {
  font-size: 15px; color: var(--text-muted);
  margin: 28px 0 0; text-align: center;
}

/* Included-on-every-plan list */
.included {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px 32px;
}
.included li {
  display: flex; gap: 12px;
  font-size: 16px; line-height: 1.5; color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.included li::before { content: "—"; color: var(--gold); flex: none; }

/* ==========================================================================
   Templates page — "how far it bends"
   ========================================================================== */
.bend-list { display: flex; flex-direction: column; gap: 22px; }
.bend { border-top: 1px solid var(--cream-line); padding-top: 18px; }
.bend h3 {
  font-family: var(--sans);
  font-size: 17px; font-weight: 600;
  color: var(--ink); margin: 0 0 6px;
}
.bend p { font-size: 15.5px; line-height: 1.65; color: var(--text); max-width: 52ch; }

/* ==========================================================================
   FAQ page — sticky jump rail
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(32px, 5vw, 48px);
  align-items: start;
}
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: minmax(200px, 260px) 1fr; }
  .faq-jump { position: sticky; top: 110px; }
}
.faq-jump__links { display: flex; flex-direction: column; gap: 12px; }
.faq-jump__links a {
  font-size: 16px;
  text-decoration: none;
  padding: 4px 0;
}
.faq-jump__links a:hover { text-decoration: underline; }
.faq-groups { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 56px); }
.faq-group { scroll-margin-top: 110px; }
.faq-group__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

/* ==========================================================================
   About page
   ========================================================================== */
.split--portrait { align-items: start; }
.founder img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 32%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 40px -8px rgb(0 0 0 / .1);
}
.prose--lg p { font-size: clamp(16.5px, 2.1vw, 17.5px); line-height: 1.75; }
.prose--lg p + p { margin-top: 18px; }

.principle__n {
  font-family: var(--serif);
  font-size: 34px; font-style: italic; font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(45%, 200px), 1fr));
  gap: 20px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ==========================================================================
   Closing call-to-action sections
   ========================================================================== */
.cta-section { text-align: center; }
.cta-section--page  { background: var(--page); }
.cta-section--cream { background: var(--cream); border-top: 1px solid var(--cream-line); }
.cta-section--dark  { background: var(--ink); }
.cta-section .wrap { max-width: 720px; }
.cta-section__copy {
  font-size: clamp(16.5px, 2.2vw, 18px);
  line-height: 1.65;
  color: var(--text);
  margin: 20px auto 32px;
  max-width: 56ch;
}
.cta-section--dark .cta-section__copy { color: #D4D4D8; }
/* the FAQ CTA button carries an email address — let it wrap on small screens */
.cta-section .btn { max-width: 100%; word-break: break-word; }

/* ==========================================================================
   Misc content blocks
   ========================================================================== */
.prose p + p { margin-top: 18px; }
.prose p { font-size: clamp(16px, 2vw, 18px); line-height: 1.7; }

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  /* let a wide table scroll rather than break the page */
  min-width: 520px;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare th, .compare td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}
.compare tbody th {
  font-family: var(--sans);
  font-weight: 600; color: var(--ink);
}
.compare td { color: var(--text); }

.cta-band {
  background: var(--ink);
  border-top: 1px solid var(--ink-700);
  text-align: center;
}
.cta-band .wrap { padding-block: clamp(56px, 9vw, 88px); }
.cta-band p { color: var(--text-dim); margin: 20px auto 0; max-width: 56ch; font-size: 17px; }
.cta-band .btn-row { margin-top: 32px; }

/* ==========================================================================
   Entrance animations
   ========================================================================== */
@keyframes gcRise      { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes gcFadeUp    { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gcRule      { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gcZoom      { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes gcUnderline { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.gc-a { opacity: 0; animation: gcFadeUp .9s var(--ease) forwards; }
.gc-line-mask { display: block; overflow: hidden; }
.gc-line { display: block; transform: translateY(112%); animation: gcRise 1.05s var(--ease) forwards; }
.gc-rule-l, .gc-rule-r {
  transform: scaleX(0);
  animation: gcRule .7s var(--ease) .15s forwards;
}
.gc-rule-l { transform-origin: right; }
.gc-rule-r { transform-origin: left; }

/* Scroll-reveal for below-the-fold sections (added by JS) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; will-change: auto; }

/* ==========================================================================
   Reduced motion — honour the OS setting everywhere
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .gc-a, .gc-line, .gc-rule-l, .gc-rule-r, .reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .hero__underline { clip-path: none !important; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .burger, .mobile-nav, .cta-band, .gallery-hint { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .section--dark, .stats, .plan { background: #fff !important; color: #000 !important; }
  .h1, .h2, .h2--light, .stat__k, .plan__price { color: #000 !important; }
  a { text-decoration: underline; }
}
