/* ════════════════════════════════════════════════════════════════════════
   Re4G — section layout. Loaded after base.css, which owns every token.
   Nothing in here introduces a raw colour or font size.
   ════════════════════════════════════════════════════════════════════════ */

/* ══ Navigation ═══════════════════════════════════════════════════════ */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding-inline: var(--gutter);
  background: var(--steel-900);
  color: var(--text-invert);
}

/* The heat bar doubles as the nav's bottom border. */
.site-nav__heat {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  --heat: 0;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-right: auto;
  text-decoration: none;
  color: var(--text-invert);
  min-height: 44px;
}
.site-nav__badge {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  background: var(--teal-500);
  color: var(--steel-900);
  border-radius: var(--r-sm);
  transition: background 220ms var(--ease), transform 400ms var(--ease);
}
.site-nav__brand:hover .site-nav__badge {
  background: var(--ember-500);
  transform: rotate(-90deg);
}
.site-nav__mark {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.site-nav__mark span { color: var(--teal-300); }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--s6);
}
.site-nav__links a:not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--text-invert-muted);
  transition: color 180ms var(--ease);
}
.site-nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 1.5px;
  background: var(--ember-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.site-nav__links a:not(.btn):hover { color: var(--text-invert); }
.site-nav__links a:not(.btn):hover::after,
.site-nav__links a.is-active::after { transform: scaleX(1); }
.site-nav__links a.is-active { color: var(--text-invert); }

.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-right: calc(var(--s2) * -1);
  background: transparent;
  border: 1.5px solid rgba(242, 246, 245, 0.22);
  border-radius: var(--r-md);
  color: var(--text-invert);
  cursor: pointer;
}
.site-nav__toggle .icon--close { display: none; }
.site-nav.is-open .site-nav__toggle .icon--close { display: block; }
.site-nav.is-open .site-nav__toggle .icon--menu { display: none; }

main { padding-top: var(--nav-h); }

/* ── Mobile drawer ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav__toggle { display: inline-flex; }

  .site-nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--s5) var(--gutter) calc(var(--s8) + env(safe-area-inset-bottom));
    background: var(--steel-900);
    overflow-y: auto;
    overscroll-behavior: contain;

    /* Hidden by transform, not display, so it can animate and so focus
       management has something real to work with. */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms var(--ease), transform 240ms var(--ease),
                visibility 0s linear 240ms;
  }
  .site-nav.is-open .site-nav__links {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav__links a:not(.btn) {
    min-height: 62px;
    font-family: var(--font-display);
    font-variation-settings: "wdth" 108;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-invert);
    border-bottom: 1px solid rgba(242, 246, 245, 0.1);
  }
  .site-nav__links a:not(.btn)::after { display: none; }
  .site-nav__links .btn { margin-top: var(--s5); }
}

/* ══ Hero ═════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--steel-900);
  color: var(--text-invert);
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 76px);
}

/* Ambient heat behind the artwork, and a faint machined grid over the
   whole field. Both sit behind content via z-index. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(225, 86, 42, 0.20) 0%, rgba(225, 86, 42, 0) 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(158, 227, 216, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 227, 216, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

/* Capping the whole column also caps the button row, which then wraps for
   no reason. The prose elements carry their own measure instead. */
.hero__copy { max-width: 660px; }
.hero__display { max-width: 14ch; }

.hero__display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 114;
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 0 var(--s5);
}
.hero__display span { display: block; }
.hero__display .accent { color: var(--ember-400); }

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-invert-muted);
  margin-bottom: var(--s7);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s7);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid rgba(242, 246, 245, 0.12);
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
}
.hero__meta li::before {
  content: "";
  width: 6px; height: 6px;
  flex: none;
  background: var(--teal-300);
  transform: rotate(45deg);
}

.hero__art { position: relative; }
.hero__art .forge { width: 100%; height: auto; }

/* ── Hero load sequence ────────────────────────────────────────────────
   One orchestrated entrance rather than scattered effects: the copy rises
   in reading order, then the board arrives, then the parts drop in. */
.hero__in {
  animation: hero-rise 760ms var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ── The forge artwork ─────────────────────────────────────────────── */
.forge__glow {
  transform-origin: 280px 330px;
  animation: forge-breathe 5.5s ease-in-out infinite;
}
@keyframes forge-breathe {
  0%, 100% { opacity: 0.75; transform: scale(0.97); }
  50%      { opacity: 1;    transform: scale(1.04); }
}

.forge__board {
  animation: hero-rise 900ms var(--ease-out) both;
  animation-delay: 420ms;
}

/* Traces draw themselves on, in order, as if power is reaching each pad. */
.forge__trace {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: trace-draw 900ms var(--ease-out) forwards;
  animation-delay: calc(760ms + var(--i) * 110ms);
}
@keyframes trace-draw { to { stroke-dashoffset: 0; } }

.forge__pad {
  opacity: 0;
  animation: pad-on 400ms var(--ease) forwards;
  animation-delay: 1500ms;
}
@keyframes pad-on { to { opacity: 1; } }

/* Components drop into their sockets. */
.forge__part {
  animation: part-drop 720ms var(--ease-out) both;
  animation-delay: calc(900ms + var(--i) * 130ms);
}
@keyframes part-drop {
  from { opacity: 0; transform: translateY(-46px); }
  to   { opacity: 1; transform: none; }
}
.forge__part--cpu { transform-origin: 280px 300px; }

.forge__spark {
  opacity: 0;
  animation: spark-rise 4.2s ease-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes spark-rise {
  0%   { opacity: 0;   transform: translateY(10px) scale(0.6); }
  18%  { opacity: 0.9; }
  100% { opacity: 0;   transform: translateY(-70px) scale(0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .forge__trace { stroke-dashoffset: 0; }
  .forge__pad, .forge__part, .forge__board, .hero__in { opacity: 1; transform: none; }
  .forge__sparks { display: none; }
}

/* ══ Intake strip ═════════════════════════════════════════════════════ */

.intake {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
  padding-block: var(--s5);
  overflow: hidden;
}
.intake__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s3);
  padding-inline: var(--gutter);
}
.intake__viewport {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.intake__track {
  display: flex;
  width: max-content;
  animation: intake-scroll 46s linear infinite;
}
.intake:hover .intake__track { animation-play-state: paused; }
@keyframes intake-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.intake__group { display: flex; flex: none; }
.intake__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s5);
  padding-inline: var(--s5);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  letter-spacing: -0.01em;
  color: var(--steel-700);
  white-space: nowrap;
}
.intake__item::after {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  background: var(--ember-500);
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .intake__viewport { mask-image: none; }
  .intake__track { width: 100%; flex-wrap: wrap; animation: none; padding-inline: var(--gutter); }
  .intake__group:last-child { display: none; }
  .intake__group { flex-wrap: wrap; }
  .intake__item { padding-inline: 0; margin-right: var(--s5); }
}

/* ══ Section headers ══════════════════════════════════════════════════ */

.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
  margin-bottom: clamp(36px, 5vw, 64px);
}
.head__title { max-width: 20ch; }
.head__note { color: var(--text-muted); font-size: var(--fs-body); }
.field-steel .head__note, .field-ink .head__note { color: var(--text-invert-muted); }

@media (max-width: 820px) {
  .head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ══ Services ═════════════════════════════════════════════════════════ */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s5);
}

.service {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--paper-2);
  border-radius: var(--r-lg);
  /* The card flips to a solid steel block on hover — the whole point of
     working in solid colour rather than outlines. */
  transition: background 320ms var(--ease), color 320ms var(--ease),
              transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.service:hover,
.service:focus-within {
  background: var(--steel-900);
  color: var(--text-invert);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  flex: none;
  background: var(--teal-500);
  color: #fff;
  border-radius: var(--r-md);
  transition: background 320ms var(--ease), color 320ms var(--ease);
}
.service:hover .service__icon,
.service:focus-within .service__icon {
  background: var(--ember-500);
  color: #fff;
}

.service__name { margin: 0; transition: color 320ms var(--ease); }
.service:hover .service__name,
.service:focus-within .service__name { color: var(--text-invert); }

.service__summary {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-top: calc(var(--s2) * -1);
  transition: color 320ms var(--ease);
}
.service:hover .service__summary,
.service:focus-within .service__summary { color: var(--ember-300); }

.service__body {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
  transition: color 320ms var(--ease);
}
.service:hover .service__body,
.service:focus-within .service__body { color: var(--text-invert-muted); }

.service__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.service__points li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--text-muted);
  transition: background 320ms var(--ease), color 320ms var(--ease);
}
.service:hover .service__points li,
.service:focus-within .service__points li {
  background: rgba(242, 246, 245, 0.1);
  color: var(--text-invert-muted);
}

/* ══ The reforge sequence ═════════════════════════════════════════════ */

/* Grid and flex children default to min-width:auto, which stops any inner
   scroll container from ever shrinking. Every layout grid here opts out. */
.sequence__layout > *, .compare__layout > *, .request__layout > *,
.hero__grid > *, .head > * { min-width: 0; }

.sequence__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

/* Progress rail: how far through the sequence the active stage is. */
.sequence__rail {
  position: relative;
  height: 3px;
  background: rgba(242, 246, 245, 0.14);
  margin-bottom: var(--s6);
  overflow: hidden;
  border-radius: var(--r-pill);
}
.sequence__rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  background: linear-gradient(90deg, var(--teal-400), var(--ember-500));
  transition: width 620ms var(--ease);
  border-radius: var(--r-pill);
}

/* No gap, so the left borders join into one continuous rail instead of
   reading as five disconnected ticks. */
.sequence__steps { display: flex; flex-direction: column; }

.sequence__step {
  display: flex;
  align-items: center;
  gap: var(--s4);
  width: 100%;
  min-height: 62px;
  padding: var(--s3) var(--s4);
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid rgba(242, 246, 245, 0.14);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text-invert-faint);
  cursor: pointer;
  transition: background 260ms var(--ease), color 260ms var(--ease),
              border-color 260ms var(--ease);
}
.sequence__step:hover {
  background: rgba(242, 246, 245, 0.05);
  color: var(--text-invert-muted);
}
.sequence__step.is-active {
  background: rgba(242, 246, 245, 0.07);
  border-left-color: var(--ember-500);
  color: var(--text-invert);
}
.sequence__step.is-done { color: var(--text-invert-muted); }
.sequence__step.is-done:not(.is-active) { border-left-color: var(--teal-500); }

.sequence__num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  opacity: 0.7;
  flex: none;
}
.sequence__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: -0.01em;
  flex: 1;
}
.sequence__tick {
  flex: none;
  opacity: 0;
  color: var(--teal-300);
  transform: scale(0.7);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.sequence__step.is-done .sequence__tick { opacity: 1; transform: none; }
.sequence__step.is-active .sequence__tick { color: var(--ember-400); }

/* Detail panel */
.sequence__panel {
  position: relative;
  padding: clamp(28px, 3.2vw, 44px);
  background: var(--steel-800);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 340px;
}
.sequence__panel::before {
  content: "";
  position: absolute;
  inset: auto auto -40% -20%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(225, 86, 42, 0.16), transparent 65%);
  pointer-events: none;
}
.sequence__panel-head {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.sequence__panel-icon {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  flex: none;
  background: var(--ember-500);
  color: #fff;
  border-radius: var(--r-md);
}
.sequence__panel-num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  color: var(--ember-300);
  display: block;
  margin-bottom: 2px;
}
.sequence__panel-name {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  margin: 0;
}
.sequence__panel-note {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--teal-200);
  margin-bottom: var(--s4);
}
.sequence__panel-detail {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-invert-muted);
  max-width: 52ch;
}

/* Only the active stage's body is in flow. Without JavaScript the first
   stage stays rendered, so the section still says something. */
.sequence__panel-body { display: none; }
.sequence__panel-body.is-active {
  display: block;
  animation: panel-in 340ms var(--ease-out) both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .sequence__layout { grid-template-columns: minmax(0, 1fr); }

  /* Steps become a horizontal snap rail so five stages do not become five
     screens of scrolling. */
  .sequence__steps {
    flex-direction: row;
    gap: var(--s2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--s3);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .sequence__steps::-webkit-scrollbar { display: none; }
  .sequence__step {
    /* The vertical layout sets width:100%; on a horizontal rail that makes
       one chip fill the viewport and hides the rest of the sequence. */
    width: auto;
    flex: 0 0 auto;
    scroll-snap-align: start;
    gap: var(--s3);
    min-height: 54px;
    border-left: 0;
    border-bottom: 3px solid rgba(242, 246, 245, 0.14);
    border-radius: var(--r-md) var(--r-md) 0 0;
  }
  .sequence__step.is-active { border-bottom-color: var(--ember-500); }
  .sequence__step.is-done:not(.is-active) { border-bottom-color: var(--teal-500); }
  .sequence__tick { display: none; }
  .sequence__panel { min-height: 0; }
}

/* ══ Before / after ═══════════════════════════════════════════════════ */

.compare__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.compare__viewer {
  position: relative;
  --pos: 50%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  aspect-ratio: 640 / 420;
  touch-action: pan-y;
}
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* The "after" layer is revealed by the handle position. */
.compare__img--after { clip-path: inset(0 0 0 var(--pos)); }

.compare__tag {
  position: absolute;
  top: var(--s4);
  z-index: 3;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  pointer-events: none;
}
.compare__tag--before { left: var(--s4); background: var(--ember-500); color: #fff; }
.compare__tag--after  { right: var(--s4); background: var(--teal-600); color: #fff; }

.compare__divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--paper);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(11, 26, 24, 0.14);
}
.compare__knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  background: var(--paper);
  color: var(--steel-900);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

/* The real control is a range input laid over the whole viewer: it brings
   drag, touch and keyboard with it, and needs no custom event handling. */
.compare__range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  background: transparent;
}
.compare__range::-webkit-slider-thumb { appearance: none; width: 52px; height: 100%; }
.compare__range::-moz-range-thumb { width: 52px; height: 100%; border: 0; opacity: 0; }
.compare__viewer:focus-within .compare__knob { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Spec readout.

   One grid for the whole list with the rows set to display:contents, so
   every column sizes to the widest value across all rows. Per-row grids
   size independently and the numbers stagger. */
.compare__specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  margin-top: var(--s6);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.compare__spec { display: contents; }
.compare__spec > * {
  display: flex;
  align-items: center;
  margin: 0;
  padding-block: var(--s3);
  /* Spacing via padding, not column-gap: a gap would break the row rule
     into disconnected segments. */
  padding-inline-end: var(--s4);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.compare__spec > *:nth-child(4n) { padding-inline-end: 0; }
.compare__spec-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.compare__spec-before { color: var(--ember-600); text-decoration: line-through; opacity: 0.75; }
.compare__spec-arrow { color: var(--text-faint); }
.compare__spec-after { color: var(--teal-700); font-weight: 600; }

@media (max-width: 900px) {
  .compare__layout { grid-template-columns: minmax(0, 1fr); }
}

/* ══ Philosophy ═══════════════════════════════════════════════════════ */

.philosophy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Circuit traces, drawn in CSS from repeating gradients so there is no
   extra asset to load. Kept faint: it is texture, not content. */
.philosophy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(53, 199, 182, 0.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(-45deg, rgba(53, 199, 182, 0.05) 0 1px, transparent 1px 44px);
  mask-image: radial-gradient(ellipse 80% 90% at 80% 50%, #000, transparent 75%);
}
.philosophy__statement {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  max-width: 22ch;
  margin: 0 0 var(--s6);
  text-wrap: balance;
}
.philosophy__statement em {
  font-style: normal;
  color: var(--ember-400);
}
.philosophy__support {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--text-invert-muted);
  max-width: 54ch;
}

/* ══ FAQ ══════════════════════════════════════════════════════════════ */

.faq__list {
  border-top: 1px solid var(--line);
  max-width: 900px;
}

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  width: 100%;
  min-height: 74px;
  padding-block: var(--s4);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  list-style: none;
  transition: color 200ms var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--teal-700); }

.faq__sign {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--teal-700);
  transition: background 220ms var(--ease), color 220ms var(--ease),
              border-color 220ms var(--ease), transform 300ms var(--ease);
}
.faq__item[open] .faq__sign {
  background: var(--ember-500);
  border-color: var(--ember-500);
  color: #fff;
  transform: rotate(135deg);
}

.faq__a {
  padding-bottom: var(--s5);
  padding-right: var(--s8);
  color: var(--text-muted);
  max-width: 68ch;
}
.faq__item[open] .faq__a { animation: faq-open 320ms var(--ease-out) both; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .faq__a { padding-right: 0; }
}

/* ══ Service request ══════════════════════════════════════════════════ */

.request__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.request__aside .eyebrow { color: var(--ember-500); }
.request__steps { margin-top: var(--s6); display: grid; gap: var(--s4); }
.request__stepline {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.request__stepline b {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex: none;
  background: var(--steel-900);
  color: var(--text-invert);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.request__skip {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 40ch;
}
.request__skip a { font-weight: 600; }

.request__card {
  padding: clamp(24px, 3vw, 42px);
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.request__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s5);
}
.request__grid > .field-group--wide { grid-column: 1 / -1; }

/* The category fieldset carries a legend rather than a label, so it needs
   the label styling applied by element instead of by class. */
.request__grid fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.request__grid legend {
  padding: 0;
  margin-bottom: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Category as chips: six tap targets beat a native select on a phone, and
   the options stay visible so nobody has to go looking for them. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.chip {
  position: relative;
  /* Inline by default, which gives the absolutely positioned input a 34px
     line box instead of the chip's full 44px height. */
  display: inline-flex;
}
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s2) var(--s5);
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--paper-2);
  color: var(--text-muted);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease);
}
.chip:hover span { background: var(--paper-3); color: var(--text); }
.chip input:checked + span {
  background: var(--steel-900);
  border-color: var(--steel-900);
  color: var(--text-invert);
}
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

/* A long, explicit label beats a short vague one, but it has to be allowed
   to wrap rather than force the card wider than the screen. */
.request__actions .btn { white-space: normal; text-align: center; max-width: 100%; }

.request__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s6);
}
.request__note {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  max-width: 34ch;
}

/* Result banner. One element, three states, driven by a data attribute. */
.request__result {
  display: none;
  align-items: flex-start;
  gap: var(--s3);
  margin-top: var(--s5);
  padding: var(--s4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.request__result.is-shown { display: flex; }
.request__result[data-state="ok"] {
  background: var(--teal-100);
  color: var(--teal-800);
}
.request__result[data-state="error"] {
  background: var(--ember-100);
  color: var(--ember-700);
}
.request__result .icon { flex: none; margin-top: 2px; }
.request__result a { color: inherit; font-weight: 600; }

@media (max-width: 900px) {
  .request__layout { grid-template-columns: minmax(0, 1fr); }
}

/* ══ Contact ══════════════════════════════════════════════════════════ */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s5);
  margin-top: clamp(32px, 4vw, 56px);
}

.contact__card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--steel-800);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text-invert);
  transition: background 280ms var(--ease), transform 280ms var(--ease);
}
.contact__card:hover {
  background: var(--teal-600);
  color: var(--text-invert);
  transform: translateY(-4px);
}
.contact__card:hover .contact__kicker { color: var(--teal-100); }
.contact__card:hover .contact__note { color: rgba(255, 255, 255, 0.85); }

.contact__kicker {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-300);
  transition: color 280ms var(--ease);
}
.contact__value {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  letter-spacing: -0.015em;
  /* Wraps at sensible points instead of mid-word. */
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.contact__value--long {
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  letter-spacing: 0;
}

.contact__note {
  font-size: var(--fs-sm);
  color: var(--text-invert-muted);
  margin-top: auto;
  transition: color 280ms var(--ease);
}

/* ══ Footer ═══════════════════════════════════════════════════════════ */

.footer { background: var(--ink); color: var(--text-invert); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(48px, 6vw, 80px);
}
.footer__brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: var(--s3);
  margin-bottom: var(--s4);
  text-decoration: none;
  color: var(--text-invert);
}
.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--text-invert-muted);
  max-width: 34ch;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-invert-faint);
  margin-bottom: var(--s4);
}
.footer__col ul { display: grid; gap: var(--s2); }

/* <address> renders italic by default in every browser. */
.footer__nap { font-style: normal; }
.footer__place {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: var(--fs-sm);
  color: var(--text-invert-faint);
}
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: var(--fs-sm);
  color: var(--text-invert-muted);
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.footer__col a:hover { color: var(--teal-300); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s5);
  border-top: 1px solid rgba(242, 246, 245, 0.1);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-invert-faint);
}

@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__intro { grid-column: 1 / -1; }
}

/* ══ Mobile WhatsApp bar ══════════════════════════════════════════════ */

.mobile-cta {
  position: fixed;
  z-index: 90;
  left: var(--s4); right: var(--s4);
  bottom: calc(var(--s4) + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 56px;
  padding: var(--s3) var(--s5);
  background: var(--teal-600);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-body);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform 320ms var(--ease);
}
.mobile-cta:hover { color: #fff; }
/* Only appears once the hero is behind you — before that, the hero's own
   buttons are on screen and a floating bar would just be in the way. */
.mobile-cta.is-shown { transform: none; }

@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 84px; }
}

/* ══ Narrow-screen adjustments ════════════════════════════════════════ */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: 46ch; }
  .hero__art { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .hero__actions .btn,
  .request__actions .btn { width: 100%; }
  .request__note { max-width: none; }
  .service { padding: var(--s5); }
  .compare__knob { width: 44px; height: 44px; }
  .compare__tag { top: var(--s3); font-size: 0.6875rem; }
  .compare__tag--before { left: var(--s3); }
  .compare__tag--after { right: var(--s3); }
  .compare__specs { font-size: 0.75rem; }
  .compare__spec > * { padding-inline-end: var(--s3); }
}
