/* ------------------------------------------------------------ */
/* Restless History — design tokens                              */
/* ------------------------------------------------------------ */
:root{
  --bg:            #14110d;
  --bg-alt:        #1a1611;
  --bg-raised:     #201b15;
  --line:          rgba(238, 227, 205, 0.12);
  --line-strong:   rgba(238, 227, 205, 0.22);

  --cream:         #f2ead9;
  --cream-dim:     #cabfa9;
  --muted:         #9b917d;

  --gold:          #c8a24d;
  --gold-bright:   #ddb95e;
  --gold-dim:      #8a6f38;

  --font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'IBM Plex Mono', 'SF Mono', ui-monospace, Menlo, monospace;

  --wrap:          1240px;
  --pad:           clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

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

.sr-only{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* subtle film-grain / vignette overlay across the whole page */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(200,162,77,0.06), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(200,162,77,0.05), transparent 55%);
}

/* ------------------------------------------------------------ */
/* Type                                                          */
/* ------------------------------------------------------------ */
h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--cream);
  margin: 0;
  letter-spacing: -0.01em;
}

h2{
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 500;
}

.eyebrow{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow i{ font-style: normal; color: var(--gold-dim); }
.eyebrow-mono{ letter-spacing: .06em; }

.section-head{
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head--center{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--center .eyebrow{ justify-content: center; }

/* ------------------------------------------------------------ */
/* Buttons                                                       */
/* ------------------------------------------------------------ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn span, .btn svg{ transition: transform .25s var(--ease); }
.btn:hover span{ transform: translateX(3px); }
.btn-caret:hover svg{ transform: translateY(2px); }

.btn-gold{
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #17130d;
}
.btn-gold:hover{ filter: brightness(1.08); }

.btn-text{
  padding: 15px 4px;
  background: transparent;
  color: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
}
.btn-text:hover{ color: var(--gold-bright); border-color: var(--gold-dim); }

/* ------------------------------------------------------------ */
/* Header                                                         */
/* ------------------------------------------------------------ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 17, 13, 0.72);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo{ display: inline-flex; align-items: center; gap: 14px; }
.logo-est{
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.logo-divider{
  width: 1px;
  height: 16px;
  background: var(--line-strong);
}
.logo-mark{
  height: 56px;
  width: auto;
  display: block;
}

.nav{ display: flex; align-items: center; gap: 34px; }
.nav a{
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.nav a:hover{ color: var(--cream); }
.nav a.nav-cta{
  color: var(--gold-bright);
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  padding: 9px 16px;
}
.nav a.nav-cta:hover{
  background: var(--gold-dim);
  color: var(--cream);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 1px;
  background: var(--cream);
}

/* ------------------------------------------------------------ */
/* Hero                                                           */
/* ------------------------------------------------------------ */
.hero{
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 600px at 78% 20%, rgba(200,162,77,0.09), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(200,162,77,0.05), transparent 60%);
  pointer-events: none;
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODAiIGhlaWdodD0iMTgwIj4KICA8ZmlsdGVyIGlkPSJuIj4KICAgIDxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjkiIG51bU9jdGF2ZXM9IjIiIHN0aXRjaFRpbGVzPSJzdGl0Y2giIHJlc3VsdD0ibm9pc2UiLz4KICAgIDxmZUNvbG9yTWF0cml4IGluPSJub2lzZSIgdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPgogICAgPGZlQ29tcG9uZW50VHJhbnNmZXI+CiAgICAgIDxmZUZ1bmNSIHR5cGU9ImxpbmVhciIgc2xvcGU9IjIuNCIgaW50ZXJjZXB0PSItMC42Ii8+CiAgICAgIDxmZUZ1bmNHIHR5cGU9ImxpbmVhciIgc2xvcGU9IjIuNCIgaW50ZXJjZXB0PSItMC42Ii8+CiAgICAgIDxmZUZ1bmNCIHR5cGU9ImxpbmVhciIgc2xvcGU9IjIuNCIgaW50ZXJjZXB0PSItMC42Ii8+CiAgICA8L2ZlQ29tcG9uZW50VHJhbnNmZXI+CiAgPC9maWx0ZXI+CiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIi8+Cjwvc3ZnPg==");
  background-size: 160px 160px;
  opacity: .1;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.hero-title{
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: .98;
  font-weight: 600;
  margin: 0 0 26px;
}
.hero-title em{
  font-style: italic;
  font-weight: 400;
  color: var(--cream-dim);
}

.hero-text{
  max-width: 46ch;
  color: var(--cream-dim);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 34px;
}

.hero-actions{ display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.hero-figure{ position: relative; }
.hero-frame{
  border: 1px solid var(--line-strong);
  padding: 10px;
  background: var(--bg-raised);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.hero-video-wrap{ position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  z-index: 0;
}
.hero-video--active{ opacity: 1; z-index: 1; }

/* ------------------------------------------------------------ */
/* Section kicker (§ 0X numbered label)                           */
/* ------------------------------------------------------------ */
.section-kicker{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 28px;
  font-family: var(--font-mono);
}
.section-kicker .num{
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gold);
}
.section-kicker .name{
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------ */
/* Ghost numeral (large background § marker per section)          */
/* ------------------------------------------------------------ */
.section-numeral{
  position: absolute;
  top: clamp(-56px, -4vw, -20px);
  right: clamp(-4px, 1.5vw, 28px);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(150px, 20vw, 300px);
  line-height: 1;
  color: var(--cream);
  opacity: .045;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ------------------------------------------------------------ */
/* Mission (§ 01)                                                 */
/* ------------------------------------------------------------ */
.mission{
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.mission-inner{
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.mission .section-kicker{ align-items: center; margin: 0; }
.mission-rule{ width: 1px; height: 40px; background: var(--gold-dim); }
.mission-quote{
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--cream);
}
.mission-attr{
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.mission-attr cite{ font-style: italic; }
.mission-body{
  margin: 0;
  text-align: left;
  color: var(--cream-dim);
  max-width: 620px;
}

/* ------------------------------------------------------------ */
/* Stats (shared: press strip)                                    */
/* ------------------------------------------------------------ */
.stat{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num{
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  color: var(--gold-bright);
}
.stat-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------ */
/* The Press (§ 02)                                                */
/* ------------------------------------------------------------ */
.press{ position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0; }
.press-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.press-copy h2{
  margin-bottom: 22px;
  font-size: clamp(30px, 3.6vw, 46px);
}
.press-copy h2 em{ font-style: italic; font-weight: 400; color: var(--cream-dim); }
.press-copy p{ color: var(--cream-dim); max-width: 56ch; margin: 0 0 18px; }
.press-copy p em{ font-style: italic; color: var(--cream); }
.press-copy p.lede::first-letter{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.6em;
  line-height: .72;
  float: left;
  padding: 4px 8px 0 0;
  color: var(--gold-bright);
}
.press-stats{ display: flex; gap: 44px; margin-top: 10px; flex-wrap: wrap; }

.press-frame{
  border: 1px solid var(--line-strong);
  padding: 10px;
  background: var(--bg-raised);
}
.press-frame img{ width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }

/* ------------------------------------------------------------ */
/* First Publication (§ 03)                                       */
/* ------------------------------------------------------------ */
.book{
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 160px) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.book > .wrap{ position: relative; z-index: 1; }
.book-inner{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.book-figure{ display: flex; flex-direction: column; align-items: center; }
.book-cover-mock{
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4.3;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(160deg, #241d12, #14110d 75%);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.bcm-top, .bcm-bottom{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.bcm-rule{ width: 60%; height: 1px; background: var(--line-strong); margin: 0; }
.bcm-title{
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.25;
  color: var(--cream);
  margin: 0;
}
.bcm-title em{ font-style: italic; font-weight: 400; color: var(--gold-bright); }
.bcm-sub{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  line-height: 1.6;
  margin: 0;
}
.book-caption{
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
  text-align: center;
}

.book-copy h2{
  margin-bottom: 14px;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.015em;
}
.book-copy h2 em{ font-style: italic; font-weight: 400; color: var(--gold-bright); }
.book-subtitle{ margin: 0 0 28px; color: var(--muted); font-size: 16px; font-family: var(--font-display); font-style: italic; }
.book-meta{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 28px;
}
.book-meta > div{ display: flex; flex-direction: column; gap: 6px; }
.meta-label{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-value{ font-family: var(--font-body); font-size: 14.5px; color: var(--cream); font-weight: 500; }
.book-copy p{ color: var(--cream-dim); max-width: 60ch; margin: 0 0 18px; }
.book-copy p em{ font-style: italic; color: var(--cream); }
.book-note{
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
}

.btn-outline{
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover{ color: var(--cream); border-color: var(--gold-dim); }

/* ------------------------------------------------------------ */
/* Stay Informed (§ 04)                                           */
/* ------------------------------------------------------------ */
.stay-informed{
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
  overflow: hidden;
}
.stay-informed-bg{ position: absolute; inset: 0; z-index: 0; }
.stay-informed-bg img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(40%) brightness(.6);
}
.stay-informed-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,17,13,.95) 0%, rgba(20,17,13,.88) 45%, rgba(20,17,13,.6) 100%);
}
.stay-informed-inner{ position: relative; z-index: 1; max-width: 620px; }
.stay-informed h2{
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
}
.stay-informed h2 em{ font-style: italic; font-weight: 400; color: var(--cream-dim); }
.stay-informed-text{ color: var(--cream-dim); margin: 0 0 32px; max-width: 52ch; }
.stay-informed-text em{ font-style: italic; color: var(--cream); }
.stay-informed-note{
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.newsletter-form{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.newsletter-form input{
  flex: 1 1 220px;
  min-width: 0;
  background: rgba(20,17,13,.4);
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 15px 16px;
  border-radius: 2px;
}
.newsletter-form input::placeholder{ color: var(--muted); }
.newsletter-form input:focus{ outline: none; border-color: var(--gold); }
.newsletter-form .btn{ flex: 0 0 auto; }

/* ------------------------------------------------------------ */
/* Footer                                                         */
/* ------------------------------------------------------------ */
.site-footer{
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-mark--footer{ height: 46px; }
.footer-location{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.footer-nav{ display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.footer-nav a:hover{ color: var(--gold-bright); }
.footer-copy{
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}

/* ------------------------------------------------------------ */
/* Scroll reveal                                                  */
/* ------------------------------------------------------------ */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-in{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------ */
/* Responsive                                                     */
/* ------------------------------------------------------------ */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-figure{ order: -1; max-width: 420px; }
  .press-inner{ grid-template-columns: 1fr; }
  .press-figure{ order: -1; max-width: 420px; }
  .book-inner{ grid-template-columns: 1fr; }
  .book-figure{ max-width: 320px; margin: 0 auto; }
  .book-meta{ grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px){
  .logo-est, .logo-divider{ display: none; }
  .logo-mark{ height: 42px; }
  .nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav a{ padding: 10px 0; width: 100%; }
  .site-header.nav-open .nav{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle{ display: flex; }
  .press-stats{ gap: 28px; }
  .book-meta{ grid-template-columns: 1fr 1fr; }
}
