/* Booth Education Consulting | bootheducation.com
   A dark page in the brand video's world. The BEC mountain (live 3D on laptops and desktops, a looping video
   elsewhere) opens the page and closes it, framed as the logo. Between, the text sections sit on plain night and
   BEC's own aerial footage shows through three windows: the fall ridge behind Services, the valley behind
   "Built in the North" and About, and the peak before Contact. The text never moves with the scroll.
   Brand: BEC Red #8E211E, Dark #1A1A1A, Off-white #F5F2EF, White #FFFFFF, Grey #6B7280.
   Newsreader for headlines, Inter for everything else. The logo only ever sits on off-white.
   html.fx (set in the head when motion is welcome) allows animation; without it the page is still. */

/* ---------- fonts (self-hosted, latin, variable) ---------- */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 107%; ascent-override: 90%; descent-override: 22.4%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 92%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; }

/* ---------- tokens ---------- */
:root {
  --red: #8E211E;
  --dark: #1A1A1A;
  --off: #F5F2EF;
  --white: #FFFFFF;
  --grey: #6B7280;
  --red-lit: #D8473E;       /* the video's lit red, for the thread and glows on dark */
  --red-hover: #A3271F;
  --night: #121011;         /* the video's night, a shade of BEC Dark */
  --card: rgba(28, 24, 25, .88);
  --card-2: rgba(36, 31, 32, .94);
  --on-dark: #F5F2EF;
  --on-dark-2: rgba(245, 242, 239, .76);
  --on-dark-3: rgba(245, 242, 239, .52);
  --line-dark: rgba(245, 242, 239, .14);

  --serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Inter Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1440px;
  --header-h: 72px;

  --fs-xl: clamp(3.1rem, 1.25rem + 7.2vw, 9rem);
  --fs-l: clamp(2.4rem, 1.3rem + 4.2vw, 5.5rem);
  --fs-lede: clamp(1.125rem, 1rem + .55vw, 1.5rem);
  --fs-body: 1.0625rem;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --radius: 18px;
  --focus: var(--off);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); color-scheme: dark; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: transparent; color: var(--on-dark); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--red); color: var(--white); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
#main:focus { outline: none; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 300; padding: 10px 16px; border-radius: 8px; background: var(--off); color: var(--dark); font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip-link:focus-visible { transform: none; --focus: var(--red); }
.nw { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display-xl, .display-l, .svc-title, .proj-title, .why-grid h3, .tools-lede, .footer-big { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; }
.display-xl { font-size: var(--fs-xl); line-height: .98; letter-spacing: -.028em; }
.display-l { font-size: var(--fs-l); line-height: 1.02; letter-spacing: -.024em; }
.display-xl em, .display-l em, .svc-title em, .tools-lede em, .footer-big em { font-style: italic; letter-spacing: -.012em; }
.display-l em { color: #F0D9D3; }

/* headlines split into words by site.js: each word turns up out of its own line, once, in 3D */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .1em .14em; margin: -.04em -.1em -.14em; perspective: 520px; }
.wi { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
html.fx-ready [data-split] .wi { transition: transform 1.15s var(--ease) calc(var(--i, 0) * 60ms), opacity .8s var(--ease) calc(var(--i, 0) * 60ms); }
html.fx-ready [data-split]:not(.is-in) .wi { transform: translate3d(0, 92%, 0) rotateX(-72deg); opacity: 0; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.55em; border: 0; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .4s var(--ease); }
.btn svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.btn-sm { min-height: 40px; padding: 0 1.15em; font-size: .9375rem; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 10px 30px -12px rgba(142, 33, 30, .8); }
.btn-primary:hover { background: var(--red-hover); box-shadow: 0 14px 40px -10px rgba(216, 71, 62, .7); transform: translateY(-2px); }
.btn-ghost { background: rgba(18, 16, 17, .25); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(245, 242, 239, .42); }
.btn-ghost:hover { background: rgba(245, 242, 239, .1); box-shadow: inset 0 0 0 1px rgba(245, 242, 239, .75); transform: translateY(-2px); }
.btn:active { transform: scale(.98); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); color: var(--on-dark); transition: background-color .45s var(--ease), box-shadow .45s var(--ease), transform .5s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0 0 -48px 0; background: linear-gradient(180deg, rgba(18, 16, 17, .62), rgba(18, 16, 17, 0)); pointer-events: none; transition: opacity .45s var(--ease); }
.site-header.is-scrolled { background: rgba(18, 16, 17, .7); box-shadow: 0 1px 0 rgba(245, 242, 239, .08); -webkit-backdrop-filter: saturate(1.2) blur(16px); backdrop-filter: saturate(1.2) blur(16px); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden:focus-within, html.menu-open .site-header { transform: none; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; border-radius: 10px; }
.brand-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--off); box-shadow: 0 0 0 1px rgba(26, 26, 26, .06); flex: none; transition: transform .9s var(--ease); }
.brand:hover .brand-tile { transform: perspective(300px) rotateY(360deg); }
.brand-tile img { width: 30px; height: auto; backface-visibility: visible; }
.brand-name { font-weight: 600; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2; }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a { position: relative; display: inline-block; padding: 8px 0; font-weight: 500; font-size: .9375rem; text-decoration: none; opacity: .86; transition: opacity .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--red-lit); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px; border: 0; background: none; font-weight: 600; font-size: .875rem; }
.menu-btn-lines { position: relative; width: 22px; height: 12px; }
.menu-btn-lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn-lines i:first-child { top: 2px; }
.menu-btn-lines i:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:first-child { top: 5.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:last-child { top: 5.5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: rgba(18, 16, 17, .96); color: var(--on-dark); overflow-y: auto; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.menu-list { perspective: 900px; }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--header-h) + 5vh); padding-bottom: 32px; }
.menu-list li { border-bottom: 1px solid var(--line-dark); }
.menu-list a { display: flex; align-items: baseline; gap: 18px; padding: 10px 0; font-family: var(--serif); font-size: clamp(2.1rem, 8.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; text-decoration: none; transition: color .25s, transform .5s var(--ease); }
.menu-list a:hover { color: #F0D9D3; transform: translateX(8px); }
.menu-foot { display: grid; gap: 6px; margin-top: 40px; padding-top: 24px; color: var(--on-dark-2); }
.menu-foot a { text-decoration: none; color: var(--on-dark); font-weight: 500; }
html.menu-open { overflow: hidden; }
html.menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.menu-open .site-header::before { opacity: 0; }
html.fx .menu .menu-list li { opacity: 0; transform: translate3d(0, 26px, -60px) rotateX(-40deg); transform-origin: 50% 100%; transition: opacity .5s var(--ease), transform .8s var(--ease); }
html.fx .menu.is-in .menu-list li { opacity: 1; transform: none; }
.menu-list li:nth-child(2) { transition-delay: .04s !important; }
.menu-list li:nth-child(3) { transition-delay: .08s !important; }
.menu-list li:nth-child(4) { transition-delay: .12s !important; }
.menu-list li:nth-child(5) { transition-delay: .16s !important; }
.menu-list li:nth-child(6) { transition-delay: .2s !important; }
@media (max-width: 1040px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 420px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- the title card (first visit) ---------- */
.curtain { display: none; }
html.has-curtain .curtain { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: var(--night); animation: curtain-safety .01s linear 4.2s forwards; }
html.curtain-lift .curtain { transform: translate3d(0, -100%, 0); transition: transform 1.05s var(--ease-io); }
.curtain-inner { display: grid; justify-items: center; gap: 28px; perspective: 700px; }
.curtain-tile { display: grid; place-items: center; width: clamp(128px, 12vw, 156px); aspect-ratio: 1; border-radius: 24px; background: var(--off); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(245, 242, 239, .2); animation: curtain-in 1.1s var(--ease) both; }
.curtain-tile img { width: 72%; }
html.curtain-lift .curtain-inner { transform: translate3d(0, 30vh, 0); opacity: 0; transition: transform 1.05s var(--ease-io), opacity .5s; }
.curtain-bar { position: relative; display: block; width: 120px; height: 2px; background: rgba(216, 71, 62, .2); overflow: hidden; }
.curtain-bar i { position: absolute; inset: 0; background: var(--red-lit); box-shadow: 0 0 10px var(--red-lit); transform-origin: left; animation: curtain-bar 2.2s var(--ease) forwards; }
@keyframes curtain-in { from { opacity: 0; transform: rotateY(-70deg) translateZ(-80px); } }
@keyframes curtain-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes curtain-safety { to { visibility: hidden; } }

/* ---------- the stage: the mountain behind the whole page ---------- */
.world { position: fixed; inset: 0 0 auto 0; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; z-index: -1; pointer-events: none; background: var(--night); }
.world-media { position: absolute; inset: 0; }
.world-poster, .world-video, .world-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.world-video { opacity: 0; transition: opacity 1.6s var(--ease); }
.world-video.is-playing { opacity: 1; }
.world-still { opacity: 0; }
.world-still.is-shot { transition: opacity 1.6s var(--ease), transform 3.2s var(--ease); transform: scale(1.06); }
.world-still.is-shot.is-on { opacity: 1; transform: none; }
.world-live, .world-thread, .world-glow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.world-live.is-on, .world-thread.is-on { opacity: 1; }
.world-thread { overflow: visible; }
.world-thread .wt-glow { fill: none; stroke: #D8473E; stroke-opacity: .55; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.world-thread .wt-core { fill: none; stroke: #E0514A; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.world-thread .wt-pen { transition: opacity .3s; }
.world-glow { background: linear-gradient(180deg, rgba(142, 33, 30, 0) 35.2%, rgba(142, 33, 30, .10) 60.6%, rgba(142, 33, 30, 0) 81.5%); mix-blend-mode: screen; }
.world-aurora { position: absolute; inset: 0; width: 100%; height: 100%; display: block; mix-blend-mode: screen; opacity: 0; transition: opacity 1.6s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 28%, rgba(0, 0, 0, .55) 46%, transparent 64%); mask-image: linear-gradient(to bottom, #000 0%, #000 28%, rgba(0, 0, 0, .55) 46%, transparent 64%); }
.world-aurora.is-on { opacity: .95; }
.world-shade { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 90% at 60% 45%, rgba(18, 16, 17, 0) 40%, rgba(18, 16, 17, .55) 100%); }
.world-grain { position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
html.fx .world-grain { animation: grain 1.2s steps(6) infinite; }
html.motion-paused .world-grain { animation: none; }
@keyframes grain { 0% { transform: translate3d(0, 0, 0); } 20% { transform: translate3d(-4%, 3%, 0); } 40% { transform: translate3d(3%, -5%, 0); } 60% { transform: translate3d(-6%, -2%, 0); } 80% { transform: translate3d(5%, 4%, 0); } 100% { transform: translate3d(0, 0, 0); } }
main { position: relative; overflow-x: clip; }
main > section, .journey, .landwrap > section { position: relative; }

/* the pause control for the moving background, reachable from every section */
.motion-toggle { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: rgba(18, 16, 17, .62); color: var(--on-dark-2); font-size: .75rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-dark); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .25s, color .25s; }
.motion-toggle:hover { background: rgba(36, 31, 32, .9); color: var(--on-dark); }
.motion-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.motion-toggle .i-play { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 640px) {
  .motion-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .motion-toggle { width: 36px; padding: 0; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(90deg, rgba(18, 16, 17, .78) 0%, rgba(18, 16, 17, .45) 38%, rgba(18, 16, 17, .08) 70%, rgba(18, 16, 17, 0) 100%), linear-gradient(180deg, rgba(18, 16, 17, .45) 0%, rgba(18, 16, 17, 0) 22%, rgba(18, 16, 17, 0) 64%, rgba(18, 16, 17, .7) 100%); }
.hero-stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: center; }
html.world-is-live .hero-stage { touch-action: pan-y; }
html.is-holding, html.is-holding * { -webkit-user-select: none; user-select: none; }
html.hold-ready .hero-stage { -webkit-touch-callout: none; }
.hero-copy { position: relative; padding-top: calc(var(--header-h) * .6); }
.hero-copy h1 em { display: block; }
.hero-lede { max-width: 36ch; margin-top: clamp(20px, 3vh, 32px); font-size: var(--fs-lede); line-height: 1.45; color: var(--on-dark-2); text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 4.4vh, 44px); }
.hero-foot { position: absolute; left: 0; right: 0; bottom: max(24px, env(safe-area-inset-bottom)); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; }
.scroll-cue { grid-column: 2; display: grid; justify-items: center; gap: 10px; font-size: .6875rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark-3); }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: rgba(245, 242, 239, .22); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--red-lit); box-shadow: 0 0 8px var(--red-lit); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-18px); } 60%, 100% { transform: translateY(46px); } }
.hero-controls { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
.hold { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px 0 6px; border: 0; border-radius: 999px; background: rgba(245, 242, 239, .1); color: var(--on-dark); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; transition: background-color .25s, box-shadow .3s; }
.hold:hover { background: rgba(245, 242, 239, .18); }
.hold[aria-pressed="true"] { box-shadow: 0 0 0 1px rgba(216, 71, 62, .6), 0 0 40px -6px rgba(240, 120, 90, .55); }
.hold-ring { position: relative; width: 32px; height: 32px; flex: none; }
.hold-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.hold-track { fill: none; stroke: rgba(245, 242, 239, .25); stroke-width: 2; }
.hold-fill { fill: none; stroke: var(--red-lit); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--hold, 0) * 100); }
.hold-ring i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--off); transform: scale(calc(.7 + var(--hold, 0) * .7)); box-shadow: 0 0 calc(var(--hold, 0) * 18px) rgba(255, 196, 160, .9); }
/* the hero arrives: words turn up, then the rest eases in (after the title card when there is one) */
html.fx [data-intro] { opacity: 0; transform: translate3d(0, 18px, 0); animation: intro-safety .01s linear 3.6s forwards; }
html.fx.hero-in [data-intro] { animation: none; opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
html.fx.hero-in .hero-lede { transition-delay: .45s; }
html.fx.hero-in .actions { transition-delay: .58s; }
html.fx.hero-in .hero-foot { transition-delay: .9s; }
html.fx .hero [data-split] .wi { transform: translate3d(0, 92%, 0) rotateX(-72deg); opacity: 0; animation: intro-safety .01s linear 3.6s forwards; }
html.fx.hero-in .hero [data-split] .wi { animation: none; transform: none; opacity: 1; transition: transform 1.25s var(--ease) calc(.1s + var(--i, 0) * 85ms), opacity .9s var(--ease) calc(.1s + var(--i, 0) * 85ms); }
@keyframes intro-safety { to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .hero { background: linear-gradient(180deg, rgba(18, 16, 17, .55) 0%, rgba(18, 16, 17, .35) 30%, rgba(18, 16, 17, .72) 55%, rgba(18, 16, 17, .92) 100%); }
  .scroll-cue { display: none; }
}

/* ---------- section backgrounds: the mountain shows behind the top and the end; the text sections between sit on
   plain night, and the footage windows (below) carry the pictures ---------- */
.intro { background: linear-gradient(180deg, rgba(18, 16, 17, 0) 0%, rgba(18, 16, 17, .64) 18%, rgba(18, 16, 17, .7) 66%, rgba(18, 16, 17, .97) 100%); }
.work { background: var(--night); }
/* a faint night sky over the top of the plain sections (the map draws its own): stars only where the sky is, fading out
   before the body text so no star sits in a line of type */
.why, .reel, .tools { background: var(--night); isolation: isolate; }
.why::before, .reel::before, .tools::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='523' height='523'%3E%3Ccircle cx='236.6' cy='292.8' r='1.24' fill='%23F5F2EF' fill-opacity='0.33'/%3E%3Ccircle cx='265.6' cy='307.2' r='0.46' fill='%23F5F2EF' fill-opacity='0.35'/%3E%3Ccircle cx='329.4' cy='414.7' r='0.45' fill='%23F5F2EF' fill-opacity='0.26'/%3E%3Ccircle cx='47.4' cy='423.4' r='0.78' fill='%23F5F2EF' fill-opacity='0.14'/%3E%3Ccircle cx='513.7' cy='504.6' r='0.73' fill='%23F5F2EF' fill-opacity='0.40'/%3E%3Ccircle cx='82.4' cy='7.8' r='0.60' fill='%23F5F2EF' fill-opacity='0.15'/%3E%3Ccircle cx='99.5' cy='126.5' r='0.45' fill='%23F5F2EF' fill-opacity='0.33'/%3E%3Ccircle cx='230.4' cy='440.6' r='0.59' fill='%23F5F2EF' fill-opacity='0.41'/%3E%3Ccircle cx='261.4' cy='346.5' r='0.55' fill='%23F5F2EF' fill-opacity='0.25'/%3E%3Ccircle cx='521.8' cy='520.7' r='1.04' fill='%23F5F2EF' fill-opacity='0.44'/%3E%3Ccircle cx='164.9' cy='120.1' r='0.47' fill='%23F5F2EF' fill-opacity='0.15'/%3E%3Ccircle cx='400.8' cy='209.4' r='1.06' fill='%23F5F2EF' fill-opacity='0.29'/%3E%3Ccircle cx='501.1' cy='443.1' r='0.45' fill='%23F5F2EF' fill-opacity='0.21'/%3E%3Ccircle cx='476.1' cy='245.8' r='1.39' fill='%23F5F2EF' fill-opacity='0.30'/%3E%3Ccircle cx='38.2' cy='329.2' r='0.92' fill='%23F5F2EF' fill-opacity='0.24'/%3E%3Ccircle cx='45.6' cy='173.9' r='1.35' fill='%23F5F2EF' fill-opacity='0.46'/%3E%3Ccircle cx='61.7' cy='128.9' r='0.45' fill='%23F5F2EF' fill-opacity='0.15'/%3E%3Ccircle cx='416.8' cy='92.9' r='0.62' fill='%23F5F2EF' fill-opacity='0.32'/%3E%3Ccircle cx='99.7' cy='382.8' r='0.45' fill='%23F5F2EF' fill-opacity='0.41'/%3E%3Ccircle cx='60.9' cy='220.1' r='0.46' fill='%23F5F2EF' fill-opacity='0.24'/%3E%3Ccircle cx='507.8' cy='420.2' r='0.48' fill='%23F5F2EF' fill-opacity='0.52'/%3E%3Ccircle cx='110.2' cy='206.2' r='1.07' fill='%23F5F2EF' fill-opacity='0.41'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='887' height='887'%3E%3Ccircle cx='486.2' cy='306.8' r='1.26' fill='%23F5F2EF' fill-opacity='0.25'/%3E%3Ccircle cx='452.7' cy='305.0' r='0.55' fill='%23F5F2EF' fill-opacity='0.56'/%3E%3Ccircle cx='92.0' cy='394.5' r='0.47' fill='%23F5F2EF' fill-opacity='0.28'/%3E%3Ccircle cx='885.9' cy='292.1' r='0.75' fill='%23F5F2EF' fill-opacity='0.31'/%3E%3Ccircle cx='647.9' cy='396.7' r='0.46' fill='%23F5F2EF' fill-opacity='0.32'/%3E%3Ccircle cx='361.9' cy='703.1' r='0.69' fill='%23F5F2EF' fill-opacity='0.21'/%3E%3Ccircle cx='597.7' cy='264.7' r='0.63' fill='%23F5F2EF' fill-opacity='0.22'/%3E%3Ccircle cx='364.3' cy='697.3' r='0.64' fill='%23F5F2EF' fill-opacity='0.46'/%3E%3Ccircle cx='671.2' cy='520.8' r='0.81' fill='%23F5F2EF' fill-opacity='0.30'/%3E%3Ccircle cx='548.1' cy='689.4' r='0.45' fill='%23F5F2EF' fill-opacity='0.54'/%3E%3Ccircle cx='325.7' cy='123.4' r='0.45' fill='%23F5F2EF' fill-opacity='0.27'/%3E%3Ccircle cx='61.4' cy='352.9' r='0.55' fill='%23F5F2EF' fill-opacity='0.41'/%3E%3Ccircle cx='413.9' cy='829.6' r='0.84' fill='%23F5F2EF' fill-opacity='0.26'/%3E%3Ccircle cx='776.0' cy='620.1' r='1.67' fill='%23F5F2EF' fill-opacity='0.45'/%3E%3Ccircle cx='856.5' cy='182.0' r='0.48' fill='%23F5F2EF' fill-opacity='0.56'/%3E%3Ccircle cx='19.4' cy='819.4' r='1.47' fill='%23F5F2EF' fill-opacity='0.18'/%3E%3Ccircle cx='133.7' cy='812.4' r='1.64' fill='%23F5F2EF' fill-opacity='0.51'/%3E%3Ccircle cx='642.6' cy='673.9' r='0.49' fill='%23F5F2EF' fill-opacity='0.12'/%3E%3Ccircle cx='556.9' cy='782.5' r='1.60' fill='%23F5F2EF' fill-opacity='0.35'/%3E%3Ccircle cx='7.4' cy='154.7' r='0.57' fill='%23F5F2EF' fill-opacity='0.22'/%3E%3Ccircle cx='24.6' cy='170.9' r='0.62' fill='%23F5F2EF' fill-opacity='0.18'/%3E%3Ccircle cx='100.0' cy='146.8' r='0.45' fill='%23F5F2EF' fill-opacity='0.47'/%3E%3Ccircle cx='767.8' cy='179.0' r='0.79' fill='%23F5F2EF' fill-opacity='0.51'/%3E%3Ccircle cx='216.1' cy='295.7' r='1.37' fill='%23F5F2EF' fill-opacity='0.46'/%3E%3Ccircle cx='551.0' cy='704.2' r='0.70' fill='%23F5F2EF' fill-opacity='0.26'/%3E%3Ccircle cx='607.8' cy='695.3' r='0.45' fill='%23F5F2EF' fill-opacity='0.26'/%3E%3C/svg%3E"); background-position: 0 0, 217px 131px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 120px, transparent 520px); mask-image: linear-gradient(180deg, #000 0, #000 120px, transparent 520px); }
.reel::before { -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .7) 50%, #000 100%); mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .7) 50%, #000 100%); }
/* About reads over the valley footage and closes to night where Learning tools begins */
.about { background: linear-gradient(180deg, rgba(18, 16, 17, .6) 0, rgba(18, 16, 17, .7) 26%, rgba(18, 16, 17, .72) calc(100% - 300px), rgba(18, 16, 17, .97) 100%); }
/* Contact opens onto the mountain at the end */
.contact { background: linear-gradient(180deg, var(--night) 0, var(--night) calc(100% - 240px), rgba(18, 16, 17, 0) 100%); }

/* ---------- who BEC works with ---------- */
.intro { padding: clamp(110px, 16vh, 180px) 0 clamp(70px, 10vh, 110px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px clamp(40px, 7vw, 120px); align-items: end; }
.intro-head h2 em { display: block; }
.intro-lead { max-width: 46ch; font-size: var(--fs-lede); line-height: 1.5; color: var(--on-dark-2); }
.aud-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; perspective: 600px; }
.aud-list li { padding: 8px 16px; border-radius: 999px; background: rgba(18, 16, 17, .5); box-shadow: inset 0 0 0 1px var(--line-dark); font-weight: 500; font-size: .9375rem; color: var(--on-dark); transition: background-color .3s, box-shadow .3s, transform .5s var(--ease); }
.aud-list li:hover { background: rgba(216, 71, 62, .16); box-shadow: inset 0 0 0 1px rgba(216, 71, 62, .6); transform: translateY(-3px) rotateX(18deg); }
html.fx-ready .intro-body[data-reveal] .aud-list li { opacity: 0; transform: translate3d(0, 14px, 0) rotateX(-60deg); transition: opacity .6s var(--ease), transform .9s var(--ease), background-color .3s, box-shadow .3s; }
html.fx-ready .intro-body[data-reveal].is-in .aud-list li { opacity: 1; transform: none; }
.aud-list li:nth-child(2) { transition-delay: .06s, .06s, 0s, 0s !important; }
.aud-list li:nth-child(3) { transition-delay: .12s, .12s, 0s, 0s !important; }
.aud-list li:nth-child(4) { transition-delay: .18s, .18s, 0s, 0s !important; }
.aud-list li:nth-child(5) { transition-delay: .24s, .24s, 0s, 0s !important; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- services: the ridge footage fills the screen under the headline, then the list reads on a darkening veil ---------- */
.services { padding-bottom: clamp(90px, 13vh, 150px);
  background: linear-gradient(180deg, rgba(18, 16, 17, .97) 0, rgba(18, 16, 17, 0) clamp(170px, 28svh, 300px), rgba(18, 16, 17, 0) 70svh, rgba(18, 16, 17, .84) 118svh, rgba(18, 16, 17, .88) calc(100% - 260px), rgba(18, 16, 17, .97) 100%); }
.svc-head { min-height: 125vh; min-height: 125svh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 48px; padding-bottom: clamp(56px, 9vh, 110px); }
.svc-head h2 { text-shadow: 0 2px 40px rgba(10, 9, 10, .45); }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 110px); border-top: 1px solid rgba(245, 242, 239, .22); }
.svc { padding: 24px 0 26px; border-bottom: 1px solid var(--line-dark); }
.svc-title { font-size: clamp(1.45rem, 1.05rem + .9vw, 2.1rem); line-height: 1.1; letter-spacing: -.016em; text-wrap: balance; }
.svc-line { margin-top: 8px; max-width: 44ch; font-size: 1.0625rem; line-height: 1.55; color: var(--on-dark-2); }
@media (max-width: 760px) {
  .svc-head { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .svc { padding: 20px 0 22px; }
}

/* ---------- selected work: recent projects ---------- */
.work { padding: clamp(96px, 14vh, 160px) 0 clamp(84px, 12vh, 140px); }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; margin-bottom: clamp(30px, 5vh, 48px); }
.work-title-block { display: grid; gap: 14px; }
.work-note { max-width: 42ch; color: var(--on-dark-2); font-size: 1rem; }
/* the plain list: what shows without JavaScript, and what prints */
.proj-list { border-top: 1px solid rgba(245, 242, 239, .22); }
.proj { border-bottom: 1px solid var(--line-dark); padding: 24px 0 4px; }
.proj-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 28px; padding-bottom: 18px; }
.proj-title { font-size: clamp(1.3rem, 1rem + .9vw, 1.95rem); line-height: 1.15; letter-spacing: -.016em; text-wrap: balance; }
.proj-meta { display: grid; justify-items: end; gap: 6px; text-align: right; }
.proj-tags { font-size: .875rem; font-weight: 500; color: var(--on-dark-3); }
.proj-status { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; font-weight: 500; color: var(--on-dark-2); }
.proj-status:empty { display: none; }
.proj-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.proj-status.is-done { color: var(--on-dark); }
.proj-status.is-live { color: #F08A80; }
.proj-status.is-live::before { background: var(--red-lit); box-shadow: 0 0 0 0 rgba(216, 71, 62, .5); }
html.fx .proj-status.is-live::before { animation: live 2.2s var(--ease) infinite; }
.proj-status.is-own::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(216, 71, 62, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(216, 71, 62, 0); } }
.proj-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 40px; }
.proj-facts > div { padding-bottom: 24px; }
.proj-facts dt { font-weight: 600; font-size: .875rem; color: #F08A80; }
.proj-facts dd { margin-top: 6px; color: var(--on-dark-2); font-size: 1rem; line-height: 1.6; }
@media (max-width: 760px) {
  .proj-head { grid-template-columns: 1fr; }
  .proj-meta { justify-items: start; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
}

/* ---------- recent projects as a map (map.js): BEC at the centre, four areas of work, each project on the branch of
   its main area with a dotted line to a second area. The four colours are the aurora's. Wide screens read the
   chosen project beside the map, tablets below it; phones get the same map as a tree, opened in place. ---------- */
.work.has-map .proj-list { display: none; }
.mm { position: relative; display: grid; gap: clamp(24px, 3vw, 44px); }
.mm[data-layout="wide"] { grid-template-columns: minmax(0, 1fr) clamp(340px, 29vw, 410px); align-items: start; }
.mm-map { position: relative; min-width: 0; }
.mm-areas, .mm-projs { margin: 0; padding: 0; list-style: none; }

/* the radial map */
.mm.is-radial .mm-map { isolation: isolate; }
.mm.is-radial .mm-map::before { content: ""; position: absolute; inset: -4% -3%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(30% 26% at 50% 24%, rgba(111, 237, 183, .11), transparent 72%),
    radial-gradient(26% 30% at 80% 50%, rgba(180, 166, 255, .11), transparent 72%),
    radial-gradient(30% 26% at 50% 78%, rgba(255, 156, 177, .085), transparent 72%),
    radial-gradient(26% 30% at 20% 50%, rgba(116, 199, 242, .1), transparent 72%),
    radial-gradient(16% 18% at 50% 50%, rgba(245, 242, 239, .07), transparent 72%); }
.mm-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.mm-stars circle { fill: #F5F2EF; }
.mm-line { fill: none; stroke: var(--hue); stroke-width: 1.4; stroke-linecap: round; opacity: .42; transition: opacity .4s var(--ease), stroke-width .4s var(--ease); }
.mm-link.is-hub .mm-line { stroke-width: 2.4; opacity: .6; }
.mm-link.is-cross .mm-line { stroke-dasharray: 1.5 6; stroke-width: 1.5; opacity: .5; }
.mm-glow { fill: none; stroke: var(--hue); stroke-width: 7; stroke-linecap: round; opacity: 0; transition: opacity .4s var(--ease); }
.mm-link.is-path .mm-line { opacity: .95; stroke-width: 2; }
.mm-link.is-hub.is-path .mm-line { stroke-width: 2.8; }
.mm-link.is-path .mm-glow { opacity: .32; filter: url(#mm-blur); }
.mm-link.is-lit .mm-line { opacity: 1; stroke-width: 2.2; }
.mm-link.is-hub.is-lit .mm-line { stroke-width: 3; }
.mm-link.is-lit .mm-glow { opacity: .5; filter: url(#mm-blur); }
.mm.has-focus .mm-link:not(.is-lit) .mm-line { opacity: .1; }
.mm.has-focus .mm-link:not(.is-lit) .mm-glow { opacity: 0; }
.mm-pulse { fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .07 1.2; stroke-dashoffset: .07; opacity: 0; }
.mm-pulse-glow { stroke: var(--hue); stroke-width: 10; filter: url(#mm-blur); }
.mm-pulse.is-running { animation: mm-pulse 1.5s var(--ease-io) forwards; }
@keyframes mm-pulse { 0% { stroke-dashoffset: .07; opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: -1.02; opacity: 0; } }

.mm.is-radial .mm-hub, .mm.is-radial .mm-proj { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; }
.mm.is-radial .mm-area { position: static; }
.mm-hub-tile { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--off);
  box-shadow: 0 0 0 7px rgba(18, 16, 17, .92), 0 0 0 8px rgba(245, 242, 239, .18), 0 0 70px 10px rgba(111, 237, 183, .14), 0 24px 50px -20px rgba(0, 0, 0, .9); }
.mm.is-radial .mm-hub-tile { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.mm-hub-tile img { width: 42px; height: auto; }

.mm-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--hue); box-shadow: 0 0 10px rgba(var(--hue-rgb, 245, 242, 239), .9); }
.mm-area-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 17px 0 15px; border: 0; border-radius: 999px; white-space: nowrap; color: var(--on-dark); font-weight: 600; font-size: .9375rem; letter-spacing: -.005em;
  background: #1C1819; box-shadow: inset 0 0 0 1px rgba(var(--hue-rgb), .5), 0 12px 30px -14px rgba(0, 0, 0, .9);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), opacity .4s var(--ease), transform .5s var(--ease); }
.mm.is-radial .mm-area-btn { position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: 1; transform: translate(-50%, -50%); }
.mm-area-n { font-weight: 500; font-size: .8125rem; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.mm-area-btn:hover { box-shadow: inset 0 0 0 1.5px var(--hue), 0 0 34px -8px rgba(var(--hue-rgb), .7); }
.mm-area-btn[aria-pressed="true"] { background: linear-gradient(rgba(var(--hue-rgb), .22), rgba(var(--hue-rgb), .22)), #1C1819; box-shadow: inset 0 0 0 1.5px var(--hue), 0 0 40px -6px rgba(var(--hue-rgb), .75); }
.mm-area-btn[aria-pressed="true"] .mm-area-n { color: var(--on-dark); }

.mm-proj-btn { display: flex; align-items: center; gap: 16px; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--on-dark-2); text-align: left; transition: opacity .4s var(--ease); }
.mm.is-radial .mm-proj-btn { position: absolute; }
.mm.is-radial .at-right .mm-proj-btn { left: -14px; top: 0; transform: translateY(-50%); }
.mm.is-radial .at-left .mm-proj-btn { right: -14px; top: 0; transform: translateY(-50%); flex-direction: row-reverse; text-align: right; }
.mm.is-radial .at-top .mm-proj-btn { left: 0; bottom: -14px; transform: translateX(-50%); flex-direction: column-reverse; gap: calc(10px + var(--drop, 0px)); text-align: center; }
.mm.is-radial .at-bottom .mm-proj-btn { left: 0; top: -14px; transform: translateX(-50%); flex-direction: column; gap: calc(10px + var(--drop, 0px)); text-align: center; }
.mm-label { font-weight: 500; font-size: .84375rem; line-height: 1.3; letter-spacing: -.003em; transition: color .3s var(--ease); }
.mm.is-radial .mm-label { width: max-content; max-width: 150px; text-wrap: balance; }
.mm-star { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--hue);
  box-shadow: 0 0 0 3px var(--night), 0 0 14px 1px rgba(var(--hue-rgb), .75); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.mm-proj.has-two .mm-star { background: linear-gradient(135deg, var(--hue) 0 50%, var(--hue2) 50% 100%); }
.mm-star::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(245, 242, 239, .9); opacity: 0; transform: scale(.5); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.mm-proj.is-lit .mm-label { color: var(--white); }
.mm-proj.is-lit .mm-star { transform: scale(1.3); }
@media (hover: hover) {
  .mm-proj-btn:hover .mm-label { color: var(--white); }
  .mm-proj-btn:hover .mm-star { transform: scale(1.3); }
}
.mm-proj.is-selected .mm-label { color: var(--white); font-weight: 600; }
.mm-proj.is-selected .mm-star::after { opacity: 1; transform: none; }
.mm.has-focus .mm-proj:not(.is-lit) .mm-proj-btn { opacity: .3; }
.mm.has-focus .mm-area:not(.is-lit) > .mm-area-btn { opacity: .42; }
.mm-also { display: none; }

/* the map draws itself once, from the centre out (only when motion is welcome) */
html.fx .mm.is-radial .mm-draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
html.fx .mm.is-radial.is-in .mm-draw { stroke-dashoffset: 0; }
html.fx .mm.is-radial:not(.is-in) .mm-link.is-cross { opacity: 0; }
html.fx .mm.is-radial:not(.is-in) .mm-hub-tile { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
html.fx .mm.is-radial:not(.is-in) .mm-area-btn { opacity: 0; transform: translate(-50%, -50%) scale(.82); }
html.fx .mm.is-radial:not(.is-in) .mm-star { transform: scale(0); }
html.fx .mm.is-radial:not(.is-in) .mm-label { opacity: 0; }
html.fx .mm.is-radial:not(.is-in) .mm-panel { opacity: 0; transform: translate3d(0, 18px, 0); }
html.fx .mm.is-revealing .mm-draw { transition: stroke-dashoffset 1.1s var(--ease) var(--d, 0s), opacity .4s var(--ease), stroke-width .4s var(--ease); }
html.fx .mm.is-revealing .mm-link.is-cross { transition: opacity .9s var(--ease) var(--d, 1.4s); }
html.fx .mm.is-revealing .mm-hub-tile { transition: opacity .7s var(--ease), transform 1s var(--ease); }
html.fx .mm.is-revealing .mm-area-btn { transition: opacity .6s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
html.fx .mm.is-revealing .mm-proj .mm-star { transition: transform .7s var(--ease) var(--d, 0s); }
html.fx .mm.is-revealing .mm-proj .mm-label { transition: opacity .7s var(--ease) calc(var(--d, 0s) + .1s); }
html.fx .mm.is-revealing .mm-panel { transition: opacity .9s var(--ease) .5s, transform 1.1s var(--ease) .5s; }

/* the chosen project */
.mm-panel { position: relative; padding: clamp(24px, 2.4vw, 34px) clamp(22px, 2.2vw, 32px) clamp(20px, 2vw, 26px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(44, 38, 39, .7), rgba(24, 21, 22, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(245, 242, 239, .1), 0 40px 90px -50px rgba(0, 0, 0, .95);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); }
.mm-panel::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--hue), var(--hue2, var(--hue))); box-shadow: 0 0 18px rgba(var(--hue-rgb), .8); }
.mm-panel-body { display: flex; flex-direction: column; gap: 14px; }
html.fx .mm-panel-body { animation: mm-in .55s var(--ease) both; }
@keyframes mm-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
.mm-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -6px; }
.mm-panel-areas { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; font-weight: 600; color: var(--on-dark-2); }
.mm-tag { display: inline-flex; align-items: center; gap: 8px; }
.mm-tag .mm-dot { width: 7px; height: 7px; box-shadow: none; }
.mm-panel-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 1.05rem + .85vw, 1.9rem); line-height: 1.12; letter-spacing: -.016em; text-wrap: balance; color: var(--on-dark); }
.mm-panel .proj-status { margin-top: -4px; }
.mm-facts { display: grid; gap: 14px; margin-top: 4px; }
.mm-facts dt { font-weight: 600; font-size: .8125rem; color: #F08A80; }
.mm-facts dd { margin-top: 3px; font-size: .9375rem; line-height: 1.55; color: var(--on-dark-2); }
.mm[data-layout="mid"] .mm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 36px; }
.mm-steps { flex: none; display: flex; gap: 8px; margin-right: -6px; }
.mm-step { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(245, 242, 239, .06); box-shadow: inset 0 0 0 1px rgba(245, 242, 239, .16); color: var(--on-dark); font-weight: 600; font-size: .875rem; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.mm-step:hover { background: rgba(245, 242, 239, .12); box-shadow: inset 0 0 0 1px rgba(245, 242, 239, .34); }
.mm-step svg { width: 16px; height: 16px; }

/* phones: the same map as a tree */
.mm[data-layout="tree"] .mm-svg { display: none; }
.mm[data-layout="tree"] .mm-hub { display: flex; align-items: center; gap: 14px; }
.mm[data-layout="tree"] .mm-hub-tile { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(245, 242, 239, .18), 0 0 50px 4px rgba(111, 237, 183, .14); }
.mm[data-layout="tree"] .mm-hub-tile img { width: 32px; }
.mm[data-layout="tree"] .mm-areas { margin-left: 23px; }
.mm[data-layout="tree"] .mm-area { position: relative; display: flow-root; padding: 16px 0 0 26px; }
.mm[data-layout="tree"] .mm-area::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.5px solid rgba(245, 242, 239, .2); }
.mm[data-layout="tree"] .mm-area::after { content: ""; position: absolute; left: 0; top: 38px; width: 22px; border-top: 1.5px solid rgba(245, 242, 239, .2); }
.mm[data-layout="tree"] .mm-area:last-child::before { bottom: auto; height: 38px; width: 22px; border-bottom: 1.5px solid rgba(245, 242, 239, .2); border-bottom-left-radius: 14px; }
.mm[data-layout="tree"] .mm-area:last-child::after { display: none; }
.mm[data-layout="tree"] .mm-projs { margin: 6px 0 0 21px; }
.mm[data-layout="tree"] .mm-proj { position: relative; display: flow-root; padding-left: 22px; }
.mm[data-layout="tree"] .mm-star::after { inset: -5px; }
.mm[data-layout="tree"] .mm-proj::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.5px solid rgba(var(--hue-rgb), .4); }
.mm[data-layout="tree"] .mm-proj::after { content: ""; position: absolute; left: 0; top: 30px; width: 18px; border-top: 1.5px solid rgba(var(--hue-rgb), .4); }
.mm[data-layout="tree"] .mm-proj:last-child::before { bottom: auto; height: 30px; width: 18px; border-bottom: 1.5px solid rgba(var(--hue-rgb), .4); border-bottom-left-radius: 12px; }
.mm[data-layout="tree"] .mm-proj:last-child::after { display: none; }
.mm[data-layout="tree"] .mm-proj-btn { width: 100%; min-height: 60px; padding: 10px 4px 10px 0; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; }
.mm[data-layout="tree"] .mm-label { flex: 1 1 0; min-width: 0; font-size: .9375rem; color: var(--on-dark); }
.mm[data-layout="tree"] .mm-also { display: inline-flex; align-items: center; gap: 7px; flex-basis: 100%; padding-left: 24px; font-size: .78125rem; font-weight: 500; color: var(--on-dark-3); }
.mm[data-layout="tree"] .mm-also .mm-dot { width: 6px; height: 6px; box-shadow: none; }
.mm[data-layout="tree"] .mm-proj.is-selected .mm-label { color: var(--white); }
.mm[data-layout="tree"] .mm-panel { margin: 2px 0 18px -40px; padding: 22px 20px 18px; border-radius: 20px; background: linear-gradient(180deg, #2A2425, #1C1819); -webkit-backdrop-filter: none; backdrop-filter: none; }
.mm[data-layout="tree"] .mm-panel-title { font-size: 1.4rem; }

/* ---------- why BEC ---------- */
.why { position: relative; padding: clamp(110px, 16vh, 180px) 0; }
.why-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 7vh, 72px); }
.why-head h2 em { display: block; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px clamp(28px, 3vw, 48px); perspective: 1200px; }
.why-grid li { position: relative; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.why-grid li::before { content: ""; position: absolute; left: 0; top: -1px; width: 36px; height: 1px; background: var(--red-lit); box-shadow: 0 0 10px rgba(216, 71, 62, .8); transition: width .8s var(--ease); }
.why-grid li:hover::before { width: 100%; }
.why-grid h3 { font-size: clamp(1.55rem, 1.2rem + .9vw, 2.2rem); line-height: 1.1; letter-spacing: -.018em; }
.why-grid p { margin-top: 10px; max-width: 38ch; color: var(--on-dark-2); font-size: 1.0625rem; line-height: 1.6; }
html.fx-ready .why-grid li[data-reveal] { transform: rotateX(-58deg); transform-origin: 50% 0%; transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
html.fx-ready .why-grid li[data-reveal].is-in { transform: none; }
.why-grid li:nth-of-type(2)[data-reveal] { transition-delay: .1s; }
.why-grid li:nth-of-type(3)[data-reveal] { transition-delay: .2s; }
.why-grid li:nth-of-type(4)[data-reveal] { transition-delay: .3s; }
@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- the video ---------- */
.reel { padding: clamp(60px, 10vh, 120px) 0 clamp(96px, 14vh, 160px); }
.reel-inner { perspective: 1800px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 60px 140px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(245, 242, 239, .12); transform-origin: 50% 100%; }
html.fx-ready .player[data-reveal] { transform: rotateX(22deg) translate3d(0, 40px, -80px); opacity: .4; transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
html.fx-ready .player[data-reveal].is-in { transform: none; opacity: 1; }
.player:fullscreen { border-radius: 0; box-shadow: none; }
.player:fullscreen .player-video { object-fit: contain; }
.player-video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player-start[hidden] { display: none !important; }
.player-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0; border: 0; background: radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .45) 100%); color: var(--on-dark); border-radius: inherit; }
.player-start-icon { display: grid; place-items: center; width: clamp(72px, 8.5vw, 112px); aspect-ratio: 1; border-radius: 50%; background: rgba(245, 242, 239, .14); box-shadow: inset 0 0 0 1px rgba(245, 242, 239, .55), 0 20px 60px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .5s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease); }
.player-start-icon svg { width: 34%; height: 34%; fill: var(--on-dark); margin-left: 6%; }
.player-start-note { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); }
.player-start:hover .player-start-icon, .player-start:focus-visible .player-start-icon { transform: scale(1.08); background: var(--red); box-shadow: inset 0 0 0 1px rgba(245, 242, 239, .2), 0 20px 70px rgba(216, 71, 62, .5); }
.player-start:focus-visible { outline-offset: -6px; }

/* ---------- the land: aerial footage seen through a window. A clipped layer holds a picture fixed to the screen,
   so the page slides over it; the clip follows the land section and About, so the footage only shows behind them ---------- */
.landwrap { position: relative; }
.land-clip { position: absolute; inset: 0; clip: rect(0, auto, auto, 0); -webkit-clip-path: inset(0); clip-path: inset(0); pointer-events: none; }
.land-bg { position: fixed; inset: 0 0 auto 0; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; background: var(--night); transform: translateZ(0); }
.landwrap.is-off .land-bg { visibility: hidden; }
.land-frame { position: absolute; inset: 0; }
.land-still, .land-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.land-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.land-video.is-playing { opacity: 1; }
/* arriving: the picture settles from a slow push-in, like a camera finding its mark */
html.fx .land-frame { transform: scale(1.1); transition: transform 7s cubic-bezier(.16, .84, .24, 1); }
html.fx .landwrap.is-near .land-frame { transform: none; }
.land { display: flex; align-items: flex-end; min-height: 135vh; min-height: 135svh; padding: 0 0 clamp(110px, 17vh, 190px);
  background: linear-gradient(180deg, rgba(18, 16, 17, .97) 0, rgba(18, 16, 17, 0) clamp(170px, 28svh, 300px)),
              linear-gradient(180deg, rgba(18, 16, 17, 0) 55%, rgba(18, 16, 17, .45) 82%, rgba(18, 16, 17, .6) 100%); }
.land-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 48px; }
.land h2 { text-shadow: 0 2px 40px rgba(10, 9, 10, .45); }
.land h2 em { display: block; }
.land-cap { display: grid; gap: 2px; justify-items: end; text-align: right; font-size: .8125rem; letter-spacing: .04em; color: var(--on-dark-2); text-shadow: 0 1px 12px rgba(10, 9, 10, .6); }
.land-cap span:first-child { color: var(--on-dark); font-weight: 500; }
.land-peak { min-height: 125vh; min-height: 125svh;
  background: linear-gradient(180deg, rgba(18, 16, 17, .97) 0, rgba(18, 16, 17, 0) clamp(170px, 28svh, 300px)),
              linear-gradient(180deg, rgba(18, 16, 17, 0) 48%, rgba(18, 16, 17, .5) 76%, rgba(18, 16, 17, .97) 100%); }
.land-peak h2 { max-width: 14em; }
@media (max-width: 640px) {
  .land-inner { grid-template-columns: 1fr; }
  .land-cap { justify-items: start; text-align: left; }
}

/* ---------- about ---------- */
.about { padding: clamp(110px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 7vw, 120px); align-items: start; }
.about-role { margin-top: 18px; font-weight: 500; font-size: 1.0625rem; color: var(--on-dark-2); }
.about-body { display: grid; gap: 22px; padding-top: 6px; }
.about-body p { max-width: 60ch; color: var(--on-dark-2); font-size: 1.125rem; line-height: 1.7; }
.about-body .about-lead { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.25; letter-spacing: -.015em; color: var(--on-dark); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 18px; border-top: 1px solid var(--line-dark); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.facts dt { font-weight: 600; font-size: .875rem; color: #F08A80; }
.facts dd { margin-top: 6px; font-weight: 500; line-height: 1.45; color: var(--on-dark); }

/* ---------- learning tools ---------- */
.tools { padding: clamp(80px, 12vh, 140px) 0; }
.tools-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 6vh, 64px); }
.tools-lede { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.2; letter-spacing: -.015em; color: var(--on-dark); }
.tools-lede em { color: #F0D9D3; }
.tools-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(36px, 5vw, 80px); align-items: center; perspective: 1600px; }
.tools-media { position: relative; border-radius: 22px; overflow: hidden; background: var(--night); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(245, 242, 239, .12); transform-style: preserve-3d; }
html.fx .tools-media { animation: float3d 9s ease-in-out infinite; }
html.motion-paused .tools-media { animation-play-state: paused; }
@keyframes float3d { 0%, 100% { transform: rotateY(-7deg) rotateX(3deg) translateZ(0); } 50% { transform: rotateY(4deg) rotateX(-2deg) translateZ(20px); } }
.tools-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tools-body { display: grid; gap: 22px; justify-items: start; }
.tools-body p { color: var(--on-dark-2); font-size: 1.125rem; line-height: 1.65; max-width: 44ch; }
.badge { display: inline-flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; background: rgba(18, 16, 17, .6); box-shadow: inset 0 0 0 1px rgba(216, 71, 62, .45); color: var(--on-dark) !important; font-size: .9375rem !important; font-weight: 500; line-height: 1.45 !important; }
.badge-mark { flex: none; width: 9px; height: 9px; margin-top: .42em; border-radius: 2px; background: var(--red-lit); }
.i-arrow { width: .95em; height: .95em; }

/* ---------- contact ---------- */
.contact { padding: clamp(80px, 12vh, 140px) 0 clamp(90px, 14vh, 160px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 110px); align-items: start; }
.contact-list { display: grid; gap: 0; margin-top: clamp(32px, 5vh, 48px); border-top: 1px solid var(--line-dark); }
.contact-list > * { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-weight: 500; font-size: 1.125rem; text-decoration: none; color: var(--on-dark); }
.contact-list a:hover { color: #F08A80; }
.contact-k { font-weight: 500; font-size: .875rem; color: var(--on-dark-3); }
.form-card { padding: clamp(24px, 3.4vw, 44px); border-radius: 22px; background: var(--card); box-shadow: 0 50px 100px -48px rgba(0, 0, 0, .9), 0 0 0 1px rgba(245, 242, 239, .1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.fx-ready .form-card[data-reveal] { transform: perspective(1400px) rotateY(-16deg) translate3d(30px, 0, -60px); transform-origin: 100% 50%; transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
html.fx-ready .form-card[data-reveal].is-in { transform: none; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .875rem; color: var(--on-dark); }
.field .opt { font-weight: 400; color: var(--on-dark-3); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(245, 242, 239, .2); border-radius: 12px; background: rgba(18, 16, 17, .7); color: var(--on-dark); font-size: 1rem; line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: rgba(245, 242, 239, .4); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--red-lit); box-shadow: 0 0 0 3px rgba(216, 71, 62, .25); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-status { font-size: .9375rem; color: var(--on-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: grid; gap: 10px; }
.form-done-title { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; color: #F0D9D3; }
.form-done p { color: var(--on-dark-2); }
.form-done a { color: #F08A80; }

/* ---------- footer: the mountain framed as the logo behind the closing line ---------- */
.site-footer { position: relative; color: var(--on-dark); background: linear-gradient(180deg, rgba(18, 16, 17, 0) 0%, rgba(18, 16, 17, .35) 40%, rgba(18, 16, 17, .92) 72%); }
.footer-big { padding-top: clamp(140px, 30vh, 320px); padding-bottom: clamp(28px, 5vh, 56px); font-size: clamp(3rem, 1rem + 8.6vw, 10.5rem); line-height: .95; letter-spacing: -.035em; color: var(--on-dark); border-bottom: 1px solid var(--line-dark); text-shadow: 0 10px 60px rgba(0, 0, 0, .5); }
.footer-big em { display: block; color: var(--red-lit); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 40px 64px; align-items: start; padding-top: 56px; padding-bottom: 48px; }
.footer-logo { display: block; border-radius: 18px; }
.footer-logo-tile { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 18px; background: var(--off); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); transition: transform .8s var(--ease); }
.footer-logo:hover .footer-logo-tile { transform: perspective(500px) rotateY(16deg) rotateX(6deg); }
.footer-logo img { width: 96px; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 48px; justify-content: center; }
.footer-nav a, .footer-contact a { text-decoration: none; font-weight: 500; }
.footer-nav a:hover, .footer-contact a:hover { color: #F08A80; }
.footer-contact { display: grid; gap: 10px; justify-items: end; text-align: right; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: max(26px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); font-size: .875rem; color: var(--on-dark-3); }
@media (max-width: 900px) {
  .about-grid, .contact-grid, .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav ul { justify-content: start; }
  .footer-contact { justify-items: start; text-align: left; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}

/* ---------- threads (threads.js): the map's lines, stars and light, carried into the other sections. Each drawing is
   an svg laid over its block; lines draw themselves once when the block arrives, a light runs along them, and
   pointing at an item lights the line that leads to it. The colours run through the aurora: green, blue, violet, pink. ---------- */
.th-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.th-line { fill: none; stroke: var(--hue, #F5F2EF); stroke-width: 1.4; stroke-linecap: round; opacity: .5; transition: opacity .4s var(--ease), stroke-width .4s var(--ease); }
.th-glow { fill: none; stroke: var(--hue, #F5F2EF); stroke-width: 7; stroke-linecap: round; opacity: 0; transition: opacity .4s var(--ease); }
.th-link.is-lit .th-line { opacity: 1; stroke-width: 2.2; }
.th-link.is-lit .th-glow { opacity: .42; }
.has-focus > .th-svg .th-link:not(.is-lit) .th-line { opacity: .14; }
.th-pulse { fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; opacity: 0; }
.th-pulse-glow { stroke: var(--hue, #74C7F2); stroke-width: 10; }
.th-star { position: relative; display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--hue, #F5F2EF);
  box-shadow: 0 0 0 3px var(--night), 0 0 14px 1px rgba(var(--hue-rgb, 245, 242, 239), .75); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.is-lit > .th-star, .is-lit .svc-title > .th-star { transform: scale(1.35); box-shadow: 0 0 0 3px var(--night), 0 0 20px 3px rgba(var(--hue-rgb, 245, 242, 239), .9); }
/* arriving: lines draw from where they start, stars light as the line reaches them */
html.fx .th-svg .th-draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
html.fx .th-in > .th-svg .th-draw { stroke-dashoffset: 0; }
html.fx .th-revealing > .th-svg .th-draw { transition: stroke-dashoffset .8s var(--ease) var(--d, 0s), opacity .4s var(--ease), stroke-width .4s var(--ease); }
html.fx .fan:not(.th-in) .th-star, html.fx .has-trunks:not(.th-in) .th-star, html.fx .has-line:not(.th-in) .th-star,
html.fx .has-thread:not(.th-in) .th-star, html.fx .has-rule:not(.th-in) .th-star { transform: scale(0); }
html.fx .th-revealing .th-star { transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0s), box-shadow .45s var(--ease); }

/* who BEC works with: the audiences branch out from the BEC mark */
.fan { position: relative; margin-top: 30px; padding-left: clamp(104px, 11vw, 150px); }
.fan-hub { position: absolute; left: 0; top: 50%; margin-top: -26px; }
.fan-hub-tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--off);
  box-shadow: 0 0 0 6px rgba(18, 16, 17, .92), 0 0 0 7px rgba(245, 242, 239, .16), 0 0 60px 8px rgba(111, 237, 183, .14), 0 20px 40px -20px rgba(0, 0, 0, .9); }
.fan-hub-tile img { width: 34px; height: auto; }
@media (max-width: 480px) {
  .fan { padding-left: 84px; }
  .fan-hub { margin-top: -22px; }
  .fan-hub-tile { width: 44px; height: 44px; border-radius: 13px; }
  .fan-hub-tile img { width: 29px; }
}
.aud-list.is-fan { position: relative; display: grid; gap: 2px; margin-top: 0; perspective: none; }
.aud-list.is-fan li { position: relative; display: flex; align-items: center; gap: 14px; min-height: 40px; padding: 0; border-radius: 0; background: none; box-shadow: none;
  font-weight: 500; font-size: 1rem; color: var(--on-dark-2); transition: color .3s var(--ease), opacity .4s var(--ease) !important; transition-delay: 0s !important; }
.aud-list.is-fan li:hover { background: none; box-shadow: none; transform: none; color: var(--white); }
html.fx-ready .intro-body[data-reveal] .aud-list.is-fan li { opacity: 1; transform: none; }
.fan.has-focus .aud-list li:not(.is-lit) { opacity: .45; }
.fan-label { transition: opacity .6s var(--ease), transform .7s var(--ease); }
html.fx .fan:not(.th-in) .fan-label { opacity: 0; transform: translate3d(-10px, 0, 0); }
html.fx .fan.th-revealing .fan-label { transition-delay: calc(var(--d, 0s) + .08s); }
.fan .fan-hub-tile { transition: transform .9s var(--ease), opacity .6s var(--ease); }
html.fx .fan:not(.th-in) .fan-hub-tile { opacity: 0; transform: scale(.6); }

/* what BEC does: each column of services hangs on a line from the rule above the list */
.svc-list.has-trunks { position: relative; }
.svc-list.has-trunks .svc { position: relative; padding-left: 30px; border-bottom: 0; transition: opacity .4s var(--ease); }
.svc-list.has-trunks .svc::after { content: ""; position: absolute; left: 30px; right: 0; bottom: 0; border-bottom: 1px solid var(--line-dark); }
.svc-list.has-trunks .svc-title { position: relative; }
.svc-list.has-trunks .svc-title > .th-star { position: absolute; left: -30px; top: .56em; margin-top: -5px; }
.svc-list.has-focus .svc:not(.is-lit) { opacity: .5; }
.svc.is-lit .svc-line { color: var(--on-dark); }
.svc-line { transition: color .3s var(--ease); }

/* how the work is done: one line across the four, a star where each begins */
.why-grid.has-line { position: relative; }
.why-grid.has-line li { border-top-color: transparent; }
.why-grid.has-line li::before { display: none; }
.why-grid li > .th-star { position: absolute; left: 0; top: -5px; --d: var(--sd, 0s); }
.why-svg .th-line { opacity: .7; }
.why-grid.has-focus li:not(.is-lit) { opacity: .55; }
.why-grid.has-line li { transition: opacity .4s var(--ease); }
html.fx-ready .why-grid.has-line li[data-reveal] { transition: opacity .8s var(--ease), transform 1.1s var(--ease); }

/* the video: a line of light around the player */
.player.has-frame { overflow: visible; }
.player.has-frame .player-video { border-radius: inherit; }
.player-frame { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; }
.player-frame .th-line { stroke-width: 1.6; opacity: .75; }
.player.has-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease) 1.2s;
  box-shadow: -30px -20px 90px -40px rgba(111, 237, 183, .5), 30px 20px 90px -40px rgba(255, 156, 177, .45), 0 0 120px -30px rgba(116, 199, 242, .4); }
.player.has-frame.th-in::after { opacity: 1; }
html.fx .player.has-frame .th-draw { transition: stroke-dashoffset 2.1s var(--ease-io) .25s; }
.player:fullscreen .player-frame, .player:fullscreen::after { display: none; }

/* contact: the fields sit on a line that lights up as each is filled in */
.form-card.has-thread { position: relative; }
.form-star { position: absolute; margin: -5px 0 0 -5px; z-index: 1; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(var(--hue-rgb), .75), 0 0 0 3px #1C1819; }
.form-star.is-done { background: var(--hue); box-shadow: 0 0 0 3px #1C1819, 0 0 16px 2px rgba(var(--hue-rgb), .85); }
.form-svg .th-line { opacity: .26; }
.form-svg .th-link.is-lit .th-line { opacity: 1; stroke-width: 1.8; }
.form-svg .th-link.is-lit .th-glow { opacity: .35; }

/* footer: the closing line, underlined in light */
.footer-big.has-rule { position: relative; border-bottom-color: transparent; }
.rule-star { position: absolute; margin: -5px 0 0 -5px; }
.rule-svg .th-line { stroke-width: 1.3; opacity: .85; }

/* Deconstruct: the layers, hide to bone, on one line under the title */
.layers { position: relative; margin-top: 14px; max-width: 560px; }
.layers-row { position: relative; display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.layer { position: relative; display: grid; justify-items: center; gap: 10px; min-width: 60px; font-size: .8125rem; font-weight: 500; letter-spacing: .01em; color: var(--on-dark-2); transition: color .3s var(--ease); cursor: default; }
.layer.is-lit { color: var(--white); }
.layer-name { transition: opacity .6s var(--ease), transform .7s var(--ease); }
html.fx .layers:not(.th-in) .th-star { transform: scale(0); }
html.fx .layers:not(.th-in) .layer-name { opacity: 0; transform: translate3d(0, 6px, 0); }
html.fx .layers.th-revealing .layer-name { transition-delay: calc(var(--d, 0s) + .1s); }
.layers-svg .th-line { opacity: .75; }

/* about: the facts, each with its star */
.facts div:nth-child(1) { --hue: #6FEDB7; --hue-rgb: 111, 237, 183; --i: 0; }
.facts div:nth-child(2) { --hue: #74C7F2; --hue-rgb: 116, 199, 242; --i: 1; }
.facts div:nth-child(3) { --hue: #B4A6FF; --hue-rgb: 180, 166, 255; --i: 2; }
.facts div:nth-child(4) { --hue: #FF9CB1; --hue-rgb: 255, 156, 177; --i: 3; }
.facts dt { display: flex; align-items: center; gap: 10px; }
.facts dt::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--hue); box-shadow: 0 0 10px rgba(var(--hue-rgb), .9); }
html.fx-ready .facts[data-reveal] dt::before { transform: scale(0); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) calc(.3s + var(--i, 0) * .14s); }
html.fx-ready .facts[data-reveal].is-in dt::before { transform: none; }

/* ---------- fade-ins (site.js adds html.fx-ready once it can reveal them) ---------- */
html.fx-ready [data-reveal] { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .7s var(--ease), transform .8s var(--ease); }
html.fx-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .scroll-cue i::after { display: none; }
}

/* ---------- print: the plain project list instead of the map ---------- */
@media print {
  .mm { display: none !important; }
  .work.has-map .proj-list { display: block; }
  .th-svg, .th-star, .fan-hub, .layers, .player-frame { display: none !important; }
  .fan { padding-left: 0; }
}
