/* =======================================================
   DMO Architects — Mobile-First RTL Hebrew Site
   Breakpoints:
     base  : mobile  (0–639px)
     sm    : ≥ 640px  (tablet portrait)
     md    : ≥ 900px  (tablet landscape / small laptop)
     lg    : ≥ 1200px (desktop)
   ======================================================= */

:root {
  --bg: #0b0c0f;
  --bg-2: #121318;
  --bg-3: #1a1c22;
  --surface: #16181d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ece7de;
  --text-dim: #a9a397;
  --text-mute: #6f6a60;
  --accent: #c9a36a;
  --accent-2: #e6c38b;
  --accent-deep: #8b6a3e;
  --cream: #ede7da;
  --danger: #e06363;
  --success: #7dbf83;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --container: 1240px;
  --nav-h: 64px;
  --pad-x: 18px;

  --font-sans: 'Heebo', 'Segoe UI', 'Noto Sans Hebrew', system-ui, -apple-system, sans-serif;
  --font-serif: 'Frank Ruhl Libre', 'Times New Roman', serif;

  /* Fluid type — mobile first */
  --fs-body: 0.969rem;
  --fs-h1: clamp(2.5rem, 10vw, 7.25rem);
  --fs-h2: clamp(1.75rem, 7vw, 3.625rem);
  --fs-h3: 1.25rem;
  --fs-lead: 1rem;
}

/* ========= Reset ========= */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select, button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }

/* ========= Base container ========= */
.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--pad-x);
  margin-inline: auto;
}

.section {
  padding-block: 64px;
  position: relative;
}

/* ========= Utility ========= */
.is-serif { font-family: var(--font-serif); font-weight: 500; font-style: italic; letter-spacing: 0; }
.is-accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.6875rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid rgba(201,163,106,.35);
  border-radius: 100px;
  background: rgba(201,163,106,.06);
}
.section-title {
  font-size: var(--fs-h2);
  line-height: 1.12;
  margin-top: 14px;
  color: var(--text);
}
.section-sub { color: var(--text-dim); max-width: 640px; margin-top: 14px; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.section-head--split {
  display: flex; flex-direction: column; gap: 18px;
  text-align: start;
}

.lead { color: var(--text-dim); font-size: var(--fs-lead); line-height: 1.75; }

/* ========= Skip link ========= */
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px; inset-inline-start: 12px;
  width: auto; height: auto;
  padding: 10px 16px; margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--accent); color: #000;
  border-radius: 8px;
  outline: 2px solid var(--text);
  z-index: 10000;
}

/* ========= Buttons — large touch targets ========= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 100px;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .35s var(--ease);
  position: relative; overflow: hidden; user-select: none;
  will-change: transform;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); flex-shrink: 0; }
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1a1208;
  box-shadow: 0 14px 30px -12px rgba(201,163,106,.6);
}
.btn--primary:hover svg { transform: translateX(-4px); }
.btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
@media (hover: hover) {
  .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--accent); color: var(--accent-2); }
  .btn--primary:hover { box-shadow: 0 22px 38px -14px rgba(201,163,106,.85); }
}
.btn--link {
  min-height: auto;
  padding: 10px 0; color: var(--accent); background: transparent;
}
.btn--link:hover { color: var(--accent-2); }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 1rem; min-height: 54px; }

/* ========= Preloader ========= */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; display: grid; gap: 20px; }
.preloader__logo { width: 140px; height: 46px; }
.preloader__text {
  fill: var(--accent);
  font-family: var(--font-serif);
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: 6px;
}
.preloader__bar {
  width: 180px; height: 2px;
  background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden;
  margin: 0 auto;
}
.preloader__bar span {
  display: block; height: 100%; width: 30%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  animation: loading 1.2s var(--ease) infinite;
}
@keyframes loading {
  0% { margin-inline-start: -40%; width: 40%; }
  50% { width: 60%; }
  100% { margin-inline-start: 100%; width: 40%; }
}

/* ========= Scroll progress ========= */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0;
  height: 2px; z-index: 200;
  background: rgba(255,255,255,.05);
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: width .12s linear;
}

/* ========= Header / Navigation ========= */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: 10px 0;
  transition: background .4s ease, padding .3s ease, backdrop-filter .4s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11,12,15,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  padding: 8px 0;
}
.header__row {
  display: flex; align-items: center; gap: 16px;
  justify-content: space-between;
  min-height: var(--nav-h);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--accent);
  border: 1px solid rgba(201,163,106,.5);
  border-radius: 10px;
  background: rgba(201,163,106,.08);
  transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.05); }
.logo__mark svg { width: 20px; height: 20px; }
.logo__text { display: grid; line-height: 1; gap: 2px; }
.logo__text strong {
  font-family: var(--font-serif);
  font-size: 1.1875rem; font-weight: 700; letter-spacing: 3px;
  color: var(--text);
}
.logo__text em {
  font-style: normal; font-size: 0.625rem; font-weight: 500;
  letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase;
}

.nav { display: none; }
.header__cta { display: none; }

.menu-toggle {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(201,163,106,.5);
  background: rgba(11,12,15,.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  position: relative;
  z-index: 101;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.menu-toggle span {
  width: 22px; height: 2px; background: currentColor;
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s ease;
  display: block;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: var(--nav-h); inset-inline: 0; bottom: 0;
  background: var(--bg-2);
  padding: 24px var(--pad-x) 40px;
  transform: translateY(-10px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), transform .4s var(--ease), visibility .35s;
  z-index: 90;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav[data-open="true"] { opacity: 1; transform: none; visibility: visible; }
.mobile-nav ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; gap: 6px;
}
.mobile-nav a {
  display: flex; align-items: center;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 14px; font-size: 1.25rem; font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  transition: border-color .25s ease, color .25s ease, background .25s ease, transform .3s ease;
}
.mobile-nav a:active { transform: scale(.98); }
@media (hover: hover) {
  .mobile-nav a:hover { border-color: var(--accent); color: var(--accent); background: rgba(201,163,106,.04); }
}

/* ========= HERO (mobile first) ========= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 30px) 0 90px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(201,163,106,.16), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(201,163,106,.06), transparent 60%),
    linear-gradient(180deg, #0a0b0e 0%, #111218 100%);
}
.hero__canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .42;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero__noise {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .08 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  opacity: .45; mix-blend-mode: overlay;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; gap: 22px;
  align-content: center;
  min-height: calc(100svh - var(--nav-h) - 120px);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 0.6875rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 600;
  flex-wrap: wrap;
}
.hero__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201,163,106,.15);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,163,106,.15); }
  50% { box-shadow: 0 0 0 10px rgba(201,163,106,0); }
}
.hero__title {
  font-size: var(--fs-h1);
  line-height: .96;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.hero__title .line {
  display: block; overflow: hidden; padding-block: 2px;
}
.hero__title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: slideUp 1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) > span { animation-delay: .25s; }
.hero__title .line:nth-child(2) > span { animation-delay: .42s; }
.hero__title .line:nth-child(3) > span { animation-delay: .58s; }
@keyframes slideUp { to { transform: translateY(0); } }

.hero__lede {
  max-width: 620px;
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin: 4px 0;
  opacity: 0; animation: fadeIn .9s var(--ease-out) .9s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero__cta {
  display: flex; gap: 10px; flex-wrap: wrap;
  opacity: 0; animation: fadeIn .9s var(--ease-out) 1.05s forwards;
}
.hero__cta .btn { flex: 1 1 auto; }
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 26px 0 0; padding-top: 22px;
  border-top: 1px solid var(--line);
  opacity: 0; animation: fadeIn .9s var(--ease-out) 1.2s forwards;
}
.hero__meta div {
  display: grid;
  gap: 6px;
  padding: 0 10px;
  border-inline-start: 1px solid var(--line);
  min-width: 0;
}
.hero__meta div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hero__meta div:last-child { padding-inline-end: 0; }
.hero__meta dt {
  font-size: 0.625rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 500;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 8vw, 2.125rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.hero__meta dd span { color: var(--accent); }

.hero__scroll { display: none; }

/* ========= Marquee ========= */
.marquee {
  border-block: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  direction: ltr;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.marquee__item .sep {
  color: var(--accent);
  font-size: .7em;
  margin-inline: 18px;
  display: inline-block;
}
@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ========= About ========= */
.about { background: var(--bg); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.about__media {
  position: relative;
  perspective: 1000px;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.about__image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-lg);
}
.about__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.about__image:hover img { transform: scale(1.05); }
.about__image--main { aspect-ratio: 4/5; }
.about__image--sub {
  position: relative;
  width: 65%;
  aspect-ratio: 4/3;
  margin: -40px 0 0 auto;
  inset-inline-start: auto;
  z-index: 2;
}
.about__badge {
  position: absolute;
  top: -14px; inset-inline-end: -14px;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1208;
  display: grid; place-items: center; text-align: center; gap: 2px;
  font-family: var(--font-serif);
  box-shadow: var(--shadow-lg);
  animation: spin 22s linear infinite;
  z-index: 3;
}
.about__badge span { font-size: 0.625rem; letter-spacing: .18em; }
.about__badge strong { font-size: 1.25rem; line-height: 1; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.about__content { display: grid; gap: 18px; }
.about__list {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: grid; gap: 4px;
}
.about__list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9375rem; font-weight: 500;
  transition: color .25s ease, padding-inline-start .4s var(--ease);
}
@media (hover: hover) {
  .about__list li:hover { color: var(--accent); padding-inline-start: 6px; }
}
.about__list li span {
  font-family: var(--font-serif);
  font-size: 0.8125rem; color: var(--accent); font-weight: 600;
}
.about__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.about__actions .btn { flex: 1 1 auto; }

/* ========= Services ========= */
.services { background: var(--bg-2); position: relative; }
.services::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,163,106,.07), transparent 60%);
  pointer-events: none;
}
.services__grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.service {
  position: relative; padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .35s ease, background .35s ease;
  overflow: hidden;
}
.service::after {
  content: ''; position: absolute;
  inset-inline-end: -60px; top: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,163,106,.15), transparent 70%);
  transition: transform .8s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .service:hover { transform: translateY(-6px); border-color: rgba(201,163,106,.4); background: linear-gradient(180deg, rgba(201,163,106,.05), rgba(255,255,255,.01)); }
  .service:hover::after { transform: scale(1.4); }
  .service:hover .service__icon { transform: rotate(-8deg) scale(1.05); background: rgba(201,163,106,.12); }
}
.service__num {
  font-family: var(--font-serif); color: var(--accent); font-size: 0.8125rem;
  letter-spacing: .2em;
}
.service__icon {
  width: 52px; height: 52px; margin: 12px 0 14px;
  color: var(--accent);
  border: 1px solid rgba(201,163,106,.35);
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(201,163,106,.05);
  transition: transform .5s var(--ease), background .35s ease;
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 {
  font-size: 1.3125rem; margin-bottom: 8px; color: var(--text);
}
.service p { color: var(--text-dim); margin: 0 0 16px; font-size: 0.9063rem; }
.service ul {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid; gap: 2px;
  color: var(--text-dim);
}
.service ul li {
  font-size: 0.8438rem;
  padding: 5px 0;
  position: relative; padding-inline-start: 14px;
}
.service ul li::before {
  content: ''; position: absolute;
  inset-inline-start: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ========= Process ========= */
.process { background: var(--bg); position: relative; }
.process__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
  counter-reset: steps;
  position: relative;
}
.process__step {
  position: relative; padding: 22px;
  text-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: center;
  transition: border-color .3s ease, background .3s ease, transform .4s var(--ease);
}
.process__step:active { transform: scale(.99); }
@media (hover: hover) {
  .process__step:hover {
    border-color: rgba(201,163,106,.4);
    background: rgba(201,163,106,.04);
  }
  .process__step:hover .process__num { transform: scale(1.05); border-color: var(--accent); }
}
.process__num {
  grid-row: span 2;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 1.375rem; font-weight: 700; color: var(--accent);
  transition: transform .5s var(--ease), border-color .35s ease;
  flex-shrink: 0;
}
.process__step h3 { font-size: 1.125rem; margin-bottom: 2px; color: var(--text); }
.process__step p { color: var(--text-dim); margin: 0; font-size: 0.875rem; line-height: 1.6; }

/* ========= Projects ========= */
.projects { background: var(--bg-2); }
.projects__filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.projects__filters::-webkit-scrollbar { display: none; }
.chip {
  padding: 10px 18px; min-height: 40px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.02);
  color: var(--text-dim);
  font-size: 0.875rem; font-weight: 500;
  transition: all .3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.chip:active { transform: scale(.97); }
@media (hover: hover) {
  .chip:hover { border-color: var(--accent); color: var(--accent); }
}
.chip.is-active {
  background: var(--accent); color: #1a1208; border-color: var(--accent);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  position: relative;
  margin: 0; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 4/3;
  transition: transform .6s var(--ease), border-color .35s ease;
  cursor: pointer;
}
.card[hidden] { display: none; }
.card__media {
  position: absolute; inset: 0;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--ease), filter .6s ease;
  filter: saturate(.9);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: rgba(201,163,106,.4); }
  .card:hover .card__media img { transform: scale(1.08); filter: saturate(1.1); }
}
.card figcaption, .card .card__caption {
  position: absolute; inset: 0;
  padding: 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 45%, transparent 70%);
  color: #fff;
}
.card figcaption, .card .card__caption h3 {
  font-size: 1.125rem; margin-bottom: 2px;
  transition: transform .5s var(--ease);
}
.card figcaption, .card .card__caption p {
  margin: 0; font-size: 0.75rem; color: var(--accent-2); letter-spacing: .08em;
  opacity: .9;
  transition: transform .5s var(--ease) .05s;
}

/* ========= Stats ========= */
.stats {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  padding: 72px 0;
  border-block: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute; inset-inline-start: -100px; top: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,163,106,.14), transparent 70%);
  pointer-events: none;
}
.stats::after {
  content: '';
  position: absolute; inset-inline-end: -120px; bottom: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,163,106,.08), transparent 70%);
  pointer-events: none;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: center;
  position: relative;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, transform .4s var(--ease), background .3s ease;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .7;
}
.stat:active { transform: scale(.98); }
@media (hover: hover) {
  .stat:hover {
    border-color: rgba(201,163,106,.45);
    background: linear-gradient(180deg, rgba(201,163,106,.06), rgba(255,255,255,.01));
    transform: translateY(-2px);
  }
  .stat:hover::before { width: 70px; transition: width .35s var(--ease); }
}
.stat strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 14vw, 4rem);
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.stat strong span {
  color: var(--accent);
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font: inherit;
  letter-spacing: inherit;
  display: inline;
  margin: 0;
  padding: 0;
  text-transform: none;
}
.stat > span {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  position: relative;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.4;
  font-weight: 500;
  word-break: keep-all;
}
.stat > span::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 1px;
  background: var(--line);
}

/* ========= Testimonials ========= */
.testimonials { background: var(--bg); position: relative; overflow: hidden; }
.testimonials__viewport {
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
}
.testimonials__track {
  display: flex; gap: 14px;
  transition: transform .7s var(--ease);
}
.testi {
  flex: 0 0 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.testi__quote {
  position: absolute; top: 10px; inset-inline-end: 22px;
  font-family: var(--font-serif);
  font-size: 5rem; color: var(--accent);
  line-height: 1; opacity: .22;
  pointer-events: none;
}
.testi p {
  font-family: var(--font-serif);
  font-size: 1.125rem; line-height: 1.55;
  color: var(--text);
  margin: 0 0 18px;
}
.testi footer { display: grid; gap: 2px; }
.testi footer strong { color: var(--accent); font-size: 0.875rem; }
.testi footer span { color: var(--text-mute); font-size: 0.7813rem; }

.testimonials__nav { display: flex; gap: 10px; justify-content: center; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  display: grid; place-items: center;
  background: rgba(255,255,255,.03);
  transition: all .3s ease;
}
.round-btn:active { transform: scale(.94); }
@media (hover: hover) {
  .round-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(201,163,106,.08); }
}
.round-btn svg { width: 18px; height: 18px; }

/* ========= FAQ ========= */
.faq { background: var(--bg-2); }
.faq__wrap { max-width: 880px; margin: 0 auto; }
.faq__list { display: grid; gap: 10px; margin-top: 24px; }
.faq__item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color .25s ease, background .3s ease;
}
.faq__item[open] { border-color: rgba(201,163,106,.35); background: rgba(201,163,106,.04); }
.faq__item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-weight: 600; font-size: 0.9688rem;
  color: var(--text);
  min-height: 32px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent);
  transition: transform .35s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin: 12px 0 0; color: var(--text-dim); line-height: 1.7; font-size: 0.9063rem;
}

/* ========= CTA ========= */
.cta {
  background:
    radial-gradient(ellipse at 100% 50%, rgba(201,163,106,.18), transparent 55%),
    var(--bg);
  padding: 70px 0;
  border-block: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.cta::before, .cta::after {
  content: ''; position: absolute; inset-inline-start: 50%;
  width: 400px; height: 400px; border-radius: 50%;
  border: 1px solid var(--line);
  transform: translateX(-50%);
  pointer-events: none;
}
.cta::before { top: -280px; }
.cta::after { top: -220px; width: 560px; height: 560px; opacity: .5; }
.cta__wrap { text-align: center; max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.cta__title {
  font-size: clamp(1.75rem, 7vw, 4rem);
  color: var(--text); line-height: 1.1; margin-bottom: 12px;
}
.cta__wrap p { color: var(--text-dim); font-size: 1rem; margin: 0 0 24px; }
.cta__buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta__buttons .btn { flex: 1 1 auto; }

/* ========= Contact ========= */
.contact { background: var(--bg); }
.contact__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.contact__info { display: grid; gap: 18px; }
.contact__details {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: grid; gap: 12px;
}
.contact__details li {
  display: flex; gap: 14px; align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  transition: border-color .3s ease, background .3s ease;
}
.contact__details li > div { flex: 1; min-width: 0; }
@media (hover: hover) {
  .contact__details li:hover { border-color: rgba(201,163,106,.35); background: rgba(201,163,106,.04); }
}
.contact__icon {
  flex-shrink: 0;
  align-self: center;
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,163,106,.35);
  background: rgba(201,163,106,.08);
  color: var(--accent);
  line-height: 0;
}
.contact__icon svg { width: 20px; height: 20px; display: block; }
.contact__details > li > div > span {
  display: block;
  font-size: 0.625rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 4px;
}
.contact__details a { color: var(--text); font-weight: 500; font-size: 1rem; }
.contact__details a:hover { color: var(--accent); }
.contact__details p { margin: 0; color: var(--text); font-size: 0.9063rem; }

.contact__social { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.contact__social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--text-dim);
  transition: all .3s ease;
}
.contact__social a:active { transform: scale(.92); }
@media (hover: hover) {
  .contact__social a:hover {
    border-color: var(--accent); color: var(--accent);
    background: rgba(201,163,106,.08); transform: translateY(-3px);
  }
}
.contact__social a svg { width: 20px; height: 20px; }

/* Form */
.contact__form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: grid; gap: 14px;
}
.field { position: relative; }
.field--2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 16px 10px;
  transition: border-color .25s ease, background .25s ease;
  font-size: 1rem; /* >=16px prevents iOS zoom on focus */
  min-height: 56px;
}
.field textarea { resize: vertical; min-height: 110px; padding-top: 24px; }
.field select { appearance: none; padding-inline-end: 40px; cursor: pointer; }
.field:has(select)::after {
  content: ''; position: absolute;
  inset-inline-start: 18px; top: 50%;
  width: 10px; height: 10px;
  border-inline-start: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-75%) rotate(-45deg);
  pointer-events: none;
}
.field label {
  position: absolute;
  inset-inline-start: 16px; top: 18px;
  font-size: 0.875rem; color: var(--text-mute);
  pointer-events: none;
  transition: all .25s ease;
  background: transparent;
  padding: 0 6px;
}
.field input::placeholder,
.field textarea::placeholder { color: transparent; }
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select:valid ~ label {
  top: -8px;
  font-size: 0.6563rem;
  color: var(--accent);
  background: var(--surface);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(201,163,106,.06);
}
.field-note {
  font-size: 0.75rem; color: var(--text-mute); margin: 4px 0 0;
  line-height: 1.5;
}
.field-note a { color: var(--accent); text-decoration: underline; }
.form-ok {
  margin: 0; padding: 12px 16px; border-radius: 10px;
  background: rgba(125,191,131,.08); color: var(--success);
  border: 1px solid rgba(125,191,131,.35);
  text-align: center;
  font-size: 0.875rem;
}
.form-ok.is-error {
  background: rgba(220,90,90,.08);
  color: #e57373;
  border-color: rgba(220,90,90,.35);
}

/* ========= 404 page ========= */
.error-hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.error-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 80% 30%, rgba(201,163,106,.10), transparent 60%),
    radial-gradient(600px 400px at 20% 80%, rgba(201,163,106,.06), transparent 60%);
  pointer-events: none;
}
.error-hero__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
}
.error-hero__code {
  display: block;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(201,163,106,.15) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  user-select: none;
}
.error-hero__title {
  font-family: 'Heebo', sans-serif;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 14px 0 18px;
}
.error-hero__lede {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 30px;
}
.error-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
@media (max-width: 600px) {
  .error-hero { padding: 100px 0 60px; min-height: auto; }
  .error-hero__cta { flex-direction: column; align-items: stretch; }
  .error-hero__cta .btn { width: 100%; justify-content: center; }
}

/* ========= Footer ========= */
.footer {
  background: var(--bg-2);
  color: var(--text-dim);
  padding: 50px 0 24px;
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 30px; margin-bottom: 30px;
}
.footer h4 { color: var(--text); font-size: 0.875rem; margin-bottom: 16px; }
.footer__brand p { margin: 14px 0 0; font-size: 0.875rem; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.875rem; }
.footer__links a { color: var(--text-dim); transition: color .2s ease; padding: 4px 0; display: inline-block; }
.footer__links a:hover { color: var(--accent); }
.footer__social a {
  width: 40px; height: 40px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: .08em;
}
.footer__bottom {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem; color: var(--text-mute);
  gap: 8px;
  text-align: center;
}

/* ========= WhatsApp floating button ========= */
.wa {
  position: fixed;
  bottom: 18px; inset-inline-start: 18px;
  z-index: 99;
  display: flex; align-items: center; gap: 8px;
  padding: 14px;
  background: #25d366;
  color: #fff;
  border-radius: 100px;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.5);
  transition: transform .3s var(--ease), box-shadow .3s ease;
  font-weight: 600; font-size: 0.875rem;
  min-height: 56px; min-width: 56px;
  justify-content: center;
}
.wa:active { transform: scale(.96); }
@media (hover: hover) {
  .wa:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 22px 45px -10px rgba(37,211,102,.7); }
}
.wa svg { width: 28px; height: 28px; }
.wa__label { display: none; white-space: nowrap; }
.wa__pulse {
  position: absolute; inset: 0; border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: waPulse 2.4s cubic-bezier(.24,.87,.6,1.33) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  80%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
}

/* ========= Back to top ========= */
.to-top {
  position: fixed;
  bottom: 86px; inset-inline-end: 18px;
  z-index: 98;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line-strong);
  color: var(--text);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: all .3s ease;
}
.to-top.is-visible { opacity: 1; transform: none; visibility: visible; }
.to-top:active { transform: scale(.92); }
@media (hover: hover) {
  .to-top:hover { background: var(--accent); color: #1a1208; border-color: var(--accent); }
}

/* ========= Custom cursor (desktop only) ========= */
.cursor {
  position: fixed; top: 0; inset-inline-start: 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9998;
  transition: width .25s var(--ease), height .25s var(--ease), background .25s ease, opacity .2s ease, border-color .25s ease;
  mix-blend-mode: difference;
  opacity: 0;
  display: none;
}
.cursor.is-hover { width: 60px; height: 60px; background: var(--accent); border-color: var(--accent); }

/* ========= Reveal animations ========= */
[data-reveal] {
  opacity: 0;
  transition: transform 1s var(--ease-out), opacity .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
[data-reveal="up"] { transform: translateY(32px); }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal].is-visible {
  opacity: 1; transform: none;
}

/* ========= Helpers ========= */
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #0a0b0e; }

/* Scrollbar */
html { scrollbar-color: var(--accent) var(--bg-2); }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
body::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Focus visible polish */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =======================================================
   Accessibility toolbar
   ======================================================= */
.a11y {
  position: fixed;
  bottom: 18px; inset-inline-end: 18px;
  z-index: 999;
  font-family: var(--font-sans);
}
.a11y__trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  padding: 0;
  border-radius: 50%;
  background: #1a52c4;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 12px 26px -10px rgba(26,82,196,.55);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.a11y__trigger svg { width: 26px; height: 26px; flex-shrink: 0; display: block; }
.a11y__trigger-label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.a11y__trigger:focus-visible { outline: 3px solid #ffd24a; outline-offset: 3px; }
@media (hover: hover) {
  .a11y__trigger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 18px 36px -10px rgba(26,82,196,.7);
  }
}
.a11y__panel {
  position: absolute;
  bottom: calc(100% + 12px); inset-inline-end: 0;
  width: min(340px, calc(100vw - 36px));
  background: #ffffff;
  color: #14181f;
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  padding: 18px;
  border: 1px solid rgba(0,0,0,.08);
  display: grid; gap: 14px;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.a11y__panel.is-open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.a11y__head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-bottom: 10px;
}
.a11y__head h2 {
  font-size: 1rem; font-weight: 800; color: #14181f;
  margin: 0;
}
.a11y__close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: #14181f;
  transition: background .2s ease;
}
.a11y__close:hover { background: rgba(0,0,0,.06); }
.a11y__close svg { width: 18px; height: 18px; }

.a11y__group { display: grid; gap: 8px; }
.a11y__label {
  font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: #5b6572; font-weight: 600;
}
.a11y__row {
  display: flex; align-items: center; gap: 10px;
  background: #f3f5f9;
  border-radius: 12px;
  padding: 6px;
}
.a11y__btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #fff;
  color: #14181f;
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 700; font-size: 1.125rem;
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.a11y__btn:hover { background: #1a52c4; color: #fff; border-color: #1a52c4; }
.a11y__btn:focus-visible { outline: 2px solid #1a52c4; outline-offset: 2px; }
.a11y__readout {
  flex: 1; text-align: center;
  font-weight: 700; font-size: 0.875rem;
  color: #14181f;
  font-variant-numeric: tabular-nums;
}

.a11y__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.a11y__opt {
  display: grid; grid-template-columns: 28px 1fr;
  align-items: center; gap: 8px;
  padding: 10px 12px;
  background: #f3f5f9;
  color: #14181f;
  border-radius: 10px;
  font-size: 0.8125rem; font-weight: 600;
  text-align: start;
  transition: background .2s ease, color .2s ease;
  border: 2px solid transparent;
  min-height: 46px;
}
.a11y__opt:hover { background: #e5ebf5; }
.a11y__opt[aria-pressed="true"] {
  background: #1a52c4;
  color: #fff;
  border-color: #1a52c4;
}
.a11y__opt:focus-visible { outline: 2px solid #1a52c4; outline-offset: 2px; }
.a11y__opt-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: #fff;
  color: #1a52c4;
  font-weight: 700; font-size: 0.875rem;
}
.a11y__opt[aria-pressed="true"] .a11y__opt-icon {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.a11y__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 12px;
  font-size: 0.8125rem;
}
.a11y__reset {
  color: #1a52c4;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(26,82,196,.3);
  transition: background .2s ease;
}
.a11y__reset:hover { background: rgba(26,82,196,.08); }
.a11y__statement {
  color: #14181f;
  text-decoration: underline;
  font-weight: 600;
}
.a11y__statement:hover { color: #1a52c4; }

/* Skip the cursor follower from interfering on the white panel */
.a11y { mix-blend-mode: normal; }

/* Move accessibility button up when back-to-top is visible (don't overlap WhatsApp) */
@supports (padding: max(0px)) {
  .a11y { inset-inline-end: max(18px, env(safe-area-inset-right)); }
}

/* =======================================================
   Accessibility modes (root classes set by a11y.js)
   ======================================================= */
html.a11y-high-contrast,
html.a11y-high-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-high-contrast a,
html.a11y-high-contrast .nav__list a,
html.a11y-high-contrast .footer__links a,
html.a11y-high-contrast h1,
html.a11y-high-contrast h2,
html.a11y-high-contrast h3,
html.a11y-high-contrast h4,
html.a11y-high-contrast p,
html.a11y-high-contrast li,
html.a11y-high-contrast span,
html.a11y-high-contrast label,
html.a11y-high-contrast strong,
html.a11y-high-contrast em,
html.a11y-high-contrast dt,
html.a11y-high-contrast dd,
html.a11y-high-contrast summary {
  color: #fff !important;
}
html.a11y-high-contrast .is-accent,
html.a11y-high-contrast .accent,
html.a11y-high-contrast .eyebrow {
  color: #ffd24a !important;
}
html.a11y-high-contrast a:not(.btn):not(.logo) {
  color: #ffd24a !important;
  text-decoration: underline !important;
}
html.a11y-high-contrast .btn--primary {
  background: #ffd24a !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}
html.a11y-high-contrast .btn--ghost,
html.a11y-high-contrast .chip {
  background: #000 !important;
  border-color: #fff !important;
  color: #fff !important;
}
html.a11y-high-contrast .service,
html.a11y-high-contrast .card,
html.a11y-high-contrast .testi,
html.a11y-high-contrast .stat,
html.a11y-high-contrast .faq__item,
html.a11y-high-contrast .contact__details li,
html.a11y-high-contrast .contact__form,
html.a11y-high-contrast .field input,
html.a11y-high-contrast .field textarea,
html.a11y-high-contrast .field select,
html.a11y-high-contrast .project-card,
html.a11y-high-contrast .project-meta,
html.a11y-high-contrast .gallery__item,
html.a11y-high-contrast .project-highlights li,
html.a11y-high-contrast .legal-prose,
html.a11y-high-contrast .header.is-scrolled {
  background: #000 !important;
  border-color: #fff !important;
  color: #fff !important;
}
html.a11y-high-contrast .hero,
html.a11y-high-contrast .subhero,
html.a11y-high-contrast .about,
html.a11y-high-contrast .services,
html.a11y-high-contrast .process,
html.a11y-high-contrast .projects,
html.a11y-high-contrast .testimonials,
html.a11y-high-contrast .faq,
html.a11y-high-contrast .stats,
html.a11y-high-contrast .cta,
html.a11y-high-contrast .contact,
html.a11y-high-contrast .footer,
html.a11y-high-contrast .marquee,
html.a11y-high-contrast .legal {
  background: #000 !important;
}

html.a11y-invert {
  filter: invert(100%) hue-rotate(180deg);
  background: #fff;
}
html.a11y-invert img,
html.a11y-invert video,
html.a11y-invert svg.preserve {
  filter: invert(100%) hue-rotate(180deg);
}

html.a11y-grayscale {
  filter: grayscale(100%);
}
html.a11y-grayscale.a11y-invert {
  filter: grayscale(100%) invert(100%) hue-rotate(180deg);
}

html.a11y-readable,
html.a11y-readable body,
html.a11y-readable * {
  font-family: 'Heebo', 'Arial', 'Segoe UI', sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
}
html.a11y-readable .is-serif {
  font-family: 'Heebo', 'Arial', 'Segoe UI', sans-serif !important;
  font-style: normal !important;
}

html.a11y-links a:not(.btn) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
html.a11y-links a:not(.btn):hover,
html.a11y-links a:not(.btn):focus {
  background: #ffd24a !important;
  color: #14181f !important;
  outline: 2px solid #14181f;
  outline-offset: 2px;
}

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}
html.a11y-no-motion .marquee__track { animation: none !important; }
html.a11y-no-motion .preloader { display: none !important; }
html.a11y-no-motion .hero__canvas { display: none !important; }

html.a11y-big-cursor,
html.a11y-big-cursor body,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 24 24'><path d='M3 2 L21 12 L13 13 L18 22 L15 23 L10 14 L3 16 Z' fill='black' stroke='white' stroke-width='1.2'/></svg>") 3 2, auto !important;
}
html.a11y-big-cursor a,
html.a11y-big-cursor button,
html.a11y-big-cursor [role="button"] {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 24 24'><path d='M9 2 L9 12 L6 9 L4 11 L11 22 L13 22 L20 15 L20 11 L17 11 L17 7 L14 7 L14 4 L11 4 L11 2 Z' fill='black' stroke='white' stroke-width='1.2'/></svg>") 12 4, pointer !important;
}
html.a11y-big-cursor .cursor { display: none !important; }

/* When toolbar is visible, hide the custom JS cursor follower */
html.a11y-readable .cursor,
html.a11y-high-contrast .cursor,
html.a11y-invert .cursor {
  display: none !important;
}

/* =======================================================
   Legal / long-form prose pages
   ======================================================= */
.legal { background: var(--bg); }
.legal-prose {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}
.legal-prose h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.legal-prose h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.legal-prose h3 {
  font-size: 1.0625rem;
  color: var(--accent);
  margin-top: 8px;
}
.legal-prose p,
.legal-prose li {
  color: var(--text-dim);
  font-size: 0.9688rem;
  line-height: 1.85;
  margin: 0;
}
.legal-prose ul,
.legal-prose ol {
  margin: 0;
  padding-inline-start: 22px;
  display: grid;
  gap: 8px;
}
.legal-prose ul li::marker { color: var(--accent); }
.legal-prose ol li::marker { color: var(--accent); font-family: var(--font-serif); }
.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-prose a:hover { color: var(--accent-2); }
.legal-prose strong { color: var(--text); }
.legal-prose dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  margin: 0;
}
.legal-prose dl div {
  display: grid;
  gap: 4px;
  padding: 8px 12px;
  border-inline-start: 2px solid rgba(201,163,106,.4);
}
.legal-prose dt {
  font-size: 0.6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.legal-prose dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
}
.legal-prose dd a { color: var(--text); text-decoration: none; }
.legal-prose dd a:hover { color: var(--accent); }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-mute);
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 4px;
}
.legal-meta span { display: inline-flex; gap: 6px; }
.legal-meta strong {
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
}
.legal-toc {
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(201,163,106,.04);
}
.legal-toc h3 { color: var(--accent); margin-bottom: 10px; }
.legal-toc ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 4px;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9063rem;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 0.8125rem;
  letter-spacing: .1em;
  flex-shrink: 0;
}
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }
.legal-toc ol { counter-reset: toc; }

@media (min-width: 640px) {
  .legal-prose { padding: 40px 36px; gap: 22px; }
  .legal-prose dl { grid-template-columns: 1fr 1fr; }
  .legal-prose h2 { font-size: 1.625rem; }
}
@media (min-width: 900px) {
  .legal-prose { padding: 56px 56px; }
}

/* Footer legal row */
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  justify-content: center;
  margin-top: 6px;
  font-size: 0.7813rem;
}
.footer__legal a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s ease;
}
.footer__legal a:hover { color: var(--accent); }
@media (min-width: 640px) {
  .footer__legal { justify-content: flex-start; }
}

/* =======================================================
   Sub-page hero (projects listing & project detail)
   ======================================================= */
.subhero {
  position: relative;
  padding: calc(var(--nav-h) + 50px) 0 50px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(201,163,106,.12), transparent 55%),
    linear-gradient(180deg, #0a0b0e 0%, #111218 100%);
  overflow: hidden;
}
.subhero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  pointer-events: none;
}
.subhero__inner {
  position: relative;
  display: grid; gap: 18px;
  max-width: 820px;
}
.subhero h1 {
  font-size: clamp(2.125rem, 8vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.subhero p { color: var(--text-dim); font-size: 1rem; line-height: 1.7; max-width: 620px; margin: 0; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
}
.crumbs a { color: var(--text-dim); transition: color .25s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--text-mute); opacity: .6; }
.crumbs [aria-current="page"] { color: var(--accent); }

/* =======================================================
   Projects listing page
   ======================================================= */
.projects-list { background: var(--bg); }
.projects-list__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.project-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-decoration: none;
  color: inherit;
  transition: transform .5s var(--ease), border-color .35s ease, box-shadow .5s var(--ease);
  isolation: isolate;
}
.project-card:active { transform: scale(.99); }
@media (hover: hover) {
  .project-card:hover { transform: translateY(-4px); border-color: rgba(201,163,106,.4); box-shadow: var(--shadow-lg); }
  .project-card:hover .project-card__media img { transform: scale(1.05); filter: saturate(1.05); }
  .project-card:hover .project-card__cta { color: var(--accent-2); }
  .project-card:hover .project-card__cta svg { transform: translateX(-6px); }
}
.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}
.project-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), filter .6s ease;
  filter: saturate(.92);
}
.project-card__count {
  position: absolute;
  inset-inline-end: 12px; top: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(11,12,15,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  font-size: 0.6875rem; letter-spacing: .12em;
  display: inline-flex; align-items: center; gap: 6px;
}
.project-card__count svg { width: 14px; height: 14px; color: var(--accent); }
.project-card__body {
  padding: 22px;
  display: grid; gap: 10px;
}
.project-card__tag {
  font-size: 0.6563rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.project-card__tag::before {
  content: ''; width: 22px; height: 1px; background: var(--accent);
}
.project-card h3 {
  font-size: 1.375rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.project-card__sum {
  color: var(--text-dim); font-size: 0.9063rem; line-height: 1.65; margin: 0;
}
.project-card__meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
  color: var(--text-mute);
  font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase;
}
.project-card__meta span strong {
  display: block;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 0.9375rem;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}
.project-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 600; font-size: 0.875rem;
  transition: color .25s ease;
}
.project-card__cta svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }

.projects-list__filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.projects-list__filters::-webkit-scrollbar { display: none; }

/* =======================================================
   Project detail page
   ======================================================= */
.project-detail { background: var(--bg); }
.project-detail__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-bottom: 36px;
}
.project-detail__intro { display: grid; gap: 16px; }
.project-detail__intro h2 {
  font-size: clamp(1.375rem, 4.6vw, 2rem);
  line-height: 1.25;
  color: var(--text);
}
.project-detail__intro p {
  color: var(--text-dim); font-size: 0.9688rem; line-height: 1.85; margin: 0;
}
.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  align-self: start;
}
.project-meta__item {
  display: grid; gap: 4px;
  padding: 10px 6px;
  border-inline-start: 2px solid rgba(201,163,106,.3);
  padding-inline-start: 12px;
}
.project-meta__item dt {
  font-size: 0.625rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-mute);
}
.project-meta__item dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.3;
}

.project-highlights {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
.project-highlights li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-size: 0.9063rem;
  transition: border-color .25s ease, background .25s ease;
}
.project-highlights li::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201,163,106,.15);
}
@media (hover: hover) {
  .project-highlights li:hover { border-color: rgba(201,163,106,.35); background: rgba(201,163,106,.04); }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform .5s var(--ease), border-color .35s ease;
}
.gallery__item:active { transform: scale(.99); }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .5s ease;
  filter: saturate(.92);
}
@media (hover: hover) {
  .gallery__item:hover { border-color: rgba(201,163,106,.4); }
  .gallery__item:hover img { transform: scale(1.06); filter: saturate(1.05); }
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset-inline-end: 12px; bottom: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(11,12,15,.75);
  border: 1px solid rgba(255,255,255,.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a36a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/><path d='M11 8v6'/><path d='M8 11h6'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 18px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
@media (hover: hover) {
  .gallery__item:hover::after { opacity: 1; transform: none; }
}

.project-nav {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.project-nav a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  color: var(--text);
  transition: border-color .25s ease, background .25s ease, transform .35s var(--ease);
}
.project-nav a small {
  display: block;
  font-size: 0.6563rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.project-nav a strong { font-family: var(--font-serif); font-size: 1rem; font-weight: 500; }
.project-nav a svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.project-nav a:active { transform: scale(.99); }
@media (hover: hover) {
  .project-nav a:hover { border-color: rgba(201,163,106,.4); background: rgba(201,163,106,.04); }
}

.project-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-dim);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5, 6, 9, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__stage {
  position: relative;
  max-width: min(1200px, 96vw);
  max-height: 86vh;
  display: grid; place-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  transition: opacity .25s ease;
}
.lightbox__btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: grid; place-items: center;
  transition: all .25s ease;
  z-index: 2;
}
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn:hover { background: var(--accent); color: #1a1208; border-color: var(--accent); }
.lightbox__btn--prev { inset-inline-end: 4px; }
.lightbox__btn--next { inset-inline-start: 4px; }
.lightbox__close {
  position: absolute;
  top: 18px; inset-inline-end: 18px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: grid; place-items: center;
  transition: all .25s ease;
  z-index: 3;
}
.lightbox__close:hover { background: var(--accent); color: #1a1208; border-color: var(--accent); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__counter {
  position: absolute;
  bottom: 18px; inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  font-size: 0.75rem; letter-spacing: .14em;
  font-family: var(--font-serif);
}
body.lightbox-open { overflow: hidden; }

/* =======================================================
   ≥ 640px — tablet portrait
   ======================================================= */
@media (min-width: 640px) {
  :root { --pad-x: 28px; --nav-h: 72px; }
  .section { padding-block: 90px; }
  .hero { padding: calc(var(--nav-h) + 50px) 0 110px; }
  .hero__inner { gap: 28px; }
  .hero__lede { font-size: 1rem; }
  .hero__meta { gap: 20px; padding-top: 28px; margin-top: 30px; }
  .hero__meta div { padding: 0 18px; }
  .hero__meta dd { font-size: 2.75rem; }
  .hero__meta dt { font-size: 0.6875rem; letter-spacing: .2em; }
  .marquee__track { font-size: 1.75rem; }
  .marquee__item .sep { margin-inline: 26px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .process__list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .projects-list__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .project-highlights { grid-template-columns: repeat(2, 1fr); }
  .project-nav { grid-template-columns: 1fr 1fr; }
  .card { aspect-ratio: 1; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat strong { font-size: 3.25rem; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: start; }
  .section-head { margin-bottom: 50px; }
  .wa__label { display: inline; }
  .wa { padding: 14px 20px 14px 14px; }
}

/* =======================================================
   ≥ 900px — tablet landscape / small laptop
   ======================================================= */
@media (min-width: 900px) {
  :root { --pad-x: 32px; --nav-h: 78px; }
  .section { padding-block: 110px; }
  .section-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; }

  .nav { display: block; }
  .nav__list {
    list-style: none; padding: 0; margin: 0;
    display: flex; align-items: center; gap: 4px;
  }
  .nav__list a {
    padding: 10px 14px; border-radius: 100px; font-size: 0.875rem;
    font-weight: 500; color: var(--text-dim);
    transition: color .25s ease, background .25s ease;
    position: relative;
  }
  .nav__list a:hover { color: var(--text); background: rgba(255,255,255,.04); }
  .nav__list a.is-active,
  .nav__list a[aria-current="page"] { color: var(--accent); }
  .header__cta { display: inline-flex; padding: 10px 20px; font-size: 0.875rem; min-height: 42px; }
  .menu-toggle { display: none; }

  .hero__scroll {
    display: grid;
    position: absolute; bottom: 30px; inset-inline-start: 50%;
    transform: translateX(50%);
    color: var(--text-dim);
    justify-items: center; gap: 8px;
    font-size: 0.6875rem; letter-spacing: .3em; text-transform: uppercase;
    z-index: 3;
  }
  .hero__scroll-line {
    width: 1px; height: 46px; background: linear-gradient(180deg, transparent, var(--accent));
    position: relative; overflow: hidden;
  }
  .hero__scroll-line::after {
    content: ''; position: absolute; inset: 0;
    background: var(--text);
    animation: scrollDown 2.2s ease-in-out infinite;
  }
  @keyframes scrollDown {
    0% { transform: translateY(-100%); }
    60% { transform: translateY(0%); }
    100% { transform: translateY(110%); }
  }

  .about__grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .about__media { max-width: none; }
  .about__image--sub {
    position: absolute;
    inset-inline-end: -30px;
    bottom: -40px;
    width: 46%;
    aspect-ratio: 4/3;
    margin: 0;
  }
  .about__badge {
    width: 120px; height: 120px;
    top: -20px; inset-inline-start: -20px; inset-inline-end: auto;
  }
  .about__badge span { font-size: 0.75rem; letter-spacing: .2em; }
  .about__badge strong { font-size: 1.75rem; }

  .process__list {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }
  .process__list::before {
    content: ''; position: absolute;
    top: 44px; inset-inline: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line-strong), transparent);
  }
  .process__step {
    border: 0; background: transparent;
    border-inline-start: 1px solid var(--line);
    border-radius: 0;
    padding: 20px;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }
  .process__step:first-child { border-inline-start: 0; }
  .process__num {
    grid-row: auto;
    width: 88px; height: 88px;
    margin: 0 auto 24px;
    font-size: 1.75rem;
  }
  .process__step h3 { font-size: 1.25rem; }

  .projects__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    grid-auto-flow: dense;
  }
  .card { grid-column: span 4; aspect-ratio: 1; }
  .card:nth-child(1) { grid-column: span 8; aspect-ratio: 8 / 5; }
  .card:nth-child(4) { grid-column: span 8; aspect-ratio: 8 / 5; }
  .card:nth-child(6) { grid-column: span 8; aspect-ratio: 8 / 5; }
  .card figcaption, .card .card__caption h3 { font-size: 1.25rem; transform: translateY(6px); }
  .card figcaption, .card .card__caption p { font-size: 0.8125rem; transform: translateY(6px); }
  .card:hover figcaption h3, .card:hover .card__caption h3,
  .card:hover figcaption p, .card:hover .card__caption p { transform: translateY(0); }

  .testi { flex: 0 0 calc(50% - 12px); padding: 38px 34px; }
  .testi__quote { font-size: 7.5rem; top: 14px; inset-inline-end: 30px; }
  .testi p { font-size: 1.375rem; }
  .testimonials__nav { justify-content: flex-end; }

  .contact__grid { grid-template-columns: 1fr 1.1fr; gap: 60px; }
  .contact__form { padding: 36px; gap: 18px; }
  .field--2 { grid-template-columns: 1fr 1fr; gap: 14px; }

  .projects-list__grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .project-detail__top { grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
  .project-meta { grid-template-columns: 1fr 1fr; }

  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }

  .stat { padding: 30px 20px; background: none; border: 0; border-inline-start: 1px solid var(--line); border-radius: 0; }
  .stat:first-child { border-inline-start: 0; }
  .stat strong { font-size: clamp(3rem, 6vw, 5rem); }
  .stat span { font-size: 0.875rem; letter-spacing: .1em; }

  .wa { bottom: 24px; inset-inline-start: 24px; }
  .to-top { bottom: 24px; }
  .cursor { display: block; }

  .hero__grid { background-size: 64px 64px; }
  .service { padding: 40px 32px; }
  .service h3 { font-size: 1.5rem; }
}

/* =======================================================
   ≥ 1200px — desktop
   ======================================================= */
@media (min-width: 1200px) {
  .section { padding-block: 130px; }
  .hero__canvas { opacity: .55; }
  .hero__meta dd { font-size: 3.375rem; }
  .stat strong { font-size: 4.5rem; }
}

/* =======================================================
   High density displays — sharper images
   ======================================================= */
@media (min-resolution: 2dppx) {
  .hero__noise { opacity: .35; }
}

/* =======================================================
   Landscape phone — hero fits in view
   ======================================================= */
@media (max-height: 620px) and (orientation: landscape) {
  .hero { min-height: auto; padding: calc(var(--nav-h) + 30px) 0 70px; }
  .hero__meta { margin-top: 18px; padding-top: 16px; }
}

/* =======================================================
   Safe-area inset for notched phones
   ======================================================= */
@supports (padding: max(0px)) {
  .wa { inset-inline-start: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); }
  .to-top { inset-inline-end: max(18px, env(safe-area-inset-right)); }
  .header { padding-top: max(10px, env(safe-area-inset-top)); }
}
