@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #f4f7f5;
  --bg-raised: #e8eee9;
  --surface: #ffffff;
  --ink: #121a16;
  --ink-2: #3d4a42;
  --ink-3: #6b776f;
  --line: rgba(18, 26, 22, 0.08);
  --accent: #1f6b45;
  --accent-deep: #164f33;
  --accent-soft: #dceee3;
  --moss: #2f7a52;
  --sun: #c9d9a8;
  --hero-ink: #0c1410;
  --footer: #0b1410;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(12, 20, 16, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 20, 16, 0.06);
  --font: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --container: min(1180px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Signature circuit path */
.circuit {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
}

.circuit-path {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  max-width: 420px;
}

.circuit-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.circuit-node.muted {
  background: var(--ink-3);
  opacity: 0.45;
}

.circuit-wire {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--accent), rgba(18, 26, 22, 0.18));
  min-width: 24px;
}

.circuit-label {
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 247, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-tag {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 160ms var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

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

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  padding: 0;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease),
    opacity 160ms var(--ease);
}

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

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(18, 26, 22, 0.16);
}

.btn.secondary:hover {
  background: var(--bg-raised);
  border-color: rgba(18, 26, 22, 0.24);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn.on-dark {
  background: #eef3ef;
  color: var(--hero-ink);
}

.btn.on-dark:hover {
  background: #fff;
}

.btn.small {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero landing */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  color: #eef3ef;
  overflow: hidden;
  background: var(--hero-ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 20, 16, 0.88) 0%, rgba(12, 20, 16, 0.72) 42%, rgba(12, 20, 16, 0.28) 72%, rgba(12, 20, 16, 0.45) 100%),
    linear-gradient(180deg, rgba(12, 20, 16, 0.35) 0%, rgba(12, 20, 16, 0.15) 40%, rgba(12, 20, 16, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 0 0;
  width: var(--container);
  margin-inline: auto;
}

.hero-copy {
  max-width: 560px;
  padding-bottom: 28px;
}

.hero-brand {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 20px;
  color: #fff;
}

.hero-brand span {
  display: block;
  color: var(--sun);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 460px;
  color: rgba(238, 243, 239, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-circuit {
  color: rgba(238, 243, 239, 0.55);
}

.hero-circuit .circuit-wire {
  background: linear-gradient(90deg, var(--sun), rgba(238, 243, 239, 0.2));
}

.hero-circuit .circuit-node {
  background: var(--sun);
}

.hero-preview {
  position: relative;
  z-index: 1;
  margin-top: auto;
  transform: translateY(24px);
}

.monitor {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.monitor-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 107, 69, 0.18);
}

.monitor-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

.monitor-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  min-height: 220px;
}

.monitor-chart {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.chart-head strong {
  font-size: 14px;
  font-weight: 500;
}

.chart-head span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

.chart-svg {
  width: 100%;
  height: 120px;
  display: block;
}

.chart-svg .grid {
  stroke: rgba(18, 26, 22, 0.08);
  stroke-width: 1;
}

.chart-svg .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw-line 1100ms var(--ease) 320ms forwards;
}

.chart-svg .area {
  fill: url(#chartFill);
  opacity: 0;
  animation: fade-area 700ms var(--ease) 700ms forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-area {
  to { opacity: 1; }
}

.monitor-side {
  padding: 20px;
  display: grid;
  gap: 16px;
  align-content: start;
  background: #fbfcfb;
}

.metric {
  display: grid;
  gap: 4px;
}

.metric span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

.metric strong {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.metric em {
  font-style: normal;
  font-size: 12px;
  color: var(--accent);
  font-family: var(--mono);
}

.metric-row {
  display: grid;
  gap: 8px;
}

.metric-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-raised);
  overflow: hidden;
}

.metric-bar i {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  background: var(--accent);
  border-radius: inherit;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 88px 0 80px;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(201, 217, 168, 0.28), transparent 60%),
    linear-gradient(180deg, #0f1a15 0%, #143024 100%);
  color: #eef3ef;
  overflow: hidden;
}

.page-hero.has-media {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 20, 16, 0.88) 0%, rgba(12, 20, 16, 0.55) 55%, rgba(12, 20, 16, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 20, 16, 0.25) 0%, rgba(12, 20, 16, 0.78) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(201, 217, 168, 0.45), transparent);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-inline: auto;
  padding: 96px 0 72px;
}

.page-hero .breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(238, 243, 239, 0.55);
  margin-bottom: 16px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 14ch;
}

.page-hero p {
  margin: 0 0 28px;
  max-width: 520px;
  color: rgba(238, 243, 239, 0.78);
  font-size: 17px;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(238, 243, 239, 0.12);
  max-width: 560px;
}

.page-hero-meta div {
  display: grid;
  gap: 4px;
}

.page-hero-meta strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--sun);
}

.page-hero-meta span {
  font-size: 13px;
  color: rgba(238, 243, 239, 0.65);
}

/* Sections */
section {
  padding: 96px 0;
}

.section-soft {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.section-head h2,
.split-copy h2,
.contact-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p,
.split-copy p,
.content-copy {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

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

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  background: var(--surface);
  padding: 28px 24px;
}

.stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Cards / solutions */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition:
    border-color 180ms var(--ease),
    background-color 180ms var(--ease);
}

.card:hover {
  border-color: rgba(31, 107, 69, 0.28);
  background: #fbfcfb;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.card-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .visual {
  order: 1;
}

.split.reverse .split-copy {
  order: 2;
}

.visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.visual-frame {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(12, 20, 16, 0.55) 100%);
}

.visual-note {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  max-width: 260px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

.visual-note strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.visual-note span {
  font-size: 13px;
  color: var(--ink-2);
}

.feature-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 32px;
}

.feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-index {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.feature strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
}

.feature span {
  font-size: 13px;
  color: var(--ink-2);
}

/* Dual */
.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dual-card {
  position: relative;
  min-height: 280px;
  padding: 32px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #eef3ef;
  background: #13231b;
  border: 1px solid rgba(238, 243, 239, 0.08);
}

.dual-card.hardware {
  background: #1a2a20;
}

.dual-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 180px;
  background: radial-gradient(circle, rgba(201, 217, 168, 0.18), transparent 70%);
  pointer-events: none;
}

.dual-card .number {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sun);
}

.dual-card h3 {
  margin: 16px 0 10px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.dual-card p {
  margin: 0;
  max-width: 36ch;
  color: rgba(238, 243, 239, 0.7);
  font-size: 14px;
}

.dual-card .card-link {
  margin-top: 24px;
  color: var(--sun);
}

/* Section intro row */
.section-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}

.section-intro .section-head {
  margin-bottom: 0;
}

.section-aside {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 4px;
}

.section-aside .circuit {
  margin-top: 16px;
}

/* Overlay capability panels */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.panel {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #13231b;
  color: #eef3ef;
  isolation: isolate;
}

.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
  z-index: 0;
}

.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 20, 16, 0.1) 0%, rgba(12, 20, 16, 0.78) 68%, rgba(12, 20, 16, 0.92) 100%);
}

.panel:hover img {
  transform: scale(1.05);
}

.panel-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 24px;
  display: grid;
  gap: 8px;
}

.panel-body .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sun);
}

.panel-body h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.panel-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(238, 243, 239, 0.72);
  max-width: 34ch;
}

.panel.tall {
  min-height: 420px;
  grid-row: span 2;
}

.panel-grid.asymmetric {
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: 200px;
}

.panel-grid.asymmetric .panel {
  min-height: 0;
}

.panel-grid.asymmetric .panel:first-child {
  grid-row: span 2;
}

/* Media cards with photos */
.media-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.media-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 180ms var(--ease),
    box-shadow 220ms var(--ease);
}

.media-card:hover {
  border-color: rgba(31, 107, 69, 0.28);
  box-shadow: var(--shadow-md);
}

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

.media-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-raised);
}

.media-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12, 20, 16, 0.18));
  pointer-events: none;
}

.media-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.media-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.media-card-body .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 8px;
}

.media-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.media-card-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  flex: 1;
}

/* Photo mosaic */
.shot-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
}

.shot {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  min-height: 0;
  box-shadow: var(--shadow-sm);
}

.shot:first-child {
  grid-row: 1 / span 2;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.shot:hover img {
  transform: scale(1.04);
}

.shot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(12, 20, 16, 0.78));
  color: #eef3ef;
}

.shot-caption strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.shot-caption span {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(238, 243, 239, 0.7);
}

/* Highlight strip */
.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 40px;
}

.highlight-item {
  background: var(--surface);
  padding: 24px;
}

.highlight-item strong {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
}

.highlight-item span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.35;
}

/* Project filters */
.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.filter-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.filter-btn:hover {
  color: var(--accent);
}

.filter-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Projects */
.project-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101a15;
  color: #eef3ef;
  margin-bottom: 16px;
  min-height: 400px;
  box-shadow: var(--shadow-md);
}

.project-featured.is-hidden {
  display: none;
}

.project-featured-media {
  position: relative;
  min-height: 320px;
  background: var(--bg-raised);
  overflow: hidden;
}

.project-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 600ms var(--ease);
}

.project-featured:hover .project-featured-media img {
  transform: scale(1.03);
}

.project-featured-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(47, 122, 82, 0.22), transparent 70%),
    #101a15;
}

.project-featured-body .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sun);
  margin-bottom: 12px;
}

.project-featured-body h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
}

.project-featured-body p {
  margin: 0 0 28px;
  color: rgba(238, 243, 239, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

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

.project {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #13231b;
  min-height: 340px;
  color: #eef3ef;
  isolation: isolate;
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}

.project.is-hidden {
  display: none;
}

.project-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-raised);
  z-index: 0;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.project::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 20, 16, 0.08) 0%, rgba(12, 20, 16, 0.55) 45%, rgba(12, 20, 16, 0.92) 100%);
}

.project:hover .project-media img {
  transform: scale(1.05);
}

.project-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 24px;
}

.project-body .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sun);
  margin-bottom: 8px;
}

.project-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

.project-body p {
  margin: 0;
  font-size: 14px;
  color: rgba(238, 243, 239, 0.72);
  line-height: 1.5;
}

/* CTA */
.cta {
  background: var(--hero-ink);
  color: #eef3ef;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 90% 20%, rgba(47, 122, 82, 0.28), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.cta p {
  margin: 0;
  color: rgba(238, 243, 239, 0.68);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.contact-box .btn {
  margin-top: 20px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.form .full {
  grid-column: 1 / -1;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfb;
  color: var(--ink);
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.form textarea {
  height: auto;
  min-height: 128px;
  padding: 12px 14px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: rgba(31, 107, 69, 0.45);
  background: #fff;
}

.notice {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: rgba(238, 243, 239, 0.72);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer .brand-name {
  color: #fff;
}

.site-footer .brand-tag {
  color: rgba(238, 243, 239, 0.45);
}

.footer-grid > div > p {
  margin: 16px 0 0;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.55;
}

.footer-grid h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(238, 243, 239, 0.62);
  transition: color 160ms var(--ease);
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(238, 243, 239, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(238, 243, 239, 0.42);
}

/* Motion */
.site-header {
  transition:
    background-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 247, 245, 0.96);
  box-shadow: 0 8px 24px rgba(12, 20, 16, 0.06);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms var(--ease),
    transform 650ms var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { --delay: 70ms; }
.reveal-delay-2 { --delay: 140ms; }
.reveal-delay-3 { --delay: 210ms; }
.reveal-delay-4 { --delay: 280ms; }

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

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

/* Image unveil */
.unveil {
  clip-path: inset(10% 10% 10% 10% round 16px);
  opacity: 0.55;
  transform: scale(1.04);
  transition:
    clip-path 900ms var(--ease),
    opacity 700ms var(--ease),
    transform 900ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.unveil.is-visible {
  clip-path: inset(0% 0% 0% 0% round 0px);
  opacity: 1;
  transform: none;
}

.shot,
.panel,
.project,
.visual,
.media-card-img,
.project-featured-media {
  overflow: hidden;
}

.shot img,
.panel img,
.project-media img,
.visual img,
.media-card-img img,
.project-featured-media img,
.page-hero-media img {
  transition: transform 700ms var(--ease);
}

/* Soft once-only light sweep on media heroes */
.page-hero.has-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(201, 217, 168, 0.14) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: light-sweep 1600ms var(--ease) 400ms forwards;
}

@keyframes light-sweep {
  to { transform: translateX(120%); }
}

/* Circuit signature motion */
.circuit-wire {
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0.35;
  transition:
    transform 800ms var(--ease),
    opacity 500ms var(--ease);
}

.circuit.is-live .circuit-wire {
  transform: scaleX(1);
  opacity: 1;
}

.circuit-node {
  transform: scale(0.5);
  opacity: 0;
  transition:
    transform 420ms var(--ease),
    opacity 420ms var(--ease),
    box-shadow 420ms var(--ease);
}

.circuit.is-live .circuit-node {
  transform: scale(1);
  opacity: 1;
}

.circuit.is-live .circuit-node:nth-child(1) { transition-delay: 80ms; }
.circuit.is-live .circuit-path .circuit-wire:nth-child(2) { transition-delay: 140ms; }
.circuit.is-live .circuit-node:nth-child(3) { transition-delay: 260ms; }
.circuit.is-live .circuit-path .circuit-wire:nth-child(4) { transition-delay: 320ms; }
.circuit.is-live .circuit-node:nth-child(5) { transition-delay: 420ms; }

.circuit.is-live .circuit-node:not(.muted) {
  box-shadow: 0 0 0 4px rgba(31, 107, 69, 0.16);
}

/* Metric bars fill when visible */
.metric-bar i {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--ease);
}

.monitor.is-live .metric-bar i,
.metric-bar.is-live i {
  transform: scaleX(1);
}

.status-dot {
  transition: box-shadow 400ms var(--ease);
}

.monitor.is-live .status-dot {
  animation: signal-once 900ms var(--ease) 200ms;
}

@keyframes signal-once {
  0% { box-shadow: 0 0 0 0 rgba(31, 107, 69, 0.0); }
  40% { box-shadow: 0 0 0 8px rgba(31, 107, 69, 0.18); }
  100% { box-shadow: 0 0 0 3px rgba(31, 107, 69, 0.18); }
}

/* Panel / project cascade */
.panel,
.project,
.shot,
.media-card,
.highlight-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms var(--ease),
    transform 650ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 220ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.panel.is-visible,
.project.is-visible,
.shot.is-visible,
.media-card.is-visible,
.highlight-item.is-visible {
  opacity: 1;
  transform: none;
}

.panel:hover,
.project:hover,
.shot:hover {
  transform: translateY(-4px);
}

.panel.is-visible:hover,
.project.is-visible:hover,
.shot.is-visible:hover {
  transform: translateY(-4px);
}

.panel:hover img,
.project:hover .project-media img,
.shot:hover img,
.media-card:hover .media-card-img img,
.project-featured:hover .project-featured-media img {
  transform: scale(1.05);
}

/* Project filter motion */
.project.is-filtering-out,
.project-featured.is-filtering-out {
  opacity: 0 !important;
  transform: scale(0.97) !important;
  pointer-events: none;
}

.project.is-hidden,
.project-featured.is-hidden {
  display: none;
}

.filter-btn {
  position: relative;
}

.filter-btn.is-active {
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    transform 160ms var(--ease);
}

.filter-btn:active {
  transform: scale(0.97);
}

/* Hero entrance */
.hero-copy,
.hero-preview,
.page-hero-inner {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 800ms var(--ease) forwards;
}

.hero-preview {
  animation-delay: 180ms;
}

.page-hero-inner {
  animation-delay: 80ms;
}

.page-hero-inner .page-hero-actions {
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 700ms var(--ease) 280ms forwards;
}

.page-hero-inner .page-hero-meta {
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 700ms var(--ease) 380ms forwards;
}

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

/* Count-up figures */
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* Nav underline */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

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

  .reveal,
  .reveal-left,
  .reveal-scale,
  .unveil,
  .hero-copy,
  .hero-preview,
  .page-hero-inner,
  .page-hero-inner .page-hero-actions,
  .page-hero-inner .page-hero-meta,
  .panel,
  .project,
  .shot,
  .media-card,
  .highlight-item,
  .project-media img,
  .chart-svg .line,
  .chart-svg .area,
  .circuit-wire,
  .circuit-node,
  .metric-bar i,
  .page-hero.has-media::after {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
    stroke-dashoffset: 0 !important;
  }

  .nav-links a::after {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards,
  .media-cards,
  .panel-grid,
  .project-grid,
  .highlight-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-grid.asymmetric {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }

  .panel-grid.asymmetric .panel:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 280px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }

  .shot:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .project-featured {
    grid-template-columns: 1fr;
  }

  .project-featured-media {
    min-height: 240px;
  }

  .page-hero.has-media {
    min-height: 360px;
  }

  .split,
  .split.reverse,
  .contact-grid,
  .monitor-body,
  .dual {
    grid-template-columns: 1fr;
  }

  .split.reverse .visual,
  .split.reverse .split-copy {
    order: initial;
  }

  .monitor-chart {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .hero-content {
    padding-top: 56px;
  }

  .visual {
    min-height: 320px;
  }
}

@media (max-width: 780px) {
  :root {
    --container: min(1180px, calc(100% - 32px));
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(244, 247, 245, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .nav-links.open a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    object-position: center;
  }

  .hero-brand {
    font-size: 40px;
  }

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

  .hero-preview {
    transform: translateY(16px);
  }

  section {
    padding: 72px 0;
  }

  .page-hero {
    padding: 56px 0 48px;
  }

  .page-hero-inner {
    padding: 72px 0 56px;
  }

  .project-toolbar {
    border-radius: 16px;
  }

  .cta-inner,
  .copyright {
    flex-direction: column;
    align-items: flex-start;
  }

  .form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .form .full {
    grid-column: auto;
  }

  .contact-grid {
    gap: 28px;
  }

  .contact-box {
    margin-top: 20px;
    padding: 20px;
  }

  .contact-box .circuit {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .form .btn,
  .contact-box .btn {
    width: 100%;
    justify-content: center;
  }

  .brand-tag {
    display: none;
  }

  .page-hero h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .page-hero p {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .cards,
  .media-cards,
  .panel-grid,
  .panel-grid.asymmetric,
  .project-grid,
  .footer-grid,
  .stats,
  .shot-grid,
  .highlight-strip {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-rows: none;
  }

  .shot {
    height: 220px;
  }

  .panel,
  .panel.tall,
  .panel-grid.asymmetric .panel:first-child {
    min-height: 280px;
  }

  .dual-card {
    min-height: auto;
  }

  .monitor-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-featured-body {
    padding: 24px 20px;
  }

  .page-hero-meta {
    gap: 16px;
  }

  .project {
    min-height: 300px;
  }
}
