/* Highgate Business School: corporate-serious, deep teal, split screen */
@view-transition { navigation: auto; }
:root {
  --ground: #F3F5F4; --surface: #FFFFFF; --ink: #0E1C1F; --teal: #0B4A50; --teal-d: #07363A; --sun: #E1B04A; --muted: #50605F; --wine: #8E2F3B;
  --line: #D5DEDC; --line-d: rgba(255,255,255,.16); --mist: #E3ECEA; --pale: #B8CFCB;
  --serif: 'Merriweather', Georgia, serif; --sans: 'Onest', system-ui, sans-serif;
  --top: 120px; --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 900px) { :root { --top: 112px; } }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.65 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
h1 em, h2 em { font-weight: 300; font-style: italic; }
p { margin: 0 0 1em; }
.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .9rem; } .muted { color: var(--muted); }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.ic .acc { stroke: var(--sun); stroke-width: 2.2; }
.ic.big { width: 44px; height: 44px; }
.ic.lg { width: 36px; height: 36px; color: var(--teal); margin-bottom: 14px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 60px; }
.kicker { display: flex; align-items: center; gap: 10px; font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 16px; }
.kicker .ic { width: 20px; height: 20px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 60ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 2px; border: 2px solid transparent; font: 600 .95rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); background: none; color: inherit; }
.btn .ic { width: 19px; height: 19px; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #EDC46B; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-d); }
.btn-line { border-color: var(--teal); color: var(--teal); }
.btn-line:hover { background: var(--teal); color: #fff; }
.btn-ghost-l { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-l:hover { background: #fff; color: var(--teal); }
.btn.sm { min-height: 44px; padding: 8px 14px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }

/* header */
.site-head { position: sticky; top: 0; z-index: 100; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.util { background: var(--teal-d); color: #D6E6E3; font-size: .8rem; overflow: hidden; max-height: 40px; transition: max-height .35s var(--ease); }
.util-in { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 36px; }
.util-in > span { display: inline-flex; gap: 8px; align-items: center; }
.util .ic { width: 16px; height: 16px; }
.util-r { gap: 20px !important; }
.util a { color: #fff; text-decoration: none; }
.site-head.scrolled .util { max-height: 0; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .mark { width: 42px; height: 42px; }
.wm { display: flex; flex-direction: column; line-height: 1.05; }
.wm b { font: 700 1.3rem var(--serif); letter-spacing: .01em; }
.wm small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; padding: 12px 14px; position: relative; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.head-cta { display: flex; gap: 10px; align-items: center; }
.head-apply { min-height: 44px; padding: 8px 20px; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--teal); background: none; color: var(--teal); font: 600 .92rem var(--sans); cursor: pointer; border-radius: 2px; }
.progress { height: 3px; background: var(--sun); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 1100px) { .nav { display: none; } }
@media (max-width: 760px) { .u-x { display: none; } .util-r { display: none !important; } .util-in { font-size: .74rem; } .head-in { min-height: 64px; } .wm small { display: none; } .menu-btn span { display: none; } .menu-btn { width: 46px; justify-content: center; padding: 0; } }

/* menu sheet: split screen */
.sheet { position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto; background: var(--teal); }
.sheet-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); min-height: 100%; padding-top: 48px; }
.sheet-l { background: var(--teal); color: #fff; padding: 30px clamp(20px, 5vw, 70px) 40px; }
.sheet-r { background: var(--surface); padding: 30px clamp(20px, 4vw, 56px) 40px; display: flex; flex-direction: column; gap: 18px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.sheet-k { font: 600 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.sheet-r .sheet-k { color: var(--teal); }
.sheet-x { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 2px solid rgba(255,255,255,.5); background: none; color: #fff; font: 600 .9rem var(--sans); cursor: pointer; }
.sheet-big, .sheet-small { list-style: none; margin: 0; padding: 0; }
.sheet-big a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-d); text-decoration: none; font: 700 clamp(1.2rem, 2.4vw, 1.75rem)/1.25 var(--serif); }
.sheet-big a:hover, .sheet-big a[aria-current] { color: var(--sun); }
.sheet-big .ic { color: var(--sun); }
.sheet-small a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.sheet-small a:hover, .sheet-small a[aria-current] { color: var(--teal); }
.sheet-card { background: var(--mist); padding: 20px; }
.sheet-card p { font: 700 1.1rem var(--serif); }
.sheet-addr { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .sheet-split { grid-template-columns: minmax(0, 1fr); } }

/* home hero: two halves */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--top) - 36px); }
.hero-l { background: var(--teal); color: #fff; padding: clamp(40px, 6vw, 90px) clamp(20px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-l .kicker { color: var(--sun); }
.hero-l h1 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); }
.hero-l h1 em { color: var(--sun); }
.hero-l .lead { color: var(--pale); }
.hero-l .gridlines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; }
.hero-l > * { position: relative; }
.hero-r { position: relative; background: var(--mist); overflow: hidden; }
.hero-r .ph { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.hero-r .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,54,58,0) 50%, rgba(7,54,58,.75)); }
.hero-card { position: absolute; left: clamp(16px, 3vw, 40px); right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); background: var(--surface); padding: 22px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; box-shadow: 0 20px 50px rgba(7,54,58,.25); }
.hero-card div { border-left: 3px solid var(--sun); padding-left: 12px; }
.hero-card b { display: block; font: 700 1.6rem/1.1 var(--serif); color: var(--teal); }
.hero-card span { font-size: .82rem; color: var(--muted); }
.hero-sky { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; opacity: .25; pointer-events: none; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; } .hero-r { min-height: 420px; } }
@media (max-width: 520px) { .hero-card { grid-template-columns: minmax(0, 1fr); gap: 10px; } .hero-card b { font-size: 1.3rem; } }

/* chapters: fixed visual half, scrolling content half */
.chapter, .ssec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative; }
.side-r > .ch-vis, .side-r > .ssec-vis { order: 2; }
.ch-vis, .ssec-vis { background: var(--teal-d); position: relative; }
.ch-vis.light, .ssec-vis.light { background: var(--mist); }
.ch-stick, .ssec-stick { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow: hidden; }
.ssec-stick { display: grid; place-items: center; }
.ssec-stick > .ph { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); }
.layer.on { opacity: 1; transform: scale(1); }
.layer > .ph { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.layer > .ph::after, .ssec-stick > .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,54,58,.55), rgba(7,54,58,0) 55%); }
.layer .art, .ssec-stick .art { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; }
.ch-meta { position: absolute; left: 28px; right: 28px; top: 26px; display: flex; align-items: center; gap: 16px; color: #fff; z-index: 2; }
.ch-n { font: 300 2.6rem/1 var(--serif); color: var(--sun); }
.ch-bar { flex: 1; height: 2px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.ch-bar i { position: absolute; inset: 0; background: var(--sun); transform-origin: 0 50%; transform: scaleX(0); }
.ch-t { font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.light .ch-meta { color: var(--teal); } .light .ch-bar { background: rgba(11,74,80,.2); } .light .ch-n { color: var(--wine); }
.ch-body, .ssec-body { padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 80px); }
.beat { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.beat:last-child { border-bottom: 0; }
.beat .num { font: 300 1rem var(--serif); color: var(--wine); margin-bottom: 8px; }
.ssec-body > * + * { margin-top: 0; }
@media (max-width: 900px) {
  .chapter, .ssec { grid-template-columns: minmax(0, 1fr); }
  .side-r > .ch-vis, .side-r > .ssec-vis { order: 0; }
  .ch-vis { position: sticky; top: var(--top); z-index: 3; height: 30vh; min-height: 210px; }
  .ch-stick { position: absolute; inset: 0; height: auto; }
  .ssec-stick { position: relative; top: 0; height: auto; aspect-ratio: 16 / 10; }
  .beat { min-height: 0; padding: 26px 0; }
  .ch-meta { left: 16px; right: 16px; top: auto; bottom: 14px; } .ch-n { font-size: 1.8rem; }
}

/* drawn art */
.sky { width: 100%; height: 100%; }
.sky .bl rect { fill: none; stroke: var(--pale); stroke-width: 1.5; }
.sky .bl path { stroke: rgba(184,207,203,.4); stroke-width: 1; }
.sky .lag { stroke: var(--sun); stroke-width: 2; }
.sky .wave { fill: none; stroke: rgba(184,207,203,.5); stroke-width: 1.4; }
.sky .sun { fill: var(--sun); }
.light .sky .bl rect { stroke: var(--teal); } .light .sky .bl path { stroke: rgba(11,74,80,.25); } .light .sky .wave { stroke: rgba(11,74,80,.35); }
.gart { width: min(100%, 520px); height: auto; }
.gart .gl path { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.gart .gc { fill: none; stroke: var(--sun); stroke-width: 2; }
.gart .gb { stroke: var(--sun); stroke-width: 4; }
.gart .gn { font: 300 170px var(--serif); fill: #fff; }
.gart .gt { font: 600 18px var(--sans); fill: var(--pale); letter-spacing: 3px; text-transform: uppercase; }
.light .gart .gl path { stroke: rgba(11,74,80,.12); } .light .gart .gn { fill: var(--teal); } .light .gart .gt { fill: var(--muted); }
.motion-ok .gart .gc { animation: orbit 14s linear infinite; transform-origin: 260px 150px; stroke-dasharray: 12 10; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* photos */
.ph { margin: 0; position: relative; aspect-ratio: var(--ar, 4/3); background: linear-gradient(135deg, #C7D8D5, #A9C3BF); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.motion-ok .ph[data-mask] { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease); }
.motion-ok .ph[data-mask].unmasked { clip-path: inset(0 0 0 0); }

/* page hero (split) */
.phero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 560px; }
.phero.side-r .phero-panel { order: 2; }
.phero-panel { background: var(--teal); color: #fff; display: flex; align-items: center; position: relative; overflow: hidden; }
.phero-panel::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; }
.phero-in { position: relative; padding: clamp(36px, 5vw, 80px) clamp(20px, 5vw, 80px); max-width: 760px; }
.phero .kicker { color: var(--sun); }
.phero .lead { color: var(--pale); }
.phero h1 em { color: var(--sun); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .86rem; color: var(--pale); margin-bottom: 26px; }
.crumbs a { color: #fff; }
.phero-vis { position: relative; background: var(--teal-d); min-height: 320px; overflow: hidden; }
.phero-vis > .ph { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.phero-vis > .art { position: absolute; inset: 0; display: grid; place-items: center; padding: 6%; }
.phero-vis.light { background: var(--mist); }
.vt-title { view-transition-name: page-title; }
.hfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-d); }
.hfacts dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pale); }
.hfacts dd { margin: 4px 0 0; font: 700 1.05rem var(--serif); }
@media (max-width: 900px) { .phero { grid-template-columns: minmax(0, 1fr); min-height: 0; } .phero.side-r .phero-panel { order: 0; } .phero-vis { min-height: 260px; } }

/* sections */
.sec { padding: clamp(60px, 7vw, 110px) 0; }
.sec.tight { padding-top: 30px; }
.sec.white { background: var(--surface); }
.sec.mist { background: var(--mist); }
.sec.teal { background: var(--teal); color: #fff; }
.sec.teal .kicker { color: var(--sun); } .sec.teal .muted, .sec.teal .sec-head p { color: var(--pale); }
.sec-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 50px); }
.sec-head p { color: var(--muted); font-size: 1.08rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 2.4vw, 30px); position: relative; }
.card.top { border-top: 4px solid var(--teal); }
.card.sun { border-top: 4px solid var(--sun); }
.card.teal { background: var(--teal); color: #fff; border: 0; } .card.teal p { color: var(--pale); } .card.teal .ic.lg { color: var(--sun); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.ticks .ic { width: 20px; height: 20px; color: var(--teal); margin-top: 3px; }
.sec.teal .ticks .ic, .card.teal .ticks .ic { color: var(--sun); }
.numlist { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.numlist li::before { content: counter(n, decimal-leading-zero); font: 300 2rem/1 var(--serif); color: var(--wine); }
.numlist h3 { margin-bottom: 6px; }
.numlist p { margin: 0; color: var(--muted); }
.sec.teal .numlist li { border-color: var(--line-d); } .sec.teal .numlist li::before { color: var(--sun); } .sec.teal .numlist p { color: var(--pale); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--teal); }
.stats div { padding: 24px 20px 6px 0; }
.stats b { display: block; font: 300 clamp(2.4rem, 4.6vw, 3.6rem)/1 var(--serif); color: var(--teal); }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: .92rem; max-width: 24ch; }
.sec.teal .stats { border-color: var(--sun); } .sec.teal .stats b { color: #fff; } .sec.teal .stats span { color: var(--pale); }
.ch-body .stats, .ssec-body .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { margin: 0; border-left: 4px solid var(--sun); padding: 4px 0 4px 24px; }
.quote p { font: 300 italic clamp(1.3rem, 2.2vw, 1.75rem)/1.45 var(--serif); margin: 0; }
.quote figcaption { margin-top: 14px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.sec.teal .quote figcaption { color: var(--pale); }
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 16px 0; }
.marquee .track { display: flex; gap: 40px; width: max-content; font: 300 italic 1.3rem var(--serif); white-space: nowrap; }
.marquee span::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--sun); margin-right: 40px; vertical-align: middle; }
.motion-ok .marquee .track { animation: mq 50s linear infinite; }
@keyframes mq { to { transform: translateX(-50%); } }

/* programme cards + tray */
.plist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plist { grid-template-columns: minmax(0, 1fr); } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: 24px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .35s, transform .35s var(--ease); }
.pcard:hover { box-shadow: 0 22px 44px rgba(7,54,58,.12); }
.pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tagb { font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--mist); color: var(--teal); padding: 5px 10px; }
.pc-n { font: 300 1.4rem var(--serif); color: var(--wine); }
.pcard h3 a { text-decoration: none; }
.pcard h3 a:hover { color: var(--teal); text-decoration: underline; }
.pcard > p { color: var(--muted); font-size: .95rem; }
.pc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 6px 0 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pc-facts dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pc-facts dd { margin: 2px 0 0; font-weight: 600; font-size: .93rem; }
.pc-act { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cmp-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.cmp-check input { width: 20px; height: 20px; accent-color: var(--teal); }
.tray { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 105; width: min(760px, calc(100% - 24px)); background: var(--ink); color: #fff; padding: 12px 12px 12px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.tray b { font: 700 1rem var(--serif); white-space: nowrap; }
.tray ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; }
.tray li { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.1); padding: 2px 2px 2px 10px; font-size: .84rem; white-space: nowrap; }
.tray li button { width: 36px; height: 36px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.tray li button .ic { width: 16px; height: 16px; }
@media (max-width: 640px) { .tray { flex-wrap: wrap; bottom: 84px; } .tray ul { order: 3; flex-basis: 100%; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-f { min-height: 44px; padding: 8px 16px; border: 2px solid var(--line); background: var(--surface); font: 600 .9rem var(--sans); cursor: pointer; color: var(--ink); }
.chip-f[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.search { position: relative; flex: 1 1 260px; max-width: 400px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 46px; }
.empty { padding: 30px; text-align: center; border: 2px dashed var(--line); }

/* comparer (signature) */
.cmp-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .cmp-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cmp-pick { grid-template-columns: minmax(0, 1fr); } }
.cmp-opt { position: relative; }
.cmp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmp-opt span { display: flex; flex-direction: column; gap: 2px; min-height: 70px; padding: 14px 16px 14px 48px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; position: relative; }
.cmp-opt span::before { content: ''; position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; border: 2px solid var(--teal); }
.cmp-opt input:checked + span { border-color: var(--teal); background: #E8F1EF; }
.cmp-opt input:checked + span::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/16px no-repeat; }
.cmp-opt input:focus-visible + span { outline: 3px solid var(--sun); }
.cmp-opt input:disabled + span { opacity: .45; cursor: not-allowed; }
.cmp-opt b { font-weight: 700; }
.cmp-opt small { color: var(--muted); }
.cmp-bar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; padding: 20px; background: var(--surface); border: 1px solid var(--line); margin: 18px 0; }
.cmp-bar > div { min-width: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--teal); }
.cmp-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
.cmp { border-collapse: collapse; width: 100%; min-width: 720px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .94rem; }
.cmp thead th { background: var(--teal); color: #fff; font: 700 1.05rem/1.3 var(--serif); vertical-align: bottom; }
.cmp thead th small { display: block; font: 600 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: 6px; }
.cmp tbody th { width: 190px; font-weight: 600; color: var(--muted); background: var(--ground); position: sticky; left: 0; z-index: 1; font-size: .86rem; }
.cmp thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--teal-d); font: 600 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--pale); }
.cmp tr.diff td { background: #FFF8E8; }
.cmp tr.same td { color: var(--muted); }
.cmp .best { display: inline-block; margin-top: 4px; font: 700 .7rem var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--sun); color: var(--ink); padding: 2px 8px; }
.fit { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.fit.ok { color: #1E6B4A; } .fit.no { color: var(--wine); }
.fit .ic { width: 18px; height: 18px; }
.cmp-empty { padding: 40px; text-align: center; color: var(--muted); }
.cmp tfoot td { background: var(--ground); }

/* forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 2px; background: var(--surface); font: 400 16px var(--sans); color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(225,176,74,.5); }
[aria-invalid="true"] { border-color: var(--wine); }
.err { display: block; color: var(--wine); font-size: .86rem; margin-top: 4px; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--teal); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.opt { position: relative; margin: 0; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: flex; flex-direction: column; gap: 2px; min-height: 62px; padding: 12px 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.opt span small { font-weight: 400; color: var(--muted); font-size: .84rem; }
.opt input:checked + span { border-color: var(--teal); background: #E8F1EF; }
.opt input:focus-visible + span { outline: 3px solid var(--sun); }
.panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }
.thanks { background: var(--teal); color: #fff; padding: clamp(24px, 4vw, 44px); }
.thanks .ic.big { color: var(--sun); margin-bottom: 12px; }
.thanks p { color: var(--pale); }
.thanks .demo-note { font-size: .84rem; margin: 0; }
.thanks .summary div { border-color: var(--line-d); } .thanks .summary dt { color: var(--pale); }
input[type=range] { padding: 0; min-height: 44px; border: 0; accent-color: var(--teal); background: none; box-shadow: none; }

/* wizard, calendar */
.steps-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; list-style: none; padding: 0; margin: 0 0 24px; }
.steps-nav li { border-top: 4px solid var(--line); padding-top: 8px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.steps-nav li.on { border-color: var(--sun); color: var(--ink); }
.steps-nav li.done { border-color: var(--teal); }
.wz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.summary { margin: 0; display: grid; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); } .summary dd { margin: 0; font-weight: 600; text-align: right; }
.cal { background: var(--surface); border: 1px solid var(--line); padding: 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head b { font: 700 1.1rem var(--serif); }
.cal-head button { width: 44px; height: 44px; border: 2px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.cal-head button:first-child .ic { transform: scaleX(-1); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid .dow { font-size: .72rem; text-align: center; color: var(--muted); font-weight: 600; }
.cal-grid .d { min-height: 46px; display: grid; place-items: center; font-size: .88rem; color: #8A9896; background: var(--ground); }
.cal-grid button.d { border: 2px solid var(--teal); background: #E8F1EF; color: var(--ink); font-weight: 700; cursor: pointer; position: relative; }
.cal-grid button.d.full { border-color: var(--line); background: var(--ground); color: #8A9896; cursor: not-allowed; text-decoration: line-through; }
.cal-grid button.d[aria-pressed="true"] { background: var(--teal); color: #fff; }
.cal-grid button.d i { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; background: var(--sun); }
.sess-out { margin-top: 14px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* calculators */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-out { background: var(--teal); color: #fff; padding: clamp(22px, 3vw, 36px); }
.calc-out .kicker { color: var(--sun); }
.calc-out .big { font: 300 clamp(2rem, 4vw, 3rem)/1.1 var(--serif); margin: 6px 0 16px; }
.calc-out .summary div { border-color: var(--line-d); } .calc-out .summary dt { color: var(--pale); }
.split-bar { display: flex; height: 14px; margin: 10px 0 16px; background: rgba(255,255,255,.15); }
.split-bar i { display: block; height: 100%; background: var(--sun); transition: width .4s var(--ease); }

/* tables, faq */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
table.t { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .94rem; }
table.t th, table.t td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t thead th { background: var(--teal); color: #fff; font: 600 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 0; cursor: pointer; font: 700 1.05rem/1.4 var(--serif); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--teal); transition: transform .3s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; max-width: 70ch; }
.sec.teal .faq details { border-color: var(--line-d); } .sec.teal .faq summary .ic { color: var(--sun); } .sec.teal .faq details p { color: var(--pale); }

/* people */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person h3 { margin: 14px 0 2px; }
.person .role { color: var(--wine); font-weight: 600; font-size: .88rem; margin: 0 0 8px; }
.person p { font-size: .94rem; color: var(--muted); }

/* articles */
.acard { display: grid; gap: 12px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.acard .in { padding: 0 22px 22px; }
.acard .meta { font: 600 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
.acard:hover h3 { color: var(--teal); text-decoration: underline; }
.article { max-width: 740px; }
.article p { font-size: 1.08rem; }
.article h2 { font-size: 1.7rem; margin-top: 1.4em; }
.pull { font: 300 italic 1.6rem/1.4 var(--serif); border-left: 4px solid var(--sun); padding-left: 22px; margin: 30px 0; }
.byline { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; font-size: .92rem; }

/* cta */
.cta-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.cta-l { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 90px) clamp(20px, 5vw, 80px); }
.cta-l p { color: #B9C6C4; max-width: 54ch; }
.cta-r { background: var(--teal-d); padding: clamp(40px, 6vw, 90px) clamp(20px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
@media (max-width: 800px) { .cta-split { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.foot { background: var(--teal-d); color: #fff; }
.foot-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.foot-l { background: var(--teal); padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 80px); }
.foot .foot-big { font: 300 clamp(1.8rem, 3.2vw, 2.7rem)/1.25 var(--serif); margin: 0; max-width: 20ch; }
.foot-r { padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 80px); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.foot h2 { font: 600 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul a { display: inline-block; padding: 6px 0; color: #DCE8E6; text-decoration: none; font-size: .94rem; }
.foot ul a:hover { color: var(--sun); }
.foot p { color: var(--pale); font-size: .9rem; }
.foot-base { padding: 22px 0 30px; border-top: 1px solid var(--line-d); }
.disclaimer { font-size: .82rem !important; color: #9FC4BE !important; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: #9FC4BE; }
.lowdata-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--line-d); background: none; color: #fff; font: 500 .86rem var(--sans); cursor: pointer; }
.lowdata-btn .sw { width: 34px; height: 20px; background: #3A5C5F; position: relative; }
.lowdata-btn .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; background: #fff; transition: transform .3s; }
.lowdata-btn[aria-pressed="true"] .sw { background: var(--sun); }
.lowdata-btn[aria-pressed="true"] .sw::after { transform: translateX(14px); }
@media (max-width: 900px) { .foot-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.fab-wa { position: fixed; left: 18px; bottom: 18px; z-index: 104; width: 54px; height: 54px; background: #1F7A4D; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.fab-wa svg { width: 28px; height: 28px; }

/* Vablus chat */
.chat-btn { position: fixed; right: 18px; bottom: 18px; z-index: 106; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 7px 18px 7px 7px; border: 0; background: var(--teal); color: #fff; font: 600 .92rem var(--sans); cursor: pointer; box-shadow: 0 14px 36px rgba(7,54,58,.35); }
.chat-av { width: 40px; height: 40px; background: var(--sun); color: var(--ink); display: grid; place-items: center; flex: none; }
.chat-av svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.chat-av svg .acc { stroke: var(--teal); }
.chat { position: fixed; right: 18px; bottom: 84px; z-index: 2147483200; width: min(390px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 160px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--sun); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--teal); color: #fff; }
.chat-head b { display: block; font-size: .95rem; } .chat-head small { color: var(--pale); font-size: .78rem; }
.chat-x { margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-x svg, .rv-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; background: var(--ground); }
.msg { max-width: 88%; padding: 11px 14px; font-size: .93rem; line-height: 1.5; }
.msg.bot { background: var(--surface); border-left: 3px solid var(--teal); align-self: flex-start; }
.msg.me { background: var(--teal); color: #fff; align-self: flex-end; }
.msg a { color: var(--teal); font-weight: 600; }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 6px; height: 6px; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; background: var(--ground); }
.chat-chips .chip { min-height: 40px; padding: 6px 12px; border: 2px solid var(--teal); background: var(--surface); font: 600 .8rem var(--sans); cursor: pointer; color: var(--teal); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-form input { min-height: 46px; }
.chat-form button { min-height: 46px; padding: 0 16px; border: 0; background: var(--sun); font: 600 .9rem var(--sans); cursor: pointer; color: var(--ink); }
@media (max-width: 640px) { .chat-btn .chat-lbl { display: none; } .chat-btn { padding: 7px; } .chat-chips { flex-wrap: nowrap; overflow-x: auto; } .chat-chips .chip { flex: none; } .chat { bottom: 80px; max-height: calc(100vh - 150px); } }

/* Receivly */
.rv-ov { position: fixed; inset: 0; z-index: 2147483300; background: rgba(7,30,32,.62); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.rv { width: min(460px, 100%); background: #fff; color: #141518; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.4); font-family: var(--sans); }
.rv-top { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid #ECECEC; }
.rvl { width: 34px; height: 34px; } .rv-top b { display: block; } .rv-sub { display: block; font-size: .8rem; color: #5D6066; }
.rv-x { margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: #141518; }
.rv-body { padding: 18px; display: grid; gap: 14px; }
.rv-sum { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #F3F5F4; padding: 14px; border-radius: 10px; }
.rv-sum b { font-size: 1.2rem; }
.rv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #F0F0F0; padding: 4px; border-radius: 10px; }
.rv-tabs button { min-height: 44px; border: 0; background: none; border-radius: 8px; font: 600 .9rem var(--sans); cursor: pointer; color: #141518; }
.rv-tabs [aria-selected="true"] { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.rv-form { display: grid; gap: 10px; } .rv-form input { border-radius: 8px; border-width: 1px; }
.rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-bank { margin: 0; display: grid; gap: 8px; } .rv-bank div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EEE; }
.rv-bank dt { color: #5D6066; } .rv-bank dd { margin: 0; font-weight: 600; text-align: right; }
.rv-pay { min-height: 50px; border: 0; border-radius: 10px; background: #14201C; color: #fff; font: 600 1rem var(--sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; }
.rv-ghost { min-height: 50px; border: 1px solid #CCC; border-radius: 10px; background: #fff; font: 600 .95rem var(--sans); cursor: pointer; padding: 0 18px; color: #141518; }
.rv-note { font-size: .8rem; color: #5D6066; margin: 0; }
.rv-receipt { display: grid; gap: 10px; } .rv-receipt h3 { font-family: var(--sans); margin: 0; }
.rv-ok { width: 54px; height: 54px; border-radius: 50%; background: #DDF5EA; display: grid; place-items: center; }
.rv-ok svg { width: 28px; height: 28px; fill: none; stroke: #137A4B; stroke-width: 2.4; }
.rv-receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
.rv-receipt dt { color: #5D6066; } .rv-receipt dd { margin: 0; font-weight: 600; text-align: right; }
.rv-actions { display: flex; gap: 10px; flex-wrap: wrap; } .rv-actions > * { flex: 1; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* motion states */
.motion-ok [data-reveal]:not([data-stagger]), .motion-ok [data-reveal][data-stagger] > *, .motion-ok [data-hero] .h-in, .motion-ok [data-hero-pop] { opacity: 0; }
.lowdata *, .lowdata *::before, .lowdata *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .site-head, .chat-btn, .chat, .fab-wa, .foot, #covorn-ribbon, .tray { display: none !important; } }
