/* Project Site Kit: the voiceofmoe design system (github.com/Jeneidi/voiceofmoe, main, 2026-10-06),
   ported to plain CSS for single-page project sites. Arabic and right-to-left rules removed.
   Every value below is copied from voiceofmoe's src/index.css unless a comment says otherwise. */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..700;1,6..72,300..700&family=Schibsted+Grotesk:wght@400..800&family=JetBrains+Mono:wght@400;500&display=swap");

/* Palette graded like the spots themselves: teal shadows, tungsten highlights. */
:root {
  color-scheme: dark;
  --color-teal: #0e2529;
  --color-booth: #143239;
  --color-rule: #24464c;
  --color-tungsten: #f0a55b;
  --color-ivory: #f2ece2;
  --color-haze: #8fa7a6;
  --color-alert: #ff9b8a;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace; /* added: numbers, code, data */
  --header: 76px;
  /* One corner radius for every button and every box, no exceptions. */
  --r: 12px;
  /* One alignment method everywhere: the gutter equals the centered column's side margin. */
  --gutter: max(clamp(1.25rem, 4.5vw, 3rem), calc((100% - 76rem) / 2));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --soft: color-mix(in oklab, var(--color-ivory) 80%, var(--color-teal));
  --band-line: color-mix(in oklab, var(--color-tungsten) 70%, var(--color-teal));
  /* Palette-specific shades (voiceofmoe's literal values; every palette overrides these). */
  --accent-hover: #f6b877;
  --rule-hover: #345a60;
  --deep: #0a1d21;  /* darkest band edge */
  --mid: #102d33;   /* band middle */
  --low: #0b2226;   /* hero bottom */
  --glow: 46 112 116;   /* stage-light color, RGB triplet */
  --shade: 12 48 54;    /* hero's dark corner pool, RGB triplet */
  --panel: #0b1f22;     /* mobile menu and code blocks */
}


/* Palettes: every project site picks one with <html data-palette="name"> (default = voiceofmoe teal and tungsten).
   Same structure and stage-light feel, its own hue. Fits listed are suggestions. */
:root[data-palette="cobalt"] { /* banking, payments, insurance */
  --color-teal: #0d1526; --color-booth: #141f36; --color-rule: #26334f; --rule-hover: #34466b;
  --color-tungsten: #6ea8ff; --accent-hover: #92bdff; --color-ivory: #eef2fa; --color-haze: #8d9ab3;
  --deep: #0a1120; --mid: #13213b; --low: #0b1424; --glow: 52 92 170; --shade: 14 26 54; --panel: #0b1324;
}
:root[data-palette="coral"] { /* healthcare, life sciences */
  --color-teal: #0f1c2a; --color-booth: #162637; --color-rule: #283b52; --rule-hover: #36506d;
  --color-tungsten: #ff8a7a; --accent-hover: #ffa69a; --color-ivory: #f1f4f8; --color-haze: #93a3b6;
  --deep: #0b1520; --mid: #152637; --low: #0d1823; --glow: 60 110 150; --shade: 16 36 58; --panel: #0c1622;
}
:root[data-palette="lime"] { /* agriculture, energy, climate */
  --color-teal: #0f1f17; --color-booth: #16291f; --color-rule: #284235; --rule-hover: #355a47;
  --color-tungsten: #b5d96a; --accent-hover: #c8e58d; --color-ivory: #eef3e6; --color-haze: #93a897;
  --deep: #0b1811; --mid: #15291e; --low: #0d1b13; --glow: 64 120 80; --shade: 16 44 28; --panel: #0c1912;
}
:root[data-palette="gold"] { /* consulting, legal, trading */
  --color-teal: #1c1424; --color-booth: #261b31; --color-rule: #3b2c4a; --rule-hover: #4c3a5f;
  --color-tungsten: #e7c06a; --accent-hover: #efd18f; --color-ivory: #f3eef6; --color-haze: #a698b3;
  --deep: #150f1b; --mid: #241a2f; --low: #18111f; --glow: 110 70 140; --shade: 40 22 56; --panel: #160f1d;
}
:root[data-palette="ember"] { /* manufacturing, semiconductors, hardware */
  --color-teal: #16181b; --color-booth: #1f2226; --color-rule: #33373d; --rule-hover: #454a52;
  --color-tungsten: #ff7a45; --accent-hover: #ff986f; --color-ivory: #f1efec; --color-haze: #9a9da3;
  --deep: #101214; --mid: #1d2024; --low: #131518; --glow: 90 96 106; --shade: 30 32 36; --panel: #111316;
}
:root[data-palette="rose"] { /* media, entertainment, retail */
  --color-teal: #1e1214; --color-booth: #2a1a1d; --color-rule: #432a2f; --rule-hover: #573840;
  --color-tungsten: #ff9db0; --accent-hover: #ffb8c6; --color-ivory: #f6eeee; --color-haze: #ad9a9e;
  --deep: #170d0f; --mid: #281719; --low: #1a0f11; --glow: 140 60 72; --shade: 52 18 24; --panel: #180e10;
}
:root[data-palette="cyan"] { /* logistics, automotive, government */
  --color-teal: #0b1a20; --color-booth: #12252d; --color-rule: #223c46; --rule-hover: #2f505c;
  --color-tungsten: #4fd1e0; --accent-hover: #7adde9; --color-ivory: #ebf5f6; --color-haze: #8aa5ab;
  --deep: #08141a; --mid: #10252d; --low: #0a171d; --glow: 40 120 140; --shade: 10 40 50; --panel: #09161b;
}

/* Minimal preflight (voiceofmoe ran on Tailwind's). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
img, svg, video, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }

html {
  background: var(--color-teal);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1.5rem);
}

body {
  min-height: 100svh;
  background: var(--color-teal);
  color: var(--color-ivory);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--color-tungsten); color: var(--color-teal); }
:focus-visible { outline: 2px solid var(--color-tungsten); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { padding-inline: var(--gutter); }

.skip {
  position: fixed; top: 1rem; inset-inline-start: 1rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--r);
  background: var(--color-ivory); color: var(--color-teal); font-weight: 600;
  transform: translateY(-180%); transition: transform 0.2s var(--ease-out);
}
.skip:focus { transform: none; }

/* Type */
.display {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.6rem, 1.05rem + 6.2vw, 6.6rem);
  line-height: 0.96; letter-spacing: -0.028em;
}
.h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.5rem);
  line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance;
}
.h3 { /* voiceofmoe's .bio-note-title */
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.25rem);
  line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance;
}
.lead {
  max-width: 34em;
  font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
  line-height: 1.55; color: var(--soft); text-wrap: pretty;
}
.prose {
  max-width: 32em;
  font-family: var(--font-serif);
  font-size: clamp(1.1875rem, 1.08rem + 0.45vw, 1.4375rem);
  line-height: 1.55; text-wrap: pretty;
}
.prose a, .inline-link {
  text-decoration: underline; text-decoration-color: var(--color-tungsten);
  text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color 0.2s;
}
.prose a:hover, .inline-link:hover { color: var(--color-tungsten); }
.eyebrow { /* added: small label above headings, in the nav-link voice */
  font-size: 0.9375rem; font-weight: 600; color: var(--color-tungsten); letter-spacing: 0.01em;
}
.mono { font-family: var(--font-mono); font-size: 0.9375em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header);
  border-bottom: 1px solid transparent; background: transparent;
  transition: border-color 0.3s, background-color 0.3s, -webkit-backdrop-filter 0.3s, backdrop-filter 0.3s;
}
/* Clear over the top band; frosted once the page scrolls or the menu opens. */
:root[data-scrolled] .site-header,
.site-header:has(.mobile-nav.is-open) {
  background: color-mix(in oklab, var(--color-teal) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
:root[data-scrolled] .site-header { border-bottom-color: var(--color-rule); }

/* Logo at the start, links truly centered, the main action at the end. */
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 100%; }
.desk-nav { grid-column: 2; }
.header-actions { grid-column: 3; display: flex; align-items: center; justify-self: end; gap: 1rem; }

.brand, .footer-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-serif); letter-spacing: -0.01em; white-space: nowrap;
}
.brand { grid-column: 1; justify-self: start; font-size: 1.375rem; }
.glyph { flex: none; color: var(--color-tungsten); }
.glyph rect { transform-box: fill-box; transform-origin: center; }
.glyph.is-playing rect { animation: eq 0.8s var(--ease-out) infinite alternate; }
.glyph.is-playing rect:nth-child(2) { animation-delay: -0.45s; }
.glyph.is-playing rect:nth-child(3) { animation-delay: -0.2s; }
.glyph.is-playing rect:nth-child(4) { animation-delay: -0.6s; }
.glyph.is-playing rect:nth-child(5) { animation-delay: -0.35s; }
@keyframes eq { from { transform: scaleY(0.35); } }

/* Nav links: plain text; the current one turns tungsten with a 2px underline that glides. */
.nav-links { position: relative; display: flex; gap: 2.25rem; }
.nav-links a {
  position: relative; display: block; padding-block: 0.6rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--soft);
  transition: color 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--color-ivory); }
.nav-links a[aria-current="true"] { color: var(--color-tungsten); }
.nav-underline {
  position: absolute; bottom: 0; left: 0; height: 2px; width: 0; border-radius: 1px;
  background: var(--color-tungsten); opacity: 0;
  /* voiceofmoe used a spring (bounce 0.15, 0.5 s); this ease-out curve is the closest CSS match. */
  transition: transform 0.5s cubic-bezier(0.34, 1.25, 0.64, 1), width 0.5s cubic-bezier(0.34, 1.25, 0.64, 1), opacity 0.2s;
}

/* Plain text header link (voiceofmoe's language-switch slot, used here for GitHub). */
.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.4rem;
  border-radius: var(--r); font-size: 1rem; font-weight: 500; line-height: 1.2;
  color: var(--color-ivory); transition: color 0.2s;
}
.text-link:hover { color: var(--color-tungsten); }
.text-link svg { flex: none; opacity: 0.85; }

/* Mobile menu button: a small square with three short lines. */
.menu-btn {
  display: none; flex: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5px; width: 30px; height: 30px; border-radius: var(--r); background: var(--color-booth);
}
.menu-btn span { width: 12px; height: 1.5px; border-radius: 1px; background: var(--color-ivory); }

/* Dropdown: the panel's height grows from 0 under the header (grid rows 0fr -> 1fr), full width. */
.mobile-nav {
  position: absolute; top: 100%; inset-inline: 0; z-index: 40; display: none;
  grid-template-rows: 0fr; overflow: hidden; background: var(--panel);
  transition: grid-template-rows 0.4s ease;
}
.mobile-nav.is-open { grid-template-rows: 1fr; border-bottom: 1px solid var(--color-rule); }
.mobile-nav-inner { min-height: 0; overflow: hidden; padding: 0 var(--gutter); transition: padding 0.4s ease; }
.mobile-nav.is-open .mobile-nav-inner { padding: 0.75rem var(--gutter) 1.25rem; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-links a {
  display: inline-block; padding-block: 5px; font-size: 1.5rem; font-weight: 600;
  color: var(--color-ivory); transition: color 0.35s var(--ease-out);
}
.mobile-nav-links a[aria-current="true"] {
  color: var(--color-tungsten); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.btn.mobile-nav-cta { display: flex; width: 100%; height: 46px; margin-top: 1rem; font-size: 0.9375rem; }

/* Buttons: every height includes its border, so neighbours always match. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  height: 52px; padding-inline: 1.5rem; border: 1px solid transparent; border-radius: var(--r);
  font-size: 1rem; font-weight: 600; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-tungsten); color: var(--color-teal); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--color-rule); color: var(--color-ivory); }
.btn-ghost:hover { border-color: var(--color-haze); background: color-mix(in oklab, var(--color-ivory) 4%, transparent); }
.header-cta { height: 46px; padding-inline: 1.15rem; font-size: 0.9375rem; }

/* Hero: its own band. A teal stage light pools from the top with a warm glow low on one side.
   A single sheen sweeps across on first load, then everything holds still. It starts behind the
   see-through header (no seam) and ends at one solid divider line. */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: min(100svh, calc(40rem + var(--header)));
  margin-top: calc(var(--header) * -1);
  padding-top: calc(var(--header) + clamp(3rem, 9vh, 6rem));
  padding-bottom: clamp(3rem, 9vh, 6rem);
  text-align: center;
  background:
    radial-gradient(80% 70% at 50% 0%, rgb(var(--glow) / 0.38) 0%, rgb(var(--glow) / 0) 70%),
    radial-gradient(55% 60% at 94% 104%, rgb(var(--glow) / 0.16) 0%, rgb(var(--glow) / 0) 70%),
    radial-gradient(55% 65% at 4% 100%, rgb(var(--shade) / 0.85) 0%, rgb(var(--shade) / 0) 70%),
    linear-gradient(180deg, var(--deep) 0%, var(--mid) 58%, var(--low) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: -20% -40%; z-index: -1; opacity: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgb(255 255 255 / 0.05) 46%, rgb(255 255 255 / 0.12) 50%, rgb(255 255 255 / 0.05) 54%, transparent 62%);
}
.hero.intro::before { animation: sheen 1.9s var(--ease-out) 0.2s both; }
@keyframes sheen {
  0% { opacity: 1; transform: translateX(-55%); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(55%); }
}
.hero::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: var(--band-line); }

/* Hero films (voiceofmoe port): two muted looping films hold the left and right edges of the hero and
   dissolve into the page, a horizontal fade toward the text and a vertical fade at top and bottom.
   One film can span the whole band instead (.hero-bg-full), kept fainter in the middle so the
   headline stays readable. Narrow screens: one film owns each half and they dissolve into each other. */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg video {
  position: absolute; top: 0; height: 100%; object-fit: cover;
  opacity: 0.5; filter: saturate(0.55) brightness(0.9);
  animation: bg-in 1.8s ease 0.4s both;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-bg-left {
  left: 0; width: 35%;
  -webkit-mask-image: linear-gradient(to right, #000 5%, transparent 100%), linear-gradient(to bottom, rgb(0 0 0 / 0.55) 0, #000 10%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to right, #000 5%, transparent 100%), linear-gradient(to bottom, rgb(0 0 0 / 0.55) 0, #000 10%, #000 80%, transparent 100%);
}
.hero-bg-right {
  right: 0; width: 33%; object-position: 50% 25%;
  -webkit-mask-image: linear-gradient(to left, #000 5%, transparent 100%), linear-gradient(to bottom, rgb(0 0 0 / 0.55) 0, #000 10%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to left, #000 5%, transparent 100%), linear-gradient(to bottom, rgb(0 0 0 / 0.55) 0, #000 10%, #000 80%, transparent 100%);
}
.hero-bg .hero-bg-full {
  left: 0; width: 100%; opacity: 0.24;
  -webkit-mask-image: radial-gradient(48% 55% at 50% 50%, rgb(0 0 0 / 0.2) 0%, #000 100%), linear-gradient(to bottom, rgb(0 0 0 / 0.55) 0, #000 10%, #000 80%, transparent 100%);
  mask-image: radial-gradient(48% 55% at 50% 50%, rgb(0 0 0 / 0.2) 0%, #000 100%), linear-gradient(to bottom, rgb(0 0 0 / 0.55) 0, #000 10%, #000 80%, transparent 100%);
}
@keyframes bg-in { from { opacity: 0; } }
@media (max-width: 899px) {
  .hero-bg :is(.hero-bg-left, .hero-bg-right) { width: 60%; opacity: 0.42; }
  .hero-bg-left {
    -webkit-mask-image: linear-gradient(to right, #000 35%, transparent 100%), linear-gradient(to bottom, rgb(0 0 0 / 0.55) 0, #000 10%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, #000 35%, transparent 100%), linear-gradient(to bottom, rgb(0 0 0 / 0.55) 0, #000 10%, #000 80%, transparent 100%);
  }
  .hero-bg-right {
    object-position: 78% 25%;
    -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to bottom, rgb(0 0 0 / 0.55) 0, #000 10%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to bottom, rgb(0 0 0 / 0.55) 0, #000 10%, #000 80%, transparent 100%);
  }
}
@media (prefers-reduced-motion: reduce) { .hero-bg video { animation: none; } }
.line, .line > span { display: block; }
.hero .lead { margin-inline: auto; }
.hero-sub { margin-top: clamp(1.25rem, 2.8vh, 2rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: clamp(1.75rem, 4vh, 2.5rem); }

/* Signature moment: the headline pulls into focus like a lens. Painted from the first frame
   (blurred, never transparent), so it still counts as the largest paint. */
.intro .line > span { animation: focus-pull 1.15s var(--ease-out) both; }
.intro .line + .line > span { animation-delay: 0.08s; }
.intro .hero-sub, .intro .hero-actions { animation: fade-up 0.8s var(--ease-out) both; }
.intro .hero-sub { animation-delay: 0.3s; }
.intro .hero-actions { animation-delay: 0.38s; }
@keyframes focus-pull { from { filter: blur(14px); transform: translateY(16px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.center { text-align: center; }
.center .prose, .center .lead { margin-inline: auto; }

/* Bands, like the hero: a soft teal glow at the top and bottom, framed by the same solid divider. */
.band {
  border-block: 1px solid var(--band-line);
  background:
    radial-gradient(60% 80% at 50% 0%, rgb(var(--glow) / 0.28) 0%, rgb(var(--glow) / 0) 70%),
    radial-gradient(60% 80% at 50% 100%, rgb(var(--glow) / 0.2) 0%, rgb(var(--glow) / 0) 70%),
    linear-gradient(180deg, var(--deep) 0%, var(--mid) 50%, var(--deep) 100%);
}
/* Two bands in a row share one line, never a double rule. */
.band + .band { border-top: 0; }

/* Split rows (voiceofmoe's .bio): text on one side, media on the other, alternating. */
.split { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; column-gap: clamp(1rem, 2.5vw, 2rem); row-gap: clamp(2rem, 4vw, 3.5rem); }
.split + .split { margin-top: clamp(2rem, 4vw, 3.5rem); }
.split .prose { margin-top: 1rem; }
.media { width: 100%; border-radius: var(--r); overflow: clip; border: 1px solid var(--color-rule); background: var(--color-booth); }
.media img, .media video { width: 100%; object-fit: cover; }

/* Cards and panels (voiceofmoe's .sent box). */
.card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--color-rule); border-radius: var(--r); background: var(--color-booth); }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-top: clamp(2rem, 4vw, 3rem); }
.card .h3 + p, .card p + p { margin-top: 0.75rem; }
.card p { color: var(--soft); }

/* Numbers row (added, built from voiceofmoe tokens): big serif figure, small label. */
.stats { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin-top: clamp(2rem, 4vw, 3rem); }
.stat b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; color: var(--color-ivory); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 0.5rem; color: var(--color-haze); font-size: 0.9375rem; }

/* Steps (added): numbered rows in the form-label voice. */
.steps { display: grid; gap: 1rem; counter-reset: step; margin-top: clamp(2rem, 4vw, 3rem); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start; padding: 1.25rem; border: 1px solid var(--color-rule); border-radius: var(--r); background: var(--color-booth); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r); background: var(--color-tungsten); color: var(--color-teal); font-weight: 700; }
.steps b { display: block; font-weight: 600; }
.steps p { margin-top: 0.25rem; color: var(--soft); }

/* Forms (for BYOK keys and demo inputs) */
.label { display: block; margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 550; }
.control {
  display: block; width: 100%; min-height: 54px; padding: 0.875rem 1rem;
  border: 1px solid var(--color-rule); border-radius: var(--r); background: var(--color-booth);
  color: var(--color-ivory); font: inherit; font-size: 1rem; line-height: 1.45;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.control:hover { border-color: var(--rule-hover); }
.control:focus { outline: none; border-color: var(--color-tungsten); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-tungsten) 20%, transparent); }
.control::placeholder { color: var(--color-haze); opacity: 1; transition: opacity 0.15s; }
.control:focus::placeholder { opacity: 0; }
textarea.control { max-height: 22rem; field-sizing: content; resize: vertical; }
.hint { margin-top: 0.45rem; font-size: 0.875rem; color: var(--color-tungsten); }
.error { margin-top: 0.45rem; font-size: 0.875rem; color: var(--color-alert); }

/* Code and output blocks (added) */
.code { padding: 1rem 1.125rem; border: 1px solid var(--color-rule); border-radius: var(--r); background: var(--panel); font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.6; color: var(--soft); overflow-x: auto; white-space: pre; }

/* Toast */
.toast-region { position: fixed; inset-inline: 0; bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 80; display: flex; justify-content: center; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: 0.65rem; padding-block: 0.6rem; padding-inline: 0.6rem 1.15rem; border-radius: var(--r); background: var(--color-ivory); color: var(--color-teal); font-weight: 600; box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.55); animation: fade-up 0.3s var(--ease-out) both; }
.toast-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--color-tungsten); color: var(--color-teal); }

/* Logo strip (duplicated track, translateX 0 -> -50%, soft edges). */
.logo-marquee { width: 100%; margin-top: 55px; overflow: clip; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); }
.logo-track { display: flex; align-items: center; width: max-content; min-height: 60px; gap: 60px; padding-inline: 30px; animation: logo-scroll 40s linear infinite; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-track > * { flex: none; opacity: 0.78; transition: opacity 0.3s; color: var(--color-ivory); font-weight: 600; font-size: 1.25rem; }
.logo-track > *:hover { opacity: 1; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.25rem; font-size: 0.9375rem; color: var(--color-haze); }
.footer-brand { font-size: 1.125rem; color: var(--color-ivory); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--color-ivory); }

/* Scroll reveal (nazzaly.com port): components fade and slide in once. */
.reveal { opacity: 0; transform: translateY(100px); transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split > :first-child { grid-column: 1 / span 6; }
  .split > :last-child { grid-column: 8 / -1; }
  .split.flip > :first-child { grid-column: 1 / span 7; }
  .split.flip > :last-child { grid-column: 9 / -1; }
}
@media (max-width: 899px) {
  .split { text-align: center; }
  /* Phones: text, photo, text, photo. The paragraph always comes before its media. */
  .split.flip > :last-child { order: -1; }
  /* Like voiceofmoe's form fields: headings center on phones, boxes of content stay left-aligned. */
  .split .card, .split .steps { text-align: start; }
  .split .prose, .split .lead { margin-inline: auto; }
  .split .media { width: auto; margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; }
  .logo-marquee { width: auto; margin-inline: calc(var(--gutter) * -1); }
}
@media (max-width: 767px) {
  :root { --header: 64px; }
  .desk-nav, .header-cta, .header-actions .text-link { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav { display: grid; }
  .brand { font-size: 1.1875rem; }
  .site-footer { flex-direction: column; text-align: center; }
  .site-footer ul { justify-content: center; }
}
@media (max-width: 639px) {
  .hero-actions, .actions-stack { flex-direction: column; align-self: stretch; }
  .hero-actions .btn, .actions-stack .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; transform: none; opacity: 1; }
  .logo-track { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
