/* ==========================================================================
   AURUM™ · BH Protocol™ · The iCLINIC™
   Shared stylesheet — Ark Active Pte Ltd
   Domain-neutral build. All links relative.
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #060D1B;
  --navy-2:      #0C1A30;
  --navy-3:      #12243F;
  --navy-line:   #1E3454;

  --gold:        #E3B93E;
  --gold-deep:   #C9A227;
  --gold-soft:   #F3DFA0;

  --teal:        #4FD1C5;
  --rose:        #F2789F;

  --text:        #EAF0F8;
  --muted:       #9DAFC7;
  --muted-dim:   #7789A8;  /* 4.9:1 on navy-2, 5.5:1 on navy — clears WCAG AA */

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --sec: clamp(64px, 9vw, 128px);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: var(--sec) 0; }
.section--alt { background: var(--navy-2); }
.section--line { border-top: 1px solid var(--navy-line); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1.15em; }
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1.1em;
}

.gold { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; color: var(--muted-dim); line-height: 1.6; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,13,27,.88);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--navy-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: auto; height: 34px; }
.brand span {
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-dim); font-family: var(--font-body);
  padding-left: 14px; border-left: 1px solid var(--navy-line); line-height: 1.3; max-width: 8ch;
}
@media (max-width: 560px) { .brand span { display: none; } .brand img { height: 30px; } }

/* Logo plate — for partner/clinic logos whose artwork is dark and needs a light ground */
.logo-plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: #FFFFFF; border-radius: 12px; padding: 22px 30px;
}
.logo-plate img { width: auto; max-height: 88px; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted); font-size: .92rem; letter-spacing: .01em;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--navy-line);
  color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: .95rem; cursor: pointer;
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy-2); border-bottom: 1px solid var(--navy-line);
    padding: 8px var(--pad) 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 13px 0; border-bottom: 1px solid var(--navy-line); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid var(--gold); color: var(--navy); background: var(--gold);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: rgba(227,185,62,.12); color: var(--gold-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.btn-row--center { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(80px, 13vw, 172px) 0 clamp(64px, 10vw, 128px);
  background:
    radial-gradient(1100px 620px at 76% 8%, rgba(79,209,197,.13), transparent 62%),
    radial-gradient(900px 560px at 12% 92%, rgba(227,185,62,.13), transparent 60%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--navy-line);
}
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 1.4rem; }
.hero--compact { padding: clamp(64px, 9vw, 108px) 0 clamp(48px, 7vw, 80px); }

/* ---------- Quote ---------- */
.quote {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.7vw, 1.85rem);
  line-height: 1.45;
  color: var(--gold-soft);
  max-width: 56ch;
}
.quote cite { display: block; margin-top: 1rem; font-family: var(--font-body); font-size: .88rem; font-style: normal; letter-spacing: .05em; color: var(--muted); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.card {
  background: var(--navy-2);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.card--accent { border-color: rgba(227,185,62,.4); background: linear-gradient(160deg, rgba(227,185,62,.07), var(--navy-2) 55%); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); display: block; margin-bottom: .35rem; }

/* ---------- Axis list ---------- */
.axis {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--navy-line);
}
.axis:last-child { border-bottom: 0; }
.axis-num {
  font-family: var(--font-display); font-size: 1.9rem; color: var(--gold);
  line-height: 1; padding-top: 4px;
}
.axis h3 { margin-bottom: .3em; }
.axis p { margin: 0; color: var(--muted); font-size: .96rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 2rem 0 0; }
.chips li {
  border: 1px solid var(--navy-line); background: var(--navy-2);
  border-radius: 999px; padding: 9px 18px; font-size: .87rem; color: var(--muted);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 18px; }
.stat {
  background: var(--navy-2); border: 1px solid var(--navy-line);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
}
.stat .val { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 2.9rem); color: var(--gold); line-height: 1; display: block; }
.stat .lbl { display: block; margin-top: .7rem; font-size: .92rem; color: var(--text); font-weight: 600; }
.stat .sub { display: block; margin-top: .35rem; font-size: .8rem; color: var(--muted-dim); line-height: 1.5; }

/* ---------- Phases ---------- */
.phase {
  display: grid; grid-template-columns: 92px 1fr; gap: 22px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--navy-line);
}
.phase:last-child { border-bottom: 0; }
.phase-tag {
  border: 1px solid var(--gold); color: var(--gold); border-radius: 8px;
  text-align: center; padding: 9px 4px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.phase h3 { margin-bottom: .2em; }
.phase .score { font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .6em; }
.phase p { margin: 0; color: var(--muted); }

/* ---------- Partner wall ---------- */
.partner-row { padding: 26px 0; border-bottom: 1px solid var(--navy-line); }
.partner-row:last-child { border-bottom: 0; }
.partner-row h4 {
  font-family: var(--font-body); font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 14px; font-weight: 700;
}
.partner-list { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; margin: 0; padding: 0; }
.partner-list li {
  border: 1px solid var(--navy-line); border-radius: 8px;
  padding: 9px 16px; font-size: .9rem; color: var(--muted); background: var(--navy);
}

/* ---------- Portrait ----------
   Cut-out figure floating on the navy, lit from behind. No card, no frame. */
.portrait { position: relative; margin: 0; }
.portrait::before {
  content: ""; position: absolute; inset: 4% 15% 8%;   /* glow tracks the narrower image */
  background: radial-gradient(58% 52% at 50% 42%, rgba(227,185,62,.20), rgba(79,209,197,.07) 55%, transparent 72%);
  filter: blur(6px);
}
.portrait img {
  /* 70% of the column, centred — sized down 30% at Dr Hardie's request */
  position: relative; width: 70%; height: auto; display: block;
  margin-inline: auto;
  filter: drop-shadow(0 24px 46px rgba(0,0,0,.55));
}
.portrait figcaption {
  position: relative; margin-top: 14px;
  font-size: .84rem; color: var(--muted-dim); line-height: 1.5;
}

/* ---------- Video ---------- */
.video {
  /* Half the column, centred — sized down 50% at Dr Hardie's request.
     aspect-ratio keeps 16:9, so height follows the width automatically. */
  position: relative; width: 50%; aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--navy-line); background: var(--navy-2);
}
/* On phones half-width becomes a postage stamp — let it breathe there. */
@media (max-width: 700px) { .video { width: 100%; } }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gated block ---------- */
.gate {
  border: 1px dashed rgba(227,185,62,.5);
  background: linear-gradient(160deg, rgba(227,185,62,.06), transparent);
  border-radius: var(--radius); padding: 34px 30px; text-align: center;
}
.gate h3 { margin-bottom: .4em; }

/* ---------- Dev placeholder ----------
   These pink dashed boxes flag content still to be confirmed.
   TO HIDE THEM ALL AT LAUNCH: uncomment the single rule below.
   .placeholder { display: none !important; }
*/
.placeholder {
  border: 1px dashed var(--rose); border-radius: 10px;
  background: rgba(242,120,159,.07); padding: 14px 18px;
  font-size: .84rem; color: #FFC7DA; margin: 1rem 0;
}
.placeholder b { color: var(--rose); letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); border-top: 1px solid var(--navy-line); padding: var(--sec) 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-grid h4 {
  font-family: var(--font-body); font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 16px; font-weight: 700;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); font-size: .93rem; }
.footer-grid a:hover { color: var(--text); }
.footer-base {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--navy-line);
  font-size: .82rem; color: var(--muted-dim); line-height: 1.7;
}

/* ---------- Utility ---------- */
.stack > * + * { margin-top: 1.15em; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }
.narrow { max-width: 74ch; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy); padding: 12px 20px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- iCLINIC photo band ---------- */
.photo-band { max-height: 460px; overflow: hidden; }
.photo-band img { display: block; width: 100%; max-height: 460px; object-fit: cover; object-position: 50% 62%; }

.photo-band__caption { text-align: center; margin: 14px 0 0; font-size: .92rem; letter-spacing: .04em; color: var(--muted, #8fa1b8); }
.photo-band { max-height: none; }
