/* Self-hosted Latin subsets (SIL OFL); same families and weights as the former Google Fonts request. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/montserrat-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lato-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lato-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Single source of truth for the palette: edit only these channel triplets to recolour the site. */
  --bg-rgb: 8 28 58;
  --bg2-rgb: 12 36 66;
  --bg3-rgb: 5 16 32;
  --bg-raised-rgb: 19 47 76;
  --panel-rgb: 19 47 76;
  --text-rgb: 248 249 250;
  --muted-rgb: 200 213 225;
  --accent-rgb: 26 188 156;
  --accent2-rgb: 26 188 156;
  --accent3-rgb: 178 226 217;
  --accent-hot-rgb: 26 188 156;
  --surface-rgb: 236 242 247;
  --shadow-rgb: 0 0 0;

  --bg: rgb(var(--bg-rgb));
  --bg2: rgb(var(--bg2-rgb));
  --bg3: rgb(var(--bg3-rgb));
  --bg-raised: rgb(var(--bg-raised-rgb));
  --panel: rgb(var(--panel-rgb) / 0.6);
  --text: rgb(var(--text-rgb));
  --muted: rgb(var(--muted-rgb));
  --accent: rgb(var(--accent-rgb));
  --accent2: rgb(var(--accent2-rgb));
  --accent3: rgb(var(--accent3-rgb));
  --accent-hot: rgb(var(--accent-hot-rgb));
  --accent-hot-tint: #b2e2d9;
  /* Lighter terracotta for small text: the base accent drops below AA on tinted surfaces. */
  --accent-tint: #b2e2d9;
  --on-accent: var(--bg);
  --grad: linear-gradient(135deg, var(--accent2), var(--accent3));
  --border: rgb(var(--surface-rgb) / 0.1);
  --max: 1100px;
  --nav-h: 60px;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
  --card-hover-lift: -4px;
  --card-hover-border: rgb(var(--accent2-rgb) / 0.35);
  --card-hover-shadow: 0 12px 28px rgb(var(--shadow-rgb) / 0.16);
  --card-hover-bg: rgb(var(--accent2-rgb) / 0.05);
  --card-bg: rgb(var(--surface-rgb) / 0.04);
  --accent-hover: #117964;
  --paper: #f8f9fa;
  --ink: #2c3e50;
  --ink-muted: #465c6c;
  --card-ease: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  overflow-x: clip;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, rgb(8 13 19) 0%, rgb(14 20 28) 100%);
  color: var(--text);
  line-height: 1.65;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 9999;
  background: var(--grad);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  /* No CSS transition — JS drives scaleX directly via rAF */
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgb(var(--bg-rgb) / 0.92);
  border-bottom: 1px solid var(--border);
  transform: translateY(0);
  transition: transform 0.35s ease, background 0.35s ease;
  /* backdrop-filter removed — extremely expensive on mobile GPUs */
}

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

nav.solid {
  background: rgb(var(--bg-rgb) / 0.97);
}

.nav-inner {
  max-width: var(--max);
  margin: auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
}

.nav-logo a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 3px;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== SLIDE DECK ===== */
.slide-track {
  position: relative;
  /* height is set dynamically by JS: numSlides * 100vh */
}

.slide-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* clip (unlike hidden) also blocks fragment/focus scrolling that would misalign the deck */
  overflow: clip;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 1.5rem;
  will-change: transform;
  border-radius: 0;
  contain: layout style paint;
  /* each slide gets a z-index from JS */
}

/* Rounded top edge on non-hero slides for the card peel look */
.slide:not(.slide-hero) {
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 60px rgb(var(--shadow-rgb) / 0.5);
}

/* GRADIENT TEXT */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* CONTAINER */
.container {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

/* ===== SHARED CARD BASE ===== */
.service-card, .work-card, .note-card {
  border: 1px solid var(--border);
  transition: var(--card-ease);
}

/* ===== SHARED CARD HOVER ===== */
.service-card:hover, .service-card.touch-hover,
.work-card:hover, .work-card.touch-hover,
.note-card:hover, .note-card.touch-hover {
  transform: translateY(var(--card-hover-lift));
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
  background: var(--card-hover-bg);
}

/* ===== SHARED ::before GRADIENT OVERLAY ===== */
.service-card::before, .work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover::before, .service-card.touch-hover::before,
.work-card:hover::before, .work-card.touch-hover::before {
  opacity: 0.05;
}

/* ===== SHARED SUBTITLE ===== */
.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 4px 20px rgb(var(--accent-hot-rgb) / 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgb(var(--accent-hot-rgb) / 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgb(var(--accent-rgb) / 0.08);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.1rem 2.4rem;
  font-size: 1.1rem;
}

/* ===== HERO ===== */
.slide-hero {
  padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse at 12% 12%, rgb(var(--accent2-rgb) / 0.22), transparent 42%),
    radial-gradient(ellipse at 82% 74%, rgb(var(--accent-rgb) / 0.14), transparent 46%),
    radial-gradient(ellipse at 50% 55%, rgb(var(--accent3-rgb) / 0.1), transparent 38%),
    linear-gradient(180deg, rgb(8 13 19) 0%, rgb(13 20 29) 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  opacity: 0.55;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
  animation: orbFloat 15s ease-in-out infinite;
  /* filter: blur(100px) replaced — orbs use radial-gradient backgrounds
     for a pre-blurred appearance at a fraction of the GPU cost */
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent2) 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent3) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation-delay: -10s;
}

/* Orbs outside viewport get their animation paused to save GPU cycles */
.hero-orb.orb-paused {
  animation-play-state: paused;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgb(var(--surface-rgb) / 0.04);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.8rem;
}

.hero-title em.gradient-text {
  --grad: linear-gradient(135deg, var(--accent-hot), var(--accent));
}

.hero-title span {
  display: block;
}

.hero-title em {
  font-style: normal;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s 2s both;
}

.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid var(--muted);
  border-radius: 10px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.3;
  }
}

.section-bg-accent {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 24% 20%, rgb(var(--accent2-rgb) / 0.16), transparent 48%),
    radial-gradient(ellipse at 74% 78%, rgb(var(--accent3-rgb) / 0.12), transparent 52%);
  pointer-events: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ===== ABOUT ===== */
.slide-about {
  background:
    radial-gradient(ellipse at 16% 52%, rgb(var(--accent2-rgb) / 0.09), transparent 48%),
    radial-gradient(ellipse at 82% 28%, rgb(var(--accent3-rgb) / 0.08), transparent 38%),
    linear-gradient(180deg, rgb(13 20 29) 0%, rgb(20 31 43) 100%);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.about-left .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-tagline {
  font-size: 1.1rem;
  color: var(--accent-tint);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.architect-illustration {
  width: min(300px, 100%);
  margin-top: 2.5rem;
}

.architect-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 340;
  filter: drop-shadow(0 18px 30px rgb(var(--shadow-rgb) / 0.28));
}

.about-right p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  line-height: 1.8;
}

.about-right p:last-child {
  margin-bottom: 0;
}

.credibility-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.credibility-panel div {
  min-height: 108px;
  padding: 1rem;
  border: 1px solid rgb(var(--surface-rgb) / 0.12);
  background: rgb(var(--surface-rgb) / 0.04);
}

.credibility-panel strong,
.credibility-panel span {
  display: block;
}

.credibility-panel strong {
  color: var(--accent-tint);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.credibility-panel span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.credential-tag {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgb(var(--surface-rgb) / 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ===== SERVICES ===== */
.slide-services {
  background:
    radial-gradient(ellipse at 28% 30%, rgb(var(--accent3-rgb) / 0.1), transparent 48%),
    radial-gradient(ellipse at 74% 68%, rgb(var(--accent2-rgb) / 0.08), transparent 48%),
    linear-gradient(180deg, rgb(16 23 31) 0%, rgb(21 31 42) 100%);
}

[hidden] {
  display: none !important;
}

/* .services-subtitle — now uses shared .section-subtitle */

.services-system {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
  gap: 1.2rem;
  align-items: stretch;
}

.service-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1.35rem;
  border-radius: 20px;
  cursor: default;
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
}

.assessment-hub {
  min-height: 100%;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgb(var(--accent3-rgb) / 0.14), rgb(var(--accent2-rgb) / 0.06)),
    rgb(var(--surface-rgb) / 0.04);
  border-color: rgb(var(--accent3-rgb) / 0.26);
}

.assessment-hub h3 {
  font-size: 1.35rem;
  margin-top: 1rem;
}

.service-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  color: rgb(165 222 239);
}

.service-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon-assessment {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
  color: var(--accent-hot-tint);
}

.deliverable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.deliverable-list span {
  padding: 0.32rem 0.6rem;
  border: 1px solid rgb(var(--accent3-rgb) / 0.28);
  background: rgb(var(--accent3-rgb) / 0.1);
  color: #f6e3b0;
  font-size: 0.72rem;
  font-weight: 700;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.service-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  position: relative;
  margin-bottom: 0.8rem;
}

.service-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  position: relative;
}

.service-outcomes span {
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  background: rgb(var(--bg-rgb) / 0.24);
  color: var(--accent-tint);
  border: 1px solid rgb(var(--accent2-rgb) / 0.18);
}

/* ===== WORK ===== */
.slide-work {
  background:
    radial-gradient(ellipse at 50% 0%, rgb(var(--accent2-rgb) / 0.16), transparent 54%),
    radial-gradient(ellipse at 84% 76%, rgb(var(--accent3-rgb) / 0.08), transparent 42%),
    linear-gradient(180deg, rgb(12 22 34) 0%, rgb(16 27 39) 100%);
}

.slide-work .parallax-visual {
  display: none;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  height: min(410px, calc(100vh - 245px));
}

.work-card {
  min-height: 0;
  padding: 1.65rem;
  border-radius: 18px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgb(var(--surface-rgb) / 0.06), rgb(var(--surface-rgb) / 0.022));
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-color: rgb(var(--accent2-rgb) / 0.16);
}

.work-card:first-child {
  grid-column: auto;
  grid-row: auto;
  border-left: 2px solid var(--accent2);
}

.work-card-number {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.45rem;
  font-weight: 800;
  color: rgb(var(--accent-rgb) / 0.28);
  line-height: 1;
  pointer-events: none;
}

.work-card-meta {
  color: rgb(165 222 239);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-right: 4rem;
  position: relative;
}

.work-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.85rem;
  position: relative;
}

/* Real button for keyboard/AT; visually identical to the former plain heading. */
.work-card-open {
  all: unset;
  cursor: pointer;
}

@supports selector(:has(*)) {
  .work-card-open:focus-visible {
    outline: none;
  }

  .work-card:has(.work-card-open:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}

.work-card:first-child h3 {
  font-size: 1.22rem;
}

.work-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  position: relative;
  margin-bottom: 1.2rem;
}

.case-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  position: relative;
}

.case-proof span {
  padding: 0.48rem 0.65rem;
  border: 1px solid rgb(var(--accent2-rgb) / 0.18);
  background: rgb(var(--bg-rgb) / 0.24);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.case-proof strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.86rem;
  margin-right: 0.2rem;
}

.work-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgb(165 222 239);
  margin-top: auto;
  transition: transform 0.3s;
  position: relative;
}

.work-card-arrow span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card:hover .work-card-arrow,
.work-card.touch-hover .work-card-arrow {
  transform: translateX(8px);
}

/* ===== METHODOLOGY ===== */
.slide-methodology {
  background:
    radial-gradient(ellipse at 80% 20%, rgb(var(--accent3-rgb) / 0.11), transparent 46%),
    linear-gradient(180deg, rgb(14 19 26) 0%, rgb(18 28 39) 100%);
}

/* .methodology-subtitle — now uses shared .section-subtitle */

.methodology-timeline {
  display: flex;
  position: relative;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-line {
  position: absolute;
  top: 29px; /* half of 60px height minus half of 2px line height */
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.timeline-item {
  flex: 1;
  position: relative;
  z-index: 2;
  text-align: center;
}

.timeline-dot {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box;
  border: 2px solid transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: rgb(165 222 239);
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}


/* ===== FIELD NOTES ===== */
.slide-notes {
  background:
    radial-gradient(ellipse at 42% 18%, rgb(var(--accent2-rgb) / 0.11), transparent 46%),
    radial-gradient(ellipse at 80% 72%, rgb(var(--accent3-rgb) / 0.1), transparent 40%),
    linear-gradient(180deg, rgb(11 22 32) 0%, rgb(20 31 42) 100%);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.note-card {
  display: block;
  padding: 1.25rem;
  border-radius: 24px;
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
}

.note-cover {
  height: 110px;
  margin-bottom: 1rem;
  border: 1px solid rgb(var(--accent2-rgb) / 0.16);
  background:
    linear-gradient(rgb(var(--surface-rgb) / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--surface-rgb) / 0.08) 1px, transparent 1px),
    rgb(11 22 31 / 0.72);
  background-size: 16px 16px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.note-icon {
  width: min(190px, 74%);
  height: 82px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note-icon * {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.note-icon .icon-base {
  stroke: rgb(var(--surface-rgb) / 0.58);
}

.note-icon .icon-primary {
  stroke: var(--accent2);
}

.note-icon .icon-alert {
  stroke: var(--accent-hot);
}

.note-meta {
  color: rgb(165 222 239);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.note-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.note-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.slide-contact {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgb(var(--accent-rgb) / 0.12), transparent 48%),
    radial-gradient(ellipse at 24% 80%, rgb(var(--accent2-rgb) / 0.08), transparent 38%),
    linear-gradient(180deg, rgb(12 16 24) 0%, rgb(19 29 40) 100%);
}

.contact-container {
  position: relative;
  z-index: 2;
}

.contact-desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 550px;
  margin: 0 auto 1rem;
}

.contact-confidential {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.contact-option {
  font-size: 0.85rem;
  color: var(--accent-tint);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.contact-option-sep {
  color: var(--border);
  font-size: 0.85rem;
}

.contact-engagement-model {
  max-width: 650px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: rgb(var(--surface-rgb) / 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.contact-engagement-model strong {
  color: var(--text);
  font-weight: 600;
}

.assessment-outputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 720px;
  margin: 0 auto 1.6rem;
}

.assessment-outputs div {
  padding: 0.85rem;
  border: 1px solid rgb(var(--surface-rgb) / 0.12);
  background: rgb(var(--surface-rgb) / 0.04);
}

.assessment-outputs strong,
.assessment-outputs span {
  display: block;
}

.assessment-outputs strong {
  color: var(--accent-hot);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.assessment-outputs span {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, rgb(11 16 24) 0%, rgb(15 22 31) 100%);
  border-top: 1px solid var(--border);
}

.footer-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.footer-links :is(a, button) {
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgb(var(--surface-rgb) / 0.04);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.35s, border-color 0.35s, background-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.footer-links :is(a, button):hover {
  color: var(--text);
  border-color: var(--accent2);
  background: rgb(var(--accent2-rgb) / 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgb(var(--accent2-rgb) / 0.18);
}

.footer-links :is(a, button) svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-links :is(a, button):hover svg {
  opacity: 1;
}

.footer-copyright {
  color: rgb(var(--surface-rgb) / 0.55);
  font-size: 0.8rem;
}

.contact-confidential a,
.footer-copyright a {
  color: var(--accent-tint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-confidential a:hover,
.footer-copyright a:hover {
  color: var(--text);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgb(var(--shadow-rgb) / 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
  overscroll-behavior: none;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: rgb(var(--surface-rgb) / 0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  max-width: 760px;
  width: 100%;
  padding: 3rem;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text);
  animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Premium modal close button */
.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgb(var(--surface-rgb) / 0.03);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.3s;
  z-index: 10;
  padding: 0;
}

.modal-close-btn:hover {
  color: var(--text);
  border-color: var(--accent2);
  background: rgb(var(--accent2-rgb) / 0.08);
  transform: scale(1.08);
}

@media (max-width: 600px) {
  .modal-close-btn {
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
  }
}

.modal-box h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.modal-box p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.modal-box ul {
  color: var(--muted);
  padding-left: 1.5rem;
}

.modal-box li {
  margin: 0.5rem 0;
}

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 2rem 0 0.8rem;
}

.modal-box h3:first-of-type {
  margin-top: 1rem;
}

.case-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}

@keyframes modalIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== MILESTONE PROGRESS BAR ===== */
.milestone-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(180deg, rgb(11 16 24) 0%, rgb(15 22 31) 100%);
  border-top: 1px solid var(--border);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* backdrop-filter removed — expensive on mobile */
}

.milestone-bar.visible {
  transform: translateY(0);
}

.milestone-track {
  display: flex;
  align-items: center;
  max-width: 700px;
  width: 100%;
  position: relative;
}

.milestone-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
}

.milestone-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad);
  transition: transform 0.3s ease;
}

.milestone-dot {
  position: relative;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.milestone-dot.active {
  border-color: var(--accent-hot);
  background: var(--accent-hot);
  box-shadow: 0 0 12px rgb(var(--accent-hot-rgb) / 0.5);
}

.milestone-dot.passed {
  border-color: var(--accent);
  background: var(--accent);
}

.milestone-label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.milestone-dot:hover .milestone-label,
.milestone-dot.active .milestone-label {
  opacity: 1;
  top: -32px;
}

.milestone-spacer {
  flex: 1;
}

/* ===== HERO PARALLAX TITLE ===== */
.hero-title span {
  display: block;
  /* will-change removed — set dynamically by JS only when parallax is active */
}

.work-card.slide-left {
  transform: translateX(-80px);
  opacity: 0;
}

.work-card.slide-right {
  transform: translateX(80px);
  opacity: 0;
}

.work-card.slide-visible {
  transform: translateX(0);
  opacity: 1;
}

/* ===== PARALLAX VISUALS ===== */
.parallax-visual {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  /* will-change and transition removed — parallax is driven directly by rAF */
}

.hero-visual-left {
  left: 3%;
  top: 50%;
  transform: translateY(-50%);
}

.hero-visual-right {
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
}


.about-visual {
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
}

.work-visual {
  left: auto;
  right: 0;
  top: 50%;
  transform: translate(-50%, -50%);
}

.notes-visual-left {
  left: 1%;
  top: 50%;
  transform: translateY(-50%);
}

.notes-visual-right {
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
}

.contact-visual {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Section depth glows */
.slide-about::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.06), transparent 70%);
  left: -100px;
  top: 20%;
  pointer-events: none;
}

.slide-notes::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgb(var(--accent3-rgb) / 0.04), transparent 70%);
  left: 30%;
  top: -10%;
  pointer-events: none;
}

.slide-contact::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.05), transparent 65%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===== FOCUS STATES (Accessibility) ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.2);
}

.work-card:focus-visible,
.milestone-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.cookie-accept:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.footer-links :is(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Programmatic focus targets for navigation; the slide itself is not a control. */
main:focus,
.slide:focus {
  outline: none;
}

/* ===== GEAR & CONSTELLATION ANIMATIONS ===== */
.gear-rotate-lg {
  animation: gearSpin 30s linear infinite;
}

.gear-rotate-sm {
  animation: gearSpin 20s linear infinite reverse;
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.constellation-nodes circle {
  animation: constellationPulse 4s ease-in-out infinite;
}

.constellation-nodes circle:nth-child(2n) {
  animation-delay: 0.8s;
}

.constellation-nodes circle:nth-child(3n) {
  animation-delay: 1.6s;
}

.constellation-nodes circle:nth-child(5n) {
  animation-delay: 2.4s;
}

@keyframes constellationPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== CUBE FLOAT (Hero Left) ===== */
.cube-float {
  animation: cubeFloat 5s ease-in-out infinite;
}

@keyframes cubeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

/* ===== SATELLITE PULSE (Hero Left) ===== */
.satellite-pulse circle {
  animation: satellitePulse 3s ease-in-out infinite;
}

.satellite-pulse circle:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes satellitePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== CIRCUIT FLOW (Hero Right) ===== */
.circuit-flow {
  animation: circuitFlow 4s linear infinite;
}

@keyframes circuitFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -18; }
}



/* ===== ORBIT ROTATION (About) ===== */
.orbit-system {
  animation: orbitSpin 24s linear infinite;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== DATA FLOW (Work cloud connection) ===== */
.data-flow {
  animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -14; }
}

/* ===== DOCUMENT DRIFT (Notes Left) ===== */
.doc-drift {
  animation: docDrift 15s ease-in-out infinite alternate;
}

.doc-drift-2 {
  animation-direction: alternate-reverse;
}

@keyframes docDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(3px, 3px); }
}

/* ===== RAY PULSE (Notes Right) ===== */
.ray-pulse-group {
  animation: rayPulse 4s ease-in-out infinite;
}

@keyframes rayPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.3; }
}

/* ===== SPARKLE PULSE (Notes Right) ===== */
.sparkle-group circle {
  animation: sparklePulse 3s ease-in-out infinite;
}

.sparkle-group circle:nth-child(2) {
  animation-delay: 1s;
}

.sparkle-group circle:nth-child(3) {
  animation-delay: 2s;
}

@keyframes sparklePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.5); }
}

/* ===== BULB GLOW (Notes Right) ===== */
.bulb-glow {
  animation: bulbGlow 3s ease-in-out infinite;
  transform-origin: 100px 100px;
}

@keyframes bulbGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.3; }
}

/* ===== FLOATING PARTICLES ===== */
.floating-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}

.particle {
  position: absolute;
  opacity: 0.12;
  animation: particleDrift linear infinite backwards;
}

.particle-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.particle-diamond {
  width: 8px;
  height: 8px;
  background: var(--accent2);
  transform: rotate(45deg);
}

.particle-cross {
  width: 10px;
  height: 10px;
  position: absolute;
}

.particle-cross::before,
.particle-cross::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.particle-cross::before {
  width: 10px;
  height: 2px;
  top: 4px;
  left: 0;
}

.particle-cross::after {
  width: 2px;
  height: 10px;
  top: 0;
  left: 4px;
}

.particle-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent2);
  background: none;
}

@keyframes particleDrift {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.12;
  }

  90% {
    opacity: 0.12;
  }

  100% {
    transform: translateY(-100vh) translateX(40px) rotate(360deg);
    opacity: 0;
  }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 4.5rem; /* above milestone bar */
  left: 1.5rem;
  right: 1.5rem;
  max-width: 480px;
  z-index: 1001;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: none;
  align-items: center;
  gap: 1.2rem;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 30px rgb(var(--shadow-rgb) / 0.4);
}

.cookie-banner.visible {
  display: flex;
}

/* Trigger entrance after display is set — needs a frame delay in JS */
.cookie-banner.visible.enter {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.cookie-banner p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cookie-banner code {
  font-size: 0.75rem;
  background: rgb(var(--surface-rgb) / 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--accent-tint);
}
.cookie-banner:hover,
.cookie-banner.touch-hover {
  transform: translateY(-4px);
  border-color: rgb(var(--accent-rgb) / 0.25);
  box-shadow: 0 12px 40px rgb(var(--shadow-rgb) / 0.5), 0 0 20px rgb(var(--accent-rgb) / 0.08);
}

.cookie-accept {
  flex-shrink: 0;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgb(var(--surface-rgb) / 0.03);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 0.3px;
  font-family: inherit;
}

.cookie-accept:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgb(var(--accent-rgb) / 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgb(var(--accent-rgb) / 0.12);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .work-grid,
  .notes-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 1.2rem;
  }

  .work-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: auto;
    max-width: none;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 0 1.5rem 1.2rem;
    scrollbar-width: none;
  }

  .work-grid::-webkit-scrollbar {
    display: none;
  }

  .work-card,
  .work-card:first-child {
    flex: 0 0 min(430px, 82vw);
    min-height: 380px;
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: center;
  }

  .methodology-timeline {
    flex-direction: column;
    gap: 2rem;
    margin-top: 0;
  }
  
  .timeline-line {
    top: 0;
    bottom: 0;
    left: 29px;
    width: 2px;
    height: auto;
    right: auto;
  }
  
  .timeline-item {
    display: flex;
    text-align: left;
    gap: 1.5rem;
  }
  
  .timeline-dot {
    margin: 0;
    flex-shrink: 0;
  }
  
  .timeline-content {
    padding-top: 0;
  }

  .services-system {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 1rem;
  }

  .assessment-hub {
    padding: 1.35rem;
  }

  .service-icon-assessment {
    width: 80px;
    height: 80px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .credibility-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-left .section-title {
    text-align: center;
  }

  .about-tagline {
    text-align: center;
    border-left: none;
    padding-left: 0;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.8rem;
    display: inline-block;
  }

  .about-left {
    text-align: center;
  }

  .architect-illustration {
    margin: 2rem auto 0;
    width: min(280px, 70vw);
  }

  .hero-title {
    font-size: 3rem;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.35fr);
    gap: 2rem;
    align-items: center;
  }

  .about-left,
  .about-left .section-title,
  .about-tagline {
    text-align: left;
  }

  .about-tagline {
    border-left: 3px solid var(--accent);
    border-bottom: 0;
    padding-left: 1rem;
    padding-bottom: 0;
  }

  .architect-illustration {
    margin: 1.7rem 0 0;
    width: min(230px, 100%);
  }
}

@media (max-width: 768px) {
  .parallax-visual {
    display: none;
  }

  .architect-illustration {
    display: none;
  }

  .floating-particles {
    display: none;
  }

  /* Kill all infinite CSS animations on mobile — saves GPU compositor work */
  .hero-orb {
    animation: none !important;
  }

}

@media (max-width: 600px) {

  /* Mobile base: no root bump needed, all text sizes set explicitly to ≥1rem */

  .credibility-panel {
    display: none;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 3.5rem;
    padding: 1rem 1.2rem;
    gap: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner p {
    font-size: 1rem;
  }

  .cookie-accept {
    align-self: center;
    padding: 0.55rem 1.5rem;
  }

  .footer-links {
    gap: 0.5rem;
  }

  .footer-links :is(a, button) {
    padding: 0.45rem 0.9rem;
    font-size: 1rem;
  }
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgb(var(--bg-rgb) / 0.97);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open a {
    margin: 0.5rem 0;
    margin-left: 0;
    font-size: 1rem;
  }

  .slide:not(.slide-hero) {
    padding: 5.5rem 1.2rem 1.5rem 1.2rem;
    justify-content: center;
  }

  .slide.slide-hero {
    padding: 5rem 1.2rem 2rem 1.2rem;
    justify-content: center;
  }

  /* Normal mobile About section */
  .about-layout {
    gap: 1.5rem;
  }
  
  .about-right p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .about-credentials {
    margin-top: 1.5rem;
    gap: 0.5rem;
  }
  
  .credential-tag {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }

  /* Ensure horizontal carousels fit perfectly */
  .slide-work,
  .slide-notes,
  .slide-services,
  .slide-methodology {
    justify-content: center !important;
  }

  .milestone-label {
    display: none;
  }

  /* Hide floating text on mobile */
  .hero-title {
    font-size: 1.9rem;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    margin-top: -0.5rem;
    text-align: center;
    width: 100%;
    display: block;
  }
  .timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  .timeline-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Normal mobile Contact */
  .contact-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  .contact-options {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
  }
  .contact-engagement-model {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .assessment-outputs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.25rem;
  }
  .contact-engagement-model p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .contact-confidential {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Mobile Horizontal Swipe for Cards */
  .work-grid,
  .notes-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-left: -1.2rem;
    margin-right: -1.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    scrollbar-width: none;
    /* Firefox */
  }

  .work-grid::-webkit-scrollbar,
  .notes-grid::-webkit-scrollbar {
    display: none;
    /* Safari/Chrome */
  }

  .work-card,
  .note-card {
    flex: 0 0 85%;
    /* Cards take up 85% width so the next card peeks out */
    scroll-snap-align: center;
  }

  /* Services horizontal carousel on mobile */
  .services-system {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-left: -1.2rem;
    margin-right: -1.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    scrollbar-width: none;
  }

  .services-system::-webkit-scrollbar {
    display: none;
  }

  .service-paths {
    display: contents;
  }

  .assessment-hub {
    min-height: 0;
    padding: 1.35rem;
  }

  .service-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }

  .slide-services {
    justify-content: center !important;
    padding-top: 3rem !important;
  }

  /* .services-subtitle mobile — now handled by .section-subtitle above */

  /* Work and Notes Section Title Margin */
  .slide-work .section-title,
  .slide-notes .section-title {
    margin-bottom: 2rem;
  }

  .work-card,
  .note-card {
    padding: 1.5rem;
  }

  .note-cover {
    height: 90px;
  }

  .work-card h3,
  .note-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .work-card p,
  .note-card p {
    font-size: 1rem;
    line-height: 1.4;
  }

  .modal-overlay {
    padding: 0.75rem;
    align-items: center;
    justify-content: center;
  }

  .modal-box {
    padding: 1.5rem;
    border-radius: 16px;
    max-height: 90vh;
    max-height: 90dvh;
  }

  .modal-box h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .modal-box h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.6rem;
  }

  .modal-box p {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0.8rem;
  }

  .modal-box ul {
    padding-left: 1.2rem;
  }

  .modal-box li {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0.4rem 0;
  }

  .case-meta {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
  }
}

/* ── Ultra-compact constraints for very short phones (e.g. iPhone SE) ── */
@media (max-width: 600px) and (max-height: 750px) {
  .slide:not(.slide-hero) {
    padding: 4rem 1rem 1rem 1rem;
  }
  .about-layout { gap: 1rem; }
  .about-right p { font-size: 1rem; line-height: 1.35; margin-bottom: 0.5rem; }
  .credibility-panel { display: none; }
  .about-credentials { margin-top: 0.8rem; gap: 0.3rem; }
  .credential-tag { padding: 0.3rem 0.6rem; font-size: 0.85rem; }

  .section-subtitle { font-size: 1rem; margin-bottom: 1.8rem; text-align: center; display: block; width: 100%; }
  .timeline-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
  .timeline-content p { font-size: 1rem; line-height: 1.35; }

  .contact-desc { font-size: 1rem; line-height: 1.4; margin-bottom: 1rem; }
  .contact-options { font-size: 1rem; margin-bottom: 1rem; gap: 0.3rem; }
  .contact-engagement-model { padding: 1rem; margin-bottom: 1rem; }
  .contact-engagement-model p { font-size: 1rem; line-height: 1.4; }
  .assessment-outputs { display: none; }
  .contact-confidential { font-size: 1rem; margin-bottom: 1.5rem; }
  .btn-large { padding: 0.7rem 1.5rem; font-size: 1rem; }

  .cookie-banner {
    bottom: 3rem;
    padding: 0.8rem 1rem;
    gap: 0.6rem;
    border-radius: 12px;
  }
  .cookie-banner p { font-size: 1rem; line-height: 1.4; }
  .cookie-accept { padding: 0.4rem 1rem; font-size: 1rem; }

  .modal-overlay { padding: 0.5rem; }
  .modal-box { padding: 1.2rem; max-height: 92vh; max-height: 92dvh; }
  .modal-box h2 { font-size: 1.2rem; margin-bottom: 0.8rem; }
  .modal-box h3 { font-size: 1rem; margin: 1rem 0 0.5rem; }
  .modal-box p { font-size: 1rem; line-height: 1.5; margin-bottom: 0.6rem; }
  .modal-box li { font-size: 1rem; line-height: 1.45; }
}

*, *::before, *::after {
  letter-spacing: 0;
}

body, nav, nav.solid, .milestone-bar {
  background: var(--bg);
}

h1, h2, h3, .nav-links a {
  font-family: var(--font-display);
}

.nav-inner { height: 72px; }
:root { --nav-h: 72px; }
.nav-logo a { display: flex; background: none; }
.nav-logo img { display: block; width: 64px; height: 64px; object-fit: contain; }
.nav-links a { color: var(--text); font-weight: 700; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }
.nav-hamburger { min-width: 44px; min-height: 44px; justify-content: center; }

.slide:not(.slide-hero) { border-radius: 0; box-shadow: 0 -8px 32px rgb(var(--shadow-rgb) / 0.18); }
.slide { overflow-y: auto; overflow-x: hidden; justify-content: safe center; }
.slide > .container { position: relative; z-index: 2; }
.slide > .container, .hero-content { flex-shrink: 0; }
.methodology-visual { right: 0; width: min(500px, 45%); top: 20%; }
.architect-illustration { width: min(420px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 0.5rem; }
.architect-illustration svg { display: block; width: 100%; height: auto; overflow: visible; }
.about-cube-visual, .about-circuit-visual { min-width: 0; }
.gradient-text { color: var(--accent); background: none; }
.scroll-progress, .milestone-line-fill, .nav-links a::after { background: var(--accent); }
.milestone-dot { padding: 0; border-color: var(--muted); }
.milestone-dot::after { content: ''; position: absolute; width: 32px; height: 32px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.milestone-dot:focus-visible .milestone-label { opacity: 1; top: -32px; }
.slide-hero, .hero-media {
  --photo-shade: linear-gradient(115deg, rgb(var(--bg-rgb) / 0.94), rgb(var(--bg-rgb) / 0.82));
}
.slide-hero { background: var(--photo-shade), url('img/landing-page.webp') right center / cover; }

/* One continuous image: full-screen hero becomes the image in the About layout. */
html.hero-zoom-scroll {
  scroll-snap-type: none;
}

.hero-zoom-deck .slide-hero {
  background: none;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  left: var(--media-x, 0px);
  top: var(--media-y, 0px);
  width: var(--media-width, 100%);
  height: var(--media-height, 100%);
  border-radius: var(--media-radius, 0px);
  overflow: hidden;
  background: url('img/landing-page.webp') right center / cover;
  pointer-events: none;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--photo-shade);
  opacity: var(--hero-shade-opacity, 1);
  transition: opacity 650ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.hero-zoom-deck .hero-content,
.hero-zoom-deck .scroll-indicator {
  opacity: var(--hero-copy-opacity, 1);
}

.hero-zoom-deck .hero-content {
  pointer-events: auto;
}

.hero-zoom-deck .hero-copy-hidden .hero-content {
  visibility: hidden;
}

.hero-zoom-deck .scroll-indicator {
  animation: none;
  z-index: 2;
}

.hero-zoom-deck .slide-about {
  box-shadow: none;
}

.about-hero-media {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 16 / 10;
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg2);
}

.hero-media.is-docked {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

/* The incoming content is uncovered by the image rather than crossfaded over it. */
.hero-zoom-deck .slide-about .reveal-left,
.hero-zoom-deck .slide-about .reveal-right,
.hero-zoom-deck .slide-about .section-title {
  opacity: 1;
  translate: none;
  transform: none;
  transition: none;
}

.hero-bg-grid, .hero-orb, .section-bg-accent,
.slide-about::before, .slide-notes::after { display: none; }
.hero-title { font-family: var(--font-display); font-weight: 700; }
.hero-title em.gradient-text { background: none; }
.hero-subtitle { color: var(--text); }
.hero-badge { border: 0; border-radius: 0; background: none; color: var(--accent-tint); padding: 0; font-weight: 700; }
.hero-content { max-width: 980px; }
.hero-cta .btn { justify-content: center; min-height: 48px; }
.btn { border-radius: 6px; font-weight: 700; max-width: 100%; text-align: center; justify-content: center; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: none; }
.btn-ghost { border-color: rgb(var(--surface-rgb) / 0.6); }
.section-title { font-weight: 700; text-transform: uppercase; margin-bottom: 2.25rem; }
.slide .section-title {
  opacity: 0.5;
  translate: 0 30px;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), translate 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide .section-title.title-visible { opacity: 1; translate: 0 0; }
.section-title::after { content: ''; display: block; width: 72px; height: 3px; background: var(--accent); margin: 1.1rem auto 0; }
.about-left .section-title::after { margin-left: 0; }
.section-subtitle { margin-top: -1rem; margin-bottom: 2rem; }
.parallax-visual { opacity: 0.85; }
.parallax-visual svg { max-width: 100%; height: auto; }
.services-visual { left: 1%; right: auto; top: 14%; width: min(280px, 25%); }
.services-visual svg { opacity: 0.42; }
.methodology-visual svg { opacity: 0.55; }
.work-visual { right: 0; left: auto; top: 10%; width: min(600px, 50%); }
.work-visual svg { opacity: 0.24; }
.notes-visual-right { opacity: 0.85; }
.notes-visual-right svg { opacity: 0.6; }
.contact-visual { left: 0; width: 100%; text-align: center; opacity: 0.55; }

@media (min-width: 769px) {
  .slide-work .parallax-visual { display: block; }
}

@media (max-width: 768px) and (orientation: portrait) {
.slide-about::before { 
  display: none !important;
}
}

@media (min-width: 768px) and (orientation: portrait) {
.about-left { 
  padding-left: 5rem; 
}
}

.slide-about, .slide-services, .slide-work, .slide-methodology, .slide-notes {
  --section-mid: #10323d;
  --section-grid:
    repeating-linear-gradient(90deg, transparent 0 119px, rgb(var(--surface-rgb) / 0.025) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgb(var(--surface-rgb) / 0.015) 119px 120px);
  background: var(--section-grid), linear-gradient(115deg, var(--bg), var(--section-mid) 65%, #091e30);
}
.slide-about { --section-mid: #123746; }
.slide-methodology { --section-mid: #102d38; }
.slide-about::before, .slide-methodology::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
  clip-path: none;
  pointer-events: none;
}
.slide-about::before {
  inset: 18% auto 16% 4%;
  width: min(32%, 420px);
  border-top: 1px solid rgb(var(--accent3-rgb) / 0.32);
  border-left: 1px solid rgb(var(--accent3-rgb) / 0.32);
  background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), transparent 70%);
  mask-image: linear-gradient(135deg, #000, transparent 85%);
}
.slide-methodology::after {
  background:
    linear-gradient(170deg, transparent 0 82%, rgb(var(--accent-rgb) / 0.14) 82% 92%, rgb(var(--accent3-rgb) / 0.06) 92%),
    linear-gradient(10deg, rgb(var(--surface-rgb) / 0.035) 0 12%, transparent 12%);
}
.slide-services, .slide-work, .slide-notes {
  --border: rgb(var(--surface-rgb) / 0.2);
  --card-bg: linear-gradient(145deg, rgb(var(--surface-rgb) / 0.075), rgb(var(--surface-rgb) / 0.02)), rgb(12 35 53 / 0.96);
  --card-hover-bg: #173e4c;
  color: var(--text);
}
.slide-services { --section-mid: #0b3b42; }
.slide-services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.14), rgb(var(--accent3-rgb) / 0.06));
  clip-path: polygon(100% 0, 76% 0, 93% 100%, 100% 100%);
  pointer-events: none;
}
.slide-services .section-subtitle { color: var(--text); }
.slide-work { --section-mid: #102832; }
.slide-work::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgb(var(--accent-rgb) / 0.14), rgb(var(--accent3-rgb) / 0.06));
  clip-path: polygon(0 0, 24% 0, 7% 100%, 0 100%);
  pointer-events: none;
}

@media (max-width: 600px) {
  .slide-services .section-title .gradient-text { color: var(--accent-tint); }
  .slide-about::before { display: none; }
  .about-left { position: relative; }
  .about-left::before {
    content: '';
    position: absolute;
    inset: -70px 0 0;
    border-top: 1px solid rgb(var(--accent3-rgb) / 0.32);
    border-left: 1px solid rgb(var(--accent3-rgb) / 0.32);
    background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), transparent 70%);
    mask-image: linear-gradient(135deg, #000, transparent 85%);
    pointer-events: none;
  }
  .slide-methodology::after { display: none; }
  .slide-services::before { clip-path: polygon(100% 0, 66% 0, 95% 100%, 100% 100%); }
  .slide-work::before { clip-path: polygon(0 0, 34% 0, 5% 100%, 0 100%); }
}
.slide-notes { --section-mid: #12323c; }
.service-card, .work-card, .note-card, .modal-box { border-radius: 8px; }
.service-card::before, .work-card::before { display: none; }
.service-card, .work-card, .note-card { background: var(--card-bg); }
.service-card { border-top: 3px solid var(--accent); }
.assessment-hub { border-color: var(--border); border-top-color: var(--accent); }
.service-icon, .work-card-meta, .work-card-arrow, .timeline-content h3, .note-meta { color: var(--accent-tint); }
.deliverable-list span, .service-outcomes span { border: 0; border-radius: 0; padding: 0.25rem 0; background: none; color: var(--accent-tint); }
.deliverable-list, .service-outcomes { column-gap: 0.8rem; }
.deliverable-list span { width: 100%; }
.work-card { border-color: var(--border); height: 100%; }
.work-card:first-child { border-left-color: var(--accent); }
.work-card-number { color: rgb(var(--accent3-rgb) / 0.55); }
.case-proof span { padding: 0.45rem 0; border: 0; border-top: 1px solid var(--border); background: none; }
.work-grid { height: auto; min-height: 410px; }
.case-proof { margin-bottom: 1rem; }
.note-cover { border: 0; background-color: #0a2432; }
.note-icon .icon-base { stroke: var(--muted); }
.note-icon .icon-primary { stroke: var(--accent); }
.note-icon .icon-alert { stroke: var(--accent-tint); }
.timeline-dot { background: var(--bg); border-color: var(--accent); }
.credential-tag { border-radius: 4px; }
.credibility-panel div { background: none; border: 0; border-top: 1px solid var(--border); padding: 1rem 0; }
.slide-contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgb(var(--accent-rgb) / 0.26), transparent 70%),
    radial-gradient(ellipse 45% 35% at 50% 0%, rgb(var(--accent3-rgb) / 0.07), transparent 70%),
    linear-gradient(180deg, #06162e, var(--bg) 55%, #0a2b3a);
}
.slide-contact::before {
  content: '';
  display: block;
  position: absolute;
  inset: auto -50% 0;
  width: auto;
  height: 58%;
  background:
    repeating-linear-gradient(90deg, rgb(var(--accent-rgb) / 0.2) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgb(var(--accent-rgb) / 0.16) 0 1px, transparent 1px 56px);
  transform: perspective(520px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 25%, transparent 95%);
  pointer-events: none;
}
.slide-contact .btn-primary { box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.4), 0 10px 40px rgb(var(--accent-rgb) / 0.35); }
.slide-contact .btn-primary:hover { box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.6), 0 14px 50px rgb(var(--accent-rgb) / 0.5); }
.contact-engagement-model { border: 0; border-radius: 0; background: none; padding: 0; }
.assessment-outputs div { background: none; border: 0; border-top: 1px solid var(--border); }
.contact-confidential { margin-bottom: 1.25rem; }
footer { background: var(--bg3); }
.footer-links :is(a, button) { border-radius: 6px; color: var(--text); }
.modal-overlay { background: rgb(var(--bg-rgb) / 0.25); backdrop-filter: none; }
.modal-box { background: var(--bg2); border-color: rgb(var(--surface-rgb) / 0.1); box-shadow: 0 20px 50px rgb(0 0 0 / 0.3); }
.modal-box:focus, .modal-box:focus-visible { outline: none; }
.modal-box h2 { padding-right: 2rem; font-size: 1.7rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.6rem; }
.modal-box .case-meta { font-size: 0.9rem; font-style: italic; color: var(--muted); border-bottom: 0; padding-bottom: 0; margin-bottom: 2rem; }
.modal-box h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-tint); margin: 1.8rem 0 0.5rem; }
.modal-box p, .modal-box ul { color: rgb(var(--surface-rgb) / 0.82); line-height: 1.75; }
.modal-box strong { color: var(--text); font-weight: 700; }
.modal-box ul { padding-left: 1.2rem; }
.modal-box li::marker { color: var(--muted); }
.modal-close-btn { border-radius: 6px; }
.modal-close-btn:hover { transform: none; }
.cookie-banner { border-radius: 8px; background: var(--bg2); }
.cookie-accept { border-radius: 6px; background: var(--accent); color: var(--on-accent); }

@media (max-width: 900px) {
  .hero-title { font-size: 3rem; }
  .about-left .section-title::after { margin-left: auto; }
  .section-title { font-size: 2rem; }
}

@media (min-width: 769px) and (max-width: 900px) {
  .about-left .section-title::after { margin-left: 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .architect-illustration { display: none; }
  .about-hero-media { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg); padding: 1.25rem; border-bottom: 1px solid var(--border); }
  .nav-links.open a { margin: 0.5rem 0; min-height: 32px; }
  .slide { overflow-y: auto; scrollbar-width: thin; }
  .slide > .container, .hero-content { flex-shrink: 0; }
  .slide:not(.slide-hero) { padding-top: 5.5rem; padding-bottom: 4rem; justify-content: safe center; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.05rem; line-height: 1.6; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 1.9rem; }
  .hero-badge { margin-bottom: 1.3rem; font-size: 0.75rem; }
  .section-title { font-size: 1.5rem; margin-bottom: 1.25rem; }
  .section-title::after { margin-top: 0.8rem; width: 56px; }
  .section-subtitle { margin-top: 0; margin-bottom: 1.5rem; }
  .work-grid { min-height: 0; height: auto; align-items: stretch; }
  .work-card { height: auto; }
  .slide-services { padding-top: 5.5rem !important; }
  .slide-work, .slide-notes, .slide-services, .slide-methodology { justify-content: safe center !important; }
  .slide.slide-hero { justify-content: safe center; padding-bottom: 3rem; }
  .contact-options, .contact-desc { margin-bottom: 1rem; }
  .contact-engagement-model { display: none; }
  .contact-confidential { margin-bottom: 1rem; }
  .assessment-outputs { grid-template-columns: 1fr; gap: 0.4rem; }
  .assessment-outputs div { display: flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.4rem 0; }
  .assessment-outputs span { margin: 0; }
  .modal-box, .cookie-banner { border-radius: 8px; }
  .btn-large { padding: 0.85rem 1rem; }
}

@media (max-height: 750px) {
  .slide { overflow-y: auto; justify-content: safe center; }
  .slide > .container, .hero-content { flex-shrink: 0; }
  .slide:not(.slide-hero) { padding-top: 5.5rem; padding-bottom: 4rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-badge { margin-bottom: 1rem; }
  .scroll-indicator { display: none; }
}

@media (max-width: 600px) and (max-height: 750px) {
  .hero-title { font-size: 1.9rem; }
  .slide:not(.slide-hero) { padding-left: 1.2rem; padding-right: 1.2rem; }
  .assessment-outputs { display: grid; }
}

