:root {
  color-scheme: dark;
  --bg: #030910;
  --bg-soft: #07121c;
  --panel: rgba(8, 21, 32, 0.94);
  --panel-strong: #0b1824;
  --text: #f3f7f8;
  --muted: #9aaab7;
  --subtle: #728695;
  --line: rgba(143, 180, 199, 0.22);
  --cyan: #32e3d0;
  --violet: #bc6aea;
  --blue: #63a1ff;
  --green: #7ee7a1;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --header-height: 72px;
  --radius: 16px;
  --shell: 1420px;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Archivo Black", Impact, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ecefeb;
  --bg-soft: #e4e9e6;
  --panel: rgba(253, 254, 253, 0.95);
  --panel-strong: #f5f8f6;
  --text: #111c24;
  --muted: #586875;
  --subtle: #70808a;
  --line: rgba(44, 66, 77, 0.2);
  --cyan: #087e78;
  --violet: #7b35a9;
  --blue: #245ea7;
  --green: #237445;
  --shadow: 0 22px 60px rgba(34, 56, 64, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(28, 79, 105, 0.3), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  text-rendering: optimizeLegibility;
  transition: background-color 280ms ease, color 280ms ease;
}

[data-theme="light"] body {
  background: #fff;
}

a { color: inherit; }

img { max-width: 100%; }

button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 1000;
  border-radius: 9px;
  padding: 11px 15px;
  background: var(--cyan);
  color: #001311;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus { top: 10px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: var(--header-height);
  align-items: center;
  gap: 28px;
  padding: 0 clamp(18px, 3vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 9, 16, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

[data-theme="light"] .site-header {
  border-color: rgba(143, 180, 199, 0.22);
  background: rgba(3, 9, 16, 0.9);
}
[data-theme="light"] .site-header .brand,
[data-theme="light"] .site-header .desktop-nav a,
[data-theme="light"] .site-header .recruiter-link,
[data-theme="light"] .site-header .theme-toggle,
[data-theme="light"] .site-header .menu-toggle { color: #f3f7f8; }
[data-theme="light"] .site-header .desktop-nav a:not([aria-current="page"]) { color: #9aaab7; }

.brand {
  display: inline-flex;
  width: 64px;
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 0.78;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-words { display: grid; width: 100%; gap: 2px; }
.brand-word { display: flex; width: 100%; justify-content: space-between; }
.brand-word > span { display: block; }

.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 35px); }

.desktop-nav a,
.mobile-nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a { position: relative; padding-block: 25px; }

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav a:hover { color: var(--text); }

.desktop-nav a[aria-current="page"]::after {
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  content: "";
  transform: translateX(-50%);
}

.header-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }

.recruiter-link,
.theme-toggle,
.menu-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 20, 30, 0.72);
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 9px 13px;
  text-decoration: none;
  text-transform: uppercase;
}

[data-theme="light"] .recruiter-link,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .menu-toggle { border-color: rgba(143, 180, 199, 0.22); background: rgba(8, 20, 30, 0.72); }

.recruiter-link:hover { border-color: var(--violet); }
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--cyan); }
.theme-toggle { width: 42px; padding: 8px; }
.theme-toggle svg { width: 20px; height: 20px; }
.menu-toggle { display: none; width: 42px; padding: 8px; font-size: 18px; }

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 auto;
  z-index: 90;
  display: grid;
  gap: 5px;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 14px 20px 20px;
}

.mobile-nav a { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.mobile-nav[hidden] { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(650px, 55vw, 820px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-plate,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-plate {
  z-index: -4;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 600ms ease;
}

.hero-plate-dark { background-image: url("active-home/super-extra-mega-background-5016x2823.png"); opacity: 1; }

.hero-scrim {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(2, 8, 14, 0.16), transparent 43%, rgba(2, 8, 14, 0.23)),
    linear-gradient(180deg, transparent 58%, var(--bg) 100%);
}

[data-theme="light"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(2, 8, 14, 0.16), transparent 43%, rgba(2, 8, 14, 0.23)),
    linear-gradient(180deg, transparent 58%, #fff 100%);
}

.hero-grid {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(calc(100% - 48px), var(--shell));
  min-height: clamp(590px, 50vw, 750px);
  grid-template-columns: minmax(470px, 1.12fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 5vw, 82px);
  margin: 0 auto;
  padding: 54px 0 88px;
}

.mega-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  filter: drop-shadow(0 24px 20px rgba(0, 0, 0, 0.72));
  font-family: var(--display);
  font-size: clamp(82px, 9.3vw, 152px);
  font-weight: 900;
  line-height: 0.74;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  transform: perspective(900px) rotateY(5deg) skewY(-1deg);
  transform-origin: left center;
}

.mega-title span {
  width: max-content;
  padding-right: 0.08em;
  background:
    linear-gradient(112deg, #f4f6f7 2%, #bac1c6 32%, #77828b 56%, #d9dddf 72%, #626d75 94%),
    repeating-linear-gradient(90deg, transparent 0 .105em, rgba(28, 37, 44, .34) .105em .118em),
    repeating-linear-gradient(0deg, transparent 0 .09em, rgba(255, 255, 255, .18) .09em .103em);
  background-blend-mode: multiply, normal, normal;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 245, 248, 0.72);
  text-shadow:
    3px 3px 0 #58626a,
    7px 7px 0 #343e46,
    12px 12px 0 #121b22,
    18px 20px 28px rgba(0, 0, 0, 0.74);
}

.mega-title span:nth-child(2) { margin-left: 0.1em; }
.mega-title span:nth-child(3) { margin-left: 0.28em; }

.hero-copy {
  grid-column: 2;
  justify-self: end;
  max-width: 500px;
  padding: 0;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .hero-copy { text-shadow: 0 2px 15px rgba(0, 0, 0, 0.75); }

.hero-copy p { margin: 18px 0 0; color: rgba(235, 243, 246, 0.83); font-size: clamp(14px, 1.25vw, 18px); line-height: 1.66; }
[data-theme="light"] .hero-copy p { color: rgba(235, 243, 246, 0.83); }

.hero-copy .hero-lead {
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 2.3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

[data-theme="light"] .hero-copy .hero-lead { color: #fff; }
.hero-lead em { color: var(--cyan); font-style: normal; }
[data-theme="light"] .hero-lead em { color: #32e3d0; }

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
}

.button-primary { border-color: transparent; background: var(--cyan); color: #001a18; }
.button-quiet { background: rgba(4, 13, 20, 0.62); color: #f4f8f9; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
[data-theme="light"] .button-quiet { background: rgba(4, 13, 20, 0.62); color: #f4f8f9; }
.button:hover { transform: translateY(-2px); }

.character { position: absolute; z-index: 4; pointer-events: none; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.66)); }
.character img { display: block; object-fit: contain; image-rendering: pixelated; }
.character-robot { bottom: 6%; left: -120px; animation: robot-cross 22s linear infinite; }
.character-robot img { width: clamp(58px, 5vw, 82px); height: 94px; }

@keyframes robot-cross {
  0% { left: -120px; transform: scaleX(1); }
  48% { left: 89%; transform: scaleX(1); }
  50% { left: 89%; transform: scaleX(-1); }
  98% { left: -120px; transform: scaleX(-1); }
  100% { left: -120px; transform: scaleX(1); }
}

.content-shell { width: min(calc(100% - 36px), var(--shell)); margin: 0 auto; padding-bottom: 24px; }

.portal-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: -16px;
}

.portal {
  display: grid;
  min-height: 122px;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(12, 29, 42, 0.98), rgba(5, 13, 21, 0.98));
  box-shadow: var(--shadow);
  padding: 18px;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

[data-theme="light"] .portal { background: linear-gradient(145deg, #fff, #edf1ee); }
.portal:hover { border-color: color-mix(in srgb, var(--cyan) 62%, var(--line)); transform: translateY(-5px); }
.portal img { width: 74px; height: 66px; object-fit: contain; }
.portal strong { display: block; font-size: clamp(18px, 1.6vw, 23px); letter-spacing: 0.03em; text-transform: uppercase; }
.portal small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.portal-arrow { color: var(--muted); font-size: 28px; }

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 17px;
}
.cta-box {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(12, 29, 42, .98), rgba(5, 13, 21, .98));
  box-shadow: var(--shadow);
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}
[data-theme="light"] .cta-box { background: linear-gradient(145deg, #fff, #edf1ee); }
.cta-box:hover { border-color: color-mix(in srgb, var(--cyan) 62%, var(--line)); transform: translateY(-3px); }
.cta-box small { display: block; margin-bottom: 5px; color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cta-box strong { font-size: clamp(18px, 1.7vw, 24px); }
.cta-box > span:last-child { color: var(--muted); font-size: 28px; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(10, 25, 37, 0.97), rgba(4, 12, 20, 0.97));
  box-shadow: var(--shadow);
}

[data-theme="light"] .panel { background: linear-gradient(155deg, #fff, #eff3f0); }

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.65fr);
  gap: 15px;
  margin-top: 17px;
}

.profile-grid .panel, .work-card { padding: clamp(21px, 2.2vw, 30px); }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.panel h2 { margin: 0; font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -0.03em; line-height: 1.15; }
.panel p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.text-link { color: var(--text); font-size: 13px; }
.text-link:hover { color: var(--cyan); }

.credentials-panel { overflow: hidden; }
.badge-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; gap: clamp(6px, 1vw, 14px); margin-top: 17px; }
.credential-mark {
  --mark: #356f58;
  --mark-deep: #173f35;
  --mark-accent: #c6d8cf;
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 112px;
  aspect-ratio: 1;
  place-self: center;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--mark) 74%, #fff);
  border-radius: 18px;
  color: #f8fbff;
  background: linear-gradient(155deg, color-mix(in srgb, var(--mark) 75%, #26303d), var(--mark-deep));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.07), 0 8px 16px rgba(0, 0, 0, .2);
}
.credential-mark::before,
.credential-mark::after { content: ''; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--mark) 46%, transparent); border-radius: inherit; pointer-events: none; }
.credential-mark::after { inset: auto 20% 12%; height: 2px; border: 0; border-radius: 999px; background: var(--mark-accent); }
.credential-mark span { position: relative; z-index: 1; display: grid; gap: 5px; text-align: center; }
.credential-mark b { font-size: clamp(13px, 1.4vw, 19px); letter-spacing: -.02em; }
.credential-mark small { color: var(--mark-accent); font-size: clamp(7px, .72vw, 9px); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mark-green { --mark: #417c5f; --mark-deep: #163c35; --mark-accent: #c7dbd1; }
.mark-violet { --mark: #65518d; --mark-deep: #302348; --mark-accent: #ddd4ec; }
.mark-orange { --mark: #3b4148; --mark-deep: #20262c; --mark-accent: #e9a23b; }
.mark-purple { --mark: #60427d; --mark-deep: #31213e; --mark-accent: #ded0e7; }
.mark-slate { --mark: #3e5872; --mark-deep: #1f3147; --mark-accent: #c6d4e1; }
.mark-blue { --mark: #356b9b; --mark-deep: #173957; --mark-accent: #d1e2ef; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 25px 12px; }
.section-heading h2 { font-size: clamp(21px, 2.2vw, 31px); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 17px; }
.work-card { min-height: 260px; }
.work-card .text-link { margin-top: 8px; }
.systems-card {
  background:
    linear-gradient(155deg, rgba(8, 27, 38, 0.96), rgba(5, 14, 22, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(48, 224, 207, 0.05) 24px 25px);
}
[data-theme="light"] .systems-card { background: linear-gradient(155deg, #fff, #e9f2ef); }

.dashboard-preview { margin-top: 17px; padding-bottom: 24px; }
.systems-actions { display: flex; align-items: center; gap: 10px; }
.unit-toggle { display: inline-grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg-soft); }
.unit-toggle button { min-width: 41px; min-height: 31px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 800; }
.unit-toggle button[aria-pressed="true"] { background: var(--cyan); color: #001613; box-shadow: 0 5px 15px rgba(42, 218, 200, 0.2); }
.status-pill { border: 1px solid currentColor; border-radius: 999px; color: var(--subtle); font: 700 10px/1 var(--font); letter-spacing: 0.08em; padding: 7px 10px; text-transform: uppercase; }
.status-pill.online { color: var(--green); }
.status-pill.offline { color: #e27979; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 7px 24px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.metric { min-height: 232px; background: var(--panel-strong); padding: 21px; }
[data-theme="light"] .metric { background: rgba(255, 255, 255, 0.78); }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-head > span { display: block; color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.metric-head em { color: var(--subtle); font-size: 10px; font-style: normal; }
.sensor-readings { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.metric strong { display: block; margin-top: 15px; font-family: var(--font); font-size: clamp(28px, 3vw, 42px); line-height: 1; }
.metric strong small { color: var(--muted); font-size: 14px; font-weight: 500; }
.metric em { display: block; margin-top: 10px; color: var(--subtle); font-size: 11px; font-style: normal; line-height: 1.5; }
.humidity-reading { display: flex; align-items: baseline; gap: 5px; color: var(--muted); }
.humidity-reading b { color: var(--text); font-size: clamp(22px, 2.5vw, 34px); }
.humidity-reading small { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.chart-wrap { position: relative; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.chart-wrap svg { display: block; width: 100%; height: 70px; overflow: visible; }
.chart-toolbar { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.chart-time { color: var(--subtle); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.range-toggle { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); padding: 2px; }
.range-toggle button { min-width: 34px; min-height: 24px; border: 0; border-radius: 999px; background: transparent; color: var(--subtle); cursor: pointer; font-size: 9px; font-weight: 800; }
.range-toggle button[aria-pressed="true"] { background: var(--cyan); color: #001613; }
.chart-legend { display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.chart-legend span::before { display: inline-block; width: 11px; height: 2px; margin-right: 5px; border-radius: 999px; background: var(--cyan); content: ''; vertical-align: middle; }
.chart-legend .humidity-key::before { background: #7f9fba; }
.chart-grid { fill: none; stroke: color-mix(in srgb, var(--line) 75%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--cyan); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart-line.humidity-line { stroke: #7f9fba; stroke-width: 2; stroke-dasharray: 5 3; }
.dashboard-link { margin-left: 25px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px clamp(20px, 4vw, 62px);
}

.site-footer > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; font-size: 12px; }
.footer-brand { color: var(--text); font-weight: 900; letter-spacing: 0.03em; text-decoration: none; text-transform: uppercase; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer small { grid-column: 1 / -1; color: var(--subtle); font-size: 10px; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: minmax(370px, 1fr) minmax(300px, 0.78fr); gap: 34px; }
  .mega-title { font-size: clamp(72px, 10vw, 118px); }
  .profile-grid { grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.4fr); }
  .badge-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --header-height: 66px; }
  .site-header { padding-inline: 15px; }
  .recruiter-link { display: none; }
  .theme-label { display: none; }
  .theme-toggle { width: 42px; padding: 8px; }
  .hero { min-height: 780px; background: #030910; }
  [data-theme="light"] .hero { background: #fff; }
  .hero-plate { background-color: #030910; background-position: center top; background-size: 100% auto; }
  .hero-scrim { background: linear-gradient(180deg, transparent 28%, rgba(3, 9, 16, .12) 42%, rgba(3, 9, 16, .86) 66%, var(--bg) 100%); }
  [data-theme="light"] .hero-scrim { background: linear-gradient(180deg, transparent 28%, rgba(3, 9, 16, .12) 42%, rgba(3, 9, 16, .82) 66%, #fff 100%); }
  .hero-grid { width: min(calc(100% - 32px), 650px); min-height: 720px; grid-template-columns: 1fr; align-content: end; gap: 30px; padding: 0 0 60px; }
  .mega-title { justify-self: start; font-size: clamp(66px, 17vw, 106px); }
  .hero-copy { grid-column: 1; justify-self: center; width: min(100%, 540px); max-width: 540px; margin-left: 0; border: 1px solid rgba(163, 212, 224, 0.25); border-radius: 14px; background: rgba(3, 9, 16, 0.96); padding: 22px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .hero-copy .hero-lead { font-size: clamp(22px, 5.5vw, 31px); }
  .hero-copy > p:not(.hero-lead) { display: none; }
  .character-robot { top: clamp(170px, 43vw, 330px); bottom: auto; }
  .portal-grid, .profile-grid, .work-grid { grid-template-columns: 1fr; }
  .portal-grid { margin-top: -9px; }
  .badge-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .work-card { min-height: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer small { grid-column: auto; }
}

@media (max-width: 540px) {
  .hero { min-height: 650px; }
  .hero-grid { width: min(calc(100% - 24px), 650px); min-height: 610px; padding: 0 0 34px; }
  .hero-plate { background-position: center top; background-size: 112% auto; }
  .hero-scrim { background: linear-gradient(180deg, transparent 25%, rgba(3, 9, 16, .18) 36%, rgba(3, 9, 16, .9) 57%, var(--bg) 100%); }
  [data-theme="light"] .hero-scrim { background: linear-gradient(180deg, transparent 25%, rgba(3, 9, 16, .18) 36%, rgba(3, 9, 16, .86) 57%, #fff 100%); }
  .mega-title { font-size: clamp(58px, 19vw, 88px); }
  .mega-title span:nth-child(2) { margin-left: 0.1em; }
  .mega-title span:nth-child(3) { margin-left: 0.25em; }
  .hero-copy { margin-left: 0; padding: 18px; }
  .hero-copy .hero-lead { font-size: clamp(20px, 5.6vw, 23px); line-height: 1.16; }
  .content-shell { width: min(calc(100% - 24px), var(--shell)); }
  .portal { min-height: 103px; grid-template-columns: 59px 1fr auto; gap: 12px; padding: 14px; }
  .portal img { width: 58px; height: 55px; }
  .portal small { font-size: 12px; }
  .profile-grid .panel, .work-card { padding: 20px; }
  .cta-grid { grid-template-columns: 1fr; }
  .badge-row { grid-template-columns: repeat(3, 1fr); }
  .credential-mark { max-width: 104px; }
  .section-heading { align-items: flex-start; flex-direction: column; padding: 21px 19px 8px; }
  .systems-actions { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .metric-grid { grid-template-columns: 1fr; margin-inline: 16px; }
  .dashboard-link { margin-left: 17px; }
  .site-footer nav { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .character-robot { left: 7%; }
}
