/* Evan Promise — site styles
   Palette: chalk, paper, ink, ember. Type: Poppins (headings, UI), Lora (reading). */

@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Variable.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Italic-Variable.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --chalk: #F4F6F9;
  --paper: #FFFFFF;
  --mist: #E8ECF3;
  --rule: #D6DCE7;
  --ink: #101A3F;
  --ink-soft: #3D4664;
  --ink-mute: #5F6784;
  --ember: #F0661A;
  --ember-ink: #B84A0E;
  --night: #0C1433;
  --night-soft: #B9C1D9;
  --head-bg: rgba(244,246,249,.92);
  --shade: 12,20,51;
  --tag-bg: #FDEBDD;
  --foot-small: #8D96B3;
  --body: var(--ink);

  --f-head: "Poppins", "Inter", system-ui, sans-serif;
  --f-read: "Lora", Georgia, "Times New Roman", serif;
  --f-script: "Sacramento", "Segoe Script", cursive;

  --wrap: 1180px;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--f-head);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--ember); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-family: var(--f-read); font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }
.read { font-family: var(--f-read); font-size: 1.125rem; line-height: 1.75; color: var(--body); max-width: var(--measure); }
.read p { margin-bottom: 1.15em; }
.muted { color: var(--ink-mute); }
.small { font-size: 0.9rem; }

/* A short orange rule used to mark the start of a section's heading */
.mark { display: block; width: 36px; height: 3px; background: var(--ember); margin-bottom: 18px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 500; font-size: 0.98rem;
  text-decoration: none; padding: 13px 22px; border-radius: var(--radius);
  border: 1.5px solid var(--ink); transition: background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ember-ink); border-color: var(--ember-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn svg { width: 18px; height: 18px; flex: none; }
.textlink { color: var(--ember-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; font-weight: 500; }
.textlink:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--head-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--rule); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; }
.brand img { height: 46px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; text-decoration: none; font-size: 0.97rem; color: var(--ink-soft); border-radius: var(--radius); }
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--ember); border-radius: 0; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 8px 12px; font: 500 0.95rem var(--f-head); color: var(--ink); cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 76px; background: var(--chalk); border-bottom: 1px solid var(--rule); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; gap: 0; }
  .nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--ember-ink); }
  .brand img { height: 40px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.band { background: var(--paper); }
.band-mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.page-hero .kicker { font-size: 0.95rem; color: var(--ember-ink); font-weight: 500; margin-bottom: 18px; display: block; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 24px; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3.05rem); max-width: 21ch; line-height: 1.12; }
.hero .name { font-size: 1rem; color: var(--ink-mute); margin-bottom: 22px; display: block; }
.hero .btns { margin-top: 36px; }
.hero-photo { position: relative; align-self: stretch; }
.hero-photo img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; object-position: 50% 22%; border-radius: var(--radius) var(--radius) 0 0; }
.hero-text { padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 88px); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { min-height: 0; height: 420px; border-radius: var(--radius); }
  .hero-text { padding: 8px 0 40px; }
}

/* ---------- Numbers row ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); }
.numbers > div { padding: 28px clamp(16px, 3vw, 36px); border-left: 1px solid var(--rule); }
.numbers > div:first-child { border-left: 0; }
.numbers strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.numbers span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; max-width: 22ch; }
@media (max-width: 640px) {
  .numbers { grid-template-columns: 1fr; }
  .numbers > div { border-left: 0; border-top: 1px solid var(--rule); display: flex; align-items: baseline; gap: 16px; padding: 20px var(--gutter); }
  .numbers > div:first-child { border-top: 0; }
  .numbers strong { min-width: 4.2ch; }
  .numbers span { margin-top: 0; }
}

/* ---------- Two column text ---------- */
.split { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: clamp(24px, 5vw, 80px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Competencies ---------- */
.comp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.comp { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--rule); }
.comp h3 { margin-bottom: 14px; }
.comp ul { margin: 0; padding: 0; list-style: none; }
.comp li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }
.comp li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 2px; background: var(--ember); }

/* ---------- Inline lists (industries, topics, stack) ---------- */
.inline-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.inline-list li { border: 1px solid var(--rule); background: var(--paper); padding: 7px 14px; border-radius: 999px; font-size: 0.93rem; color: var(--ink-soft); }
.band .inline-list li { background: var(--chalk); }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.skills h3 { font-size: 1.05rem; margin-bottom: 10px; }
.skills p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; line-height: 1.7; }

/* ---------- Selected work ---------- */
.work-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.work-lines li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.work-lines .sector { font-size: 0.92rem; color: var(--ember-ink); font-weight: 500; }
.work-lines p { font-family: var(--f-read); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; margin: 0; color: var(--ink); }
@media (max-width: 640px) { .work-lines li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.quote { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.band .quote { background: var(--chalk); }
.quote blockquote { margin: 0 0 24px; font-family: var(--f-read); font-size: 1.08rem; line-height: 1.65; color: var(--ink); flex: 1; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--f-read); font-size: 3rem; line-height: .6; color: var(--ember); margin-bottom: 12px; }
.quote .who strong { display: block; font-weight: 500; }
.quote .who span { display: block; color: var(--ink-mute); font-size: 0.9rem; }
.quote.draft { border-style: dashed; border-color: var(--ember); }
.draft-tag { display: inline-block; font-size: 0.78rem; font-weight: 500; color: var(--ember-ink); background: var(--tag-bg); padding: 3px 8px; border-radius: 4px; margin-bottom: 14px; align-self: flex-start; }

/* ---------- Substack card ---------- */
.feature-card { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.feature-card .body { padding: clamp(28px, 4vw, 48px); }
.feature-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin-bottom: 14px; }
.feature-card p { color: var(--ink-soft); }
.feature-card .meta { font-size: 0.9rem; color: var(--ink-mute); margin-bottom: 16px; }
.feature-card .art { background: var(--ink); position: relative; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.feature-card .art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .9; }
@media (max-width: 760px) { .feature-card { grid-template-columns: 1fr; } .feature-card .art { order: -1; } }

/* ---------- Closing CTA (dark band) ---------- */
.closer { background: var(--night); color: #fff; }
.closer h2 { color: #fff; max-width: 20ch; }
.closer p { color: var(--night-soft); max-width: 56ch; font-size: 1.08rem; margin-top: 18px; }
.closer .btns { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: var(--night-soft); padding: 48px 0 40px; border-top: 1px solid rgba(255,255,255,.08); font-size: 0.93rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot-row img { height: 44px; width: auto; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { color: var(--ember); }
.foot-small { margin-top: 28px; color: var(--foot-small); font-size: 0.85rem; }

/* ---------- About: narrative ---------- */
.story { display: grid; grid-template-columns: 1fr minmax(0, 680px) 1fr; }
.story > * { grid-column: 2; }
.story .chapter { display: block; font-family: var(--f-head); font-size: 0.88rem; color: var(--ember-ink); font-weight: 500; margin: 2.6em 0 0.9em; }
.story .chapter:first-child { margin-top: 0; }
.story p { font-family: var(--f-read); font-size: 1.15rem; line-height: 1.8; margin: 0 0 1.15em; color: var(--body); }
.story figure { grid-column: 1 / -1; margin: 2.4em 0; display: grid; grid-template-columns: 1fr minmax(0, 880px) 1fr; }
.story figure > * { grid-column: 2; }
.story figure img { width: 100%; border-radius: var(--radius); }
.story figure.narrow > * { max-width: 520px; }
.story figcaption { font-size: 0.88rem; color: var(--ink-mute); margin-top: 10px; }
.story .pull { font-family: var(--f-head); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; border-left: 3px solid var(--ember); padding: 4px 0 4px 22px; margin: 1.6em 0; color: var(--ink); }

.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }
.about-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } .about-hero img { max-width: 420px; } }

/* Video */
.video-frame { position: relative; aspect-ratio: 16/9; background: var(--night); border-radius: var(--radius); overflow: hidden; }
.video-frame video, .video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame .pending { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: clamp(20px, 4vw, 40px); background: linear-gradient(180deg, rgba(var(--shade),0) 35%, rgba(var(--shade),.85) 100%); color: #fff; }
.video-frame .pending strong { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 500; }
.video-frame .pending span { color: var(--night-soft); font-size: 0.95rem; margin-top: 6px; }
.video-frame.has-video .pending { display: none; }

/* ---------- Portfolio: proof-style case studies ---------- */
.case { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(28px, 4.5vw, 56px); margin-bottom: 28px; }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; padding-bottom: 24px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.case-head h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.case-head .role { color: var(--ink-mute); font-size: 0.95rem; }
.proof { display: grid; grid-template-columns: 170px 1fr; gap: 0 36px; }
.proof dt { padding: 26px 0 0; font-weight: 500; font-size: 0.98rem; color: var(--ink); display: flex; align-items: center; gap: 10px; align-self: start; }
.proof dd { margin: 0; padding: 24px 0; border-bottom: 1px solid var(--mist); font-family: var(--f-read); font-size: 1.06rem; line-height: 1.75; color: var(--ink-soft); max-width: 70ch; }
.proof dd:last-of-type { border-bottom: 0; padding-bottom: 0; }
.proof dd p:last-child { margin-bottom: 0; }
.proof dt.therefore { color: var(--ember-ink); }
.therefore-sign { display: inline-block; width: 16px; height: 15px; position: relative; flex: none; }
.therefore-sign i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); }
.therefore-sign i:nth-child(1) { left: 5.5px; top: 0; }
.therefore-sign i:nth-child(2) { left: 0; bottom: 0; }
.therefore-sign i:nth-child(3) { right: 0; bottom: 0; }
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 28px; }
.results li { font-family: var(--f-head); font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }
.results li strong { display: block; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 500; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; }
@media (max-width: 720px) {
  .proof { grid-template-columns: 1fr; }
  .proof dt { padding-top: 22px; }
  .proof dd { padding-top: 8px; }
}

.proj-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.proj { border-top: 3px solid var(--ink); padding-top: 22px; }
.proj h3 { margin-bottom: 6px; }
.proj .role { color: var(--ember-ink); font-size: 0.92rem; font-weight: 500; display: block; margin-bottom: 14px; }
.proj p { font-family: var(--f-read); color: var(--ink-soft); line-height: 1.7; font-size: 1.02rem; }

.certs { columns: 2 300px; column-gap: 40px; list-style: none; margin: 0; padding: 0; }
.certs li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.98rem; }

/* ---------- Insights ---------- */
.article-feature { display: grid; grid-template-columns: 1fr 1.3fr; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.article-feature .cover { background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; position: relative; overflow: hidden; }
.article-feature .cover .big { font-family: var(--f-head); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; position: relative; }
.article-feature .cover .tag { font-size: 0.9rem; color: var(--night-soft); position: relative; }
.article-feature .cover svg { position: absolute; right: -10px; bottom: -10px; width: 70%; opacity: .9; }
.article-feature .body { padding: clamp(28px, 4vw, 48px); }
.article-feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.article-feature .meta { color: var(--ink-mute); font-size: 0.92rem; margin-bottom: 18px; }
.article-feature p { font-family: var(--f-read); color: var(--ink-soft); line-height: 1.75; }
@media (max-width: 820px) { .article-feature { grid-template-columns: 1fr; } }

.queue { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.queue li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.queue .t { font-family: var(--f-read); font-size: 1.12rem; color: var(--ink); }
.queue .c { color: var(--ink-mute); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: 400 1rem var(--f-head); color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 13px 14px; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 170px; resize: vertical; }
.form-note { font-size: 0.92rem; color: var(--ink-mute); min-height: 1.4em; }
.form-note.ok { color: #1E6B3A; }
.form-note.err { color: #A3261B; }
.hp { position: absolute; left: -9999px; }
.direct { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.direct img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 20%; }
.direct dl { margin: 0; padding: 24px 28px 28px; }
.direct dt { font-size: 0.88rem; color: var(--ink-mute); margin-top: 16px; }
.direct dt:first-child { margin-top: 0; }
.direct dd { margin: 4px 0 0; font-size: 1.02rem; }
.direct dd a { text-decoration: none; border-bottom: 1.5px solid var(--ember); }

/* ---------- Cover (landing) ---------- */
.cover-page { background: var(--night); }
.cover { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.cover .slides { position: absolute; inset: 0; }
.cover .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.cover .slide.on { opacity: 1; }
.cover .slide img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--shade),.78) 0%, rgba(var(--shade),.35) 50%, rgba(var(--shade),0) 100%), linear-gradient(0deg, rgba(var(--shade),.55) 0%, rgba(var(--shade),0) 45%); pointer-events: none; }
.cover-top, .cover-main { position: relative; z-index: 2; }
.cover-top { display: flex; justify-content: space-between; align-items: center; padding: 28px var(--gutter); }
.cover-top img { height: 52px; width: auto; }
.cover-main { margin-top: auto; padding: 0 var(--gutter) clamp(48px, 9vh, 96px); max-width: var(--wrap); width: 100%; margin-left: auto; margin-right: auto; }
.welcome { font-family: var(--f-script); font-size: clamp(3.2rem, 8vw, 6rem); line-height: 1; color: #fff; height: 1.15em; margin-bottom: 18px; position: relative; }
.welcome span { position: absolute; left: 0; bottom: 0; opacity: 0; transform: translateY(8px); transition: opacity .7s ease, transform .7s ease; white-space: nowrap; }
.welcome span.on { opacity: 1; transform: none; }
.cover h1 { color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.6rem); max-width: 14ch; }
.descriptors { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 36px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #DCE1EE; }
.descriptors span::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); margin-left: 22px; vertical-align: middle; }
.descriptors span:last-child::after { display: none; }
.cover .btn-light { padding: 15px 30px; font-size: 1.02rem; }
.cover .dots { display: flex; gap: 8px; }
.cover .dots button { width: 26px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; }
.cover .dots button.on { background: var(--ember); }

/* ---------- Investment page ---------- */
.inv-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.inv-hero img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .inv-hero { grid-template-columns: 1fr; } .inv-hero img { max-width: 420px; aspect-ratio: 1/1; object-position: 50% 15%; } }
.path { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.path li { counter-increment: step; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--rule); position: relative; }
.path li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ember); color: var(--ember-ink); font-size: 0.88rem; font-weight: 500; margin-bottom: 14px; }
.path h3 { font-size: 1.05rem; margin-bottom: 6px; }
.path p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.raise { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .raise { grid-template-columns: 1fr; } }
.raise-total { margin-bottom: 10px; font-size: clamp(3rem, 7vw, 5.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.raise-bar { display: flex; height: 54px; border-radius: var(--radius); overflow: hidden; margin: 8px 0 18px; }
.raise-bar div { display: flex; align-items: center; padding: 0 16px; color: #fff; font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.raise-bar .a { background: var(--ember-ink); flex: 30; }
.raise-bar .b { background: var(--ink); flex: 70; }
.raise-legend { display: grid; gap: 14px; }
.raise-legend div { display: grid; grid-template-columns: 14px 90px 1fr; gap: 12px; align-items: baseline; }
.raise-legend i { width: 14px; height: 14px; border-radius: 3px; display: block; transform: translateY(2px); }
.raise-legend strong { font-weight: 500; }
.raise-legend span { color: var(--ink-soft); font-size: 0.95rem; }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.option { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(26px, 3.5vw, 38px); display: flex; flex-direction: column; }
.option h3 { font-size: 1.35rem; margin-bottom: 8px; }
.option .terms { color: var(--ember-ink); font-weight: 500; font-size: 0.95rem; margin-bottom: 18px; }
.option p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; }
.option .example { margin-top: auto; background: var(--chalk); border-radius: var(--radius); padding: 16px 18px; font-size: 0.92rem; color: var(--ink-soft); }
.option .example strong { color: var(--ink); font-weight: 500; }
table.repay { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin-top: 4px; }
table.repay th, table.repay td { text-align: right; padding: 7px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
table.repay th { font-weight: 500; color: var(--ink-mute); font-size: 0.85rem; }
table.repay th:first-child, table.repay td:first-child { text-align: left; }
.disclaimer { font-size: 0.88rem; color: var(--ink-mute); line-height: 1.65; max-width: 80ch; border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 40px; }

.download { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--ember); border-radius: var(--radius); padding: 24px 28px; }
.download h3 { font-size: 1.15rem; }
.download p { margin: 4px 0 0; color: var(--ink-mute); font-size: 0.93rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.hidden { display: none !important; }
.center { text-align: center; }
