button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }

/* -------------------------------------------------------------------------
   Theme tokens — light default, dark inverts odd/even section fields
   ------------------------------------------------------------------------- */

:root,
[data-theme="light"] {
  --page-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(17, 17, 17, 0.1);
  --odd-bg: #ffffff;
  --odd-fg: #111111;
  --even-bg: #111111;
  --even-fg: #f4f4f4;
  --card-bg: #ffffff;
  --card-fg: #111111;
  --border: rgba(17, 17, 17, 0.12);
  --input-bg: #111111;
  --input-fg: #f4f4f4;
  --input-border: rgba(244, 244, 244, 0.28);
  --modal-bg: #ffffff;
  --modal-fg: #111111;
  --modal-muted: #5c5c5c;
  --text: #111111;
  --muted: #5c5c5c;
  --overlay: rgba(0, 0, 0, 0.55);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --ph-bg: #d0d0d0;
  --ph-fg: #6b6b6b;
  --focus: #111111;
  --chrome-bg: #ffffff;
  --chrome-fg: #111111;
}

[data-theme="dark"] {
  --page-bg: #111111;
  --nav-bg: rgba(17, 17, 17, 0.92);
  --nav-border: rgba(244, 244, 244, 0.14);
  --odd-bg: #111111;
  --odd-fg: #f4f4f4;
  --even-bg: #ffffff;
  --even-fg: #111111;
  --card-bg: #1a1a1a;
  --card-fg: #f4f4f4;
  --border: rgba(244, 244, 244, 0.14);
  --input-bg: #ffffff;
  --input-fg: #111111;
  --input-border: rgba(17, 17, 17, 0.2);
  --modal-bg: #111111;
  --modal-fg: #f4f4f4;
  --modal-muted: #a3a3a3;
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --overlay: rgba(0, 0, 0, 0.7);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --ph-bg: #d0d0d0;
  --ph-fg: #6b6b6b;
  --focus: #f4f4f4;
  --chrome-bg: #111111;
  --chrome-fg: #f4f4f4;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-y pinch-zoom;
  overflow-x: hidden;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

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

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

button,
input,
textarea {
  font-family: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--chrome-fg);
  color: var(--chrome-bg);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 16px;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-block: 88px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

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

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

.section[id] {
  scroll-margin-top: 72px;
}

#hero {
  scroll-margin-top: 0;
}

#services {
  border-top: 1px solid color-mix(in srgb, var(--section-fg) 12%, transparent);
}

#testimonials {
  border-top: 1px solid color-mix(in srgb, var(--section-fg) 12%, transparent);
}

#contact {
  border-top: 1px solid color-mix(in srgb, var(--section-fg) 12%, transparent);
}

.section-kicker {
  display: inline-block;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.7;
}

.section-title {
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 16px;
}

.section-lead {
  max-width: 40rem;
  margin: 0 0 48px;
  opacity: 0.82;
}

.section-head {
  margin-bottom: 48px;
}

@media (min-width: 769px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }

  .section {
    padding-block: 120px;
  }
}

/* -------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-bg);
  color: var(--chrome-fg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.logo span {
  display: block;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.6875rem;
  opacity: 0.6;
  margin-top: 2px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.62;
  transition:
    opacity 0.3s ease,
    font-weight 0.3s ease;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible,
.nav-desktop a.is-active {
  opacity: 1;
  font-weight: 600;
}

.nav-desktop a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 1px;
  background: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.icon-btn:hover {
  opacity: 0.7;
}

.theme-toggle-mobile {
  display: none;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.4);
  color: #f4f4f4;
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: #f4f4f4;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 1 auto;
  width: 100%;
  margin: auto 0;
  padding: 8px 24px;
  background: rgba(0, 0, 0, 0.82);
}

.nav-overlay-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f4f4f4;
  opacity: 0.7;
  border-bottom: 1px solid #8a8a8a;
  transition: opacity 0.3s ease;
}

.nav-overlay-links a:last-child {
  border-bottom: none;
}

.nav-overlay-links a.is-active,
.nav-overlay-links a:hover,
.nav-overlay-links a:focus-visible {
  opacity: 1;
}

.nav-overlay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  color: #f4f4f4;
  border-top: 1px solid rgba(244, 244, 244, 0.16);
}

@media (min-width: 769px) {
  .nav-desktop {
    display: flex;
  }

  .hamburger {
    display: none;
  }
}

@media (max-width: 768px) {
  .theme-toggle-desktop {
    display: none;
  }

  .theme-toggle-mobile {
    display: inline-flex;
  }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.96);
}

.btn-solid {
  background: var(--section-fg, var(--chrome-fg));
  color: var(--section-bg, var(--chrome-bg));
  border-color: var(--section-fg, var(--chrome-fg));
}

.btn-solid:hover {
  opacity: 0.86;
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-ghost:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.hero .btn-solid {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  padding: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-video,
.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #3a3a3a;
}

.hero-video-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 1rem;
  color: #8a8a8a;
  letter-spacing: 0.04em;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  padding: 96px 24px 80px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroIn 0.8s ease-out forwards;
}

.hero-kicker {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.8;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}

.hero-sub {
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto 36px;
  opacity: 0.86;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   Placeholder media
   ------------------------------------------------------------------------- */

.ph-media {
  background: var(--ph-bg);
  color: var(--ph-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  width: 100%;
  overflow: hidden;
}

.ph-media span {
  padding: 12px;
}

.ph-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-headshot {
  aspect-ratio: 4 / 5;
  min-height: 280px;
}

.ph-card {
  aspect-ratio: 4 / 3;
}

.ph-hero {
  aspect-ratio: 16 / 9;
  min-height: 180px;
}

.ph-gallery {
  aspect-ratio: 4 / 3;
}

.ph-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ph-bg);
  color: var(--ph-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 400;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */

.card {
  background: color-mix(in srgb, var(--section-fg) 4%, var(--section-bg));
  color: var(--section-fg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.card-text {
  margin: 0 0 20px;
  opacity: 0.78;
  font-size: 0.9375rem;
}

.card-text.tight {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Portfolio
   ------------------------------------------------------------------------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 0;
  padding: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.project-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-copy p {
  margin: 0 0 1.1em;
  max-width: 40rem;
}

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

.about-meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
}

.about-meta dt {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}

.about-meta dd {
  margin: 0;
}

@media (min-width: 769px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
  }
}

/* -------------------------------------------------------------------------
   Services
   ------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  padding: 32px 28px;
  min-height: 100%;
}

.service-card .ph-icon {
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* -------------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------------- */

.testimonials {
  position: relative;
}

.t-frame {
  overflow: hidden;
  touch-action: pan-y;
}

.t-track {
  display: flex;
  transition: transform 0.3s ease;
}

.t-slide {
  flex: 0 0 100%;
  padding-right: 8px;
}

.t-quote {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 48rem;
}

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

.t-name {
  font-weight: 600;
}

.t-role {
  opacity: 0.7;
  font-size: 0.875rem;
}

.t-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.t-dots {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.t-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.t-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.t-dot.is-active {
  opacity: 1;
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--input-bg);
  color: var(--input-fg);
  border: 1px solid var(--input-border);
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

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

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--section-fg);
  outline-offset: 2px;
}

.field-error {
  color: var(--section-fg);
  font-size: 0.875rem;
  min-height: 1.2em;
  opacity: 0.8;
}

.form-success {
  padding: 20px;
  border: 1px solid currentColor;
  font-weight: 400;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-aside h3 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px;
  opacity: 0.65;
}

.contact-aside p {
  margin: 0;
}

.contact-aside a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
}

@media (min-width: 769px) {
  .contact-grid {
    grid-template-columns: 1.4fr 0.8fr;
    gap: 80px;
    align-items: start;
  }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  padding-block: 40px;
  border-top: 1px solid color-mix(in srgb, var(--odd-fg) 12%, transparent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
}

.footer-copy {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* -------------------------------------------------------------------------
   Back to top
   ------------------------------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--chrome-fg);
  color: var(--chrome-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  opacity: 0.85;
}

.files-download {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 70;
  min-height: 48px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  background: #111111;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #111111;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    opacity 0.3s ease;
}

.files-download:hover {
  opacity: 0.88;
}

[data-theme="dark"] .files-download {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* -------------------------------------------------------------------------
   Modal
   ------------------------------------------------------------------------- */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-root.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--modal-bg);
  color: var(--modal-fg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  transform: scale(0.98);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.modal-root.is-open .modal-dialog {
  transform: scale(1);
}

.modal-close {
  position: sticky;
  top: 8px;
  float: right;
  z-index: 2;
  margin: 8px 8px 0 0;
  background: var(--modal-bg);
  color: var(--modal-fg);
  border: 1px solid color-mix(in srgb, var(--modal-fg) 18%, transparent);
}

.modal-hero {
  width: 100%;
}

.modal-body {
  padding: 32px 24px 48px;
  clear: both;
}

.modal-client {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 8px;
}

.modal-title {
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 28px;
}

.modal-block {
  margin-bottom: 32px;
}

.modal-block h3 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
  opacity: 0.6;
}

.modal-block p {
  margin: 0 0 0.9em;
  color: var(--modal-muted);
}

.modal-block p:last-child {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stat {
  border-top: 1px solid color-mix(in srgb, var(--modal-fg) 16%, transparent);
  padding-top: 16px;
}

.stat-value {
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--modal-fg) 22%, transparent);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .modal-body {
    padding: 40px 40px 56px;
  }
}

/* -------------------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

body.is-reduced .reveal,
body.is-reduced .hero-content {
  opacity: 1;
  transform: none;
  animation: none;
}

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */

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

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

  .reveal,
  .hero-content {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .card:hover {
    transform: none;
  }
}

body.nav-lock,
body.modal-lock {
  overflow: hidden;
}
