/* ============================================================
   JalonTekh — Editorial / Technical Journal · v2
   Apple-style sans · Yellow→Orange→Red gradient woven through
   · Soft rounded geometry, no sharp corners.
   ============================================================ */

:root {
  /* Paper (light) — plain white, Apple-style */
  --paper:      #ffffff;
  --paper-2:    #f5f5f7;
  --paper-ink:  #1d1d1f;
  --paper-dim:  #6e6e73;
  --paper-rule: #d2d2d7;

  /* Ink (dark) */
  --ink:        #0a0a0c;
  --ink-2:      #14141a;
  --ink-paper:  #f5f5f7;
  --ink-dim:    #86868b;
  --ink-rule:   #2a2a30;

  /* Brand — gradient ramp from the reference image */
  --y:  #fcd116;
  --o:  #ff7e00;
  --r:  #ff2400;

  --grad:      linear-gradient(180deg, #fcd116 0%, #ff8a00 50%, #ff2400 100%);
  --grad-diag: linear-gradient(135deg, #fcd116 0%, #ff8a00 50%, #ff2400 100%);
  --grad-soft: linear-gradient(180deg, rgba(252,209,22,.12), rgba(255,36,0,.12));

  /* Type — all SF Pro–style Inter */
  --display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Radii — generous & consistent */
  --r-xs:  10px;
  --r-sm:  14px;
  --r-md:  20px;
  --r-lg:  28px;
  --r-xl:  40px;
  --r-pill:9999px;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(.22,.61,.36,1);

  /* ---- macOS-style depth (layered drop shadow stacks) ---- */
  --depth-1:
    0 1px 1px rgba(20,17,10,0.04),
    0 2px 4px -1px rgba(20,17,10,0.06),
    0 6px 12px -4px rgba(20,17,10,0.10);

  --depth-2:
    0 1px 1px rgba(20,17,10,0.05),
    0 4px 10px -2px rgba(20,17,10,0.10),
    0 16px 32px -10px rgba(20,17,10,0.18),
    0 32px 60px -24px rgba(20,17,10,0.26);

  --depth-3:
    0 1px 2px rgba(0,0,0,0.20),
    0 6px 14px -4px rgba(0,0,0,0.28),
    0 22px 44px -14px rgba(0,0,0,0.38),
    0 50px 100px -30px rgba(0,0,0,0.55);

  /* ---- macOS window chrome tokens ---- */
  --win-bg:        #1c1c1f;
  --win-bg-soft:   #18181b;
  --win-bar:       #232327;
  --win-border:    rgba(255,255,255,0.08);
  --win-divider:   rgba(255,255,255,0.06);
  --win-text:      #ececec;
  --win-text-dim:  rgba(236,236,236,0.55);
}

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

html { scroll-behavior: smooth; }

html, body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -.005em;
  width: 100%;
  max-width: 100vw;
}

/* Defensive: prevent any descendant from forcing horizontal scroll on mobile */
.chapter { overflow-x: clip; }
img, svg { max-width: 100%; }
* { min-width: 0; }            /* allow flex/grid children to shrink properly */
p, h1, h2, h3, h4, h5, span, a { overflow-wrap: break-word; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Emphasis = gradient highlight (the signature move)
   Padding + box-decoration-break prevents italic glyphs being clipped
   by the inline bounding box or multi-line breaks. */
em {
  font-style: italic;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding: 0 0.08em 0.05em 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  line-height: inherit;
}

::selection { background: var(--o); color: #14110a; }
::-moz-selection { background: var(--o); color: #14110a; }

/* =========================================================
   CROSSHAIR CURSOR — small "+" follows pointer
   Only enabled on wide desktops with a true mouse — narrow
   windows or touch devices get the native cursor back.
   ========================================================= */
.crosshair { display: none; }

@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  html, body, a, button, input, select, textarea { cursor: none; }

  .crosshair {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 30px; height: 30px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-100px, -100px);
    color: var(--o);
    will-change: transform;
    transition: transform .08s linear, color .25s, opacity .25s;
    filter: drop-shadow(0 0 6px rgba(255, 120, 0, 0.35));
  }
  .crosshair .ch-shape {
    width: 100%; height: 100%;
    transition: transform .25s var(--ease);
  }
  .crosshair.over-link .ch-shape { transform: scale(1.6) rotate(45deg); }
  .crosshair.over-link { color: var(--y); }
}

/* =========================================================
   STATUS BAR — floating rounded "island"
   ========================================================= */
.status {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 900px;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 6px 8px 6px 14px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--r-pill);
  color: var(--paper-ink);
  transition: background .35s, color .35s, border-color .35s, box-shadow .35s;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.04),
    0 1px 2px rgba(0,0,0,0.05),
    0 8px 24px -8px rgba(0,0,0,0.10),
    0 24px 48px -20px rgba(0,0,0,0.16);
}
.status.on-ink {
  background: rgba(28,28,31,0.6);
  color: var(--ink-paper);
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 1px 2px rgba(0,0,0,0.3),
    0 8px 24px -8px rgba(0,0,0,0.4),
    0 24px 48px -20px rgba(0,0,0,0.55);
}
.status-left { display: flex; align-items: center; }
.status-right {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
}

/* Section nav — all sections shown as compact pills, active is highlighted */
.status-nav {
  display: flex; align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  scroll-padding: 16px;
}
.status-nav::-webkit-scrollbar { display: none; }

.status-link {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--paper-ink);
  opacity: .55;
  scroll-snap-align: center;
  transition: opacity .25s, background .25s, color .25s, transform .25s;
  white-space: nowrap;
}
.status-link:hover { opacity: 1; background: rgba(0,0,0,.04); }
.status-link.active {
  opacity: 1;
  background: rgba(0,0,0,.06);
  font-weight: 600;
}

.status.on-ink .status-link { color: var(--ink-paper); }
.status.on-ink .status-link:hover { background: rgba(255,255,255,.08); }
.status.on-ink .status-link.active { background: rgba(255,255,255,.10); }

/* Logos */
.logo-link {
  display: inline-flex; align-items: center;
  padding: 2px;
  border-radius: var(--r-sm);
  transition: transform .25s var(--ease), opacity .25s;
}
.logo-link:hover { transform: scale(1.06); }
.logo-mark {
  display: block;
  height: 22px;
  width: auto;
  object-fit: contain;
}
.logo-light { display: none; }
.status.on-ink .logo-dark  { display: none; }
.status.on-ink .logo-light { display: block; }
.logo-mark-lg { height: 32px; }
/* (status-section / status-dot removed in the new nav-bar layout) */

@media (max-width: 760px) {
  .status {
    grid-template-columns: auto 1fr auto;
    padding: 5px 6px 5px 10px;
    gap: 8px;
  }
  .status-link { padding: 5px 10px; font-size: 11.5px; }
  .status-nav { justify-content: flex-start; }
}

/* =========================================================
   CHAPTERS
   ========================================================= */
.chapter {
  position: relative;
  padding: clamp(72px, 9vw, 130px) var(--gutter);
}
.chapter.paper { background: var(--paper); color: var(--paper-ink); }
.chapter.ink   { background: var(--ink);   color: var(--ink-paper); }

/* Section-specific gradient backdrops (the "wallpaper" behind windows) */
#s0 {
  background:
    radial-gradient(1000px 700px at 90% -10%, rgba(255,140,0,0.16), transparent 60%),
    radial-gradient(800px 600px at -5% 40%, rgba(252,209,22,0.12), transparent 60%),
    var(--paper);
}
#s2 {
  background:
    radial-gradient(1000px 700px at 5% 0%, rgba(252,209,22,0.20), transparent 60%),
    radial-gradient(1000px 700px at 100% 100%, rgba(255,36,0,0.14), transparent 60%),
    var(--paper);
}
#s4 {
  background:
    radial-gradient(800px 600px at 100% 0%, rgba(255,140,0,0.12), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(252,209,22,0.08), transparent 60%),
    var(--paper);
}
#s1 {
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(255,140,0,0.08), transparent 70%),
    var(--ink);
}
#s3 {
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(252,209,22,0.07), transparent 70%),
    var(--ink);
}
#s5 {
  background:
    radial-gradient(900px 600px at 50% 100%, rgba(255,80,0,0.09), transparent 70%),
    var(--ink);
}

.chapter-head {
  max-width: 920px;
  margin: 0 auto clamp(40px, 5vw, 70px);
}
.ch-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--body);
  font-size: 13px; font-weight: 500;
  letter-spacing: -.005em;
  opacity: .55;
  margin-bottom: 28px;
}
.ch-rule { flex: 0 0 60px; height: 1px; background: currentColor; opacity: .35; }

/* =========================================================
   DISPLAY TYPE — Apple-clean sans
   ========================================================= */
.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.6vw, 7rem);
  line-height: .95;
  letter-spacing: -.045em;
}
.display.large {
  font-size: clamp(2.2rem, 5.6vw, 4.8rem);
  max-width: 14ch;
  letter-spacing: -.04em;
}
.muted { opacity: .35; }
.display .d-line { display: block; }

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  max-width: 52ch;
  margin-top: clamp(20px, 2.5vw, 32px);
  color: var(--paper-dim);
  letter-spacing: -.01em;
}
.chapter.ink .lede { color: var(--ink-dim); }
.kicker {
  font-family: var(--body);
  font-size: 13px; font-weight: 500;
  letter-spacing: -.005em;
  margin-bottom: 32px;
  opacity: .55;
}

/* =========================================================
   PAGE RULE
   ========================================================= */
.page-rule {
  height: 1px; width: 100%;
  background: var(--paper-rule); opacity: .22;
}
.chapter.ink .page-rule { background: var(--ink-paper); opacity: .15; }

/* =========================================================
   § 00 — HERO
   ========================================================= */
.chapter#s0 { padding-top: 80px; padding-bottom: 0; }
@media (max-width: 980px) { .chapter#s0 { padding-bottom: 40px; } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(40px, 7vw, 90px) 0;
  align-items: center;
  max-width: var(--max); margin: 0 auto;
}
/* Desktop: buttons span full width below the two columns */
.hero-grid .hero-actions {
  grid-column: 1 / -1;
  margin-top: -20px;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    padding-bottom: 50px;
  }
  .hero-grid .hero-content  { order: 1; }
  .hero-grid .margin-note   { order: 2; display: flex; justify-content: center; }
  .hero-grid .margin-note .brand-card { max-width: 180px; }
  .hero-grid .hero-actions   { order: 3; grid-column: 1; }
}

.margin-note {
  font-family: var(--body);
  font-size: 14px; line-height: 1.55;
  color: var(--paper-dim);
}
.margin-note p { margin-bottom: 14px; }
.mn-num {
  display: inline-block;
  min-width: 22px; font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.left-note { padding-top: 60px; }
@media (max-width: 980px) { .left-note, .right-note { padding-top: 0; } }

.hero-content { padding-top: 20px; }
.hero-content .display { margin-top: 8px; }

.lede strong {
  font-weight: 600;
  letter-spacing: -.01em;
}

.hero-actions {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 14px;
}
/* Buttons – fully rounded pills */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: 15px; font-weight: 500;
  letter-spacing: -.01em;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--paper-rule);
  transition: gap .25s var(--ease), background .25s, color .25s, transform .25s;
}
.link-arrow:not(.ghost) {
  background: var(--grad-diag);
  color: #1a0a00;
  border-color: transparent;
  box-shadow: 0 12px 32px -14px rgba(255,80,0,.55);
}
.link-arrow:not(.ghost):hover {
  gap: 18px; transform: translateY(-2px);
  box-shadow: 0 16px 38px -14px rgba(255,80,0,.75);
}
.link-arrow.ghost {
  background: rgba(255,255,255,.6);
  color: var(--paper-ink);
  border-color: rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
  box-shadow: var(--depth-1);
}
.link-arrow.ghost:hover { gap: 14px; background: #fff; transform: translateY(-2px); }
.link-arrow .arrow { font-size: 14px; }

/* Right-side filebox — rendered as a macOS window */
.filebox {
  background: var(--win-bg);
  color: var(--win-text);
  font-family: var(--body); font-size: 14px;
  line-height: 1.7;
  border: 1px solid var(--win-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--depth-3);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.filebox:hover { transform: translateY(-4px); }

.filebox-head {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  padding: 12px 16px;
  background: var(--win-bar);
  border-bottom: 1px solid var(--win-divider);
  color: var(--win-text-dim);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.005em;
}
.filebox-head::before {
  content: '';
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow:
    18px 0 0 #febc2e,
    36px 0 0 #28c840,
    inset 0 -1px 0 rgba(0,0,0,0.12);
}
.filebox-meta { display: none; }
.filebox-body {
  padding: 18px 22px;
  background: var(--win-bg);
  color: var(--win-text);
}
.filebox-body p {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.filebox-body p:last-child { border-bottom: 0; }
.filebox-line, .filebox-body .dim { display: none; }

/* ============================================
   Hero brand card — replaces the filebox in the
   right-side margin of the hero with the logo.
   ============================================ */
.brand-card {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: none;
  border: none;
  box-shadow: none;
}
.brand-card-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.10));
  transition: transform .4s var(--ease);
}
.brand-card:hover .brand-card-logo {
  transform: scale(1.04);
}

.right-note { padding-top: 0; }

/* hero-foot removed */

/* =========================================================
   STRIP — full gradient band, dark text
   ========================================================= */
.strip {
  background: var(--grad);
  color: #14110a;
  overflow: hidden;
  position: relative;
}
.strip-track {
  display: flex;
  width: max-content;
  padding: 28px 0;
  animation: stripScroll 38s linear infinite;
  will-change: transform;
}
/* Two identical groups inside the track; -50% lands group-2 at the start. */
.strip-group {
  display: flex; align-items: center; gap: 28px;
  padding-right: 28px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  white-space: nowrap;
  letter-spacing: -.035em;
  flex-shrink: 0;
}
.strip-group .stamp {
  font-weight: 700;
  font-family: var(--body);
  font-size: .55em;
  opacity: .75;
}
@keyframes stripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   § 01 — PRACTICE list — rounded entries
   ========================================================= */
.practice-list {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 12px;
}
.practice-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 200px minmax(0, 1fr) clamp(200px, 22vw, 268px);
  grid-template-areas:
    "num tag title anim"
    "num tag body  anim";
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid rgba(236,228,208,.08);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    rgba(28,28,31,0.55);
  backdrop-filter: blur(8px);
  align-items: start;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 1px 1px rgba(0,0,0,0.3),
    0 14px 30px -12px rgba(0,0,0,0.45);
  transition: background .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.practice-item .pi-no    { grid-area: num; }
.practice-item .pi-tag   { grid-area: tag; }
.practice-item .pi-title { grid-area: title; }
.practice-item .pi-body  { grid-area: body; }
.practice-item .pi-anim  { grid-area: anim; }
.practice-item:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    rgba(36,36,40,0.7);
  border-color: rgba(236,228,208,.16);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 1px 1px rgba(0,0,0,0.3),
    0 24px 50px -16px rgba(0,0,0,0.6);
}

.practice-item .pi-no {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -.04em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding: 0.05em 0.05em 0.1em 0;
}
.practice-item .pi-tag {
  font-family: var(--body);
  font-size: 13px; font-weight: 500;
  letter-spacing: -.005em;
  opacity: .55;
  padding-top: 14px;
}
.practice-item .pi-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 28ch;
}
.practice-item .pi-body {
  max-width: 60ch;
  opacity: .75;
  margin-bottom: 18px;
}
.pi-bullets { display: none; }

@media (max-width: 760px) {
  .practice-item {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "num   tag"
      "title title"
      "body  body"
      "anim  anim";
    gap: 14px;
    padding: 22px;
  }
  .practice-item .pi-tag { padding-top: 4px; }
}

/* =========================================================
   § 01 — PRACTICE box ANIMATIONS (editorial loops)
   ========================================================= */
.pi-anim {
  align-self: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.pi-svg {
  width: 100%;
  height: auto;
  max-width: 280px;
  aspect-ratio: 3 / 2;
  display: block;
  opacity: 0.92;
}
@media (max-width: 760px) {
  .pi-anim { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(236,228,208,0.06); }
  .pi-svg  { max-width: 260px; margin: 0 auto; }
}

/* 01 · Websites — lines drawing in sequentially, holding, then resetting */
.pi-web-line {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: pi-web-draw 6s ease-in-out infinite;
}
.pi-web-l1     { animation-delay: 0.00s; }
.pi-web-l2     { animation-delay: 0.18s; }
.pi-web-l3     { animation-delay: 0.36s; }
.pi-web-l4     { animation-delay: 0.54s; }
.pi-web-l5     { animation-delay: 0.72s; }
.pi-web-accent { animation-delay: 0.90s; }
@keyframes pi-web-draw {
  0%   { stroke-dashoffset: 220; opacity: 0; }
  12%  { opacity: 1; }
  35%  { stroke-dashoffset: 0;   opacity: 1; }
  80%  { stroke-dashoffset: 0;   opacity: 1; }
  95%  { stroke-dashoffset: 0;   opacity: 0; }
  100% { stroke-dashoffset: 220; opacity: 0; }
}

/* 02 · Automation — two gears rotating opposite directions */
.pi-gear {
  transform-box: fill-box;
  transform-origin: center;
}
.pi-gear-big   { animation: pi-gear-cw  14s linear infinite; }
.pi-gear-small { animation: pi-gear-ccw  9s linear infinite; }
@keyframes pi-gear-cw  { to { transform: rotate(360deg); } }
@keyframes pi-gear-ccw { to { transform: rotate(-360deg); } }

/* 03 · Digital systems — data bars shimmering in a wave */
.pi-sys-bar {
  transform-box: fill-box;
  transform-origin: left center;
  animation: pi-sys-shimmer 3.4s ease-in-out infinite;
}
.pi-sys-bar-1 { animation-delay: 0.00s; }
.pi-sys-bar-2 { animation-delay: 0.18s; }
.pi-sys-bar-3 { animation-delay: 0.36s; }
.pi-sys-bar-4 { animation-delay: 0.54s; }
.pi-sys-bar-5 { animation-delay: 0.72s; }
@keyframes pi-sys-shimmer {
  0%, 100% { opacity: 0.35; transform: scaleX(0.92); }
  50%      { opacity: 1;    transform: scaleX(1); }
}

/* 04 · Infrastructure — LEDs blinking in sequence */
.pi-inf-led {
  opacity: 0.3;
  animation: pi-inf-blink 3.4s ease-in-out infinite;
}
.pi-inf-u1 .pi-inf-led { animation-delay: 0.00s; }
.pi-inf-u2 .pi-inf-led { animation-delay: 0.30s; }
.pi-inf-u3 .pi-inf-led { animation-delay: 0.60s; }
.pi-inf-u4 .pi-inf-led { animation-delay: 0.90s; }
@keyframes pi-inf-blink {
  0%, 80%, 100% { opacity: 0.28; }
  8%            { opacity: 1; }
  16%           { opacity: 0.38; }
  24%           { opacity: 0.9; }
  32%           { opacity: 0.3; }
}

/* 05 · Security — radar sweep (SMIL) + pulsing center rings */
.pi-sec-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pi-sec-pulse 2.6s ease-out infinite;
}
.pi-sec-pulse-2 { animation-delay: 1.3s; }
@keyframes pi-sec-pulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* =========================================================
   § 02 — ARCHIVE (horizontal drag) — rounded
   ========================================================= */
.archive-wrap {
  position: relative;
  margin: 40px calc(var(--gutter) * -1) 0;
}
.archive {
  padding: 20px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.archive::-webkit-scrollbar { display: none; }
.archive.dragging { cursor: grabbing; scroll-snap-type: none; }

.archive-track {
  display: flex; gap: 20px;
  padding: 0 var(--gutter);
  user-select: none;
}

.archive-card {
  flex: 0 0 clamp(280px, 32vw, 420px);
  scroll-snap-align: start;
  background: var(--win-bg);
  color: var(--win-text);
  display: flex; flex-direction: column;
  border: 1px solid var(--win-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 4px 10px -2px rgba(0,0,0,0.08),
    0 14px 28px -10px rgba(0,0,0,0.14);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.archive-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.08),
    0 8px 16px -4px rgba(0,0,0,0.12),
    0 24px 44px -16px rgba(0,0,0,0.20);
}

/* Right-edge fade indicating more content (mobile + desktop) */
.archive-fade {
  display: none;
}

/* "Desliza →" pulsing hint — visible on mobile while not scrolled to end */
.archive-hint {
  position: absolute;
  bottom: 28px; right: 16px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(20,17,10,0.88);
  color: #fff;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.005em;
  pointer-events: none;
  box-shadow: 0 4px 14px -4px rgba(20,17,10,0.35);
  animation: hintNudge 2.2s ease-in-out infinite;
}
.archive-hint-arrow {
  font-size: 16px;
  line-height: 1;
  animation: hintArrow 1.2s ease-in-out infinite;
  display: inline-block;
}
@keyframes hintNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-6px); }
}
@keyframes hintArrow {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
.archive-wrap.scrolled-end .archive-hint { opacity: 0; transition: opacity .35s; }

@media (max-width: 760px) {
  .archive-hint { display: inline-flex; }
}

.ac-head {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  padding-left: 80px;          /* room for traffic lights */
  background: var(--win-bar);
  border-bottom: 1px solid var(--win-divider);
  font-family: var(--body);
  font-size: 12px; font-weight: 500;
  letter-spacing: -.005em;
  color: var(--win-text-dim);
}
.ac-head::before {
  content: '';
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow:
    18px 0 0 #febc2e,
    36px 0 0 #28c840,
    inset 0 -1px 0 rgba(0,0,0,0.12);
}
.ac-visual {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background:
    linear-gradient(135deg, #2a2a30 0%, #16161a 100%);
}

/* Live screenshot preview of the website */
.ac-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .8s var(--ease), opacity .5s;
  opacity: 0;
  animation: fadePreview .6s var(--ease) forwards;
  animation-delay: .2s;
}
/* Skeleton shimmer while image loads */
.ac-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
/* Hide shimmer once image loads */
.ac-preview[src] ~ .visual-grid { display: none; }
.archive-card:hover .ac-preview { transform: scale(1.04); }
@keyframes fadePreview {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}
.visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20,17,10,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,17,10,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.visual-1 { background: var(--grad); }
.visual-2 { background: linear-gradient(135deg, #fcd116 0%, #ff7e00 100%); }
.visual-3 { background: linear-gradient(180deg, #ff7e00 0%, #ff2400 100%); }
.visual-4 {
  background: var(--paper-ink);
  color: var(--paper);
}
.visual-4 .visual-grid {
  background-image:
    linear-gradient(rgba(236,228,208,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,228,208,.08) 1px, transparent 1px);
}
.visual-mark {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6rem);
  color: rgba(20,17,10,.85);
  letter-spacing: -.06em;
}
.visual-4 .visual-mark { color: var(--paper); }

.ac-body {
  padding: 20px 20px 22px;
  background: var(--win-bg);
  color: var(--win-text);
}
.ac-body h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.45rem; letter-spacing: -.025em;
  margin-bottom: 6px; line-height: 1.15;
  color: var(--win-text);
}
.ac-meta { font-size: .9rem; opacity: .55; color: var(--win-text); }
.ac-loc {
  display: inline-block; margin-top: 10px;
  background: var(--grad-diag);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  font-family: var(--body);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -.005em;
  font-weight: 600;
  padding: 0 0.1em 0.1em 0;
}

.archive-rule {
  height: 1px; background: var(--paper-rule); opacity: .22;
  margin-top: 50px;
}

/* Scroll nav — left/right arrows with label */
/* Archive prev/next as a single segmented control — sleek, Apple-like */
.archive-nav {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  margin: 26px auto 0;
  padding: 0;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--r-pill);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 1px 2px rgba(0,0,0,0.04),
    0 10px 28px -10px rgba(0,0,0,0.14);
  width: max-content;
  position: relative;
  z-index: 2;
}
.archive-nav-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin: 4px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: var(--paper-ink);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.archive-nav-btn:hover:not(:disabled) {
  background: rgba(0,0,0,0.05);
}
.archive-nav-btn:active:not(:disabled) {
  background: var(--grad-diag);
  color: #1a0a00;
  transform: scale(0.94);
}
.archive-nav-btn:disabled {
  opacity: .25;
  cursor: default;
}
.archive-nav-label {
  display: flex; align-items: center;
  padding: 0 18px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--paper-ink);
  opacity: .65;
  white-space: nowrap;
  border-left: 1px solid rgba(0,0,0,0.06);
  border-right: 1px solid rgba(0,0,0,0.06);
}

/* Center the segmented control in its parent */
.archive-wrap { display: flex; flex-direction: column; }
.archive-wrap > .archive-nav { align-self: center; }

@media (max-width: 760px) {
  /* Drag is the primary affordance on mobile; arrows just shrink */
  .archive-nav { margin-top: 18px; }
  .archive-nav-btn { width: 36px; height: 36px; }
  .archive-nav-label { padding: 0 12px; font-size: 12px; }
}

/* Coming-soon project card — minimalist composition */
.archive-card.coming-soon {
  border-style: dashed;
  border-color: rgba(0,0,0,0.10);
  cursor: default;
}
.coming-soon-visual {
  position: relative;
  background:
    radial-gradient(ellipse at center, #1a1620 0%, #0a0a0c 70%);
  overflow: hidden;
}
.coming-soon-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.coming-soon-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  padding: 16px;
}
.coming-soon-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.6rem, 7vw, 5.2rem);
  line-height: 1;
  background: var(--grad-diag);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  opacity: .55;
  text-shadow: 0 0 40px rgba(255,140,0,0.25);
  user-select: none;
}
.coming-soon-progress {
  width: 60%;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.coming-soon-progress span {
  display: block;
  width: 30%; height: 100%;
  background: var(--grad-diag);
  border-radius: var(--r-pill);
  animation: csProgress 2.6s ease-in-out infinite;
}
@keyframes csProgress {
  0%   { margin-left: -30%; }
  100% { margin-left: 100%; }
}
.coming-soon-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Country flag badge inside project visual (top-right) */
.flag-badge {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  padding: 3px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(20,17,10,0.08);
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.10),
    0 6px 14px -4px rgba(0,0,0,0.18);
  overflow: hidden;
  line-height: 0;
}
.flag-svg {
  display: block;
  width: 26px; height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 3px;
}

/* Temporary "under maintenance" overlay on project preview */
.maintenance-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(20,17,10,0.55) 0 18px,
      rgba(20,17,10,0.70) 18px 36px
    );
  backdrop-filter: blur(2px) saturate(0.85);
  -webkit-backdrop-filter: blur(2px) saturate(0.85);
  pointer-events: none;
  animation: maintenanceFade .5s var(--ease) both;
  animation-delay: .25s;
  opacity: 0;
}
@keyframes maintenanceFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.maintenance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 13px;
  background: linear-gradient(180deg, #ffd84d 0%, #f5b300 100%);
  color: #1c1410;
  border-radius: var(--r-pill);
  border: 1px solid rgba(20,17,10,0.18);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-transform: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(20,17,10,0.10),
    0 2px 6px rgba(0,0,0,0.25),
    0 10px 22px -8px rgba(0,0,0,0.45);
}
.maintenance-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: #1c1410;
}

/* Donation card — Club de Leones special treatment */
.archive-card.donation {
  border-color: rgba(231, 66, 29, 0.35);
  box-shadow:
    0 1px 2px rgba(231,66,29,0.10),
    0 8px 18px -4px rgba(231,66,29,0.18),
    0 22px 44px -14px rgba(231,66,29,0.20);
}
.archive-card.donation:hover {
  border-color: rgba(255, 80, 0, 0.5);
  box-shadow:
    0 1px 2px rgba(231,66,29,0.14),
    0 12px 24px -4px rgba(231,66,29,0.24),
    0 32px 56px -14px rgba(231,66,29,0.28);
}
.archive-card.donation .ac-visual {
  /* Soft warm wash for the donation card */
  background:
    radial-gradient(ellipse at top right, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(180deg, #ff7e00 0%, #e7421d 100%);
}

.donation-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 8px;
  background: rgba(20,17,10,0.85);
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -.005em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 2px 6px rgba(0,0,0,0.20),
    0 8px 18px -6px rgba(0,0,0,0.30);
}
.donation-heart {
  width: 12px; height: 12px;
  color: var(--y);
  flex-shrink: 0;
}

/* =========================================================
   § 03 — TIERS — outer rounded container with internal dividers
   ========================================================= */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(236,228,208,.10);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(28,28,31,0.55);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,0.3),
    0 30px 60px -20px rgba(0,0,0,0.55);
}
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border-right: 1px solid rgba(236,228,208,.14);
  display: flex; flex-direction: column; gap: 18px;
  transition: background .3s;
}
.tier:last-child { border-right: 0; }
@media (max-width: 900px) {
  .tier { border-right: 0; border-bottom: 1px solid rgba(236,228,208,.14); }
  .tier:last-child { border-bottom: 0; }
}
.tier:hover { background: rgba(255,180,0,.04); }
.tier.marked {
  background:
    radial-gradient(ellipse at top, rgba(255,140,0,.16), transparent 70%),
    rgba(255,140,0,.04);
}
.tier.marked:hover {
  background:
    radial-gradient(ellipse at top, rgba(255,140,0,.22), transparent 70%),
    rgba(255,140,0,.08);
}

.tier-mark {
  position: absolute; top: 18px; right: 18px;
  padding: 5px 12px;
  background: var(--grad-diag);
  color: #1a0a00;
  font-family: var(--body); font-size: 12px;
  font-weight: 600;
  letter-spacing: -.005em;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 18px -8px rgba(255,80,0,.5);
}
/* Audience eyebrow (top of each tier) */
.tier-audience {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  opacity: .55;
  margin: 0;
}

/* Tier name (Básico / Profesional / Premium) */
.tier-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: -8px 0 0;
}

/* Price block */
.tier-price {
  display: flex; align-items: baseline;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(236,228,208,.14);
  flex-wrap: wrap;
  padding-bottom: 0;
}
.tier-amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -.035em;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding: 0.05em 0.06em 0.1em 0;
}
.tier-amount.tier-amount-text {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -.025em;
}
.tier-period {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  opacity: .55;
}
.tier-change {
  margin: -10px 0 0;
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  opacity: .45;
}
.tier-feats {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed rgba(236,228,208,.18);
}
.tier-feats li {
  font-family: var(--body); font-size: 14px;
  display: flex; align-items: baseline; gap: 10px;
  opacity: .85;
  letter-spacing: -.005em;
}
.tier-feats li::before {
  content: "›";
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  font-weight: 700;
  flex-shrink: 0;
}
.tier-cta {
  display: inline-flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  margin-top: 4px;
  background: rgba(236,228,208,.05);
  border: 1px solid rgba(236,228,208,.12);
  border-radius: var(--r-pill);
  font-family: var(--body); font-size: 14px;
  letter-spacing: -.005em; font-weight: 500;
  transition: background .25s, border-color .25s, transform .25s;
}
.tier-cta:hover {
  background: var(--grad-diag);
  color: #1a0a00;
  border-color: transparent;
  transform: translateY(-2px);
}
.tier.marked .tier-cta {
  background: var(--grad-diag);
  color: #1a0a00;
  border-color: transparent;
}
.tier.marked .tier-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(255,80,0,.55); }

/* Fine-print disclaimer below tiers */
.tiers-fineprint {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-family: var(--body);
  font-size: 12.5px;
  letter-spacing: -.005em;
  opacity: .45;
  font-style: italic;
}

/* =========================================================
   § 04 — PROFILE — rounded portrait, gradient frame
   ========================================================= */
.profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(40px, 6vw, 90px);
  max-width: 1180px; margin: 0 auto;
  align-items: start;
}
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; gap: 40px; } }

.profile-side { position: sticky; top: 90px; }
@media (max-width: 900px) { .profile-side { position: static; } }

.portrait { margin-bottom: 28px; }
.portrait-frame {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--grad);
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 2px 4px rgba(0,0,0,0.10),
    0 12px 28px -8px rgba(255,80,0,0.30),
    0 30px 60px -16px rgba(0,0,0,0.30),
    0 60px 110px -30px rgba(255,80,0,0.45);
}
.portrait-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.portrait-cap {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-family: var(--body); font-size: 13px;
  font-weight: 500; letter-spacing: -.005em;
  opacity: .55;
}

.profile-spec {
  display: grid;
  font-family: var(--body); font-size: 13px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--r-md);
  padding: 6px 16px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 1px 2px rgba(0,0,0,0.04),
    0 10px 30px -10px rgba(0,0,0,0.12);
}
.profile-spec > div {
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
.profile-spec > div:last-child { border-bottom: 0 !important; }
.profile-spec > div {
  display: grid; grid-template-columns: 90px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20,17,10,.08);
  gap: 14px;
}
.profile-spec > div:last-child { border-bottom: 0; }
.profile-spec dt { opacity: .55; letter-spacing: -.005em; font-weight: 500; }
.profile-spec dd { letter-spacing: -.005em; font-weight: 500; }

.profile-main { padding-top: 0; }
.quote-mark {
  font-family: var(--display); font-weight: 700;
  font-size: 7rem; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  margin: 0 0 -2.6rem;
  padding: 0 0.05em 0.05em 0;
  display: inline-block;
}
.quote-body {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin: 14px 0 26px;
  max-width: 28ch;
}
.quote-sig {
  font-family: var(--body); font-size: 14px;
  font-weight: 500; letter-spacing: -.005em;
  opacity: .55;
  margin-bottom: 50px;
}
.bio { display: flex; flex-direction: column; gap: 18px; max-width: 56ch; }
.bio p { opacity: .78; font-size: 1.02rem; }

/* =========================================================
   § 05 — CONTACT — rounded letter
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 5vw, 60px);
  max-width: 1180px; margin: 0 auto;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  display: flex; flex-direction: column;
  background: rgba(28,28,31,0.55);
  border: 1px solid rgba(236,228,208,.10);
  border-radius: var(--r-md);
  padding: 6px 22px;
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 1px 2px rgba(0,0,0,0.25),
    0 20px 40px -16px rgba(0,0,0,0.45);
}
.ci-row {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 16px; align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(236,228,208,.10);
  transition: padding .25s;
}
.ci-row:last-child { border-bottom: 0; }
.ci-row:hover { padding-left: 6px; }
.ci-key {
  font-family: var(--body); font-size: 13px; font-weight: 500;
  letter-spacing: -.005em;
  opacity: .55;
  display: inline-flex; align-items: center; gap: 8px;
}
.ci-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  opacity: .8;
}
.ci-val {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  letter-spacing: -.02em;
  display: inline-flex; align-items: baseline; gap: 10px;
  transition: color .25s;
}
.ci-row:hover .ci-val {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.ci-arrow {
  font-size: .9em;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}
.ci-row:hover .ci-arrow { opacity: 1; transform: translateX(0); }

/* =========================================================
   WHATSAPP CHAT-STYLE FORM
   ========================================================= */
.wa-chat {
  display: flex; flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.18),
    0 12px 28px -10px rgba(0,0,0,0.30),
    0 32px 60px -20px rgba(0,0,0,0.40);
  font-family: var(--body);
}

/* Header — looks like a WhatsApp contact bar */
.wa-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #075e54;
  color: #fff;
}
.wa-chat-back {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  width: 20px;
  opacity: .8;
}
.wa-chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center bottom;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.wa-chat-meta { flex: 1; min-width: 0; }
.wa-chat-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.wa-chat-status {
  font-size: 12px;
  opacity: .8;
  margin-top: 2px;
}
.wa-chat-icon {
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
}

/* Chat body — WhatsApp doodle wallpaper */
.wa-chat-body {
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 20px 14px 24px;
  background-color: #efeae2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='3' fill='%23075e54'/%3E%3Crect x='80' y='20' width='12' height='8' rx='2' fill='%23075e54'/%3E%3Cpath d='M150 35l6-10 6 10z' fill='%23075e54'/%3E%3Ccircle cx='170' cy='90' r='4' fill='%23075e54'/%3E%3Crect x='20' y='100' width='10' height='10' rx='3' fill='%23075e54'/%3E%3Cpath d='M100 80c5-8 15-8 20 0' stroke='%23075e54' fill='none' stroke-width='2'/%3E%3Ccircle cx='60' cy='160' r='3' fill='%23075e54'/%3E%3Crect x='130' y='150' width='14' height='6' rx='2' fill='%23075e54'/%3E%3Cpath d='M40 60l4-6 4 6z' fill='%23075e54'/%3E%3Ccircle cx='110' cy='130' r='2.5' fill='%23075e54'/%3E%3C/svg%3E");
  position: relative;
}

/* Bubble base */
.wa-bubble,
.wa-bubble-input {
  max-width: 85%;
  padding: 8px 12px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  color: #111b21;
  word-wrap: break-word;
  letter-spacing: -.005em;
}

/* Incoming — left, white */
.bubble-in {
  align-self: flex-start;
  background: #ffffff;
  border-top-left-radius: 2px;
}
.bubble-in::before {
  content: '';
  position: absolute; top: 0; left: -6px;
  border-style: solid;
  border-width: 0 6px 6px 0;
  border-color: transparent #ffffff transparent transparent;
}

/* Outgoing — right, WA green */
.bubble-out {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 2px;
}
.bubble-out::before {
  content: '';
  position: absolute; top: 0; right: -6px;
  border-style: solid;
  border-width: 0 0 6px 6px;
  border-color: transparent transparent transparent #d9fdd3;
}

/* Input/textarea bubbles — outgoing colored, contain a field */
.wa-bubble-input {
  padding: 0;
  overflow: hidden;
}
.wa-bubble-input input,
.wa-bubble-input textarea {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.45;
  color: #111b21;
  padding: 8px 12px 10px;
  letter-spacing: -.005em;
}
.wa-bubble-input input::placeholder,
.wa-bubble-input textarea::placeholder {
  color: rgba(17,27,33,0.38);
}
.wa-bubble-input input:focus,
.wa-bubble-input textarea:focus {
  background: rgba(37,211,102,0.06);
}
.wa-bubble-textarea textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--body);
}

/* Plan selection chips — visually like quick reply chips */
.wa-plans {
  align-self: flex-start;
  display: flex; flex-wrap: wrap;
  gap: 7px;
  max-width: 95%;
  padding-top: 2px;
}
.wa-chip { display: inline-flex; }
.wa-chip input { display: none; }
.wa-chip span {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: #ffffff;
  color: #111b21;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  cursor: pointer;
  border: 1.5px solid rgba(0,0,0,0.08);
  transition: all .22s var(--ease);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.wa-chip span:hover {
  background: #f0f0f0;
  border-color: rgba(37,211,102,0.3);
  transform: translateY(-1px);
}
.wa-chip input:checked + span {
  background: #25D366;
  color: #fff;
  border-color: #20bd5a;
  transform: translateY(-1px);
  box-shadow:
    0 2px 6px -1px rgba(37,211,102,0.4),
    0 8px 16px -4px rgba(37,211,102,0.25);
  font-weight: 600;
}

/* Send button — WhatsApp green gradient */
.wa-send {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  transition: all .25s var(--ease);
  width: 100%;
  text-align: center;
}
.wa-send:hover {
  background: linear-gradient(135deg, #1ebd5b 0%, #0f7568 100%);
  gap: 14px;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,0.5);
}
.wa-send.sent {
  background: #111b21;
  color: var(--y);
}
.wa-send-icon { width: 18px; height: 18px; color: currentColor; flex-shrink: 0; }
.wa-send .arrow { font-size: 14px; opacity: .9; }

/* =========================================================
   COLOPHON / FOOTER
   ========================================================= */
.colophon {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 32px var(--gutter);
  border-top: 1px solid var(--paper-rule);
}
.colo-bottom {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.colo-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
  background: var(--grad-diag);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.colo-sig {
  font-family: var(--body); font-size: 13px;
  font-weight: 500; letter-spacing: -.005em;
  opacity: .55;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html, body, a, button { cursor: auto; }
  .crosshair { display: none; }
}

/* =========================================================
   LANGUAGE TOGGLE — segmented pill (ES / EN)
   ========================================================= */
.lang-toggle {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.06);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  transition: background .3s, border-color .3s;
}
.status.on-ink .lang-toggle {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.10);
}
.lang-opt {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  opacity: .5;
  transition: opacity .25s, color .25s, background .25s, transform .25s;
  position: relative; z-index: 1;
}
.lang-opt.active {
  opacity: 1;
  background: var(--grad-diag);
  color: #1a0a00;
  box-shadow: 0 4px 10px -4px rgba(255,80,0,.5);
}

/* =========================================================
   STATUS BAR right column layout (room for toggle + dot)
   ========================================================= */
.status-right { gap: 10px; }
.status-section {
  font-weight: 600;
  letter-spacing: -.01em;
}

@media (max-width: 720px) {
  .status { max-width: calc(100% - 16px); grid-template-columns: auto 1fr auto; gap: 10px; padding: 6px 8px 6px 10px; }
  .status-mid { display: block; opacity: .7; }
  .status-section { font-size: 12px; }
  .status-right > span:last-child { display: none; }  /* hide "Disponible" label, keep dot */
  .lang-toggle { font-size: 10px; }
  .lang-opt { padding: 3px 7px; }
}

/* =========================================================
   WHATSAPP FORM ENHANCEMENTS
   ========================================================= */
.wa-head-title {
  display: inline-flex; align-items: center; gap: 8px;
}
.wa-glyph {
  width: 14px; height: 14px;
  color: #25D366;        /* WhatsApp green */
  flex-shrink: 0;
}
.wa-head-meta { opacity: .7; }

/* Hide the leftover .lr-key labels (form rows have no labels now) */
.letter-row { grid-template-columns: 1fr; padding: 14px 22px; }

.letter-send {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 12px 32px -16px rgba(37,211,102,.7);
}
.letter-send:hover {
  background: linear-gradient(135deg, #1ebd5b 0%, #0f7568 100%);
  box-shadow: 0 16px 36px -14px rgba(37,211,102,.9);
}
.letter-send .wa-glyph-sm {
  width: 16px; height: 16px;
  color: currentColor;
}
.letter-send.sent {
  background: #1a0a00;
  color: var(--y);
}

/* =========================================================
   FLOATING WHATSAPP FAB
   ========================================================= */
.wa-fab {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366;
  color: #fff;
  z-index: 90;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.10),
    0 2px 4px rgba(0,0,0,0.10),
    0 10px 22px -6px rgba(37,211,102,0.45),
    0 28px 50px -16px rgba(0,0,0,0.30);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    0 4px 8px rgba(0,0,0,0.12),
    0 16px 32px -6px rgba(37,211,102,0.6),
    0 36px 60px -16px rgba(0,0,0,0.35);
}
.wa-fab-glyph {
  width: 30px; height: 30px;
  position: relative;
  z-index: 2;
}
.wa-fab-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: 1;
  animation: waPulse 2.6s cubic-bezier(.22,.61,.36,1) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .55; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 720px) {
  .wa-fab { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .wa-fab-glyph { width: 26px; height: 26px; }
}

/* =========================================================
   FOOTER BRAND (logo mark + wordmark)
   ========================================================= */
.colo-brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--paper-ink);
  transition: opacity .2s;
}
.colo-brand-link:hover { opacity: .7; }
.colo-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.025em;
  background: none;
  -webkit-text-fill-color: var(--paper-ink);
  color: var(--paper-ink);
}

/* =========================================================
   MOBILE POLISH — fits the boxes inside the viewport,
   tightens padding, stacks where it makes sense.
   ========================================================= */
@media (max-width: 760px) {
  :root { --gutter: 18px; }

  .chapter { padding-left: var(--gutter); padding-right: var(--gutter); }

  /* Hero: stack content + filebox cleanly */
  .hero-grid { gap: 28px; padding: 60px 0 0; }
  .display { font-size: clamp(2.2rem, 9vw, 3.6rem); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .link-arrow { justify-content: center; padding: 13px 18px; }

  /* Practice list: single column, compact */
  .practice-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 20px 18px;
  }
  .practice-item .pi-no  { font-size: 2.2rem; }
  .practice-item .pi-tag { padding-top: 0; font-size: 12px; }
  .practice-item .pi-title { font-size: 1.25rem; margin-bottom: 8px; }

  /* Section titles slightly smaller */
  .display.large { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }

  /* Tiers vertical & breathing */
  .tier { padding: 26px 22px; gap: 16px; }
  .tier-title { font-size: 1.3rem; }

  /* Profile portrait reasonable size */
  .profile-side { max-width: 280px; margin: 0 auto; }
  .portrait-mark { font-size: 9rem; }
  .quote-body { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .quote-mark { font-size: 5rem; margin-bottom: -1.8rem; }

  /* Contact: stack form rows + form fields full width */
  .contact-info { padding: 4px 16px; }
  .ci-row {
    grid-template-columns: 90px 1fr;
    padding: 13px 0;
  }
  .ci-val { font-size: 1.05rem; }
  .letter-row,
  .letter-body,
  .letter-actions { padding-left: 16px; padding-right: 16px; }
  .letter-head { padding-left: 76px; padding-right: 14px; }
  .letter-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .letter-send { justify-content: center; }

  /* Footer collapses */
  .colo-bottom { justify-content: flex-start; gap: 10px; }
  .colo-sig { font-size: 12px; }

  /* Mac window header text shrinks so traffic lights stay clear */
  .ac-head, .letter-head, .filebox-head { font-size: 11px; }
  .ac-head { padding-left: 76px; }

  /* WhatsApp FAB sits above iOS home indicator */
  .wa-fab { bottom: 16px; right: 16px; }

  /* Hide the crosshair cursor on touch devices (it's pointer-only anyway) */
  .crosshair { display: none; }
}

/* Very small phones */
@media (max-width: 380px) {
  .display { font-size: 2rem; }
  .display.large { font-size: 1.75rem; }
  .ci-row { grid-template-columns: 80px 1fr; gap: 10px; }
  .archive-hint { right: 12px; bottom: 24px; padding: 7px 12px; font-size: 11px; }
}

