/* ==========================================================================
   Birrdd Digital — site styles
   Themes: light (default), dark, neon. Set via <html data-theme="…">.
   ========================================================================== */

:root {
  --bg: #f3f0e8;
  --bg-2: #ebe6db;
  --surface: #fbf9f4;
  --ink: #171613;
  --ink-2: #45423c;
  --muted: #7a756b;
  --line: #d9d2c4;
  --line-2: #c9c1b1;
  --accent: #e9b23c;          /* brand gold — fills */
  --accent-ink: #8c6210;      /* gold for text on light */
  --accent-soft: #f6e3b4;
  --on-accent: #171613;
  --invert-bg: #171613;
  --invert-ink: #f3f0e8;
  --invert-muted: #a39e93;
  --glow: none;

  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f0e0c; --bg-2: #161512; --surface: #1a1916; --ink: #f1ede4; --ink-2: #c9c4b9;
  --muted: #8f8a80; --line: #2b2925; --line-2: #3a3732; --accent: #e5b04a; --accent-ink: #e5b04a;
  --accent-soft: #3a2f17; --on-accent: #14120e; --invert-bg: #f1ede4; --invert-ink: #14120e;
  --invert-muted: #5f5a51; color-scheme: dark;
}
:root[data-theme="neon"] {
  --bg: #07060f; --bg-2: #0d0b1c; --surface: #110e24; --ink: #eafcff; --ink-2: #b9d6ff;
  --muted: #7c86b8; --line: #2a2552; --line-2: #3b3576; --accent: #ff3ea5; --accent-ink: #19e6ff;
  --accent-soft: #2a0f3a; --on-accent: #07060f; --invert-bg: #19e6ff; --invert-ink: #07060f;
  --invert-muted: #0b4a57; --glow: 0 0 18px rgba(255, 62, 165, .55); color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.mono, .eyebrow, .tag, .btn, .nav a, .meta {
  font-family: var(--font-mono);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow--plain::before { display: none; }

.h-display { font-size: clamp(2.6rem, 7.4vw, 6.4rem); letter-spacing: -0.04em; line-height: .98; }
.h-1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); letter-spacing: -0.035em; }
.h-2 { font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
.h-3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 60ch; line-height: 1.5; }
.muted { color: var(--muted); }
.accent { color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--b);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; background: transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px;
}
.link:hover { color: var(--accent-ink); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color .25s, background-color .35s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; flex-shrink: 0; color: var(--ink); }
.logo__word { font: 700 18px/1 var(--font-mono); letter-spacing: .06em; white-space: nowrap; }
.logo__word .wl { display: inline; }
.logo__tag { display: flex; justify-content: space-between; font: 400 6px/1.2 var(--font-mono); text-transform: uppercase; color: var(--muted); margin-top: -1px; }
.logo__wave { display: block; height: 9px; margin-top: 1px; }
.logo--footer .logo__word { font-size: 30px; }
.logo--footer .logo__tag { font-size: 9px; margin-top: 1px; }
.logo--footer .logo__wave { height: 14px; margin-top: 2px; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 8px 11px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), border-color .2s;
}
.theme-btn:hover { border-color: var(--ink); transform: rotate(-12deg); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun, .theme-btn .i-moon, .theme-btn .i-bolt { display: none; }
[data-theme-state="light"] .theme-btn .i-sun,
[data-theme-state="dark"] .theme-btn .i-moon,
[data-theme-state="neon"] .theme-btn .i-bolt { display: block; }

.menu-btn { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; place-items: center; align-content: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span + span { margin-top: 5px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 72px 0 0; z-index: 49; background: var(--bg); padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.menu-open .mobile-nav { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mobile-nav a span { font: 500 12px var(--font-mono); color: var(--muted); }
.mobile-nav .btn { margin-top: 24px; align-self: flex-start; font-size: 13px; padding: 0 20px; border-bottom: 1.5px solid var(--ink); }

@media (max-width: 1080px) {
  .nav, .header__actions .btn { display: none; }
  .menu-btn { display: grid; }
  .header__actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 0 0 26px; font-size: clamp(2.6rem, 6.6vw, 5.6rem); }
.hero .lede { margin-bottom: 34px; }
.rotator { position: relative; display: inline-block; white-space: nowrap; color: var(--accent-ink); }
.rotator__word { display: inline-block; transition: transform .45s var(--ease), opacity .3s; }
.rotator__word.is-out { transform: translateY(-40%); opacity: 0; }
.rotator__word.is-in { transform: translateY(40%); opacity: 0; transition: none; }
.squiggle { position: absolute; left: 0; right: 0; bottom: -.12em; height: .22em; width: 100%; color: var(--accent); overflow: visible; }
.hero__note { margin-top: 28px; display: flex; gap: 10px; align-items: center; font: 500 13px var(--font-mono); color: var(--muted); }
.hero__note a { color: var(--ink); }

/* Hero showcase: latest projects */
.showcase { position: relative; }
.showcase__frame { position: relative; aspect-ratio: 5 / 4; border-radius: 22px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 60px -34px rgba(0,0,0,.45); transform: rotate(1deg); transition: transform .5s var(--ease); }
.showcase:hover .showcase__frame { transform: rotate(0deg); }
.showcase__slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; text-decoration: none; }
.showcase__slide.is-active { opacity: 1; visibility: visible; }
.showcase__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.04); transition: transform 6s linear; }
.showcase__slide.is-active img { transform: scale(1); }
.showcase__cap { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 12px 14px; display: grid; gap: 3px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); transform: translateY(8px); opacity: 0; transition: transform .5s var(--ease) .15s, opacity .5s .15s; }
.showcase__slide.is-active .showcase__cap { transform: none; opacity: 1; }
.showcase__kind { font: 500 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.showcase__title { font-weight: 700; font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.01em; }
.showcase__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.showcase__label { font: 500 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.showcase__tabs { display: flex; gap: 8px; }
.showcase__tab { background: none; border: 0; padding: 4px 0; cursor: pointer; display: grid; gap: 6px; width: 46px; text-align: left; font: 500 12px var(--font-mono); color: var(--muted); }
.showcase__tab i { display: block; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; position: relative; }
.showcase__tab i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.showcase__tab.is-active { color: var(--ink); }
.showcase__tab.is-active i::after { animation: showcase-fill var(--showcase-ms, 5000ms) linear forwards; }
.showcase.is-paused .showcase__tab.is-active i::after { animation-play-state: paused; }
.showcase__tab:hover { color: var(--ink); }
@keyframes showcase-fill { to { transform: scaleX(1); } }
[data-theme-state="neon"] .showcase__frame { box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(25, 230, 255, .3); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .showcase { max-width: 560px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .35s; }
.logo-chip img { width: 22px; height: 22px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .35s, opacity .35s, transform .35s var(--ease); border-radius: 4px; }
.logo-chip:hover { color: var(--ink); }
.logo-chip:hover img { filter: none; opacity: 1; }
.logo-chip.is-center { color: var(--ink); }
.logo-chip.is-center img { filter: none; opacity: 1; transform: scale(1.18); }

/* ---------- Section heads ---------- */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { margin-top: 14px; }
.head p { max-width: 46ch; color: var(--ink-2); }

/* ---------- Intro / why ---------- */
.why { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); }
.why__big { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.why__big em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.why__body { display: grid; gap: 18px; color: var(--ink-2); }
.why__body a { font-weight: 600; color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.stat { padding: 24px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; font-weight: 700; }
.stat span { font: 500 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) { .why { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr; } .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .stat { padding-bottom: 20px; } }

/* ---------- Service list ---------- */
.svc-list { list-style: none; border-top: 1px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: 64px 1.1fr 1.4fr 40px; gap: 24px; align-items: center;
  padding: 26px 8px; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
  transition: background .25s, padding .3s var(--ease);
}
.svc__n { font: 500 13px var(--font-mono); color: var(--muted); }
.svc__t { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.svc__d { color: var(--ink-2); font-size: 15.5px; }
.svc__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .25s var(--ease); }
.svc:hover { background: var(--surface); padding-left: 20px; padding-right: 20px; }
.svc:hover .svc__arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
.svc:hover .svc__n { color: var(--accent-ink); }
@media (max-width: 760px) { .svc { grid-template-columns: 40px 1fr 36px; } .svc__d { grid-column: 2 / 3; grid-row: 2; font-size: 14.5px; } .svc__arrow { grid-row: 1; grid-column: 3; width: 36px; height: 36px; } }

/* ---------- Cards / projects ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 22px 40px -28px rgba(0,0,0,.35); }
[data-theme-state="neon"] .card:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 28px rgba(255,62,165,.3); }
.card__media { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.card__text { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 8px; font: 500 12px var(--font-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; }

/* generated placeholder art for items with no image */
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); background:
  radial-gradient(circle at 20% 30%, var(--accent-soft), transparent 55%), var(--bg-2); }
.ph svg { width: 100%; height: 100%; position: absolute; inset: 0; color: var(--line-2); }
.ph span { position: relative; font: 700 clamp(28px, 4vw, 44px) var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card[hidden] { display: none; }

/* ---------- Process ---------- */
.process { position: relative; }
.process__path { position: absolute; left: 0; right: 0; top: 30px; height: 60px; width: 100%; color: var(--line-2); pointer-events: none; }
.process__bird { position: absolute; top: 0; left: 0; width: 34px; height: 22px; color: var(--accent-ink); transform-origin: center; pointer-events: none; will-change: transform; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; padding-top: 110px; }
.step { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.step__n { font: 500 13px var(--font-mono); color: var(--accent-ink); }
.step h3 { font-size: 1.6rem; margin: 6px 0 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; padding-top: 0; } .process__path, .process__bird { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Partners groups ---------- */
.pgroups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pgroup { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.pgroup h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pgroup p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.pgroup ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pgroup li a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 7px; transition: all .2s; }
.pgroup li a:hover { border-color: var(--ink); background: var(--bg); }
.pgroup li img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
@media (max-width: 900px) { .pgroups { grid-template-columns: 1fr; } }

/* ---------- Break room (bingo) ---------- */
.breakroom { background: var(--bg-2); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.breakroom h2 { margin: 14px 0 14px; }
.breakroom p { color: var(--ink-2); }
.bingo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bingo button {
  aspect-ratio: 1; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 10px; cursor: pointer;
  font: 500 clamp(9.5px, 1.05vw, 12.5px)/1.2 var(--font-mono); padding: 6px; display: grid; place-items: center; text-align: center;
  transition: transform .15s var(--ease), background .2s, border-color .2s; position: relative; overflow: hidden; hyphens: auto; overflow-wrap: anywhere; min-width: 0;
}
.bingo button:hover { border-color: var(--ink); transform: translateY(-2px); }
.bingo button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bingo button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 22%; border: 3px solid var(--accent); border-radius: 50%; opacity: .9; animation: stamp .3s var(--ease); }
.bingo button.free { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.bingo.win button[aria-pressed="true"].line { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@keyframes stamp { from { transform: scale(1.8); opacity: 0; } }
.bingo-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font: 500 12px var(--font-mono); color: var(--muted); gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .breakroom { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .bingo button { font-size: 8.5px; padding: 3px; border-radius: 7px; } .bingo { gap: 4px; } }

/* ---------- CTA band ---------- */
.cta { background: var(--invert-bg); color: var(--invert-ink); border-radius: 28px; padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.04em; max-width: 14ch; }
.cta p { color: var(--invert-muted); max-width: 48ch; margin: 18px 0 30px; font-size: 1.1rem; }
.cta .btn { --b: var(--invert-ink); color: var(--invert-ink); }
.cta .btn--accent { color: var(--on-accent); --b: var(--accent); }
.cta .btn--ghost:hover { background: var(--invert-ink); color: var(--invert-bg); }
.cta__contact { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; font: 500 14px var(--font-mono); }
.cta__contact a { color: var(--invert-ink); text-decoration-color: var(--accent); }
.cta__flock { position: absolute; right: -20px; top: 24px; width: min(46%, 460px); color: color-mix(in srgb, var(--invert-ink) 18%, transparent); pointer-events: none; }
.cta__flock path { animation: flap 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.cta__flock path:nth-child(2) { animation-delay: -.4s; } .cta__flock path:nth-child(3) { animation-delay: -.9s; } .cta__flock path:nth-child(4) { animation-delay: -1.2s; }
@keyframes flap { 50% { transform: scaleY(.55); } }
@media (max-width: 700px) { .cta__flock { opacity: .5; width: 70%; top: auto; bottom: 10px; } }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 8vw, 96px) 0 32px; margin-top: clamp(48px, 8vw, 96px); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.footer address { font-style: normal; color: var(--ink-2); margin-top: 18px; line-height: 1.7; }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 400 12.5px var(--font-mono); color: var(--muted); }
.footer__big { font: 700 clamp(56px, 16vw, 220px)/.8 var(--font-mono); letter-spacing: .02em; margin-top: 56px; color: var(--bg-2); user-select: none; white-space: nowrap; overflow: hidden; }
.footer__big b { color: var(--accent); font-weight: 700; opacity: .5; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: 20px; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: center; }

/* ---------- Layout: article + aside ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.box h3 { font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.box ul { list-style: none; display: grid; gap: 10px; }
.box a { text-decoration: none; font-weight: 600; }
.box a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.box--ink { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.box--ink h3 { color: var(--invert-muted); }
.box--ink p { color: var(--invert-muted); margin-bottom: 16px; font-size: 15px; }
.box--ink .btn { --b: var(--accent); background: var(--accent); color: var(--on-accent); }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

.intro { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--ink); max-width: 60ch; font-weight: 450; letter-spacing: -0.005em; }

/* ---------- Prose ---------- */
.prose { font-size: 18px; line-height: 1.72; color: var(--ink-2); max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); margin-top: 1.9em; line-height: 1.15; }
.prose h3 { font-size: 1.3rem; color: var(--ink); margin-top: 1.6em; line-height: 1.2; }
.prose a { color: var(--ink); font-weight: 500; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose a:hover { background: var(--accent-soft); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent-ink); }
.prose figure { margin: 2em 0; }
.prose img, .prose video { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.prose img { max-height: 620px; object-fit: cover; }
.prose figcaption { font: 400 13px var(--font-mono); color: var(--muted); margin-top: 10px; }
.prose strong { color: var(--ink); }
.answer { border-left: 3px solid var(--accent); background: var(--surface); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; line-height: 1.6; color: var(--ink); max-width: 70ch; }
.answer .eyebrow { margin-bottom: 10px; display: flex; }

.checklist { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.checklist li::before { content: "→"; font-family: var(--font-mono); color: var(--accent-ink); flex-shrink: 0; }

.howto { counter-reset: h; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.howto li { counter-increment: h; padding: 18px 20px 18px 64px; position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin: 0 !important; }
.howto li::before { content: counter(h, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font: 600 14px var(--font-mono); color: var(--accent-ink); }
.howto strong { display: block; color: var(--ink); }

/* ---------- FAQ / details ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 4px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; position: relative; transition: transform .3s var(--ease), background .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 4px 24px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: var(--surface); display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan--pop { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.plan--pop .muted, .plan--pop li.off { color: var(--invert-muted); }
.plan__badge { position: absolute; top: -12px; right: 22px; background: var(--accent); color: var(--on-accent); font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; transform: rotate(3deg); }
.plan__price { font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan__price small { font: 500 14px var(--font-mono); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent-ink); font-weight: 700; }
.plan--pop li::before { color: var(--accent); }
.plan li.off { color: var(--muted); text-decoration: line-through; }
.plan li.off::before { content: "–"; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan--pop .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 500 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: 10px; padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__status { font: 500 14px var(--font-mono); min-height: 1.4em; }
.form__status.is-ok { color: #2f9a5a; } .form__status.is-err { color: #d1493a; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Tools ---------- */
.tool { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; align-content: start; }
.tool h2 { font-size: 1.5rem; }
.tool p.muted { font-size: 15px; }
.wifi-card { border: 2px dashed var(--line-2); border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--bg); }
.wifi-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.wifi-card dl { margin: 0; display: grid; gap: 6px; font: 500 14px var(--font-mono); }
.wifi-card dt { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.wifi-card dd { margin: 0 0 6px; word-break: break-all; }
.qr { width: 132px; height: 132px; background: #fff; padding: 8px; border-radius: 10px; display: grid; place-items: center; }
.qr svg, .qr img { width: 100%; height: 100%; }
.pw-out { font: 600 18px var(--font-mono); padding: 14px 16px; border-radius: 10px; background: var(--bg); border: 1.5px solid var(--line-2); word-break: break-all; min-height: 56px; display: flex; align-items: center; }
.meter { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease), background .3s; }
input[type="range"] { accent-color: var(--accent); width: 100%; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 14px; font: 500 13px var(--font-mono); }
.toggle-row label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.toggle-row input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- Referral ---------- */
.ref-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.calc { background: var(--invert-bg); color: var(--invert-ink); border-radius: 24px; padding: 28px; display: grid; gap: 16px; }
.calc label { font: 500 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--invert-muted); }
.calc select, .calc input[type="number"] { font: 600 18px var(--font-mono); background: transparent; color: var(--invert-ink); border: 1.5px solid color-mix(in srgb, var(--invert-ink) 30%, transparent); border-radius: 10px; padding: 12px; width: 100%; }
.calc select option { color: #111; }
.calc__out { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.ref-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ref-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); display: grid; gap: 8px; }
.ref-item b { font-size: 2rem; letter-spacing: -0.04em; color: var(--accent-ink); line-height: 1; }
.ref-item h3 { font-size: 1.1rem; }
.ref-item p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .ref-hero { grid-template-columns: 1fr; } .ref-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ref-list { grid-template-columns: 1fr; } }

/* ---------- Partner detail ---------- */
.partner-logo { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 12px; }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.lost h1 { font: 700 clamp(5rem, 18vw, 12rem)/1 var(--font-mono); letter-spacing: -0.02em; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Quick request popup ---------- */
.rq { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: auto; overscroll-behavior: contain; }
.rq[open] { display: grid; place-items: center; padding: 24px 16px; }
.rq::backdrop { background: rgba(23, 22, 19, .48); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.rq[open]::backdrop { animation: rq-fade .25s var(--ease); }
.rq-open, .rq-open body { overflow: hidden; }
.rq__card { width: min(560px, 100%); background: var(--bg); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; display: grid; gap: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.35); animation: rq-in .32s var(--ease); }
.rq__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rq__title { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.rq__sub { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.rq__sub a { color: inherit; text-underline-offset: 3px; }
.rq__x { flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.rq__x:hover { background: var(--ink); color: var(--bg); }
.rq__body { display: grid; gap: 14px; }
.rq__body textarea { min-height: 110px; }
.rq__msg[hidden], .rqc[hidden], .rq__tabs[hidden] { display: none; }
.rq__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.rq__tab { border: 0; background: transparent; color: var(--ink-2); font: 600 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.rq__tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.rq__state { opacity: .7; font-weight: 500; }
.rq__offnote { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.rq__offnote[hidden] { display: none; }
.rqc { display: grid; gap: 14px; }
.rqc__off { text-align: center; padding: 18px 8px 8px; display: grid; justify-items: center; gap: 14px; }
.rqc__off p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.rqc__off b { color: var(--ink); }
.rqc__off[hidden], .rqc__start[hidden], .rqc__conv[hidden], .rqc__ended[hidden], .rqc__send[hidden], .rqc__meta[hidden] { display: none; }
.rqc__start { gap: 14px; }
.rqc__start textarea { min-height: 84px; }
.rqc__fine { margin: 0; font-size: 12.5px; color: var(--muted); }
.rqc__conv { display: grid; gap: 10px; }
.rqc__log { height: min(46vh, 380px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.rqc__b { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.rqc__b--visitor { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.rqc__b--team { align-self: flex-start; background: var(--surface); border: 1px solid var(--line-2); border-bottom-left-radius: 6px; }
.rqc__b--system { align-self: center; max-width: 92%; text-align: center; font-size: 13px; color: var(--muted); padding: 2px 8px; }
.rqc__who { display: block; font: 600 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 2px; }
.rqc__send { display: flex; gap: 8px; align-items: flex-end; }
.rqc__send textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.4; }
.rqc__send textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.rqc__btn { flex: none; width: 46px; height: 46px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.rqc__btn:hover { background: var(--accent); color: var(--on-accent); }
.rqc__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 20px; }
.rqc__end { border: 0; background: none; color: var(--muted); font: 500 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: 4px 0; }
.rqc__end:hover { color: var(--ink); }
.rqc__ended { text-align: center; display: grid; justify-items: center; gap: 10px; }
.rqc__ended p { margin: 0; color: var(--muted); }
.chat-pill { position: fixed; right: 20px; bottom: 20px; z-index: 150; border: 0; border-radius: 999px; padding: 13px 20px; background: var(--ink); color: var(--bg); font: 600 12.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); transition: background .2s, color .2s, transform .2s var(--ease); }
.chat-pill:hover { transform: translateY(-2px); }
.chat-pill.has-new { background: var(--accent); color: var(--on-accent); }
.chat-pill[hidden] { display: none; }
.rq__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.rq__done { text-align: center; padding: 18px 0 6px; display: grid; justify-items: center; gap: 10px; }
.rq__done[hidden], .rq__body[hidden] { display: none; }
.rq__done h3 { margin: 4px 0 0; font-size: 22px; }
.rq__done p { margin: 0 0 10px; color: var(--ink-2); max-width: 36ch; }
.rq__check { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); animation: rq-pop .4s var(--ease); }
@keyframes rq-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rq-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rq-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) {
  .rq[open] { place-items: end center; padding: 12px 0 0; }
  .rq__card { border-radius: 20px 20px 0 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); animation-name: rq-up; border-bottom: 0; }
  .rq__title { font-size: 22px; }
  .rq__foot .btn { width: 100%; justify-content: center; }
  .rqc__log { height: 44vh; }
  .chat-pill { right: 16px; bottom: 16px; }
  @keyframes rq-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .rq__card, .rq[open]::backdrop, .rq__check { animation: none; } }

/* ---------- Flock easter egg ---------- */
.flock { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.flock svg { position: absolute; width: 36px; height: 22px; color: var(--accent-ink); animation: fly linear forwards; }
.flock svg path { animation: flap .5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fly { from { transform: translate(-60px, 0); } to { transform: translate(calc(100vw + 80px), var(--dy, -120px)); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 210;
  background: var(--ink); color: var(--bg); font: 500 13px var(--font-mono); padding: 12px 18px; border-radius: 999px;
  transition: all .35s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Neon extras ---------- */
[data-theme-state="neon"] h1, [data-theme-state="neon"] .h-display { text-shadow: 0 0 22px rgba(25, 230, 255, .35); }
[data-theme-state="neon"] .rotator { color: var(--accent); text-shadow: 0 0 18px rgba(255, 62, 165, .7); }
[data-theme-state="neon"] .eyebrow::before { box-shadow: 0 0 10px var(--accent); }
[data-theme-state="neon"] body { background-image: linear-gradient(rgba(25,230,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(25,230,255,.05) 1px, transparent 1px); background-size: 48px 48px; }
[data-theme-state="neon"] .header { background: color-mix(in srgb, var(--bg) 92%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .cta, .mobile-nav, .theme-btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Phone tweaks ---------- */
@media (max-width: 600px) {
  .showcase__cap { left: 10px; right: 10px; bottom: 10px; padding: 9px 12px; }
  .showcase__title { font-size: .92rem; }
  .showcase__kind { font-size: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}

/* ---------- WordPress integration ---------- */
.wp-block-template-part { display: contents; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.prose .wp-block-image img, .prose .wp-block-video video { border-radius: var(--radius); border: 1px solid var(--line); }
.prose .wp-block-image figcaption { font: 400 13px var(--font-mono); color: var(--muted); }
.prose ul.wp-block-list, .prose ol.wp-block-list { padding-left: 1.2em; }
.prose p.intro { color: var(--ink); }
.prose ul.checklist { padding-left: 0; }
/* FAQ written with the core Details block inside posts */
.prose .wp-block-details, .faq .wp-block-details { border-bottom: 1px solid var(--line); margin: 0; }
.prose .wp-block-details:first-of-type { border-top: 1px solid var(--ink); margin-top: 1.4em; }
.prose .wp-block-details summary, .faq .wp-block-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 4px; font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.prose .wp-block-details summary::-webkit-details-marker { display: none; }
.prose .wp-block-details summary::after { content: "+"; font: 500 18px var(--font-mono); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s var(--ease), background .2s; }
.prose .wp-block-details[open] summary::after { content: "–"; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.prose .wp-block-details > :not(summary) { padding: 0 4px 20px; margin: 0; }
.posts{list-style:none;border-top:1px solid var(--ink)}
.post{display:grid;grid-template-columns:140px 1fr 40px;gap:24px;padding:24px 8px;border-bottom:1px solid var(--line);text-decoration:none;align-items:start;transition:background .2s,padding .3s var(--ease)}
.post:hover{background:var(--surface);padding-left:18px;padding-right:18px}
.post time{font:500 12.5px var(--font-mono);color:var(--muted);padding-top:5px;letter-spacing:.04em}
.post h3{font-size:clamp(1.12rem,1.8vw,1.4rem);letter-spacing:-.02em;line-height:1.25}
.post p{color:var(--ink-2);font-size:15px;margin-top:6px;max-width:70ch}
.post .svc__arrow{width:36px;height:36px}
.post:hover .svc__arrow{background:var(--accent);border-color:var(--accent);color:var(--on-accent);transform:rotate(-45deg)}
.featured{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;text-decoration:none;margin-bottom:56px}
.featured .card__media{border-radius:var(--radius);border:1px solid var(--line)}
@media(max-width:700px){.post{grid-template-columns:1fr}.post .svc__arrow{display:none}.featured{grid-template-columns:1fr;gap:20px}}
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
