/* Vector Studio. Plain CSS, no build step.
   Breakpoints: 640px, 680px (call bar), 768px, 900px (nav), 1024px. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
/* Size-matched fallbacks so text does not jump when the fonts load */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0%;
  size-adjust: 104.76%;
}
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Arial");
  ascent-override: 75.79%;
  descent-override: 22.29%;
  line-gap-override: 0%;
  size-adjust: 134.59%;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0e0e10;
  --paper: #f6f4ef;
  --white: #ffffff;
  --line: #e3dfd6;
  --stone: #6b6862;
  --signal: #ff5b1a;
  --error: #b42318;
  /* Dark bands (CTA, footer, menu) and the text on them. These stay dark in both themes. */
  --band: #0e0e10;
  --band-fg: #f6f4ef;
  /* Text on Signal is always Ink */
  --on-signal: #0e0e10;
  /* Screenshot frames */
  --frame: #0e0e10;
  --frame-border: #0e0e10;
  color-scheme: light;
  --paper-75: rgb(246 244 239 / 0.75);
  --paper-60: rgb(246 244 239 / 0.6);
  --paper-15: rgb(246 244 239 / 0.15);
  /* Hero vector field (read by field.js): two quiet planes plus the Signal seam */
  --page-bg: var(--paper);
  --plane-dark: #e3dfd6;
  --plane-light: #cfcac0;
  --seam: var(--signal);

  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, monospace;

  --text-display: clamp(2.75rem, 1.2rem + 6.9vw, 7rem);
  --text-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --text-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-body: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);

  --gutter: 20px;
  --section: 64px;
  --nav-h: 72px;
}
@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --section: 128px;
  }
}

/* ---------- Dark theme ----------
   Set by the switch in the nav (data-theme="dark" on <html>). Ink and Paper swap roles. */
[data-theme="dark"] {
  --ink: #f6f4ef;
  --paper: #0e0e10;
  --white: #18181b;
  --line: #2a2a2e;
  --stone: #a8a49c;
  --error: #ff8a7a;
  --band: #18181b;
  --frame: #1c1c20;
  --frame-border: #2a2a2e;
  --plane-dark: #2a2a2e;
  --plane-light: #4a4843;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, table {
  margin: 0;
}
ul, ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
svg, img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.on-ink :focus-visible {
  outline-color: var(--band-fg);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 60;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
}
.skip-link:focus {
  top: 16px;
}

/* Page enter: fade 0 to 1 over 0.3s */
@keyframes page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
main {
  animation: page-enter 0.3s ease-out both;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1320px; /* 1240px of content plus gutters */
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.grid > * {
  grid-column: 1 / -1;
}
.section {
  padding-block: var(--section);
}
.rule {
  border-top: 1px solid var(--line);
}
.on-ink {
  background: var(--band);
  color: var(--band-fg);
}
.on-white {
  background: var(--white);
}
.section-head {
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .section-head {
    margin-bottom: 64px;
  }
  .section-head > .h2 {
    grid-column: 1 / span 8;
  }
}
/* Sticky heading on the left, content on the right */
.split {
  row-gap: 40px;
}
@media (min-width: 1024px) {
  .split__aside {
    grid-column: 1 / span 4;
  }
  .split__main {
    grid-column: 5 / span 8;
  }
  .sticky {
    position: sticky;
    top: 120px;
  }
}

/* ---------- Type ---------- */
.display {
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.muted {
  color: var(--stone);
}
.on-ink .muted {
  color: var(--paper-75);
}
.on-ink .label.muted {
  color: var(--paper-60);
}
.large {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.medium {
  font-weight: 500;
}
.icon {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hairline lists */
.rows {
  border-top: 1px solid var(--line);
}
.rows > li {
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.rows--ink {
  border-top-color: var(--ink);
}
.rows--loose > li {
  padding-block: 16px;
}
.rows--numbered > li {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.on-ink .rows,
.on-ink .rows > li {
  border-color: var(--paper-15);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.btn--signal {
  background: var(--signal);
  color: var(--on-signal);
}
.btn--signal:hover {
  background: var(--ink);
  color: var(--paper);
}
.on-ink .btn--signal:hover {
  background: var(--band-fg);
  color: var(--on-signal);
}
.btn--outline {
  border-color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn--small {
  min-height: 44px;
  padding-inline: 20px;
}
.btn--block {
  width: 100%;
}
.btn[disabled] {
  cursor: wait;
  opacity: 0.6;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.logo__dot {
  width: 0.24em;
  height: 0.24em;
  margin: 0.5em 0 0 0.12em;
  background: var(--signal);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
}
/* Transparent at the top, Paper with a hairline after 16px of scroll */
.nav__bg {
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  opacity: 0;
  transition: opacity 0.2s;
}
.nav.is-scrolled .nav__bg {
  opacity: 1;
}
.nav__inner {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav__links ul {
  display: flex;
  gap: 28px;
}
.nav__links li a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav__links li a:hover {
  color: var(--stone);
}
.nav__links li a[aria-current="page"] {
  color: var(--ink);
}
.nav__links li a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 6px;
  height: 2px;
  background: var(--signal);
}
.nav__toggle,
.menu__close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}
@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
  .nav__toggle {
    display: none;
  }
}

/* Light / dark switch: a thumb slides under the sun (light) or the moon (dark) */
.theme-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.theme-toggle__track {
  position: relative;
  display: grid;
  width: 58px;
  height: 30px;
  flex-shrink: 0;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 24px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease-out;
}
[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(26px);
}
.theme-toggle .icon {
  position: relative;
  color: var(--stone);
}
:root:not([data-theme="dark"]) .theme-toggle .icon:first-of-type,
[data-theme="dark"] .theme-toggle .icon:last-of-type {
  color: var(--paper);
}
/* Inside the mobile menu, which is a dark band in both themes */
.menu .theme-toggle {
  width: 100%;
  margin-bottom: 16px;
}
.menu .theme-toggle__track {
  border-color: var(--band-fg);
}
.menu .theme-toggle__thumb {
  background: var(--band-fg);
}
.menu .theme-toggle .icon {
  color: var(--paper-60);
}
:root:not([data-theme="dark"]) .menu .theme-toggle .icon:first-of-type,
[data-theme="dark"] .menu .theme-toggle .icon:last-of-type {
  color: var(--on-signal);
}

/* Mobile menu: full-screen Ink overlay, links stagger in */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-out, visibility 0s 0.2s;
}
.menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease-out;
}
.menu__top {
  display: flex;
  height: var(--nav-h);
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
}
.menu__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 24px 32px;
}
.menu__nav li {
  border-bottom: 1px solid var(--paper-15);
}
.menu__nav li a {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.menu__nav li a[aria-current="page"]::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--signal);
}
.menu__cta {
  padding-top: 32px;
}
.menu__nav li,
.menu__cta {
  opacity: 0;
  transform: translateY(24px);
}
.menu.is-open .menu__nav li,
.menu.is-open .menu__cta {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  transition-delay: calc(80ms + var(--i, 0) * 60ms);
}
@media (min-width: 900px) {
  .menu {
    display: none;
  }
}

/* ---------- Footer ---------- */
.footer__inner {
  row-gap: 48px;
  padding-block: 64px 40px;
}
.footer__brand p {
  max-width: 22rem;
  margin-top: 12px;
  color: var(--paper-75);
}
/* Stacked on phones so the email address fits on one line */
@media (min-width: 640px) {
  .footer__col {
    grid-column: span 6;
  }
}
.footer__col h2 {
  margin-bottom: 12px;
  color: var(--paper-60);
}
.footer__col a {
  display: inline-flex;
  flex-wrap: wrap;
  column-gap: 0.3em;
  overflow-wrap: anywhere;
  min-height: 44px;
  align-items: center;
  color: rgb(246 244 239 / 0.8);
}
.footer__col a:hover {
  color: var(--band-fg);
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  border-top: 1px solid var(--paper-15);
  padding-top: 24px;
  color: var(--paper-60);
}
@media (min-width: 768px) {
  .footer__inner {
    padding-top: 96px;
  }
  .footer__brand {
    grid-column: 1 / span 5;
  }
  .footer__col {
    grid-column: span 2;
  }
  .footer__col--wide {
    grid-column: span 5;
  }
}
/* Room for the sticky call bar on the Web page */
@media (max-width: 679px) {
  body:has(.callbar) .footer {
    padding-bottom: 76px;
  }
}

/* ---------- Scroll reveals ----------
   Only hidden when JavaScript is running (the .js class is set in the page head). */
.js [data-reveal] .reveal,
.js .reveal[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}
.js [data-reveal].is-in .reveal,
.js .reveal[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ---------- Screenshot frames ----------
   An Ink frame labelled with the file it is waiting for. Swap for an <img class="frame ..."> when ready. */
.frame {
  display: flex;
  width: 100%;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  background: var(--frame);
  padding: 16px;
  color: rgb(246 244 239 / 0.7);
  word-break: break-all;
}
img.frame {
  padding: 0;
  object-fit: cover;
  object-position: top;
}
.frame--desktop { aspect-ratio: 16 / 10; }
.frame--phone { aspect-ratio: 9 / 19; }
.frame--reel { aspect-ratio: 9 / 16; }
.device {
  border: 1px solid var(--frame-border);
  border-radius: 8px;
  background: var(--frame);
  padding: 6px;
}
.device .frame {
  border: 1px solid var(--paper-15);
}

/* ---------- Scenes ----------
   Neon line sketches of a small website, standing in for a screenshot. Every part of a scene shares
   one clock (--scene-dur), so the loop never drifts: parts draw in one after another (--d, in seconds),
   hold, rub out in the same order, and the frame is blank for a moment before it starts again.
   Keep --d under 3.4 so every part is gone before the next loop. main.js pauses scenes off screen. */
.scene {
  --scene-dur: 12s;
  align-items: stretch;
  padding: 0;
}
.scene svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene * {
  transform-box: fill-box;
  transform-origin: center;
}
.js .scene:not(.is-playing) * {
  animation-play-state: paused;
}
.scene .s { stroke: var(--paper-60); }
.scene .f { stroke: var(--paper-15); }
.scene .a { stroke: var(--signal); }
.scene .dot { fill: var(--signal); stroke: none; }
.scene text {
  fill: var(--paper-60);
  stroke: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.scene .scene__h {
  fill: var(--paper-75);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.scene .a-text { fill: var(--signal); }
/* Headline blocks in the sketch */
.scene .thick { stroke-width: 6; }
.scene .draw,
.scene .fade,
.scene .pop,
.scene .pin,
.scene .tap {
  animation: var(--scene-dur) ease-in-out calc(var(--d, 0) * 1s) infinite both;
}
.scene .draw {
  stroke-dasharray: 1;
  animation-name: scene-draw;
}
.scene .fade { animation-name: scene-fade; }
.scene .pop { animation-name: scene-pop; }
.scene .pin { animation-name: scene-pin; }
.scene .tap { animation-name: scene-tap; }
/* Small loops that only show while their part of the scene is on */
.scene .ping {
  animation: scene-ping 1.6s ease-out infinite;
}
.scene .halo {
  animation: scene-halo 1.6s ease-out infinite;
}
.scene .breathe {
  animation: neon-breathe 1.8s ease-in-out infinite;
}
/* A stroke traces itself in, then rubs out in the same direction */
@keyframes scene-draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  1% { opacity: 1; }
  6%, 62% { stroke-dashoffset: 0; }
  66% { stroke-dashoffset: -1; opacity: 1; }
  67%, 100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes scene-fade {
  0% { opacity: 0; }
  5%, 62% { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes scene-pop {
  0% { opacity: 0; transform: scale(0.8); }
  4% { opacity: 1; transform: scale(1.06); }
  6%, 62% { opacity: 1; transform: scale(1); }
  66%, 100% { opacity: 0; transform: scale(1); }
}
/* A map pin drops in and bounces once */
@keyframes scene-pin {
  0% { opacity: 0; transform: translateY(-16px); }
  4% { opacity: 1; transform: translateY(0); }
  5.5% { transform: translateY(-4px); }
  7%, 62% { opacity: 1; transform: translateY(0); }
  66%, 100% { opacity: 0; transform: translateY(0); }
}
/* A fingertip taps once per loop */
@keyframes scene-tap {
  0% { opacity: 0; transform: scale(0.4); }
  2% { opacity: 0.9; transform: scale(1); }
  6%, 100% { opacity: 0; transform: scale(1.8); }
}
@keyframes scene-ping {
  0% { opacity: 1; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.8); }
}
/* A button's outline swells out and fades, like a pulse */
@keyframes scene-halo {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08, 1.5); }
}

/* ---------- Status tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
}
.tag--live::before {
  border-color: var(--signal);
  background: var(--signal);
}

/* ---------- Home: hero ----------
   One viewport tall, sliding up under the nav. */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
}
.hero__stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}
/* Vector field: decorative, never takes clicks from the text or button above it */
.field-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.vector-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Paper-coloured wash: clears the strip under the nav, pools behind the headline
   and fades the edges, so the text reads on the first paint and over any frame. */
.field-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, var(--paper) 0, color-mix(in srgb, var(--paper) 60%, transparent) var(--nav-h), transparent 30%),
    radial-gradient(ellipse 60% 45% at 32% 36%, color-mix(in srgb, var(--paper) 70%, transparent) 0%, color-mix(in srgb, var(--paper) 30%, transparent) 60%, transparent 100%),
    radial-gradient(ellipse 34% 22% at 76% 74%, color-mix(in srgb, var(--paper) 75%, transparent) 0%, color-mix(in srgb, var(--paper) 35%, transparent) 60%, transparent 100%),
    radial-gradient(ellipse 120% 100% at 50% 45%, transparent 50%, color-mix(in srgb, var(--paper) 65%, transparent) 85%, var(--paper) 100%);
}
.hero__text {
  position: relative;
  z-index: 2;
  padding-top: 104px;
  transform-origin: top left;
}
.hero__label {
  margin-bottom: 20px;
}
.hero__lead {
  margin-top: 24px;
}
.hero__lead .btn-row {
  margin-top: 24px;
}
@media (min-width: 768px) {
  .hero__text {
    padding-top: 136px;
  }
  .hero__label {
    margin-bottom: 32px;
  }
  .hero__lead {
    grid-column: 6 / span 7;
    margin-top: 40px;
  }
}
@media (min-width: 1024px) {
  .hero__title {
    grid-column: 1 / span 11;
  }
  .hero__lead {
    grid-column: 8 / span 5;
  }
}

/* ---------- Home: services ---------- */
.panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  transition: transform 0.2s ease-out;
}
/* Hover: raise 2px and the border goes Line to Ink (an Ink outline fades in) */
.panel:hover {
  transform: translateY(-2px);
}
.panel__outline {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}
.panel:hover .panel__outline {
  opacity: 1;
}
.panel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel__body {
  margin-top: 32px;
}
/* Neon service icons: a Signal line icon with a glow that breathes, plus one small movement each.
   On phones the icon sits above the text; from 768px it sits to the right, centred. */
.panel__body--icon {
  display: grid;
  gap: 24px;
}
.neon {
  order: -1;
  width: 72px;
  color: var(--signal);
}
.neon svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgb(255 91 26 / 0.9)) drop-shadow(0 0 14px rgb(255 91 26 / 0.6));
  animation: neon-breathe 3.6s ease-in-out infinite;
}
/* Keep the tube the same thickness however large the icon is drawn */
.neon svg * {
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
}
/* The three icons breathe out of step with each other */
.neon--seo svg {
  animation-delay: -1.2s;
}
.neon--social svg {
  animation-delay: -2.4s;
}
@keyframes neon-breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
/* Web: two lines of a page draw in */
.neon__line {
  transform-origin: left center;
  animation: neon-line 3.6s ease-in-out infinite;
}
.neon__line--2 {
  animation-delay: 0.5s;
}
@keyframes neon-line {
  0%, 10% { transform: scaleX(0.15); }
  50%, 80% { transform: scaleX(1); }
  100% { transform: scaleX(0.15); }
}
/* SEO: the magnifying glass drifts as if searching */
.neon__search {
  animation: neon-search 6s ease-in-out infinite;
}
@keyframes neon-search {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(1.5px, -1px); }
  50% { transform: translate(0.5px, 1.5px); }
  75% { transform: translate(-1.5px, 0); }
}
/* Social: the play button pulses */
.neon__play {
  transform-origin: center;
  animation: neon-play 1.8s ease-in-out infinite;
}
@keyframes neon-play {
  0%, 100% { transform: scale(0.85); }
  50% { transform: scale(1.15); }
}
@media (min-width: 768px) {
  .panel__body--icon {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
  }
  .neon {
    order: 0;
    width: clamp(132px, 15vw, 184px);
    margin-right: 24px;
  }
  .neon svg {
    stroke-width: 3;
  }
}
.panel__summary {
  max-width: 30rem;
  margin-top: 16px;
}
.panel .rows {
  margin-top: 32px;
}
.panel__btn {
  margin-top: 32px;
}
.panel__btn .icon {
  transition: transform 0.2s ease-out;
}
.panel__btn:hover .icon {
  transform: translateX(3px);
}
@media (min-width: 768px) {
  .panels {
    gap: 32px;
  }
  .panel {
    padding: 40px;
  }
}

/* ---------- Work ---------- */
.work-head {
  align-items: end;
}
.work-head .label {
  margin-top: 12px;
}
.work {
  row-gap: 48px;
}
.project__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.project__meta h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.project__meta .label {
  flex-shrink: 0;
}
.project p {
  margin-top: 4px;
}
.project__visit {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 500;
}
.project a:hover .icon {
  transform: translateX(3px);
}
@media (min-width: 768px) {
  .work-head .label {
    grid-column: 9 / span 4;
    margin-top: 0;
    text-align: right;
  }
  .work {
    row-gap: 80px;
  }
  .work > .project:not(:first-child) {
    grid-column: span 6;
  }
}
@media (min-width: 1024px) {
  .work > .project:first-child {
    grid-column: 1 / span 10;
  }
  .work > .project:nth-child(even) {
    grid-column: 2 / span 5;
  }
  .work > .project:nth-child(odd):not(:first-child) {
    grid-column: 8 / span 5;
    margin-top: 96px;
  }
}

/* ---------- Home: process ---------- */
.steps {
  position: relative;
}
.steps__line,
.steps__fill {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 13.5px;
  width: 1px;
  background: var(--line);
}
/* main.js draws this line with the scroll. It is lit: a bright core with a Signal glow that breathes. */
.steps__fill {
  left: 13px;
  width: 2px;
  background: var(--ink);
  box-shadow: 0 0 6px rgb(255 91 26 / 0.9);
  transform: scaleY(0);
  transform-origin: top;
}
.steps__fill::after {
  content: "";
  position: absolute;
  inset: 0 -4px;
  background: var(--signal);
  filter: blur(6px);
  animation: line-breathe 3.6s ease-in-out infinite;
}
@keyframes line-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}
/* A spark rides the tip of the line. main.js adds it and moves it with the scroll. */
.steps__head {
  position: absolute;
  top: 5px;
  left: 11px;
  z-index: 1;
  width: 6px;
  height: 6px;
  background: var(--signal);
  box-shadow: 0 0 8px 2px rgb(255 91 26 / 0.9), 0 0 24px 6px rgb(255 91 26 / 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}
.steps__head.is-on {
  opacity: 1;
}
.steps__head::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgb(255 91 26 / 0.55), transparent 65%);
  animation: line-breathe 1.8s ease-in-out infinite;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 20px;
  padding-bottom: 48px;
}
.step:last-child {
  padding-bottom: 0;
}
.step__node {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 8px;
  justify-self: center;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.step__node {
  z-index: 1;
}
/* Each node lights up when the line reaches it: an Ink fill with a Signal glow.
   The last one turns Signal and glows brighter. */
.step__node::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--ink);
  box-shadow: 0 0 8px 1px rgb(255 91 26 / 0.85), 0 0 22px 4px rgb(255 91 26 / 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.step:last-child .step__node::after {
  background: var(--signal);
  box-shadow: 0 0 10px 2px rgb(255 91 26 / 0.95), 0 0 32px 8px rgb(255 91 26 / 0.6);
}
.step.is-reached .step__node::after {
  opacity: 1;
}
.step .label {
  display: block;
  margin-bottom: 8px;
}
.step__does {
  grid-column: 2;
  max-width: 30rem;
  margin-top: 12px;
}
/* Web page steps also list what you provide and the time */
.step__meta {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.step__meta dt {
  margin-bottom: 4px;
}
@media (min-width: 640px) {
  .step__meta {
    grid-template-columns: 3fr 2fr;
    column-gap: 24px;
  }
}
@media (min-width: 768px) {
  .step {
    grid-template-columns: 28px 1fr 1fr;
    column-gap: 40px;
    padding-bottom: 64px;
  }
  .step__does {
    grid-column: 3;
    margin-top: 28px;
  }
}

/* ---------- CTA band ---------- */
.cta {
  row-gap: 32px;
}
.cta__body {
  border-top: 1px solid var(--paper-15);
  padding-top: 32px;
}
.cta__body .btn {
  margin-top: 24px;
}
@media (min-width: 768px) {
  .cta__body {
    grid-column: 6 / span 7;
  }
}
@media (min-width: 1024px) {
  .cta__heading {
    grid-column: 1 / span 9;
  }
  .cta__body {
    grid-column: 8 / span 5;
  }
}

/* ---------- Page intros (Web, SEO, Social, Contact, 404) ---------- */
.intro {
  padding-block: 40px 48px;
}
.intro .label,
.intro .tag {
  margin-bottom: 20px;
}
.intro__lead {
  max-width: 34rem;
  margin-top: 24px;
}
.intro .btn-row {
  margin-top: 32px;
}
@media (min-width: 768px) {
  .intro {
    padding-block: 64px 80px;
  }
  .intro .label,
  .intro .tag {
    margin-bottom: 32px;
  }
}

/* ---------- Web: hero ---------- */
.web-hero {
  row-gap: 48px;
  padding-block: 40px 64px;
}
.web-hero .display {
  margin-top: 20px;
}
.web-hero__sub {
  max-width: 34rem;
  margin-top: 24px;
}
.web-hero__lead {
  max-width: 34rem;
  margin-top: 16px;
}
.web-hero .btn-row {
  margin-top: 32px;
}
.facts {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.facts li {
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
  font-weight: 500;
}
.facts .label {
  display: block;
  margin-bottom: 4px;
}
.web-hero__phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .facts li {
    border-bottom: 0;
    padding-right: 24px;
  }
}
@media (min-width: 768px) {
  .web-hero {
    padding-block: 64px 128px;
  }
  .web-hero .display {
    margin-top: 32px;
  }
  .facts {
    margin-top: 80px;
  }
}
@media (min-width: 1024px) {
  .web-hero__text {
    grid-column: 1 / span 8;
  }
  .web-hero__media {
    grid-column: 9 / span 4;
  }
  .web-hero__phone {
    margin-right: 0;
  }
}

/* ---------- Web: problems ---------- */
.problems {
  border-top: 1px solid var(--ink);
}
.problem {
  row-gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-block: 28px;
}
.problem__text {
  font-size: 1.25rem;
  line-height: 1.375;
}
.problem__fix {
  display: flex;
  gap: 12px;
}
.problem__fix .icon {
  margin-top: 4px;
}
@media (min-width: 768px) {
  .problem {
    padding-block: 40px;
  }
  .problem .label {
    grid-column: 1 / span 1;
    padding-top: 8px;
  }
  .problem__text {
    grid-column: 2 / span 5;
  }
  .problem__fix {
    grid-column: 7 / span 6;
  }
  .problem__fix .icon {
    margin-top: 8px;
  }
}

/* ---------- Web: what you get ---------- */
.included {
  row-gap: 40px;
}
.included__panel {
  border-radius: 8px;
  padding: 24px;
}
.included .rows {
  margin-top: 24px;
}
.included__note {
  margin-top: 32px;
}
@media (min-width: 768px) {
  .included__panel {
    padding: 40px;
  }
}
@media (min-width: 1024px) {
  .included__panel {
    grid-column: 1 / span 7;
  }
  .included__side {
    grid-column: 9 / span 4;
    padding-top: 40px;
  }
}

/* ---------- Web: built for your trade ---------- */
.trades-head {
  margin-bottom: 48px;
}
.trades {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.trade {
  align-items: center;
  row-gap: 32px;
}
.trade__phone {
  grid-column: 3 / span 8;
}
.trade__text .label {
  display: block;
  margin-bottom: 12px;
}
.trade__text .rows {
  margin-top: 32px;
}
@media (min-width: 640px) {
  .trade__phone {
    grid-column: 4 / span 6;
  }
}
@media (min-width: 768px) {
  .trades-head {
    margin-bottom: 96px;
  }
  .trades {
    gap: 128px;
  }
  .trade > * {
    grid-row: 1;
  }
  .trade__phone {
    grid-column: 2 / span 4;
  }
  .trade__text {
    grid-column: 7 / span 6;
  }
  .trade--flip .trade__phone {
    grid-column: 8 / span 4;
  }
  .trade--flip .trade__text {
    grid-column: 1 / span 6;
  }
}
@media (min-width: 1024px) {
  .trades-head .display {
    grid-column: 1 / span 10;
  }
  .trade__phone {
    grid-column: 2 / span 3;
  }
  .trade__text {
    grid-column: 7 / span 5;
  }
  .trade--flip .trade__phone {
    grid-column: 9 / span 3;
  }
  .trade--flip .trade__text {
    grid-column: 2 / span 5;
  }
}

/* ---------- Web: not included and FAQ ---------- */
.pair {
  row-gap: 32px;
}
.not-included > li {
  padding-block: 20px;
}
@media (min-width: 1024px) {
  .pair__head {
    grid-column: 1 / span 5;
  }
  .pair__body {
    grid-column: 7 / span 6;
  }
  .pair--faq .pair__head {
    grid-column: 1 / span 4;
  }
  .pair--faq .pair__body {
    grid-column: 6 / span 7;
  }
}
.faq {
  border-top: 1px solid var(--ink);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__button {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
/* Plus rotates 45 degrees when open */
.faq__button .icon {
  transition: transform 0.25s ease-out;
}
.faq__item.is-open .faq__button .icon {
  transform: rotate(45deg);
}
/* Height animates by growing a grid row from 0 to its natural size */
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  transition: grid-template-rows 0.3s ease-out, opacity 0.3s ease-out, visibility 0s 0.3s;
}
.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  transition: grid-template-rows 0.3s ease-out, opacity 0.3s ease-out;
}
.faq__panel > div {
  overflow: hidden;
}
.faq__panel p {
  max-width: 36rem;
  padding-bottom: 24px;
}

/* ---------- Web: sticky call bar (phones only) ---------- */
.callbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 20px;
}
.callbar .btn {
  flex: 1;
  padding-inline: 16px;
}
@media (min-width: 680px) {
  .callbar {
    display: none;
  }
}

/* ---------- SEO and Social ---------- */
.soon {
  row-gap: 16px;
  padding-block: 48px;
}
.soon .h2 {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
}
/* Three square dots stepping through ".", "..", "..." every 1.5s */
.dots {
  display: inline-flex;
  gap: 0.14em;
}
.dots span {
  width: 0.16em;
  height: 0.16em;
  background: var(--signal);
}
.dots span:nth-child(2) {
  animation: dot-2 1.5s steps(1, end) infinite;
}
.dots span:nth-child(3) {
  animation: dot-3 1.5s steps(1, end) infinite;
}
@keyframes dot-2 {
  0% { opacity: 0; }
  33.33%, 100% { opacity: 1; }
}
@keyframes dot-3 {
  0% { opacity: 0; }
  66.66%, 100% { opacity: 1; }
}
.about {
  row-gap: 40px;
}
.about__text {
  max-width: 44rem;
  font-weight: 500;
}
.about .rows {
  margin-top: 40px;
}
.about .rows > li {
  padding-block: 20px;
}
@media (min-width: 768px) {
  .soon {
    padding-block: 80px;
  }
  .soon .h2 {
    grid-column: 1 / span 7;
  }
  .soon p {
    grid-column: 9 / span 4;
    padding-top: 12px;
  }
  .about .rows {
    margin-top: 64px;
  }
}
@media (min-width: 1024px) {
  .about__label {
    grid-column: 1 / span 4;
  }
  .about__body {
    grid-column: 5 / span 8;
  }
}

/* ---------- Contact ---------- */
.intro--contact {
  padding-bottom: 40px;
}
.contact-title {
  max-width: 14ch;
}
@media (min-width: 768px) {
  .intro--contact {
    padding-bottom: 64px;
  }
}
.contact {
  align-items: start;
  row-gap: 32px;
  padding-bottom: var(--section);
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}
.form__note {
  margin-bottom: 24px;
  font-size: 0.9375rem;
}
.form__grid {
  display: grid;
  gap: 24px;
}
.field label {
  display: block;
  font-weight: 500;
}
.required {
  color: var(--error);
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 1px solid var(--stone);
  border-radius: 4px;
  background: var(--white);
  padding: 12px 16px;
}
.field [aria-invalid="true"] {
  border-color: var(--error);
}
.field__error {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--error);
}
.form__alert {
  border: 1px solid var(--error);
  border-radius: 4px;
  padding: 16px;
  color: var(--error);
}
.form__summary {
  margin-bottom: 32px;
}
.form__summary ul {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
}
.form__summary a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  text-decoration: underline;
}
.form__failed {
  margin-top: 24px;
}
.form__submit {
  width: 100%;
  margin-top: 32px;
}
/* Honeypot: off-screen for people, visible to bots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.success__mark {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 24px;
  background: var(--signal);
}
.success p {
  margin-top: 16px;
}
.success .btn {
  margin-top: 32px;
}
.direct {
  border-radius: 8px;
  padding: 24px;
}
.direct dl {
  margin-top: 24px;
  border-top: 1px solid var(--paper-15);
}
.direct dl > div {
  border-bottom: 1px solid var(--paper-15);
  padding-block: 24px;
}
.direct dl > div:last-child {
  border-bottom: 0;
}
.direct__value {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  word-break: break-all;
  text-underline-offset: 4px;
}
.direct__value:hover {
  text-decoration: underline;
}
.response {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
@media (min-width: 640px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--wide {
    grid-column: 1 / -1;
  }
  .form__submit {
    width: auto;
  }
}
@media (min-width: 768px) {
  .card,
  .direct {
    padding: 40px;
  }
}
@media (min-width: 1024px) {
  .contact__form {
    grid-column: 1 / span 7;
  }
  .contact__side {
    grid-column: 8 / span 5;
  }
}
