/* ============================================================
   LEVEL UP AUTOMATIONS — Personal brand site
   Custom system derived from the brand logo:
   electric blue + deep navy/charcoal, chrome-glint accents.
   ============================================================ */

:root {
  /* ---- Accent (electric blue, from the logo) ---- */
  --accent:        #1FA8E8;
  --accent-bright: #5CCDF6;
  --accent-deep:   #0B6DB0;
  --accent-ink:    #07344f;
  --accent-rgb:    31, 168, 232;

  /* ---- Dark palette (navy / charcoal) ---- */
  --ink:      #070B14;   /* deepest */
  --navy:     #0B1322;
  --navy-2:   #0F1A2E;
  --navy-3:   #16243B;
  --hairline: rgba(255,255,255,.09);
  --hairline-bright: rgba(var(--accent-rgb), .38);

  /* ---- Light palette ---- */
  --paper:    #FFFFFF;
  --paper-2:  #EEF2F7;
  --paper-3:  #E1E8F1;
  --paper-ink:   #0B1322;
  --paper-muted: #54617A;

  /* ---- Text on dark ---- */
  --text:       #EAF0F8;
  --text-dim:   #A7B4C8;
  --text-faint: #6B7A92;

  /* ---- Type ---- */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Manrope", system-ui, sans-serif;

  /* ---- Geometry ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --shadow-glow: 0 0 0 1px rgba(var(--accent-rgb), .25), 0 18px 60px -18px rgba(var(--accent-rgb), .5);
  --shadow-card: 0 24px 60px -28px rgba(0,0,0,.7);
  --shadow-soft: 0 18px 50px -30px rgba(15, 26, 46, .35);
}

/* Orange accent variant (toggled via data-accent="orange") */
:root[data-accent="orange"] {
  --accent:        #FF6B2C;
  --accent-bright: #FF9259;
  --accent-deep:   #C24410;
  --accent-ink:    #4f1d07;
  --accent-rgb:    255, 107, 44;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-bright);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section--light .eyebrow { color: var(--accent-deep); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--accent);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #04141f;
  box-shadow: 0 10px 30px -12px rgba(var(--accent-rgb), .8), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(var(--accent-rgb), .95), inset 0 1px 0 rgba(255,255,255,.6); }

.btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--hairline-bright); background: rgba(var(--accent-rgb), .08); transform: translateY(-2px); }

.section--light .btn--ghost { color: var(--paper-ink); background: #fff; border-color: var(--paper-3); }
.section--light .btn--ghost:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .06); }

.btn--lg { padding: 18px 34px; font-size: 17px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
}
.brand__name b { color: var(--accent-bright); font-weight: 700; }
.brand__sub {
  font-family: var(--display);
  font-size: 9.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}
.nav__links { display: flex; gap: 6px; align-items: center; }
.nav__link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color .18s ease, background .18s ease;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__cta { display: flex; align-items: center; gap: 12px; }

/* Hamburger toggle (mobile only) */
.nav__toggle {
  display: none;
  width: 44px; height: 44px; flex: none; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: rgba(255,255,255,.04); cursor: pointer;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .22s ease, opacity .2s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: rgba(7, 11, 20, .97);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .nav.is-open {
    background: rgba(7, 11, 20, .92);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--hairline);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { font-size: 16px; padding: 13px 14px; border-radius: 12px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 60px;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(var(--accent-rgb), .16), transparent 60%),
    radial-gradient(90% 70% at 6% 100%, rgba(11, 109, 176, .14), transparent 55%),
    linear-gradient(180deg, var(--ink), var(--navy) 70%, var(--ink));
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .9;
  z-index: 0;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero__copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 82px);
  margin-top: 26px;
  letter-spacing: -0.03em;
}
.hero h1 .hl {
  color: var(--accent-bright);
}
.hero__sub {
  margin-top: 24px;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 540px;
}
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  margin-top: 52px;
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
}
.stat__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  color: #fff;
}
.stat__num b { color: var(--accent-bright); }
.stat__lbl { font-size: 13px; color: var(--text-faint); margin-top: 6px; letter-spacing: .02em; }

/* Hero visual: orbiting agent ring */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  align-self: center;
  display: grid;
  place-items: center;
}
.hero__visual[data-hide] { visibility: hidden; }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }
  .hero { min-height: auto; }
}

/* ============================================================
   SECTION SHELLS
   ============================================================ */
.section--dark { background: var(--ink); }
.section--navy {
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(var(--accent-rgb), .08), transparent 60%),
    var(--navy);
}
.section--light {
  background: var(--paper);
  color: var(--paper-ink);
}
.section--light .lede { color: var(--paper-muted); }
.section--paper2 { background: var(--paper-2); color: var(--paper-ink); }

.sec-head { max-width: 720px; }
.sec-head h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  margin-top: 18px;
}
.lede {
  margin-top: 20px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 620px;
}

/* ============================================================
   WHAT I DO — 3 cards
   ============================================================ */
.cards3 {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.scard {
  position: relative;
  padding: 34px 30px 36px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.scard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% -10%, rgba(var(--accent-rgb), .14), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.scard:hover { transform: translateY(-6px); border-color: var(--hairline-bright); box-shadow: var(--shadow-card); }
.scard:hover::before { opacity: 1; }
.scard__ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), .12);
  border: 1px solid rgba(var(--accent-rgb), .3);
  color: var(--accent-bright);
  position: relative; z-index: 1;
}
.scard__ico svg { width: 26px; height: 26px; }
.scard h3 { font-size: 22px; margin-top: 22px; position: relative; z-index: 1; }
.scard p { margin-top: 12px; color: var(--text-dim); line-height: 1.6; font-size: 15.5px; position: relative; z-index: 1; }
.scard__no {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--display); font-weight: 700;
  font-size: 14px; color: var(--text-faint);
  z-index: 1;
}

@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

/* ============================================================
   HOW I WORK
   ============================================================ */
.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}
.work h2 { font-size: clamp(34px, 5vw, 60px); }
.work .lede { color: var(--paper-muted); }
.quote {
  position: relative;
  padding: 40px 40px 40px 46px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--navy-2), var(--ink));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.quote::before {
  content: "";
  position: absolute; left: 0; top: 28px; bottom: 28px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
}
.quote__mark { font-family: var(--display); font-size: 64px; line-height: .6; color: var(--accent); opacity: .35; }
.quote p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 6px;
}
.quote__by { margin-top: 22px; color: var(--text-faint); font-size: 14px; letter-spacing: .04em; }

@media (max-width: 860px) { .work { grid-template-columns: 1fr; } }

/* ============================================================
   PORTFOLIO — monogram tiles
   ============================================================ */
.pgrid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid var(--hairline);
  min-height: 196px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.tile::after {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .16), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.tile:hover { transform: translateY(-6px); border-color: var(--hairline-bright); box-shadow: var(--shadow-card); }
.tile:hover::after { opacity: 1; }
.tile.is-anchor { border-color: rgba(var(--accent-rgb), .4); background: linear-gradient(180deg, var(--navy-3), var(--navy)); }
.mono {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: .02em;
  color: #04141f;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 20px -10px rgba(var(--accent-rgb), .7);
}
.tile.is-anchor .badge {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--display); font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-bright);
  padding: 5px 10px; border-radius: var(--r-pill);
  background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3);
}
.tile h3 { font-size: 19px; margin-top: 20px; }
.tile p { margin-top: 9px; font-size: 14px; line-height: 1.55; color: var(--text-dim); flex: 1; }
.tile__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--display); font-size: 11px; font-weight: 500;
  color: var(--text-dim);
  padding: 4px 9px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.05); border: 1px solid var(--hairline);
  white-space: nowrap;
}

/* Linked tile (e.g. shakiracanty.com) */
.tile--link { cursor: pointer; text-decoration: none; color: inherit; }
.tile__ext {
  position: absolute; top: 24px; right: 24px; z-index: 1;
  color: var(--accent-bright); opacity: .7;
  transition: opacity .3s ease, transform .3s ease;
}
.tile__ext svg { width: 18px; height: 18px; }
.tile--link:hover .tile__ext { opacity: 1; transform: translate(2px, -2px); }

@media (max-width: 1040px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }

/* ============================================================
   WHO I AM
   ============================================================ */
.who {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.who.who--mirror { grid-template-columns: minmax(0, 1fr) 360px; }
.who.who--mirror .who__photo { order: 2; }
.who__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--paper-3);
}
.who__photo img { width: 100%; height: 100%; object-fit: cover; }
.who__photo::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(11,19,34,.28));
  pointer-events: none;
}
.who__tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: .08em; white-space: nowrap;
  color: #fff;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: rgba(7,11,20,.55); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}

/* ============================================================
   FOUNDER CHIP (delineates each half's sections)
   ============================================================ */
.fchip {
  display: flex; width: fit-content; max-width: 100%;
  align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.section--light .fchip, .section--paper2 .fchip { color: var(--paper-muted); }
.fchip i {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
  border-radius: 7px; font-style: normal; font-size: 11px; font-weight: 700;
  letter-spacing: 0;
  color: #04141f;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent-deep));
}

/* ============================================================
   CONNECTIVE / FOUNDERS BLOCK
   ============================================================ */
.founders {
  background:
    radial-gradient(80% 100% at 12% 0%, rgba(var(--accent-rgb), .14), transparent 58%),
    linear-gradient(180deg, var(--ink), var(--navy) 55%, var(--ink));
  border-block: 1px solid var(--hairline);
}
.founders__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.founders__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline-bright);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.founders__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founders__names {
  position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 1;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.founders__names span {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  color: #fff; white-space: nowrap;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(7,11,20,.6); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.founders__statement p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.18; letter-spacing: -0.02em;
  color: var(--text);
}
.founders__statement p .a { color: var(--accent-bright); }
.founders__statement .machine {
  display: block; margin-top: 8px;
  color: #fff;
}
.founders__rule { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: var(--text-faint); }
.founders__rule::before { content: ""; width: 40px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.founders__rule span { font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 860px) {
  .founders__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SHAKIRA HERO (mid-page, mirrored)
   ============================================================ */
.hero--mid {
  min-height: auto;
  padding-block: clamp(80px, 12vw, 150px);
  background:
    radial-gradient(110% 80% at 22% 6%, rgba(var(--accent-rgb), .16), transparent 60%),
    radial-gradient(90% 70% at 96% 100%, rgba(11, 109, 176, .14), transparent 55%),
    linear-gradient(180deg, var(--ink), var(--navy) 70%, var(--ink));
}
.hero--mid .hero__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.hero--mid .hero__copy { order: 2; }
.hero--mid .hero__visual { order: 1; }
.os-visual {
  position: relative;
  width: 100%; max-width: 460px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.os-visual svg { width: 100%; height: 100%; overflow: visible; }

@media (max-width: 940px) {
  .hero--mid .hero__grid { grid-template-columns: 1fr; }
  .hero--mid .hero__copy { order: 1; }
  .hero--mid .hero__visual { display: none; }
}
.who h2 { font-size: clamp(32px, 4.4vw, 52px); }
.who .lede { color: var(--paper-muted); }
.who__meta { margin-top: 26px; display: flex; gap: 26px; flex-wrap: wrap; }
.who__meta .mtag {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  color: var(--paper-ink);
  display: flex; align-items: center; gap: 8px;
}
.who__meta .mtag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.who-site {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  color: var(--accent-deep);
  transition: gap .2s ease, color .2s ease;
}
.who-site svg { width: 16px; height: 16px; transition: transform .2s ease; }
.who-site:hover { gap: 11px; }
.who-site:hover svg { transform: translateX(2px); }

@media (max-width: 760px) {
  .who,
  .who.who--mirror { grid-template-columns: 1fr; }
  .who.who--mirror .who__photo { order: 0; }
  .who__photo { max-width: 300px; }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(var(--accent-rgb), .2), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--ink));
}
.cta__inner { text-align: center; max-width: 760px; margin-inline: auto; position: relative; z-index: 2; }
.cta h2 { font-size: clamp(34px, 5.4vw, 64px); }
.cta .lede { margin-inline: auto; margin-top: 22px; }
.cta__actions { margin-top: 38px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.bookcard {
  margin-top: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  text-align: left;
  padding: 30px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  box-shadow: var(--shadow-card);
  position: relative; z-index: 2;
}
.bookcard__ico {
  width: 62px; height: 62px; flex: none;
  display: grid; place-items: center;
  border-radius: 16px;
  color: var(--accent-bright);
  background: rgba(var(--accent-rgb), .12);
  border: 1px solid rgba(var(--accent-rgb), .3);
}
.bookcard__ico svg { width: 30px; height: 30px; }
.bookcard__body h3 { font-size: 22px; }
.bookcard__body p { margin-top: 8px; color: var(--text-dim); font-size: 15px; line-height: 1.55; max-width: 460px; }
.bookcard__meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 18px; }
.bookcard__meta span {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 13px; color: var(--text-faint);
}
.bookcard__meta svg { width: 16px; height: 16px; color: var(--accent); }

@media (max-width: 760px) {
  .bookcard { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 20px; }
  .bookcard__body p { margin-inline: auto; }
  .bookcard__meta { justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--ink);
  border-top: 1px solid var(--hairline);
  padding-block: 56px;
}
.foot__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot__links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot__links a { color: var(--text-dim); font-size: 15px; transition: color .18s ease; display: flex; align-items: center; gap: 8px; }
.foot__links a:hover { color: var(--accent-bright); }
.foot__tag {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 13px;
}
.foot__tag em { font-style: normal; color: var(--text-dim); font-family: var(--display); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { animation: revUp .7s cubic-bezier(.2,.7,.3,1) both; }
.reveal[data-d="1"].in { animation-delay: .08s; }
.reveal[data-d="2"].in { animation-delay: .16s; }
.reveal[data-d="3"].in { animation-delay: .24s; }
.reveal--instant { animation: none !important; opacity: 1 !important; transform: none !important; }
@keyframes revUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
}
