/* ==========================================================================
   REDBERET - MODERN EDITORIAL AGENCY DESIGN SYSTEM
   Typography: Space Grotesk (display) · Plus Jakarta Sans (UI/body) · JetBrains Mono (accents)
   Palette: Swiss Gallery Paper (Light) · Architectural Obsidian (Dark) · Redberet Crimson
   ========================================================================== */

:root {
  color-scheme: light dark;

  &:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
  }
  &:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
  }

  /* Typography */
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Raw Palette Tokens */
  --bg-light: #fafaf8;
  --bg-dark: #0a0b0f;

  --bg-subtle-light: #f2f1ec;
  --bg-subtle-dark: #101218;

  --surface-light: #ffffff;
  --surface-dark: #141720;

  --surface-glass-light: rgba(250, 250, 248, 0.82);
  --surface-glass-dark: rgba(10, 11, 15, 0.82);

  --text-primary-light: #111318;
  --text-primary-dark: #f4f5f8;

  --text-secondary-light: #4f5563;
  --text-secondary-dark: #9ca3b2;

  --text-muted-light: #6e7585;
  --text-muted-dark: #6f7787;

  --border-light: rgba(17, 19, 24, 0.09);
  --border-dark: rgba(255, 255, 255, 0.09);

  --border-strong-light: rgba(17, 19, 24, 0.18);
  --border-strong-dark: rgba(255, 255, 255, 0.18);

  --accent-light: #d62e30;
  --accent-dark: #ef3b41;

  --accent-hover-light: #b82326;
  --accent-hover-dark: #ff5056;

  --accent-soft-light: rgba(213, 46, 48, 0.09);
  --accent-soft-dark: rgba(239, 59, 65, 0.16);

  --accent-glow-light: rgba(213, 46, 48, 0.22);
  --accent-glow-dark: rgba(239, 59, 65, 0.28);

  --error-light: #c81e2b;
  --error-dark: #ff6b72;
  --error-bg-light: #fef2f2;
  --error-bg-dark: rgba(239, 59, 65, 0.12);

  --success-light: #15803d;
  --success-dark: #4ade80;

  --shadow-sm-light: 0 1px 2px rgba(17, 19, 24, 0.05), 0 4px 14px rgba(17, 19, 24, 0.04);
  --shadow-sm-dark: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.28);

  --shadow-lg-light: 0 12px 36px rgba(17, 19, 24, 0.08), 0 2px 8px rgba(17, 19, 24, 0.04);
  --shadow-lg-dark: 0 18px 48px rgba(0, 0, 0, 0.48), 0 2px 10px rgba(0, 0, 0, 0.3);

  --grid-line-light: rgba(17, 19, 24, 0.045);
  --grid-line-dark: rgba(255, 255, 255, 0.045);

  /* Fallback tokens (Light default) */
  --bg: var(--bg-light);
  --bg-subtle: var(--bg-subtle-light);
  --surface: var(--surface-light);
  --surface-glass: var(--surface-glass-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --border: var(--border-light);
  --border-strong: var(--border-strong-light);
  --accent: var(--accent-light);
  --accent-hover: var(--accent-hover-light);
  --accent-soft: var(--accent-soft-light);
  --accent-glow: var(--accent-glow-light);
  --error: var(--error-light);
  --error-bg: var(--error-bg-light);
  --success: var(--success-light);
  --shadow-sm: var(--shadow-sm-light);
  --shadow-lg: var(--shadow-lg-light);
  --grid-line: var(--grid-line-light);

  @media (prefers-color-scheme: dark) {
    --bg: var(--bg-dark);
    --bg-subtle: var(--bg-subtle-dark);
    --surface: var(--surface-dark);
    --surface-glass: var(--surface-glass-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-muted: var(--text-muted-dark);
    --border: var(--border-dark);
    --border-strong: var(--border-strong-dark);
    --accent: var(--accent-dark);
    --accent-hover: var(--accent-hover-dark);
    --accent-soft: var(--accent-soft-dark);
    --accent-glow: var(--accent-glow-dark);
    --error: var(--error-dark);
    --error-bg: var(--error-bg-dark);
    --success: var(--success-dark);
    --shadow-sm: var(--shadow-sm-dark);
    --shadow-lg: var(--shadow-lg-dark);
    --grid-line: var(--grid-line-dark);
  }

  @supports (color: light-dark(white, black)) {
    --bg: light-dark(var(--bg-light), var(--bg-dark));
    --bg-subtle: light-dark(var(--bg-subtle-light), var(--bg-subtle-dark));
    --surface: light-dark(var(--surface-light), var(--surface-dark));
    --surface-glass: light-dark(var(--surface-glass-light), var(--surface-glass-dark));
    --text-primary: light-dark(var(--text-primary-light), var(--text-primary-dark));
    --text-secondary: light-dark(var(--text-secondary-light), var(--text-secondary-dark));
    --text-muted: light-dark(var(--text-muted-light), var(--text-muted-dark));
    --border: light-dark(var(--border-light), var(--border-dark));
    --border-strong: light-dark(var(--border-strong-light), var(--border-strong-dark));
    --accent: light-dark(var(--accent-light), var(--accent-dark));
    --accent-hover: light-dark(var(--accent-hover-light), var(--accent-hover-dark));
    --accent-soft: light-dark(var(--accent-soft-light), var(--accent-soft-dark));
    --accent-glow: light-dark(var(--accent-glow-light), var(--accent-glow-dark));
    --error: light-dark(var(--error-light), var(--error-dark));
    --error-bg: light-dark(var(--error-bg-light), var(--error-bg-dark));
    --success: light-dark(var(--success-light), var(--success-dark));
    --grid-line: light-dark(var(--grid-line-light), var(--grid-line-dark));
  }

  /* Layout & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-h: 76px;

  accent-color: var(--accent);
}

/* Explicit shadow overrides when color-scheme meta overrides OS */
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  --shadow-sm: var(--shadow-sm-dark);
  --shadow-lg: var(--shadow-lg-dark);
}
:root:has(> head > meta[name="color-scheme"][content="light"]) {
  --shadow-sm: var(--shadow-sm-light);
  --shadow-lg: var(--shadow-lg-light);
}

/* ==========================================================================
   BASE RESET & ACCESSIBILITY
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: clip;
}

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

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

ul {
  list-style: none;
}

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

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

::selection {
  background-color: var(--accent);
  color: #ffffff;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

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

.container {
  width: min(1240px, 92vw);
  margin-inline: auto;
}

.text-accent {
  color: var(--accent);
}

/* ==========================================================================
   NON-COLOR LIGHT / DARK BRANCHING (LOGOS & THEME TOGGLE)
   ========================================================================== */
.logo-dark {
  display: none;
}
.logo-light {
  display: block;
}
.theme-to-light {
  display: none;
}
.theme-to-dark {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) {
    .logo-dark {
      display: block;
    }
    .logo-light {
      display: none;
    }
    .theme-to-light {
      display: inline-flex;
    }
    .theme-to-dark {
      display: none;
    }
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  .logo-dark {
    display: block;
  }
  .logo-light {
    display: none;
  }
  .theme-to-light {
    display: inline-flex;
  }
  .theme-to-dark {
    display: none;
  }
}

/* ==========================================================================
   BUTTONS & SHARED PRIMITIVES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
}

.btn-sm {
  height: 38px;
  padding: 0 1rem;
  font-size: 0.84rem;
}

.btn-lg {
  height: 50px;
  padding: 0 1.6rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px var(--accent-glow);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eyebrow-star {
  color: var(--accent);
  font-size: 0.85em;
}

.eyebrow-dark {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(244, 245, 248, 0.88);
}

/* ==========================================================================
   STICKY HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background-color: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-subtle);
}

.nav-link.is-current {
  color: var(--text-primary);
  background-color: var(--accent-soft);
}

.nav-link.is-current::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  margin-right: 0.45rem;
  vertical-align: middle;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-option {
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   NATIVE DIALOG SCROLL CONTAINMENT & SEARCH MODAL
   ========================================================================== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

.search-dialog {
  width: min(640px, 92vw);
  max-height: 82svh;
  margin: min(10vh, 80px) auto auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-dialog[open] {
  display: flex;
  flex-direction: column;
}

.search-dialog::backdrop {
  background: rgba(10, 11, 15, 0.58);
  backdrop-filter: blur(8px);
}

.search-dialog-panel {
  display: flex;
  flex-direction: column;
  max-height: 82svh;
}

.search-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem 0.75rem;
}

.search-dialog-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.search-form {
  padding: 0 1.35rem 1rem;
  border-bottom: 1px solid var(--border);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 3.8rem 0 2.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background-color: var(--bg);
  font-size: 0.96rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-kbd {
  position: absolute;
  right: 0.85rem;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.search-results {
  padding: 0.75rem 1.35rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.search-result-item:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border);
}

.search-result-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.search-result-title {
  font-weight: 500;
  font-size: 0.92rem;
}

.search-result-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.search-result-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.search-empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.search-empty button {
  margin-top: 0.75rem;
}

/* ==========================================================================
   NATIVE MOBILE NAVIGATION DRAWER (Modern Web Guidance compliant)
   ========================================================================== */
.Drawer {
  --drawer-width: min(20.5rem, 82dvw, 100dvw - 24px);
  --drawer-backdrop: 0;

  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.Drawer::backdrop {
  background: #000000;
  opacity: calc(var(--drawer-backdrop) * 0.58);
}

.Drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller {
    scroll-behavior: smooth;
  }
}

.Drawer-scroller::after {
  content: "";
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}

.Drawer-sheet {
  display: flex;
  flex-direction: column;
  height: 100svh;
  padding: 1.25rem;
  background-color: var(--surface);
  color: var(--text-primary);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-block: 1.25rem;
}

.drawer-links a {
  display: flex;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.drawer-links a:hover {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.drawer-contact a:hover {
  color: var(--accent);
}

@supports (animation-timeline: scroll()) {
  .Drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }

  .Drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }

  @property --drawer-backdrop {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
  }

  @keyframes fade-drawer-backdrop {
    0% {
      --drawer-backdrop: 1;
    }
    100% {
      --drawer-backdrop: 0;
    }
  }
}

/* ==========================================================================
   SECTION 01: EDITORIAL HERO + SCOPED 3D STAR STAGE
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  filter: blur(24px);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 19ch;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 54ch;
}

.hero-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-metrics {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 540px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 1.25rem;
}

.metric-item {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.2rem;
}

.metric-item dd {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.metric-item dt {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Scoped 3D Redberet Star Sculpture Stage */
.hero-visual {
  width: 100%;
}

.star-stage-card {
  position: relative;
  aspect-ratio: 4 / 4.25;
  min-height: 440px;
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background-color: #11131a;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.star-stage-card:active {
  cursor: grabbing;
}

.star-stage-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  transform: scale(1.04);
  pointer-events: none;
}

.star-stage-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(213, 46, 48, 0.16) 0%, rgba(12, 14, 20, 0.74) 70%, rgba(10, 11, 15, 0.94) 100%);
  pointer-events: none;
}

#star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.star-stage-top,
.star-stage-bottom {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.star-stage-top {
  top: 1.1rem;
}

.star-stage-bottom {
  bottom: 1.1rem;
  flex-wrap: wrap;
}

.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 16, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(244, 245, 248, 0.88);
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ef3b41;
  box-shadow: 0 0 10px rgba(239, 59, 65, 0.9);
}

.stage-motion-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 16, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  color: #f4f5f8;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.stage-motion-btn:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(24, 27, 36, 0.85);
}

.motion-icon-play {
  display: none;
}

.stage-motion-btn.is-paused .motion-icon-pause {
  display: none;
}

.stage-motion-btn.is-paused .motion-icon-play {
  display: inline-flex;
}

.star-mode-switcher {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem;
  border-radius: 999px;
  background: rgba(14, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  gap: 0.2rem;
}

.mode-btn {
  padding: 0.36rem 0.78rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 245, 248, 0.72);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mode-btn:hover {
  color: #ffffff;
}

.mode-btn.is-active {
  background-color: #d62e30;
  color: #ffffff;
}

.stage-drag-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(244, 245, 248, 0.6);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   SHARED SECTION HEADERS
   ========================================================================== */
.section {
  padding: clamp(4.5rem, 7.5vw, 7rem) 0;
}

.section-services {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.section-portfolio {
  background-color: var(--bg);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.section-head-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 48ch;
  justify-self: end;
}

/* ==========================================================================
   SECTION 02: CAPABILITIES (USLUGE)
   ========================================================================== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.capability-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.cap-num {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cap-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.cap-desc {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  flex: 1;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cap-tags li {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background-color: var(--bg-subtle);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECTION 03: PORTFOLIO SHOWCASE
   ========================================================================== */
.section-head-portfolio {
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-btn.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

.filter-btn.is-active .filter-count {
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

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

.project-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card.is-extra-item {
  display: none;
}

.project-card.is-extra-item.is-revealed {
  display: block;
}

.project-card.is-filtered-out {
  display: none !important;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-media {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.85rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.browser-chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--border-strong);
}

.project-card:hover .browser-chrome span:first-child {
  background-color: var(--accent);
}

.project-img-wrap {
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background-color: #161820;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.04);
}

.project-body {
  padding: 1.2rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.project-region {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.project-terms {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-card:hover .project-arrow {
  background-color: var(--accent);
  color: #ffffff;
  transform: translate(2px, -2px);
}

.portfolio-footer-actions {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

/* ==========================================================================
   SECTION 04: PUBLIC SERVICES (DARK EDITORIAL BAND)
   ========================================================================== */
.section-public-services {
  position: relative;
  background-color: #0e1015;
  color: #f4f5f8;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.public-services-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  pointer-events: none;
}

.public-services-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 15, 0.84) 0%, rgba(10, 11, 15, 0.74) 50%, rgba(10, 11, 15, 0.92) 100%);
  pointer-events: none;
}

.public-services-inner {
  position: relative;
  z-index: 1;
}

.section-head-on-dark .section-title {
  color: #ffffff;
}

.section-head-on-dark .section-subtitle {
  color: rgba(244, 245, 248, 0.72);
}

.public-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-portal-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 23, 32, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

.service-portal-card:hover {
  border-color: #ef3b41;
  background: rgba(26, 30, 42, 0.88);
  transform: translateY(-4px);
}

.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.portal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 59, 65, 0.16);
  color: #ff6268;
}

.portal-arrow {
  font-size: 1rem;
  color: rgba(244, 245, 248, 0.55);
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-portal-card:hover .portal-arrow {
  color: #ffffff;
  transform: translate(2px, -2px);
}

.portal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.portal-desc {
  font-size: 0.88rem;
  line-height: 1.58;
  color: rgba(244, 245, 248, 0.7);
  margin-bottom: 1.35rem;
  flex: 1;
}

.portal-host {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #ff6b72;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* ==========================================================================
   SECTION: FAQ & ANSWER ENGINE OPTIMIZATION (AEO)
   ========================================================================== */
.section-faq {
  border-bottom: 1px solid var(--border);
}

.faq-accordion-grid {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  max-width: 920px;
  margin: 0 auto;
}

.faq-accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.faq-accordion-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question-btn::-webkit-details-marker {
  display: none;
}

.faq-question-btn:hover {
  color: var(--accent);
}

.faq-toggle-icon {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}

.faq-accordion-item[open] .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer-content {
  padding: 0 1.4rem 1.25rem 1.4rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.25rem;
  padding-top: 0.95rem;
}

.faq-answer-content p {
  margin: 0;
}

/* ==========================================================================
   SECTION 05: CONTACT & ACCESSIBLE FORM VALIDATION
   ========================================================================== */
.section-contact {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
}

.contact-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 46ch;
}

.contact-cards {
  width: 100%;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.contact-detail-card:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}

.cd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.cd-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cd-value {
  display: block;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-primary);
}

.social-row {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-pill {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.social-pill:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: #ffffff;
}

/* Form Card */
.contact-form-card {
  padding: clamp(1.6rem, 3.2vw, 2.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: var(--shadow-lg);
}

.project-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-head {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.form-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.form-subheading {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

.form-fieldset {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.req {
  color: var(--accent);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.field-input {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg);
  color: var(--text-primary);
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field-input::placeholder {
  color: var(--text-muted);
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

/* Deferred Validation (:user-invalid + fallback via :is()) */
.error-msg {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--error);
  margin-top: 0.15rem;
}

.field-input:is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.field-input:is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: flex;
}

.field-input:is(:user-valid, .user-valid-fallback) {
  border-color: var(--success);
}

.scope-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-option {
  position: relative;
  cursor: pointer;
}

.chip-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip-option span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background-color: var(--bg);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.chip-option input:checked + span {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  color: var(--accent);
}

.chip-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-feedback {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--success);
  min-height: 1.3em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg);
  padding: 3.75rem 0 2.25rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--border);
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 38ch;
}

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-current {
  font-weight: 500;
  color: var(--text-primary);
}

.footer-lang a:hover {
  color: var(--accent);
}

/* ==========================================================================
   COOKIE NOTICE (Subtle non-intrusive card)
   ========================================================================== */
.cookie-notice {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  max-width: 380px;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-notice.is-hidden {
  display: none;
}

.cookie-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* ==========================================================================
   DECORATIVE SCROLL-DRIVEN REVEALS (Modern Web Guidance compliant)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0.35;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-on-scroll {
      animation: reveal-up auto linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .capabilities-grid,
  .public-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-layout,
  .section-head,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy,
  .hero-visual {
    min-width: 0;
  }

  .section-subtitle {
    justify-self: start;
  }

  .star-stage-card {
    aspect-ratio: auto;
    height: 400px;
    min-height: 0;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .capabilities-grid,
  .portfolio-grid,
  .public-services-grid,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-title {
    font-size: clamp(2rem, 8.8vw, 2.55rem);
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .star-stage-card {
    height: 340px;
  }

  .stage-drag-hint {
    display: none;
  }

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

/* ==========================================================================
   WORDPRESS SUBPAGE SUBHEADER, BREADCRUMBS & FOOTER ADDRESS
   ========================================================================== */
.footer-top {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.1fr);
}

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-address a:hover {
  color: var(--accent);
}

.footer-top-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-top-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.rb-page-subheader {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 clamp(1.85rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-subtle);
}

.rb-subheader-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rb-breadcrumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.rb-crumb-link {
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-secondary);
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.rb-crumb-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.rb-crumb-sep {
  color: var(--text-muted);
}

.rb-crumb-current {
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.rb-subheader-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-primary);
}

.archive .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

/* WordPress admin bar offset */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

.project-captcha #cptch_slide_container {
  display: block;
  margin: 0;
  background-color: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.project-captcha #cptch_slide_container p {
  color: var(--text-primary);
  font-family: inherit;
}

.project-captcha #cptch_slide_slider {
  background-color: #d62e30;
  border-radius: var(--radius-sm);
  cursor: grab;
}

.project-captcha #cptch_slide_slider:active {
  cursor: grabbing;
}

body, body * {
  font-weight: 400 !important;
  letter-spacing: normal !important;
}

body :is(input, textarea, select, button) { font-family: var(--font-sans); }

.rb-crumb-current, .rb-subheader-title, .cd-value, .footer-address {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .header-inner { gap: 0.75rem; }
  .header-actions { gap: 0.35rem; }
  .header-actions .icon-btn { width: 44px; height: 44px; }
  .star-stage-card { height: clamp(260px, 76vw, 340px); }
  .contact-form-card { padding: clamp(1rem, 4vw, 1.6rem); }
  .form-fieldset { min-width: 0; }
}

@media (max-width: 420px) {
  .hero-cta-row { width: 100%; gap: 0.6rem; }
  .hero-cta-row .btn { width: 100%; }
}
