/* Jonas Keil - statisches Portfolio */

:root {
  --bg: #f6fbff;
  --bg-soft: #eaf4ff;
  --surface: #ffffff;
  --surface-2: #f2f7fd;
  --ink: #07131f;
  --ink-soft: #314357;
  --muted: #66788d;
  --line: rgba(10, 45, 82, 0.14);
  --line-strong: rgba(10, 45, 82, 0.24);
  --blue: #157fe1;
  --blue-2: #0d5fa9;
  --cyan: #19c2f2;
  --orange: #ff8a3d;
  --dark: #06101f;
  --dark-2: #0b1b31;
  --dark-3: #10243d;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(3, 24, 46, 0.12);
  --shadow-strong: 0 28px 80px rgba(3, 24, 46, 0.26);
  --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1240px;
  --gutter: 28px;
  --header-h: 72px;
  --r: 10px;
  --r-lg: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #06101f;
  --bg-soft: #0b1b31;
  --surface: #0d1d33;
  --surface-2: #12263f;
  --ink: #f6fbff;
  --ink-soft: #c4d2e2;
  --muted: #8fa3ba;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(25, 194, 242, 0.14), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 42%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
}

::selection {
  background: var(--cyan);
  color: var(--dark);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  color: var(--ink-soft);
  text-wrap: pretty;
}

strong {
  color: inherit;
  font-weight: 800;
}

.skip {
  position: absolute;
  top: 12px;
  left: -999px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--cyan);
  color: var(--dark);
  font-weight: 800;
}

.skip:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(246, 251, 255, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

[data-theme="dark"] .site-header {
  background: rgba(6, 16, 31, 0.78);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(21, 127, 225, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.nav-links a {
  display: block;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: var(--surface-2);
}

.header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(21, 127, 225, 0.18);
}

.theme-toggle,
.burger {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.theme-sun,
.theme-moon {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.theme-sun {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 138, 61, 0.16);
}

.theme-moon {
  background: var(--ink);
  box-shadow: -5px 0 0 0 var(--surface);
  opacity: 0;
  transform: translateY(18px);
}

[data-theme="dark"] .theme-sun {
  opacity: 0;
  transform: translateY(-18px);
}

[data-theme="dark"] .theme-moon {
  opacity: 1;
  transform: none;
}

.burger {
  display: none;
  position: relative;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 26%, rgba(25, 194, 242, 0.30), transparent 20rem),
    radial-gradient(circle at 16% 12%, rgba(21, 127, 225, 0.34), transparent 24rem),
    linear-gradient(135deg, #06101f 0%, #0a2340 50%, #07182b 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  opacity: .34;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: center;
  gap: 72px;
  padding-block: 54px;
}

.hero-copy h1 {
  max-width: 820px;
  margin-top: 18px;
  color: var(--white);
  font-size: clamp(3.1rem, 5vw, 4.35rem);
  letter-spacing: -0.038em;
  line-height: 1.0;
}

.hero-copy h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(120deg, var(--cyan), #ffffff 44%, #65aef8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #bde8ff;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.hero-lead {
  max-width: 660px;
  margin-top: 18px;
  color: #c9d8e8;
  font-size: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 11px 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--primary {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  box-shadow: 0 16px 32px rgba(21, 127, 225, 0.28);
}

.btn--glass {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.09);
  color: var(--white);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn--ghost {
  border-color: rgba(255,255,255,.18);
  background: transparent;
  color: var(--white);
}

.btn--small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 14px;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 7px 11px;
  color: #d9efff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255,255,255,.07);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.hero-metrics div {
  min-width: 128px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r);
  background: rgba(255,255,255,.08);
}

.hero-metrics strong {
  display: block;
  color: var(--white);
  font-size: 26px;
  line-height: 1.1;
}

.hero-metrics span {
  display: block;
  margin-top: 3px;
  color: #93b2cc;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.hero-orbit {
  position: absolute;
  width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(25, 194, 242, .24), transparent 48%),
    conic-gradient(from 120deg, rgba(25,194,242,.72), rgba(21,127,225,.04), rgba(255,255,255,.32), rgba(25,194,242,.72));
  filter: blur(.2px);
  opacity: .9;
  animation: spin 18s linear infinite;
}

.portrait-card {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-2);
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.02);
}

.float-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  background: rgba(255,255,255,.92);
  color: var(--dark);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.float-card img,
.agent-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  object-fit: contain;
}

.agent-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.float-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.float-card strong {
  display: block;
  color: var(--dark);
  font-size: 15px;
}

.float-course {
  left: -18px;
  bottom: 78px;
  transform: rotate(-3deg);
}

.float-agent {
  right: -20px;
  top: 86px;
  transform: rotate(4deg);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Proof and marquee */
.proof-band {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
}

.proof-copy .eyebrow,
.section-kicker {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.proof-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.proof-logos span {
  display: grid;
  place-items: center;
  height: 54px;
  min-width: 116px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}

.proof-logos img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

.marquee {
  overflow: hidden;
  padding-block: 16px;
  background: var(--dark);
  color: var(--white);
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll 36s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-inline: 18px;
  color: #d8eaff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.marquee-track span::after {
  content: "/";
  color: var(--cyan);
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding-block: 112px;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-head h2,
.about-copy h2,
.contact-copy h2,
.youtube-copy h2 {
  margin-top: 12px;
  font-size: 56px;
  letter-spacing: -0.032em;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.section-head p,
.youtube-copy p,
.contact-copy p {
  max-width: 680px;
  margin-top: 18px;
  font-size: 18px;
}

.section-dark {
  background:
    radial-gradient(circle at 88% 20%, rgba(25, 194, 242, .22), transparent 28rem),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: #bfd1e5;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: 1.18fr .91fr .91fr;
  gap: 18px;
}

.product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.product-card--blue {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 0%, rgba(25,194,242,.34), transparent 17rem),
    linear-gradient(135deg, var(--blue-2), var(--blue));
  border-color: rgba(255,255,255,.18);
}

.product-card--blue p,
.product-card--blue .product-type,
.product-card--blue .product-foot,
.product-card--blue .chip {
  color: #d9efff;
}

.product-card--blue h3,
.product-card--blue .go,
.product-card--blue b {
  color: var(--white);
}

.product-card--blue .chip {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
}

.product-card--blue .product-features .chip {
  color: #eef6ff;
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.17);
}

.product-top,
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.product-card--blue .product-badge {
  background: rgba(255,255,255,.94);
  color: var(--blue-2);
}

.product-card--orange .product-badge {
  background: var(--orange);
}

.product-type,
.product-foot,
.product-features .chip {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-main {
  display: grid;
  gap: 18px;
}

.product-media {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--surface-2);
}

.product-card--blue .product-media {
  background: rgba(255,255,255,.14);
}

.product-media img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.product-symbol {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  font-weight: 900;
}

.product-card h3 {
  font-size: 30px;
}

.product-card p {
  margin-top: 10px;
}

.product-features,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.product-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid currentColor;
}

.product-foot b {
  color: var(--ink);
  font-size: 20px;
}

.go {
  color: var(--ink);
  font-weight: 900;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.evidence-grid {
  margin-bottom: 22px;
}

.evidence-grid + .projects {
  margin-top: 24px;
}

.service-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  box-shadow: 0 22px 50px rgba(0,0,0,.25);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(25,194,242,.55);
}

.service-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark-3);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}

.service-card:hover .service-image img {
  transform: scale(1.04);
}

.service-copy {
  padding: 26px;
}

.service-copy h3 {
  font-size: 30px;
}

.service-copy p {
  margin-top: 12px;
}

.text-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 22px;
  color: var(--cyan);
  font-weight: 900;
}

/* Projects */
.projects {
  display: grid;
  gap: 14px;
}

.project {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(3, 24, 46, .06);
  overflow: clip;
}

.project-head {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 42px;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.project-no {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--blue);
  font-weight: 900;
}

.project-title h3 {
  font-size: 24px;
}

.section-dark .project h3 {
  color: var(--ink);
}

.section-dark .project p {
  color: var(--ink-soft);
}

.project-title span {
  display: block;
  max-width: 720px;
  margin-top: 5px;
  color: var(--muted);
}

.project-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 150px;
}

.project-meta b {
  color: var(--ink);
}

.project-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.project-toggle::before,
.project-toggle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.project-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .25s var(--ease);
}

.project-head[aria-expanded="true"] .project-toggle {
  background: var(--blue);
  border-color: var(--blue);
}

.project-head[aria-expanded="true"] .project-toggle::before,
.project-head[aria-expanded="true"] .project-toggle::after {
  background: var(--white);
}

.project-head[aria-expanded="true"] .project-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.project-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}

.project-detail > * {
  overflow: hidden;
}

.project-head[aria-expanded="true"] + .project-detail {
  grid-template-rows: 1fr;
}

.project-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 28px;
  padding: 0 22px 24px 104px;
}

.project-detail h4 {
  margin: 18px 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.clean-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}

.clean-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.result-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}

.result-box + .result-box {
  margin-top: 10px;
}

.result-number {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.result-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* YouTube */
.section-youtube {
  background: var(--surface);
}

.youtube-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.road {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.road-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-weight: 800;
}

.road-top span {
  color: var(--blue);
}

.road-bar {
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
}

.road-bar span {
  display: block;
  width: 85.8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.road a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 900;
}

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

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: 0 12px 28px rgba(3, 24, 46, .08);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.play::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid var(--blue);
}

.video-copy {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.video-tag {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.video-copy strong {
  color: var(--ink);
  line-height: 1.35;
}

.video-copy a {
  display: inline-flex;
  width: fit-content;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

/* About and skills */
.about-grid {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: center;
}

.about-photo {
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--dark);
}

.about-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 19 / 20;
  object-fit: cover;
  object-position: center 12%;
}

.about-copy .lead-line {
  margin-top: 22px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
}

.about-copy p + p {
  margin-top: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.stat-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.stat-number {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.stat-number span {
  color: var(--blue);
  font-size: .7em;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .05em;
  text-transform: uppercase;
}

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

.skill-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.skill-index {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-inline: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.skill-card h3 {
  margin-top: 14px;
  margin-bottom: 16px;
  font-size: 22px;
}

/* References */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ref-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.ref-logo {
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--surface-2);
}

.ref-logo img {
  max-width: 128px;
  max-height: 38px;
  object-fit: contain;
}

.ref-card blockquote {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.ref-card figcaption {
  display: grid;
  gap: 2px;
  margin-top: auto;
}

.ref-card figcaption strong {
  color: var(--ink);
}

.ref-card figcaption span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* Contact */
.contact-section {
  background:
    radial-gradient(circle at 88% 10%, rgba(25, 194, 242, .22), transparent 28rem),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
}

.contact-section h2 {
  color: var(--white);
}

.contact-section p {
  color: #bfd1e5;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: 54px;
  align-items: start;
}

.big-mail {
  display: inline-block;
  margin-top: 26px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-row a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: #d9efff;
  font-weight: 800;
}

.form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.07);
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #d9efff;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r);
  background: rgba(255,255,255,.92);
  color: var(--dark);
  padding: 13px 14px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(25, 194, 242, .2);
}

/* Footer */
.site-footer {
  padding-block: 42px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links a,
.footer-bottom a {
  color: var(--muted);
  font-weight: 800;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--blue);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

.hero .load {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .8s var(--ease) forwards;
}

.hero .load-2 { animation-delay: .12s; }
.hero .load-3 { animation-delay: .22s; }
.hero .load-4 { animation-delay: .32s; }
.hero-visual.load { animation-delay: .2s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Legal pages */
.legal-main {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 96px;
}

.prose {
  max-width: 780px;
}

.prose .eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mono {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.legal-date {
  margin-top: 42px;
  color: var(--muted);
}

.prose h1 {
  margin-top: 12px;
  margin-bottom: 34px;
  font-size: 54px;
}

.prose h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: 28px;
}

.prose h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 20px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose p {
  margin-bottom: 16px;
}

.prose a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px 20px;
}

.placeholder {
  display: inline-block;
  border-radius: 4px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--ink);
  padding-inline: 4px;
}

.note {
  margin: 26px 0;
  padding: 18px;
  border-left: 4px solid var(--blue);
  border-radius: var(--r);
  background: var(--surface);
}

.note p:last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--blue);
}

/* Responsive */
@media (max-width: 1120px) {
  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding-inline: 9px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 54px;
  }

  .hero-copy h1 {
    font-size: 64px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .products-grid,
  .videos-grid,
  .refs-grid,
  .skill-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  :root {
    --gutter: 20px;
    --header-h: 66px;
  }

  body {
    font-size: 16px;
  }

  .burger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 12px;
    right: 12px;
    display: grid;
    gap: 0;
    padding: 8px;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-strong);
    transform: translateY(-130%);
    transition: transform .32s var(--ease);
  }

  .nav-open .nav-links {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 12px;
    border-radius: var(--r);
    font-size: 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 48px 70px;
  }

  .hero-copy h1 {
    font-size: 54px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .portrait-card {
    width: min(360px, 86vw);
  }

  .hero-orbit {
    width: min(470px, 96vw);
  }

  .float-card {
    min-width: auto;
  }

  .float-course {
    left: 0;
    bottom: 44px;
  }

  .float-agent {
    right: 0;
    top: 44px;
  }

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

  .proof-logos {
    justify-content: flex-start;
  }

  .section {
    padding-block: 78px;
  }

  .section-head h2,
  .about-copy h2,
  .contact-copy h2,
  .youtube-copy h2 {
    font-size: 42px;
  }

  .products-grid,
  .services-grid,
  .videos-grid,
  .refs-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .project-head {
    grid-template-columns: 52px minmax(0, 1fr) 40px;
    gap: 12px;
    padding: 18px;
  }

  .project-meta {
    grid-column: 2 / -1;
    justify-items: start;
    min-width: 0;
  }

  .project-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .project-detail-inner {
    grid-template-columns: 1fr;
    padding: 0 18px 20px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 380px;
  }

  .float-card {
    padding: 10px;
  }

  .float-card img,
  .agent-icon {
    width: 36px;
    height: 36px;
  }

  .float-card strong {
    font-size: 13px;
  }

  .proof-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-logos span {
    min-width: 0;
  }

  .section-head h2,
  .about-copy h2,
  .contact-copy h2,
  .youtube-copy h2,
  .prose h1 {
    font-size: 34px;
  }

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

  .big-mail {
    font-size: 25px;
  }

  .form {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal,
  .hero .load {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}

@media print {
  .site-header,
  .hero,
  .proof-band,
  .marquee,
  .form,
  .theme-toggle,
  .burger {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
