@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,600;1,400&family=Outfit:wght@600;700&display=swap");

:root {
  --abyss: #071018;
  --slate: #14202c;
  --frost: #d7dee6;
  --porcelain: #f5f7f8;
  --ember: #e07a5f;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --pad-section: clamp(88px, 10vw, 128px) 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: currentColor;
}

a:hover {
  opacity: 0.84;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.7rem;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.85rem, 6.4vw, 5.25rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 0.95rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.surface-abyss {
  background: #071018;
  color: #f5f7f8;
}

.surface-porcelain {
  background: #f5f7f8;
  color: #071018;
}

.surface-slate {
  background: #14202c;
  color: #f5f7f8;
}

.surface-ember {
  background: #e07a5f;
  color: #071018;
}

.wrap {
  width: min(1180px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 0.85rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f5f7f8;
  color: #071018;
  border-bottom: 1px solid var(--frost);
}

.site-header.theme-hero {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
  color: #f5f7f8;
  border-bottom: 0;
}

.site-header.theme-hero.is-sticky {
  position: sticky;
  top: 0;
  background: #f5f7f8;
  color: #071018;
  border-bottom: 1px solid var(--frost);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ember);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  filter: brightness(1.07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  opacity: 1;
}

.btn-ember {
  background: #e07a5f;
  color: #071018;
  border-color: #e07a5f;
}

.btn-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 24, 0.55) 0%, rgba(7, 16, 24, 0.88) 70%, #071018 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 6.25rem 0 11vh;
}

.frost-badge {
  align-self: flex-end;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 248, 0.08);
  border: 1px solid var(--frost);
  padding: 0.85rem 1rem;
  min-width: 220px;
}

.frost-badge strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.rail {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.rail .tick {
  flex: 1;
  height: 4px;
  background: rgba(224, 122, 95, 0.35);
}

.rail .tick.is-on {
  background: var(--ember);
}

.hero-copy {
  max-width: 32rem;
  margin-top: auto;
  padding-top: 3.25rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 4.05rem);
  line-height: 1.14;
  margin: 0 0 0.55rem;
}

.hero .eyebrow {
  margin: 0 0 0.5rem;
}

.hero h1 .ember {
  color: var(--ember);
}

.hero-sub {
  max-width: 540px;
  color: rgba(245, 247, 248, 0.85);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.05rem;
}

.trust-line {
  margin-top: 1.45rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--frost);
  font-size: 12px;
  color: var(--frost);
  letter-spacing: 0.06em;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--frost);
  border-bottom: 1px solid var(--frost);
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 2.4rem;
  padding: 0.7rem 0;
  animation: ticker 28s linear infinite;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: var(--pad-section);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.4rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.split img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.stat-photo {
  position: relative;
  min-height: 420px;
}

.stat-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.stat-float {
  position: absolute;
  inset: auto 6% 8% 6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.glass {
  background: rgba(245, 247, 248, 0.08);
  border: 1px solid var(--frost);
  backdrop-filter: blur(14px);
  padding: 1rem;
}

.glass .mono {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 1.7rem;
  color: var(--ember);
}

.stages {
  display: grid;
  gap: 1rem;
}

.chip {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 0.12rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.track {
  position: relative;
  padding-left: 0;
}

.progress-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
}

.progress-rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), rgba(224, 122, 95, 0.25));
  top: 1.15rem;
}

.track-card {
  position: relative;
  border: 1px solid var(--frost);
  padding: 2rem 1rem 1.1rem;
  background: rgba(7, 16, 24, 0.35);
}

.track-card .code {
  font-family: ui-monospace, monospace;
  color: var(--ember);
  font-size: 0.85rem;
}

a.track-card {
  color: inherit;
  text-decoration: none;
  display: block;
}

a.track-card:hover {
  opacity: 1;
  border-color: var(--ember);
}

.story-hero img {
  width: 100%;
  height: min(48vh, 26rem);
  object-fit: cover;
}

.story-shell {
  max-width: 40rem;
}

.story-code {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--ember);
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin: 0 0 0.6rem;
}

.story-meta {
  color: #8b97a3;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.story-body p:first-of-type {
  font-size: 1.12rem;
}

.story-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--frost);
}

.chronicle-feed {
  display: grid;
  gap: 0;
}

.chronicle-row {
  display: grid;
  grid-template-columns: 4.2rem 8rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(215, 222, 230, 0.35);
  text-decoration: none;
  color: inherit;
}

.chronicle-row:hover {
  opacity: 1;
  color: var(--ember);
}

.chronicle-row .code {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--ember);
}

.featured-story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.surface-porcelain .chronicle-row {
  border-bottom-color: #d7dee6;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.matrix th,
.matrix td {
  border-bottom: 1px solid var(--frost);
  padding: 0.85rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.matrix th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.mosaic img:first-child {
  grid-row: 1 / span 2;
  min-height: 340px;
}

.about-page .section {
  padding: 3rem 0 3.4rem;
}

.about-desk {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  gap: 1.8rem 2rem;
  align-items: start;
}

.about-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
}

.about-mosaic {
  position: sticky;
  top: 4.6rem;
}

.about-mosaic img:first-child {
  min-height: 280px;
}

.about-copy .timeline {
  gap: 0.7rem;
  margin: 1rem 0 1.15rem;
}

.about-copy .timeline p {
  margin: 0;
}

.about-contacts {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--frost);
  list-style: none;
}

.about-close {
  max-width: 42rem;
}

.about-close p:last-child {
  margin-bottom: 0;
}

.timeline {
  border-left: 2px solid var(--ember);
  padding-left: 1.1rem;
  display: grid;
  gap: 1.1rem;
}

.bio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.map-tile iframe {
  width: 100%;
  height: 480px;
  border: 1px solid var(--frost);
  filter: hue-rotate(190deg) invert(0.82);
}

.chip-card {
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 248, 0.72);
  border: 1px solid var(--frost);
  padding: 1rem;
  margin-bottom: 1rem;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--abyss);
  background: #fff;
  color: var(--abyss);
}

.form textarea {
  min-height: 9rem;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
}

.consent input {
  width: auto;
  margin-top: 0.25rem;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.form-wrap {
  position: relative;
}

.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.jump-nav {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.jump-nav a {
  text-decoration: none;
  border-left: 2px solid var(--ember);
  padding-left: 0.6rem;
}

.qa {
  display: grid;
  gap: 1.4rem;
}

.qa article {
  border-top: 1px solid currentColor;
  padding-top: 1rem;
}

.site-footer {
  padding: 2.8rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.6rem;
}

.footer-legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--frost);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  width: min(420px, calc(100% - 2rem));
  z-index: 90;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--frost);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.cookie-banner .btn-outline {
  color: #f5f7f8;
  border: 1px solid #d7dee6;
  background: rgba(245, 247, 248, 0.12);
}

.cookie-panel {
  display: none;
  margin-top: 0.75rem;
}

.cookie-banner.is-open .cookie-panel {
  display: block;
}

.success,
.wait-banner {
  border: 1px solid var(--ember);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.error-banner {
  border: 1px solid #8a3030;
  background: #fdecea;
  color: #071018;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.field-error {
  color: #8a3030;
  font-size: 0.82rem;
  font-weight: 400;
}

.console-panel {
  border: 1px solid var(--frost);
  padding: 1.4rem;
}

.photo-caption {
  font-size: 12px;
  color: var(--frost);
  margin-top: 0.35rem;
}

.legal-body h2 {
  margin-top: 1.8rem;
}

@media (max-width: 900px) {
  h1 {
    font-size: clamp(2rem, 8vw, 3.15rem);
  }

  .hero h1 {
    font-size: clamp(2.05rem, 8.2vw, 3.05rem);
  }

  .wrap {
    width: min(1180px, calc(100% - 1.5rem));
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 5.25rem 0 2.8rem;
  }

  .hero-copy {
    padding-top: 1.6rem;
    max-width: none;
  }

  .hero-cta .btn {
    min-height: 2.85rem;
  }

  .split,
  .split.reverse,
  .contact-grid,
  .faq-layout,
  .footer-grid,
  .progress-rail,
  .stat-float,
  .featured-story,
  .about-desk {
    grid-template-columns: 1fr;
  }

  .split > *,
  .featured-story > *,
  .about-desk > *,
  .contact-grid > * {
    min-width: 0;
  }

  .frost-badge {
    align-self: flex-start;
    min-width: 0;
    width: 100%;
  }

  .stat-float {
    position: relative;
    inset: auto;
    margin-top: -3rem;
  }

  .stat-photo,
  .stat-photo img {
    min-height: 0;
    height: 16rem;
  }

  .contact-grid > .map-tile {
    order: 2;
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0 0.85rem;
  }

  .nav-links {
    width: 100%;
    gap: 0.5rem 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .mosaic img:first-child,
  .about-mosaic img:first-child {
    min-height: 200px;
  }

  .about-mosaic {
    position: static;
  }

  .about-contacts a {
    overflow-wrap: anywhere;
  }

  .jump-nav {
    position: static;
  }

  .chronicle-row {
    grid-template-columns: minmax(3.2rem, auto) 1fr;
    column-gap: 0.75rem;
    row-gap: 0.12rem;
  }

  .chronicle-row .code {
    grid-row: 1 / span 2;
    align-self: start;
    font-size: 0.72rem;
  }

  .chronicle-row time,
  .chronicle-row strong {
    grid-column: 2;
  }

  .chronicle-row > span:not(.code) {
    display: none;
  }

  .story-pager,
  .hero-cta {
    flex-wrap: wrap;
  }

  .story-pager {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .story-pager a {
    overflow-wrap: anywhere;
  }

  .map-tile iframe {
    height: 240px;
  }

  .featured-story img,
  .story-hero img {
    height: 14.5rem;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: 0.75rem;
    padding: 0.8rem 0.85rem;
    font-size: 0.88rem;
  }

  .cookie-banner p {
    margin: 0;
  }

  .cookie-actions {
    margin-top: 0.55rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .cookie-actions .btn {
    flex: none;
    width: 100%;
    min-height: 2.55rem;
    padding: 0.4rem 0.45rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .cookie-actions .btn[data-cookie="tweak"] {
    grid-column: 1 / -1;
  }

  .section {
    padding: 3.1rem 0;
  }

  .matrix {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .hero-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.js .reveal {
  opacity: 1;
  transform: none;
}

.js .reveal.is-pending {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}
