/* ==========================================================================
   Code-Connect — landing page
   --------------------------------------------------------------------------
   The page is a fixed-pitch service rail. One ink (cyan) on true black holds
   the chrome; running copy and figures live only inside punched white windows.
   State is a mark, never a hue: a cross, a band, a fold, a pin.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* The palette is closed at five values. Nothing else enters the page. */
  --ink:        #08090a;   /* true black ground                    */
  --ink-2:      #101416;   /* recessed cell                        */
  --navy:       #00205d;   /* deep field, the second ground        */
  --cyan:       #54c2e5;   /* the ink — holds a third of any screen */
  --mint:       #79c5b6;   /* the committed mark, nothing else     */
  --paper:      #ffffff;   /* punched window                       */

  /* Roles derived from the five. No sixth hue is introduced. */
  --cyan-dim:   #9fdcf0;
  --cyan-deep:  #1e6f8c;
  --on-ink:     #f2fafd;   /* 18.4:1 on --ink                      */
  --on-ink-2:   #a9c9d6;   /*  8.1:1 on --ink                      */
  --on-paper:   #0b0f11;
  --on-paper-2: #4a575d;   /*  7.5:1 on --paper                    */
  --edge:       rgba(84, 194, 229, .26);
  --edge-soft:  rgba(84, 194, 229, .13);

  /* Navy carries its own two-step text ramp; paper carries three grounds. */
  --on-navy:    #cbdcea;   /* 11.0:1 on --navy                     */
  --on-navy-2:  #a8c2da;   /*  8.4:1 on --navy                     */
  --on-ink-3:   #93a9b3;   /*  8.1:1 on --ink, the footer's floor  */
  --field:      #f4f7f9;   /* a form field at rest; --paper focused */
  --on-field-2: #5a666c;   /*  5.5:1 on --field — placeholder only */
  --note:       #edf5f9;   /* the status note's ground             */
  --on-note:    #10333f;   /* 12.1:1 on --note                     */
  --on-paper-3: #155467;   /*  8.4:1 on --paper — field errors     */

  /* Rail geometry. Every horizontal measure on the page is a multiple of the
     pitch, so nothing ever lands between two frames. */
  --pitch: 172px;
  --perf-h: 14px;
  --gut: clamp(20px, 4.5vw, 56px);
  --maxw: 1280px;

  /* One authored easing. Exponential decay out of an already-visible state. */
  --ease: cubic-bezier(.16, .84, .28, 1);

  color-scheme: dark;
}

@media (max-width: 720px) {
  :root { --pitch: 138px; --perf-h: 11px; }
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* The rail's own head is sticky; anchored frames must clear it. */
  scroll-padding-top: 168px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font: 400 clamp(15px, 1.05vw, 16.5px)/1.65 "Barlow", system-ui, sans-serif;
}

/* The grain sits over the whole ground at low opacity: the field is coarse,
   not glossy. It never intercepts a pointer. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .07;
  filter: url(#grain);
  background: var(--paper);
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Oswald", "Barlow", sans-serif;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -.01em;
}

p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--cyan); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Custom scrollbar: the page's own chrome, not the browser's. */
* { scrollbar-color: var(--cyan-deep) var(--ink-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--cyan-deep); border: 3px solid var(--ink-2); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; top: -100px; left: var(--gut); z-index: 200;
  background: var(--cyan); color: var(--ink);
  padding: 12px 20px;
  font-family: "Oswald", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* --------------------------------------------------------------------------
   3. The perforation — the rail's signature edge
   -------------------------------------------------------------------------- */

/* A band of cyan punched with square sprocket holes at the pitch's own rhythm.
   It is drawn with gradients so it costs no request and scales at any width. */
.perf {
  height: var(--perf-h);
  background:
    repeating-linear-gradient(
      to right,
      var(--ink) 0 7px,
      transparent 7px 20px
    ),
    var(--cyan);
  background-position: 6px center, 0 0;
  flex: none;
}

.perf--nav { height: 5px; opacity: .95; }

.perf--bin {
  height: 3px;
  background: var(--cyan);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   4. Icons
   -------------------------------------------------------------------------- */

/* One drawn set, one stroke weight, square caps and mitred joins so the
   geometry stays as hard as the rail's. */
.ico {
  width: 24px; 
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex: none;
}
.ico--fr  { width: 30px; height: 30px; stroke-width: 1.4; }
.ico--wide{ width: 40px; height: 40px; stroke-width: 1.2; }
.ico--mk  { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   5. Ticket — the primary control
   -------------------------------------------------------------------------- */

/* Sprocket dots on both ends: the button is a punched frame, like everything
   else that rides the rail. */
.ticket {
  --dot: rgba(8, 9, 10, .82);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border: 0;
  background: var(--cyan);
  color: var(--ink);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 9px; bottom: 9px;
  width: 4px;
  background:
    repeating-linear-gradient(to bottom, var(--dot) 0 4px, transparent 4px 10px);
}
.ticket::before { left: 9px; }
.ticket::after  { right: 9px; }
.ticket:hover   { background: var(--cyan-dim); }
.ticket:active  { transform: translateY(1px); }

.ticket--sm { min-height: 42px; padding: 0 26px; font-size: 13px; }

.ticket--line {
  background: transparent;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
  --dot: rgba(84, 194, 229, .85);
}
.ticket--line:hover { background: rgba(84, 194, 229, .1); }

/* WhatsApp reads as a second channel, not a second primary. */
.wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  box-shadow: inset 0 0 0 1px var(--edge);
  color: var(--on-ink);
  transition: box-shadow .18s var(--ease), background .18s var(--ease);
}
.wa:hover { box-shadow: inset 0 0 0 1px var(--cyan); background: rgba(84, 194, 229, .07); }
.wa__t {
  white-space: nowrap;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--on-ink-2);
}
.wa__n {
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 16px;
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 9, 10, .93);
  border-bottom: 1px solid var(--edge-soft);
}
@supports (backdrop-filter: blur(8px)) {
  .nav { backdrop-filter: blur(10px); }
}

.nav__in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--gut);
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__brand img { width: 164px; height: auto; }

.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  font-family: "Oswald", sans-serif;
  font-weight: 500; font-size: 13px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--on-ink-2);
  padding: 8px 0;
  transition: color .18s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--cyan);
  transition: right .24s var(--ease);
}
.nav__links a:hover { color: var(--on-ink); }
.nav__links a:hover::after { right: 0; }

.nav__burger {
  visibility: hidden;
  margin-left: auto;
  width: 46px; height: 46px;
  background: none; border: 1px solid var(--edge);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__burger-bars { display: grid; gap: 5px; }
.nav__burger-bars i { display: block; width: 20px; height: 2px; background: var(--cyan); }

@media (max-width: 1040px) {
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--edge);
    padding: 8px var(--gut) 20px;
   visibility: hidden;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--edge-soft); font-size: 15px; }
  .nav__links a::after {visibility: hidden; }
  .nav__cta {visibility: hidden; }
  .nav__burger { display: flex; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; padding-top: clamp(36px, 4.4vw, 62px); overflow: clip; }

/* The hero's ground is black and its hard edge is the perforated rail that
   closes it; nothing is drawn across the open field. */

.hero__in {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gut) clamp(30px, 3.4vw, 46px);
}

.hero__copy { max-width: none; }

.hero__h {
  font-size: clamp(2.7rem, 7.4vw, 5.05rem);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.028em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__h em {
  font-style: normal;
  color: var(--cyan);
}

.hero__lead {
  max-width: 54ch;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--on-ink-2);
  margin-bottom: 26px;
}

.hero__act {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero__sig {
  font-size: 14px;
  color: var(--on-ink-2);
}
.hero__sig strong { color: var(--on-ink); font-weight: 600; }

@media (min-width: 900px) {
  .hero__lead { max-width: 46ch; }
}

/* On phones the hero is one full-width column: the angled field would cut it
   in half, and the two controls need the whole measure to stay on one line. */
@media (max-width: 720px) {
  .hero__h { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .hero__lead { font-size: 1rem; }
  .hero__act { flex-direction: column; align-items: stretch; }
  .hero__act .ticket, .hero__act .wa { width: 100%; }
  .wa { justify-content: flex-start; }
}

/* The bench — the hero's right-hand field.
   -------------------------------------------------------------------------
   The hero stays one column until there is real room for a second one. Below
   1040px the figure is gone entirely, not shrunk: this audience arrives on a
   mid-range phone over cellular, the copy and the two controls need the whole
   measure, and an ornament that survives by getting smaller is an ornament. */

.hero__fig { display: none; }

@media (min-width: 1040px) {
  .hero__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 44%);
    align-items: center;
    column-gap: clamp(32px, 4.4vw, 76px);
  }
  .hero__fig { display: block; }
  .hero__lead { max-width: 42ch; }
}

.bench { display: block; width: 100%; height: auto; }

.bench__perf {
  stroke: var(--cyan);
  stroke-width: 4;
  stroke-dasharray: 7 13;
}

.bench__route {
  fill: none;
  stroke: var(--edge-soft);
  stroke-width: 1;
}

/* One dash, 62 units long, on a 1088-unit loop — the exact length of the
   route, so the pulse leaves the last frame as it re-enters the first. */
.bench__pulse {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-dasharray: 62 1026;
  animation: bench-run 10.8s linear infinite;
}

@keyframes bench-run { to { stroke-dashoffset: -1088; } }

.bench__win { fill: var(--ink-2); stroke: var(--edge); stroke-width: 1; }

.bench__ico {
  fill: none;
  stroke: var(--cyan-deep);
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Each frame runs the same 10.8s loop offset by its own index, so a frame is
   lit at the instant the pulse reaches it. Lit means punched: the window goes
   to paper and the icon inverts to ink, the page's one way of saying open. */
.bench__f .bench__win {
  animation: bench-win 10.8s linear infinite;
  animation-delay: calc(var(--k) * 1.35s);
}

.bench__f .bench__ico {
  animation: bench-ico 10.8s linear infinite;
  animation-delay: calc(var(--k) * 1.35s);
}

/* The frame snaps closed rather than fading. Interpolating paper down to the
   recessed black walks through a stack of greys that are in no palette here,
   and a punched window is binary anyway: it is open or it is not. */
@keyframes bench-win {
  0%, 12.9% { fill: var(--paper); stroke: var(--cyan); }
  13%, 100% { fill: var(--ink-2); stroke: var(--edge); }
}

@keyframes bench-ico {
  0%, 12.9% { stroke: var(--on-paper); }
  13%, 100% { stroke: var(--cyan-deep); }
}

/* Stopped, the panel is still the whole idea: nine frames on one route. */
@media (prefers-reduced-motion: reduce) {
  .bench__pulse {
    animation: none;
    stroke-dasharray: none;
    stroke: var(--edge);
    stroke-width: 1;
  }
  .bench__f .bench__win,
  .bench__f .bench__ico { animation: none; }
}

/* --------------------------------------------------------------------------
   8. The strip — the catalogue index, and the page's spine
   --------------------------------------------------------------------------
   The rail is not a hero ornament: it sticks under the header and rides the
   whole service region, so wherever the reader is, the catalogue is still on
   screen and the frame they are reading carries the flag.
   -------------------------------------------------------------------------- */

.spine { position: relative; }

.strip {
  position: sticky;
  top: 82px;
  z-index: 60;
  background: var(--ink);
  border-top: 1px solid var(--edge-soft);
  padding-top: 18px;
  box-shadow: 0 14px 26px -14px rgba(0,0,0,0);
  transition: box-shadow .28s var(--ease);
  min-height: 172px; /* igual al pitch */
}
@media (max-width: 1040px) { .strip { top: 71px; } }
@media (max-width: 620px) { html { scroll-padding-top: 148px; } }

/* Stuck, the rail keeps its perforation, its address and its controls, and
   drops the frame bodies to a single line of cell labels. */
.strip .cel a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 152px; /* altura estable */
  padding: 18px 16px 20px;
  background: var(--ink-2);
  color: var(--on-ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.strip .cel__n,
.strip .cel a .ico {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease;
}

.strip .cel__t {
  margin-top: 0;
  font-size: 12.5px;
}

.strip .rail {
  padding-bottom: 0;
}

.strip .strip__head {
  padding-bottom: 10px;
}

/* Estado sticky */
.strip.is-stuck {
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .9);
}

.strip.is-stuck .cel__n,
.strip.is-stuck .cel a .ico {
  opacity: 0;
  visibility: hidden;
}

.strip.is-stuck .cel a {
  /* No altera el flujo ni la altura del rail */
  min-height: 152px;
  padding: 11px 14px 13px;
}

.strip.is-stuck .cel__t {
  font-size: 12px;
  transform: translateY(-3px);
}

.strip__head {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gut) 14px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.strip__label {
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--cyan);
}

.strip__count {
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 12px;
  letter-spacing: .14em;
  color: var(--on-ink-2);
  font-variant-numeric: tabular-nums;
}

.strip__nav { margin-left: auto; display: flex; gap: 6px; }

.stepper {
  width: 38px; height: 38px;
  background: none;
  border: 1px solid var(--edge);
  color: var(--cyan);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.stepper:hover { background: rgba(84, 194, 229, .1); border-color: var(--cyan); }
.stepper:disabled { opacity: .32; cursor: default; }
.stepper:disabled:hover { background: none; border-color: var(--edge); }

/* The rail itself. Scroll snapping is the mechanism, not a decoration: the
   strip settles on a frame's leading perforation and never between two. */
.rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gut);
  padding: 0 var(--gut) 22px;
  border-bottom: 1px solid var(--edge-soft);
  -ms-overflow-style: none;
  scrollbar-width: none;
  scrollbar-gutter: stable;
}
.rail::-webkit-scrollbar { visibility: hidden; }

.cel {
  flex: none;
  width: var(--pitch);
  scroll-snap-align: start;
  border-right: 1px solid var(--edge-soft);
}
.cel:first-child { border-left: 1px solid var(--edge-soft); }

.cel a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 152px;
  padding: 18px 16px 20px;
  background: var(--ink-2);
  color: var(--on-ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cel a:hover { background: var(--navy); color: var(--on-ink); }
.cel a:hover .ico { color: var(--cyan); }

.cel__n {
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 11px;
  letter-spacing: .16em; color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.cel a .ico { color: var(--on-ink-2); margin-top: 4px; transition: color .2s var(--ease); }

.cel__t {
  margin-top: auto;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 13.5px;
  line-height: 1.25;
  text-transform: uppercase; letter-spacing: .045em;
  color: var(--on-ink);
}

/* The folded tape flag marks the frame you are on. It is a mark, not a hue. */
.cel.is-at a::before {
  content: "";
  position: absolute;
  top: -18px; left: 14px;
  width: 22px; height: 26px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
}

/* Estado compacto */
.strip.is-compact {
  min-height: 50px;
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .9);
}

.strip.is-compact .cel {
  height: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.strip.is-compact .cel a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  height: 50px;
  min-height: 50px;
  padding: 0 8px;
  overflow: visible;
}

/* Ocultar iconos y numeración */
.strip.is-compact .cel a .ico,
.strip.is-compact .cel__n {
  display: none;
}

/* Texto completo y centrado */
.strip.is-compact .cel__t {
  position: relative;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 4px;

  opacity: 1;
  visibility: visible;
  z-index: 2;

  font-size: 12px;
  line-height: 1.15;
  text-align: center;

  /* Permite que el texto ocupe varias líneas */
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
}


/* --------------------------------------------------------------------------
   9. Sections
   -------------------------------------------------------------------------- */

.sec { padding-block: clamp(76px, 11vw, 148px); }
.sec--deep { background: var(--ink-2); }

.sec__head { margin-bottom: clamp(40px, 5.5vw, 68px); max-width: 62ch; }

.sec__h {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.024em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.sec__lead {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.6;
  color: var(--on-ink-2);
  max-width: 58ch;
}



/* --------------------------------------------------------------------------
   10. Frames — a service in a punched white window
   -------------------------------------------------------------------------- */

.frames { display: grid; gap: 1px; background: var(--edge-soft); }
.frames--2 { grid-template-columns: repeat(2, 1fr); }
.fr--w2 { grid-column: span 2; }
.fr--w3 { grid-column: span 3; }
.frames--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 940px) {
  .frames--3 { grid-template-columns: repeat(2, 1fr); }
  .fr--w3 { grid-column: span 2; }
}
@media (max-width: 620px) {
  .frames--2, .frames--3 { grid-template-columns: 1fr; }
  .fr--w2, .fr--w3 { grid-column: span 1; }
}

.fr { 
  position: relative; 
  background: var(--ink); 
  transition: transform .22s var(--ease);
  scroll-margin-top: 200px; 
}
.fr:target {
  background-color: var(--cyan-deep); /* Color cuando está seleccionado */
}
.fr:hover { transform: translateY(-6px); }
.fr:hover .fr__n { transform: translateX(3px); }
.fr:hover .fr__win .ico { color: var(--cyan-deep); }

/* The frame's own sprocket edge, running down its left side. */
.fr__edge {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 9px;
  background: repeating-linear-gradient(
    to bottom,
    var(--cyan) 0 6px,
    transparent 6px 18px
  );
  opacity: .5;
  transition: opacity .22s var(--ease);
}
.fr:hover .fr__edge { opacity: 1; }

/* Running copy lives only here: black ink on punched white. */
.fr__win {
  margin-left: 9px;
  background: var(--paper);
  color: var(--on-paper);
  padding: clamp(26px, 2.6vw, 38px) clamp(22px, 2.4vw, 34px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fr__n {
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: .18em; color: var(--cyan-deep);
  display: inline-block; transition: transform .22s var(--ease);
  font-variant-numeric: tabular-nums;
}

.fr__win .ico { color: var(--navy); transition: color .22s var(--ease); }

.fr__h {
  font-size: clamp(1.14rem, 1.5vw, 1.42rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -.005em;
  color: var(--on-paper);
}

.fr__d { color: var(--on-paper-2); font-size: .97rem; line-height: 1.58; }

.fr--w2 .fr__win, .fr--w3 .fr__win { display: grid; }
@media (min-width: 941px) {
  .fr--w2 .fr__win, .fr--w3 .fr__win {
    grid-template-columns: 1.1fr 1fr;
    grid-auto-rows: min-content;
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: 12px;
    align-content: start;
  }
  /* Rows are placed explicitly: implicit placement lets the readout column
     stretch a row and open a hole above the icon. */
  .fr--w2 .fr__win, .fr--w3 .fr__win {
    grid-template-rows: auto auto auto 1fr;
  }
  .fr--w2 .fr__n,    .fr--w3 .fr__n    { grid-area: 1 / 1; }
  .fr--w2 .ico--fr,  .fr--w3 .ico--fr  { grid-area: 2 / 1; }
  .fr--w2 .fr__h,    .fr--w3 .fr__h    { grid-area: 3 / 1; }
  .fr--w2 .fr__d,    .fr--w3 .fr__d    { grid-area: 4 / 1; align-self: start; }
  .fr--w2 .fr__l, .fr--w3 .fr__l {
    grid-area: 1 / 2 / -1 / 3;
    align-self: start;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid rgba(11, 15, 17, .14);
    padding-left: clamp(20px, 2.4vw, 34px);
  }
  .fr--w2 .fr__h, .fr--w3 .fr__h { font-size: clamp(1.3rem, 1.9vw, 1.75rem); }

  /* The full-row window reads as a band across the sheet: one row, no
     vertical field left over. */
  .fr--w3 .fr__win {
    grid-template-columns: auto 1fr minmax(220px, .8fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: clamp(22px, 2.6vw, 40px);
  }
  .fr--w3 .fr__n   { grid-area: 1 / 1; }
  .fr--w3 .ico--fr { grid-area: 2 / 1; align-self: start; }
  .fr--w3 .fr__h   { grid-area: 1 / 2; }
  .fr--w3 .fr__d   { grid-area: 2 / 2; }
  .fr--w3 .fr__l   { grid-area: 1 / 3 / -1 / 4; }
}

.fr__l {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 15, 17, .14);
  display: grid;
  gap: 7px;
}
.fr__l li {
  position: relative;
  padding-left: 20px;
  font-size: .88rem;
  color: var(--on-paper-2);
}
/* The included-item mark: a small punched square, the rail's own vocabulary. */
.fr__l li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  background: var(--cyan-deep);
}

/* --------------------------------------------------------------------------
   11. Wide frame — rank is cell count, not size
   -------------------------------------------------------------------------- */

.wide { position: relative; background: var(--navy); }
.wide .perf:last-child { position: absolute; left: 0; right: 0; bottom: 0; }

.wide__in {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(44px, 5.4vw, 76px) clamp(28px, 4vw, 60px) clamp(52px, 6vw, 86px);
  align-items: center;
}
@media (max-width: 860px) { .wide__in { grid-template-columns: 1fr; } }

.wide__n {
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: .18em; color: var(--cyan);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.wide__h {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  text-transform: uppercase;
  color: var(--paper);
}

.wide__r .ico { color: var(--cyan); margin-bottom: 16px; }

.wide__sub {
  font-size: clamp(1.16rem, 1.6vw, 1.4rem);
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.wide__d {
  color: var(--on-navy);
  line-height: 1.66;
  max-width: 56ch;
  margin-bottom: 26px;
}

/* --------------------------------------------------------------------------
   12. Marks — how we work
   -------------------------------------------------------------------------- */

.marks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) { .marks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .marks { grid-template-columns: 1fr; } }

.mk {
  position: relative;
  transition: transform .22s var(--ease);
  padding: clamp(40px, 4vw, 54px) clamp(22px, 2.4vw, 32px) clamp(30px, 3vw, 40px);
  border-left: 1px solid var(--edge-soft);
  display: grid;
  gap: 12px;
  align-content: start;
}

/* The committed mark: the same folded tape flag the rail drops on the frame
   you are reading, in mint. Mint appears here and nowhere else on the page.
   It is a shape from this page's own vocabulary rather than an edge stripe,
   and it never sits beside a claim where a cross would read as a negation. */
.mk::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(22px, 2.4vw, 32px);
  width: 20px;
  height: 25px;
  background: var(--mint);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

.mk:first-child { border-left: 0; padding-left: 0; }
.mk:first-child::before { left: 0; }
@media (max-width: 980px) { .mk:nth-child(3) { border-left: 0; padding-left: 0; } .mk:nth-child(3)::before { left: 0; } }
@media (max-width: 560px) { .mk { border-left: 0; padding-left: 0; } .mk::before { left: 0; } }

.mk:hover { transform: translateY(-6px); }
.mk:hover .ico { transform: scale(1.12); }
.mk .ico { color: var(--cyan); transition: transform .22s var(--ease); }

.mk__h {
  font-size: 1.06rem;
  text-transform: uppercase;
  letter-spacing: -.004em;
  line-height: 1.2;
}

.mk__d { color: var(--on-ink-2); font-size: .93rem; line-height: 1.58; }

/* --------------------------------------------------------------------------
   13. The bin — what is set aside stays reachable
   -------------------------------------------------------------------------- */

.bin {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
  padding-top: 46px;
}
@media (max-width: 880px) { .bin { grid-template-columns: 1fr; gap: 44px; } }

.pin { position: relative; padding-top: 26px; }

/* The wire and pin that hold each trim below the rail. */
.pin__wire {
  position: absolute;
  top: 0; left: 34px;
  width: 1px; height: 26px;
  background: var(--edge);
}
.pin__wire::before {
  content: "";
  position: absolute;
  top: -5px; left: -4px;
  width: 9px; height: 9px;
  background: var(--cyan);
  border-radius: 50%;
}

.pin__card {
  background: var(--ink-2);
  border: 1px solid var(--edge-soft);
  padding: clamp(24px, 2.6vw, 32px);
  display: grid;
  gap: 10px;
  align-content: start;
  height: 100%;
}

/* A slot is honestly empty: the punched corner says unavailable. */
.pin.is-slot .pin__card {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(84, 194, 229, .05) 0 6px,
      transparent 6px 14px
    ),
    var(--ink-2);
  border-style: dashed;
}

.pin__tag {
  justify-self: start;
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink);
  background: var(--cyan-dim);
  padding: 4px 9px;
}

.pin__sector {
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--cyan);
}

.pin__h {
  font-size: 1.14rem;
  text-transform: uppercase;
  line-height: 1.2;
}

.pin__d { color: var(--on-ink-2); font-size: .93rem; line-height: 1.58; }

.pin__res {
  border-top: 1px solid var(--edge-soft);
  padding-top: 12px;
  color: var(--cyan-dim);
  font-size: .93rem;
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}
@media (max-width: 940px) { .contact { grid-template-columns: 1fr; } }

.card-erika {
  margin-top: 40px;
  background: var(--navy);
}

.card-erika__in { padding: clamp(24px, 2.8vw, 34px); display: grid; gap: 8px; }

.card-erika__role {
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--cyan);
}

.card-erika__name {
  font-family: "Oswald", sans-serif; font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  text-transform: uppercase; letter-spacing: -.012em;
  color: var(--paper);
  margin-bottom: 8px;
}

.chan { display: grid; gap: 2px; margin-bottom: 14px; }
.chan a {
  display: flex; align-items: center; gap: 11px;
  min-height: 46px;
  padding: 4px 0;
  color: var(--on-navy);
  border-bottom: 1px solid rgba(84, 194, 229, .22);
  transition: color .18s var(--ease);
}
.chan a:hover { color: var(--cyan); }
.chan .ico { width: 19px; height: 19px; color: var(--cyan); }

.card-erika__loc { color: var(--on-navy-2); font-size: .9rem; line-height: 1.55; }

/* The form is a punched window: black ink on white, like every other place
   the page asks a person to read carefully. */
.form { position: relative; background: var(--paper); color: var(--on-paper); }

.form__in {
  padding: clamp(26px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .form__in { grid-template-columns: 1fr; } }

.f { display: grid; gap: 6px; }
.f--full { grid-column: 1 / -1; }

.f label {
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--on-paper-2);
}
.f .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }

.f input, .f select, .f textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--field);
  border: 1px solid rgba(11, 15, 17, .2);
  color: var(--on-paper);
  border-radius: 0;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.f textarea { min-height: 118px; resize: vertical; line-height: 1.55; }

.f input::placeholder, .f textarea::placeholder { color: var(--on-field-2); }

.f input:focus, .f select:focus, .f textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--cyan-deep);
  box-shadow: inset 0 0 0 1px var(--cyan-deep);
}

.f select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--on-paper-2) 50%),
    linear-gradient(135deg, var(--on-paper-2) 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.f.is-bad input, .f.is-bad select, .f.is-bad textarea {
  border-color: var(--cyan-deep);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--cyan-deep);
}
.f.is-bad label::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 7px;
  vertical-align: 1px;
  background: var(--cyan-deep);
}

.err { font-size: .86rem; color: var(--on-paper-3); min-height: 0; }
.err:empty { visibility: hidden; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__act {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
}
.form__note { font-size: .86rem; color: var(--on-paper-2); }

.form__status {
  grid-column: 1 / -1;
  font-size: .93rem;
  padding: 13px 15px;
  border-top: 2px solid var(--cyan-deep);
  background: var(--note);
  color: var(--on-note);
}
.form__status:empty { visibility: hidden; }

.ticket[aria-busy="true"] { opacity: .72; cursor: progress; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.foot { background: var(--ink); border-top: 1px solid var(--edge-soft); }

.foot__in {
  padding-block: clamp(44px, 5vw, 68px);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .foot__in { grid-template-columns: 1fr; gap: 32px; } }

.foot__brand img { width: 148px; }
.foot__tag {
  margin-top: 16px;
  font-family: "Oswald", sans-serif; font-weight: 500;
  font-size: 14.5px; line-height: 1.55;
  letter-spacing: .015em;
  color: var(--cyan);
}

.foot__nav { display: grid; gap: 2px; align-content: start; }
.foot__nav a {
  min-height: 40px; display: flex; align-items: center;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 13px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--on-ink-2);
  transition: color .16s var(--ease);
}
.foot__nav a:hover { color: var(--cyan); }

.foot__meta { display: grid; gap: 8px; font-size: .9rem; color: var(--on-ink-2); }
.foot__meta a { border-bottom: 1px solid var(--edge); padding-bottom: 1px; }
.foot__meta a:hover { color: var(--cyan); }
.foot__c { margin-top: 10px; color: var(--on-ink-3); }

/* --------------------------------------------------------------------------
   16. Floating WhatsApp — mobile only
   -------------------------------------------------------------------------- */

.fab {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 90;
  width: 56px; height: 56px;
  visibility: hidden;
  align-items: center; justify-content: center;
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
}
.fab .ico { width: 27px; height: 27px; stroke-width: 1.7; }
@media (max-width: 780px) { .fab { display: flex; } }

/* --------------------------------------------------------------------------
   17. Motion — one authored moment, plus the rail's own settle
   -------------------------------------------------------------------------- */

/* Content is visible by default. Only when JS confirms it can also remove the
   state does the entrance get armed, so nothing can be trapped off-screen. */
.js .rise {
  opacity: 0;
  transform: translateY(18px);
}
.js .rise.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .62s var(--ease) calc(var(--i, 0) * 70ms),
    transform .62s var(--ease) calc(var(--i, 0) * 70ms);
}

/* Anchors must clear both the header and the stuck rail. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .rise.is-in { opacity: 1; transform: none; transition: none; }
  .rail { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Printing the page should still give a readable sheet. */
@media print {
  body::before, .fab, .nav, .strip__nav { visibility: hidden; }
  body { background: #fff; color: #000; }
}
@media (max-width: 1040px) {
  .fr {
    scroll-margin-top: 200px;
  }
}

@media (max-width: 620px) {
  .fr {
    scroll-margin-top: 300px;
  }
}