/* KA — German-efficient tech portfolio */

:root {
  --bg: #eef2f6;
  --bg-elevated: #f7f9fc;
  --ink: #0b1220;
  --ink-soft: #3d4a5c;
  --muted: #6b7a8d;
  --line: #c5d0dc;
  --line-soft: rgba(11, 18, 32, 0.08);
  --accent: #007a96;
  --accent-bright: #00b4d8;
  --accent-soft: rgba(0, 180, 216, 0.12);
  --hero-ink: #f4f7fb;
  --hero-bg: #0b1220;
  --radius: 2px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space: clamp(1rem, 2.5vw, 1.75rem);
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
  --font-hero: "Space Grotesk", system-ui, sans-serif;
  --accent: #007a96;
}

*,
*::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.6;
  color: var(--ink);
  background:
    linear-gradient(180deg, #e8eef4 0%, var(--bg) 28%, #e6edf3 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(238, 242, 246, 0.86);
  border-bottom: 1px solid var(--line-soft);
}

.site-header.site-header--over-hero {
  position: absolute;
  width: 100%;
}

.nav {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav__brand img {
  width: auto;
  height: 40px;
  max-width: min(180px, 46vw);
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.site-footer__brand img {
  width: auto;
  height: 32px;
  max-width: 150px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.nav__wordmark {
  font-size: 1.15rem;
}

.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch__btn.is-active {
  background: var(--ink);
  color: var(--hero-ink);
}

.nav__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__links a {
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  padding: 0.55rem 0.95rem;
  background: var(--ink);
  color: var(--hero-ink) !important;
  font-size: 0.85rem;
}

.nav__cta:hover {
  background: var(--accent);
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #00657c;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--full {
  width: 100%;
}

/* ——— Type ——— */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow__code {
  color: var(--accent);
}

.section__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__subtitle {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
}

.section__header {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

/* ——— Hero (base overridden by cinema.css for .hero--webgl) ——— */

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: rgba(244, 247, 251, 0.68);
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero--webgl .btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero--webgl .btn--ghost:hover {
  border-color: #00b4d8;
  color: #67e8f9;
}

.hero--webgl .btn--primary {
  background: #007a96;
}

.hero--webgl .btn--primary:hover {
  background: #00b4d8;
}

.site-header--over-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
}

.site-header--over-hero .nav__wordmark,
.site-header--over-hero .nav__links a {
  color: rgba(255, 255, 255, 0.88);
}

.site-header--over-hero .nav__links a:hover {
  color: #fff;
}

.site-header--over-hero .lang-switch {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.site-header--over-hero .lang-switch__btn {
  color: rgba(255, 255, 255, 0.65);
}

.site-header--over-hero .lang-switch__btn.is-active {
  background: #fff;
  color: #0b1220;
}

.site-header--over-hero .nav__toggle {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
}

.site-header--over-hero .nav__toggle span {
  background: #fff;
}

.site-header.is-scrolled {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(5, 10, 18, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled .nav__wordmark,
.site-header.is-scrolled .nav__links a {
  color: rgba(255, 255, 255, 0.82);
}

.site-header.is-scrolled .nav__links a:hover {
  color: #fff;
}

.site-header.is-scrolled .lang-switch {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.site-header.is-scrolled .lang-switch__btn {
  color: rgba(255, 255, 255, 0.65);
}

.site-header.is-scrolled .lang-switch__btn.is-active {
  background: #fff;
  color: #0b1220;
}

.site-header.is-scrolled .nav__toggle {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
}

.site-header.is-scrolled .nav__toggle span {
  background: #fff;
}

.site-header.is-scrolled .nav__cta {
  background: #00b4d8;
  color: #051018 !important;
}

@media (max-width: 720px) {
  .site-header--over-hero .nav__links {
    background: rgba(5, 5, 8, 0.96);
  }

  .site-header.is-scrolled .nav__links {
    background: rgba(5, 10, 18, 0.97);
  }
}

/* ——— Services grid removed; coverflow in cinema.css ——— */

.section--services-cinema .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.section--services-cinema .section__title {
  color: #fff;
}

.section--services-cinema .section__subtitle {
  color: rgba(255, 255, 255, 0.65);
}

/* ——— Approach ——— */

.section--approach {
  background:
    linear-gradient(180deg, transparent, rgba(0, 122, 150, 0.04)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(11, 18, 32, 0.015) 10px,
      rgba(11, 18, 32, 0.015) 11px
    );
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: none;
}

.steps__item {
  padding: 1.35rem 1.2rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--accent);
}

.steps__num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.steps__item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.steps__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ——— Work ——— */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.work-item {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 160px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  padding: 1.1rem;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.work-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.work-item img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  filter: grayscale(0.15);
}

.work-item__meta {
  display: grid;
  gap: 0.15rem;
}

.work-item__meta strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.work-more {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.page-portfolio .team-hero .section__title {
  max-width: 18ch;
}

.section--portfolio-page {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.section--services-page {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.services-list {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
}

.services-list__item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.1rem, 3vw, 1.75rem);
  align-items: center;
}

.services-list__item img {
  width: 100%;
  height: clamp(160px, 22vw, 220px);
  object-fit: cover;
  border: 1px solid rgba(244, 247, 251, 0.1);
}

.services-list__tag {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.services-list__item h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 650;
  color: #f4f7fb;
}

.services-list__item p:last-child {
  margin: 0;
  color: rgba(244, 247, 251, 0.7);
  line-height: 1.6;
  max-width: 36rem;
}

@media (max-width: 720px) {
  .services-list__item {
    grid-template-columns: 1fr;
  }
}

.folio-note {
  margin: 0 0 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.work-grid--folio {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.work-item--folio {
  min-height: 200px;
  padding: 1.25rem;
}

.work-item--folio img {
  height: 88px;
  margin-bottom: 1rem;
}

.work-item__tag {
  display: inline-block;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 960px) {
  .work-grid--folio {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .work-grid--folio {
    grid-template-columns: 1fr;
  }
}

/* ——— Contact ——— */

.page-contact .section--contact {
  padding-top: calc(var(--header-h) + 2.5rem);
}

.section--contact {
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.section--contact .eyebrow {
  color: rgba(244, 247, 251, 0.5);
}

.section--contact .section__subtitle {
  color: rgba(244, 247, 251, 0.65);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-points {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.contact-points li {
  padding-left: 1.1rem;
  position: relative;
  color: rgba(244, 247, 251, 0.72);
  font-size: 0.98rem;
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent-bright);
}

.company-card {
  margin-top: 1.75rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(244, 247, 251, 0.12);
  background: rgba(247, 249, 252, 0.04);
  font-style: normal;
}

.company-card__name {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  color: #f4f7fb;
}

.company-card__line {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.company-card__addr {
  margin: 0;
  color: rgba(244, 247, 251, 0.72);
  line-height: 1.55;
  font-size: 0.95rem;
}

.contact-map-wrap {
  margin-top: clamp(2rem, 5vw, 2.75rem);
}

.contact-map__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: #f4f7fb;
}

.contact-map {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 251, 0.12);
  background: #0a1018;
  aspect-ratio: 16 / 7;
  min-height: 260px;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 0.95rem;
  padding: 1.5rem;
  background: rgba(247, 249, 252, 0.04);
  border: 1px solid rgba(244, 247, 251, 0.12);
}

.field--honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.field span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.55);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(244, 247, 251, 0.16);
  background: rgba(11, 18, 32, 0.55);
  color: var(--hero-ink);
  border-radius: var(--radius);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-bright);
  outline-offset: 1px;
  border-color: transparent;
}

.field option {
  color: var(--ink);
  background: #fff;
}

/* ——— Footer ——— */

.site-footer {
  padding: 1.35rem 0;
  background: #070b14;
  color: rgba(244, 247, 251, 0.55);
  font-size: 0.88rem;
  border-top: 1px solid rgba(244, 247, 251, 0.06);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
}

.site-footer__nav a {
  color: rgba(244, 247, 251, 0.62);
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-footer__nav a:hover {
  color: var(--accent-bright);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--hero-ink);
}

.site-footer__legal {
  text-align: right;
}

.site-footer__legal p {
  margin: 0;
  line-height: 1.45;
}

.site-footer__legal p + p {
  margin-top: 0.2rem;
}

.site-footer p {
  margin: 0;
}

/* ——— Reveal ——— */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Responsive ——— */

@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .nav {
    width: min(100% - 1.5rem, var(--max));
    min-height: 3.75rem;
  }

  .nav__brand img {
    height: 32px;
    max-width: min(140px, 42vw);
  }

  .nav__toggle {
    display: grid;
  }

  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    background: rgba(238, 242, 246, 0.97);
    border-bottom: 1px solid var(--line-soft);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--line-soft);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav__cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }

  .nav.is-open .nav__toggle span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .nav.is-open .nav__toggle span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .section__title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .section__subtitle {
    font-size: 0.95rem;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .work-item {
    min-height: 140px;
    padding: 0.85rem;
  }

  .work-item img {
    height: 56px;
  }

  .work-item__meta strong {
    font-size: 0.88rem;
  }

  .work-item__meta em {
    font-size: 0.68rem;
    word-break: break-all;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps__item {
    padding: 1.15rem 1rem 1.25rem;
  }

  .section {
    padding: clamp(2.5rem, 9vw, 4rem) 0;
  }

  .contact-intro .section__title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .contact-form {
    padding: 1.15rem;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    min-height: 44px;
  }

  .btn {
    min-height: 44px;
  }

  .lang-switch__btn {
    min-width: 40px;
    min-height: 36px;
  }

  .site-footer {
    padding: 1.15rem 0 max(1.15rem, env(safe-area-inset-bottom));
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .site-footer__legal {
    text-align: left;
  }

  .site-footer__nav {
    gap: 0.45rem 0.85rem;
  }
}

@media (max-width: 420px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ——— Legal pages ——— */

.page-legal {
  background: #050a12;
  color: #f4f7fb;
}

.section--legal {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.legal-doc {
  max-width: 42rem;
}

.legal-doc .section__title {
  color: #f4f7fb;
}

.legal-doc__lead {
  margin: 0.75rem 0 1.75rem;
  color: rgba(244, 247, 251, 0.55);
}

.legal-doc h2 {
  margin: 1.75rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: #f4f7fb;
}

.legal-doc p {
  margin: 0 0 0.75rem;
  color: rgba(244, 247, 251, 0.72);
  line-height: 1.65;
}

.legal-doc a {
  color: var(--accent-bright);
}

.legal-doc__note {
  margin-top: 2rem !important;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 180, 216, 0.35);
  background: rgba(0, 180, 216, 0.08);
  font-size: 0.92rem;
}

.page-team {
  background: #eef2f6;
}

.page-team .site-header {
  position: sticky;
}

.nav__links a.is-active {
  color: var(--accent) !important;
}

.team-hero {
  padding: calc(var(--header-h) + 2.75rem) 0 3rem;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(0, 180, 216, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(0, 122, 150, 0.12), transparent 50%),
    #050a12;
  color: #f4f7fb;
}

.team-hero--story .team-hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.team-hero__lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(244, 247, 251, 0.72);
}

.team-hero__aside {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: rgba(103, 232, 249, 0.9);
}

.team-hero .eyebrow {
  color: rgba(244, 247, 251, 0.5);
}

.team-hero .section__title {
  color: #f4f7fb;
  max-width: 14ch;
}

.team-hero .section__subtitle {
  color: rgba(244, 247, 251, 0.65);
  max-width: 34rem;
}

.section--story {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.story-flow {
  display: grid;
  gap: 1.15rem;
}

.story-block {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.15rem;
  row-gap: 0.45rem;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
}

.story-block__num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.35rem;
}

.story-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em;
}

.story-block p {
  margin: 0;
  grid-column: 2;
  color: var(--ink-soft);
  max-width: 58ch;
}

.section--beliefs {
  background:
    linear-gradient(180deg, transparent, rgba(0, 122, 150, 0.05));
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.beliefs-grid li {
  padding: 1.25rem 1.2rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  display: grid;
  gap: 0.45rem;
}

.beliefs-grid strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.beliefs-grid span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section--story-cta {
  background: #050a12;
  color: #f4f7fb;
  text-align: center;
}

.story-cta {
  max-width: 40rem;
  margin-inline: auto;
}

.story-cta h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.03em;
}

.story-cta p {
  margin: 0 0 1.5rem;
  color: rgba(244, 247, 251, 0.65);
}

.section--team {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.team-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.15rem;
  align-items: stretch;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.team-card:hover {
  border-color: rgba(0, 122, 150, 0.4);
  transform: translateY(-2px);
}

.team-card__photo {
  position: relative;
  min-height: 180px;
  background:
    linear-gradient(160deg, #0b1220, #123049);
  overflow: hidden;
}

.team-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.team-card__photo img.is-missing {
  display: none;
}

.team-card__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(103, 232, 249, 0.85);
  z-index: 0;
}

.team-card__body {
  padding: 1.15rem 1.15rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card__role {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-card__name {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.team-card__bio {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .team-hero--story .team-hero__grid {
    grid-template-columns: 1fr;
  }

  .team-hero .section__title {
    max-width: none;
  }

  .beliefs-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 120px 1fr;
  }

  .team-card__photo {
    min-height: 150px;
  }

  .story-block {
    grid-template-columns: 1fr;
  }

  .story-block__num {
    grid-row: auto;
  }

  .story-block p {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card__photo {
    min-height: 220px;
  }

  .team-card__body {
    padding: 1.1rem 1.15rem 1.35rem;
  }
}
