/* ITScript site styles
   Tokens and shared components for every page. Page-specific layout stays
   inline in each page, as it was drawn in the design. */

/* ---------- Fonts ---------- */
@font-face{font-family:"Bitcount Grid Double";src:url(../assets/fonts/bitcount-grid-double.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Bitcount Single";src:url(../assets/fonts/bitcount-single.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
/* Geist and Geist Mono: self-hosted variable fonts (the files Google Fonts serves, licence in assets/fonts/Geist-OFL.txt).
   Geist-latin.woff2 is preloaded in head.njk. */
@font-face{font-family:"Geist";src:url(../assets/fonts/Geist-latin-ext.woff2) format("woff2");font-weight:300 700;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Geist";src:url(../assets/fonts/Geist-latin.woff2) format("woff2");font-weight:300 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}
@font-face{font-family:"Geist Mono";src:url(../assets/fonts/GeistMono-latin-ext.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Geist Mono";src:url(../assets/fonts/GeistMono-latin.woff2) format("woff2");font-weight:400 500;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 ---------- */
:root{
  --ink-950:#060A13;   /* dark ground */
  --ink-900:#0A1020;   /* body text on light */
  --ink-850:#0B111E;   /* dark card */
  --ink-800:#111A2B;
  --line-dark:#1C2740;
  --line-dark-strong:#2A3757;
  --grid-line:#0C1322;
  --paper:#F4F6FA;     /* light ground */
  --white:#FFFFFF;
  --line-light:#D8DEEA;
  --text-dark:#F2F5FA; /* text on dark */
  --muted-dark:#A3AEC2;
  --muted-dark-2:#7A88A3;
  --text-2:#3A4560;    /* secondary text on light */
  --muted:#5A6680;
  --blue:#2B5CFF;
  --blue-hover:#1F4BE0;
  --blue-deep:#1A3FD0;
  --blue-soft:#7A9DFF;
  --amber:#FFB020;
  --amber-hover:#FFC24D;
  --font-sans:Geist,'Helvetica Neue',Arial,sans-serif;
  --font-mono:'Geist Mono',ui-monospace,Menlo,monospace;
  --font-pixel:'Bitcount Single','Geist Mono',monospace;
  --font-pixel-grid:'Bitcount Grid Double','Geist Mono',monospace;
  --gutter:clamp(20px, 4vw, 48px);
  --max:1320px;
  --logo-size:32.5px;  /* header logo and footer title logo, every page */
}

/* ---------- Base ---------- */
body{margin:0;background:var(--ink-950)}
*,*::before,*::after{box-sizing:border-box}
a{color:var(--blue)}a:hover{color:var(--blue-deep)}
::selection{background:var(--blue);color:var(--white)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--blue-soft);outline-offset:3px}
.min-w-0{min-width:0}

/* ---------- Hover helpers ---------- */
.hv-white:hover{color:#FFFFFF !important}
.hv-deep:hover{color:#1A3FD0 !important}
.btn-blue:hover{background:#1F4BE0 !important;color:#FFFFFF !important}
.btn-line:hover{border-color:#7A9DFF !important;color:#FFFFFF !important}
.btn-amber:hover{background:#FFC24D !important}

/* ---------- Blinking cursor ---------- */
@keyframes its-blink{0%,49%{opacity:1}50%,100%{opacity:0}}
.blink{animation:its-blink 1.1s steps(1,end) infinite}
.cursor-amber{display:inline-block;width:0.3em;height:0.68em;margin-left:0.16em;background:var(--amber)}

/* ---------- Page shell ---------- */
.page{width:100%;background:var(--paper);color:var(--ink-900);font-family:var(--font-sans);font-size:18px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:clip}
.band-dark{position:relative;background:var(--ink-950);color:var(--text-dark);overflow:hidden}
.grid-bg{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:96px 96px;background-position:center top}
.section-inner{max-width:var(--max);margin:0 auto;padding:clamp(80px, 10vw, 160px) var(--gutter)}

/* Pixel-font accent inside headlines */
.accent-pixel{font-family:var(--font-pixel);font-weight:500;font-size:0.92em;letter-spacing:-0.05em;color:var(--blue-soft)}
.accent-pixel--nowrap{white-space:nowrap}

/* ---------- Logo ----------
   Copied unchanged from the ITScript logo kit: itscript-brand/itscript-logo-kit-handoff/src/logo.css
   (the logo part; the .its-icon rules are left out because the site does not use the icon).
   The dotted "it" is the #its-it symbol in the hidden SVG sprite at the top of each page's <body>.
   Size it only with font-size on .its-logo. */
.its-logo {
  --its-logo-it: #2B5CFF;      /* the dotted "it" */
  --its-logo-dot: #FFB020;     /* the dot of the i */
  --its-logo-word: #F2F5FA;    /* "script" */
  display: inline-flex;
  align-items: baseline;
  font-family: Geist, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--its-logo-word);
  forced-color-adjust: none;   /* the colours are the logo; keep them in forced-colours mode */
}
.its-logo__it {
  flex: none;
  display: block;
  width: 0.6769em;             /* 8 dots */
  height: 0.7615em;            /* 9 dots */
  margin-right: 0.0673em;      /* the s then begins 1.25 dots after the t */
}

/* Versions. Full colour on night is the default. */
.its-logo--light   { --its-logo-dot: #F59E0B; --its-logo-word: #0A1020; }                     /* on paper and on white */
.its-logo--on-blue { --its-logo-it: #FFFFFF; --its-logo-word: #FFFFFF; }                      /* on blue: reversed, the dot stays amber */
.its-logo--white   { --its-logo-it: #FFFFFF; --its-logo-dot: #FFFFFF; --its-logo-word: #FFFFFF; }   /* one colour, on any other dark ground */
.its-logo--ink     { --its-logo-it: #0A1020; --its-logo-dot: #0A1020; --its-logo-word: #0A1020; }   /* one colour, on any other light ground */

/* ---------- Header ---------- */
.site-header{position:relative}
.site-header__inner{max-width:var(--max);margin:0 auto;padding:26px var(--gutter);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 32px}
.logo{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.logo .its-logo{font-size:var(--logo-size)}
.site-nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px 36px;font-size:15px}
.nav-link{display:inline-flex;align-items:center;min-height:44px;color:var(--muted-dark);text-decoration:none}
.nav-link[aria-current="page"]{color:var(--text-dark)}
/* Menu button (phones only). Hidden unless js/nav.js has run (it adds .js-nav to <html>),
   so without JS the nav links stay visible as before. Lines are inline SVG in currentColor. */
.nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;margin-right:-11px;padding:0;border:0;background:none;color:var(--muted-dark);cursor:pointer}
.nav-toggle:hover{color:#FFFFFF}
.nav-toggle[aria-expanded="true"]{color:var(--text-dark)}
.nav-toggle svg{display:block}
.nav-toggle__close,.nav-toggle[aria-expanded="true"] .nav-toggle__open{display:none}
.nav-toggle[aria-expanded="true"] .nav-toggle__close{display:inline}

/* ---------- Phones (< 768px) ----------
   Header: one row (logo left, menu button right); the nav opens as a full-width list under it and pushes
   the content down. The header "Get your AI connection plan" button is hidden. */
@media (max-width:767.98px){
  .header-cta{display:none !important}   /* !important: the button's display is inline */
  .js-nav .nav-toggle{display:inline-flex}
  .js-nav .site-nav{display:none}
  .js-nav .site-nav.is-open{display:flex;flex:0 0 100%;flex-direction:column;align-items:stretch;gap:0;margin-top:8px;border-top:1px solid var(--line-dark);background:var(--ink-950);font-size:18px}
  .js-nav .site-nav.is-open .nav-link{display:flex;min-height:56px;border-bottom:1px solid var(--line-dark)}
}

/* Home hero chat card: hidden below 1220px, where it would otherwise wrap under the headline. */
@media (max-width:1219.98px){.hero-aside{display:none}}

/* ---------- Footer ---------- */
.site-footer{position:relative;border-top:1px solid var(--line-dark)}
.site-footer__inner{max-width:var(--max);margin:0 auto;padding:clamp(48px, 6vw, 80px) var(--gutter) 0}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(min(220px, 100%), 1fr));gap:40px 48px}
.footer-brand{display:flex;flex-direction:column;gap:10px;font-size:16px;line-height:1.55;color:var(--muted-dark)}
.footer-brand__name{margin:0 0 4px;line-height:34px}   /* 34px = the line box of the old 22px title, so the spacing below stays the same */
.footer-brand__name .its-logo{font-size:var(--logo-size)}
/* Footer logo link. inline-flex keeps the logo's baseline, so the 34px line box above does not move.
   The ::before stretches the hit area to 44px tall without taking up layout space. Focus ring: the global a:focus-visible rule. */
.footer-logo{position:relative;display:inline-flex;color:inherit;text-decoration:none}
.footer-logo::before{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
.footer-brand__line{margin:0;max-width:340px}
.footer-col{display:flex;flex-direction:column;font-size:16px}
.footer-heading{margin:0 0 8px;font-family:var(--font-mono);font-size:13px;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted-dark-2)}
.footer-link{display:inline-flex;align-items:center;min-height:40px;color:var(--muted-dark);text-decoration:none}
.footer-copy{margin:clamp(40px, 5vw, 72px) 0 0;font-family:var(--font-mono);font-size:13px;color:var(--muted-dark-2)}
/* Large decorative logo at the bottom of the footer: one tonal colour (not a kit version), cropped at the bottom. */
/* It spans the full content width: .footer-wordmark is a size container, and 3.2954 is the width/font-size ratio of the whole logo. The clamp is the fallback for browsers without container units. */
.footer-wordmark{display:flex;margin:12px 0 0;user-select:none;container-type:inline-size}
.footer-wordmark .its-logo{font-size:clamp(56px, 17.4vw, 262px);font-size:calc(100cqw / 3.2954);margin-bottom:-0.13em;--its-logo-it:var(--ink-800);--its-logo-dot:var(--ink-800);--its-logo-word:var(--ink-800)}

/* ---------- Home ---------- */
summary{list-style:none;cursor:pointer}
summary::-webkit-details-marker{display:none}
.faq-ic{transition:transform .2s ease}
details[open] .faq-ic{transform:rotate(45deg)}
.stair-1{margin-top:132px}.stair-2{margin-top:88px}.stair-3{margin-top:44px}
@media (max-width:1100px){.stair-1,.stair-2,.stair-3{margin-top:0}}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.grid-4{grid-template-columns:minmax(0,1fr)}}
.hero-intro{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;display:none}
.hero-intro.is-on{display:block}

/* ---------- Plan form ---------- */
.fld:hover{border-color:#3A4560 !important}
.fld:focus{border-color:#2B5CFF !important;outline:2px solid #7A9DFF;outline-offset:2px}
.fld::placeholder{color:#5A6680}
.chip input{position:absolute;opacity:0;width:1px;height:1px}
.chip:hover span{border-color:#2B5CFF !important}
.chip input:checked + span{background:#0A1020 !important;border-color:#0A1020 !important;color:#FFFFFF !important}
.chip input:focus-visible + span{outline:2px solid #7A9DFF;outline-offset:3px}
/* Form + "What happens next" aside (.plan-layout on plan.html). Stacking is explicit at one breakpoint, so it
   no longer depends on whether a scrollbar takes width. Form (flex-basis 560px) + gap (96px) + aside (320px) = 976px
   fit side by side in the 1320px container with clamp(20px,4vw,48px) side padding once 0.92 x width - scrollbar >= 976,
   i.e. from ~1080px even with a 17px scrollbar.
   >= 1080px: side by side, never wrapping, aside sticky.
   <  1080px: single column, aside on top, both full width, 56px between them (the container's row gap).
   !important is needed to override the container's and children's inline styles. */
@media (min-width:1080px){
  .plan-layout{flex-wrap:nowrap !important}
  .aside-next{position:sticky;top:24px}
}
@media (max-width:1079px){
  .plan-layout{flex-direction:column !important;align-items:stretch !important}
  .plan-layout > *{flex:none !important}
  .aside-next{order:-1}
}

/* ---------- About: contact map ----------
   The map covers the band and keeps Vancouver (65.78% / 25.33% of the artwork) in view. */
.map-wrap{position:absolute;inset:0;overflow:hidden;container-type:size;background-image:radial-gradient(#1C2740 1.3px,transparent 1.8px);background-size:18px 18px}
.map-art{position:absolute;left:0;top:0;width:100%;aspect-ratio:1672/941}
.map-pin{position:absolute;left:65.78%;top:25.33%;width:14px;height:14px;margin:-7px 0 0 -7px;background:#FFB020;box-shadow:0 0 0 10px rgba(255,176,32,.16),0 0 0 26px rgba(255,176,32,.07)}
.contact-inner{display:flex;flex-direction:column;justify-content:center}
@supports (width:1cqw){
.map-art{--w:max(100cqw,calc(100cqh*1.7768));--h:calc(var(--w)/1.7768);--tx:65.78cqw;--ty:30cqh;width:var(--w);height:var(--h);aspect-ratio:auto;left:clamp(calc(100cqw - var(--w)),calc(var(--tx) - .6578*var(--w)),0px);top:clamp(calc(100cqh - var(--h)),calc(var(--ty) - .2533*var(--h)),0px)}
}
@media (min-width:1240px){.contact-inner{min-height:min(56.28vw,1000px)}}
@media (max-width:1239.98px){
.contact-inner{padding-top:184px !important}
.map-art{--w:max(100cqw,calc(100cqh*2.132));--tx:72cqw;--ty:100px}
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion:reduce){.blink{animation:none}.faq-ic{transition:none}}
