*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:      #0c0a06;
  --ink2:     #1e1a12;
  --paper:    #f0e8d6;
  --cream:    #faf6ee;
  --gold:     #b8892a;
  --gold-l:   #d4a84b;
  --rust:     #8c3520;
  --forest:   #0d4530;
  --muted:    #7a6a50;
  --border:   #d4c4a0;
  --ff:       'Cormorant Garamond', Georgia, serif;
  --fi:       'IM Fell English', Georgia, serif;
  --fs:       'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--fs); background: var(--cream); color: var(--ink2); line-height: 1.7; overflow-x: hidden; }
::selection { background: var(--gold); color: #fff; }

/* ─── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 0 3rem; height: 152px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, box-shadow .3s;
  background: rgba(12,10,6,.92);
}
nav.scrolled {
  background: rgba(12,10,6,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--ff); font-size: 27px; font-weight: 600;
  letter-spacing: .2em; color: #fff; text-decoration: none;
  text-transform: uppercase;
}
.nav-wordmark { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
/* The line that tells a first-time visitor what Hermes is. Sits under the
   wordmark on every page, so it is the first thing read after the seal. */
.nav-tagline {
  font-family: var(--fs); font-size: 22px; font-weight: 500;
  text-transform: none; letter-spacing: 0; line-height: 1.25;
  color: var(--gold-l);
}
.nav-logo img {
  height: 132px; width: 132px; border-radius: 50%;
  background: var(--cream); padding: 3px;
}
.nav-links { display: flex; align-items: center; gap: .1rem; }
.nav-links a {
  font-size: 12.5px; color: rgba(255,255,255,.65); text-decoration: none;
  padding: .4rem .85rem; border-radius: 4px; letter-spacing: .03em;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--gold-l); }
.nav-portal {
  border: 1px solid rgba(184,137,42,.6) !important;
  color: var(--gold-l) !important;
  font-weight: 500 !important;
}
.nav-portal:hover { background: rgba(184,137,42,.15) !important; color: var(--gold-l) !important; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.8); transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  /* top pad clears the fixed nav so the first display line is never covered */
  padding: 152px 0 5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(28,56,40,.6), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(140,53,32,.25), transparent);
  pointer-events: none;
}
.hero-rule { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(184,137,42,.4), transparent); }

.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 3rem; width: 100%; }

.hero-issue {
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: #fff; margin-bottom: 2.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hero-issue::before, .hero-issue::after { content: ''; display: block; flex: 0 0 40px; height: 1px; background: rgba(184,137,42,.45); }

.hero-title {
  font-family: var(--ff); font-size: clamp(64px, 10vw, 136px);
  font-weight: 300; line-height: .98; letter-spacing: -.02em;
  color: var(--paper); margin-bottom: 0;
}
.hero-title .accent { color: var(--gold-l); font-style: italic; font-weight: 300; }
/* three lines step down diagonally; "borders" starts directly under the m of "many"
   because both sit in the same left-aligned column (.many-col) */
.hero-title { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
.hero-title .line1,
.hero-title .line2,
.hero-title .line3 { display: block; }
.hero-title .line2 { padding-left: 1.2em; }
.hero-title .many-col { display: inline-block; vertical-align: top; }

.hero-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
  max-width: 620px; margin: 3rem auto 0;
}
/* short gold divider between the title and the copy */
.hero-bottom::before { content: ''; display: block; width: 64px; height: 1px; background: rgba(184,137,42,.6); }
.hero-sub { font-size: 15px; color: #fff; max-width: 520px; line-height: 1.8; margin: 0 auto; }
.hero-cta { display: flex; gap: .75rem; align-items: center; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: none;
  font-family: var(--fs); font-size: 13.5px; font-weight: 500;
  padding: .65rem 1.6rem; border-radius: 4px; transition: all .15s;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a07825; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ink { background: var(--ink2); color: var(--paper); }
.btn-ink:hover { background: #0a0805; }
.btn-outline-gold { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

/* ─── MARQUEE ───────────────────────────────────────────────── */
.marquee-wrap {
  background: var(--gold); overflow: hidden;
  padding: .85rem 0; border-top: 1px solid rgba(0,0,0,.1); border-bottom: 1px solid rgba(0,0,0,.1);
}
.marquee-track { display: flex; gap: 0; animation: marquee 30s linear infinite; white-space: nowrap; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .18em;
  color: rgba(255,255,255,.9); padding: 0 2.5rem;
  display: flex; align-items: center; gap: 2.5rem; flex-shrink: 0;
}
.marquee-item::after { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); vertical-align: middle; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SECTION BASE ──────────────────────────────────────────── */
section { padding: 7rem 0; }
.page-hero { padding: 10rem 0 4rem; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 2.5rem; }
.section-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: .28em;
  color: var(--gold); font-weight: 500; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .8rem;
}
.section-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-title { font-family: var(--ff); font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 400; }
.section-body { font-size: 15.5px; color: var(--muted); line-height: 1.85; }

/* ─── ABOUT ─────────────────────────────────────────────────── */
#about { background: var(--ink2); color: var(--paper); }
#about .section-body { color: rgba(240,232,214,.75); }
#about .section-body + .section-body { margin-top: 1rem; }
.about-mission-title { margin-bottom: 1.2rem; }
.about-backdrop-tag { margin-top: 2rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
/* Content blocks: history and mission under the book, backdrop on the right */
.about-card {
  margin-top: 2rem; padding: 2rem 2rem 2.2rem;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
  border-top: 2px solid var(--gold); border-radius: 4px;
}
.about-card-tall { margin-top: 0; }
#about .about-card .about-mission-title {
  color: var(--paper); font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 0;
}
.about-history-year {
  font-family: var(--ff); font-size: clamp(30px, 3.2vw, 40px); font-weight: 300;
  color: var(--gold-l); line-height: 1; margin-bottom: 1rem;
}
/* Right column: an opening line set larger, then the backdrop, then the closing note */
.about-lead {
  font-family: var(--ff); font-size: clamp(20px, 2vw, 25px); line-height: 1.45;
  color: var(--paper); margin-bottom: 1.4rem;
}
.about-note {
  margin-top: 2rem; padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--gold); background: rgba(184,137,42,.08);
  font-family: var(--fi); font-style: italic; font-size: 17px; line-height: 1.6;
  color: var(--paper);
}
.timeline { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.8rem; }
.tl-item { display: grid; grid-template-columns: 24px 1fr; gap: 1rem; align-items: start; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 7px; justify-self: center; }
.tl-text { font-size: 14.5px; color: rgba(240,232,214,.65); line-height: 1.75; }
.tl-text strong { color: var(--paper); font-weight: 500; }

/* ─── LANGUAGES ─────────────────────────────────────────────── */
#languages { background: var(--paper); }
.lang-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.lang-count { font-family: var(--ff); font-size: 120px; line-height: 1; color: var(--gold); opacity: .18; text-align: right; font-weight: 300; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.lang-cell {
  background: var(--cream); padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .25rem;
  transition: background .15s;
}
.lang-cell:hover { background: var(--ink); }
.lang-cell:hover .lang-en { color: var(--gold-l); }
.lang-cell:hover .lang-native { color: rgba(255,255,255,.5); }
.lang-cell:hover .lang-media { color: rgba(255,255,255,.3); }
.lang-en { font-size: 15px; font-weight: 500; color: var(--ink2); transition: color .15s; }
.lang-native { font-size: 20px; color: var(--gold); line-height: 1.2; transition: color .15s; }
.lang-media { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: .3rem; transition: color .15s; }

/* ── Browsing a language ─────────────────────────────────────
   Every cell opens the titles we hold in that language, in a drawer under
   the grid. The catalogue is served by /api/books/shop, so the drawer shows
   what is actually orderable today; the standing invitation to ask for
   anything else sits at the end of the section. */
.lang-cell { cursor: pointer; position: relative; }
.lang-cell:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.lang-cue {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-top: .5rem; opacity: 0; transition: opacity .15s;
}
.lang-cell:hover .lang-cue, .lang-cell.active .lang-cue, .lang-cell:focus-visible .lang-cue { opacity: 1; }
.lang-cell.active { background: var(--ink); }
.lang-cell.active .lang-en { color: var(--gold-l); }
.lang-cell.active .lang-native { color: rgba(255,255,255,.5); }
.lang-cell.active .lang-media { color: rgba(255,255,255,.3); }

.lang-books { background: var(--ink); border: 1px solid var(--border); border-top: none; padding: 2.5rem; }
.lang-books-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem;
  padding-bottom: 1.2rem; border-bottom: 1px solid rgba(212,196,160,.18);
}
.lang-books-title { font-family: var(--ff); font-size: 26px; color: var(--paper); }
.lang-books-title span { color: var(--gold); margin-left: .5rem; }
.lang-books-count { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(240,232,214,.45); }
.lang-books-close {
  background: none; border: 1px solid rgba(212,196,160,.3); color: rgba(240,232,214,.6);
  font-family: var(--fs); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .9rem; cursor: pointer; transition: color .15s, border-color .15s;
}
.lang-books-close:hover { color: var(--gold-l); border-color: var(--gold); }
.lang-books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.8rem; }
.lang-books-price { font-size: 12px; color: var(--gold-l); }
.lang-books-foot { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.lang-books-note { color: rgba(240,232,214,.5); font-family: var(--ff); font-size: 18px; font-style: italic; line-height: 1.5; }

.lang-cta {
  border: 1px solid var(--border); border-top: none; background: var(--cream);
  padding: 3rem 2.5rem; text-align: center;
}
.lang-cta-text { font-family: var(--ff); font-size: clamp(22px, 2.6vw, 30px); color: var(--ink2); }
.lang-cta-sub { font-size: 14px; color: var(--muted); margin: .6rem 0 1.6rem; }

@media (max-width: 640px) {
  .lang-books, .lang-cta { padding: 1.8rem 1.2rem; }
  .lang-books-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1.2rem; }
}

/* ─── SERVICES ──────────────────────────────────────────────── */
#services { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); margin-top: 4rem; }
.service-cell {
  background: var(--cream); padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: background .2s;
}
.service-cell:hover { background: var(--forest); }
.service-cell:hover .service-title { color: var(--paper); }
.service-cell:hover .service-body { color: rgba(240,232,214,.9); }
.service-cell:hover .service-num { color: var(--gold-l); }
.service-num {
  font-family: var(--ff); font-size: 80px; font-weight: 300;
  color: var(--gold); position: absolute; top: .5rem; right: 1rem;
  line-height: 1; pointer-events: none; transition: color .2s;
}
.service-icon { width: 48px; height: 48px; border-radius: 8px; background: rgba(184,137,42,.14); display: flex; align-items: center; justify-content: center; margin-bottom: 1.4rem; color: var(--gold); transition: background .2s; }
.service-cell:hover .service-icon { background: rgba(184,137,42,.25); color: var(--gold-l); }
.service-title { font-family: var(--ff); font-size: 26px; margin-bottom: .8rem; color: var(--ink2); transition: color .2s; }
.service-body { font-size: 14px; color: var(--ink2); line-height: 1.75; transition: color .2s; }

/* ─── FEATURED BOOKS ─────────────────────────────────────────── */
#featured-books { background: var(--ink); color: var(--paper); }
#featured-books .section-title { color: var(--paper); }
.books-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.5rem; }
.book-item { display: flex; flex-direction: column; gap: .6rem; }
.book-cover-wrap {
  aspect-ratio: 2/3; background: var(--ink2); border-radius: 3px;
  overflow: hidden; position: relative;
  box-shadow: 4px 4px 16px rgba(0,0,0,.4), -2px 0 0 rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .2s;
}
.book-cover-wrap:hover { transform: rotate(-2deg) translateY(-4px); box-shadow: 8px 8px 24px rgba(0,0,0,.5); }
.book-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem;
  background: linear-gradient(135deg, var(--forest), var(--ink2));
}
.book-cover-placeholder .bcp-title {
  font-family: var(--ff); font-size: 13px; color: rgba(240,232,214,.8);
  text-align: center; padding: .5rem; line-height: 1.3;
}
.book-avail-badge {
  position: absolute; bottom: .4rem; right: .4rem;
  font-size: 9px; text-transform: uppercase; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 3px; font-weight: 600;
}
.avail-stock { background: rgba(28,56,40,.9); color: #7fcca0; }
.avail-order { background: rgba(140,53,32,.8); color: #f5b08a; }
.book-item-title { font-family: var(--ff); font-size: 14px; color: var(--paper); line-height: 1.3; }
.book-item-title-en { font-size: 12px; color: rgba(240,232,214,.55); font-style: italic; margin-top: 1px; }
.book-item-author { font-size: 12px; color: rgba(240,232,214,.45); }
.book-item-note { font-size: 11.5px; color: var(--gold-l); font-style: italic; }

/* ─── CLIENTS ───────────────────────────────────────────────── */
#clients { background: var(--paper); }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.client-card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.8rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .15s, box-shadow .15s;
}
.client-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(184,137,42,.1); }
.client-initial {
  width: 44px; height: 44px; border-radius: 4px;
  background: var(--ink2); color: var(--gold-l);
  font-family: var(--ff); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .5rem;
}
.client-name { font-family: var(--ff); font-size: 20px; color: var(--ink2); }
.client-location { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.client-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-top: .3rem; }

/* ─── DIFFERENCE ────────────────────────────────────────────── */
#difference { background: var(--forest); color: var(--paper); }
#difference .section-title { color: var(--paper); }
.diff-layout { display: grid; grid-template-columns: 5fr 4fr; gap: 5rem; align-items: center; }
.diff-points { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.diff-pt { display: flex; gap: 1.2rem; align-items: flex-start; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.diff-pt:last-child { border-bottom: none; padding-bottom: 0; }
.diff-icon { width: 36px; height: 36px; border-radius: 6px; background: rgba(184,137,42,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-l); }
.diff-pt-title { font-size: 15px; font-weight: 500; color: var(--paper); margin-bottom: .3rem; }
.diff-pt-body { font-size: 13.5px; color: rgba(240,232,214,.55); line-height: 1.7; }
.diff-callout { font-family: var(--ff); font-size: clamp(24px, 2.6vw, 34px); font-style: italic; font-weight: 400; line-height: 1.3; color: var(--gold-l); margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(212,168,75,.35); }
.diff-aside {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px; padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.diff-stat { display: flex; flex-direction: column; gap: .2rem; }
.diff-stat-num { font-family: var(--ff); font-size: 52px; line-height: 1; color: var(--gold-l); }
.diff-stat-label { font-size: 13px; color: rgba(240,232,214,.5); }

/* ─── REACH ─────────────────────────────────────────────────── */
#reach { background: var(--cream); }
.reach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); margin-top: 4rem; }
.reach-cell { background: var(--cream); padding: 2.5rem; }
.reach-region { font-family: var(--ff); font-size: 28px; margin-bottom: 1rem; color: var(--ink2); }
.reach-body { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.reach-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.reach-tag { font-size: 11.5px; padding: .25rem .75rem; border-radius: 20px; font-weight: 500; }
.reach-tag-dark { background: var(--ink2); color: var(--gold-l); }
.reach-tag-light { background: var(--paper); color: var(--muted); border: 1px solid var(--border); }

/* ─── COPYRIGHT ─────────────────────────────────────────────── */
#copyright { background: var(--ink2); color: var(--paper); }
#copyright .section-title { color: var(--paper); }
#copyright .copy-grid { margin-top: 0; gap: 3rem; }
#copyright .about-card { margin-top: 0; }
#copyright .about-history-year { margin-bottom: 1.4rem; line-height: 1.1; }
.copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; margin-top: 3rem; }
.copy-body { font-size: 15px; color: rgba(240,232,214,.6); line-height: 1.85; }
.copy-body + .copy-body { margin-top: 1.2rem; }
.guarantee-box { background: rgba(255,255,255,.04); border: 1px solid rgba(184,137,42,.3); border-radius: 4px; padding: 2rem; }
.guarantee-title { font-family: var(--ff); font-size: 22px; color: var(--gold-l); margin-bottom: 1.2rem; }
.guarantee-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.guarantee-list li { font-size: 14px; color: rgba(240,232,214,.75); line-height: 1.6; display: flex; gap: .8rem; }
.guarantee-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ─── CONTACT ───────────────────────────────────────────────── */
#contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 4rem; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1.2rem; align-items: flex-start; }
.contact-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--surface2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); }
.contact-label { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 600; }
.contact-val { font-size: 17px; color: var(--ink2); margin-top: .2rem; }
.contact-val a { color: var(--ink2); text-decoration: none; border-bottom: 1px solid var(--border); }
.contact-val a:hover { border-color: var(--gold); color: var(--gold); }
.contact-sub { font-size: 13.5px; color: var(--ink); margin-top: .15rem; }
.contact-cta { background: var(--ink2); border-radius: 4px; padding: 2.5rem; color: var(--paper); }
.contact-cta-title { font-family: var(--ff); font-size: 28px; margin-bottom: 1rem; }
.contact-cta-body { font-size: 14px; color: rgba(240,232,214,.6); line-height: 1.75; margin-bottom: 2rem; }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer { background: var(--ink); padding: 3rem 2.5rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--ff); font-size: 23px; letter-spacing: .2em; color: rgba(240,232,214,.5); text-transform: uppercase;
}
.footer-logo img {
  height: 92px; width: 92px; border-radius: 50%;
  background: var(--cream); padding: 3px;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 12.5px; color: rgba(240,232,214,.3); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--gold-l); }
.footer-copy { width: 100%; font-size: 11.5px; color: rgba(240,232,214,.2); border-top: 1px solid rgba(255,255,255,.05); padding-top: 1.5rem; margin-top: .5rem; }

/* ─── Empty & spinner ───────────────────────────────────────── */
.empty-block { padding: 3rem; text-align: center; color: rgba(240,232,214,.25); font-family: var(--ff); font-size: 20px; font-style: italic; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scroll Reveal ─────────────────────────────────────────── */
.rv, .rv-l, .rv-r, .rv-scale {
  opacity: 0;
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
}
.rv       { transform: translateY(36px); }
.rv-l     { transform: translateX(-36px); }
.rv-r     { transform: translateX(36px); }
.rv-scale { transform: scale(.94); }
.rv.in, .rv-l.in, .rv-r.in, .rv-scale.in { opacity: 1; transform: none; }
.d1  { transition-delay: .08s; }
.d2  { transition-delay: .16s; }
.d3  { transition-delay: .24s; }
.d4  { transition-delay: .32s; }
.d5  { transition-delay: .40s; }
.d6  { transition-delay: .48s; }
.d7  { transition-delay: .56s; }
.d8  { transition-delay: .64s; }
.d9  { transition-delay: .72s; }
.d10 { transition-delay: .80s; }
.d11 { transition-delay: .88s; }
.d12 { transition-delay: .96s; }
.d13 { transition-delay: 1.04s; }

/* ── Hero entrance ──────────────────────────────────────────── */
@keyframes heroSlide { from { opacity:0; transform:translateY(50px); } to { opacity:1; transform:none; } }
@keyframes heroFade  { from { opacity:0; } to { opacity:1; } }
.hero-eyebrow { animation: heroSlide .7s cubic-bezier(.16,1,.3,1) .1s both; }
.hero-title   { animation: heroSlide 1.1s cubic-bezier(.16,1,.3,1) .25s both; }
.hero-bottom  { animation: heroSlide .85s cubic-bezier(.16,1,.3,1) .55s both; }
.hero-rule    { animation: heroFade 1.5s ease .1s both; }

/* ── SVG line draw animation ────────────────────────────────── */
.path-draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 2.4s cubic-bezier(.4,0,.2,1); }
.path-draw.in { stroke-dashoffset: 0; }

/* ── Pulsing location dots ──────────────────────────────────── */
@keyframes locPulse { 0%,100% { r:5; opacity:.9; } 50% { r:9; opacity:.4; } }
.loc-pulse-ring { animation: locPulse 2.8s ease-in-out infinite; }
@keyframes dotGlow { 0%,100% { opacity:1; } 50% { opacity:.5; } }
.loc-dot-inner { animation: dotGlow 2s ease-in-out infinite; }

/* ── Open book SVG animation ────────────────────────────────── */
/* ── The book ────────────────────────────────────────────────
   One sequence, read the way a book is read: HERMES flies letter by letter
   onto the right-hand leaf, the leaf turns over the spine, ENTERPRISE lands
   on the page beneath, and the book stays open there on HERMES ENTERPRISE.

   Every stage is the same trick: a group mirrored about a line, with the face
   that should be seen swapped in at the halfway point, while anything that
   must stay readable carries a counter-mirror of its own. Letter positions
   are measured from the real glyph advances in shared.js. */

.book-letter {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  letter-spacing: 0; text-anchor: start;
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
}
.book-letter-ink  { fill: url(#goldInk); }
.book-letter-gold { fill: url(#goldInk); }

/* Mirror lines: the leaves and the folding half swing about the spine, the
   shut book turns about its own middle. */
.book-leaf-front, .book-leaf-back, .book-right-half {
  transform-box: view-box; transform-origin: 170px 102px;
}
.book-turnover { transform-box: view-box; transform-origin: 92px 102px; }
.book-stage    { transform-box: view-box; transform-origin: 170px 102px; }

.book-leaf-back  { transform: scaleX(0); }
.book-cover-front, .book-cover-back { opacity: 0; }

@keyframes letterFly {
  0%   { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.15); }
  55%  { opacity: 1; }
  75%  { transform: translate(0, -4px) rotate(12deg) scale(1.12); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes leafLift   { 0% { transform: scaleX(1); }  100% { transform: scaleX(0); } }
@keyframes leafLand   { 0% { transform: scaleX(0); }  100% { transform: scaleX(-1); } }
@keyframes shadeOn    { 0% { opacity: 0; }  100% { opacity: 1; } }
@keyframes shadeOff   { 0% { opacity: .9; } 100% { opacity: 0; } }

.book-svg-wrap.in .book-letter      { animation: letterFly .95s cubic-bezier(.34,1.3,.5,1) both; }
.book-svg-wrap.in .book-leaf-front  { animation: leafLift .62s cubic-bezier(.55,0,.85,.35) 1.95s both; }
.book-svg-wrap.in .book-leaf-back   { animation: leafLand .64s cubic-bezier(.15,.7,.4,1) 2.57s both; }
.book-svg-wrap.in .book-shade-front { animation: shadeOn .62s ease-in 1.95s both; }
.book-svg-wrap.in .book-shade-back  { animation: shadeOff .85s ease-out 2.57s both; }

/* HERMES is written on both faces of the leaf, so it stays on the page once
   the leaf has come to rest. The reverse copy is carried in by the turn
   rather than flown in. */
.book-svg-wrap.in .book-leaf-back .book-letter { animation: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .book-svg-wrap.in .book-letter { animation: none; opacity: 1; }
  .book-svg-wrap.in .book-leaf-front, .book-svg-wrap.in .book-leaf-back,
  .book-svg-wrap.in .book-right-half, .book-svg-wrap.in .book-turnover,
  .book-svg-wrap.in .book-stage, .book-svg-wrap.in .book-cover-front,
  .book-svg-wrap.in .book-cover-back, .book-svg-wrap.in .book-shade-front,
  .book-svg-wrap.in .book-shade-back { animation: none; }
  .book-svg-wrap.in .book-leaf-front { transform: scaleX(0); }
  .book-svg-wrap.in .book-leaf-back  { transform: scaleX(-1); }
  .book-svg-wrap.in .book-shade-front, .book-svg-wrap.in .book-shade-back { opacity: 0; }
}

/* ── Number counter ─────────────────────────────────────────── */
.count-num { display:inline-block; }

/* ── Lang grid stagger ──────────────────────────────────────── */
.lang-grid .lang-cell { opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease; }
.lang-grid.in .lang-cell { opacity:1; transform:none; }

/* ── Service card refined hover ─────────────────────────────── */
.service-cell::before { content:''; position:absolute; inset:0; background:var(--forest); transform:scaleY(0); transform-origin:bottom; transition:transform .35s cubic-bezier(.4,0,.2,1); z-index:0; }
.service-cell:hover::before { transform:scaleY(1); }
.service-cell > * { position:relative; z-index:1; }

/* ── Marquee pause on hover ─────────────────────────────────── */
.marquee-wrap:hover .marquee-track { animation-play-state:paused; }

@media (max-width: 900px) {
  .about-grid, .diff-layout, .copy-grid, .contact-grid, .lang-header, .reach-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  nav { padding: 0 1.5rem; height: 100px; }
  .nav-logo img { height: 80px; width: 80px; }
  .nav-logo { font-size: 20px; }
  .nav-tagline { font-size: 16px; }
  .nav-wordmark { gap: .2rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12,10,6,.97); backdrop-filter: blur(12px);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 480px; }
  .nav-links a { padding: .9rem 1.5rem; border-top: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav-links a.nav-portal { border: none; border-top: 1px solid rgba(255,255,255,.06); }
  section { padding: 5rem 0; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 52px; }
  .hero-title .line2 { padding-left: .4em; }
  .hero-inner { padding: 0 1.5rem; }
  .hero-issue { font-size: 9.5px; letter-spacing: .22em; margin-bottom: 1.8rem; gap: .6rem; }
  .hero-issue::before, .hero-issue::after { flex-basis: 20px; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Desktop type scale ─────────────────────────────────────── */
/* Everything above is sized in px for tight control on small screens.
   On a real monitor that reads small, so bump the body copy and UI text
   roughly 25% from 1024px up. Display type (hero, section titles) already
   scales with clamp() and is deliberately left alone. */
@media (min-width: 1024px) {
  body { font-size: 19px; }
  .nav-links a       { font-size: 15.7px; }
  .hero-sub          { font-size: 19px; max-width: 580px; }
  .hero-issue        { font-size: 12.9px; }
  .btn               { font-size: 16.8px; }
  .section-body      { font-size: 19.6px; }

  /* About prose stays compact on desktop instead of scaling up into a wall of text */
  #about .section-body { font-size: 16.2px; line-height: 1.7; }
  #about .section-body + .section-body { margin-top: .75rem; }
  #about .about-mission-title { margin-bottom: .9rem; }
  #about .section-tag { margin-bottom: .7rem; }
  #about .about-backdrop-tag { margin-top: 1.5rem; }
  #about .about-note { font-size: 19px; }
  #about .timeline { margin-top: 2rem; gap: 1.35rem; }
  #about .tl-text { font-size: 15.6px; line-height: 1.65; }
  .section-tag       { font-size: 12.3px; }
  .tl-text           { font-size: 17.9px; }
  .lang-en           { font-size: 18.5px; }
  .lang-native       { font-size: 24.6px; }
  .lang-media        { font-size: 12.9px; }
  .service-title     { font-size: 31.4px; }
  .service-body      { font-size: 17.4px; }
  .book-item-title   { font-size: 17.4px; }
  .book-item-title-en,
  .book-item-author  { font-size: 14.6px; }
  .book-item-note    { font-size: 14px; }
  .client-name       { font-size: 24.6px; }
  .client-desc       { font-size: 16.8px; }
  .client-location   { font-size: 14.6px; }
  .diff-pt-title     { font-size: 18.5px; }
  .diff-pt-body      { font-size: 16.8px; }
  .diff-stat-label   { font-size: 15.7px; }
  .reach-region      { font-size: 33.6px; }
  .reach-body        { font-size: 17.9px; }
  .reach-tag         { font-size: 14px; }
  .copy-body         { font-size: 18.5px; }
  .guarantee-title   { font-size: 26.9px; }
  .guarantee-list li { font-size: 17.4px; }
  .contact-label     { font-size: 12.3px; }
  .contact-val       { font-size: 21.3px; }
  .contact-sub       { font-size: 16.8px; }
  .contact-cta-title { font-size: 33.6px; }
  .contact-cta-body  { font-size: 17.4px; }
  .footer-links a    { font-size: 15.1px; }
  .footer-copy       { font-size: 14px; }
}
