/* ==========================================================================
   Sheth Architects — Design System
   ========================================================================== */

:root {
  /* Colour */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f4f1;
  --color-bg-dark: #14120f;
  --color-ink: #14120f;
  --color-ink-soft: #55524c;
  --color-ink-faint: #8a867d;
  --color-line: #e7e3dc;
  --color-line-dark: #2a2721;
  --color-accent: #a8492f;
  --color-accent-dark: #832f1a;
  --color-accent-soft: #f3e3dc;
  --color-white: #ffffff;

  /* Type */
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  margin-top: 0.6rem;
  max-width: 24ch;
}
.section-head p { color: var(--color-ink-soft); max-width: 42ch; }

section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: var(--color-white); }
.section-dark .eyebrow { color: #d99b83; }
.section-dark .eyebrow::before { background: #d99b83; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--color-ink); color: var(--color-white); }
.btn:hover svg { transform: translateX(4px); }

.btn-solid {
  background: var(--color-ink);
  color: var(--color-white);
}
.btn-solid:hover { background: var(--color-accent); border-color: var(--color-accent); }

.btn-accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-accent:hover { background: var(--color-accent); color: var(--color-white); }

.btn-light {
  border-color: rgba(255,255,255,0.5);
  color: var(--color-white);
}
.btn-light:hover { background: var(--color-white); color: var(--color-ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.text-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }
[data-parallax] { will-change: transform; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ---------- Placeholder image block ---------- */
.ph-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #efe9e2 0%, #e3d9cc 45%, #d8c3ae 100%);
  isolation: isolate;
}
.ph-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, transparent 40%, rgba(20,18,15,0.06) 50%, transparent 60%);
  background-size: 220% 220%;
}
.ph-img .ph-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(20,18,15,0.4);
}
.ph-img .ph-inner svg { width: 15%; max-width: 46px; opacity: 0.55; }
.ph-img .ph-inner span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.ph-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ph-img.ratio-16-9 { aspect-ratio: 16/9; }
.ph-img.ratio-4-3 { aspect-ratio: 4/3; }
.ph-img.ratio-3-4 { aspect-ratio: 3/4; }
.ph-img.ratio-4-5 { aspect-ratio: 4/5; }
.ph-img.ratio-1-1 { aspect-ratio: 1/1; }
.ph-img.ratio-3-2 { aspect-ratio: 3/2; }
.ph-img.ratio-21-9 { aspect-ratio: 21/9; }
.ph-img.dark { background: linear-gradient(135deg, #2a2721 0%, #1c1a16 60%, #14120f 100%); }
.ph-img.dark .ph-inner { color: rgba(255,255,255,0.35); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.5rem;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header.is-scrolled {
  padding-block: 0.9rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-line);
}
.site-header.on-light { background: var(--color-white); border-bottom-color: var(--color-line); }

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}
.site-header.is-hero-dark:not(.is-scrolled) .brand-mark,
.site-header.is-hero-dark:not(.is-scrolled) .brand-sub { color: var(--color-white); }
.brand-sub {
  margin-top: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}

.main-nav { display: flex; align-items: center; gap: 2.4rem; }
.main-nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-block: 0.3rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--color-accent); }

.site-header.is-hero-dark:not(.is-scrolled) .main-nav a { color: var(--color-white); }

.header-cta { display: flex; align-items: center; gap: 1.5rem; }
.header-cta .btn { padding: 0.75rem 1.35rem; font-size: 0.75rem; }
.site-header.is-hero-dark:not(.is-scrolled) .header-cta .btn { border-color: rgba(255,255,255,0.6); color: var(--color-white); }
.site-header.is-hero-dark:not(.is-scrolled) .header-cta .btn:hover { background: var(--color-white); color: var(--color-ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header.is-hero-dark:not(.is-scrolled) .nav-toggle span { background: var(--color-white); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-ink);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  padding-block: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav .mobile-nav-foot {
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
  color: var(--color-white);
  overflow: hidden;
  background: var(--color-bg-dark);
  isolation: isolate;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,13,10,0.55) 0%, rgba(15,13,10,0.4) 35%, rgba(12,10,8,0.88) 100%);
  z-index: 1;
  pointer-events: none;
}
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-content {
  position: absolute;
  top: 48%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding-block: 3rem 4rem;
  max-width: 550px;
  width: auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.hero-content .eyebrow {
  color: #f0c3b0;
  display: inline-flex;
  justify-content: center;
}
.hero-content .eyebrow::before { background: #f0c3b0; }
.hero-content h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.15;
  margin-top: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-content h1 em {
  font-style: italic;
  color: #f0c3b0;
}
.hero-content p {
  margin-top: 1.6rem;
  margin-left: 19rem;
  max-width: 56ch;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  text-align: center;
}
.hero-actions {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 2;
}
.hero-scroll .line {
  width: 1px;
  height: 46px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollline 2.2s ease-in-out infinite;
}
@keyframes scrollline {
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- What We Do ---------- */
.what-we-do {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.wwd-ghost-num {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(1rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(14rem, 32vw, 26rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-line);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.wwd-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.wwd-copy h2 {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: clamp(1.2rem, 2.5vw, 1.6rem);
  max-width: 16ch;
}
.wwd-copy h2 em { font-style: italic; color: var(--color-accent); }
.wwd-copy > p { font-size: 1.15rem; line-height: 1.7; color: var(--color-ink-soft); max-width: 48ch; }

.wwd-stats {
  display: flex;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  padding-top: clamp(1.4rem, 3vw, 1.8rem);
  border-top: 1px solid var(--color-line);
}
.wwd-stats div { transition: transform 0.35s var(--ease); cursor: default; }
.wwd-stats div:hover { transform: translateY(-3px); }
.wwd-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-accent);
  transition: color 0.3s var(--ease);
}
.wwd-stats div:hover strong { color: var(--color-ink); }
.wwd-stats span { font-size: 0.82rem; color: var(--color-ink-soft); }

.wwd-capabilities {
  background: transparent;
  padding-top: clamp(3.5rem, 5vw, 4.2rem);
}
.wwd-cap-label { font-size: 1.05rem; line-height: 1.6; color: var(--color-ink-soft); margin-bottom: 1.4rem; }
.wwd-cap-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wwd-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-bg);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.wwd-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  transition: background 0.3s var(--ease);
}
.wwd-capabilities.is-visible .wwd-tag { opacity: 1; transform: translateY(0); }
.wwd-cap-tags .wwd-tag:nth-child(1) { transition-delay: 0.05s; }
.wwd-cap-tags .wwd-tag:nth-child(2) { transition-delay: 0.1s; }
.wwd-cap-tags .wwd-tag:nth-child(3) { transition-delay: 0.15s; }
.wwd-cap-tags .wwd-tag:nth-child(4) { transition-delay: 0.2s; }
.wwd-cap-tags .wwd-tag:nth-child(5) { transition-delay: 0.25s; }
.wwd-cap-tags .wwd-tag:nth-child(6) { transition-delay: 0.3s; }
.wwd-cap-tags .wwd-tag:nth-child(7) { transition-delay: 0.35s; }
.wwd-cap-tags .wwd-tag:nth-child(8) { transition-delay: 0.4s; }
.wwd-tag:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); transition-delay: 0s; }
.wwd-tag:hover::before { background: var(--color-white); }
.wwd-cap-footnote { margin-top: 1.4rem; font-size: 0.95rem; color: var(--color-ink-faint); line-height: 1.5; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding-top: clamp(4rem, 10vw, 6rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
}
.page-header .crumbs { font-size: 0.78rem; color: var(--color-ink-faint); margin-bottom: 1rem; }
.page-header .crumbs a:hover { color: var(--color-accent); }
.page-header h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); max-width: 18ch; }
.page-header p { margin-top: 1.2rem; max-width: 56ch; color: var(--color-ink-soft); font-size: 1.05rem; }

/* ---------- Marquee ---------- */
.marquee-strip {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding-block: 1.4rem;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-ink-faint);
  padding-inline: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}
.marquee-track span::after { content: "—"; font-style: normal; color: var(--color-accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto / split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-copy .stat-callout {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-line);
  display: flex;
  gap: 2.5rem;
}
.stat-callout div strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--color-accent); }
.stat-callout div span { font-size: 0.78rem; color: var(--color-ink-soft); }

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.28;
  max-width: 20ch;
}
.manifesto-quote em { color: var(--color-accent); font-style: italic; }

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-line-dark);
}
.stat-item {
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
  border-right: 1px solid var(--color-line-dark);
}
.stat-item:last-child { border-right: none; }
.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--color-white);
}
.stat-item strong .suffix { color: var(--color-accent); }
.stat-item span { font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); }

/* ---------- Project cards / grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.project-card { display: block; }
.project-card .ph-img { transition: transform 0.6s var(--ease); }
.project-card figure {
  overflow: hidden;
  margin: 0;
  position: relative;
}
.project-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
  transform: scale(0.92);
}
.project-card:hover figure img {
  transform: scale(0.98);
}
.project-card:hover .ph-img { transform: scale(1.06); }
.project-card .card-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}
.project-card h3 {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.project-card h3 svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0; transform: translate(-6px,6px); transition: all 0.35s var(--ease); }
.project-card:hover h3 svg { opacity: 1; transform: translate(0,0); }
.project-card .card-loc { margin-top: 0.3rem; font-size: 0.85rem; color: var(--color-ink-soft); }

.project-grid.featured { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
.project-grid.featured .project-card:first-child { grid-column: span 2; grid-row: span 2; }
.project-grid.featured .project-card:first-child .ph-img { aspect-ratio: 4/5 !important; }

/* ---------- Projects horizontal strip ---------- */
.projects-strip { padding-block: clamp(4rem, 9vw, 7.5rem); }
.projects-strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.projects-strip-actions { display: flex; align-items: center; gap: 1.5rem; }
.scroll-arrows { display: flex; gap: 0.6rem; }
.scroll-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink);
  transition: all 0.3s var(--ease);
}
.scroll-arrow svg { width: 18px; height: 18px; }
.scroll-arrow:hover { background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); }
.scroll-arrow:disabled { opacity: 0.35; pointer-events: none; }
.projects-strip-body {
  position: relative;
  isolation: isolate;
  padding-top: clamp(1rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.projects-bg-word {
  position: absolute;
  top: clamp(-7rem, -9.5vw, -4.5rem);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-ink);
  opacity: 0.9;
  white-space: nowrap;
  pointer-events: none;
}

.projects-strip-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.projects-strip-viewport::-webkit-scrollbar { display: none; }

.projects-strip-track {
  display: flex;
  gap: 1.5rem;
  scroll-snap-type: x proximity;
  cursor: grab;
  padding-bottom: 0.75rem;
}
.projects-strip-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.strip-card {
  position: relative;
  flex: 0 0 clamp(320px, 36vw, 480px);
  height: clamp(420px, 44vw, 580px);
  scroll-snap-align: start;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-bg-dark);
  box-shadow: 0 30px 60px -30px rgba(20,18,15,0.4);
  transition: box-shadow 0.4s var(--ease);
}
.strip-card:hover { box-shadow: 0 36px 70px -26px rgba(20,18,15,0.5); }
.strip-card:nth-child(even) { margin-top: clamp(2.5rem, 6vw, 4rem); }
.strip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10,9,7,0.92) 0%, rgba(10,9,7,0.45) 42%, rgba(10,9,7,0.05) 72%);
  pointer-events: none;
}
.strip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.14);
  pointer-events: none;
}

.proj-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.strip-card:hover .proj-img img { transform: scale(1.06); }
.strip-card h3 {
  position: absolute;
  z-index: 2;
  left: clamp(1.3rem, 3vw, 1.9rem);
  right: clamp(1.3rem, 3vw, 1.9rem);
  bottom: clamp(1.3rem, 3vw, 1.9rem);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.25;
  color: var(--color-white);
}

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--color-line);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  transition: all 0.3s var(--ease);
  border-radius: 999px;
}
.filter-btn:hover { border-color: var(--color-ink); color: var(--color-ink); }
.filter-btn.active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-white); }
.project-card[hidden] { display: none; }

/* ---------- Expertise (expanding panels) ---------- */
.expertise-panels-section { padding-block: clamp(4rem, 9vw, 7.5rem) 0; }
.expertise-panels-section .section-head { margin-bottom: clamp(2rem, 6vw, 3.5rem); }

.panels-row {
  display: flex;
  height: clamp(380px, 46vw, 480px);
}
.expertise-panel {
  position: relative;
  flex: 1 1 0%;
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 0.6s var(--ease);
}
.expertise-panel.is-active,
.expertise-panel:hover { flex-grow: 2.4; }

.expertise-panel:nth-child(1) { background: var(--color-bg-dark); --panel-tint: 15, 9, 6; }
.expertise-panel:nth-child(2) { background: var(--color-bg-dark); --panel-tint: 10, 9, 7; }
.expertise-panel:nth-child(3) { background: var(--color-ink); --panel-tint: 12, 11, 9; }
.expertise-panel:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.08); }

.panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  filter: brightness(0.78) contrast(1.15) saturate(1.05);
  animation: panelCrossfade 12s ease-in-out infinite;
  transition: transform 1.2s var(--ease);
}
.panel-bg:nth-of-type(1) { animation-delay: 0s; }
.panel-bg:nth-of-type(2) { animation-delay: 4s; }
.panel-bg:nth-of-type(3) { animation-delay: 8s; }
@keyframes panelCrossfade {
  0% { opacity: 0; }
  4% { opacity: 0.9; }
  29% { opacity: 0.9; }
  37% { opacity: 0; }
  100% { opacity: 0; }
}
.expertise-panel.is-active .panel-bg,
.expertise-panel:hover .panel-bg { transform: scale(1.04); }
.expertise-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
  background: linear-gradient(to top, rgba(var(--panel-tint, 20, 18, 15), 0.9) 0%, rgba(var(--panel-tint, 20, 18, 15), 0.5) 45%, rgba(var(--panel-tint, 20, 18, 15), 0.22) 100%);
}
.expertise-panel.is-active::before,
.expertise-panel:hover::before { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) {
  .panel-bg { animation: none; opacity: 0.55; }
  .panel-bg:not(:first-of-type) { display: none; }
}
.panel-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
}

.panel-num {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  left: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  opacity: 0.75;
}
.panel-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.expertise-panel:nth-child(1) .panel-tag,
.expertise-panel:nth-child(2) .panel-tag,
.expertise-panel:nth-child(3) .panel-tag { color: #f0c3b0; }
.panel-inner h3 {
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.5s var(--ease);
}
.panel-inner p {
  margin-top: 0.9rem;
  max-width: 34ch;
  font-size: 0.98rem;
  line-height: 1.55;
  letter-spacing: 0.005em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease) 0.1s, transform 0.4s var(--ease) 0.1s;
}
.expertise-panel:nth-child(1) .panel-inner p,
.expertise-panel:nth-child(2) .panel-inner p,
.expertise-panel:nth-child(3) .panel-inner p { color: rgba(255,255,255,0.85); }
.expertise-panel.is-active .panel-inner p,
.expertise-panel:hover .panel-inner p { opacity: 1; transform: translateY(0); }

/* Detailed service section (services.html) */
.service-detail { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--color-line); }
.service-detail:last-of-type { border-bottom: none; }
.service-detail.reverse .split-media { order: 2; }
.service-detail .num-lg { font-family: var(--font-display); font-size: 3.5rem; color: var(--color-accent-soft); -webkit-text-stroke: 1.5px var(--color-accent); color: transparent; line-height: 1; }
.service-detail ul { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.service-detail ul li { display: flex; gap: 0.7rem; font-size: 0.95rem; color: var(--color-ink-soft); }
.service-detail ul li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--color-accent); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process-step { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--color-ink); }
.process-step .num { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-accent); }
.process-step h3 { margin-top: 0.8rem; font-size: 1.2rem; }
.process-step p { margin-top: 0.6rem; font-size: 0.9rem; color: var(--color-ink-soft); }

/* ---------- Testimonials ---------- */
.testimonial-wrap { max-width: 780px; margin-inline: auto; text-align: center; position: relative; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: fadein 0.7s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }
.testimonial-slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  margin: 0;
}
.testimonial-slide cite { display: block; margin-top: 1.6rem; font-style: normal; font-size: 0.9rem; color: var(--color-ink-soft); }
.testimonial-dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2.2rem; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--color-line); padding: 0; }
.testimonial-dots button.active { background: var(--color-accent); width: 22px; border-radius: 4px; transition: all 0.3s var(--ease); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-ink);
  color: var(--color-white);
  text-align: center;
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; margin-inline: auto; }
.cta-band p { margin-top: 1rem; color: rgba(255,255,255,0.7); }
.cta-band .btn { margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-bg-dark); color: rgba(255,255,255,0.75); padding-top: clamp(4rem, 8vw, 6rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 4rem; border-bottom: 1px solid var(--color-line-dark); }
.footer-brand .brand-mark { color: var(--color-white); font-size: 1.5rem; }
.footer-brand p { margin-top: 1.2rem; max-width: 32ch; font-size: 0.9rem; color: rgba(255,255,255,0.55); }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.9); margin-bottom: 1.2rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col address { font-size: 0.9rem; font-style: normal; color: rgba(255,255,255,0.6); transition: color 0.3s; }
.footer-col a:hover { color: var(--color-white); }
.footer-col address { display: block; line-height: 1.6; margin-bottom: 1rem; }
.social-row { display: flex; gap: 0.9rem; margin-top: 1.6rem; }
.social-row a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-line-dark);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}
.social-row a:hover { background: var(--color-accent); border-color: var(--color-accent); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom .legal-links { display: flex; gap: 1.5rem; }

.back-to-top {
  position: fixed;
  right: 1.8rem;
  bottom: 1.8rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s var(--ease);
  z-index: 60;
  border: none;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- About page specifics ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-card { padding: 2rem; border: 1px solid var(--color-line); }
.value-card .num { font-family: var(--font-display); color: var(--color-accent); font-size: 1.1rem; }
.value-card h3 { margin-top: 1rem; font-size: 1.2rem; }
.value-card p { margin-top: 0.7rem; font-size: 0.9rem; color: var(--color-ink-soft); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.team-card h3 { margin-top: 1.1rem; font-size: 1.05rem; }
.team-card span { display: block; margin-top: 0.2rem; font-size: 0.82rem; color: var(--color-ink-soft); }

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding-block: 1.8rem;
  border-top: 1px solid var(--color-line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--color-line); }
.timeline-item .year { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-accent); }
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.92rem; color: var(--color-ink-soft); max-width: 60ch; }

.awards-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.awards-strip div { text-align: center; }
.awards-strip strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.awards-strip span { font-size: 0.78rem; color: var(--color-ink-soft); }

/* ---------- Project detail page ---------- */
.pd-hero { position: relative; height: 80vh; min-height: 480px; }
.pd-hero .ph-img {
  position: absolute;
  inset: 0;
}
.pd-hero .ph-img img {
  object-fit: contain;
  object-position: center;
  transform: scale(1);
}
.pd-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 3rem;
}
.pd-meta div span { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ink-faint); margin-bottom: 0.4rem; }
.pd-meta div strong { font-weight: 500; font-size: 1rem; }
.pd-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 4rem); }
.pd-body .pd-nav { position: sticky; top: 7rem; align-self: start; }
.pd-body .pd-nav a { display: block; padding-block: 0.5rem; font-size: 0.9rem; color: var(--color-ink-soft); border-left: 2px solid var(--color-line); padding-left: 1rem; }
.pd-body .pd-nav a.active { color: var(--color-ink); border-color: var(--color-accent); font-weight: 600; }
.pd-content h2 { font-size: 1.6rem; margin-top: 3rem; margin-bottom: 1rem; }
.pd-content h2:first-child { margin-top: 0; }
.pd-content p { color: var(--color-ink-soft); margin-bottom: 1rem; max-width: 68ch; }
.pd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-block: 2rem; }
.pd-gallery button { border: none; background: none; padding: 0; cursor: zoom-in; }
.pd-gallery .ph-img { transition: opacity 0.3s; }
.pd-gallery button:hover .ph-img { opacity: 0.85; }

.next-project { display: flex; align-items: center; justify-content: space-between; padding-block: 3rem; border-top: 1px solid var(--color-line); }
.next-project span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ink-faint); }
.next-project h3 { margin-top: 0.5rem; font-size: 1.6rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,9,7,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease);
  padding: 3rem;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox .ph-img { width: 100%; max-width: 900px; }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; background: none; color: #fff; display: flex; align-items: center; justify-content: center; }
.lightbox-close svg { width: 18px; height: 18px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(2rem, 6vw, 5rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.form-field label { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  border: none;
  border-bottom: 1px solid var(--color-line);
  padding-block: 0.7rem;
  background: transparent;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 1rem; font-size: 0.82rem; color: var(--color-ink-faint); }
.form-success {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--color-accent-soft);
  border-left: 3px solid var(--color-accent);
  font-size: 0.9rem;
}
.form-success.is-visible { display: block; }

.office-card { padding: 1.8rem; border: 1px solid var(--color-line); margin-bottom: 1.2rem; }
.office-card h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.office-card p { font-size: 0.9rem; color: var(--color-ink-soft); margin-bottom: 0.3rem; }
.office-card a { color: var(--color-accent); font-weight: 600; }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  pointer-events: none;
  z-index: 300;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
}
.cursor-dot.is-hovering { width: 46px; height: 46px; background: rgba(255,255,255,0.9); }

/* ==========================================================================
   Global Responsive Fixes — Prevent Overlapping & Ensure Flexibility
   ========================================================================== */

/* Ensure no content overflow */
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Fix container overflow */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix text overflow */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

p {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Fix SVG sizing */
svg {
  max-width: 100%;
  height: auto;
}

/* Ensure flex items don't overflow */
.hero-actions,
.wwd-stats,
.filter-bar,
.social-row,
.testimonial-dots {
  flex-wrap: wrap;
  gap: clamp(0.8rem, 2vw, 1.2rem);
}

/* Fix absolute positioned elements */
[style*="position: absolute"],
[style*="position:absolute"] {
  max-width: 100%;
  overflow: hidden;
}

/* Ensure buttons are clickable */
button, .btn {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

/* Fix video and media elements */
video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure proper spacing for touch targets */
@media (pointer: coarse) {
  button, .btn, a, [role="button"] {
    min-height: 48px;
    min-width: 48px;
    padding: max(0.5rem, (48px - 1em) / 2);
  }
}

/* Fix table responsiveness */
table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

/* Ensure proper z-index stacking */
.site-header { z-index: 100; }
.mobile-nav { z-index: 99; }
.nav-toggle { z-index: 101; }
.back-to-top { z-index: 60; }

/* Fix common overlapping issues */
.hero::before,
.expertise-panel::before,
.service-card::before {
  pointer-events: none;
}

/* Ensure content doesn't overlap fixed headers */
body {
  padding-top: 0;
  scroll-padding-top: 60px;
}

/* ==========================================================================
   Responsive — Comprehensive Breakpoints for All Devices
   ========================================================================== */

/* ---------- MOBILE — Extra Small (320px - 480px) ---------- */
@media (max-width: 480px) {
  :root {
    --gutter: clamp(1rem, 3vw, 1.5rem);
    --container-w: 100%;
  }

  /* Fix overlapping elements */
  * { max-width: 100%; }
  html, body { overflow-x: hidden; }
  body { margin: 0; padding: 0; }

  .container { padding-inline: 1rem !important; margin-inline: auto; }

  /* Header fixes */
  .site-header { padding-block: 1rem; }
  .site-header .container { gap: 0.8rem; }
  .brand-mark { font-size: 1.1rem; }
  .brand-sub { font-size: 0.5rem; display: none; }
  .main-nav { display: none; }
  .nav-toggle { width: 26px; gap: 4px; display: flex; }
  .header-cta { gap: 0.8rem; width: 100%; justify-content: flex-end; }
  .header-cta .btn { padding: 0.6rem 0.9rem; font-size: 0.65rem; white-space: nowrap; }

  section { padding-block: clamp(2.5rem, 6vw, 3.5rem); overflow: hidden; }

  /* Typography fixes */
  h1 { font-size: clamp(1.6rem, 4vw, 2.2rem) !important; word-break: break-word; }
  h2 { font-size: clamp(1.4rem, 3.5vw, 2rem) !important; word-break: break-word; }
  h3 { font-size: clamp(1.1rem, 3vw, 1.5rem) !important; word-break: break-word; }
  p { font-size: clamp(0.85rem, 2vw, 1rem); line-height: 1.6; }

  /* Hero section fixes */
  .hero { min-height: 80vh; }
  .hero-content {
    position: absolute !important;
    top: 48% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    padding-block: 2rem 3rem;
    max-width: 100%;
    padding-inline: 1rem;
    text-align: center;
  }
  .hero-content .eyebrow { font-size: 0.65rem; }
  .hero-content h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin-top: 0.8rem; }
  .hero-content p { font-size: clamp(0.85rem, 2vw, 0.95rem); max-width: 100%; margin-top: 1rem; }
  .hero-actions { flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; width: 100%; align-items: center; }
  .btn { padding: 0.8rem 1.4rem; font-size: 0.75rem; width: 100%; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
  .hero-scroll { display: none; }

  /* What we do section */
  .what-we-do { min-height: auto; padding-block: clamp(2.5rem, 6vw, 3.5rem); }
  .wwd-inner { grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2rem); }
  .wwd-copy { overflow: hidden; }
  .wwd-copy h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin-bottom: 1rem; }
  .wwd-copy > p { font-size: 0.95rem; }
  .wwd-stats { flex-direction: column; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; }
  .wwd-stats div { padding: 0; }
  .wwd-stats strong { font-size: 1.3rem; }
  .wwd-stats span { font-size: 0.75rem; }
  .wwd-tag { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
  .wwd-ghost-num { display: none; }
  .wwd-capabilities { padding-top: 1.5rem; }

  /* Marquee fixes */
  .marquee-strip { padding-block: 1rem; }
  .marquee-track span { font-size: clamp(0.9rem, 2.5vw, 1.1rem); padding-inline: 0.8rem; }

  /* Projects grid fixes */
  .projects-modern { overflow-x: hidden; }
  .projects-header { flex-direction: column; gap: 1rem; }
  .project-grid, .project-grid.featured { grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
  .project-card { overflow: hidden; }
  .project-card .card-tag { margin-top: 0.8rem; font-size: 0.6rem; }
  .project-card h3 { font-size: clamp(1rem, 2.5vw, 1.3rem); flex-direction: column; }
  .project-card h3 svg { display: none; }
  .modern-project-card { flex: 0 0 calc(100vw - 2rem); height: auto; }
  .card-content { padding: 1.2rem; }
  .card-image { padding-bottom: 100%; min-height: 200px; }

  /* Process grid fixes */
  .process-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-step { padding: clamp(1.5rem, 3vw, 2rem); overflow: hidden; }
  .process-step .num { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
  .process-step h3 { font-size: clamp(1rem, 2.5vw, 1.3rem); margin-top: 0.8rem; }
  .process-step p { font-size: 0.85rem; margin-top: 0.6rem; }

  /* Expertise panels fixes */
  .expertise-panels-section { overflow: hidden; }
  .panels-row { flex-direction: column; height: auto; gap: 0; }
  .expertise-panel {
    flex: none;
    min-height: 140px;
    border-right: none !important;
    border-bottom: 1px solid rgba(20,18,15,0.08);
    position: relative;
  }
  .expertise-panel:last-child { border-bottom: none; }
  .expertise-panel .panel-bg { display: none; }
  .panel-num { position: relative; top: auto; left: auto; font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.5rem; }
  .panel-tag { font-size: 0.65rem; margin-bottom: 0.4rem; }
  .panel-inner {
    position: relative;
    inset: auto;
    padding: 1.2rem;
    justify-content: flex-start;
  }
  .panel-inner h3 { font-size: clamp(1rem, 2.5vw, 1.3rem); white-space: normal; margin-top: 0.5rem; }
  .panel-inner p { font-size: 0.85rem; margin-top: 0.6rem; opacity: 1 !important; transform: none !important; }

  /* Footer fixes */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { margin-bottom: 1rem; }
  .footer-brand .brand-mark { font-size: 1.1rem; }
  .footer-col h4 { font-size: clamp(0.85rem, 2.5vw, 1rem); margin-bottom: 1rem; }
  .footer-col a, .footer-col address { font-size: 0.85rem; }
  .social-row { gap: 0.7rem; }
  .social-row a { width: 32px; height: 32px; }
  .footer-bottom { flex-direction: column; gap: 1rem; font-size: 0.75rem; }

  /* Form fixes */
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  input, textarea, select { width: 100%; padding: 0.8rem; font-size: 1rem; }

  /* Stats bar fixes */
  .stats-bar { grid-template-columns: 1fr; gap: 0; }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--color-line-dark);
    padding: clamp(1.5rem, 3vw, 2rem) 1rem;
    text-align: left;
  }
  .stat-item:last-child { border-bottom: none; }
  .stat-item strong { font-size: clamp(1.4rem, 3.5vw, 2rem); }

  /* Project details page */
  .pd-gallery { grid-template-columns: 1fr; gap: 1rem; }
  .pd-meta { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.8rem; }

  /* Services */
  .services-grid { height: auto; }
  .service-row { height: auto; padding: clamp(2rem, 5vw, 3rem) 1rem; }
  .service-card { max-width: 100%; }
  .service-card-image { height: clamp(250px, 50vw, 300px); }
  .service-card-content { padding: clamp(1.2rem, 3vw, 1.6rem); }
  .service-card .num-lg { font-size: 2rem; }
  .service-card h3 { font-size: clamp(1rem, 2.5vw, 1.3rem); }

  /* Back to top button */
  .back-to-top { width: 40px; height: 40px; right: 1rem; bottom: 1.5rem; }

  /* Misc fixes */
  img { max-width: 100%; height: auto; }
  .ph-img { width: 100%; }
}

/* ---------- MOBILE — Small (480px - 640px) ---------- */
@media (max-width: 640px) {
  :root {
    --gutter: clamp(1rem, 3.5vw, 1.5rem);
  }

  /* Fix overlapping for this breakpoint */
  body { overflow-x: hidden; }
  .container { max-width: 100%; padding-inline: 1rem !important; }

  /* Header */
  .brand-mark { font-size: 1.15rem; }
  .brand-sub { display: none; }
  .main-nav { display: none; }
  .header-cta { gap: 1rem; }
  .header-cta .btn { white-space: nowrap; }

  section { padding-block: clamp(3rem, 7vw, 4rem); overflow: hidden; }

  /* Hero */
  .hero-content {
    position: absolute !important;
    top: 48% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    padding-block: 2.5rem 3rem;
    padding-inline: 1rem;
    text-align: center;
  }
  .hero-content h1 { font-size: clamp(1.9rem, 4.8vw, 2.8rem); margin-top: 0.8rem; }
  .hero-content p { font-size: clamp(0.9rem, 2vw, 1rem); margin-top: 1.2rem; }
  .hero-actions { gap: 1rem; flex-direction: column; align-items: center; }
  .btn { width: 100%; white-space: nowrap; }

  /* Page header */
  .page-header {
    padding-top: clamp(3rem, 8vw, 4.5rem);
    padding-bottom: clamp(1.5rem, 3vw, 2rem);
    padding-inline: 1rem !important;
  }
  .page-header h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }

  /* What we do */
  .what-we-do {
    padding-block: clamp(3rem, 7vw, 4rem);
    min-height: auto;
  }
  .wwd-inner { grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); }
  .wwd-copy { overflow: hidden; }
  .wwd-copy h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
  .wwd-stats { flex-direction: column; gap: 1.5rem; }
  .wwd-ghost-num { font-size: clamp(6rem, 22vw, 10rem); display: none; }
  .wwd-capabilities { padding-top: 1.5rem; }
  .wwd-tag { font-size: 0.75rem; }

  /* Projects */
  .projects-header { flex-direction: column; align-items: flex-start; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
  .project-grid.featured { grid-template-columns: 1fr; }
  .project-grid.featured .project-card:first-child { grid-column: span 1; }
  .project-card { overflow: hidden; }
  .modern-project-card { flex: 0 0 calc(100vw - 2rem); }
  .projects-modern { overflow-x: hidden; }

  /* Process */
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2rem); }
  .process-step { overflow: hidden; }

  /* Expertise panels */
  .panels-row { flex-direction: column; height: auto; }
  .expertise-panel {
    flex: none;
    min-height: 160px;
    border-right: none !important;
    border-bottom: 1px solid rgba(20,18,15,0.08);
  }
  .expertise-panel:last-child { border-bottom: none; }
  .panel-inner { position: relative; inset: auto; }
  .panel-inner h3 { white-space: normal; }
  .panel-inner p { opacity: 1 !important; transform: none !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { margin-bottom: 0; }

  /* Stats */
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid var(--color-line-dark); }
  .stat-item:last-child { border-bottom: none; }

  /* Project details */
  .pd-meta { grid-template-columns: 1fr; }
  .pd-gallery { grid-template-columns: 1fr; }

  /* Split layouts */
  .split, .service-detail, .contact-grid { grid-template-columns: 1fr; }
  .split-media, .service-detail .split-media { order: -1 !important; }
  .service-detail { gap: clamp(1.5rem, 3vw, 2rem); padding-block: clamp(2rem, 5vw, 3rem); }

  /* Misc */
  .awards-strip { justify-content: flex-start; }
  .values-grid, .team-grid { grid-template-columns: 1fr; }
}

/* ---------- TABLET — Medium (640px - 860px) ---------- */
@media (max-width: 860px) {
  :root {
    --gutter: clamp(1.25rem, 4vw, 2rem);
  }

  /* Header fixes */
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { gap: 1rem; }

  section { padding-block: clamp(3.5rem, 8vw, 5rem); overflow: hidden; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero-content {
    position: relative !important;
    top: auto !important;
    padding-inline: var(--gutter);
    padding-block: 3rem 3.5rem;
  }
  .hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 1rem; }
  .hero-content p { font-size: clamp(0.95rem, 2vw, 1.05rem); margin-top: 1.5rem; }
  .hero-actions { gap: 1.2rem; width: 100%; flex-wrap: wrap; justify-content: center; }
  .btn { white-space: nowrap; }

  /* What we do */
  .what-we-do {
    min-height: auto;
    padding-block: clamp(3.5rem, 8vw, 5rem);
    position: relative;
  }
  .wwd-inner { grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 3.5rem); }
  .wwd-copy { overflow: hidden; }
  .wwd-copy h2 { font-size: clamp(1.8rem, 3.8vw, 2.4rem); margin-bottom: 1.2rem; }
  .wwd-stats { gap: clamp(1.5rem, 3vw, 2.5rem); flex-wrap: wrap; }
  .wwd-ghost-num { font-size: clamp(8rem, 28vw, 14rem); justify-content: center; opacity: 0.4; }

  /* Marquee */
  .marquee-track span { font-size: clamp(1rem, 3vw, 1.3rem); padding-inline: 1.2rem; }

  /* Projects */
  .projects-modern { overflow-x: hidden; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.2rem); }
  .project-grid.featured .project-card:first-child { grid-column: span 2; grid-row: span 1; }
  .project-grid.featured .project-card:first-child .ph-img { aspect-ratio: 16/9 !important; }
  .project-card { overflow: hidden; }
  .modern-project-card { flex: 0 0 clamp(280px, 45vw, 350px); }

  /* Process */
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 2.5rem); }
  .process-step { padding: clamp(1.8rem, 3.5vw, 2.5rem); overflow: hidden; }

  /* Expertise panels */
  .panels-row { flex-direction: column; height: auto; }
  .expertise-panel {
    flex: none;
    min-height: 170px;
    border-right: none !important;
    border-bottom: 1px solid rgba(20,18,15,0.08);
  }
  .expertise-panel:last-child { border-bottom: none; }
  .panel-bg { display: none; }
  .panel-inner {
    position: relative;
    inset: auto;
    padding: clamp(1.5rem, 3vw, 2rem);
    justify-content: flex-start;
  }
  .panel-inner h3 { white-space: normal; font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-top: 0.5rem; }
  .panel-inner p { opacity: 1 !important; transform: none !important; margin-top: 0.8rem; }
  .panel-num { position: relative; top: auto; left: auto; margin-bottom: 0.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); }
  .footer-col { font-size: 0.9rem; }

  /* Stats */
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item {
    border-bottom: 1px solid var(--color-line-dark);
    padding: clamp(1.8rem, 4vw, 2.5rem) var(--gutter);
  }
  .stat-item:nth-child(3) { border-top: 1px solid var(--color-line-dark); }
  .stat-item strong { font-size: clamp(2rem, 4.5vw, 3rem); }

  /* Grids */
  .values-grid, .team-grid { grid-template-columns: 1fr 1fr; }

  /* Split layouts */
  .split, .service-detail, .service-detail.reverse .split-media, .contact-grid { grid-template-columns: 1fr; }
  .split-media, .service-detail .split-media { order: -1 !important; }
  .service-detail { gap: clamp(1.5rem, 3vw, 2rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); }

  /* Services */
  .service-card-image { height: clamp(300px, 45vw, 400px); }
  .service-card .num-lg { font-size: 3rem; }
  .service-card h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

  /* Project details */
  .pd-body { grid-template-columns: 1fr; }
  .pd-body .pd-nav { display: none; }
  .pd-gallery { grid-template-columns: repeat(2, 1fr); }
  .pd-meta { grid-template-columns: 1fr 1fr; }
  .strip-card { flex: 0 0 62vw; }
  .strip-card:nth-child(even) { margin-top: 1.25rem; }
  .projects-bg-word { font-size: clamp(2.5rem, 13vw, 4rem); opacity: 0.35; }

  /* Misc */
  .timeline { flex-direction: column; }
  .timeline-item { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- TABLET — Large (860px - 1080px) ---------- */
@media (max-width: 1080px) {
  :root {
    --gutter: clamp(1.5rem, 4vw, 2.5rem);
  }

  /* Header */
  .main-nav { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }

  section { padding-block: clamp(4rem, 8vw, 6rem); overflow: hidden; }

  /* Hero */
  .hero { min-height: 90vh; }
  .hero-content {
    position: relative !important;
    top: auto !important;
    padding-block: 3rem 3.5rem;
  }
  .hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-top: 1.2rem; }
  .hero-content p { font-size: 1rem; margin-top: 1.8rem; }

  /* What we do */
  .what-we-do {
    padding-block: clamp(4rem, 8vw, 6rem);
    min-height: auto;
  }
  .wwd-inner { grid-template-columns: 1fr; gap: clamp(3rem, 5vw, 4rem); }
  .wwd-copy { overflow: hidden; }
  .wwd-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
  .wwd-stats { flex-wrap: wrap; }
  .wwd-ghost-num { font-size: clamp(10rem, 30vw, 18rem); opacity: 0.5; }

  /* Marquee */
  .marquee-track span { font-size: clamp(1.2rem, 3vw, 1.4rem); padding-inline: 1.5rem; }

  /* Projects */
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(1.8rem, 3vw, 2.5rem); }
  .project-grid.featured .project-card:first-child { grid-column: span 2; grid-row: span 1; }
  .project-grid.featured .project-card:first-child .ph-img { aspect-ratio: 16/9 !important; }
  .project-card { overflow: hidden; }

  /* Process */
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(2.2rem, 4vw, 3rem); }
  .process-step { overflow: hidden; }

  /* Expertise panels */
  .panels-row { flex-direction: column; height: auto; }
  .expertise-panel {
    flex: none;
    border-right: none !important;
    border-bottom: 1px solid rgba(20,18,15,0.08);
  }
  .expertise-panel:last-child { border-bottom: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); }

  /* Stats */
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--color-line-dark); border-left: none; }
  .stat-item:nth-child(4) { border-top: 1px solid var(--color-line-dark); }

  /* Grids */
  .values-grid, .team-grid { grid-template-columns: 1fr 1fr; }

  /* Project details */
  .pd-body { grid-template-columns: 1fr; }
  .pd-body .pd-nav { display: none; }
  .pd-meta { grid-template-columns: 1fr 1fr; }
  .pd-gallery { grid-template-columns: repeat(2, 1fr); }

  /* Timeline */
  .timeline-item { grid-template-columns: 100px 1fr; gap: 1.5rem; }
}

/* ---------- DESKTOP OPTIMIZATIONS (1080px+) ---------- */
@media (min-width: 1081px) {
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ---------- Services Grid (Solutions page) ---------- */
.services-grid {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(20, 18, 15, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.6),
              0 0 1px rgba(168, 73, 47, 0.2);
  transition: transform 0.5s var(--ease),
              box-shadow 0.5s var(--ease),
              background 0.5s var(--ease);
}

.service-card {
  width: 100%;
  max-width: 700px;
}

.service-card:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 0 20px 48px rgba(20, 18, 15, 0.16),
              inset 0 1px 0 rgba(255, 255, 255, 0.8),
              0 0 20px rgba(168, 73, 47, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

.service-card-image {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f3f0 0%, #e8e3dc 100%);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
  filter: brightness(1.05) contrast(1.08) saturate(1.15) hue-rotate(-2deg);
}

.service-card:hover .service-card-image img {
  filter: brightness(1.12) contrast(1.12) saturate(1.25) hue-rotate(-1deg);
  transform: scale(1.05);
}

.service-card-content {
  padding: clamp(1.8rem, 3vw, 2.5rem);
}

.service-card .num-lg {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--color-accent-soft);
  -webkit-text-stroke: 1.5px var(--color-accent);
  color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: var(--color-ink);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin-bottom: 1.4rem;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.service-card li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

.service-card li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

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

.service-row:nth-child(1) [data-reveal] { transition-delay: 0.1s; }
.service-row:nth-child(1) [data-reveal]:nth-child(2) { transition-delay: 0.2s; }
.service-row:nth-child(1) [data-reveal]:nth-child(3) { transition-delay: 0.3s; }
.service-row:nth-child(2) [data-reveal] { transition-delay: 0.1s; }
.service-row:nth-child(2) [data-reveal]:nth-child(2) { transition-delay: 0.2s; }

/* ========== PROJECTS MODERN (HORIZONTAL SCROLL) ========== */
.projects-modern { padding-block: clamp(4rem, 9vw, 7.5rem); }
.projects-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3rem; }
.projects-title-section { display: flex; flex-direction: column; gap: 1rem; }
.projects-title-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-accent); font-weight: 600; transition: opacity 0.3s; }
.text-link:hover { opacity: 0.7; }
.text-link svg { width: 20px; height: 20px; }

.projects-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.projects-grid::-webkit-scrollbar {
  height: 6px;
}

.projects-grid::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

.projects-grid::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.modern-project-card {
  flex: 0 0 clamp(280px, 40vw, 400px);
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease);
}

.modern-project-card:hover {
  transform: translateY(-8px);
}

.card-container {
  position: relative;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.card-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: var(--color-line);
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.modern-project-card:hover .card-image img {
  transform: scale(1.05);
}

.modern-project-card:hover .card-overlay {
  opacity: 1;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-category {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.card-content h3 {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0;
}

.card-content p {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin: 0;
}

.card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}
