/*
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
  2. Remove default margins and padding
  3. Reset all borders.
*/

*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 2 */
  border: 0 solid; /* 3 */
}

/*
  1. Use a consistent sensible line-height in all browsers.
  2. Prevent adjustments of font size after orientation changes in iOS.
  3. Use a more readable tab size.
  4. Use the user's configured `sans` font-family by default.
  5. Use the user's configured `sans` font-feature-settings by default.
  6. Use the user's configured `sans` font-variation-settings by default.
  7. Disable tap highlights on iOS.
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  tab-size: 4; /* 3 */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
  1. Add the correct height in Firefox.
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
  3. Reset the default border style to a 1px solid border.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
  Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

/*
  Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
  Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  -webkit-text-decoration: inherit;
  text-decoration: inherit;
}

/*
  Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
  1. Use the user's configured `mono` font-family by default.
  2. Use the user's configured `mono` font-feature-settings by default.
  3. Use the user's configured `mono` font-variation-settings by default.
  4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
  Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
  Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
  1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
  2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
  3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
  Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring:where(:not(iframe)) {
  outline: auto;
}

/*
  Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
  Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
  Make lists unstyled by default.
*/

ol,
ul,
menu {
  list-style: none;
}

/*
  1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
  2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
      This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/*
  1. Inherit font styles in all browsers.
  2. Remove border radius in all browsers.
  3. Remove background color in all browsers.
  4. Ensure consistent opacity for disabled states in all browsers.
*/

button,
input,
select,
optgroup,
textarea,
::file-selector-button {
  font: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  border-radius: 0; /* 2 */
  background-color: transparent; /* 3 */
  opacity: 1; /* 4 */
}

/*
  Restore default font weight.
*/

:where(select:is([multiple], [size])) optgroup {
  font-weight: bolder;
}

/*
  Restore indentation.
*/

:where(select:is([multiple], [size])) optgroup option {
  padding-inline-start: 20px;
}

/*
  Restore space after button.
*/

::file-selector-button {
  margin-inline-end: 4px;
}

/*
  Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
*/

::placeholder {
  opacity: 1;
}

/*
  Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
  crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
*/

@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
  (contain-intrinsic-size: 1px) /* Safari 17+ */ {
  ::placeholder {
    color: color-mix(in oklab, currentcolor 50%, transparent);
  }
}

/*
  Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
  Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
  1. Ensure date/time inputs have the same height when empty in iOS Safari.
  2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
*/

::-webkit-date-and-time-value {
  min-height: 1lh; /* 1 */
  text-align: inherit; /* 2 */
}

/*
  Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
*/

::-webkit-datetime-edit {
  display: inline-flex;
}

/*
  Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
*/

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
  padding-block: 0;
}

/*
  Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
*/

::-webkit-calendar-picker-indicator {
  line-height: 1;
}

/*
  Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
  Correct the inability to style the border radius in iOS Safari.
*/

button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
  appearance: button;
}

/*
  Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
  Make elements with the HTML hidden attribute stay hidden by default.
*/

[hidden]:where(:not([hidden='until-found'])) {
  display: none !important;
}
/* The one utility the markup uses outside its own classes. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* In-page anchors land clear of the sticky header, as the 90px anchor offset did in the Next.js build. */
[id] {
  scroll-margin-top: 90px;
}
/* Departure Mono, the face for the whole site. Next.js set this variable on <html>; here it is a token. */
@font-face {
  font-family: "Departure Mono";
  src: url("/fonts/departure-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-pixel: "Departure Mono", "Departure Mono Extended", monospace;
}
/* Hallmark · v2.0.0 · redesign: full · genre: modern-minimal · brand: kept (DESIGN.md palette and Departure Mono) · built: the project, no dealt theme */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: S, the copy and the cube sculpture carry the specificity; the code snippet and the marquee are the only new signatures */
/* Hallmark · dismissed 25 · the section ledes sit beside their headings as one-sentence leads, set at 34 to 44ch on purpose */

@font-face {
  font-family: "Departure Mono Extended";
  src: url("/fonts/departure-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────── */
/* Every colour and face in the site is declared here. Values are the DESIGN.md palette. */
:root {
  --font-body: var(--font-pixel);
  --font-display: var(--font-pixel);
  --font-mark: var(--font-pixel);
  font-synthesis: none;

  --paper: #0b100d;
  --dark: #070b08;
  --field: #102017;
  --field-deep: #111c15;
  --service-field: #102017;
  --project-field: #111f16;
  --card: #122019;
  --ink: #e5f2e8;
  --quiet: #a1b5a6;
  --work-muted: #afc8b6;
  --signal: #a1ff6b;
  --signal-hover: #b8ff91;
  --cta-lime: #b4ff4a;
  --cta-ink: #081003;
  --cta-rim: #193a0b;
  --cta-edge-light: #8dc83b;
  --cta-edge-dark: #609426;
  --pixel-white: #edf8f0;
  --pixel-mint: #a5e8bd;
  --frame-border: #375640;
  --frame-outline: #496650;
  --work-line: #344c3a;
  --line: rgba(190, 231, 201, 0.22);
  --rule: rgba(190, 231, 201, 0.27);
  --line-strong: rgba(190, 231, 201, 0.5);
  --header-overlay: rgba(11, 16, 13, 0.86);
  --overlay-work: rgba(7, 11, 8, 0.76);
  --overlay-service: rgba(16, 32, 23, 0.78);
  --overlay-reading: rgba(11, 16, 13, 0.7);
  --overlay-demo: rgba(17, 28, 21, 0.82);
  --overlay-contact: rgba(16, 38, 26, 0.82);
  --overlay-footer: rgba(7, 11, 8, 0.8);
  --grid-line: rgba(161, 255, 107, 0.035);
  --spot: rgba(161, 255, 107, 0.09);
  --error: #ffad96;
  --scroll-thumb: #43694c;
  --syntax-blue: #87c9ff;
  --syntax-purple: #d6adff;
  --syntax-amber: #f4d58a;
  --syntax-coral: #ffa18b;
  --rain-head: #d7ffe1;
  --rain-trail: #74dc83;

  --pad: clamp(22px, 4.2vw, 84px);
  --wrap: 1480px;
  --header-h: 76px;
  --section-y: clamp(96px, 10vw, 152px);
  --gap-tight: 16px;
  --gap: 32px;
  --gap-wide: 64px;

  --step-h1: clamp(42px, 5.5vw, 88px);
  --step-h2: clamp(40px, 4.9vw, 78px);
  --step-h3: clamp(24px, 2.2vw, 34px);
  --step-lead: clamp(18px, 1.5vw, 21px);
  --step-body: 17px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-step: steps(8, end);

  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: clip;
}
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body), sans-serif;
  font-size: var(--step-body);
  line-height: 1.65;
}
body,
button,
input,
textarea,
select {
  font-feature-settings: "ss01" on;
}
button,
input,
textarea,
select {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  touch-action: manipulation;
}
button:disabled {
  cursor: wait;
  color: var(--quiet);
}
.button:not(.pixel-control):disabled {
  background: var(--frame-outline);
  color: var(--ink);
}
.button:not(.pixel-control):disabled::before {
  display: none;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 400;
}
p {
  text-wrap: pretty;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
button svg,
a svg {
  flex-shrink: 0;
}
::selection {
  background: var(--signal);
  color: var(--paper);
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
input,
textarea {
  caret-color: var(--signal);
}
input::placeholder,
textarea::placeholder {
  color: var(--quiet);
  opacity: 1;
}
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: var(--paper);
}
body::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid var(--paper);
  border-radius: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 16px;
  transform: translateY(-150%);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus {
  transform: translateY(0);
}
.spin {
  animation: spin 1.2s steps(8, end) infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Background layers ──────────────────────────────────── */
/* Pixel grid, then the code stream, then the pointer spotlight, then the content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}
.code-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.48;
}
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 440px at var(--sx, -50%) var(--sy, -50%),
    var(--spot),
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.6s;
}
.spotlight.is-live {
  opacity: 1;
}
body > main,
body > footer {
  position: relative;
  z-index: 1;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: 3px;
  background: var(--signal);
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ── Reveal on scroll (only once JavaScript has run) ────── */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s var(--ease-out) var(--reveal-delay, 0ms),
    transform 1s var(--ease-out) var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ── Buttons and links ──────────────────────────────────── */
.button,
.button-outline,
.button-dark,
.button-small {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    color 0.3s steps(6, end),
    border-color 0.3s;
}
.button:not(.pixel-control),
.button-dark:not(.pixel-control),
.button-outline:not(.pixel-control),
.button-small:not(.pixel-control) {
  overflow: hidden;
}
.button:not(.pixel-control)::before,
.button-dark:not(.pixel-control)::before,
.button-outline:not(.pixel-control)::before,
.button-small:not(.pixel-control)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-step);
}
.button:not(.pixel-control) {
  background: var(--signal);
  color: var(--paper);
}
.button:not(.pixel-control)::before {
  background: var(--signal-hover);
}
.button:not(.pixel-control):hover::before,
.button:not(.pixel-control):focus-visible::before {
  transform: scaleX(1);
}
.button:active:not(.pixel-control) {
  scale: 0.97;
}
.button-outline {
  border-color: currentColor;
  background: transparent;
  color: var(--ink);
}
.button-outline:not(.pixel-control)::before {
  background: var(--ink);
}
.button-outline:not(.pixel-control):hover,
.button-outline:not(.pixel-control):focus-visible {
  color: var(--paper);
}
.button-outline:not(.pixel-control):hover::before,
.button-outline:not(.pixel-control):focus-visible::before {
  transform: scaleX(1);
}
.button-dark {
  border-color: var(--signal);
  background: var(--dark);
  color: var(--signal);
}
.button-dark:not(.pixel-control)::before {
  background: var(--signal);
}
.button-dark:not(.pixel-control):hover,
.button-dark:not(.pixel-control):focus-visible {
  color: var(--paper);
}
.button-dark:not(.pixel-control):hover::before,
.button-dark:not(.pixel-control):focus-visible::before {
  transform: scaleX(1);
}
.button-small {
  min-height: 44px;
  padding: 8px 20px;
  font-size: 15px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.4s var(--ease-step);
}
.text-link:hover,
.text-link:focus-visible {
  background-size: 100% 2px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 2px solid var(--line-strong);
  transition:
    background-color 0.25s,
    color 0.25s;
}
.icon-button:hover {
  background: var(--ink);
  color: var(--paper);
}
.icon-button:disabled:hover {
  background: none;
  color: inherit;
}
.motion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 2px solid var(--line-strong);
  color: var(--ink);
  transition:
    background-color 0.25s,
    color 0.25s;
}
.motion-toggle span {
  display: none;
}
.motion-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  padding: 0 max(var(--pad), calc((100% - var(--wrap)) / 2));
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mark), sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.brand-icon {
  width: 72px;
  flex-shrink: 0;
}
.brand-icon svg {
  width: 100%;
  height: auto;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-step);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}
.header-cta {
  min-height: 44px;
  padding: 8px 20px;
  font-size: 15px;
}
.menu-toggle {
  display: none;
}
.mobile-nav {
  display: none;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 56px max(var(--pad), calc((100% - var(--wrap)) / 2)) 72px;
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--gap-wide);
  align-items: end;
}
.hero h1 {
  font-family: var(--font-display), sans-serif;
  font-size: var(--step-h1);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-lead {
  max-width: 40ch;
  margin-top: 24px;
  font-size: var(--step-lead);
  line-height: 1.6;
}
.hero-founders {
  margin-top: 12px;
  color: var(--quiet);
  font-size: 15px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  margin-top: 32px;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.code-block {
  position: relative;
  padding: 24px 24px 24px 0;
  border: 2px solid var(--frame-border);
  background: var(--dark);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  overflow-x: auto;
}
.code-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  white-space: pre;
}
.code-num {
  padding-right: 16px;
  text-align: right;
  color: var(--quiet);
  user-select: none;
}
.code-kw {
  color: var(--syntax-purple);
}
.code-fn {
  color: var(--syntax-blue);
}
.code-str {
  color: var(--syntax-amber);
}
.code-com {
  color: var(--quiet);
}
.code-caret {
  display: inline-block;
  width: 0.55em;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--signal);
  animation: typing-blink 1s steps(1) infinite;
}
.hero-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.hero-notes li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mark), sans-serif;
  font-size: 20px;
}
.hero-notes svg {
  color: var(--signal);
}
.hero-stage {
  width: min(100%, 1080px);
  margin: 56px auto 0;
}
.type-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 2.1;
  touch-action: pan-y;
  --pointer-x: 0;
  --pointer-y: 0;
  overflow: hidden;
}
.type-poster,
.type-canvas {
  position: absolute;
  inset: 0;
}
.voxel-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.type-canvas {
  opacity: 0;
}
.sculpture-ready .type-canvas {
  opacity: 1;
}
.sculpture-ready .type-poster {
  opacity: 0;
}
.sculpture-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 20px;
}
.sculpture-controls > span {
  flex: 1 1 260px;
  font-size: 14px;
  color: var(--quiet);
}
.sculpture-controls > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sculpture-controls .text-link {
  font-size: 15px;
}

/* ── Sections ───────────────────────────────────────────── */
.section {
  padding: var(--section-y) max(var(--pad), calc((100% - var(--wrap)) / 2));
}
.section h2 {
  font-family: var(--font-display), sans-serif;
  font-size: var(--step-h2);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--signal);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--gap-wide);
  align-items: end;
}
.section-intro {
  padding-bottom: 8px;
}
.section-intro > p {
  max-width: 36ch;
  font-size: var(--step-lead);
  line-height: 1.6;
}
.muted {
  color: inherit;
}
.accent {
  color: var(--signal);
}
.typing-caret {
  display: inline-block;
  width: 0.6em;
  height: 0.92em;
  margin-left: 4px;
  vertical-align: -0.1em;
  background: var(--signal);
  animation: typing-blink 1s steps(1) infinite;
}
@keyframes typing-blink {
  50% {
    opacity: 0;
  }
}

/* Stack: a pixel marquee of the tools the studio builds with. */
.stack-band {
  overflow: hidden;
  padding: 32px 0 40px;
  background: var(--overlay-work);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stack-statement {
  padding: 0 max(var(--pad), calc((100% - var(--wrap)) / 2)) 24px;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
  color: var(--ink);
}
.marquee {
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-inner {
  animation-play-state: paused;
}
.marquee-list {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marquee-list li {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--font-mark), sans-serif;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1;
  white-space: nowrap;
}
.marquee-list svg {
  color: var(--quiet);
}
.marquee-list li:nth-child(4n + 1) {
  color: var(--syntax-blue);
}
.marquee-list li:nth-child(4n + 2) {
  color: var(--syntax-purple);
}
.marquee-list li:nth-child(4n + 3) {
  color: var(--syntax-amber);
}
.marquee-list li:nth-child(4n) {
  color: var(--syntax-coral);
}
@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Work */
.work-section {
  background: var(--overlay-work);
}
.project-rows {
  margin-top: 40px;
}
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 160px 24px;
  align-items: center;
  gap: 32px;
  min-height: 116px;
  border-top: 1px solid var(--work-line);
}
.project-row h3 {
  font-family: var(--font-mark), sans-serif;
  font-size: clamp(21px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.project-row-type,
.project-row-status {
  font-size: 14px;
  color: var(--work-muted);
}
.project-row:hover h3 {
  color: var(--signal);
}
.project-row > svg {
  transition: transform 0.3s var(--ease-out);
}
.project-row:hover > svg {
  transform: translate(3px, -3px);
}
.clients-strip {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--work-line);
}
.clients-strip > h3 {
  margin-bottom: 32px;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--signal);
}
.clients-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.client-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  min-height: 184px;
  padding: 24px 12px;
  border-bottom: 1px solid var(--work-line);
}
.client-slot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-step);
}
.client-slot:hover::after {
  transform: scaleX(1);
}
.client-mark {
  width: 100%;
  max-width: 240px;
  height: 100px;
  background: var(--signal);
  opacity: 0.78;
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  image-rendering: pixelated;
  transition:
    opacity 0.4s,
    transform 0.5s var(--ease-out);
}
.client-slot:hover .client-mark {
  opacity: 1;
  transform: translateY(-4px);
}
.client-name {
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--work-muted);
}

/* Services: ruled rows that fill on hover and open into detail. */
.services-section {
  background: var(--overlay-service);
}
.product-signal {
  max-width: 360px;
  margin-top: 24px;
  margin-left: auto;
}
.product-signal svg {
  width: 100%;
  height: auto;
}
.signal-controls {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  position: relative;
}
.signal-controls button {
  flex: 1;
  min-height: 44px;
  padding: 4px 8px;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
}
.signal-controls button[aria-pressed="true"] {
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}
.product-signal p {
  min-height: 42px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.process-art {
  min-width: 0;
}
.process-pixels {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  background: var(--dark);
  border: 1px solid var(--frame-border);
  cursor: pointer;
  touch-action: pan-y;
}
.process-pixels svg,
.process-pixels canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.process-pixels canvas {
  opacity: 0;
  image-rendering: pixelated;
}
.process-pixels[data-live="true"] canvas {
  opacity: 1;
}
.process-pixels[data-live="true"] svg {
  visibility: hidden;
}
.process-art > p {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--quiet);
}
.process-touch-hint {
  display: none;
}
@media (hover: none) {
  .process-pointer-hint {
    display: none;
  }
  .process-touch-hint {
    display: inline;
  }
}
/* Sketch tool */
.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-wide);
  align-items: center;
  padding: var(--section-y) max(var(--pad), calc((100% - var(--wrap)) / 2));
  background: var(--overlay-demo);
}
.demo-heading {
  position: relative;
}
.demo-heading > svg {
  color: var(--signal);
  margin-bottom: 24px;
}
.demo-section h2 {
  font-family: var(--font-display), sans-serif;
  font-size: var(--step-h2);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--signal);
}
.demo-heading p {
  margin-top: 24px;
  max-width: 36ch;
  font-size: var(--step-lead);
  line-height: 1.6;
}
.demo-mark {
  display: none;
}
.demo-tool {
  border: 2px solid var(--frame-border);
  background: var(--dark);
  padding: 0 0 24px;
}
.tool-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--quiet);
}
.tool-light {
  width: 8px;
  height: 8px;
  background: var(--signal);
}
.tool-version {
  margin-left: auto;
}
.tool-body {
  padding: 24px 24px 8px;
}
.tool-body label {
  display: block;
  margin-bottom: 16px;
  font-size: 18px;
}
.tool-body textarea {
  width: 100%;
  min-height: 150px;
  padding: 16px;
  border: 2px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
}
.tool-body textarea:focus-visible {
  border-color: var(--signal);
  outline-color: var(--signal);
}
.idea-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.idea-examples button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.idea-examples button:hover {
  background: var(--signal);
  color: var(--paper);
  border-color: var(--signal);
}
.demo-submit {
  width: 100%;
}
.tool-note {
  margin: 16px 24px 0;
  font-size: 13px;
  color: var(--quiet);
}
.form-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink);
}
.demo-tool .form-error {
  margin: 12px 24px 0;
  color: var(--error);
}
.brief-result {
  padding: 8px 0 0;
}
.brief-result h3 {
  font-family: var(--font-mark), sans-serif;
  font-size: var(--step-h3);
  font-weight: 500;
  line-height: 1.2;
  color: var(--signal);
}
.brief-result ul {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.brief-result li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}
.brief-result li svg {
  color: var(--signal);
}
.brief-result p {
  font-size: 17px;
  line-height: 1.7;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

/* Studio */
.studio-section {
  background: var(--overlay-reading);
}
.studio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--gap-wide);
  align-items: end;
}
.studio-intro > div {
  padding-bottom: 8px;
}
.studio-intro p {
  max-width: 46ch;
  font-size: var(--step-lead);
  line-height: 1.6;
}
.studio-intro .text-link {
  margin-top: 16px;
  font-size: 15px;
}
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
}
.founder {
  min-width: 0;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 1.12;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--frame-border);
  color: var(--ink);
}
.portrait-image {
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(1);
  transition:
    transform 0.7s var(--ease-out),
    filter 0.7s;
}
.founder:hover .portrait-image {
  transform: scale(1.03);
  filter: grayscale(0);
}
.portrait-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(110px, 15vw, 220px);
  line-height: 1;
  color: var(--signal);
  transition: transform 0.6s var(--ease-out);
}
.founder:hover .portrait-initial {
  transform: translateY(-7px) rotate(-2deg);
}
.portrait-placeholder {
  position: absolute;
  bottom: 56px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: var(--paper);
  font-size: 14px;
}
.portrait-size {
  position: absolute;
  bottom: 20px;
  left: 32px;
  padding: 4px 8px;
  background: var(--paper);
  font-size: 12px;
}
.founder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}
.founder-heading h3 {
  font-family: var(--font-mark), sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.founder-role {
  margin-top: 8px;
  font-size: 15px;
  color: var(--quiet);
}
.founder-socials {
  display: flex;
  gap: 8px;
}
.founder-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  transition: background-color 0.25s;
}
.founder-socials a:hover {
  background: var(--signal);
  color: var(--paper);
}
.founder-bio {
  max-width: 46ch;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
}
.founder-skills {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--quiet);
}
.real-proof {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.metrics {
  display: flex;
  gap: 48px;
}
.metrics > div {
  display: flex;
  flex-direction: column;
}
.metrics strong {
  font-family: var(--font-display), sans-serif;
  font-size: 40px;
}
.real-proof blockquote {
  max-width: 60ch;
  font-size: 26px;
}
.real-proof figure {
  margin-top: 24px;
}

/* Frames: work and portrait frames tilt with the pointer; portraits show a crosshair. */
.project-frame,
.portrait-frame {
  transform: perspective(1100px) rotateX(var(--frame-rx, 0deg)) rotateY(var(--frame-ry, 0deg));
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s;
}
.project-frame {
  position: relative;
  aspect-ratio: 2.55;
  overflow: hidden;
  color: var(--signal);
  background: var(--project-field);
  border: 1px solid var(--frame-border);
}
.project-image {
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}
.project-frame:hover .project-image {
  transform: scale(1.025);
}
.register-mark {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.mark-tl {
  top: 20px;
  left: 20px;
}
.mark-tr {
  top: 20px;
  right: 20px;
}
.mark-bl {
  bottom: 20px;
  left: 20px;
}
.mark-br {
  bottom: 20px;
  right: 20px;
}
.frame-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.frame-center > span {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(32px, 4.4vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.frame-center small {
  font-size: 14px;
  color: var(--work-muted);
}
.frame-bottom {
  position: absolute;
  bottom: 24px;
  left: 64px;
  padding: 4px 12px;
  background: var(--paper);
  font-size: 14px;
}
.frame-size {
  position: absolute;
  right: 64px;
  bottom: 24px;
  padding: 2px 8px;
  background: var(--paper);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.portrait-frame::before,
.portrait-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: var(--signal);
  opacity: 0;
  transition: opacity 0.25s;
}
.portrait-frame::before {
  top: var(--frame-y, 50%);
  left: 0;
  right: 0;
  height: 1px;
}
.portrait-frame::after {
  left: var(--frame-x, 50%);
  top: 0;
  bottom: 0;
  width: 1px;
}
.portrait-frame:hover::before,
.portrait-frame:hover::after {
  opacity: 0.25;
}
.reel-wrap {
  margin-top: 64px;
}

/* Contact */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap-wide);
  align-items: start;
  background: var(--overlay-contact);
}
.contact-heading {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}
.contact-heading h2 {
  font-size: var(--step-h2);
}
.contact-heading .accent {
  color: var(--signal);
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 6px;
}
.contact-heading > p {
  max-width: 36ch;
  margin-top: 32px;
  font-size: var(--step-lead);
  line-height: 1.6;
}
.contact-note {
  margin-top: 32px;
  padding-left: 16px;
  border-left: 2px solid var(--signal);
  font-size: 15px;
  color: var(--quiet);
}
.contact-form-wrap {
  padding: clamp(24px, 3vw, 44px);
  border: 2px solid var(--frame-border);
  background: var(--dark);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.form-field label {
  font-size: 15px;
  font-weight: 500;
}
.form-field label > span.optional {
  font-weight: 400;
  font-size: 13px;
  color: var(--quiet);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 2px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--signal);
  box-shadow: inset 0 0 0 1px var(--signal);
  outline: none;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
.form-field textarea {
  min-height: 128px;
  resize: vertical;
}
.form-field select {
  min-height: 52px;
  appearance: none;
  padding-right: 48px;
}
.form-field option {
  background: var(--paper);
  color: var(--ink);
}
.select-wrap {
  position: relative;
}
.select-wrap > svg {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--signal);
}
textarea::-webkit-resizer {
  background: var(--signal);
  border: 4px solid var(--paper);
}
.form-field input:autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--paper) inset;
  caret-color: var(--signal);
}
.form-field [aria-invalid="true"] {
  border-color: var(--ink);
}
.form-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.form-end > p {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--quiet);
}
.form-end .button {
  flex-shrink: 0;
}
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  min-height: 420px;
}
.success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--signal);
  color: var(--signal);
}
.contact-success h3 {
  font-family: var(--font-mark), sans-serif;
  font-size: 34px;
  line-height: 1.2;
}
.contact-success > p {
  max-width: 50ch;
  font-size: 17px;
  line-height: 1.7;
}

/* Footer */
.footer {
  padding: 48px max(var(--pad), calc((100% - var(--wrap)) / 2)) 40px;
  background: var(--overlay-footer);
  color: var(--ink);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.wordmark-footer {
  font-size: 22px;
  gap: 16px;
}
.wordmark-footer .brand-icon {
  width: 64px;
}
.footer-top > p {
  font-size: 15px;
  color: var(--work-muted);
}
.footer-statement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 72px 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--signal);
  border-top: 1px solid var(--work-line);
}
.footer-statement > span {
  transition: color 0.35s;
}
.footer-statement > svg {
  width: clamp(72px, 11vw, 168px);
  height: auto;
  transition: transform 0.5s var(--ease-out);
}
.footer-statement:hover > svg {
  transform: translate(8px, -8px);
}
.footer-statement:hover > span {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--work-line);
  font-size: 14px;
  color: var(--work-muted);
}
.footer-bottom > div {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.4s var(--ease-step);
}
.footer-bottom a:hover {
  background-size: 100% 2px;
}
.footer-bottom > svg {
  width: 44px;
  height: auto;
}

/* Case study and error pages */
.case-page {
  padding: 56px max(var(--pad), calc((100% - var(--wrap)) / 2)) 104px;
}
.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.case-placeholder-label {
  margin-top: 20px;
  font-size: 14px;
  color: var(--quiet);
}
.case-page > h1 {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(36px, 5.6vw, 86px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.case-lead {
  max-width: 70ch;
  margin-top: 32px;
  font-size: 20px;
  line-height: 1.7;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  padding: 36px 0;
}
.case-meta > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-meta span {
  font-size: 14px;
  color: var(--quiet);
}
.case-meta strong {
  font-size: 16px;
  font-weight: 500;
}
.case-story {
  margin: 72px 0;
}
.case-story section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--gap-wide);
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.case-story h2 {
  font-family: var(--font-mark), sans-serif;
  font-weight: 500;
  font-size: 28px;
}
.case-story section > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 16px;
}
.case-story p {
  max-width: 60ch;
  font-size: 19px;
}
.case-story section > div > span {
  grid-column: 2;
  font-size: 14px;
  color: var(--quiet);
}
.case-next {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.case-next > span {
  font-size: 14px;
  color: var(--quiet);
}
.case-next > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  font-family: var(--font-mark), sans-serif;
  font-size: 32px;
  line-height: 1.3;
}
.case-cta {
  margin-top: 96px;
  padding: 48px;
  background: var(--overlay-contact);
}
.case-cta h2 {
  margin-bottom: 32px;
  font-family: var(--font-display), sans-serif;
  font-size: 34px;
  line-height: 1.25;
  color: var(--signal);
}
.not-found,
.error-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  min-height: 75vh;
  padding: 72px max(var(--pad), calc((100% - var(--wrap)) / 2));
}
.not-found h1,
.error-page h1 {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.12;
  color: var(--signal);
}
.not-found p,
.error-page p {
  max-width: 50ch;
  font-size: 19px;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (min-width: 1920px) {
  .demo-section,
  .stack-statement {
    padding-left: max(var(--pad), calc((100% - var(--wrap)) / 2));
  }
}
@media (max-width: 1280px) {
  .service-list {
    --svc-index: 0px;
    --svc-icon: 64px;
    --svc-gap: 24px;
  }
  .service-index {
    display: none;
  }
  .service-summary {
    grid-template-columns: var(--svc-icon) minmax(0, 1fr) 32px;
  }
  .service-icon {
    grid-row: 1 / span 2;
  }
  .service-name {
    grid-column: 2;
    grid-row: 1;
  }
  .service-description {
    grid-column: 2;
    grid-row: 2;
  }
  .service-summary .service-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: start;
  }
}
@media (max-width: 1100px) {
  :root {
    --header-h: 68px;
  }
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .motion-toggle {
    margin-left: auto;
  }
  .mobile-nav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease-out);
  }
  .mobile-nav[data-open="true"] {
    grid-template-rows: 1fr;
  }
  .mobile-nav > .mobile-nav-links {
    min-height: 0;
    overflow: hidden;
    padding: 0 max(var(--pad), calc((100% - var(--wrap)) / 2));
    background: var(--dark);
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav[data-open="true"] > .mobile-nav-links {
    padding-top: 8px;
    padding-bottom: 16px;
  }
  .mobile-nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mark), sans-serif;
    font-size: 22px;
  }
  .mobile-nav-links a:last-child {
    border-bottom: 0;
    color: var(--signal);
  }
  .hero-top,
  .section-heading,
  .process-intro,
  .studio-intro,
  .demo-section,
  .faq-section,
  .contact-section,
  .process-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .process-body {
    gap: 40px;
  }
  .hero-side {
    max-width: 560px;
  }
  .faq-heading,
  .contact-heading {
    position: static;
  }
  .section-intro {
    padding-bottom: 0;
  }
  .clients-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .project-row {
    grid-template-columns: minmax(0, 1fr) 24px;
  }
  .project-row-type,
  .project-row-status {
    grid-column: 1 / -1;
  }
  .case-story section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .demo-tool {
    max-width: 720px;
  }
}
@media (max-width: 900px) {
  .service-list {
    --svc-icon: 48px;
    --svc-gap: 20px;
  }
  .service-summary {
    min-height: 0;
    padding: 24px 0;
  }
  .service-name {
    font-size: 26px;
  }
  .founders-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .footer-statement {
    padding: 56px 0;
  }
}
@media (max-width: 767px) {
  :root {
    --section-y: 80px;
    --gap-wide: 32px;
    --gap: 32px;
  }
  .section,
  .hero,
  .demo-section,
  .case-page,
  .footer,
  .not-found,
  .error-page {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  .header-inner {
    gap: 12px;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  .wordmark {
    font-size: 16px;
    gap: 12px;
  }
  .brand-icon {
    width: 48px;
  }
  .motion-toggle,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }
  .hero {
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .hero h1 {
    font-size: 44px;
    line-height: 1.08;
  }
  .hero-lead {
    font-size: 18px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions > a {
    width: 100%;
  }
  .hero-actions .text-link {
    justify-content: center;
  }
  .hero-stage {
    margin-top: 40px;
  }
  .code-com {
    display: none;
  }
  .code-block {
    font-size: 14px;
  }
  .sculpture-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .stack-statement {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  .marquee-list li {
    font-size: 30px;
    gap: 32px;
    padding-right: 32px;
  }
  .section h2,
  .demo-heading h2 {
    font-size: 40px;
    line-height: 1.1;
  }
  .section-intro > p,
  .process-intro > p,
  .demo-heading p,
  .studio-intro p,
  .faq-heading > p,
  .contact-heading > p {
    font-size: 18px;
  }
  .clients-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
  }
  .client-slot {
    min-height: 164px;
    padding: 20px 4px;
    gap: 16px;
  }
  .client-mark {
    height: 88px;
  }
  .clients-strip {
    margin-top: 72px;
  }
  .project-row h3 {
    font-size: 24px;
  }
  .service-list {
    --svc-icon: 40px;
    --svc-gap: 16px;
    --svc-name-offset: 0px;
  }
  .service-icon {
    width: 40px;
    height: 40px;
  }
  .service-icon svg {
    width: 22px;
    height: 22px;
  }
  .service-name {
    font-size: 24px;
  }
  .service-detail p {
    font-size: 17px;
  }
  .process-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin-top: 40px;
    scrollbar-width: none;
  }
  .process-tabs::-webkit-scrollbar {
    display: none;
  }
  .process-tabs button {
    flex: 0 0 auto;
    min-height: 60px;
    padding: 16px 16px;
    scroll-snap-align: start;
  }
  .process-tabs button:first-child {
    padding-left: 0;
  }
  .process-explorer {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .process-explorer span {
    text-align: left;
  }
  .process-copy {
    padding-right: 0;
  }
  .process-copy h3 {
    font-size: 30px;
  }
  .tool-body,
  .demo-tool .tool-note {
    padding-left: 16px;
    padding-right: 16px;
  }
  .tool-header {
    padding-left: 16px;
    padding-right: 16px;
  }
  .demo-tool .form-error {
    margin-left: 16px;
    margin-right: 16px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-form-wrap {
    padding: 24px 16px;
  }
  .form-end {
    flex-direction: column;
    align-items: stretch;
  }
  .form-end .button {
    width: 100%;
  }
  .faq-item h3 button {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
    gap: 12px;
    font-size: 20px;
  }
  .faq-answer p {
    padding-left: 52px;
    font-size: 16px;
  }
  .metrics {
    flex-direction: column;
    gap: 24px;
  }
  .real-proof blockquote {
    font-size: 20px;
  }
  .footer-top {
    align-items: flex-start;
  }
  .footer-statement {
    flex-direction: row;
    padding: 48px 0;
    gap: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .case-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .case-lead {
    font-size: 18px;
  }
  .case-cta {
    padding: 24px 20px;
  }
  .case-next > a {
    font-size: 24px;
  }
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: 38px;
  }
  .wordmark span:last-child {
    font-size: 16px;
  }
}

/* ── Motion polish: load-in, drawn rules and hover states ─ */
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-copy > *,
.hero-side > * {
  animation: rise 0.9s var(--ease-out) both;
  animation-delay: calc(var(--n, 0) * 110ms + 120ms);
}
.hero-copy > :nth-child(2),
.hero-side > :nth-child(2) {
  --n: 1;
}
.hero-copy > :nth-child(3) {
  --n: 2;
}
.hero-copy > :nth-child(4) {
  --n: 3;
}
.hero-side > :nth-child(1) {
  --n: 1;
}

/* Section rules draw in as each heading reveals. */
.section-heading,
.process-intro,
.studio-intro {
  position: relative;
}
.section-heading::before,
.process-intro::before,
.studio-intro::before {
  content: "";
  position: absolute;
  top: -32px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out) 0.15s;
}
.section-heading.is-in::before,
.process-intro.is-in::before,
.studio-intro.is-in::before {
  transform: scaleX(1);
}

/* Buttons lift a little and their arrows nudge forward. */
.button:not(.pixel-control),
.button-outline:not(.pixel-control),
.button-dark:not(.pixel-control) {
  transition:
    color 0.3s steps(6, end),
    border-color 0.3s,
    transform 0.3s var(--ease-out);
}
.button:not(.pixel-control):hover,
.button-outline:not(.pixel-control):hover,
.button-dark:not(.pixel-control):hover {
  transform: translateY(-2px);
}
.button svg,
.button-outline svg,
.button-dark svg {
  transition: transform 0.35s var(--ease-out);
}
.button:hover svg,
.button-outline:hover svg,
.button-dark:hover svg {
  transform: translate(3px, -3px);
}

/* The nav underlines the section in view. */
.nav-link[aria-current="true"]::after {
  transform: scaleX(1);
}

.hero-notes li {
  transition:
    transform 0.35s var(--ease-out),
    color 0.3s;
}
.hero-notes li:hover {
  transform: translateX(8px);
  color: var(--signal);
}

.founder-heading {
  position: relative;
}
.founder-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-step);
}
.founder:hover .founder-heading::after {
  transform: scaleX(1);
}

.faq-item h3 button:hover .faq-index,
.faq-item h3 button:focus-visible .faq-index {
  color: var(--signal);
}

.process-tabs button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--quiet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  opacity: 0.6;
}
.process-tabs button:hover::before {
  transform: scaleX(0.4);
}

.form-field label {
  transition: color 0.25s;
}
.form-field:focus-within > label {
  color: var(--signal);
}

/* ── Motion: reduced and paused ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .spotlight {
    display: none;
  }
  .marquee-inner {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding: 0 var(--pad);
  }
  .marquee-list[aria-hidden="true"] {
    display: none;
  }
  .motion-toggle {
    display: none;
  }
  .menu-toggle {
    margin-left: auto;
  }
}
html[data-motion="paused"] {
  scroll-behavior: auto;
}
html[data-motion="paused"] *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after {
  animation: none !important;
  transition-duration: 0.001ms !important;
}
html[data-motion="paused"] .js [data-reveal] {
  opacity: 1;
  transform: none;
}
html[data-motion="paused"] .spotlight {
  display: none;
}
html[data-motion="paused"] .service-row,
html[data-motion="paused"] .type-poster,
html[data-motion="paused"] .portrait-initial {
  transform: none;
}
html[data-motion="paused"] .marquee-inner {
  flex-wrap: wrap;
  width: auto;
  justify-content: center;
  padding: 0 var(--pad);
}
html[data-motion="paused"] .marquee-list[aria-hidden="true"] {
  display: none;
}
/* Depth: display type carries a stepped pixel shadow, so the headings read as voxels on the page. */

.hero h1,
.section h2 {
  text-shadow: 4px 4px 0 #1f4a12;
}

.footer-statement > span {
  text-shadow: 6px 6px 0 #1f4a12;
}

@media (max-width: 767px) {
  .hero h1,
  .section h2 {
    text-shadow: 3px 3px 0 #1f4a12;
  }

  .footer-statement > span {
    text-shadow: 4px 4px 0 #1f4a12;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .section h2,
  .footer-statement > span {
    text-shadow: none;
  }
}
/* Sections rebuilt in the third pass: stacking service cards, a pinned how-it-works, a terminal
   FAQ and a console frame for the enquiry form. Colours and type come from the DESIGN.md tokens. */

/* ── Services: cards that stack as the page scrolls ───────── */
.svc-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap);
}

.svc-heading .product-signal {
  flex: 0 1 380px;
}

.svc-stack {
  display: grid;
  gap: 28px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.svc-card {
  position: sticky;
  top: calc(var(--header-h) + 24px + var(--i, 0) * 18px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--gap-wide);
  min-height: min(66vh, 560px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(161, 255, 107, 0.22);
  background: rgba(16, 32, 23, 0.86);
  box-shadow: 0 -16px 40px rgba(4, 8, 5, 0.55);
  backdrop-filter: blur(10px);
  transform: scale(calc(1 - var(--cover, 0) * 0.06));
  transform-origin: 50% 0;
  filter: brightness(calc(1 - var(--cover, 0) * 0.45));
}

.svc-card::before,
.svc-card::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 0 solid var(--signal);
  pointer-events: none;
}

.svc-card::before {
  top: 14px;
  left: 14px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.svc-card::after {
  right: 14px;
  bottom: 14px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.svc-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.svc-index {
  color: transparent;
  font-size: clamp(88px, 11vw, 190px);
  letter-spacing: -0.04em;
  line-height: 0.8;
  -webkit-text-stroke: 2px var(--signal);
}

.svc-icon {
  color: var(--signal);
}

.svc-icon svg {
  width: 64px;
  height: 64px;
}

.svc-body h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-shadow: 3px 3px 0 #1f4a12;
}

.svc-lead {
  max-width: 40ch;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: var(--step-lead);
  line-height: 1.5;
}

.svc-detail {
  max-width: 54ch;
  margin: 0 0 22px;
  color: var(--quiet);
  line-height: 1.65;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.svc-tags li {
  padding: 6px 10px;
  border: 1px solid var(--frame-border);
  color: var(--work-muted);
  font-size: 13px;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── How it works: pinned, the steps slide sideways ───────── */
.how-section {
  background: var(--overlay-reading);
}

.how-track {
  position: relative;
}

.how-track[data-pinned="true"] {
  height: 360vh;
}

.how-stage {
  display: grid;
  gap: var(--gap-wide);
}

.how-track[data-pinned="true"] .how-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 64px;
}

.how-aside h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 3.4vw, 64px);
}

.how-aside > p {
  margin: 0 0 24px;
  color: var(--quiet);
  font-size: var(--step-lead);
}

.how-aside .process-art {
  max-width: 340px;
}

.how-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.how-steps button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--frame-border);
  background: transparent;
  color: var(--quiet);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.how-steps button span {
  color: var(--signal);
}

.how-steps button:hover {
  border-color: var(--signal);
  color: var(--ink);
}

.how-steps button[aria-current="step"] {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--cta-ink);
}

.how-steps button[aria-current="step"] span {
  color: var(--cta-ink);
}

.how-steps button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.how-window {
  min-width: 0;
  overflow: hidden;
}

.how-rail {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}

.how-track[data-pinned="true"] .how-rail {
  display: flex;
  width: max-content;
}

.how-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(161, 255, 107, 0.16);
  background: rgba(16, 32, 23, 0.8);
  transition:
    border-color 0.4s var(--ease-out),
    background-color 0.4s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.how-track[data-pinned="true"] .how-card {
  width: min(460px, 34vw);
  min-height: min(62vh, 520px);
}

.how-card[data-active="true"] {
  border-color: var(--signal);
  background: rgba(20, 42, 28, 0.94);
  transform: translateY(-10px);
}

.how-number {
  color: transparent;
  font-size: clamp(72px, 8vw, 140px);
  line-height: 0.85;
  -webkit-text-stroke: 2px var(--signal);
}

.how-label {
  margin-top: 18px;
  color: var(--signal);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.how-card h3 {
  margin: 10px 0 14px;
  color: var(--ink);
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.06;
  text-shadow: 3px 3px 0 #1f4a12;
}

.how-card p {
  margin: 0 0 24px;
  color: var(--quiet);
  line-height: 1.6;
}

.how-output {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.how-output span {
  display: block;
  margin-bottom: 4px;
  color: var(--quiet);
  font-size: 13px;
}

.how-output strong {
  color: var(--ink);
  font-weight: 400;
}

.how-progress {
  display: none;
}

.how-track[data-pinned="true"] .how-progress {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  display: block;
  height: 4px;
  background: rgba(161, 255, 107, 0.12);
}

.how-progress i {
  display: block;
  height: 100%;
  background: var(--signal);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* ── FAQ: a terminal session ──────────────────────────────── */
.term-section {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: var(--gap-wide);
}

.term-heading {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.term-heading > p {
  margin: 18px 0 22px;
  color: var(--quiet);
  font-size: var(--step-lead);
}

.term-window {
  border: 1px solid rgba(161, 255, 107, 0.28);
  background: rgba(7, 11, 8, 0.9);
  box-shadow: 10px 10px 0 rgba(31, 74, 18, 0.55);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(161, 255, 107, 0.2);
  background: #0b150f;
  color: var(--quiet);
  font-size: 13px;
}

.term-bar i {
  width: 8px;
  height: 8px;
  background: var(--syntax-coral);
}

.term-bar i:nth-child(2) {
  background: var(--syntax-amber);
}

.term-bar i:nth-child(3) {
  background: var(--signal);
}

.term-bar span {
  margin-left: 10px;
}

.term-body {
  padding: clamp(14px, 2.4vw, 28px);
}

.term-entry h3 {
  margin: 0;
  font-size: inherit;
}

.term-entry button {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 12px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.term-entry button:hover,
.term-entry button:focus-visible {
  background: rgba(161, 255, 107, 0.08);
}

.term-entry button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.term-prompt {
  flex: none;
  width: 1ch;
  color: var(--signal);
}

.term-entry[data-open="true"] button {
  color: var(--signal);
}

.term-answer p {
  max-width: 62ch;
  margin: 0;
  padding: 4px 8px 18px calc(1ch + 20px);
  color: var(--quiet);
  line-height: 1.7;
}

.term-caret {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 2px;
  background: var(--signal);
  vertical-align: -0.15em;
  animation: term-blink 1s steps(1) infinite;
}

.term-ready {
  margin: 14px 8px 0;
  color: var(--signal);
}

@keyframes term-blink {
  50% {
    opacity: 0;
  }
}

/* ── Contact: the enquiry form in a console frame. Markup and behaviour are unchanged. ── */
.contact-section .contact-form-wrap {
  position: relative;
  padding: 0;
  border: 1px solid rgba(161, 255, 107, 0.28);
  background: rgba(7, 11, 8, 0.9);
  box-shadow: 10px 10px 0 rgba(31, 74, 18, 0.55);
}

.contact-section .contact-form-wrap::before {
  content: "~/make-your-key/new-project";
  display: block;
  padding: 12px 18px 12px 64px;
  border-bottom: 1px solid rgba(161, 255, 107, 0.2);
  background: #0b150f;
  color: var(--quiet);
  font-size: 13px;
}

.contact-section .contact-form-wrap::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  width: 8px;
  height: 8px;
  background: var(--syntax-coral);
  box-shadow:
    14px 0 0 var(--syntax-amber),
    28px 0 0 var(--signal);
}

.contact-section .contact-form,
.contact-section .contact-success {
  padding: clamp(20px, 3vw, 36px);
}

.contact-section .form-field > label::before {
  content: "$ ";
  color: var(--signal);
}

.contact-section .contact-form input,
.contact-section .contact-form select,
.contact-section .contact-form textarea {
  caret-color: var(--signal);
}

.contact-section .contact-form input:focus-visible,
.contact-section .contact-form select:focus-visible,
.contact-section .contact-form textarea:focus-visible {
  box-shadow: 4px 4px 0 #1f4a12;
}

/* ── Narrow screens and reduced motion ────────────────────── */
@media (max-width: 900px) {
  /* Cards are taller than a phone screen, so they list instead of stacking over unread text. */
  .svc-card {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    transform: none;
    filter: none;
  }

  .svc-head {
    flex-direction: row;
    align-items: center;
  }

  .svc-index {
    font-size: 64px;
  }

  .term-section {
    grid-template-columns: 1fr;
  }

  .term-heading {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card {
    position: relative;
    top: auto;
    transform: none;
    filter: none;
  }

  .how-card,
  .how-card[data-active="true"] {
    transform: none;
    transition: none;
  }

  .term-caret {
    animation: none;
  }
}
/* Hallmark · v2.0.0 · redesign: full · genre: modern-minimal · brand: kept (DESIGN.md CTA tokens) · built: pixel controls with the shatter hover */
/* Stepped lime controls follow the supplied pixel-button reference. Colours are the CTA tokens in globals.css. */
.pixel-control.pixel-control {
  --pixel-step: 6px;
  --pixel-cut: polygon(
    calc(var(--pixel-step) * 4) 0,
    calc(100% - var(--pixel-step) * 4) 0,
    calc(100% - var(--pixel-step) * 4) var(--pixel-step),
    calc(100% - var(--pixel-step) * 2) var(--pixel-step),
    calc(100% - var(--pixel-step) * 2) calc(var(--pixel-step) * 2),
    calc(100% - var(--pixel-step)) calc(var(--pixel-step) * 2),
    calc(100% - var(--pixel-step)) calc(var(--pixel-step) * 3),
    100% calc(var(--pixel-step) * 3),
    100% calc(100% - var(--pixel-step) * 3),
    calc(100% - var(--pixel-step)) calc(100% - var(--pixel-step) * 3),
    calc(100% - var(--pixel-step)) calc(100% - var(--pixel-step) * 2),
    calc(100% - var(--pixel-step) * 2) calc(100% - var(--pixel-step) * 2),
    calc(100% - var(--pixel-step) * 2) calc(100% - var(--pixel-step)),
    calc(100% - var(--pixel-step) * 4) calc(100% - var(--pixel-step)),
    calc(100% - var(--pixel-step) * 4) 100%,
    calc(var(--pixel-step) * 4) 100%,
    calc(var(--pixel-step) * 4) calc(100% - var(--pixel-step)),
    calc(var(--pixel-step) * 2) calc(100% - var(--pixel-step)),
    calc(var(--pixel-step) * 2) calc(100% - var(--pixel-step) * 2),
    var(--pixel-step) calc(100% - var(--pixel-step) * 2),
    var(--pixel-step) calc(100% - var(--pixel-step) * 3),
    0 calc(100% - var(--pixel-step) * 3),
    0 calc(var(--pixel-step) * 3),
    var(--pixel-step) calc(var(--pixel-step) * 3),
    var(--pixel-step) calc(var(--pixel-step) * 2),
    calc(var(--pixel-step) * 2) calc(var(--pixel-step) * 2),
    calc(var(--pixel-step) * 2) var(--pixel-step),
    calc(var(--pixel-step) * 4) var(--pixel-step)
  );
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  min-height: 44px;
  max-width: 100%;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cta-ink);
  box-shadow: none;
  font-weight: 700;
  text-decoration: none;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.pixel-control.pixel-control::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cta-rim);
  clip-path: var(--pixel-cut);
  transform: translateY(4px);
  pointer-events: none;
}
.pixel-control .pixel-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: inherit;
  padding: 12px 28px;
  background: var(--cta-lime);
  color: var(--cta-ink);
  clip-path: var(--pixel-cut);
  box-shadow:
    inset 0 3px var(--cta-edge-light),
    inset 0 -3px var(--cta-edge-dark);
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}
.pixel-control .pixel-face > svg {
  flex-shrink: 0;
}
.pixel-control.pixel-control:hover {
  color: var(--cta-ink);
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}
.pixel-control.pixel-control:active {
  transform: translateY(2px);
}
.pixel-control.pixel-control:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 7px;
}
.pixel-control:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Shatter: the face opens into six-pixel shards that scatter from the pointer. While they are out
   the label is lime with a difference blend, so it reads as ink over a shard and as lime over the
   dark field. When the shards are home the shard layer fades out as the face fades back in. */
.pixel-shatter {
  position: absolute;
  left: -48px;
  top: -48px;
  width: calc(100% + 96px);
  height: calc(100% + 96px);
  opacity: 0;
  pointer-events: none;
}
.pixel-control[data-shatter] > .pixel-shatter {
  opacity: 1;
}
.pixel-control[data-shatter="seal"] > .pixel-shatter {
  opacity: 0;
  transition: opacity 0.24s ease-out;
}
.pixel-control[data-shatter] > .pixel-face {
  background: transparent;
  box-shadow: none;
  color: var(--cta-lime);
  mix-blend-mode: difference;
}
.pixel-control[data-shatter="seal"] > .pixel-face {
  background: var(--cta-lime);
  box-shadow:
    inset 0 3px var(--cta-edge-light),
    inset 0 -3px var(--cta-edge-dark);
  color: var(--cta-ink);
  mix-blend-mode: normal;
  transition:
    background-color 0.24s ease-out,
    box-shadow 0.24s ease-out;
}
.pixel-control.button {
  min-height: 56px;
  font-size: 15px;
}
@media (max-width: 767px) {
  .pixel-control.button {
    font-size: 13px;
  }
}
.portrait-frame[data-portrait] {
  background: var(--dark);
  transform: none;
  aspect-ratio: auto;
}
.portrait-frame[data-portrait]::before,
.portrait-frame[data-portrait]::after {
  display: none;
}
.interactive-portrait {
  position: relative;
}
.portrait-warning {
  min-height: 176px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--signal);
  color: var(--dark);
  font-size: clamp(20px, 2.1vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.portrait-warning[hidden] {
  display: none;
}
.portrait-warning p {
  margin: 0;
  font: inherit;
}
.portrait-warning strong {
  display: block;
  font-weight: 400;
}
.portrait-warning-copy {
  display: block;
  white-space: pre-line;
}
.portrait-warning-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  animation: portrait-warning-pulse 2.4s ease-in-out infinite;
}
@keyframes portrait-warning-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}
.retro-portrait:not([data-motion="active"]) .portrait-warning-icon {
  animation: none;
}
.portrait-play-area {
  position: relative;
  aspect-ratio: 0.98;
  overflow: hidden;
  background: var(--dark);
}
.portrait-stage {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--dark);
  color: var(--ink);
  overflow: hidden;
  cursor: pointer;
  touch-action: pan-y;
  z-index: 2;
  transition:
    opacity 450ms ease-out,
    transform 600ms steps(8, end);
  transform-origin: 50% 56%;
}
.portrait-stage:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -6px;
}
.retro-character {
  position: absolute;
  inset: 2% 6% 12%;
  pointer-events: none;
}
.portrait-poster {
  object-fit: contain;
  image-rendering: pixelated;
}
.portrait-art-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.portrait-enter {
  position: absolute;
  inset: auto 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  background: var(--signal);
  color: var(--dark);
  font-size: 13px;
}
.portrait-selector {
  position: absolute;
  inset: 12px;
  border: 1px solid transparent;
  pointer-events: none;
}
.portrait-stage:hover .portrait-selector,
.portrait-stage:focus-visible .portrait-selector {
  border-color: var(--signal);
}
.retro-portrait[data-entered="true"] .portrait-stage {
  opacity: 0;
  transform: scale(0.16);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 450ms ease-out,
    transform 600ms steps(8, end),
    visibility 0s 600ms;
}
.retro-portrait[data-entered="true"] .portrait-play-area {
  aspect-ratio: auto;
}
.office-game {
  position: relative;
  display: flex;
  flex-direction: column;
}
.office-game[hidden] {
  display: none;
}
.office-topbar {
  min-height: 52px;
  padding: 0 8px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--dark);
  color: var(--quiet);
  font-size: 11px;
}
.office-game[data-controlled="true"] .office-topbar {
  border-bottom-color: var(--signal);
}
.office-topbar > span {
  margin-left: auto;
}
.office-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 12px;
}
.office-owner[aria-pressed="true"] {
  color: var(--signal);
}
.office-player-light {
  width: 6px;
  height: 6px;
  border: 1px solid var(--quiet);
}
.office-owner[aria-pressed="true"] .office-player-light {
  background: var(--signal);
  border-color: var(--signal);
}
.office-exit {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
}
.office-playfield {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 2;
  flex: none;
  overflow: hidden;
  touch-action: pan-y;
  background: var(--paper);
  cursor: crosshair;
}
.office-playfield:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -4px;
}
.office-playfield canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}
.office-room-label {
  position: absolute;
  inset: auto auto 12px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: var(--header-overlay);
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
}
.office-room-label .office-player-light {
  background: var(--signal);
  border-color: var(--signal);
}
.office-fallback {
  position: absolute;
  inset: 36% 10% auto;
  margin: 0;
  padding: 16px;
  background: var(--dark);
  color: var(--ink);
  font-size: 13px;
}
.office-hud {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--dark);
}
.office-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.office-destination {
  position: relative;
  display: grid;
  flex: 1;
  min-width: 140px;
  gap: 6px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
}
.office-destination[data-open="true"] {
  flex-basis: 100%;
}
.office-destination-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background-color: var(--paper);
  color: var(--ink);
  font-size: 12px;
  text-align: left;
}
.office-destination-trigger:hover:enabled,
.office-destination-trigger[aria-expanded="true"] {
  color: var(--signal);
  border-color: var(--signal);
}
.office-destination-caret {
  flex: none;
  transform: rotate(-90deg);
}
.office-destination-trigger[aria-expanded="true"] .office-destination-caret {
  transform: rotate(90deg);
}
.office-destination-drawer {
  width: 100%;
  border: 2px solid var(--signal);
  background: var(--dark);
  color: var(--ink);
  animation: office-drawer-open 180ms steps(3, end);
}
.office-drawer-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--signal);
  font-size: 11px;
}
.office-drawer-heading > span:last-child {
  color: var(--quiet);
  white-space: nowrap;
}
.office-destination-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 6px;
}
.office-destination-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: var(--dark);
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
}
.office-destination-menu button > svg {
  flex: none;
  color: var(--signal);
  visibility: hidden;
}
.office-destination-menu button small {
  margin-left: auto;
  font-size: 10px;
  line-height: 1.5;
}
.office-destination-menu button:hover:enabled {
  color: var(--signal);
}
.office-destination-menu button:focus:enabled {
  outline: none;
  background: var(--signal);
  color: var(--dark);
}
.office-destination-menu button:focus > svg {
  color: var(--dark);
  visibility: visible;
}
.office-destination-menu button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.office-destination-menu .office-destination-meet {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}
.office-drawer-footnote {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 11px;
}
@keyframes office-drawer-open {
  from {
    opacity: 0.6;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.office-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.office-action {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: var(--dark);
  font-size: 12px;
  line-height: 1.5;
}
.office-action-secondary {
  background: transparent;
  color: var(--signal);
}
.office-action:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--dark);
}
.office-action-hint {
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
}
.office-feedback {
  min-height: 52px;
  padding-top: 12px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.65;
}
.office-destination-trigger:disabled,
.office-dpad button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.portrait-controls {
  position: relative;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 10px;
}
.portrait-controls > svg {
  flex-shrink: 0;
}
.retro-portrait[data-entered="true"] .portrait-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--dark);
}
.office-key-guide {
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.6;
}
.office-key-guide kbd {
  color: var(--ink);
  font: inherit;
}
.office-dpad {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(2, 44px);
  grid-template-areas: ". up ." "left down right";
  gap: 2px;
}
.office-dpad button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--frame-border);
  background: var(--paper);
  color: var(--ink);
}
.office-dpad [data-direction="left"] {
  grid-area: left;
}
.office-dpad [data-direction="up"] {
  grid-area: up;
}
.office-dpad [data-direction="down"] {
  grid-area: down;
}
.office-dpad [data-direction="right"] {
  grid-area: right;
}
.office-dpad button:hover:enabled,
.office-exit:hover {
  color: var(--signal);
  background: var(--service-field);
}
@media (max-width: 1100px) and (min-width: 768px) {
  .portrait-play-area {
    aspect-ratio: 0.82;
  }
}
@media (max-width: 600px) {
  .portrait-warning {
    min-height: 152px;
    padding: 20px;
    gap: 16px;
  }
  .portrait-warning-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .portrait-controls {
    padding: 0 12px;
    font-size: 10px;
  }
  .portrait-play-area {
    aspect-ratio: 0.84;
  }
  .retro-portrait[data-entered="true"] .portrait-controls {
    padding: 12px;
  }
  .office-hud {
    padding: 12px;
  }
  .office-destination {
    flex-basis: 100%;
  }
  .office-topbar {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-warning-icon {
    animation: none;
  }
  .portrait-stage,
  .retro-portrait[data-entered="true"] .portrait-stage {
    transition: none;
  }
  .office-destination-drawer {
    animation: none;
  }
}
[data-motion="paused"] .portrait-stage {
  transition: none;
}
[data-motion="paused"] .office-destination-drawer,
.retro-portrait:not([data-motion="active"]) .office-destination-drawer {
  animation: none;
}

/* Keep the real characters lazy-loaded until a visitor enters the office. */
.office-model-status { display: none; }
.interactive-portrait[data-character-models="loading"] .office-model-status,
.interactive-portrait[data-character-models="error"] .office-model-status {
  display: block; position: absolute; inset: auto 1rem 2.8rem; z-index: 3;
  padding: .75rem; background: var(--bg, #070b08); border: 1px solid #2e5239;
  color: #edf8f0; font-size: .875rem; text-align: center; pointer-events: none;
}
/* Quest strip: the level, its goal and progress. It sits above the playfield, never over it. */
.office-quest {
  display: grid;
  gap: 6px;
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(161, 255, 107, 0.08), transparent 70%);
}

.office-quest[data-phase="clear"],
.office-quest[data-phase="won"] {
  background: linear-gradient(90deg, rgba(161, 255, 107, 0.2), transparent 80%);
}

.office-quest-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.office-quest-level {
  flex: none;
  padding: 2px 6px;
  background: var(--signal);
  color: var(--cta-ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.office-quest-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-quest-count {
  flex: none;
  margin-left: auto;
  color: var(--signal);
  font-size: 14px;
}

.office-quest-brief {
  margin: 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.4;
}

.office-quest-meter {
  height: 6px;
  background: #12221a;
}

.office-quest-meter > span {
  display: block;
  height: 100%;
  background: var(--signal);
  transition: width 0.3s steps(6, end);
}

.office-quest[data-boss] .office-quest-level,
.office-quest[data-boss] .office-quest-meter > span {
  background: var(--syntax-coral);
}

.office-quest[data-boss] .office-quest-count {
  color: var(--syntax-coral);
}

.office-quest-focus {
  display: flex;
  gap: 4px;
}

.office-quest-focus i {
  width: 10px;
  height: 10px;
  background: #2a1a18;
}

.office-quest-focus i[data-on="true"] {
  background: var(--syntax-coral);
}

.office-quest .office-action {
  justify-self: start;
}

@media (prefers-reduced-motion: reduce) {
  .office-quest-meter > span {
    transition: none;
  }
}
/* Products in motion: a full-bleed pinned stage with no frame. One voxel cloud builds each product
   in turn as the page scrolls, while giant outline words slide behind it. */

.reel {
  margin: 0;
}

.reel-track {
  position: relative;
  width: 100vw;
  height: 320vh;
  margin-left: calc(50% - 50vw);
}

.reel-stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.reel-visual {
  position: absolute;
  inset: 62px var(--pad) 48px clamp(300px, 30vw, 500px);
}

.reel-words {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: -1;
  display: flex;
  translate: 0 -50%;
  transform: translate3d(calc(var(--p, 0) * -200vw), 0, 0);
  pointer-events: none;
}

.reel-words span {
  flex: none;
  width: 100vw;
  color: transparent;
  font-size: clamp(96px, 19vw, 320px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  -webkit-text-stroke: 1px rgba(161, 255, 107, 0.12);
}

.reel-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}

.reel-canvas[hidden] {
  display: none;
}

.reel-count {
  position: absolute;
  top: 25px;
  right: var(--pad);
  color: var(--signal);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.reel-nav {
  position: absolute;
  top: 14px;
  left: var(--pad);
  display: flex;
  gap: 4px;
}

.reel-nav button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--quiet);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 180ms, border-color 180ms;
}

.reel-nav button:hover,
.reel-nav button[aria-pressed="true"] {
  border-bottom-color: var(--signal);
  color: var(--ink);
}

.reel-nav button span {
  margin-right: 8px;
  color: var(--signal);
}

.reel-chapters {
  position: absolute;
  left: var(--pad);
  bottom: 72px;
  display: grid;
  width: min(380px, calc(100% - 2 * var(--pad)));
  margin: 0;
  padding: 0;
  list-style: none;
}

.reel-chapters li {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.reel-chapters li[data-state="on"] {
  opacity: 1;
  transform: none;
}

.reel-chapters span {
  color: var(--signal);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reel-chapters h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.08;
  text-shadow: 3px 3px 0 #1f4a12;
}

.reel-chapters p {
  max-width: 34ch;
  margin: 0;
  color: var(--quiet);
  font-size: 16px;
  line-height: 1.45;
}

.reel-progress {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 30px;
  height: 4px;
  background: rgba(161, 255, 107, 0.12);
}

.reel-progress i {
  display: block;
  height: 100%;
  background: var(--signal);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.reel-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: var(--quiet);
  text-align: center;
}

/* Reduce Motion gets a compact, directly selectable stage. Pause preserves scroll geometry. */
.reel-track[data-reduced="true"] {
  height: auto;
}

.reel-track[data-reduced="true"] .reel-stage {
  position: relative;
  top: 0;
  height: min(760px, calc(100svh - var(--header-h)));
}

@media (max-width: 1000px) {
  .reel-visual {
    inset: 66px var(--pad) 200px;
  }

  .reel-chapters {
    width: min(560px, calc(100% - 2 * var(--pad)));
    bottom: 56px;
  }
}

@media (max-width: 767px) {
  .reel-track {
    height: 260vh;
  }

  .reel-chapters {
    bottom: 42px;
  }

  .reel-chapters h3 {
    font-size: clamp(23px, 6vw, 30px);
  }

  .reel-chapters p {
    max-width: 38ch;
    font-size: 14px;
  }

  .reel-visual {
    bottom: 194px;
  }

  .reel-count {
    top: auto;
    bottom: 18px;
    font-size: 11px;
  }

  .reel-progress {
    right: calc(var(--pad) + 76px);
    bottom: 23px;
  }

  .reel-nav {
    right: var(--pad);
    justify-content: space-between;
  }

  .reel-nav button {
    padding-inline: 5px;
    font-size: 12px;
  }

  .reel-nav button span {
    margin-right: 5px;
  }

  .reel-words span {
    -webkit-text-stroke-width: 1px;
  }
}

@media (max-height: 600px) {
  .reel-visual { top: 52px; bottom: 115px; }
  .reel-chapters { bottom: 40px; }
  .reel-chapters h3 { font-size: 22px; }
  .reel-chapters p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-chapters li,
  .reel-nav button { transition: none; transform: none; }
}
/* Manifesto: a statement that lights up word by word as the page scrolls past it. */
.manifesto {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(110px, 15vw, 210px) var(--pad) clamp(70px, 9vw, 120px);
}

.manifesto::before {
  content: "";
  position: absolute;
  top: clamp(56px, 7vw, 96px);
  left: var(--pad);
  width: 56px;
  height: 56px;
  border-top: 2px solid var(--signal);
  border-left: 2px solid var(--signal);
}

.manifesto-text {
  max-width: 17em;
  margin: 0;
  font-size: clamp(38px, 6.4vw, 104px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.js .manifesto-text [data-word] {
  color: rgba(237, 248, 240, 0.14);
  transition:
    color 0.5s var(--ease-out),
    text-shadow 0.5s var(--ease-out);
}

.js .manifesto-text [data-word][data-lit="true"] {
  color: var(--ink);
  text-shadow: 5px 5px 0 #24501a;
}

@media (max-width: 767px) {
  .manifesto::before {
    width: 40px;
    height: 40px;
  }

  .js .manifesto-text [data-word][data-lit="true"] {
    text-shadow: 3px 3px 0 #24501a;
  }
}
/* Hallmark · v2.0.0 · redesign: full · genre: modern-minimal · brand: kept (DESIGN.md palette) · built: consent bar, bottom of the page */
.analytics-controls {
  padding: 1rem var(--pad) 1.5rem;
  background: var(--dark);
}
.analytics-preferences-link,
.analytics-close {
  min-height: 44px;
  padding: 0.5rem 0;
  color: var(--quiet);
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.analytics-preferences-link:hover,
.analytics-close:hover {
  color: var(--signal);
}
/* A bottom bar that never covers the hero copy or its action on arrival. Choices sit in the right column. */
.analytics-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  column-gap: 32px;
  row-gap: 4px;
  align-items: start;
  width: 100%;
  max-height: min(60dvh, 420px);
  overflow-y: auto;
  padding: 20px var(--pad) 24px;
  border-top: 2px solid var(--signal);
  background: var(--dark);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
.analytics-notice > * {
  grid-column: 1;
}
.analytics-notice > h2 {
  margin: 0 0 4px;
  text-wrap: balance;
  color: var(--signal);
  font-size: 22px;
  line-height: 1.3;
}
.analytics-notice > p {
  margin: 4px 0;
  max-width: 70ch;
}
.analytics-notice > .analytics-actions {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
}
.analytics-notice > .analytics-close {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}
.analytics-notice summary {
  display: list-item;
  min-height: 44px;
  padding-block: 0.625rem;
  cursor: pointer;
  color: var(--signal);
}
.analytics-notice details p {
  color: var(--quiet);
}
.analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.analytics-choice {
  flex: 1 1 10rem;
  min-height: 48px;
  padding: 0.75rem;
  border: 2px solid var(--signal);
  color: var(--signal);
  font-size: 0.875rem;
  line-height: 1.5;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.analytics-choice:hover:not(:disabled) {
  background: var(--signal);
  color: var(--dark);
}
.analytics-choice:active:not(:disabled) {
  transform: translateY(2px);
}
.analytics-choice:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.analytics-state {
  color: var(--signal);
}
.analytics-notice :focus-visible,
.analytics-preferences-link:focus-visible,
.analytics-notice:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .analytics-notice {
    grid-template-columns: minmax(0, 1fr);
    max-height: 60dvh;
    padding: 16px var(--pad);
    font-size: 14px;
    line-height: 1.5;
  }
  .analytics-notice > h2 {
    font-size: 18px;
  }
  .analytics-notice > p {
    margin: 2px 0;
  }
  .analytics-notice > .analytics-actions,
  .analytics-notice > .analytics-close {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }
  .analytics-notice > .analytics-actions {
    margin-top: 8px;
  }
  .analytics-choice {
    flex: 1 1 0;
    min-height: 44px;
    padding: 8px;
    font-size: 13px;
  }
}
/* Hallmark · v2.0.0 · redesign: full · genre: modern-minimal · brand: kept (DESIGN.md palette) · built: the audit page */
/* Hallmark · dismissed 25 · the audit lede is one sentence beside the headline, set at 44ch on purpose */
.audit-page {
  position: relative;
  z-index: 1;
}
.audit-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 7rem) max(var(--pad), calc((100% - var(--wrap)) / 2));
  border-bottom: 1px solid var(--line);
}
.audit-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--quiet);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.audit-home-link:hover {
  color: var(--signal);
}
.audit-intro h1 {
  margin: 1.5rem 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--signal);
  text-wrap: balance;
}
.audit-intro p {
  max-width: 44ch;
  font-size: 19px;
  line-height: 1.7;
}
.audit-key {
  width: 100%;
  height: auto;
  color: var(--signal);
  opacity: 0.9;
}
.audit-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem max(var(--pad), calc((100% - var(--wrap)) / 2));
  background: var(--dark);
}
@media (max-width: 767px) {
  .audit-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .audit-key {
    width: min(16rem, 70%);
  }
  .audit-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* A private model review room, using the studio's existing pixel type and palette. */
.character-review { padding: 36px var(--pad) 56px; max-width: 1700px; margin: auto; }
.character-review-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:26px; }
.character-review-kicker { color:var(--signal); font-size:12px; letter-spacing:.07em; margin:0 0 12px; }
.character-review h1 { font-size:clamp(28px,4vw,52px); line-height:1.15; font-weight:400; margin:0 0 14px; }
.character-review-heading p:last-child { color:var(--quiet); font-size:15px; max-width:65ch; line-height:1.6; margin:0; }
.character-review-back { color:var(--quiet); font-size:13px; padding:14px 0; white-space:nowrap; }
.character-review-back:hover { color:var(--signal); }
.character-viewer { border:1px solid var(--line); background:#0b100d; }
.character-viewer-bar { display:flex; gap:16px; align-items:center; justify-content:space-between; min-height:68px; padding:10px 20px; border-bottom:1px solid var(--line); }
.character-control-group { display:flex; flex-wrap:wrap; gap:4px; }
.character-control-group button { background:transparent; border:1px solid transparent; color:var(--quiet); padding:10px 12px; font:inherit; font-size:13px; min-height:44px; cursor:pointer; transition:color .15s,background .15s,border-color .15s; }
.character-control-group button:hover { border-color:var(--line); color:var(--ink); }
.character-control-group button[aria-pressed="true"] { color:#0b100d; background:var(--signal); border-color:var(--signal); }
.character-control-group button:focus-visible { outline:2px solid var(--signal); outline-offset:3px; }
.character-review-status { color:var(--quiet); font-size:11px; letter-spacing:.04em; display:flex; gap:8px; align-items:center; }
.character-review-status i { width:6px; height:6px; background:var(--signal); display:block; }
.character-viewport { position:relative; height:clamp(400px,50svh,650px); overflow:hidden; isolation:isolate; }
.character-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:pan-y; cursor:grab; outline-offset:-4px; }
.character-canvas:active { cursor:grabbing; }
.character-canvas:focus-visible { outline:2px solid var(--signal); }
.character-drag-hint { position:absolute; right:20px; bottom:16px; margin:0; color:var(--quiet); font-size:10px; letter-spacing:.04em; pointer-events:none; }
.character-load-message { position:absolute; inset:45% 16px auto; text-align:center; color:var(--quiet); font-size:14px; }
.character-viewer[data-ready="true"] .character-load-message { display:none; }
.character-pending-art { position:absolute; inset:60px 20px 30px; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:20px; }
.character-pending-art img { display:block; width:100%; max-height:100%; object-fit:contain; }
.character-viewer[data-ready="true"] .character-pending-art { display:none; }
.character-viewer:not([data-ready="true"]) .character-canvas,
.character-viewer:not([data-ready="true"]) .character-viewer-controls,
.character-viewer:not([data-ready="true"]) .character-control-group,
.character-viewer:not([data-ready="true"]) .character-nameplates,
.character-viewer:not([data-ready="true"]) .character-drag-hint { display:none; }
.character-viewer:not([data-ready="true"]) .character-viewer-bar { justify-content:flex-end; }
.character-viewer:not([data-ready="true"]) .character-load-message { inset:16px 20px auto; z-index:1; font-size:12px; }
.character-nameplates { position:absolute; bottom:52px; width:70%; left:15%; display:flex; justify-content:space-around; pointer-events:none; }
.character-nameplates span { border-bottom:2px solid var(--signal); padding:8px 0; color:var(--ink); font-size:12px; letter-spacing:.08em; }
.character-nameplates [data-name="mayank"] { border-color:#b8d6ae; }
.character-viewer[data-selection="utsav"] [data-name="mayank"], .character-viewer[data-selection="mayank"] [data-name="utsav"] { display:none; }
.character-viewer-controls { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; border-top:1px solid var(--line); padding:12px 20px; }
.character-review-notes { color:var(--quiet); font-size:13px; line-height:1.75; margin-top:24px; }
.character-review-notes p { margin:0 0 22px; color:var(--ink); }
.character-review-notes p span { color:var(--quiet); }
.character-review-notes details { border-top:1px solid var(--line); padding-top:18px; }
.character-review-notes summary { cursor:pointer; padding:10px 0; color:var(--ink); }
.character-reference-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:18px; }
.character-reference-grid figure { margin:0; }
.character-reference-grid img { display:block; width:100%; height:auto; border:1px solid var(--line); }
.character-reference-grid figcaption { padding-top:10px; }
@media (max-width:767px) {
  .character-review { padding-top:28px; }
  .character-review-heading { align-items:flex-start; flex-direction:column; gap:8px; margin-bottom:18px; }
  .character-review-heading p:last-child { font-size:14px; }
  .character-review-back { font-size:12px; padding:6px 0; }
  .character-viewer-bar { flex-direction:column; align-items:flex-start; padding:10px 10px 14px; gap:10px; }
  .character-review-status { font-size:10px; padding-left:10px; }
  .character-control-group button { font-size:12px; padding:10px; }
  .character-viewport { height:440px; }
  .character-viewer:not([data-ready="true"]) .character-viewport { height:auto; }
  .character-pending-art { position:relative; inset:auto; grid-template-columns:1fr; gap:16px; padding:80px 16px 24px; }
  .character-viewer-controls { padding:10px; gap:8px; }
  .character-viewer-controls .character-control-group:last-child { width:100%; border-top:1px solid var(--line); padding-top:8px; }
  .character-nameplates { width:94%; left:3%; bottom:48px; }
  .character-nameplates span { font-size:10px; }
  .character-drag-hint { font-size:9px; right:0; width:100%; text-align:center; }
  .character-reference-grid { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) { .character-control-group button { transition:none; } }

.character-actor-controls { display: flex; flex-wrap: wrap; gap: .375rem; padding: .625rem 1rem; border-top: 1px solid #2e5239; }
.character-actor-controls button { min-height: 44px; padding: .5rem .75rem; font: inherit; color: #edf8f0; background: transparent; border: 1px solid transparent; cursor: pointer; }
.character-actor-controls button:hover, .character-actor-controls button:focus-visible { border-color: #a1ff6b; }
.character-actor-controls button[aria-pressed="true"] { background: #a1ff6b; color: #070b08; }

.character-viewer:not([data-ready="true"]) .character-actor-controls { display: none; }
