/* =========================================================================
   Iontail International — Design Tokens & Global Styles
   Palette: deep midnight navy + restrained electric teal accent
   Type: Erode (display, Fontshare) + General Sans (body/UI, Fontshare)
   ========================================================================= */

:root,
[data-theme='light'] {
  /* ---- Fluid type scale ---- */
  --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.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6.75rem);

  /* ---- 4px spacing system ---- */
  --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;

  /* ---- Surfaces: warm paper / light mode ---- */
  --color-bg: #f6f5f1;
  --color-surface: #fbfaf7;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ecebe4;
  --color-surface-offset-2: #e3e1d8;
  --color-surface-dynamic: #d9d7cc;
  --color-divider: #ddd9cf;
  --color-border: #cfccbf;

  /* ---- Ink / midnight navy text ---- */
  --color-text: #0c1526;
  --color-text-muted: #4b5568;
  --color-text-faint: #8891a1;
  --color-text-inverse: #f4f6f8;

  /* ---- Navy (structural / hero surfaces) ---- */
  --color-navy: #0b1220;
  --color-navy-2: #0f1b30;
  --color-navy-3: #142238;

  /* ---- Electric teal accent ---- */
  --color-primary: #0d7d74;
  --color-primary-hover: #095c56;
  --color-primary-active: #084943;
  --color-primary-highlight: #d3e8e4;
  --color-teal-bright: #2ee6cf;

  /* ---- Semantic (used sparingly) ---- */
  --color-error: #a13544;
  --color-warning: #964219;
  --color-success: #2f7d4f;

  /* ---- Radius ---- */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Shadows (cool-tinted, tone matched to navy) ---- */
  --shadow-sm: 0 1px 2px oklch(0.16 0.03 255 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.16 0.03 255 / 0.10);
  --shadow-lg: 0 16px 40px oklch(0.16 0.03 255 / 0.16);

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* ---- Fonts ---- */
  --font-display: 'Erode', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- Dark mode: full midnight navy ---- */
[data-theme='dark'] {
  --color-bg: #090e18;
  --color-surface: #0d1422;
  --color-surface-2: #101a2b;
  --color-surface-offset: #131f33;
  --color-surface-offset-2: #17253c;
  --color-surface-dynamic: #1c2b45;
  --color-divider: #1c2b45;
  --color-border: #233555;

  --color-text: #e7ebf2;
  --color-text-muted: #9aa7bd;
  --color-text-faint: #667791;
  --color-text-inverse: #0b1220;

  --color-navy: #05080f;
  --color-navy-2: #070c17;
  --color-navy-3: #0a101d;

  --color-primary: #35d6c1;
  --color-primary-hover: #5ee4d2;
  --color-primary-active: #21a897;
  --color-primary-highlight: #163530;
  --color-teal-bright: #4be9d4;

  --color-error: #d9738a;
  --color-warning: #d99a63;
  --color-success: #6fca92;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #090e18;
    --color-surface: #0d1422;
    --color-surface-2: #101a2b;
    --color-surface-offset: #131f33;
    --color-surface-offset-2: #17253c;
    --color-surface-dynamic: #1c2b45;
    --color-divider: #1c2b45;
    --color-border: #233555;

    --color-text: #e7ebf2;
    --color-text-muted: #9aa7bd;
    --color-text-faint: #667791;
    --color-text-inverse: #0b1220;

    --color-navy: #05080f;
    --color-navy-2: #070c17;
    --color-navy-3: #0a101d;

    --color-primary: #35d6c1;
    --color-primary-hover: #5ee4d2;
    --color-primary-active: #21a897;
    --color-primary-highlight: #163530;
    --color-teal-bright: #4be9d4;

    --color-error: #d9738a;
    --color-warning: #d99a63;
    --color-success: #6fca92;

    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
  }
}

/* =========================================================================
   Global element styles
   ========================================================================= */

body {
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

p {
  max-width: 62ch;
}

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

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

.container--narrow {
  max-width: var(--content-default);
}

section {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* =========================================================================
   Skip link
   ========================================================================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top var(--transition-interactive);
}

.skip-link:focus {
  top: var(--space-4);
}

/* =========================================================================
   Header / Navigation
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.brand-name {
  white-space: nowrap;
}

.brand-name strong {
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.main-nav ul {
  display: flex;
  gap: var(--space-6);
}

.main-nav a:not(.btn) {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding-block: var(--space-1);
}

.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-interactive);
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn):focus-visible {
  color: var(--color-text);
}

.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  color: var(--color-primary);
  background: var(--color-surface-offset);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.nav-toggle svg[hidden] {
  display: none;
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #f4fbfa;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.18);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-on-dark {
  color: var(--color-navy);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-2) 62%, var(--color-navy-3) 100%);
  color: var(--color-text-inverse);
  padding-block: clamp(var(--space-16), 9vw, var(--space-24)) clamp(var(--space-12), 6vw, var(--space-16));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 45% at 82% 8%, oklch(0.62 0.11 185 / 0.16), transparent 60%),
    repeating-linear-gradient(115deg, oklch(1 0 0 / 0.025) 0px, oklch(1 0 0 / 0.025) 1px, transparent 1px, transparent 88px);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: var(--space-16);
  align-items: start;
}

.hero-eyebrow {
  color: var(--color-teal-bright);
}

.hero-eyebrow::before {
  background: var(--color-teal-bright);
}

.hero h1 {
  font-size: clamp(2rem, 0.9rem + 3.6vw, 4.25rem);
  line-height: 1.1;
  margin-top: var(--space-5);
  color: #f4f7fa;
  max-width: 26ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-teal-bright);
}

.hero-lede {
  margin-top: var(--space-6);
  font-size: var(--text-base);
  color: oklch(0.92 0.01 250 / 0.78);
  max-width: 46ch;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.hero-note {
  font-size: var(--text-sm);
  color: oklch(0.92 0.01 250 / 0.55);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  border-left: 1px solid oklch(1 0 0 / 0.12);
  padding-left: var(--space-8);
  margin-top: clamp(var(--space-2), 6vh, var(--space-10));
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-teal-bright);
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: oklch(0.92 0.01 250 / 0.6);
  max-width: 30ch;
}

/* =========================================================================
   Marquee / capability strip
   ========================================================================= */

.strip {
  background: var(--color-surface-offset);
  border-block: 1px solid var(--color-divider);
  padding-block: var(--space-6);
  overflow: hidden;
}

.strip-track {
  display: flex;
  gap: var(--space-12);
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

.strip-item .dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .strip-track {
    animation: none;
  }
}

/* =========================================================================
   Section rhythm
   ========================================================================= */

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: start;
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-20));
}

.section-head .eyebrow {
  margin-top: var(--space-2);
}

.section-head h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
  max-width: 14ch;
}

.section-head p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.55;
}

.section--tinted {
  background: var(--color-surface);
}

/* =========================================================================
   Services — numbered editorial index (not icon-in-circle grid)
   ========================================================================= */

.service-list {
  border-top: 1px solid var(--color-divider);
}

.service-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-8);
  padding-block: clamp(var(--space-8), 4vw, var(--space-10));
  border-bottom: 1px solid var(--color-divider);
  align-items: start;
  transition: background var(--transition-interactive);
}

.service-row:hover {
  background: oklch(from var(--color-primary) l c h / 0.04);
}

.service-index {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-top: var(--space-1);
}

.service-title-col h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.005em;
}

.service-title-col .service-tag {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-desc p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

.service-desc ul {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-desc li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}

.service-desc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--color-primary);
}

/* =========================================================================
   Approach — asymmetric process rail
   ========================================================================= */

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

.approach-copy {
  position: sticky;
  top: calc(var(--space-24));
}

.approach-copy .eyebrow {
  margin-bottom: var(--space-4);
}

.approach-copy h2 {
  font-size: var(--text-2xl);
  max-width: 12ch;
}

.approach-copy p {
  margin-top: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

.approach-steps {
  display: flex;
  flex-direction: column;
}

.approach-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
  position: relative;
}

.approach-step:last-child {
  border-bottom: 1px solid var(--color-divider);
}

.approach-step-num {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
}

.approach-step h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
}

.approach-step p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 56ch;
  line-height: 1.6;
}

/* =========================================================================
   Principles — pull quote + credentials band
   ========================================================================= */

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

.principles::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    oklch(1 0 0 / 0.03) 0px,
    oklch(1 0 0 / 0.03) 1px,
    transparent 1px,
    transparent 96px
  );
  pointer-events: none;
}

.principles-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--space-12), 6vw, var(--space-24));
}

.principles blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
  color: #f4f7fa;
  max-width: 22ch;
}

.principles blockquote cite {
  display: block;
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-teal-bright);
  font-weight: 600;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.principle-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid oklch(1 0 0 / 0.1);
}

.principle-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.principle-mark {
  width: 28px;
  height: 28px;
  color: var(--color-teal-bright);
}

.principle-item h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: #f4f7fa;
}

.principle-item p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: oklch(0.92 0.01 250 / 0.68);
  line-height: 1.6;
}

/* =========================================================================
   About / credentials band
   ========================================================================= */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

.about-copy p + p {
  margin-top: var(--space-5);
}

.about-copy p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 60ch;
}

.credential-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-divider);
}

.credential-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}

.credential-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.credential-value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  text-align: right;
}

/* =========================================================================
   Contact / CTA
   ========================================================================= */

.contact {
  background: linear-gradient(180deg, var(--color-navy-3) 0%, var(--color-navy) 100%);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 12% 100%, oklch(0.62 0.11 185 / 0.14), transparent 65%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(var(--space-12), 6vw, var(--space-20));
}

.contact-copy .eyebrow {
  color: var(--color-teal-bright);
}

.contact-copy .eyebrow::before {
  background: var(--color-teal-bright);
}

.contact-copy h2 {
  margin-top: var(--space-5);
  font-size: var(--text-2xl);
  color: #f4f7fa;
  max-width: 14ch;
}

.contact-copy p {
  margin-top: var(--space-6);
  color: oklch(0.92 0.01 250 / 0.72);
  font-size: var(--text-lg);
  max-width: 44ch;
  line-height: 1.6;
}

.contact-direct {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: #f4f7fa;
  width: fit-content;
  border-bottom: 1px solid oklch(1 0 0 / 0.2);
  padding-bottom: var(--space-1);
}

.contact-direct a:hover {
  color: var(--color-teal-bright);
  border-color: var(--color-teal-bright);
}

.contact-direct svg {
  width: 18px;
  height: 18px;
  color: var(--color-teal-bright);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: oklch(1 0 0 / 0.04);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  backdrop-filter: blur(6px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.field {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.92 0.01 250 / 0.6);
}

.field input,
.field textarea,
.field select {
  background: oklch(1 0 0 / 0.06);
  border: 1px solid oklch(1 0 0 / 0.18);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: #f4f7fa;
  font-size: var(--text-sm);
}

.field input::placeholder,
.field textarea::placeholder {
  color: oklch(0.92 0.01 250 / 0.4);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--color-teal-bright);
  outline-offset: 2px;
  border-color: var(--color-teal-bright);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: oklch(0.92 0.01 250 / 0.62);
}

.form-status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-teal-bright);
  min-height: 1.2em;
}

.form-status[hidden] {
  display: none;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12) var(--space-8);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}

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

.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 34ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* =========================================================================
   Scroll reveal (CSS-driven, no CLS)
   ========================================================================= */

.reveal {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    animation: none;
  }
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero-aside {
    border-left: none;
    border-top: 1px solid oklch(1 0 0 / 0.12);
    padding-left: 0;
    padding-top: var(--space-6);
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-10);
  }

  .section-head {
    grid-template-columns: 1fr;
  }

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

  .approach-copy {
    position: static;
  }

  .principles-inner {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    height: calc(100dvh - 68px);
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-8) var(--space-6);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out);
    z-index: 90;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--space-2);
  }

  .main-nav a:not(.btn) {
    display: block;
    padding-block: var(--space-4);
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--color-divider);
  }

  .main-nav .btn {
    margin-top: var(--space-6);
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .service-index {
    padding-top: 0;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-aside {
    flex-direction: column;
    gap: var(--space-6);
  }
}
