/* ============================================================
   StrongStory — editorial / literary landing page
   Design system
   ============================================================ */

:root {
  /* Warm neutral palette */
  --paper:      #F6F0E3;   /* warm cream */
  --paper-2:    #EFE6D4;   /* deeper cream panel */
  --paper-3:    #E7DBC4;   /* card / inset */
  --ink:        #221E18;   /* warm near-black */
  --ink-2:      #3B342B;
  --ink-soft:   #6A6055;   /* muted body / captions */
  --terracotta: #B65A3C;   /* primary accent */
  --terracotta-deep:#9C492F;
  --ochre:      #C28E3E;   /* secondary accent */
  --line:       rgba(34,30,24,0.16);
  --line-soft:  rgba(34,30,24,0.09);

  /* Type */
  --display: "Archivo", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --serif:   "Newsreader", Georgia, serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 84px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--terracotta);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }

.serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.section-num {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.5em;
  border-radius: 100px;
  border: 1px solid var(--bg);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .25s, color .25s, box-shadow .25s;
}
.btn .arrow { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -12px rgba(34,30,24,.5); }
.btn:hover .arrow { transform: translate(4px,-4px); }
.btn--accent { --bg: var(--terracotta); --fg: var(--paper); }
.btn--accent:hover { --bg: var(--terracotta-deep); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
}
.brand .dot { color: var(--terracotta); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}
.nav-links a.navlink {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--terracotta);
  transition: width .3s cubic-bezier(.2,.7,.3,1);
}
.nav-links a.navlink:hover::after { width: 100%; }
.nav-cta { display: inline-flex; white-space: nowrap; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links .navlink { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(130px, 17vh, 200px);
  padding-bottom: clamp(60px, 9vh, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(3.1rem, 8.4vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}
.hero h1 .emph {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--terracotta);
}
.hero-lede {
  margin-top: clamp(26px, 3.5vw, 40px);
  max-width: 30ch;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  color: var(--ink-2);
  line-height: 1.55;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-aside {
  align-self: end;
  padding-bottom: 6px;
}
.hero-aside .credit-line {
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  line-height: 1.5;
}
.hero-aside .credit-line strong { color: var(--ink); font-weight: 600; }

.hero-marquee {
  margin-top: clamp(48px, 7vh, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee 34s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-track .item {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: -0.01em;
  color: var(--ink-2);
  padding: 0 30px;
  display: inline-flex; align-items: center; gap: 30px;
}
.marquee-track .item::after { content: "✶"; color: var(--terracotta); font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding-block: clamp(72px, 11vh, 150px); }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(34px, 5vw, 64px);
}
.section-head .sh-title {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ---------- About / Meet Elena ---------- */
.about { background: var(--paper-2); position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
.about-portrait {
  position: relative;
  align-self: start;
  position: sticky;
  top: 108px;
}
.about-portrait .frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 30px 60px -34px rgba(34,30,24,.55);
}
.about-portrait img { width: 100%; height: auto; }
.about-portrait .tag {
  position: absolute;
  left: -14px; bottom: 26px;
  background: var(--terracotta);
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  padding: 8px 18px;
  border-radius: 4px;
  box-shadow: 0 12px 26px -14px rgba(34,30,24,.7);
}
.about-portrait .badge {
  margin-top: 22px;
  display: flex; gap: 22px; flex-wrap: wrap;
}
.about-portrait .badge .stat .n {
  font-family: var(--display); font-weight: 700;
  font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1;
}
.about-portrait .badge .stat .l {
  font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; max-width: 14ch;
}

.about-body .lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 28px;
}
.about-body p {
  color: var(--ink-2);
  margin: 0 0 20px;
  max-width: 60ch;
}
.about-body .signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--terracotta);
  margin-top: 30px;
}

/* ---------- Offerings ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.offer-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 2.6vw, 40px) clamp(22px, 2.2vw, 34px) clamp(34px,3vw,46px);
  background: transparent;
  position: relative;
  transition: background .4s, color .4s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.offer-card .oc-num {
  font-family: var(--display);
  font-size: 0.8rem; font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.offer-card h3 {
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 28px 0 14px;
}
.offer-card p { font-size: 0.98rem; color: var(--ink-2); margin: 0; max-width: 34ch; }
.offer-card .oc-mark {
  margin-top: auto;
  font-size: 1.3rem;
  color: var(--terracotta);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s;
}
.offer-card:hover { background: var(--ink); color: var(--paper); }
.offer-card:hover .oc-num { color: rgba(246,240,227,.55); }
.offer-card:hover p { color: rgba(246,240,227,.78); }
.offer-card:hover .oc-mark { opacity: 1; transform: translateY(0); color: var(--ochre); }

/* coaching callout band */
.coaching {
  margin-top: clamp(34px, 4vw, 56px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: clamp(34px, 4vw, 56px) clamp(28px,4vw,60px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 30px;
  align-items: center;
}
.coaching .eyebrow { color: var(--ochre); }
.coaching .eyebrow::before { background: var(--ochre); }
.coaching h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  margin-top: 16px;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.coaching h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ochre); }

/* ---------- Cinematic break ---------- */
.cine {
  position: relative;
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--paper);
  overflow: hidden;
}
.cine .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
}
.cine .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,12,9,.42), rgba(20,12,9,.6)),
              radial-gradient(70% 60% at 50% 50%, rgba(182,90,60,.22), transparent 70%);
}
.cine .cine-inner { position: relative; padding-block: clamp(70px,12vh,140px); }
.cine blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}
.cine blockquote em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ochre); }

/* ---------- Testimonials ---------- */
.testi { background: var(--paper-2); }
.testi-feature {
  border-top: 2px solid var(--ink);
  padding-top: clamp(26px, 3vw, 40px);
  margin-bottom: clamp(40px,5vw,70px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 60px);
}
.testi-feature .qmark {
  font-family: var(--serif);
  font-size: clamp(5rem, 11vw, 11rem);
  line-height: 0.7;
  color: var(--terracotta);
}
.testi-feature blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.9vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.testi-feature .cite { margin-top: 26px; font-size: 0.95rem; color: var(--ink-soft); }
.testi-feature .cite strong { display:block; color: var(--ink); font-weight: 700; font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; }

.testi-grid {
  columns: 3;
  column-gap: clamp(20px, 2.6vw, 40px);
}
.testi-card {
  break-inside: avoid;
  margin-bottom: clamp(20px, 2.6vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: clamp(24px,2.4vw,32px);
}
.testi-card .stars { color: var(--ochre); letter-spacing: 3px; font-size: .9rem; margin-bottom: 14px; }
.testi-card p { margin: 0 0 18px; font-size: 1rem; color: var(--ink-2); line-height: 1.55; }
.testi-card .cite { font-size: 0.86rem; color: var(--ink-soft); }
.testi-card .cite strong { display: block; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: var(--ochre); }
.contact .eyebrow::before { background: var(--ochre); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.contact h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin: 18px 0 24px;
}
.contact h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ochre); }
.contact-lead { color: rgba(246,240,227,.78); max-width: 40ch; font-size: 1.1rem; }
.contact .detail {
  margin-top: 38px;
  display: flex; flex-direction: column; gap: 16px;
}
.contact .detail a {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--paper); font-weight: 500;
  width: fit-content;
}
.contact .detail a .ic {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(246,240,227,.28);
  display: grid; place-items: center; flex: none;
  transition: background .3s, border-color .3s, color .3s;
}
.contact .detail a:hover .ic { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }

/* form */
.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: clamp(26px, 3vw, 42px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(182,90,60,.16);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--terracotta); }
.field .err { font-size: 0.76rem; color: var(--terracotta-deep); font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(30px,5vw,60px) 10px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--terracotta); color: var(--paper);
  display: grid; place-items: center; margin: 0 auto 22px;
}
.form-success h3 { font-size: 1.7rem; letter-spacing: -0.02em; }
.form-success p { color: var(--ink-soft); max-width: 32ch; margin: 12px auto 0; }
.form-card.is-sent .form-inner { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-bottom: 50px; }
.footer-tag {
  border-top: 1px solid rgba(246,240,227,.16);
  padding-top: clamp(40px,6vw,80px);
  padding-bottom: clamp(40px,6vw,70px);
  text-align: center;
}
.footer-tag p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.18;
  margin: 0;
  color: var(--paper);
  text-wrap: balance;
}
.footer-tag p em { color: var(--ochre); font-style: italic; }
.footer-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(246,240,227,.16);
  padding-top: 30px;
}
.footer-bar .brand { color: var(--paper); }
.footer-bar .fnav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-bar .fnav a { font-size: 0.9rem; color: rgba(246,240,227,.7); }
.footer-bar .fnav a:hover { color: var(--paper); }
.footer-bar .copy { font-size: 0.82rem; color: rgba(246,240,227,.5); width: 100%; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #1FA855;
  color: #fff;
  border-radius: 100px;
  padding: 14px;
  box-shadow: 0 14px 34px -12px rgba(20,12,9,.6);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, gap .35s, padding .35s;
  overflow: hidden;
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float .wa-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
  transition: max-width .4s cubic-bezier(.2,.7,.3,1), opacity .3s, margin .4s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(20,12,9,.7); gap: 10px; padding-right: 22px; }
.wa-float:hover .wa-label { max-width: 200px; opacity: 1; margin-left: 2px; }

/* ---------- Reveal animation ----------
   Resting state is ALWAYS fully visible — no opacity:0 anywhere — so the
   page can never render blank (animations that pause at frame 0, throttled
   tabs, JS failures, etc. all degrade to visible content). The entrance is a
   subtle transform-only slide that, even if paused at its first frame, still
   shows the content. */
.reveal { opacity: 1; }
.anim .reveal.in { animation: revealUp .72s cubic-bezier(.2,.7,.3,1) both; }
.anim .reveal.in.d1 { animation-delay: .07s; }
.anim .reveal.in.d2 { animation-delay: .14s; }
.anim .reveal.in.d3 { animation-delay: .21s; }
@keyframes revealUp {
  from { transform: translateY(22px); }
  to   { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .anim .reveal.in { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .testi-grid { columns: 2; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-aside { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 380px; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .coaching { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .offer-grid { grid-template-columns: 1fr; }
  .testi-grid { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .testi-feature { grid-template-columns: 1fr; gap: 6px; }
  .testi-feature .qmark { font-size: 5rem; }
}
