/* ==========================================================================
   HutEleven — site styles
   Brand: HutEleven design system (colours, Articulat CF, 4px spacing base)
   ========================================================================== */

/* ---------- Fonts (Articulat CF — check licence covers web use) ---------- */

/* ---------- Tokens ---------- */
:root {
  --cipher: #5C0938; --intercept: #7C1230; --signal: #EA5125; --echo: #F3765A; --midnight: #2A1E2A;
  --white: #FFFFFF; --paper: #F9F3ED; --mist: #F0F0F1;
  --surface: #FFFFFF; --surface-alt: #F9F3ED; --surface-sunken: #F0F0F1;
  --ink: #2A1E2A; --ink-muted: #6E606E; --ink-accent: #7C1230; --signal-text: #C43E17;
  --line: #DDD6DB; --line-strong: #857885; --focus: #EA5125;
  /* dark-ground helpers */
  --night-2: #382938; --night-3: #1F161F; --night-line: #4A3A4A; --night-ink: #BFB3BF; --night-muted: #9A8C9A; --night-faint: #6E606E;
  --font-sans: "articulat-cf", "Helvetica Neue", Arial, sans-serif;
  --font-small: "articulat-cf", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-full: 9999px;
  --gutter: clamp(20px, 5vw, 120px);
  --section: clamp(64px, 9vw, 112px);
  --maxw: 1440px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--ink-accent); }
a:hover { color: var(--cipher); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 20px; border-radius: var(--r-md); background: var(--midnight); color: var(--white); text-decoration: none; }
.skip-link:focus { top: 16px; }

.icon { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: middle; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--dark { background: var(--midnight); color: var(--white); }
.section--alt { background: var(--surface-alt); }
.section--brand { background: var(--intercept); color: var(--white); }
.stack { display: flex; flex-direction: column; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > p { max-width: 500px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.split--story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.split--story > :first-child { position: sticky; top: 108px; }
@media (max-width: 960px) { .split--story > :first-child { position: static; } }
.split--values { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.split--form { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------- Type ---------- */
.overline { font-family: var(--font-small); font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-text); }
.section--dark .overline, .on-dark .overline { color: var(--echo); }
.section--brand .overline { color: var(--white); }
.display { font-size: clamp(52px, 7.2vw, 100px); line-height: .92; font-weight: 700; letter-spacing: -.035em; }
.display span { display: block; }
.h1 { font-size: clamp(48px, 6.4vw, 104px); line-height: .94; font-weight: 700; letter-spacing: -.035em; }
.h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.h3 { font-size: clamp(26px, 2.6vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.h4 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; font-weight: 500; }
.h5 { font-size: 20px; line-height: 26px; font-weight: 600; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.section--dark .lead, .section--dark .muted, .on-dark .muted { color: var(--night-ink); }
.section--brand .lead { color: var(--white); }
.accent { color: var(--signal); }
.small { font-family: var(--font-small); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.section--dark .small { color: var(--night-muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: var(--r-md); border: 1px solid transparent; font-size: 17px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn .icon { font-size: 20px; transition: transform .15s ease; }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 18px; }
.btn--primary { background: var(--intercept); color: var(--white); }
.btn--primary:hover { background: var(--cipher); color: var(--white); }
.btn--light { background: var(--white); color: var(--midnight); }
.btn--light:hover { background: var(--paper); color: var(--midnight); }
.btn--light-brand { background: var(--white); color: var(--intercept); }
.btn--light-brand:hover { background: var(--paper); color: var(--cipher); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); background: var(--surface-sunken); color: var(--ink); }
.btn--outline-dark { background: transparent; color: var(--white); border-color: var(--night-line); }
.btn--outline-dark:hover { border-color: var(--white); color: var(--white); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; color: var(--ink-accent); text-decoration: none; }
.link-arrow .icon { font-size: 20px; transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.section--dark .link-arrow, .section--brand .link-arrow { color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 84px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; flex-grow: 1; }
.nav a { padding: 12px 0; font-weight: 500; color: var(--ink-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--signal); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; color: var(--ink); text-decoration: none; }
.header-phone .icon { font-size: 20px; }
.header-portal { color: var(--ink-muted); }
.header-portal:hover { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn .icon { font-size: 26px; }
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: 20px var(--gutter) 32px; background: var(--midnight); color: var(--white); }
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.mobile-menu__top img { height: 32px; width: auto; }
.mobile-menu__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.mobile-menu__close .icon { font-size: 26px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; padding-top: 48px; flex-grow: 1; }
.mobile-menu nav a { font-size: 40px; line-height: 60px; font-weight: 700; letter-spacing: -.02em; color: var(--white); text-decoration: none; }
.mobile-menu nav a:last-child { color: var(--signal); }
.mobile-menu .header-phone { color: var(--white); font-size: 20px; }

/* ---------- Pills, chips ---------- */
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; min-height: 36px; padding: 6px 16px 6px 12px; border-radius: var(--r-full); border: 1px solid var(--night-line); background: var(--night-2); color: var(--white); font-size: 14px; font-weight: 500; text-decoration: none; }
.pill .icon { font-size: 18px; }
.pill:hover { color: var(--white); border-color: var(--night-muted); }
.pulse { width: 8px; height: 8px; flex: none; border-radius: var(--r-full); background: var(--signal); animation: pulse 1.6s ease-in-out infinite; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.chip .icon { font-size: 20px; }
.chip:hover { border-color: var(--signal); }
.chip[aria-selected="true"], .chip[aria-pressed="true"], .chip.is-on { background: var(--midnight); border-color: var(--midnight); color: var(--white); }
.segmented { display: inline-flex; align-self: flex-start; padding: 4px; border-radius: var(--r-full); background: var(--night-2); border: 1px solid var(--night-line); }
.segmented button { white-space: nowrap; min-height: 40px; padding: 0 20px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--night-ink); font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.segmented button[aria-pressed="true"] { background: var(--white); color: var(--midnight); }
.segmented--light { background: var(--surface); border-color: var(--line); }
.segmented--light button { color: var(--ink-muted); }
.segmented--light button[aria-pressed="true"] { background: var(--midnight); color: var(--white); }

/* ---------- Hero ---------- */
.hero { background: var(--midnight); color: var(--white); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 4.5vw, 64px); padding-block: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 64px); align-items: stretch; }
.hero__grid--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero__copy .lead { max-width: 600px; color: var(--night-ink); }
.hero__lead { min-height: 90px; }
.scramble { display: block; white-space: nowrap; }
.hero--simple .hero__inner { display: flex; flex-direction: column; gap: 32px; padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.hero--simple .hero__inner .lead { max-width: 720px; color: var(--night-ink); }
.giant { font-size: clamp(72px, 12vw, 176px); line-height: .86; font-weight: 700; letter-spacing: -.045em; }

/* photos with an orange tag */
.photo { position: relative; overflow: hidden; background: var(--night-3); min-height: 320px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--light { background: #D9D4D8; }
.photo__tag { position: absolute; left: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--signal); color: var(--midnight); font-size: 14px; line-height: 20px; font-weight: 600; }
.photo__tag i { display: block; width: 24px; height: 1px; background: var(--midnight); }
.photo__num { position: absolute; right: 24px; top: 20px; z-index: 1; font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.03em; color: rgba(255,255,255,.88); }

/* cipher tape */
.tape { display: flex; flex-direction: column; gap: 6px; padding: 20px 0 28px; border-top: 1px solid var(--night-line); font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: .32em; white-space: nowrap; color: var(--night-faint); overflow: hidden; }
.tape__row { display: flex; width: max-content; }
.tape__row--l { animation: tape-l 60s linear infinite; }
.tape__row--r { animation: tape-r 70s linear infinite; }

/* ---------- Cards & tiles ---------- */
.tile { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.tile:hover { border-color: var(--signal); transform: translateY(-4px); }
.tile .icon--feature { font-size: 44px; color: var(--ink-accent); }
.tile--dark { background: var(--midnight); border-color: var(--midnight); color: var(--white); }
.tile--dark .icon--feature { color: var(--echo); }
.tile--night { background: var(--night-2); border-color: var(--night-line); color: var(--white); }
.tile--night .icon--feature { color: var(--echo); }
.tile--signal { background: var(--signal); border-color: var(--signal); color: var(--midnight); }
.tile--alt { background: var(--surface-alt); }
.tile .num { font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--signal); }

.photo-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.photo-card:hover { border-color: var(--signal); transform: translateY(-4px); }
.photo-card .photo { min-height: 0; height: 240px; }
.photo-card__body { flex-grow: 1; display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.photo-card__body .link-arrow { margin-top: auto; }

.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { font-size: 24px; color: var(--ink-accent); margin-top: 0; }

/* ---------- Tabs (services) ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; }
.section-head--tabs { flex-direction: column; align-items: flex-start; gap: 32px; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-alt); min-height: 480px; }
.tab-panel[hidden] { display: none; }
.tab-panel__copy { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(32px, 4.5vw, 64px); }
.tab-panel__copy .icon--feature { font-size: 48px; color: var(--ink-accent); }
.tab-panel .photo { min-height: 320px; }
.tab-panel.is-in .tab-panel__copy { animation: pop .35s cubic-bezier(.2,.7,.2,1) both; }

/* ---------- Countdown ---------- */
.countdown { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 12px; }
.countdown div { display: flex; flex-direction: column; gap: 8px; padding: 24px 18px; border-radius: var(--r-md); background: var(--cipher); }
.countdown div:last-child { background: var(--signal); color: var(--midnight); }
.countdown b { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.countdown span { font-family: var(--font-small); font-size: 13px; line-height: 18px; }

/* ---------- Timeline (home) ---------- */
.timeline { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.timeline__photo { min-height: 520px; background: #D9D4D8; }
.timeline__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42,30,42,.75), rgba(42,30,42,0) 55%); }
.timeline__year { position: absolute; left: 32px; bottom: 24px; z-index: 1; font-size: clamp(72px, 9vw, 128px); line-height: .9; font-weight: 700; letter-spacing: -.04em; color: var(--white); }
.timeline__list { display: flex; flex-direction: column; gap: 8px; }
.era { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 18px 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.era:hover { border-color: var(--signal); }
.era[aria-expanded="true"] { border-color: var(--ink); background: var(--surface); }
.era__head { display: flex; align-items: baseline; gap: 20px; }
.era__year { min-width: 88px; font-size: 20px; font-weight: 700; color: var(--ink-muted); }
.era[aria-expanded="true"] .era__year { color: var(--signal-text); }
.era__body { padding-left: 108px; color: var(--ink-muted); }
.era[aria-expanded="false"] .era__body { display: none; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.bento .tile { justify-content: space-between; padding: 28px; }
.bento .span-2 { grid-column: span 2; }
.bento .row-2 { grid-row: span 2; }
.bento .big { white-space: nowrap; font-size: clamp(44px, 4.4vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.03em; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; gap: 24px; width: max-content; animation: tape-l 40s linear infinite; }
.logo-slot { width: 260px; height: 88px; border-radius: var(--r-md); background: var(--mist); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--ink-muted); }

/* ---------- CTA band ---------- */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-giant { font-size: clamp(56px, 8.4vw, 128px); line-height: .88; font-weight: 700; letter-spacing: -.04em; }
.contact-line { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: clamp(20px, 2vw, 28px); font-weight: 500; color: var(--ink); text-decoration: none; }
.contact-line .icon { font-size: 24px; color: var(--ink-accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: var(--white); padding-block: 72px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; }
.footer-grid h2 { margin-bottom: 12px; font-family: var(--font-small); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--echo); }
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--white); text-decoration: none; }
.footer-grid a:hover { color: var(--echo); }
.footer-brand img { width: 240px; height: auto; }
.footer-brand p { margin-top: 20px; max-width: 320px; color: var(--night-ink); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { font-size: 20px; margin-top: 2px; }
.footer-contact .small { color: var(--night-ink); }
.footer-base { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--night-line); font-family: var(--font-small); font-size: 13px; line-height: 18px; color: var(--night-ink); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; }
.field .optional { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 24px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field .hint { font-family: var(--font-small); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.field .error { display: none; font-size: 14px; font-weight: 500; color: var(--signal-text); }
.field.has-error input, .field.has-error textarea { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.field.has-error .error { display: block; }
.field--full { grid-column: 1 / -1; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.topic span .icon { font-size: 20px; }
.topic span:hover { border-color: var(--signal); }
.topic input:checked + span { background: var(--midnight); border-color: var(--midnight); color: var(--white); }
.topic input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-card { border-radius: var(--r-lg); background: var(--surface-alt); padding: clamp(24px, 3.5vw, 48px); }
.form-status { font-family: var(--font-small); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.form-status.is-error { color: var(--signal-text); font-family: var(--font-sans); font-weight: 500; font-size: 14px; }

/* ---------- Filter demo ---------- */
.fdemo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: stretch; }
.fdemo__block { display: flex; flex-direction: column; gap: 12px; }
.illegal { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; border-radius: var(--r-md); background: var(--midnight); color: var(--white); border: 2px solid var(--midnight); text-align: left; cursor: pointer; }
.illegal[aria-pressed="true"] { border-color: var(--signal); }
.illegal .icon { font-size: 24px; }
.kchip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.kchip .icon { font-size: 16px; }
.kchip:hover { border-color: var(--signal); }
.kchip[aria-pressed="true"] { background: var(--intercept); border-color: var(--intercept); color: var(--white); }
.choice { display: flex; align-items: center; gap: 16px; padding: 10px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.choice.is-sel { border-color: var(--ink); }
.choice__label { display: flex; align-items: center; gap: 14px; flex-grow: 1; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.choice__label .icon { font-size: 24px; color: var(--ink-accent); }
.switch { position: relative; flex: none; width: 52px; height: 30px; padding: 0; border: 0; border-radius: var(--r-full); background: var(--line-strong); cursor: pointer; transition: background-color .2s ease; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: var(--r-full); background: var(--white); transition: left .2s ease; }
.switch[aria-checked="true"] { background: var(--intercept); }
.switch[aria-checked="true"]::after { left: 26px; }
.browser { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.browser__bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: var(--r-full); background: var(--line); }
.browser__url { flex-grow: 1; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: var(--r-full); background: var(--surface); font-family: var(--font-small); font-size: 13px; color: var(--ink-muted); overflow: hidden; }
.browser__view { flex-grow: 1; min-height: 480px; }
.blocked { height: 100%; min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 48px; text-align: center; background: var(--midnight); color: var(--white); }
.blocked .icon { font-size: 64px; color: var(--echo); }
.blocked__cat { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--r-full); background: var(--night-2); font-size: 14px; font-weight: 500; }
.allowed { display: flex; flex-direction: column; gap: 16px; padding: 40px; }
.allowed i { display: block; height: 16px; border-radius: var(--r-full); background: var(--mist); }
.allowed .box { height: 200px; border-radius: var(--r-md); background: var(--mist); display: flex; align-items: center; justify-content: center; font-family: var(--font-small); font-size: 13px; color: var(--ink-muted); }

/* ---------- MIS call demo ---------- */
.mis { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 48px; align-items: end; }
.deskphone__handset { height: 56px; margin: 0 24px; border-radius: 28px 28px 8px 8px; background: var(--night-3); border: 1px solid var(--night-line); }
.deskphone__body { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 20px; background: var(--night-2); border: 1px solid var(--night-line); }
.deskphone__screen { min-height: 150px; display: flex; flex-direction: column; padding: 16px 18px; border-radius: 10px; background: var(--night-3); border: 2px solid var(--night-line); transition: border-color .2s ease; }
.deskphone__screen.is-ringing { border-color: var(--signal); }
.deskphone__meta { display: flex; justify-content: space-between; font-family: var(--font-small); font-size: 12px; line-height: 16px; color: var(--night-muted); }
.deskphone__label { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--night-muted); }
.is-ringing .deskphone__label { color: var(--signal); }
.deskphone__keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.deskphone__keys span { height: 36px; border-radius: 8px; background: var(--midnight); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--night-muted); }
.pc { display: flex; flex-direction: column; align-items: center; }
.pc__frame { width: 100%; padding: 14px; border-radius: var(--r-lg); background: var(--night-3); border: 1px solid var(--night-line); }
.pc__screen { height: 460px; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); }
.pc__bar { display: flex; justify-content: space-between; padding: 12px 20px; background: var(--surface-sunken); border-bottom: 1px solid var(--line); font-family: var(--font-small); font-size: 13px; color: var(--ink-muted); }
.pc__wait { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-muted); }
.pc__wait .icon { font-size: 48px; }
.pc__profile { flex-grow: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 0; }
.pc__left { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-right: 1px solid var(--line); overflow: hidden; }
.pc__right { display: flex; flex-direction: column; gap: 12px; padding: 24px; min-height: 0; overflow: hidden; }
.caller-strip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--paper); font-size: 15px; }
.caller-strip .icon { font-size: 24px; color: var(--ink-accent); }
.pupil { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); }
.pupil__av { flex: none; width: 52px; height: 52px; border-radius: var(--r-full); background: var(--intercept); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.pc__right textarea { height: 96px; resize: none; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font: inherit; font-size: 15px; line-height: 22px; }
.logline { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 6px; background: var(--surface-sunken); font-size: 14px; line-height: 20px; }
.logline small { font-family: var(--font-small); font-size: 12px; color: var(--ink-muted); }
.pc__stand { width: 120px; height: 36px; background: var(--night-3); }
.pc__foot { width: 260px; height: 10px; border-radius: 6px; background: var(--night-3); }

/* ---------- Size slider (businesses) ---------- */
.slider-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--r-lg); background: var(--midnight); color: var(--white); }
.slider-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.slider-card output { font-size: clamp(48px, 5vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--signal); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: var(--r-full); background: var(--night-line); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: var(--r-full); background: var(--signal); border: 4px solid var(--white); cursor: pointer; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: var(--r-full); background: var(--signal); border: 4px solid var(--white); cursor: pointer; }
.dots { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 8px; }
.dots i { display: block; aspect-ratio: 1; border-radius: var(--r-full); background: var(--line); transition: background-color .2s ease; }
.dots i.on { background: var(--intercept); }

/* ---------- Bombe game ---------- */
.bombe { display: flex; flex-direction: column; align-items: center; gap: 48px; padding: clamp(32px, 4vw, 56px) clamp(20px, 4vw, 48px); border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--night-line); }
.bombe__msg { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; min-height: 64px; }
.bombe__msg span { font-size: clamp(28px, 3.8vw, 52px); line-height: 1.2; font-weight: 700; letter-spacing: .08em; color: var(--night-faint); transition: color .2s ease; }
.bombe__msg span.ok { color: var(--white); }
.bombe__msg.solved span { color: var(--signal); }
.drums { display: flex; justify-content: center; gap: clamp(16px, 4vw, 56px); flex-wrap: wrap; }
.drum { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.drum button { width: 56px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-full); border: 1px solid var(--night-line); background: transparent; color: var(--white); cursor: pointer; }
.drum button:hover { border-color: var(--signal); }
.drum button .icon { font-size: 24px; }
.drum__ring { padding: 10px; border-radius: var(--r-full); opacity: .55; transition: opacity .2s ease; }
.drum.ok .drum__ring { opacity: 1; }
.drum__face { width: clamp(120px, 13vw, 176px); height: clamp(120px, 13vw, 176px); border-radius: var(--r-full); background: var(--night-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.drum__face small { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--night-faint); }
.drum__face b { font-size: clamp(48px, 5vw, 72px); line-height: 1.05; font-weight: 700; }
.drum__tag { font-family: var(--font-small); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.drum.ok .drum__tag { color: var(--signal); }

/* ---------- Facts ---------- */
.fact-row { display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.fact-row b { flex: none; min-width: 190px; font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; color: var(--intercept); }
.facts-panel { display: flex; flex-direction: column; gap: 28px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--midnight); color: var(--white); }
.fchip { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 12px; background: var(--night-2); }
.fchip b { font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; }
.fchip span { font-size: 14px; line-height: 20px; color: var(--night-ink); }

/* ---------- Values (about) ---------- */
.value-btn { display: flex; align-items: center; gap: 20px; width: 100%; min-height: 64px; padding: 0 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.value-btn:hover { border-color: var(--signal); }
.value-btn b { font-size: 16px; color: var(--ink-muted); }
.value-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--surface); }
.value-btn[aria-pressed="true"] b { color: var(--signal-text); }
.value-panel { min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(32px, 4vw, 56px); border-radius: var(--r-lg); background: var(--intercept); color: var(--white); }
.value-panel .icon { font-size: 64px; }
.value-panel__num { font-size: 88px; line-height: .9; font-weight: 700; letter-spacing: -.04em; color: rgba(255,255,255,.25); }
.value-panel__name { font-size: clamp(56px, 6vw, 88px); line-height: .95; font-weight: 700; letter-spacing: -.035em; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: transparent; transition: border-color .2s ease, background-color .2s ease; }
.faq[open] { border-color: var(--ink); background: var(--surface-alt); }
.faq:hover { border-color: var(--signal); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 24px; color: var(--ink-accent); transition: transform .2s ease; }
.faq[open] summary .icon { transform: rotate(45deg); }
.faq p { padding: 0 28px 24px; }

/* ---------- Motion ---------- */
@keyframes tape-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tape-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.rise-2 { animation: rise .7s .12s cubic-bezier(.2,.7,.2,1) both; }
.rise-3 { animation: rise .7s .24s cubic-bezier(.2,.7,.2,1) both; }
.pop { animation: pop .35s cubic-bezier(.2,.7,.2,1) both; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tile:hover, .photo-card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .site-header .header-phone span { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mis { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 960px) {
  .nav, .site-header .header-phone, .site-header .btn { display: none; }
  .menu-btn { display: flex; }
  .site-header .wrap { height: 68px; }
  .brand img { height: 30px; }
  .hero__grid, .hero__grid--wide, .split, .timeline, .fdemo, .mis, .tab-panel { grid-template-columns: minmax(0, 1fr); }
  .hero__grid .photo { min-height: 300px; order: 2; }
  .grid-4, .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .tabs__list { justify-content: flex-start; }
  .section-head { align-items: flex-start; }
  .tab-panel .photo { min-height: 260px; order: -1; }
  .timeline__photo { min-height: 320px; }
  .mis .pc { order: 2; }
  .pc__screen { height: auto; min-height: 420px; }
  .pc__profile { grid-template-columns: minmax(0, 1fr); }
  .pc__left { border-right: 0; border-bottom: 1px solid var(--line); }
  .countdown { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-4, .bento { grid-template-columns: minmax(0, 1fr); }
  .bento .span-2, .bento .row-2 { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__lead { min-height: 0; }
  .era__body { padding-left: 0; }
  .era__head { gap: 12px; }
  .era__year { min-width: 64px; }
  .countdown { gap: 6px; }
  .countdown div { padding: 16px 10px; }
  .countdown b { font-size: 30px; }
  .dots { gap: 4px; }
  .fact-row { flex-direction: column; gap: 4px; }
  .fact-row b { min-width: 0; }
  .btn { white-space: normal; text-align: center; }
  .btn-row .btn { width: 100%; }
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1; padding: 0 8px; font-size: 14px; }
  .deskphone__keys span { height: 30px; }
  .logo-slot { width: 200px; }
  .photo__num { display: none; }
}

/* Footer links and credits, photo credit overlay */
.footer-base__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-base__links a { color: inherit; }
.footer-credits { margin: 12px 0 0; font-family: var(--font-small); font-size: 11px; line-height: 16px; color: var(--night-ink); }
.footer-credits a { color: inherit; }
.photo__credit { position: absolute; right: 0; top: 0; z-index: 1; margin: 0; padding: 6px 10px; background: rgba(42,30,42,.75); font-family: var(--font-small); font-size: 11px; line-height: 14px; color: #fff; }
.photo__credit a { color: #fff; }
/* Privacy page */
.prose { max-width: 800px; display: flex; flex-direction: column; gap: 48px; }
.prose section { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { margin: 0; font-size: clamp(26px, 3vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.prose p, .prose ul { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
