/*
Theme Name: ATLA Architecture
Theme URI: https://atla.gt/
Author: ATLA
Description: Single-page architecture portfolio theme for ATLA.
Version: 1.3.12
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: atla-architecture
*/

:root {
  --bg: #111311;
  --bg-deep: #191c19;
  --surface: rgba(24, 27, 24, 0.78);
  --surface-strong: rgba(245, 241, 232, 0.9);
  --text: #f3efe7;
  --text-soft: rgba(243, 239, 231, 0.72);
  --light: #f7f4ee;
  --accent: #d9d2c6;
  --accent-deep: #b5ab9a;
  --border: rgba(243, 239, 231, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --max-width: 1920px;
  --header-glass: 0;
  --font-display: "Instrument Sans", sans-serif;
  --font-editorial: "Manrope", "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --statement-weight: 400;
  --statement-line: 0.94;
  --statement-tracking: -0.058em;
  --statement-size: clamp(2.55rem, 4.45vw, 5.45rem);
  --quote-size: clamp(1.85rem, 3.15vw, 4.1rem);
  --quote-line: 1.04;
  --quote-tracking: -0.052em;
  --card-title-size: clamp(2rem, 3.15vw, 3.65rem);
  --mono-tracking: 0.08em;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(115, 123, 112, 0.16), transparent 28%),
    radial-gradient(circle at right 20%, rgba(74, 87, 79, 0.18), transparent 24%),
    linear-gradient(180deg, #111311 0%, #171a17 48%, #101210 100%);
}

body.modal-open {
  overflow: hidden;
}

body.is-loading {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.hero-media-immersive,
.project-main,
.story-media,
.image-card,
.project-modal-carousel,
.project-modal-slide img {
  border-radius: 26px;
}

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

body.content-protected main,
body.content-protected .site-footer {
  user-select: none;
  -webkit-user-select: none;
}

body.content-protected a,
body.content-protected button {
  user-select: auto;
  -webkit-user-select: auto;
}

.page-shell {
  position: relative;
  overflow: visible;
  opacity: 1;
  transition: opacity 520ms ease;
}

body.is-loading .page-shell {
  opacity: 0;
  pointer-events: none;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
  opacity: 0.08;
}

.site-header,
.intro-band,
.metrics,
.trusted-by,
.projects-collection,
.expertise,
.process-band,
.closing-grid,
.site-footer,
.story-grid {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: linear-gradient(
    180deg,
    rgba(18, 21, 18, calc(0.74 + (var(--header-glass) * 0.12))) 0%,
    rgba(18, 21, 18, calc(0.14 + (var(--header-glass) * 0.08))) 100%
  );
}

.hero-index span,
.project-number,
.section-label,
.eyebrow,
.site-nav a,
.footer-links a,
.footer-note,
.project-meta {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  font-family: "IBM Plex Mono", monospace;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 0.82rem 1.35rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, calc(0.12 + (var(--header-glass) * 0.18)));
  border-radius: 999px;
  background: rgba(28, 31, 28, calc(0.8 + (var(--header-glass) * 0.1)));
  color: var(--text);
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: clamp(1.15rem, 1.35vw, 1.55rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 24px rgba(0, 0, 0, calc(0.16 + (var(--header-glass) * 0.08)));
  backdrop-filter: blur(calc(8px + (var(--header-glass) * 18px))) saturate(145%);
  -webkit-backdrop-filter: blur(calc(8px + (var(--header-glass) * 18px))) saturate(145%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, calc(0.12 + (var(--header-glass) * 0.16)));
  border-radius: 999px;
  background: rgba(28, 31, 28, calc(0.76 + (var(--header-glass) * 0.12)));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 30px rgba(0, 0, 0, calc(0.16 + (var(--header-glass) * 0.08)));
  backdrop-filter: blur(calc(10px + (var(--header-glass) * 18px))) saturate(150%);
  -webkit-backdrop-filter: blur(calc(10px + (var(--header-glass) * 18px))) saturate(150%);
}

.site-nav a {
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.language-toggle,
.theme-toggle {
  display: inline-grid;
  align-items: center;
  gap: 0.2rem;
  min-height: 32px;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, calc(0.12 + (var(--header-glass) * 0.12)));
  border-radius: 999px;
  background: rgba(14, 16, 14, 0.42);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0;
  cursor: pointer;
}

.language-toggle {
  grid-template-columns: 1fr 1fr;
}

.theme-toggle {
  grid-template-columns: 1fr 1fr;
}

.language-toggle span,
.theme-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 1.55rem;
  border-radius: 999px;
  opacity: 0.54;
}

.language-toggle span.is-active,
.theme-toggle span.is-active {
  background: rgba(243, 239, 231, 0.92);
  color: #151714;
  opacity: 1;
}

.hero {
  position: relative;
  min-height: auto;
  padding: 6px 16px 68px;
}

.hero-media-immersive,
.hero-layout {
  width: min(calc(100% - 8px), var(--max-width));
  margin: 0 auto;
}

.hero-media-immersive {
  position: relative;
  height: min(89vh, 1120px);
  min-height: 780px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(28, 31, 28, 0.7);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.hero-media-immersive::after,
.project-main::after,
.story-media::after,
.image-card::after,
.project-modal-carousel::after {
  content: "ATLA";
  position: absolute;
  right: 0.72rem;
  bottom: 0.62rem;
  z-index: 3;
  color: rgba(247, 242, 235, 0.26);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.38);
}

.hero-media-immersive .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition:
    opacity 900ms ease,
    transform 1400ms ease;
  transform: scale(1.03);
}

.hero-media-immersive .hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 5, 5, 0.14) 0%, rgba(4, 5, 5, 0.2) 100%),
    linear-gradient(0deg, rgba(3, 4, 4, 0.72) 0%, rgba(3, 4, 4, 0.18) 40%, rgba(3, 4, 4, 0.08) 100%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  align-items: end;
  margin-top: -13rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: none;
  color: var(--text);
  padding: 0 0 0.5rem;
}

.hero-content-glass {
  max-width: min(820px, calc(100% - 0.5rem));
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 24px;
  background: rgba(19, 22, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.hero h1,
.section-heading h2,
.story-body h2,
.process-copy h2,
.footer-title {
  font-family: var(--font-display);
  font-weight: var(--statement-weight);
  line-height: var(--statement-line);
  letter-spacing: var(--statement-tracking);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 520px;
  margin: 0.95rem 0 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(243, 239, 231, 0.82);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 0;
}

.hero-aside-floating {
  align-self: end;
  padding: 0.85rem;
  border-radius: 22px;
  background: rgba(19, 22, 19, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 242, 235, 0.24);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: rgba(243, 239, 231, 0.96);
  color: #151714;
}

.button-secondary,
.button-tertiary {
  color: var(--text);
}

.button-secondary {
  background: rgba(29, 32, 29, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.button-tertiary {
  background: rgba(29, 32, 29, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(calc(10px + (var(--header-glass) * 16px))) saturate(145%);
  -webkit-backdrop-filter: blur(calc(10px + (var(--header-glass) * 16px))) saturate(145%);
}

.hero-index span {
  background: rgba(29, 32, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-card,
.metrics-grid article,
.expertise-grid article,
.closing-card,
.project-entry {
  background: rgba(23, 26, 23, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.process-list {
  background: rgba(237, 232, 223, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

.process-item span {
  color: #161815;
}

.process-item {
  border-bottom: 1px solid rgba(22, 24, 21, 0.1);
}

.process-item p {
  color: rgba(22, 24, 21, 0.68);
}

.intro-copy p:last-child,
.story-body p,
.project-copy p,
.expertise-grid p,
.footer-contact p,
.footer-contact a,
.metric-label {
  color: rgba(243, 239, 231, 0.74);
}

.project-modal-backdrop {
  background: rgba(7, 8, 8, 0.5);
}

.project-modal-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 22, 20, 0.94);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
}

.project-modal-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 22, 20, 0.96);
}

.modal-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 34, 30, 0.95);
  color: var(--text);
}

.project-modal-meta {
  color: rgba(217, 210, 198, 0.88);
}

.project-modal-description p {
  color: rgba(243, 239, 231, 0.9);
}

.project-modal-carousel {
  background: rgba(32, 35, 32, 0.8);
}

.footer-note {
  color: rgba(243, 239, 231, 0.6);
}

.image-card {
  background: rgba(23, 26, 23, 0.82);
}

.project-meta {
  color: rgba(217, 210, 198, 0.84);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #151714;
}

.button-secondary {
  color: var(--text);
}

.hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.1rem;
  opacity: 1;
}

.hero-index span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: rgba(240, 238, 233, 0.92);
  border: 1px solid rgba(26, 27, 24, 0.06);
}

.intro-band,
.metrics,
.trusted-by,
.projects-collection,
.expertise,
.process-band,
.site-footer {
  position: relative;
  z-index: 2;
}

.intro-band {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 40px 0 60px;
}

.section-label,
.eyebrow {
  color: var(--accent);
}

.story-number {
  display: block;
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 4.8rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.065em;
  color: rgba(243, 239, 231, 0.24);
}

.intro-lead,
.closing-large {
  font-family: var(--font-display);
  font-size: var(--statement-size);
  font-weight: var(--statement-weight);
  line-height: var(--statement-line);
  letter-spacing: var(--statement-tracking);
  margin: 0 0 1rem;
}

.intro-copy p:last-child,
.story-body p,
.project-copy p,
.expertise-grid p,
.footer-contact p,
.footer-contact a {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 1.3rem;
  padding: 34px 0 40px;
}

.story-card {
  display: grid;
  grid-template-rows: 360px auto;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.story-media,
.project-main,
.image-card {
  position: relative;
}

.story-card-wide {
  grid-row: span 1;
}

.story-body,
.project-copy,
.closing-card {
  padding: 1.5rem;
}

.closing-card:not(.image-card) {
  padding-top: clamp(2.6rem, 4.2vw, 5rem);
}

.process-copy {
  align-self: center;
  max-width: 760px;
}

.story-body h2,
.section-heading h2,
.process-copy h2,
.footer-title {
  margin: 0 0 1rem;
  font-size: var(--statement-size);
  line-height: var(--statement-line);
  letter-spacing: var(--statement-tracking);
}

.process-copy h2 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 4.8vw, 6.4rem);
  line-height: 0.94;
}

.story-body h2 {
  font-size: var(--card-title-size);
  line-height: 0.96;
  letter-spacing: -0.056em;
}

.metrics {
  position: relative;
  padding: 42px 0 80px;
  isolation: isolate;
}

.metrics::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 12%, rgba(217, 210, 198, 0.08), transparent 28%),
    radial-gradient(circle at 82% 45%, rgba(94, 105, 94, 0.1), transparent 30%);
  opacity: 0.8;
  pointer-events: none;
}

.metrics-quote {
  max-width: 1260px;
  margin: 0 auto clamp(1.8rem, 4vw, 3.5rem);
  font-family: var(--font-editorial);
  font-size: var(--quote-size);
  font-weight: 400;
  line-height: var(--quote-line);
  letter-spacing: var(--quote-tracking);
  text-align: center;
  color: var(--text);
}

.metrics-quote-secondary {
  max-width: 1180px;
  margin-top: clamp(2.4rem, 5.5vw, 5.2rem);
  margin-bottom: 0;
  font-size: clamp(1.65rem, 2.75vw, 3.55rem);
  line-height: 1.06;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.7rem, 1vw, 1rem);
  margin-top: 1rem;
}

.metrics-grid article,
.expertise-grid article,
.closing-card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
}

.metric-value {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.metric-label {
  color: var(--text-soft);
  line-height: 1.5;
}

.trusted-by {
  padding: clamp(2.8rem, 5vw, 4.4rem) clamp(1.2rem, 4vw, 4rem);
  margin-bottom: 100px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background: #646960;
  color: #10120f;
  box-shadow: var(--shadow);
}

.trusted-copy {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 3.5vw, 3.4rem);
  text-align: center;
}

.trusted-heading {
  margin-bottom: 0.85rem;
  color: #111311;
  font-size: clamp(1.1rem, 1.7vw, 1.7rem);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.trusted-subtitle {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(17, 19, 17, 0.68);
  font-size: clamp(0.95rem, 1.2vw, 1.18rem);
  line-height: 1.45;
}

.trusted-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3.6vw, 3.8rem) clamp(2.8rem, 6vw, 6.4rem);
  align-items: center;
  justify-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

.trusted-logo {
  min-height: clamp(120px, 10vw, 152px);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111311;
  opacity: 0.96;
}

.trusted-logo img {
  width: auto;
  height: auto;
  max-width: min(260px, 24vw);
  max-height: 148px;
  object-fit: contain;
}

.trusted-logo-mesoamerica {
  min-height: clamp(140px, 12vw, 178px);
}

.trusted-logo-mesoamerica img {
  max-width: min(310px, 28vw);
  max-height: 136px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

.trusted-logo-spectrum img {
  max-width: min(250px, 23vw);
  max-height: 150px;
}

.trusted-logo-quadriga {
  min-height: clamp(140px, 12vw, 178px);
}

.trusted-logo-quadriga img {
  max-width: min(315px, 28vw);
  max-height: 178px;
  filter: contrast(1.2);
  transform: scale(1.55);
  transform-origin: center;
}

.trusted-logo-pm img {
  max-width: min(170px, 18vw);
  max-height: 170px;
}

.trusted-logo-cbd img {
  max-width: min(162px, 22vw);
  max-height: 162px;
}

.trusted-logo-cbd {
  width: min(178px, 22vw);
  min-height: auto;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.trusted-logo-cbd img {
  max-width: 92%;
  max-height: 92%;
}

.trusted-logo-usaid {
  gap: 0.45rem;
  color: #111311;
  font-size: clamp(1.55rem, 2.35vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  text-shadow: none;
}

.usaid-seal {
  width: clamp(2.3rem, 3.2vw, 3.1rem);
  height: clamp(2.3rem, 3.2vw, 3.1rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: -0.05em;
}

.projects-collection {
  padding: 34px 0 110px;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.projects-list {
  display: grid;
  gap: 1.1rem;
}

.project-entry {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.6fr) minmax(360px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.project-entry:hover,
.project-entry:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(26, 27, 24, 0.22);
  box-shadow: 0 24px 54px rgba(28, 24, 18, 0.12);
  outline: none;
}

.project-number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--accent);
  padding-top: 0.4rem;
}

.project-main {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
}

.project-main img {
  height: auto;
  min-height: 100%;
  object-fit: contain;
}

.modal-image-slider {
  position: absolute;
  top: 50%;
  right: 1.05rem;
  z-index: 5;
  width: min(170px, calc(100% - 72px));
  height: 18px;
  margin: 0;
  border-radius: 999px;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  transition:
    opacity 220ms ease,
    filter 180ms ease,
    transform 220ms ease;
}

.project-modal-card:hover .project-modal-slide.has-vertical-scroll.is-active .modal-image-slider,
.project-modal-carousel:hover .project-modal-slide.has-vertical-scroll.is-active .modal-image-slider,
.project-modal-slide.has-vertical-scroll.is-image-control-visible .modal-image-slider,
.project-modal-slide.has-vertical-scroll:hover .modal-image-slider,
.project-modal-slide.has-vertical-scroll:focus-within .modal-image-slider {
  opacity: 0.72;
  pointer-events: auto;
  transform: translateY(-50%) rotate(-90deg) scale(1.02);
}

.modal-image-slider::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(243, 239, 231, 0.52);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.modal-image-slider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 1px solid rgba(17, 19, 15, 0.16);
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(244, 240, 232, 0.9);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.modal-image-slider::-moz-range-track {
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 239, 231, 0.52);
}

.modal-image-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(17, 19, 15, 0.16);
  border-radius: 999px;
  background: rgba(244, 240, 232, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-copy h3,
.expertise-grid h3 {
  margin: 0 0 0.6rem;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.project-meta {
  margin: 0 0 1rem;
  color: var(--accent-deep);
}

.portfolio-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(1rem, 2.2vw, 2rem);
  padding: clamp(1.1rem, 1.8vw, 1.45rem);
  border: 1px solid rgba(243, 239, 231, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(15, 18, 15, 0.84);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.portfolio-cta .eyebrow {
  margin-bottom: 0.45rem;
  color: rgba(243, 239, 231, 0.86);
}

.portfolio-cta p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(243, 239, 231, 0.74);
  line-height: 1.45;
}

.expertise {
  padding: 0 0 90px;
}

.expertise .section-heading {
  margin-bottom: clamp(2.2rem, 4vw, 4rem);
}

.expertise-heading-copy {
  max-width: 1180px;
}

.expertise-heading-copy h2 {
  max-width: 1120px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.45rem, 5.6vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.expertise-heading-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(243, 239, 231, 0.68);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.48;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.8rem, 1.1vw, 1.1rem);
}

.expertise-grid article {
  display: flex;
  min-height: clamp(240px, 22vw, 320px);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 1.7vw, 1.65rem);
}

.expertise-grid h3 {
  max-width: 9.5ch;
  font-size: clamp(2.1rem, 2.35vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.expertise-grid p {
  max-width: 27ch;
  margin: auto 0 0;
  line-height: 1.48;
}

.process-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(620px, 1.22fr);
  gap: clamp(1rem, 2vw, 1.8rem);
  align-items: center;
  padding: 0 0 110px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: clamp(1rem, 1.4vw, 1.35rem) clamp(1.2rem, 2vw, 2rem);
  width: calc(100% + clamp(0rem, 2.4vw, 2.8rem));
  margin-left: calc(clamp(0rem, 2.4vw, 2.8rem) * -1);
  padding: clamp(1.25rem, 1.8vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(27, 27, 23, 0.94);
  box-shadow: var(--shadow);
}

.process-item {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  min-height: 132px;
  padding-bottom: clamp(0.95rem, 1.2vw, 1.15rem);
}

.process-item:nth-child(4),
.process-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.4vw, 22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(236, 233, 227, 0.46);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}

.project-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(390px, 0.34fr) minmax(0, 1fr);
  width: min(calc(100vw - 28px), 1720px);
  height: min(calc(100vh - 28px), 1080px);
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(252, 249, 244, 0.92);
  box-shadow: 0 40px 90px rgba(24, 22, 18, 0.18);
}

.project-modal-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(0.8rem, 1.1vw, 1.15rem);
  border-right: 1px solid rgba(26, 27, 24, 0.08);
  background: rgba(250, 247, 241, 0.92);
}

.project-modal-actions {
  display: flex;
  gap: 0.8rem;
  margin-bottom: clamp(1rem, 2vh, 1.6rem);
  flex: 0 0 auto;
}

.modal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.05rem;
  border: 1px solid rgba(26, 27, 24, 0.08);
  border-radius: 16px;
  background: rgba(240, 238, 233, 0.95);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-close {
  width: 52px;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.project-modal-copy {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.85rem;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(243, 239, 231, 0.56) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.project-modal-copy h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 2.15vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.project-modal-meta {
  margin: 0 0 1.4rem;
  color: rgba(90, 88, 81, 0.9);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.72rem, 0.78vw, 0.9rem);
  line-height: 1.52;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: pre-line;
}

.project-modal-description {
  display: grid;
  gap: 1rem;
}

.project-modal-description p {
  margin: 0;
  font-size: clamp(0.84rem, 0.8vw, 0.96rem);
  line-height: 1.55;
  color: rgba(34, 32, 28, 0.92);
}

.project-modal-data {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(34, 32, 28, 0.14);
}

.project-modal-data h3 {
  margin: 1.1rem 0 0.2rem;
  color: rgba(34, 32, 28, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-modal-data-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(34, 32, 28, 0.12);
}

.project-modal-data-row span {
  color: rgba(34, 32, 28, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-modal-data-row strong {
  color: rgba(34, 32, 28, 0.94);
  font-size: clamp(0.8rem, 0.78vw, 0.94rem);
  font-weight: 500;
  line-height: 1.45;
}

.project-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(0.8rem, 1.1vw, 1.15rem);
  min-width: 0;
  min-height: 0;
}

.project-modal-carousel {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(226, 223, 216, 0.75);
}

.project-modal-copy::-webkit-scrollbar {
  width: 13px;
}

.project-modal-copy::-webkit-scrollbar-track {
  margin: 0.35rem 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.project-modal-copy::-webkit-scrollbar-thumb {
  min-height: 72px;
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(248, 243, 233, 0.92), rgba(175, 166, 150, 0.72)) border-box;
  background-clip: padding-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.project-modal-copy::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(207, 195, 174, 0.84)) border-box;
  background-clip: padding-box;
}

.project-modal-scrollbar {
  --modal-scroll-thumb-height: 78px;
  --modal-scroll-thumb-y: 0px;
  position: absolute;
  top: clamp(5.8rem, 10vh, 7.2rem);
  right: 0.38rem;
  bottom: 1rem;
  width: 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.18);
  cursor: grab;
  opacity: 0.92;
  touch-action: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-modal-scrollbar:hover {
  opacity: 1;
  transform: scaleX(1.08);
}

.project-modal-scrollbar:active {
  cursor: grabbing;
}

.project-modal-scrollbar.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.project-modal-scrollbar span {
  position: absolute;
  top: 0;
  left: 2px;
  width: 8px;
  height: var(--modal-scroll-thumb-height);
  border-radius: 999px;
  transform: translateY(var(--modal-scroll-thumb-y));
  background:
    linear-gradient(180deg, rgba(248, 243, 233, 0.98), rgba(168, 160, 146, 0.72)),
    rgba(243, 239, 231, 0.86);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    height 160ms ease,
    transform 80ms linear;
}

.project-modal-slide {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  scrollbar-width: none;
  transition:
    opacity 420ms ease,
    transform 900ms ease;
}

.project-modal-slide::-webkit-scrollbar {
  display: none;
}

.project-modal-slide.has-vertical-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  cursor: ns-resize;
  touch-action: pan-y;
}

.project-modal-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.project-modal-slide img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: contain;
}

.project-modal-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding-bottom: 0.25rem;
}

.project-modal-dot {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(194, 60, 48, 0.28);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.project-modal-dot.is-active {
  background: #d82d22;
  transform: scale(1.12);
}

.process-item span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 242, 235, 0.8);
}

.process-item p {
  margin: 0;
  color: rgba(247, 242, 235, 0.68);
  font-size: clamp(0.86rem, 0.9vw, 0.98rem);
  line-height: 1.45;
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 90px;
}

.image-card {
  aspect-ratio: 1.36;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  background: rgba(236, 232, 224, 0.92);
}

.image-card img {
  object-fit: cover;
  object-position: center 88%;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(150px, 0.35fr) minmax(340px, 0.7fr);
  align-items: start;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding: 40px 0 60px;
  border-top: 1px solid rgba(31, 32, 27, 0.12);
}

.footer-title {
  max-width: 520px;
}

.footer-subtitle {
  max-width: 520px;
  margin: 1rem 0 0;
  color: rgba(243, 239, 231, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-contact {
  gap: 1rem;
  padding: clamp(1rem, 1.7vw, 1.35rem);
  border: 1px solid rgba(243, 239, 231, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(10, 12, 10, 0.82);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-contact-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.62);
}

.footer-contact-row {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(243, 239, 231, 0.12);
}

.footer-contact-row span,
.footer-email span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.58);
}

.footer-contact-row strong {
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.35vw, 1.45rem);
  font-weight: 520;
  letter-spacing: -0.04em;
}

.footer-contact-row p {
  margin: 0;
  max-width: 36ch;
  line-height: 1.5;
}

.footer-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(243, 239, 231, 0.16);
  border-radius: 999px;
  background: rgba(243, 239, 231, 0.92);
  color: #11130f !important;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.footer-email:hover {
  transform: translateY(-2px);
  background: rgba(255, 252, 244, 0.98);
}

.footer-email strong {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.footer-email span {
  color: rgba(17, 19, 15, 0.58);
}

.footer-note {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode legibility pass */
.hero-index span,
.button-secondary,
.button-tertiary,
.story-card,
.metrics-grid article,
.expertise-grid article,
.closing-card,
.project-entry,
.image-card,
.project-modal-card,
.project-modal-sidebar,
.modal-chip {
  color: var(--text);
}

.hero-index span {
  background: rgba(29, 32, 29, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

.button-secondary,
.button-tertiary {
  background: rgba(29, 32, 29, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

.story-card,
.metrics-grid article,
.expertise-grid article,
.closing-card,
.project-entry,
.image-card {
  background: rgba(23, 26, 23, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.story-body p,
.project-copy p,
.expertise-grid p,
.footer-contact p,
.footer-contact a,
.metric-label,
.project-modal-description p {
  color: rgba(243, 239, 231, 0.82);
}

.footer-contact .footer-contact-label,
.footer-contact-row span {
  color: rgba(243, 239, 231, 0.58);
}

.footer-contact .footer-email {
  color: #11130f !important;
}

.footer-contact .footer-email span {
  color: rgba(17, 19, 15, 0.58);
}

.project-copy h3,
.expertise-grid h3,
.metric-value,
.footer-title,
.story-body h2,
.section-heading h2,
.process-copy h2 {
  color: var(--text);
}

.project-meta,
.project-modal-meta,
.section-label,
.eyebrow,
.footer-note {
  color: rgba(217, 210, 198, 0.84);
}

.metrics-grid article {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.018) 45%, rgba(0, 0, 0, 0.2) 100%),
    rgba(8, 10, 8, 0.88);
  border-color: rgba(243, 239, 231, 0.16);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -24px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.metrics-grid article:nth-child(even) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095) 0%, rgba(255, 255, 255, 0.022) 48%, rgba(0, 0, 0, 0.24) 100%),
    rgba(11, 13, 11, 0.9);
}

.process-list {
  background: rgba(232, 226, 216, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

.process-item span {
  color: #151714;
  border-bottom: 0;
}

.process-item {
  border-bottom-color: rgba(21, 23, 20, 0.12);
}

.process-item p {
  color: rgba(21, 23, 20, 0.68);
}

.project-modal-backdrop {
  background: rgba(6, 7, 7, 0.66);
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
}

.project-modal-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(20, 22, 20, 0.96);
}

.project-modal-sidebar {
  border-right-color: rgba(255, 255, 255, 0.08);
  background: rgba(20, 22, 20, 0.98);
}

.modal-chip {
  background: rgba(32, 36, 32, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
}

.project-modal-carousel {
  background: rgba(32, 35, 32, 0.92);
}

.project-modal-dot {
  background: rgba(255, 255, 255, 0.28);
}

.project-modal-dot.is-active {
  background: #f25c4b;
}

.project-modal-data {
  border-top-color: rgba(243, 239, 231, 0.14);
}

.project-modal-data-row {
  border-bottom-color: rgba(243, 239, 231, 0.12);
}

.project-modal-data h3,
.project-modal-data-row span {
  color: rgba(217, 210, 198, 0.68);
}

.project-modal-data-row strong {
  color: rgba(243, 239, 231, 0.94);
}

body.theme-light {
  --bg: #f6f4f0;
  --bg-deep: #ebe7e0;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(26, 26, 24, 0.86);
  --text: #1a1b18;
  --text-soft: rgba(26, 27, 24, 0.7);
  --light: #f7f4ee;
  --accent: #35332f;
  --accent-deep: #666259;
  --border: rgba(26, 27, 24, 0.13);
  --shadow: 0 24px 60px rgba(28, 24, 18, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(180deg, #f8f6f2 0%, #f2efea 48%, #f5f3ee 100%);
}

body.theme-light .site-header {
  background: linear-gradient(
    180deg,
    rgba(246, 244, 240, calc(0.62 + (var(--header-glass) * 0.18))) 0%,
    rgba(246, 244, 240, calc(0.08 + (var(--header-glass) * 0.08))) 100%
  );
}

body.theme-light .brand-mark,
body.theme-light .site-nav {
  border-color: rgba(255, 255, 255, calc(0.32 + (var(--header-glass) * 0.2)));
  background: rgba(240, 238, 233, calc(0.82 + (var(--header-glass) * 0.1)));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 30px rgba(32, 29, 25, calc(0.04 + (var(--header-glass) * 0.05)));
}

body.theme-light .language-toggle,
body.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(26, 27, 24, 0.08);
  color: var(--text);
}

body.theme-light .language-toggle span.is-active,
body.theme-light .theme-toggle span.is-active {
  background: #1a1b18;
  color: #f7f4ee;
}

body.theme-light .hero-media-immersive {
  background: rgba(222, 218, 211, 0.7);
  box-shadow: 0 26px 70px rgba(28, 24, 18, 0.12);
}

body.theme-light .hero-media-overlay {
  background:
    linear-gradient(180deg, rgba(8, 10, 10, 0.06) 0%, rgba(8, 10, 10, 0.12) 100%),
    linear-gradient(0deg, rgba(12, 12, 11, 0.58) 0%, rgba(12, 12, 11, 0.12) 38%, rgba(12, 12, 11, 0.08) 100%);
}

body.theme-light .hero-content-glass,
body.theme-light .hero-aside-floating {
  background: rgba(248, 245, 239, 0.68);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 24px 60px rgba(22, 20, 17, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

body.theme-light .hero-copy {
  color: rgba(26, 27, 24, 0.82);
}

body.theme-light .button-primary {
  background: rgba(28, 28, 25, 0.96);
  color: var(--light);
}

body.theme-light .button-secondary,
body.theme-light .button-tertiary,
body.theme-light .hero-index span {
  background: rgba(240, 238, 233, 0.92);
  border-color: rgba(26, 27, 24, 0.08);
  color: var(--text);
}

body.theme-light .story-card,
body.theme-light .expertise-grid article,
body.theme-light .closing-card,
body.theme-light .project-entry,
body.theme-light .image-card {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(26, 27, 24, 0.12);
  box-shadow: var(--shadow);
}

body.theme-light .metrics::before {
  background:
    radial-gradient(circle at 18% 8%, rgba(26, 27, 24, 0.05), transparent 28%),
    radial-gradient(circle at 82% 45%, rgba(210, 199, 181, 0.26), transparent 30%);
}

body.theme-light .metrics-grid article {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(239, 235, 227, 0.72) 56%, rgba(224, 218, 207, 0.62) 100%);
  border-color: rgba(26, 27, 24, 0.14);
  box-shadow:
    0 24px 56px rgba(28, 24, 18, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -20px 44px rgba(99, 91, 78, 0.06);
}

body.theme-light .trusted-logo {
  color: #171817;
}

body.theme-light .trusted-by {
  background: #d9dbd4;
  color: #111311;
}

body.theme-light .trusted-heading {
  color: #171817;
}

body.theme-light .trusted-subtitle {
  color: rgba(23, 24, 23, 0.68);
}

body.theme-light .trusted-logo-usaid {
  color: rgba(26, 27, 24, 0.72);
}

body.theme-light .trusted-logo-cbd {
  box-shadow: none;
}

body.theme-light .story-number {
  color: rgba(26, 27, 24, 0.18);
}

body.theme-light .spectrum-mark,
body.theme-light .quadriga-mark::before,
body.theme-light .quadriga-mark::after {
  background: var(--text);
}

body.theme-light .spectrum-mark {
  color: var(--light);
}

body.theme-light .story-body p,
body.theme-light .project-copy p,
body.theme-light .expertise-grid p,
body.theme-light .footer-contact p,
body.theme-light .footer-contact a,
body.theme-light .metric-label {
  color: rgba(26, 27, 24, 0.72);
}

body.theme-light .portfolio-cta {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 236, 228, 0.58)),
    rgba(244, 241, 234, 0.78);
  border-color: rgba(26, 27, 24, 0.12);
  box-shadow: 0 24px 56px rgba(28, 24, 18, 0.09);
}

body.theme-light .portfolio-cta .eyebrow {
  color: rgba(26, 27, 24, 0.82);
}

body.theme-light .portfolio-cta p:last-child,
body.theme-light .footer-subtitle {
  color: rgba(26, 27, 24, 0.66);
}

body.theme-light .expertise-heading-copy p {
  color: rgba(26, 27, 24, 0.66);
}

body.theme-light .footer-contact {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 236, 228, 0.62)),
    rgba(244, 241, 234, 0.78);
  border-color: rgba(26, 27, 24, 0.12);
  box-shadow:
    0 24px 70px rgba(37, 36, 31, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.theme-light .footer-contact .footer-contact-label,
body.theme-light .footer-contact-row span {
  color: rgba(26, 27, 24, 0.52);
}

body.theme-light .footer-contact-row {
  border-bottom-color: rgba(26, 27, 24, 0.12);
}

body.theme-light .footer-contact-row strong {
  color: var(--text);
}

body.theme-light .footer-contact .footer-email {
  background: rgba(27, 28, 24, 0.94);
  border-color: rgba(27, 28, 24, 0.12);
  color: var(--light) !important;
}

body.theme-light .footer-contact .footer-email:hover {
  background: rgba(18, 19, 17, 0.98);
}

body.theme-light .footer-contact .footer-email span {
  color: rgba(243, 239, 231, 0.62);
}

body.theme-light .modal-image-slider::-webkit-slider-runnable-track {
  background: rgba(26, 27, 24, 0.34);
  box-shadow: 0 10px 22px rgba(28, 24, 18, 0.12);
}

body.theme-light .modal-image-slider::-webkit-slider-thumb {
  border-color: rgba(243, 239, 231, 0.5);
  background: rgba(26, 27, 24, 0.72);
}

body.theme-light .modal-image-slider::-moz-range-track {
  background: rgba(26, 27, 24, 0.34);
}

body.theme-light .modal-image-slider::-moz-range-thumb {
  border-color: rgba(243, 239, 231, 0.5);
  background: rgba(26, 27, 24, 0.72);
}

body.theme-light .project-copy h3,
body.theme-light .expertise-grid h3,
body.theme-light .metric-value,
body.theme-light .footer-title,
body.theme-light .story-body h2,
body.theme-light .section-heading h2,
body.theme-light .process-copy h2 {
  color: var(--text);
}

body.theme-light .project-meta,
body.theme-light .project-modal-meta,
body.theme-light .section-label,
body.theme-light .eyebrow,
body.theme-light .footer-note {
  color: rgba(53, 51, 47, 0.82);
}

body.theme-light .process-list {
  background: rgba(27, 27, 23, 0.94);
}

body.theme-light .process-item {
  border-bottom-color: rgba(247, 242, 235, 0.12);
}

body.theme-light .process-item span {
  color: rgba(247, 242, 235, 0.86);
}

body.theme-light .process-item p {
  color: rgba(247, 242, 235, 0.68);
}

body.theme-light .project-modal-backdrop {
  background: rgba(236, 233, 227, 0.46);
}

body.theme-light .project-modal-card {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(252, 249, 244, 0.94);
  box-shadow: 0 40px 90px rgba(24, 22, 18, 0.18);
}

body.theme-light .project-modal-sidebar {
  border-right-color: rgba(26, 27, 24, 0.08);
  background: rgba(250, 247, 241, 0.96);
}

body.theme-light .modal-chip {
  background: rgba(240, 238, 233, 0.95);
  border-color: rgba(26, 27, 24, 0.08);
  color: var(--text);
}

body.theme-light .project-modal-description p {
  color: rgba(34, 32, 28, 0.92);
}

body.theme-light .project-modal-data {
  border-top-color: rgba(34, 32, 28, 0.14);
}

body.theme-light .project-modal-data-row {
  border-bottom-color: rgba(34, 32, 28, 0.12);
}

body.theme-light .project-modal-data h3,
body.theme-light .project-modal-data-row span {
  color: rgba(34, 32, 28, 0.58);
}

body.theme-light .project-modal-data-row strong {
  color: rgba(34, 32, 28, 0.94);
}

body.theme-light .project-modal-carousel {
  background: rgba(226, 223, 216, 0.75);
}

body.theme-light .project-modal-copy {
  scrollbar-color: rgba(38, 37, 34, 0.42) rgba(26, 27, 24, 0.08);
}

body.theme-light .project-modal-copy::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(26, 27, 24, 0.05), rgba(26, 27, 24, 0.015)),
    rgba(26, 27, 24, 0.07);
  box-shadow: inset 0 0 0 1px rgba(26, 27, 24, 0.08);
}

body.theme-light .project-modal-copy::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(50, 49, 45, 0.72), rgba(112, 106, 94, 0.5)) border-box;
  background-clip: padding-box;
}

body.theme-light .project-modal-copy::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(34, 33, 30, 0.82), rgba(92, 86, 76, 0.62)) border-box;
  background-clip: padding-box;
}

body.theme-light .project-modal-scrollbar {
  background:
    linear-gradient(180deg, rgba(26, 27, 24, 0.08), rgba(26, 27, 24, 0.02)),
    rgba(26, 27, 24, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(26, 27, 24, 0.08),
    0 12px 30px rgba(24, 22, 18, 0.1);
}

body.theme-light .project-modal-scrollbar span {
  background:
    linear-gradient(180deg, rgba(48, 47, 43, 0.78), rgba(108, 101, 88, 0.5)),
    rgba(41, 40, 36, 0.68);
  box-shadow:
    0 10px 24px rgba(24, 22, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (hover: none) {
  .project-modal-slide.has-vertical-scroll .modal-image-slider {
    opacity: 0.34;
    pointer-events: auto;
  }
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
    margin-top: -10rem;
  }

  .hero-aside {
    max-width: 520px;
  }

  .story-grid,
  .expertise-grid,
  .metrics-grid,
  .trusted-grid,
  .closing-grid,
  .site-footer,
  .process-band,
  .section-heading,
  .intro-band {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading .section-label,
  .intro-band .section-label {
    grid-column: 1 / -1;
  }

  .story-card-wide,
  .site-footer > :first-child,
  .process-copy {
    grid-column: 1 / -1;
  }

  .process-list {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .project-entry {
    grid-template-columns: 70px 1fr;
  }

  .project-modal-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(250px, 42vh) minmax(0, 1fr);
    height: min(calc(100vh - 22px), 980px);
    max-height: 94vh;
  }

  .project-modal-sidebar {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(26, 27, 24, 0.08);
  }

  .project-modal-copy {
    max-height: 100%;
  }

  .project-modal-carousel {
    min-height: 0;
  }

  .project-copy {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .site-header,
  .intro-band,
  .metrics,
  .projects-collection,
  .expertise,
  .process-band,
  .closing-grid,
  .site-footer,
  .story-grid {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .brand {
    align-self: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
    padding-inline: 1rem;
  }

  .language-toggle {
    width: 100%;
    grid-column: 1 / -1;
  }

  .theme-toggle {
    width: 100%;
    grid-column: 1 / -1;
  }

  .hero {
    padding-inline: 10px;
  }

  .hero-media-immersive {
    height: 74vh;
    min-height: 520px;
    border-radius: 26px;
  }

  .hero-media-immersive,
  .hero-layout {
    width: min(calc(100% - 4px), var(--max-width));
  }

  .metrics-quote {
    font-size: clamp(1.7rem, 7.2vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
    text-align: left;
  }

  .metrics-quote-secondary {
    font-size: clamp(1.45rem, 6.2vw, 2.25rem);
  }

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

  .metrics-grid article {
    min-height: 180px;
    padding: 1.15rem;
    border-radius: 24px;
  }

  .metric-value {
    font-size: clamp(2.9rem, 15vw, 5rem);
  }

  .metric-label {
    font-size: clamp(0.92rem, 3.9vw, 1.15rem);
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .hero-layout {
    margin-top: -6.5rem;
    gap: 1rem;
  }

  .hero-content-glass,
  .hero-aside-floating {
    padding: 1rem;
    border-radius: 22px;
  }

  .hero-media-immersive,
  .project-main,
  .story-media,
  .image-card,
  .project-modal-carousel,
  .project-modal-slide img {
    border-radius: 20px;
  }

  .hero-media-frame {
    height: 320px;
  }

  .story-grid,
  .expertise-grid,
  .trusted-grid,
  .closing-grid,
  .site-footer,
  .process-band,
  .section-heading,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .process-item,
  .process-item:nth-child(4) {
    min-height: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(21, 23, 20, 0.12);
  }

  .process-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .footer-contact {
    padding: 1rem;
    border-radius: 24px;
  }

  .footer-contact-row p {
    max-width: none;
  }

  .footer-email {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 20px;
  }

  .project-entry {
    grid-template-columns: 1fr;
  }

  .portfolio-cta {
    grid-template-columns: 1fr;
  }

  .portfolio-cta .button {
    width: 100%;
  }

  .trusted-by {
    padding: 3.4rem 1.1rem 4rem;
    border-radius: 28px;
  }

  .trusted-copy {
    margin-bottom: 3rem;
  }

  .trusted-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
    max-width: 520px;
  }

  .trusted-logo {
    min-height: 132px;
  }

  .trusted-logo img {
    max-width: min(190px, 39vw);
    max-height: 128px;
  }

  .trusted-logo-mesoamerica img {
    max-width: min(230px, 50vw);
    max-height: 112px;
  }

  .trusted-logo-spectrum img {
    max-width: min(190px, 40vw);
  }

  .trusted-logo-quadriga img {
    max-width: min(260px, 46vw);
    max-height: 168px;
    transform: scale(1.38);
  }

  .trusted-logo-pm img {
    max-width: min(136px, 32vw);
    max-height: 154px;
  }

  .trusted-logo-cbd img {
    max-width: 92%;
    max-height: 92%;
  }

  .trusted-logo-cbd {
    width: min(148px, 36vw);
  }

  .trusted-logo-usaid {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .usaid-seal {
    width: clamp(2.2rem, 9vw, 3rem);
    height: clamp(2.2rem, 9vw, 3rem);
  }

  .project-modal {
    padding: 10px;
  }

  .project-modal-card {
    width: 100%;
    height: calc(100vh - 20px);
    border-radius: 22px;
    grid-template-rows: minmax(260px, 50vh) minmax(0, 1fr);
  }

  .project-modal-sidebar,
  .project-modal-gallery {
    padding: 0.9rem;
  }

  .project-modal-actions {
    margin-bottom: 0.85rem;
  }

  .modal-chip {
    min-height: 46px;
    border-radius: 14px;
  }

  .modal-close {
    width: 46px;
  }

  .project-modal-carousel {
    min-height: 0;
  }

  .project-number,
  .project-copy {
    grid-column: auto;
  }

  .project-main {
    min-height: 240px;
  }

  .story-card {
    grid-template-rows: 280px auto;
  }
}
