: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;
}

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 {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 7px;
  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);
}

.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-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: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.58fr);
  gap: 42px;
  align-items: end;
}

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

.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: rgba(8, 16, 13, 0.66);
  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;
}

.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;
}

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

.proof-item {
  min-height: 180px;
  display: grid;
  align-content: space-between;
  padding: 22px;
}

.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: end;
  padding: 22px;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
}

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

.case-visual.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 13, 0), rgba(8, 16, 13, 0.16));
  pointer-events: 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 {
  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);
}

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

.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;
}

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

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

.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;
}

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

.dark-band {
  color: var(--white);
  background: #08100d;
}

.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;
}

.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);
}

.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 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@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-grid {
    gap: 20px;
  }

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

  .home-strip,
  .service-grid,
  .process-grid,
  .detail-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,
  .dark-band-inner {
    width: min(calc(100% - 36px), var(--max));
  }

  .section {
    padding: 68px 0;
  }

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

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

  .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;
  }

  .button {
    width: 100%;
  }

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

  .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;
  }
}
