/* WebVolta 26: neon outlines, pixel type, terminal accents. No framework. */

/* Bundled so ASCII diagrams line up on every device; system monospace fonts often lack box-drawing glyphs. */
@font-face {
  font-family: 'WV Mono';
  src: url('/assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-display: swap;
}

:root {
  --teal: #2cfef2;
  --purple: #f22cfe;
  --blue: #4181fe;
  --orange: #fe602c;
  --red: #ff2c37;
  --pink: #fe2cb6;
  --yellow: #feee2c;
  --green: #40ff2c;
  --gray: #ececec;

  --bg: #fff;
  --fg: #000;
  --line: #000;
  --muted: #3d3d3d;
  --panel: #fff;
  --term-bg: #0b0d0e;
  --term-fg: #d9fffc;
  --term-dim: #7fa9a6;
  --accent: var(--teal);

  --f-body: 'Chivo', system-ui, sans-serif;
  --f-term: 'VT323', ui-monospace, monospace;
  --f-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

  --gutter: clamp(16px, 5vw, 80px);
  --border: 3px solid var(--line);
  --radius: 8px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0b0d0e;
  --fg: #eafffd;
  --line: #eafffd;
  --muted: #b5c9c7;
  --panel: #14181a;
  --term-bg: #000;
  color-scheme: dark;
}

.accent-teal { --accent: var(--teal); }
.accent-purple { --accent: var(--purple); --logo-accent: var(--purple); }
.accent-pink { --accent: var(--pink); --logo-accent: var(--pink); }
.accent-blue { --accent: var(--blue); }
.accent-orange { --accent: var(--orange); }

/* Sections that keep a neon ground in both themes keep black ink. */
.on-neon,
.built-different,
.site-footer__dome,
.tagline,
.skill-card,
.post-card {
  --fg: #000;
  --line: #000;
  --muted: #222;
  color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
/* clip (not hidden) stops sideways scroll on phones without creating a scroll container. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.125rem/1.6 var(--f-body);
  overflow-x: hidden;
  transition: background-color 0.2s, color 0.2s;
  /* With viewport-fit=cover, keep content clear of the notch in landscape. */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px dashed var(--accent); outline-offset: 3px; }
/* Set explicitly: some phones use the system accent for selections, which can match our accent text. */
::selection { background: var(--fg); color: var(--bg); }
h1, h2, h3, h4 { line-height: 1.05; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.sr-only, .hp {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--fg); color: var(--bg); padding: 0.5rem 1rem; font-family: var(--f-term); font-size: 1.4rem; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.wrap--narrow { max-width: 1080px; }

/* ---------- terminal bits ---------- */
.prompt::before { content: '$ '; color: var(--accent); }
.cursor {
  display: inline-block;
  width: 0.6em; height: 1em;
  margin-left: 0.15em;
  background: currentColor;
  vertical-align: -0.12em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.kicker { font: 1.6rem/1 var(--f-term); margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.term-line { font: 1.4rem/1.2 var(--f-term); white-space: pre-wrap; color: var(--muted); margin: 0 0 1rem; }

.term {
  --fg: var(--term-fg);
  --accent: var(--teal);
  margin: 0;
  background: var(--term-bg);
  color: var(--term-fg);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--accent);
  overflow: hidden;
  position: relative;
}
.term::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
}
.term__bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-bottom: 2px solid #2b3335;
  font: 1.35rem/1.2 var(--f-term);
  color: var(--term-dim);
}
.term__bar::after { content: '──────────────────────────────'; overflow: hidden; flex: 1; white-space: nowrap; color: #2b3335; }
.term__dots { display: inline-flex; gap: 6px; }
.term__dots::before {
  content: '';
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red);
  box-shadow: 18px 0 0 var(--yellow), 36px 0 0 var(--green);
  margin-right: 36px;
}
.term { container-type: inline-size; }
/* --cols is the widest line, stamped by the build; JetBrains Mono glyphs are 0.6em wide. */
.term__ascii {
  margin: 0;
  padding: 1.25rem 1.25rem 0.5rem;
  font-family: 'WV Mono', var(--f-mono);
  font-size: clamp(0.6rem, (100cqi - 2.5rem) / (var(--cols, 40) * 0.6), 0.95rem);
  line-height: 1.2;
  color: var(--teal);
  overflow-x: auto;
}
.term__log {
  list-style: none; margin: 0; padding: 0.5rem 1.25rem 1.25rem;
  font: 1.35rem/1.35 var(--f-term);
}
.term__log li { white-space: pre-wrap; }
.term__log li::before { content: '› '; color: var(--term-dim); }
.term__log li:first-child::before { content: ''; }
.term__log li.ok { color: var(--green); }
.term__log li.ok::before { content: '✓ '; color: var(--green); }
.js .term__log[data-runlog] li { opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s; }
.js .term__log[data-runlog] li.is-on { opacity: 1; transform: none; }
.term > p:not(.term__bar), .term > div > p { padding: 0 1.25rem 1.25rem; margin: 0; }

/* Illustrations keep their art; in dark mode they sit on a light "window" so white fills still read. */
.window { margin: 0; display: inline-block; }
.window__bar { display: none; }
.window img { display: block; }
[data-theme='dark'] .window,
[data-theme='dark'] .illus {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--accent);
}
[data-theme='dark'] .window { padding: 0 1rem 1rem; }
[data-theme='dark'] .window__bar {
  display: block;
  margin: 0 -1rem 1rem;
  padding: 0.2rem 0.75rem;
  border-bottom: 3px solid #000;
  font: 1.25rem/1.2 var(--f-term);
  color: #000;
  background: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme='dark'] .window__bar::before { content: '~/'; }
[data-theme='dark'] .illus { padding: 0.75rem; }
[data-theme='dark'] .logo svg,
[data-theme='dark'] .logo img { filter: drop-shadow(0 0 0 #fff) drop-shadow(2px 2px 0 #fff) drop-shadow(-2px -2px 0 #fff); }

/* ---------- buttons ---------- */
/* Same mechanics as the original .webvolta-button: the button never moves; on hover the
   hatched strip (::before) slides up behind the face (::after) and the face darkens, so it
   reads as pressed without the hit area shifting under the pointer. */
.btn {
  --btn-bg: var(--bg);
  --btn-hatch: var(--line);
  position: relative;
  display: inline-block;
  min-width: 200px;
  min-height: 52px;
  padding: 0 0.75rem;
  margin: 1rem 0 15px;
  border: 4px solid var(--line);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--fg);
  font: 2.5rem/1.5 var(--f-term);
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn::before {
  content: '';
  position: absolute; top: 15px; left: -4px; right: -4px; height: 100%; min-height: inherit;
  border: 2px solid var(--btn-hatch);
  border-radius: 10px;
  background: repeating-linear-gradient(-36deg, var(--btn-hatch) 0 3px, transparent 3px 8px);
  clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%);
  transition: top 0.2s linear;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 6px;
  background: var(--btn-bg);
  box-shadow: inset 0 0 0 0 transparent;
  transition: background 0.2s linear, box-shadow 0.2s linear;
}
.btn > span { position: relative; z-index: 5; }
.btn:hover::before, .btn:focus-visible::before, .btn:active::before { top: 0; }
.btn:hover::after, .btn:focus-visible::after, .btn:active::after {
  background: color-mix(in srgb, var(--btn-bg) 95%, #000);
  box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.5);
}
.btn:focus-visible { outline-offset: 5px; }
.btn--term { --btn-bg: var(--term-bg); --btn-hatch: var(--teal); color: var(--teal); border-color: var(--teal); text-transform: none; }

/* ---------- staging ---------- */
.staging-banner { position: sticky; top: 0; z-index: 70; background: var(--yellow); color: #000; border-bottom: 3px solid #000; font: 1.3rem/1.2 var(--f-term); padding: 0.3rem var(--gutter); }
.staging-banner .prompt::before { color: #000; }
.staging-banner ~ .site-header { top: 2.1rem; }

/* ---------- header + nav ----------
   At the top of a page the header floats as a pill over the hero (the hero has its own big logo).
   Once scrolled it becomes a solid bar with a small logo. Below 992px the nav becomes a sheet. */
html { scroll-padding-top: 90px; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; pointer-events: none;
  /* iOS Safari slides the page under the status bar when its toolbars collapse; keep the bar below it. */
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.2s;
}
.site-header.is-scrolled, .site-header.nav-open { background: var(--bg); }
.site-header__bar {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  padding: 14px max(var(--gutter), env(safe-area-inset-right, 0px)) 14px max(var(--gutter), env(safe-area-inset-left, 0px));
  border-bottom: 3px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}
.site-header__bar > * { pointer-events: auto; }
.site-header.is-scrolled .site-header__bar,
.site-header.nav-open .site-header__bar { background: var(--bg); border-bottom-color: var(--line); }
.site-header__logo { display: block; width: 62px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.site-header__logo img { display: block; width: 100%; height: auto; }
.site-header.is-scrolled .site-header__logo, .site-header.nav-open .site-header__logo { opacity: 1; visibility: visible; }
[data-theme='dark'] .site-header__logo img { filter: drop-shadow(2px 2px 0 #fff) drop-shadow(-2px -2px 0 #fff); }

.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: var(--fg);
  font: 1.75rem/1.2 var(--f-term);
  text-transform: uppercase; text-decoration: none;
}
.site-nav__link:hover, .site-nav__link[aria-expanded='true'] { background: var(--fg); color: var(--bg); }
.site-nav__link[aria-current='page'], .site-nav__link[data-current] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.site-nav__caret { width: 0; height: 0; border: 6px solid transparent; border-top-color: currentColor; border-bottom: 0; transition: transform 0.2s; }
.site-nav__link[aria-expanded='true'] .site-nav__caret { transform: rotate(180deg); }
.site-nav__extras { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }

.btn--sm { min-width: 0; min-height: 0; margin: 0 0 12px; padding: 0 0.9rem; font-size: 1.6rem; line-height: 1.6; border-width: 3px; }
.btn--sm::before { left: -3px; right: -3px; top: 10px; }

/* Theme toggle: deliberately quiet so Contact stays the only call to action in the bar. */
.site-nav__tools { display: flex; align-items: center; margin-left: 0.35rem; padding-left: 0.35rem; border-left: 2px solid var(--line); }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  width: 40px; height: 40px; justify-content: center;
  padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--fg); cursor: pointer;
}
.theme-toggle:hover, .theme-toggle:focus-visible { background: var(--fg); color: var(--bg); }
.theme-toggle__icon {
  width: 18px; height: 18px; flex: none;
  border: 2.5px solid currentColor; border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
[data-theme='dark'] .theme-toggle__icon { background: linear-gradient(270deg, currentColor 50%, transparent 50%); }
.theme-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.menu-toggle { display: none; width: 44px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--fg); margin-bottom: 12px; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 44px; height: 6px; background: currentColor; position: relative;
  transition: transform 0.2s, background 0.2s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ''; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -12px; }
.menu-toggle__bars::after { top: 12px; }
.nav-open .menu-toggle__bars { background: transparent; }
.nav-open .menu-toggle__bars::before { transform: translateY(12px) rotate(45deg); }
.nav-open .menu-toggle__bars::after { transform: translateY(-12px) rotate(-45deg); }

/* Desktop: pill while floating over the hero. */
@media (min-width: 992px) {
  .site-nav { display: flex; align-items: center; }
  .site-header:not(.is-scrolled) .site-nav { background: var(--bg); border: 3px solid var(--line); border-radius: 999px; padding: 0.25rem 0.5rem; margin-bottom: 12px; }
  .site-header.is-scrolled .site-nav { margin-bottom: 12px; }
}

/* Services mega panel */
.megamenu {
  --fg: var(--term-fg);
  position: absolute; top: calc(100% + 6px); right: var(--gutter);
  width: min(880px, calc(100vw - 2 * var(--gutter)));
  padding: 1.5rem 1.5rem 1rem;
  background: var(--term-bg); color: var(--term-fg);
  border: 3px solid var(--teal); border-radius: 12px;
  box-shadow: 10px 10px 0 var(--teal);
}
.megamenu[hidden] { display: none; }
.megamenu ul { list-style: none; margin: 0; padding: 0; }
.megamenu__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2rem; }
.megamenu__group { font: 1.4rem/1 var(--f-term); color: var(--term-dim); margin: 0 0 0.5rem; }
.megamenu a { position: relative; display: block; padding: 0.35rem 0.6rem 0.35rem 1.7rem; border-radius: 6px; color: var(--term-fg); text-decoration: none; }
.megamenu a:hover, .megamenu a:focus-visible { background: rgba(44, 254, 242, 0.1); }
.megamenu__name { display: block; font: 1.6rem/1.15 var(--f-term); color: #fff; }
.megamenu__name::before { content: '>'; position: absolute; left: 0.6rem; color: transparent; }
.megamenu a:hover .megamenu__name::before, .megamenu a:focus-visible .megamenu__name::before, .megamenu a[aria-current='page'] .megamenu__name::before { color: var(--teal); }
.megamenu a[aria-current='page'] .megamenu__name { color: var(--teal); }
.megamenu__desc { display: block; font-size: 0.9rem; color: var(--term-dim); }
.megamenu__foot { display: flex; align-items: center; gap: 0.9rem; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid #2b3335; }
.megamenu__clippy { flex: none; width: 54px; height: auto; padding: 6px 10px; background: #fff; border-radius: 40px 40px 12px 12px; }
.megamenu__bubble {
  position: relative; margin: 0;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--teal); border-radius: 14px;
  font: 1.6rem/1.1 var(--f-term); color: var(--teal);
}
/* Clippy looks to his left, so the bubble sits on that side with its tail pointing right at him. */
.megamenu__bubble::before, .megamenu__bubble::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; border: 9px solid transparent; transform: translateY(-50%); }
.megamenu__bubble::before { left: 100%; border-left-color: var(--teal); }
.megamenu__bubble::after { left: calc(100% - 3px); border-left-color: var(--term-bg); }
.megamenu a.megamenu__human { margin-left: auto; padding-left: 0.6rem; font: 1.6rem/1.1 var(--f-term); color: var(--teal); }

/* Phones and tablets: the nav becomes a sheet under the bar. */
@media (max-width: 991px) {
  .menu-toggle { display: block; }
  .site-header__actions { margin-left: auto; }
  .site-nav { display: none; }
  .nav-open .site-nav {
    display: block;
    position: fixed; top: var(--header-h, 76px); left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    padding: 1.5rem var(--gutter) 3rem;
    background: var(--bg);
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .site-nav__link { width: 100%; justify-content: space-between; padding: 0.5rem 0.25rem; font: 900 clamp(1.8rem, 7vw, 2.6rem)/1.1 var(--f-body); border-bottom: 3px solid var(--line); border-radius: 0; }
  .site-nav__link:hover, .site-nav__link[aria-expanded='true'] { background: none; color: var(--fg); }
  .site-nav__caret { border-width: 9px; border-bottom: 0; }
  .megamenu { position: static; width: auto; margin: 0.75rem 0 1rem; box-shadow: 6px 6px 0 var(--teal); }
  .megamenu__cols { grid-template-columns: 1fr; gap: 1.25rem; }
  .megamenu__foot { flex-wrap: wrap; }
  .site-nav__extras { display: block; margin-top: 1.5rem; font: 1.8rem/1 var(--f-term); }
  .site-nav__tools { margin: 1.5rem 0 0; padding: 0; border: 0; }
  .theme-toggle { width: auto; height: auto; padding: 0.4rem 0.25rem; font: 1.8rem/1 var(--f-term); }
  .theme-toggle__icon { width: 22px; height: 22px; }
  .theme-toggle__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

}
@media (max-width: 420px) { .site-header .btn--sm { font-size: 1.35rem; padding: 0 0.6rem; } }

/* ---------- speech bubbles ---------- */
.speech-bubble {
  position: relative;
  border: 6px solid var(--line);
  border-radius: 40px;
  background: var(--bg);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.speech-bubble::after {
  content: '';
  position: absolute; bottom: -27px; left: 62%;
  width: 44px; height: 44px;
  background: var(--bg);
  border-right: 6px solid var(--line); border-bottom: 6px solid var(--line);
  transform: rotate(45deg);
}

/* ---------- logo + heroes ---------- */
.logo { display: inline-block; width: clamp(96px, 12vw, 150px); position: relative; z-index: 2; }
.logo svg { display: block; width: 100%; }
.hero { position: relative; padding: 1.25rem var(--gutter) 2rem; min-height: 200px; }
.intro-shape {
  position: absolute; top: 0; right: 0; z-index: -1;
  width: 55%; max-width: 1010px;
  pointer-events: none;
}
.intro-shape svg { display: block; width: 100%; height: auto; }
@media (min-width: 576px) { .intro-shape { width: 66.666%; } }
@media (min-width: 768px) { .intro-shape { width: 70.5%; } }
.intro-shape #introShape { fill: var(--accent); }
/* Plain intro (logo + shape) sized like the original .section-intro; hero--large is its large-logo variant. */
.hero--plain { min-height: 0; padding: 1.875rem 0.5rem 1.875rem; }
.hero--plain .logo { width: 110px; }
@media (min-width: 576px) { .hero--large .logo { width: 220px; } }
@media (min-width: 768px) {
  .hero--plain { padding: 1.875rem 1.5% 3.75rem; }
  .hero--plain .logo { width: 220px; }
  .hero--large .logo { width: 420px; }
}
.hero--service { padding-bottom: clamp(2rem, 6vw, 5rem); }
.hero__prompt { font: 1.5rem/1 var(--f-term); margin: 2rem 0 0.75rem; color: var(--muted); }
.hero__title { font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 8.5vw, 8.5rem); line-height: 0.95; max-width: 15ch; overflow-wrap: break-word; hyphens: manual; }
.hero__eyebrow { display: block; font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 700; text-transform: none; margin-bottom: 0.4rem; }
.hero__title strong { font-weight: 900; }

.mega { font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 10vw, 9.5rem); line-height: 0.92; letter-spacing: -0.01em; margin-bottom: 2rem; overflow-wrap: break-word; }
.mega > span:first-child { display: block; text-transform: none; font-size: clamp(1.6rem, 3.4vw, 3.4rem); line-height: 1.1; letter-spacing: 0; }
.mega--center { text-align: center; }
.lead { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.5; }

.page-intro.wrap { position: relative; max-width: none; padding: 0 1.25rem; }
.page-intro--spaced { margin-top: 5.375rem; }
.page-intro__title {
  margin: 0;
  font: 700 1.25rem/1.2 var(--f-body);
  letter-spacing: 2.8px;
  text-transform: none;
}
.page-intro__title strong { display: block; font-size: min(200%, 13vw); letter-spacing: 8.4px; line-height: 1; text-transform: uppercase; }
.page-intro p { margin: 1.75rem 0 0; font: 2.125rem/1.5 var(--f-term); }
.page-intro .page-intro__eyebrow { margin: 0 0 0.2em; font: 700 clamp(1.05rem, 2.6vw, 2.6rem)/1.1 var(--f-body); }
@media (min-width: 551px) { .page-intro__title { font-size: 1.875rem; } }
@media (min-width: 576px) {
  .page-intro--spaced { margin-top: 7.375rem; }
  .page-intro__title { font-size: 2.3425rem; }
  .page-intro p { font-size: 2.25rem; }
}
@media (min-width: 768px) {
  .page-intro.wrap { padding-inline: 5%; }
  .page-intro--spaced { margin-top: 9.375rem; }
  .page-intro__title strong { font-size: min(300%, 13vw); }
  .page-intro p { font-size: 2.5rem; }
}
@media (min-width: 992px) {
  .page-intro.wrap { padding-inline: 10.5%; }
  .page-intro__title { font-size: 2.8125rem; }
}
@media (min-width: 1200px) {
  .page-intro__title { font-size: 3.75rem; }
  .page-intro__title strong { font-size: min(350%, 13vw); }
}

/* Half-stadium pill behind a section heading, from the original .pill-container.left.stacked. */
.pill-container { position: absolute; top: -3.5%; left: -9%; z-index: -1; }
.pill { position: relative; width: 100px; height: 170px; }
.pill::before { content: ''; position: absolute; top: 0; left: 0; width: 200%; height: 100%; background: var(--accent); border-radius: 0 20rem 20rem 0; }
@media (min-width: 576px) { .pill-container { top: -22.5%; } .pill { width: 150px; height: 300px; } }
@media (min-width: 768px) { .pill { width: 200px; height: 400px; } }
@media (min-width: 992px) { .pill { width: 250px; height: 500px; } }
@media (min-width: 1200px) { .pill { width: 300px; height: 600px; } }
@media (min-width: 1500px) and (max-width: 1920px) { .pill { width: 380px; } }

/* ---------- home ---------- */
/* Hero geometry mirrors the original site's #hello rules, including its breakpoints. */
.home-hello {
  position: relative;
  padding: 1.25rem 12px 4.375rem;
  background: url('/assets/images/misc/top-background.svg') no-repeat 192% -100px / 92% auto;
  overflow: hidden;
}
.logo--home { display: block; width: 110px; }
.logo--home img { display: block; width: 100%; }
.home-hello__intro { display: flex; align-items: center; margin: 5.375rem 0 0 20%; }
.home-hello__megaphone { width: 100%; max-width: 110px; flex: none; }
[data-theme='dark'] .home-hello__megaphone { background: #fff; border-radius: 50%; padding: 0.6rem; }
.home-hello__title { display: flex; flex-direction: column; align-items: flex-start; margin: 0; line-height: 1.1; color: #000; transform: translateY(-1.5rem); }
.home-hello__title em, .home-hello__title strong { display: block; font-style: normal; line-height: 1; position: relative; text-transform: uppercase; white-space: nowrap; }
.home-hello__title em {
  font-size: 3.75rem; font-weight: 700;
  transform: rotate(-18deg) translateY(-100%);
  transform-origin: top right;
  left: -4%;
}
.home-hello__title strong {
  font-size: 1.25rem; font-weight: 700;
  transform: rotate(18deg) translateY(100%);
  transform-origin: bottom right;
  left: -2%; bottom: -2.5rem;
}
[data-theme='dark'] .home-hello__title { -webkit-text-stroke: 0.09em var(--teal); paint-order: stroke fill; }
@media (max-width: 400px) { .home-hello__intro { margin-left: 12.5%; } }
@media (min-width: 576px) {
  .home-hello { padding: 1.875rem 12px 8.375rem; background-position: 101% -100px; background-size: 78% auto; }
  .logo--home { width: 250px; }
  .home-hello__intro { margin-top: 6.75rem; }
  .home-hello__megaphone { max-width: 150px; }
  .home-hello__title { transform: translateY(-1.875rem); }
  .home-hello__title em { font-size: 5.625rem; top: -0.5rem; }
  .home-hello__title strong { font-size: 1.875rem; bottom: -3rem; }
}
@media (min-width: 768px) {
  .home-hello { background-size: 73% auto; }
  .logo--home { width: 300px; }
  .home-hello__intro { margin-top: 7.5rem; margin-left: 12%; }
  .home-hello__megaphone { max-width: 220px; }
  .home-hello__title { transform: translateY(-2.25rem); }
  .home-hello__title em { font-size: 8.75rem; top: -1.5rem; }
  .home-hello__title strong { font-size: 3rem; bottom: -4.5rem; }
}
@media (min-width: 992px) {
  .home-hello__intro { margin-top: 8.375rem; margin-left: 12.5%; }
  .home-hello__megaphone { max-width: 328px; }
  .home-hello__title { transform: translateY(-3.25rem); }
  .home-hello__title em { font-size: 10.5rem; top: -2.5rem; }
  .home-hello__title strong { font-size: 3.25rem; bottom: -5.5rem; }
}
@media (min-width: 1200px) {
  .home-hello { padding-bottom: 14rem; }
  .home-hello__intro { margin-left: 25%; }
  .home-hello__title em { font-size: 12.5rem; }
  .home-hello__title strong { font-size: 3.75rem; }
}
@media (min-width: 1900px) { .home-hello { background-position-y: -220px; } }
.js .home-hello__title span { opacity: 0; transition: opacity 0.4s; }
.js .home-hello__title.is-on span { opacity: 1; }
.js .home-hello__title.is-on span:nth-child(2) { transition-delay: 0.25s; }
.js .home-hello__title.is-on span:nth-child(3) { transition-delay: 0.5s; }
.js .home-hello__title em { opacity: 0; transition: opacity 0.4s; }
.js .home-hello__title.is-on em { opacity: 1; }

/* Bubble and computer mirror the original #what-we-do rules: the computer overlaps the bubble's bottom-right corner. */
.home-bubble { padding: 0 2.5% 9rem; }
.home-bubble__col { position: relative; margin-inline: 12px; width: calc(100% - 24px); }
.speech-bubble--big {
  background: var(--bg);
  border: 8px solid var(--line);
  border-radius: 40px;
  padding: 30px;
}
.speech-bubble--big::before, .speech-bubble--big::after {
  content: ''; position: absolute; width: 0; height: 0;
  background: none; transform: none;
  border: 48px solid transparent; border-top-color: var(--line);
  top: 100%; bottom: auto; left: auto; right: 23%;
}
.speech-bubble--big::after { border-width: 42px; border-top-color: var(--bg); top: auto; bottom: -83px; right: 24.1%; }
.typewriter { font: 1.875rem/1.1 var(--f-term); margin: 0; }
.typewriter.is-typing::after { content: ''; display: inline-block; width: 0.55em; height: 0.9em; background: currentColor; margin-left: 0.1em; vertical-align: -0.08em; animation: blink 1s steps(1) infinite; }
.home-bubble__computer { position: absolute; right: -1.5%; top: 89%; width: 32%; margin: 0; z-index: 1; }
.home-bubble__computer img { width: 100%; }
@media (max-width: 400px) { .speech-bubble--big::after { right: 24.6%; } }
@media (max-width: 575.98px) {
  [data-theme='dark'] .home-bubble__computer { right: 8px; min-width: 7.75rem; padding: 0 0.5rem 0.5rem; }
  [data-theme='dark'] .home-bubble__computer .window__bar { margin: 0 -0.5rem 0.5rem; padding-inline: 0.4rem; font-size: 1rem; }
}
@media (min-width: 576px) {
  .home-bubble { padding: 0 5% 20rem; }
  .home-bubble__col { width: calc(91.667% - 24px); }
  .speech-bubble--big { padding: 40px; min-height: 286px; }
  .speech-bubble--big::before { right: 23.25%; }
  .speech-bubble--big::after { right: 24.4%; }
  .typewriter { font-size: 2.8125rem; }
  .home-bubble__computer { top: 85%; right: -7.5%; width: 45%; }
}
@media (min-width: 768px) {
  .speech-bubble--big { border-radius: 80px; min-height: 352px; }
  .speech-bubble--big::before { right: 23.777%; }
  .typewriter { font-size: 3.75rem; }
  .home-bubble__computer { right: -15%; }
}
@media (min-width: 992px) {
  .speech-bubble--big { border-width: 16px; min-height: 636px; max-width: 82%; padding: 60px 50px 120px 80px; }
  .speech-bubble--big::before { border-width: 56px; top: auto; bottom: -112px; right: 22.5%; }
  .typewriter { font-size: 5rem; }
  .home-bubble__computer { width: 100%; max-width: 430px; top: 75%; right: -7.5%; }
}
@media (min-width: 992px) and (max-width: 1200px) { .speech-bubble--big { max-width: 92%; } }
@media (min-width: 1200px) {
  .home-bubble__col { width: calc(83.333% - 24px); }
  .speech-bubble--big { padding: 80px 70px 140px 100px; }
}

.contact-cta { display: flex; flex-direction: column; align-items: center; width: calc(91.667% - 24px); margin: 0 auto 3rem; text-align: center; }
.contact-cta h3 { font: 40px/1.2 var(--f-term); text-transform: uppercase; margin: 0 0 0.5rem; }
@media (min-width: 768px) {
  .contact-cta { width: calc(66.667% - 24px); }
  .contact-cta h3 { font-size: 80px; }
}

/* AI section: the one deliberately dark band on the light site */
.home-ai {
  --bg: #000;
  --fg: var(--term-fg);
  --line: var(--term-fg);
  --muted: var(--term-dim);
  --accent: var(--teal);
  background: #000;
  color: var(--term-fg);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-block: 6px solid #000;
  position: relative;
}
/* Opt-in glow and scanlines: add class="home-ai home-ai--glow" to the section. */
.home-ai--glow::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 80% 0%, rgba(44, 254, 242, 0.14), transparent 55%);
}
.home-ai .mega { color: var(--term-fg); font-size: clamp(2.6rem, 8vw, 7.5rem); }
.home-ai .mega > span:first-child { font: clamp(1.8rem, 3vw, 2.6rem)/1 var(--f-term); color: var(--teal); text-transform: lowercase; }
.home-ai .mega > span:first-child::after { content: '...'; }
.home-ai__lead { max-width: 60ch; color: var(--term-fg); }
.home-ai__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 3rem; align-items: start; }
@media (min-width: 1100px) { .home-ai__grid { grid-template-columns: 6fr 5fr; } }
.home-ai .term { border-color: var(--teal); }
.home-ai__cta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 3rem; }
.home-ai .btn { --btn-bg: #000; --btn-hatch: var(--teal); color: var(--teal); border-color: var(--teal); text-transform: none; }

.ls-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ls-cards a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid #2b3335;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.ls-cards a:hover, .ls-cards a:focus-visible { border-color: var(--teal); background: rgba(44, 254, 242, 0.06); transform: translateX(4px); }
.ls-cards__perm { font: 1.3rem/1.4 var(--f-term); color: var(--term-dim); }
.ls-cards__name { font: 1.9rem/1.1 var(--f-term); color: var(--teal); }
.ls-cards__desc { grid-column: 1 / -1; font-size: 1rem; color: var(--term-fg); opacity: 0.88; }
.ls-cards__hub a { border-style: dashed; }
.ls-cards__hub .ls-cards__name { color: var(--purple); }
.ls-cards__hub .ls-cards__perm { color: var(--purple); }

/* Skills section: sizes and card geometry from the original #skills / .skill rules. */
.home-skills { position: relative; overflow: hidden; padding: 3.75rem 5px 4.375rem 20px; }
.home-skills__inner { position: relative; z-index: 1; padding-inline: calc(2.5% + 12px); }
.skills-title {
  display: flex; flex-direction: column; align-items: flex-start;
  margin: 0 0 4rem;
  font: 700 3.75rem/0.9 var(--f-body);
  text-transform: uppercase;
}
.skills-title span { font-size: 1.25rem; text-transform: none; margin: 0 0 0.625rem; }
.home-skills__copy { font-size: 1.25rem; line-height: 1.5; margin-bottom: 3rem; }
.toolbox-label { margin-top: 0; }
.skill-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.8125rem 1.5rem;
}
.skill-grid > li { height: 100vh; max-height: 310px; transition: transform 0.3s ease-in-out; }
.skill-card {
  position: relative; display: block; height: 100%;
  padding: 1.5rem 1.25rem 1.5rem 10%;
  background: #fff; border: 5px solid #000; border-radius: 10px;
  text-decoration: none;
  /* The original cards render in the system font (no family was set); kept to match. */
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* The hatched shadow lives inside the card so it tilts with it; the clip-path keeps only the
   L-shaped strip that peeks out above and to the left. */
.skill-card::before {
  content: ''; position: absolute; pointer-events: none;
  width: 100%; height: 101.5%; top: -7.75%; left: -4.5%;
  border: 5px solid #000; border-radius: 10px;
  background: repeating-linear-gradient(30deg, #000 0 3px, transparent 3px 8px);
  clip-path: polygon(100% 0, 100% 5.5%, 5% 5.5%, 5% 100%, 0 100%, 0 0);
}
.skill-card span { position: absolute; top: 1.875rem; left: 0; width: 100%; text-align: center; font-size: 1.25rem; text-transform: uppercase; }
.skill-card h3 { position: relative; top: 35%; margin: 0; font-size: 2.5rem; font-weight: 700; line-height: 1.2; hyphens: manual; }
.skill-card--ai { background: var(--teal); }
.skill-card--ai::after { content: 'ai/'; position: absolute; right: 1rem; bottom: 0.75rem; font: 2rem/1 var(--f-term); }
/* Tilt away from the side the pointer entered (set by app.js). */
.skill-grid > li[data-tilt='left']:hover { transform: perspective(1500px) rotateY(-15deg); }
.skill-grid > li[data-tilt='right']:hover { transform: perspective(1500px) rotateY(15deg); }
.skill-grid > li[data-tilt='top']:hover { transform: perspective(1500px) rotateX(15deg); }
.skill-grid > li[data-tilt='bottom']:hover { transform: perspective(1500px) rotateX(-15deg); }
@media (max-width: 400px) { .home-skills { padding-top: 40px; } }
/* Phones: long titles ("Legacy Software Develop-ment") overflowed the fixed-height card, so let the
   card grow with its title and keep the label clear of it. */
@media (max-width: 767px) {
  .skill-grid > li { height: auto; max-height: none; }
  .skill-card { min-height: 220px; padding-top: 4.25rem; }
  .skill-card h3 { top: 0; font-size: min(2.5rem, 11vw); }
  .skill-card--ai::after { bottom: auto; top: 0.9rem; right: 1rem; font-size: 1.6rem; }
}
@media (min-width: 576px) {
  .home-skills { padding: 9rem 0 4.375rem; }
  .home-skills__inner { padding-inline: calc(5% + 12px); }
}
@media (min-width: 768px) {
  .skills-title { font-size: 8.75rem; }
  .skills-title span { font-size: 2.5rem; }
  .home-skills__copy { width: 66.667%; }
  .skill-grid { row-gap: 1.875rem; }
  .skill-grid > li { max-height: 430px; }
  .skill-card::before { top: -3.75%; clip-path: polygon(100% 0, 100% 3.5%, 3.5% 3.5%, 3.5% 100%, 0 100%, 0 0); }
  .skill-card h3 { top: 27.5%; font-size: 3rem; }
}
@media (min-width: 992px) {
  .skills-title { font-size: 12.5rem; }
  .skills-title span { font-size: 3.75rem; }
  .home-skills__copy { width: 50%; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-grid > li { max-height: 550px; }
  .skill-card h3 { top: 20%; font-size: 3.75rem; }
}
@media (min-width: 1400px) { .skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Cyan dome that rises behind the cards. app.js drives --moon-top from scroll position on wide
   screens; without it (narrow screens, reduced motion, no JS) it rests in its final spot. */
.half-moon {
  position: absolute; left: 0; width: 100%; height: 100%;
  top: var(--moon-top, 85%);
  background: var(--teal);
  z-index: 0;
  will-change: top;
}
.half-moon::before {
  content: ''; position: absolute; left: 0; top: -50%;
  width: 100%; height: 100%;
  background: inherit;
  border-radius: 100rem 100rem 0 0;
}

/* ---------- marquee ---------- */
.marquee { position: relative; background: #000; color: #fff; overflow: hidden; z-index: 2; }
.marquee__link { display: block; color: inherit; text-decoration: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; padding-block: 1.6rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__content { display: flex; }
.marquee__content span {
  display: inline-flex; align-items: center; gap: 1rem;
  font: clamp(1.6rem, 2.6vw, 2.4rem)/1 var(--f-term);
  text-transform: uppercase;
  padding-right: 1rem;
  white-space: nowrap;
}
.marquee__content span::after { content: ''; width: 1.2em; height: 1.2em; background: center / contain no-repeat; }
.marquee--heart .marquee__content span::after { background-image: url('/assets/images/misc/heart-icon.svg'); }
.marquee--work .marquee__content span::after { background-image: url('/assets/images/misc/folder-icon.svg'); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__egg {
  position: absolute; right: var(--gutter); top: 50%;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.25rem 1rem 0.25rem 0.25rem;
  background: #fff; color: #000;
  border: 3px solid #000; border-radius: 999px;
  transform: translate(0, 140%);
  transition: transform 0.3s;
  pointer-events: none;
}
.marquee__egg img { width: 56px; }
.marquee__egg p { margin: 0; font: 1.5rem/1 var(--f-term); }
.marquee:hover .marquee__egg, .marquee:focus-within .marquee__egg { transform: translate(0, -50%); }

/* ---------- built different ---------- */
.built-different {
  background: var(--teal);
  padding-block: clamp(4rem, 8vw, 7rem) clamp(6rem, 12vw, 12rem);
  border-radius: 0 0 50% 50% / 0 0 clamp(80px, 14vw, 240px) clamp(80px, 14vw, 240px);
  margin-bottom: 4rem;
}
.built-different__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; margin-top: 3rem; }
@media (min-width: 768px) { .built-different__grid { grid-template-columns: 1fr 1fr; } }
.built-different__col { display: flex; flex-direction: column; }
.built-different__col .window { align-self: center; margin-block: 1.5rem; }
.built-different h3 { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 900; text-transform: uppercase; }

/* ---------- contact form ---------- */
.contact-section { padding-block: 3rem 5rem; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form legend { font: 1.5rem/1 var(--f-term); margin-bottom: 1rem; padding: 0; }
.contact-form label { display: block; margin-bottom: 1.25rem; }
.contact-form label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact-form__row { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font: 1.6rem/1.2 var(--f-term);
  padding: 0.8rem 1rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--fg); opacity: 0.9; }
.contact-form { --field-focus: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; }
.contact-form label:focus-within > input, .contact-form label:focus-within > textarea { background: var(--field-focus); }
.contact-form__message:focus-within::after { background: var(--field-focus); }
.contact-form__message { position: relative; }
.contact-form__message::after {
  content: ''; position: absolute; left: 60px; bottom: -14px;
  width: 26px; height: 26px; background: var(--bg);
  border-right: var(--border); border-bottom: var(--border);
  transform: rotate(45deg);
}
.contact-form textarea { min-height: 12rem; resize: vertical; }
.contact-form .btn { float: right; margin-top: 0.5rem; }
.contact-form fieldset::after { content: ''; display: block; clear: both; }
.contact-form__status { font: 1.4rem/1.2 var(--f-term); min-height: 1.2em; }
.contact-form__status.is-error { color: var(--red); }
.contact-form [aria-invalid='true'] { border-color: var(--red); }
.contact-form__success { text-align: center; padding: 3rem 1rem; border: var(--border); border-radius: 12px; background: var(--teal); color: #000; }
.contact-form__success .term-line { color: #000; }
.contact-form__success h3 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; text-transform: uppercase; margin: 0; }

.find-us { padding-block: 2rem 4rem; }
.find-us__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 992px) { .find-us__grid { grid-template-columns: 1fr 1fr; } }
.find-us__line { display: flex; align-items: center; gap: 1rem; font-size: 1.3rem; }
.find-us__line svg { width: 56px; flex: none; }
[data-theme='dark'] .find-us__line svg { background: #fff; border-radius: 8px; padding: 4px; }
.find-us__map p { padding-top: 0.5rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 3rem; }
.site-footer__dome {
  position: relative;
  background: var(--accent, var(--teal));
  border-radius: 50% 50% 0 0 / clamp(60px, 12vw, 200px) clamp(60px, 12vw, 200px) 0 0;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 1.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: end;
}
/* Same idea for the footer dome: keep the first column clear of the curve on phones. */
@media (max-width: 767px) {
  .site-footer__dome { padding: calc(60px * 0.8 + 1.5rem) 1.75rem 1.5rem; }
}
@media (min-width: 992px) { .site-footer__dome { grid-template-columns: 4fr 8fr; } }
.site-footer__icons { display: none; align-items: flex-end; justify-content: center; gap: 1rem; }
.site-footer__icons svg { width: 120px; }
.site-footer__icons svg:last-child { width: 200px; }
@media (min-width: 992px) { .site-footer__icons { display: flex; } }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem 2.5rem; font-size: 1.15rem; }
.site-footer h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 0.5rem; }
.social-icons { display: flex; gap: 1.25rem; }
.site-footer__copy { grid-column: 1 / -1; font: 2rem/1 var(--f-term); margin: 1rem 0 0; }
.site-footer__colophon { font: 1.3rem/1 var(--f-term); margin-left: 1.25rem; text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- colophon ---------- */
.colophon { padding-bottom: 4rem; }
.colophon .term { max-width: 980px; }
.colophon__body { padding: 1.25rem; font-size: 1.05rem; }
.colophon__body h2 { font: 1.6rem/1.2 var(--f-term); color: var(--teal); margin: 1.75rem 0 0.5rem; }
.colophon__body h2:first-child { margin-top: 0; }
.colophon__body h2::before { content: '## '; color: var(--term-dim); }
.colophon__body dl { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.35rem 1.25rem; margin: 0; }
.colophon__body dt { font: 1.3rem/1.35 var(--f-term); color: var(--term-dim); }
.colophon__body dd { margin: 0; }
.colophon__body a { color: var(--teal); }
.colophon__body p { padding: 0; margin: 0 0 0.75rem; }
@media (max-width: 560px) { .colophon__body dl { grid-template-columns: 1fr; } .colophon__body dd { margin-bottom: 0.5rem; } }
/* The footer dome and stripes take the page's accent color, as in the original. */
body:has(main.accent-pink) .site-footer { --accent: var(--pink); }
body:has(main.accent-purple) .site-footer { --accent: var(--purple); }
body:has(main.accent-orange) .site-footer { --accent: var(--orange); }
body:has(main.accent-blue) .site-footer { --accent: var(--blue); }
.site-footer__stripes {
  height: 70px;
  border-block: 6px solid #000;
  background: repeating-linear-gradient(105deg, var(--accent, var(--teal)) 0 30px, #000 30px 36px);
}

/* ---------- service pages ---------- */
.service .hero { margin-bottom: 1rem; }
.svc-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 992px) { .svc-intro { grid-template-columns: 7fr 5fr; } }
.svc-intro h2, .svc-list h2 { font-size: 1.6rem; font-weight: 700; text-transform: none; }
.ls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0.4rem 1.25rem; }
.ls li { font: 1.45rem/1.15 var(--f-term); padding-left: 1.4rem; position: relative; }
.ls li::before { content: '*'; position: absolute; left: 0; color: var(--accent); font-size: 1.6rem; }
.svc-block {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem;
  padding: 2.5rem var(--gutter);
  max-width: 1400px; margin-inline: auto;
}
@media (min-width: 768px) {
  .svc-block { grid-template-columns: 3fr 9fr; }
  .svc-block::before { content: ''; position: absolute; top: 0; right: var(--gutter); left: 28%; border-top: 2px solid var(--accent); }
}
.svc-block__label { font: clamp(1.7rem, 2.2vw, 2.1rem)/1.25 var(--f-term); text-transform: uppercase; position: relative; z-index: 1; }
.svc-block__label::before { content: '# '; color: var(--accent); }
.svc-block__body { max-width: 68ch; }
.svc-block__body h3 { font-style: italic; font-weight: 700; font-size: 1.3rem; margin: 1.5rem 0 0.4rem; }
.svc-block__body h3:first-child { margin-top: 0; }
.svc-block__body h3.pills-label { font-size: 1.1rem; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pills li { font: 1.4rem/1 var(--f-term); padding: 0.5rem 1.25rem; border-radius: 999px; background: var(--gray); color: #000; }
.svc-block[data-decor]::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; background: var(--accent); width: 300px; height: 500px; top: 2rem; display: none; }
@media (min-width: 768px) { .svc-block[data-decor='right']::after, .svc-block[data-decor='left']::after { display: block; } }
.svc-block[data-decor='right']::after { right: calc(-250px + (100vw - min(100vw, 1400px)) / -2); }
.svc-block[data-decor='left']::after { left: calc(-170px + (100vw - min(100vw, 1400px)) / -2); }
.service main, main.service { overflow-x: clip; }

.tagline {
  margin-top: 4rem;
  background: var(--accent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 3rem;
  text-align: center;
}
.tagline p { font: clamp(1.6rem, 2.6vw, 2.4rem)/1.25 var(--f-term); max-width: 34ch; margin: 0 auto; }
/* On phones a full-height dome curves in too steeply at the top corners and clips the text. Use a
   shallow fixed arc and start the text below its steep part. */
@media (max-width: 767px) {
  .tagline { --arc: 90px; border-radius: 50% 50% 0 0 / var(--arc) var(--arc) 0 0; padding: calc(var(--arc) * 0.8 + 0.75rem) 1.75rem 2.5rem; }
}

.faq { padding-block: 4rem; }
.faq__title { font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 9vw, 8rem); line-height: 0.9; }
.faq__title span { display: block; text-transform: none; font-size: 0.32em; font-weight: 700; }
.faq__item { border: var(--border); border-radius: 12px; margin-bottom: 1rem; padding: 0 clamp(1rem, 3vw, 2.5rem); background: var(--bg); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.5rem;
  font: clamp(1.6rem, 2.6vw, 2.4rem)/1.15 var(--f-term);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ''; flex: none; width: 40px; height: 40px; background: url('/assets/images/illustrations/plus-icon.svg') center / contain no-repeat; }
.faq__item[open] summary::after { background-image: url('/assets/images/illustrations/minus-icon.svg'); }
[data-theme='dark'] .faq__item summary::after { background-color: #fff; border-radius: 50%; }
.faq__item p { padding-bottom: 1.5rem; margin: 0; font-size: 1.15rem; }

/* AI pages */
.ai-modules { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); list-style: none; padding: 0; margin: 0; }
.ai-modules a { display: block; height: 100%; text-decoration: none; }
.ai-modules .term { height: 100%; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 6px 6px 0 var(--accent); }
.ai-modules a:hover .term, .ai-modules a:focus-visible .term { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--accent); }
.ai-modules h3 { font: 2rem/1.1 var(--f-term); color: var(--teal); padding: 1rem 1.25rem 0.25rem; margin: 0; }
.ai-modules p { font-size: 1rem; }
.section-pad { padding-block: 3rem; }
.ai-run { padding-block: 2rem 1rem; }
.ai-run .term { max-width: 900px; }
.crossnav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; font: 1.5rem/1.2 var(--f-term); padding-block: 1rem 2rem; }
.crossnav a { text-decoration: none; }
.crossnav a::before { content: 'cd ../'; color: var(--muted); }
@media (hover: hover) { .crossnav a:hover { color: var(--accent); } }
.crossnav { position: relative; z-index: 1; }
.crossnav a[aria-current='page'] { background: var(--fg); color: var(--bg); padding: 0 0.4rem; }
.crossnav a[aria-current='page']::before { content: '> '; color: var(--accent); }

/* ---------- about / team ---------- */
/* Story content (src/content/stories), used in team windows and optional panels under the team. */
.plan { padding-bottom: 4rem; }
.plan .term { max-width: 980px; }
.plan__body { padding: 1.25rem 1.5rem 1.5rem; }
.story__head { margin: 0 0 1rem; font: 1.3rem/1.25 var(--f-term); color: var(--term-dim); white-space: pre-wrap; overflow-wrap: anywhere; }
.story__title { font: 1.6rem/1 var(--f-term); color: var(--teal); margin: 0 0 0.6rem; }
.plan__body p, .win__story p { margin: 0 0 1rem; color: var(--term-fg); font-size: 1.05rem; }
.plan__body .story__source, .win__story .story__source { font: 1.35rem/1.2 var(--f-term); margin: 0.5rem 0 0; }
.story__source a { color: var(--teal); }

/* Team cards open windows (no flipping). The photo/ASCII and plaque are one button. */
.team-section { padding: 1.875rem 1.025rem 4.6875rem; }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.875rem 1.5rem; }
.team-card__open {
  display: block; width: 100%; padding: 0; text-align: center; cursor: pointer;
  color: var(--fg); font: inherit;
  background: var(--bg);
  border: 4px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.team-card__open:hover, .team-card__open:focus-visible { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--accent); }
.team-card__photo { position: relative; display: block; aspect-ratio: 438 / 506; overflow: hidden; background: var(--accent); isolation: isolate; }
.team-card__headshot {
  position: absolute; bottom: 0; left: 0; width: 100%;
  mix-blend-mode: hard-light;
  filter: brightness(0.6) drop-shadow(2px 4px 6px #000);
}
/* ASCII portraits: app.js draws /media/ascii/<id>.txt onto the canvas. With JS the photo starts
   invisible (it stays in the HTML with its alt text for search engines), so there's no flash of
   it; without JS, or if the text fails to load (.ascii-failed), the tinted photo shows. */
.team-card__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s; }
.js .team-card__photo[data-ascii] { background: #000; }
.js .team-card__photo[data-ascii] .team-card__headshot { opacity: 0; transition: opacity 0.4s; }
.team-card__photo.is-ascii .team-card__canvas { opacity: 1; }
.js .team-card__photo.ascii-failed { background: var(--accent); }
.js .team-card__photo.ascii-failed .team-card__headshot { opacity: 1; }
.team-card__plaque { display: block; border-top: 4px solid var(--line); padding: 1.75rem 0 1.25rem; }
.team-card__name, .team-card__title { display: block; font: 400 1.25rem/1 var(--f-body); text-transform: uppercase; }
.team-card__name { margin-bottom: 0.5rem; }
.team-card__cta { display: block; padding: 0 0 1.25rem; font: 1.3rem/1 var(--f-term); color: var(--muted); }
.team-card__open:hover .team-card__cta, .team-card__open:focus-visible .team-card__cta { color: var(--fg); }
@media (min-width: 768px) {
  .team-section { padding: 1.875rem 7% 4.6875rem; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Team windows: terminal-style, draggable on desktop (app.js), full-screen sheets on phones. */
.win {
  position: fixed; z-index: 80; top: 100px; left: 40px;
  display: flex; flex-direction: column;
  width: min(560px, calc(100vw - 2rem)); max-height: min(78vh, 720px);
  background: var(--term-bg); color: var(--term-fg);
  border: 3px solid var(--accent); border-radius: 10px;
  box-shadow: 10px 10px 0 var(--accent);
}
.win[hidden] { display: none; }
.win__bar {
  display: flex; align-items: center; gap: 0.75rem; flex: none;
  padding: 0.4rem 0.6rem 0.4rem 0.9rem;
  border-bottom: 2px solid #2b3335;
  font: 1.35rem/1.2 var(--f-term); color: var(--term-dim);
  cursor: grab; user-select: none; touch-action: none;
}
.win.is-dragging .win__bar { cursor: grabbing; }
.win__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__close { border: 0; background: none; padding: 0.1rem 0.3rem; cursor: pointer; font: 1.5rem/1 var(--f-term); color: var(--accent); }
.win__close:hover, .win__close:focus-visible { background: var(--accent); color: #000; }
/* contain: reaching the end of a window's scroll doesn't start scrolling the page behind it. */
.win__body { overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem 1.5rem 1.5rem; scrollbar-color: var(--accent) transparent; }
.win__name { font: 2rem/1.1 var(--f-term); color: #fff; margin: 0 0 1rem; }
.win__name span { color: var(--accent); }
.win__bio p { margin: 0 0 1rem; font-size: 1.05rem; color: var(--term-fg); }
.win__bio a { color: var(--accent); }
.win__story { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 2px dashed #2b3335; }
@media (max-width: 767px) {
  .win {
    inset: 0 !important; width: auto; max-height: none;
    padding-top: env(safe-area-inset-top, 0px);
    border-radius: 0; border-width: 0; box-shadow: none;
    overscroll-behavior: contain;
  }
  .win__bar { cursor: default; }
}

/* ---------- our work ---------- */
.work-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem; padding-bottom: 3rem; }
@media (min-width: 992px) { .work-list { grid-template-columns: 2fr 10fr; } }
.work-list__title { font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 4vw, 3.4rem); }
.work-list__intro { font: clamp(1.4rem, 2vw, 1.8rem)/1.3 var(--f-term); }
.work-rows { list-style: none; margin: 2rem 0 0; padding: 0; border-top: var(--border); }
.work-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0.5rem; border-bottom: var(--border); text-decoration: none; font: clamp(2rem, 4vw, 3.4rem)/1 var(--f-term); }
.work-row__title::before { content: '> '; color: transparent; transition: color 0.15s; }
.work-row:hover .work-row__title::before { color: var(--accent); }
.work-row__arrow { position: relative; width: 83px; flex: none; }
.work-row__arrow svg { display: block; }
[data-theme='dark'] .work-row__arrow svg { background: #fff; border-radius: 8px; }
.work-row__hover { position: absolute; right: 100%; top: 50%; width: 240px; max-width: none; transform: translateY(-50%) scale(0.9); opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.work-row:hover .work-row__hover { opacity: 1; transform: translateY(-50%) scale(1); }
.work-detail { padding-bottom: 3rem; }
.crumb { font: 1.5rem/1 var(--f-term); color: var(--muted); }
.crumb a { color: var(--fg); }
.work-section { border: var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 2rem; background: var(--bg); }
.work-section > h1, .work-section > h2, .work-section > p, .work-section > ul { margin-inline: clamp(1rem, 4vw, 3rem); }
.work-section > h1, .work-section > h2 { margin-top: 2rem; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; text-transform: uppercase; }
.work-section > ul { margin-bottom: 2rem; }
.work-section__images { border-top: var(--border); background: #fff; }
.work-section__images img { display: block; width: 100%; }

/* ---------- blog (ported from the original _blog-nav, _blog-cards and _blog-post styles) ---------- */
.blog-nav { margin: 8.75rem 0 0; border-block: 4px solid var(--line); font: 2.5rem/1.5 var(--f-term); color: var(--fg); }
.blog-nav__trigger { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.blog-nav__trigger::after { content: '^'; position: absolute; top: -0.4375rem; right: 5.5%; line-height: 1.875; transform: rotate(180deg); }
.blog-nav__trigger[aria-expanded='true'] { margin-bottom: 0.625rem; }
.blog-nav__trigger[aria-expanded='true']::after { top: 0; transform: none; }
.blog-nav ul { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.js .blog-nav ul:not(.is-open) { display: none; }
.blog-nav li { width: 100%; text-align: center; }
.blog-nav a { display: block; color: inherit; text-decoration: none; }
.blog-nav li.active { padding: 0 20px; background: var(--teal); border-radius: 30px; color: #000; }
@media (min-width: 576px) { .blog-nav__trigger::after { right: 11%; } }
@media (min-width: 768px) { .blog-nav__trigger::after { right: 17.5%; } .blog-nav__more { display: none; } }
@media (min-width: 992px) {
  .blog-nav__trigger { display: none; }
  .blog-nav ul, .js .blog-nav ul:not(.is-open) { display: flex; flex-direction: row; justify-content: space-between; padding: 0 7.125%; }
  .blog-nav li { width: auto; }
}

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.875rem 1.5rem; padding: 3.75rem 0.5rem 5.625rem; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 7%; } }
@media (min-width: 992px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { position: relative; display: flex; flex-direction: column; border: 4px solid #000; border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; }
.post-card__title { flex-grow: 1; }
.post-card h2 { margin: 0; padding: 1.25rem 1.25rem 1.875rem; font: 400 1.875rem/1.1 var(--f-body); text-transform: uppercase; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a::after { content: ''; position: absolute; inset: 0; }
.post-card h2 a:focus-visible { outline: none; }
.post-card:has(a:focus-visible) { outline: 3px solid var(--fg); outline-offset: 3px; }
.post-card__preview { display: flex; border-block: 4px solid #000; }
.post-card__preview img, .post-card__logo { flex: 0 0 50%; max-width: 50%; min-height: 130px; border-right: 2px solid #000; object-fit: cover; }
.post-card__logo { background: url('/assets/images/global/WV-Logo-R.svg') center / 100% 90% no-repeat; height: 143px; }
.post-card__cat { flex: 0 0 50%; display: flex; align-items: center; justify-content: center; margin: 0; padding: 1.25rem; border-left: 2px solid #000; background: var(--accent); font: 2.5rem/1 var(--f-term); letter-spacing: 2px; text-transform: uppercase; text-align: center; }
.post-card__date time { display: block; padding: 1.25rem 1.25rem 1.875rem; font: 2.5rem/1 var(--f-term); letter-spacing: 2px; }

.post-wrap { padding: 0 2.5% 3.75rem; }
@media (min-width: 576px) { .post-wrap { padding-inline: 5%; } }
@media (min-width: 768px) { .post-wrap { padding-inline: 10.5%; } }
.post-article { border: 4px solid var(--line); border-radius: 0.625rem; overflow: hidden; }
.post-article__header { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) { .post-article__header { grid-template-columns: 1fr 1fr; } }
.post-article__meta { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 1.875rem; border-bottom: 4px solid var(--line); }
@media (min-width: 1200px) { .post-article__meta { border-bottom: 0; border-right: 2px solid var(--line); } .post-article__image { border-left: 2px solid var(--line); } }
.post-article__meta h1 { margin: 0.5rem 0; font: 400 3.75rem/1.1 var(--f-body); text-transform: none; overflow-wrap: break-word; }
.post-article__cat, .post-article__meta time { margin: 0; font: 2.5rem/1 var(--f-term); text-transform: capitalize; }
.post-article__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-article__logo { padding: 3rem; }
.post-article__body.prose { max-width: none; margin: 0; padding: 1.875rem; border-block: 4px solid var(--line); font: 400 1.875rem/1.5 var(--f-body); }
@media (min-width: 768px) { .post-article__body.prose { padding: 2.8125rem 6.25rem 3.75rem; } }
@media (min-width: 992px) { .post-article__body.prose { padding: 2.8125rem 12.5rem 3.75rem; } }
.post-article__body p { letter-spacing: 1.4px; }
.post-article__body a { color: inherit; }
.post-article__body img { width: 100%; }
.post-article__body code, .post-article__body pre { font-size: inherit; letter-spacing: inherit; }
.post-arrows { font: 2.5rem/1 var(--f-term); }
.post-arrows a { display: flex; align-items: center; gap: 0.75rem; padding: 2rem; color: var(--fg); text-decoration: none; }
.post-arrows a:hover { color: var(--accent); }
.post-arrows__icon svg { display: block; width: auto; height: 0.8em; }
.post-arrows__next { justify-content: flex-end; }
@media (min-width: 768px) {
  .post-arrows { display: grid; grid-template-columns: 1fr 1fr; font-size: 3.75rem; }
  .post-arrows__prev { border-right: 4px solid var(--line); }
  .post-arrows__next { grid-column: 2; }
}
@media (min-width: 992px) { .post-arrows { font-size: 5rem; } }
.post-wrap .cta-banner { margin-top: 70px; }
.prose { max-width: 75ch; margin-inline: auto; font-size: 1.15rem; overflow-wrap: break-word; }
.prose a, .prose :not(pre) > code { overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { margin-top: 2em; line-height: 1.2; }
.prose img { border: var(--border); border-radius: 8px; display: block; margin: 1.5rem auto; background: #fff; }
.prose pre, .prose .highlight {
  background: var(--term-bg); color: var(--term-fg);
  border: var(--border); border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font: 0.95rem/1.5 var(--f-mono);
  box-shadow: 6px 6px 0 var(--accent);
}
.prose .highlight pre { border: 0; box-shadow: none; padding: 0; margin: 0; }
.prose code { font-family: var(--f-mono); font-size: 0.9em; background: color-mix(in srgb, var(--accent) 30%, transparent); padding: 0.05em 0.3em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose blockquote { margin: 1.5rem 0; padding: 0.5rem 1.5rem; border-left: 6px solid var(--accent); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 2px solid var(--line); padding: 0.5rem; }
.prev-next { display: flex; justify-content: space-between; gap: 1rem; padding-block: 2rem; border-top: var(--border); margin-top: 3rem; font: 1.8rem/1.2 var(--f-term); }
.prev-next a { text-decoration: none; max-width: 48%; }
.prev-next a:hover { color: var(--accent); }
.prev-next .next { margin-left: auto; text-align: right; }
.cta-banner {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: center;
  padding: 2rem; margin-bottom: 2rem;
  background: var(--accent); color: #000;
  border: 4px solid #000; border-radius: 12px;
  text-decoration: none;
}
@media (min-width: 992px) { .cta-banner { grid-template-columns: 5fr 6fr auto; } }
.cta-banner__head { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 900; text-transform: uppercase; line-height: 1; }
.cta-banner__sub { font: 1.6rem/1.2 var(--f-term); }

/* ---------- 404 ---------- */
.error-404 { padding-block: 1.5rem 4rem; min-height: 100vh; }
.error-404__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: end; margin-top: 3rem; }
@media (min-width: 768px) { .error-404__grid { grid-template-columns: 7fr 5fr; } }
.error-404 h1 { font-weight: 900; font-size: clamp(5rem, 16vw, 14rem); line-height: 0.85; }
.error-404 h1 span { display: block; font-size: 0.35em; }
.error-404 p { font: 2rem/1.2 var(--f-term); }

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