:root {
  --bg: #fbf7ef;
  --bg-2: #fffdf8;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-solid: #ffffff;
  --text: #17130f;
  --muted: #6c6258;
  --faint: #ded2c2;
  --line: rgba(50, 38, 28, 0.14);
  --accent: #8a5d35;
  --accent-2: #c8a064;
  --button: #17130f;
  --button-text: #ffffff;
  --shadow: 0 24px 80px rgba(57, 39, 22, 0.14);
  --soft-shadow: 0 12px 42px rgba(57, 39, 22, 0.1);
  --radius: 28px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --max: 1360px;
}

[data-theme="obsidian"] {
  --bg: #080807;
  --bg-2: #11100d;
  --surface: rgba(28, 25, 21, 0.78);
  --surface-solid: #17140f;
  --text: #f4eadc;
  --muted: #b9aa99;
  --faint: rgba(230, 205, 165, 0.2);
  --line: rgba(232, 207, 167, 0.18);
  --accent: #d7b070;
  --accent-2: #f0d49b;
  --button: #f3dfbd;
  --button-text: #11100d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(205, 165, 104, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 42rem, var(--bg));
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background 500ms ease, color 300ms ease;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

section {
  scroll-margin-top: 96px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(170%) blur(22px);
  -webkit-backdrop-filter: saturate(170%) blur(22px);
  transition: border-color 250ms ease, background 250ms ease, box-shadow 250ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.brand,
.header-actions,
.desktop-nav,
.theme-toggle {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  background: #0f0e0d;
  transform: scale(1.02);
}

.brand span {
  white-space: nowrap;
}

.desktop-nav {
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 58%, transparent);
}

.desktop-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: background 200ms ease, color 200ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--text);
  color: var(--bg);
}

.header-actions {
  gap: 10px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-solid) 64%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: var(--line);
  transform: scale(1.05);
}

.header-cta,
.mobile-cta {
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--line);
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 220ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 27px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 72px 12px auto;
  z-index: 70;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
}

.mobile-nav a:not(.mobile-cta) {
  background: var(--surface);
}

.hero {
  position: relative;
  min-height: 96vh;
  padding: 104px clamp(16px, 4vw, 56px) 120px;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 10%, transparent), var(--bg) 95%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72), transparent 32rem);
}

[data-theme="obsidian"] .hero::before {
  background:
    radial-gradient(circle at 50% 12%, rgba(215, 176, 112, 0.16), transparent 38rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), var(--bg) 92%);
}

.hero-media {
  position: absolute;
  inset: 82px clamp(16px, 4vw, 56px) 120px;
  z-index: -1;
  overflow: hidden;
  border-radius: 0 0 42px 42px;
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(251, 247, 239, 0.76), rgba(251, 247, 239, 0.2) 42%, rgba(251, 247, 239, 0.84)),
    linear-gradient(90deg, rgba(251, 247, 239, 0.55), transparent 35%, rgba(251, 247, 239, 0.5));
}

[data-theme="obsidian"] .hero-media::after {
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.28), rgba(8, 8, 7, 0.2) 42%, rgba(8, 8, 7, 0.9)),
    linear-gradient(90deg, rgba(8, 8, 7, 0.62), transparent 45%, rgba(8, 8, 7, 0.65));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateY(0);
  }

  to {
    transform: scale(1.1) translateY(-16px);
  }
}

.hero-copy {
  align-self: center;
  justify-self: center;
  width: min(980px, 100%);
  padding: clamp(24px, 5.4vw, 70px) 0 clamp(18px, 3vw, 34px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.94;
  font-weight: 800;
}

.hero-lede {
  max-width: 780px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.45;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--button);
  color: var(--button-text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid transparent;
}

.btn-secondary {
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-product-nav {
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 8px;
  width: min(640px, 100%);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.hero-product-nav a {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 8px 9px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-product-nav a:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-product-nav img {
  width: 62px;
  height: 44px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

/* ── Stats Strip ── */
.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max);
  margin: -80px auto 0;
  padding: 0 clamp(16px, 4vw, 56px) 72px;
  position: relative;
  z-index: 10;
}

.intro-strip .stat-card {
  padding: 34px 28px;
  background: var(--surface);
  border: none;
  border-radius: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--soft-shadow);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    background 0.3s ease;
}

/* Staggered entrance reveal */
.intro-strip .stat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-strip .stat-card:nth-child(1) {
  transition-delay: 0s;
}

.intro-strip .stat-card:nth-child(2) {
  transition-delay: 0.1s;
}

.intro-strip .stat-card:nth-child(3) {
  transition-delay: 0.2s;
}

.intro-strip .stat-card:nth-child(4) {
  transition-delay: 0.3s;
}

/* Out-of-sync floating after entrance */
.intro-strip .stat-card.is-visible:nth-child(1) {
  animation: cardFloat1 6s 0.8s ease-in-out infinite alternate;
}

.intro-strip .stat-card.is-visible:nth-child(2) {
  animation: cardFloat2 6.5s 1.0s ease-in-out infinite alternate;
}

.intro-strip .stat-card.is-visible:nth-child(3) {
  animation: cardFloat1 7s 1.2s ease-in-out infinite alternate;
}

.intro-strip .stat-card.is-visible:nth-child(4) {
  animation: cardFloat2 5.8s 0.9s ease-in-out infinite alternate;
}

@keyframes cardFloat1 {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-10px);
  }
}

@keyframes cardFloat2 {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

/* Hover */
.intro-strip .stat-card:hover {
  animation-play-state: paused;
  transform: translateY(-14px) scale(1.03);
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--surface) 90%, var(--accent) 10%);
}

/* Number */
.intro-strip .stat-card strong {
  display: block;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.intro-strip .stat-card:hover strong {
  color: var(--accent-2);
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Label */
.intro-strip .stat-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.section {
  padding: clamp(74px, 9vw, 132px) clamp(16px, 4vw, 56px);
}

.section-heading {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 42px;
}

.section-heading.center {
  text-align: center;
}

.section-heading h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1;
  font-weight: 800;
}

.section-heading.center h2 {
  margin-left: auto;
  margin-right: auto;
}



.projects-section {
  height: auto;
  min-height: 0;
  padding: 44px clamp(16px, 4vw, 56px) 72px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 22px;
}

.projects-top {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  align-items: end;
  gap: 24px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.projects-top h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.project-filters {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.project-filter {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 62%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-filter:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.project-filter.active {
  background: var(--button);
  color: var(--button-text);
}

.project-mosaic {
  display: block;
  columns: 5 180px;
  column-gap: 8px;
  max-width: var(--max);
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
}

.project-tile {
  position: relative;
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 8px;
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  isolation: isolate;
  transition: transform 180ms ease, opacity 260ms ease, filter 260ms ease;
}

.project-tile.tile-wide {
  grid-column: auto;
  grid-row: auto;
}

.project-tile.tile-tall {
  grid-column: auto;
  grid-row: auto;
}

.project-tile.tile-large {
  grid-column: auto;
  grid-row: auto;
}

.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.78));
  opacity: 0.82;
}

.project-tile img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 520ms ease;
}

.project-tile:hover {
  transform: translateY(-3px);
}

.project-tile:hover img {
  transform: scale(1.06);
}

.project-tile span {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 900;
  line-height: 1.1;
  text-align: left;
}

.project-tile.is-hidden {
  display: none;
}

.project-dialog {
  width: min(960px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow);
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-dialog[open] {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.project-dialog-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.project-dialog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
}

.project-dialog-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.project-dialog-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.project-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.signature-section {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-solid) 40%, transparent), transparent);
}

.signature-section.section {
  min-height: 100svh;
  padding-top: clamp(28px, 4vh, 48px);
  padding-bottom: clamp(24px, 4vh, 44px);
}

.signature-section .section-heading {
  margin-bottom: clamp(16px, 3vh, 24px);
}

.signature-section .section-heading h2 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(30px, 4.25vw, 52px);
  line-height: 0.96;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0;
  align-items: stretch;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  border: none;
  border-radius: 36px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-panel img {
  align-self: stretch;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 2.7vw, 34px);
}

.feature-copy h3 {
  margin: 0;
  font-size: clamp(21px, 2.25vw, 32px);
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-copy p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.material-row,
.credential-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.material-row button,
.credential-grid span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 62%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.material-row button:hover,
.material-row button.active {
  background: var(--button);
  border-color: var(--accent);
  color: var(--button-text);
  transform: translateY(-1px);
}

[data-theme="obsidian"] .material-row button:hover,
[data-theme="obsidian"] .material-row button.active {
  background: #f3dfbd;
  color: #11100d;
}

.material-detail {
  min-height: 48px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: var(--max);
  margin: 18px auto 0;
}

.comparison-card,
.service-card,
.process-step {
  padding: clamp(24px, 3vw, 36px);
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.comparison-card h3,
.service-card h3,
.process-step h3 {
  margin: 16px 0 10px;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.comparison-card p,
.service-card p,
.process-step p,
.studio-copy p,
.contact-copy p {
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
}

.service-card {
  position: relative;
  min-height: clamp(170px, 23vh, 210px);
  overflow: hidden;
  padding: clamp(18px, 2vw, 28px);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
}

.service-card p {
  margin-bottom: 0;
}

.services-section {
  position: relative;
  min-height: 100svh;
  padding-top: clamp(34px, 5vh, 58px);
  padding-bottom: clamp(28px, 4vh, 46px);
  background:
    radial-gradient(circle at 14% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 28rem),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-solid) 26%, transparent), transparent);
}

.services-section .section-heading {
  max-width: 1050px;
  margin-bottom: clamp(20px, 3vh, 30px);
}

.services-section .section-heading h2 {
  max-width: 1120px;
  font-size: clamp(30px, 3.64vw, 49px);
  line-height: 1.02;
}

.services-section .section-intro {
  max-width: 830px;
  margin-top: 14px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.5;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 42%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.service-card:hover::before,
.service-card-featured::before {
  opacity: 1;
}

.service-card>* {
  position: relative;
  z-index: 1;
}

.service-card h3 {
  max-width: 360px;
  margin: 10px 0 7px;
  font-size: clamp(22px, 1.75vw, 28px);
  line-height: 1.02;
}

.service-card p {
  font-size: 13px;
  line-height: 1.42;
}

.service-card-featured {
  grid-column: auto;
  grid-row: auto;
  min-height: clamp(170px, 23vh, 210px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 2%, transparent), color-mix(in srgb, var(--text) 8%, transparent)),
    var(--surface);
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
}

.service-card-featured h3 {
  max-width: 390px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1;
}

.service-card-featured p {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 650;
}

.service-card-featured ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.service-card-featured li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.service-card-featured li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
  flex: 0 0 auto;
}

/* ── Services Bento Grid ── */
.services-section {
  position: relative;
  padding-top: clamp(34px, 5vh, 58px);
  padding-bottom: clamp(32px, 5vh, 58px);
  background:
    radial-gradient(circle at 20% 22%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 24rem),
    radial-gradient(circle at 82% 72%, color-mix(in srgb, var(--surface-solid) 6%, transparent), transparent 22rem),
    var(--bg);
}

.services-section .section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto clamp(24px, 4vh, 36px);
}

.services-section .section-heading h2 {
  max-width: 780px;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 0.96;
}

.services-section .section-intro {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.services-grid .service-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 22px;
  border: none;
  background: #111;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.services-grid .service-card:hover {
  transform: translateY(-6px);
}

/* Hero cards span 2 columns */
.services-grid .service-card-hero {
  grid-column: span 2;
  min-height: 360px;
}

/* Image layer */
.services-grid .service-card>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.65;
  filter: saturate(0.8) contrast(1.1);
  transition: opacity 400ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.services-grid .service-card:hover>img {
  opacity: 0.85;
  transform: scale(1.05);
}

/* Gradient overlay on top of image */
.services-grid .service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(10, 8, 5, 0.9) 80%);
  pointer-events: none;
  opacity: 0.3;
}

.services-grid .service-card::after {
  display: none;
}

/* Text content */
.services-grid .service-card-content {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 2.5vw, 32px);
}

.services-grid .service-card-content span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.services-grid .service-card-content h3 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: 0;
  min-height: 2.2em;
}

.services-grid .service-card-content p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  min-height: 4.5em;
}

.services-grid .service-card>h3::after {
  display: none;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.process-step {
  min-height: 330px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.studio-portrait {
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.studio-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.studio-copy h2,
.contact-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

.studio-copy p {
  font-size: 18px;
}

.contact-section {
  padding-top: 40px;
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 5vw, 70px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 70px);
  border-radius: 38px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
}

[data-theme="obsidian"] .contact-shell {
  background: #f2dfbd;
  color: #11100d;
}

.contact-copy p {
  color: color-mix(in srgb, var(--bg) 74%, transparent);
  font-size: 18px;
}

[data-theme="obsidian"] .contact-copy p {
  color: rgba(17, 16, 13, 0.72);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-list a,
.contact-list address {
  font-style: normal;
  color: inherit;
  opacity: 0.82;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 14px 16px;
  outline: none;
  text-transform: none;
  letter-spacing: 0;
}

[data-theme="obsidian"] .contact-form input,
[data-theme="obsidian"] .contact-form select,
[data-theme="obsidian"] .contact-form textarea {
  border-color: rgba(17, 16, 13, 0.16);
  background: rgba(17, 16, 13, 0.06);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: currentColor;
  opacity: 0.45;
}

.contact-form select option {
  color: #17130f;
}

.contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-form .btn {
  justify-self: start;
  background: var(--bg);
  color: var(--text);
}

[data-theme="obsidian"] .contact-form .btn {
  background: #11100d;
  color: #f2dfbd;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.contact-form .is-invalid {
  border-color: #ffb4a8;
  box-shadow: 0 0 0 3px rgba(255, 180, 168, 0.16);
}

.map-panel {
  max-width: var(--max);
  height: 420px;
  margin: 22px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--soft-shadow);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(16px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.site-footer img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  background: #0f0e0d;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 900;
  color: var(--text);
  margin-right: 24px;
}

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1160px) {
  .desktop-nav {
    display: none;
  }

  .portfolio-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card-large {
    min-height: 460px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card-hero {
    grid-column: span 2;
  }

  .projects-top {
    grid-template-columns: 1fr;
  }

  .project-filters {
    justify-content: flex-start;
  }

  .project-mosaic {
    columns: 4 170px;
  }
}

@media (max-width: 860px) {
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .brand span {
    display: inline;
    font-size: 13px;
  }


  .hero {
    min-height: auto;
    padding: 96px 12px 100px;
    grid-template-rows: auto auto;
  }

  .hero-media {
    inset: 72px 12px 100px;
    border-radius: 0 0 28px 28px;
  }

  .hero-copy {
    padding: 64px 0 52px;
  }

  .hero-product-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    border-radius: 22px;
  }

  .hero-product-nav img {
    width: 56px;
    height: 42px;
    border-radius: 12px;
  }

  .comparison-grid,
  .feature-panel,
  .studio-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .intro-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: -60px;
    padding-bottom: 48px;
  }

  .intro-strip .stat-card {
    padding: 24px 22px;
    border-radius: 20px;
  }

  .intro-strip .stat-card.is-visible,
  .intro-strip .stat-card.is-visible:nth-child(1),
  .intro-strip .stat-card.is-visible:nth-child(2),
  .intro-strip .stat-card.is-visible:nth-child(3),
  .intro-strip .stat-card.is-visible:nth-child(4) {
    animation: none;
  }

  .intro-strip .stat-card:hover {
    transform: translateY(-5px) scale(1.02);
  }

  .feature-panel img {
    min-height: 360px;
  }

  .contact-shell {
    padding: 28px;
  }

  .projects-section {
    height: auto;
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 58px;
    gap: 12px;
  }

  .projects-top h2 {
    font-size: clamp(28px, 8vw, 44px);
  }

  .project-mosaic {
    columns: 3 150px;
    gap: 6px;
  }

  .project-tile,
  .project-tile.tile-wide,
  .project-tile.tile-tall,
  .project-tile.tile-large {
    grid-column: span 1;
    grid-row: span 1;
    border-radius: 14px;
  }

  .project-dialog[open] {
    grid-template-columns: 1fr;
  }

  .project-dialog-image {
    min-height: 300px;
    max-height: 46svh;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 66px;
    padding-inline: 12px;
  }


  h1 {
    font-size: clamp(44px, 15vw, 68px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-product-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-showcase,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card,
  .services-grid .service-card-hero {
    grid-column: auto;
    grid-row: auto;
    min-height: 300px;
  }

  .services-grid .service-card-content h3 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .intro-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: -40px;
    padding-bottom: 36px;
  }

  .intro-strip .stat-card {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .intro-strip .stat-card strong {
    font-size: 36px;
  }

  .work-card,
  .work-card-large {
    min-height: 320px;
    grid-column: auto;
    grid-row: auto;
  }

  .section {
    padding-block: 74px;
  }

  .section-heading h2,
  .studio-copy h2,
  .contact-copy h2 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .project-filter {
    flex: 0 0 auto;
  }

  .project-mosaic {
    columns: 2 130px;
    column-gap: 7px;
  }

  .project-tile,
  .project-tile.tile-wide,
  .project-tile.tile-tall,
  .project-tile.tile-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .project-tile span {
    left: 8px;
    right: 8px;
    bottom: 7px;
    font-size: 11px;
  }
}

/* --- Architectural Editorial Grid for Services Section --- */
.services-section {
  position: relative;
  overflow: hidden;
}

.services-watermark {
  position: absolute;
  top: 6%;
  right: -3%;
  font-family: var(--font-display);
  font-size: clamp(100px, 16vw, 220px);
  color: var(--line);
  opacity: 0.35;
  transform: rotate(-4deg);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: -0.04em;
}

/* ── Architectural Bento Grid ── */
.premium-moodboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 2px;
  position: relative;
  z-index: 2;
  margin: 48px auto 0;
  max-width: 1200px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--line);
}

/* ── Card Base ── */
.premium-moodboard-grid .service-card {
  position: relative;
  background: var(--bg);
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-content: stretch;
  overflow: hidden;
  transition: none;
  min-height: auto;
}

/* Kill inherited decorations */
.premium-moodboard-grid .service-card::before,
.premium-moodboard-grid .service-card::after {
  display: none;
}

/* ── Image Layer ── */
.premium-moodboard-grid .service-card > img {
  position: relative;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  z-index: 1;
  opacity: 1;
  filter: grayscale(20%) contrast(1.05);
  transform: none;
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-moodboard-grid .service-card:hover > img {
  filter: grayscale(0%) contrast(1.08);
  transform: scale(1.03);
  opacity: 1;
}

/* ── Text Content ── */
.premium-moodboard-grid .service-card-content {
  position: relative;
  padding: 24px 28px 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.premium-moodboard-grid .service-card-content span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.premium-moodboard-grid .service-card-content h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  margin: 10px 0 8px;
  line-height: 1.12;
  min-height: auto;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.premium-moodboard-grid .service-card-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: none;
  min-height: auto;
}

/* ── Details List (card 1) ── */
.service-details-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.service-details-list li {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-weight: 600;
}

.service-details-list li svg {
  color: var(--accent);
  flex: 0 0 auto;
}

/* ── Architectural Grid Placement ──
   Row 1: Hero card (8 cols) + Card 2 (4 cols)
   Row 2: Card 3 (4 cols) + Card 4 (4 cols) + Card 5 (4 cols)
   Row 3: Card 6 full width
   ── */
.premium-moodboard-grid .service-card:nth-child(1) {
  grid-column: 1 / 9;
  grid-row: 1;
  transform: none;
}

.premium-moodboard-grid .service-card:nth-child(1) > img {
  height: 320px;
}

.premium-moodboard-grid .service-card:nth-child(2) {
  grid-column: 9 / 13;
  grid-row: 1;
  transform: none;
}

.premium-moodboard-grid .service-card:nth-child(2) > img {
  height: 320px;
}

.premium-moodboard-grid .service-card:nth-child(3) {
  grid-column: 1 / 5;
  grid-row: 2;
  transform: none;
}

.premium-moodboard-grid .service-card:nth-child(4) {
  grid-column: 5 / 9;
  grid-row: 2;
  transform: none;
}

.premium-moodboard-grid .service-card:nth-child(5) {
  grid-column: 9 / 13;
  grid-row: 2;
  transform: none;
}

.premium-moodboard-grid .service-card:nth-child(6) {
  grid-column: 1 / 13;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  transform: none;
}

.premium-moodboard-grid .service-card:nth-child(6) > img {
  height: 100%;
  min-height: 260px;
}

.premium-moodboard-grid .service-card:nth-child(6) .service-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
}

.premium-moodboard-grid .service-card:nth-child(6) .service-card-content h3 {
  font-size: clamp(24px, 2.2vw, 32px);
}

/* ── Hover: Subtle architectural lift ── */
.premium-moodboard-grid .service-card:hover {
  box-shadow: none;
  z-index: 5;
  transform: none;
}

@media (max-width: 900px) {
  .premium-moodboard-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .premium-moodboard-grid .service-card {
    transform: none !important;
  }
  .premium-moodboard-grid .service-card:nth-child(even) {
    transform: rotate(1deg) !important;
  }
  .premium-moodboard-grid .service-card:nth-child(odd) {
    transform: rotate(-1deg) !important;
  }
  .premium-moodboard-grid .service-card:hover {
    transform: translateY(-4px) scale(1.02) rotate(0deg) !important;
  }
  .services-watermark {
    font-size: 100px;
    top: 5%;
  }
}


/* ================================================================
   === MOBILE STYLES ===
   Comprehensive responsive overrides for mobile devices.
   Tested at 375px (iPhone SE) and 390px (iPhone 14).
   ================================================================ */

@media (max-width: 768px) {

  /* ── Header & Navigation ── */
  /* Reduce header height and padding for compact mobile bar */
  .site-header {
    height: 62px;
    padding-inline: 14px;
    gap: 10px;
  }

  /* Show brand text on mobile, scaled down to fit */
  .brand span {
    display: inline;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  /* Ensure theme toggle is large enough for touch (44x44 min) */
  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  /* Hide desktop CTA, show hamburger */
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  /* Mobile nav: full-width with better spacing */
  .mobile-nav {
    inset: 62px 8px auto;
    padding: 16px;
    gap: 8px;
    border-radius: 20px;
  }

  .mobile-nav a {
    padding: 16px 18px;
    min-height: 48px;
    font-size: 15px;
    display: flex;
    align-items: center;
  }

  /* Reduce scroll-margin for shorter header */
  section {
    scroll-margin-top: 72px;
  }


  /* ── Hero Section ── */
  .hero {
    min-height: auto;
    padding: 80px 16px 72px;
    grid-template-rows: auto auto;
  }

  .hero-media {
    inset: 62px 0 72px;
    border-radius: 0 0 24px 24px;
  }

  .hero-copy {
    padding: 52px 0 36px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 56px);
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Full-width buttons stacked vertically */
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
  }

  /* Product nav: 2 columns on mobile */
  .hero-product-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    padding: 6px;
    border-radius: 18px;
  }

  .hero-product-nav a {
    padding: 10px 6px 8px;
    font-size: 12px;
    border-radius: 14px;
  }

  .hero-product-nav img {
    width: 52px;
    height: 38px;
    border-radius: 10px;
  }


  /* ── Stats Strip ── */
  .intro-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: -48px;
    padding: 0 14px 40px;
  }

  .intro-strip .stat-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  /* Disable float animations on mobile for performance */
  .intro-strip .stat-card.is-visible,
  .intro-strip .stat-card.is-visible:nth-child(1),
  .intro-strip .stat-card.is-visible:nth-child(2),
  .intro-strip .stat-card.is-visible:nth-child(3),
  .intro-strip .stat-card.is-visible:nth-child(4) {
    animation: none;
  }

  .intro-strip .stat-card strong {
    font-size: clamp(32px, 10vw, 44px);
  }

  .intro-strip .stat-card span {
    font-size: 12px;
    margin-top: 8px;
  }


  /* ── Section Typography & Spacing ── */
  .section {
    padding: 56px 16px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .section-intro {
    font-size: 15px;
    margin-top: 14px;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 12px;
  }


  /* ── Portfolio Showcase ── */
  .portfolio-showcase {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-card,
  .work-card-large {
    min-height: 260px;
    grid-column: auto;
    grid-row: auto;
  }

  .work-card div {
    padding: 20px;
  }

  .work-card h3 {
    font-size: clamp(18px, 5vw, 24px);
    min-height: auto;
  }


  /* ── Projects Section ── */
  .projects-section {
    padding: 36px 14px 52px;
    gap: 16px;
  }

  .projects-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-top h2 {
    font-size: clamp(26px, 8vw, 38px);
  }

  /* Horizontal scroll for filter pills */
  .project-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 6px;
  }

  .project-filter {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
  }

  .project-mosaic {
    columns: 2 140px;
    column-gap: 8px;
  }

  .project-tile {
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .project-tile span {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
  }

  /* Project dialog: single column on mobile */
  .project-dialog {
    width: calc(100vw - 20px);
    border-radius: 20px;
  }

  .project-dialog[open] {
    grid-template-columns: 1fr;
  }

  .project-dialog-image {
    min-height: 240px;
    max-height: 40svh;
  }

  .project-dialog-copy {
    padding: 24px 20px;
  }

  .project-dialog-copy h2 {
    font-size: clamp(26px, 8vw, 38px);
  }

  .project-dialog-copy p:not(.eyebrow) {
    font-size: 15px;
    margin-top: 14px;
  }


  /* ── Signature Section ── */
  .signature-section.section {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
    overflow: hidden;
  }

  .signature-section .section-heading h2 {
    font-size: clamp(24px, 7vw, 38px);
  }

  /* Feature panel: stack image over text */
  .feature-panel {
    grid-template-columns: 1fr;
    border-radius: 24px;
    max-width: 100%;
    overflow: hidden;
  }

  .feature-panel img {
    min-height: 240px;
    max-height: 50vw;
    border-radius: 24px 24px 0 0;
  }

  .feature-copy {
    padding: 24px 20px;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .feature-copy h3 {
    font-size: clamp(20px, 5.5vw, 26px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .feature-copy p:not(.eyebrow) {
    font-size: 13px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Material row: scrollable horizontally */
  .material-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 6px;
  }

  .material-row button {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }

  .material-detail {
    font-size: 13px;
    min-height: 40px;
  }

  /* Comparison cards: single column */
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .comparison-card h3 {
    font-size: clamp(22px, 6vw, 30px);
  }


  /* ── Services Section (Bento Grid + Moodboard) ── */
  .services-section .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-section .section-heading h2 {
    font-size: clamp(26px, 8vw, 40px);
  }

  .services-section .section-intro {
    font-size: 14px;
    max-width: 100%;
  }

  /* Collapse bento grid to single column */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .services-grid .service-card,
  .services-grid .service-card-hero {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }

  .services-grid .service-card-content h3 {
    font-size: clamp(22px, 6vw, 30px);
    min-height: auto;
  }

  .services-grid .service-card-content p {
    font-size: 13px;
    min-height: auto;
  }

  /* Architectural Grid: Single column stack on mobile */
  .premium-moodboard-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    margin-top: 32px;
    border-radius: 4px;
  }

  .premium-moodboard-grid .service-card {
    border-bottom: 1px solid var(--line);
    padding: 0;
  }

  .premium-moodboard-grid .service-card:last-child {
    border-bottom: none;
  }

  .premium-moodboard-grid .service-card > img {
    height: 220px;
  }

  .premium-moodboard-grid .service-card:nth-child(6) .service-card-content {
    padding: 24px 20px;
  }

  .premium-moodboard-grid .service-card-content {
    padding: 24px 20px;
  }

  .premium-moodboard-grid .service-card-content h3 {
    font-size: clamp(20px, 6vw, 24px);
  }

  .premium-moodboard-grid .service-card-content p {
    font-size: 13px;
  }

  .services-watermark {
    font-size: 80px;
    top: 3%;
  }


  /* ── Process Section ── */
  /* Horizontal scroll for process cards */
  .process-track {
    grid-template-columns: repeat(5, 260px);
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
  }

  .process-step {
    min-height: 280px;
    scroll-snap-align: start;
    padding: 24px 20px;
  }

  .process-step h3 {
    font-size: clamp(20px, 6vw, 28px);
  }

  .process-step p {
    font-size: 14px;
  }


  /* ── Studio Section ── */
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .studio-portrait {
    border-radius: 24px;
  }

  .studio-portrait img {
    aspect-ratio: 16 / 10;
  }

  .studio-copy h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .studio-copy p {
    font-size: 16px;
  }

  .credential-grid {
    gap: 6px;
    margin-top: 16px;
  }


  /* ── Contact Section ── */
  .contact-section {
    padding-top: 24px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .contact-copy h2 {
    font-size: clamp(26px, 8vw, 38px);
    margin-bottom: 14px;
  }

  .contact-copy p {
    font-size: 15px;
  }

  .contact-list {
    margin-top: 18px;
    gap: 8px;
  }

  .contact-list a,
  .contact-list address {
    font-size: 14px;
    /* Ensure touch-friendly tap areas */
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Form inputs: larger touch targets */
  .contact-form {
    gap: 12px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    padding: 16px;
    min-height: 50px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    border-radius: 14px;
  }

  .contact-form textarea {
    min-height: 100px;
  }

  .contact-form .btn {
    width: 100%;
    min-height: 52px;
    justify-self: stretch;
    font-size: 15px;
  }

  /* Map panel */
  .map-panel {
    height: 280px;
    margin-top: 16px;
    border-radius: 20px;
  }


  /* ── Footer ── */
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 16px;
  }

  .site-footer p {
    font-size: 14px;
  }

  .site-footer a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }


  /* ── Reveal animations: faster on mobile ── */
  .reveal {
    transform: translateY(20px);
    transition-duration: 600ms;
  }
}


/* ================================================================
   === EXTRA-SMALL SCREENS (iPhone SE / 375px and below) ===
   ================================================================ */

@media (max-width: 380px) {

  /* Even tighter header */
  .site-header {
    height: 58px;
    padding-inline: 10px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .mobile-nav {
    inset: 58px 6px auto;
  }

  /* Tighter hero */
  .hero {
    padding: 72px 12px 56px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hero-lede {
    font-size: 15px;
  }

  /* Smaller stat cards */
  .intro-strip {
    gap: 8px;
    margin-top: -36px;
    padding: 0 10px 32px;
  }

  .intro-strip .stat-card {
    padding: 18px 14px;
  }

  .intro-strip .stat-card strong {
    font-size: 30px;
  }

  .intro-strip .stat-card span {
    font-size: 11px;
  }

  /* Tighter sections */
  .section {
    padding: 44px 12px;
  }

  .section-heading h2 {
    font-size: clamp(24px, 8vw, 36px);
  }

  /* Work cards shorter */
  .work-card,
  .work-card-large {
    min-height: 220px;
  }

  /* Project mosaic single column */
  .project-mosaic {
    columns: 1;
  }

  /* Services moodboard images shorter */
  .premium-moodboard-grid .service-card > img {
    height: 150px;
  }

  /* Process cards narrower */
  .process-track {
    grid-template-columns: repeat(5, 240px);
  }

  .process-step {
    min-height: 260px;
    padding: 20px 16px;
  }

  /* Contact */
  .contact-shell {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .contact-copy h2 {
    font-size: clamp(24px, 8vw, 32px);
  }

  .map-panel {
    height: 220px;
    border-radius: 16px;
  }
}
