/* ==========================================================================
   FoyerSignIn design system
   Warm luxury listing: cream paper, ink type, brass rules, arched thresholds.
   Display: Playfair Display. Body: Karla.
   ========================================================================== */

:root {
  /* brief palette */
  --bg: #FAF7F1;
  --surface: #FFFFFF;
  --ink: #1B1A17;
  --primary: #8A6A2F;
  --accent: #C9A961;
  --muted: #6E6A60;

  /* derived tints and shades */
  --cream-deep: #F3ECDE;
  --cream-warm: #F6F1E6;
  --brass-pale: #EFE3C8;
  --brass-dark: #6B5122;
  --ink-soft: color-mix(in srgb, var(--ink) 78%, var(--bg));
  --ink-faint: color-mix(in srgb, var(--ink) 46%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 30%, transparent);
  --line-brass: color-mix(in srgb, var(--accent) 58%, transparent);
  --wash: color-mix(in srgb, var(--accent) 10%, var(--bg));

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 18px;
  --s-5: 26px;
  --s-6: 36px;
  --s-7: 52px;
  --s-8: 72px;
  --s-9: 100px;
  --s-10: 136px;

  /* radii */
  --r-hair: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-arch: 260px;

  /* shadows, kept dry and paper like */
  --shadow-lift: 0 1px 0 var(--line), 0 18px 40px -30px rgba(27, 26, 23, 0.55);
  --shadow-card: 0 24px 60px -46px rgba(27, 26, 23, 0.7);
  --shadow-rail: 0 1px 0 0 var(--line);

  /* type scale */
  --f-display: "Playfair Display", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --f-body: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-eyebrow: 0.72rem;
  --t-small: 0.86rem;
  --t-body: 1.0rem;
  --t-lead: clamp(1.06rem, 0.98rem + 0.4vw, 1.24rem);
  --t-h3: clamp(1.16rem, 1.04rem + 0.5vw, 1.42rem);
  --t-h2: clamp(1.85rem, 1.3rem + 2.2vw, 3.05rem);
  --t-h1: clamp(2.35rem, 1.5rem + 3.4vw, 4.05rem);
  --t-numeral: clamp(2.6rem, 1.7rem + 3.6vw, 4.3rem);

  --wrap: 1180px;
  --gutter: clamp(20px, 4.4vw, 60px);
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.68;
  letter-spacing: 0.004em;
  /* laid paper: fine horizontal tooth plus a warm corner glow */
  background-image:
    repeating-linear-gradient(0deg, rgba(27, 26, 23, 0.016) 0 1px, transparent 1px 4px),
    radial-gradient(120% 70% at 88% -8%, rgba(201, 169, 97, 0.16), transparent 62%),
    radial-gradient(90% 60% at 4% 102%, rgba(138, 106, 47, 0.08), transparent 60%);
  background-attachment: fixed, scroll, scroll;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; margin: 0 0 var(--s-4); letter-spacing: -0.012em; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.24; }
p { margin: 0 0 var(--s-4); }
ul { margin: 0 0 var(--s-4); padding-left: 1.1em; }
a { color: var(--primary); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

/* ------------------------------------------------------------ utilities */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 68ch; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--r-sm);
  font-size: var(--t-small); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--s-4); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-hair);
}

/* eyebrow label with a hairline lead in */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-eyebrow); text-transform: uppercase; letter-spacing: 0.26em;
  color: var(--primary); font-weight: 700; margin: 0 0 var(--s-4);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--line-brass); flex: none; }
.eyebrow.is-centered { justify-content: center; }
.eyebrow.is-centered::after { content: ""; width: 34px; height: 1px; background: var(--line-brass); flex: none; }

/* brass lozenge divider */
.ornament { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin: var(--s-6) 0; }
.ornament::before, .ornament::after { content: ""; height: 1px; background: var(--line); flex: 1 1 auto; max-width: 220px; }
.ornament i { width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); display: block; }

.lede { font-size: var(--t-lead); color: var(--ink-soft); max-width: 62ch; }
.tiny { font-size: var(--t-small); color: var(--muted); }

/* underline sweep, the site wide link motion */
.sweep {
  color: inherit; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
  transition: background-size 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.3s ease;
  padding-bottom: 2px;
}
.sweep:hover, .sweep:focus-visible { background-size: 100% 1px; color: var(--primary); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-size: 0.84rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border-radius: var(--r-hair); border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.btn:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--brass { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.btn--brass:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn--wide { width: 100%; }
.btn--small { padding: 11px 18px; font-size: 0.74rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(9px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -30px rgba(27, 26, 23, 0.9); }
.header-inner { display: flex; align-items: center; gap: var(--s-5); min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-family: var(--f-display); font-size: 1.34rem; letter-spacing: -0.01em; }
.brand b { font-weight: 500; color: var(--primary); }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: 0.88rem; color: var(--ink-soft); text-decoration: none; letter-spacing: 0.02em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
  transition: background-size 0.4s ease, color 0.3s ease; padding-bottom: 3px;
}
.nav a:hover, .nav a:focus-visible { background-size: 100% 1px; color: var(--ink); }
.header-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r-hair); padding: 10px 12px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; display: block; }

/* -------------------------------------------------------------- sections */
main { display: block; }
.section { padding-block: clamp(56px, 8vw, 116px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: linear-gradient(180deg, var(--cream-warm), var(--bg)); }
.section--paper { background: var(--surface); }
.section-head { max-width: 62ch; margin-bottom: var(--s-7); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered .eyebrow { justify-content: center; }
.section-head.is-centered .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--line-brass); flex: none; }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(52px, 8vw, 108px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 72px); grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0 var(--s-6); }
.trust { list-style: none; margin: 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-3); }
.trust li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--t-small); color: var(--muted); }
.trust svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--primary); }

/* arched photo plate with an offset brass frame */
.plate { position: relative; }
.plate::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--line-brass); border-radius: var(--r-arch) var(--r-arch) var(--r-sm) var(--r-sm);
  pointer-events: none; z-index: 0;
}
.plate-frame {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: var(--r-arch) var(--r-arch) var(--r-sm) var(--r-sm);
  border: 1px solid var(--line);
  background: var(--cream-deep);
  box-shadow: var(--shadow-card);
}
.plate-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; will-change: transform; }
.plate-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(190deg, rgba(250, 247, 241, 0.22), transparent 34%, rgba(27, 26, 23, 0.16));
}
.parallax { transform: translate3d(0, var(--shift, 0px), 0); transition: transform 0.12s linear; }
.plate-caption {
  position: absolute; z-index: 2; left: 50%; bottom: -22px; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line-brass); border-radius: var(--r-hair);
  padding: 10px 18px; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary); white-space: nowrap; box-shadow: var(--shadow-lift);
}

/* --------------------------------------------------------------- cards */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: clamp(22px, 2.6vw, 32px); position: relative;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover { border-color: var(--line-brass); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.card h3 { margin-bottom: var(--s-3); }
.card p:last-child { margin-bottom: 0; }
.card--cost { border-top: 2px solid var(--accent); }
.card .cost {
  display: block; font-family: var(--f-display); font-size: 1.5rem; color: var(--primary);
  margin-top: var(--s-3); font-style: italic;
}

/* feature icon well with an arched top, the foyer motif */
.feature-icon {
  width: 46px; height: 54px; display: grid; place-items: center; margin-bottom: var(--s-4);
  border: 1px solid var(--line-brass); border-radius: 24px 24px var(--r-hair) var(--r-hair);
  background: linear-gradient(180deg, var(--wash), transparent);
  color: var(--primary);
}
.feature-icon svg { width: 24px; height: 24px; }

/* ------------------------------------------------------- how it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(34px, 5vw, 70px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 var(--s-6) 74px; counter-increment: step; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 26px; top: 58px; bottom: 8px; width: 1px; background: var(--line);
}
.steps li::after {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 53px; height: 58px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.06rem; color: var(--primary);
  border: 1px solid var(--line-brass); border-radius: 27px 27px var(--r-hair) var(--r-hair);
  background: var(--surface);
}
.steps h3 { margin-bottom: var(--s-2); }
.steps p { margin-bottom: 0; color: var(--ink-soft); }
.how-photo { position: sticky; top: 110px; }

/* --------------------------------------------------------- outcomes */
.outcome { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.numeral {
  display: block; font-family: var(--f-display); font-size: var(--t-numeral); line-height: 1;
  margin-bottom: var(--s-3); letter-spacing: -0.02em;
  background: linear-gradient(102deg, var(--brass-dark) 0%, var(--primary) 32%, var(--accent) 52%, var(--brass-dark) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.outcome h3 { font-size: 1.06rem; font-family: var(--f-body); font-weight: 700; letter-spacing: 0.02em; }
.outcome p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ------------------------------------------------------ testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.testimonial {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.6vw, 32px) clamp(22px, 2.6vw, 30px);
  margin: 0; position: relative;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 6px; left: 18px;
  font-family: var(--f-display); font-size: 4.4rem; line-height: 1; color: var(--brass-pale);
}
.testimonial p { position: relative; font-size: 1.02rem; color: var(--ink-soft); }
.testimonial footer { border-top: 1px solid var(--line); padding-top: var(--s-4); margin-top: var(--s-5); }
.testimonial cite { font-style: normal; font-family: var(--f-display); font-size: 1.06rem; display: block; }
.testimonial .who { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.03em; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(34px, 4vw, 56px); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--cream-warm); }
.metrics div { padding: clamp(22px, 3vw, 34px); text-align: center; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics b { display: block; font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); color: var(--primary); line-height: 1.1; }
.metrics span { font-size: 0.83rem; color: var(--muted); letter-spacing: 0.05em; }

/* ---------------------------------------------------------- pricing */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 26px); align-items: start; }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; height: 100%;
}
.tier--pick { border-color: var(--primary); box-shadow: var(--shadow-card); position: relative; }
.tier-flag {
  position: absolute; top: -1px; left: -1px; right: -1px; margin: 0;
  background: var(--primary); color: #FFFFFF; text-align: center;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 8px 10px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.tier--pick { padding-top: calc(clamp(26px, 3vw, 38px) + 26px); }
.tier h3 { font-family: var(--f-body); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary); font-weight: 700; }
.price { font-family: var(--f-display); font-size: clamp(2.3rem, 1.7rem + 2vw, 3.1rem); line-height: 1; display: block; margin-bottom: var(--s-2); }
.price sub { font-family: var(--f-body); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; vertical-align: baseline; }
.tier ul { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-6); display: grid; gap: 11px; }
.tier li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--ink-soft); border-bottom: 1px dotted var(--line); padding-bottom: 11px; }
.tier li:last-child { border-bottom: 0; }
.tier li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--accent); }
.tier .btn { margin-top: auto; }
.billing-note { text-align: center; margin-top: var(--s-6); color: var(--muted); font-size: 0.9rem; }

/* -------------------------------------------------------------- faq */
.faq-list { border-top: 1px solid var(--line); max-width: 82ch; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: transparent; border: 0; cursor: pointer; text-align: left;
  display: flex; gap: var(--s-4); align-items: baseline; justify-content: space-between;
  padding: var(--s-5) 0; font-family: var(--f-display); font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.26rem);
  color: var(--ink); line-height: 1.3;
}
.faq-q .mark { position: relative; width: 14px; height: 14px; flex: none; align-self: center; }
.faq-q .mark::before, .faq-q .mark::after {
  content: ""; position: absolute; background: var(--primary); transition: transform 0.4s ease, opacity 0.4s ease;
}
.faq-q .mark::before { left: 0; right: 0; top: 6px; height: 1px; }
.faq-q .mark::after { top: 0; bottom: 0; left: 6px; width: 1px; }
.faq-q[aria-expanded="true"] .mark::after { transform: scaleY(0); opacity: 0; }
.faq-a { overflow: hidden; }
.faq-a[hidden] { display: none; }
.faq-a p { color: var(--ink-soft); max-width: 74ch; padding-bottom: var(--s-5); margin: 0; }

/* ---------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(34px, 5vw, 72px); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: clamp(24px, 3vw, 42px); box-shadow: var(--shadow-card); }
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 0.98rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-hair);
  padding: 13px 14px; transition: border-color 0.3s ease, background-color 0.3s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #A32B1C; background: #FDF3F1; }
.error { display: block; color: #A32B1C; font-size: 0.82rem; margin-top: 6px; letter-spacing: 0.02em; }
.error:empty { display: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.consent { display: flex; gap: 11px; align-items: flex-start; margin-bottom: var(--s-5); }
.consent input { width: 17px; height: 17px; flex: none; margin-top: 4px; accent-color: var(--primary); }
.consent label { font-size: 0.86rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-note { margin-top: var(--s-4); font-size: 0.86rem; color: var(--muted); }

/* --------------------------------------------------------- byline */
.byline { display: flex; gap: var(--s-4); align-items: flex-start; border-top: 1px solid var(--line); padding-top: var(--s-5); margin-top: clamp(40px, 6vw, 72px); font-size: 0.92rem; color: var(--muted); }
.byline svg { width: 34px; height: 34px; flex: none; color: var(--primary); }

/* --------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--cream-deep); padding-block: clamp(52px, 7vw, 92px) var(--s-6); }
.site-footer a { color: var(--cream-deep); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.footer-grid h3 { font-family: var(--f-body); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 0.92rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: var(--s-4); }
.footer-brand svg { width: 28px; height: 28px; }
.footer-brand span { font-family: var(--f-display); font-size: 1.24rem; color: var(--bg); }
.footer-line { color: color-mix(in srgb, var(--cream-deep) 76%, var(--ink)); font-size: 0.93rem; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: var(--s-5); }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 19px 19px var(--r-hair) var(--r-hair);
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.socials svg { width: 17px; height: 17px; }
.footer-base {
  margin-top: clamp(38px, 5vw, 64px); padding-top: var(--s-5);
  border-top: 1px solid color-mix(in srgb, var(--cream-deep) 22%, transparent);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
  font-size: 0.84rem; color: color-mix(in srgb, var(--cream-deep) 70%, var(--ink));
}

/* ------------------------------------------------------ prose pages */
.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose li { margin-bottom: 8px; }
.page-head { padding-block: clamp(48px, 6vw, 88px) var(--s-6); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); max-width: 62ch; margin-bottom: 0; }
.crumbs { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-4); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.map-group { border-top: 1px solid var(--line); padding-top: var(--s-5); margin-top: var(--s-6); }
.map-group ul { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.map-group li strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.08rem; }
.map-group li span { color: var(--muted); font-size: 0.9rem; }
.author-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(30px, 4vw, 60px); align-items: start; }
.portrait { border: 1px solid var(--line); border-radius: 150px 150px var(--r-sm) var(--r-sm); overflow: hidden; background: var(--cream-deep); box-shadow: var(--shadow-card); }
.author-links { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 0.94rem; margin-top: var(--s-5); }
.callout { border-left: 2px solid var(--accent); background: var(--cream-warm); padding: var(--s-5); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.callout p:last-child { margin-bottom: 0; }
.status-code { font-family: var(--f-display); font-size: clamp(4rem, 3rem + 8vw, 9rem); line-height: 0.9; color: var(--brass-pale); margin: 0 0 var(--s-4); }

/* -------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(2) { transition-delay: 0.14s; }
.stagger.is-in > *:nth-child(3) { transition-delay: 0.28s; }
.stagger.is-in > *:nth-child(4) { transition-delay: 0.42s; }
.stagger.is-in > *:nth-child(5) { transition-delay: 0.56s; }
.stagger.is-in > *:nth-child(6) { transition-delay: 0.7s; }

/* ---------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .how-photo { position: static; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: var(--s-4) var(--gutter) var(--s-5);
  }
  .nav[hidden] { display: none; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .nav a { font-size: 1rem; }
  .hero-grid, .how-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .grid--3, .quotes, .tiers { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metrics div + div { border-left: 0; border-top: 1px solid var(--line); }
  .author-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 300px; }
  .plate::after { inset: 12px -12px -12px 12px; }
}
@media (max-width: 620px) {
  .grid--2, .grid--4, .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding-left: 62px; }
  .steps li::after { width: 46px; height: 52px; }
  .steps li:not(:last-child)::before { left: 23px; top: 54px; }
  .plate-caption { white-space: normal; text-align: center; width: max-content; max-width: 90%; }
}
@media (max-width: 380px) {
  .btn { width: 100%; }
  .hero-actions { gap: var(--s-2); }
}

/* --------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .parallax { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .form-card { display: none; }
  body { background: #FFFFFF; }
}

/* ==========================================================================
   THE FOYER REPORT
   Magazine layer. Same paper, same brass hairlines, same arched thresholds
   as the rest of the site. No new palette, no second typeface, no framework.
   ========================================================================== */

/* ------------------------------------------------- editorial measures */
.mag-measure { width: min(100%, 67ch); margin-inline: auto; }
.mag-measure--wide { width: min(100%, 90ch); margin-inline: auto; }

.standfirst {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.14rem, 1rem + 0.72vw, 1.52rem); line-height: 1.5;
  color: var(--ink-soft); max-width: 56ch; margin: 0 0 var(--s-4);
}

/* ------------------------------------------------- magazine masthead */
.mag-head { padding-block: clamp(38px, 5.4vw, 80px) clamp(26px, 3.4vw, 46px); }
.mag-head h1 { max-width: 15ch; margin-bottom: var(--s-4); }
.mag-head .standfirst { margin-bottom: 0; }
.mag-issue {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5);
  margin: var(--s-6) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line);
  font-size: var(--t-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.mag-issue a { color: var(--primary); text-decoration: none; }
.mag-issue a:hover { color: var(--brass-dark); }

/* ------------------------------------------------------ card grid */
.mag-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 38px); align-items: stretch;
}

.mag-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.mag-card:hover { border-color: var(--line-brass); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.mag-card__media {
  display: block; position: relative; overflow: hidden;
  background: var(--cream-deep); border-bottom: 1px solid var(--line);
}
.mag-card__media img {
  width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mag-card:hover .mag-card__media img { transform: scale(1.03); }
.mag-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: clamp(20px, 2.4vw, 30px); }
.mag-kicker {
  font-size: var(--t-eyebrow); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin: 0 0 var(--s-3);
}
.mag-card__title { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.38rem); line-height: 1.22; margin: 0 0 var(--s-3); }
.mag-card__title a { color: var(--ink); text-decoration: none; }
.mag-card__title a:hover, .mag-card__title a:focus-visible { color: var(--primary); }
.mag-dek { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 var(--s-5); }
.mag-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  margin: auto 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.mag-meta i, .mag-issue i { width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); display: block; flex: none; }

/* the first card of the magazine runs across the full measure */
.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.mag-card.lead .mag-card__media {
  flex: 1 1 55%; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line);
}
.mag-card.lead .mag-card__media img { aspect-ratio: 16 / 11; }
.mag-card.lead .mag-card__media::after {
  content: "Latest"; position: absolute; top: var(--s-4); left: var(--s-4);
  background: var(--primary); color: #FFFFFF; padding: 7px 14px; border-radius: var(--r-hair);
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.mag-card.lead .mag-card__body { flex: 1 1 45%; justify-content: center; padding: clamp(26px, 3.4vw, 54px); }
.mag-card.lead .mag-card__title { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.45rem); line-height: 1.14; }
.mag-card.lead .mag-dek { font-size: var(--t-lead); max-width: 44ch; }

.mag-more { margin-top: clamp(30px, 4vw, 54px); display: flex; justify-content: center; }

/* -------------------------------------- article list on the author page */
.author-articles { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--line); }
.author-articles li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); margin: 0;
}
.author-articles a { font-family: var(--f-display); font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.author-articles a:hover, .author-articles a:focus-visible { color: var(--primary); }
.author-articles time {
  flex: none; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

/* --------------------------------------------------- article header */
.article-head { padding-block: clamp(30px, 4.2vw, 62px) clamp(22px, 2.8vw, 36px); }
.article-head .crumbs { margin-bottom: var(--s-5); }
.article-head .crumbs span { color: var(--ink-faint); }
.article-head h1 { font-size: clamp(1.95rem, 1.35rem + 2.5vw, 3.15rem); margin-bottom: var(--s-5); }
.article-head .standfirst { margin-bottom: 0; max-width: 60ch; }

.article-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line);
  font-size: var(--t-small); color: var(--muted);
}
.article-byline p { margin: 0; }
.article-byline .who { color: var(--ink); }
.article-byline a { color: var(--primary); }
.article-byline time { color: var(--ink-soft); }

.article-figure { margin: 0 auto clamp(32px, 4.2vw, 58px); }
.article-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cream-deep);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  border-radius: clamp(56px, 11vw, 150px) clamp(56px, 11vw, 150px) var(--r-sm) var(--r-sm);
}
.article-figcaption {
  margin-top: var(--s-3); font-size: var(--t-eyebrow); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}

/* ------------------------------------------------- article typography */
.article-body { font-size: 1.055rem; line-height: 1.78; color: var(--ink); }
.article-body > p { margin: 0 0 var(--s-5); }
.article-body h2 {
  font-size: clamp(1.46rem, 1.18rem + 1.05vw, 2.02rem); line-height: 1.18;
  margin: clamp(40px, 4.8vw, 66px) 0 var(--s-4); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.article-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article-body h3 {
  font-family: var(--f-body); font-weight: 700; letter-spacing: 0.02em;
  font-size: 1.02rem; line-height: 1.4; color: var(--brass-dark);
  margin: var(--s-6) 0 var(--s-3);
}
.article-body ul, .article-body ol { margin: 0 0 var(--s-5); padding-left: 1.3em; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--accent); }
.article-body a { color: var(--primary); text-underline-offset: 3px; }
.article-body a:hover { color: var(--brass-dark); }
.article-body blockquote {
  margin: clamp(30px, 3.6vw, 46px) 0; padding-left: var(--s-5);
  border-left: 2px solid var(--accent); font-family: var(--f-display);
  font-style: italic; font-size: var(--t-lead); color: var(--ink-soft);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-5); font-size: 0.95rem; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 11px 12px; text-align: left; }
.article-body th { font-family: var(--f-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }

/* the contextual read on links dropped between sections */
.article-body .inline-read {
  margin: clamp(28px, 3.4vw, 44px) 0; padding: var(--s-4) var(--s-5);
  background: var(--cream-warm); border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.article-body .inline-read a {
  display: inline-block; margin-top: 6px;
  font-family: var(--f-display); font-style: italic; font-size: 1.1rem;
  letter-spacing: 0; text-transform: none; color: var(--brass-dark); text-decoration: none;
  border-bottom: 1px solid var(--line-brass); padding-bottom: 2px;
}
.article-body .inline-read a:hover, .article-body .inline-read a:focus-visible { color: var(--primary); border-bottom-color: var(--primary); }

/* ------------------------------------------------------ article cta */
.article-cta {
  margin: clamp(44px, 5.4vw, 76px) auto 0; padding: clamp(28px, 3.4vw, 48px);
  background: var(--cream-warm); border: 1px solid var(--line-brass);
  border-radius: clamp(40px, 7vw, 84px) clamp(40px, 7vw, 84px) var(--r-sm) var(--r-sm);
}
.article-cta h2 { font-size: clamp(1.36rem, 1.14rem + 0.95vw, 1.95rem); margin-bottom: var(--s-4); }
.article-cta p { color: var(--ink-soft); max-width: 52ch; }
.article-cta .btn { margin-top: var(--s-2); }

/* --------------------------------------------------- author box */
.article-author {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px);
  align-items: start; margin: clamp(40px, 5vw, 70px) auto 0;
  padding-top: var(--s-6); border-top: 1px solid var(--line);
}
.article-author__portrait {
  overflow: hidden; background: var(--cream-deep); border: 1px solid var(--line);
  border-radius: 64px 64px var(--r-sm) var(--r-sm); box-shadow: var(--shadow-lift);
}
.article-author__portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.article-author h2 { font-size: 1.32rem; margin-bottom: var(--s-3); }
.article-author p { font-size: 0.96rem; color: var(--ink-soft); }
.article-author p:last-child { margin-bottom: 0; }
.article-author a { color: var(--primary); }

/* ------------------------------------------------------- read also */
.mag-related {
  margin-top: clamp(50px, 6.6vw, 96px); padding-block: clamp(44px, 5.8vw, 84px);
  background: var(--cream-deep); border-top: 1px solid var(--line);
}
.mag-related h2 { font-size: clamp(1.36rem, 1.14rem + 0.95vw, 2rem); margin-bottom: var(--s-6); }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); }
.rel-card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.rel-card:hover { border-color: var(--line-brass); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.rel-card__media { display: block; overflow: hidden; background: var(--cream-deep); border-bottom: 1px solid var(--line); }
.rel-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rel-card__body { padding: clamp(18px, 2vw, 24px); }
.rel-meta {
  margin: 0; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary);
}
.rel-card__title { font-size: 1.04rem; line-height: 1.26; margin: var(--s-2) 0 var(--s-3); }
.rel-card__title a { color: var(--ink); text-decoration: none; }
.rel-card__title a:hover, .rel-card__title a:focus-visible { color: var(--primary); }
.rel-dek {
  margin: 0; font-size: 0.88rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* --------------------------------------------- magazine responsive */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav ul { gap: var(--s-4); }
  .nav a { font-size: 0.82rem; }
}
@media (max-width: 1040px) {
  .mag-grid, .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card__media {
    min-height: 0; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .mag-card.lead .mag-card__media img { aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-dek { max-width: none; }
}
@media (max-width: 700px) {
  .mag-grid, .rel-grid { grid-template-columns: minmax(0, 1fr); }
  .article-author { grid-template-columns: minmax(0, 1fr); }
  .article-author__portrait { max-width: 116px; }
  .article-byline { gap: 6px var(--s-4); font-size: 0.8rem; }
  .mag-issue { gap: 6px var(--s-4); }
}
@media (max-width: 420px) {
  .article-body { font-size: 1.01rem; }
  .article-figure img { border-radius: 42px 42px var(--r-sm) var(--r-sm); }
  .article-cta { padding: var(--s-5); border-radius: 34px 34px var(--r-sm) var(--r-sm); }
  .mag-card.lead .mag-card__media::after { top: var(--s-3); left: var(--s-3); }
}


/* Network footer strip: five sibling products, rotated so every site is linked
   the same number of times. Inherits the footer colours already defined above. */
.site-network { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid currentColor; opacity: 0.72; }
.site-network h2 { font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.6rem; font-weight: 600; }
.site-network ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.15rem; }
.site-network a { font-size: 0.82rem; text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 0.9rem; } }
