/* ==========================================================================
   V4 Redesign (a brand of JWG Enterprises LLC)
   ========================================================================== */

:root {
  --ink: #0e0e0c;
  --paper: #efece4;
  --accent: #ff4f1f;
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: rgba(239, 236, 228, 0.56);
  --line: rgba(239, 236, 228, 0.16);

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --pad: clamp(16px, 4vw, 56px);
  --radius: clamp(20px, 2.4vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(16px, 0.35vw + 14.5px, 19px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

::selection { background: var(--accent); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: fixed; left: var(--pad); top: -100px; z-index: 300;
  background: var(--accent); color: var(--ink);
  padding: 0.6em 1.1em; border-radius: 999px; font-weight: 500;
}
.skip:focus { top: 16px; }

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Word splitting (added by JS) */
.w { display: inline-block; vertical-align: top; text-indent: 0; }
.w__i { display: inline-block; will-change: transform; }
[data-split] .w {
  overflow: hidden;
  padding: 0 0.06em 0.16em;
  margin: 0 -0.06em -0.16em;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.h2 {
  font-size: clamp(2.75rem, 7.2vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

/* Buttons --------------------------------------------------------------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 1em 1.6em;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--ink); }

.btn--small { padding: 0.75em 1.25em; font-size: 0.9rem; }

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  padding: 1.15em 2em;
  font-size: 1.05rem;
}
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Loader ---------------------------------------------------------------- */

.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end;
  padding: var(--pad);
  background: var(--accent);
  color: var(--ink);
  /* Failsafe: never block the page if scripts don't load */
  animation: loader-failsafe 0s 5s forwards;
}
.loader__inner {
  width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.loader__brand { display: flex; flex-direction: column; gap: 0.75rem; }
.loader__word {
  font-size: clamp(2.1rem, 7vw, 6.5rem);
  line-height: 0.9;
  white-space: nowrap;
}
.loader__name {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.loader__count {
  font-size: clamp(6rem, 22vw, 20rem);
  font-weight: 500;
  line-height: 0.75;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}
@keyframes loader-failsafe { to { visibility: hidden; } }

/* Grain + cursor -------------------------------------------------------- */

.grain {
  position: fixed; inset: -100%; z-index: 250;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 6%); }
  80% { transform: translate(5%, -2%); }
  100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 240;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  display: none;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.3s;
}
.has-cursor .cursor { display: block; }
.cursor.is-hover {
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  background: #fff;
}
.cursor.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.menu-is-open .cursor { opacity: 0 !important; }

/* Nav ------------------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: clamp(14px, 2vw, 26px) var(--pad);
  color: #fff;
  mix-blend-mode: difference;
  transition: translate 0.7s var(--ease);
}
.nav.is-hidden { translate: 0 -110%; }
.nav.menu-open { mix-blend-mode: normal; color: var(--ink); translate: none; }

.nav__logo { display: flex; align-items: baseline; gap: 0.5em; margin-right: auto; }
.nav__mark { font-weight: 600; font-size: 1.35rem; letter-spacing: -0.04em; }
.nav__sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; opacity: 0.7; }

.nav__links { display: flex; gap: 2rem; font-size: 0.95rem; }
.nav__links a, .footer__nav a { position: relative; }
.nav__links a::after, .footer__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after, .footer__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav .btn::before { background: #fff; }
.nav .btn:hover, .nav .btn:focus-visible { color: #000; }

.nav__menu {
  display: none;
  background: none; border: 0; padding: 0.5em 0;
  color: inherit; font: inherit; font-weight: 500; cursor: pointer;
}

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem;
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + 1rem);
  background: var(--accent);
  color: var(--ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.8s var(--ease), visibility 0s; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-size: clamp(3rem, 15vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.menu__foot { font-size: 0.95rem; opacity: 0.75; }

@media (max-width: 860px) {
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .nav__menu { display: block; }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(clamp(14px, 2vw, 26px) * 2 + 3rem) var(--pad) var(--pad);
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: auto;
}
.hero__status { display: inline-flex; align-items: center; gap: 0.6em; color: var(--fg); }
.hero__status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 79, 31, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 79, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 31, 0); }
}

/* The engine, centred and as big as the hero allows. Its four cylinders carry the four parts
   of full-stack development, each label hung off its cylinder by js/hero-engine.js. */
.hero__engine {
  position: relative;
  flex: 1 1 auto;
  min-height: clamp(440px, 70vh, 920px);
  margin: clamp(0.5rem, 2vh, 1.5rem) calc(var(--pad) * -1) 0;
}
.hero__engine canvas { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__engine.is-ready canvas { opacity: 1; }
.cursor-on-engine .cursor { opacity: 0 !important; }

/* The Contact badge sits over the engine's corner. */
.hero__foot {
  position: absolute; right: var(--pad); bottom: var(--pad); z-index: 3;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The four labels. Without the engine (no JS, or no WebGL) they're a plain grid in its place;
   with it, js/hero-engine.js places each beside its cylinder every frame. */
.stack {
  list-style: none; margin: 0; padding: 0;
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(2, max-content);
  place-content: center; gap: 2.5rem 5rem;
}
.js .hero__engine:not(.is-ready):not(.is-flat) .stack { visibility: hidden; }
.hero__engine.is-ready .stack { display: block; z-index: 2; pointer-events: none; }
.hero__engine.is-ready .stack__item { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }

.stack__item {
  --lit: 0;
  color: color-mix(in oklab, var(--accent) calc(var(--lit) * 100%), var(--fg));
  font-size: 0.8rem;
  line-height: 1.4;
  text-shadow: 0 0 14px rgba(239, 236, 228, 0.3);
}
.stack__item b { display: block; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.stack__item i { font-style: normal; color: var(--accent); margin-right: 0.7em; letter-spacing: 0.04em; }
.stack__item span { display: block; color: var(--muted); letter-spacing: 0.01em; text-shadow: none; }
.stack__item.is-left { text-align: right; }
.stack__item.is-centre { text-align: center; }

/* The holographic lines from each plug to its label: fine dashes running outward. */
.stack__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.stack__lines g {
  --lit: 0;
  color: color-mix(in oklab, var(--accent) calc(var(--lit) * 100%), var(--fg));
}
.stack__lines line {
  stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.55;
  animation: stack-flow 1.4s linear infinite;
}
.stack__lines .dot { fill: currentColor; }
.stack__lines .ring { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.45; }
@keyframes stack-flow { to { stroke-dashoffset: -14; } }

.badge {
  position: relative; flex: none;
  width: clamp(112px, 10.5vw, 156px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  overflow: hidden; /* keep the spinning ring's corners from widening the page */
}
.badge__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 16s linear infinite;
}
.badge__ring text {
  fill: var(--fg);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}
.badge__arrow {
  width: 46%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  transition: transform 0.6s var(--ease);
}
.badge__arrow svg { width: 42%; }
.badge:hover .badge__arrow { transform: rotate(-90deg) scale(1.08); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Statement ------------------------------------------------------------- */

.statement { padding: clamp(7rem, 16vw, 14rem) var(--pad); }
.statement__text {
  max-width: 24em;
  font-size: clamp(1.85rem, 4.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-indent: clamp(0rem, 14vw, 16rem);
}

/* Marquee --------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-block: 1px solid var(--line);
}
.marquee__row { display: flex; white-space: nowrap; }
.marquee__track { display: flex; will-change: transform; }
.marquee__group {
  --gap: clamp(1.25rem, 3vw, 3rem);
  display: flex; align-items: center; gap: var(--gap);
  padding-right: var(--gap);
  font-size: clamp(3.5rem, 10vw, 9.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.marquee__group i { font-style: normal; font-size: 0.4em; color: var(--accent); }
.marquee__row--outline .marquee__group { font-size: clamp(2.25rem, 6vw, 5.5rem); }
.marquee__row--outline span {
  color: transparent;
  -webkit-text-stroke: 1px var(--fg);
}

/* Packages -------------------------------------------------------------- */

.packages {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(6rem, 12vw, 10rem) var(--pad);
  border-radius: var(--radius);
  --muted: rgba(14, 14, 12, 0.58);
  --line: rgba(14, 14, 12, 0.16);
}

.packages__head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem 4rem;
}
.packages__note { max-width: 34ch; font-size: clamp(1rem, 1.2vw, 1.2rem); color: var(--muted); }

.packages__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.plan {
  position: relative;
  display: flex; flex-direction: column;
  min-height: clamp(500px, 42vw, 620px);
  padding: clamp(1.5rem, 2.4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: translate 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.plan:hover { translate: 0 -8px; box-shadow: 0 30px 60px -30px rgba(14, 14, 12, 0.35); }

.plan--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  --muted: rgba(239, 236, 228, 0.6);
  --line: rgba(239, 236, 228, 0.16);
}

.plan__num { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan__name {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0.4rem;
  font-size: clamp(2.75rem, 4.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
.plan__tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.6vw, 1.6rem); line-height: 1.2; color: var(--muted); }
.plan--featured .plan__tag { color: var(--accent); }

.plan__badge {
  position: absolute;
  top: clamp(1.5rem, 2.4vw, 2.4rem); right: clamp(1.5rem, 2.4vw, 2.4rem);
  padding: 0.45em 0.85em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan__list {
  list-style: none;
  display: grid; gap: 0.8rem;
  margin: clamp(2rem, 3vw, 2.75rem) 0 2rem;
  padding: 0;
  font-size: 0.98rem;
  line-height: 1.4;
}
.plan__list li { display: grid; grid-template-columns: 1.25rem 1fr; align-items: baseline; }
.plan__list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  transform: translateY(-0.15em);
}
.plan--featured .plan__list li::before { background: var(--accent); opacity: 1; }
.plan__list .plan__inherit { font-weight: 600; }
.plan__list .plan__inherit::before,
.plan--featured .plan__list .plan__inherit::before { content: "+"; width: auto; height: auto; background: none; opacity: 1; transform: none; font-weight: 600; }
.plan--featured .plan__list .plan__inherit::before { color: var(--accent); }

.plan__foot {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.plan__price { font-size: 0.85rem; color: var(--muted); }
.plan__cta {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.3em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
}
.plan__cta span { transition: transform 0.5s var(--ease); }
.plan__cta:hover span { transform: translateX(4px); }
.plan--featured .plan__cta { background: var(--accent); color: var(--ink); }

/* Process --------------------------------------------------------------- */

.process {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 12vw, 10rem) 0;
}
.process__track {
  display: flex; flex-direction: column; gap: 3rem;
  padding: 0 var(--pad);
}
.process__hint { margin-top: 1.5rem; color: var(--muted); max-width: 26ch; }

.process__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
}
.step {
  display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  min-height: 320px;
  padding: clamp(1.5rem, 2.4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--fg);
}
.step h3 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.75rem; }
.step p { color: var(--muted); max-width: 30ch; }
.step--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.step--accent .step__num { -webkit-text-stroke-color: var(--ink); }
.step--accent p { color: rgba(14, 14, 12, 0.72); }

.process__bar { display: none; }

@media (min-width: 900px) {
  .process { padding: 0; height: 100vh; }
  .process__track {
    flex-direction: row; align-items: center; gap: clamp(12px, 1.4vw, 20px);
    width: max-content; height: 100%;
    will-change: transform;
  }
  .process__intro { flex: none; width: clamp(340px, 38vw, 600px); padding-right: 4vw; }
  .process__steps { display: flex; gap: clamp(12px, 1.4vw, 20px); }
  .step { width: clamp(320px, 29vw, 440px); height: min(68vh, 560px); }
  .process__bar {
    display: block;
    position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(24px, 4vh, 48px);
    height: 1px; background: var(--line);
  }
  .process__bar span {
    display: block; height: 100%;
    background: var(--fg);
    transform: scaleX(0); transform-origin: left;
  }
}

/* Contact --------------------------------------------------------------- */

.contact { padding: clamp(6rem, 12vw, 10rem) var(--pad); }
.contact__title {
  font-size: clamp(3.75rem, 14vw, 15rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
  margin-bottom: clamp(3rem, 7vw, 7rem);
}
.contact__title em { color: var(--accent); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3.5rem);
}
.contact__aside p { max-width: 28ch; font-size: clamp(1.1rem, 1.4vw, 1.4rem); line-height: 1.4; color: var(--muted); }
.contact__direct { margin-top: 2rem; }
.contact__direct a { color: var(--fg); border-bottom: 1px solid var(--accent); }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 2rem;
}
.field { position: relative; }
.field--full, .choices, .form__actions { grid-column: 1 / -1; }

.field input, .field textarea {
  width: 100%;
  padding: 1.5rem 0 0.7rem;
  background: none;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--fg);
  font: inherit;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  outline: none;
  transition: border-color 0.3s;
}
.field textarea { display: block; resize: vertical; min-height: 7.5rem; line-height: 1.45; }
.field label {
  position: absolute; left: 0; top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.45s var(--ease), color 0.45s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem) scale(0.68);
  color: var(--fg);
}
.field::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input { border-color: var(--accent); }

.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 1rem; color: var(--muted); font-size: 0.95rem; }
.choices__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block;
  padding: 0.75em 1.25em;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.chip:hover span { border-color: var(--fg); }
.chip input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form__status { color: var(--muted); font-size: 0.95rem; }
.form__status.is-error { color: var(--accent); }
.form__status.is-ok { color: var(--fg); }

/* Footer ---------------------------------------------------------------- */

.footer {
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) var(--pad) var(--pad);
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 2rem;
  color: var(--muted);
}
.footer__top strong { color: var(--fg); font-weight: 500; }
.footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; color: var(--fg); }
.footer__back { color: var(--fg); align-self: start; }

.footer__mark {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  margin: clamp(3rem, 7vw, 6rem) 0 clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
}
.footer__logo {
  display: flex;
  font-size: 44vw;
  font-weight: 600;
  line-height: 0.74;
  padding-top: 0.04em;
}
.footer__logo span { display: block; }
.footer__logo span + span { margin-left: -0.03em; color: var(--accent); }
.footer__motto {
  display: flex; flex-direction: column; align-items: flex-end;
  font-size: clamp(1.1rem, 5.4vw, 6rem);
  line-height: 0.98;
  white-space: nowrap;
  color: var(--muted);
  padding-bottom: 0.05em;
}
.footer__motto em { display: block; }
.footer__motto em:last-child { color: var(--fg); }

.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1000px) {
  .packages__grid { grid-template-columns: minmax(0, 1fr); }
  .plan { min-height: 0; }
  .plan__name { margin-top: 1.75rem; }
}

@media (max-width: 760px) {
  /* On a narrow screen the badge would cover a label in the engine's corner: it gets a row of its own. */
  .hero__foot { position: static; display: flex; justify-content: flex-end; margin-top: 0.75rem; }
  .packages__head, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr) auto; }
  .footer__top > p { grid-column: 1 / -1; }
  .statement__text { text-indent: 0; }
  .step { min-height: 250px; }
}

@media (max-width: 480px) {
  .hero__meta span:nth-child(2) { display: none; }
  .hero__engine { min-height: min(150vw, 74vh); }
  .stack { gap: 1.75rem 2rem; }
  .stack__item { font-size: 0.68rem; }
  .hero__engine.is-ready .stack__item span { display: none; }
}

/* Motion preferences ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .js .loader { display: none; }
  .grain, .badge__ring, .hero__status i, .stack__lines line { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
