/* ==========================================================================
   Nicholas Tan — personal-brand + referral site
   Palette derived from the decided brand kit (Content Creation/context/brand-kit.md):
   Deep Teal · Terracotta · Warm Ivory · Soft Charcoal · Sand Gold.
   Teal carries the structure; terracotta and gold are used sparingly.
   ========================================================================== */

:root {
  /* Brand */
  --ivory:      #F7F3EC;
  --ivory-2:    #EFE8DA;   /* slightly deeper ground for panels */
  --teal:       #1B4B43;
  --teal-deep:  #143A34;
  --teal-800:   #0F2C28;
  --terracotta: #C97C5D;
  --terracotta-ink: #B5623F;   /* accessible terracotta for text on ivory */
  --gold:       #D9B26F;
  --charcoal:   #2B2926;

  /* Neutrals, warm-biased toward the ground (chosen, not defaulted) */
  --ink:        #2B2926;
  --muted:      #6E675E;
  --hairline:   #E2D9C9;
  --hairline-2: #D8CDB9;

  /* Semantic tokens (components style through these) */
  --bg:            var(--ivory);
  --bg-panel:      #FFFFFF;
  --bg-inset:      var(--ivory-2);
  --text:          var(--ink);
  --text-muted:    var(--muted);
  --text-invert:   #F4EFE6;
  --accent:        var(--terracotta-ink);
  --accent-bright: var(--terracotta);
  --line:          var(--hairline);
  --line-strong:   var(--hairline-2);
  --band:          var(--teal);
  --band-deep:     var(--teal-deep);
  --focus:         var(--gold);

  --shadow-sm: 0 1px 2px rgba(20,42,38,.06), 0 2px 8px rgba(20,42,38,.05);
  --shadow-md: 0 6px 20px rgba(20,42,38,.10), 0 2px 6px rgba(20,42,38,.06);
  --shadow-photo: 0 24px 60px -22px rgba(20,42,38,.45);

  --maxw: 1120px;
  --measure: 62ch;
  --radius: 12px;
  --radius-sm: 8px;

  --serif: 'Fraunces', 'Fraunces-fallback', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Inter-fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Warm-dark counterpart — given the same care, not a naive invert */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #13211E;
    --bg-panel:    #1A2E29;
    --bg-inset:    #17282383;
    --text:        #EDE6D8;
    --text-muted:  #A9B3AC;
    --text-invert: #F4EFE6;
    --accent:      #E0946F;
    --accent-bright:#E7A784;
    --line:        #2A3F39;
    --line-strong: #354E47;
    --band:        #102420;
    --band-deep:   #0C1B18;
    --focus:       var(--gold);
    --shadow-photo: 0 24px 60px -22px rgba(0,0,0,.6);
  }
}
:root[data-theme="light"] {
  --bg: var(--ivory); --bg-panel:#FFFFFF; --bg-inset: var(--ivory-2);
  --text: var(--ink); --text-muted: var(--muted); --accent: var(--terracotta-ink);
  --accent-bright: var(--terracotta); --line: var(--hairline); --line-strong: var(--hairline-2);
  --band: var(--teal); --band-deep: var(--teal-deep);
}
:root[data-theme="dark"] {
  --bg:#13211E; --bg-panel:#1A2E29; --bg-inset:#17282383;
  --text:#EDE6D8; --text-muted:#A9B3AC; --accent:#E0946F; --accent-bright:#E7A784;
  --line:#2A3F39; --line-strong:#354E47; --band:#102420; --band-deep:#0C1B18;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; color: var(--text); }
p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}
.eyebrow.on-dark { color: var(--gold); }

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--inset { background: var(--bg-inset); }
.section__head.center { margin-inline: auto; text-align: center; max-width: 52ch; }
.section__head { max-width: 46ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section__head p { color: var(--text-muted); margin-top: 1rem; font-size: 1.06rem; }
.lede { max-width: var(--measure); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .82rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #F4EFE6; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-deep); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--on-dark { background: var(--gold); color: #2a2418; }
.btn--on-dark:hover { background: #e6c078; }
.btn--ghost-dark { background: transparent; color: #F4EFE6; border-color: rgba(244,239,230,.35); }
.btn--ghost-dark:hover { border-color: #F4EFE6; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 66px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.24rem; letter-spacing: .01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links a { font-family: var(--sans); font-weight: 500; font-size: .95rem; color: var(--text-muted); text-decoration: none; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: inline-flex; }
.nav__toggle { display: none; }
.nav-social { display: inline-flex; gap: .3rem; }
.nav-social a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--text-muted); border-radius: 50%; transition: color .15s ease, background-color .15s ease; }
.nav-social a:hover { color: var(--accent); background: var(--bg-inset); }
.nav-social .ico { width: 19px; height: 19px; }
@media (max-width: 860px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .nav-social { display: none; }
}

/* ---- Hero ---- */
.hero { padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(20px, 4vw, 40px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.5rem, 6.2vw, 4.3rem); font-weight: 340; letter-spacing: -.015em; }
.hero__title em { font-style: italic; font-weight: 340; color: var(--accent); }
.hero__sub { max-width: 46ch; margin-top: 1.5rem; font-size: 1.14rem; color: var(--text-muted); }
.hero__meta { display: flex; align-items: center; gap: .7rem; margin-top: 1.4rem; font-size: .95rem; color: var(--text-muted); }
.hero__meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero__figure { position: relative; justify-self: end; }
.hero__figure img { width: min(420px, 100%); border-radius: 180px 180px var(--radius) var(--radius); box-shadow: var(--shadow-photo); position: relative; z-index: 2; }
.hero__figure::before { /* teal arch behind the portrait */
  content: ""; position: absolute; z-index: 1; inset: -18px 22px 34px -22px;
  background: linear-gradient(160deg, var(--teal), var(--teal-deep));
  border-radius: 200px 200px 18px 18px;
}
.hero__badge {
  position: absolute; z-index: 3; right: -8px; bottom: 22px;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .7rem .95rem; display: flex; align-items: center; gap: .6rem;
}
.hero__badge b { font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--accent); }
.hero__badge span { font-size: .78rem; color: var(--text-muted); line-height: 1.25; }
:root[data-theme="dark"] .hero__badge b, @media (prefers-color-scheme: dark){ .hero__badge b { color: var(--accent); } }

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { justify-self: center; margin-top: 1.5rem; }
  .hero__figure img { width: min(340px, 78vw); }
}

/* ---- Proof band (dark teal, directly under hero) ---- */
.band { background: var(--band); color: var(--text-invert); }
.band--deep { background: var(--band-deep); }
.proof { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 6vw, 68px); }
.proof__quote { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.35; color: #F6F1E7; }
.proof__stars { color: var(--gold); letter-spacing: .1em; margin-bottom: 1rem; font-size: 1.05rem; }
.proof__cite { margin-top: 1.1rem; font-family: var(--sans); font-size: .95rem; color: #C9D6CF; }
.proof__cite a { color: #EAD9A6; }
.proof__stats { display: grid; gap: 1.1rem; }
.stat { border-left: 2px solid var(--gold); padding-left: 1rem; }
.stat b { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: #F6F1E7; display: block; }
.stat span { font-size: .9rem; color: #C9D6CF; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }

/* ---- About ---- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about__body p + p { margin-top: 1.1rem; }
.about__body p { color: var(--text); max-width: var(--measure); }
.about__sign { margin-top: 1.6rem; font-family: var(--serif); font-size: 1.5rem; color: var(--accent); }
:root[data-theme="dark"] .about__sign, @media (prefers-color-scheme: dark){ .about__sign { color: var(--accent);} }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } .about__figure { max-width: 380px; } }

/* ---- My story ---- */
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: 900px; }
.story__lead { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3; color: var(--accent); border-left: 3px solid var(--gold); padding-left: clamp(1rem, 3vw, 1.8rem); text-wrap: balance; }
:root[data-theme="dark"] .story__lead, @media (prefers-color-scheme: dark){ .story__lead { color: var(--accent); } }
.story__body { max-width: var(--measure); padding-left: clamp(1rem, 3vw, 1.8rem); }
.story__body p { color: var(--text); }
.story__body p + p { margin-top: 1.1rem; }

/* Interactive story stepper */
.stepper { margin-top: .5rem; }
.stepper__nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.stepper__nav::before { content: ""; position: absolute; top: 11px; left: 10%; right: 10%; height: 2px; background: var(--line-strong); }
.stepper__nav li { display: flex; }
.stepper__nav button { position: relative; z-index: 1; width: 100%; background: transparent; border: 0; cursor: pointer; padding: 0 6px; display: flex; flex-direction: column; align-items: center; gap: .6rem; font-family: var(--sans); }
.stepper__dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg-inset); display: grid; place-items: center; transition: border-color .2s ease, transform .2s ease; }
.stepper__dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: transparent; transition: background .2s ease; }
.stepper__lbl { font-family: var(--serif); font-size: 1rem; line-height: 1.2; color: var(--text-muted); text-align: center; text-wrap: balance; }
.stepper__nav button:hover .stepper__dot { border-color: var(--accent); }
.stepper__nav button[aria-selected="true"] .stepper__dot { border-color: var(--accent); transform: scale(1.12); }
.stepper__nav button[aria-selected="true"] .stepper__dot::after { background: var(--accent); }
.stepper__nav button[aria-selected="true"] .stepper__lbl { color: var(--text); }

.stepper__panels { margin-top: 2.4rem; }
.stepper__panel { display: none; }
.stepper__panel.is-active { display: block; animation: fadeStep .35s ease; }
@keyframes fadeStep { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stepper__panel.is-active { animation: none; } }
.stepper__panel .step-era { font-family: var(--sans); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.stepper__panel h3 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-bottom: 1.1rem; }
.stepper__panel p { max-width: 60ch; color: var(--text); font-size: 1.1rem; line-height: 1.75; }
.stepper__panel p + p { margin-top: 1rem; }
.stepper__panel em { font-style: italic; color: var(--accent); }

.stepper__controls { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; }
.stepper__count { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.stepper__prev, .stepper__next { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--sans); font-weight: 600; font-size: .95rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, opacity .15s ease; }
.stepper__next { background: var(--teal); color: #F4EFE6; border-color: transparent; }
.stepper__prev:hover { border-color: var(--teal); }
.stepper__next:hover { background: var(--teal-deep); }
.stepper__prev:disabled, .stepper__next:disabled { opacity: .35; cursor: default; }
@media (max-width: 620px) {
  .stepper__lbl { font-size: .82rem; }
  .stepper__nav { gap: 2px; }
}

/* ---- Services ---- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.svc {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
}
.svc h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.svc h3 .idx { font-family: var(--sans); font-weight: 600; font-size: .8rem; color: var(--accent); letter-spacing:.1em; display:block; margin-bottom:.4rem; }
.svc p { color: var(--text-muted); font-size: .98rem; }
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---- A special focus (solo-ager specialty) ---- */
.section--focus {
  background: color-mix(in srgb, var(--accent-bright) 9%, var(--bg));
  border-top: 1px solid color-mix(in srgb, var(--accent-bright) 22%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-bright) 22%, transparent);
}
.section--focus .eyebrow { color: var(--accent); }
.focus__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.focus__intro h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.focus__intro .lede { color: var(--text-muted); margin-top: 1.1rem; font-size: 1.06rem; }
.focus__intro .btn { margin-top: 1.7rem; }
.focus__points { display: grid; gap: 1rem; }
.focus-point { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.5rem; box-shadow: var(--shadow-sm); }
.focus-point h3 { font-size: 1.18rem; color: var(--accent); margin-bottom: .45rem; }
.focus-point p { color: var(--text-muted); font-size: .98rem; }
@media (max-width: 820px) { .focus__grid { grid-template-columns: 1fr; } }

/* ---- What to expect (3-appointment process) ---- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: step; }
.step {
  position: relative; background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .8rem;
}
.step__num {
  font-family: var(--serif); font-weight: 340; font-size: 2.7rem; line-height: 1;
  color: var(--accent); letter-spacing: -.02em;
}
.step__num::before { counter-increment: step; content: "0" counter(step); }
.step h3 { font-size: 1.24rem; }
.step__meta { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.step p { color: var(--text-muted); font-size: .97rem; }
.step ul { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--text-muted); font-size: .94rem; }
.step ul li { margin-bottom: .3rem; }
.step__arrow { display:none; }
.process__after { margin-top: 1.8rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--accent); max-width: 60ch; }
:root[data-theme="dark"] .process__after, @media (prefers-color-scheme: dark){ .process__after { color: var(--accent); } }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; max-width: 560px; } }

/* ---- Articles ---- */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.art {
  display: flex; flex-direction: column; background: var(--bg-panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.art:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .art:hover { transform: none; } }
.art__thumb { display: block; text-decoration: none; aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--teal), var(--teal-deep)); position: relative; }
.art__thumb.alt2 { background: linear-gradient(150deg, var(--terracotta), #9a4f33); }
.art__thumb.alt3 { background: linear-gradient(150deg, var(--gold), #b98f45); }
.art__thumb span { position: absolute; left: 1rem; bottom: .9rem; color: #fff; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .95; }
.art__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.art__meta { font-size: .78rem; color: var(--text-muted); }
.art h3 { font-size: 1.16rem; line-height: 1.25; }
.art p { font-size: .95rem; color: var(--text-muted); }
.art a.art__read { margin-top: auto; font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--accent); text-decoration: none; }
.art a.art__read:hover { text-decoration: underline; }
@media (max-width: 860px) { .art-grid { grid-template-columns: 1fr; max-width: 460px; } }

/* ---- Case studies ---- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.case {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-sm);
}
.case__tag { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.case h3 { font-size: 1.24rem; }
.case dl { margin: 0; display: grid; gap: .7rem; }
.case dt { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .15rem; }
.case dd { margin: 0; font-size: .96rem; color: var(--text); }
.case__outcome dd { color: var(--accent); font-weight: 500; }
:root[data-theme="dark"] .case__outcome dd, @media (prefers-color-scheme: dark){ .case__outcome dd { color: var(--accent); } }
.disclaimer { margin-top: 1.6rem; font-size: .84rem; color: var(--text-muted); max-width: 70ch; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; max-width: 560px; } }

/* ---- Testimonials ---- */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.tst { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; gap:.9rem; }
.tst__stars { color: var(--gold); letter-spacing: .08em; }
.tst p { font-size: 1rem; color: var(--text); }
.tst__who { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.tst__av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg, var(--teal), var(--terracotta)); color:#fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; }
.tst__who b { font-size: .95rem; }
.tst__who span { font-size: .82rem; color: var(--text-muted); display:block; }
.tst__foot { margin-top: 1.6rem; font-size: .95rem; }
@media (max-width: 900px) { .tst-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---- Credentials ---- */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cred { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.3rem; }
.cred b { font-family: var(--serif); font-size: 2rem; color: var(--accent); display: block; line-height: 1; }
:root[data-theme="dark"] .cred b, @media (prefers-color-scheme: dark){ .cred b { color: var(--accent);} }
.cred span { font-size: .92rem; color: var(--text-muted); display: block; margin-top: .5rem; }
@media (max-width: 820px) { .creds { grid-template-columns: repeat(2,1fr);} }

/* ---- Referral ---- */
.ref__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.ref__intro p { color: #C9D6CF; max-width: 42ch; margin-top: 1rem; }
.ref__intro .eyebrow { color: var(--gold); }
.ref__intro h2 { color: #F6F1E7; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.ref__points { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.ref__points li { display: flex; gap: .7rem; color: #DCE6E0; font-size: .98rem; }
.ref__points li::before { content: "→"; color: var(--gold); }

.card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-md);
}
.toggle { display: inline-flex; background: var(--bg-inset); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 1.4rem; }
.toggle button {
  border: 0; background: transparent; font-family: var(--sans); font-weight: 600; font-size: .9rem;
  color: var(--text-muted); padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
}
.toggle button[aria-selected="true"] { background: var(--teal); color: #F4EFE6; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .02em; margin-bottom: .4rem; color: var(--text); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .7rem .85rem;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--teal); }
.field textarea { min-height: 84px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--text-muted); margin: .4rem 0 1.2rem; }
.consent input { margin-top: .2rem; }
.fineprint { font-size: .8rem; color: var(--text-muted); margin-top: 1rem; }
.form-note { display:none; margin-top:1rem; padding:.8rem 1rem; border-radius: var(--radius-sm); background: var(--bg-inset); font-size:.9rem; }
@media (max-width: 820px) { .ref__grid { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } }

/* ---- Social icons ---- */
.ico { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.social { display: flex; gap: .6rem; align-items: center; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(244,239,230,.28); color: #C9D6CF;
  transition: transform .15s ease, color .15s ease, border-color .15s ease, background-color .15s ease;
}
.social a:hover { color: #F4EFE6; border-color: #F4EFE6; transform: translateY(-2px); }
.social a[data-net="instagram"]:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; color: #fff; }
.social a[data-net="youtube"]:hover { background: #FF0000; border-color: transparent; color: #fff; }
.social a[data-net="whatsapp"]:hover { background: #25D366; border-color: transparent; color: #fff; }
@media (prefers-reduced-motion: reduce) { .social a:hover { transform: none; } }

/* ---- Contact ---- */
.contact-card__icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: .9rem; }
.contact__grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.contact-card { background: var(--bg-panel); border:1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.contact-card .eyebrow { margin-bottom:.5rem; }
.contact-card a { font-family: var(--serif); font-size: 1.35rem; color: var(--text); text-decoration: none; }
.contact-card a:hover { color: var(--accent); }
@media (max-width:700px){ .contact__grid{ grid-template-columns:1fr; } }

/* ---- Article page ---- */
.article-nav { border-bottom: 1px solid var(--line); }
.article-hero { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 32px); }
.article-hero .eyebrow { margin-bottom: 1rem; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 340; letter-spacing: -.01em; max-width: 20ch; }
.article-hero .article-meta { margin-top: 1.2rem; color: var(--text-muted); font-size: .95rem; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.article-hero .article-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.article-body { padding-bottom: clamp(48px, 7vw, 90px); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose p, .prose li { font-size: 1.09rem; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--accent); }
:root[data-theme="dark"] .prose blockquote, @media (prefers-color-scheme: dark){ .prose blockquote { color: var(--accent); } }
.prose .callout { background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; font-size: .98rem; color: var(--text-muted); }
.prose .callout strong { color: var(--text); }
.article-cta { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.article-disclaimer { margin-top: 2rem; font-size: .82rem; color: var(--text-muted); max-width: 68ch; }
.back-link { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--accent); text-decoration: none; }

/* ---- Footer ---- */
.footer { background: var(--band-deep); color: #C9D6CF; padding-block: clamp(40px, 6vw, 64px); font-size: .9rem; }
.footer__top { display:flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(244,239,230,.12); }
.footer__brand { font-family: var(--serif); font-size: 1.4rem; color: #F4EFE6; }
.footer__nav { display:flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__nav a { color: #C9D6CF; text-decoration: none; }
.footer__nav a:hover { color: #F4EFE6; }
.footer__legal { margin-top: 1.6rem; max-width: 80ch; line-height: 1.6; color: #9FB0A8; }
.footer__legal strong { color:#C9D6CF; font-weight:600; }

/* ---- Editor placeholder note (review only; removed on the live site) ---- */
.ph {
  border: 1px dashed var(--accent-bright); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent-bright) 8%, transparent);
  color: var(--text); font-family: var(--sans); font-size: .82rem;
  padding: .55rem .8rem; margin-top: 1rem;
}
.ph b { color: var(--accent); }
.ph.on-dark { color:#F4EFE6; border-color: var(--gold); background: rgba(217,178,111,.12); }
.ph.on-dark b { color: var(--gold); }
