/* Site components for the full content pages: actions, step rows, cards, forms, footer, mobile menu. Loaded last. */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3svh, 34px); }
.actions.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 0 1.6em; border-radius: 999px; background: #000; color: #fff; font: 500 15px/1 "Gutica", system-ui, sans-serif; border: 1.3px solid #000; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.btn:hover { background: var(--violet); border-color: var(--violet); color: #000; }
.btn.ghost { background: transparent; color: #000; border-color: rgba(0, 0, 0, 0.35); }
.btn.ghost:hover { background: #000; border-color: #000; color: #fff; }
.btn.light { background: #fff; color: #000; border-color: #fff; }
.btn.light:hover { background: #000; color: #fff; border-color: #000; }
.btn.outline-light { background: transparent; color: #000; border-color: rgba(0, 0, 0, 0.55); }
.btn.outline-light:hover { background: #000; color: #fff; }
.hero .copy .sub { max-width: 27em; }
.hero .tag { margin-bottom: clamp(16px, 2.2svh, 24px); }

/* header: menu button and dropdown for small screens */
.menu-btn { display: none; }
.nav-cta { display: none; }
.nav a[aria-current] { color: var(--violet); }
@media (max-width: 820px) {
  .join-btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; margin-left: auto; height: 42px; padding: 0 1.2em; border: 0; border-radius: 999px; background: #000; color: #fff; font: 500 14px/1 "Gutica", system-ui, sans-serif; cursor: pointer; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 10px; border-radius: 26px; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 16px 40px rgba(20, 20, 60, 0.12); }
  .bar.open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { font-size: 17px; }
  .nav li a { display: block; padding: 14px 16px; border-radius: 16px; }
  .nav li a:hover { background: var(--page); color: #000; }
  .nav-cta { display: block; }
  .nav-cta a { background: #000; color: #fff; text-align: center; margin-top: 6px; }
  .nav-cta a:hover { background: var(--violet) !important; color: #000 !important; }
}
.sticky-cta { display: none; }
@media (max-width: 820px) {
  .sticky-cta { display: flex; position: fixed; z-index: 15; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translate(-50%, 0); align-items: center; justify-content: center; height: 50px; padding: 0 1.8em; border-radius: 999px; background: #000; color: #fff; font: 500 15px/1 "Gutica", system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); white-space: nowrap; transition: opacity 220ms ease, transform 220ms ease; }
  .sticky-cta.hide { opacity: 0; pointer-events: none; transform: translate(-50%, 12px); }
}

/* shared layout bits */
.center { text-align: center; }
.center-p { max-width: 38em; margin: clamp(14px, 1.6vw, 22px) auto 0; text-align: center; }
.faq-link { margin: clamp(28px, 3.4vw, 48px) 0 0; text-align: center; }
.faq-link.left { text-align: left; margin-top: 22px; }
.vsec h2.center { margin-bottom: clamp(28px, 4vw, 56px); }
.vsec .center-p + .trio { margin-top: clamp(28px, 4vw, 56px); }
.vhero .tag { margin-top: 0; }
.vhero .sub { margin-top: clamp(16px, 2vw, 26px); max-width: 30em; font-size: clamp(16px, 1.25vw, 20px); }
.vhero h1 { font-size: clamp(36px, 4.8vw, 82px); line-height: 1; }
.vhero .actions { margin-top: clamp(22px, 2.6vw, 38px); }

/* sequences: numbered, because the order matters */
.step-row { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gut); counter-reset: s; }
.step-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-row li { position: relative; padding: clamp(22px, 2.2vw, 34px); border-radius: var(--r); background: var(--page); display: flex; flex-direction: column; gap: 10px; }
.vsec.alt .step-row li { background: #fff; }
.step-row .n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: clamp(18px, 3vw, 44px); border-radius: 50%; background: var(--c); color: #000; font-weight: 500; font-size: 15px; }
.step-row h3, .cards h3, .trio h3, .journey h3 { margin: 0; font-weight: 500; font-size: clamp(19px, 1.7vw, 27px); line-height: 1.15; letter-spacing: -0.01em; }
.step-row p, .cards p, .trio p, .journey p { margin: 0; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.45; }
@media (max-width: 900px) { .step-row.three, .step-row.four { grid-template-columns: 1fr; } .step-row .n { margin-bottom: 14px; } }
@media (min-width: 901px) and (max-width: 1200px) { .step-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* service and programme cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.card2 { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: clamp(180px, 16vw, 250px); padding: clamp(22px, 2.2vw, 34px); border-radius: var(--r); background: linear-gradient(165deg, color-mix(in srgb, var(--c) 24%, #fff), color-mix(in srgb, var(--c) 6%, #fff) 75%); }
.vsec.alt .card2 { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
.card2 .badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; line-height: 1; font-weight: 500; background: rgba(0, 0, 0, 0.07); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card2 { min-height: 0; } }
@media (min-width: 901px) and (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* two-up blocks */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); }
.split.one { grid-template-columns: minmax(0, 1fr); }
.split-item { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(28px, 3.4vw, 56px); border-radius: var(--r); background: var(--page); }
.split-item h2 { margin: 0; }
.split-item p { margin: 0; max-width: 30em; }
.split-item .btn { margin-top: 10px; }
.split.one .split-item { background: transparent; padding-left: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* method: three orbs */
.trio { list-style: none; margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.trio li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: clamp(22px, 2.4vw, 36px); border-radius: var(--r); background: var(--page); }
.trio .orb { width: clamp(70px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%; background: var(--c); opacity: 0.9; margin-bottom: 14px; }
.trio li:nth-child(2) .orb { opacity: 0.65; }
.trio li:nth-child(3) .orb { opacity: 0.42; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }

/* experience: a journey on a line */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); position: relative; }
.journey li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(46px, 4vw, 64px) clamp(8px, 1vw, 16px) 0 0; }
.journey li::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; border-top: 1.5px solid rgba(0, 0, 0, 0.22); }
.journey .node { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: 0 0 0 5px #fff; }
.journey li:last-child::before { right: 100%; }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; gap: 28px; } .journey li { padding: 0 0 0 44px; } .journey li::before { left: 10px; right: auto; top: 22px; bottom: -28px; border-top: 0; border-left: 1.5px solid rgba(0, 0, 0, 0.22); } .journey li:last-child::before { display: none; } .journey .node { left: 0; } }

/* founder and closing (home, faq) */
.founder { padding: clamp(64px, 9vw, 140px) 0; }
.founder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 120px); align-items: start; }
.founder p { font-size: clamp(17px, 1.5vw, 24px); line-height: 1.45; max-width: 28em; }
@media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; } }
.closing { margin: var(--gut) var(--gut) 0; }
.closing-card { padding: clamp(72px, 10vw, 150px) var(--mx); border-radius: var(--r); background: var(--violet); text-align: center; }
.closing-card h2 { margin: 0 auto; max-width: 12em; font-size: clamp(34px, 4.6vw, 78px); }

/* editorial (home): healthspan */
.ed-title { font-size: 3.4cqw; width: 28%; }
.ed .ed-a { top: 24%; left: 72.5%; width: 25%; font-size: clamp(14px, 1.3cqw, 19px); }
.ed .ed-d { top: 62%; }
@media (max-width: 900px) { .ed-title { font-size: clamp(34px, 10vw, 56px); } .ed .ed-a { font-size: 17px; } }

/* enquiry forms */
.enquire { margin: var(--gut) var(--gut) 0; scroll-margin-top: 90px; }
.enq-card { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 110px); padding: clamp(32px, 6vw, 110px) var(--mx); border-radius: var(--r); background: var(--c); }
.enq-copy h2 { margin: 0; font-size: clamp(32px, 3.8vw, 62px); max-width: 9em; }
.enq-copy p { margin: clamp(14px, 1.6vw, 22px) 0 0; max-width: 24em; }
.enq { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 7px; }
.field[hidden] { display: none; }
.field label { font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 1.2em; border: 1.3px solid transparent; border-radius: 18px; background: #fff; color: #000; font: 400 16px/1.3 "Gutica", system-ui, sans-serif; -webkit-appearance: none; appearance: none; }
.field textarea { padding: 14px 1.2em; min-height: 110px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6em; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #b3261e; }
.err { margin: 0 !important; min-height: 0; font-size: 14px !important; line-height: 1.3; color: #8d1a13; font-weight: 500; }
.enq button[type="submit"] { justify-self: start; min-height: 52px; padding: 0 2em; border: 0; border-radius: 999px; background: #000; color: #fff; font: 500 16px/1 "Gutica", system-ui, sans-serif; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.enq button[type="submit"]:hover { background: #fff; color: #000; }
.enq button[disabled] { opacity: 0.6; cursor: default; }
.form-status { margin: 0 !important; min-height: 1.3em; font-size: 15px !important; font-weight: 500; }
.form-status[data-state="error"] { color: #8d1a13; }
.form-done { margin: 0 !important; padding: 20px 22px; border-radius: 18px; background: #fff; font-weight: 500; }
.enq.sent > :not(.form-done) { display: none; }
@media (max-width: 900px) { .enq-card { grid-template-columns: 1fr; } }

/* faq page */
.faq-hero { padding-bottom: clamp(48px, 6vw, 96px); background: linear-gradient(165deg, color-mix(in srgb, var(--violet) 30%, #fff), #fff 80%); }
.faq-hero .wrap { max-width: 1000px; margin: 0 auto; }
.faq-group { scroll-margin-top: 90px; }
.faq-group .faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 120px); align-items: start; }
.faq-group h2 { margin: 0; }
.faq-list details { border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.faq-list details:first-child { border-top: 1px solid rgba(0, 0, 0, 0.12); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: clamp(17px, 1.4vw, 22px); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(45deg) translateY(-3px); transition: transform 200ms ease; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list details p { margin: 0 0 24px; }
@media (max-width: 900px) { .faq-group .faq-grid { grid-template-columns: 1fr; } }
.faq-hero + .faq-group { margin-top: var(--gut); }

/* footer */
.foot { margin: var(--gut) 0 0; padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.foot-brand img { width: clamp(150px, 14vw, 210px); height: auto; }
.foot-brand p, .foot-col p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 22em; }
.foot-line { margin-top: 20px !important; font-weight: 500; font-size: 18px !important; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h3 { margin: 0 0 6px; font-weight: 500; font-size: 14px; color: rgba(0, 0, 0, 0.5); }
.foot-col a { font-size: 15px; width: max-content; max-width: 100%; border-bottom: 1px solid transparent; transition: border-color 160ms ease; }
.foot-col a:hover { border-bottom-color: var(--violet); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
body.vpage main, body.home main { min-height: 0; }
@media (max-width: 820px) { .foot { padding-bottom: 96px; } }
.vsec h2.center, .vsec .center-p, .faq-link { max-width: none; }
.vsec h2.center { margin-left: auto; margin-right: auto; text-align: center; }
.center-p { max-width: 38em !important; }
.vsec.alt { margin: 0 var(--gut); }
.faq-link a, .faq-link .btn { margin: 0; }
.verticals .center-p { margin-bottom: clamp(28px, 4vw, 56px); }
.closing-card h2 { max-width: 14em; text-wrap: balance; }

/* Hero headline: words staggered on a dot grid (cell = 1.25em), each word starts one cell-step right of a dot */
.copy h1.stagger { --cell: 1.25em; font-size: clamp(28px, min(3.9vw, 7.4svh), 66px); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: var(--cell); width: calc(var(--cell) * 9); margin: 0 0 clamp(14px, 2.2svh, 26px);
  background-image: radial-gradient(circle, rgba(117,117,249,.75) 0 1.6px, transparent 2.2px); background-size: var(--cell) var(--cell); background-position: 0 50%; background-repeat: repeat; }
.copy h1.stagger .w { display: block; height: var(--cell); white-space: nowrap; margin-left: calc(var(--col) * var(--cell) + 0.45em); }
.copy h1.stagger .w1 { --col: 0; }
.copy h1.stagger .w2 { --col: 6; }
.copy h1.stagger .w3 { --col: 2; }
.copy h1.stagger .w4 { --col: 5; }
.copy h1.stagger .w5 { --col: 0; }
@media (max-aspect-ratio: 1/1), (max-width: 700px) {
  .copy h1.stagger { font-size: clamp(24px, calc((100vw - 56px) / 11.5), 56px); }
}

/* Landing page: the logo sits above the hero paragraph instead of in the header bar */
.brand-spacer { display: block; flex: none; width: clamp(124px, 11vw, 148px); }
.hero-logo { display: block; width: clamp(250px, 31vw, 440px); height: auto; margin: 0 0 clamp(18px, 2.6svh, 30px); }
@media (max-width: 820px) { .brand-spacer { display: none; } }

/* Header: compact liquid-glass pill once the page scrolls (same trigger and timing as everlab.com.au: 5% of the viewport, 0.4s) */
.bar { transition: width .4s ease, height .4s ease, top .4s ease, padding .4s ease, background-color .4s ease, box-shadow .4s ease, border-color .4s ease, -webkit-backdrop-filter .4s ease, backdrop-filter .4s ease, transform .35s ease; will-change: transform; }
.bar .join-btn { transition: height .4s ease, min-height .4s ease, padding .4s ease, background-color .2s, color .2s; }
.bar.scrolled {
  width: min(900px, calc(100% - 28px)); height: 54px; top: 10px;
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(28px) saturate(1.9) brightness(1.06); backdrop-filter: blur(28px) saturate(1.9) brightness(1.06);
  border-color: transparent;
  box-shadow: 0 10px 32px rgba(20, 20, 60, 0.14);
}
.bar.scrolled .join-btn { height: 38px; min-height: 38px; padding: 0 1.2em; }
.vpage .bar.scrolled { background: rgba(255, 255, 255, 0.34); }
.bar.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }
@media (max-width: 820px) { .bar.scrolled { height: 50px; } }
@media (prefers-reduced-motion: reduce) { .bar, .bar .join-btn { transition: none; } }

/* Method: feasibility, desirability and viability as three overlapping circles, like the fire triangle: the product only works where all three meet */
.tri { list-style: none; position: relative; width: min(640px, 100%); aspect-ratio: 1 / 0.886; margin: clamp(28px, 4vw, 56px) auto 0; padding: 0; }
.tri li { position: absolute; width: 60%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.tri li::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); opacity: 0.4; z-index: 0; }
.tri li > * { position: relative; z-index: 1; margin: 0; }
.tri .n1 { left: 20%; top: 0; padding-bottom: 30%; }
.tri .n2 { left: 3.5%; top: 32.3%; padding: 24% 24% 0 0; }
.tri .n3 { left: 36.5%; top: 32.3%; padding: 24% 0 0 24%; }
.tri .core { left: 50%; top: 56%; width: auto; aspect-ratio: auto; transform: translate(-50%, -50%); font-size: clamp(13px, 1.2vw, 16px); font-weight: 500; z-index: 2; }
.tri .core::before { display: none; }
.tri h3 { font-weight: 500; font-size: clamp(17px, 1.9vw, 27px); line-height: 1.1; letter-spacing: -0.01em; }
.tri p { font-size: clamp(12px, 1.05vw, 16px); line-height: 1.35; max-width: 11em; }
.tri-notes { display: none; list-style: none; margin: 20px 0 0; padding: 0; font-size: 15px; line-height: 1.4; }
.tri-notes b { font-weight: 500; margin-right: 0.35em; }
@media (max-width: 700px) { .tri p { display: none; } .tri h3 { font-size: 15px; } .tri-notes { display: grid; gap: 8px; } }

/* three ways in: full-height photographs with a white card laid over the bottom of each */
.v-list { gap: clamp(8px, 1vw, 14px); }
.verticals .v-row { position: relative; display: block; min-height: 0; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; background: #e9e9f5; border-radius: var(--r); isolation: isolate; }
.verticals .v-row:hover { transform: none; }
.verticals .v-photo { position: absolute; inset: 0; z-index: -1; width: 100%; max-width: none; height: 100%; object-fit: cover; }
.verticals .v-health-row .v-photo { object-position: 62% 50%; }
.verticals .v-method-row .v-photo { object-position: 70% 50%; }
.verticals .v-experience-row .v-photo { object-position: 50% 60%; }
.verticals .v-card { position: absolute; left: clamp(10px, 1.1vw, 16px); right: clamp(10px, 1.1vw, 16px); bottom: clamp(10px, 1.1vw, 16px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: clamp(16px, 1.6vw, 24px); background: #fff; border-radius: calc(var(--r) * 0.6); box-shadow: 0 8px 28px rgba(20, 20, 60, .12); }
.verticals .v-card > a:first-child img { display: block; width: auto; max-width: 100%; height: clamp(18px, 1.5vw, 24px); }
.verticals .v-card h3 { margin: 6px 0 0; font-size: clamp(17px, 1.4vw, 22px); font-weight: 500; line-height: 1.2; color: var(--c); }
.verticals .v-card p { margin: 0; font-size: clamp(13px, 1vw, 15px); line-height: 1.45; }
.verticals .v-card .text-link { margin-top: 8px; height: 38px; font-size: 13px; }
@media (max-width: 900px) { .verticals .v-row { aspect-ratio: 4 / 5; max-width: 520px; width: 100%; margin-inline: auto; } }
/* lift each photograph so its subjects sit above the card */
.verticals .v-method-row .v-photo { inset: auto 0 auto 0; top: -38%; height: 138%; object-position: 62% 50%; }
.verticals .v-experience-row .v-photo { inset: auto 0 auto 0; top: -40%; height: 142%; object-position: 50% 50%; }
.verticals .v-health-row .v-photo { inset: auto 0 auto 0; top: -12%; height: 112%; object-position: 62% 50%; }
.verticals .v-row { aspect-ratio: 3 / 4; }
.verticals .v-method-row .v-photo { top: -22%; height: 124%; object-position: 60% 50%; }
.verticals .v-experience-row .v-photo { top: -26%; height: 128%; object-position: 50% 50%; }
.verticals .v-health-row .v-photo { top: -8%; height: 108%; }
@media (max-width: 900px) { .verticals .v-row { aspect-ratio: 3 / 4; } }
.verticals .v-row { aspect-ratio: 5 / 7; }
.verticals .v-photo { top: 0 !important; height: 100% !important; }
.verticals .v-method-row .v-photo { object-position: 68% 50%; }
.verticals .v-experience-row .v-photo { object-position: 50% 50%; }
.verticals .v-health-row .v-photo { object-position: 60% 50%; }
.verticals .v-card { gap: 6px; padding: clamp(14px, 1.4vw, 20px); }
.verticals .v-card .text-link { margin-top: 6px; }
@media (max-width: 900px) { .verticals .v-row { aspect-ratio: 5 / 7; } }
.verticals .v-row, .verticals .v-row { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .verticals .v-row { aspect-ratio: 4 / 5; } }
.verticals .v-card { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 6px; align-items: end; }
.verticals .v-card > a:first-child, .verticals .v-card h3, .verticals .v-card p { grid-column: 1 / -1; }
.verticals .v-card .text-link { position: static; grid-column: 1 / -1; justify-self: start; }
.verticals .v-card .text-link { display: none; }
.verticals .v-card > a:first-child { position: static; }
.verticals .v-row { cursor: pointer; }
.verticals .v-row:hover .v-photo { transform: scale(1.03); }
.verticals .v-photo { transition: transform 600ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .verticals .v-row:hover .v-photo { transform: none; } }
.verticals .v-method-row .v-photo { top: -20% !important; height: 120% !important; object-position: 58% 50%; }
.verticals .v-experience-row .v-photo { top: -30% !important; height: 130% !important; object-position: 50% 50%; }
.verticals .v-health-row .v-photo { top: -4% !important; height: 104% !important; }

.vpanel.blueprint { background: #fff6f5; box-shadow: inset 0 0 0 1px rgba(27, 27, 27, .85); }
.vpanel.blueprint img { object-fit: cover; }

/* the three tests as overlapping triangles, labelled at their corners; the centre is where all three meet */
.tri { width: min(620px, 100%); aspect-ratio: 1 / 0.98; margin: clamp(80px, 9vw, 110px) auto clamp(110px, 12vw, 150px); }
.tri li { width: 62%; aspect-ratio: 1 / 0.866; display: block; padding: 0 !important; }
.tri li::before { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: 0.42; }
.tri .n1 { left: 19%; top: 10.2%; }
.tri .n2 { left: 3%; top: 30.6%; }
.tri .n3 { left: 35%; top: 30.6%; }
.tri li > h3, .tri li > p { position: absolute; margin: 0; }
.tri .n1 > h3 { bottom: calc(100% + 34px); left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.tri .n1 > p { bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); text-align: center; max-width: none; white-space: nowrap; }
.tri .n2 > h3 { top: calc(100% + 10px); left: 0; text-align: left; }
.tri .n2 > p { top: calc(100% + 42px); left: 0; text-align: left; }
.tri .n3 > h3 { top: calc(100% + 10px); right: 0; text-align: right; }
.tri .n3 > p { top: calc(100% + 42px); right: 0; text-align: right; }
.tri .core { left: 50%; top: 52%; }
@media (max-width: 700px) { .tri { margin: 64px auto 96px; } .tri .n1 > h3 { bottom: calc(100% + 8px); } .tri .n2 > h3, .tri .n3 > h3 { top: calc(100% + 8px); } }
.tri .n1 { top: 8%; }
.tri .n2 { left: 8%; top: 23%; }
.tri .n3 { left: 30%; top: 23%; }
.tri .core { top: 49%; }
.tri .n2 > p, .tri .n3 > p { white-space: nowrap; max-width: none; }
.tri .core { top: 54%; }

/* flat brand colour, no gradients: washed-out mixes of the brand colour with white are not used for backgrounds */
.vhero { background: var(--c); }
.faq-hero { background: var(--violet); }
.card2 { background: #fff; box-shadow: inset 0 0 0 2px var(--c); }
.verticals .v-row { background: var(--c); }

/* the logo keeps its own colours on a flat brand-colour hero */
.vhero .vlogo { box-sizing: content-box; background: none; padding: 0; border-radius: 0; margin-left: 0; }
/* triangles drawn as brand-colour outlines, with the shared centre filled solid: no tints, no blending */
.tri li::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='50,1 99,99 1,99' fill='none' stroke='%23FF8A8A' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; clip-path: none; opacity: 1; }
.tri .core { left: 38.5%; top: 42.4%; width: 23%; height: 20.3%; transform: none; display: flex; align-items: flex-start; justify-content: center; padding-top: 2.5%; text-align: center; white-space: nowrap; }
.tri .core::before { display: block; content: ""; position: absolute; inset: 0; background: var(--c); clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: -1; }
.tri .core { display: block !important; text-align: center !important; padding-top: 3% !important; }

/* the canvas that carries the unpacked logo mark from the hero into the lattice below */
.bridge-cv { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100svh; z-index: 2; pointer-events: none; display: none; }

/* framing as in the reference: one continuous strip of three photographs, equal white cards over the lower part */
.v-list { gap: 0; }
.verticals .v-row { border-radius: 0; aspect-ratio: 4 / 5; }
.verticals .v-row:first-child { border-radius: var(--r) 0 0 var(--r); }
.verticals .v-row:last-child { border-radius: 0 var(--r) var(--r) 0; }
.verticals .v-photo, .verticals .v-method-row .v-photo, .verticals .v-experience-row .v-photo, .verticals .v-health-row .v-photo { top: 0 !important; height: 100% !important; object-position: 50% 50% !important; }
.verticals .v-card { height: 41%; justify-content: flex-start; align-content: start; }
@media (max-width: 900px) { .v-list { gap: 12px; } .verticals .v-row, .verticals .v-row:first-child, .verticals .v-row:last-child { border-radius: var(--r); } }
.verticals .v-card { height: 36%; }

/* the results wheel (Health): a black section with the markers laid round a large wheel that turns with the scroll */
.wheel-sec { margin: var(--gut); border-radius: var(--r); background: #000; color: #fff; }
.wheel-track { height: 250vh; height: 250svh; position: relative; }
.wheel-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; border-radius: var(--r); }
.wheel-svg { position: absolute; left: 0; top: 0; width: 1500px; height: 1500px; max-width: none; will-change: transform; }
.wheel-svg text { font-family: inherit; font-size: 18px; font-weight: 400; fill: #fff; }
.wheel-svg .wl { transition: opacity 120ms linear; }
.wheel-svg .wl text { transition: fill 200ms ease, font-size 200ms ease; }
.wheel-svg .wl .sq { fill: var(--cyan); opacity: 0; transition: opacity 200ms ease; }
.wheel-svg .wl.on text { fill: var(--cyan); font-size: 24px; }
.wheel-svg .wl.on .sq { opacity: 1; }
.wheel-copy { position: absolute; left: 56%; right: var(--mx, 5vw); top: 50%; transform: translateY(-50%); }
.wheel-copy h2 { margin: 0 0 clamp(18px, 2vw, 28px); font-size: clamp(32px, 4vw, 64px); line-height: 1.04; font-weight: 400; letter-spacing: -0.02em; color: #fff; }
.wheel-copy h2 .soft { color: #8d8d8d; }
.wheel-copy p { margin: 0 0 clamp(22px, 2.4vw, 34px); max-width: 30em; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.45; color: #d6d6d6; }
@media (max-width: 800px) { .wheel-copy { left: var(--mx, 6vw); top: auto; bottom: 7svh; transform: none; } .wheel-copy h2 { font-size: clamp(28px, 8vw, 40px); } .wheel-svg text { font-size: 22px; } .wheel-svg .wl.on text { font-size: 28px; } }

/* the three tests as one triangle with a band along each side, as in the reference diagram */
.tri-fig { margin: clamp(24px, 3vw, 48px) auto 0; width: min(900px, 100%); }
.tri-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.tri-core { fill: var(--c); }
.tri-band { fill: #000; stroke: #000; stroke-width: 16px; stroke-linejoin: round; }
.tri-fig text { font-family: inherit; fill: #000; }
.tri-name { font-size: 34px; font-weight: 600; letter-spacing: -0.01em; }
.tri-sub { font-size: 20px; font-weight: 400; }
.tri-mid { font-size: 32px; font-weight: 600; }
.tri-mid-sub { font-size: 18px; }
@media (max-width: 700px) { .tri-sub, .tri-mid-sub { display: none; } .tri-name { font-size: 40px; } .tri-mid { font-size: 38px; } }

/* the whole panel, photograph and card, is one link */
.verticals .v-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.verticals .v-link:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
.verticals .v-card { z-index: 2; pointer-events: none; }

/* Film grain over the mark section: fixed monochrome noise, like the texture of a printed photograph */
.genesis-stage::after, .vhero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n' color-interpolation-filters='sRGB' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='1.5 0 0 0 -0.25  1.5 0 0 0 -0.25  1.5 0 0 0 -0.25  0 0 0 0 1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px; mix-blend-mode: overlay; opacity: .3;
}
.genesis-stage .headline, .genesis-stage .caps { z-index: 4; }
.vhero { position: relative; }
.vhero::after { z-index: 5; }

/* Log in: quiet pill beside the main call to action */
.login-btn { margin-left: 0; flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 1.2em; border-radius: 999px; color: #000; font-size: 14px; font-weight: 500; transition: background-color .2s; }
.login-btn:hover { background: rgba(0,0,0,.07); }
.login-btn + .join-btn { margin-left: 4px; }
.bar.scrolled .login-btn { height: 38px; }
.nav-login { display: none; }
@media (max-width: 820px) { .login-btn { display: none; } .nav-login { display: block; } .nav-login a { text-align: center; } }

/* Demo log in / sign up pages (to be wired to Supabase) */
.auth .auth-sec { min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gut) 72px; }
.auth-card { width: min(100%, 460px); background: #fff; border-radius: var(--r); padding: clamp(28px, 4vw, 48px); }
.auth-card h1 { margin: 0 0 8px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; }
.auth-lead { margin: 0 0 28px; color: #555; }
.auth-form { display: grid; gap: 16px; }
.af { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.af input { height: 50px; padding: 0 16px; border: 1px solid #d9d9d9; border-radius: 14px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: #000; }
.af input:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.auth-forgot { justify-self: start; font-size: 14px; }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-msg { margin: 0; min-height: 1.4em; font-size: 14px; color: #555; }
.auth-msg.err { color: #b3261e; }
.auth-alt { margin: 24px 0 0; text-align: center; font-size: 15px; color: #555; }

/* Action plan example (Health): a floating card of next steps over a soft photo */
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.ap-copy h2 { margin: 0 0 clamp(16px, 2vw, 26px); font-size: clamp(30px, 3.6vw, 56px); line-height: 1.05; font-weight: 400; letter-spacing: -0.02em; }
.ap-copy h2 .soft { color: #8d8d8d; }
.ap-copy p { margin: 0; max-width: 28em; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; color: #444; }
.ap-panel { position: relative; margin: 0; aspect-ratio: 1 / 1; max-height: 640px; width: 100%; border-radius: var(--r); overflow: hidden; display: grid; align-content: center; padding: 0 clamp(12px, 4%, 36px); }
.ap-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-card { position: relative; margin: 0; padding: clamp(14px, 2.4vw, 28px) clamp(14px, 2.6vw, 30px); list-style: none; display: grid; gap: clamp(10px, 1.6vw, 20px); background: #fff; border-radius: clamp(22px, 3vw, 36px); }
.ap-card li { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.ap-card b { display: block; font-size: clamp(15px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.01em; }
.ap-card i { display: block; margin-top: 2px; font-style: normal; font-size: clamp(13px, 1.3vw, 19px); color: #8a8a8a; }
.ap-ic { flex: none; width: clamp(48px, 6vw, 80px); aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; overflow: hidden; }
.ap-ic svg { width: 46%; height: 46%; }
.ap-ic.cy { background: var(--cyan); } .ap-ic.bk { background: #000; }
.ap-ic.ph img { width: 100%; height: 100%; object-fit: cover; }
.ap-panel figcaption { position: absolute; left: 0; right: 0; bottom: clamp(16px, 4%, 32px); text-align: center; color: #fff; font-size: clamp(15px, 1.5vw, 22px); font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
@media (max-width: 820px) { .ap-grid { grid-template-columns: 1fr; } .ap-panel { aspect-ratio: 4 / 5; } }

/* healthspan photo: the runner pushed to the frame's edge, running out of the picture */
.ed-img { position: relative; }
.ed-img img { position: absolute; max-width: none; width: 190%; height: auto; left: -20%; top: -6%; object-fit: initial; }
@media (max-width: 900px) { .ed-img img { width: 170%; left: -14%; top: -4%; } }

/* partner map: halftone dots for land, one pin per partner country */
.pmap-wrap { margin-top: clamp(32px, 4vw, 64px); }
.pmap { margin: 0; }
.pmap svg { display: block; width: 100%; height: auto; }
.pmap .land circle { fill: #c3c8c4; }
.pmap .pin .halo { fill: var(--green); opacity: .28; }
.pmap .pin .dot { fill: var(--green); stroke: #fff; stroke-width: 2; }
.pmap .pin text { font: 500 13px "Gutica", system-ui, sans-serif; fill: #000; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.pmap .pin:hover .halo, .pmap .pin:focus-visible .halo { opacity: .5; }
.pmap .pin:focus-visible { outline: none; } .pmap .pin:focus-visible .dot { stroke: #000; }
@media (max-width: 700px) { .pmap .pin text { font-size: 25px; stroke-width: 6px; } .pmap .pin .dot { r: 9px; } }
