/* =============================================================================
   Iron Mind AI — Main Stylesheet
   Brandbook ref: docs/brandbook.md
   Dark mode only. No light mode.
   ============================================================================= */

/* =============================================================================
   0. SELF-HOSTED FONTS (eliminates render-blocking Google Fonts CSS)
   ============================================================================= */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/barlow-condensed-700-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/static/fonts/dm-sans-latin.woff2') format('woff2-variations'),
       url('/static/fonts/dm-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
}

/* =============================================================================
   1. RESET & BASE
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =============================================================================
   2. CSS CUSTOM PROPERTIES (Brandbook: Color System, Typography, Spacing)
   ============================================================================= */

:root {
  /* Colors */
  --color-bg-primary: #0E0E0E;
  --color-bg-surface: #161616;
  --color-bg-elevated: #1C1C1C;
  --color-accent: #E87C2E;
  --color-accent-hover: #F08C3E;
  --color-accent-subtle: rgba(232, 124, 46, 0.12);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #E8EAED;
  --color-text-muted: #888888;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Border radius */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease-out;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
}

/* =============================================================================
   3. SKIP LINK (Accessibility)
   ============================================================================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  background: var(--color-accent);
  color: #0E0E0E;
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}

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

/* =============================================================================
   4. NAVIGATION (Brandbook: Component Patterns > Navigation)
   ============================================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Logo */
.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__link {
  position: relative;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  padding-bottom: 4px;
  white-space: nowrap;
}

/* Amber underline — slides in from left on hover/active */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--color-text-primary);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__link.is-active {
  color: var(--color-text-primary);
}

/* CTA button in nav */
.nav__cta {
  flex-shrink: 0;
}

/* Hamburger button (mobile only) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav__hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-text-secondary);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

/* Hamburger open state */
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav__mobile-overlay {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  z-index: 99;
  flex-direction: column;
  padding: var(--space-4);
  gap: var(--space-3);
  overflow-y: auto;
}

.nav__mobile-overlay.is-open {
  display: flex;
}

.nav__mobile-link {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover,
.nav__mobile-link.is-active {
  color: var(--color-text-primary);
}

/* =============================================================================
   5. LAYOUT UTILITIES
   ============================================================================= */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-7) 0;
}

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

.section--full {
  padding: var(--space-8) 0;
}

/* Section label (01, 02, 03... in amber) */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

/* Section heading */
.section-heading {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.section-subheading {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: var(--space-5);
}

/* =============================================================================
   6. BUTTONS (Brandbook: Component Patterns > Buttons)
   ============================================================================= */

/* Primary button — amber, dark text, one per viewport */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: filter var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

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

.btn--primary {
  background-color: var(--color-accent);
  color: #0E0E0E;
  border: 1px solid transparent;
}

.btn--primary:hover {
  filter: brightness(1.08);
}

/* Ghost button — amber border, amber text, transparent bg */
.btn--ghost {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn--ghost:hover {
  background-color: var(--color-accent-subtle);
}

/* Text link style */
.btn--text {
  padding: 0;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* =============================================================================
   7. HERO SECTION (Section 01)
   ============================================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-5) var(--space-4);
}

/* No texture — clean dark background only */
.hero::before {
  display: none;
}

.hero__watermark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.015;
}

.hero__watermark img {
  width: 100%;
  height: auto;
  display: block;
}

/* Radial glow at center */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(232, 124, 46, 0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  line-height: 1.05;
  margin-bottom: var(--space-3);
}

.hero__headline--aside {
  display: block;
  font-size: 58px;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

/* Amber accent line under headline */
.hero__accent-line {
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 0 auto var(--space-4);
}

.hero__subline {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto var(--space-5);
}

/* Page-load stagger animation classes */
.hero__headline,
.hero__accent-line,
.hero__subline,
.hero__cta {
  opacity: 0;
  transform: translateY(12px);
}

.hero__headline.anim-in,
.hero__accent-line.anim-in,
.hero__subline.anim-in,
.hero__cta.anim-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

/* =============================================================================
   8. SERVICE TILES (Section 02 — What We Build)
   ============================================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.service-tile {
  background-color: var(--color-bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.service-tile:hover {
  background-color: var(--color-bg-elevated);
  border-color: rgba(232, 124, 46, 0.3);
}

/* Clickable service tile — inherits card look, removes link defaults */
a.service-tile--link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.service-tile__icon {
  width: 24px;
  height: 24px;
  margin-bottom: var(--space-3);
  color: var(--color-accent);
  flex-shrink: 0;
}

.service-tile__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.service-tile__desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =============================================================================
   9. PROCESS STEPS (Section 03 — How We Work)
   ============================================================================= */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
  position: relative;
}

/* Connector line between steps */
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 8px);
  right: calc(12.5% + 8px);
  height: 1px;
  background: var(--color-border);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
}

.process-step__number {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background-color: var(--color-bg-primary);
  margin-bottom: var(--space-3);
  letter-spacing: 0;
}

.process-step__title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.process-step__desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* =============================================================================
   10. CASE STUDY CARDS (Section 04 — Recent Work)
   ============================================================================= */

.case-studies {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.case-study-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5) var(--space-5) calc(var(--space-5) + 3px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-6);
  align-items: start;
  position: relative;
  transition: border-color var(--transition-base);
}

/* Left amber accent bar */
.case-study-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-accent);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.case-study-card:hover {
  border-color: var(--color-border-hover);
}

.case-study-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.case-study-card__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.case-study-card__project {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.case-study-card__metric {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: 0.02em;
}

.case-study-card__metric-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-study-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-1);
}

.case-study-card__desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.case-study-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

/* Row of action buttons — gallery + visit project */
.case-study-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  align-items: center;
}

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* Amber category tag variant */
.tag--amber {
  color: var(--color-accent);
  background-color: var(--color-accent-subtle);
  border-color: rgba(232, 124, 46, 0.2);
}

/* =============================================================================
   11. TESTIMONIALS (Section 05)
   ============================================================================= */

/* --- Carousel wrapper --- */
.testimonials-carousel {
  --carousel-visible: 3; /* desktop default; overridden at tablet (2) and mobile (1) */
  margin-top: var(--space-5);
  position: relative;
}

/* Clipping viewport — overflow hidden cuts cards outside visible window */
.testimonials-carousel__track-wrap {
  overflow: hidden;
}

/* Horizontal card strip — JS sets width and translateX to drive the slide */
.testimonials-carousel__track {
  display: flex;
  gap: var(--space-3);
  transition: transform var(--transition-slow); /* 300ms ease-out per brandbook */
  will-change: transform;
}

/* Each card occupies 1/3 of the track-wrap minus gap fractions (desktop default) */
.testimonials-carousel__track .testimonial-card {
  /* Width set dynamically by JS based on visible slide count; min-width prevents
     the card from shrinking when only a few testimonials exist */
  flex-shrink: 0;
}

/* --- Individual card --- */
.testimonial-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--transition-base);
}

.testimonial-card:hover {
  border-color: var(--color-border-hover);
}

/* --- Controls row: prev button, dots, next button --- */
.testimonials-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Ghost arrow buttons — 40px circle, no amber (amber reserved for CTAs) */
.testimonials-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.testimonials-carousel__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-border-hover);
}

.testimonials-carousel__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.testimonials-carousel__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dots container */
.testimonials-carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Individual dot — 6px circle, muted white (no amber) */
.testimonials-carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.testimonials-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.testimonials-carousel__dot.is-active {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.testimonials-carousel__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.testimonial-card__quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 0.7;
  user-select: none;
}

.testimonial-card__text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.7;
  flex: 1;
  white-space: pre-line;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
  display: block;
  flex-shrink: 0;
}

.testimonial-card__attribution {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.testimonial-card__attribution cite {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card__name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.testimonial-card__flag {
  font-size: 14px;
  margin-left: 4px;
  vertical-align: middle;
}

.testimonial-card__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
}

.testimonial-card__links {
  display: flex;
  gap: var(--space-2);
  margin-top: 4px;
}

.testimonial-card__link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}

.testimonial-card__link:hover {
  color: var(--color-text-primary);
}

/* =============================================================================
   12. ABOUT SECTION (Section 06)
   ============================================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
  margin-top: var(--space-5);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-text p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.about-intro {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: var(--color-text-primary) !important;
  margin-bottom: var(--space-1);
}

.about-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.2);
  border-radius: var(--radius-md);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: grayscale(100%) brightness(0.95);
}

/* Placeholder photo block */
.about-photo-placeholder {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-1);
}

.about-photo-placeholder__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* =============================================================================
   13. CTA / CONTACT SECTION (Section 07)
   ============================================================================= */

.cta-section {
  background-color: var(--color-bg-surface);
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-section__heading {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.cta-section__subline {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto var(--space-5);
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.cta-section__footnote {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
}

/* === CONTACT FORM ===
   Inline contact form within .cta-section (Section 07, #contact).
   Brandbook: dark elevated inputs, amber focus ring, DM Sans labels.
   =========================================================== */

.contact-form {
  max-width: 640px;
  margin: 0 auto var(--space-4);
  text-align: left;
}

/* Two-column row for short fields */
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

/* Remove bottom margin when field is inside a row (row handles it) */
.contact-form__row .contact-form__field {
  margin-bottom: 0;
}

.contact-form__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  display: block;
}

.contact-form__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  padding: 12px var(--space-2);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form__input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.contact-form__input:hover {
  border-color: var(--color-border-hover);
}

.contact-form__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(232, 124, 46, 0.25);
}

/* Invalid state (set via JS after validation failure) */
.contact-form__input.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Inline field error text */
.contact-form__error {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: #e05252;
  display: none;
  margin-top: 2px;
}

.contact-form__error.is-visible {
  display: block;
}

/* Submit button — full width on all viewports within the form */
.contact-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-1);
}

/* Error banner (network / server error) */
.contact-form__error-banner {
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background-color: rgba(192, 57, 43, 0.12);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: #e05252;
  text-align: center;
}

.contact-form__error-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Success message */
.contact-form__success {
  max-width: 640px;
  margin: 0 auto var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-elevated);
}

.contact-form__success[hidden] {
  display: none;
}

.contact-form__success-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-form__success-text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-align: center;
  margin: 0;
}

/* =============================================================================
   14. BLOG TEASER (Recent Posts, above footer)
   ============================================================================= */

.blog-teaser {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--color-border);
}

.blog-teaser__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.blog-teaser__label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

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

/* =============================================================================
   15. BLOG POST CARDS (shared: teaser + blog index)
   ============================================================================= */

.post-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color var(--transition-base), background-color var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  background-color: var(--color-bg-elevated);
  border-color: rgba(232, 124, 46, 0.3);
}

.post-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.post-card__category {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.post-card__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.post-card__excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-1);
}

.post-card__meta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
}

.post-card__read-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-card:hover .post-card__read-link {
  color: var(--color-text-primary);
}

/* =============================================================================
   16. FOOTER (Brandbook: Component Patterns)
   ============================================================================= */

.footer {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) 0 var(--space-4);
}

.footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-3);
}

.footer__logo img {
  height: auto;
  width: 80px;
}

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

.footer__nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--color-text-primary);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.footer__legal {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: #B0B0B0;
  letter-spacing: 0.04em;
  margin-top: var(--space-1);
}

/* =============================================================================
   17. BLOG PAGE (blog.html)
   ============================================================================= */

.blog-header {
  padding: var(--space-7) 0 var(--space-5);
}

.blog-header__heading {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.blog-header__subline {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* Category filter bar */
.category-filter {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.category-filter__btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
  display: inline-block;
}

.category-filter__btn:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.category-filter__btn.is-active {
  color: var(--color-accent);
  border-color: rgba(232, 124, 46, 0.3);
  background-color: var(--color-accent-subtle);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

/* =============================================================================
   18. BLOG POST PAGE (blog_post.html)
   ============================================================================= */

.post-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  transition: color var(--transition-fast);
}

.post-back:hover {
  color: var(--color-text-primary);
}

.post-header {
  margin-bottom: var(--space-5);
}

.post-header__category {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.post-header__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  line-height: 1.05;
  margin-bottom: var(--space-3);
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
}

.post-header__meta-divider {
  width: 3px;
  height: 3px;
  background-color: var(--color-text-muted);
  border-radius: 50%;
}

/* Post content typography */
.post-content {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.post-content h3 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.post-content p {
  margin-bottom: var(--space-3);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-3);
  padding-left: var(--space-3);
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: var(--space-1);
  color: var(--color-text-secondary);
}

.post-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.post-content a:hover {
  color: var(--color-accent-hover);
}

.post-content strong {
  font-weight: 500;
  color: var(--color-text-primary);
}

.post-content em {
  font-style: italic;
  color: var(--color-text-secondary);
}

.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  background-color: var(--color-bg-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content blockquote p {
  margin-bottom: 0;
  font-size: 17px;
  color: var(--color-text-secondary);
}

/* Code blocks — JetBrains Mono on elevated bg */
.post-content pre {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  margin: var(--space-4) 0;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.post-content p code,
.post-content li code {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* Amber-tinted keywords in code — simple approximation */
.post-content .kw { color: var(--color-accent); }
.post-content .str { color: #7ECA9C; }
.post-content .cm { color: var(--color-text-muted); font-style: italic; }

/* Author Bio — Brandbook: Cards > dark surface, var(--radius-md), flex row */
.author-bio {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.author-bio__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio__name {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.author-bio__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .author-bio__avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    object-fit: cover;
  }
}

/* Post end CTA */
.post-end-cta {
  margin-top: var(--space-8);
  padding: var(--space-6) var(--space-5);
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.post-end-cta__heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.post-end-cta__subline {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* =============================================================================
   19. SCROLL REVEAL ANIMATION
   ============================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 300ms; }

/* =============================================================================
   20. FOCUS STATES (Accessibility)
   ============================================================================= */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =============================================================================
   21. RESPONSIVE — TABLET (768px–1024px)
   ============================================================================= */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .process-steps::before {
    display: none;
  }

  /* Testimonials carousel — tablet shows 2 slides; JS reads --carousel-visible */
  .testimonials-carousel {
    --carousel-visible: 2;
  }

  .case-study-card {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .case-study-card__metric {
    font-size: 40px;
  }

  .about-grid {
    gap: var(--space-5);
  }

  .blog-teaser__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* =============================================================================
   22. RESPONSIVE — MOBILE (< 768px)
   ============================================================================= */

@media (max-width: 767px) {
  :root {
    --nav-height: 56px;
  }

  /* Nav */
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: var(--space-6) var(--space-3);
    min-height: calc(100svh - var(--nav-height));
  }

  .hero__headline {
    font-size: 48px;
  }

  .hero__headline--aside {
    font-size: 48px;
  }

  .hero__subline {
    font-size: 16px;
  }

  /* Section heading */
  .section-heading {
    font-size: 32px;
  }

  .section {
    padding: var(--space-6) 0;
  }

  .container {
    padding: 0 var(--space-3);
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .process-steps::before {
    display: none;
  }

  /* Case studies */
  .case-study-card {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-3) var(--space-4) calc(var(--space-3) + 3px);
  }

  .case-study-card__metric {
    font-size: 36px;
  }

  /* Testimonials carousel — mobile shows 1 slide */
  .testimonials-carousel {
    --carousel-visible: 1;
  }

  /* Testimonial card — tighter on mobile so card + controls fit without massive scroll */
  .testimonial-card {
    padding: var(--space-3); /* 24px vs desktop 32px — saves 16px total vertical */
    gap: var(--space-2);     /* 16px vs desktop 24px — saves 16px across two gaps */
  }

  /* Shrink the decorative quote mark — 80px is oversized at 375px */
  .testimonial-card__quote-mark {
    font-size: 52px;
  }

  /* Cap long testimonial text so a single card never exceeds ~2× viewport height.
     Text is scrollable — no content is hidden, just contained within the card. */
  .testimonial-card__text {
    max-height: 200px;
    overflow-y: auto;
    /* Scrollbar styling — subtle to match the dark theme */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
  }

  /* Tighten controls row spacing on mobile */
  .testimonials-carousel__controls {
    margin-top: var(--space-2); /* 16px vs desktop 32px */
    gap: var(--space-2);        /* 16px vs desktop 24px */
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .about-photo-placeholder {
    aspect-ratio: 16 / 9;
  }

  /* CTA section */
  .cta-section {
    padding: var(--space-6) var(--space-3);
  }

  .cta-section__heading {
    font-size: 36px;
  }

  /* Contact form — collapse two-column rows to single column on mobile */
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  /* Blog teaser */
  .blog-teaser__grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__main {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .footer__nav {
    gap: var(--space-3);
  }

  /* Blog header */
  .blog-header__heading {
    font-size: 42px;
  }

  /* Blog grid */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Post header */
  .post-header__title {
    font-size: 36px;
  }

  .post-layout {
    padding: var(--space-4) var(--space-3);
  }

  .post-content {
    font-size: 16px;
  }
}

/* =============================================================================
   23. REDUCED MOTION (Accessibility — wraps all animations)
   ============================================================================= */

/* === GALLERY LIGHTBOX ===
   Brandbook: dark overlay rgba(0,0,0,0.92), amber accent on controls,
   no heavy borders, transitions respect prefers-reduced-motion.
   ============================================================================= */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

/* Clicking the backdrop (outside image) closes the lightbox */
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.gallery-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.gallery-lightbox__img {
  display: block;
  max-width: 88vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-lightbox__img.is-loaded {
  opacity: 1;
}

/* Close button — top-right corner */
.gallery-lightbox__close {
  position: fixed;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid rgba(232, 124, 46, 0.3);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.gallery-lightbox__close:hover {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent);
}

.gallery-lightbox__close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Prev / Next arrows */
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid rgba(232, 124, 46, 0.3);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.gallery-lightbox__prev {
  left: var(--space-3);
}

.gallery-lightbox__next {
  right: var(--space-3);
}

.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent);
}

.gallery-lightbox__prev:focus-visible,
.gallery-lightbox__next:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hide arrows when only one image */
.gallery-lightbox__prev[hidden],
.gallery-lightbox__next[hidden] {
  display: none;
}

/* Counter: "2 / 5" */
.gallery-lightbox__counter {
  position: fixed;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  pointer-events: none;
}

@media (max-width: 767px) {
  .gallery-lightbox__prev {
    left: var(--space-1);
  }
  .gallery-lightbox__next {
    right: var(--space-1);
  }
  .gallery-lightbox__close {
    top: var(--space-1);
    right: var(--space-1);
  }
  .gallery-lightbox__img {
    max-width: 96vw;
    max-height: 80vh;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .hero__headline,
  .hero__accent-line,
  .hero__subline,
  .hero__cta {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Carousel: disable slide animation, snap instantly */
  .testimonials-carousel__track {
    transition: none;
  }
}

/* =============================================================================
   GEO — Generative Engine Optimization blocks
   Sections designed for AI search citation (ChatGPT, Claude, Perplexity, Gemini)
   while remaining brand-coherent for human readers.
   - .section--what       — homepage answer-first definition block
   - .answer-capsule      — the 40-60 word extractable answer
   - .answer-detail       — visually de-emphasised factual context
   - .section--faq        — FAQ block (highest-value AI citation pattern)
   - .faq-item            — individual <details>/<summary> Q&A
   - .post-tldr           — blog post TL;DR / answer capsule
   - .post-faq            — blog post FAQ section
   - .post-key-points     — blog post key-takeaways block (stat-rich)
   ============================================================================= */

/* ---- Homepage: "What Iron Mind AI Is" answer block ------------------------ */
.section--what {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.answer-capsule {
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--color-text-primary);
  max-width: 820px;
  margin: 0 auto var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-bg-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.answer-detail {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.answer-detail p {
  margin: 0 0 var(--space-2);
}

.answer-detail strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.answer-detail a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.answer-detail a:hover { color: var(--color-accent-hover); }

@media (max-width: 768px) {
  .answer-capsule { font-size: 18px; padding: var(--space-2) var(--space-3); }
  .answer-detail { font-size: 15px; }
}

/* ---- FAQ section (homepage + reusable) ----------------------------------- */
.section--faq {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.faq-list {
  max-width: 820px;
  margin: var(--space-5) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--color-border-hover);
}

.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  position: relative;
  padding-right: var(--space-6);
  user-select: none;
}

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

.faq-item__q h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin: 0;
  display: inline;
}

.faq-item__q::after {
  content: "+";
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-item__q::after {
  content: "−";
  transform: translateY(-50%) rotate(0deg);
}

.faq-item__a {
  padding: 0 var(--space-4) var(--space-3);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2);
  margin-top: 0;
}

.faq-item__a p { margin: 0; }
.faq-item__a p + p { margin-top: var(--space-2); }
.faq-item__a a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-item__a a:hover { color: var(--color-accent-hover); }

@media (max-width: 768px) {
  .faq-item__q { padding: var(--space-2) var(--space-3); padding-right: var(--space-5); }
  .faq-item__q h3 { font-size: 16px; }
  .faq-item__a { padding: var(--space-2) var(--space-3) var(--space-3); font-size: 14px; }
}

/* ---- Blog post: TL;DR / Answer capsule ----------------------------------- */
.post-tldr {
  margin: var(--space-4) 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-tldr__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.post-tldr__text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin: 0;
}

/* ---- Blog post: Key takeaways (bullet list, stat-rich) ------------------- */
.post-key-points {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.post-key-points__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.post-key-points ul {
  margin: 0;
  padding: 0 0 0 var(--space-3);
  list-style: disc;
  color: var(--color-text-secondary);
}

.post-key-points li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--space-1);
}

/* ---- Blog post: FAQ block ------------------------------------------------ */
.post-faq {
  margin: var(--space-6) 0 var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.post-faq__heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-3);
}

.post-faq .faq-list {
  margin: 0;
  max-width: none;
}

@media (max-width: 768px) {
  .post-tldr__text { font-size: 16px; }
  .post-faq__heading { font-size: 26px; }
}

/* ---- Blog post: Table of Contents ---------------------------------------- */
/* Brandbook ref: GEO > ToC nav
   Styled as a surface card consistent with .post-key-points — same bg, border,
   radius. Ordered list uses counters so numbers render even with global
   ul/ol { list-style: none } reset. */
.post-toc {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.post-toc__heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.post-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-toc__item {
  counter-increment: toc-counter;
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.post-toc__item::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  min-width: 22px;
}

.post-toc__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.post-toc__link:hover {
  color: var(--color-accent);
  border-bottom-color: rgba(232, 124, 46, 0.4);
}

@media (max-width: 768px) {
  .post-toc { padding: var(--space-2) var(--space-3); }
  .post-toc__item { font-size: 14px; }
}

/* ---- LLM Reference panel ------------------------------------------------- */
/* Brandbook ref: GEO > LLM Reference panel
   Subtle wrapper — no heavy border, no elevated bg. Just a top rule to signal
   the start of the reference group to AI crawlers while remaining invisible
   to human readers as a distinct UI block. */
.llm-reference {
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2);
}

/* ---- Blog post: Sources / References ------------------------------------- */
/* Brandbook ref: GEO > References
   Clean ordered list; no heavy card — references are secondary to content.
   Link colour uses accent for scannability; author attribution is muted. */
.post-sources {
  margin: var(--space-5) 0 var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.post-sources__heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.post-sources__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sources-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.post-sources__item {
  counter-increment: sources-counter;
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.post-sources__item::before {
  content: "[" counter(sources-counter) "]";
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  min-width: 28px;
}

.post-sources__link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.post-sources__link:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 768px) {
  .post-sources__heading { font-size: 18px; }
  .post-sources__item { font-size: 13px; }
}

/* ---- Blog post: Citation block ------------------------------------------- */
/* Brandbook ref: GEO > Citation
   Small, muted, monospace-style — signals machine-readable metadata to AI
   engines without drawing human visual attention away from the CTA below. */
.post-citation {
  margin: var(--space-3) 0 var(--space-4);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.post-citation__text {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
  word-break: break-all;
}

@media (max-width: 768px) {
  .post-citation { padding: var(--space-1) var(--space-2); }
  .post-citation__text { font-size: 11px; }
}

/* ---- Accessibility: visually hidden -------------------------------------- */
/* Standard screen-reader-only utility. Used for .llm-reference heading so the
   landmark is announced without rendering visible text. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

