/* ============================================================
   RAINY DAY SECURITY — v5
   Design System · Final Polish
   ============================================================ */

/* ─── CUSTOM PROPERTIES ──────────────────────────────────── */
:root {
  /* Colors */
  --bg:           #06101a;
  --bg-deep:      #030810;
  --bg-surface:   rgba(8, 20, 32, 0.92);
  --bg-card:      rgba(10, 24, 40, 0.6);
  --bg-card-alt:  rgba(6, 18, 30, 0.8);

  --teal:         #67d9e8;
  --teal-strong:  #149ab0;
  --teal-dim:     rgba(103, 217, 232, 0.1);
  --teal-glow:    rgba(103, 217, 232, 0.22);
  --teal-border:  rgba(103, 217, 232, 0.18);
  --teal-border-h:rgba(103, 217, 232, 0.4);

  --warm:         #ebdbc5;
  --warm-strong:  #d8b892;
  --warm-dim:     rgba(235, 219, 197, 0.1);

  --text-head:    #eef5f8;
  --text-body:    #c8dae4;
  --text-muted:   #8aacbd;

  --border:       rgba(103, 217, 232, 0.14);
  --border-strong:rgba(103, 217, 232, 0.28);

  --error:        #e85c5c;
  --error-dim:    rgba(232, 92, 92, 0.12);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-head:    'Sora', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Spacing */
  --container:    min(1180px, 92vw);
  --section-y:    clamp(5rem, 9vw, 8rem);
  --gap:          clamp(1.5rem, 3vw, 2.5rem);

  /* Radius */
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Transitions */
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --spring:  cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ─── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--teal);
  color: var(--bg-deep);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--r);
  transform: translateY(-200%);
  z-index: 999;
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: var(--container);
  margin-inline: auto;
}

/* ─── TYPOGRAPHY HELPERS ─────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-head);
  letter-spacing: -0.02em;
}

.section-header {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--warm);
  color: #0a1620;
  border-color: var(--warm);
}
.btn-primary:hover {
  background: var(--warm-strong);
  border-color: var(--warm-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(235, 219, 197, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-head);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--teal-border-h);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--teal-dim);
}

.btn-teal {
  background: var(--teal-dim);
  color: var(--teal);
  border-color: var(--teal-border);
}
.btn-teal:hover {
  background: rgba(103, 217, 232, 0.18);
  border-color: var(--teal-border-h);
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1rem;
  padding: 1.1rem 2.25rem;
}
.btn-sm {
  font-size: 0.82rem;
  padding: 0.6rem 1.25rem;
}

/* ─── LOGO IMAGE TREATMENT ───────────────────────────────── */
/* Mini logo in nav — same fade treatment, no frame */
.nav-logo-img {
  height: 104px;
  width: auto;
  display: block;
  flex-shrink: 0;
  -webkit-mask-image:
    linear-gradient(to bottom, black 50%, transparent 90%),
    radial-gradient(
      ellipse 65% 68% at 50% 52%,
      black 0%,
      black 30%,
      rgba(0,0,0,0.8) 50%,
      rgba(0,0,0,0.3) 68%,
      transparent     82%
    );
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to bottom, black 50%, transparent 90%),
    radial-gradient(
      ellipse 65% 68% at 50% 52%,
      black 0%,
      black 30%,
      rgba(0,0,0,0.8) 50%,
      rgba(0,0,0,0.3) 68%,
      transparent     82%
    );
  mask-composite: intersect;
}

.nav-logo-img--sm { height: 86px; }

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              padding 0.35s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(3, 8, 16, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
  padding: 1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.2em;
}
.wordmark-top {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal);
  transition: color 0.3s;
}
.wordmark-bottom {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--warm);
  opacity: 0.7;
  transition: color 0.3s, opacity 0.3s;
}
.nav-brand:hover .wordmark-top    { color: var(--teal-strong); }
.nav-brand:hover .wordmark-bottom { opacity: 1; }
.nav-wordmark--sm .wordmark-top    { font-size: 1rem; color: var(--teal); }
.nav-wordmark--sm .wordmark-bottom { font-size: 0.85rem; color: var(--warm); opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.875rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-head);
  background: var(--teal-dim);
}
.nav-link.active {
  color: var(--teal);
}
.nav-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.nav-cta {
  margin-left: 0.5rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  margin-left: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-toggle:hover { background: var(--teal-dim); }
.nav-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-head);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile menu — smooth slide-down */
.nav-mobile {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  padding: 0 0;
  border-top: 1px solid transparent;
  background: rgba(3, 8, 16, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition:
    max-height 0.35s var(--ease),
    opacity 0.25s var(--ease),
    visibility 0s linear 0.35s,
    padding 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.nav-mobile[aria-hidden="false"] {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  padding: 1rem 0 1.5rem;
  border-top-color: var(--border);
  transition:
    max-height 0.35s var(--ease),
    opacity 0.25s var(--ease) 0.05s,
    visibility 0s linear,
    padding 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem;
  gap: 0.125rem;
}
.nav-mobile .nav-link {
  font-size: 1rem;
  padding: 0.75rem 1rem;
}
.nav-mobile .btn {
  margin: 0.75rem 1.25rem 0;
  justify-content: center;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 80svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 80%, rgba(103, 217, 232, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 600;
  line-height: 0.92;
  color: var(--text-head);
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  animation: fade-up 0.8s var(--ease) 0.1s both;
}
.hero-headline em {
  font-style: italic;
  color: var(--warm);
}

.hero-eyebrow {
  justify-content: center;
  animation: fade-up 0.7s var(--ease) 0s both;
}
.hero-eyebrow::before { display: none; }

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-body);
  line-height: 1.65;
  max-width: 48ch;
  margin-bottom: 2.5rem;
  animation: fade-up 0.8s var(--ease) 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  animation: fade-up 0.8s var(--ease) 0.3s both;
}

.hero-rule {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 50vw);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(103, 217, 232, 0.55) 35%,
    rgba(103, 217, 232, 0.55) 65%,
    transparent
  );
  box-shadow: 0 0 12px rgba(103, 217, 232, 0.2);
  animation: fade-in 1s var(--ease) 0.6s both;
}

/* ─── LOGO REVEAL (homepage) ─────────────────────────────── */
.logo-reveal-section {
  display: flex;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.logo-reveal-wrap {
  width: min(500px, 84vw);
  position: relative;
  isolation: isolate;
  opacity: 0;
  transform: scale(0.9) translateY(30px);
  filter: blur(16px);
  transition:
    opacity 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1.4s cubic-bezier(0.34, 1.15, 0.64, 1),
    filter 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.logo-reveal-wrap.orb-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* Full image with aggressive edge fade — layered masks */
.logo-fade-img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image:
    linear-gradient(to bottom, black 55%, transparent 88%),
    radial-gradient(
      ellipse 58% 60% at 50% 52%,
      black 0%,
      black 38%,
      rgba(0,0,0,0.88) 52%,
      rgba(0,0,0,0.5)  64%,
      rgba(0,0,0,0.15) 76%,
      transparent      86%
    );
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to bottom, black 55%, transparent 88%),
    radial-gradient(
      ellipse 58% 60% at 50% 52%,
      black 0%,
      black 38%,
      rgba(0,0,0,0.88) 52%,
      rgba(0,0,0,0.5)  64%,
      rgba(0,0,0,0.15) 76%,
      transparent      86%
    );
  mask-composite: intersect;
}

/* ─── ABOUT / CONTACT LOGO (smaller, same fade treatment) ── */
.logo-fade-sm {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image:
    linear-gradient(to bottom, black 53%, transparent 86%),
    radial-gradient(
      ellipse 56% 58% at 50% 52%,
      black 0%,
      black 36%,
      rgba(0,0,0,0.85) 50%,
      rgba(0,0,0,0.45) 63%,
      rgba(0,0,0,0.12) 74%,
      transparent      84%
    );
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to bottom, black 53%, transparent 86%),
    radial-gradient(
      ellipse 56% 58% at 50% 52%,
      black 0%,
      black 36%,
      rgba(0,0,0,0.85) 50%,
      rgba(0,0,0,0.45) 63%,
      rgba(0,0,0,0.12) 74%,
      transparent      84%
    );
  mask-composite: intersect;
}

/* ─── TYPEWRITER ─────────────────────────────────────────── */
.typewriter-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 2.25rem 0;
  text-align: center;
}
.typewriter-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}
.typewriter-threat {
  color: var(--teal);
  font-weight: 600;
}
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--teal);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.75s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── SECTORS (WHO WE SERVE) ─────────────────────────────── */
.sectors {
  padding-block: var(--section-y);
  padding-top: calc(var(--section-y) / 2);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(3,8,16,0.8) 50%, var(--bg) 100%);
  position: relative;
}
.sectors::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 20% 50%, rgba(20, 154, 176, 0.05), transparent 65%);
  pointer-events: none;
}

.sectors .section-title {
  color: var(--teal);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: border-color 0.3s, transform 0.3s var(--spring), box-shadow 0.3s;
}
.sector-card:hover {
  border-color: var(--teal-border-h);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--teal-border);
}

.sector-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--teal);
}

.sector-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.sector-desc {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ─── SERVICES (homepage) ───────────────────────────────── */
.services {
  padding-block: var(--section-y);
  padding-top: calc(var(--section-y) / 2);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(103, 217, 232, 0.04), transparent 70%);
  pointer-events: none;
}

.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.service-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}
.service-item:hover {
  border-color: var(--border-strong);
  background: rgba(103, 217, 232, 0.03);
}

.service-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 500;
  color: var(--teal);
  opacity: 0.35;
  line-height: 1;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
.service-item:hover .service-num { opacity: 0.7; }

.service-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  align-items: start;
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--text-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 40ch;
  align-self: center;
}

.services-more {
  margin-top: 3rem;
  display: flex;
  justify-content: flex-end;
}

/* ─── PRINCIPLES ─────────────────────────────────────────── */
.principles {
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
  position: relative;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.principle-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: border-color 0.3s, transform 0.3s var(--spring), box-shadow 0.3s;
}
.principle-item:hover {
  border-color: var(--teal-border-h);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.principle-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.625rem;
}

.principle-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-head);
  margin-bottom: 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.principle-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ─── CTA FULL ───────────────────────────────────────────── */
.cta-full {
  padding-block: var(--section-y);
  padding-top: calc(var(--section-y) / 2);
  position: relative;
  overflow: hidden;
}
.cta-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(103, 217, 232, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.cta-inner .section-title {
  max-width: 16ch;
}

.cta-inner .eyebrow {
  justify-content: center;
}
.cta-inner .eyebrow::before { display: none; }

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 44ch;
  margin-bottom: 0.5rem;
}

/* ─── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero {
  padding-top: clamp(7rem, 12vw, 10rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 20% 50%, rgba(103, 217, 232, 0.05), transparent 65%);
  pointer-events: none;
}
.page-hero-content { max-width: 780px; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.0;
  color: var(--text-head);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.page-hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-body);
  max-width: 50ch;
  line-height: 1.65;
}

/* ─── SERVICES PAGE ──────────────────────────────────────── */
.services-detail {
  padding-block: var(--section-y);
}
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.service-card-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.3s var(--spring), box-shadow 0.3s;
}
.service-card-detail:hover {
  border-color: var(--teal-border-h);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.service-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-head);
  letter-spacing: -0.01em;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  flex: 1;
}

/* Process steps */
.process {
  padding-block: var(--section-y);
  background: rgba(3, 8, 16, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  z-index: 1;
}

.step-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-head);
  margin-top: 0.25rem;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ─── ABOUT PAGE ─────────────────────────────────────────── */
.about-story {
  padding-block: var(--section-y);
}
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about-story-text p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.about-story-text p:last-child { margin-bottom: 0; }
.about-story-text p strong {
  color: var(--text-head);
  font-weight: 600;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-visual-inner {
  width: min(320px, 80vw);
  margin-inline: auto;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq {
  padding-block: var(--section-y);
}
.faq .section-header {
  max-width: 560px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  max-width: 740px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-head);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--teal); }
.faq-question:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
  border-radius: 4px;
}
.faq-question[aria-expanded="true"] { color: var(--teal); }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  border-color: var(--teal);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 60ch;
}

/* ─── CONTACT PAGE ───────────────────────────────────────── */
.contact-section {
  padding-block: var(--section-y);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}
.contact-info-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-info-value {
  font-size: 1.1rem;
  color: var(--text-head);
  font-weight: 500;
}
.contact-info-value a {
  color: var(--teal);
  transition: color 0.2s;
}
.contact-info-value a:hover { color: var(--warm); }

.contact-divider {
  margin-bottom: 2rem;
}
.contact-encourage {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.contact-logo-wrap {
  margin-top: 2.5rem;
  width: min(220px, 60vw);
}
.contact-logo-wrap .logo-fade-sm {
  opacity: 0.85;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(3, 8, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text-head);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(103, 217, 232, 0.12);
  background: rgba(103, 217, 232, 0.03);
}

/* Validation error state */
.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-dim);
}
.form-input.invalid:focus,
.form-select.invalid:focus,
.form-textarea.invalid:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-dim);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238aacbd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}
.form-select option { background: #0a1a2a; color: var(--text-head); }
.form-textarea { resize: vertical; min-height: 130px; }

.form-submit-wrap {
  margin-top: 1.5rem;
}
.form-submit {
  width: 100%;
  justify-content: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 600;
}
.form-success.visible {
  display: block;
  animation: success-in 0.5s var(--ease) both;
}
.form-success-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding-block: clamp(3.5rem, 5vw, 4.5rem) clamp(2rem, 3vw, 2.5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 28ch;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-link {
  font-size: 0.92rem;
  color: var(--text-body);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--teal); }
.footer-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--teal); }
.footer-legal a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── SCROLL ANIMATIONS ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 80ms; }
.fade-up.delay-2 { transition-delay: 160ms; }
.fade-up.delay-3 { transition-delay: 240ms; }
.fade-up.delay-4 { transition-delay: 320ms; }
.fade-up.delay-5 { transition-delay: 400ms; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── DIVIDER ────────────────────────────────────────────── */
.divider {
  border: none;
  height: 1px;
  margin: 0;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-strong) 30%,
    var(--border-strong) 70%,
    transparent
  );
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .service-body { grid-template-columns: 1fr; gap: 0.5rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .about-story-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 320px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-img { height: 72px; }
  .hero-content { align-items: center; }
  .hero-sub { max-width: 52ch; }
  .eyebrow { justify-content: center; }
  .sectors-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .service-item { grid-template-columns: 80px 1fr; }
  .services-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-logo-img { height: 58px; }
  .wordmark-top { font-size: 1.35rem; }
  .wordmark-bottom { font-size: 1.1rem; }
  .hero-headline { font-size: clamp(3rem, 12vw, 4.5rem); }
  .sectors-grid { max-width: 100%; }
  .principles-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .process-steps { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 60px 1fr; }
  .service-num { font-size: 2.5rem; }
  .hero-actions { justify-content: center; }
}

/* ─── ACCESSIBILITY ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up {
    opacity: 1;
    transform: none;
  }
  .logo-reveal-wrap {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
