/* Hestia.ai website — built from the Hestia.ai design system (tokens.json, components/bundle.css). */

@font-face { font-family: Manrope; src: url("fonts/manrope_normal_400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Manrope; src: url("fonts/manrope_normal_700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --surface-raised: #f2f4fa;
  --surface-inverse: #2f2c4f;
  --ink: #2f2c4f;
  --ink-muted: #6d6c83;
  --ink-inverse: #f2f4fa;
  --accent: #ff7a00;
  --accent-strong: #ff9233;
  --on-accent: #2f2c4f;
  --link: #2f2c4f;
  --border: #8a88a6;
  --hairline: #dcdde8;
  --focus-ring: #2f2c4f;
  --motif-strip: url("brand/network-strip-on-light.svg");

  --font-sans: Manrope, "Helvetica Neue", Arial, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 4px; --radius-md: 12px; --radius-pill: 999px;
  --measure: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1c1a30;
    --surface-raised: #2f2c4f;
    --ink: #f2f4fa;
    --ink-muted: #b4b3c6;
    --link: #ff9233;
    --border: #7c79a8;
    --hairline: #3a3760;
    --focus-ring: #ff7a00;
    --motif-strip: url("brand/network-strip-on-navy.svg");
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/26px var(--font-sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .hx-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h2 { font-size: 28px; line-height: 36px; }
h3 { font-size: 20px; line-height: 28px; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--space-6); }
.narrow { max-width: 820px; }
.skip-link { position: absolute; left: var(--space-4); top: -48px; z-index: 10; padding: var(--space-2) var(--space-4); background: var(--accent); color: var(--on-accent); border-radius: var(--radius-pill); font-weight: 700; }
.skip-link:focus { top: var(--space-4); }
.eyebrow { margin: 0 0 var(--space-3); font: 700 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.lead { font-size: 18px; line-height: 30px; }

/* Buttons (components/Button) */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 12px 24px; border-radius: var(--radius-pill); border: 2px solid transparent; font: 700 15px/20px var(--font-sans); text-decoration: none; text-align: center; cursor: pointer; }
.hx-btn--primary { background: var(--accent); color: var(--on-accent); }
.hx-btn--primary:hover { background: var(--accent-strong); }
.hx-btn--inverse { background: var(--ink-inverse); color: var(--surface-inverse); }
.hx-btn--inverse:hover { background: #ffffff; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Network motif (assets/Motifs) */
.hx-motif-cover { background: var(--surface-inverse) url("brand/network-cover-on-navy.svg") right bottom / auto 100% no-repeat; }
.hx-motif-band { background: var(--surface-inverse) url("brand/network-band-on-navy.svg") right center / auto 100% no-repeat; }
/* Tall bands use the 2:1 cover so the network stays in the right half, clear of the text. */
.site-header.hx-motif-band, .cta-band.hx-motif-band { background-image: url("brand/network-cover-on-navy.svg"); background-position: right bottom; }
/* Keep the network below the menu row in page headers. */
.site-header.hx-motif-band { background-size: auto calc(100% - 72px); }
.hx-motif-strip { height: 56px; background: var(--motif-strip) right center / auto 100% no-repeat; }
.hx-dot { display: inline-block; width: 14px; height: 14px; border-radius: var(--radius-pill); background: var(--accent); flex: none; }
.hx-num { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: var(--space-3); border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: .8em; font-weight: 700; vertical-align: .1em; }

/* Site header (components/SiteHeader) */
.site-header { color: var(--ink-inverse); }
.site-header a { color: var(--ink-inverse); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); padding-top: 20px; padding-bottom: 20px; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); flex: 1; }
.site-nav a, .languages a { font: 700 14px/20px var(--font-sans); text-decoration: none; }
.site-nav a:hover, .languages a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.languages { display: flex; gap: var(--space-1); }
.languages a { padding: 6px 10px; border: 1px solid transparent; border-radius: var(--radius-pill); }
.languages a[aria-current="true"] { border-color: var(--ink-inverse); }
.site-header .eyebrow { color: var(--accent); }
.hero-copy { padding-top: var(--space-12); padding-bottom: 96px; }
.hero-copy > * { max-width: 560px; }
.hero-copy h1 { margin-bottom: var(--space-4); font-size: 52px; line-height: 56px; letter-spacing: -.02em; }
.hero-copy .lead { margin-bottom: var(--space-8); opacity: .9; }
.site-header--home { min-height: 560px; }
.page-heading { padding-top: var(--space-8); padding-bottom: var(--space-12); }
.page-heading > * { max-width: 680px; }
.page-heading h1 { margin-bottom: var(--space-4); font-size: 40px; line-height: 48px; letter-spacing: -.01em; }
.page-heading .lead { opacity: .9; }

/* Sections */
.section { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.section--tight { padding-top: var(--space-12); padding-bottom: 0; }
.section--flush { padding-top: var(--space-8); }
.band { padding: var(--space-16) 0; }
.band--raised { background: var(--surface-raised); }
.section-head { margin-bottom: var(--space-8); max-width: 680px; }
.centered { margin-top: var(--space-8); text-align: center; }
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-12); align-items: start; }
.card { padding: var(--space-6); background: var(--surface-raised); border-radius: var(--radius-md); }
.card h3 { margin-bottom: var(--space-3); }
.card--outlined { background: var(--surface); border: 1px solid var(--hairline); }
.band--raised .card { background: var(--surface); }
.text-link { font-weight: 700; }

/* Stats (components/Stat) */
.hx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-bottom: var(--space-6); }
.hx-stat__num { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.hx-stat__text { margin: 0; max-width: 28ch; }
.hx-source { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.hx-source a { color: var(--ink-muted); }

/* Founder */
.founder-photo { margin: 0; }
.founder-photo img { border-radius: var(--radius-md); }
.founder-photo figcaption { margin-top: var(--space-2); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.founder-copy h2 { margin-bottom: var(--space-3); }
.dot-list { margin: 0 0 var(--space-8); padding: 0; list-style: none; }
.dot-list li { position: relative; padding-left: var(--space-6); margin-bottom: var(--space-2); }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--accent); }

/* Quotes (components/PressQuote) */
.hx-quote { margin: 0; padding: var(--space-6); background: var(--surface-raised); border-radius: var(--radius-md); }
.band--raised .hx-quote { background: var(--surface); }
.hx-quote blockquote { margin: 0; }
.hx-quote blockquote p { font-size: 20px; line-height: 30px; font-weight: 700; text-wrap: pretty; }
.hx-quote figcaption { margin-top: var(--space-4); font: 700 12px/18px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.hx-quote figcaption a { color: var(--ink-muted); }
.logo-chip { display: inline-flex; align-items: center; height: 56px; margin-bottom: var(--space-4); padding: var(--space-2) var(--space-3); background: #ffffff; border-radius: var(--radius-sm); }
.logo-chip img { max-height: 40px; width: auto; }

/* Testimonials */
.testimonial { margin: 0; padding: var(--space-6); background: var(--surface); border-radius: var(--radius-md); display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 var(--space-4); flex: 1; }
.testimonial figcaption { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.testimonial figcaption strong { color: var(--ink); }
.testimonial figcaption a { color: var(--ink-muted); }

.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-8) var(--space-12); padding-top: var(--space-12); padding-bottom: var(--space-12); }
.badges img { height: 40px; width: auto; }

/* About */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-8) var(--space-6); }
.member img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-pill); margin-bottom: var(--space-4); }
.member h3 { margin-bottom: var(--space-2); font-size: 18px; line-height: 26px; }
.member p { font-size: 15px; line-height: 24px; }
.projects { display: grid; gap: var(--space-12); }
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.project:nth-child(even) .project-image { order: 2; }
.project--text { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.project-image img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; border-radius: var(--radius-md); border: 1px solid var(--hairline); }
.project-copy h3 { margin-bottom: var(--space-3); }
.split--myth { grid-template-columns: 240px minmax(0, 1fr); align-items: center; }
.myth-image img { border-radius: var(--radius-md); }
.myth-copy h2 { margin-bottom: var(--space-4); }

/* Awards */
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-8) 0; border-top: 1px solid var(--hairline); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline-year { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink-muted); }
.timeline-copy h2 { margin-bottom: var(--space-3); font-size: 20px; line-height: 28px; }

/* Media */
.media-list { margin: 0; padding: 0; list-style: none; }
.media-list li { display: grid; grid-template-columns: 112px 220px minmax(0, 1fr); gap: var(--space-2) var(--space-6); padding: var(--space-4) 0; border-top: 1px solid var(--hairline); }
.media-list time { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.media-outlet { margin: 0; font-weight: 700; }
.media-title { margin: 0; }

/* Long text pages (Horkos) */
.doc > * { max-width: 68ch; }
.doc h2 { margin: var(--space-12) 0 var(--space-4); }
.doc h3 { margin: var(--space-8) 0 var(--space-3); }
.doc > :first-child, .doc .back-link + h2 { margin-top: 0; }
.doc-list { margin: 0 0 var(--space-4); padding-left: var(--space-6); }
.doc-list li { margin-bottom: var(--space-1); }
.doc .hx-quote { margin-bottom: var(--space-4); max-width: none; }
.back-link { margin-bottom: var(--space-8); font-weight: 700; }

/* Contact */
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.contact-card p { margin: 0; }

/* Call to action band */
.cta-band { color: var(--ink-inverse); }
.cta-inner { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.cta-inner h2 { margin-bottom: var(--space-6); }

/* Site footer (components/SiteFooter) */
.site-footer .hx-motif-strip { background-color: var(--surface); }
.footer-body { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); padding-top: var(--space-8); padding-bottom: var(--space-6); }
.site-footer { background: linear-gradient(var(--surface) 56px, var(--surface-inverse) 56px); color: var(--ink-inverse); }
.footer-brand img { height: 36px; width: auto; margin-bottom: var(--space-3); }
.footer-brand p, .legal { font-size: 14px; line-height: 22px; opacity: .85; max-width: 40ch; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h2 { margin-bottom: var(--space-1); font: 700 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.site-footer a { color: var(--ink-inverse); font-size: 14px; line-height: 22px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { grid-column: 1 / -1; max-width: none; margin: 0; padding-top: var(--space-3); border-top: 1px solid #46437a; }
.legal a { text-decoration: underline; }

/* Phones and tablets */
@media (max-width: 900px) {
  .grid--3, .hx-stats { grid-template-columns: minmax(0, 1fr); }
  .split, .split--myth, .project { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .project:nth-child(even) .project-image { order: 0; }
  .myth-image { max-width: 240px; }
  .media-list li { grid-template-columns: 112px minmax(0, 1fr); }
  .media-title { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding-left: var(--space-4); padding-right: var(--space-4); }
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .section--tight { padding-bottom: 0; }
  .band { padding: var(--space-12) 0; }
  .site-nav { order: 3; flex-basis: 100%; }
  .languages { margin-left: auto; }
  .hero-copy { padding-top: var(--space-8); padding-bottom: var(--space-12); }
  .hero-copy h1 { font-size: 36px; line-height: 42px; }
  /* On phones the network sits below the text, never behind it. */
  .site-header--home { min-height: 0; background-size: 100% auto; }
  .site-header--home .hero-copy { padding-bottom: calc(50vw + 16px); }
  .site-header.hx-motif-band, .cta-band.hx-motif-band { background-image: url("brand/network-band-on-navy.svg"); background-size: 100% auto; }
  .page-heading, .cta-inner { padding-bottom: calc(13vw + 32px); }
  .page-heading h1 { font-size: 32px; line-height: 40px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .footer-body { grid-template-columns: minmax(0, 1fr); }
  .hx-btn { width: 100%; }
}
