/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
/* No flat tap-highlight box on phones; press.js draws the press feedback instead. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font: 400 16px/1.65 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::after { /* moving film grain over everything */
  content: "";
  position: fixed;
  inset: -50%;
  background-image: var(--grain);
  pointer-events: none;
  z-index: 100;
  opacity: 0.55;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--white); font-family: var(--font-display); line-height: 1.05; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Red parts of the logo; set --logo-red where the logo sits on a red background. */
.sprite :is(.logo-handle, .logo-head, .logo-foot) { fill: var(--logo-red, #c4161f); }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--red); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-bright);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }

.section { position: relative; padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title {
  margin-top: 14px;
  font-size: clamp(2rem, 5vw, 3.6rem); font-style: italic; font-weight: 800; letter-spacing: -0.01em;
}

/* ============ Buttons ============ */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius); cursor: pointer;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none;
  overflow: hidden; translate: var(--mx) var(--my);
  transition: translate 0.25s var(--ease-out), scale 0.5s var(--ease-spring), background 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform 0.3s var(--ease-out); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 10px 30px -10px rgba(196, 22, 31, 0.7); }
.btn--red::after { /* light sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  translate: -120% 0; transition: translate 0.7s var(--ease-out);
}
.btn--red:hover { background: var(--red-bright); }
.btn--red:hover::after { translate: 120% 0; }
.btn--ghost { background: rgba(255, 255, 255, 0.04); color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(232, 232, 232, 0.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ============ Press feedback (see press.js) ============ */
/* Pressing squeezes the control; letting go springs it back while the strike plays. */
:is(.btn, .burger, .lang-toggle, .chips button) { position: relative; overflow: hidden; isolation: isolate; }
:is(.btn, .burger, .lang-toggle, .chips button):active { scale: 0.93; transition-duration: 0.12s; }
/* Light flooding out from the press point, under the label. */
.press-glow {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), rgba(255, 220, 222, 0.22) 40%, transparent 70%);
}
/* Shock ring, flash and sparks at the press point, above the page so nothing clips them. */
.burst { position: fixed; z-index: 70; width: 0; height: 0; pointer-events: none; }
.burst > span { position: absolute; }
.burst__flash {
  left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(255, 196, 199, 0.75) 35%, transparent 70%);
}
.burst__ring { left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.85); }
.burst__ring--red { border: 2px solid var(--red-bright); box-shadow: 0 0 12px rgba(224, 34, 44, 0.6); }
.burst__spark {
  left: -1.25px; bottom: 0; width: 2.5px; height: 12px; border-radius: 2px; transform-origin: 50% 100%;
  background: linear-gradient(to top, transparent, var(--red-bright) 45%, #fff);
  box-shadow: 0 0 6px rgba(224, 34, 44, 0.8);
}
.burst__spark--steel { background: linear-gradient(to top, transparent, var(--steel) 45%, #fff); box-shadow: 0 0 6px rgba(255, 255, 255, 0.5); }

/* ============ Scroll progress ============ */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s, translate 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { translate: 0 -100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__logo { width: 70px; height: 32px; flex: none; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1rem; white-space: nowrap;
}
.brand__name em { color: var(--steel); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-call {
  display: none; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--white);
  transition: color 0.2s;
}
.header-call svg { width: 18px; height: 18px; color: var(--red-bright); }
.header-call:hover { color: var(--red-bright); }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 1.5px solid rgba(232, 232, 232, 0.3); border-radius: 999px; background: rgba(11, 11, 12, 0.4);
  color: var(--white); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: border-color 0.25s, background 0.25s, scale 0.5s var(--ease-spring);
}
.lang-toggle:hover { border-color: var(--red-bright); background: rgba(196, 22, 31, 0.15); }
.lang-toggle__icon { width: 18px; height: 18px; }

.burger {
  position: relative; width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: var(--red); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 24px -8px rgba(196, 22, 31, 0.8);
  transition: background 0.3s, transform 0.3s var(--ease-out), scale 0.5s var(--ease-spring);
}
.burger:hover { background: var(--red-bright); transform: scale(1.06); }
.burger__box { position: relative; width: 22px; height: 16px; }
.burger__box span {
  position: absolute; left: 0; height: 2px; width: 100%; border-radius: 2px; background: var(--white);
  transition: transform 0.55s var(--ease-out), opacity 0.3s, width 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 7px; width: 70%; }
.burger__box span:nth-child(3) { top: 14px; width: 45%; }
.burger:hover .burger__box span { width: 100%; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { top: 7px; transform: rotate(45deg); width: 100%; }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; transform: translateX(14px); }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { top: 7px; transform: rotate(-45deg); width: 100%; }

/* ============ Cinematic menu ============ */
.menu {
  --cx: 100%; --cy: 0%;
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink-2);
  background-image: var(--scratches), radial-gradient(ellipse at 80% 10%, rgba(196, 22, 31, 0.22), transparent 55%);
  clip-path: circle(0% at var(--cx) var(--cy));
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.menu__art {
  position: absolute; right: -8vw; bottom: -10vh; width: min(70vw, 720px); height: auto;
  color: rgba(232, 232, 232, 0.06);
}
.menu__stripe {
  position: absolute; left: 0; right: 0; top: 50%; height: 18vh; margin-top: -9vh;
  background: var(--red); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}
.menu__inner {
  position: relative; min-height: 100%;
  display: grid; align-content: center; gap: 48px;
  padding: calc(var(--header-h) + 32px) var(--gutter) 48px;
  max-width: var(--max); margin: 0 auto;
}
.menu__links { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.menu__links li { overflow: hidden; }
.menu__links a {
  display: inline-flex; align-items: baseline; gap: 18px; padding: 4px 0;
  text-decoration: none; color: var(--white);
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(2.1rem, 7.5vw, 5rem); line-height: 1.08; letter-spacing: -0.02em;
  position: relative;
}
.menu__links a small {
  font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 0.85rem;
  color: var(--red-bright); letter-spacing: 0.1em;
}
.menu__links a span {
  background: linear-gradient(var(--red-bright), var(--red-bright)) no-repeat 0 88% / 0% 0.12em;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.menu__links a:hover span, .menu__links a:focus-visible span { background-size: 100% 0.12em; color: var(--silver); }
.menu__links:hover a:not(:hover) { opacity: 0.45; }
.menu__links a { transition: opacity 0.3s; }
.menu__aside { display: grid; gap: 12px; align-content: start; }
.menu__label { color: var(--steel); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; font-weight: 600; }
.menu__contact {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white);
  font-size: 1.15rem; font-weight: 600;
}
.menu__contact svg { width: 20px; height: 20px; color: var(--red-bright); }
.menu__contact:hover { color: var(--red-bright); }
.menu__band {
  margin-top: 12px; padding: 10px 18px; background: var(--red); color: var(--white); justify-self: start;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.3rem;
}
.menu__meta { color: var(--steel); font-size: 0.9rem; }
/* Small credit under the contact details; links to /developer/. */
.menu__dev { margin-top: 6px; color: var(--steel); font-size: 0.78rem; }
.menu__dev a { color: var(--silver); text-underline-offset: 3px; }
.menu__dev a:hover { color: var(--red-bright); }
.page { transform-origin: 50% 0; }

/* ============ Parallax plumbing ============ */
[data-speed] { translate: 0 var(--py, 0px); will-change: translate; }
[data-fade] { opacity: var(--fade, 1); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; align-content: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 160px;
  background: radial-gradient(ellipse 80% 60% at 70% 30%, #1a1a1d 0%, var(--ink) 70%);
}
.hero__layer { position: absolute; pointer-events: none; }
.hero__grain { inset: -20% 0; background-image: var(--scratches); z-index: -3; }
.hero__blueprint {
  inset: 5% -5% auto auto; width: min(95vw, 1100px); height: 90%;
  color: rgba(232, 232, 232, 0.09); z-index: -2;
}
.hero__dims { font-family: var(--font-body); }
.hero__blueprint path { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw-line 3.2s 0.3s var(--ease-out) forwards; }
.hero__blueprint path[stroke-dasharray="6 10"] { animation: none; stroke-dashoffset: 0; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.hero__since, .hero__code {
  right: -2vw; bottom: 6vh; z-index: -2;
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(8rem, 30vw, 26rem); line-height: 0.8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(196, 22, 31, 0.35);
}
.hero__slash {
  left: -10vw; right: -10vw; bottom: 24%; height: 2px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
  rotate: -8deg; opacity: 0.6;
}
/* Centred like the business card: logo over the company name, then the copy. */
.hero__content { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.hero__lockup {
  --logo-w: clamp(min(168px, (100vw - 2 * var(--gutter)) / 1.85), 22vw, 280px);
  display: grid; justify-items: center; gap: calc(var(--logo-w) * 0.05); margin-bottom: 30px;
}
.hero__logo { width: var(--logo-w); height: auto; overflow: visible; }
/* Sized off the logo so the pair keeps the card's proportions at every width. */
.hero__company {
  font-family: var(--font-body); font-weight: 700; font-size: calc(var(--logo-w) * 0.112);
  line-height: 1.2; letter-spacing: 0.01em; color: var(--silver); white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  opacity: 0; animation: fade-up 0.8s 0.7s var(--ease-out) forwards;
}
.hero__logo .draw { opacity: 0; animation: logo-in 0.9s var(--ease-out) forwards; transform-box: fill-box; }
.hero__logo .draw--1 { animation-delay: 0.15s; transform-origin: 100% 50%; }
.hero__logo .draw--2 { animation-name: logo-handle; animation-delay: 0.3s; transform-origin: 0 100%; }
/* The head swings in around the top of the handle (viewBox units). */
.hero__logo .draw--3 { animation-name: logo-swing; animation-delay: 0.75s; transform-box: view-box; transform-origin: 158.6px 37.1px; }
.hero__logo .draw--4 { animation-name: logo-handle; animation-delay: 0.5s; transform-origin: 0 0; }
.hero__logo .draw--5 { animation-delay: 0.85s; transform-origin: 0 50%; }
.hero__logo .draw--6 { animation-name: logo-pop; animation-delay: 1s; transform-origin: 50% 50%; }
@keyframes logo-in { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes logo-handle { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes logo-swing {
  0% { opacity: 0; transform: rotate(-70deg); }
  60% { opacity: 1; transform: rotate(12deg); }
  80% { transform: rotate(-4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes logo-pop { 0% { opacity: 0; transform: scale(0) rotate(-90deg); } 100% { opacity: 1; transform: none; } }

.hero .eyebrow { justify-content: center; text-wrap: balance; opacity: 0; animation: fade-up 0.8s 0.9s var(--ease-out) forwards; }
.hero .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero__title {
  margin: 18px 0 24px;
  font-size: clamp(2.8rem, 9vw, 7rem); font-style: italic; font-weight: 900; letter-spacing: -0.03em; line-height: 0.98;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease-out) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: 1s; }
.hero__title .line:nth-child(2) > span { animation-delay: 1.15s; }
.hero__title .line--accent { color: var(--red-bright); }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__lead { max-width: 600px; margin: 0 auto; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--silver); opacity: 0; animation: fade-up 0.9s 1.3s var(--ease-out) forwards; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; opacity: 0; animation: fade-up 0.9s 1.45s var(--ease-out) forwards; }

.name-band {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--red); color: var(--white); padding: 14px var(--gutter);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 20px 40px -20px rgba(196, 22, 31, 0.8);
}
.name-band__name { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.8rem); }
.name-band__role { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; font-weight: 600; }
.hero__band {
  position: absolute; left: 0; right: 0; bottom: 70px; justify-content: center; text-align: center; gap: 4px 18px;
  clip-path: inset(0 100% 0 0); animation: band-in 1.1s 1.6s var(--ease-in-out) forwards;
}
@keyframes band-in { to { clip-path: inset(0 0 0 0); } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0;
  display: grid; justify-items: center; gap: 6px; text-decoration: none;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--steel);
}
.scroll-cue i { width: 1.5px; height: 28px; background: linear-gradient(var(--red-bright), transparent); animation: cue 1.8s infinite var(--ease-in-out); transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ============ Reveal on scroll ============ */
.js [data-reveal] {
  opacity: 0; translate: 0 48px;
  transition: opacity 0.9s var(--ease-out), translate 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
.js .svc-card[data-reveal] { transition: opacity 0.9s var(--ease-out), translate 1s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s; }

/* ============ Services ============ */
.services__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.svc-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: grid; grid-template-columns: 84px 1fr; min-height: 460px;
  border-radius: var(--radius); overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, opacity 0.9s var(--ease-out), translate 1s var(--ease-out);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.svc-card:hover { box-shadow: 0 40px 80px -30px rgba(196, 22, 31, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.5); }
.svc-card__tools {
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px 0;
  background: #101011; background-image: var(--scratches); color: var(--silver);
}
.svc-card__tools svg { width: 46px; height: 46px; }
.svc-card__tools i { width: 34px; height: 1.5px; background: var(--steel); }
.svc-card__body {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--white);
}
.svc-card__body::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.6; pointer-events: none; }
.svc-card__num { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 3.4rem; line-height: 1; color: rgba(255, 255, 255, 0.18); }
.svc-card h3 { font-size: 1.75rem; font-style: italic; font-weight: 800; }
.svc-card__desc { font-size: 0.95rem; opacity: 0.92; }
.svc-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.svc-card li { position: relative; padding-left: 18px; font-family: var(--font-display); font-style: italic; font-weight: 700; }
.svc-card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--white); }
.svc-card__link {
  margin-top: auto; align-self: flex-end; font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.1rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.svc-card__link:hover { color: #ffd9db; }

/* ============ Stats band ============ */
.stats {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(90px, 14vw, 180px) var(--gutter);
  border-block: 1px solid var(--line);
}
.stats__bg {
  position: absolute; inset: -40% 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--ink) 0%, transparent 25%, transparent 75%, var(--ink) 100%),
    repeating-linear-gradient(-55deg, rgba(196, 22, 31, 0.08) 0 2px, transparent 2px 38px),
    radial-gradient(ellipse at 20% 50%, rgba(196, 22, 31, 0.28), transparent 60%),
    var(--ink-2);
}
.stats__quote {
  max-width: var(--max); margin: 0 auto 70px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-weight: 900; line-height: 1;
  font-size: clamp(2.2rem, 7vw, 6rem); letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--silver);
}
.stats__grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--line); border: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 30px 26px; background: rgba(11, 11, 12, 0.85); }
.stat dt { color: var(--steel); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.stat dd { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1; color: var(--white); }
.stat dd span { color: var(--red-bright); }

/* ============ Craft (pinned horizontal scroll) ============ */
.craft { position: relative; }
.craft__sticky { position: relative; padding: clamp(80px, 10vw, 120px) 0; overflow: hidden; }
.craft__head { padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto 40px; }
.craft__meter { margin-top: 24px; height: 2px; background: var(--line); max-width: 320px; }
.craft__meter span { display: block; height: 100%; background: var(--red-bright); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
.craft__track {
  display: flex; gap: 24px; padding: 0 var(--gutter) 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--red) transparent;
}
.craft-panel {
  flex: 0 0 min(82vw, 380px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); background-image: var(--scratches), linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.craft-panel:hover { border-color: rgba(196, 22, 31, 0.6); transform: translateY(-6px); }
.craft-panel__art { width: 100%; height: auto; aspect-ratio: 200 / 140; color: var(--silver); margin-bottom: 12px; }
.craft-panel__art .red { stroke: var(--red-bright); stroke-width: 3; }
.craft-panel__num { color: var(--red-bright); font-weight: 700; letter-spacing: 0.15em; font-size: 0.8rem; }
.craft-panel h3 { font-size: 1.6rem; font-style: italic; font-weight: 800; }
.craft-panel p:last-child { color: var(--steel); }
.craft-panel--cta { justify-content: center; align-items: flex-start; background: var(--red); background-image: var(--grain), linear-gradient(160deg, var(--red), var(--red-deep)); border-color: transparent; }
.craft-panel--cta h3 { font-size: 2rem; }
.craft-panel--cta .btn--red { background: var(--ink); }
.craft-panel__logo { width: 150px; height: 69px; --logo-red: var(--ink); }

/* Pinned mode (enabled by JS on wide screens with motion allowed) */
.craft.is-pinned { height: var(--craft-h, 300vh); }
.craft.is-pinned .craft__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) 0 0; }
.craft.is-pinned .craft__track { overflow: visible; scroll-snap-type: none; width: max-content; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.craft.is-pinned .craft-panel { flex-basis: 380px; }

/* ============ Process ============ */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.timeline__rail { position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline__rail span { display: block; width: 100%; height: 100%; background: var(--red-bright); transform-origin: 50% 0; transform: scaleY(var(--progress, 0)); }
.step { position: relative; padding-left: 74px; }
.step__num {
  position: absolute; left: 0; top: -4px; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); border: 2px solid var(--red);
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.3rem; color: var(--white);
  transition: background 0.4s, box-shadow 0.4s;
}
.step.is-visible .step__num { background: var(--red); box-shadow: 0 0 0 8px rgba(196, 22, 31, 0.15); }
.step h3 { font-size: 1.45rem; font-style: italic; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--steel); max-width: 46ch; }

/* ============ Service area ============ */
.area { display: grid; gap: 56px; align-items: center; overflow: hidden; max-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.area__ghost {
  position: absolute; left: -2vw; top: 6%; z-index: -1; pointer-events: none;
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(9rem, 32vw, 30rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(232, 232, 232, 0.06);
}
.area { isolation: isolate; }
.area__text { margin: 20px 0 28px; max-width: 54ch; color: var(--silver); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--silver); font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out), scale 0.5s var(--ease-spring);
}
.chips button:hover, .chips button.is-active { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.area__map { margin: 0; justify-self: center; width: min(100%, 480px); }
.area__map svg { width: 100%; height: auto; overflow: visible; }
.map__rings { stroke: rgba(232, 232, 232, 0.08); stroke-width: 0.6; }
.map__rings path { stroke-dasharray: 2 4; }
.map__roads { stroke: rgba(232, 232, 232, 0.12); stroke-width: 1.2; }
.map__cities circle { fill: var(--red-bright); transition: r 0.3s; }
.map__cities text { fill: var(--silver); font-family: var(--font-body); font-size: 7.5px; font-weight: 600; transition: opacity 0.3s, fill 0.3s; }
.map__cities .is-hub circle { fill: var(--white); stroke: var(--red); stroke-width: 3; }
.map__cities .is-hub text { font-size: 9px; fill: var(--white); }
.map__cities .is-quiet text { opacity: 0; }
.map__cities g.is-active text { opacity: 1; fill: var(--white); }
.map__cities g.is-active circle { r: 7; }
.map__cities g::before { content: none; }
.map__pulse { fill: none; stroke: var(--red-bright); stroke-width: 1.5; animation: pulse 1.6s infinite var(--ease-out); transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.area__map figcaption { margin-top: 10px; text-align: center; color: var(--steel); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ============ Estimate + business card ============ */
.estimate { display: grid; gap: 64px; align-items: start; }
.estimate__card { display: grid; gap: 18px; justify-items: center; }
.biz-card {
  width: min(100%, 460px); aspect-ratio: 3.5 / 2; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1400px; animation: float 6s ease-in-out infinite;
  /* Vertical swipes still scroll the page; horizontal ones turn the card (interactions.js). */
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: scale 0.5s var(--ease-spring);
}
.biz-card:active { scale: 0.97; transition-duration: 0.15s; }
@keyframes float { 0%, 100% { translate: 0 0; rotate: -1.5deg; } 50% { translate: 0 -12px; rotate: 1deg; } }
.biz-card__inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; transform: rotateY(var(--turn, 0deg)); transition: transform 1.1s var(--ease-out);
}
.biz-card.is-dragging .biz-card__inner { transition: none; }
.biz-card__face {
  position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: left;
}
/* Gloss that sweeps across the card each time it turns over. */
.biz-card__face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; translate: -110% 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.26) 47%, rgba(255, 255, 255, 0.08) 54%, transparent 64%);
}
.biz-card.is-shining .biz-card__face::after { animation: sheen 1.2s 0.15s ease-in-out; }
@keyframes sheen { from { translate: -110% 0; } to { translate: 110% 0; } }
.biz-card__front {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%;
  background: #0e0e0f; background-image: var(--grain), var(--scratches);
}
.biz-card__logo { width: 40%; height: auto; aspect-ratio: 328 / 150; }
.biz-card__company { font-family: var(--font-display); font-weight: 800; font-size: clamp(0.9rem, 3.4vw, 1.3rem); color: var(--silver); }
.biz-card__band {
  align-self: stretch; text-align: center; padding: 1.6% 0; background: var(--red); color: var(--white);
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1rem, 3.8vw, 1.45rem);
}
.biz-card__phone { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--silver); font-size: clamp(0.95rem, 3.4vw, 1.25rem); letter-spacing: 0.04em; }
.biz-card__back {
  transform: rotateY(180deg);
  display: grid; grid-template-columns: 20% 1fr; grid-template-rows: 1fr auto auto;
  background: var(--red); background-image: var(--grain), linear-gradient(160deg, #b8141c, #8f0e15);
}
.biz-card__tools {
  grid-row: 1 / 3; margin: 6% 0 0 7%; background: #111; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10%; color: var(--silver);
}
.biz-card__tools svg { width: 60%; height: auto; aspect-ratio: 1; }
.biz-card__tools i { width: 45%; height: 1px; background: var(--steel); }
.biz-card__list {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4%;
  padding: 6% 7% 0 0; color: var(--white);
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(0.8rem, 3vw, 1.15rem);
}
.biz-card__list span::before { content: "• "; }
.biz-card__free {
  grid-column: 2; justify-self: center; padding: 3% 0 4%; color: var(--white);
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(0.85rem, 3.2vw, 1.2rem);
  text-decoration: underline; text-underline-offset: 4px;
}
.biz-card__foot {
  grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6%; padding: 3% 6% 3.5%;
  background: #121213; color: var(--silver);
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(0.7rem, 2.6vw, 1rem);
}
.biz-card__foot span:last-child { align-self: flex-end; color: var(--steel); }
.biz-card__hint { color: var(--steel); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; }
.estimate__direct { display: grid; gap: 10px; justify-items: center; margin-top: 10px; }
.estimate__direct a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 600; font-size: 1.1rem; }
.estimate__direct a:hover { color: var(--red-bright); }
.estimate__direct svg { width: 20px; height: 20px; color: var(--red-bright); }
.speak-badge {
  margin-top: 6px; padding: 6px 14px; border-radius: 999px; border: 1px dashed rgba(196, 22, 31, 0.7);
  color: var(--silver); font-family: var(--font-display); font-style: italic; font-weight: 700;
}
.estimate__text { margin: 16px 0 30px; color: var(--silver); max-width: 52ch; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); color: var(--white);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--red-bright) 50%), linear-gradient(135deg, var(--red-bright) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
.field select option { background: var(--ink-2); color: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red-bright); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 4px rgba(196, 22, 31, 0.18);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red-bright); box-shadow: 0 0 0 4px rgba(224, 34, 44, 0.22); }
.field.is-invalid > span { color: var(--red-bright); }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.6em; font-weight: 600; }
.form__status.is-ok { color: #7ee0a1; }
.form__status.is-error { color: #ff7d84; }
.form__privacy { color: var(--steel); font-size: 0.82rem; }
.form__privacy a { color: var(--silver); text-underline-offset: 2px; }
.form__privacy a:hover { color: var(--red-bright); }
.form.is-sent { animation: sent 0.8s var(--ease-out); }
@keyframes sent { 0% { transform: scale(1); } 40% { transform: scale(0.985); } 100% { transform: scale(1); } }

/* ============ Footer ============ */
.footer { position: relative; margin-top: 40px; background: #080809; background-image: var(--scratches); }
.footer__band { background: var(--red); padding: 14px var(--gutter); text-align: center; }
.footer__band span { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.4rem; color: var(--white); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 30px; display: grid; gap: 36px; }
.footer__brand svg { width: 140px; height: 64px; margin-bottom: 14px; }
.footer__name { font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1.25rem; }
.footer__brand p:last-child { color: var(--steel); font-style: italic; }
.footer__contact { display: grid; gap: 8px; align-content: start; }
.footer__contact a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.footer__contact a:hover { color: var(--red-bright); }
.footer__contact p { color: var(--steel); }
.footer__nav { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 22px; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer__nav a { display: inline-block; padding: 6px 0; color: var(--silver); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.footer__nav a:hover { color: var(--red-bright); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) 10px; border-top: 1px solid var(--line); color: var(--steel); font-size: 0.82rem; }
.footer__credit { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 36px; color: var(--steel); font-size: 0.75rem; opacity: 0.8; }
.footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: var(--red-bright); }

/* ============ About the developer (/developer/) ============ */
/* The intro reuses the home hero; it starts sooner because there is no logo to draw first. */
.hero--dev .hero__code { left: -3vw; right: auto; top: calc(var(--header-h) + 4vh); bottom: auto; }
.hero--dev .hero__slash { rotate: 8deg; }
.hero__photo {
  width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--red), 0 20px 40px -14px rgba(196, 22, 31, 0.7);
  opacity: 0; animation: photo-in 0.9s 0.15s var(--ease-spring) forwards;
}
@keyframes photo-in { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
.hero--dev .eyebrow { animation-delay: 0.35s; }
.hero--dev .hero__title .line:nth-child(1) > span { animation-delay: 0.45s; }
.hero--dev .hero__title .line:nth-child(2) > span { animation-delay: 0.6s; }
.hero--dev .hero__lead { animation-delay: 0.75s; }
.hero--dev .hero__ctas { animation-delay: 0.9s; }
.hero--dev .hero__band { animation-delay: 1s; }
.dev-lead { margin-top: 18px; max-width: 56ch; color: var(--silver); font-size: clamp(1rem, 1.5vw, 1.12rem); }

.dev-built { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.dev-built__item {
  border-radius: var(--radius); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.js .dev-built__item[data-reveal] {
  transition: opacity 0.9s var(--ease-out), translate 1s var(--ease-out), border-color 0.3s, transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.js .dev-built__item.is-visible:hover { transition-delay: 0s; }
.dev-built__item:hover { border-color: rgba(196, 22, 31, 0.6); transform: translateY(-6px); }
.dev-built__item {
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  background-image: var(--scratches), linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.dev-built__num {
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 3rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--red-bright);
}
.dev-built__item h3 { font-size: 1.45rem; font-style: italic; font-weight: 800; }
.dev-built__item p { color: var(--steel); }

/* Work cards: the design from Pedro's portfolio (pedromdominguez.dev, public/css/styles.css there),
   with its colours and fonts, so his projects look the same on both sites. Each live site sits on a
   phone that rises out of a stage lit in that site's own colours. */
.dev-work {
  --pmd-gold: #d4af37; --pmd-gold-light: #f5d26b; --pmd-blue: #2f5bd3;
  --pmd-text: #e8ecf6; --pmd-muted: #9aa6c3; --pmd-line: rgba(154, 166, 195, 0.16); --pmd-glass: rgba(15, 33, 80, 0.42);
  display: grid; gap: 20px; grid-template-columns: 1fr;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1.0625rem; line-height: 1.65;
}
.dev-work .project {
  position: relative; display: block; padding: 28px 24px; overflow: hidden;
  color: var(--pmd-text); text-decoration: none;
  background: var(--pmd-glass); border: 1px solid var(--pmd-line); border-radius: 18px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
/* Keep the reveal's stagger on opacity/translate only, so hovering responds at once. */
.js .dev-work .project[data-reveal] {
  transition: opacity 0.9s var(--ease-out), translate 1s var(--ease-out), transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s, 0s, 0s;
}
.dev-work .project::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 3px; opacity: 0.7;
  background: linear-gradient(90deg, var(--pmd-blue), var(--pmd-gold));
}
.dev-work .project:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.55); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.dev-work .project:active { transform: scale(0.985); transition-duration: 0.1s; }
.dev-work .project h3 {
  margin: 0 0 0.6em; font-family: "Space Grotesk", "Inter", sans-serif; font-size: 1.2rem; font-weight: 700;
  line-height: 1.15; letter-spacing: -0.01em; color: var(--pmd-text);
}
.dev-work .project p { margin: 0; color: var(--pmd-muted); }
.dev-work .project .project__url {
  margin: -4px 0 14px; font-family: "Orbitron", "Space Grotesk", sans-serif; font-size: 0.75rem; letter-spacing: 0.06em;
  color: var(--pmd-gold);
}
.dev-work .project__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dev-work .project__arrow { font-size: 1.3rem; color: var(--pmd-gold-light); transition: transform 0.25s; }
.dev-work .project:hover .project__arrow { transform: translate(3px, -3px); }
.dev-work .project--featured {
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.12), var(--pmd-glass) 55%);
}
.dev-work .project__stage {
  --tint: rgba(10, 21, 48, 0.6);
  --glow: rgba(212, 175, 55, 0.4);
  position: relative; height: 280px; margin: -28px -24px 24px; overflow: hidden;
  border-bottom: 1px solid var(--pmd-line);
  background:
    radial-gradient(ellipse 75% 85% at 50% 105%, var(--glow), transparent 70%),
    linear-gradient(rgba(154, 166, 195, 0.07) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(154, 166, 195, 0.07) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--tint);
}
.dev-work .project--jctl .project__stage { --tint: rgba(14, 14, 15, 0.85); --glow: rgba(196, 22, 31, 0.42); }
.dev-work .project--msm .project__stage { --tint: rgba(11, 31, 58, 0.75); --glow: rgba(201, 164, 92, 0.42); }
.dev-work .project--hr .project__stage { --tint: rgba(36, 4, 4, 0.75); --glow: rgba(205, 38, 38, 0.48); }
.dev-work .project--pt .project__stage { --tint: rgba(0, 16, 10, 0.75); --glow: rgba(0, 150, 90, 0.45); }
.dev-work .device {
  position: absolute; top: 34px; left: 50%; width: 196px; padding: 7px; border-radius: 32px;
  background: linear-gradient(160deg, #2c344b, #0a0d16 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 28px 60px rgba(0, 0, 0, 0.6), 0 0 50px var(--glow);
  transform: translateX(-50%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s;
}
.dev-work .device::before { /* camera pill in the status bar */
  content: ""; position: absolute; top: 13px; left: 50%; z-index: 1; width: 50px; height: 13px;
  border-radius: 999px; background: #000; transform: translateX(-50%);
}
.dev-work .device__screen { position: relative; padding-top: 22px; border-radius: 25px; background: #000; overflow: hidden; }
.dev-work .device__screen img { display: block; width: 100%; height: auto; }
.dev-work .device__screen::after { /* faint glare across the glass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 32%);
}
.dev-work .project:hover .device, .dev-work .project:focus-visible .device {
  transform: translate(-50%, -14px);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 36px 70px rgba(0, 0, 0, 0.65), 0 0 80px var(--glow);
}
.dev-work .tag {
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(122, 162, 255, 0.45);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #a9c1ff;
}
.dev-work .tag--gold { border-color: rgba(212, 175, 55, 0.6); color: var(--pmd-gold-light); }

.dev-stack__head { max-width: var(--max); margin: 0 auto 56px; }
.dev-stack__item { display: grid; gap: 10px; align-content: start; padding: 30px 26px; background: rgba(11, 11, 12, 0.85); }
.dev-stack__item dt { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; color: var(--white); }
.dev-stack__item dt::before { content: ""; display: block; width: 34px; height: 2px; margin-bottom: 18px; background: var(--red-bright); }
.dev-stack__item dd { margin: 0; color: var(--steel); }

.dev-cta__card {
  display: grid; justify-items: center; text-align: center;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px); border-radius: var(--radius);
  background: var(--red); background-image: var(--grain), linear-gradient(160deg, var(--red), var(--red-deep));
  box-shadow: 0 40px 80px -40px rgba(196, 22, 31, 0.6);
}
.dev-cta__card .eyebrow { color: var(--white); }
.dev-cta__card .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }
.dev-cta__text { margin: 18px 0 30px; max-width: 58ch; color: rgba(255, 255, 255, 0.92); }
.dev-cta__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dev-cta__card .btn--red { background: var(--ink); box-shadow: none; }
.dev-cta__card .btn--red:hover { background: #000; }
.dev-cta__card .btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.dev-cta__card .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); background: rgba(255, 255, 255, 0.12); }
.dev-cta__back { margin-top: 28px; color: var(--white); font-weight: 600; text-underline-offset: 4px; }
.dev-cta__back:hover { color: var(--ink); }

/* ============ Responsive ============ */
@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .dev-work { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .dev-work { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) {
  .header-call { display: inline-flex; }
  .menu__inner { grid-template-columns: 1.6fr 1fr; align-items: center; }
  .footer__inner { grid-template-columns: 1.4fr 1fr; }
  .area { grid-template-columns: 1.1fr 1fr; }
}
@media (min-width: 980px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 70px; }
  .timeline__rail { left: 0; right: 0; top: 23px; bottom: auto; width: auto; height: 2px; }
  .timeline__rail span { transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
  .step { padding-left: 0; }
  .step__num { top: -70px; }
  .estimate { grid-template-columns: 1fr 1.15fr; }
  .estimate__card { position: sticky; top: calc(var(--header-h) + 40px); }
}
@media (max-width: 480px) {
  .brand__name { display: none; }
  .lang-toggle { padding: 0 12px; }
  .svc-card { grid-template-columns: 64px 1fr; }
  .svc-card__tools svg { width: 36px; height: 36px; }
  .hero { padding-bottom: 190px; }
  .hero .eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; }
  .hero .eyebrow::before, .hero .eyebrow::after { display: none; }
  .hero__ctas .btn, .dev-cta__links .btn { flex: 1 1 100%; }
  .hero__band { bottom: 64px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  body::after { animation: none; }
  [data-speed] { translate: none; }
  .biz-card { animation: none; }
}

/* ============ Language switch ============ */
.is-switching-lang :is(.section, .stats, .craft, .footer, .menu, .legal-hero, .legal-nav) [data-i18n] { animation: lang-swap 0.45s var(--ease-out); }
@keyframes lang-swap { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }

/* ============ Policy pages (/terms/, /privacy/, /refunds/, /accessibility/) ============ */
.legal-hero {
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) var(--gutter) clamp(32px, 5vw, 56px);
}
.legal-hero__title {
  margin-top: 16px; font-style: italic; font-weight: 900; font-size: clamp(2.1rem, 6vw, 4rem); text-wrap: balance;
}
.legal-hero__updated { margin-top: 16px; color: var(--steel); }
.legal-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
  display: grid; gap: 40px;
}
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius); text-decoration: none;
  color: var(--silver); font-weight: 600; font-size: 0.9rem; box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}
.legal-nav a:hover { color: var(--white); box-shadow: inset 0 0 0 1px var(--red-bright); }
.legal-nav a[aria-current="page"] { background: var(--red); color: var(--white); box-shadow: none; }
.legal { max-width: 72ch; }
.legal h2 { margin: 2.2em 0 0.6em; font-style: italic; font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.legal p, .legal li { color: var(--silver); }
.legal p + p { margin-top: 0.9em; }
.legal ul { margin: 0.6em 0 0; padding-left: 1.25em; }
.legal li + li { margin-top: 0.45em; }
.legal li::marker { color: var(--red-bright); }
.legal strong { color: var(--white); }
.legal a { color: var(--white); text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 3px; }
.legal a:hover { color: var(--red-bright); }
.legal .legal__intro { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--white); }
.legal__contact {
  margin-top: 1em; padding: 20px 24px; font-style: normal; line-height: 1.8;
  border-left: 3px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; background: var(--ink-2);
}
@media (min-width: 980px) {
  .legal-wrap { grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 64px; }
  .legal-nav { position: sticky; top: calc(var(--header-h) + 24px); }
  .legal-nav ul { flex-direction: column; }
  .legal > h2:first-of-type { margin-top: 1.6em; }
}
