:root {
  color-scheme: dark;
  --ink: #f3eee4;
  --muted: #bcb5a8;
  --dim: #7f786e;
  --bg: #080807;
  --panel: #14120f;
  --line: #2b2721;
  --lime: #d6ff2f;
  --red: #ff4f37;
  --cyan: #7ddad3;
  --paper: #efe6d6;
  --radius: 8px;
  --max: 1180px;
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--lime);
}

nav {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  outline: 1px solid var(--dim);
}

.nav-cta {
  border: 1px solid var(--line);
  color: var(--ink);
}

.section-shell {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 136px;
}

.hero {
  min-height: calc(88vh - 67px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: 44px 0 52px;
}

.eyebrow,
.case-kicker,
.project-card span {
  margin: 0 0 14px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 890px;
  font-size: clamp(50px, 5.8vw, 84px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(34px, 5vw, 66px);
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
}

.hero-lede,
.page-hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.button.primary {
  background: var(--lime);
  color: #111109;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.portrait-panel {
  width: 100%;
  max-width: 380px;
  justify-self: end;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0;
  background: #171410;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.site-footer {
  font-family: var(--font-mono);
}

.journey-section {
  padding: 76px 0 36px;
  border-top: 1px solid var(--line);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.journey-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.journey-card p {
  margin: 0;
  color: var(--muted);
}

.journey-card .journey-role {
  color: var(--ink);
  font-weight: 700;
}

.logo-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-row img {
  max-width: 150px;
  max-height: 42px;
  object-fit: contain;
}

.logo-row img[src$="everis.png"] {
  width: 46px;
  height: 46px;
}

.logo-row .round-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.multi-logo {
  justify-content: space-between;
}

.yc-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.yc-badge img {
  width: 22px;
  height: 22px;
}

.text-logo strong,
.logo-row strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 86px);
  padding: 94px 0;
  border-bottom: 1px solid var(--line);
}

.copy-stack {
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
}

.copy-stack p {
  margin: 0 0 20px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 36px 0 96px;
}

.case-card,
.project-card,
.cloud-console {
  border: 1px solid var(--line);
  background: var(--panel);
}

.case-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.case-card h3 {
  font-size: clamp(27px, 3.2vw, 42px);
}

.case-card:not(.feature-case) h3 {
  font-size: clamp(26px, 2.6vw, 36px);
}

.feature-case {
  grid-column: span 2;
}

.case-card p:not(.case-kicker),
.project-card p {
  color: var(--muted);
}

.case-card dl {
  margin: auto 0 0;
  display: grid;
  gap: 10px;
}

.case-card dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

dt,
.metric {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--ink);
}

.metric {
  display: block;
  margin-top: auto;
  padding-top: 20px;
}

.project-section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--ink);
  outline: none;
}

.fallout-card {
  background: #1b100d;
}

.anrxyst-card {
  background: #101713;
}

.cloud-card {
  background: #111520;
}

.page-hero {
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}

.fallout-hero h1 {
  color: #ff7a5f;
}

.anrxyst-hero h1 {
  color: var(--lime);
}

.cloud-hero h1 {
  color: var(--cyan);
}

.cloud-console {
  margin: 20px auto 90px;
}

.console-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

.console-body {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 42px);
}

.user-line,
.mirror-line {
  max-width: 850px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.mirror-line {
  margin-left: auto;
  color: var(--ink);
  border-color: rgba(125, 218, 211, 0.55);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .portrait-panel {
    max-width: 420px;
    justify-self: start;
  }

  .journey-grid,
  .case-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-case {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-lede,
  .page-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .portrait-panel {
    max-width: 100%;
  }

  .journey-grid,
  .case-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .feature-case {
    grid-column: span 1;
  }

  .case-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .project-card {
    min-height: 250px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
