/* Exit88 shared foundation (Phase 4, Stage 1).
   The approved homepage (tag homepage-complete-2026-11-15) is the source of every value here: its typography, rooms, ink,
   teal and spacing. Loaded by every page that carries the site menu, after the page's own styles.
   Rules for the design system are namespaced (--e88-*, .e88-*) so nothing here can restyle an existing page by accident.
   The only rules that reach existing markup are the header's MENU button (borderless everywhere, as approved on the
   homepage) and keyboard focus rings. */

/* ---- Type: self-hosted Sofia, exactly as on the homepage ---------------------------------------------------------- */
@font-face{font-family:'Sofia Sans Extra Condensed';src:url('/assets/fonts/sofia-sans/sofia-sans-extra-condensed-latin-var.woff2') format('woff2');font-weight:800 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Sofia Sans';src:url('/assets/fonts/sofia-sans/sofia-sans-latin-var.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* ---- Tokens ------------------------------------------------------------------------------------------------------
   Rooms alternate as on the homepage: near-black / graphite by night, bone / paper by day. Ink and quiet text, and the
   teal: the signature teal by night, the deep teal by day (the signature teal is 1.9:1 on bone). */
:root{
  --e88-black:#0D0D0D;--e88-graphite:#181817;--e88-bone:#E9E5DE;--e88-paper:#F5F3F0;
  --e88-stone:#9C978F;--e88-stone-deep:#5B5750;--e88-teal:#05BDB2;--e88-teal-deep:#03736C;
  --e88-display:'Sofia Sans Extra Condensed','Arial Narrow','Helvetica Neue',Arial,sans-serif;
  --e88-text:'Sofia Sans','Helvetica Neue',Arial,sans-serif;
  --e88-room:var(--e88-black);--e88-room-alt:var(--e88-graphite);--e88-ink:var(--e88-bone);--e88-quiet:var(--e88-stone);
  --e88-accent:var(--e88-teal);--e88-action:var(--e88-teal);--e88-action-ink:var(--e88-black);
  --e88-line:rgba(233,229,222,.16);--e88-line-strong:rgba(233,229,222,.32);
  /* the section-statement scale: never larger than the hero's question */
  --e88-statement:min(10rem,12vw,20.4vh);
  --e88-gutter:32px;
}
html.light{
  --e88-room:var(--e88-bone);--e88-room-alt:var(--e88-paper);--e88-ink:var(--e88-black);--e88-quiet:var(--e88-stone-deep);
  --e88-accent:var(--e88-teal-deep);--e88-action:var(--e88-teal-deep);--e88-action-ink:var(--e88-paper);
  --e88-line:rgba(13,13,13,.16);--e88-line-strong:rgba(13,13,13,.32);
}
@media (max-width:1023px), (orientation:portrait){:root{--e88-statement:min(8rem,12.35vw);}}
@media (max-width:640px){:root{--e88-gutter:20px;}}

/* ---- Components (for the pages built from Stage 2 on; the 404 page is the first to use them) ----------------------- */
.e88-container{box-sizing:border-box;width:100%;max-width:1360px;margin:0 auto;padding:0 var(--e88-gutter);}
.e88-btn,.e88-link,.e88-header,.e88-header *,.e88-header *::before,.e88-header *::after{box-sizing:border-box;}
.e88-room{background:var(--e88-room);color:var(--e88-ink);}
.e88-room--alt{background:var(--e88-room-alt);}
.e88-eyebrow{margin:0;font-family:var(--e88-text);font-weight:400;font-size:clamp(.95rem,.85rem + .3vw,1.125rem);line-height:1.2;letter-spacing:.22em;text-transform:uppercase;color:var(--e88-quiet);}
.e88-statement{margin:0;font-family:var(--e88-display);font-weight:900;font-size:var(--e88-statement);line-height:.84;letter-spacing:-.01em;color:var(--e88-ink);font-synthesis:none;text-wrap:balance;}
.e88-mark{color:var(--e88-accent);}
.e88-lede{margin:0;max-width:34em;font-family:var(--e88-text);font-weight:400;font-size:clamp(1.25rem,.95rem + .8vw,1.75rem);line-height:1.35;letter-spacing:-.01em;color:var(--e88-ink);text-wrap:pretty;}
.e88-body{font-family:var(--e88-text);font-size:clamp(1.0625rem,1rem + .15vw,1.125rem);line-height:1.62;color:var(--e88-quiet);}
/* The one strong action (as the Closing Invitation's), and the quiet arrow link (as the hero's Explore Our Work). */
.e88-btn{display:inline-flex;align-items:center;gap:14px;min-height:56px;padding:0 24px 0 28px;background:var(--e88-action);color:var(--e88-action-ink);border:1px solid var(--e88-action);font-family:var(--e88-text);font-weight:700;font-size:clamp(1.0625rem,1rem + .3vw,1.25rem);line-height:1.2;letter-spacing:.005em;white-space:nowrap;text-decoration:none;transition:background-color .3s,color .3s,border-color .3s;}
.e88-btn svg{width:20px;height:20px;flex:none;transition:transform .3s;}
.e88-btn:hover{background:var(--e88-ink);border-color:var(--e88-ink);color:var(--e88-room);}
.e88-btn:hover svg{transform:translateX(4px);}
.e88-link{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:0 2px;color:var(--e88-ink);font-family:var(--e88-text);font-weight:700;font-size:1.0625rem;line-height:1.2;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:9px;text-decoration-color:var(--e88-line-strong);transition:color .3s,text-decoration-color .3s;}
.e88-link svg{width:18px;height:18px;flex:none;}
.e88-link:hover{color:var(--e88-accent);text-decoration-color:currentColor;}
.e88-btn:focus-visible,.e88-link:focus-visible{outline:2px solid var(--e88-accent);outline-offset:4px;}
.e88-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}

/* ---- Header component for pages built on the foundation (the 404 page first; existing pages keep their own) ---------
   The approved homepage header, value for value: logo, LIGHT/DARK switch, the tagline and MENU, in the header's mono
   face (JetBrains Mono, which every page loads today). Scoped to .e88-header so existing headers are untouched. */
.e88-header{
  --e88-h-bg:rgba(15,15,15,.85);--e88-h-fg:#F5F3F0;--e88-h-muted:#8A8A8A;--e88-h-border:#2A2A2A;--e88-h-accent:#05bdb2;
  --e88-h-mono:'JetBrains Mono',ui-monospace,monospace;
  position:fixed;top:0;left:0;right:0;z-index:1000;padding:20px 0;background:var(--e88-h-bg);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid transparent;transition:padding .3s cubic-bezier(.4,0,.2,1),border-color .3s;
}
html.light .e88-header{--e88-h-bg:rgba(245,243,240,.85);--e88-h-fg:#1A1A1A;--e88-h-muted:#6B6B6B;--e88-h-border:#E0DDD8;}
.e88-header.scrolled{padding:14px 0;border-bottom-color:var(--e88-h-border);}
.e88-header>.e88-container{display:flex;align-items:center;justify-content:space-between;}
.e88-header__left{display:flex;align-items:center;gap:16px;}
.e88-header__right{display:flex;align-items:center;gap:24px;}
.e88-header__logo{display:flex;align-items:center;}
.e88-header__logo img{display:block;height:36px;width:auto;}
html.dark .e88-header__logo .e88-logo-day,html:not(.dark) .e88-header__logo .e88-logo-night{display:none;}
.e88-header .theme-toggle{display:flex;align-items:center;gap:10px;font-family:var(--e88-h-mono);font-size:.7rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--e88-h-muted);user-select:none;cursor:pointer;}
.e88-header .theme-toggle .active{color:var(--e88-h-accent);}
.e88-header .toggle-track{position:relative;width:48px;height:26px;border-radius:999px;background:var(--e88-h-border);}
.e88-header .toggle-thumb{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--e88-h-fg);transition:transform .3s cubic-bezier(.4,0,.2,1);}
html.dark .e88-header .toggle-thumb{transform:translateX(22px);}
.e88-header__tagline{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--e88-h-muted);white-space:nowrap;}
.e88-header .nav-menu-btn{display:flex;align-items:center;gap:10px;background:none;font-family:var(--e88-h-mono);font-size:.8rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--e88-h-fg);cursor:pointer;transition:color .3s;}
.e88-header .nav-menu-btn:hover{color:var(--e88-h-accent);}
.e88-header .hamburger-lines{display:flex;flex-direction:column;gap:5px;}
.e88-header .hamburger-lines span{display:block;width:24px;height:2px;background:var(--e88-h-fg);transition:background .3s;}
.e88-header .nav-menu-btn:hover .hamburger-lines span{background:var(--e88-h-accent);}
@media(max-width:640px){
  .e88-header .theme-toggle{display:none;}
  .e88-header__tagline{font-size:.675rem;letter-spacing:.04em;margin-left:12px;}
  .e88-header .nav-menu-btn>span:first-child{display:none;}
  .e88-header .hamburger-lines{gap:4px;}
  .e88-header .hamburger-lines span{width:20px;}
}

/* ---- Header: the MENU button, consistent on every page --------------------------------------------------------------
   Owner direction (2026-11-15, homepage): no border around MENU; its lines end on the right margin, as the logo starts on
   the left one. Phones keep their 8px target padding. Keyboard focus shows on the header's controls. */
.nav-menu-btn{border:0;padding:10px 0 10px 18px;}
/* Phones: the MENU control is its lines alone, as on the homepage (one page without these rules ran past the screen edge). */
@media(max-width:640px){
  .nav-menu-btn{padding:8px;}.nav-menu-btn>span{display:none;}.nav-menu-btn .hamburger-lines{gap:4px;}.nav-menu-btn .hamburger-lines span{width:20px;}
  /* The rest of the homepage's phone header, for pages that lacked it (the header only; page content is untouched). */
  .navbar>.container{padding:0 20px;}.navbar .theme-toggle{display:none;}.navbar .nav-tagline{font-size:0.675rem;letter-spacing:0.04em;margin-left:12px;}
}
.nav-menu-btn:focus-visible,.theme-toggle:focus-visible{outline:2px solid var(--e88-accent);outline-offset:4px;}

/* ---- Header tagline, every page --------------------------------------------------------------------------------------
   Owner's editorial contract (2026-11-16): THE ROAD LESS TRAVELED. with the teal full stop, in Sofia Sans 600 (the
   self-hosted variable face, 400-700), at the size, tracking and alignment it had. The typed reveal and its caret are
   retired everywhere: the whole line arrives once, with a soft pulse (it fades in from 96%, passes a touch beyond full
   size, then settles; about 1s, ease-out). Opacity and transform only, so nothing around it moves. Reduced motion: it is
   simply there. Where a phone is too narrow for it (supporting pages), it is hidden, as before. */
.navbar .nav-tagline,.e88-header__tagline{display:inline-block;font-family:var(--e88-text);font-weight:600;font-synthesis:none;width:auto;overflow:visible;border-right:0;padding-right:0;transform-origin:50% 50%;animation:e88-tagline-in 1s cubic-bezier(.22,1,.36,1) .15s both;}
@keyframes e88-tagline-in{0%{opacity:0;transform:scale(.96);}60%{opacity:1;transform:scale(1.015);}100%{opacity:1;transform:scale(1);}}
@media (prefers-reduced-motion:reduce){.navbar .nav-tagline,.e88-header__tagline{animation:none;}}
.nav-tagline-mark,.e88-header__mark{color:var(--e88-accent);}
@media (max-width:359px){.navbar .nav-tagline:not(#navTagline),.e88-header__tagline{display:none;}}

/* ---- The full-screen menu (components/menu.js) ----------------------------------------------------------------------
   One room over the whole page, in the hero's colours. The six destinations in the display face at the left; the
   independent Exit88 businesses and the practical links at the right (below on narrow screens). Destinations that are
   not built yet are shown, quietly, but are not links. */
.e88-menu{
  --e88-menu-size:clamp(2.75rem,min(8.2vh,6.2vw),5.75rem);
  position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;
  background:var(--e88-room);color:var(--e88-ink);font-family:var(--e88-text);
  visibility:hidden;opacity:0;transition:opacity .32s ease,visibility 0s linear .32s;
}
/* Opening never animates visibility (only the fade), so focus can land at once, even under a page's own reduced-motion rule. */
.e88-menu.is-open{visibility:visible;opacity:1;transition:opacity .32s ease;}
.e88-menu:focus{outline:none;}
/* Inside the menu nothing transitions unless a rule below says so: a page-wide 'transition-duration' (the homepage's
   reduced-motion rule) would otherwise fade inherited visibility in and keep focus out for a moment. */
.e88-menu *,.e88-menu *::before,.e88-menu *::after{box-sizing:border-box;transition-property:none;}
.e88-menu a{color:inherit;text-decoration:none;cursor:pointer;}
.e88-menu button{cursor:pointer;}
.e88-menu ul,.e88-menu ol{list-style:none;margin:0;padding:0;}
.e88-menu p{margin:0;}
.e88-menu a:focus-visible,.e88-menu button:focus-visible{outline:2px solid var(--e88-accent);outline-offset:6px;}
/* The bar (logo, CLOSE) stays put while a long menu scrolls on small screens. */
.e88-menu__bar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding-top:20px;padding-bottom:20px;background:var(--e88-room);}
.e88-menu__logo{display:inline-flex;}
.e88-menu__logo img{display:block;height:36px;width:auto;}
html.dark .e88-menu__logo .e88-logo-day,html:not(.dark) .e88-menu__logo .e88-logo-night{display:none;}
.e88-menu__close{display:inline-flex;align-items:center;gap:12px;padding:10px 0 10px 18px;background:none;border:0;color:var(--e88-ink);font-family:var(--e88-text);font-weight:600;font-size:.8rem;line-height:1;letter-spacing:.16em;text-transform:uppercase;transition:color .25s;}
.e88-menu__close svg{width:22px;height:22px;flex:none;}
.e88-menu__close:hover{color:var(--e88-accent);}
.e88-menu__body{flex:1;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);column-gap:clamp(40px,6vw,120px);align-items:center;padding-top:clamp(24px,5vh,64px);padding-bottom:clamp(32px,7vh,80px);}
.e88-menu__list{display:flex;flex-direction:column;gap:clamp(2px,.9vh,10px);}
.e88-menu__link{display:inline-flex;align-items:baseline;gap:clamp(14px,1.3vw,22px);font-family:var(--e88-display);font-weight:900;font-size:var(--e88-menu-size);line-height:.94;letter-spacing:-.005em;text-transform:uppercase;color:var(--e88-ink);font-synthesis:none;transition:color .25s;}
.e88-menu__num{flex:none;min-width:1.7rem;font-family:var(--e88-text);font-weight:600;font-size:.8rem;line-height:1;letter-spacing:.12em;color:var(--e88-quiet);transition:color .25s;}
a.e88-menu__link:hover{color:var(--e88-accent);}
a.e88-menu__link:hover .e88-menu__num{color:var(--e88-accent);}
/* One rule for every title: a restrained teal full stop. */
.e88-menu__dot{color:var(--e88-accent);}
/* Where you are, apart from the punctuation: the number turns teal and the word is underlined in teal. */
.e88-menu__link[aria-current="page"] .e88-menu__num{color:var(--e88-accent);}
.e88-menu__link[aria-current="page"] .e88-menu__label{text-decoration:underline;text-decoration-color:var(--e88-accent);text-decoration-thickness:.06em;text-underline-offset:.1em;text-decoration-skip-ink:none;}
/* Not built yet: the quiet tone, full stop included, no pointer and no hover; announced as unavailable (aria-disabled). */
.e88-menu__link.is-pending,.e88-menu__sublink.is-pending{color:var(--e88-quiet);cursor:default;}
.e88-menu__link.is-pending .e88-menu__dot{color:inherit;}
.e88-menu .e88-menu__sub{display:flex;flex-wrap:wrap;gap:6px clamp(18px,2vw,32px);margin:clamp(6px,1vh,12px) 0 clamp(6px,1.2vh,14px);padding-left:calc(1.7rem + clamp(14px,1.3vw,22px));}
.e88-menu__sublink{display:inline-block;font-family:var(--e88-display);font-weight:800;font-size:calc(var(--e88-menu-size) * .42);line-height:1;letter-spacing:.01em;text-transform:uppercase;color:var(--e88-ink);transition:color .25s;}
a.e88-menu__sublink:hover{color:var(--e88-accent);}
.e88-menu__secondary{display:flex;flex-direction:column;gap:clamp(28px,4.5vh,48px);padding-bottom:.35em;}
.e88-menu__kicker{margin:0 0 14px;font-family:var(--e88-text);font-weight:600;font-size:.75rem;line-height:1.3;letter-spacing:.16em;text-transform:uppercase;color:var(--e88-quiet);}
.e88-menu__ventures li+li{margin-top:10px;}
/* The businesses: owner direction (2026-11-15), shown in capitals at 900 like every other display title; the text itself stays
   the exact names (88LIVE!, Falcon), so assistive technology reads them as written. Smaller than the pages, no full stop. */
.e88-menu__venture{display:inline-flex;align-items:center;gap:12px;font-family:var(--e88-display);font-weight:900;font-size:clamp(1.75rem,1.25rem + 1.1vw,2.5rem);line-height:1;letter-spacing:.005em;text-transform:uppercase;color:var(--e88-ink);font-synthesis:none;transition:color .25s;}
.e88-menu__venture svg{width:.55em;height:.55em;flex:none;color:var(--e88-quiet);transition:color .25s,transform .25s;}
.e88-menu__venture:hover{color:var(--e88-accent);}
.e88-menu__venture:hover svg{color:var(--e88-accent);transform:translate(2px,-2px);}
.e88-menu__connect{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;}
.e88-menu__connect a{font-family:var(--e88-text);font-weight:500;font-size:1.0625rem;color:var(--e88-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px;text-decoration-color:var(--e88-line-strong);transition:color .25s,text-decoration-color .25s;}
.e88-menu__connect a:hover{color:var(--e88-accent);text-decoration-color:currentColor;}
.e88-menu__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 24px;}
.e88-menu__social{display:flex;gap:10px;}
.e88-menu__social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--e88-line-strong);border-radius:50%;color:var(--e88-ink);transition:color .25s,border-color .25s;}
.e88-menu__social a:hover{color:var(--e88-accent);border-color:var(--e88-accent);}
.e88-menu__social svg{width:18px;height:18px;}
.e88-menu__theme{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0;background:none;border:0;font-family:var(--e88-text);font-weight:600;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--e88-quiet);}
.e88-menu__theme .active{color:var(--e88-accent);}
.e88-switch{position:relative;display:inline-block;width:44px;height:24px;border-radius:999px;background:var(--e88-line-strong);}
.e88-switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--e88-ink);transition:transform .25s;}
html.dark .e88-switch::after{transform:translateX(20px);}
@media (prefers-reduced-motion:no-preference){
  .e88-menu.is-open .e88-menu__item,.e88-menu.is-open .e88-menu__secondary{animation:e88-rise .55s cubic-bezier(.2,.7,.2,1) both;}
  .e88-menu.is-open .e88-menu__item:nth-child(2){animation-delay:.03s;}
  .e88-menu.is-open .e88-menu__item:nth-child(3){animation-delay:.06s;}
  .e88-menu.is-open .e88-menu__item:nth-child(4){animation-delay:.09s;}
  .e88-menu.is-open .e88-menu__item:nth-child(5){animation-delay:.12s;}
  .e88-menu.is-open .e88-menu__item:nth-child(6){animation-delay:.15s;}
  .e88-menu.is-open .e88-menu__secondary{animation-delay:.18s;}
}
@media (prefers-reduced-motion:reduce){.e88-menu,.e88-menu.is-open{transition:none;}}
@keyframes e88-rise{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}}
/* Tablets and portrait screens: one column, the destinations first, the rest under a rule. */
@media (max-width:1023px), (orientation:portrait){
  .e88-menu{--e88-menu-size:clamp(2.5rem,8.5vw,4.5rem);}
  .e88-menu__body{grid-template-columns:minmax(0,1fr);align-items:start;align-content:start;row-gap:clamp(36px,6vh,56px);}
  .e88-menu__secondary{padding-top:clamp(28px,4vh,40px);border-top:1px solid var(--e88-line);}
  /* room at the foot for the chat button, which floats over everything */
  .e88-menu__body{padding-bottom:104px;}
}
@media (max-width:640px){
  .e88-menu{--e88-menu-size:clamp(2.4rem,11.5vw,3.25rem);}
  .e88-menu__close span{display:none;}
  .e88-menu__close{padding:8px;}
  .e88-menu .e88-menu__sub{padding-left:calc(1.7rem + 14px);}
}
