/* ==========================================================
   seifsaad.com — "Blueprint paper" design system
   Papier chaud · encre · pétrole · surligneur citron
   ========================================================== */

:root {
  --paper: #F3F0E8;
  --paper-2: #EAE5D8;
  --paper-3: #FBFAF6;
  --ink: #14130F;
  --ink-2: #4E4B43;
  --ink-3: #8A867B;
  --line: rgba(20, 19, 15, .13);
  --line-strong: rgba(20, 19, 15, .28);
  --petrol: #0D5C63;
  --petrol-deep: #083E43;
  --lime: #D7F25A;
  --plum: #6B2D5C;
  --ochre: #B8741A;

  --f-display: "Gloock", "Times New Roman", serif;
  --f-body: "Schibsted Grotesk", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine blueprint grid on the paper */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}
/* Grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.serif { font-family: var(--f-display); font-weight: 400; }

/* ---------- Page transition veil ---------- */
.veil {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  transform-origin: top;
  animation: veilOut .9s var(--ease-out) .05s forwards;
  pointer-events: none;
}
.veil.leaving { animation: veilIn .45s var(--ease) forwards; transform-origin: bottom; }
@keyframes veilOut { to { transform: scaleY(0); } }
@keyframes veilIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  transition: transform .5s var(--ease-out);
}
.nav.hide { transform: translateY(-120%); }
.nav-inner {
  display: flex; align-items: center; gap: 22px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 240, 232, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: box-shadow .4s, background .4s;
}
.nav.scrolled .nav-inner { box-shadow: 0 10px 40px -18px rgba(20, 19, 15, .35); background: rgba(251, 250, 246, .9); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.brand small { display: block; font-family: var(--f-mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  position: relative; display: block;
  padding: 8px 12px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2);
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--paper-2); }
.nav-links a.shop { color: var(--ink); }
.nav-links a.shop::after {
  content: ""; position: absolute; top: 7px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--petrol);
  box-shadow: 0 0 0 3px rgba(13, 92, 99, .18);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(13, 92, 99, 0); } }
.lang {
  display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  font-family: var(--f-mono); font-size: 11px;
}
.lang button {
  border: 0; background: none; cursor: pointer; color: var(--ink-3);
  padding: 5px 9px; border-radius: 999px; font: inherit; transition: .25s;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 500; font-size: 15.5px; letter-spacing: -.005em;
  border: 1px solid var(--bg);
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: transform .4s var(--ease-out), color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--lime);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
  border-radius: inherit;
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn .arr { transition: transform .4s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-petrol { --bg: var(--petrol); --fg: #fff; }

/* ---------- Highlighter ---------- */
.mark {
  background-image: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 1.1s var(--ease-out) .5s;
  padding: 0 .06em;
}
.in .mark, .mark.in { background-size: 100% 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 170px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DAA5C; box-shadow: 0 0 0 4px rgba(61, 170, 92, .18); }
.h-display {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: .98; letter-spacing: -.025em;
  margin: 22px 0 28px;
}
.h-display em { font-style: italic; color: var(--petrol); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 150ms); }
.split.in .w > span { transform: translateY(0); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 56ch; margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Terminal */
.term {
  position: relative;
  background: var(--ink); color: #E8E4D8;
  border-radius: var(--r);
  font-family: var(--f-mono); font-size: 12.5px; line-height: 1.85;
  box-shadow: 0 40px 80px -40px rgba(20, 19, 15, .55), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform: rotate(1.2deg);
  transition: transform .8s var(--ease-out);
}
.term:hover { transform: rotate(0) translateY(-4px); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3832; }
.term-bar span { margin-left: auto; color: #77736a; font-size: 11px; }
.term-body { padding: 18px 20px 22px; min-height: 290px; white-space: pre-wrap; }
.term .p { color: var(--lime); }
.term .k { color: #9AD4D9; }
.term .s { color: #F1C27D; }
.term .c { color: #77736a; }
.term .ok { color: #7FD69A; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--lime); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sticker {
  position: absolute; right: -14px; top: -22px;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font-family: var(--f-mono); font-size: 9.5px; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em;
  animation: spin 18s linear infinite;
  box-shadow: 0 10px 30px -10px rgba(20,19,15,.4);
}
.sticker b { display: block; font-family: var(--f-display); font-size: 30px; font-weight: 400; letter-spacing: -.02em; text-transform: none; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line-strong); }
.stat { padding: 22px 20px 4px 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 4vw, 56px); line-height: 1; letter-spacing: -.02em; }
.stat > span { color: var(--ink-2); font-size: 14px; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line-strong);
  overflow: hidden; padding: 18px 0;
  background: var(--paper-3);
}
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marq 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 48px; white-space: nowrap; font-family: var(--f-display); font-size: 26px; letter-spacing: -.01em; }
.marquee-item::after { content: "✳"; color: var(--petrol); font-size: 18px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(90px, 12vw, 160px) 0; }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-num { color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--ink); }
.sec-num b { color: var(--ink); font-weight: 500; }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 5vw, 68px); line-height: 1.02; letter-spacing: -.02em; margin: 0; max-width: 18ch; }
.h2 em { font-style: italic; color: var(--petrol); }
.sec-intro { color: var(--ink-2); max-width: 60ch; margin: 22px 0 0; font-size: 18px; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Profil ---------- */
.profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.portrait {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r);
  background: var(--paper-2); overflow: hidden;
  border: 1px solid var(--line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.portrait .ph svg { width: 46%; opacity: .9; }
.portrait figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; justify-content: space-between;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(251, 250, 246, .86); backdrop-filter: blur(8px);
}
.profile-text p { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; margin: 0 0 22px; letter-spacing: -.01em; }
.profile-text p.small { font-size: 17px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.fact { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.fact:nth-child(odd) { padding-right: 18px; }
.fact .mono { color: var(--ink-3); min-width: 90px; padding-top: 3px; }

/* ---------- Services (editorial rows) ---------- */
.rows { border-top: 1px solid var(--ink); }
.row {
  position: relative;
  display: grid; grid-template-columns: 80px 1.1fr 1.4fr 48px; gap: 30px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line-strong);
  transition: padding .5s var(--ease-out);
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper-3);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease-out);
}
.row:hover { padding-inline: 22px; }
.row:hover::before { transform: scaleY(1); }
.row .n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.row h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 3vw, 40px); margin: 0; letter-spacing: -.015em; line-height: 1.05; }
.row p { margin: 0 0 10px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); }
.row .go {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background .4s, transform .5s var(--ease-out), border-color .4s;
}
.row:hover .go { background: var(--lime); border-color: var(--lime); transform: rotate(-45deg); }

/* ---------- Formations ---------- */
.training { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.t-feature {
  position: relative; overflow: hidden;
  background: var(--petrol); color: #EAF3F1;
  border-radius: calc(var(--r) + 6px);
  padding: clamp(28px, 4vw, 48px);
  min-height: 520px;
  display: flex; flex-direction: column;
}
.t-feature::after {
  content: ""; position: absolute; right: -120px; bottom: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(215, 242, 90, .35);
  box-shadow: 0 0 0 40px rgba(215,242,90,.06), 0 0 0 80px rgba(215,242,90,.04), 0 0 0 120px rgba(215,242,90,.025);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); } }
.t-feature .mono { color: var(--lime); }
.t-feature h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -.02em; margin: 18px 0 16px; max-width: 14ch; }
.t-feature p { color: rgba(234, 243, 241, .8); max-width: 46ch; margin: 0 0 30px; }
.modules { list-style: none; padding: 0; margin: auto 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; z-index: 1; }
.modules li { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); transition: background .4s, transform .5s var(--ease-out); }
.modules li:hover { background: rgba(215,242,90,.14); transform: translateY(-4px); }
.modules b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--lime); margin-bottom: 4px; }
.modules span { font-size: 14px; color: rgba(234,243,241,.85); line-height: 1.45; display: block; }
.t-list { display: grid; gap: 12px; }
.t-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: start;
  padding: 22px 24px; border-radius: var(--r);
  background: var(--paper-3); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .4s;
}
.t-item:hover { transform: translateX(6px); border-color: var(--line-strong); box-shadow: -6px 0 0 var(--lime); }
.t-item h4 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.t-item p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 15px; }
.t-item .mono { color: var(--petrol); white-space: nowrap; padding-top: 4px; }
.t-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; padding: 16px 4px 0; color: var(--ink-2); font-size: 14px; }
.t-meta span::before { content: "→ "; color: var(--petrol); }

/* ---------- Certifications ---------- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.cert {
  position: relative; padding: 26px 24px 24px; min-height: 160px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  overflow: hidden;
}
.cert::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--petrol);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.cert:hover::before { transform: scaleX(1); }
.cert .issuer { color: var(--ink-3); display: flex; justify-content: space-between; }
.cert h4 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.12; letter-spacing: -.01em; }
.cert .code { font-family: var(--f-mono); font-size: 11px; color: var(--petrol); margin-top: 6px; display: block; }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.ms { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.ms .mono { color: var(--petrol); }
.ms h4 { margin: 10px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ms p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Shop band (home) ---------- */
.band { background: var(--ink); color: var(--paper); border-radius: 36px; margin: 0 clamp(8px, 1.5vw, 20px); overflow: hidden; }
.band .sec-num { color: #8A867B; border-color: var(--paper); }
.band .sec-num b { color: var(--paper); }
.band .h2 em { color: var(--lime); }
.band .sec-intro { color: #B9B4A7; }
.band-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.band-list { list-style: none; padding: 0; margin: 0 0 36px; }
.band-list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(243,240,232,.14); }
.band-list li span:last-child { font-family: var(--f-mono); font-size: 13px; color: var(--lime); white-space: nowrap; }
.band-list s { color: #77736a; margin-right: 8px; }
.band .btn { --bg: var(--lime); --fg: var(--ink); }
.band .btn::before { background: var(--paper); }

/* ---------- Books (shared) ---------- */
.shelf { position: relative; height: 420px; perspective: 1400px; }
.shelf .book { position: absolute; top: 50%; left: 50%; }
.shelf .book:nth-child(1) { transform: translate(-115%, -50%) rotateY(28deg) rotateZ(-6deg); z-index: 1; }
.shelf .book:nth-child(2) { transform: translate(-50%, -54%) rotateY(-8deg); z-index: 3; }
.shelf .book:nth-child(3) { transform: translate(15%, -50%) rotateY(-30deg) rotateZ(6deg); z-index: 2; }
.shelf:hover .book:nth-child(1) { transform: translate(-125%, -52%) rotateY(18deg) rotateZ(-9deg); }
.shelf:hover .book:nth-child(3) { transform: translate(25%, -52%) rotateY(-20deg) rotateZ(9deg); }
.shelf .book { transition: transform .9s var(--ease-out); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -2s); }

.book {
  --c: var(--petrol);
  --w: 200px;
  width: var(--w); aspect-ratio: 3 / 4.15;
  position: relative;
  transform-style: preserve-3d;
  border-radius: 4px 10px 10px 4px;
  background: var(--c);
  color: #fff;
  box-shadow:
    inset 8px 0 0 rgba(0,0,0,.18),
    inset 10px 0 0 rgba(255,255,255,.12),
    0 30px 50px -24px rgba(20,19,15,.6),
    0 8px 16px -8px rgba(20,19,15,.35);
  overflow: hidden;
  font-family: var(--f-body);
}
.book::before { /* page edge sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, transparent 35%, transparent 70%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
}
.book::after { /* grid texture */
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent 40%, #000);
}
.book .b-in { position: absolute; inset: 0; padding: 16% 12% 12% 17%; display: flex; flex-direction: column; z-index: 1; }
.book .b-brand { font-family: var(--f-mono); font-size: calc(var(--w) * .042); letter-spacing: .12em; text-transform: uppercase; opacity: .8; display: flex; justify-content: space-between; }
.book .b-code { font-family: var(--f-display); font-size: calc(var(--w) * .2); line-height: .9; letter-spacing: -.03em; margin-top: auto; }
.book .b-kind { font-family: var(--f-display); font-style: italic; font-size: calc(var(--w) * .095); line-height: 1; margin-top: 6px; color: var(--lime); }
.book .b-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14%; font-family: var(--f-mono); font-size: calc(var(--w) * .04); text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.book .b-flag { padding: 3px 6px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; }
.book.clf { --c: #0D5C63; }
.book.aif { --c: #6B2D5C; }
.book.tf  { --c: #9A5F12; }
.book.multi { --c: #F3F0E8; color: var(--ink); }
.book.multi .b-kind { color: var(--petrol); }
.book.multi .b-flag { border-color: rgba(20,19,15,.4); }
.book.multi::after { background-image: linear-gradient(rgba(20,19,15,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(20,19,15,.25) 1px, transparent 1px); }
.book.multi .b-code { font-size: calc(var(--w) * .15); }

@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- Contact ---------- */
.contact { padding: clamp(100px, 14vw, 180px) 0 60px; }
.contact-big { font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 10vw, 150px); line-height: .92; letter-spacing: -.035em; margin: 0 0 50px; }
.contact-big em { font-style: italic; color: var(--petrol); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.c-item { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; transition: color .3s; }
.c-item + .c-item { padding-left: 20px; border-left: 1px solid var(--line); }
.c-item .mono { color: var(--ink-3); }
.c-item b { font-weight: 500; font-size: 18px; letter-spacing: -.01em; word-break: break-word; }
a.c-item:hover b { color: var(--petrol); }
a.c-item b::after { content: " ↗"; font-size: 14px; color: var(--ink-3); transition: color .3s; }
a.c-item:hover b::after { color: var(--petrol); }

footer { padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot a:hover { color: var(--ink); }

/* ==========================================================
   LIVRES (shop page)
   ========================================================== */
.shop-hero { padding: 170px 0 40px; }
.shop-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; border-top: 1px solid var(--line-strong); }
.kpi { padding: 18px 18px 0 0; }
.kpi + .kpi { padding-left: 18px; border-left: 1px solid var(--line); }
.kpi b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.kpi span { font-size: 13.5px; color: var(--ink-2); }

.featured {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(30px, 5vw, 60px);
  border-radius: 32px;
  background: var(--ink); color: var(--paper);
}
.featured::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 85% 50%, rgba(13, 92, 99, .55), transparent 70%);
}
.featured > * { position: relative; }
.ribbon { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.featured h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -.02em; margin: 20px 0 16px; }
.featured h2 em { color: var(--lime); }
.featured p { color: #B9B4A7; margin: 0 0 24px; max-width: 48ch; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--lime); font-weight: 700; }
.price-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.price-big { font-family: var(--f-display); font-size: 72px; line-height: 1; letter-spacing: -.03em; }
.price-was { color: #77736a; text-decoration: line-through; font-size: 22px; }
.save { font-family: var(--f-mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--lime); color: var(--lime); }
.featured .btn { --bg: var(--lime); --fg: var(--ink); }
.featured .btn::before { background: var(--paper); }
.featured .shelf { height: 460px; }
.featured .shelf .book { --w: 210px; }

/* How it helps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 28px 30px; border-radius: var(--r); background: var(--paper-3); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s; }
.step:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,19,15,.35); }
.step .big { position: absolute; right: 18px; top: 8px; font-family: var(--f-display); font-size: 120px; line-height: 1; color: var(--paper-2); z-index: 0; transition: color .5s; }
.step:hover .big { color: var(--lime); }
.step > *:not(.big) { position: relative; }
.step .mono { color: var(--petrol); }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: 32px; letter-spacing: -.015em; margin: 60px 0 10px; line-height: 1.05; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; font: 500 14px var(--f-body); color: var(--ink-2);
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip i { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; opacity: .6; margin-left: 4px; }

.grid-books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 24px; background: var(--paper-3); border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), opacity .4s;
}
.p-card:hover { box-shadow: 0 40px 70px -40px rgba(20,19,15,.45); }
.p-card.hidden { display: none; }
.p-stage {
  position: relative; height: 290px; display: grid; place-items: center;
  background: var(--paper-2);
  perspective: 1000px;
  overflow: hidden;
}
.p-stage::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 34px; height: 18px; border-radius: 50%; background: rgba(20,19,15,.18); filter: blur(12px); }
.p-stage .book { --w: 158px; transform: rotateY(-18deg) rotateX(4deg); transition: transform .8s var(--ease-out); }
.p-card:hover .p-stage .book { transform: rotateY(-4deg) rotateX(0) translateY(-8px) scale(1.03); }
.p-stage .badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: var(--paper-3); border: 1px solid var(--line); }
.p-stage .badge.hot { background: var(--lime); border-color: var(--lime); }
.p-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.p-body .mono { color: var(--ink-3); }
.p-body h3 { margin: 8px 0 10px; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.p-body .use { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.p-body ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-size: 14.5px; }
.p-body li { display: flex; gap: 10px; }
.p-body li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--petrol); }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.p-price { display: flex; align-items: baseline; gap: 8px; }
.p-price b { font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: -.02em; }
.p-price s { color: var(--ink-3); font-size: 15px; }
.p-price small { font-family: var(--f-mono); font-size: 10.5px; color: var(--petrol); }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--f-mono); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.compare td:first-child { font-weight: 600; }
.compare .num { font-family: var(--f-display); font-size: 26px; letter-spacing: -.02em; white-space: nowrap; }
.compare .gain { font-family: var(--f-mono); font-size: 12px; color: var(--petrol); white-space: nowrap; }
.compare tr.best { background: rgba(215, 242, 90, .28); }
.compare tr { transition: background .3s; }
.compare tbody tr:hover { background: var(--paper-3); }
.compare tbody tr.best:hover { background: rgba(215, 242, 90, .45); }
.table-wrap { overflow-x: auto; border-radius: var(--r); }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font-size: clamp(18px, 1.8vw, 23px); letter-spacing: -.01em; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .5s var(--ease-out), background .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); translate: -50% -50%; }
.faq summary .pm::after { rotate: 90deg; transition: rotate .5s var(--ease-out); }
.faq details[open] .pm { background: var(--lime); border-color: var(--lime); }
.faq details[open] .pm::after { rotate: 0deg; }
.faq .ans { overflow: hidden; color: var(--ink-2); max-width: 70ch; padding: 0 0 26px; margin: 0; }
.disclaimer { margin-top: 50px; color: var(--ink-3); font-size: 13.5px; max-width: 80ch; }

/* ---------- Cursor dot (desktop) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ink); mix-blend-mode: difference;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--lime); mix-blend-mode: multiply; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-books { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; margin-left: auto; }
  .burger span { width: 16px; height: 1.5px; background: var(--ink); box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink); }
  .nav.open .nav-inner { border-radius: 26px; flex-wrap: wrap; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 10; padding: 6px 0 8px; }
  .nav.open .nav-links a { font-size: 18px; padding: 12px 10px; }
  .hero-grid, .shop-hero-grid, .profile, .training, .band-grid, .featured { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .stats, .kpis, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3), .kpi:nth-child(3), .c-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .row { grid-template-columns: 1fr 48px; gap: 12px 20px; }
  .row .n { grid-column: 1 / -1; }
  .row > div { grid-column: 1; }
  .row .go { grid-row: 2; grid-column: 2; }
  .steps, .milestones { grid-template-columns: 1fr; }
  .term { transform: none; }
  .portrait { max-width: 420px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero, .shop-hero { padding-top: 130px; }
  .grid-books, .certs, .facts { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .shelf { height: 340px; }
  .shelf .book { --w: 150px; }
  .featured .shelf .book { --w: 150px; }
  .featured .shelf { height: 340px; }
  .brand small { display: none; }
  .sticker { right: 6px; }
  .term { font-size: 10.5px; }
  .term-body { white-space: pre; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}
