/* ============================================================
   NOIR MEDIA — V2 "AI-Driven Marketing House"
   Design system: noir editorial × AI-tech
   Fonts: Bricolage Grotesque (display) / Instrument Sans (body)
          / IBM Plex Mono (labels, numbers, prompts)
   ============================================================ */

:root {
  --bg: #0A0908;
  --bg-2: #100F0D;
  --surface: #161411;
  --line: #232019;
  --line-strong: #35301F;
  --text: #F2EFE6;
  --text-dim: #A39E8F;
  --text-mute: #6B675C;
  --gold: #C8A55C;
  --gold-bright: #E8C87E;
  --gold-dim: rgba(200, 165, 92, 0.14);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --pad: clamp(20px, 4vw, 64px);
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-10%); }
  30% { transform: translate(3%,-15%); }
  50% { transform: translate(12%,9%); }
  70% { transform: translate(9%,4%); }
  90% { transform: translate(-1%,7%); }
}

::selection { background: var(--gold); color: #0A0908; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- typography ---------- */

.display-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: clamp(52px, 9.5vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 620px;
}

.gold { color: var(--gold); }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-mute);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 18px 32px;
  border: 1px solid var(--gold);
  position: relative;
  overflow: hidden;
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }
.btn .arr { transition: transform 0.35s; }
.btn:hover .arr { transform: translateX(6px); }

.btn-solid { background: var(--gold); color: #0A0908; }
.btn-solid::before { background: var(--gold-bright); }
.btn-solid:hover { color: #0A0908; }

.btn-ghost { color: var(--gold); }
.btn-ghost:hover { color: #0A0908; }

.btn-dark { border-color: #0A0908; color: #0A0908; }
.btn-dark::before { background: #0A0908; }
.btn-dark:hover { color: var(--gold); }

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 34px; width: auto; filter: brightness(1.9) contrast(1.05); }
.nav-logo .tm {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  border: 1px solid var(--line-strong);
  padding: 3px 6px;
  margin-left: 4px;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0A0908;
  background: var(--gold);
  padding: 12px 22px;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--gold-bright); transform: translateY(-2px); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* mobile menu */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}
.mmenu.open { clip-path: inset(0 0 0 0); }
.mmenu-close {
  position: absolute;
  top: 20px;
  right: var(--pad);
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 44px;
  height: 44px;
  font-size: 18px;
}
.mmenu a.mmenu-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 9vw, 56px);
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s, transform 0.4s, color 0.25s;
}
.mmenu.open a.mmenu-link { opacity: 1; transform: none; }
.mmenu a.mmenu-link:hover { color: var(--gold); }
.mmenu a.mmenu-link .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  font-weight: 400;
}
.mmenu-foot {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}

/* ---------- placeholder figures ---------- */

.ph {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.82);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s;
}
.ph:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1.02) brightness(0.96); }
/* very light renders need extra dimming to sit on the dark page */
.ph.ph-dim img { filter: grayscale(1) contrast(1.15) brightness(0.55); }
.ph.ph-dim:hover img { filter: grayscale(0) contrast(1.05) brightness(0.78); }
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 9, 8, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}
.ph-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  background: rgba(10, 9, 8, 0.78);
  border: 1px dashed rgba(200, 165, 92, 0.45);
  padding: 8px 10px;
  backdrop-filter: blur(4px);
}
.ph-tag strong {
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0.14em;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.38) contrast(1.15);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(200, 165, 92, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(10,9,8,0.5) 0%, rgba(10,9,8,0.25) 45%, var(--bg) 96%);
}
/* gold eclipse (logo): above the b&w photo filter (keeps its color) but BELOW
   .hero-bg::after atmosphere gradient, so the scene's haze sits on top of it */
.hero-bg img.hero-eclipse {
  position: absolute;
  top: 11%;
  right: 3.2%;
  left: auto;
  width: clamp(150px, 16vw, 250px);
  height: auto;
  object-fit: contain;
  filter: brightness(1.3) saturate(1.1) contrast(0.98)
          drop-shadow(0 0 52px rgba(200, 165, 92, 0.35));
  opacity: 0.98;
  pointer-events: none;
  animation: eclipse-pulse 7s ease-in-out infinite;
}
@keyframes eclipse-pulse {
  0%, 100% {
    opacity: 0.98;
    transform: scale(1);
    filter: brightness(1.3) saturate(1.1) contrast(0.98)
            drop-shadow(0 0 52px rgba(200, 165, 92, 0.35));
  }
  50% {
    opacity: 0.55;
    transform: scale(1.03);
    filter: brightness(1.5) saturate(1.2) contrast(0.98)
            drop-shadow(0 0 90px rgba(200, 165, 92, 0.6));
  }
}
@media (max-width: 768px) {
  .hero-bg img.hero-eclipse { width: 110px; top: 5%; right: 4%; }
}
.hero-bg-tag {
  position: absolute;
  top: calc(var(--nav-h) + 16px);
  right: 16px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--gold-bright);
  background: rgba(10, 9, 8, 0.78);
  border: 1px dashed rgba(200, 165, 92, 0.45);
  padding: 8px 10px;
  max-width: 340px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 32px;
}
.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-live {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 165, 92, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(200, 165, 92, 0); }
}
/* Hero headline kept in the DOM for SEO/a11y but not displayed (owner's call:
   clean hero with skyline + eclipse only). */
.hero h1.display-hero {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-sub-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-sub-row .lede { max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hstat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.hstat:last-child { border-right: none; }
.hstat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--text);
  line-height: 1;
}
.hstat .num em { color: var(--gold); font-style: normal; }
.hstat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 10px;
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-2);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll-x 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-item::after {
  content: "✦";
  color: var(--gold);
  font-size: 14px;
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* gold variant (CTA band) */
.marquee.gold-band {
  background: var(--gold);
  border-color: var(--gold);
}
.marquee.gold-band .marquee-item { color: rgba(10, 9, 8, 0.85); }
.marquee.gold-band .marquee-item::after { color: rgba(10, 9, 8, 0.5); }

/* ---------- sections ---------- */

.section { padding: clamp(80px, 10vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 100px) 0; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 72px);
  flex-wrap: wrap;
}
.sec-head .lede { max-width: 440px; }
.sec-head-l .kicker { margin-bottom: 20px; }

/* ---------- services (numbered rows) ---------- */

.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 90px 1.2fr 1fr 220px;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-row:hover { padding-left: 24px; }
.svc-row:hover::before { width: 4px; }
.svc-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.svc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.svc-row:hover .svc-title { color: var(--gold-bright); }
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  white-space: nowrap;
}
.svc-thumb { height: 130px; }
.svc-thumb .ph-tag { font-size: 8.5px; padding: 5px 7px; left: 8px; right: 8px; bottom: 8px; }
.svc-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold);
  color: #0A0908;
  padding: 4px 9px;
  margin-left: 14px;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(-4px);
}

/* ---------- AI engine section ---------- */

.ai-section {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.ai-visual { position: relative; }
.ai-visual .ph { aspect-ratio: 4 / 3.4; }
.ai-visual-chip {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(16, 15, 13, 0.92);
  border: 1px solid var(--line-strong);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 5s ease-in-out infinite;
}
.ai-visual-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.ai-visual-chip.c1 { top: 8%; right: -14px; }
.ai-visual-chip.c2 { bottom: 16%; left: -18px; animation-delay: 2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.ai-points { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ai-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.ai-point .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}
.ai-point h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ai-point p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ---------- work / case cards ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.work-card:hover { transform: translateY(-8px); border-color: var(--line-strong); }
.work-card .ph { aspect-ratio: 4 / 3; border: none; border-bottom: 1px solid var(--line); }
.work-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.work-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.work-card-meta .cat { color: var(--gold); border: 1px solid rgba(200,165,92,0.35); padding: 4px 9px; }
.work-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.work-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; flex: 1; }
.work-card .result {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.sample-chip {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px dashed var(--line-strong);
  padding: 3px 8px;
}

/* ---------- process ---------- */

.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}
.proc-cell {
  border-right: 1px solid var(--line);
  padding: 32px 26px 40px;
  position: relative;
  transition: background 0.35s;
}
.proc-cell:hover { background: var(--gold-dim); }
.proc-cell .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  transition: color 0.35s, -webkit-text-stroke-color 0.35s;
}
.proc-cell:hover .n { color: var(--gold); -webkit-text-stroke-color: var(--gold); }
.proc-cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  margin: 22px 0 12px;
}
.proc-cell p { font-size: 13.5px; color: var(--text-dim); line-height: 1.75; }
.proc-cell .wk {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 18px;
  display: block;
}

/* ---------- voices / testimonials ---------- */

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice {
  border: 1px solid var(--line);
  padding: 32px 28px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.voice::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  color: var(--gold);
  line-height: 0.6;
  display: block;
}
.voice blockquote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}
.voice .who {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.voice .who .ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.voice .who .ava img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.voice .who .ava-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: var(--gold-dim);
  border-color: rgba(200, 165, 92, 0.4);
}
.voice .who .nm { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.voice .who .rl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin-top: 2px;
}

/* ---------- big CTA ---------- */

.cta-big {
  padding: clamp(90px, 12vw, 180px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-big::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(200, 165, 92, 0.12), transparent 70%);
  pointer-events: none;
}
.cta-big .display-xl { margin: 20px 0 16px; }
.cta-big .lede { margin: 0 auto 40px; }
.cta-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  margin-top: 18px;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: clamp(48px, 6vw, 80px) 0 48px;
}
.foot-brand p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 16px;
}
.foot-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.08em;
}
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 400;
}
.foot-col ul { display: grid; gap: 12px; }
.foot-col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.25s, padding-left 0.25s;
}
.foot-col a:hover { color: var(--gold-bright); padding-left: 6px; }
.foot-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(90px, 17vw, 260px);
  line-height: 0.8;
  text-align: center;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
  transform: translateY(18%);
  transition: -webkit-text-stroke-color 0.5s;
}
.foot-wordmark:hover { -webkit-text-stroke-color: var(--gold); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

/* ---------- page hero (subpages) ---------- */

.page-hero {
  padding: calc(var(--nav-h) + clamp(60px, 9vw, 120px)) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 0%, rgba(200, 165, 92, 0.07), transparent 60%);
  pointer-events: none;
}
.page-hero .kicker { margin-bottom: 24px; }
.page-hero .lede { margin-top: 24px; }

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.price-card:hover { transform: translateY(-8px); }
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(200, 165, 92, 0.08), var(--bg-2) 45%);
}
.price-card .flag {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--gold);
  color: #0A0908;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.price-card .tier {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
}
.price-card .for {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}
.price-card .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
}
.price-card .amount small {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.price-card .desc { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.price-feats { display: grid; gap: 11px; flex: 1; }
.price-feats li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
  line-height: 1.55;
}
.price-feats li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
}
.price-card .btn { justify-content: center; }
.price-perday {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-align: center;
  letter-spacing: 0.08em;
}

/* ---------- team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  gap: 32px;
  justify-content: center;
}
.team-card { position: relative; }
.team-card .ph { aspect-ratio: 3 / 4; }
.team-card .ph img { filter: grayscale(1) contrast(1.05); }
.team-card:hover .ph img { filter: grayscale(0); }
.team-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  margin-top: 18px;
}
.team-card .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}
.team-card p { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-top: 12px; }

/* ---------- forms / contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
}
.c-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.c-item .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.c-item .v { font-size: 15px; color: var(--text); text-align: right; }
.c-item .v a:hover { color: var(--gold-bright); }
.form-grid { display: grid; gap: 20px; }
.form-grid .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: block;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 15px 16px;
  transition: border-color 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 20px);
  text-align: left;
  padding: 26px 48px 26px 0;
  position: relative;
  transition: color 0.25s;
}
.faq-q:hover { color: var(--gold-bright); }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--gold);
  transition: transform 0.3s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a p { padding: 0 0 26px; color: var(--text-dim); font-size: 14.5px; line-height: 1.8; max-width: 720px; }

/* ---------- comparison table ---------- */

.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); }
.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 13.5px;
}
.cmp th, .cmp td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-2);
  font-weight: 400;
}
.cmp td { color: var(--text-dim); }
.cmp td:first-child { color: var(--text); }
.cmp tr:hover td { background: rgba(200, 165, 92, 0.04); }

/* ---------- reveal on scroll ---------- */

.rv {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; }

/* prefers-reduced-motion intentionally ignored site-wide (owner's call, 2026-08-27) */

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .svc-row { grid-template-columns: 60px 1fr 190px; }
  .svc-tags { display: none; }
  .work-grid, .voices-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hstat:nth-child(2n) { border-right: none; }
  .hstat { border-bottom: 1px solid var(--line); }
  .ai-grid, .contact-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .svc-row { grid-template-columns: 44px 1fr; }
  .svc-thumb { display: none; }
  .work-grid, .voices-grid { grid-template-columns: 1fr; }
  .form-grid .row2 { grid-template-columns: 1fr; }
  .hero-bg-tag { display: none; }
}

@media (max-width: 560px) {
  .proc-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Khmer typography fixes ---------- */
/* Khmer script stacks diacritics above/below the baseline: tight line-height
   plus per-line overflow clipping (hero rise animation) cuts glyphs apart. */

html[lang="km"] {
  --font-display: "Bricolage Grotesque", "Noto Sans Khmer", sans-serif;
  --font-body: "Instrument Sans", "Noto Sans Khmer", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans Khmer", monospace;
}
html[lang="km"] .display-xl,
html[lang="km"] .display-lg {
  line-height: 1.3;
  letter-spacing: 0;
}
html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] h3, html[lang="km"] h4 {
  line-height: 1.35;
}
html[lang="km"] .svc-title { line-height: 1.4; }

/* ---------- language switcher ---------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  padding: 8px 10px;
  margin-right: 14px;
  transition: border-color 0.25s, opacity 0.25s;
  white-space: nowrap;
}
.lang-switch svg { width: 27px; height: 18px; display: block; opacity: 0.82; transition: opacity 0.25s; }
.lang-switch:hover { border-color: var(--gold); }
.lang-switch:hover svg { opacity: 1; }
.mmenu-lang svg { width: 27px; height: 18px; display: inline-block; vertical-align: -3px; margin-right: 10px; }
@media (max-width: 820px) {
  .nav .lang-switch { display: inline-flex; margin-right: 10px; }
  .nav-logo { font-size: 18px; white-space: nowrap; }
}

/* ---------- footer social icons ---------- */

.foot-col a.soc {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.fico {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--gold);
  opacity: 0.75;
  transition: opacity 0.25s, color 0.25s;
}
.foot-col a.soc:hover .fico {
  opacity: 1;
  color: var(--gold-bright);
}

/* ---------- service page hero background (blended service graphic) ---------- */

.page-hero { overflow: hidden; }
.phero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.phero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.55);
  opacity: 0.45;
}
.phero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.85) 0%, rgba(10, 9, 8, 0.55) 45%, rgba(10, 9, 8, 0.22) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.5) 0%, rgba(10, 9, 8, 0.22) 45%, var(--bg) 100%);
}
.page-hero .container { position: relative; z-index: 1; }

/* ---------- responsive grid utilities (replace inline grid styles) ---------- */

.proc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.price-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.price-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.hero-stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.svc-row.svc-row-slim { grid-template-columns: 1fr auto; align-items: center; }

@media (max-width: 1100px) {
  .proc-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid.cols-3 { grid-template-columns: 1fr; }
  .price-grid.cols-3 .price-card.featured { order: -1; }
  /* slim rows keep their price tag visible even though svc-tags hide elsewhere */
  .svc-row.svc-row-slim { grid-template-columns: 1fr auto; }
  .svc-row-slim .svc-tags { display: flex; }
}

@media (max-width: 820px) {
  .price-grid.cols-2 { grid-template-columns: 1fr; }
  .hero-stats-grid.cols-3 { grid-template-columns: 1fr; }
  .hero-stats-grid.cols-3 .hstat { border-right: none; }
  .svc-row.svc-row-slim { grid-template-columns: 1fr auto; }
}

@media (max-width: 560px) {
  .proc-grid.cols-3 { grid-template-columns: 1fr; }
  .svc-row.svc-row-slim { grid-template-columns: 1fr; }
  .svc-row-slim .svc-tags { display: flex; }
}
