:root {
  color-scheme: light;
  --bg: #ffffff;
  --canvas: #f7f9f7;
  --surface: #ffffff;
  --surface-2: #eef5f0;
  --ink: #07110f;
  --muted: #5c6763;
  --line: #dce5df;
  --line-strong: #b8c8c0;
  --green: #0d6b54;
  --green-deep: #084637;
  --cobalt: #2457cc;
  --amber: #b97819;
  --amber-soft: #fff3dc;
  --shadow: 0 24px 70px rgba(8, 28, 23, 0.12);
  --shadow-soft: 0 12px 34px rgba(8, 28, 23, 0.08);
  --shadow-float: 0 34px 88px rgba(7, 17, 15, 0.18);
  --radius: 8px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(36, 87, 204, 0.4);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}

.site-header.is-elevated {
  border-color: var(--line);
}

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

.brand {
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 720;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--green-deep);
  border-radius: 7px;
  font-size: 0.9rem;
}

.site-nav,
.site-footer nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 640;
  min-width: 0;
}

.site-nav a,
.site-footer a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--green-deep);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
  gap: 42px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: clamp(700px, 78svh, 860px);
  margin: 0 auto 28px;
  padding: 44px 0 52px;
}

.hero-copy {
  width: 100%;
  max-width: 600px;
  min-width: 0;
}

.hero h1,
.section h2,
.project-row h3 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(3.4rem, 6vw, 6.6rem);
  line-height: 0.94;
  font-weight: 780;
}

.hero-copy p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.22;
  max-width: 560px;
  overflow-wrap: break-word;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 720;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--ink);
}

.hero-media {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(110%, 780px);
  transform: translateX(28px);
  isolation: isolate;
}

.hero-media img {
  width: 100%;
  border-radius: 0;
  filter: drop-shadow(var(--shadow-float));
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 12% 5% 5% 16%;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 107, 84, 0.12), transparent 46%),
    linear-gradient(180deg, transparent, rgba(36, 87, 204, 0.08));
  clip-path: polygon(9% 3%, 96% 0, 88% 77%, 0 100%);
  filter: blur(28px);
  opacity: 0.55;
}

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

.section-kicker {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr);
  gap: 54px;
  align-items: center;
}

.section h2 {
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.95;
  font-weight: 780;
}

.section-lede,
.section-heading p,
.project-copy p,
.lead-copy p {
  color: var(--muted);
  line-height: 1.58;
}

.section-lede {
  margin: 24px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

.lead-copy p:not(.section-lede) {
  margin: 22px 0 0;
  font-size: 1rem;
}

.work-facts,
.project-points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

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

.work-facts div,
.project-points div {
  border-left: 2px solid rgba(13, 107, 84, 0.45);
  padding: 4px 0 4px 14px;
}

.work-facts dt,
.project-points dt {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.work-facts dd,
.project-points dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 8px 10px;
  color: #24332e;
  font-size: 0.78rem;
  font-weight: 720;
}

.stack-list.compact {
  margin-top: 22px;
}

.system-board {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(13, 107, 84, 0.1), rgba(36, 87, 204, 0.06)),
    radial-gradient(circle at 82% 18%, rgba(183, 120, 25, 0.12), transparent 26%),
    var(--canvas);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.system-board::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  background-image: radial-gradient(rgba(13, 107, 84, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(135deg, transparent, black 32%, transparent 72%);
  opacity: 0.42;
}

.desktop-window {
  position: absolute;
  top: 44px;
  left: 38px;
  right: 80px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.window-top {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.window-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.workspace-shell {
  display: grid;
  grid-template-columns: 134px 1fr;
  min-height: 292px;
}

.workspace-shell aside {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px 16px;
  background: #f3f7f4;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.workspace-shell aside b {
  color: var(--ink);
  margin-bottom: 4px;
}

.workspace-main {
  padding: 18px;
}

.workspace-header,
.ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-header span,
.ops-head span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 760;
}

.task-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.task-row.active {
  border-color: rgba(13, 107, 84, 0.32);
  background: #f5fbf7;
}

.task-row > span {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(36, 87, 204, 0.12);
}

.task-row b,
.task-row em {
  display: block;
}

.task-row b {
  font-size: 0.82rem;
}

.task-row em {
  color: var(--muted);
  font-size: 0.73rem;
  font-style: normal;
  margin-top: 2px;
}

.phone-mini {
  position: absolute;
  right: 34px;
  bottom: 64px;
  width: 146px;
  height: 242px;
  border: 7px solid #111b18;
  border-radius: 28px;
  background: white;
  box-shadow: 0 20px 50px rgba(7, 17, 15, 0.18);
  padding: 24px 14px 14px;
}

.phone-status {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 44px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111b18;
}

.phone-mini b {
  display: block;
  font-size: 0.78rem;
}

.phone-mini span:not(.phone-status) {
  display: block;
  height: 34px;
  margin-top: 14px;
  border-radius: 7px;
  background: #eef4f1;
}

.phone-mini .short {
  width: 74%;
  background: rgba(183, 120, 25, 0.18);
}

.architecture-strip {
  position: absolute;
  left: 38px;
  right: 216px;
  bottom: 42px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.architecture-strip span,
.architecture-strip b {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 740;
}

.architecture-strip b {
  background: var(--green-deep);
  color: white;
}

.systems {
  padding-top: 94px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.42fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading p {
  margin: 0;
  font-size: 1rem;
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 0.5fr) minmax(500px, 0.96fr);
  gap: 48px;
  align-items: center;
  padding: 62px 0;
  border-top: 1px solid var(--line);
}

.project-row::before {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  top: 16px;
  bottom: 16px;
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(247, 249, 247, 0.76), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 180ms ease;
}

.project-row:hover::before {
  opacity: 1;
}

.project-row:last-child {
  border-bottom: 1px solid var(--line);
}

.project-row h3 {
  font-size: clamp(2rem, 3.6vw, 3.9rem);
  line-height: 1;
}

.project-scope {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-copy p {
  margin: 22px 0 0;
  font-size: 1rem;
}

.project-copy .project-scope {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-copy .project-scope + h3 + p {
  margin-top: 20px;
}

.project-points {
  margin-top: 24px;
}

.phone-pair {
  display: flex;
  justify-content: center;
  gap: 24px;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(16, 27, 23, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #101b17, #1a2420 58%, #f4f8f5 58%),
    #101b17;
  padding: 36px 28px 0;
  box-shadow: var(--shadow-soft);
}

.phone-frame {
  width: min(42vw, 230px);
  min-width: 160px;
  margin: 0;
  border: 7px solid #101b17;
  border-radius: 28px;
  background: #101b17;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.phone-frame.raised {
  transform: translateY(44px);
}

.seed-media,
.debug-frame,
.research-panel {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.seed-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 15, 0.1), transparent 40%);
  pointer-events: none;
}

.seed-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ops-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(330px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.ops-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.ops-row:first-of-type {
  margin-top: 10px;
}

.ops-row b {
  color: var(--ink);
}

.debug-frame {
  padding: 14px;
  background:
    linear-gradient(135deg, #0f1715, #18231f),
    #111b18;
}

.debug-frame img {
  border-radius: 5px;
}

.research {
  padding-bottom: 96px;
}

.research-copy {
  max-width: 850px;
}

.research-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(360px, 0.74fr);
  gap: 30px;
  margin-top: 44px;
}

.pipeline-card,
.research-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
  box-shadow: var(--shadow-soft);
}

.pipeline-card {
  padding: 16px;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: white;
}

.pipeline-step + .pipeline-step {
  margin-top: 10px;
}

.pipeline-step span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: rgba(13, 107, 84, 0.1);
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 780;
}

.pipeline-step b {
  font-size: 1rem;
}

.pipeline-step p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.research-panel {
  padding: 18px;
}

.scan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 18px;
}

.scan-plate {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e8eeeb, #f9fbfa);
}

.scan-plate span {
  aspect-ratio: 1;
  border: 2px solid rgba(13, 107, 84, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.scan-plate .missing {
  border-color: rgba(183, 120, 25, 0.95);
  background: var(--amber-soft);
}

.scan-plate .warn {
  border-color: rgba(36, 87, 204, 0.75);
  background: rgba(36, 87, 204, 0.08);
}

.scan-lines {
  margin-top: 16px;
}

.scan-lines b,
.scan-lines span {
  display: block;
}

.scan-lines span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.evidence-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: #273631;
  font-size: 0.92rem;
  font-weight: 680;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer > span {
  color: var(--ink);
  font-weight: 740;
}

@media (max-width: 960px) {
  .hero,
  .lead-grid,
  .section-heading,
  .project-row,
  .research-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-media {
    justify-self: start;
    width: min(100%, 760px);
    transform: none;
  }

  .system-board {
    min-height: 480px;
  }

  .desktop-window {
    left: 22px;
    right: 22px;
  }

  .phone-mini {
    right: 24px;
    bottom: 38px;
  }

  .architecture-strip {
    left: 22px;
    right: 188px;
    grid-template-columns: repeat(3, 1fr);
  }

  .project-row {
    gap: 30px;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: min(calc(100% - 28px), var(--max));
    align-items: flex-start;
    gap: 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 13px;
    font-size: 0.82rem;
  }

  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero h1 {
    font-size: clamp(3.35rem, 15vw, 4.45rem);
  }

  .hero-copy p {
    font-size: 1.18rem;
  }

  .hero-media img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
  }

  .hero-media::before {
    inset: 22% 8% 8% 8%;
  }

  .work-facts {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .project-row::before {
    left: 0;
    right: 0;
  }

  .system-board {
    min-height: 430px;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-shell aside {
    display: none;
  }

  .desktop-window {
    top: 24px;
  }

  .phone-mini {
    width: 126px;
    height: 210px;
    right: 18px;
    bottom: 28px;
  }

  .architecture-strip {
    display: none;
  }

  .phone-pair {
    justify-content: flex-start;
    min-height: 460px;
  }

  .phone-frame {
    width: min(46vw, 190px);
  }

  .phone-frame.raised {
    transform: translateY(30px);
  }

  .ops-panel {
    position: static;
    width: auto;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
