/* — 5/4 Architecture — Homepage Styles — */

/* — DESIGN TOKENS — */
:root {
  --bg: #f8f7f5;
  --bg-dark: #0e1117;
  --bg-blue: #192338;
  --bg-sky: #d8e7f7;
  --bg-blue-mid: #9fb9d8;
  --bg-night: #15253c;
  --bg-deep: #050811;
  --text: #0e1117;
  --text-muted: #5f5a54;
  --placeholder: #d5d2cc;
  --white: #f8f7f5;
  --border: #e4e0da;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  --max-w: 1280px;
  --gutter: clamp(24px, 5vw, 72px);
  --section-v: clamp(80px, 10vw, 140px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.30, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-soft: cubic-bezier(0.45, 0, 0.55, 1);
  --c-ivory-rgb: 248, 247, 245;
  --c-blue-rgb: 248, 249, 252;
  --shadow-deep: 0 12px 80px rgba(0,0,0,1), 0 6px 40px rgba(0,0,0,1), 0 0px 20px rgba(0,0,0,1), 0 0px 4px rgba(0,0,0,1);
}

/* — RESET + BASE — */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

body > * {
  max-width: 100%;
}

main {
  overflow-x: clip;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  min-width: 100%;
  background: linear-gradient(180deg,
      #ffffff 0%,
      #fbfdff 14%,
      #edf4fc 30%,
      var(--bg-sky) 44%,
      var(--bg-blue-mid) 58%,
      #49698d 70%,
      var(--bg-night) 82%,
      var(--bg-deep) 100%);
}

.page-home {
  --home-accent-x: 0px;
  --home-accent-y: 0px;
}

.page-home .page-background {
  background: linear-gradient(180deg,
      #172234 0%,
      #1c2a3f 14%,
      #233650 30%,
      #21334d 46%,
      #18283e 62%,
      #101b2c 78%,
      #08111d 91%,
      #050811 100%);
}

.page-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.82) 0, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 76% 42%, rgba(154, 188, 224, 0.28) 0, rgba(154, 188, 224, 0) 28%),
    radial-gradient(circle at 50% 78%, rgba(11, 24, 42, 0.18) 0, rgba(11, 24, 42, 0) 34%);
}

.page-home .page-background::after {
  background:
    radial-gradient(circle at calc(18% + var(--home-accent-x) * 0.08) calc(14% + var(--home-accent-y) * 0.04), rgba(148, 72, 86, 0.14) 0, rgba(148, 72, 86, 0) 22%),
    radial-gradient(circle at calc(78% - var(--home-accent-x) * 0.08) calc(34% + var(--home-accent-y) * 0.06), rgba(89, 126, 184, 0.18) 0, rgba(89, 126, 184, 0) 26%),
    radial-gradient(circle at calc(48% + var(--home-accent-x) * 0.04) 78%, rgba(3, 9, 18, 0.48) 0, rgba(3, 9, 18, 0) 40%),
    linear-gradient(180deg, rgba(5, 8, 17, 0.18) 0%, rgba(5, 8, 17, 0.42) 100%);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

input,
select,
textarea,
button {
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}

h3 {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

p {
  color: var(--text-muted);
  max-width: 58ch;
  overflow-wrap: anywhere;
}

p+p {
  margin-top: 1.25rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: rgba(var(--c-ivory-rgb), 0.55);
}

.link-arrow {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: border-color 0.25s;
}

.link-arrow:hover {
  border-color: var(--text);
}

/* — PLACEHOLDER BLOCKS — Visible, structured stand-ins until photography is added.
   Hero uses soft atmospheric overlays above the shared page gradient.
   Striped gray blocks remain for inline photo areas. — */

/* Hero slides: soft atmospheric overlays layered over the page gradient */
.hero-slide {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Inline photo blocks: warm gray with subtle diagonal texture + label */
.photo-block {
  display: block;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--placeholder);
  background-image: repeating-linear-gradient(-45deg,
      transparent,
      transparent 8px,
      rgba(0, 0, 0, 0.03) 8px,
      rgba(0, 0, 0, 0.03) 9px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.38s var(--ease-out), box-shadow 0.38s var(--ease-out);
}

.photo-block:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(120, 180, 255, 0.35),
    0 20px 48px rgba(0, 10, 50, 0.32),
    0 0 32px rgba(80, 150, 255, 0.22),
    0 0 64px rgba(60, 120, 255, 0.12),
    inset 0 1px 0 rgba(180, 220, 255, 0.2);
}

.photo-block::after {
  content: 'PHOTO';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(0, 0, 0, 0.2);
}

.project-photo {
  flex-shrink: 0;
  position: relative;
  background-color: var(--placeholder);
  background-image: repeating-linear-gradient(-45deg,
      transparent,
      transparent 6px,
      rgba(0, 0, 0, 0.03) 6px,
      rgba(0, 0, 0, 0.03) 7px);
}

.project-photo::after {
  content: 'PHOTO';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(0, 0, 0, 0.18);
}

/* — NAV — Glass treatment over hero. Solid cream once scrolled past hero. Hides on scroll-down, shows instantly on scroll-up. — */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(120%);
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.18s ease-out, transform 0.28s var(--ease);
}

/* Solid once hero is scrolled past */
.site-nav.nav-solid {
  background: rgba(var(--c-ivory-rgb), 0.92);
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(14, 17, 23, 0.08);
}

/* Hides on scroll down, removed instantly on scroll up */
.site-nav.nav-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 50px;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 50px;
}

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

.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

/* Active page link — centered, bold, 15% larger, blue underlined */
.nav-link--active {
  display: inline-block;
  font-size: calc(0.78rem * 1.15);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #87aef6;
  padding-bottom: 5px;
  border-bottom: 2px solid #87aef6;
}

/* Solid nav (scrolled past hero) — switch everything to dark */
.site-nav.nav-solid .nav-link {
  color: rgba(14, 17, 23, 0.75);
}

.site-nav.nav-solid .nav-link:hover {
  color: #000000;
}

.site-nav.nav-solid .nav-link--active {
  color: #2a5db0;
  border-bottom-color: #2a5db0;
}

/* Mobile hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.site-nav.nav-solid .nav-toggle span {
  background: rgba(14, 17, 23, 0.9);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: linear-gradient(180deg, #18304c 0%, var(--bg-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition: opacity 0.3s var(--ease), visibility 0s;
}

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(var(--c-ivory-rgb), 0.8);
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--white);
}

/* — HERO — 100svh full-bleed. Sits directly on the shared page gradient.
   5/4 logo + tagline centered. 5-slot slideshow, dot indicators, scroll cue. — */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* transform handled by Ken Burns animation below — not transition */
  transition: opacity 1.4s var(--ease);
}

.hero-slide.active {
  opacity: 1;
}

/* ── Ken Burns — continuous motion while each slide is active ─────────────
   5 unique movement patterns, one per slide.
   Duration 6.5s > the 5s interval so motion is always mid-way
   when the next slide fades over it (never snaps to an end state).
   All from/to values keep scale ≥ 1.05 to prevent edge bleed
   when the translate exceeds the visible area.
   ─────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  /* Slide 1 — slow zoom in from center */
  @keyframes kb-zoom-in {
    from { transform: scale(1.05) translate(0,    0);    }
    to   { transform: scale(1.14) translate(-1%, -0.5%); }
  }

  /* Slide 2 — pan right to left with slight zoom */
  @keyframes kb-pan-left {
    from { transform: scale(1.1) translate(2%,  0.5%); }
    to   { transform: scale(1.06) translate(-1.5%, -0.5%); }
  }

  /* Slide 3 — pan left to right */
  @keyframes kb-pan-right {
    from { transform: scale(1.1) translate(-2%, 0.5%); }
    to   { transform: scale(1.06) translate(1.5%, -0.5%); }
  }

  /* Slide 4 — slow zoom out + drift down-right */
  @keyframes kb-zoom-out {
    from { transform: scale(1.14) translate(-1%, -1%); }
    to   { transform: scale(1.05) translate(0.5%,  0.5%); }
  }

  /* Slide 5 — diagonal drift (top-right to bottom-left) */
  @keyframes kb-drift {
    from { transform: scale(1.07) translate(1.5%, -1%); }
    to   { transform: scale(1.12) translate(-1%, 0.5%); }
  }

  .hero-slide:nth-child(1).active { animation: kb-zoom-in   6.5s var(--ease-out) forwards; }
  .hero-slide:nth-child(2).active { animation: kb-pan-left  6.5s var(--ease-in-out-soft) forwards; }
  .hero-slide:nth-child(3).active { animation: kb-pan-right 6.5s var(--ease-in-out-soft) forwards; }
  .hero-slide:nth-child(4).active { animation: kb-zoom-out  6.5s var(--ease-out) forwards; }
  .hero-slide:nth-child(5).active { animation: kb-drift     6.5s var(--ease-in-out-soft) forwards; }
}

.hero-slide:nth-child(1) {
  background-image:
    radial-gradient(circle at 22% 22%, rgba(178, 204, 232, 0.34) 0, rgba(178, 204, 232, 0) 27%),
    radial-gradient(circle at 78% 28%, rgba(92, 128, 178, 0.34) 0, rgba(92, 128, 178, 0) 34%),
    radial-gradient(circle at 50% 88%, rgba(6, 15, 28, 0.32) 0, rgba(6, 15, 28, 0) 40%);
}

.hero-slide:nth-child(2) {
  background-image:
    radial-gradient(circle at 50% 16%, rgba(183, 206, 231, 0.28) 0, rgba(183, 206, 231, 0) 25%),
    radial-gradient(circle at 18% 58%, rgba(82, 121, 174, 0.24) 0, rgba(82, 121, 174, 0) 36%),
    radial-gradient(circle at 80% 78%, rgba(6, 14, 27, 0.34) 0, rgba(6, 14, 27, 0) 36%);
}

.hero-slide:nth-child(3) {
  background-image:
    radial-gradient(circle at 76% 20%, rgba(175, 199, 226, 0.28) 0, rgba(175, 199, 226, 0) 25%),
    radial-gradient(circle at 30% 34%, rgba(99, 135, 185, 0.32) 0, rgba(99, 135, 185, 0) 34%),
    radial-gradient(circle at 58% 86%, rgba(6, 13, 26, 0.36) 0, rgba(6, 13, 26, 0) 38%);
}

.hero-slide:nth-child(4) {
  background-image:
    radial-gradient(circle at 34% 18%, rgba(184, 205, 229, 0.3) 0, rgba(184, 205, 229, 0) 25%),
    radial-gradient(circle at 74% 58%, rgba(84, 119, 168, 0.28) 0, rgba(84, 119, 168, 0) 36%),
    radial-gradient(circle at 16% 82%, rgba(5, 14, 28, 0.34) 0, rgba(5, 14, 28, 0) 36%);
}

.hero-slide:nth-child(5) {
  background-image:
    radial-gradient(circle at 56% 26%, rgba(176, 199, 226, 0.28) 0, rgba(176, 199, 226, 0) 25%),
    radial-gradient(circle at 18% 38%, rgba(88, 124, 176, 0.3) 0, rgba(88, 124, 176, 0) 34%),
    radial-gradient(circle at 84% 82%, rgba(5, 13, 26, 0.38) 0, rgba(5, 13, 26, 0) 40%);
}

/* Subtle vignette overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 28%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 32%, rgba(21, 37, 60, 0.18) 100%);
}

.page-home .hero-overlay {
  background:
    linear-gradient(to bottom, rgba(3, 8, 17, 0.86) 0%, rgba(3, 8, 17, 0.46) 34%, rgba(3, 8, 17, 0.7) 100%),
    radial-gradient(circle at 24% 32%, rgba(143, 56, 72, 0.1) 0%, rgba(143, 56, 72, 0) 24%),
    radial-gradient(circle at 74% 62%, rgba(84, 118, 176, 0.14) 0%, rgba(84, 118, 176, 0) 28%);
}

.hero-center {
  position: relative;
  z-index: 2;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding: 0 var(--gutter);
}

.hero-logo {
  width: clamp(120px, 18vw, 220px);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 12px 80px rgba(0,0,0,1)) drop-shadow(0 6px 40px rgba(0,0,0,1)) drop-shadow(0 0px 20px rgba(0,0,0,1)) drop-shadow(0 0px 4px rgba(0,0,0,1));
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.14em;
  max-width: none;
  margin: 0;
  text-shadow: var(--shadow-deep);
  overflow-wrap: anywhere;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 17, 23, 0.2);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: rgba(36, 75, 126, 0.78);
  transform: scale(1.4);
}

/* Scroll cue — vertical line at bottom right */
.hero-scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(14, 17, 23, 0.32));
  animation: scrollPulse 1.8s 1s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.6);
  }

  40% {
    opacity: 1;
    transform: translateY(0px) scaleY(1);
  }

  100% {
    opacity: 0;
    transform: translateY(8px) scaleY(0.8);
  }
}

/* — ABOUT SECTION — Title with flanking lines. 3-column: photo | text | photo. — */
.section-about {
  padding: var(--section-v) var(--gutter) clamp(26px, 4vw, 52px);
  background: transparent;
}

.page-home .section-about,
.page-home .section-projects {
  position: relative;
}

.page-home .section-about {
  color: rgba(var(--c-ivory-rgb), 0.9);
}

.page-home .about-title {
  color: rgba(var(--c-ivory-rgb), 0.94);
  text-shadow: 0 8px 28px rgba(2, 6, 14, 0.48);
}

.page-home .about-header-line {
  background: rgba(var(--c-ivory-rgb), 0.24);
}

.page-home .about-text-block p {
  color: rgba(var(--c-ivory-rgb), 0.82);
  text-shadow: 0 3px 18px rgba(2, 6, 14, 0.5);
}

.page-home .about-text-block .link-arrow {
  color: rgba(var(--c-ivory-rgb), 0.92);
  border-bottom-color: rgba(var(--c-ivory-rgb), 0.34);
}

.page-home .about-text-block .link-arrow:hover {
  border-bottom-color: rgba(var(--c-ivory-rgb), 0.72);
}

/* ── Title row: ─── ABOUT ─── */
.about-header {
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.about-header-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--text);
  line-height: 1;
  margin: 0;
}

/* ── Three-column body: photo | text | photo */
.about-body {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.about-photo-left,
.about-photo-right {
  width: 100%;
}

.about-photo-left .photo-block,
.about-photo-right .photo-block {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.page-home .about-photo-left .photo-block::before,
.page-home .about-photo-right .photo-block::before,
.page-home .projects-bubble::before {
  content: '';
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: -1;
  filter: blur(34px);
  opacity: 0.72;
}

.page-home .about-photo-left .photo-block::before {
  background:
    radial-gradient(circle at calc(24% + var(--home-accent-x) * 0.12) calc(28% + var(--home-accent-y) * 0.08), rgba(162, 71, 88, 0.26) 0, rgba(162, 71, 88, 0) 34%),
    radial-gradient(circle at 70% 78%, rgba(96, 128, 188, 0.2) 0, rgba(96, 128, 188, 0) 32%);
}

.page-home .about-photo-right .photo-block::before {
  background:
    radial-gradient(circle at calc(72% - var(--home-accent-x) * 0.12) calc(22% + var(--home-accent-y) * 0.1), rgba(102, 136, 201, 0.24) 0, rgba(102, 136, 201, 0) 32%),
    radial-gradient(circle at 24% 76%, rgba(157, 64, 82, 0.2) 0, rgba(157, 64, 82, 0) 30%);
}

.about-text-block {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.about-text-block p+p {
  margin-top: 1.25rem;
}

.about-text-block .link-arrow {
  margin-top: 2rem;
}

/* ── Per-child reveal animation — replaces old clip-path wrapper approach */
@media (prefers-reduced-motion: no-preference) {
  /* Wrapper is transparent passthrough — no clip-path */
  .about-animate {
    opacity: 1;
    clip-path: none;
  }

  /* Header: title fades in, lines grow outward from center */
  .about-animate .about-header {
    opacity: 0;
    transition: opacity 0.7s var(--ease) 0.1s;
  }

  .about-animate .about-header-line {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s var(--ease-out) 0.2s;
  }

  .about-animate.about-visible .about-header {
    opacity: 1;
  }

  .about-animate.about-visible .about-header-line {
    transform: scaleX(1);
  }

  /* Left photo: starts center-right, expands outward to the left */
  .about-animate .about-photo-left {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.9s var(--ease-out) 0.15s, transform 0.9s var(--ease-spring) 0.15s;
  }

  /* Center text: scales up from center, blooms outward */
  .about-animate .about-text-block {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.85s var(--ease) 0.3s, transform 0.85s var(--ease-out) 0.3s;
  }

  .about-animate.about-visible .about-text-block {
    opacity: 1;
    transform: scale(1);
  }

  /* Right photo: starts center-left, expands outward to the right */
  .about-animate .about-photo-right {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.9s var(--ease-out) 0.15s, transform 0.9s var(--ease-spring) 0.15s;
  }

  .about-animate.about-visible .about-photo-left,
  .about-animate.about-visible .about-photo-right {
    opacity: 1;
    transform: translateX(0);
  }
}

/* — PROJECTS SECTION — Horizontal glass-card layout: header + 3 glassmorphism cards. — */
.section-projects {
  padding: clamp(18px, 3vw, 40px) var(--gutter) var(--section-v);
  background: transparent;
}

/* ── Section header (centered above cards) */
.projects-header {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto clamp(2rem, 3.5vw, 3rem);
  padding-bottom: 1.15rem;
  text-align: center;
}

.projects-header::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 100%;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,
      rgba(244, 250, 255, 0) 0%,
      rgba(244, 250, 255, 1) 16%,
      rgba(194, 226, 255, 0.98) 50%,
      rgba(244, 250, 255, 1) 84%,
      rgba(244, 250, 255, 0) 100%);
  box-shadow:
    0 0 14px rgba(110, 170, 255, 0.42),
    0 0 34px rgba(110, 170, 255, 0.28),
    0 0 60px rgba(194, 226, 255, 0.12);
  transform: translateX(-50%) scaleX(1);
  transform-origin: center center;
}

.projects-heading {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
  padding: 0 0.08em;
  text-shadow:
    0 0 8px rgba(110, 170, 255, 0.38),
    0 0 18px rgba(110, 170, 255, 0.26),
    0 0 34px rgba(110, 170, 255, 0.18),
    0 2px 12px rgba(244, 250, 255, 0.2);
}

@keyframes projectsLineExpand {
  from {
    opacity: 0;
    transform: scaleX(0.06);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* ── Horizontal card grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

/* Shared glass panel that contains the entire selected work set */
.projects-bubble {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: 30px;
  position: relative;
  background:
    linear-gradient(160deg, rgba(68, 122, 214, 0.18) 0%, rgba(18, 38, 74, 0.38) 100%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(130, 190, 255, 0.2);
  box-shadow:
    0 18px 52px rgba(0, 8, 34, 0.35),
    inset 0 1px 0 rgba(200, 228, 255, 0.12);
}

.page-home .projects-bubble {
  background:
    linear-gradient(160deg, rgba(34, 60, 100, 0.38) 0%, rgba(11, 22, 40, 0.56) 100%);
  border: 1px solid rgba(132, 166, 214, 0.18);
  box-shadow:
    0 18px 52px rgba(0, 8, 24, 0.32),
    inset 0 1px 0 rgba(214, 229, 255, 0.08);
}

.page-home .projects-bubble::before {
  inset: -12%;
  background:
    radial-gradient(circle at calc(18% + var(--home-accent-x) * 0.1) 30%, rgba(153, 58, 77, 0.2) 0, rgba(153, 58, 77, 0) 28%),
    radial-gradient(circle at calc(82% - var(--home-accent-x) * 0.1) 72%, rgba(85, 120, 186, 0.22) 0, rgba(85, 120, 186, 0) 30%);
}

.projects-bubble,
.project-card,
.contact-form-wrap,
.svc-banner-photo,
.svc-pm-photo {
  position: relative;
}

.page-home .project-card {
  background: linear-gradient(165deg, rgba(12, 24, 45, 0.68), rgba(8, 15, 29, 0.82));
  border: 1px solid rgba(122, 155, 208, 0.16);
  box-shadow:
    0 10px 28px rgba(0, 8, 26, 0.34),
    inset 0 1px 0 rgba(168, 197, 242, 0.08);
}

/* ── Glass card */
.project-card {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(18, 38, 74, 0.56), rgba(10, 22, 42, 0.72));
  backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(110, 170, 255, 0.18);
  box-shadow:
    0 8px 30px rgba(0, 10, 40, 0.28),
    inset 0 1px 0 rgba(160, 210, 255, 0.12);
  transition: transform 0.38s var(--ease-out), box-shadow 0.38s var(--ease-out);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.012);
  box-shadow:
    0 0 0 1px rgba(120, 180, 255, 0.35),
    0 20px 48px rgba(0, 10, 50, 0.45),
    0 0 32px rgba(80, 150, 255, 0.22),
    0 0 64px rgba(60, 120, 255, 0.12),
    inset 0 1px 0 rgba(180, 220, 255, 0.28);
}

.project-card .project-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: rgba(28, 74, 150, 0.42);
  background-image: repeating-linear-gradient(-45deg,
      transparent,
      transparent 8px,
      rgba(160, 205, 255, 0.06) 8px,
      rgba(160, 205, 255, 0.06) 9px);
}

.project-card .project-photo::after {
  color: rgba(198, 225, 255, 0.26);
}

.project-card-body {
  padding: 1.25rem 1.5rem 1.6rem;
}

.project-type {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(176, 216, 255, 0.82);
  margin-bottom: 0.45rem;
}

.project-card h3 {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: rgba(var(--c-ivory-rgb), 0.92);
  overflow-wrap: anywhere;
}

/* — PROJECT CARD REVEAL ANIMATION — Fades up on scroll entry. — */
@media (prefers-reduced-motion: no-preference) {
  .projects-header::after {
    opacity: 0;
    filter: blur(8px);
    transform: translateX(-50%) scaleX(0.01);
    transition: opacity 0.75s var(--ease-out), transform 1.9s var(--ease-out), filter 1.9s var(--ease-out);
  }

  .projects-header.projects-header-visible::after {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) scaleX(1);
  }

  .reveal-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out) var(--delay, 0s), transform 0.75s var(--ease-spring) var(--delay, 0s);
  }

  .reveal-card.card-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* — MISSION SECTION — Sits over the dark gradient. Pulled up into the projects section. — */
.section-mission {
  background: transparent;
  padding: var(--section-v) var(--gutter);
  margin-top: clamp(-96px, -8vw, -64px);
  position: relative;
  z-index: 2;
}

.mission-animate {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* ── Header: ─── Our Mission ─── */
.mission-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.mission-header-line {
  flex: 1;
  height: 1px;
  background: rgba(var(--c-ivory-rgb), 0.28);
}

.mission-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--white);
  text-shadow: 0 8px 30px rgba(2, 6, 14, 0.52);
  line-height: 1;
  margin: 0;
}

.mission-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--white);
  letter-spacing: 0.01em;
  max-width: none;
  text-shadow: 0 4px 24px rgba(2, 6, 14, 0.62);
}

/* — MISSION EXPAND ANIMATION — Lines grow outward, title fades, quote clip-path blooms. — */
@media (prefers-reduced-motion: no-preference) {
  /* Title: fades in with a gentle scale up */
  .mission-animate .mission-title {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.9s var(--ease) 0.1s, transform 0.9s var(--ease-out) 0.1s;
  }

  .mission-animate.mission-visible .mission-title {
    opacity: 1;
    transform: scale(1);
  }

  /* Lines: grow outward from center — slow and deliberate */
  .mission-animate .mission-header-line {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 1.8s var(--ease-out) 0.25s;
  }

  .mission-animate.mission-visible .mission-header-line {
    transform: scaleX(1);
  }

  /* Quote: clip-path blooms outward from center + fades in */
  .mission-animate .mission-quote {
    opacity: 0;
    clip-path: inset(0 18% 0 18%);
    transition: opacity 2s var(--ease-out) 0.45s, clip-path 2s var(--ease-out) 0.45s;
  }

  .mission-animate.mission-visible .mission-quote {
    opacity: 1;
    clip-path: inset(0 0% 0 0%);
  }

  /* — SECTION REVEAL ANIMATION — Fades up on scroll entry (contact). — */
  .reveal-section {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
    transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  }

  .reveal-section.section-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* — CONTACT CTA SECTION — Centered: eyebrow + heading + button + secondary link. — */
.section-contact {
  position: relative;
  z-index: 1;
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(88px, 11vw, 140px) var(--gutter) clamp(96px, 12vw, 156px);
}

.section-contact::before {
  content: '';
  position: absolute;
  inset: -10% 0 0;
  background:
    linear-gradient(180deg, rgba(var(--c-ivory-rgb), 0.02) 0%, rgba(54, 74, 103, 0.14) 28%, rgba(5, 8, 17, 0.3) 100%),
    radial-gradient(circle at 50% 12%, rgba(141, 174, 214, 0.14) 0%, rgba(141, 174, 214, 0) 42%);
  pointer-events: none;
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  text-align: center;
  padding: clamp(2.6rem, 5vw, 4.75rem) clamp(1.75rem, 6vw, 5rem);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(var(--c-ivory-rgb), 0.08) 0%, rgba(151, 176, 205, 0.05) 24%, rgba(7, 13, 24, 0.32) 100%),
    rgba(9, 14, 24, 0.28);
  backdrop-filter: blur(14px) saturate(118%);
  border: 1px solid rgba(var(--c-ivory-rgb), 0.12);
  box-shadow:
    0 24px 70px rgba(1, 4, 10, 0.28),
    inset 0 1px 0 rgba(var(--c-ivory-rgb), 0.14);
}

.contact-inner::before,
.contact-inner::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.contact-inner::before {
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(var(--c-ivory-rgb), 0.09) 0%, rgba(var(--c-ivory-rgb), 0) 34%);
  opacity: 0.8;
}

.contact-inner::after {
  left: 12%;
  right: 12%;
  bottom: -34%;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(109, 145, 194, 0.24) 0%, rgba(109, 145, 194, 0) 72%);
  transform: translate(calc(var(--glow-orbit-x) * 0.55), calc(var(--glow-orbit-y) * -0.35));
  transition: transform 0.45s var(--ease-out);
}

.contact-inner>* {
  position: relative;
  z-index: 1;
}

.contact-inner h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0.6rem auto 2.2rem;
  max-width: 18ch;
  line-height: 1.16;
  text-wrap: balance;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.95rem 2.9rem;
  border: 1px solid rgba(var(--c-ivory-rgb), 0.22);
  border-radius: 999px;
  background: rgba(var(--c-ivory-rgb), 0.08);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(var(--c-ivory-rgb), 0.12);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--bg-dark);
  transform: translateY(-1px);
}

/* Contact Now button — glowing blue ring matching contact page submit style */
.section-contact .btn-primary {
  border-color: rgba(150, 200, 255, 0.4);
  background: rgba(100, 160, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(140, 190, 255, 0.25),
    0 4px 24px rgba(60, 120, 255, 0.22),
    0 0 40px rgba(80, 140, 255, 0.1),
    inset 0 1px 0 rgba(200, 220, 255, 0.18);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), transform 0.3s;
}

.section-contact .btn-primary:hover {
  background: rgba(140, 190, 255, 0.22);
  border-color: rgba(180, 220, 255, 0.65);
  color: var(--white);
  box-shadow:
    0 0 0 1px rgba(170, 210, 255, 0.45),
    0 6px 36px rgba(80, 150, 255, 0.36),
    0 0 60px rgba(100, 160, 255, 0.18),
    inset 0 1px 0 rgba(220, 235, 255, 0.22);
  transform: translateY(-2px);
}

.btn-text {
  font-size: 0.8rem;
  color: rgba(var(--c-ivory-rgb), 0.68);
  border-bottom: 1px solid rgba(var(--c-ivory-rgb), 0.26);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}

.btn-text:hover {
  color: rgba(var(--c-ivory-rgb), 0.85);
  border-color: rgba(var(--c-ivory-rgb), 0.5);
}

/* — FOOTER — */
.site-footer {
  background: transparent;
  padding: 3.5rem var(--gutter);
  border-top: 1px solid rgba(var(--c-ivory-rgb), 0.06);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(var(--c-ivory-rgb), 0.65);
  max-width: none;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.footer-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--c-ivory-rgb), 0.38);
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: rgba(var(--c-ivory-rgb), 0.7);
}

.footer-copy {
  font-size: 0.68rem;
  color: rgba(var(--c-ivory-rgb), 0.28);
  max-width: none;
  margin: 0;
}

/* — RESPONSIVE — tablet — */
@media (max-width: 960px) {
  /* About: stack to single column on tablet */
  .about-body {
    grid-template-columns: 1fr;
  }

  .about-photo-left {
    order: 1;
  }

  .about-text-block {
    order: 2;
  }

  .about-photo-right {
    order: 3;
  }

  /* Projects: 2 columns on tablet */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* — RESPONSIVE — mobile — */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-v: 64px;
  }

  h2 {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
  }

  /* Hide desktop nav links, show hamburger */
  .nav-left,
  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .nav-brand {
    justify-content: flex-start;
  }

  .hero {
    min-height: 520px;
  }

  .hero-logo {
    width: clamp(104px, 34vw, 148px);
  }

  .hero-tagline {
    max-width: min(28ch, calc(100vw - var(--gutter) * 2));
    font-size: clamp(0.88rem, 4vw, 1.05rem);
    line-height: 1.45;
    letter-spacing: 0.08em;
  }

  .about-title,
  .mission-title,
  .projects-heading,
  .contact-inner h2,
  .svc-banner-title {
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .about-header,
  .mission-header,
  .svc-banner-header {
    gap: 0.9rem;
  }

  .projects-heading {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  /* Hide scroll cue on small screens */
  .hero-scroll-cue {
    display: none;
  }

  /* Projects: single column on mobile */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-projects {
    padding-bottom: var(--section-v);
  }

  .section-mission {
    margin-top: 0;
    padding-top: var(--section-v);
  }

  .mission-header {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .mission-title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .mission-quote {
    font-size: clamp(1.25rem, 6vw, 1.65rem);
    line-height: 1.52;
  }

  /* Contact: soften corners + tighten padding on phones */
  .contact-inner {
    border-radius: 28px;
    padding: 2.3rem 1.4rem 2.6rem;
  }
}

/* — CONTACT PAGE — contact.html form section styles — */

.contact-page-section {
  padding: calc(var(--nav-h) + var(--section-v)) var(--gutter) var(--section-v);
  min-height: 100svh;
  background: transparent;
}

.contact-page-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Header: ─── Get In Touch ─── */
.contact-page-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-page-line {
  flex: 1;
  height: 1px;
  background: rgba(var(--c-ivory-rgb), 0.22);
}

.contact-page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  white-space: nowrap;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
}

.contact-page-sub {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(var(--c-ivory-rgb), 0.55);
  margin-bottom: 3rem;
  max-width: 46ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-row {
  width: 100%;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-row--submit {
  padding-top: 0.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--c-ivory-rgb), 0.5);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(var(--c-ivory-rgb), 0.14);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(140, 195, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(100, 170, 255, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(var(--c-ivory-rgb), 0.22);
}

/* Select: remove native arrow, apply custom */
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Select wrapper for custom arrow */
.select-wrap {
  position: relative;
}

.select-wrap .select-arrow {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(var(--c-ivory-rgb), 0.4);
  font-size: 0.75rem;
  line-height: 1;
}

.select-wrap .select-arrow::after {
  content: '\2193';
  /* ↓ downward arrow */
}

/* Textarea */
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid rgba(var(--c-ivory-rgb), 0.45);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s, border-color 0.3s, gap 0.3s;
}

.form-submit:hover {
  background: rgba(var(--c-ivory-rgb), 0.08);
  border-color: rgba(var(--c-ivory-rgb), 0.75);
  gap: 1.1rem;
}

.form-submit-arrow {
  transition: transform 0.3s var(--ease-out);
}

.form-submit:hover .form-submit-arrow {
  transform: translateX(4px);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form select:invalid,
.contact-form textarea:invalid:not(:placeholder-shown),
.form-field.field-error input,
.form-field.field-error select,
.form-field.field-error textarea {
  border-color: rgba(255, 120, 120, 0.5);
}

/* — CONTACT PAGE RESPONSIVE — mobile (≤ 580px) — */
@media (max-width: 580px) {
  .form-row--split {
    grid-template-columns: 1fr;
  }
}

/* — CONTACT PAGE — MOTION — staggered load, header line bloom, field focus lift, submit shimmer — */

/* --- Animation 1 — Staggered page-load reveal --- */
.anim-hidden {
  opacity: 0;
  transform: translateY(22px);
}

@media (prefers-reduced-motion: no-preference) {
  .anim-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anim-hidden,
  .anim-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Animation 2 — Header lines bloom from center — Animation 3 — Form field focus lift --- */
@media (prefers-reduced-motion: no-preference) {
  .contact-page-line {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 1.4s var(--ease-out) 0.15s;
  }

  .contact-page-line.line-visible {
    transform: scaleX(1);
  }

  .form-field {
    transition: transform 0.25s var(--ease-spring);
  }

  .form-field.field-focused {
    transform: translateY(-2px);
  }
}

/* --- Animation 5 — Label brighten on focus (piggybacks field-focused) --- */
.form-field label {
  transition: color 0.2s ease;
}

.form-field.field-focused label {
  color: rgba(140, 195, 255, 0.85);
}

/* --- Animation 4 — Submit button shimmer sweep on hover --- */
.form-submit {
  position: relative;
  overflow: hidden;
}

.form-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
  transition: left 0.55s var(--ease-out);
  pointer-events: none;
}

.form-submit:hover::after {
  left: 160%;
}

/* — CONTACT PAGE — GLASSMORPHISM — scene background, outer card, inner field panels, pill button — */



/* ── Individual form field panels — each row gets a faint glass inset */
.contact-form .form-row {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}

/* ── Input / select / textarea — layered glass inside the row panels */
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: rgba(var(--c-ivory-rgb), 0.95);
  backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(150, 200, 255, 0.5);
  box-shadow:
    0 0 0 3px rgba(100, 170, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
}

/* ── Labels — slightly brighter on dark glass */
.contact-form .form-field label {
  color: rgba(200, 220, 255, 0.55);
  letter-spacing: 0.18em;
}

/* ── Pill submit button — glass with blue tint */
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 2.8rem;
  border-radius: 9999px;
  background: rgba(100, 160, 255, 0.15);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(150, 200, 255, 0.35);
  color: rgba(220, 235, 255, 0.95);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(60, 120, 255, 0.18),
    inset 0 1px 0 rgba(200, 220, 255, 0.2);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), gap 0.3s var(--ease-out);
}

.form-submit:hover {
  background: rgba(120, 175, 255, 0.24);
  border-color: rgba(180, 220, 255, 0.6);
  box-shadow:
    0 6px 32px rgba(80, 150, 255, 0.3),
    inset 0 1px 0 rgba(220, 235, 255, 0.25);
  gap: 1rem;
}

.form-submit:active {
  background: rgba(80, 130, 255, 0.12);
  transform: scale(0.98);
  transition-duration: 0.1s;
}

/* ── Submit row: remove the panel border — button is the standalone element */
.form-row--submit {
  background: transparent;
  border: none;
  padding: 0.5rem 0 0;
}

/* — CONTACT PAGE — TWO-COLUMN LAYOUT — */

/* Scene: darker overlay for readability and cleaner depth */
.contact-page-section {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(115deg, rgba(2, 5, 12, 0.94) 0%, rgba(5, 10, 20, 0.87) 38%, rgba(8, 15, 27, 0.72) 62%, rgba(7, 13, 24, 0.78) 100%),
    radial-gradient(circle at 22% 26%, rgba(96, 132, 180, 0.18) 0%, rgba(96, 132, 180, 0) 32%),
    radial-gradient(circle at 78% 68%, rgba(34, 57, 89, 0.2) 0%, rgba(34, 57, 89, 0) 34%),
    url('website%20images/Website/Contact/IMG_0130.jpeg');
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
}

.contact-page-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 16, 0.12) 0%, rgba(3, 7, 16, 0.24) 100%);
  pointer-events: none;
}

/* Layout: evenly balanced text block and form card */
.contact-page-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.75rem, 5vw, 5.5rem);
  max-width: 1180px;
  width: 100%;
  padding: clamp(0.5rem, 2vw, 1.5rem) 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.contact-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  max-width: 460px;
}

.contact-identity-logo {
  display: block;
  width: clamp(44px, 5vw, 64px);
  height: auto;
  margin-bottom: 0.35rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.contact-kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(214, 226, 241, 0.72);
  margin: 0;
}

.contact-page-title {
  font-size: clamp(3.2rem, 5.8vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.96;
  white-space: normal;
  color: var(--white);
  text-shadow: 0 10px 34px rgba(2, 5, 12, 0.42);
  margin: 0;
}

.contact-page-sub {
  color: rgba(var(--c-ivory-rgb), 0.78);
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  letter-spacing: 0.01em;
  line-height: 1.7;
  margin: 0;
  max-width: 34ch;
}

.contact-identity-tagline {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--c-ivory-rgb), 0.42);
  line-height: 1.6;
  margin: 0.4rem 0 0;
}

/* Right column: clearer, more solid premium form card */
.contact-form-wrap {
  position: relative;
  padding: clamp(2.2rem, 3.8vw, 3.4rem);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(9, 15, 26, 0.84);
  backdrop-filter: blur(10px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 22%);
  pointer-events: none;
}

.contact-form {
  position: relative;
  z-index: 1;
  gap: 1.15rem;
}

.contact-form .form-row {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
}

.form-row--split {
  gap: 1rem;
}

.form-field {
  gap: 0.65rem;
}

.contact-form .form-field label {
  color: rgba(223, 233, 245, 0.76);
  letter-spacing: 0.15em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 56px;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: rgba(var(--c-ivory-rgb), 0.96);
  backdrop-filter: none;
}

.contact-form textarea {
  min-height: 138px;
  padding-top: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(var(--c-ivory-rgb), 0.42);
}

.contact-form select {
  color: rgba(var(--c-ivory-rgb), 0.88);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(173, 203, 238, 0.52);
  box-shadow: 0 0 0 3px rgba(115, 156, 206, 0.14);
}

.select-wrap .select-arrow {
  right: 1rem;
  color: rgba(var(--c-ivory-rgb), 0.58);
}

.form-row--submit {
  background: transparent;
  border: 0;
  padding: 0.8rem 0 0;
}

.form-submit {
  width: 100%;
  min-height: 60px;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbe8f6 0%, #9cb8d7 24%, #54779b 100%);
  border: 1px solid rgba(220, 234, 248, 0.38);
  color: #08111d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  box-shadow:
    0 18px 34px rgba(8, 18, 32, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.form-submit::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.form-submit:hover {
  background: linear-gradient(135deg, #e7f0fb 0%, #b6cee7 24%, #6289b0 100%);
  border-color: rgba(234, 242, 250, 0.6);
  box-shadow:
    0 22px 40px rgba(6, 16, 30, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  gap: 1rem;
}

.form-submit:active {
  background: linear-gradient(135deg, #d4e4f4 0%, #9ebcda 24%, #4d7194 100%);
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(14, 17, 23, 0.74);
}

/* Responsive: stack cleanly with text above form */
@media (max-width: 860px) {
  .contact-page-inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .contact-identity {
    max-width: 640px;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .contact-page-title,
  .contact-page-sub {
    max-width: none;
  }

  .contact-form-wrap {
    width: 100%;
  }
}

@media (max-width: 580px) {
  .contact-page-section {
    padding: calc(var(--nav-h) + 44px) var(--gutter) 64px;
    min-height: auto;
  }

  .contact-page-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
  }

  .contact-page-sub {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .contact-identity {
    gap: 0.8rem;
  }

  .contact-kicker,
  .contact-identity-tagline,
  .contact-form .form-field label {
    letter-spacing: 0.1em;
  }

  .contact-form-wrap {
    padding: 1.35rem;
    border-radius: 20px;
  }

  .contact-form .form-row {
    padding: 1rem;
    border-radius: 16px;
  }

  .contact-form .form-row--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .form-submit {
    border-radius: 12px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-height: 52px;
    padding: 0.9rem 0.95rem;
    font-size: 0.94rem;
  }

  .form-submit {
    min-height: 56px;
    padding: 0.9rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    white-space: normal;
  }
}

/* — HERO — MOTION — logo slide-in, scroll-sync zoom, ink veil fade (JS-driven) — */

@media (prefers-reduced-motion: no-preference) {
  /* Animation 1 — Logo smooth slide-up + tagline fade */
  .hero-logo {
    animation: logoSlideUp 1.0s var(--ease-out) 0.1s both;
  }

  @keyframes logoSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-tagline {
    animation: taglineFadeIn 0.9s var(--ease-out) 0.55s both;
  }

  @keyframes taglineFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Animation 2 — Slides wrap: transform-origin + will-change */
  .hero-slides {
    transform-origin: center center;
    will-change: transform;
  }

  /* Animation 3 — Ink veil: will-change */
  .hero-tint {
    will-change: opacity;
  }
}

/* Animation 3 — Ink veil overlay (structural rules always present) */
.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0.18) 0%, rgba(5, 8, 17, 0.72) 100%);
  opacity: 0;
  pointer-events: none;
}

/* hero-center, dots, scroll-cue must sit above the tint (structural) */
.hero-center     { z-index: 3; position: relative; }
.hero-dots, .hero-scroll-cue { z-index: 3; }

/* — SERVICES PAGE — */

/* Full-page dark treatment — same technique as contact page */
.svc-page {
  position: relative;
  background-image:
    linear-gradient(170deg, rgba(2, 5, 12, 0.93) 0%, rgba(5, 12, 24, 0.88) 40%, rgba(8, 18, 32, 0.82) 70%, rgba(4, 10, 22, 0.90) 100%),
    radial-gradient(circle at 15% 30%, rgba(60, 100, 160, 0.22) 0%, rgba(60, 100, 160, 0) 36%),
    radial-gradient(circle at 80% 70%, rgba(30, 55, 90, 0.18) 0%, rgba(30, 55, 90, 0) 34%),
    url('website%20images/Website/Portfolio/IMG_3239.jpeg');
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
}

/* ── BANNER ─────────────────────────── */
.svc-banner {
  padding: calc(var(--nav-h) + 80px) var(--gutter) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Header: flanking lines + title — mirrors the about/mission pattern */
.svc-banner-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 64px;
}

.svc-header-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s var(--ease-out) 0.2s;
}

.svc-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) 0.1s;
}

/* Triggered by JS */
.svc-header-visible .svc-header-line  { transform: scaleX(1); }
.svc-header-visible .svc-banner-title { opacity: 1; }

/* Banner body: 2-column intro */
.svc-banner-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(7, 13, 24, 0.18);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.svc-banner-body.svc-body-visible {
  opacity: 1;
  transform: translateY(0);
}

.svc-banner-text {
  position: relative;
  max-width: 560px;
  padding-left: clamp(0.25rem, 1vw, 0.75rem);
}

.svc-banner-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(135, 174, 246, 0.7) 0%, rgba(135, 174, 246, 0.14) 100%);
}

.svc-banner-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.32rem, 2.45vw, 1.82rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.93);
  line-height: 1.45;
  letter-spacing: 0;
  margin-bottom: 0.95rem;
  max-width: 25ch;
}

.svc-banner-sub {
  font-size: 1rem;
  color: rgba(244, 247, 252, 0.8);
  line-height: 1.8;
  max-width: 50ch;
}

.svc-banner-photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

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

/* ── SECTIONS ───────────────────────── */
.svc-section {
  padding: 80px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.svc-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #87aef6;
  margin-bottom: 0.75rem;
}

.svc-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.svc-section-rule {
  width: 48px;
  height: 1px;
  background: rgba(135, 174, 246, 0.5);
  margin-bottom: 2.5rem;
}

/* ── SERVICE ROWS (horizontal list) ─── */
.svc-rows {
  margin-top: 0;
}

.svc-row {
  display: grid;
  grid-template-columns: 52px 1fr 2fr;
  gap: 24px 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(-20px);
  will-change: opacity, transform;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.svc-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.svc-row.svc-row-visible {
  opacity: 1;
  transform: translateX(0);
}

.svc-row-num {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #87aef6;
  padding-top: 3px;
}

.svc-row-name {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.75vw, 1.36rem);
  font-weight: 400;
  color: rgba(var(--c-blue-rgb), 0.96);
  line-height: 1.3;
  margin: 0;
  max-width: none;
}

.svc-row-desc {
  font-size: 0.96rem;
  color: rgba(232, 238, 247, 0.76);
  line-height: 1.82;
  margin: 0;
  max-width: 52ch;
}

/* ── SMALL PM SECTION ───────────────── */
.svc-section--pm {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.svc-section--pm.svc-pm-visible,
.svc-cta-strip.svc-cta-visible {
  opacity: 1;
  transform: translateY(0);
}

.svc-pm-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.svc-pm-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.svc-pm-desc {
  font-size: 1rem;
  color: rgba(236, 241, 249, 0.78);
  line-height: 1.88;
  max-width: 50ch;
}

/* ── CTA STRIP ──────────────────────── */
.svc-cta-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 72px var(--gutter) 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.svc-cta-label {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.7vw, 2.15rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(var(--c-blue-rgb), 0.92);
  margin: 0;
  max-width: none;
}

.svc-cta-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(var(--c-blue-rgb), 0.94);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 32px;
  border-radius: 40px;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.svc-cta-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* ── REDUCED MOTION ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  .svc-banner-title,
  .svc-header-line,
  .svc-banner-body,
  .svc-row,
  .svc-section--pm,
  .svc-cta-strip {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .svc-header-line {
    transform: scaleX(1);
  }
}

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 860px) {
  .svc-banner-body,
  .svc-pm-inner {
    grid-template-columns: 1fr;
  }
  .svc-banner-photo {
    aspect-ratio: 16 / 9;
    order: -1;
  }
  .svc-row {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .svc-row-desc {
    grid-column: 2;
    margin-top: 0.25rem;
  }
}

@media (max-width: 580px) {
  .svc-banner {
    padding: calc(var(--nav-h) + 44px) var(--gutter) 56px;
  }

  .svc-banner-header {
    gap: 0.75rem;
    margin-bottom: 38px;
  }

  .svc-banner-title {
    font-size: clamp(1.75rem, 11vw, 2.45rem);
    white-space: normal;
    text-align: center;
  }

  .svc-banner-body {
    padding: 1rem;
    border-radius: 20px;
  }

  .svc-banner-text {
    padding-left: 0;
  }

  .svc-banner-text::before {
    display: none;
  }

  .svc-banner-lead {
    max-width: none;
    font-size: clamp(1.2rem, 7vw, 1.55rem);
  }

  .svc-banner-sub,
  .svc-row-desc,
  .svc-pm-desc {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .svc-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.75rem 1rem;
    padding: 24px 0;
  }

  .svc-section {
    padding: 64px var(--gutter);
  }

  .svc-section-title {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .svc-row-name {
    font-size: clamp(1rem, 5vw, 1.18rem);
    overflow-wrap: anywhere;
  }

  .svc-row-desc {
    grid-column: 1 / -1;
  }

  .svc-cta-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 56px var(--gutter) 72px;
  }

  .svc-cta-btn {
    width: 100%;
    padding-inline: 1rem;
    text-align: center;
    white-space: normal;
  }
}
