/* ===== Books In The Loop — design system ===== */
:root {
  /* Brand palette from logo */
  --navy-900: #101d30;
  --navy-850: #142339;
  --navy-800: #16273f;   /* logo background */
  --navy-700: #1d3252;
  --navy-600: #274166;
  --navy-line: rgba(214, 224, 240, 0.14);

  --gold: #d3a253;
  --gold-bright: #e3b566;
  --gold-deep: #b8843a;
  --gold-soft: rgba(211, 162, 83, 0.14);

  --cream: #f7f3ea;
  --paper: #faf7f0;
  --paper-2: #f1ece0;
  --ink: #1a2740;
  --ink-soft: #51607a;
  --ink-faint: #8290a6;

  --accent: var(--gold);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --shadow-sm: 0 1px 2px rgba(16, 29, 48, 0.06), 0 2px 8px rgba(16, 29, 48, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 29, 48, 0.10), 0 2px 8px rgba(16, 29, 48, 0.06);
  --shadow-lg: 0 30px 70px rgba(16, 29, 48, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 132px); position: relative; }
.section--navy { background: var(--navy-800); color: var(--cream); }
.section--paper { background: var(--paper); }
.section--paper2 { background: var(--paper-2); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section--navy .eyebrow { color: var(--gold-bright); }
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--center::after {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.0;
}
.h-xl { font-size: clamp(48px, 8vw, 104px); }
.h-lg { font-size: clamp(38px, 6vw, 72px); }
.h-md { font-size: clamp(30px, 4.4vw, 50px); }
.serif-quiet { font-family: var(--font-serif); font-weight: 500; }

.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--ink-soft); max-width: 54ch; }
.section--navy .lede { color: rgba(247, 243, 234, 0.74); }

.kicker-caps {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--navy-900);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(184, 132, 58, 0.32); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-bright); }
.btn--ghost { background: transparent; border-color: var(--navy-line); color: var(--cream); }
.btn--ghost:hover { background: rgba(247,243,234,0.06); box-shadow: none; border-color: rgba(247,243,234,0.4); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { box-shadow: 0 12px 26px rgba(26,39,64,0.28); }
.btn--outline-ink { background: transparent; border-color: rgba(26,39,64,0.18); color: var(--ink); }
.btn--outline-ink:hover { background: #fff; box-shadow: var(--shadow-sm); border-color: rgba(26,39,64,0.3); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease, color .35s;
  color: var(--cream);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: padding .35s ease;
}
.nav.is-stuck { background: rgba(248, 245, 238, 0.86); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(26,39,64,0.08); color: var(--ink); }
.nav.is-stuck .nav__inner { padding-block: 12px; }
.nav__logo { display: flex; align-items: center; gap: 13px; cursor: pointer; }
.nav__logo .mark { width: 34px; height: 34px; flex: none; }
.nav__logo .name { font-family: var(--font-serif); font-weight: 600; font-size: 21px; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.nav__logo .name small { display: block; font-family: var(--font-sans); font-size: 9px; letter-spacing: 0.34em; font-weight: 600; opacity: .72; margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14.5px; font-weight: 500; opacity: .82; transition: opacity .2s, color .2s; position: relative; white-space: nowrap; }
.nav__links a:hover { opacity: 1; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0; background: var(--gold); transition: width .25s; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: 11px 20px; font-size: 14px; }
.nav__menu-btn { display: none; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
}

/* ---------- orbit graphic ---------- */
.orbit { position: relative; }
.orbit__spin { transform-origin: center; animation: orbitspin 26s linear infinite; }
.no-motion .orbit__spin { animation: none; }
@keyframes orbitspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit__spin { animation: none; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-motion .reveal { opacity: 1; transform: none; transition: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================= HERO */
.hero { position: relative; background: var(--navy-800); color: var(--cream); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.hero__grain { position: absolute; inset: 0; opacity: .04; mix-blend-mode: screen;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 4px 4px; }

/* shared hero copy */
.hero__eyebrow { margin-bottom: 26px; }
.hero h1 { font-family: var(--font-serif); font-weight: 500; }
.hero__sub { margin-top: 26px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 46px; color: rgba(247,243,234,.6); font-size: 14px; }
.hero__meta b { color: var(--cream); font-weight: 600; }
.hero__meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; margin-right: 9px; vertical-align: middle; }

/* gold accent on a word */
.gilt { color: var(--gold-bright); font-style: italic; }

/* ---- A: Editorial split ---- */
.heroA__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  min-height: 100vh; padding-block: 140px 90px; }
.heroA h1 { font-size: clamp(54px, 7.5vw, 108px); line-height: 0.96; letter-spacing: -0.015em; }
.heroA__art { position: relative; display: grid; place-items: center; min-height: 440px; }

/* ---- B: Centered statement ---- */
.heroB { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-block: 150px 100px; }
.heroB__inner { position: relative; display: grid; place-items: center; }
.heroB h1 { font-size: clamp(52px, 9vw, 132px); line-height: 0.94; letter-spacing: -0.02em; position: relative; z-index: 2; }
.heroB .hero__ctas { justify-content: center; }
.heroB .lede { margin-inline: auto; text-align: center; }
.heroB__ring { position: absolute; z-index: 1; inset: 50% auto auto 50%; }

/* ---- C: Dashboard ---- */
.heroC__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  min-height: 100vh; padding-block: 140px 90px; }
.heroC h1 { font-size: clamp(46px, 6vw, 86px); line-height: 0.98; letter-spacing: -0.015em; }
.heroC__art { position: relative; }

/* dashboard card */
.dash {
  position: relative; background: linear-gradient(180deg, #fdfbf6, #f4efe4);
  border-radius: 20px; padding: 22px; color: var(--ink);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
}
.dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash__title { font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.dash__sub { font-size: 11.5px; color: var(--ink-faint); }
.dash__pill { font-size: 11px; font-weight: 600; color: var(--gold-deep); background: var(--gold-soft); padding: 5px 11px; border-radius: 999px; }
.dash__chart { height: 150px; display: flex; align-items: flex-end; gap: 9px; padding: 6px 2px 0; border-bottom: 1px solid rgba(26,39,64,.08); }
.dash__bar { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--navy-600), var(--navy-700)); transition: height 1s cubic-bezier(.2,.7,.2,1); }
.dash__bar.is-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); }
.dash__rows { margin-top: 16px; display: grid; gap: 11px; }
.dash__row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.dash__row .l { color: var(--ink-soft); display: flex; align-items: center; gap: 9px; }
.dash__row .ic { width: 22px; height: 22px; border-radius: 7px; background: var(--gold-soft); display: grid; place-items: center; }
.dash__row .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.dash__float {
  position: absolute; right: -22px; bottom: -26px; background: var(--navy-800); color: var(--cream);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--navy-line);
  display: flex; align-items: center; gap: 12px;
}
.dash__float .big { font-family: var(--font-serif); font-size: 28px; line-height: 1; color: var(--gold-bright); }
.dash__float small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }

@media (max-width: 860px) {
  .heroA__grid, .heroC__grid { grid-template-columns: 1fr; gap: 30px; min-height: auto; padding-block: 124px 70px; }
  .heroA__art { min-height: 320px; order: -1; }
  .heroC__art { margin-top: 8px; }
  .hero__meta { gap: 16px 22px; }
}

/* ============================================================= TRUST STRIP */
.trust { background: var(--navy-850); color: var(--cream); padding-block: 30px; border-top: 1px solid var(--navy-line); }
.trust__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.trust__label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(247,243,234,.5); font-weight: 600; }
.trust__logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.trust__logo { font-family: var(--font-serif); font-weight: 600; font-size: 19px; letter-spacing: .01em; color: rgba(247,243,234,.78); display: flex; align-items: center; gap: 8px; }
.trust__logo .d { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ============================================================= SERVICES */
.sec-head { display: grid; gap: 20px; max-width: 620px; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.services__grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }
.scard {
  background: #fff; border: 1px solid rgba(26,39,64,.07); border-radius: var(--radius);
  padding: 28px 26px 30px; position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(211,162,83,.5); }
.scard__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-800); color: var(--gold-bright); display: grid; place-items: center; margin-bottom: 20px; transition: background .3s; }
.scard:hover .scard__ic { background: var(--gold); color: var(--navy-900); }
.scard h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 9px; }
.scard p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.scard__num { position: absolute; top: 20px; right: 22px; font-family: var(--font-serif); font-size: 15px; color: var(--ink-faint); opacity: .5; }
.services__note { margin-top: 26px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.services__note b { color: var(--ink); font-weight: 600; }

/* ============================================================= PROCESS (orbit) */
.process { overflow: hidden; }
.process__layout { margin-top: 64px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .process__layout { grid-template-columns: 1fr; gap: 40px; } }
.process__steps { display: grid; gap: 14px; }
.pstep { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--navy-line); transition: background .3s, border-color .3s; cursor: default; }
.pstep:hover, .pstep.is-active { background: rgba(247,243,234,.05); border-color: rgba(227,181,102,.4); }
.pstep__n { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-bright);
  display: grid; place-items: center; font-family: var(--font-serif); font-size: 20px; flex: none; transition: background .3s, color .3s; }
.pstep:hover .pstep__n, .pstep.is-active .pstep__n { background: var(--gold); color: var(--navy-900); }
.pstep h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.pstep p { font-size: 14.5px; color: rgba(247,243,234,.62); line-height: 1.55; }
.process__viz { position: relative; display: grid; place-items: center; min-height: 420px; }

/* ============================================================= WHY US */
.why__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why__grid { grid-template-columns: 1fr; } }
.why__item { padding-top: 26px; border-top: 2px solid var(--ink); }
.why__item .big { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 58px); line-height: 1; color: var(--ink); }
.why__item .big .u { color: var(--gold-deep); font-size: .6em; }
.why__item h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; margin: 16px 0 7px; }
.why__item p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================= ABOUT */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .about__grid { grid-template-columns: 1fr; gap: 40px; } }
.about__body { display: grid; gap: 20px; }
.about__body p { color: rgba(247,243,234,.74); line-height: 1.7; font-size: 16.5px; }
.about__sig { margin-top: 8px; display: flex; align-items: center; gap: 16px; }
.about__sig .nm { font-family: var(--font-serif); font-size: 26px; color: var(--cream); }
.about__sig small { color: rgba(247,243,234,.55); font-size: 13px; letter-spacing: .04em; }
.about__card { position: relative; display: grid; place-items: center; min-height: 380px; }
.quotebox { background: rgba(247,243,234,.04); border: 1px solid var(--navy-line); border-radius: 20px; padding: 40px; position: relative; }
.quotebox .q { font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; color: var(--cream); }
.quotebox .qm { font-family: var(--font-serif); font-size: 90px; line-height: .6; color: var(--gold); opacity: .5; height: 40px; }

/* ============================================================= CONTACT */
.contact__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 60px; align-items: start; }
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; gap: 40px; } }
.contact__info { display: grid; gap: 30px; align-content: start; }
.cinfo { display: flex; gap: 16px; align-items: flex-start; }
.cinfo__ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid rgba(26,39,64,.08); color: var(--gold-deep); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.cinfo h4 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 5px; }
.cinfo a, .cinfo p { font-size: 18px; color: var(--ink); font-weight: 500; }
.cinfo a:hover { color: var(--gold-deep); }
.cinfo .sub { font-size: 13.5px; color: var(--ink-soft); font-weight: 400; margin-top: 3px; }

.form { background: #fff; border: 1px solid rgba(26,39,64,.08); border-radius: 22px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
.field label .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  padding: 13px 15px; border-radius: 11px; border: 1px solid rgba(26,39,64,.16); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c2493f; box-shadow: 0 0 0 3px rgba(194,73,63,.12); }
.field__err { font-size: 12px; color: #c2493f; min-height: 0; }
.form__submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.form__submit .note { font-size: 12.5px; color: var(--ink-faint); }
.form .btn { width: auto; }
.form__success { text-align: center; padding: 30px 10px; display: grid; gap: 14px; justify-items: center; }
.form__success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; }
.form__success h3 { font-family: var(--font-serif); font-size: 30px; font-weight: 500; color: var(--ink); }
.form__success p { color: var(--ink-soft); font-size: 15px; max-width: 38ch; }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(26,39,64,.16); background: var(--paper); cursor: pointer; transition: all .2s; user-select: none; color: var(--ink-soft); }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.is-on { background: var(--navy-800); color: var(--cream); border-color: var(--navy-800); }

/* ============================================================= FOOTER */
.footer { background: var(--navy-900); color: var(--cream); padding-block: 64px 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--navy-line); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 30px; } }
.footer__brand .name { font-family: var(--font-serif); font-size: 24px; font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
.footer__brand p { margin-top: 16px; color: rgba(247,243,234,.6); font-size: 14.5px; max-width: 34ch; line-height: 1.6; }
.footer__col h5 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(247,243,234,.5); font-weight: 600; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: rgba(247,243,234,.78); font-size: 14.5px; margin-bottom: 11px; transition: color .2s; }
.footer__col a:hover { color: var(--gold-bright); }
.footer__bottom { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom p { font-size: 13px; color: rgba(247,243,234,.45); }
.footer__bottom .legal { display: flex; gap: 22px; }
.footer__bottom .legal a { font-size: 13px; color: rgba(247,243,234,.55); }
.footer__bottom .legal a:hover { color: var(--gold-bright); }

/* section divider orbit accent */
.divider-orbit { position: absolute; pointer-events: none; opacity: .5; }
