/* =========================================================
   Walid Sassi — walidsassi.com
   Premium personal-brand stylesheet (design refactor)
   - Inspired by Stripe / Linear / Apple / Vercel
   - 8pt grid · disciplined type scale · subtle accents
   ========================================================= */

:root {
  color-scheme: dark;

  /* ----- Color (dark — site-wide default) ----- */
  --bg:           #08090a;
  --bg-soft:      #0d0e11;
  --bg-elev:      #121316;
  --bg-deep:      #050608;        /* book slab */
  --bg-deep-soft: #0a0b0e;

  --ink:          #f5f6f8;
  --ink-soft:     #d8dade;
  --ink-muted:    #a3a6ac;
  --ink-faint:    #75787e;

  --line:         rgba(255, 255, 255, 0.09);
  --line-strong:  rgba(255, 255, 255, 0.20);
  --line-faint:   rgba(255, 255, 255, 0.05);

  --accent:       #ff5b1f;        /* Swift orange — used sparingly */
  --accent-2:     #ff7a3d;
  --accent-soft:  rgba(255, 91, 31, 0.12);
  --accent-ring:  rgba(255, 91, 31, 0.24);

  /* ----- Spacing (8pt grid) ----- */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 80px; --s-8: 96px;
  --s-9: 128px; --s-10: 160px; --s-11: 200px;

  /* ----- Radius ----- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* ----- Elevation ----- */
  --shadow-sm: 0 1px 2px rgba(8, 9, 10, 0.04);
  --shadow-md: 0 6px 18px rgba(8, 9, 10, 0.06), 0 2px 4px rgba(8, 9, 10, 0.04);
  --shadow-lg: 0 24px 56px rgba(8, 9, 10, 0.10), 0 6px 18px rgba(8, 9, 10, 0.06);
  --shadow-book: 0 36px 72px rgba(0, 0, 0, 0.55), 0 12px 24px rgba(0, 0, 0, 0.32);

  /* ----- Layout ----- */
  --container: 1180px;
  --container-tight: 920px;
  --gutter: clamp(20px, 4vw, 40px);

  /* ----- Motion ----- */
  --t-fast: 120ms cubic-bezier(.2, .8, .2, 1);
  --t-base: 220ms cubic-bezier(.2, .8, .2, 1);
  --t-slow: 480ms cubic-bezier(.2, .8, .2, 1);

  /* ----- Type ----- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-feat: "cv11", "ss01", "ss03";
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: var(--font-feat);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent); }
button { font: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--ink); color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: clamp(80px, 11vw, 144px) 0;
}
.section + .section { border-top: 1px solid var(--line-faint); }
.section--tribune {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tribune .eyebrow { background: rgba(255, 255, 255, 0.05); }
.section--book {
  background:
    radial-gradient(1200px 600px at 85% 100%, rgba(255, 91, 31, 0.10), transparent 60%),
    linear-gradient(180deg, #0c0e12 0%, #0a0b0e 60%, #08090b 100%);
  color: #f5f6f8;
  isolation: isolate;
  overflow: hidden;
}
.section--book::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(255, 122, 61, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 30%);
  pointer-events: none;
  z-index: -1;
}
.section--book::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  opacity: 0.6;
  z-index: -1;
}
.section--book .eyebrow {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.section--book .eyebrow .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.30);
}
.section--book .section__title { color: #ffffff; }
.section--book .section__sub {
  color: rgba(255, 255, 255, 0.86);
}
.section--book .section__sub strong {
  color: #ffffff;
  font-weight: 660;
}
.section--proof {
  padding: clamp(56px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}
.section__head { max-width: 720px; }

/* ---------- Typography ---------- */
.section__title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 680;
  margin: 12px 0 16px;
}
.section__sub {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow.center {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-ring); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 91, 31, 0); }
}

/* Confident gradient — calmer than the previous treatment.
   Uses ink + a hint of accent rather than full saturation. */
.grad {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 60%, var(--accent) 180%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px;
  --pad-x: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--t-fast),
    background-color var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}
.btn--sm { --pad-y: 8px; --pad-x: 14px; font-size: 0.85rem; }

.btn--primary {
  background: #ffffff;
  color: #08090a;
  border-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.25);
}
.btn--primary:hover {
  background: #ececec;
  color: #08090a;
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 24px rgba(0, 0, 0, 0.35);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.section--book .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
}
.section--book .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.section--book .btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(255, 91, 31, 0.30);
}
.section--book .btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 12px 28px rgba(255, 91, 31, 0.42);
  transform: translateY(-1px);
}

.btn__arrow { transition: transform var(--t-fast); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(8, 9, 10, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 660;
  letter-spacing: -0.015em;
}
.nav__brand:hover { color: var(--ink); }
.nav__logo {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  background: #ffffff;
  color: #08090a;
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: transform var(--t-base);
}
.nav__brand:hover .nav__logo { transform: rotate(-6deg); }
.nav__name { font-size: 0.96rem; }
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(96px, 13vw, 168px) 0 clamp(80px, 10vw, 144px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
}
.hero__glow {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  will-change: transform;
}
.hero__glow--a {
  top: -200px; left: -140px;
  background: radial-gradient(circle, rgba(255, 91, 31, 0.65), transparent 60%);
  animation: float 22s ease-in-out infinite;
}
.hero__glow--b {
  bottom: -240px; right: -160px;
  background: radial-gradient(circle, rgba(120, 140, 200, 0.55), transparent 60%);
  animation: float 28s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(16px, -22px, 0) scale(1.04); }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 940px;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 760;
  margin: 8px 0 0;
}
.hero__title .grad {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #d8dade 60%, var(--accent) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 62ch;
  margin: 0;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.meta { display: flex; flex-direction: column; gap: 4px; }
.meta strong {
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.meta span {
  font-size: 0.86rem;
  color: var(--ink-muted);
  letter-spacing: 0.005em;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.about__lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  margin: 0;
}
.about__lead strong { font-weight: 680; color: var(--ink); }

.about__credentials {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.about__credentials li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  transition: color var(--t-fast), padding-left var(--t-base);
}
.about__credentials li:hover {
  color: var(--ink);
  padding-left: 8px;
}
.about__credentials .about__num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 1.6em;
}
.about__credentials li p { margin: 0; flex: 1; }
.about__credentials li em {
  font-style: normal;
  font-weight: 640;
  color: var(--ink);
}

/* ---------- Tribune ---------- */
.tribune {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.tribune__copy { max-width: 52ch; }

.code {
  position: relative;
  background: #0d0e10;
  color: #e6e6e6;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.code::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
  pointer-events: none;
}
.code:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(8, 9, 10, 0.16), 0 8px 24px rgba(8, 9, 10, 0.08);
}
.code__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  background: #15161a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code__bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3a3a3f;
}
.code__bar span:nth-child(1) { background: #ff5f57; }
.code__bar span:nth-child(2) { background: #febc2e; }
.code__bar span:nth-child(3) { background: #28c840; }
.code__bar p {
  margin: 0 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}
.code pre {
  margin: 0;
  padding: 24px 26px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  overflow-x: auto;
}
.code .kw { color: #ff8a65; }
.code .ty { color: #82d4ff; }
.code .op { color: #c8c8d0; }

/* ---------- Book ---------- */
.book {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

/* Stage: provides perspective + holds the ground shadow */
.book__cover {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 2400px;
  perspective-origin: 60% 50%;
  padding: 32px 0 48px;
}

/* Soft ground shadow under the book */
.book__cover::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: clamp(220px, 28vw, 300px);
  height: 28px;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0) 70%);
  filter: blur(12px);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

/* True 3D book — front cover (img), back cover (::before), spine (::after).
   --thickness controls book depth; tweak there to change the entire feel. */
.book__obj {
  --thickness: 42px;
  position: relative;
  width: clamp(230px, 30vw, 330px);
  aspect-ratio: 1040 / 1280;
  transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(4deg);
  transition: transform var(--t-slow);
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.40))
    drop-shadow(0 36px 56px rgba(0, 0, 0, 0.50));
  background: transparent;
}

/* Front cover (artwork) — pushed forward by half the spine thickness */
.book__obj img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px 6px 6px 2px;
  transform: translateZ(calc(var(--thickness) / 2));
  backface-visibility: hidden;
  box-shadow:
    inset 10px 0 22px -8px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Back cover — pushed back by half the thickness */
.book__obj::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, #1a1c20 0%, #0d0e10 100%);
  border-radius: 2px 6px 6px 2px;
  transform: translateZ(calc(var(--thickness) / -2));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}

/* Spine — left edge rotated 90° in Y to face outward.
   Layered: page stripes (top) over an inked vertical band (bottom). */
.book__obj::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--thickness);
  z-index: 2;
  transform-origin: left center;
  transform: rotateY(-90deg);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      rgba(0, 0, 0, 0.18) 1px,
      rgba(0, 0, 0, 0.18) 3px
    ),
    linear-gradient(
      to right,
      #050608 0%,
      #1a1c20 30%,
      #2a2c30 50%,
      #1a1c20 70%,
      #050608 100%
    );
  background-blend-mode: overlay, normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7);
}

/* Hover — book opens slightly toward the viewer */
.book__obj:hover {
  transform: rotateY(-16deg) rotateX(2deg) translateY(-6px);
}

.book__copy { max-width: 56ch; }
.checklist {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  line-height: 1.6;
}
.checklist li strong { color: #ffffff; font-weight: 660; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.14);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 0.78em;
  width: 7px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.book__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.book__note {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}
.book__note small { font-size: inherit; }

/* ---------- Social proof ---------- */
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.proof__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  transition:
    transform var(--t-base),
    box-shadow var(--t-base),
    border-color var(--t-base),
    background-color var(--t-base);
}
.proof__item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #16181c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.proof__item strong {
  font-size: 1.02rem;
  font-weight: 660;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.proof__item span {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 4px;
  letter-spacing: 0.005em;
}

/* ---------- Footer ---------- */
.footer {
  background: #0c0d10;
  border-top: 1px solid var(--line);
  padding: 64px 0 48px;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name {
  margin: 0;
  font-weight: 660;
  letter-spacing: -0.015em;
}
.footer__role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.footer__links a:hover { color: var(--ink); }
.footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- Reveal ---------- */
.section, .hero__inner > * {
  animation: rise var(--t-slow) cubic-bezier(.2, .8, .2, 1) both;
}
.hero__inner > *:nth-child(1) { animation-delay: 0.04s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.10s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.16s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.22s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.28s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .about, .tribune, .book {
    grid-template-columns: 1fr;
  }
  .book__cover { order: -1; }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer__brand { justify-content: center; }
}

@media (max-width: 540px) {
  .hero__cta .btn,
  .book__cta .btn { width: 100%; justify-content: center; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .code pre { font-size: 0.78rem; padding: 18px; }
  .book__obj { width: 240px; }
  .eyebrow { font-size: 0.7rem; }
}

/* ---------- Reduced motion ---------- */
@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;
  }
  .hero__glow { animation: none; }
}

/* Site is dark-themed by default. The `color-scheme: dark` declaration on
   :root tells the browser to render form controls and scrollbars accordingly,
   regardless of the user's system preference. */
