@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=Reenie+Beanie&family=Schibsted+Grotesk:wght@400;500;700&family=Share+Tech+Mono&display=swap");

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.mono { font-family: "Share Tech Mono", ui-monospace, monospace; }
.display {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.86;
}
.hand { font-family: "Reenie Beanie", cursive; font-weight: 400; }

/* nav — same language as proto_A / proto_C */
.nav {
  position: sticky; top: 8px; z-index: 40;
  margin: 8px auto 0; width: calc(100% - 32px); max-width: 1180px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.word { display: flex; flex-direction: column; line-height: 1; }
.word b {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-size: 16px; letter-spacing: 0.12em; font-weight: 800;
}
.word span {
  font-family: "Share Tech Mono", monospace;
  font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav .cta {
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--cta-bd);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600;
}

/* intro */
.intro {
  min-height: 64vh;
  display: flex; align-items: flex-end;
  padding: 48px 28px 56px;
}
.intro-inner { max-width: 1180px; margin: 0 auto; width: 100%; }
.kicker {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.intro .kicker { max-width: 46rem; line-height: 1.45; }
.stage-copy .kicker {
  font-family: "Reenie Beanie", cursive;
  font-size: 28px; letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1;
}
.intro h1 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.84;
  font-size: clamp(44px, 8.2vw, 104px);
  max-width: 16ch;
}
.marker {
  display: block; width: min(320px, 70vw); height: 18px;
  margin: 10px 0 22px; overflow: visible;
}
.marker path {
  fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round;
  stroke-linejoin: round;
}
.intro p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 40rem; }
.intro .hint {
  margin-top: 22px;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}


/* transformer hero + cuaderno de obra */
.xf-hero {
  padding: 48px 28px 28px;
}
.xf-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.xf-copy h1 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.84;
  font-size: clamp(44px, 6.6vw, 92px);
  max-width: 18ch;
}
.xf-copy .hand-accent {
  font-family: "Reenie Beanie", cursive;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  color: var(--ink);
  margin: 6px 0 0;
}
.xf-copy .marker { margin: 6px 0 20px; }
.xf-copy .lede {
  font-size: 17px; line-height: 1.55;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 22px;
}
.xf-copy .btn, .btn {
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--cta-bd);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
}
.plate {
  position: relative;
  border: 1px solid var(--frame-bd);
  background: var(--frame-bg);
  padding: 10px;
}
.plate .reg {
  position: absolute; width: 8px; height: 8px;
  border: 1px solid var(--accent); border-radius: 50%;
  background: var(--bg); z-index: 2;
}
.plate .reg.tl { top: -5px; left: -5px; }
.plate .reg.tr { top: -5px; right: -5px; }
.plate .reg.bl { bottom: -5px; left: -5px; }
.plate .reg.br { bottom: -5px; right: -5px; }
.plate .pic {
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #161616;
}
.plate .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tape {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: var(--accent); color: var(--accent-ink);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em;
  padding: 4px 9px;
  transform: rotate(-2deg);
  border: 1px solid var(--cta-bd);
}
.annot {
  position: absolute; right: 18px; bottom: 44px; z-index: 2;
  font-family: "Reenie Beanie", cursive;
  font-size: 28px;
  color: var(--accent);
  transform: rotate(-4deg);
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.35));
}
.caption {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 4px 2px;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted);
}

.cuaderno { padding: 24px 28px 64px; }
.cuaderno-inner { max-width: 1180px; margin: 0 auto; width: 100%; }
.cuaderno h2 {
  font-family: "Reenie Beanie", cursive;
  font-weight: 400;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 0.9;
  margin: 0 0 8px;
}
.cuaderno .sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 22px;
  max-width: 36rem;
}
.cuaderno-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.ccard {
  position: relative;
  border: 1px solid var(--frame-bd);
  background: var(--frame-bg);
  padding: 8px;
  min-width: 0;
}
.ccard .pic { height: 240px; overflow: hidden; background: #161616; }
.ccard .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccard .cap { padding: 10px 6px 8px; }
.ccard h3 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.9;
  font-size: 26px;
  margin-bottom: 6px;
}
.ccard p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.ccard .credit {
  margin-top: 8px;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}

.line-intro {
  min-height: 0;
  padding: 72px 28px 40px;
  align-items: flex-end;
}

/* sticky powerline */
.line-track { position: relative; height: 480vh; }
.line-sticky {
  position: sticky; top: 0;
  height: 100svh; height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 72px 20px 18px;
}
.line-frame {
  flex: 1;
  max-width: 1180px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column;
  border: 1px solid var(--frame-bd);
  border-radius: 4px;
  background: var(--frame-bg);
  position: relative;
  min-height: 0;
}
.reg {
  position: absolute; width: 8px; height: 8px;
  border: 1px solid var(--accent); border-radius: 50%;
  background: var(--bg); z-index: 2;
}
.reg.tl { top: -5px; left: -5px; }
.reg.tr { top: -5px; right: -5px; }
.reg.bl { bottom: -5px; left: -5px; }
.reg.br { bottom: -5px; right: -5px; }

.line-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--frame-bd);
}
.line-toolbar .fig {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.steps { display: flex; gap: 4px; flex-wrap: wrap; }
.steps button {
  appearance: none; background: transparent; color: var(--muted);
  border: 1px solid transparent; border-radius: 2px;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; cursor: default; pointer-events: none;
}
.steps button.on {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--cta-bd);
}

.line-scene {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--frame-bg);
  overflow: visible;
}
.line-art {
  position: relative;
  flex: 0 0 auto;
}
.line-svg {
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
}
.notes {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.note {
  position: absolute;
  opacity: 0;
  transform: translateY(6px) rotate(-3deg);
  transition: opacity 0.35s ease, transform 0.35s ease;
  color: var(--ink);
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--frame-bg) 85%, transparent));
  max-width: 28%;
}
.note.on { opacity: 1; transform: rotate(-3deg); }
.note.r { transform: translateY(6px) rotate(4deg); }
.note.r.on { transform: rotate(4deg); }
.note span {
  font-family: "Reenie Beanie", cursive;
  font-size: clamp(26px, 2.15vw, 36px);
  line-height: 0.95;
  display: block;
  white-space: nowrap;
}
.note svg { display: block; overflow: visible; margin-top: 0; }
.note path, .note polyline {
  fill: none; stroke: var(--ink);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.note polygon { fill: var(--ink); stroke: none; }
.line-svg .grid { stroke: var(--ink); stroke-opacity: var(--grid-op); stroke-width: 0.7; }
.line-svg .ghost { fill: none; stroke: var(--ink); stroke-opacity: var(--ghost-op); stroke-width: 1.8; }
.line-svg .structure {
  fill: none; stroke: var(--ink); stroke-width: 2.55;
  stroke-linecap: square; stroke-linejoin: miter;
}
.line-svg .fine {
  fill: none; stroke: var(--ink); stroke-width: 1.6;
  stroke-linecap: square; stroke-linejoin: miter;
}
.line-svg .cable {
  fill: none; stroke: var(--ink); stroke-width: 3.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.line-svg .guard {
  fill: none; stroke: var(--ink); stroke-width: 2.5;
  stroke-linecap: round;
}
.line-svg .cable.hot, .line-svg .guard.hot { stroke: var(--accent); }
.line-svg .dim {
  fill: none; stroke: var(--ink); stroke-opacity: 0.35; stroke-width: 1;
}
.line-svg .lbl {
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em;
  fill: var(--muted);
}
.line-svg .lbl.on { fill: var(--accent); }
.line-svg .hatch { fill: url(#earth-hatch); stroke: none; }
.line-svg .hole-fill { fill: var(--hole-fill); stroke: none; }
.line-svg .titleblk {
  fill: none; stroke: var(--frame-bd); stroke-width: 1.2;
}
.line-svg .pulse {
  fill: var(--accent); stroke: var(--accent-ink); stroke-width: 1;
  filter: url(#pulse-glow);
  opacity: 0;
}
.line-svg .pulse.on { opacity: 1; }
.line-svg .bolt { fill: var(--accent); opacity: 0; }
.line-svg .bolt.on { opacity: 1; }


/* data strip — figures sit above the drawing, not on it */
.stats.stat-strip {
  position: relative;
  inset: auto;
  width: 100%;
  z-index: 1;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--frame-bd);
  flex: 0 0 auto;
}
.stat-strip .stat {
  position: relative;
  left: auto; right: auto; top: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 8px 12px 10px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--frame-bd);
  border-radius: 0;
  opacity: 0;
  transform: none;
  transition: opacity 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.stat-strip .stat:last-child { border-right: 0; }
.stat-strip .stat.on { opacity: 1; }
.stat-strip .stat.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--frame-bd);
}
.stat-strip .stat .num { font-size: clamp(32px, 3vw, 48px); }

/* floating stats on the drawing (desktop) */
.stats {
  position: relative;
  inset: auto;
  pointer-events: none;
}
.stat {
  position: absolute;
  min-width: 148px;
  padding: 8px 10px 10px;
  background: color-mix(in srgb, var(--frame-bg) 88%, transparent);
  border: 1px solid var(--frame-bd);
  border-radius: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.stat.on { opacity: 1; transform: none; }
.stat.active { border-color: var(--accent); }
.stat .num {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; font-size: 46px; line-height: 0.86;
  letter-spacing: -0.03em; text-transform: uppercase;
  color: var(--ink);
}
.stat.active .num { color: var(--accent-ink); }
.stat.active {
  background: var(--accent);
  color: var(--accent-ink);
}
.stat.active .unit, .stat.active .example-tag { color: var(--accent-ink); opacity: 0.85; }
.stat .unit {
  font-family: "Share Tech Mono", monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}
.example-tag {
  display: inline-block;
  margin-top: 6px;
  font-family: "Share Tech Mono", monospace;
  font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px dashed color-mix(in srgb, currentColor 55%, transparent);
  padding: 2px 5px;
  color: var(--muted);
}
/* overlay slots unused */




.line-caption {
  background: var(--frame-bg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--frame-bd);
}
.stage-copy h2 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.86;
  font-size: clamp(32px, 4.2vw, 52px);
  margin: 4px 0 8px;
  display: inline-block;
  position: relative;
}
.stage-copy h2 .under {
  position: absolute; left: 0; right: 12%; bottom: -2px;
  height: 7px; width: 72%;
  pointer-events: none;
}
.stage-copy h2 .under path {
  fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round;
}
.stage-copy p { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 36rem; }
.stat-mobile { display: none; }
.capstone {
  position: relative;
  text-align: right;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid var(--frame-bd);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.35s ease, border-color 0.35s ease;
}
.capstone.on { opacity: 1; transform: none; }
.capstone.active {
  background: var(--accent); border-color: var(--cta-bd); color: var(--accent-ink);
}
.capstone .num {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; font-size: 32px; line-height: 0.86;
  letter-spacing: -0.03em; text-transform: uppercase;
  max-width: 12ch;
}
.capstone .unit {
  font-family: "Share Tech Mono", monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 4px; color: var(--muted);
}
.capstone.active .unit, .capstone.active .example-tag { color: var(--accent-ink); opacity: 0.85; }


/* services */
.services {
  padding: 96px 28px 32px;
}
.services-inner { max-width: 1180px; margin: 0 auto; width: 100%; }
.services h2 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.84;
  font-size: clamp(48px, 8vw, 96px);
  margin: 0 0 6px;
}
.services .marker {
  display: block; width: min(240px, 55vw); height: 18px;
  margin: 4px 0 32px; overflow: visible;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--frame-bd);
  background: var(--frame-bg);
  position: relative;
}
.service-card {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--frame-bd);
  min-width: 0;
}
.service-card:nth-child(3n) { border-right: 0; }
.service-card:nth-child(n+4) { border-top: 1px solid var(--frame-bd); }
.svc-num {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.service-card h3 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.025em; line-height: 0.9;
  font-size: clamp(26px, 2.5vw, 38px);
  margin-bottom: 14px;
}
.service-card p {
  font-size: 15px; line-height: 1.5;
  color: var(--muted);
  max-width: 28ch;
}

.outro {
  padding: 64px 28px 48px;
  max-width: 1180px; margin: 0 auto;
}
.outro p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 36rem; }

.foot {
  padding: 28px; text-align: center;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted);
  border-top: 1px solid var(--hair);
  background: var(--bg);
}
.note-proto {
  position: fixed; left: 16px; right: auto; bottom: 16px; z-index: 50;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border: 1px solid var(--hair);
  padding: 6px 8px; border-radius: 4px;
}


.stat { min-width: 168px; max-width: 250px; }
.stat .sub, .capstone .sub {
  font-family: "Share Tech Mono", monospace;
  font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px; line-height: 1.35;
}
.stat.active .sub, .capstone.active .sub { color: var(--accent-ink); opacity: 0.88; }
.stat-mobile .sub { margin-top: 2px; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .intro { min-height: 56vh; padding: 32px 20px 36px; }
  .intro h1 { font-size: clamp(36px, 11.2vw, 52px); max-width: 14ch; }
  .line-intro { min-height: 0; padding: 36px 20px 28px; }
  .xf-hero { padding: 28px 20px 16px; }
  .xf-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .xf-copy h1 { font-size: clamp(34px, 10.4vw, 48px); max-width: 14ch; }
  .xf-copy .hand-accent { font-size: 32px; }
  .xf-copy .lede { font-size: 15px; margin-bottom: 16px; }
  .plate .pic { height: auto; aspect-ratio: 16 / 9; }
  .annot { font-size: 22px; bottom: 56px; right: 12px; }
  .tape { top: 14px; left: 12px; font-size: 10px; }
  .caption { flex-direction: column; gap: 2px; }
  .cuaderno { padding: 12px 20px 40px; }
  .cuaderno h2 { font-size: clamp(36px, 11vw, 48px); }
  .cuaderno .sub { font-size: 14px; margin-bottom: 16px; }
  .cuaderno-grid { grid-template-columns: 1fr; gap: 14px; }
  .ccard .pic { height: 200px; }
  .ccard h3 { font-size: 24px; }
  .services { padding: 36px 20px 20px; }
  .services h2 { font-size: clamp(40px, 13vw, 56px); }
  .services .marker { margin: 2px 0 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card {
    border-right: 0;
    border-bottom: 1px solid var(--frame-bd);
    padding: 16px 16px 18px;
  }
  .service-card:last-child { border-bottom: 0; }
  .svc-num { margin-bottom: 10px; }
  .service-card h3 { font-size: clamp(24px, 8vw, 32px); margin-bottom: 8px; }
  .service-card p { font-size: 13px; max-width: none; line-height: 1.4; }
  .line-sticky { padding: 64px 8px 8px; }
  .line-toolbar { padding: 8px 10px 6px; }
  .line-toolbar .fig { font-size: 9px; letter-spacing: 0.1em; }
  .steps button { padding: 2px 5px; font-size: 8px; }
  .steps .step-name { display: none; }
  .hide-sm { display: none; }
  .stats, .stats.stat-strip {
    position: relative;
    inset: auto;
    width: 100%;
    z-index: 1;
  }
  .stat-strip { display: none; }
  .line-caption {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px 10px;
  }
  .stage-copy .kicker { font-size: 22px; }
  .stage-copy h2 { font-size: clamp(26px, 8.4vw, 34px); margin: 0 0 4px; }
  .stage-copy h2 .under { height: 6px; bottom: -1px; }
  .stat-mobile {
    display: block;
    position: relative;
    min-width: 0;
    opacity: 1;
    transform: none;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .stat-mobile .num { font-size: 40px; }
  .capstone { text-align: left; min-width: 0; padding: 8px 10px; }
  .capstone .num { font-size: 28px; }
  .stage-copy p { font-size: 13px; line-height: 1.4; }
  .note-proto { display: none; }

  /* Handwritten notes stay on screen; pull them inward so nothing clips. */
  .notes { display: block; overflow: visible; }
  .note {
    max-width: 42%;
  }
  .note span {
    font-size: 20px;
    white-space: normal !important;
    line-height: 0.9;
  }
  .note svg { display: none; }
  .note[data-id="barrena"] { left: 8% !important; top: 30% !important; max-width: 28%; }
  .note[data-id="perforacion"] { left: 6% !important; top: 76% !important; max-width: 36%; }
  .note[data-id="anclajes"] { left: 60% !important; top: 42% !important; max-width: 32%; }
  .note[data-id="copperweld"] { left: 4% !important; top: 76% !important; max-width: 30%; }
  .note[data-id="contrapeso"] { left: 30% !important; top: 58% !important; max-width: 46%; }
  .note[data-id="t02"] { display: none; }
  .note[data-id="t01"] { left: 5% !important; top: 3% !important; max-width: 30%; }
  .note[data-id="tipoh"] { left: 40% !important; top: 3% !important; max-width: 30%; }
  .note[data-id="t04"] { left: 72% !important; top: 3% !important; max-width: 26%; }
  .note[data-id="pararrayos"] { left: 4% !important; top: 2% !important; max-width: 28%; }
  .note[data-id="guarda"] { left: 38% !important; top: 10% !important; max-width: 36%; }
  .note[data-id="aaac"] { left: 38% !important; top: 40% !important; max-width: 40%; }
}

@media (max-width: 800px) and (max-height: 760px) {
  .stage-copy p { display: none; }
  .stat-mobile .sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stat, .capstone, .stage-copy { transition: none; }
}
html.is-reduced .line-track { height: auto; }
html.is-reduced .line-sticky { position: relative; height: auto; min-height: 100svh; }
html.is-reduced .pulse { display: none; }


/* —— v6: pinned transformer diagram (palette C, Big Shoulders + Reenie Beanie) —— */
body.on-xf-pin .nav {
  background: color-mix(in srgb, var(--bg-dark) 82%, transparent);
  color: var(--on-dark);
  border-color: color-mix(in srgb, var(--on-dark) 22%, transparent);
}
body.on-xf-pin .word span { color: color-mix(in srgb, var(--on-dark) 60%, transparent); }
body.on-xf-pin .nav-links { color: color-mix(in srgb, var(--on-dark) 72%, transparent); }

.xf-pin-track {
  position: relative;
  height: 360vh;
  background: var(--bg-dark);
  color: var(--on-dark);
}
.xf-pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 28px 40px;
  align-items: center;
}
.xf-diagram {
  position: relative;
  height: min(70vh, 560px);
  border: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent);
  border-radius: 4px;
  padding: 16px 8px 8px;
  background: color-mix(in srgb, var(--bg-dark) 70%, #0c0c0c);
}
.xf-diagram svg { width: 100%; height: calc(100% - 22px); display: block; }
.xf-diagram .fig {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--on-dark) 55%, transparent);
}
.xf-part {
  fill: none;
  stroke: color-mix(in srgb, var(--on-dark) 35%, transparent);
  stroke-width: 1.6;
  transition: stroke 0.35s, stroke-width 0.35s, opacity 0.35s;
  opacity: 0.35;
}
.xf-part.is-on { stroke: var(--accent); stroke-width: 2.4; opacity: 1; }
.xf-part.is-done { stroke: var(--accent); stroke-width: 1.8; opacity: 0.7; }
.xf-lbl {
  font-family: "Reenie Beanie", cursive;
  font-size: 22px;
  fill: color-mix(in srgb, var(--on-dark) 40%, transparent);
  transition: fill 0.35s, opacity 0.35s;
  opacity: 0;
  letter-spacing: 0.01em;
}
.xf-lbl.is-on { fill: var(--accent); opacity: 1; }
.xf-leader {
  stroke: var(--accent);
  stroke-width: 1;
  fill: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.xf-leader.is-on { opacity: 1; }

.xf-copy-col { position: relative; min-height: 300px; }
.xf-copy-col .kicker {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.xf-copy-col h2 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.86;
  font-size: clamp(36px, 5.2vw, 64px);
  margin: 0 0 14px;
  max-width: 14ch;
}
.xf-copy-col p {
  font-size: 16px; line-height: 1.55;
  color: color-mix(in srgb, var(--on-dark) 78%, transparent);
  max-width: 26rem;
}
.xf-copy-col .hand-note {
  font-family: "Reenie Beanie", cursive;
  font-size: 28px;
  color: var(--accent);
  margin-top: 12px;
  line-height: 1;
}
.xf-steps { display: flex; gap: 8px; margin: 0 0 16px; }
.xf-steps i {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--accent);
  display: block;
}
.xf-steps i.is-on { background: var(--accent); }
.xf-panel {
  opacity: 0;
  transform: translateY(10px);
  position: absolute;
  inset: 36px 0 0 0;
  pointer-events: none;
}
.xf-panel.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.35s, transform 0.35s;
}

@media (max-width: 800px) {
  .xf-pin-sticky { grid-template-columns: 1fr; padding-top: 76px; gap: 8px; }
  .xf-diagram { height: 38vh; }
  .xf-copy-col { min-height: 220px; }
  .xf-copy-col h2 { font-size: clamp(28px, 8.5vw, 40px); }
  .xf-copy-col p { font-size: 14px; }
  .xf-lbl { font-size: 18px; }
  .service-card:nth-child(n+4) { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .xf-part, .xf-lbl, .xf-leader, .xf-panel { transition: none; }
}


/* —— v7: Equipos y suministro —— */
.equipos {
  padding: 72px 28px 40px;
}
.equipos-inner { max-width: 1180px; margin: 0 auto; width: 100%; }
.equipos .kicker {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.equipos h2 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.84;
  font-size: clamp(48px, 8vw, 96px);
  margin: 0 0 6px;
  max-width: 14ch;
}
.equipos .marker {
  display: block; width: min(240px, 55vw); height: 18px;
  margin: 4px 0 18px; overflow: visible;
}
.eq-lede {
  font-size: 16px; line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 4px;
}
.eq-hand {
  font-family: "Reenie Beanie", cursive;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 28px;
}
.eq-card .eq-hand {
  font-size: 24px;
  margin: 0 0 14px;
  color: var(--ink);
}
.eq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--frame-bd);
  background: var(--frame-bg);
}
.eq-card {
  padding: 28px 28px 32px;
  min-width: 0;
  border-right: 1px solid var(--frame-bd);
  border-bottom: 1px solid var(--frame-bd);
}
.eq-card:nth-child(2n) { border-right: 0; }
.eq-card:nth-child(n+3) { border-bottom: 0; }
.eq-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.eq-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border: 1px solid var(--cta-bd);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.eq-icon svg {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eq-num {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.eq-card h3 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.025em; line-height: 0.9;
  font-size: clamp(28px, 3vw, 42px);
  margin: 0 0 6px;
  max-width: 16ch;
}
.eq-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eq-card li {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  padding: 8px 0;
  border-top: 1px solid var(--hair);
}
.eq-card li:first-child { border-top: 1px solid var(--hair); }
.eq-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 36ch;
}

@media (max-width: 800px) {
  .equipos { padding: 36px 20px 24px; }
  .equipos h2 { font-size: clamp(40px, 13vw, 56px); }
  .eq-lede { font-size: 14px; }
  .eq-hand { font-size: 24px; margin-bottom: 18px; }
  .eq-card .eq-hand { font-size: 22px; margin-bottom: 10px; }
  .eq-grid { grid-template-columns: 1fr; }
  .eq-card {
    border-right: 0;
    border-bottom: 1px solid var(--frame-bd);
    padding: 20px 16px 22px;
  }
  .eq-card:nth-child(n+3) { border-bottom: 1px solid var(--frame-bd); }
  .eq-card:last-child { border-bottom: 0; }
  .eq-card h3 { font-size: clamp(26px, 8vw, 34px); }
  .eq-card li { font-size: 14px; padding: 7px 0; }
  .eq-icon { width: 44px; height: 44px; }
  .eq-icon svg { width: 26px; height: 26px; }
}

/* v8: 5 services, last card spans 2 cols on desktop */
@media (min-width: 801px) {
  .service-card:nth-child(5) { grid-column: span 2; border-right: 0; }
}

/* v8: mobile transformer pin, keep all copy visible */
@media (max-width: 800px) {
  .xf-pin-sticky { height: 100vh; height: 100svh; padding-top: 70px; gap: 6px; align-content: start; }
  .xf-diagram { height: 27vh; height: 27svh; padding: 10px 6px 6px; }
  .xf-steps { margin: 6px 0 10px; }
  .xf-copy-col { min-height: 0; }
  .xf-copy-col .kicker { font-size: 10px; margin-bottom: 6px; }
  .xf-copy-col h2 { font-size: clamp(26px, 7.4vw, 34px); margin-bottom: 8px; max-width: none; }
  .xf-copy-col p { font-size: 14px; line-height: 1.42; max-width: none; }
  .xf-copy-col .hand-note { font-size: 22px; margin-top: 6px; }
}

/* v8: darker mustard for small kickers on light backgrounds (legibility) */
.kicker, .equipos .kicker { color: #7a5a00; font-weight: 700; }
.xf-copy-col .kicker { color: var(--accent); font-weight: 400; }

/* logo C: original Hydrowell wordmark in black */
.word b.wm { line-height: 0; }
.brand .word b.wm img { width: auto; height: 14px; border-radius: 0; display: block; }
.brand .word b.wm .wm-light { display: none; }
body.on-xf-pin .brand .word b.wm .wm-dark { display: none; }
body.on-xf-pin .brand .word b.wm .wm-light { display: block; }
.word b.wm + span { margin-top: 4px; }
.word span { word-spacing: -0.4em; }
@media (max-width: 640px) { .intro .kicker { letter-spacing: 0.1em; word-spacing: -0.3em; } }
