/* Bex Insights. Plain and quiet. Its own look: dots, not the lines of adrianbex.com. */

/* Fonts are stored with the page (SIL Open Font License, see fonts/). */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --blue: #1B58A8;
  --deep: #0F3A73;
  --deep-2: #0c2f5e;
  --red: #B3121F;
  --snow: #F9F9F9;
  --white: #ffffff;
  --ink: #1C1C1C;
  --slate: #5B6470;
  --mist: #E3E6EA;
  --sky: #DCE8F5;
  --tint: #F1F5FA;
  --on-deep: #b6cae3;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body { margin: 0; background: var(--snow); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Logo */
.logo { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; background: var(--red); color: var(--white); font-family: var(--serif); width: 26px; height: 26px; border-radius: 6px; line-height: 1; flex: none; }
/* At 26px the word "Insights" would be too small to read, so the small logo shows "Bex" only. */
.logo-bex { font-size: 11.5px; font-weight: 500; }
.logo-ins { display: none; }

/* The adrianbex.com header, matched to the main site: same height, logo,
   type and link style. The current page is black with a 2px underline. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-top { background: var(--snow); border-bottom: 1px solid #E2E2DF; color: var(--ink); }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; height: 59px; margin: 0 auto; padding: 0 24px; }
.site-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; }
.site-brand img { border-radius: 6px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { padding-bottom: 2px; border-bottom: 2px solid transparent; color: #5B5B5B; font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.site-menu-btn { display: none; padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
.site-menu-btn:hover { background: #ECECEA; }
.site-mobile { border-top: 1px solid #E2E2DF; }
.site-mobile-in { display: flex; flex-direction: column; padding: 8px 16px; }
.site-mobile a { padding: 10px 12px; border-radius: 8px; color: #5B5B5B; font-size: 14px; font-weight: 500; text-decoration: none; }
.site-mobile a:hover { color: var(--ink); background: #ECECEA; }
.site-mobile a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 767.98px) {
  .site-bar { height: 58px; padding: 0 16px; }
  .site-nav { display: none; }
  .site-menu-btn { display: inline-flex; }
}

/* The Bex Insights bar, under it. */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mist); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.nav { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand-name { font-size: 16px; font-weight: 600; }
.brand-name { white-space: nowrap; }
/* "Coming soon" until the launch: in the bar, in the hero and on the menu item. */
.soon { padding: 2px 8px; border: 1px solid var(--red); border-radius: 999px; color: var(--red); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.soon-line { display: inline-block; margin-bottom: 22px; padding: 5px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; color: #e3ebf5; font-size: 14px; font-weight: 500; }
.nav-soon { margin-left: 6px; padding: 1px 6px; border: 1px solid #E2E2DF; border-radius: 999px; color: #5B5B5B; font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; vertical-align: middle; }
.top-cta { display: none; }
/* Phones: the page's sections as a short row under the bar. */
.nav-phone { display: none; }
.nav a { color: var(--slate); text-decoration: none; font-size: 14px; padding: 4px 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .3s var(--ease); }
.nav a:hover { color: var(--ink); background-size: 100% 1px; }
.nav .nav-cta { color: var(--white); background: var(--blue); padding: 7px 16px; border-radius: 999px; font-weight: 500; transition: background-color .2s; }
.nav .nav-cta:hover { color: var(--white); background: var(--deep); }

/* Deep band */
.band { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(160deg, #153d72 0%, var(--deep) 45%, var(--deep-2) 100%); }
.on-deep { color: var(--on-deep); }

/* Hero */
.hero { padding: 104px 0 112px; }
.terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: 64px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(42px, 6vw, 76px); line-height: 1.04; letter-spacing: -.015em; max-width: 13ch; }
.lead { margin-top: 28px; max-width: 34em; font-size: 19px; line-height: 1.6; color: #e3ebf5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-photo { margin: 0; justify-self: end; width: 100%; max-width: 340px; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--deep-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* One load sequence: the hero comes in line by line. */
.rise { animation: rise .9s var(--ease) both; }
.hero h1.rise { animation-delay: .08s; }
.lead.rise { animation-delay: .2s; }
.actions.rise { animation-delay: .32s; }
.hero-photo.rise { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 24px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.pill-white { background: var(--white); color: var(--deep); }
.pill-white:hover { background: var(--sky); }
.pill-line { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.pill-line:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.pill-blue { background: var(--blue); color: var(--white); }
.pill-blue:hover { background: var(--deep); }
.pill:disabled { opacity: .45; cursor: default; }

/* Sections */
.section { padding: 96px 0; }
.tint { background: var(--tint); }
h2 { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: -.01em; }
.sub { margin-top: 12px; color: var(--slate); max-width: 40em; }
h3 { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
h4 { font-size: 15px; font-weight: 600; }

/* Service rows */
.rows { margin-top: 44px; border-top: 1px solid var(--ink); }
.row { border-bottom: 1px solid var(--mist); }
.row-head { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 32px; gap: 32px; align-items: baseline; text-align: left; background: none; border: 0; padding: 30px 0; cursor: pointer; }
.row-name { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; transition: color .2s; }
.row-sum { color: var(--slate); font-size: 16px; }
.row-head:hover .row-name { color: var(--blue); }
.row-icon { position: relative; width: 16px; height: 16px; justify-self: end; align-self: center; }
.row-icon::before, .row-icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.row-icon::after { transform: rotate(90deg); }
.row-head[aria-expanded="true"] .row-icon::after { transform: rotate(0deg); }

.svc { padding: 4px 0 40px; }
.svc:not([hidden]) { animation: open .45s var(--ease) both; }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.svc > h4 { margin-bottom: 16px; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; counter-reset: step; }
.flow li { position: relative; padding-top: 16px; border-top: 1px solid var(--mist); font-size: 15px; color: var(--slate); }
.flow li span { display: block; font-family: var(--serif); font-size: 22px; color: var(--blue); line-height: 1; margin-bottom: 10px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.cols.four { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.rule { border-top: 1px solid var(--ink); padding-top: 18px; }
.rule h4 { margin-bottom: 10px; }
.rule ul li { position: relative; padding-left: 16px; margin: 6px 0; font-size: 15px; color: var(--slate); }
.rule ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--slate); }
.rule p { font-size: 15px; color: var(--slate); }
.svc .book { margin-top: 36px; }

/* Packages */
.pill-line-dark { color: var(--deep); border-color: var(--deep); background: transparent; }
.pill-line-dark:hover { background: var(--deep); color: var(--white); }
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.pkg { position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 24px; }
.pkg::before { content: ""; position: absolute; left: 0; top: -2px; width: 40px; height: 3px; border-radius: 2px; background: var(--red); transition: opacity .3s; }
.pkg.landing::before { opacity: 0; }
.pkg h3 { font-size: 28px; }
.pkg-for { margin-top: 6px; color: var(--slate); font-size: 15px; min-height: 3.2em; }
.pkg .figure { margin: 18px 0 14px; font-size: 40px; }
.ticks { flex: 1; margin-bottom: 28px; }
.ticks li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--mist); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.pkg .pill { align-self: flex-start; }
.cols.two { grid-template-columns: 1fr 1fr; }
.rule p + p { margin-top: 10px; }
/* Under the cards: one white box for what every package includes, then the
   details with light lines, so nothing below reads as a fourth package. */
.pkg-box { margin-top: 72px; padding: 32px 36px 28px; border: 1px solid var(--mist); border-radius: 18px; background: var(--white); }
.pkg-box h3, .facts h3 { font-size: 26px; }
.pkg-box-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; margin-top: 20px; }
.pkg-box h4, .fact h4 { margin-bottom: 8px; }
.pkg-box .ticks { margin-bottom: 0; }
.facts { margin-top: 64px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 8px; }
.fact { padding: 20px 0 22px; border-bottom: 1px solid var(--mist); }
.fact p { font-size: 15px; color: var(--slate); }
.fact p + p { margin-top: 10px; }
.scopes { margin: 0; }
.scopes dt { font-weight: 600; font-size: 15px; margin-top: 10px; }
.scopes dt:first-child { margin-top: 0; }
.scopes dd { margin: 2px 0 0; font-size: 15px; color: var(--slate); }
#scopes { scroll-margin-top: 96px; }

/* Prices */
.cols.four h3 { font-size: 22px; }
.figure { font-family: var(--serif); font-size: 34px; line-height: 1.15; color: var(--ink); margin: 14px 0 6px; }
.rule p.figure { color: var(--ink); font-size: 30px; }
.note { margin-top: 40px; color: var(--slate); font-size: 15px; }

/* About */
.about h2 { margin-bottom: 28px; }
.statement { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.3; max-width: 24em; }
.about-text { margin-top: 20px; color: var(--slate); max-width: 38em; }

/* Contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.hours { margin-top: 32px; border-top: 1px solid var(--ink); }
.hours li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--mist); font-size: 15px; }
.hours b { font-weight: 600; }
.hours span { color: var(--slate); }
.hours .muted { color: var(--slate); border-bottom: 0; }
.panel { background: var(--white); border: 1px solid var(--mist); border-radius: 20px; padding: 36px; }

/* Form */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.field legend { padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.req { color: var(--slate); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--snow); border: 1px solid var(--mist); border-radius: 10px; padding: 11px 13px; transition: border-color .2s, background-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(27, 88, 168, .15); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.picker { padding: 22px; border: 1px solid var(--mist); border-radius: 16px; background: var(--white); }
.picker-label { font-family: var(--serif); font-size: 22px; }
.picker > .tz { margin: 2px 0 16px; }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.cal-nav { width: 34px; height: 34px; border: 1px solid var(--mist); border-radius: 50%; background: var(--white); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-wd { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); padding: 4px 0 6px; }
.cal-day { position: relative; aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font-size: 14px; color: #a3aab3; cursor: default; }
.cal-day.open { color: var(--blue); font-weight: 600; background: #EEF4FB; cursor: pointer; }
.cal-day.open::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue); }
.cal-day.open:hover { background: var(--sky); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--slate); }
.cal-day[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.cal-day[aria-pressed="true"]::after { background: var(--white); }
.times-day { font-weight: 600; font-size: 15px; }
.time-list { display: grid; gap: 8px; margin-top: 12px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.time { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--blue); border-radius: 10px; background: var(--white); color: var(--blue); cursor: pointer; font-size: 15px; transition: background-color .2s, color .2s; }
.time small { color: var(--slate); font-size: 12px; }
.time:hover { background: #EEF4FB; }
.time[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.time[aria-pressed="true"] small { color: var(--sky); }
.time.taken { border-color: var(--mist); background: transparent; color: #9aa1aa; cursor: default; }
.time.taken b { text-decoration: line-through; font-weight: 400; }
.time.taken small { color: #9aa1aa; }
.picked { display: flex; flex-direction: column; margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--red); background: #FBF1F2; font-size: 15px; }
.picked span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.more-link { margin-top: 16px; padding: 0; border: 0; background: none; color: var(--blue); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.more { display: grid; gap: 8px; margin-top: 10px; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--mist); border-radius: 10px; background: var(--white); text-align: left; cursor: pointer; font-size: 15px; }
.opt small { color: var(--slate); font-size: 13px; }
.opt[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.picker textarea.other { width: 100%; font: inherit; font-size: 15px; background: var(--white); border: 1px solid var(--mist); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.picker textarea.other:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 88, 168, .15); }
@media (max-width: 640px) {
  .cal-wrap { grid-template-columns: 1fr; gap: 20px; }
  .time-list { max-height: none; }
  .picker { padding: 16px; }
}
.radios { display: flex; gap: 24px; margin-top: 8px; }
.radios label { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.radios input { accent-color: var(--blue); width: 18px; height: 18px; }
.err { min-height: 0; font-size: 13px; color: var(--red); }
.form-err { margin-top: 14px; font-size: 14px; color: var(--red); }
.form-actions { margin-top: 24px; }
.loading { color: var(--slate); }
.done h3 { margin-bottom: 8px; }
.done p { color: var(--slate); }

/* Enquiry and call picker */
#enquiry h3 { margin-bottom: 18px; }
.tz { color: var(--slate); font-size: 14px; }

/* Booking */
.mail-line { margin-top: 24px; font-size: 15px; color: var(--slate); }
#booking h3 { margin-bottom: 18px; }
#booking h3.step-h { margin-top: 36px; }
.fallback p { color: var(--slate); margin-bottom: 24px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions .tz { flex: 1 1 220px; }
.picker + .err { display: block; margin-top: 8px; }
.picker textarea.other { margin-top: 10px; }
.time b { font-weight: 500; }
.done h3 { font-size: 26px; }
.done p + p { margin-top: 12px; }
.done-help { font-size: 15px; }
.copy-text { width: 100%; margin-top: 14px; font: inherit; font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--snow); border: 1px solid var(--mist); border-radius: 10px; padding: 12px; resize: vertical; }
.done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.done-actions .more-link { margin-top: 0; }

/* Footer */
.foot { padding: 72px 0; }
.foot-in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.foot-name { font-family: var(--serif); font-size: 30px; margin-bottom: 6px; }
.foot-brand .on-deep { font-size: 15px; }
.foot-mail { color: var(--white); text-decoration: none; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 2px; transition: border-color .2s; }
.foot-mail:hover { border-color: var(--white); }

/* The main site's links, at the foot of every visit. */
.foot-site { position: relative; margin-top: 40px; }
.foot-site-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; }
.foot-site b { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep); }
.foot-site a { color: var(--white); text-decoration: none; }
.foot-site a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Colour and the seven steps */
.section h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 16px; border-radius: 2px; background: var(--red); }
.tint { background: var(--sky); }
.figure, .rule p.figure { color: var(--red); }
.nav .nav-cta { background: var(--red); }
.nav .nav-cta:hover { background: #8f0e19; }
.flow li.you { border-top-color: var(--blue); }
.flow li.bex { border-top-color: var(--red); }
.flow li.both { border-top-color: var(--slate); }
.flow li.you span { color: var(--blue); }
.flow li.bex span { color: var(--red); }
.flow li.both span { color: var(--slate); }
.flow li.you, .flow li.bex, .flow li.both { border-top-width: 2px; }
.svc .flow { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .svc .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc .flow { grid-template-columns: 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; font-size: 14px; color: var(--slate); }
.legend li { display: flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid; }
.dot.you { border-color: var(--blue); background: #E8F0F9; }
.dot.bex { border-color: var(--red); background: #F8E7E9; }
.dot.both { border-color: var(--slate); background: var(--mist); }
.steps { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--mist); }
.step { position: relative; }
.step .num { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid; font-family: var(--serif); font-size: 20px; }
.step.you .num { border-color: var(--blue); color: var(--blue); background: #E8F0F9; }
.step.bex .num { border-color: var(--red); color: var(--red); background: #F8E7E9; }
.step.both .num { border-color: var(--slate); color: var(--slate); background: var(--mist); }
.step h3 { margin-top: 16px; font-size: 20px; }
.step p { margin-top: 6px; font-size: 14px; color: var(--slate); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* Customer journey */
.wrap.wide { max-width: 1328px; }
#process h2{max-width:30ch; }
.journey-desktop { margin-top: 40px; }
.journey-desktop svg { width: 100%; height: auto; display: block; }
.journey-mobile { display: none; }
.jstep { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--mist); }
.jstep .num { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid; font-family: var(--serif); font-size: 19px; }
.jstep.you .num { border-color: var(--blue); color: var(--blue); background: #E8F0F9; }
.jstep.bex .num { border-color: var(--red); color: var(--red); background: #F8E7E9; }
.jstep.both .num { border-color: var(--slate); color: var(--slate); background: var(--mist); }
.jstep { align-items: start; }
.jstep summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; cursor: pointer; list-style: none; }
.jstep summary::-webkit-details-marker { display: none; }
.jstep summary::after { content: "+"; font-size: 22px; color: var(--slate); }
.jstep details[open] summary::after { content: "\2212"; }
.jstep h3 { font-size: 22px; margin: 0; }
.jstep details[open] summary { margin-bottom: 6px; }
.jstep p { font-size: 15px; margin-top: 4px; }
.jstep p b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.jstep p.beh { color: var(--slate); }
.jstep.focal p.get { color: var(--red); font-weight: 600; }
@media (max-width: 900px) {
  .journey-desktop { display: none; }
  .journey-mobile { display: block; margin-top: 32px; }
}

/* Motion on scroll. Only when the script runs, so nothing hides without it. */
.motion .section h2::after { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .15s; }
.motion .section h2.in::after { transform: none; }
.motion .journey-desktop svg { clip-path: inset(0 100% 0 0); }
.motion .journey-desktop.in svg { animation: wipe 1.6s var(--ease) forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.journey-desktop.in .focal-box { animation: glow 1.4s ease-in-out 1.5s 2; }
@keyframes glow { 50% { filter: drop-shadow(0 0 10px rgba(179, 18, 31, .55)); } }
.motion .jstep { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.motion .jstep.in { opacity: 1; transform: none; }
.jstep details > p { animation: open .35s var(--ease) both; }

/* Scroll story. Without the script the chapters are plain white sections. */
.stage-view { position: relative; }
.story-canvas, .stage-white, .shape-slot, .story-marks { display: none; }
.chapter { padding: 72px 0 0; background: var(--snow); }
.chapter:last-of-type { padding-bottom: 24px; }
.chapter-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.chapter-num { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--red); }
.chapter h2 { margin-top: 10px; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.chapter-body { margin-top: 20px; max-width: 26em; font-size: 19px; line-height: 1.6; color: var(--slate); }
.chapter-link { display: inline-block; margin-top: 28px; color: var(--blue); text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 1px solid rgba(27, 88, 168, .4); padding-bottom: 2px; transition: border-color .2s; }
.chapter-link:hover { border-color: var(--blue); }
.chapter-link::after { content: " \2193"; }

.story .stage { position: relative; background: linear-gradient(160deg, #153d72 0%, var(--deep) 45%, var(--deep-2) 100%); }
.story .stage-view { position: sticky; top: 52px; height: calc(100vh - 52px); height: calc(100svh - 52px); overflow: hidden; }
.story .story-canvas, .story .stage-white { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.story .stage-white { background: var(--snow); opacity: 0; }
.story .hero, .story .chapter { position: absolute; inset: 0; display: flex; align-items: center; padding: 0; background: none; }
.story .hero > .terrain { display: none; }
.story .hero-in, .story .chapter-in { width: 100%; }
.story .chapter { visibility: hidden; opacity: 0; }
.story .hero h1 .w { display: inline-block; will-change: transform; }
.story .shape-slot { display: block; width: 100%; max-width: 520px; justify-self: end; aspect-ratio: 6 / 5; max-height: 62vh; }
.story .story-marks { display: flex; flex-direction: column; gap: 12px; position: absolute; right: 28px; top: 50%; transform: translateY(-50%); opacity: 0; }
.story-marks li { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--slate); transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.story-marks li.on { background: var(--red); border-color: var(--red); transform: scale(1.3); }
/* Packages slides up over the end of the stage, so the dots can fly into its cards (story.js). */
.story #packages { position: relative; z-index: 1; }
.story .stage.short .story-marks { display: none; }

/* The seven steps light up with scroll. */
.process-view { position: relative; }
.story #process.scrub { padding: 0; }
.story #process.scrub .process-view { position: sticky; top: 52px; min-height: calc(100vh - 52px); min-height: calc(100svh - 52px); display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.story #process.scrub .process-view > .wrap { width: 100%; }
.story .top { background: rgba(255, 255, 255, .985); }
.motion .scrub .journey-desktop svg, .motion .scrub .journey-desktop.in svg { clip-path: none; animation: none; }
.scrub .journey-desktop.in .focal-box { animation: none; }
.scrub .journey-desktop svg.lit .focal-box { animation: glow 1.4s ease-in-out 2; }
.j-ring { filter: drop-shadow(0 0 6px rgba(179, 18, 31, .5)); }

@media (max-width: 900px) {
  .chapter-in { grid-template-columns: 1fr; gap: 24px; }
  .story .chapter { align-items: flex-start; padding-top: 32px; }
  .story .shape-slot { order: -1; justify-self: center; width: auto; height: 36vh; height: 36svh; max-width: 100%; }
  .story .hero-photo { max-width: 150px; }
  .story .hero-in { gap: 28px; }
  .story .story-marks { right: 10px; }
}
@media (max-width: 560px) {
  .chapter-body { font-size: 17px; }
  /* The pinned view runs under the floating browser bar; the padding keeps the text above it. */
  .story .stage-view { height: calc(100lvh - 52px); }
  .story .hero { align-items: flex-start; align-items: safe center; padding: clamp(20px, 5svh, 44px) 0 calc(100lvh - 100svh); }
  .story .hero-in { gap: 20px; }
  .story .chapter { padding: 16px 0 calc(100lvh - 100svh); }
  .story .chapter-in { gap: 16px; }
  .story .shape-slot { height: 30svh; }
  .story .chapter h2 { font-size: 36px; }
  .story .chapter-body { font-size: 16px; line-height: 1.55; margin-top: 14px; }
  .story .chapter-link { margin-top: 18px; }
  .story .hero-photo { order: -1; justify-self: start; width: 64px; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); }
  .story .hero-photo img { object-position: 50% 20%; }
  .story .hero h1 { font-size: clamp(32px, 9.6vw, 40px); }
  .story .hero .lead { font-size: 16px; line-height: 1.55; margin-top: 14px; }
  .story .hero .soon-line { margin-bottom: 12px; font-size: 12px; padding: 3px 10px; }
  .story .hero .actions { margin-top: 22px; gap: 10px; }
  .story .hero .pill { padding: 12px 20px; font-size: 14px; }
  .story .hero .pill-line { background: rgba(15, 58, 115, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .story .story-marks { display: none; }
}
@media (max-width: 560px) and (max-height: 500px) {
  .story .hero-photo { display: none; }
  .story .hero h1 { font-size: 32px; }
  .story .shape-slot { height: 24svh; }
  .story .chapter h2 { font-size: 32px; }
}

/* Small screens: the Bex Insights bar keeps its logo and the consultation button. */
@media (max-width: 720px) {
  .nav { display: none; }
  .top .soon { display: none; }
  .nav-phone { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px; font-size: 14px; white-space: nowrap; scrollbar-width: none; }
  .nav-phone::-webkit-scrollbar { display: none; }
  .nav-phone a { color: var(--slate); text-decoration: none; }
  html { scroll-padding-top: 100px; }
  .top-cta { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 14px; font-weight: 500; text-decoration: none; }
}

/* Small screens */
@media (max-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { justify-self: start; max-width: 260px; }
  .row-head { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 16px; }
  .row-sum { grid-column: 1; }
  .row-icon { grid-row: 1; grid-column: 2; }
  .cols, .cols.four { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pkgs { grid-template-columns: 1fr; gap: 48px; }
  .pkg-for { min-height: 0; }
  .pkg-box-cols, .facts-grid { grid-template-columns: 1fr; }
  .pkg-box { padding: 24px 20px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .cols, .cols.four, .cols.two, .fgrid { grid-template-columns: 1fr; }
  .panel { padding: 24px 18px; }
}

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