/* Neonweld. A steel-black workshop at night, lit by two true colours:
   NEON (red-orange neon gas) and WELD (blue-white arc light). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/martian-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
/* Local fallbacks sized to the web fonts, so text barely moves when they arrive. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 98.4%;
  ascent-override: 89.5%;
  descent-override: 21.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Martian Mono Fallback";
  src: local("Courier New"), local("CourierNewPSMT");
  size-adjust: 116.6%;
  ascent-override: 85.7%;
  descent-override: 17.2%;
  line-gap-override: 0%;
}

:root {
  /* steel */
  --bg: #0a0c0f;
  --plate: #14171c;
  --line: #1d2228;
  --line-2: #2a3038;
  --text-3: #8f99a5;
  --text-2: #b6bec8;
  --text-1: #eceff2;
  /* NEON: red-orange neon tube */
  --neon: #ff5a24;
  --neon-tube: #ff8a5c;
  --neon-core: #ffe6da;
  --neon-glow: #ff4a14;
  /* WELD: blue-white arc light */
  --arc: #a9d6ff;
  --arc-tube: #cfe8ff;
  --arc-core: #f7fbff;
  --arc-glow: #4f9bff;
  /* cooling ramp: white-hot, yellow, amber, dull red, dark steel */
  --heat-white: #fffbf0;
  --heat-yellow: #ffd25c;
  --heat-amber: #ffa326;
  --heat-red: #801e0e;
  --bead: #2e3238;
  --bead-hi: #515962;

  --sans: "Archivo", "Archivo Fallback", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", "Martian Mono Fallback", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --header-h: 64px;
  /* the spine, on the wordmark's grid: centred on the hero seam (438 of 886 units), 64 units
     wide (two 20-unit steel edges and the 24-unit groove; the MIG bead is 34). Percentages of .wrap. */
  --seam-left: 45.824%;
  --seam-w: 7.223%;
  --seam-gap: clamp(14px, 1.6vw, 22px);
  --seam-steel: linear-gradient(90deg, #0b0d10 0, #16191e 12%, #1c2026 24%, #292e36 30.6%, #050607 31.4%, #08090b 50%, #050607 68.6%, #292e36 69.4%, #1c2026 76%, #16191e 88%, #0b0d10 100%);
  color-scheme: dark;
}
/* phones: the stacked wordmark, and the spine down the left edge from its bottom-left corner */
@media (max-width: 599px) and (orientation: portrait) {
  :root { --seam-left: 0%; --seam-w: min(10.8%, 42px); --seam-gap: 12px; }
}

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

html {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  font-size: 1.0625rem;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h2 {
  font-weight: 500;
  font-stretch: 104%;
  font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-1);
  text-wrap: balance;
}
h3 {
  font-weight: 520;
  font-stretch: 104%;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--text-1);
}
p { text-wrap: pretty; }
a {
  color: var(--arc);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--arc-core); }
:focus-visible {
  outline: 2px solid var(--arc);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: rgba(255, 90, 36, 0.38); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 3; }
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; padding: 6px; margin: -6px; border-radius: 12px; }
/* 34 px: the mark's tile is 32 px, inside two units of clear space */
.brand__mark { display: block; width: 34px; height: 34px; }
.site-header__meta,
.section__num,
.site-footer__legal,
.cta__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- hero ---------- */
.hero { position: relative; }
.hero__inner {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-rows: minmax(16px, 0.45fr) auto auto auto 1fr;
  padding-bottom: 20px;
}
/* Desktop: the hero stops 132px short of the fold, so the first strap plate on the seam
   shows at 768 to 1080 px tall screens and the page clearly goes on. */
@media (min-width: 900px) {
  .hero__inner {
    min-height: calc(100vh - var(--header-h) - 132px);
    min-height: calc(100svh - var(--header-h) - 132px);
    grid-template-rows: 1fr auto auto auto 1fr;
  }
}
.hero__title { grid-row: 2; font-size: 1rem; line-height: 0; }
/* the seam leaves the wordmark plate at its bottom edge and runs on down the page */
.hero__inner > .seam { grid-row: 3 / -1; grid-column: 1; bottom: -20px; }
/* nothing but the seam on the seam's line: the statement on the NEON side, the rest on the WELD side */
.hero__copy {
  grid-row: 3;
  margin-top: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: [left] calc(var(--seam-left) - var(--seam-gap)) [spine] calc(var(--seam-w) + 2 * var(--seam-gap)) [right] minmax(0, 1fr);
  align-items: start;
}
/* display type: the column is about 0.43 of the viewport wide, so this keeps four lines */
.hero__statement {
  grid-column: left;
  font-size: min(4.15vw, 3.45rem);
  font-weight: 400;
  font-stretch: 102%;
  line-height: 1.1;
  letter-spacing: -0.016em;
  color: var(--text-1);
  text-wrap: balance;
}
.nowrap { white-space: nowrap; }
.hero__side {
  grid-column: right;
  display: grid;
  justify-items: start;
  gap: clamp(20px, 2.4vw, 30px);
  padding-top: 0.3em;
}
.hero__line {
  max-width: 17.5em;
  font-size: clamp(1.05rem, 0.84rem + 0.62vw, 1.4rem);
  line-height: 1.45;
  color: var(--text-2);
}

.cta {
  display: inline-grid;
  gap: 3px;
  padding: 13px 20px 14px;
  border: 1.5px solid var(--neon);
  border-radius: 3px;
  color: var(--text-1);
  text-decoration: none;
  background: rgba(255, 90, 36, 0.04);
  box-shadow: 0 0 16px -3px rgba(255, 74, 20, 0.5), inset 0 0 14px -5px rgba(255, 74, 20, 0.55);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.cta__label { color: var(--neon-tube); letter-spacing: 0.16em; }
.cta__addr { font-size: 1.0625rem; font-weight: 500; font-stretch: 102%; letter-spacing: 0.01em; }
.cta:hover {
  color: #fff;
  background: rgba(255, 90, 36, 0.1);
  box-shadow: 0 0 26px -2px rgba(255, 74, 20, 0.7), inset 0 0 18px -4px rgba(255, 74, 20, 0.7);
}

@media (max-width: 599px) and (orientation: portrait) {
  .hero__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-left: calc(var(--seam-w) + var(--seam-gap)); }
  .hero__statement, .hero__side { grid-column: 1; }
  .hero__statement { font-size: min(8.7vw, 2.6rem); line-height: 1.04; }
  .hero__side { padding-top: 0; gap: 22px; }
}

/* ---------- wordmark: plates, glass, light, seam ---------- */
.wm {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 886 / 144;
}
/* Narrow portrait screens: NEON over WELD, joined by a horizontal seam. */
.wm--stack { display: none; aspect-ratio: 434 / 312; max-width: 450px; }
@media (max-width: 599px) and (orientation: portrait) {
  .wm--line { display: none; }
  .wm--stack { display: block; }
}
.wm svg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* in-flow sizer: the box takes its height from this empty svg's viewBox */
.wm .wm-size { position: relative; height: auto; visibility: hidden; }
.wm-half { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.wm-plate-face { fill: url(#g-plate); }
.wm-plate-edge { fill: none; stroke: url(#g-plate-edge); stroke-width: 1; }
.wm-screw { fill: #0d0f12; stroke: #2c3139; stroke-width: 0.9; }
.wm-screw-slot { stroke: #040506; stroke-width: 1.2; stroke-linecap: round; }
.wm use { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* fine tubes: 6 units on a 100-unit cap height, a fine bright core, a tight halo */
.wm-glass { stroke: #262b32; stroke-width: 6.6; }
.wm-glass-hl { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1.3; transform: translate(-0.8px, -1.1px); }
.wm-bloom { stroke-width: 9; }
.wm-tube { stroke-width: 6; }
.wm-core { stroke-width: 2.1; }
.wm-half--neon .wm-bloom { stroke: var(--neon-glow); opacity: 0.78; }
.wm-half--neon .wm-tube { stroke: var(--neon-tube); }
.wm-half--neon .wm-core { stroke: var(--neon-core); }
.wm-half--weld .wm-bloom { stroke: var(--arc-glow); opacity: 0.7; }
.wm-half--weld .wm-tube { stroke: var(--arc-tube); }
.wm-half--weld .wm-core { stroke: var(--arc-core); }

/* Before the arc strikes (only set when JS runs and motion is allowed). */
.strike-pending .wm-lit { opacity: 0; }
.strike-pending .wm-bead { visibility: hidden; }
/* The plates start 2 units apart; weld shrinkage pulls them together. */
.strike-pending .wm--line .wm-half--neon, .strike-apart .wm--line .wm-half--neon { transform: translateX(-0.2257%); }
.strike-pending .wm--line .wm-half--weld, .strike-apart .wm--line .wm-half--weld { transform: translateX(0.2257%); }
.strike-pending .wm--stack .wm-half--neon, .strike-apart .wm--stack .wm-half--neon { transform: translateY(-0.641%); }
.strike-pending .wm--stack .wm-half--weld, .strike-apart .wm--stack .wm-half--weld { transform: translateY(0.641%); }
/* The lit tubes stay on their own compositor layers for good: creating and dropping
   those layers around the strike re-rasterised the blur and cost dropped frames on
   throttled phone CPUs (measured with headless Edge). A few MB of layer memory buys smoothness. */
.js .wm-lit { will-change: opacity; }

/* ---------- the spine: the hero's seam carried on down the page ----------
   One column, 32 units of the wordmark's 848-unit grid: two steel edges and the groove
   between the plates, centred on the hero seam (423/848). The page is built from stacked
   blocks; each block carries one segment of it (.seam, generated by tools/gen). At rest a
   segment shows its finished, welded state. While the page is being welded by scrolling,
   weld.js lays the open-groove cover (.seam__open) over whatever the arc has not reached. */
.seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--seam-left);
  width: var(--seam-w);
  overflow: hidden;
  pointer-events: none;
  background: var(--seam-steel);
}
.seam__metal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
/* the three tacks of a tacked stretch */
.seam__tack { position: absolute; left: 0; width: 100%; height: auto; display: block; transform: translateY(-50%); }
.seam__tack:nth-of-type(1) { top: 18%; }
.seam__tack:nth-of-type(2) { top: 50%; }
.seam__tack:nth-of-type(3) { top: 82%; }
.seam__glint { position: absolute; left: 0; top: 44%; width: 100%; height: auto; overflow: visible; transform: translateY(-50%); }
.seam__open { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--seam-steel); }
.seam-pending .seam__open, .seam-live .seam__open { display: block; }

/* columns either side of the spine, shared by everything that hangs off it */
.part__inner, .plates, .beat__inner, .weldmail, .setpiece {
  display: grid;
  grid-template-columns: [left] calc(var(--seam-left) - var(--seam-gap)) [spine] calc(var(--seam-w) + 2 * var(--seam-gap)) [right] minmax(0, 1fr);
}
.part__inner { position: relative; padding-block: clamp(72px, 8.5vw, 136px); align-content: start; }
.part__inner > * { grid-column: 1 / -1; }
/* (a segment is placed by left/width on the whole block, not by the grid) */
.part__inner > .seam, .beat__inner > .seam { grid-column: auto; grid-row: auto; }

/* section titles: strap plates riveted across the seam */
.strap {
  position: relative;
  z-index: 2;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  margin: 0 0 clamp(52px, 6.4vw, 104px) calc(var(--seam-left) + var(--seam-w) / 2);
  transform: translateX(-50%);
  padding: 17px 60px 18px;
  font-size: clamp(1.15rem, 0.84rem + 1.05vw, 1.8rem);
  font-weight: 480;
  font-stretch: 104%;
  line-height: 1.1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--text-1);
  background: linear-gradient(180deg, #282d35, #1a1d22 52%, #121418);
  border: 1px solid #353b45;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px -14px #000;
}
.strap::before, .strap::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 11px; height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5d6570, #2a2f37 55%, #15181c);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.strap::before { left: 21px; }
.strap::after { right: 21px; }

/* ---------- what we do: steel plates hung off the spine, a large neon sign on each ---------- */
.plates { list-style: none; margin: 0; padding: 0; row-gap: clamp(36px, 4vw, 56px); }
.plate {
  --tint: 255 74 20;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: clamp(22px, 2.6vw, 36px);
  width: min(100%, 560px);
  padding: clamp(30px, 3.4vw, 48px) clamp(26px, 3.2vw, 46px) clamp(30px, 3.2vw, 44px);
  /* four screw heads, as on the wordmark's plates */
  background:
    radial-gradient(circle, #4b525c 0, #2a2f37 2.4px, #121418 4.4px, #262b33 5px, rgba(18, 20, 24, 0) 5.8px) 14px 14px / 12px 12px no-repeat,
    radial-gradient(circle, #4b525c 0, #2a2f37 2.4px, #121418 4.4px, #262b33 5px, rgba(18, 20, 24, 0) 5.8px) calc(100% - 14px) 14px / 12px 12px no-repeat,
    radial-gradient(circle, #4b525c 0, #2a2f37 2.4px, #121418 4.4px, #262b33 5px, rgba(18, 20, 24, 0) 5.8px) 14px calc(100% - 14px) / 12px 12px no-repeat,
    radial-gradient(circle, #4b525c 0, #2a2f37 2.4px, #121418 4.4px, #262b33 5px, rgba(18, 20, 24, 0) 5.8px) calc(100% - 14px) calc(100% - 14px) / 12px 12px no-repeat,
    linear-gradient(180deg, #1c1f25, #111317);
  border: 1px solid #2d333c;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 50px -26px #000;
}
.plate--neon { grid-column: left; justify-self: end; }
.plate--weld { grid-column: right; justify-self: start; --tint: 79 155 255; }
/* staggered: each plate starts beside the middle of the one before */
.plates > .plate:nth-child(1) { grid-row: 1; }
.plates > .plate:nth-child(2) { grid-row: 2; }
.plates > .plate:nth-child(3) { grid-row: 3; }
.plates > .plate:nth-child(4) { grid-row: 4; }
.plates .plate + .plate { margin-top: calc(-1 * clamp(120px, 19vw, 300px)); }
/* the two short welds it hangs by */
.plate::before, .plate::after {
  content: "";
  position: absolute;
  width: calc(var(--seam-gap) + 4px);
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, #4a515b, #2e3238 45%, #1c1f24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.plate::before { top: 22%; }
.plate::after { bottom: 22%; }
.plate--neon::before, .plate--neon::after { right: calc(-1 * var(--seam-gap) - 4px); }
.plate--weld::before, .plate--weld::after { left: calc(-1 * var(--seam-gap) - 4px); }
/* lit neon throws its colour onto the steel around it */
.plate__glow {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 58% at 50% 36%, rgb(var(--tint) / 0.24), rgb(var(--tint) / 0.08) 52%, rgb(var(--tint) / 0) 78%);
}
.plate .sign { justify-self: center; }
.plate h3 {
  font-size: clamp(1.6rem, 1.05rem + 1.75vw, 2.7rem);
  font-weight: 460;
  font-stretch: 102%;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.plate p { margin-top: clamp(10px, 1.2vw, 16px); max-width: 18em; font-size: clamp(1.05rem, 0.95rem + 0.32vw, 1.25rem); line-height: 1.5; }

/* ---------- neon signs: glass when dark, lit when the arc reaches them ---------- */
.sign { position: relative; display: block; width: clamp(220px, 21vw, 320px); max-width: 100%; aspect-ratio: 1; }
.sign svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.sign path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sign__tubes path { stroke: #272c33; stroke-width: 7; }
.sign__hl path { stroke: rgba(255, 255, 255, 0.085); stroke-width: 1.4; transform: translate(-0.8px, -1.2px); }
.sign__bloom path { stroke-width: 9.5; }
.sign__tube path { stroke-width: 6.5; }
.sign__core path { stroke-width: 2.3; }
.sign--neon .sign__bloom { stroke: var(--neon-glow); opacity: 0.8; }
.sign--neon .sign__tube { stroke: var(--neon-tube); }
.sign--neon .sign__core { stroke: var(--neon-core); }
.sign--weld .sign__bloom { stroke: var(--arc-glow); opacity: 0.72; }
.sign--weld .sign__tube { stroke: var(--arc-tube); }
.sign--weld .sign__core { stroke: var(--arc-core); }
.sign__bloom path, .sign__tube path, .sign__core path { stroke: inherit; }
/* Dark glass until the arc gets there (only while the page is being welded). Until the seam
   closes at the address, a lit sign burns a little under full power; the finale brings every
   sign to full, which is also how the page looks without the welding (no script, reduced motion). */
.seam-pending .sign__lit,
.seam-live .sign:not(.is-lit) .sign__lit,
.seam-pending .plate__glow,
.seam-live .plate:not(.is-lit) .plate__glow { opacity: 0; }
.seam-live .sign.is-lit:not(.is-full) .sign__lit { opacity: 0.84; }
.seam-live .plate.is-lit:not(.is-full) .plate__glow { opacity: 0.8; }

/* ---------- neon lettering: the set piece and the address ----------
   Real text in a tube's light. Unlit it is glass, still easy to read (over 4:1 against the
   background); the colour it throws onto the steel sits behind it. */
.setpiece > span, .weldmail > span { position: relative; }
.setpiece__neon, .weldmail__neon {
  --tint: 255 74 20;
  color: var(--neon-core);
  text-shadow: 0 0 0.025em var(--neon-tube), 0 0 0.09em var(--neon), 0 0 0.24em rgba(255, 74, 20, 0.75), 0 0 0.55em rgba(255, 74, 20, 0.4);
}
.setpiece__weld, .weldmail__weld {
  --tint: 79 155 255;
  color: var(--arc-core);
  text-shadow: 0 0 0.025em var(--arc-tube), 0 0 0.09em var(--arc), 0 0 0.24em rgba(79, 155, 255, 0.75), 0 0 0.55em rgba(79, 155, 255, 0.4);
}
.setpiece > span::before, .weldmail > span::before {
  content: "";
  position: absolute;
  z-index: -1;
  /* sideways only a little past the letters: on a narrow screen the edge is close */
  top: -45%; right: -0.3em; bottom: -45%; left: -0.3em;
  pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--tint) / 0.17), rgb(var(--tint) / 0.06) 55%, rgb(var(--tint) / 0));
}
.seam-pending .setpiece__neon, .seam-live .setpiece__neon:not(.is-lit),
.seam-pending .weldmail__neon, .seam-live .weldmail:not(.is-lit) .weldmail__neon { color: #8a6a60; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.05); }
.seam-pending .setpiece__weld, .seam-live .setpiece__weld:not(.is-lit),
.seam-pending .weldmail__weld, .seam-live .weldmail:not(.is-lit) .weldmail__weld { color: #6f8393; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.05); }
.seam-pending .setpiece > span::before, .seam-live .setpiece > span:not(.is-lit)::before,
.seam-pending .weldmail > span::before, .seam-live .weldmail:not(.is-lit) > span::before { visibility: hidden; }
/* strikes on like the wordmark's NEON: two short flickers, then on (colour and shadow only:
   repainted, never lifted onto a layer of its own, so the text renders exactly as before) */
.seam-live .setpiece__neon.is-striking { animation: strike-neon 0.8s linear both; }
.seam-live .setpiece__weld.is-striking { animation: strike-weld 0.8s linear both; }
.seam-live .setpiece > span.is-striking::before { animation: strike-glow 0.8s linear both; }
@keyframes strike-neon {
  0%, 5%, 14%, 23%, 31%, 41% { color: #8a6a60; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent; }
  6%, 13%, 42%, 100% { color: var(--neon-core); text-shadow: 0 0 0.025em var(--neon-tube), 0 0 0.09em var(--neon), 0 0 0.24em rgba(255, 74, 20, 0.75), 0 0 0.55em rgba(255, 74, 20, 0.4); }
  24%, 30% { color: var(--neon-tube); text-shadow: 0 0 0.025em var(--neon-tube), 0 0 0.08em var(--neon), 0 0 0.16em rgba(255, 74, 20, 0.5), 0 0 0 transparent; }
}
@keyframes strike-weld {
  0%, 5%, 14%, 23%, 31%, 41% { color: #6f8393; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent; }
  6%, 13%, 42%, 100% { color: var(--arc-core); text-shadow: 0 0 0.025em var(--arc-tube), 0 0 0.09em var(--arc), 0 0 0.24em rgba(79, 155, 255, 0.75), 0 0 0.55em rgba(79, 155, 255, 0.4); }
  24%, 30% { color: var(--arc-tube); text-shadow: 0 0 0.025em var(--arc-tube), 0 0 0.08em var(--arc), 0 0 0.16em rgba(79, 155, 255, 0.5), 0 0 0 transparent; }
}
@keyframes strike-glow {
  0%, 5%, 14%, 23%, 31%, 41% { visibility: hidden; }
  6%, 13%, 24%, 30%, 42%, 100% { visibility: visible; }
}

/* ---------- the set piece: the problem on the NEON side, the answer on the WELD side ---------- */
.answer .part__inner { padding-block: clamp(96px, 12vw, 200px); }
.setpiece {
  position: relative;
  z-index: 2;
  font-size: min(5.9vw, 5.5rem);
  font-weight: 330;
  font-stretch: 104%;
  line-height: 1.06;
  letter-spacing: -0.012em;
}
.setpiece__neon { grid-column: left; justify-self: end; text-align: right; max-width: 6.2em; }
.setpiece__weld { grid-column: right; justify-self: start; max-width: 6.4em; margin-top: 1.06em; }

/* ---------- our own products: a sign built in four stages beside the seam ----------
   A large plate stays in view beside the seam (sticky, ordinary scrolling) while four
   statements pass on the other side; the arc builds the sign one stage per statement. Nothing
   on the plate is text, and the plate sits above the text in paint order, so no text is ever
   moved onto a layer of its own. */
.own__head { padding-bottom: clamp(12px, 2vw, 32px); }
.own__head .strap { margin-bottom: 0; }
.own__body { position: relative; --bp-h: min(520px, 78vh); }
.own__stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; pointer-events: none; }
.own__track {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: [left] calc(var(--seam-left) - var(--seam-gap)) [spine] calc(var(--seam-w) + 2 * var(--seam-gap)) [right] minmax(0, 1fr);
}
.buildplate {
  --tint: 79 155 255;
  grid-column: right;
  justify-self: start;
  align-self: start;
  position: sticky;
  top: calc(50vh - var(--bp-h) / 2);
  width: min(100%, calc(var(--bp-h) * 0.84));
  height: var(--bp-h);
  border: 1px solid #2d333c;
  border-radius: 4px;
  background:
    radial-gradient(circle, #4b525c 0, #2a2f37 2.1px, #121418 3.9px, #262b33 4.4px, rgba(18, 20, 24, 0) 5.1px) 12px 12px / 11px 11px no-repeat,
    radial-gradient(circle, #4b525c 0, #2a2f37 2.1px, #121418 3.9px, #262b33 4.4px, rgba(18, 20, 24, 0) 5.1px) calc(100% - 12px) 12px / 11px 11px no-repeat,
    radial-gradient(circle, #4b525c 0, #2a2f37 2.1px, #121418 3.9px, #262b33 4.4px, rgba(18, 20, 24, 0) 5.1px) 12px calc(100% - 12px) / 11px 11px no-repeat,
    radial-gradient(circle, #4b525c 0, #2a2f37 2.1px, #121418 3.9px, #262b33 4.4px, rgba(18, 20, 24, 0) 5.1px) calc(100% - 12px) calc(100% - 12px) / 11px 11px no-repeat,
    linear-gradient(180deg, #1c1f25, #111317);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 50px -26px #000;
}
.buildplate .plate__glow { background: radial-gradient(ellipse 78% 62% at 50% 52%, rgb(var(--tint) / 0.26), rgb(var(--tint) / 0.08) 55%, rgb(var(--tint) / 0) 82%); }
.buildsign { position: absolute; top: 4.5%; right: 7%; bottom: 4.5%; left: 7%; display: block; }
.buildsign svg { display: block; width: 100%; height: 100%; overflow: visible; }
.buildsign path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bs-glass path { stroke: #272c33; stroke-width: 7; }
.bs-bloom path { stroke-width: 9.5; }
.bs-tube path { stroke-width: 6.5; }
.bs-core path { stroke-width: 2.3; }
.bs--weld .bs-bloom { stroke: var(--arc-glow); opacity: 0.72; }
.bs--weld .bs-tube { stroke: var(--arc-tube); }
.bs--weld .bs-core { stroke: var(--arc-core); }
.bs--neon .bs-bloom { stroke: var(--neon-glow); opacity: 0.8; }
.bs--neon .bs-tube { stroke: var(--neon-tube); }
.bs--neon .bs-core { stroke: var(--neon-core); }
.bs--gold .bs-bloom { stroke: #ff9a24; opacity: 0.75; }
.bs--gold .bs-tube { stroke: #ffd25c; }
.bs--gold .bs-core { stroke: #fff8ea; }
.bs-bloom path, .bs-tube path, .bs-core path { stroke: inherit; }
.bs--dash path { stroke-dasharray: 9 8; }
/* complete, as without the welding: no sketch, no jagged chart, and the last segment still to come */
.bs-sketch, .bs-jag { opacity: 0; }
.bs-seg5 .bs-lit { opacity: 0; }
/* While the page is being welded the sign is built stage by stage (weld.js sets .bs-1 to .bs-4
   on the plate): first an empty frame, the outline and the segments in glass */
.seam-pending .buildplate .bs-part, .seam-live .buildplate .bs-part,
.seam-pending .buildplate .bs-lit, .seam-live .buildplate .bs-lit,
.seam-pending .buildplate .plate__glow, .seam-live .buildplate .plate__glow { opacity: 0; }
.seam-pending .buildplate .bs-outline, .seam-live .buildplate .bs-outline,
.seam-pending .buildplate .bs-seg, .seam-live .buildplate .bs-seg { opacity: 1; }
/* 1: a rough sketch, lit weakly */
.seam-live .buildplate.bs-1 .bs-outline .bs-lit { opacity: 0.3; }
.seam-live .buildplate.bs-1:not(.bs-2) .bs-sketch { opacity: 1; }
.seam-live .buildplate.bs-1:not(.bs-2) .bs-sketch .bs-lit { opacity: 0.45; }
.seam-live .buildplate.bs-1 .bs-seg1 .bs-lit { opacity: 1; }
/* 2: the structure strikes on */
.seam-live .buildplate.bs-2 .bs-outline .bs-lit,
.seam-live .buildplate.bs-2 .bs-ui .bs-lit { opacity: 0.85; }
.seam-live .buildplate.bs-2 .bs-ui { opacity: 1; }
.seam-live .buildplate.bs-2:not(.bs-3) .bs-jag, .seam-live .buildplate.bs-2:not(.bs-3) .bs-jag .bs-lit { opacity: 1; }
.seam-live .buildplate.bs-2 .bs-seg2 .bs-lit { opacity: 1; }
.seam-live .buildplate.bs-2 .plate__glow { opacity: 0.25; }
/* 3: clean and refined */
.seam-live .buildplate.bs-3 .bs-outline .bs-lit,
.seam-live .buildplate.bs-3 .bs-ui .bs-lit,
.seam-live .buildplate.bs-3 .bs-smooth .bs-lit { opacity: 0.94; }
.seam-live .buildplate.bs-3 .bs-smooth { opacity: 1; }
.seam-live .buildplate.bs-3 .bs-seg3 .bs-lit { opacity: 1; }
.seam-live .buildplate.bs-3 .plate__glow { opacity: 0.45; }
/* 4: signed with the N, at full power, its light flooding the plate */
.seam-live .buildplate.bs-4 .bs-outline .bs-lit,
.seam-live .buildplate.bs-4 .bs-ui .bs-lit,
.seam-live .buildplate.bs-4 .bs-smooth .bs-lit,
.seam-live .buildplate.bs-4 .bs-seg4 .bs-lit,
.seam-live .buildplate.bs-4 .bs-mark,
.seam-live .buildplate.bs-4 .bs-mark .bs-lit,
.seam-live .buildplate.bs-4 .plate__glow { opacity: 1; }

/* the four statements pass on the NEON side */
.beat__inner { position: relative; padding-block: clamp(80px, 15vh, 170px); }
.beat__line {
  grid-column: left;
  justify-self: end;
  text-align: right;
  max-width: 11.5em;
  font-size: min(3.6vw, 3rem);
  font-weight: 400;
  font-stretch: 102%;
  line-height: 1.12;
  letter-spacing: -0.014em;
  color: var(--text-1);
  text-wrap: balance;
}

/* ---------- start a project: the address welded across the seam ---------- */
.contact .part__inner { padding-bottom: clamp(140px, 13vw, 200px); }
.contact__line {
  grid-column: left;
  justify-self: end;
  max-width: 10.5em;
  margin-bottom: clamp(44px, 5.4vw, 88px);
  text-align: right;
  font-size: min(4.15vw, 3.45rem);
  font-weight: 400;
  font-stretch: 102%;
  line-height: 1.1;
  letter-spacing: -0.016em;
  color: var(--text-1);
  text-wrap: balance;
}
.part__inner > .contact__line { grid-column: left; }
.weldmail {
  position: relative;
  z-index: 2;
  align-items: baseline;
  /* "neonweld.com" is 6.68 em wide: this fills the WELD column without leaving it, at any width */
  font-size: min(6.2vw, 5.15rem);
  font-weight: 330;
  font-stretch: 104%;
  line-height: 1.1;
  letter-spacing: 0;
  text-decoration: none;
}
.weldmail__neon { grid-column: left; justify-self: end; }
.weldmail__weld { grid-column: right; justify-self: start; }
.weldmail:hover .weldmail__neon { text-shadow: 0 0 0.025em var(--neon-tube), 0 0 0.12em var(--neon), 0 0 0.32em rgba(255, 74, 20, 0.9), 0 0 0.75em rgba(255, 74, 20, 0.55); }
.weldmail:hover .weldmail__weld { text-shadow: 0 0 0.025em var(--arc-tube), 0 0 0.12em var(--arc), 0 0 0.32em rgba(79, 155, 255, 0.9), 0 0 0.75em rgba(79, 155, 255, 0.55); }
/* The finale: when the seam closes here, the address strikes on from the seam outwards, letter
   by letter, across the full width (weld.js gives each letter its distance from the seam as --k).
   While the letters strike they carry only the tube and its near glow; when the last one is on,
   weld.js ends the strike and the whole address comes up to its full glow at once (the wide
   blurred glow on every letter, every frame, was too heavy for a slow phone). */
.seam-live .weldmail.is-striking .weldmail__neon > span { animation: letter-neon 0.5s linear calc(var(--k, 0) * 46ms) both; }
.seam-live .weldmail.is-striking .weldmail__weld > span { animation: letter-weld 0.5s linear calc(var(--k, 0) * 46ms) both; }
.seam-live .weldmail.is-striking > span::before { animation: strike-glow 0.9s linear 0.12s both; }
@keyframes letter-neon {
  0%, 22%, 40%, 55% { color: #8a6a60; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 transparent; }
  23%, 39%, 56%, 100% { color: var(--neon-core); text-shadow: 0 0 0.025em var(--neon-tube), 0 0 0.09em var(--neon); }
}
@keyframes letter-weld {
  0%, 22%, 40%, 55% { color: #6f8393; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 transparent; }
  23%, 39%, 56%, 100% { color: var(--arc-core); text-shadow: 0 0 0.025em var(--arc-tube), 0 0 0.09em var(--arc); }
}

/* ---------- footer: the maker's plate riveted across the end of the seam ---------- */
.site-footer { position: relative; padding-bottom: 48px; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 22px; }
.maker {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 460px);
  margin: calc(-1 * clamp(70px, 7vw, 96px)) 0 0 calc(var(--seam-left) + var(--seam-w) / 2);
  transform: translateX(-50%);
  padding: 36px clamp(36px, 5vw, 54px) 32px;
  border-radius: 4px;
  border: 1px solid #343a43;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #23272e, #1a1d22 55%, #15181c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 18px 34px -18px #000;
}
.maker::before {
  content: "";
  position: absolute;
  top: 9px; right: 9px; bottom: 9px; left: 9px;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.55), inset -1px -1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.rivet {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5d6570, #2a2f37 55%, #15181c);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.rivet:nth-child(1) { top: 18px; left: 18px; }
.rivet:nth-child(2) { top: 18px; right: 18px; }
.rivet:nth-child(3) { bottom: 18px; left: 18px; }
.rivet:nth-child(4) { bottom: 18px; right: 18px; }
.lockup { display: block; height: auto; }
.lockup--maker { width: min(100%, 340px); }
.maker__stamp {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  text-transform: uppercase;
  color: #6b737e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 -1px 0 rgba(0, 0, 0, 0.6);
}
.site-footer__legal {
  justify-self: start;
  margin-left: calc(var(--seam-left) + var(--seam-w) / 2);
  transform: translateX(-50%);
  width: max-content;
  max-width: 100%;
  letter-spacing: 0.08em;
  text-transform: none;
}

/* ---------- phones: the spine runs down the left edge, everything to its right ---------- */
@media (max-width: 599px) and (orientation: portrait) {
  .part__inner, .plates, .beat__inner, .weldmail, .setpiece {
    grid-template-columns: [spine] calc(var(--seam-w) + var(--seam-gap)) [left right] minmax(0, 1fr);
  }
  .part__inner > *, .part__inner > .contact__line { grid-column: 2; }
  /* (these carry their own spine column) */
  .part__inner > .plates, .part__inner > .setpiece, .part__inner > .weldmail { grid-column: 1 / -1; }
  .strap, .maker, .site-footer__legal { margin-left: 0; transform: none; }
  .strap { padding-inline: 38px; }
  .strap::before { left: 13px; }
  .strap::after { right: 13px; }
  .plate--neon, .plate--weld { grid-column: 2; justify-self: stretch; text-align: left; width: auto; }
  .beat__line { grid-column: 2; justify-self: stretch; text-align: left; width: auto; font-size: min(7.6vw, 2.3rem); }
  /* the plate rides at the top of the screen, the statements pass beneath it */
  .own__body { --bp-h: clamp(210px, 40vh, 340px); padding-top: calc(var(--bp-h) + 28px); }
  .own__track { grid-template-columns: [spine] calc(var(--seam-w) + var(--seam-gap)) [right] minmax(0, 1fr); }
  .buildplate { grid-column: 2; justify-self: stretch; width: auto; top: 10px; }
  /* each statement at the foot of its stretch: while the arc is in it, the text is between the
     plate and the arc, never under the plate */
  .beat__inner { padding-block: clamp(120px, 20vh, 180px) 34px; }
  .plates .plate + .plate { margin-top: 0; }
  .plate { padding: 28px 22px 26px; }
  .plate--neon::before, .plate--neon::after, .plate--weld::before, .plate--weld::after { left: calc(-1 * var(--seam-gap) - 4px); right: auto; }
  .sign { width: min(100%, 240px); }
  .contact__line { grid-row: auto; justify-self: start; text-align: left; }
  .setpiece { font-size: min(9.6vw, 3rem); }
  .setpiece__neon, .setpiece__weld { grid-column: 2; justify-self: start; text-align: left; }
  .setpiece__weld { margin-top: 0.5em; }
  .contact__line { font-size: min(8.7vw, 2.6rem); }
  .weldmail { row-gap: 0; font-size: min(11.2vw, 4rem); }
  .weldmail__neon, .weldmail__weld { grid-column: 2; justify-self: start; }
  .maker { justify-self: start; margin-top: calc(-1 * 64px); width: min(100%, 360px); padding-inline: 30px; }
  .site-footer__legal { margin-left: calc(var(--seam-w) + var(--seam-gap)); width: auto; max-width: none; }
}

/* ---------- 404 ---------- */
.lost {
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: 80px;
  border-top: 1px solid var(--line);
}
.lost .wrap { display: grid; gap: 22px; }
.lost .section__num { color: var(--neon); }
.lost .section__lede { color: var(--text-2); }
.lost__title {
  font-weight: 460;
  font-stretch: 104%;
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

/* ---------- weld effects (canvases are created by weld.js) ----------
   Layering: page surfaces (plates, panels, strips) < weld canvas (z 1) < text (z 2).
   A bead can cross any surface but never covers a word. */
.fx-torch { position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none; }
.fx-strike { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; }
/* The spine's hot bead, arc light and sparks: two small canvases that travel with the arc.
   They sit above the text layer, which they never cover except for light and sparks, so no
   text is ever lifted onto a layer of its own; strap plates are cut out of them. */
main { position: relative; }
.fx-run { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.fx-run canvas { position: absolute; left: 0; top: 0; will-change: transform; }   /* (moved every frame: on the compositor, no repaint) */
/* While the page is being welded, the lights that flicker on as the arc reaches them keep a
   compositor layer each: a step of brightness is then a new blend of layers already painted.
   Without it every step repainted the sign's blurred glow (measured with headless Edge at phone
   size: about a third as much repainting during a scroll, and the long frames gone). The seam's
   open-groove cover is left alone: a layer under the whole page lifts everything above it. */
.seam-pending .sign__lit, .seam-live .sign__lit { will-change: opacity; }
.seam-pending .bs-lit, .seam-live .bs-lit { will-change: opacity; }
main p, main h2, main h3,
.cta, .weldmail, .lockup, .maker__stamp, .site-footer__legal {
  position: relative;
  z-index: 2;
}
.wm-lit, .wm-seam { z-index: 2; }
html.torch-ready { cursor: crosshair; }
html.is-welding,
html.is-welding * { cursor: none !important; -webkit-user-select: none; user-select: none; }
html.is-welding.calm,
html.is-welding.calm * { cursor: crosshair !important; }
@supports (touch-action: pan-y pinch-zoom) {
  html.touch-torch { touch-action: pan-y pinch-zoom; }
}

@media (prefers-reduced-motion: reduce) {
  .wm-half, .cta { transition: none; }
}
