:root {
  --ink: #0c0c0b;
  --paper: #f1eee7;
  --muted: #aaa69c;
  --blue: #079cc2;
  --blue-dark: #046a86;
  --line: rgba(255,255,255,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  padding-top: 54px;
}
img { display:block; width:100%; }
a { color:inherit; text-decoration:none; }

.dev-credit-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .7rem 5vw;
  background: linear-gradient(90deg, rgba(3,8,16,.98) 0%, rgba(8,23,36,.95) 100%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  color: #f2f7fb;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.dev-credit-bar:hover,
.dev-credit-bar:focus-visible {
  background: linear-gradient(90deg, rgba(3,8,16,1) 0%, rgba(9,28,43,.98) 100%);
}
.dev-credit-label { color: #abcfe6; }
.dev-credit-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .82rem;
  letter-spacing: .08em;
  font-weight: 600;
  text-transform: none;
  color: white;
}
.dev-credit-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a6ea2 0%, #59d3ff 100%);
  color: #04111d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 1px rgba(255,255,255,.16);
  flex-shrink: 0;
}
.dev-credit-logo svg { width: 20px; height: 20px; }
.dev-credit-name { white-space: nowrap; }

.grain {
  position: fixed; inset: 0; pointer-events:none; opacity:.045; z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed; top:54px; left:0; width:100%; height:88px; z-index:40;
  display:flex; justify-content:space-between; align-items:center; padding:0 5vw;
  border-bottom:1px solid transparent; transition:.35s ease;
}
.site-header.scrolled { background:rgba(8,8,8,.9); backdrop-filter:blur(16px); border-color:var(--line); }
section[id] { scroll-margin-top: 120px; }
.brand { line-height:.8; letter-spacing:.16em; font-size:.72rem; display:flex; flex-direction:column; gap:7px; }
.brand strong { font-family:"Cormorant Garamond",serif; font-size:1.65rem; letter-spacing:.1em; }
.main-nav { display:flex; gap:2.2rem; font-size:.76rem; text-transform:uppercase; letter-spacing:.14em; }
.main-nav a { position:relative; }
.main-nav a::after { content:""; position:absolute; left:0; bottom:-7px; width:0; height:1px; background:var(--blue); transition:.25s; }
.main-nav a:hover::after { width:100%; }
.menu-toggle { display:none; background:none; border:0; width:40px; height:40px; padding:8px; }
.menu-toggle span { display:block; height:1px; background:white; margin:8px 0; }

.hero { min-height:100vh; position:relative; display:flex; align-items:center; overflow:hidden; }
.hero-image { position:absolute; inset:0; background:url('assets/hector-hero.png') center/cover no-repeat; transform:scale(1.02); }
.hero-overlay { position:absolute; inset:0; background:linear-gradient(90deg,rgba(7,7,7,.98) 0%,rgba(7,7,7,.78) 32%,rgba(7,7,7,.1) 70%), linear-gradient(0deg,rgba(7,7,7,.6),transparent 40%); }
.hero-content { position:relative; z-index:2; width:min(760px,82vw); margin-left:8vw; padding-top:65px; }
.eyebrow { font-size:.72rem; letter-spacing:.3em; font-weight:600; margin:0 0 1.5rem; }
.eyebrow.blue { color:var(--blue); }
.hero h1, h2, blockquote { font-family:"Cormorant Garamond",serif; font-weight:500; }
.hero h1 { font-size:clamp(3.4rem,6vw,7.4rem); line-height:.88; letter-spacing:-.045em; margin:0; max-width:760px; }
.hero-copy { font-size:1.05rem; line-height:1.75; color:#d0ccc3; max-width:580px; margin:2rem 0; }
.hero-actions { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.btn { min-height:52px; padding:0 1.6rem; display:inline-flex; align-items:center; justify-content:center; text-transform:uppercase; font-size:.7rem; letter-spacing:.14em; transition:.25s ease; }
.btn-primary { background:var(--blue); color:white; }
.btn-primary:hover { background:#13b2d8; transform:translateY(-2px); }
.btn-ghost { border:1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background:white; color:black; }
.btn-dark { background:#101010; color:white; }
.btn-dark:hover { background:var(--blue-dark); }
.scroll-mark { position:absolute; right:5vw; bottom:40px; z-index:4; display:flex; align-items:center; gap:16px; font-size:.62rem; letter-spacing:.25em; transform:rotate(90deg); transform-origin:right center; }
.scroll-mark i { display:block; width:70px; height:1px; background:rgba(255,255,255,.6); }

.quote-strip { background:var(--blue); color:white; padding:2.2rem 5vw; text-align:center; }
.quote-strip p { margin:0; font-family:"Cormorant Garamond",serif; font-size:clamp(1.3rem,2.2vw,2.1rem); font-style:italic; }
.section { padding:9rem 8vw; }

.featured-book { background:var(--paper); color:#161615; display:grid; grid-template-columns:minmax(320px,.85fr) minmax(380px,1.15fr); gap:9vw; align-items:center; }
.book-visual { position:relative; min-height:650px; display:grid; place-items:center; }
.book-visual img { position:relative; z-index:2; width:min(100%,620px); box-shadow:0 35px 80px rgba(0,0,0,.25); transform:rotate(-2deg); }
.book-glow { position:absolute; width:80%; height:70%; background:radial-gradient(circle,var(--blue) 0%,transparent 70%); filter:blur(40px); opacity:.27; }
.book-content h2, .author h2, .section-heading h2, .contact h2 { font-size:clamp(3rem,5vw,6.2rem); line-height:.92; letter-spacing:-.04em; margin:.5rem 0 1.2rem; }
.book-author { text-transform:uppercase; letter-spacing:.15em; font-size:.75rem; }
.lead { font-family:"Cormorant Garamond",serif; font-size:1.75rem; line-height:1.35; }
.book-content > p:not(.eyebrow):not(.book-author):not(.lead), .author-copy > p:not(.eyebrow):not(.lead), .section-heading p, .contact-copy p { line-height:1.8; color:#5d5a54; }
.book-meta { border-top:1px solid #c9c5bb; border-bottom:1px solid #c9c5bb; display:flex; gap:3rem; padding:1.4rem 0; margin:2rem 0; }
.book-meta div { display:flex; flex-direction:column; gap:.4rem; }
.book-meta span { font-size:.6rem; letter-spacing:.18em; color:#88847b; }
.text-link { font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; padding:.8rem 0; border-bottom:1px solid currentColor; }
.text-link span { margin-left:.7rem; }
.text-link.light { color:white; }

.author { display:grid; grid-template-columns:1fr 1fr; min-height:850px; padding:0; background:#10100f; }
.author-copy { padding:10rem 8vw; display:flex; flex-direction:column; justify-content:center; }
.author-copy h2 { color:white; }
.author-copy > p:not(.eyebrow):not(.lead) { color:#aaa69c; }
.author-image { min-height:720px; overflow:hidden; }
.author-image img { height:100%; object-fit:cover; filter:grayscale(25%); }

.trajectory { background:#e9e5dc; color:#151514; }
.section-heading { max-width:820px; margin-bottom:5rem; }
.timeline { border-top:1px solid #b9b4a8; }
.timeline-item { display:grid; grid-template-columns:100px 1fr; gap:2rem; padding:2.5rem 0; border-bottom:1px solid #b9b4a8; align-items:start; }
.timeline-item .year { font-family:"Cormorant Garamond",serif; font-size:2.4rem; color:var(--blue-dark); }
.timeline-item h3 { margin:0 0 .5rem; font-family:"Cormorant Garamond",serif; font-size:2rem; }
.timeline-item p { margin:0; color:#5e5a52; line-height:1.7; }

.statement { min-height:80vh; background:linear-gradient(rgba(4,24,29,.72),rgba(4,24,29,.72)),url('assets/hector-01.jpg') center/cover fixed; display:grid; place-items:center; padding:6rem 8vw; text-align:center; }
.statement-inner { max-width:1000px; }
.statement span { font-size:.68rem; letter-spacing:.35em; color:#77d6eb; }
.statement blockquote { margin:2rem 0 0; font-size:clamp(3rem,6vw,7rem); line-height:.95; }

.gallery { background:#0b0b0a; }
.gallery .section-heading p { color:#8d8a82; }
.gallery-grid { display:grid; grid-template-columns:1.2fr .8fr; grid-template-rows:1fr 1fr; gap:1rem; height:900px; }
.gallery-grid figure { margin:0; overflow:hidden; }
.gallery-large { grid-row:1/3; }
.gallery-grid img { height:100%; object-fit:cover; transition:transform .7s ease, filter .7s ease; filter:saturate(.75); }
.gallery-grid figure:hover img { transform:scale(1.035); filter:saturate(1); }

.contact { background:var(--blue-dark); display:grid; grid-template-columns:1fr 1fr; gap:8vw; }
.contact-copy p { color:#d6eef3; }
.contact-links { display:flex; flex-direction:column; border-top:1px solid rgba(255,255,255,.3); }
.contact-links a { display:flex; justify-content:space-between; padding:1.7rem 0; border-bottom:1px solid rgba(255,255,255,.3); font-family:"Cormorant Garamond",serif; font-size:1.8rem; }
.contact-links a:hover { padding-left:.8rem; }
.contact-links a { transition:.25s ease; }

footer { background:#050505; padding:4rem 5vw; display:grid; grid-template-columns:1fr 1fr; gap:2rem; align-items:end; color:#8f8b82; font-size:.72rem; }
.footer-brand { color:white; }
.footer-note { text-align:right; }
.footer-promo {
  grid-column:1 / -1;
  justify-self:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 1.3rem;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:white;
  letter-spacing:.16em;
  font-size:.66rem;
  text-transform:uppercase;
  transition:.25s ease;
}
.footer-promo:hover,
.footer-promo:focus-visible {
  background:rgba(7,156,194,.16);
  border-color:rgba(7,156,194,.6);
  transform:translateY(-2px);
}
.footer-credit {
  grid-column:1 / -1;
  margin:0;
  padding-top:1.2rem;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  color:#8f8b82;
  font-size:.7rem;
  letter-spacing:.08em;
}
.footer-credit-label {
  display:block;
  margin-bottom:.45rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.66rem;
  color:#8f8b82;
}
.footer-credit-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  color:#cfd6dd;
  transition:color .25s ease, transform .25s ease;
}
.footer-credit-link:hover,
.footer-credit-link:focus-visible {
  color:var(--blue);
  transform:translateY(-1px);
}
.footer-credit-brand {
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  font-size:.9rem;
  font-weight:600;
  text-transform:none;
  color:white;
}
.footer-credit-logo {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:10px;
  background:linear-gradient(135deg,#0a6ea2 0%,#59d3ff 100%);
  color:#04111d;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 1px rgba(255,255,255,.16);
  flex-shrink:0;
}
.footer-credit-logo svg { width:18px; height:18px; }

.reveal { opacity:0; transform:translateY(35px); transition:opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 900px) {
  body { padding-top: 60px; }
  .dev-credit-bar { flex-wrap:wrap; justify-content:center; text-align:center; padding:.75rem 4vw; }
  .dev-credit-brand { justify-content:center; }
  .site-header { top:60px; height:72px; }
  .menu-toggle { display:block; z-index:3; }
  .main-nav { position:fixed; inset:0; background:#090909; flex-direction:column; justify-content:center; align-items:center; font-family:"Cormorant Garamond",serif; font-size:2.2rem; opacity:0; visibility:hidden; transition:.3s; }
  .main-nav.open { opacity:1; visibility:visible; }
  .hero-content { margin-left:7vw; width:86vw; }
  .hero h1 { font-size:clamp(3.3rem,14vw,5.8rem); }
  .hero-image { background-position:62% center; }
  .hero-overlay { background:linear-gradient(90deg,rgba(7,7,7,.96),rgba(7,7,7,.4)),linear-gradient(0deg,rgba(7,7,7,.7),transparent); }
  .scroll-mark { display:none; }
  .section { padding:6.5rem 7vw; }
  .featured-book, .author, .contact { grid-template-columns:1fr; }
  .book-visual { min-height:auto; }
  .book-visual img { width:100%; }
  .author-copy { padding:7rem 7vw; }
  .author-image { min-height:600px; }
  .gallery-grid { height:auto; grid-template-columns:1fr; grid-template-rows:none; }
  .gallery-large { grid-row:auto; }
  .gallery-grid figure { height:480px; }
  .statement { background-attachment:scroll; }
  footer { grid-template-columns:1fr; }
  .footer-note { text-align:left; }
  .footer-credit { text-align:center; }
}

@media (max-width: 560px) {
  body { padding-top: 70px; }
  .dev-credit-bar { font-size:.62rem; letter-spacing:.11em; padding:.7rem 4vw; }
  .dev-credit-brand { font-size:.74rem; }
  .site-header { top:70px; }
  .hero-content { padding-top:45px; }
  .hero-copy { font-size:.95rem; }
  .btn { width:100%; }
  .book-meta { gap:1.5rem; }
  .timeline-item { grid-template-columns:55px 1fr; gap:1rem; }
  .contact-links a { font-size:1.35rem; }
  .gallery-grid figure { height:360px; }
  .footer-promo { width:100%; max-width:320px; }
}
