:root {
  --navy: #07274b;
  --navy-deep: #041a33;
  --blue: #0b4fd6;
  --sky: #2f9bf0;
  --ice: #eaf3fc;
  --ink: #0e1726;
  --muted: #4b5a6e;
  --line: #d9e3ef;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 39, 75, .12);
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--font-body); color: var(--ink); background: var(--white); }
/* Computers and tablets: content at about 80% (like zooming the browser out). Text is in
   rem and button padding in em, so both shrink; section spacing is in px, so sections keep
   their size. Phones keep the full size. See also the end of this file. */
@media (min-width: 721px) {
  html { font-size: 75%; }
  body { font-size: 13.5px; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(880px, 100% - 32px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tint { background: var(--ice); }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark a:not(.btn) { color: #9fd0ff; }
.eyebrow { font: 600 .82rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.dark .lead, .page-hero .lead, .hero .lead { color: rgba(255, 255, 255, .85); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.section-head h2 { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 700 .85rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #0941b3; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-outline { border-color: currentColor; color: var(--navy); }
.dark .btn-outline { color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 39, 75, .96); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-mark { width: 40px; height: 40px; flex: none; transition: transform .4s; }
.brand:hover .brand-mark { transform: rotate(90deg); }
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.wm-name { font: 900 1.2rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.wm-now { color: transparent; -webkit-text-stroke: 1.25px #8fc4ff; }
.wm-sub { font: 700 .62rem/1 var(--font-head); letter-spacing: .32em; text-transform: uppercase; color: var(--sky); margin-top: 6px; }
.footer-grid .brand-mark { width: 52px; height: 52px; }
.footer-grid .wm-name { font-size: 1.55rem; }
.footer-grid .wm-sub { font-size: .7rem; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; font: 600 .82rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current]:not(.btn) { color: var(--white); border-color: var(--sky); }
.site-nav .btn { padding: 11px 18px; font-size: .78rem; }
@media (max-width: 1240px) and (min-width: 1025px) {
  .site-nav { gap: 14px; margin-left: 16px; }
  .site-nav a:not(.btn) { font-size: .72rem; letter-spacing: .04em; }
  .site-nav .btn { padding: 10px 13px; font-size: .7rem; letter-spacing: .06em; }
  .nav-lang .gt-lang-code { display: none; }
  .header-inner .nav-lang { width: 70px; margin-left: 14px; }
}
/* Tablets and phones: no menu; the link ribbon under the header takes its place. */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-header .section-chips { display: flex; gap: 6px; padding: 7px 16px; overflow-x: auto; scrollbar-width: none; background: var(--white); border-bottom: 1px solid var(--line); }
  .section-chips::-webkit-scrollbar { display: none; }
  .section-chips a { flex: none; padding: 6px 11px; border-radius: 999px; background: var(--ice); color: var(--navy); text-decoration: none; font: 700 .66rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
  .section-chips a.on { background: var(--navy); color: var(--white); }
  .chip-gap { flex: none; width: 1px; margin: 2px 4px; background: var(--line); }
}

/* Home hero */
.hero { position: relative; color: var(--white); background: var(--navy-deep) url(/assets/img/hero-product.png) center right / cover no-repeat; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 26, 51, .92) 0%, rgba(4, 26, 51, .7) 45%, rgba(4, 26, 51, 0) 75%); }
.hero .wrap { position: relative; padding: 80px 0; }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 900; line-height: .98; text-transform: uppercase; margin-bottom: 24px; }
/* Desktop: keep the headline in the left half so it never runs over the product boxes. */
@media (min-width: 721px) and (min-aspect-ratio: 1251/1000) { .hero h1 { font-size: min(5.6rem, 5.2vw); } }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px #8fc4ff; }
.hero .lead { font-size: 1.2rem; max-width: 34ch; }
.hero-copy { display: flex; flex-direction: column; text-align: center; }
.hero-copy .lead { margin-inline: auto; }
.hero-copy .btn-row { justify-content: center; margin-top: 4px; }
/* Desktop: a small centred block in the left half, the photo filling the screen. */
@media (min-width: 721px) and (min-aspect-ratio: 1251/1000) {
  .hero { min-height: calc(100vh - 72px); }
  .hero-copy { width: min(48%, 560px); }
  body .hero h1 { font-size: min(3.4rem, 3vw); margin-bottom: 18px; }
  .hero .lead { font-size: 1.1rem; max-width: 44ch; margin-bottom: 24px; }
  .hero .pills { margin: 0 auto 26px; }
  .hero .pills span { font-size: .95rem; gap: .7em; margin-left: -1.8em; padding: .85em 3.4em .85em 2.8em; }
  .hero .pills span:last-child { padding-right: 2em; }
  .hero .pills span:first-child { margin-left: 0; padding-left: 1.4em; }
  .hero .pills svg { width: 1.35em; height: 1.35em; }
}
.pills { display: flex; width: fit-content; max-width: 100%; margin: 4px auto 28px; border: 1px solid rgba(143, 196, 255, .7); border-radius: 999px; background: #1f8fe6; overflow: hidden; }
.pills span { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; margin-left: -26px; padding: 11px 50px 11px 42px; border-radius: 999px; font: 600 .95rem/1 var(--font-head); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.pills span:first-child { margin-left: 0; padding-left: 18px; }
.pills span:last-child { padding-right: 24px; }
.pills svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.pills span:nth-child(1) { z-index: 1; background: var(--white); color: var(--navy); }
.pills span:nth-child(1) svg { color: var(--blue); }
.pills span:nth-child(2) { z-index: 2; background: var(--blue); color: var(--white); }
.pills span:nth-child(3) { z-index: 3; flex-grow: 1; background: linear-gradient(90deg, #0b3fc4 0, #1f8fe6 45%, #3aa6f2 100%); color: var(--white); }

/* Hero buttons: squared-off outlines, so the coloured bar above stays the one bold shape.
   Shop gets the sky outline so it still reads as the main action. */
.hero .btn { border-radius: 8px; border-width: 1.5px; background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.hero .btn:hover { background: rgba(255, 255, 255, .1); }
.hero .btn-sky { color: #8fc4ff; border-color: var(--sky); }
/* Phones and upright tablets: there is no room beside the boxes, so show the photo
   at the top, fade it into navy, and start the text below the boxes. */
@media (max-width: 720px), (max-aspect-ratio: 5/4) {
  .hero { min-height: 0; align-items: end; background-size: 100% auto; background-position: center top; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 26, 51, 0) 0, rgba(4, 26, 51, 0) 52vw, var(--navy-deep) 72vw); }
  .hero .wrap { padding: 68vw 0 56px; }
}
/* Phones: zoom into the boxes (right side of the photo) so they are not tiny. */
/* Phones: the whole hero fits one screen under the header (62px) and shortcuts ribbon (40px):
   the photo across the top, the text and buttons below it. */
@media (max-width: 720px) {
  /* --photo: how much of the photo shows above the text; less on short screens. */
  .hero { --photo: clamp(120px, calc(100svh - 420px), 72vw); min-height: calc(100svh - 102px); align-items: center; background-size: 100% auto; background-position: center top; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 26, 51, 0) 0, rgba(4, 26, 51, 0) calc(var(--photo) - 70px), var(--navy-deep) var(--photo)); }
  .hero .wrap { padding: var(--photo) 0 24px; }
  .hero h1 { font-size: min(2.1rem, 8.6vw); margin-bottom: 12px; }
  .hero .lead { font-size: 1rem; line-height: 1.5; margin-bottom: 14px; }
  .hero .pills { margin-bottom: 14px; }
  .hero .m-stack { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; margin-top: 0; }
  .hero .m-stack .btn, .hero .m-stack .btn:first-child { padding: 11px 10px; font-size: .66rem; letter-spacing: .04em; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; color: var(--white); background: var(--navy) var(--hero) center / cover no-repeat; padding: clamp(96px, 14vw, 180px) 0 clamp(56px, 8vw, 96px); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 26, 51, .92), rgba(4, 26, 51, .55)); }
.page-hero .wrap { position: relative; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
/* Phototherapy: a compact band, text on the left and the photo filling the right half edge to edge. */
@media (min-width: 861px) {
  .photo-split { position: relative; padding: 56px 0; overflow: hidden; }
  .photo-split .split > div { max-width: 460px; }
  .photo-split h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
  .photo-split .split > div > p:not(.eyebrow):not(.shop-line) { font-size: .95rem; }
  .photo-split .video { max-width: 400px; }
  .photo-split .split > img { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; height: 100%; object-fit: cover; object-position: center 58%; border-radius: 0; box-shadow: none; }
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.rounded { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cover-img { width: 100%; height: 100%; object-fit: cover; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); margin: 0 0 24px; }
.video[id] { scroll-margin-top: 110px; }
.video.reel { aspect-ratio: 9 / 16; max-width: 400px; margin-inline: auto; }
/* Sit over Facebook's own Share button, which would share the Facebook link instead. */
.video.reel .video-share { top: 6px; right: 6px; padding: 16px 18px; background: rgba(4, 26, 51, .92); }
.video-card .thumb img[src^="/assets/"] { object-position: center 20%; }
.video-share { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(4, 26, 51, .78); color: var(--white); font: 700 .78rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(4px); transition: background .15s; }
.video-share:hover { background: var(--blue); }
/* My Story + Why I Share (home, above the reviews) */
.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.story p { color: var(--muted); font-size: 1.08rem; }
.story strong { color: var(--navy); }
.story .story-turn { color: var(--navy); font: 700 clamp(1.15rem, 2vw, 1.4rem)/1.4 var(--font-head); border-left: 4px solid var(--sky); padding-left: 18px; margin-top: 24px; }
.why-share { position: relative; padding: clamp(32px, 4vw, 48px); border-radius: var(--radius); background: var(--navy) url(/assets/img/sun.jpg) center / cover; color: var(--white); overflow: hidden; box-shadow: var(--shadow); }
.why-share::before { content: ""; position: absolute; inset: 0; background: rgba(4, 26, 51, .82); }
.why-share > * { position: relative; }
.why-share blockquote { margin: 0; }
.why-share blockquote p { font: 600 clamp(1.05rem, 1.7vw, 1.25rem)/1.55 var(--font-head); margin-bottom: 18px; }
.why-share sup { color: var(--sky); font-size: .7em; margin-right: 2px; }
.why-share cite { font: 700 .82rem/1 var(--font-head); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.scripture-credit { margin: 22px 0 0; font-size: .72rem; line-height: 1.5; color: rgba(255, 255, 255, .55); }
.scripture-credit a { color: rgba(255, 255, 255, .7); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

/* PubMed viewer window */
dialog.pubmed { width: min(860px, 100% - 24px); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(4, 26, 51, .45); color: var(--ink); display: flex; flex-direction: column; overflow: hidden; }
dialog.pubmed:not([open]) { display: none; }
dialog.pubmed::backdrop { background: rgba(4, 26, 51, .65); backdrop-filter: blur(3px); }
.pubmed-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: var(--ice); }
.pubmed-head .eyebrow { margin-bottom: 6px; }
.pubmed-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; color: var(--navy); }
.pubmed-count { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.pubmed-actions { display: flex; align-items: center; gap: 10px; }
.pubmed-actions .btn { padding: 10px 16px; font-size: .72rem; }
.pubmed-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--white); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pubmed-close:hover { background: var(--navy); color: var(--white); }
.pubmed-body { overflow-y: auto; padding: 8px 28px 28px; }
.pubmed-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.pubmed-item:last-child { border-bottom: 0; }
.pubmed-item h3 { font-size: 1.05rem; line-height: 1.35; color: var(--navy); margin-bottom: 6px; }
.pubmed-meta { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.pubmed-abstract { font-size: .95rem; background: #f7fafd; border-left: 3px solid var(--sky); padding: 14px 18px; border-radius: 0 8px 8px 0; margin-bottom: 12px; }
.pubmed-abstract p:last-child { margin-bottom: 0; }
.pubmed-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font: 700 .78rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.pubmed-links a { text-decoration: none; }
.pubmed-toggle { border: 0; background: var(--navy); color: var(--white); font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.pubmed-toggle:hover { background: var(--blue); }
.pubmed-status { padding: 24px 0; color: var(--muted); }
@media (max-width: 640px) { .pubmed-head, .pubmed-body { padding-left: 18px; padding-right: 18px; } dialog.pubmed { max-height: 92vh; } }

/* All videos: topic filter above the list */
.tag-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 0 auto 14px; }
.tag-count { text-align: center; margin: 0 0 24px; color: var(--muted); font-size: .9rem; }
.library-title { text-align: center; margin: 0 0 24px; }
.tag-toggle { display: none; }
.center-row { justify-content: center; margin-top: 28px; }

/* Pick several videos and share one link */
.select-row { max-width: 680px; margin: -12px auto 14px; text-align: right; }
.select-toggle, .select-all { padding: 8px 2px; border: 0; background: none; color: var(--blue); font: 600 .88rem/1 var(--font-head); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.selecting .tree-link { padding-left: 62px; padding-right: 28px; }
.selecting .tree-link::before { content: ""; position: absolute; left: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; box-sizing: border-box; }
.selecting .picked .tree-link { background: var(--blue); }
.selecting .picked .tree-link::before { border-color: var(--white); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307274b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.selecting .tree-share { display: none; }
.share-bar { position: fixed; left: 50%; bottom: 18px; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: min(560px, calc(100% - 32px)); padding: 10px 10px 10px 20px; box-sizing: border-box; border-radius: 999px; background: var(--navy-deep); color: var(--white); box-shadow: 0 10px 30px rgba(4, 26, 51, .35); }
.share-bar[hidden] { display: none; }
.share-bar-n { margin-right: auto; font: 600 .9rem/1 var(--font-head); }
.share-bar-go { padding: 11px 22px; border: 0; border-radius: 999px; background: var(--sky); color: var(--navy-deep); font: 700 .8rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.share-bar-go:disabled { opacity: .45; cursor: default; }
.share-bar-cancel { padding: 11px 12px; border: 0; background: none; color: rgba(255, 255, 255, .8); font: 600 .85rem/1 var(--font-head); cursor: pointer; }
.selecting { padding-bottom: 80px; }
@media (max-width: 720px) {
  .video-library { padding-top: 32px; }
  .library-title { font-size: 2rem; margin-bottom: 16px; }
  .tag-panel { max-width: 680px; margin: 0 auto 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); }
  .tag-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; border: 0; background: none; color: var(--navy); font: 600 .9rem/1 var(--font-head); cursor: pointer; }
  .tag-toggle::after { content: ""; width: 8px; height: 8px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 4px 0 auto; transition: transform .15s; }
  .tag-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
  .tag-toggle-n { margin-left: 6px; color: var(--muted); font-weight: 500; }
  .tag-panel .tag-filter { display: none; margin: 0; padding: 0 12px 14px; justify-content: flex-start; }
  .tag-panel.open .tag-filter { display: flex; }
}
.tag-chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); text-decoration: none; font: 600 .82rem/1 var(--font-head); }
.tag-chip:hover { border-color: var(--blue); }
.tag-chip[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Link-tree video list (X39 Explained) */
.video-tree { list-style: none; padding: 0; margin: 0 auto; max-width: 680px; display: grid; gap: 12px; }
.video-tree li { position: relative; }
.tree-link { display: block; padding: 16px 92px 16px 28px; border-radius: 999px; background: var(--navy); color: var(--white); text-decoration: none; text-align: left; font: 600 .82rem/1.35 var(--font-head); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(7, 39, 75, .12); transition: background .15s, transform .15s; }
.tree-link:hover { background: var(--blue); transform: translateY(-2px); }
.tree-share { top: 50%; right: 10px; transform: translateY(-50%); padding: 7px 12px; font-size: .68rem; background: rgba(255, 255, 255, .12); }
.tree-share:hover { background: var(--sky); color: var(--navy-deep); }
@media (max-width: 640px) {
  .tree-link { padding: 15px 56px 15px 20px; border-radius: 18px; }
  .tree-share { right: 12px; padding: 10px; }
  .tree-share span { display: none; }
}
.video-card-wrap { position: relative; }
.video-card-wrap .video-card { height: 100%; }
.card-share { top: 10px; right: 10px; padding: 7px 11px; font-size: .7rem; }
.video-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.video:target { outline: 3px solid var(--sky); outline-offset: 4px; }
.video iframe, .video .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt { cursor: pointer; background: #000 center / cover no-repeat; padding: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(11, 79, 214, .92); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .15s; }
.play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.yt:hover .play, .video-card:hover .play { transform: scale(1.08); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 28px; }
.video-card { display: block; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.video-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(7, 39, 75, .18); }
.video-card .thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy); }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.video-card .play::after { left: 21px; top: 16px; border-width: 10px 0 10px 16px; }
.video-card-title { display: block; padding: 16px 18px 20px; font: 700 1rem/1.35 var(--font-head); }
.video-page h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.crumbs { font: 600 .8rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: "← "; }

/* Link stack (home video lists): centred pill buttons, one per video */
.link-stack { list-style: none; padding: 0; margin: 32px auto 0; max-width: 640px; display: grid; gap: 14px; }
.link-stack a { display: block; padding: 18px 24px; border-radius: 999px; background: var(--navy); color: var(--white); text-decoration: none; text-align: center; font: 600 .82rem/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(7, 39, 75, .18); transition: transform .15s, background .15s; }
.link-stack a:hover { background: var(--blue); transform: translateY(-2px); }
.link-stack.light { max-width: 640px; margin-top: 40px; }
.link-stack.light a, .dark .link-stack.light a { background: var(--white); color: var(--navy); padding: 15px 24px; font-size: 1.08rem; letter-spacing: .08em; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.link-stack.light a:hover { background: var(--ice); }
.link-stack + .btn-row { justify-content: center; margin-top: 36px; }
.btn-sky { background: var(--sky); color: var(--navy-deep); }
.btn-sky:hover { background: #5cb2f5; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); }
.btn-block { display: flex; width: 100%; padding: 18px 24px; }

/* Shop X39 links */
.shop-line { margin: 20px 0 0; font: 600 1rem/1.4 var(--font-head); }
.shop-line a { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--sky); white-space: nowrap; }
.shop-line a:hover { color: var(--sky); }
.dark .shop-line a, .patents-band .shop-line a { color: #9fd0ff; }
.patents-band .shop-line { margin-top: 24px; }
.shop-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px 28px; border-radius: var(--radius); background: var(--ice); border-left: 4px solid var(--blue); }
.shop-card strong { display: block; font: 800 1.25rem/1.2 var(--font-head); color: var(--navy); margin-bottom: 4px; }
.shop-card span { color: var(--muted); }
.steps-cta { display: block !important; padding-left: 70px; }
.site-nav a { white-space: nowrap; }
.header-shop { display: none; }
@media (max-width: 480px) {
  .brand { gap: 9px; }
  .brand-mark { width: 32px; height: 32px; }
  .wm-name { font-size: .95rem; }
  .wm-sub { font-size: .55rem; letter-spacing: .26em; }
  .header-inner .header-shop { padding: 9px 12px !important; font-size: .7rem !important; margin-right: 4px !important; white-space: nowrap; }
}
@media (max-width: 1024px) { .header-shop { display: inline-flex; margin-left: auto; margin-right: 8px; padding: 10px 16px; font-size: .75rem; } }

/* Very narrow or zoomed-in phones */
@media (max-width: 340px) {
  .header-inner .header-shop { display: none; }
  .header-inner .nav-lang { margin-left: auto; }
}
@media (max-width: 360px) {
  .footer-grid .brand-mark { width: 40px; height: 40px; }
  .footer-grid .wm-name { font-size: 1.1rem; }
  body .features { grid-template-columns: 1fr; }
  body .results-ring { grid-template-columns: 1fr; }
  body .results-ring ul, body .results-ring ul:first-child { text-align: center; }
  .footer-grid .wm-name { white-space: normal; }
  .results-ring li::before { margin-inline: auto !important; }
  .tree-link { padding-right: 56px; }
}
@media (max-width: 300px) {
  .wm-sub { display: none; }
  .header-inner .brand-mark { display: none; }
  .brand-mark { width: 28px; height: 28px; }
  .wm-name { font-size: .85rem; }
}
/* Long single words (e.g. PHOTOBIOMODULATION) may break instead of spilling off screen. */
h1, h2, h3, .tree-link, .link-stack a, .pubmed-item h3 { overflow-wrap: anywhere; }
.btn { max-width: 100%; text-align: center; }
.split > *, .story-grid > *, .patents-cols > * { min-width: 0; }

/* Power of X39: text, then a row of large photos, then the video in its own container */
.intro { max-width: 880px; }
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.photo-row img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .photo-row { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; gap: 14px; } .photo-row img { scroll-snap-align: start; } }
.feature-video { max-width: 960px; margin: 64px auto 0; }
/* Power of X39: heading in a narrower centred column; video and paragraph side by side. */
.power-head { max-width: 780px; margin: 64px auto 0; }
#power .photo-row { margin-top: 28px; }
.power-head h2 { margin-bottom: 0; }
.power-video { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 0; }
.power-video .feature-video { margin: 0; max-width: none; }
.power-text .lead { margin-bottom: 0; }
@media (max-width: 860px) { .power-video { grid-template-columns: 1fr; margin-top: 40px; } }

/* Sun band */
.sun { position: relative; color: var(--white); background: var(--navy-deep) url(/assets/img/sun.jpg) center / cover no-repeat; text-align: center; padding: clamp(96px, 14vw, 180px) 0; }
.sun::before { content: ""; position: absolute; inset: 0; background: rgba(4, 26, 51, .55); }
.sun .wrap { position: relative; }
.sun p { max-width: 60ch; margin-inline: auto; font-size: 1.15rem; }

/* How to wear: icon steps */
.icon-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.icon-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; font: 700 clamp(1rem, 1.5vw, 1.25rem)/1.3 var(--font-head); color: var(--navy); }
.icon-steps svg { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--ice); fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Features */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 40px; }
.features div { padding: 24px 20px; text-align: center; border-left: 1px solid var(--line); font-weight: 700; }
.features div:first-child { border-left: 0; }
.features div::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4fd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 20px no-repeat; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } .features div { border: 0; border-top: 1px solid var(--line); } }

/* Patents: full-bleed spotlight with the patent papers on top, two centred columns */
.patents-band { position: relative; color: var(--white); text-align: center; background: var(--navy-deep) url(/assets/img/hero-product-alt.png) center / cover no-repeat; padding: 0 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.patents-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 26, 51, .1), rgba(4, 26, 51, .55)); }
.patents-band .wrap { position: relative; }
.patent-papers { width: min(520px, 90%); margin: 0 auto 24px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.patents-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: 980px; margin-inline: auto; }
.patents-cols h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.patents-cols p { color: rgba(255, 255, 255, .85); max-width: 42ch; margin-inline: auto; }
.patent-numbers { font: 500 1rem/1.7 var(--font-head); }
@media (max-width: 720px) { .patents-cols { grid-template-columns: 1fr; } }

/* Results: benefits around the glowing patch */
.results-band { padding: clamp(64px, 8vw, 104px) 0; background: radial-gradient(ellipse at 50% 60%, #f4f8fc 0%, #dfe9f4 55%, #c9dcef 100%); }
.results-ring { display: grid; grid-template-columns: 1fr minmax(240px, 380px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1000px; margin: 48px auto 0; }
.results-ring ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; font: 700 clamp(1.05rem, 1.8vw, 1.35rem)/1.2 var(--font-head); color: var(--navy); }
.results-ring ul:first-child { text-align: right; }
.results-ring li::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--sky)); margin-bottom: 12px; }
.results-ring ul:first-child li::before { margin-left: auto; }
.ring { position: relative; aspect-ratio: 1; }
.ring img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ring .patch { inset: 22%; width: 56%; height: 56%; filter: drop-shadow(0 10px 18px rgba(7, 39, 75, .25)); }
@media (max-width: 720px) {
  .results-ring { grid-template-columns: 1fr 1fr; }
  .results-ring .ring { grid-column: 1 / -1; grid-row: 1; width: min(280px, 80%); margin-inline: auto; }
  .results-ring ul, .results-ring ul:first-child { text-align: left; gap: 24px; }
  .results-ring ul:first-child li::before { margin-left: 0; }
}

/* Case reports: photo stays put while the page scrolls over it */
.parallax { position: relative; color: var(--white); background: var(--navy) var(--bg) center / cover no-repeat fixed; padding: clamp(140px, 22vw, 260px) 0; }
.parallax::before { content: ""; position: absolute; inset: 0; background: rgba(4, 26, 51, .35); }
.parallax .wrap { position: relative; }
.parallax .eyebrow { color: var(--white); }
.parallax .lead { color: rgba(255, 255, 255, .92); }
@media (hover: none) { .parallax { background-attachment: scroll; } }

/* Doctors: tilted phone with the playlist, then the link stack */
.doctors { overflow: hidden; }
.doctors .phone { width: min(440px, 100%); margin: -40px auto -60px; transform: rotate(18deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
@media (max-width: 860px) { .doctors .phone { width: min(320px, 80%); margin: 0 auto -40px; } }

/* Bio: photo and video side by side, then the story in two columns */
.bio-top { margin-top: 40px; align-items: center; }
.bio-top .video { margin-bottom: 20px; }
.bio-top img { width: 100%; max-height: 620px; object-fit: cover; }
.two-col { columns: 2; column-gap: clamp(32px, 5vw, 64px); margin-top: 56px; color: var(--muted); }
.two-col p { break-inside: avoid; }
@media (max-width: 760px) { .two-col { columns: 1; } }

/* Research page */
.study-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.study { display: flex; flex-direction: column; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.study h3 { color: var(--navy); }
.study p { color: var(--muted); font-size: .98rem; flex: 1; }
.study a { align-self: start; font: 700 .8rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.study a::after { content: " ↗"; }
.study-group { margin-top: 56px; }
.study-group:first-child { margin-top: 0; }
.study-group > h2 { font-size: 1.5rem; margin-bottom: 20px; }
.note { font-size: .9rem; color: var(--muted); font-style: italic; }
.callout { background: var(--ice); border-left: 4px solid var(--blue); padding: 20px 24px; border-radius: 0 10px 10px 0; margin: 24px 0; }
.callout a { font-weight: 700; }

/* Testimonies */
.stars { color: #f5b301; letter-spacing: 2px; font-size: 1.05rem; }
.location { font: 700 .78rem/1.3 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
figcaption strong { display: block; font-family: var(--font-head); margin-bottom: 4px; }

/* Reviews: the featured testimony stands alone as an editorial pull quote on white. */
.featured-testimony figure { max-width: 780px; margin: 0 auto; text-align: center; }
.featured-testimony blockquote { margin: 0 0 22px; color: var(--navy); font: 400 clamp(1.3rem, 2.6vw, 1.85rem)/1.5 Georgia, 'Times New Roman', serif; }
.featured-testimony blockquote::before { content: "\201C"; display: block; height: .55em; margin-bottom: 10px; color: var(--sky); font: 900 4rem/1 Georgia, serif; }
.featured-testimony figcaption { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 700 .78rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.featured-testimony figcaption::before { content: ""; width: 28px; height: 2px; background: var(--sky); }
.featured-testimony .btn-row { justify-content: center; }

.testimony { position: relative; margin: 0; padding: 40px 32px 30px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.testimony::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.testimony-mark { font: 900 4.5rem/.7 var(--font-head); color: var(--ice); position: absolute; right: 24px; top: 32px; }
.testimony blockquote { margin: 0 0 24px; padding-right: 48px; flex: 1; font: 600 clamp(1.05rem, 1.6vw, 1.2rem)/1.45 var(--font-head); color: var(--navy); }
.testimony .location { color: var(--blue); }

/* Testimony card carousel */
.review-band { position: relative; color: var(--white); text-align: center; padding: clamp(72px, 9vw, 120px) 0; background: var(--navy-deep) url(/assets/img/sun.jpg) center / cover no-repeat; }
.review-band::before { content: ""; position: absolute; inset: 0; background: rgba(4, 26, 51, .78); }
.review-band .wrap { position: relative; }
.review-band h2 { margin-bottom: 40px; }
.review-band .btn-row { justify-content: center; margin-top: 40px; }
.carousel { --per: 3; --gap: 24px; }
.carousel-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; padding: 8px 4px 24px; margin: -8px -4px -24px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .testimony { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; }
.review-band .testimony { box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
@media (max-width: 960px) { .carousel { --per: 2; } }
/* One card at a time on phones: let each card be as tall as its own text instead of the longest review. */
@media (max-width: 640px) { .carousel { --per: 1.12; --gap: 14px; } .carousel-track { align-items: flex-start; } }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.carousel-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: var(--white); font-size: 1.2rem; cursor: pointer; transition: background .15s, border-color .15s; }
.carousel-btn:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-width: 0; }
.carousel-btn { flex: none; }
@media (max-width: 480px) { .carousel-controls { gap: 12px; } .carousel-dots { gap: 7px; } .carousel-dots button { width: 8px; height: 8px; } .carousel-dots button[aria-current] { width: 20px; } .carousel-btn { width: 42px; height: 42px; } }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .2s, background .2s; }
.carousel-dots button[aria-current] { width: 28px; background: var(--sky); }
.on-light .carousel-btn { border-color: var(--line); color: var(--navy); }
.on-light .carousel-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.on-light .carousel-dots button { background: #b9cbe0; }
.on-light .carousel-dots button[aria-current] { background: var(--blue); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); padding: 64px 0 32px; font-size: .95rem; }
.footer-cta { text-align: center; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-cta h2 { color: var(--white); margin-bottom: 0; }
.footer-cta .btn-row { justify-content: center; margin: 20px 0 32px; }
.guarantees { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.guarantees strong { color: #9fd0ff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 32px 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--white); text-decoration: none; font: 600 .8rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.footer-nav a:hover { color: #9fd0ff; }
/* Language picker: in the header row (after the menu on computers, before Shop on phones),
   opening downward. GTranslate sets position:fixed inline on its wrapper, so this overrides it. */
.nav-lang { position: relative; flex: none; width: 94px; height: 36px; }
.header-inner .site-nav { order: 1; margin-left: auto; }
.header-inner .nav-lang { order: 2; margin-left: 22px; }
.nav-lang #gt_float_wrapper { position: absolute !important; inset: 0 0 auto auto !important; }
.nav-lang .gt_float_switcher { position: relative; font-size: 13px !important; background: transparent !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
.nav-lang .gt_float_switcher img { width: 20px !important; }
.nav-lang .gt_float_switcher .gt-selected { background: var(--white) !important; border-radius: 8px !important; }
.nav-lang .gt_float_switcher .gt-selected .gt-current-lang { display: flex; align-items: center; gap: 6px; padding: 6px 12px !important; white-space: nowrap; }
/* The list: a plain card under the button, aligned to its right edge, scrolling inside. */
.nav-lang .gt_float_switcher .gt_options { position: absolute !important; top: 44px; right: 0; z-index: 60; width: 220px; max-height: min(60vh, 420px) !important; overflow-y: auto !important; padding: 6px 0; background: var(--white); border-radius: 12px; box-shadow: 0 16px 40px rgba(4, 26, 51, .3); }
.nav-lang .gt_float_switcher .gt_options a { display: flex !important; align-items: center; gap: 10px; padding: 8px 16px !important; border: 0 !important; color: var(--ink) !important; font: 400 14px/1.3 var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap; }
.nav-lang .gt_float_switcher .gt_options a:hover { background: var(--ice) !important; }
.nav-lang .gt_float_switcher .gt_options img { width: 20px !important; height: auto; }
/* Tablets and phones: Shop, then the language (flag and letters) at the end of the row. */
@media (max-width: 1024px) {
  .header-inner .header-shop { order: 1; margin-left: auto; margin-right: 0; }
  .header-inner .nav-lang { order: 2; width: 66px; margin-left: 8px; }
  .nav-lang .gt-lang-code { display: inline !important; }
  .nav-lang .gt_float_switcher-arrow { display: none !important; }
  .nav-lang .gt_float_switcher .gt-selected .gt-current-lang { padding: 6px 10px !important; }
}
/* Phones: the ring mark gives way so logo, Shop and language fit on one row. */
@media (max-width: 430px) {
  .header-inner .brand-mark { display: none; }
  .header-inner .wm-name { font-size: .85rem; }
  .header-inner .header-shop { padding: 8px 10px !important; font-size: .64rem !important; margin-right: 0 !important; }
}
.disclaimer { font-size: .78rem; line-height: 1.6; color: rgba(255, 255, 255, .55); text-transform: none; }
.copyright { font-size: .8rem; color: rgba(255, 255, 255, .5); margin: 0; }

/* Home "How X39 Works" block spacing (was inline) */
.works { margin-top: 80px; }

/* Section shortcuts: home page, phones only */
.section-chips { display: none; }

/* Reviews band: cards scroll on their own and can be swiped (site.js adds .drifting) */
.drifting { margin-inline: calc(50% - 50vw); }
/* 50vw counts the scrollbar on Windows; clip so the band never adds a sideways scroll. */
.review-band { overflow-x: clip; }
.drifting .carousel-track, .carousel.drifting .carousel-track { scroll-snap-type: none; scroll-behavior: auto; align-items: stretch; margin: -8px 0 -24px; padding: 8px 16px 24px; }
.drifting .testimony { flex: 0 0 360px; scroll-snap-align: none; }
.drifting .carousel-controls { display: none; }

/* Phone photo ribbon: moved only by site.js, never by the visitor */
.photo-row.ribbon { overflow: hidden; scroll-snap-type: none; scroll-behavior: auto; touch-action: pan-y; }

/* "Read more" collapsing (phones; site.js adds .collapsed and the button) */
.collapsed { max-height: var(--collapse-height, 4.8em); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.read-more { display: block; margin: 6px 0 12px; padding: 0; border: 0; background: none; color: var(--blue); font: 800 .76rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.dark .read-more, .why-share .read-more { color: #9fd0ff; }
.bio-avatar { display: none; }

/* ===================== Phone layout ===================== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  h2 { font-size: 1.6rem; }
  .lead { font-size: 1.02rem; }
  .eyebrow { font-size: .72rem; margin-bottom: 10px; }
  .hide-m { display: none !important; }
  .split { gap: 20px; }

  /* Header: logo row, then the section shortcuts */
  .header-inner { flex-wrap: wrap; min-height: 62px; }
  main section[id], .review-band[id] { scroll-margin-top: 104px; }

  /* Hero: pills on one row; Shop full width, then two buttons side by side */
  .hero .wrap { padding-bottom: 36px; }
  .hero h1 { margin-bottom: 16px; }
  .pills { width: 100%; margin-bottom: 16px; }
  .pills span { flex: 1 1 auto; gap: 6px; margin-left: -18px; padding: 10px 24px 10px 24px; font-size: .7rem; letter-spacing: .02em; }
  .pills span:last-child { padding-right: 8px; }
  .pills span:first-child { padding-left: 10px; }
  .pills svg { width: 13px; height: 13px; }
  .m-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .m-stack .btn:first-child { grid-column: 1 / -1; padding: 15px; }
  .m-stack .btn { padding: 13px 10px; font-size: .74rem; letter-spacing: .06em; }

  /* Button rows with a Shop button plus links: Shop full width, the rest as small chips */
  .m-chips { gap: 6px; }
  .m-chips .btn:first-child { flex: 1 0 100%; padding: 15px; }
  .m-chips .btn:not(:first-child) { padding: 8px 12px; font-size: .68rem; letter-spacing: .06em; border-width: 1.5px; }
  .btn-row { margin-top: 18px; }

  /* Photos: smaller cards that peek, with dots */
  .photo-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%; gap: 10px; margin: 22px -16px 0; padding: 0 16px 4px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .photo-row::-webkit-scrollbar { display: none; }
  .photo-row img { aspect-ratio: 4 / 5; }
  .feature-video { margin-top: 22px; }
  .power-video { margin-top: 0; gap: 32px; }
  .power-head { margin-top: 64px; }
  #power .photo-row { margin-top: 20px; }
  .video { margin-bottom: 12px; }

  /* My story as a card; verse card compact */
  .my-story { padding: 36px 0; }
  .story { background: var(--white); border-radius: 16px; padding: 18px 16px; box-shadow: 0 8px 22px rgba(7, 39, 75, .1); }
  .story h2 { font-size: 1.45rem; margin-bottom: 10px; }
  .story p { font-size: .92rem; line-height: 1.5; margin-bottom: .7em; }
  .story .story-turn { font-size: .95rem; margin-top: 10px; padding-left: 12px; }
  .story-grid { gap: 16px; }
  .why-share { padding: 18px 16px; }
  .why-share blockquote p { font-size: .9rem; line-height: 1.5; margin-bottom: 6px; }
  .scripture-credit { margin-top: 8px; font-size: .65rem; }

  /* Bands */
  .sun { padding: 56px 0; }
  .sun p { font-size: 1rem; }
  .parallax { padding: 80px 0; }

  /* How to wear: 2x2 tiles; How it works: wrapping chips */
  .icon-steps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .icon-steps li { display: block; padding: 14px; border-radius: 14px; background: var(--ice); font-size: .86rem; line-height: 1.3; }
  .icon-steps svg { display: block; width: 40px; height: 40px; padding: 8px; margin-bottom: 8px; background: var(--white); }
  .icon-steps .steps-cta { grid-column: 1 / -1; padding: 0; background: none; }
  .icon-steps .steps-cta .btn { width: 100%; }
  .works { margin-top: 36px; }
  .features { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
  .features div { padding: 8px 12px; border: 1.5px solid var(--line) !important; border-radius: 999px; background: var(--white); font: 700 .74rem/1.2 var(--font-head); color: var(--navy); }
  .features div::before { display: inline-block; width: 14px; height: 14px; margin: 0 6px -2px 0; background-size: 12px; background-color: transparent; }

  /* Link stacks: compact */
  .link-stack { gap: 8px; margin-top: 18px; }
  .link-stack a, .link-stack.light a, .dark .link-stack.light a { padding: 14px 16px; font-size: .74rem; letter-spacing: .06em; }
  .link-stack.light a, .dark .link-stack.light a { font-size: .84rem; }
  .link-stack.light { margin-top: 24px; }

  /* Reviews: one wide card in view, full text */
  .review-band { padding: 48px 0; }
  .review-band h2 { margin-bottom: 18px; }
  .drifting .testimony { flex-basis: 82vw; padding: 26px 22px 22px; }
  .testimony blockquote { font-size: 1.02rem; padding-right: 36px; margin-bottom: 16px; }
  .testimony-mark { font-size: 3.4rem; right: 18px; top: 26px; }
  .review-band .btn-row { margin-top: 22px; }

  /* Patents */
  .patents-band { padding-bottom: 48px; }
  .patent-papers { width: 70%; margin-bottom: 8px; }
  .patents-cols { gap: 20px; }
  .patents-cols h2 { font-size: 1.45rem; }
  .patents-cols p { font-size: .95rem; }

  /* Results: the patch in the middle, three benefits on each side in plain dark text */
  .results-band { padding: 44px 0; }
  .results-ring { grid-template-columns: 1fr 104px 1fr; gap: 10px; margin-top: 22px; align-items: center; }
  .results-ring .ring { grid-column: auto; grid-row: auto; width: 104px; margin: 0; }
  .results-ring ul { gap: 18px; font-size: .82rem; line-height: 1.25; color: var(--ink); }
  .results-ring ul:first-child { text-align: right !important; }
  .results-ring ul:last-child { text-align: left !important; }
  .results-ring li { overflow-wrap: anywhere; }
  .results-ring > * { min-width: 0; }
  .results-ring li::before { width: 22px; height: 2px; margin-bottom: 6px; }
  .results-band .btn-row { margin-top: 22px !important; }

  /* Doctors: heading beside a small tilted phone */
  .doctors .split { grid-template-columns: 1fr 110px; gap: 12px; }
  .doctors .center { text-align: left; }
  .doctors .lead { font-size: .95rem; margin: 0; }
  .doctors .phone { width: 110px; margin: 0; transform: rotate(14deg); }

  /* Founder: round photo beside the heading */
  .bio-head { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 4px; }
  .bio-head h2 { font-size: 1.3rem; margin: 0; }
  .bio-avatar { display: block; width: 76px; height: 76px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 3px solid var(--ice); }
  .bio-top { margin-top: 16px; }
  .two-col { margin-top: 18px; columns: auto; }

  /* Footer CTA */
  .footer-cta h2 { font-size: 1.5rem; }

  /* Footer: logo, then the links in two even columns, then language, all centred */
  .footer-grid { flex-direction: column; align-items: center; gap: 24px; text-align: center; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; width: 100%; max-width: 360px; }
  .footer-nav a { padding: 12px 4px; font-size: .74rem; line-height: 1.3; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .footer-nav a:last-child:nth-child(odd) { grid-column: 1 / -1; border-bottom: 0; }
  .disclaimer { text-align: center; }
  .copyright { text-align: center; }
}
@media (max-width: 360px) {
  body .results-ring { grid-template-columns: 1fr 1fr; }
  body .results-ring .ring { grid-column: 1 / -1; width: 110px; margin: 0 auto 6px; }
  .doctors .split { grid-template-columns: 1fr; }
  .doctors .phone { display: none; }
}

/* Computers and tablets, continued from the top of the file: buttons and the header scale
   with the smaller text instead of keeping their phone-sized padding. */
@media (min-width: 721px) {
  .btn { padding: .85em 1.55em; }
  .site-nav .btn { padding: .8em 1.25em; }
  .site-nav a:not(.btn) { font-size: .92rem; }
  .header-inner { min-height: 60px; }
  .brand-mark { width: 32px; height: 32px; }
  .site-nav { gap: 22px; }
  .hero { min-height: calc(100vh - 60px); }
}
@media (min-width: 1025px) and (max-width: 1240px) { .site-nav .btn { padding: .75em 1em; } .site-nav a:not(.btn) { font-size: .8rem; } }

/* Testimony bands (home page, phones only for now): a row that splits the screen in
   half, picture on one side and a short quote or video title on the other. Each band
   sits on its own between sections, with open space and a hairline above and below. */
.t-band { display: none; }
@media (max-width: 720px) {
  .t-band { display: block; padding: 40px 0; background: var(--white); }
  .t-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 100%; min-height: 240px; margin: 0; padding: 0; border: 0; border-block: 1px solid var(--line); background: var(--white); color: inherit; font: inherit; text-align: left; cursor: default; }
  button.t-row { cursor: pointer; }
  .t-row.flip .t-pic { order: 2; }
  .t-pic { position: relative; align-self: stretch; min-height: 240px; background: var(--navy) center / cover no-repeat; }
  .t-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='white'/%3E%3C/svg%3E") center / 20px no-repeat; }
  .t-text { display: block; padding: 24px 18px; }
  .t-kick { display: block; margin-bottom: 10px; color: var(--sky); font: 700 .6rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; }
  .t-quote, .t-title { display: block; margin: 0; color: var(--navy); font: 800 1.12rem/1.15 var(--font-head); font-stretch: 78%; text-transform: uppercase; }
  .t-quote::before { content: "\201C"; display: block; height: .5em; margin-bottom: 6px; color: var(--sky); font: 900 2.3rem/1 Georgia, serif; }
  .t-who { display: block; margin-top: 12px; color: var(--muted); font: 700 .6rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
  button.t-pic { width: 100%; padding: 0; border: 0; border-radius: 0; cursor: pointer; }
  .t-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 4px; }
  .t-link { padding: 10px 0; border: 0; background: none; color: var(--blue); font: 800 .7rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
  /* Share as a quiet text link (same share logic as the video buttons). */
  .t-band .t-share { position: static; padding: 10px 0; border-radius: 0; background: none; backdrop-filter: none; color: var(--muted); font: 700 .66rem/1 var(--font-head); letter-spacing: .08em; }
  .t-band .t-share:hover { background: none; color: var(--blue); }
  .t-band .t-share svg { width: 13px; height: 13px; }
  .t-more { display: block; margin: 18px 20px 0; text-align: right; color: var(--navy); font: 700 .7rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
}

/* Video testimony pop-up */
/* Video testimony pop-up. It always fits the visible screen (svh leaves room for phone
   browser bars); Shorts get a tall frame. Share and More sit on one compact row. */
dialog.story-player { width: min(900px, 94vw, (100vh - 130px) * 16 / 9); width: min(900px, 94vw, (100svh - 130px) * 16 / 9); max-height: calc(100vh - 24px); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 14px; background: #000; overflow: hidden; }
dialog.story-player.is-short { width: min(460px, 94vw, (100vh - 130px) * 9 / 16); width: min(460px, 94vw, (100svh - 130px) * 9 / 16); }
dialog.story-player::backdrop { background: rgba(4, 26, 51, .85); }
.story-player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--navy-deep); color: var(--white); font: 700 .8rem/1.2 var(--font-head); }
.story-player-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-player-bar button { flex: none; border: 0; background: none; color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.story-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.story-player.is-short iframe { aspect-ratio: 9 / 16; }
.story-player-foot { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--navy-deep); }
.story-player-foot .video-share, .story-player-foot a { position: static; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font: 700 12px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; backdrop-filter: none; }
.story-player-foot .video-share svg { width: 14px; height: 14px; }
.story-player-foot .video-share { border: 1.5px solid rgba(255, 255, 255, .7); background: none; color: var(--white); }
.story-player-foot .video-share:hover { background: rgba(255, 255, 255, .12); }
.story-player-foot a { background: var(--sky); color: var(--navy-deep); }
.story-player.is-short .story-player-foot .video-share, .story-player.is-short .story-player-foot a { padding: 7px 12px; font-size: 11px; }

/* Reviews page: video testimonies. Computers: a grid of cards. Phones: a mix of big
   cards, half-width cards and title pills so the list doesn't feel like a wall. */
.vs-head { margin-bottom: 28px; }
/* Video lists (Explore more, shared videos, testimonies): rows like YouTube's search
   results, the thumbnail on the left with the title and topics beside it. Computers
   show two columns of rows; phones one. */
.vs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.vs-item { border-bottom: 1px solid var(--line); }
.vs-item[hidden] { display: none; }
.vs-btn { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; width: 100%; padding: 14px 0; border: 0; background: none; color: var(--navy); text-align: left; font: inherit; text-decoration: none; cursor: pointer; }
.vs-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--navy) center / cover no-repeat; overflow: hidden; }
.vs-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(4, 26, 51, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='white'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transition: opacity .15s; }
.vs-btn:hover .vs-thumb::after { opacity: 1; }
.vs-info { display: block; min-width: 0; }
.vs-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 700 .95rem/1.3 var(--font-head); }
.vs-meta { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.vs-btn:hover .vs-title { color: var(--blue); }
@media (max-width: 900px) { .vs-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .vs-btn { grid-template-columns: 42% 1fr; gap: 12px; padding: 12px 0; }
  .vs-thumb::after { display: none; }
  .vs-title { font-size: .92rem; }
  .vs-meta { margin-top: 4px; font-size: .76rem; }
}
/* Select-to-share on Explore more: a tick circle on each thumbnail. */
.selecting .vs-thumb::after { display: block; opacity: 1; left: 8px; top: 8px; width: 24px; height: 24px; margin: 0; border: 2px solid var(--white); box-sizing: border-box; background: rgba(4, 26, 51, .45); }
.selecting .picked .vs-thumb::after { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307274b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.selecting .picked .vs-thumb { outline: 3px solid var(--blue); outline-offset: -3px; }
.selecting .picked .vs-title { color: var(--blue); }


/* Phones: a calmer page. More room in each section, plain white for most sections
   (colour and photos only for a few pauses), one main button per row with the rest as
   text links, and flat cards without shadows. */
@media (max-width: 720px) {
  main > .section { padding: 52px 0; }
  main > .section.dark, .sun, .review-band { padding: 64px 0; }
  .patents-band { padding-bottom: 64px; }
  .section.tint, .results-band { background: var(--white); }
  .results-band { padding: 52px 0; }

  main .btn-row:not(.m-stack) .btn:not(:first-child) { padding: 8px 4px; border: 0; background: none; box-shadow: none; color: var(--navy); font-size: .7rem; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sky); }
  main .btn-row.m-chips { column-gap: 14px; }
  /* Three or more calls to action: one centred column (main button, then the text links). */
  main .btn-row:not(.m-stack):not(.m-chips):has(> :nth-child(3)) { flex-direction: column; align-items: center; gap: 6px; }
  main .dark .btn-row .btn:not(:first-child), main .patents-band .btn-row .btn:not(:first-child), main .review-band .btn-row .btn:not(:first-child), main .parallax .btn-row .btn:not(:first-child), main .sun .btn-row .btn:not(:first-child) { color: var(--white); }

  .story { padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .why-share { box-shadow: none; }
}

/* Testimony bands on computers and tablets: one quiet, centred row per band (picture
   beside a short quote or video title) with open space around it. The second written
   quote stays phone-only so the larger page doesn't fill up. */
@media (min-width: 721px) {
  .t-band { display: block; padding: 64px 0; background: var(--white); }
  #story-lifting { display: none; }
  figure.t-row .t-pic { background-position: center 22%; }
  .t-row { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: center; width: min(880px, 100% - 64px); margin: 0 auto; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
  .t-row.flip { grid-template-columns: 1fr 340px; }
  .t-row.flip .t-pic { order: 2; }
  .t-pic { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--navy) center / cover no-repeat; }
  button.t-pic { width: 100%; padding: 0; border: 0; cursor: pointer; }
  .t-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='white'/%3E%3C/svg%3E") center / 22px no-repeat; }
  .t-text { display: block; padding: 22px 0; border-block: 1px solid var(--line); }
  .t-kick { display: block; margin-bottom: 12px; color: var(--sky); font: 700 .7rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; }
  .t-quote, .t-title { display: block; margin: 0; color: var(--navy); font: 800 1.9rem/1.12 var(--font-head); font-stretch: 78%; text-transform: uppercase; }
  .t-title { font-size: 1.6rem; }
  .t-quote::before { content: "\201C"; display: block; height: .45em; margin-bottom: 8px; color: var(--sky); font: 900 3rem/1 Georgia, serif; }
  .t-who { display: block; margin-top: 14px; color: var(--muted); font: 700 .7rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
  .t-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-top: 8px; }
  .t-link { padding: 10px 0; border: 0; background: none; color: var(--blue); font: 800 .8rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
  .t-band .t-share { position: static; padding: 10px 0; border-radius: 0; background: none; backdrop-filter: none; color: var(--muted); font: 700 .74rem/1 var(--font-head); letter-spacing: .08em; }
  .t-band .t-share:hover { background: none; color: var(--blue); }
  .t-band .t-share svg { width: 14px; height: 14px; }
  .t-more { display: block; width: min(880px, 100% - 64px); margin: 22px auto 0; text-align: right; color: var(--navy); font: 700 .8rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
}

/* Computers: the results ring and the founder photo/video were taller than a laptop
   screen; both now fit in roughly one screen. */
@media (min-width: 861px) {
  .results-band { padding: 72px 0; }
  .results-ring { grid-template-columns: 1fr minmax(200px, 280px) 1fr; gap: 40px; max-width: 820px; margin-top: 28px; }
  .results-ring ul { gap: 26px; font-size: clamp(1rem, 1.3vw, 1.15rem); }
  .results-ring li::before { width: 28px; margin-bottom: 8px; }
  .results-band .btn-row { margin-top: 28px; }
  .bio-top { grid-template-columns: .8fr 1fr; gap: 48px; max-width: min(980px, 100% - 96px); margin: 32px auto 0; }
  .bio-top img { max-height: 440px; object-position: center 20%; }
  /* David's story text keeps to the same width as the photo and video above it. */
  .bio .two-col { max-width: min(980px, 100% - 96px); margin-inline: auto; }
  /* Hear from doctors: smaller phone picture so the intro and the video list fit one screen. */
  .doctors .split { grid-template-columns: minmax(0, 480px) 240px; justify-content: center; gap: 48px; }
  .doctors .phone { width: 240px; margin: -20px auto -30px; }
  .doctors .split > .center { text-align: left; }
  .doctors .split > .center .lead { margin-inline: 0; }
  .doctors .link-stack.light { margin-top: 32px; }
}

/* Phones: the header slides away while scrolling down and comes back on scrolling up (site.js). */
@media (max-width: 720px) {
  .site-header { transition: transform .25s ease; will-change: transform; }
  .site-header.tucked { transform: translateY(-100%); }
}

/* Phones: more room after the How to Wear Shop button, and "How X39 Works" as a simple
   list on a light blue panel (one line per point) instead of pill chips. */
@media (max-width: 720px) {
  #how-to-wear .works { margin-top: 64px; }
  body .features { display: block; margin: 18px 0 0; padding: 4px 18px; border-radius: 16px; background: var(--ice); text-align: left; }
  body .features div { display: flex; align-items: center; gap: 14px; padding: 14px 0; border: 0 !important; border-bottom: 1px solid rgba(7, 39, 75, .1) !important; border-radius: 0; background: none; font: 700 .95rem/1.3 var(--font-head); color: var(--navy); }
  body .features div:last-child { border-bottom: 0 !important; }
  body .features div::before { flex: none; width: 30px; height: 30px; margin: 0; border-radius: 50%; background-color: var(--white); background-size: 15px; }
}

/* Phones: slimmer buttons with softer corners instead of fat full-width pills. */
@media (max-width: 720px) {
  main .btn, .site-footer .btn { padding: 11px 20px; border-radius: 10px; font-size: .78rem; line-height: 1.2; }
  main .btn-row.m-chips .btn:first-child { flex: 0 0 auto; padding: 11px 26px; }
  .icon-steps .steps-cta { text-align: center; }
  .icon-steps .steps-cta .btn { width: auto; }
  .hero .m-stack .btn, .hero .m-stack .btn:first-child { border-radius: 8px; }
  #founder .btn { padding: 11px 14px; font-size: .68rem; letter-spacing: .04em; }
}

/* Phones: the Mission section's Shop button goes under the award image, centred. */
@media (max-width: 720px) {
  .mission .split { gap: 0; }
  .mission .split > div { display: contents; }
  .mission .split > img { order: 1; margin-top: 24px; }
  .mission .split > div > .btn-row { order: 2; justify-content: center; margin-top: 24px; }
}

/* ---------- Event RSVP page (/rsvp) ----------
   The flyer banner on top, then an Eventbrite-style page: details on the left and the
   RSVP card on the right (it stays in view while scrolling). Phones: one column with the
   card straight after the basics, and a "Reserve a spot" bar along the bottom. */
.ev { padding: 28px 0 96px; }
.ev-top { padding-bottom: 72px; }
.ev-more { padding-top: 24px; }
.ev-more .ev-body { max-width: 720px; }
.ev-wrap { max-width: 1120px; }
.ev-banner { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ev-banner img { display: block; width: 100%; height: auto; }
.ev svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "head aside" "expect aside"; grid-template-rows: auto 1fr; column-gap: 64px; margin-top: 40px; align-items: start; }
.ev-head { grid-area: head; }
.ev-body { grid-area: body; }
.ev-aside { grid-area: aside; position: sticky; top: 96px; scroll-margin-top: 96px; }
/* The event page has no site header, so the card can sit near the top while scrolling. */
body:not(:has(.site-header)) .ev-aside { top: 24px; scroll-margin-top: 24px; }
.ev-date { margin: 0; color: var(--blue); font: 700 .95rem/1.3 var(--font-head); letter-spacing: .04em; }
.ev h1 { margin: 8px 0 12px; color: var(--navy); font: 800 clamp(2.1rem, 4.2vw, 3.2rem)/1.08 var(--font-head); letter-spacing: -.01em; }
.ev-tagline { margin: 0; color: var(--muted); font-size: 1.1rem; }
.ev-tagline strong { color: var(--navy); }
.ev-facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 20px; }
.ev-facts li { display: flex; gap: 16px; align-items: flex-start; }
.ev-facts li > svg { box-sizing: content-box; padding: 11px; border-radius: 12px; background: var(--ice); color: var(--blue); }
.ev-facts div { display: grid; gap: 2px; line-height: 1.4; }
.ev-facts strong { color: var(--navy); font: 700 1.02rem/1.3 var(--font-head); }
.ev-facts span { color: var(--muted); }
.ev-facts a, .ev-link { color: var(--blue); font-weight: 700; font-size: .92rem; text-decoration: none; }
.ev-facts a:hover, .ev-link:hover { text-decoration: underline; }

.ev-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.ev-card h2 { margin: 6px 0 18px; color: var(--navy); font: 800 1.35rem/1.2 var(--font-head); }
.ev-card-top { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.ev-price { color: var(--navy); font: 800 1.5rem/1 var(--font-head); }
.ev-when { color: var(--muted); font-size: .88rem; }
.ev-card label { display: block; margin-bottom: 12px; color: var(--navy); font: 700 .86rem/1.3 var(--font-head); }
.ev-card label small { color: var(--muted); font-weight: 400; }
.ev-card input, .ev-card select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #c4d3e4; border-radius: 10px; background: var(--white); color: var(--ink); font: 400 1rem/1.3 var(--font-body); }
.ev-card input:focus, .ev-card select:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }
.ev-card input[aria-invalid="true"] { border-color: #c62828; }
.ev-card select + input { margin-top: 8px; }
.ev-card [hidden] { display: none; }
.ev-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.ev-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ev-submit { width: 100%; margin-top: 6px; padding: 16px 20px; border-radius: 12px; }
.ev-submit[disabled] { opacity: .7; cursor: wait; transform: none; }
.ev-error { margin: 10px 0 0; color: #c62828; font-size: .9rem; }
.ev-error:empty { display: none; }
.ev-fine { margin: 12px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.ev-done { text-align: center; }
.ev-done:focus { outline: none; }
.ev-check { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ice); color: var(--blue); font: 800 1.6rem/1 var(--font-head); }
.ev-done p { color: var(--muted); }
.ev-done-actions { display: grid; gap: 10px; margin-top: 18px; }
.ev-done-actions .btn { width: 100%; border-radius: 12px; }

.ev-body h2 { margin: 48px 0 14px; color: var(--navy); font: 800 1.5rem/1.2 var(--font-head); }
.ev-body h3 { margin: 26px 0 12px; color: var(--navy); font: 700 1.1rem/1.3 var(--font-head); }
.ev-lead { font-size: 1.1rem; }
.ev-improve { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-improve li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ice); color: var(--navy); font: 700 .95rem/1.3 var(--font-head); }
.ev-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--white); color: var(--blue); }
.ev-flyer { display: block; width: 100%; height: auto; margin-top: 24px; border-radius: 16px; }
.ev-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ev-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font: 700 .9rem/1 var(--font-head); }
.ev-chips svg { width: 18px; height: 18px; color: var(--blue); }
.ev-loc { margin: 0 0 14px; }
.ev-map { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 10px; }
.ev-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.ev-host { display: flex; align-items: center; gap: 14px; }
.ev-host-mark { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--navy); color: var(--white); }
.ev .ev-host-mark svg { width: 38px; height: 38px; stroke: none; }
.ev .ev-host-mark svg circle[fill="none"] { stroke-width: 3; }
.ev-host div { display: grid; gap: 2px; }
.ev-host strong { color: var(--navy); font: 700 1.05rem/1.3 var(--font-head); }
.ev-host a { color: var(--blue); font-weight: 700; font-size: .92rem; text-decoration: none; }
.ev-bar { display: none; }

@media (max-width: 960px) {
  .ev-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "aside" "expect"; margin-top: 26px; }
  .ev-aside { position: static; margin: 30px 0 4px; }
}
@media (max-width: 720px) {
  .ev { padding: 14px 0 110px; }
  .ev-top { padding-bottom: 52px; }
  .ev-banner { border-radius: 12px; }
  .ev h1 { font-size: 2rem; }
  .ev-tagline { font-size: 1rem; }
  .ev-card { padding: 20px 18px; border-radius: 16px; }
  .ev-improve { grid-template-columns: 1fr; }
  .ev-map iframe { height: 240px; }
  .ev-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -6px 24px rgba(7, 39, 75, .14); transition: transform .2s; }
  .ev-bar div { display: grid; line-height: 1.25; }
  .ev-bar strong { color: var(--navy); font: 800 1.05rem/1.2 var(--font-head); }
  .ev-bar span { color: var(--muted); font-size: .8rem; }
  .ev-bar .btn { padding: 13px 20px; border-radius: 10px; }
  .ev-bar.away { transform: translateY(110%); }
}

/* RSVP page: "What would you like to improve?" cards, between the RSVP section and the
   testimonies. Square-ish tiles: icon, a word or two, one short line. */
.ev-wants { padding: 72px 0 80px; background: var(--ice); }
.ev-wants h2 { margin: 0 0 32px; color: var(--navy); font: 800 clamp(1.7rem, 3vw, 2.4rem)/1.15 var(--font-head); text-align: center; }
.ev-cubes { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ev-cubes li { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; aspect-ratio: 1; padding: 22px; border-radius: 18px; background: var(--white); box-shadow: 0 8px 24px rgba(7, 39, 75, .08); }
.ev-cubes .ev-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: auto; border-radius: 14px; background: var(--ice); color: var(--blue); }
.ev-cubes svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-cubes strong { color: var(--navy); font: 800 1.15rem/1.2 var(--font-head); }
.ev-cubes li > span:last-child { color: var(--muted); font-size: .92rem; line-height: 1.35; }
@media (max-width: 720px) {
  .ev-wants { padding: 52px 0 56px; }
  .ev-wants h2 { margin-bottom: 22px; font-size: 1.6rem; }
  .ev-cubes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ev-cubes li { padding: 16px; border-radius: 16px; }
  .ev-cubes .ev-ic { width: 44px; height: 44px; border-radius: 12px; }
  .ev-cubes strong { font-size: 1.02rem; }
  .ev-cubes li > span:last-child { font-size: .84rem; }
  /* Room at the very bottom for the "Save your seat!" bar. */
  body:has(.ev-bar) .site-footer { padding-bottom: 96px; }
}

/* RSVP page polish. The hero image has an empty navy strip along its bottom: crop it
   off so the picture is all content. */
/* (the current hero image has no empty strip, so it is shown whole) */
/* Computers: a tighter page. Narrower column, smaller hero, a bigger RSVP card, and
   compact improve tiles instead of big squares. */
@media (min-width: 721px) {
  .ev-wrap { max-width: 1040px; }
  .ev { padding-top: 24px; }
  .ev-top { padding-bottom: 56px; }
  .ev-grid { grid-template-columns: minmax(0, 1fr) 440px; column-gap: 48px; margin-top: 32px; }
  .ev h1 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
  .ev-facts { margin-top: 24px; gap: 16px; }

  .ev-card { padding: 30px 30px 26px; }
  .ev-price { font-size: 1.9rem; }
  .ev-when { font-size: 1rem; }
  .ev-card label { margin-bottom: 14px; font-size: 1rem; }
  .ev-card input, .ev-card select { margin-top: 7px; padding: 14px 16px; font-size: 1.15rem; border-radius: 12px; }
  .ev-submit { padding: 19px 22px; font-size: 1rem; }
  .ev-fine { font-size: .92rem; }

  .ev-wants { padding: 56px 0 64px; }
  .ev-wants h2 { margin-bottom: 26px; font-size: clamp(1.6rem, 2.4vw, 2rem); }
  .ev-cubes { max-width: 1040px; gap: 14px; }
  .ev-cubes li { aspect-ratio: auto; justify-content: flex-start; gap: 4px; padding: 20px 20px 22px; border-radius: 16px; }
  .ev-cubes .ev-ic { width: 44px; height: 44px; margin: 0 0 12px; border-radius: 12px; }
  .ev-cubes svg { width: 22px; height: 22px; }
  .ev-cubes strong { font-size: 1.1rem; }
}

/* RSVP details: the date, place and price in one soft panel with larger text, then a
   short "What to expect" list, so the column beside the form feels full and calm. */
.ev-facts { margin: 26px 0 0; padding: 4px 22px; gap: 0; border-radius: 18px; background: var(--ice); }
.ev-facts li { gap: 16px; padding: 18px 0; align-items: center; }
.ev-facts li + li { border-top: 1px solid rgba(11, 79, 214, .12); }
.ev-facts li > svg { background: var(--white); }
.ev-facts strong { font-size: 1.12rem; }
.ev-facts span { font-size: 1.02rem; color: var(--ink); }
.ev-facts a { font-size: .95rem; }
.ev-expect { grid-area: expect; margin-top: 30px; }
.ev-expect h2 { margin: 0 0 12px; color: var(--navy); font: 800 1.3rem/1.2 var(--font-head); }
.ev-expect ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-expect li { position: relative; padding-left: 32px; font-size: 1.05rem; line-height: 1.45; }
.ev-expect li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (min-width: 721px) {
  .ev-tagline { font-size: 1.15rem; }
  .ev-facts strong { font-size: 1.2rem; }
  .ev-facts span { font-size: 1.1rem; }
  .ev-expect li { font-size: 1.12rem; }
}
@media (max-width: 720px) {
  .ev-facts { padding: 2px 16px; }
  .ev-facts li { padding: 14px 0; }
  .ev-expect { margin-top: 28px; }
}

/* Improve cards flip: hover (or keyboard focus) on computers, tap on phones (site.js
   adds .flipped). Front: icon, title, a short line. Back: navy, the bigger picture. */
.ev-cubes li.ev-flip { display: block; padding: 0; background: none; box-shadow: none; perspective: 1000px; cursor: pointer; outline: none; }
.ev-flip-in { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.ev-face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ev-front { align-items: flex-start; justify-content: flex-end; background: var(--white); box-shadow: 0 8px 24px rgba(7, 39, 75, .08); }
.ev-front > span:last-child { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.ev-back { justify-content: center; transform: rotateY(180deg); background: linear-gradient(140deg, var(--navy) 0%, var(--blue) 100%); color: var(--white); box-shadow: 0 12px 30px rgba(7, 39, 75, .25); }
.ev-cubes .ev-back strong { color: #9fd0ff; font: 800 .8rem/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.ev-back p { margin: 0; font: 600 1.05rem/1.4 var(--font-head); }
.ev-back a { margin-top: 6px; color: var(--white); font: 700 .85rem/1 var(--font-head); text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 4px; }
@media (hover: hover), (any-hover: hover) { .ev-flip:hover .ev-flip-in { transform: rotateY(180deg); } }
.ev-flip:focus-visible .ev-flip-in, .ev-flip.flipped .ev-flip-in { transform: rotateY(180deg); }
.ev-flip:focus-visible .ev-front, .ev-flip:focus-visible .ev-back { outline: 2px solid var(--sky); outline-offset: 2px; }
.ev-front .ev-ic { margin-bottom: auto; }
@media (prefers-reduced-motion: reduce) { .ev-flip-in { transition: none; } }
@media (min-width: 721px) {
  .ev-cubes li.ev-flip { aspect-ratio: auto; height: 180px; }
  .ev-face { padding: 20px 20px 22px; border-radius: 16px; }
  .ev-front { justify-content: flex-end; gap: 4px; }
  .ev-front .ev-ic { margin: 0 0 auto; }
}
@media (max-width: 720px) {
  .ev-cubes li.ev-flip { aspect-ratio: 1; }
  .ev-face { padding: 16px; border-radius: 16px; }
  .ev-front > span:last-child { font-size: .84rem; }
  .ev-back p { font-size: .95rem; }
  .ev-back a { font-size: .78rem; }
}

/* Computers: a shorter left column beside the RSVP form, so the whole section fits on
   one screen: tighter rows in the details panel and a closer "What you'll discover". */
@media (min-width: 721px) {
  .ev h1 { margin: 6px 0 8px; }
  .ev-facts { margin-top: 18px; padding: 2px 20px; }
  .ev-facts li { padding: 11px 0; gap: 14px; }
  .ev-facts li > svg { width: 18px; height: 18px; padding: 9px; border-radius: 10px; }
  .ev-facts strong { font-size: 1.05rem; }
  .ev-facts span { font-size: 1rem; line-height: 1.35; }
  .ev-facts a { font-size: .88rem; }
  .ev-expect { margin-top: 20px; }
  .ev-expect h2 { margin-bottom: 8px; font-size: 1.12rem; }
  .ev-expect ul { gap: 6px; }
  .ev-expect li { padding-left: 28px; font-size: 1rem; line-height: 1.4; }
  .ev-expect li::before { width: 18px; height: 18px; background-size: 11px; }
}

/* "You're in" is part of the page: once it shows, the RSVP column stops sticking on
   computers, so it scrolls with everything else. */
.ev-aside.is-done { position: static; }

/* RSVP form: the one-time "Is this the correct email?" check, in place of the button. */
.ev-confirm { margin-top: 6px; padding: 16px; border: 2px solid var(--sky); border-radius: 14px; background: var(--ice); text-align: center; }
.ev-confirm p { margin: 0 0 4px; color: var(--navy); font: 700 1rem/1.3 var(--font-head); }
.ev-confirm strong { display: block; color: var(--blue); font: 700 1.1rem/1.3 var(--font-body); overflow-wrap: anywhere; }
.ev-confirm-actions { display: grid; gap: 8px; margin-top: 14px; }
.ev-confirm-actions .btn { width: 100%; border-radius: 12px; padding: 14px 16px; }
.ev-card .ev-submit[hidden] { display: none; }

/* "RSVP with a different email address" under the already-RSVP'd card: a text link. */
.ev-other { display: block; margin: 16px auto 0; padding: 4px; border: 0; background: none; color: var(--blue); font: 700 .92rem/1.3 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ev-other[hidden], .ev-bar[hidden] { display: none; }

/* Improve tiles, reworked: the icon badge and the words sit together (no empty gap), the
   type is larger, each tile has a blue accent edge and a small "flip" cue in the corner,
   and it lifts a little on hover. */
.ev-wants { background: linear-gradient(180deg, #eaf4fc 0%, #dcedfa 100%); }
.ev-cubes li.ev-flip { aspect-ratio: auto; height: 172px; }
.ev-face { padding: 20px 20px 18px; border-radius: 16px; }
.ev-front { justify-content: center; align-items: flex-start; gap: 0; border: 1px solid #d5e5f3; border-left: 4px solid var(--sky); box-shadow: 0 6px 18px rgba(7, 39, 75, .07); transition: box-shadow .2s, border-color .2s; }
.ev-flip:hover .ev-front { box-shadow: 0 12px 28px rgba(7, 39, 75, .14); border-left-color: var(--blue); }
.ev-front .ev-ic, .ev-cubes .ev-front .ev-ic { width: 46px; height: 46px; margin: 0 0 14px; border-radius: 13px; background: linear-gradient(140deg, var(--blue), var(--sky)); color: var(--white); box-shadow: 0 6px 14px rgba(11, 79, 214, .25); }
.ev-cubes .ev-front svg { width: 24px; height: 24px; stroke-width: 2; }
.ev-cubes .ev-front strong { font: 800 1.45rem/1.15 var(--font-head); letter-spacing: -.01em; }
.ev-front > span:last-child { margin-top: 6px; color: var(--ink); opacity: .78; font-size: 1.12rem; line-height: 1.35; }
/* Corner cue: these cards turn over. */
.ev-front::after { content: ""; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4fd6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6M20 4v5h-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ev-back { padding: 22px; gap: 8px; }
.ev-cubes .ev-back strong { font-size: .95rem; }
.ev-back p { font-size: 1.25rem; line-height: 1.35; }
.ev-back a { font-size: 1.02rem; }
@media (min-width: 721px) {
  .ev-cubes { gap: 16px; }
  .ev-cubes li.ev-flip { height: 172px; }
  .ev-front .ev-ic { margin: 0 0 14px; }
}
@media (max-width: 720px) {
  .ev-cubes li.ev-flip { aspect-ratio: auto; height: 168px; }
  .ev-face { padding: 16px 14px 14px; }
  .ev-front .ev-ic, .ev-cubes .ev-front .ev-ic { width: 42px; height: 42px; margin-bottom: 12px; }
  .ev-cubes .ev-front strong { font-size: 1.08rem; }
  .ev-front > span:last-child { font-size: .88rem; margin-top: 4px; }
  .ev-front::after { top: 10px; right: 10px; width: 22px; height: 22px; background-size: 12px; }
  .ev-cubes .ev-back strong { font-size: .72rem; }
  .ev-back p { font-size: .95rem; }
  .ev-back a { font-size: .8rem; }
}

/* Flip on hover everywhere a pointer can hover, without relying on the browser reporting
   "hover" support (some privacy browsers don't). Touch-only phones flip on tap instead. */
.ev-flip:hover .ev-flip-in { transform: rotateY(180deg); }
@media (hover: none) and (pointer: coarse) { .ev-flip:hover:not(.flipped):not(:focus-visible) .ev-flip-in { transform: none; } }

/* Drifting testimonies: arrows at each side on computers (site.js adds them). */
.drifting { position: relative; }
.drift-arrow { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .15s, background .15s; }
.drift-arrow:hover { background: var(--sky); color: var(--white); transform: scale(1.06); }
.drift-arrow.prev { left: 28px; }
.drift-arrow.next { right: 28px; }
@media (max-width: 720px) { .drift-arrow { display: none; } }

/* ---------- Home page: upcoming-event hero and RSVP pop-up ---------- */
.ev-promo { padding: 44px 0 48px; background: #072a5c; background-image: radial-gradient(120% 140% at 85% 0%, #1466c4 0%, rgba(20, 102, 196, 0) 55%), linear-gradient(160deg, #0b3a78 0%, #041a33 100%); color: var(--white); }
.ev-promo-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.ev-promo-kick { display: inline-block; margin: 0 0 12px; padding: 7px 14px; border-radius: 8px; background: rgba(127, 211, 247, .16); color: #9fdcfa; font: 800 .85rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.ev-promo h2 { margin: 0 0 10px; color: var(--white); font: 800 clamp(2rem, 3.6vw, 3rem)/1.06 var(--font-head); letter-spacing: -.01em; }
.ev-promo-tag { margin: 0 0 22px; color: #d6efff; font-size: 1.15rem; line-height: 1.45; }
.ev-promo-tag strong { color: var(--white); }
.ev-promo-facts { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.ev-promo-facts li { display: flex; align-items: center; gap: 14px; }
.ev-promo-facts svg { box-sizing: content-box; flex: none; width: 22px; height: 22px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .12); fill: none; stroke: #9fdcfa; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-promo-facts div { display: grid; gap: 2px; line-height: 1.35; }
.ev-promo-facts strong { font: 700 1.18rem/1.3 var(--font-head); }
.ev-promo-facts span { color: #d6efff; font-size: 1.05rem; }
.ev-promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.ev-promo-actions .btn { padding: 17px 30px; border-radius: 12px; font-size: 1rem; cursor: pointer; }
.ev-promo-next { color: var(--white); font: 700 .95rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 5px; }
.ev-promo-pic { display: block; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: none; cursor: pointer; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); transition: transform .2s; }
.ev-promo-pic:hover { transform: translateY(-3px); }
.ev-promo-pic img { display: block; width: 100%; height: auto; }
#x39 { scroll-margin-top: 72px; }

dialog.ev-modal { width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--white); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 30px 80px rgba(4, 26, 51, .5); }
dialog.ev-modal::backdrop { background: rgba(4, 26, 51, .7); }
.ev-modal-head { padding: 26px 56px 20px 24px; background: #072a5c; background-image: linear-gradient(160deg, #0f4c97 0%, #072a5c 100%); color: var(--white); }
.ev-modal-head h2 { margin: 0 0 8px; color: var(--white); font: 800 1.6rem/1.12 var(--font-head); }
.ev-modal-head p:last-child { margin: 0; color: #d6efff; font-size: 1rem; line-height: 1.5; }
.ev-modal-close { position: sticky; float: right; top: 10px; z-index: 2; width: 38px; height: 38px; margin: 10px 10px -48px 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: var(--white); font: 400 1.6rem/1 var(--font-body); cursor: pointer; }
.ev-modal-close:hover { background: rgba(255, 255, 255, .32); }
.ev-modal-body, .ev-modal-body.is-done { position: static; margin: 0; }
.ev-modal-body .ev-card { border: 0; border-radius: 0; box-shadow: none; padding: 22px 24px 24px; }
.ev-modal-body .ev-card-top { display: none; }
.ev-modal-body svg { fill: none; }
/* Desktop text is scaled to 75%; the pop-up form keeps comfortable sizes. */
@media (min-width: 721px) {
  .ev-modal-body .ev-card label { font-size: 1.1rem; margin-bottom: 14px; }
  .ev-modal-body .ev-card input, .ev-modal-body .ev-card select { padding: 14px 16px; font-size: 1.25rem; border-radius: 12px; }
  .ev-modal-body .ev-submit { padding: 19px 22px; font-size: 1.1rem; }
  .ev-modal-body .ev-fine, .ev-modal-body .ev-error { font-size: 1rem; }
  .ev-modal-head h2 { font-size: 2rem; }
  .ev-modal-head p:last-child { font-size: 1.2rem; }
  .ev-modal-body .ev-done p, .ev-modal-body .ev-confirm p, .ev-modal-body .ev-confirm strong { font-size: 1.2rem; }
  .ev-modal-body .ev-other { font-size: 1.1rem; }
}
@media (max-width: 900px) {
  .ev-promo-in { grid-template-columns: 1fr; gap: 26px; }
  .ev-promo-pic { order: -1; }
}
@media (max-width: 720px) {
  .ev-promo { padding: 18px 0 30px; }
  .ev-promo-in { gap: 18px; }
  .ev-promo-pic { border-radius: 12px; }
  .ev-promo h2 { font-size: 1.7rem; }
  .ev-promo-tag { display: none; }
  .ev-promo-kick { margin-bottom: 10px; font-size: .72rem; }
  .ev-promo-facts { margin-bottom: 20px; gap: 12px; }
  .ev-promo-facts strong { font-size: 1rem; }
  .ev-promo-facts span { font-size: .92rem; }
  .ev-promo-actions { gap: 16px; }
  main .ev-promo-actions .btn { padding: 15px 22px; font-size: .88rem; border-radius: 10px; }
  .ev-promo-next { font-size: .78rem; }
  .ev-modal-head { padding: 20px 52px 16px 18px; }
  .ev-modal-head h2 { font-size: 1.35rem; }
  .ev-modal-head p:last-child { font-size: .92rem; }
  .ev-modal-body .ev-card { padding: 18px 18px 20px; }
}

/* RSVP pop-up, redesigned as an invitation: image + centred "You're invited" panel on
   the left, the form on the right; one column on phones (image, invitation, form). */
dialog.ev-modal { width: min(940px, calc(100vw - 24px)); border-radius: 24px; overflow: auto; }
dialog.ev-modal[open] { animation: ev-modal-in .35s cubic-bezier(.2, .8, .2, 1); }
dialog.ev-modal::backdrop { background: rgba(4, 20, 42, .72); backdrop-filter: blur(3px); }
@keyframes ev-modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.ev-modal[open] { animation: none; } }
.ev-modal-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ev-modal-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 30px 30px 34px; text-align: center; color: var(--white); background: #072a5c; background-image: radial-gradient(110% 80% at 50% 0%, #1a6fd0 0%, rgba(26, 111, 208, 0) 60%), linear-gradient(170deg, #0b3a78 0%, #041a33 100%); }
.ev-modal-side img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.ev-modal-kick { margin: 24px 0 0; padding: 8px 16px; border-radius: 999px; background: rgba(127, 211, 247, .16); color: #9fdcfa; font: 800 .82rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; }
.ev-modal-side h2 { margin: 14px 0 10px; color: var(--white); font: 800 2.9rem/1.02 var(--font-head); letter-spacing: -.02em; }
.ev-modal-lead { margin: 0 0 22px; max-width: 34ch; color: #d6efff; font-size: 1.25rem; line-height: 1.5; }
.ev-modal-facts { list-style: none; margin: 0; padding: 18px 0 0; width: 100%; display: grid; gap: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.ev-modal-facts li { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; }
.ev-modal-facts svg { box-sizing: content-box; flex: none; width: 20px; height: 20px; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .12); fill: none; stroke: #9fdcfa; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-modal-facts span { display: grid; gap: 1px; color: #d6efff; font-size: 1.1rem; line-height: 1.35; }
.ev-modal-facts strong { color: var(--white); font: 700 1.2rem/1.3 var(--font-head); }
.ev-modal-main { display: flex; flex-direction: column; justify-content: center; padding: 34px 34px 30px; background: var(--white); }
.ev-modal-title { margin-bottom: 18px; text-align: center; }
.ev-modal-title h3 { margin: 0 0 4px; color: var(--navy); font: 800 2.1rem/1.1 var(--font-head); letter-spacing: -.01em; }
.ev-modal-title p { margin: 0; color: var(--muted); font-size: 1.2rem; }
.ev-modal-body .ev-card { padding: 0; background: none; }
.ev-modal-body .ev-done { padding: 8px 0; }
.ev-modal-close { position: absolute; float: none; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; margin: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--navy); font: 400 1.5rem/1 var(--font-body); cursor: pointer; box-shadow: 0 4px 14px rgba(4, 26, 51, .25); }
.ev-modal-close:hover { background: var(--ice); }
@media (max-width: 760px) {
  dialog.ev-modal { width: min(440px, calc(100vw - 20px)); border-radius: 20px; }
  .ev-modal-in { grid-template-columns: 1fr; }
  .ev-modal-side { padding: 16px 18px 22px; }
  .ev-modal-side img { border-radius: 12px; }
  .ev-modal-kick { margin-top: 18px; font-size: .68rem; padding: 7px 13px; }
  .ev-modal-side h2 { margin: 12px 0 8px; font-size: 2rem; }
  .ev-modal-lead { margin-bottom: 16px; font-size: .98rem; }
  .ev-modal-facts { padding-top: 14px; gap: 10px; }
  .ev-modal-facts span { font-size: .88rem; }
  .ev-modal-facts strong { font-size: .95rem; }
  .ev-modal-main { padding: 22px 18px 22px; }
  .ev-modal-title { margin-bottom: 14px; }
  .ev-modal-title h3 { font-size: 1.5rem; }
  .ev-modal-title p { font-size: .95rem; }
  .ev-modal-close { position: sticky; float: right; top: 10px; right: auto; margin: 10px 10px -48px 0; }
}

/* Home page hero switcher (site.js wraps the event hero and the X39 hero in .hero-switch):
   both sit in the same spot and crossfade; the taller one sets the height. */
.hero-switch { position: relative; display: grid; overflow: hidden; background: #041a33; }
.hero-switch > section { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.hero-switch > section.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.hero-switch .ev-promo { display: flex; align-items: center; padding-bottom: 64px; }
.hero-dots { grid-area: 1 / 1; align-self: end; justify-self: center; z-index: 3; display: flex; gap: 10px; padding: 0 0 20px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .25s, background .25s; }
.hero-dots button[aria-current] { width: 32px; background: var(--sky); }
.hero-arrow { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--white); font-size: 1.3rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: background .15s; }
.hero-arrow:hover { background: rgba(255, 255, 255, .3); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }
@media (max-width: 1420px) { .hero-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-switch > section, .hero-switch > section.is-on { transition: none; } }

/* Event hero, light version: pale sky like the light flyer, navy type, bright blue accents. */
.ev-promo { background: #e6f4fd; background-image: radial-gradient(90% 120% at 88% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #f4fbff 0%, #cfe9fa 100%); color: var(--navy); }
.ev-promo-kick { background: rgba(10, 160, 230, .14); color: #0a7fc2; }
.ev-promo h2 { color: #0b2a5c; }
.ev-promo-tag { color: var(--muted); }
.ev-promo-tag strong { color: #0b2a5c; }
.ev-promo-facts svg { background: var(--white); stroke: var(--blue); box-shadow: 0 4px 12px rgba(11, 58, 120, .12); }
.ev-promo-facts strong { color: #0b2a5c; }
.ev-promo-facts span { color: var(--muted); }
.ev-promo-actions .btn { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px rgba(11, 79, 214, .3); }
.ev-promo-actions .btn:hover { background: #0941b3; }
.ev-promo-next { color: #0b2a5c; }
.ev-promo-pic { box-shadow: 0 20px 50px rgba(11, 58, 120, .28); }
.hero-switch { background: #e6f4fd; }
.on-light-slide .hero-dots button { background: rgba(11, 42, 92, .28); }
.on-light-slide .hero-dots button[aria-current] { background: var(--blue); }
.on-light-slide .hero-arrow { background: rgba(11, 42, 92, .1); color: #0b2a5c; }
.on-light-slide .hero-arrow:hover { background: rgba(11, 42, 92, .2); }
/* The pop-up keeps its dark badge colours. */
.ev-modal-side .ev-promo-kick { background: rgba(127, 211, 247, .16); color: #9fdcfa; }
/* Event hero on computers: larger type so it fills its space with confidence. */
@media (min-width: 901px) {
  .ev-promo h2 { font-size: clamp(2.8rem, 4.4vw, 4rem); margin-bottom: 14px; }
  .ev-promo-tag { font-size: 1.4rem; margin-bottom: 28px; }
  .ev-promo-kick { font-size: 1rem; padding: 9px 16px; margin-bottom: 16px; }
  .ev-promo-facts { gap: 18px; margin-bottom: 32px; }
  .ev-promo-facts strong { font-size: 1.45rem; }
  .ev-promo-facts span { font-size: 1.25rem; }
  .ev-promo-facts svg { width: 26px; height: 26px; padding: 12px; }
  .ev-promo-actions .btn { padding: 20px 36px; font-size: 1.2rem; }
  .ev-promo-next { font-size: 1.1rem; }
}

/* ---------- Event hero as an invitation (.evh): warm and sunlit, not blue ---------- */
.ev-promo.evh { position: relative; overflow: hidden; padding: 56px 0 84px; color: #1d2a3f; background: #fff8ee; background-image: radial-gradient(60% 80% at 92% 8%, rgba(255, 196, 92, .55) 0%, rgba(255, 196, 92, 0) 62%), radial-gradient(50% 70% at 4% 100%, rgba(255, 153, 120, .28) 0%, rgba(255, 153, 120, 0) 60%), linear-gradient(180deg, #fffdf8 0%, #fff3e0 100%); }
.hero-switch { background: #fff8ee; }
.evh-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.evh-kick { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--white); color: #b4530a; font: 800 .95rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(180, 83, 10, .14); }
.evh-kick span { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 5px rgba(245, 158, 11, .22); }
.ev-promo.evh h2 { margin: 0 0 16px; color: #14233d; font: 800 clamp(3rem, 5vw, 4.6rem)/1.02 var(--font-head); letter-spacing: -.02em; }
.ev-promo.evh h2 [data-when-word] { color: #e2620d; }
.ev-promo.evh h2 em { display: block; margin-top: 10px; color: #3b4a63; font: 600 .42em/1.25 var(--font-head); font-style: normal; letter-spacing: 0; }
.evh-lead { margin: 0 0 26px; max-width: 46ch; color: #4a5568; font-size: 1.4rem; line-height: 1.55; }
.evh-when { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; padding: 16px 20px 16px 16px; max-width: 560px; border-radius: 18px; background: var(--white); box-shadow: 0 12px 30px rgba(120, 72, 20, .12); }
.evh-cal { flex: none; width: 78px; border-radius: 14px; overflow: hidden; background: var(--white); text-align: center; box-shadow: 0 0 0 1px rgba(20, 35, 61, .1); }
.evh-cal span { display: block; padding: 5px 0; background: #e2620d; color: var(--white); font: 800 .85rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.evh-cal strong { display: block; padding-top: 4px; color: #14233d; font: 800 2.4rem/1 var(--font-head); }
.evh-cal small { display: block; padding: 2px 0 7px; color: #8a6a4a; font: 700 .8rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.evh-where { display: grid; gap: 3px; min-width: 0; }
.evh-where strong { color: #14233d; font: 700 1.3rem/1.3 var(--font-head); }
.evh-where span { color: #5b6677; font-size: 1.15rem; line-height: 1.35; }
.evh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.evh-cta { display: inline-flex; align-items: center; gap: 12px; padding: 20px 34px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff8a3d 0%, #f25c05 100%); color: var(--white); font: 800 1.25rem/1 var(--font-head); letter-spacing: .04em; cursor: pointer; box-shadow: 0 14px 30px rgba(242, 92, 5, .35); transition: transform .15s, box-shadow .15s; }
.evh-cta span { transition: transform .15s; }
.evh-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(242, 92, 5, .42); }
.evh-cta:hover span { transform: translateX(4px); }
.evh .ev-promo-next { color: #14233d; font-size: 1.05rem; text-decoration-color: #f59e0b; }
.evh-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; color: #6b5a45; font: 700 1rem/1 var(--font-head); letter-spacing: .04em; }
.evh-note span { display: inline-flex; align-items: center; gap: 8px; }
.evh-note span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #2f9e62 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.evh-art { position: relative; padding: 18px 10px 46px 18px; }
.evh-card { display: block; width: 100%; padding: 10px; border: 0; border-radius: 22px; background: var(--white); cursor: pointer; transform: rotate(2deg); box-shadow: 0 30px 60px rgba(88, 52, 14, .28); transition: transform .25s; }
.evh-card:hover { transform: rotate(0deg) translateY(-4px); }
.evh-card img { display: block; width: 100%; height: auto; border-radius: 14px; }
.evh-sticker { position: absolute; top: -6px; right: -4px; display: grid; place-content: center; width: 108px; height: 108px; border-radius: 50%; background: #ffd23f; color: #14233d; text-align: center; font: 700 .78rem/1.15 var(--font-head); letter-spacing: .06em; text-transform: uppercase; transform: rotate(12deg); box-shadow: 0 12px 26px rgba(120, 72, 20, .3); }
.evh-sticker strong { display: block; font: 800 1.9rem/1 var(--font-head); letter-spacing: 0; }
.evh-quote { position: absolute; left: -14px; bottom: 0; max-width: 300px; margin: 0; padding: 16px 18px; border-radius: 18px 18px 18px 4px; background: var(--white); transform: rotate(-2deg); box-shadow: 0 18px 40px rgba(88, 52, 14, .22); }
.evh-quote blockquote { margin: 0; color: #14233d; font: 600 1.1rem/1.4 Georgia, 'Times New Roman', serif; }
.evh-quote figcaption { margin-top: 6px; color: #b4530a; font: 800 .78rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.on-light-slide .hero-dots button { background: rgba(20, 35, 61, .25); }
.on-light-slide .hero-dots button[aria-current] { background: #f25c05; }
@media (max-width: 900px) {
  .evh-in { grid-template-columns: 1fr; gap: 26px; }
  .evh-art { order: -1; max-width: 520px; margin: 0 auto; padding: 14px 16px 40px; }
}
@media (max-width: 720px) {
  .ev-promo.evh { padding: 18px 0 64px; }
  .evh-in { gap: 18px; }
  .evh-art { padding: 10px 14px 34px 6px; }
  .evh-card { padding: 7px; border-radius: 16px; }
  .evh-card img { border-radius: 10px; }
  .evh-sticker { width: 76px; height: 76px; top: -6px; right: 0; font-size: .56rem; }
  .evh-sticker strong { font-size: 1.3rem; }
  .evh-quote { left: 0; max-width: 240px; padding: 11px 13px; }
  .evh-quote blockquote { font-size: .84rem; }
  .evh-quote figcaption { font-size: .62rem; }
  .evh-kick { margin-bottom: 12px; font-size: .68rem; padding: 7px 12px 7px 10px; }
  .ev-promo.evh h2 { font-size: 2.3rem; margin-bottom: 10px; }
  .ev-promo.evh h2 em { font-size: .46em; }
  .evh-lead { display: none; }
  .evh-when { gap: 12px; padding: 12px 14px 12px 12px; margin-bottom: 18px; border-radius: 14px; }
  .evh-cal { width: 60px; border-radius: 11px; }
  .evh-cal span { font-size: .66rem; }
  .evh-cal strong { font-size: 1.7rem; }
  .evh-cal small { font-size: .62rem; }
  .evh-where strong { font-size: .95rem; }
  .evh-where span { font-size: .86rem; }
  .evh-actions { gap: 16px; }
  .evh-cta { padding: 16px 26px; font-size: 1rem; }
  .evh .ev-promo-next { font-size: .78rem; }
  .evh-note { margin-top: 16px; gap: 6px 14px; font-size: .78rem; }
  .evh-note span::before { width: 15px; height: 15px; background-size: 9px; }
}
/* Phones: the quote card sits below the picture's details instead of covering them. */
@media (max-width: 720px) { .evh-art { padding-bottom: 62px; } .evh-quote { bottom: 4px; } }

/* Event hero as an ANNOUNCEMENT: a banner strip across the top, the event name as the
   headline, the date and time as the loudest line, and a live countdown. */
.ev-promo.evh { padding-top: 0; flex-direction: column; align-items: stretch; }
.hero-switch .ev-promo.evh { display: flex; }
.evh-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 0; padding: 13px 20px; background: linear-gradient(90deg, #f25c05 0%, #ff8a3d 50%, #f25c05 100%); color: var(--white); font: 700 1.05rem/1.2 var(--font-head); letter-spacing: .04em; text-align: center; }
.evh-strip svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.evh-strip strong { padding: 5px 12px; border-radius: 6px; background: var(--white); color: #c2410c; font: 800 .9rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.evh-strip span { opacity: .95; }
.evh .evh-in { flex: 1; padding-top: 40px; align-content: center; }
.ev-promo.evh h2 { font-size: clamp(2.8rem, 4.6vw, 4.2rem); margin-bottom: 12px; }
.evh-date { margin: 0 0 14px; color: #e2620d; font: 800 clamp(1.7rem, 2.6vw, 2.3rem)/1.15 var(--font-head); letter-spacing: -.01em; }
.evh-lead { margin-bottom: 22px; font-size: 1.3rem; }
.evh-count { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.evh-count div { min-width: 86px; padding: 12px 10px 10px; border-radius: 14px; background: #14233d; color: var(--white); text-align: center; box-shadow: 0 10px 22px rgba(20, 35, 61, .22); }
.evh-count strong { display: block; font: 800 2.3rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.evh-count span { display: block; margin-top: 5px; color: #ffcf9f; font: 700 .78rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.evh-count p { margin: 0 0 0 6px; color: #6b5a45; font: 700 1.05rem/1.2 var(--font-head); }
.evh-count[hidden] { display: none; }
.evh-when { margin-bottom: 24px; }
@media (max-width: 720px) {
  .evh-strip { padding: 9px 12px; gap: 6px 10px; font-size: .72rem; }
  .evh-strip svg { width: 18px; height: 18px; }
  .evh-strip strong { font-size: .64rem; padding: 4px 8px; }
  .evh .evh-in { padding-top: 16px; }
  .ev-promo.evh h2 { font-size: 1.9rem; margin-bottom: 6px; }
  .evh-date { font-size: 1.25rem; margin-bottom: 12px; }
  .evh-count { gap: 7px; margin-bottom: 14px; }
  .evh-count div { min-width: 62px; padding: 9px 6px 8px; border-radius: 11px; }
  .evh-count strong { font-size: 1.5rem; }
  .evh-count span { font-size: .58rem; }
  .evh-count p { font-size: .78rem; }
  .evh-when { margin-bottom: 16px; }
  .evh-art { padding-bottom: 50px; }
}
/* Nothing sits on top of the event picture: the "Free" sticker hangs off the card's top
   right corner (clear of her face) and the quote card tucks under the bottom edge. */
.evh-art { padding: 78px 62px 86px 18px; }
.evh-sticker { top: 0; right: 0; }
.evh-quote { left: 0; bottom: 0; }
@media (max-width: 900px) { .evh-art { padding: 70px 56px 84px 14px; } }
@media (max-width: 720px) {
  .evh-art { padding: 52px 44px 74px 6px; }
  .evh-sticker { top: 0; right: 0; }
  .evh-quote { bottom: 0; }
}
/* Phones: no quote card, so "Save my seat" stays near the first screen. */
@media (max-width: 720px) { .evh-quote { display: none; } .evh-art { padding: 46px 44px 12px 6px; } }

/* "Free" seal: a gold starburst with ring lettering that turns slowly, navy centre. */
.evh-sticker { display: block; width: 140px; height: 140px; border-radius: 0; background: none; box-shadow: none; transform: rotate(10deg); filter: drop-shadow(0 12px 18px rgba(120, 72, 20, .35)); }
.evh-sticker svg { display: block; width: 100%; height: 100%; font-family: var(--font-head); }
.evh-spin { transform-origin: 60px 60px; animation: evh-spin 28s linear infinite; }
@keyframes evh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .evh-spin { animation: none; } }
.evh-art { padding-top: 96px; padding-right: 76px; }
@media (max-width: 900px) { .evh-sticker { width: 120px; height: 120px; } .evh-art { padding-top: 82px; padding-right: 64px; } }
@media (max-width: 720px) { .evh-sticker { width: 96px; height: 96px; } .evh-art { padding: 64px 52px 12px 6px; } }
@media (max-width: 720px) { .evh-sticker { width: 88px; height: 88px; } .evh-art { padding: 48px 46px 8px 6px; } .evh-count { margin-bottom: 12px; } }

/* ---------- Event hero fits one screen ----------
   The X39 hero is exactly one screen tall (100vh - 60px on computers, 100svh - 102px on
   phones) and the two share that space, so the event slide has to fit inside it. It
   tightens in steps as the window gets shorter. */
.hero-switch .ev-promo.evh { padding-bottom: 54px; }
.evh .evh-in { padding-top: 28px; }
@media (min-width: 901px) {
  .hero-switch { height: calc(100vh - 60px); min-height: 520px; }
  .hero-switch > section { min-height: 0; }
  .evh-art { padding: 70px 70px 80px 18px; }
  .evh-sticker { width: 124px; height: 124px; }
}
@media (min-width: 901px) and (max-height: 860px) {
  .evh-lead { display: none; }
  .evh-date { margin-bottom: 18px; }
  .evh-strip { padding: 10px 20px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .ev-promo.evh h2 { font-size: clamp(2.4rem, 3.6vw, 3.2rem); margin-bottom: 8px; }
  .evh-kick { margin-bottom: 12px; }
  .evh-date { font-size: 1.7rem; margin-bottom: 14px; }
  .evh-count { margin-bottom: 14px; }
  .evh-count div { min-width: 76px; padding: 9px 8px 8px; }
  .evh-count strong { font-size: 1.9rem; }
  .evh-when { margin-bottom: 16px; padding: 12px 16px 12px 12px; }
  .evh-cta { padding: 16px 30px; font-size: 1.15rem; }
  .evh .evh-in { padding-top: 18px; }
  .hero-switch .ev-promo.evh { padding-bottom: 46px; }
  .evh-art { padding: 56px 60px 70px 18px; max-width: 520px; justify-self: center; }
  .evh-sticker { width: 108px; height: 108px; }
  .hero-dots { padding-bottom: 14px; }
}
@media (min-width: 901px) and (max-height: 660px) {
  .evh-kick { display: none; }
  .evh-count p { display: none; }
  .evh-quote { display: none; }
  .evh-art { padding-bottom: 20px; max-width: 440px; }
  .evh-strip span { display: none; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .hero-switch > .hero { min-height: 0; }
}
/* Phones: one screen is 100svh minus the header and link ribbon (102px). */
@media (max-width: 720px) {
  .hero-switch { height: calc(100svh - 102px); min-height: 500px; }
  .hero-switch > section { min-height: 0; }
  .hero-switch .ev-promo.evh { padding-bottom: 40px; }
  .evh-strip { padding: 8px 12px; }
  .evh-strip span { display: none; }
  .evh .evh-in { padding-top: 6px; gap: 10px; align-content: start; }
  .evh-art { width: 84%; margin: 0 auto; padding: 34px 34px 4px 4px; }
  .evh-sticker { width: 78px; height: 78px; }
  .evh-kick { margin-bottom: 8px; }
  .ev-promo.evh h2 { font-size: 1.75rem; margin-bottom: 4px; }
  .evh-date { font-size: 1.02rem; margin-bottom: 10px; }
  .evh-count { margin-bottom: 10px; }
  .evh-count div { min-width: 58px; padding: 7px 6px 6px; }
  .evh-count strong { font-size: 1.35rem; }
  .evh-when { margin-bottom: 12px; padding: 10px 12px 10px 10px; }
  .evh-where span:last-child { display: none; }
  .evh-cta { padding: 14px 24px; }
  .hero-dots { padding-bottom: 12px; }
}
@media (max-width: 720px) and (max-height: 760px) {
  .evh-kick { display: none; }
  .evh-art { width: 70%; padding: 26px 28px 2px 4px; }
  .evh-sticker { width: 64px; height: 64px; }
}
@media (max-width: 720px) and (max-height: 680px) {
  .evh-count { display: none; }
  .evh-art { width: 62%; }
  .ev-promo.evh h2 { font-size: 1.55rem; }
}
/* Phones with room to spare: the event slide's content sits in the middle, not at the top. */
@media (max-width: 720px) { .evh .evh-in { align-content: center; } }

/* RSVP pop-up in the announcement hero's warm palette: cream and gold on the invitation
   side, navy type, orange accents and buttons (instead of the navy and blue version). */
.ev-modal-side { color: #1d2a3f; background: #fff8ee; background-image: radial-gradient(90% 60% at 85% 0%, rgba(255, 196, 92, .6) 0%, rgba(255, 196, 92, 0) 65%), radial-gradient(70% 50% at 0% 100%, rgba(255, 153, 120, .3) 0%, rgba(255, 153, 120, 0) 60%), linear-gradient(180deg, #fffdf8 0%, #fff0d9 100%); }
.ev-modal-side img { padding: 8px; background: var(--white); border-radius: 18px; box-shadow: 0 18px 40px rgba(88, 52, 14, .26); transform: rotate(-1.5deg); }
.ev-modal-kick, .ev-modal-side .ev-promo-kick { background: var(--white); color: #b4530a; box-shadow: 0 6px 16px rgba(180, 83, 10, .14); }
.ev-modal-side h2 { color: #14233d; }
.ev-modal-lead { color: #4a5568; }
.ev-modal-facts { border-top-color: rgba(120, 72, 20, .16); }
.ev-modal-facts svg { background: var(--white); stroke: #e2620d; box-shadow: 0 4px 12px rgba(120, 72, 20, .14); }
.ev-modal-facts span { color: #5b6677; }
.ev-modal-facts strong { color: #14233d; }
.ev-modal-title h3 { color: #14233d; }
.ev-modal-body .ev-submit, .ev-modal-body .btn-primary { border: 0; background: linear-gradient(135deg, #ff8a3d 0%, #f25c05 100%); color: var(--white); box-shadow: 0 12px 26px rgba(242, 92, 5, .32); }
.ev-modal-body .ev-submit:hover, .ev-modal-body .btn-primary:hover { background: linear-gradient(135deg, #ff7a26 0%, #de5204 100%); }
.ev-modal-body .ev-card input:focus, .ev-modal-body .ev-card select:focus { outline-color: #ff8a3d; border-color: #ff8a3d; }
.ev-modal-body .ev-confirm { border-color: #ffb066; background: #fff5e8; }
.ev-modal-body .ev-confirm strong, .ev-modal-body .ev-other { color: #c2410c; }
.ev-modal-body .ev-check { background: #fff0d9; color: #e2620d; }
.ev-modal-body .btn-outline { border-color: #14233d; color: #14233d; }
dialog.ev-modal::backdrop { background: rgba(38, 24, 8, .62); }
