:root {
  --bg: #e4e5e8;
  --paper: #ececeb;
  --ink: #16191f;
  --muted: #606672;
  --line: rgba(22, 25, 31, .17);
  --accent: #d86f35;
  --accent-soft: #e4a178;
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --italic: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, textarea { font: inherit; }
.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; }

#stardust { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .6; }
.section-shell, .site-header { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand { font-size: .75rem; font-weight: 700; letter-spacing: .25em; justify-self: start; }
.brand span, .chapter span { color: var(--accent); }
.site-nav { display: flex; gap: 38px; font-size: .86rem; color: #4e5460; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--accent); transition: right .25s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.header-cta { justify-self: end; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 22px; height: 1px; margin: 5px; background: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 11px 20px; border: 1px solid var(--ink); font-size: .78rem; letter-spacing: .05em; transition: transform .2s, background .2s, color .2s; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-line { background: transparent; }
.button-line:hover { background: var(--ink); color: white; }

.hero { min-height: min(780px, calc(100vh - 70px)); width: 100%; position: relative; isolation: isolate; display: flex; align-items: center; padding: 100px max(24px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--line); background: var(--bg); color: white; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/hero.jpg") center / cover no-repeat; opacity: .95; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,17,19,.85) 0%, rgba(16,17,19,.65) 42%, rgba(16,17,19,.15) 73%, rgba(16,17,19,.05) 100%); }
.hero-copy { width: min(650px, 58vw); }
.eyebrow { color: var(--accent); font-size: .68rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; margin: 0 0 20px; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(4rem, 7.3vw, 6.7rem); letter-spacing: -.045em; }
h1 em, .manifesto em, .data-visual em { color: var(--accent); font-family: var(--italic); font-weight: 400; }
.hero-intro { max-width: 590px; color: rgba(255,255,255,.72); font-size: 1.08rem; margin: 32px 0 26px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.signature { margin-top: 34px; font-size: .68rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.signature span { color: var(--accent); }
.hero .button-dark { background: white; border-color: white; color: var(--ink); }
.hero .button-line { border-color: rgba(255,255,255,.58); color: white; }
.hero .button-line:hover { background: white; color: var(--ink); }
.hero-caption { position: absolute; right: max(24px, calc((100vw - 1120px) / 2)); bottom: 24px; font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.64); }

.manifesto { min-height: 310px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.manifesto p { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: 1.38; max-width: 970px; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; align-items: center; padding-block: 110px; border-bottom: 1px solid var(--line); }
.story-reverse .story-visual { order: 2; }
.story-visual { margin: 0; border-radius: 16px; overflow: hidden; min-height: 510px; }
.image-card img { min-height: 510px; height: 100%; object-fit: cover; }
.data-visual { position: relative; display: grid; place-items: end start; padding: 42px; background: radial-gradient(circle at 65% 42%, rgba(255,255,255,.85), transparent 34%), linear-gradient(140deg, #d1d1ce, #f0efeb); }
.data-art { position: absolute; inset: 0; width: 100%; height: 100%; color: #5d6163; }
.signal-line { stroke-dasharray: 7 8; animation: signal-flow 18s linear infinite; }
.insight-point { filter: drop-shadow(0 0 7px rgba(216,111,53,.75)); animation: insight-pulse 3.2s ease-in-out infinite; transform-origin: 378px 292px; }
.data-points circle { transition: fill .2s; }
.data-visual:hover .data-points circle { fill: #d86f35; }
.data-visual p { position: relative; font-family: var(--serif); font-size: 2.2rem; line-height: 1.2; }
@keyframes signal-flow { to { stroke-dashoffset: -300; } }
@keyframes insight-pulse { 50% { transform: scale(1.55); opacity: .65; } }
.chapter { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; font-size: .62rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.chapter span { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0; font-weight: 400; }
.chapter::before { content: ""; width: 38px; height: 1px; background: var(--accent); order: 2; }
.chapter span + * { order: 3; }
.story-copy h2, .about h2, .contact h2 { font-size: clamp(2.5rem, 4.6vw, 4.4rem); }
.story-copy > p:not(.chapter) { color: var(--muted); font-size: .98rem; }
.text-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 12px; border-bottom: 1px solid var(--accent); font-size: .82rem; padding-bottom: 3px; }
.text-link span { color: var(--accent); }

.about { display: grid; grid-template-columns: minmax(280px, .82fr) 1.18fr; gap: 8%; padding-block: 120px; border-bottom: 1px solid var(--line); align-items: start; }
.about-profile { display: grid; gap: 42px; }
.about-portrait { margin: 0; overflow: hidden; border-radius: 18px; }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-heading .eyebrow { margin-bottom: 14px; }
.about-heading h2 { font-size: clamp(2.5rem, 4.1vw, 4rem); }
.about-copy { color: var(--muted); align-self: center; text-align: center; }
.about-copy .lead { color: var(--ink); font-family: var(--serif); font-size: 1.55rem; margin-top: 0; }
.about-copy .lead span { display: block; font-size: 75%; }
.about-copy blockquote { border-left: 0; border-block: 1px solid var(--accent); padding: 22px 0; }
blockquote { margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--accent); color: var(--ink); font-family: var(--serif); font-size: 1.4rem; }
.closing-line { color: var(--accent) !important; font-family: var(--italic); font-size: 1.25rem; }

.contact { padding-block: 115px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr .85fr; gap: 9%; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); max-width: 600px; }
.contact-email { display: inline-block; margin-top: 12px; color: var(--ink); font-family: var(--serif); font-size: 1.35rem; border-bottom: 1px solid var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 35px; font-size: .78rem; }
.socials a { border-bottom: 1px solid var(--line); }
.contact-form { display: grid; }
.contact-form label { font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 15px; }
.contact-form input, .contact-form textarea { border: 0; border-bottom: 1px solid #9d9fa3; background: transparent; border-radius: 0; padding: 9px 0; outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form button { justify-self: start; margin-top: 25px; }
.form-note { color: var(--muted); font-size: .7rem; }
.site-footer { min-height: 100px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: .7rem; color: var(--muted); }

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

@media (max-width: 820px) {
  .section-shell, .site-header { width: min(100% - 32px, 680px); }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; justify-self: end; z-index: 2; }
  .header-cta { display: none; }
  .site-nav { position: fixed; inset: 0; background: rgba(228,229,232,.97); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; font-family: var(--serif); font-size: 2.5rem; transform: translateY(-100%); transition: transform .35s ease; }
  .site-nav.open { transform: none; }
  .story, .about, .contact { grid-template-columns: 1fr; }
  .hero { min-height: 690px; padding-block: 70px; background-position: 58% center; }
  .hero::before { background: linear-gradient(90deg, rgba(16,17,19,.9), rgba(16,17,19,.57) 65%, rgba(16,17,19,.27)); }
  .hero-copy { width: min(570px, 82vw); }
  .manifesto { min-height: 260px; }
  .story { padding-block: 80px; gap: 42px; }
  .story-reverse .story-visual { order: initial; }
  .story-visual, .image-card img { min-height: 380px; }
  .about { padding-block: 85px; }
  .about-profile { width: min(100%, 390px); gap: 34px; }
  .contact { gap: 50px; padding-block: 85px; }
}

@media (max-width: 520px) {
  h1 { font-size: 3.7rem; }
  .hero { min-height: auto; }
  .hero-copy { width: 100%; }
  .hero::before { background: rgba(16,17,19,.71); }
  .hero-intro { font-size: .98rem; }
  .hero-actions .button { width: 100%; }
  .story-visual, .image-card img { min-height: 320px; }
  .data-visual { padding: 25px; }
  .site-footer { flex-wrap: wrap; gap: 15px; padding-block: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  #stardust { display: none; }
  .reveal { opacity: 1; transform: none; }
}
