/* ============================================================================
   Brivon — Modern Photography Studio HTML Template
   Free template by html.design.
   Visual direction: editorial-brutalist photography studio. Near-black ground
   throughout (#0A0A0C), paper-ivory text (#F4F4F0), one electric lime accent
   (#D4FF3D) used sparingly on tags, hover states, and signature micro-elements.
   Display in Boldonse (heavy condensed display, line-height 1.25), body in
   Inter Tight, captions in Geist Mono. Designed for commercial photographers,
   editorial studios, documentary teams, and visual-arts producers.
   No editorial serif, no cream zone, no warm earth — palette is intentionally
   cool-dark with one saturated accent.
   ============================================================================ */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Palette — charcoal ground + electric lime accent.
     Distinct from every shipped html.design template. */
  --ink-000: #050507;
  /* deepest — used behind hero photo */
  --ink-deep: #0A0A0C;
  /* primary surface, body bg */
  --ink: #111114;
  /* default cards / sections */
  --ink-card: #18181C;
  /* elevated card body */
  --ink-elev: #232328;
  /* hover / next elevation */
  --ink-line: rgba(244, 244, 240, 0.08);
  --ink-line-soft: rgba(244, 244, 240, 0.04);
  --ink-rule: rgba(244, 244, 240, 0.16);

  --paper: #F4F4F0;
  /* primary text on dark */
  --paper-soft: #C9C9C2;
  /* secondary text */
  --paper-mute: #80807A;
  /* tertiary / captions */
  --paper-deep: #5A5A55;
  /* hairlines / quiet labels */
  --paper-tile: #F4F4F0;
  /* reverse-tile background */
  --paper-tile-2: #E5E5DE;
  /* alt reverse tile */

  --lime: #36a5e3;
  /* signature accent — electric lime */
  --lime-soft: #51b1e9;
  /* lighter variant */
  --lime-deep: #4090be;
  /* hover / pressed */
  --lime-glow: rgba(212, 255, 61, 0.20);

  --cobalt: #1A2EFF;
  /* tiny secondary — used once on prints CTA hover only */

  /* Semantic surfaces */
  --bg: var(--ink-deep);
  --bg-alt: var(--ink-000);
  --bg-card: var(--ink-card);
  --bg-elev: var(--ink-elev);
  --bg-tile: var(--paper-tile);
  /* reverse-mode sections */

  --fg: var(--paper);
  --fg-soft: var(--paper-soft);
  --fg-mute: var(--paper-mute);
  --fg-deep: var(--paper-deep);
  --fg-on-tile: var(--ink-deep);
  --fg-on-tile-mute: #5A5A55;

  --rule: var(--ink-line);
  --rule-strong: var(--ink-rule);
  --rule-lime: rgba(212, 255, 61, 0.35);

  --primary: var(--lime);
  --primary-deep: var(--lime-deep);
  --accent: var(--lime);

  /* Typography — Boldonse display, Inter Tight body, Geist Mono captions.
     Per memory: Boldonse needs line-height 1.25 minimum, never below 1.15. */
  --font-display: 'Boldonse', 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: clamp(1rem, 0.94rem + 0.28vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.45vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 0.95vw, 2rem);
  --text-3xl: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);
  --text-4xl: clamp(1.85rem, 1.35rem + 2vw, 3.25rem);
  --text-5xl: clamp(2.15rem, 1.5rem + 2.7vw, 4.25rem);
  --text-mega: clamp(2rem, 1.35rem + 2.4vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --space-10: 9rem;
  --space-11: 12rem;

  --radius-xs: 0;
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-2xl: 0;
  --radius-full: 0;

  --container: 1340px;
  --container-wide: 1480px;
  --container-narrow: 1080px;
  --gutter: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 24px 56px -18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 48px 96px -32px rgba(0, 0, 0, 0.6);
  --shadow-lime: 0 22px 60px -22px rgba(212, 255, 61, 0.25);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 620ms;
}

/* ---------- 2. Reset / base --------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
}

blockquote,
figure {
  margin: 0;
  padding: 0;
}

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

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  border-radius: 0 !important;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 0;
}

::selection {
  background: var(--lime);
  color: var(--ink-000);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime);
  color: var(--ink-000);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  z-index: 999;
}

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

/* ---------- 3. Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding-block: var(--space-9);
}

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

section.snug {
  padding-block: var(--space-8);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.flex {
  display: flex;
}

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

/* ---------- 4. Typography ----------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.eyebrow .dot {
  display: none !important;
}

.eyebrow--on-tile {
  color: var(--fg-on-tile-mute);
}

.meta-sep {
  color: var(--rule-strong);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  opacity: 0.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 0;
  /* Per memory: Boldonse-class display fonts require >= 1.2 line-height. */
  line-height: 1.25;
  text-transform: uppercase;
  word-break: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--text-5xl);
  line-height: 1.22;
}

h2 {
  font-size: var(--text-4xl);
  line-height: 1.25;
}

h3 {
  font-size: var(--text-2xl);
  line-height: 1.3;
}

h4 {
  font-size: var(--text-xl);
  line-height: 1.32;
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}

.label--lime {
  color: var(--lime);
}

/* ---------- 4b. Preloader ----------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--ink-000);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s var(--ease-out);
  pointer-events: all;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.preloader-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}

.preloader-glow {
  position: absolute;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(14px);
  animation: preloaderGlow 1.6s ease-in-out infinite;
}

.preloader-bar {
  width: 160px;
  height: 2px;
  background: rgba(244, 244, 240, 0.12);
  position: relative;
  overflow: hidden;
}

.preloader-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: var(--lime);
}

.preloader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 160px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.preloader-percent {
  color: var(--lime);
  font-weight: 500;
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes preloaderGlow {

  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* ---------- 5. Header / Nav --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 0 !important;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.brand:hover .brand-logo {
  transform: scale(1.06);
  border-color: var(--lime);
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: url('../img/xdg-logo.png') center/cover no-repeat;
  display: inline-block;
  position: relative;
  border-radius: 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(244, 244, 240, 0.15);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.brand:hover .brand-mark {
  transform: scale(1.06);
  border-color: var(--lime);
}

.nav-links {
  display: flex;
  gap: var(--space-5);
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--fg-soft);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--fg);
  border-bottom-color: var(--lime);
}

.nav-links a[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.nav-cta-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 0 !important;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--fg);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fg);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--ink-000);
  z-index: 200;
  padding: var(--space-7) var(--gutter);
  display: none;
  flex-direction: column;
  gap: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  text-transform: uppercase;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  color: var(--fg);
}

.mobile-drawer a:hover {
  color: var(--lime);
}

.drawer-close {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 6. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 20px;
  border-radius: 0 !important;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--lime);
  color: var(--ink-000);
}

.btn--primary:hover {
  background: var(--lime-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn--ghost-on-tile {
  background: transparent;
  color: var(--fg-on-tile);
  border-color: rgba(10, 10, 12, 0.2);
}

.btn--ghost-on-tile:hover {
  border-color: var(--ink-000);
}

.btn--dark {
  background: var(--ink-000);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--ink-elev);
}

.btn--sm {
  padding: 8px 14px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 16px 28px;
}

.btn .arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- 7. Hero ----------------------------------------------------- */
.hero {
  padding-block: var(--space-8) var(--space-9);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-text>*+* {
  margin-top: var(--space-5);
}

.hero-headline {
  font-size: var(--text-mega);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}

.hero-headline .lime {
  color: var(--lime);
}

.hero-headline .slash {
  color: var(--paper-mute);
  font-weight: 400;
}

.hero-sub {
  color: var(--fg-soft);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 56ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  margin-top: var(--space-6);
}

.hero-meta strong {
  color: var(--fg);
  font-weight: 500;
}

.hero-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 660px;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--rule-strong);
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: none !important;
  isolation: isolate;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
  border-radius: 0 !important;
  display: block;
}

.floating-tag {
  display: none !important;
}

/* ---------- 8. Stat strip ---------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-block: 1px solid var(--rule);
  margin-top: var(--space-7);
}

.stat-cell {
  padding: var(--space-6) var(--space-5);
  border-inline-end: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stat-cell:last-child {
  border-inline-end: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}

.stat-num .lime {
  color: var(--lime);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 9. Section headers ----------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}

.section-head h2 {
  font-size: var(--text-4xl);
  line-height: 1.22;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}

.section-head .lede {
  max-width: 48ch;
}

/* ---------- 10. Work grid (selected work, archive) --------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.work-item {
  position: relative;
  display: block;
  border-radius: 0 !important;
  overflow: hidden;
  background: var(--bg-card);
  isolation: isolate;
  box-shadow: none !important;
}

.work-item .wm {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0 !important;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease-out);
  border-radius: 0 !important;
}

.work-item:hover img {
  transform: scale(1.04);
  filter: contrast(1.05);
}

.work-item .wm-pill {
  display: none !important;
}

.work-item .wm-arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: var(--lime);
  color: var(--ink-000);
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out);
}

.work-item:hover .wm-arrow {
  transform: translate(2px, -2px);
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  font-family: var(--font-mono);
}

.work-meta .wm-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--fg);
}

.work-meta .wm-cap {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.work-item--xl {
  grid-column: span 8;
}

.work-item--lg {
  grid-column: span 7;
}

.work-item--md {
  grid-column: span 5;
}

.work-item--sm {
  grid-column: span 4;
}

.work-item--xl .wm {
  aspect-ratio: 16 / 11;
}

.work-item--lg .wm {
  aspect-ratio: 4 / 3;
}

/* ---------- 11. Reverse-mode tile (paper section) ---------------------- */
.tile-section {
  background: var(--bg-tile);
  color: var(--fg-on-tile);
  position: relative;
}

.tile-section .eyebrow {
  color: var(--fg-on-tile-mute);
}

.tile-section .eyebrow .dot {
  background: var(--ink-000);
}

.tile-section .lede {
  color: #2A2A28;
}

.tile-section h1,
.tile-section h2,
.tile-section h3,
.tile-section h4 {
  color: var(--ink-000);
}

.tile-section .label {
  color: var(--fg-on-tile-mute);
}

.tile-section .mono {
  color: #2A2A28;
}

.tile-section .btn--ghost {
  color: var(--ink-000);
  border-color: rgba(10, 10, 12, 0.25);
}

.tile-section .btn--ghost:hover {
  border-color: var(--ink-000);
}

.tile-section hr {
  border: 0;
  border-top: 1px solid rgba(10, 10, 12, 0.15);
}

/* ---------- 12. Chapter opener ----------------------------------------- */
.chapter {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  width: 100%;
  overflow: hidden;
}

.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--space-8);
  align-items: start;
  width: 100%;
}

.chapter-grid>* {
  min-width: 0;
  max-width: 100%;
}

.chapter-grid h2 {
  font-size: clamp(1.85rem, 1.3rem + 2vw, 3rem);
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.chapter-grid .label {
  margin-bottom: var(--space-4);
}

.chapter-body {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.chapter-body p {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 60ch;
  word-break: break-word;
  overflow-wrap: break-word;
}

.tile-section .chapter-body p {
  color: #2A2A28;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  line-height: 1.32;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-block: var(--space-6);
  margin-inline: 0;
  padding-inline-start: var(--space-5);
  padding-inline-end: 0;
  border-inline-start: 3px solid var(--lime);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}

.tile-section .pull-quote {
  color: var(--ink-000);
  border-color: var(--ink-000);
}

.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: var(--space-3);
  font-style: normal;
}

/* ---------- 13. Capability bento --------------------------------------- */
.cap-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.cap-card .label {
  color: var(--fg-mute);
}

.cap-card h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
  text-transform: uppercase;
}

.cap-card p {
  color: var(--fg-soft);
}

.cap-card .cap-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.cap-card--wide {
  grid-column: span 6;
}

.cap-card--std {
  grid-column: span 3;
}

.cap-card--tall {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
}

.cap-card--tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cap-card--tall .cap-tall-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5);
  background: linear-gradient(180deg, transparent, rgba(10, 10, 12, 0.85));
  color: var(--paper);
}

.cap-card--tall {
  position: relative;
}

/* ---------- 14. Process / numbered steps ------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}

.process-card {
  padding: var(--space-6);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: var(--lime);
}

.process-card h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
}

.process-card p {
  color: var(--fg-soft);
  font-size: var(--text-base);
}

/* ---------- 15. Split-image chapter ------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-9);
}

.split--reverse .split-text {
  order: 2;
}

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

.split-text h2 {
  font-size: var(--text-3xl);
  line-height: 1.22;
  text-transform: uppercase;
}

.split-text p {
  color: var(--fg-soft);
  font-size: var(--text-base);
  line-height: 1.6;
}

.tile-section .split-text p {
  color: #2A2A28;
}

.split-fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.tile-section .split-fact-list {
  border-top-color: rgba(10, 10, 12, 0.15);
}

.split-fact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-sm);
}

.tile-section .split-fact-list li {
  border-bottom-color: rgba(10, 10, 12, 0.15);
}

.split-fact-list li b {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.tile-section .split-fact-list li b {
  color: var(--fg-on-tile-mute);
}

.split-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0 !important;
  overflow: hidden;
  isolation: isolate;
  box-shadow: none !important;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
}

.split-img .ft-corner {
  display: none !important;
}

/* ---------- 16. Press / logo strip ------------------------------------- */
.press-strip {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-7);
  align-items: center;
  padding-block: var(--space-7);
  border-block: 1px solid var(--rule);
}

.press-strip .label {
  font-size: var(--text-xs);
}

.press-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  align-items: center;
  color: var(--fg-mute);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.press-row span {
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.press-row span:hover {
  color: var(--fg);
}

/* ---------- 17. Pricing / service tiers --------------------------------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tier-card.featured {
  background: var(--paper-tile);
  color: var(--ink-000);
  border-color: var(--paper-tile);
  box-shadow: var(--shadow-lime);
}

.tier-card.featured .label,
.tier-card.featured .tier-meta,
.tier-card.featured .tier-list li,
.tier-card.featured p {
  color: #2A2A28;
}

.tier-card.featured .label {
  color: var(--fg-on-tile-mute);
}

.tier-card.featured .tier-list li::before {
  background: var(--ink-000);
}

.tier-card.featured h3 {
  color: var(--ink-000);
}

.tier-card .label {
  color: var(--fg-mute);
}

.tier-card h3 {
  font-size: var(--text-2xl);
  text-transform: uppercase;
}

.tier-meta {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg-soft);
}

.tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.tier-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--fg-soft);
}

.tier-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--lime);
  border-radius: 0 !important;
  flex-shrink: 0;
}

.tier-card.featured .tier-list li {
  color: #2A2A28;
}

.tier-divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: var(--space-3);
}

.tier-card.featured .tier-divider {
  border-top-color: rgba(10, 10, 12, 0.15);
}

/* ---------- 18. Forms --------------------------------------------------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: grid;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-row--full {
  grid-template-columns: 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--ink-000);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  font-family: var(--font-body);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-deep);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--lime);
  background: var(--ink-elev);
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}

.form-actions small {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}

/* ---------- 19. FAQ ----------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
}

.faq-card h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.faq-card p {
  color: var(--fg-soft);
  font-size: var(--text-sm);
}

/* ---------- 20. Journal / notes grid ----------------------------------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.journal-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-5);
}

.journal-card .j-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: none !important;
}

.journal-card .j-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
}

.journal-card h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
  text-transform: uppercase;
}

.journal-card .j-meta {
  display: flex;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 21. Awards strip ------------------------------------------- */
.awards-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--rule);
}

.award-cell {
  padding: var(--space-6) var(--space-4);
  border-inline-end: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
}

.award-cell:last-child {
  border-inline-end: 0;
}

.award-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--lime);
}

.award-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 22. Team grid ---------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

.team-card .t-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-card);
}

.team-card .t-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: filter var(--dur-base) var(--ease-out);
}

.team-card:hover .t-img img {
  filter: grayscale(0);
}

.team-card h3 {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.team-card .t-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 23. Contact channels bento --------------------------------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.channel-card .label {
  color: var(--lime);
}

.channel-card h3 {
  font-size: var(--text-xl);
  text-transform: uppercase;
}

.channel-card p {
  color: var(--fg-soft);
  font-size: var(--text-sm);
}

.channel-card .channel-line {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg);
  letter-spacing: 0.04em;
}

.channel-card a.channel-line:hover {
  color: var(--lime);
}

/* ---------- 24. Closing CTA -------------------------------------------- */
.closing-cta {
  background: var(--lime);
  color: #ffffff;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.closing-cta .container {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.closing-cta .label {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  letter-spacing: 0.14em;
}

.closing-cta h2 {
  font-size: clamp(1.85rem, 1.25rem + 2.5vw, 3.25rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  max-width: 26ch;
  word-break: break-word;
  overflow-wrap: break-word;
}

.closing-cta .lede {
  color: rgba(255, 255, 255, 0.92);
  max-width: 54ch;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.65;
}

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

.closing-cta .btn--dark {
  background: var(--ink-000);
  color: #ffffff;
  border: 1px solid var(--ink-000);
}

.closing-cta .btn--dark:hover {
  background: #ffffff;
  color: var(--ink-000);
  border-color: #ffffff;
}

.closing-cta .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
}

.closing-cta .btn--ghost:hover {
  background: #ffffff;
  color: var(--ink-000);
  border-color: #ffffff;
}

/* ---------- 25. Footer -------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--rule);
}

.footer-header {
  margin-bottom: var(--space-6);
}

.footer-logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
}

.footer-logo-circle:hover {
  border-color: var(--lime);
  background-color: rgba(255, 255, 255, 0.04);
  transform: scale(1.05);
}

.footer-logo-circle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--rule);
}

.footer-col h4,
.footer-top h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.footer-col p {
  color: var(--fg-soft);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0 0 var(--space-1) 0;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  color: var(--fg);
  font-size: var(--text-base);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-touch-link {
  font-size: var(--text-base);
  color: var(--fg);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-touch-link:hover {
  color: var(--lime);
  transform: translateX(2px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-brand .brand {
  font-size: var(--text-2xl);
  text-transform: uppercase;
}

.footer-brand p {
  color: var(--fg-soft);
  font-size: var(--text-sm);
  max-width: 32ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom .footer-meta-links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom a:hover {
  color: var(--lime);
}

/* ---------- 26. Misc helpers ------------------------------------------- */
.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.hidden {
  display: none;
}

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

/* ---------- 27. XDG Landing Custom Components -------------------------- */
/* Hero Interactive Animation Stage (Clean, minimal, inspired by eyesimple.us & biru.co.id) */
.hero-interactive-stage {
  position: relative;
  width: 100%;
  max-width: 660px;
  aspect-ratio: 16 / 11;
  background: #09090b;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#tech-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.tech-stage-overlay {
  position: relative;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: var(--space-4);
}

.tech-status-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(10, 10, 12, 0.85);
  padding: 8px 16px;
  border: 1px solid var(--rule-strong);
  width: fit-content;
  backdrop-filter: blur(8px);
  border-radius: 0 !important;
  box-shadow: none !important;
}

.tech-live-box {
  width: 8px;
  height: 8px;
  background: var(--lime);
  display: inline-block;
  border-radius: 0 !important;
  animation: tech-box-pulse 2s infinite ease-in-out;
}

@keyframes tech-box-pulse {

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

  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

.tech-ping {
  margin-left: auto;
  color: var(--lime);
  font-weight: 600;
}

.tech-nodes-summary {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.tech-metric-chip {
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid var(--rule-strong);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(8px);
  border-radius: 0 !important;
  box-shadow: none !important;
}

.tmc-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.tmc-val {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--lime);
  text-transform: uppercase;
}

/* Trust & Capabilities Section */
.trust-strip {
  background: var(--ink-000);
  border-block: 1px solid var(--rule);
  padding-block: var(--space-7);
}

.trust-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: var(--space-7);
  align-items: center;
}

.trust-copy h2 {
  font-size: var(--text-3xl);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
}

.trust-pill {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 10px 18px;
  background: var(--ink-card);
  border: 1px solid var(--rule-strong);
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.trust-pill::before {
  content: '/';
  color: var(--lime);
  font-weight: bold;
}

.trust-pill:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* 5-Step Process Grid */
.process-grid--5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.process-grid--5 .process-card {
  height: 100%;
}

/* 5-Pillar Why XDG Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.why-card:hover {
  border-color: var(--rule-lime);
  transform: translateY(-2px);
  background: var(--ink-elev);
}

.why-card .why-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.why-card h3 {
  font-size: var(--text-lg);
  line-height: 1.25;
  text-transform: uppercase;
}

.why-card p {
  color: var(--fg-soft);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0;
}

/* Industries Matrix */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.industry-card:hover {
  border-color: var(--lime);
  background: var(--ink-elev);
}

.industry-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.industry-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--lime);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Project Detail Gallery Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal-overlay.open {
  display: flex;
}

.modal-window {
  background: var(--ink-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.9), 0 0 60px -20px var(--lime-glow);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--rule);
  background: var(--ink-000);
}

.modal-header h3 {
  font-size: var(--text-xl);
  line-height: 1.2;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 0 !important;
  border: 1px solid var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-soft);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
}

.modal-close-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: var(--ink-elev);
}

.modal-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.modal-main-image {
  width: 100%;
  max-height: 480px;
  background: var(--ink-000);
  border-radius: 0 !important;
  overflow: hidden;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 480px;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.modal-thumbs {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}

.modal-thumbs::-webkit-scrollbar {
  height: 6px;
}

.modal-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.modal-thumbs::-webkit-scrollbar-thumb {
  background: var(--rule-strong);
}

.modal-thumbs::-webkit-scrollbar-thumb:hover {
  background: var(--lime);
}

.modal-thumb {
  width: 90px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 0 !important;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-000);
  opacity: 0.6;
  transition: opacity var(--dur-fast), border-color var(--dur-fast);
  box-shadow: none !important;
}

.modal-thumb img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.modal-thumb.active,
.modal-thumb:hover {
  opacity: 1;
  border-color: var(--lime);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-desc {
  color: var(--fg-soft);
  font-size: var(--text-base);
  line-height: 1.6;
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
}

/* ---------- 27. Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- 28. Responsive --------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .hero-media {
    max-width: 100%;
    aspect-ratio: 4 / 3;
    justify-self: stretch;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .stat-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) {
    border-inline-end: 1px solid var(--rule);
    border-bottom: 0;
  }

  .stat-cell:last-child {
    border-inline-end: 0;
    border-bottom: 0;
  }

  .work-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .work-item--xl,
  .work-item--lg {
    grid-column: span 6;
  }

  .work-item--md,
  .work-item--sm {
    grid-column: span 3;
  }

  .cap-bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .cap-card--wide,
  .cap-card--tall {
    grid-column: span 6;
  }

  .cap-card--std {
    grid-column: span 3;
  }

  .cap-card--tall {
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

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

  .process-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .trust-inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .trust-pills {
    justify-content: flex-start;
  }

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

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-text {
    order: initial;
  }

  .press-strip {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

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

  .journal-grid {
    grid-template-columns: 1fr;
  }

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

  .award-cell:nth-child(2) {
    border-inline-end: 0;
  }

  .award-cell:nth-child(1),
  .award-cell:nth-child(2) {
    border-bottom: 1px solid var(--rule);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .brand span {
    display: none !important;
  }

  .brand {
    gap: 0;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-inline-end: 0;
    border-bottom: 1px solid var(--rule);
  }

  .stat-cell:last-child {
    border-bottom: 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item--xl,
  .work-item--lg,
  .work-item--md,
  .work-item--sm {
    grid-column: span 1;
  }

  .cap-bento {
    grid-template-columns: 1fr;
  }

  .cap-card--wide,
  .cap-card--std,
  .cap-card--tall {
    grid-column: span 1;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid--5 {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }

  .modal-window {
    max-width: 95vw;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .awards-strip {
    grid-template-columns: 1fr;
  }

  .award-cell {
    border-inline-end: 0;
    border-bottom: 1px solid var(--rule);
  }

  .award-cell:last-child {
    border-bottom: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero-headline {
    font-size: var(--text-4xl);
    line-height: 1.22;
  }

  .chapter-grid h2 {
    font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.25rem);
    line-height: 1.28;
  }

  .pull-quote {
    font-size: clamp(1.15rem, 0.95rem + 1.2vw, 1.45rem);
    line-height: 1.35;
    padding-inline-start: var(--space-4);
    margin-block: var(--space-4);
    margin-inline: 0;
  }

  .closing-cta h2 {
    font-size: clamp(1.65rem, 1.2rem + 2vw, 2.35rem);
    line-height: 1.28;
  }

  .closing-cta .lede {
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (max-width: 560px) {
  .closing-cta {
    padding-block: var(--space-7);
  }

  .closing-cta .cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .closing-cta .cta-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ---------- 27. Custom Interactive Bubble Cursor ------------------------- */
.cursor-bubble {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50% !important;
  pointer-events: none;
  z-index: 999999;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    opacity 0.3s ease;
  mix-blend-mode: difference;
  opacity: 0;
  will-change: transform, width, height;
}

.cursor-bubble.is-visible {
  opacity: 1;
}

.cursor-bubble.is-hovering {
  width: 72px;
  height: 72px;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
}

.cursor-bubble.is-clicking {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.22);
}

@media (hover: none) or (pointer: coarse) {
  .cursor-bubble {
    display: none !important;
  }
}