:root,
[data-theme='light'] {
  --font-display: 'Satoshi', 'Arial', sans-serif;
  --font-body: 'Satoshi', 'Arial', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.6rem, 1rem + 5vw, 6.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f5f5f5;
  --color-surface-dynamic: #e8e8e8;
  --color-text: #111111;
  --color-text-muted: #595959;
  --color-text-faint: #8a8a8a;
  --color-text-inverse: #ffffff;
  --color-primary: #111111;
  --color-primary-hover: #000000;
  --color-primary-highlight: #f2f2f2;
  --color-accent: #111111;
  --color-accent-hover: #000000;
  --color-success: #2d6b3f;
  --color-error: #8a1f2d;
  --color-border: #d8d8d8;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.25rem;
  --radius-xl: 0.375rem;
  --radius-2xl: 0.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgb(17 17 17 / 0.05);
  --shadow-md: 0 8px 24px rgb(17 17 17 / 0.08);
  --shadow-lg: 0 18px 48px rgb(17 17 17 / 0.12);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

[data-theme='dark'] {
  --color-bg: #0f0f0f;
  --color-surface: #151515;
  --color-surface-2: #1c1c1c;
  --color-surface-offset: #222222;
  --color-surface-dynamic: #2f2f2f;
  --color-text: #f4f4f4;
  --color-text-muted: #b8b8b8;
  --color-text-faint: #777777;
  --color-text-inverse: #111111;
  --color-primary: #ffffff;
  --color-primary-hover: #e8e8e8;
  --color-primary-highlight: #252525;
  --color-accent: #ffffff;
  --color-accent-hover: #dedede;
  --color-success: #7ec891;
  --color-error: #dc7284;
  --color-border: #343434;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.22);
  --shadow-md: 0 12px 32px rgb(0 0 0 / 0.28);
  --shadow-lg: 0 24px 80px rgb(0 0 0 / 0.38);
}

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body.curiosity-drone-landing {
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

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

img {
  height: auto;
  background: var(--color-surface-offset);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a,
button,
input,
textarea,
select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

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

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

p,
li,
dd,
address {
  max-width: 72ch;
  text-wrap: pretty;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: color-mix(in srgb, var(--color-accent) 28%, transparent);
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
}

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

.container {
  width: min(calc(100% - var(--space-8)), var(--content-wide));
  margin-inline: auto;
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.section-tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 96%, transparent);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.site-header-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(190px, 22vw, 300px);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: none;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.primary-nav a {
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--color-text);
}

.primary-nav a.active {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: #fff;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.button:hover {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
  transform: none;
}

.button:active {
  transform: translateY(0);
}

.button-secondary {
  background: transparent;
  border-color: var(--color-border);
  box-shadow: none;
  color: var(--color-text);
}

.button-secondary:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text);
  color: var(--color-text);
}

.button-on-dark {
  margin-top: var(--space-8);
}

.button-small {
  min-height: 44px;
  padding-inline: var(--space-4);
}

.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  padding-top: clamp(var(--space-12), 5vw, var(--space-20));
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
}

.hero-copy {
  position: relative;
}

.eyebrow {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 5.35rem);
  max-width: 12.5ch;
  margin-bottom: var(--space-6);
}

.hero-lede {
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.35rem);
  max-width: 55ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 720px;
}

.proof-strip div {
  padding-block: var(--space-4);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent);
}

.proof-strip dt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1;
}

.proof-strip dd {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.hero-media picture {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: none;
}

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

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, transparent 58%, rgb(0 0 0 / 0.28));
  pointer-events: none;
}

.flight-card {
  position: absolute;
  z-index: 3;
  left: var(--space-6);
  bottom: var(--space-6);
  width: min(300px, calc(100% - var(--space-8)));
  border: 1px solid color-mix(in srgb, #fff 40%, transparent);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.88);
  box-shadow: none;
  backdrop-filter: blur(8px);
  padding: var(--space-4);
}

.flight-card strong,
.flight-card small {
  display: block;
  margin-left: var(--space-6);
}

.flight-card small {
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.status-dot {
  position: absolute;
  top: 1.65rem;
  left: var(--space-5);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-text);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-text) 12%, transparent);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.64fr);
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-12);
}

.section-heading h2,
.thermal-grid h2,
.credentials h2,
.service-area h2,
  .contact-section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  max-width: 18ch;
}

.section-heading p:not(.eyebrow),
.thermal-panel p,
.credentials-intro p,
.service-area-card p,
.contact-section p {
  color: var(--color-text-muted);
}

.service-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: var(--space-4);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-6);
  box-shadow: none;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card-large {
  grid-row: span 2;
  min-height: 576px;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.78)),
    url('../images/gallery-02.jpg') center / cover,
    var(--color-primary);
  color: var(--color-text-inverse);
}

[data-theme='dark'] .service-card-large {
  color: #edf0ed;
}

.service-card span {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: auto;
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.service-card p {
  color: var(--color-text-muted);
}

.service-card-large p {
  color: color-mix(in srgb, var(--color-text-inverse) 72%, transparent);
}

.home-directory {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: var(--space-4);
}

.directory-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-6);
  box-shadow: none;
}

.directory-card > * {
  position: relative;
  z-index: 1;
}

.directory-card-large {
  grid-row: span 2;
  min-height: 516px;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.78)),
    url('../images/gallery-02.jpg') center / cover,
    var(--color-primary);
  color: var(--color-text-inverse);
}

[data-theme='dark'] .directory-card-large {
  color: #edf0ed;
}

.directory-card span {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: auto;
  text-transform: uppercase;
}

.directory-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.directory-card p {
  color: var(--color-text-muted);
}

.directory-card-large p {
  color: color-mix(in srgb, var(--color-text-inverse) 72%, transparent);
}

.directory-card a {
  color: inherit;
  font-weight: 700;
  margin-top: var(--space-6);
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
  text-underline-offset: 0.24em;
}

.thermal-feature {
  background: var(--color-text);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

[data-theme='dark'] .thermal-feature {
  color: #edf0ed;
}

.thermal-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  align-items: start;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
}

.thermal-feature .eyebrow {
  color: color-mix(in srgb, var(--color-text-inverse) 70%, transparent);
}

.thermal-panel {
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, #fff 8%, transparent);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}

.thermal-panel p {
  color: color-mix(in srgb, var(--color-text-inverse) 82%, transparent);
  font-size: var(--text-lg);
}

.check-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.check-list li {
  position: relative;
  padding-left: var(--space-8);
  color: color-mix(in srgb, var(--color-text-inverse) 92%, transparent);
  font-weight: 700;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: var(--color-text-inverse);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(220px, 320px));
  gap: var(--space-4);
}

.photo-grid figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  box-shadow: none;
}

.photo-grid figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 0.28));
  pointer-events: none;
}

.photo-grid figure:first-child {
  grid-row: span 2;
}

.photo-grid figure:nth-child(4) {
  grid-column: span 2;
  max-height: 360px;
}

.photo-grid picture,
.photo-grid img {
  width: 100%;
  height: 100%;
}

.photo-grid img {
  object-fit: cover;
}

.credentials {
  background: var(--color-surface-offset);
}

.credentials-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(var(--space-8), 7vw, var(--space-24));
}

.credentials-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.credential-stack {
  display: grid;
  gap: var(--space-4);
}

.credential-stack article {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  padding: var(--space-6);
  box-shadow: none;
}

.credential-stack h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.credential-stack p {
  color: var(--color-text-muted);
}

.service-area-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: var(--space-8);
  align-items: end;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  padding: clamp(var(--space-6), 6vw, var(--space-16));
  box-shadow: none;
}

.contact-section {
  padding-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.76fr);
  gap: clamp(var(--space-8), 7vw, var(--space-20));
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-8);
  color: var(--color-text-muted);
  font-weight: 700;
}

.contact-methods a {
  color: var(--color-text);
}

.contact-form {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  padding: clamp(var(--space-5), 4vw, var(--space-8));
  box-shadow: none;
}

.contact-form label {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  margin-top: var(--space-3);
}

.form-alert {
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-weight: 800;
}

.form-alert-success {
  background: color-mix(in srgb, var(--color-success) 14%, transparent);
  color: var(--color-success);
}

.form-alert-error {
  background: color-mix(in srgb, var(--color-error) 14%, transparent);
  color: var(--color-error);
}

.site-footer {
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding-block: var(--space-16) var(--space-8);
}

[data-theme='dark'] .site-footer {
  color: #edf0ed;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.5fr;
  gap: var(--space-10);
}

.site-footer .brand-logo {
  width: min(330px, 100%);
}

.site-footer p,
.site-footer address,
.site-footer small,
.site-footer a,
.site-footer li {
  color: color-mix(in srgb, var(--color-text-inverse) 78%, transparent);
}

.site-footer h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.site-footer ul {
  display: grid;
  gap: var(--space-2);
}

.footer-brand {
  margin-bottom: var(--space-5);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in srgb, #fff 18%, transparent);
}

.footer-bottom p {
  font-size: var(--text-sm);
}

.page-hero {
  padding-top: clamp(var(--space-12), 7vw, var(--space-24));
  padding-bottom: clamp(var(--space-10), 6vw, var(--space-20));
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: clamp(var(--space-8), 7vw, var(--space-20));
  align-items: center;
}

.page-hero h1,
.contact-page h1,
.utility-card h1 {
  font-size: clamp(2.6rem, 4.4vw, 5rem);
  max-width: 14ch;
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  line-height: 1.12;
}

.page-hero-image {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: none;
  aspect-ratio: 4 / 3;
}

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

.about-portrait {
  aspect-ratio: 3 / 4;
}

.about-portrait img {
  object-position: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.detail-card,
.use-case-grid article {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: clamp(var(--space-5), 4vw, var(--space-8));
  box-shadow: none;
}

.detail-card-wide {
  grid-column: span 2;
}

.detail-card span {
  display: block;
  margin-bottom: var(--space-10);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.detail-card h2,
.use-case-grid h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.detail-card p,
.use-case-grid p {
  color: var(--color-text-muted);
}

.service-card a {
  color: inherit;
  font-weight: 700;
  margin-top: var(--space-6);
}

.thermal-page-hero {
  background: var(--color-bg);
}

.thermal-hero-image {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: none;
}

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

.thermal-evidence {
  background: var(--color-surface);
}

.thermal-evidence-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.thermal-evidence-grid figure {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: none;
}

.thermal-evidence-grid picture,
.thermal-evidence-grid img {
  width: 100%;
  height: 100%;
}

.thermal-evidence-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.gallery-page-grid {
  columns: 2 340px;
  column-gap: var(--space-4);
}

.gallery-page-grid figure {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: var(--space-4);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: none;
}

.gallery-page-grid img {
  width: 100%;
  object-fit: cover;
}

.contact-page {
  padding-top: clamp(var(--space-16), 10vw, var(--space-32));
}

.media-card,
.graphic-card,
.map-card {
  min-height: 360px;
}

.media-card {
  justify-content: flex-end;
  color: var(--color-text-inverse);
  background:
    linear-gradient(180deg, rgb(15 21 23 / 0.08), rgb(15 21 23 / 0.82)),
    url('../images/gallery-03.jpg') center / cover;
}

.photo-video-card {
  background:
    linear-gradient(180deg, rgb(15 21 23 / 0.08), rgb(15 21 23 / 0.82)),
    url('../images/gallery-01.jpg') center / cover;
}

.inspection-card {
  background:
    linear-gradient(180deg, rgb(15 21 23 / 0.08), rgb(15 21 23 / 0.82)),
    url('../images/gallery-04.jpg') center / cover;
}

.media-card p {
  color: color-mix(in srgb, var(--color-text-inverse) 82%, transparent);
}

.graphic-card {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

.graphic-card p {
  color: color-mix(in srgb, var(--color-text-inverse) 82%, transparent);
}

.map-card {
  background: var(--color-surface-offset);
}

.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.utility-page {
  min-height: 100dvh;
  display: grid;
  align-items: center;
}

.utility-card {
  max-width: 760px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: clamp(var(--space-8), 7vw, var(--space-20));
  box-shadow: none;
}

.utility-card p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

@media (max-width: 1060px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: var(--space-3);
  }

  .primary-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-block: var(--space-2);
    gap: var(--space-4);
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .primary-nav a {
    min-width: max-content;
  }

  .hero-grid,
  .page-hero-grid,
  .section-heading,
  .thermal-grid,
  .credentials-grid,
  .service-area-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section-heading h2,
  .thermal-grid h2,
  .credentials h2,
  .service-area h2,
  .contact-section h2 {
    max-width: 18ch;
  }

  .hero-media {
    min-height: 440px;
  }

  .credentials-intro {
    position: static;
  }

  .service-layout,
  .home-directory {
    grid-template-columns: 1fr 1fr;
  }

  .use-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card-large,
  .directory-card-large {
    min-height: 360px;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - var(--space-6)), var(--content-wide));
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .header-actions .button-small {
    display: none;
  }

  .brand-logo {
    width: clamp(150px, 50vw, 220px);
  }

  .primary-nav {
    gap: var(--space-3);
    font-size: clamp(0.72rem, 2.8vw, 0.875rem);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: var(--space-10);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
    max-width: 9ch;
  }

  .hero-lede {
    font-size: var(--text-base);
  }

  .hero-actions,
  .proof-strip,
  .service-layout,
  .home-directory,
  .detail-grid,
  .use-case-grid,
  .thermal-evidence-grid,
  .photo-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-card-wide {
    grid-column: auto;
  }

  .page-hero h1,
  .contact-page h1,
  .utility-card h1 {
    font-size: clamp(2.5rem, 12vw, 4.25rem);
  }

  .thermal-hero-image {
    min-height: 320px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .proof-strip {
    display: grid;
    gap: var(--space-2);
  }

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

  .hero-media::before {
    display: none;
  }

  .flight-card {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    width: auto;
  }

  .service-card,
  .service-card-large,
  .directory-card,
  .directory-card-large {
    min-height: 240px;
  }

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

  .photo-grid figure,
  .photo-grid figure:first-child,
  .photo-grid figure:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

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

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