:root {
  color-scheme: light;
  --bg: #f4f0e8;
  --bg-soft: #ebe5d9;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fffaf2;
  --text: #101612;
  --text-soft: rgba(16, 22, 18, 0.66);
  --text-muted: rgba(16, 22, 18, 0.48);
  --line: rgba(16, 22, 18, 0.14);
  --line-strong: rgba(16, 22, 18, 0.24);
  --green: #0f3b30;
  --green-2: #1f6b52;
  --mint: #baf0d4;
  --cyan: #69d6ce;
  --amber: #c78345;
  --copper: #a86743;
  --dark: #08100d;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(16, 22, 18, 0.14);
  --shadow-soft: 0 18px 50px rgba(16, 22, 18, 0.1);
  --radius: 8px;
  --max: 1180px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: var(--font-body);
  --font-size-base: 16px;
  --heading-weight: 880;
  --header-bg: rgba(255, 250, 242, 0.78);
  --header-text: #101612;
  --hero-overlay:
    linear-gradient(90deg, rgba(4, 8, 7, 0.9) 0%, rgba(4, 8, 7, 0.76) 36%, rgba(4, 8, 7, 0.18) 78%),
    linear-gradient(0deg, rgba(4, 8, 7, 0.66) 0%, rgba(4, 8, 7, 0) 44%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d0b;
  --bg-soft: #0c1512;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: #101b17;
  --text: #f5f2ea;
  --text-soft: rgba(245, 242, 234, 0.68);
  --text-muted: rgba(245, 242, 234, 0.46);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --green: #9ee6c1;
  --green-2: #5ed0a1;
  --mint: #baf0d4;
  --cyan: #76e2d8;
  --amber: #d99855;
  --copper: #c78345;
  --dark: #030605;
  --white: #ffffff;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.22);
  --header-bg: rgba(7, 13, 11, 0.72);
  --header-text: #f5f2ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--text);
  background:
    radial-gradient(circle at 88% 0%, rgba(105, 214, 206, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 127, 127, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 127, 127, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max));
  min-height: 66px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 10px 10px 16px;
  color: var(--header-text);
  background: var(--header-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 850;
}

.brand-mark {
  overflow: hidden;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, var(--mint), var(--green-2) 54%, var(--amber));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 24px rgba(31, 107, 82, 0.25);
}

.brand-mark.has-logo {
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(31, 107, 82, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

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

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

.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 7px;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  opacity: 0.72;
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  opacity: 1;
  background: rgba(31, 107, 82, 0.12);
  outline: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: inherit;
  background: rgba(127, 127, 127, 0.08);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  outline: none;
}

.menu-toggle {
  display: none;
}

.icon-button svg,
.button svg,
.text-link svg,
.service-icon svg,
.proof-item svg,
.contact-method svg,
.mini-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.theme-toggle .sun-icon,
:root[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .sun-icon,
:root[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 92px max(24px, calc((100vw - var(--max)) / 2)) 28px;
  color: var(--white);
  background: var(--dark);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
  opacity: 0.95;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background: var(--hero-overlay);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.58fr);
  gap: 42px;
  align-items: end;
}

.hero-content {
  max-width: 760px;
  padding-top: 46px;
}

.eyebrow,
.section-kicker,
.tag,
.page-kicker {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  font-size: clamp(3.25rem, 6vw, 5.15rem);
  font-weight: var(--heading-weight);
}

.hero-copy,
.page-copy {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: #06110d;
  background: var(--mint);
  border-color: var(--mint);
}

.button.secondary {
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.button.on-light.secondary {
  color: var(--text);
  background: rgba(127, 127, 127, 0.08);
  border-color: var(--line);
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(8, 16, 13, 0.7);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 760;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(105, 214, 206, 0.86);
}

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

.hero-card-grid div {
  min-height: 106px;
  display: grid;
  align-content: center;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card-grid div:last-child {
  border-right: 0;
}

.hero-card-grid strong {
  font-size: 1.5rem;
  line-height: 1;
}

.hero-card-grid span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
}

.section,
.page-hero,
.contact-section,
.footer {
  width: min(calc(100% - 48px), var(--max));
  margin-right: auto;
  margin-left: auto;
}

.client-rail {
  width: min(calc(100% - 48px), var(--max));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -28px auto 0;
  position: relative;
  z-index: 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.client-rail article {
  min-height: 174px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong), transparent 5%), var(--surface)),
    var(--surface-strong);
}

.client-rail span {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
}

.client-rail strong {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.08;
}

.client-rail p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.section {
  padding: 92px 0;
}

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

.page-hero h1,
.page-hero .page-copy {
  color: var(--text);
}

.page-hero .page-copy,
.split-copy,
.section-head p,
.card p,
.case-card p,
.service-card p,
.timeline-card p,
.spec-list,
.contact-copy p {
  color: var(--text-soft);
}

.section-head,
.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.48fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section h2,
.contact-section h2,
.split-heading h2 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5vw, 5.15rem);
  font-weight: var(--heading-weight);
}

.text-link,
.mini-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-2);
  font-weight: 850;
}

.panel,
.case-card,
.service-card,
.timeline-card,
.card,
.contact-method {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.case-card:hover,
.service-card:hover,
.timeline-card:hover,
.card:hover,
.proof-item:hover,
.client-rail article:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--green-2), var(--line) 52%);
  box-shadow: var(--shadow-soft);
}

.home-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.proof-item {
  min-height: 180px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong), transparent 10%), color-mix(in srgb, var(--surface), transparent 4%));
}

.proof-item svg {
  color: var(--green-2);
}

.proof-item strong {
  display: block;
  margin-top: 38px;
  font-size: 1.2rem;
  line-height: 1.12;
}

.proof-item span {
  display: block;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.case-card.featured {
  grid-row: span 2;
}

.case-visual {
  min-height: 270px;
  position: relative;
  display: grid;
  align-items: stretch;
  padding: 14px;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
}

.case-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  pointer-events: none;
}

.case-visual.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(8, 16, 13, 0), rgba(8, 16, 13, 0.14));
  pointer-events: none;
}

.case-visual.has-image:not(.image-failed) .board-lines,
.case-visual.has-image:not(.image-failed) .dashboard-lines,
.case-visual.has-image:not(.image-failed) .drone-lines {
  display: none;
}

.featured .case-visual {
  min-height: 430px;
}

.visual-board {
  background:
    radial-gradient(circle at 70% 22%, rgba(105, 214, 206, 0.28), transparent 28%),
    linear-gradient(135deg, #08100d, #123b30 48%, #c78345);
}

.visual-drone {
  background:
    radial-gradient(circle at 75% 18%, rgba(199, 131, 69, 0.32), transparent 28%),
    linear-gradient(135deg, #08100d, #172520 55%, #263c35);
}

.visual-interface {
  background:
    radial-gradient(circle at 32% 20%, rgba(105, 214, 206, 0.28), transparent 26%),
    linear-gradient(135deg, #111817, #173d34 48%, #d0c5a8);
}

.board-lines,
.dashboard-lines,
.drone-lines {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.board-lines {
  grid-template-columns: 1.2fr 0.8fr;
}

.board-lines span,
.dashboard-lines span,
.drone-lines span {
  min-height: 74px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.board-lines span:first-child {
  grid-row: span 2;
  min-height: 160px;
}

.dashboard-lines {
  grid-template-columns: repeat(2, 1fr);
}

.dashboard-lines span:first-child {
  grid-column: span 2;
}

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

.about-founder {
  padding-top: 0;
}

.about-founder-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 26%, rgba(105, 214, 206, 0.18), transparent 20rem),
    linear-gradient(135deg, color-mix(in srgb, var(--panel), transparent 4%), color-mix(in srgb, var(--bg-soft), transparent 8%));
  box-shadow: var(--shadow-soft);
}

.about-photo-wrap {
  display: grid;
  place-items: center;
}

.about-photo {
  width: min(100%, 280px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--white);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, var(--green-2), var(--dark) 62%, var(--amber));
  box-shadow: 0 24px 70px rgba(8, 16, 13, 0.18);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.about-photo span {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-copy {
  max-width: 760px;
}

.about-copy h2 {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4.3vw, 4.4rem);
  line-height: 0.96;
}

.about-copy > p:not(.section-kicker) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.about-skills {
  margin-top: 24px;
}

.case-media-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) minmax(118px, 0.62fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-height: 100%;
}

.case-media-grid.image-count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.case-media-grid.image-count-2 {
  grid-template-columns: minmax(0, 2.45fr) minmax(118px, 0.62fr);
  grid-template-rows: 1fr;
}

.case-media-slot {
  position: relative;
  min-height: 74px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.case-media-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 36% 28%, rgba(105, 214, 206, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.case-media-slot img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-main {
  grid-column: 1;
  grid-row: 1 / -1;
}

.image-count-1 .case-media-slot {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.slot-detail-large {
  grid-column: 2;
  grid-row: 1;
}

.image-count-2 .slot-detail-large,
.image-count-2 .slot-detail-small {
  grid-column: 2;
  grid-row: 1 / -1;
}

.image-count-2 .case-media-slot:first-child {
  grid-column: 1;
  grid-row: 1 / -1;
}

.image-count-2 .case-media-slot:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / -1;
}

.image-count-3 .case-media-slot:first-child {
  grid-column: 1;
  grid-row: 1 / -1;
}

.image-count-3 .case-media-slot:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.image-count-3 .case-media-slot:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.slot-detail-small {
  grid-column: 2;
  grid-row: 2;
}

.case-content,
.service-card,
.timeline-card,
.card {
  padding: 24px;
}

.card {
  position: relative;
}

.case-content h3,
.service-card h3,
.timeline-card h3,
.card h3,
.contact-method h3 {
  color: var(--text);
  font-size: 1.24rem;
}

.case-meta,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.case-meta span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--green-2);
  background: rgba(31, 107, 82, 0.12);
  font-size: 0.84rem;
  font-weight: 820;
}

.project-learn-more {
  margin-top: 22px;
}

.work-hub-hero {
  padding-bottom: 48px;
}

.project-category-section {
  padding-top: 34px;
}

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

.project-category-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: minmax(180px, 0.82fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-category-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--green-2), var(--line) 45%);
  box-shadow: 0 24px 70px rgba(8, 16, 13, 0.16);
}

.category-visual {
  min-height: 190px;
  position: relative;
  display: grid;
  align-items: stretch;
  padding: 18px;
  overflow: hidden;
  color: var(--white);
}

.category-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

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

.project-category-content {
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 24px;
}

.project-category-content h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.project-category-content p:not(.section-kicker) {
  margin: 14px 0 0;
  color: var(--text-soft);
}

.project-category-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--green-2);
  font-weight: 850;
}

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

.compact-work-grid .case-card.featured {
  grid-row: auto;
}

.compact-work-grid .case-visual,
.compact-work-grid .featured .case-visual {
  min-height: 260px;
}

.category-page-hero {
  padding-bottom: 34px;
}

.category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}

.category-hero-grid h1 {
  max-width: 980px;
}

.category-hero-grid .hero-actions {
  margin-top: 30px;
}

.category-hero-visual {
  min-height: 0;
  aspect-ratio: 16 / 10;
  max-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--dark);
  box-shadow: var(--shadow-soft);
}

.category-hero-visual .category-visual {
  height: 100%;
  min-height: 0;
  padding: 28px;
}

.category-hero-visual .board-lines {
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.category-hero-visual .board-lines span:first-child {
  min-height: 0;
}

.category-hero-visual .dashboard-lines,
.category-hero-visual .drone-lines {
  grid-auto-rows: minmax(0, 1fr);
}

.category-hero-visual .board-lines span,
.category-hero-visual .dashboard-lines span,
.category-hero-visual .drone-lines span {
  min-height: 0;
}

.category-nav {
  width: min(calc(100% - 48px), var(--max));
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: -18px auto 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.category-nav a {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px 8px;
  color: var(--text-soft);
  background: var(--surface);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 850;
}

.category-nav a[aria-current="page"] {
  color: var(--green-2);
  background:
    radial-gradient(circle at 50% 0%, rgba(105, 214, 206, 0.18), transparent 80%),
    var(--panel);
}

.category-project-section {
  padding-top: 56px;
}

.category-work-grid .case-card.featured {
  grid-row: auto;
}

.category-capability-section {
  padding-top: 44px;
}

.category-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.category-capability-grid .card {
  min-height: 240px;
  display: grid;
  align-content: space-between;
}

.category-capability-grid .card > span {
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 900;
}

.empty-category-card {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 24%, rgba(105, 214, 206, 0.18), transparent 18rem),
    linear-gradient(135deg, color-mix(in srgb, var(--surface), transparent 4%), color-mix(in srgb, var(--panel), transparent 2%));
  box-shadow: var(--shadow-soft);
}

.empty-category-card h3 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.98;
}

.empty-category-card p:not(.section-kicker) {
  max-width: 720px;
  color: var(--text-soft);
}

.project-page-hero {
  padding-bottom: 36px;
}

.project-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.project-crumb a {
  color: var(--green-2);
}

.project-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.project-title-grid h1 {
  max-width: 980px;
}

.project-title-grid .hero-actions {
  margin-top: 30px;
}

.project-summary-card,
.project-info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(105, 214, 206, 0.14), transparent 18rem),
    color-mix(in srgb, var(--surface), transparent 2%);
  box-shadow: var(--shadow-soft);
}

.project-summary-card {
  padding: 22px;
}

.project-spec-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.project-spec-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel), transparent 6%);
}

.project-spec-grid span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-spec-grid strong {
  color: var(--text);
  line-height: 1.25;
}

.project-showcase-section {
  padding-top: 22px;
}

.project-showcase {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow-soft);
}

.project-showcase .case-visual {
  min-height: clamp(420px, 62vw, 760px);
  border-radius: 0;
}

.project-showcase .case-media-grid {
  grid-template-columns: minmax(0, 2.8fr) minmax(190px, 0.8fr);
  gap: 14px;
}

.project-showcase .case-media-slot {
  border-radius: 8px;
}

.project-detail-layout {
  padding-top: 54px;
}

.project-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.project-info-panel {
  padding: clamp(22px, 4vw, 34px);
}

.project-info-panel h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.project-info-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-info-panel li {
  position: relative;
  padding-left: 28px;
  color: var(--text-soft);
  line-height: 1.55;
}

.project-info-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-2), var(--amber));
}

.project-spec-section {
  padding-top: 36px;
}

.spec-table-wrap {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 8%, rgba(199, 131, 69, 0.13), transparent 18rem),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.project-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.project-spec-table tr {
  border-bottom: 1px solid var(--line);
}

.project-spec-table tr:last-child {
  border-bottom: 0;
}

.project-spec-table th,
.project-spec-table td {
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
}

.project-spec-table th {
  width: 32%;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--panel), transparent 16%);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-spec-table td {
  color: var(--text);
  font-weight: 760;
  line-height: 1.5;
}

.project-model-section {
  padding-top: 46px;
}

.project-model-frame {
  min-height: clamp(360px, 54vw, 680px);
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 24%, rgba(105, 214, 206, 0.24), transparent 24rem),
    radial-gradient(circle at 78% 68%, rgba(199, 131, 69, 0.2), transparent 22rem),
    linear-gradient(135deg, #07100d, #10251f 56%, #06100d);
  box-shadow: var(--shadow-soft);
}

.project-model-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  pointer-events: none;
}

.project-model-frame model-viewer,
.project-model-frame iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: clamp(360px, 54vw, 680px);
  display: block;
  border: 0;
  background: transparent;
}

.project-cta-band .dark-band-inner {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  align-items: center;
}

.project-cta-copy {
  max-width: 860px;
}

.project-cta-band .button {
  margin-top: 24px;
}

.project-cta-visual {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(105, 214, 206, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.project-cta-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
}

.project-cta-visual span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.project-cta-visual span:nth-child(1) {
  left: 12%;
  top: 16%;
  width: 46%;
  height: 46%;
}

.project-cta-visual span:nth-child(2) {
  right: 12%;
  top: 18%;
  width: 24%;
  height: 22%;
}

.project-cta-visual span:nth-child(3) {
  right: 12%;
  bottom: 18%;
  width: 24%;
  height: 22%;
}

.project-cta-visual span:nth-child(4) {
  left: 16%;
  bottom: 14%;
  width: 58%;
  height: 14%;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 285px;
  position: relative;
}

.service-card::after,
.timeline-card::after,
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green-2), var(--cyan), var(--amber));
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-card:hover::after,
.timeline-card:hover::after,
.card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  color: #06110d;
  background: var(--mint);
  border-radius: 8px;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.spec-list li {
  display: flex;
  gap: 10px;
}

.spec-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--amber);
}

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

.timeline-card {
  min-height: 280px;
  position: relative;
}

.timeline-card span {
  display: inline-flex;
  margin-bottom: 58px;
  color: var(--amber);
  font-weight: 880;
}

.dark-band {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(105, 214, 206, 0.08), transparent 34%),
    linear-gradient(180deg, #08100d, #06100d);
}

.dark-band-inner {
  width: min(calc(100% - 48px), var(--max));
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.54fr);
  gap: 34px;
  align-items: start;
  margin: 0 auto;
  padding: 82px 0;
}

.dark-band h2 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.dark-band p {
  color: rgba(255, 255, 255, 0.66);
}

.dark-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.dark-stats div {
  min-height: 142px;
  display: grid;
  align-content: center;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.dark-stats div:last-child {
  border-right: 0;
}

.dark-stats strong {
  font-size: 1.55rem;
}

.dark-stats span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

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

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.5fr);
  gap: 40px;
  align-items: end;
  margin-top: 34px;
  margin-bottom: 28px;
  padding: 54px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 8%, rgba(105, 214, 206, 0.2), transparent 32%),
    linear-gradient(135deg, #08100d, #12392f 58%, #8c6145);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-methods {
  display: grid;
  gap: 14px;
}

.contact-method {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  color: var(--text);
  background: var(--surface-strong);
}

.contact-method svg {
  color: var(--green-2);
}

.contact-method h3 {
  margin-bottom: 5px;
}

.contact-method p {
  margin: 0;
  color: var(--text-soft);
}

.lead-panel {
  min-width: 0;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong), transparent 2%);
  box-shadow: 0 24px 70px rgba(8, 16, 13, 0.22);
}

.form-head {
  margin-bottom: 4px;
}

.form-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.05;
}

.form-head p:not(.section-kicker),
.form-note {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.form-head p.is-success {
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--green-2), transparent 45%);
  border-radius: 7px;
  color: var(--green-2);
  background: rgba(31, 107, 82, 0.12);
  font-weight: 760;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.lead-form label span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  outline: none;
}

.lead-form select {
  color-scheme: light;
  cursor: pointer;
}

.lead-form select option {
  color: #10201c;
  background: #ffffff;
}

.lead-form select option:disabled {
  color: #6b746f;
}

.lead-form textarea {
  resize: vertical;
  min-height: 132px;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(105, 214, 206, 0.16);
}

.lead-submit {
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer a {
  color: var(--text-soft);
  font-weight: 760;
}

.owner-login {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.owner-login:hover {
  color: var(--green-2);
  border-color: rgba(31, 107, 82, 0.34);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-grid,
  .section-head,
  .split-heading,
  .dark-band-inner,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-grid,
  .detail-grid,
  .home-strip,
  .project-category-grid,
  .category-capability-grid,
  .compact-work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid,
  .category-hero-grid {
    grid-template-columns: 1fr;
  }

  .client-rail {
    grid-template-columns: 1fr;
  }

  .category-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-rail article {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 62px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-shell {
    gap: 6px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    color: var(--text);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .nav a {
    min-height: 48px;
  }

  .hero {
    min-height: auto;
    padding: 92px 22px 18px;
  }

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

  .hero-grid {
    gap: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.62rem, 11vw, 3.55rem);
  }

  .home-strip,
  .service-grid,
  .process-grid,
  .detail-grid,
  .project-category-grid,
  .category-capability-grid,
  .compact-work-grid,
  .dark-stats {
    grid-template-columns: 1fr;
  }

  .hero-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-card-head {
    padding: 12px;
  }

  .hero-card-head .tag {
    display: none;
  }

  .hero-card-grid div {
    min-height: 92px;
    padding: 12px 10px;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-card-grid div:last-child {
    border-right: 0;
  }

  .hero-card-grid strong {
    font-size: 1.12rem;
  }

  .hero-card-grid span {
    font-size: 0.72rem;
  }

  .dark-stats div {
    min-height: 94px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .dark-stats div:last-child {
    border-bottom: 0;
  }

  .section,
  .page-hero,
  .contact-section,
  .footer,
  .client-rail,
  .category-nav,
  .dark-band-inner {
    width: min(calc(100% - 36px), var(--max));
  }

  .client-rail,
  .category-nav {
    margin-top: 18px;
  }

  .section {
    padding: 68px 0;
  }

  .page-hero {
    padding: 128px 0 54px;
  }

  .section-head,
  .split-heading {
    gap: 22px;
  }

  .project-title-grid,
  .project-detail-columns,
  .empty-category-card {
    grid-template-columns: 1fr;
  }

  .project-category-card {
    min-height: auto;
  }

  .category-hero-visual {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

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

  .project-spec-table,
  .project-spec-table tbody,
  .project-spec-table tr,
  .project-spec-table th,
  .project-spec-table td {
    display: block;
    width: 100%;
  }

  .project-spec-table th {
    padding-bottom: 6px;
    background: transparent;
  }

  .project-spec-table td {
    padding-top: 6px;
  }

  .project-cta-band .dark-band-inner {
    grid-template-columns: 1fr;
  }

  .project-cta-visual {
    min-height: 260px;
  }

  .project-showcase .case-visual {
    min-height: 360px;
  }

  .project-showcase .case-media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 1.55fr) repeat(2, minmax(110px, 0.7fr));
  }

  .project-showcase .case-media-grid.image-count-1 {
    grid-template-rows: minmax(340px, 1fr);
  }

  .project-showcase .case-media-grid.image-count-2 {
    grid-template-rows: minmax(240px, 1.55fr) minmax(140px, 0.8fr);
  }

  .section h2,
  .contact-section h2,
  .split-heading h2,
  .dark-band h2 {
    font-size: clamp(2.25rem, 11vw, 3.45rem);
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

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

  .button {
    width: 100%;
  }

  .case-visual,
  .featured .case-visual {
    min-height: 300px;
  }

  .about-founder-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .about-photo {
    width: min(76vw, 220px);
  }

  .case-media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(170px, 1.5fr) repeat(2, minmax(92px, 0.65fr));
  }

  .case-media-grid.image-count-1 {
    grid-template-rows: minmax(270px, 1fr);
  }

  .case-media-grid.image-count-2 {
    grid-template-rows: minmax(210px, 1.5fr) minmax(110px, 0.75fr);
  }

  .slot-main,
  .slot-detail-large,
  .slot-detail-small {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-section {
    padding: 34px 22px;
  }

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

  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 0;
  }
}

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