/* ==========================================================================
   Sanjay Gupta Books - faithful static rebuild of sanjayguptabooks.com (Wix)
   Measured on the live site at 1920px: 6% side gutters, Josefin Sans display,
   Gloock serif for the wordmark / hero, Wix Madefor Text body.
   ========================================================================== */

:root {
  --ink: #121317;
  --ink-soft: #76747b;
  --paper: #ffffff;
  --black: #000000;
  --header: #091411;
  --band: #0c3527;        /* affiliated brands / social band */
  --deep: #0a231f;        /* newsletter + footer */
  --page-dark: #121317;   /* hidden pages background */
  --page-darker: #100e0c;
  --accent: #ec8e4f;      /* active footer link */
  --hover-green: #00a86b;
  --purple: #7b62df;
  --card-green: #0b2a22;

  --f-display: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --f-serif: "Gloock", "Playfair Display", Georgia, serif;
  --f-body: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;
  --f-fraunces: "Fraunces", Georgia, serif;
  --f-fahkwang: "Fahkwang", "Josefin Sans", sans-serif;
  --f-caslon: "EB Garamond", "Adobe Caslon Pro", Georgia, serif;
  --f-mont: "Montserrat", sans-serif;
  --f-grotesk: "Space Grotesk", sans-serif;
  --f-label: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 6vw;
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-inout: cubic-bezier(0.645, 0.045, 0.355, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
body.dark { background: var(--black); color: #f8f8f8; }
body.page-dark { background: var(--page-dark); color: #fff; }
body.page-darker { background: var(--page-darker); color: #fff; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- type scale (desktop values measured at 1920) ---------- */
.h-111 { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5.8vw, 111px); line-height: 1.1; letter-spacing: -0.02em; }
.h-96  { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 5vw, 96px); line-height: 1.4; }
.h-60  { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.1vw, 60px); line-height: 1.3; }
.h-30  { font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 1.56vw, 30px); line-height: 1.4; }
.label { font-family: var(--f-display); font-weight: 400; font-size: clamp(16px, 1.04vw, 20px); letter-spacing: 1px; line-height: 1.4; }
.label-caps { text-transform: uppercase; }
.rule { border: 0; border-top: 1px solid rgba(18, 19, 23, 0.35); margin: 0; }
.dark .rule, .page-dark .rule, .page-darker .rule { border-top-color: rgba(255, 255, 255, 0.7); }
/* Home on the dark (Books page) scheme */
.dark .stat-num { border-bottom-color: rgba(255, 255, 255, 0.28); }
.dark .btn-arrow { background: transparent; color: #f8f8f8; border-color: rgba(255, 255, 255, 0.7); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.dark .btn-arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.dark .ss-prev, .dark .ss-next { color: #f8f8f8; }
.dark .ss-dot { background: rgba(255, 255, 255, 0.28); }
.dark .ss-dot.on { background: #f8f8f8; }
.dark .company-name, .dark .company p { color: #f8f8f8; }
.italic { font-style: italic; }
.text-center { text-align: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 20;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  color: #fff;
  background: var(--header);
}
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.brand { font-family: var(--f-serif); font-size: 18px; letter-spacing: 0; color: #fff; }
.nav { display: flex; align-items: center; gap: 33px; }
.nav a { font-size: 16px; padding: 4px 0; position: relative; transition: color 0.2s; }
.nav a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.nav a:not(.btn-contact):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a.btn-contact {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 120px; height: 40px; padding: 0 26px; margin-left: 15px;
  border: 1px solid #fff; border-radius: 50px;
  font-size: 14px; line-height: 1; letter-spacing: 0.7px; text-transform: uppercase;
  background: rgba(15, 31, 26, 0.48);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.nav a.btn-contact:hover { background: var(--hover-green); text-decoration: none; }
.site-header:not(.overlay) .nav a.btn-contact { background: var(--ink); }
.site-header:not(.overlay) .nav a.btn-contact:hover { background: #fff; color: var(--ink); }
.nav-toggle { display: none; width: 35px; height: 35px; color: #fff; }
.nav-toggle svg { width: 30px; height: 30px; fill: currentColor; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--header); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transform: translateX(100%); transition: transform 0.35s var(--ease-out); visibility: hidden;
}
.mobile-menu a { font-family: var(--f-display); font-size: 28px; }
.mobile-menu .menu-close { position: absolute; top: 34px; right: 6vw; width: 36px; height: 36px; color: #fff; }
.mobile-menu .menu-close svg { width: 28px; height: 28px; fill: currentColor; }
body.menu-open .mobile-menu { transform: none; visibility: visible; }
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .site-header { height: 88px; }
  .nav > a:not(.btn-contact) { display: none; }
  .nav { gap: 14px; }
  .nav a.btn-contact { margin-left: 0; height: 38px; padding: 0 20px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ==========================================================================
   Hero (home / about / books)
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; text-align: center; color: #fff;
}
.hero .media, .hero .media video, .hero .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.55) 100%); }
.hero .inner { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) 5.2vw; }
.hero-title { font-family: var(--f-serif); font-weight: 700; font-size: clamp(30px, 5.8vw, 111px); letter-spacing: 0.1em; line-height: 1.1; }
.hero-sub { font-family: var(--f-display); font-size: clamp(15px, 1.56vw, 30px); line-height: 1.4; max-width: 1160px; margin: 1.4vw auto 0; color: #f8f8f8; }
.hero.centered { align-items: center; }
.hero.centered .inner { padding-bottom: 0; }
.hero-serif { font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 3.1vw, 60px); line-height: 1.4; }
.hero-p { font-size: clamp(15px, 1.04vw, 20px); line-height: 1.4; max-width: 990px; margin: 1.2vw auto 0; }
@media (max-width: 900px) {
  .hero-title { letter-spacing: 0.02em; }
  .hero-sub { font-weight: 700; font-size: 15px; }
  .hero .media::after { background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.6) 100%); }
}

/* ==========================================================================
   Home
   ========================================================================== */
/* Home hero: the source clip is portrait (656x1080). Rather than blowing it up
   ~3x to fill a landscape frame (which cut off the head), the sharp portrait
   plays centred at full height, close to native resolution, over a blurred
   copy of itself. Narrow / portrait viewports fall back to a single full-bleed
   portrait video. */
.hero-home { background: #0b0d0c; }
.hero-home .media .hero-backdrop {
  inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover;
  filter: brightness(0.62) saturate(0.9);
}
.hero-home .media .hero-portrait {
  left: 50%; right: auto; width: auto; max-width: none; height: 100%;
  aspect-ratio: 836 / 1080; object-fit: cover; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.hero-home .media::after {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,0.72) 100%);
}
@media (max-width: 900px), (max-aspect-ratio: 836/1080) {
  .hero-home .media .hero-backdrop { display: none; }
  .hero-home .media .hero-portrait {
    left: 0; width: 100%; transform: none; aspect-ratio: auto; object-position: 44% 0;
    -webkit-mask-image: none; mask-image: none;
  }
}


.section { padding-top: 6.9vw; }
.section .rule { margin-bottom: 4.8vw; }
.stats { padding-bottom: 3vw; }
.stats .rule { margin-bottom: 8.02vw; }
.stats .h-111 { margin-top: 1vw; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.9vw; margin-top: 7.97vw; }
.stat-num { font-family: var(--f-display); font-size: clamp(44px, 5.8vw, 111px); letter-spacing: -0.02em; line-height: 1.1; padding-bottom: 1.3vw; border-bottom: 1px solid rgba(18, 19, 23, 0.3); }
.stat-text { margin-top: 1.25vw; font-size: clamp(16px, 1.04vw, 20px); line-height: 1.4; }
.stat-text b { font-weight: 700; display: block; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .stat-num { font-size: 40px; padding-bottom: 12px; } }

.band { background: var(--band); color: #fff; }
.brands { padding: 2.8vw var(--gutter) 2.4vw; text-align: center; }
.brands h2 { font-family: var(--f-display); font-size: clamp(26px, 2.96vw, 57px); line-height: 1.3; }
.brands-row { display: flex; align-items: center; justify-content: center; gap: 3.6vw; margin-top: -1.2vw; }
.brands-row img.britannica { width: 31.4vw; max-width: 602px; }
.brands-row img.sfa { width: 39.5vw; max-width: 759px; }
@media (max-width: 900px) { .brands { padding: 34px var(--gutter) 30px; } .brands-row { flex-direction: column; gap: 22px; margin-top: 18px; } .brands-row img.britannica { width: 68%; } .brands-row img.sfa { width: 86%; } }

.meet { padding-bottom: 0; }
.meet-grid { display: grid; grid-template-columns: minmax(0, 573px) 1fr; gap: 4.74vw; align-items: start; margin-top: 4vw; margin-left: calc(var(--gutter) * -0.35); }
.meet-copy { padding: 4.1vw 0 0; }
.meet-copy h3 { font-family: var(--f-display); font-size: clamp(22px, 1.58vw, 30px); line-height: 1.4; margin-bottom: 1.4vw; }
.meet-copy p { font-size: 16px; line-height: 1.6; margin-bottom: 1.3vw; }
.meet-media { margin-right: calc(var(--gutter) * -1); height: 45.6vw; max-height: 875px; }
.meet-media img { width: 100%; height: 100%; object-fit: cover; object-position: 24% 33%; }
.btn-arrow {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  min-width: 240px; height: 40px; padding: 0 16px 0 14px; margin-top: 1.4vw;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-family: var(--f-mont); font-size: 14px; letter-spacing: 0.7px;
  transition: border-color 0.2s, background-color 0.2s;
}
.btn-arrow svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.2s; }
.btn-arrow:hover { border-color: #fff; }
.btn-arrow:hover svg { transform: rotate(45deg); }
@media (max-width: 900px) {
  .meet-grid { grid-template-columns: 1fr; margin-left: 0; }
  .meet-copy { padding-top: 24px; }
  .meet-media { margin: 28px calc(var(--gutter) * -1) 0; height: auto; max-height: none; }
  .meet-media img { height: 105vw; }
}

.companies { padding: 6.3vw var(--gutter) 5.6vw; text-align: center; }
.companies h2 { font-family: var(--f-display); font-size: clamp(28px, 3.1vw, 60px); line-height: 1.3; }
.company-grid { display: flex; justify-content: center; gap: 1.7vw; margin-top: 3.4vw; text-align: left; }
.company { width: 20.6vw; max-width: 396px; }
.company .thumb { aspect-ratio: 396 / 470; overflow: hidden; background: var(--band); }
.company .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.company:hover .thumb img { transform: scale(1.04); }
/* favicon emblems centred on the green card, sized to balance visually */
.company .thumb.emblem img { object-fit: contain; }
.company .thumb.emblem-sfa img { padding: 33% 31%; }
.company .thumb.emblem-britannica img { padding: 27% 23%; }
.company-name { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1vw; font-family: var(--f-display); font-size: 18px; line-height: 1.4; }
.company-name svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.company p { margin-top: 1.1vw; font-size: 16px; line-height: 1.6; max-width: 338px; }
@media (max-width: 900px) { .company-grid { flex-direction: column; align-items: center; gap: 40px; margin-top: 36px; } .company { width: 100%; max-width: 420px; } .company-name, .company p { margin-top: 14px; } }

.book-intro .h-96 { margin-top: 0.2vw; }
.book-intro .h-30 { margin-top: 0.6vw; }
.slideshow { position: relative; overflow: hidden; }
.slide { display: none; }
.slide.is-active { display: block; }
.slide.enter { animation: slide-in 0.6s var(--ease-out); }
.slide.leave { animation: slide-out 0.6s var(--ease-out) forwards; position: absolute; inset: 0; }
@keyframes slide-in { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes slide-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-60px); } }
.slide-grid { display: grid; grid-template-columns: 1fr 38.23vw; gap: 0; align-items: start; padding: 0 11.77vw 6.2vw 9.69vw; }
.slide-copy { padding-top: 13.5vw; padding-right: 4vw; }
.slide-copy h3 { font-family: var(--f-display); font-size: clamp(28px, 3.1vw, 60px); line-height: 1.3; margin-bottom: 1.6vw; }
.slide-copy .kicker { font-family: var(--f-display); font-size: clamp(16px, 1.04vw, 20px); letter-spacing: 1px; margin-bottom: 1.2vw; }
.slide-copy p { font-size: clamp(15px, 0.94vw, 18px); line-height: 1.6; max-width: 695px; }
.slide-copy p + p { margin-top: 1.2vw; }
.slide-cover { width: 38.2vw; max-width: 734px; margin-left: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.slide-cover.small { width: 24vw; max-width: 460px; margin: 5vw auto 0; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 22px; margin-top: 2vw;
  border-radius: 6px; background: var(--header); color: #fff; font-size: 16px;
  transition: background-color 0.2s;
}
.btn-pill svg { width: 20px; height: 20px; fill: currentColor; }
.btn-pill:hover { background: var(--hover-green); }
.ss-prev, .ss-next { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.ss-prev { left: 1.9vw; } .ss-next { right: 1.9vw; }
.ss-prev svg, .ss-next svg { width: 26px; height: 26px; fill: currentColor; }
.ss-dots { display: flex; justify-content: center; gap: 10px; padding-bottom: 3vw; }
.ss-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(18, 19, 23, 0.25); }
.ss-dot.on { background: var(--ink); }
@media (max-width: 900px) {
  .slide-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 10vw 40px; }
  .slide-cover, .slide-cover.small { width: 100%; max-width: 360px; margin: 0 auto; order: -1; }
  .slide-copy { padding: 0; }
  .ss-prev { left: 2px; } .ss-next { right: 2px; }
}

.secrets .h-96 { line-height: 1.4; }
.secrets .h-30 { margin-top: 0.4vw; margin-bottom: 4.6vw; }
.video-strip { position: relative; height: 38.4vw; max-height: 737px; overflow: hidden; background: #000; }
.video-strip video { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
@media (max-width: 900px) { .video-strip { height: 56vw; } }

/* ---------- featured book (Private Equity and Advanced Investment Banking) ---------- */
.featured { padding-bottom: 6vw; }
.featured .label { display: inline-flex; align-items: center; gap: 12px; }
.featured .label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--hover-green); }
.featured-grid { display: grid; grid-template-columns: 27vw 1fr; gap: 4.6vw; align-items: center; margin-top: 3.4vw; }
.featured-cover { position: relative; }
.featured-cover img { width: 100%; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
.featured-copy .title { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 50px); line-height: 1.25; }
.featured-copy .series { font-family: var(--f-display); font-size: clamp(15px, 1.04vw, 20px); letter-spacing: 0.5px; margin-top: 1vw; opacity: 0.85; }
.featured-copy .authors { font-size: clamp(16px, 1.04vw, 20px); margin-top: 0.8vw; }
.featured-copy .authors b { font-weight: 700; }
.featured-copy .blurb { margin-top: 1.6vw; max-width: 760px; font-size: clamp(15px, 0.94vw, 18px); line-height: 1.6; }
.featured-copy .blurb p + p { margin-top: 0.9vw; }
.featured-copy .meta { margin-top: 1.4vw; font-size: 14px; letter-spacing: 0.3px; opacity: 0.8; }
.btn-amazon {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 30px; margin-top: 1.8vw;
  border-radius: 999px; background: #ff9900; color: #111; font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: 0.4px;
  box-shadow: 0 10px 30px rgba(255, 153, 0, 0.25); transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-amazon svg { width: 22px; height: 22px; fill: currentColor; }
.btn-amazon:hover { background: #ffad33; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 153, 0, 0.35); }
.btn-amazon.ghost { background: transparent; color: inherit; border: 1px solid currentColor; box-shadow: none; }
.btn-amazon.ghost:hover { background: #ff9900; color: #111; border-color: #ff9900; }
.featured-note { margin-top: 1vw; font-size: 13px; opacity: 0.7; }
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; gap: 30px; }
  .featured-cover { max-width: 300px; margin: 0 auto; }
  .btn-amazon { height: 50px; padding: 0 24px; font-size: 16px; }
}

/* ==========================================================================
   Newsletter + footer (shared)
   ========================================================================== */
.newsletter { background: var(--deep); color: #fff; padding: 6vw var(--gutter) 4.2vw; }
.newsletter h2 { font-family: var(--f-display); font-size: clamp(32px, 5vw, 96px); line-height: 1.4; max-width: 1282px; }
.newsletter .lead { margin-top: 5.4vw; font-size: 16px; line-height: 1.5; color: #f8f8f8; }
.nl-form { margin-top: 0.8vw; padding: 0 1.3vw; }
.nl-form label.field-label, .form label { display: block; font-family: var(--f-label); font-size: 15px; line-height: 21px; color: var(--ink-soft); margin: 0 0 6px 0.6vw; }
.nl-form input[type="email"], .form input, .form textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid #fff; border-radius: 3px; background: #fff; color: var(--ink);
  font: 15px var(--f-body); outline: none;
}
.nl-form input[type="email"]:focus, .form input:focus, .form textarea:focus { border-color: var(--hover-green); }
.nl-row { display: flex; align-items: center; justify-content: space-between; gap: 2vw; margin-top: 1.4vw; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); cursor: pointer; padding-left: 1.45vw; }
.check input { width: 14px; height: 14px; margin: 0; accent-color: var(--hover-green); }
.btn-subscribe {
  width: 49.4%; max-width: 810px; height: 40px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 14px; letter-spacing: 0.2px; text-transform: uppercase; border: 1px solid transparent;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.btn-subscribe:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.form-status { margin-top: 14px; font-size: 14px; }
.form-status.ok { color: #7ee2b8; }
.form-status.err { color: #ffb4a8; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .newsletter { padding: 60px var(--gutter) 40px; }
  .newsletter .lead { margin-top: 30px; }
  .nl-form { margin-top: 18px; padding: 0; }
  .nl-row { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 16px; }
  .btn-subscribe { width: 100%; }
}

.site-footer { background: var(--deep); color: #fff; padding: 6vw var(--gutter) 4.6vw; }
.footer-grid { display: grid; grid-template-columns: 20.8vw 15.6vw 18vw 1fr; align-items: start; }
.footer-brand { display: inline-flex; align-items: center; gap: 4px; margin-left: 2.3vw; margin-top: 0.2vw; font-family: var(--f-serif); font-size: 19px; }
.footer-brand svg { width: 40px; height: 40px; margin-left: -8px; }
.site-footer h3 { font-family: var(--f-display); font-size: clamp(16px, 1.04vw, 20px); letter-spacing: 1px; margin-bottom: 1.2vw; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { font-size: 14px; line-height: 19.6px; }
.site-footer li a.is-active { color: var(--accent); }
.site-footer li a:hover { text-decoration: underline; }
.site-footer .u { text-decoration: underline; }
.copyright { margin-top: 10.5vw; font-size: 17px; }
@media (max-width: 900px) {
  .site-footer { padding: 56px var(--gutter) 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-brand { grid-column: 1 / -1; margin-left: 0; }
  .site-footer h3 { margin-bottom: 12px; }
  .copyright { margin-top: 56px; font-size: 15px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-hero .inner { max-width: 1530px; }
.about-hero .kicker { font-family: var(--f-display); font-size: clamp(18px, 1.56vw, 30px); }
.about-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 5vw, 96px); line-height: 1.4; }
.about-hero .hero-sub { max-width: 1530px; margin-top: 0.6vw; }
.about-row { display: grid; grid-template-columns: 43vw 1fr; gap: 6.3vw; align-items: start; padding: 7.3vw var(--gutter) 0; }
.about-row.rev { grid-template-columns: 1fr 43vw; }
.about-row.rev .about-media { order: 2; }
.about-row.center { align-items: center; }
.about-row.top { align-items: start; }
.about-row.top .about-copy { padding-top: 8.7vw; }
.about-media { border-radius: 10px; overflow: hidden; background: #111; }
.about-media img, .about-media video { width: 100%; height: 100%; object-fit: cover; }
.about-media.tall { height: 45vw; max-height: 866px; }
.about-media.wide { height: 34.4vw; max-height: 660px; }
.about-copy { font-size: 17px; line-height: 1.55; max-width: 762px; }
.about-copy.first { font-size: 16.2px; max-width: 648px; padding-top: 0; }
.about-copy.mid { padding-left: 1.7vw; }
.about-copy p + p { margin-top: 1.4vw; }
.about-copy .caption { font-style: italic; margin-top: 1.4vw; }
.about-copy.right { padding-left: 0; }
.about-head { padding: 6.2vw var(--gutter) 0; font-family: var(--f-display); font-size: clamp(32px, 5vw, 96px); line-height: 1.4; color: #f8f8f8; }
.about-video { position: relative; }
.press { padding: 2.8vw var(--gutter) 0 calc(var(--gutter) + 7.4vw); font-size: clamp(17px, 1.15vw, 22px); line-height: 1.4; color: #f8f8f8; }
.press a { text-decoration: underline; text-underline-offset: 3px; }
.press-card { display: block; width: 23.6vw; max-width: 453px; margin: 3.4vw 0 0; }
.press-card img { width: 100%; border-radius: 4px; }
.press-card p { margin-top: 0.8vw; font-size: 16px; line-height: 1.5; color: #fff; }
.press-card:hover img { opacity: 0.9; }
.about-end { padding-bottom: 6vw; }
@media (max-width: 900px) {
  .about-row, .about-row.rev { grid-template-columns: 1fr; gap: 26px; padding-top: 48px; }
  .about-row.rev .about-media { order: 0; }
  .about-media.tall, .about-media.wide { height: 66vw; max-height: none; }
  .about-copy, .about-copy.first, .about-copy.mid, .about-copy.right { padding: 0; max-width: none; font-size: 16px; }
  .about-copy p + p, .about-copy .caption { margin-top: 16px; }
  .about-head { padding-top: 56px; }
  .press { padding: 28px var(--gutter) 0; }
  .press-card { width: 100%; max-width: 360px; margin-top: 28px; }
}

/* ==========================================================================
   Books
   ========================================================================== */
.books-body { padding-top: 6.6vw; }
.books-body .rule { margin-bottom: 4.7vw; }
.book-feature { display: grid; grid-template-columns: 28.3vw 1fr; gap: 10.16vw; align-items: start; padding: 4.6vw 0 8.4vw; }
.book-feature img { width: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.book-feature .copy { font-size: 16px; line-height: 1.4; max-width: 945px; padding-top: 1.7vw; }
.book-feature .copy p + p { margin-top: 1.2vw; }
.cards-head .h-96 { max-width: 1680px; }
.book-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 4.4vw 0 4vw; }
.book-card { position: relative; width: 449px; max-width: 100%; aspect-ratio: 449 / 700; overflow: hidden; background: #0d1116; }
/* four titles fit one row at desktop width, two per row on tablets */
@media (min-width: 1301px) { .book-card { width: calc((100% - 90px) / 4); } }
@media (min-width: 901px) and (max-width: 1300px) { .book-card { width: calc((100% - 30px) / 2); } }
.book-card.lined { border-top: 2px solid #1f6a52; }
.book-card img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out; }
.book-card .overlay {
  position: absolute; inset: 0; padding: 40px 32px; background: var(--card-green); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  opacity: 0; transition: opacity 0.4s ease-in-out, visibility 0.4s; visibility: hidden;
}
.book-card .overlay p { font-size: 17px; line-height: 1.6; max-width: 277px; }
.book-card .overlay h3 { font-family: var(--f-display); font-size: 38px; line-height: 1.4; margin-top: 44px; }
.book-card:hover img, .book-card:focus-within img { opacity: 0; }
.book-card:hover .overlay, .book-card:focus-within .overlay { opacity: 1; visibility: visible; }
.book-card .overlay .btn-amazon { margin-top: 26px; height: 46px; font-size: 15px; }
.book-card .overlay p.small { font-size: 15px; }
.book-card .overlay h3.small { font-size: 30px; margin-top: 26px; }
@media (max-width: 900px) {
  .books-body { padding-top: 40px; }
  .book-feature { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 48px; }
  .book-feature img { max-width: 320px; margin: 0 auto; }
  .book-grid { gap: 20px; padding: 32px 0 20px; }
  .book-card { width: 100%; max-width: 380px; }
  .book-card .overlay h3 { font-size: 30px; }
}
/* touch devices: tap to reveal */
@media (hover: none) { .book-card.tapped img { opacity: 0; } .book-card.tapped .overlay { opacity: 1; visibility: visible; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-hero { padding: 5.9vw var(--gutter) 3.6vw; color: #fff; }
.contact-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 5.8vw, 111px); line-height: 1.1; letter-spacing: -0.02em; max-width: 628px; }
.contact-hero a { display: inline-block; margin-top: 3.7vw; font-size: 16px; color: #f8f8f8; }
.contact-hero a:hover { text-decoration: underline; }
.contact-form-wrap { padding: 0 7.3vw 6.4vw; display: flex; justify-content: flex-end; }
.form { width: 100%; max-width: 1076px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1vw; }
.form .field { margin-bottom: 1.7vw; }
.form textarea { height: 90px; padding: 10px 12px; resize: vertical; }
.form ::placeholder { color: #8a8a8a; }
.btn-send {
  width: 350px; max-width: 100%; height: 40px; border-radius: 999px; background: var(--ink); color: #fff;
  font-family: var(--f-grotesk); font-size: 16px; text-transform: uppercase; border: 1px solid transparent;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.btn-send:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
@media (max-width: 900px) {
  .contact-hero { padding: 48px var(--gutter) 30px; }
  .contact-hero a { margin-top: 26px; }
  .contact-form-wrap { padding-bottom: 56px; }
  .form { width: 100%; }
  .form .row2 { grid-template-columns: 1fr; }
  .form .field { margin-bottom: 20px; }
  .btn-send { width: 100%; }
}

/* ==========================================================================
   Terms & Conditions
   ========================================================================== */
.terms-wrap { padding: 38px var(--gutter) 6vw; display: flex; justify-content: flex-end; }
.terms-card { width: 57.4vw; max-width: 1102px; background: #fff; color: #000; border-radius: 22px; padding: 4.02vw 4.06vw 2.2vw; }
.terms-card h1 { font-family: var(--f-label); font-weight: 300; font-size: clamp(30px, 2.9vw, 56px); line-height: 1.2; color: var(--ink); }
.terms-card .disclaimer { font-family: var(--f-display); font-size: 16px; letter-spacing: 0.8px; margin-top: 3.4vw; padding-bottom: 1.6vw; border-bottom: 1px solid #000; color: var(--ink); }
.terms-body { margin-top: 1.4vw; font-size: 16px; line-height: 22.4px; }
.terms-body h2 { font-size: 16px; font-weight: 700; margin-top: 1.4vw; }
.terms-body h2.tight { margin-top: 0; }
.terms-body p { margin-top: 0; }
.terms-body .gap { margin-top: 22px; }
.terms-body ul { margin: 0 0 0 28px; padding: 0; }
.terms-body a { text-decoration: underline; }
.terms-body .sub b { font-weight: 700; }
.terms-card .end-rule { margin-top: 5.4vw; border-top: 1px solid #000; height: 1.6vw; }
@media (max-width: 900px) { .terms-wrap { padding: 20px var(--gutter) 40px; } .terms-card { width: 100%; padding: 36px 22px 20px; border-radius: 16px; } }

/* ==========================================================================
   Entrance motion (ported from Wix Studio "motion-*" keyframes)
   ========================================================================== */
[data-motion] { --comp-opacity: 1; }
[data-motion]:not(.motion-in):not(.motion-done) { opacity: 0; }
@keyframes motion-fadeIn { 0% { opacity: 0; } 100% { opacity: var(--comp-opacity, 1); } }
@keyframes motion-revealIn {
  0% { opacity: 0; animation-timing-function: step-end; }
  0.0001% { opacity: var(--comp-opacity, 1); clip-path: var(--motion-clip-start, polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)); }
  100% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
}
@keyframes motion-slideIn {
  0.0001% { opacity: var(--comp-opacity, 1); transform: translate(var(--motion-translate-x, 0%), var(--motion-translate-y, 100%)); clip-path: var(--motion-clip-start, polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%)); }
  100% { transform: translate(0, 0); clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
}
@keyframes motion-tiltInClip {
  0.0001% { clip-path: var(--motion-clip-start, polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%)); transform: rotateZ(var(--motion-rotate-z, 30deg)); }
  100% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); transform: rotateZ(0deg); }
}
@keyframes motion-tiltInRotate {
  0% { animation-timing-function: step-end; transform: perspective(800px); }
  0.0001% { transform: perspective(800px) translateZ(calc((var(--motion-height, 200px) / 2) * -1)) rotateX(-90deg) translateZ(calc(var(--motion-height, 200px) / 2)); }
  100% { transform: perspective(800px) translateZ(calc((var(--motion-height, 200px) / 2) * -1)) rotateX(0deg) translateZ(calc(var(--motion-height, 200px) / 2)); }
}
/* "Tilt in": the big section headings */
[data-motion="tilt"].motion-in {
  --motion-rotate-z: 30deg; --motion-clip-start: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  animation: motion-fadeIn 280ms 1ms var(--ease-out) backwards 1, motion-tiltInRotate 1400ms 1ms var(--ease-out) backwards 1, motion-tiltInClip 1120ms 1ms var(--ease-out) backwards 1;
  animation-composition: replace, replace, add;
  transform-origin: 50% 50%;
}
/* "Slide in" from below: the statistic numbers */
[data-motion="slide"].motion-in {
  --motion-clip-start: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%); --motion-translate-x: 0%; --motion-translate-y: 100%;
  animation: motion-slideIn 1200ms 1ms var(--ease-inout) backwards 1, motion-fadeIn 1200ms 1ms var(--ease-inout) backwards 1;
}
/* "Reveal" from the left: statistic descriptions */
[data-motion="reveal"].motion-in {
  --motion-clip-start: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  animation: motion-revealIn 1200ms 1ms var(--ease-inout) backwards 1;
}
/* plain fade, used for the featured book block */
[data-motion="fade"].motion-in { animation: motion-fadeIn 900ms 1ms var(--ease-out) backwards 1; }
.motion-done { opacity: 1 !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-motion] { opacity: 1 !important; animation: none !important; }
  .marquee .track { animation: none; }
}
