/* ---------- Design tokens (defaults — themes override below) ---------- */
:root {
  --bg: #13110e;
  --bg-elev: #1c1917;
  --bg-elev-2: #25211d;
  --text: #e9e3d6;
  --text-dim: #a09a8b;
  --text-mute: #6e6859;
  --border: rgba(233, 227, 214, 0.07);
  --border-strong: rgba(233, 227, 214, 0.18);
  --accent: #c9a96e;
  --accent-2: #c9a96e;
  --accent-dim: #a78a55;
  --accent-glow: rgba(201, 169, 110, 0.22);
  --on-accent: #13110e;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1440px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- Custom cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, [data-cursor] { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(237, 237, 237, 0.45);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(212, 255, 62, 0.08);
  border-color: var(--accent);
}
.cursor-ring.is-hover.is-link {
  mix-blend-mode: difference;
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 9998;
  transform: translateY(100%);
  pointer-events: none;
}
.curtain.entering {
  animation: curtain-in 0.55s var(--ease) forwards;
}
.curtain.leaving {
  animation: curtain-out 0.55s var(--ease) forwards;
}
@keyframes curtain-in {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
@keyframes curtain-out {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* ---------- Layout primitives ---------- */
.container {
  width: 90%;
  max-width: var(--container);
  margin-inline: auto;
}
.section {
  padding-block: clamp(3rem, 7.5vw, 6rem);
  position: relative;
}
.section-tag {
  display: inline-flex;
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.section-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.display-xl {
  font-size: clamp(2.5rem, 6.5vw, 6rem);
}
.display-lg {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 1.05;
}
.display-md {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
}
.italic { font-style: italic; }
.accent { color: var(--accent); }
.muted { color: var(--text-dim); }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
p { color: var(--text-dim); }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text);
  max-width: 60ch;
  line-height: 1.55;
}

/* Small inline note / disclaimer beneath a lead */
.footnote {
  margin-top: 1.25rem;
  max-width: 56ch;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);   /* WCAG-AA contrast */
  letter-spacing: 0.01em;
  border-left: 1px solid var(--border-strong);
  padding-left: 0.9rem;
}
.footnote em { font-style: italic; }

/* ---------- Hero text reveal ---------- */
.reveal-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.05em 0.18em;
  margin: -0.06em -0.05em -0.18em;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: reveal-line 1.1s var(--ease-out) forwards;
}
.reveal-line:nth-child(1) > span { animation-delay: 0.10s; }
.reveal-line:nth-child(2) > span { animation-delay: 0.22s; }
.reveal-line:nth-child(3) > span { animation-delay: 0.34s; }
.reveal-line:nth-child(4) > span { animation-delay: 0.46s; }
@keyframes reveal-line {
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--border-strong);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.magnetic { will-change: transform; }
.btn > svg { flex-shrink: 0; }
.btn { flex-wrap: nowrap; line-height: 1.2; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  padding-inline: max(5%, calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,10,10,0.85), rgba(10,10,10,0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10,10,10,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

/* ---------- Brand / logo (used in nav and footer) ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  line-height: 1;
}
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7em;             /* scales with the wrapper's font-size */
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text);
  position: relative;
  padding-right: 0.18em;        /* room for the dot */
  transition: color 0.3s var(--ease);
}
.brand-mark em { font-style: italic; }
.brand-mark::after {
  content: "";
  position: absolute;
  bottom: 0.06em;
  right: 0;
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: brand-pulse 2.8s ease-in-out infinite;
}
@keyframes brand-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.35); }
}
.brand-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1em;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover .brand-mark { color: var(--accent); }

/* Larger variant for footer */
.brand-lg {
  font-size: 1.05rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 0.92rem;
}
.nav-links a {
  position: relative;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { width: 100%; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
    width: 28px;
    padding: 6px 0;
  }
  .nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta .btn { display: none; }
}

/* ---------- 404 page hero ---------- */
.error-hero {
  min-height: 100vh;
  padding-block: 12rem 6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
.error-hero .section-tag,
.error-hero .display,
.error-hero .lead,
.error-hero .row {
  position: relative;
  z-index: 2;
}
.error-code {
  position: absolute;
  top: 50%;
  right: -2vw;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(10rem, 28vw, 24rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
@media (max-width: 720px) {
  .error-code {
    top: 14%;
    right: -2rem;
    transform: none;
    font-size: clamp(7rem, 38vw, 14rem);
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 8rem 4rem;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4;
  perspective: 1200px;
}

/* Editorial cover composition */
.hero-cover {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--accent-glow) 30%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out), border-color 0.4s var(--ease);
}
.hero-cover:hover {
  transform: rotateY(-3deg) rotateX(2deg) scale(1.01);
  border-color: var(--accent);
}

/* Subtle accent rule along the top edge */
.hero-cover::before {
  content: "";
  position: absolute;
  top: 0; left: clamp(1.5rem, 3vw, 2.25rem); right: clamp(1.5rem, 3vw, 2.25rem);
  height: 2px;
  background: var(--accent);
  opacity: 0.7;
}
/* Edge tick mark — bottom right */
.hero-cover::after {
  content: "—";
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.25rem);
  right: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.cover-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  padding-top: 0.25rem;
}
.cover-top em {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  margin-left: 0.15em;
}

.cover-stage {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  min-height: 0;
}
.cover-mark {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.85;
  font-size: clamp(3.5rem, 8.5vw, 7.5rem);
  letter-spacing: -0.03em;
  color: var(--text);
  position: relative;
  z-index: 1;
  display: inline-block;
  /* Drop a small registration mark to give it print-feel */
  padding: 0 0.05em;
}
.cover-mark em {
  color: var(--accent);
  font-style: italic;
  display: inline-block;
}

.cover-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}
.cover-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.cover-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}
.cover-val {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text);
  text-align: right;
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ---------- About page hero (compact info card) ---------- */
.about-hero-inner {
  grid-template-columns: 1.5fr 0.7fr;
  align-items: center;
}
.about-card {
  position: relative;
  background:
    radial-gradient(120% 60% at 50% 10%, color-mix(in srgb, var(--accent-glow) 30%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 2.5vw, 1.75rem);
  right: clamp(1.25rem, 2.5vw, 1.75rem);
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}
.ac-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  padding-top: 0.25rem;
}
.ac-top em {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 0.15em;
}
.ac-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--text);
  padding-block: 0.4rem 0.6rem;
}
.ac-mark em {
  color: var(--accent);
  font-style: italic;
}
.ac-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}
.ac-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.ac-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}
.ac-val {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text);
}

@media (max-width: 880px) {
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-card { display: none; }
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hero-meta-item .label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);   /* WCAG-AA contrast on Anthracite */
}
.hero-meta-item .value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text);
}
.hero-meta-item .value .accent { color: var(--accent); }

.hero-status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  background: var(--bg-elev);
  width: max-content;
  max-width: 100%;
}
.hero-status .live-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: live 2s ease-out infinite;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--border);
  padding-block: 1.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 35s linear infinite;
  flex-shrink: 0;
  padding-right: 4rem;
}
.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4rem;
}
.marquee-item::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Services grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 880px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.4s var(--ease);
  min-height: 260px;
}
.service-card:hover { background: var(--bg-elev); }
.service-card .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: auto;
  padding-bottom: 2.5rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.service-card .arrow-icon {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  width: 18px; height: 18px;
  color: var(--text-mute);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.service-card:hover .arrow-icon {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* ---------- Service feature (full-width "Custom builds" card) ---------- */
.service-feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  isolation: isolate;
  transition: background 0.4s var(--ease);
}
.service-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 100% at 80% 50%, var(--accent-glow), transparent 65%),
    radial-gradient(50% 100% at 20% 50%, color-mix(in srgb, var(--accent-glow) 50%, transparent), transparent 65%);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
.service-feature:hover { background: var(--bg-elev); }

.sf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.sf-tag {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.sf-mark {
  color: var(--accent);
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.sf-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .sf-body {
    grid-template-columns: 1fr 1.1fr;
    text-align: left;
    gap: 3rem;
  }
}

.sf-stage {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--accent);
  min-height: 180px;
}
.sf-orbit {
  width: 90%;
  max-width: 320px;
  height: auto;
  color: var(--accent);
  animation: sf-spin 30s linear infinite;
  transform-origin: center;
}
@keyframes sf-spin {
  to { transform: rotate(360deg); }
}
.sf-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}
.sf-glyph em { font-style: italic; }

.sf-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .sf-content { align-items: flex-start; }
}

.sf-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.sf-headline em {
  color: var(--accent);
  font-style: italic;
}

.sf-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.3s var(--ease);
  width: max-content;
}
.sf-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.sf-cta:hover { gap: 0.8rem; }
.sf-cta:hover svg { transform: translate(2px, -2px); }

@media (prefers-reduced-motion: reduce) {
  .sf-orbit { animation: none; }
}

/* ---------- Project list (Home featured) ---------- */
.project-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.project-row {
  display: grid;
  grid-template-columns: 0.6fr 2fr 1fr 0.4fr;
  align-items: center;
  gap: 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding 0.4s var(--ease);
}
.project-row:hover { padding-inline: 1rem; }
.project-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212,255,62,0.06), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project-row:hover::before { opacity: 1; }
.project-row .num { font-family: var(--font-display); color: var(--text-mute); font-size: 0.95rem; }
.project-row .title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.05;
  transition: color 0.4s var(--ease);
}
.project-row:hover .title { color: var(--accent); font-style: italic; }
.project-row .meta {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.project-row .arrow-icon {
  width: 22px; height: 22px;
  color: var(--text-mute);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
  justify-self: end;
}
.project-row:hover .arrow-icon {
  color: var(--accent);
  transform: translate(6px, -6px);
}
@media (max-width: 720px) {
  .project-row {
    grid-template-columns: 0.4fr 1fr auto;
  }
  .project-row .meta { display: none; }
}

/* ---------- Project preview (image card) ---------- */
.project-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 90% 10%, var(--accent-glow), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elev-2) 50%, transparent), var(--bg));
  z-index: 0;
}
.project-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-mute);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255,255,255,0.02) 18px, rgba(255,255,255,0.02) 36px);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.project-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.project-card .pc-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.1;
}
.project-card .pc-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.project-card .pc-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  transition: all 0.4s var(--ease);
}
.project-card:hover .pc-arrow {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: rotate(45deg);
}

/* ---------- Project card · mockup variant (with real screenshot) ---------- */
.project-card-mockup {
  aspect-ratio: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.project-card-mockup::before { display: none; }

.mockup-window {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev-2);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.mockup-dots {
  display: inline-flex;
  gap: 6px;
  margin-right: 0.85rem;
}
.mockup-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.mockup-url {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.02em;
  flex: 1;
  text-align: center;
  background: var(--bg-elev);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  max-width: 280px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-image {
  position: relative;
  overflow: hidden;
}
.mockup-image img {
  display: block;
  width: 100%;
  height: auto;          /* full screenshot, no crop */
  transition: transform 0.7s var(--ease-out);
}
.project-card-mockup:hover .mockup-image img {
  transform: scale(1.04);
}

.project-card-mockup .project-card-meta {
  position: relative;
  z-index: 2;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.project-card-mockup .pc-arrow {
  position: relative;
  top: auto;
  right: auto;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 5rem 2.5rem;
  margin-top: 6rem;
  position: relative;
}
.footer-cta {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}
.footer-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.2em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-cta a:hover {
  color: var(--accent);
  border-color: var(--accent);
  font-style: italic;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h3.footer-col-title,
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);   /* WCAG-AA contrast */
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-col a.is-active { color: var(--accent); }

/* Icon-button row in the footer Contact column */
.contact-icons {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.contact-icons a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-dim);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-icons a:hover {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.contact-icons svg {
  width: 16px;
  height: 16px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-mute);
  flex-wrap: wrap;
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-portrait {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background:
    radial-gradient(80% 60% at 50% 30%, var(--accent-glow), transparent 60%),
    linear-gradient(180deg, var(--bg-elev), var(--bg));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-prose p { color: var(--text-dim); margin-block: 1.25rem; font-size: 1.05rem; }
.about-prose p strong { color: var(--text); font-weight: 500; }
.about-prose .first-p::first-letter {
  font-family: var(--font-display);
  font-size: 4em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.1em 0 0;
  color: var(--accent);
  font-style: italic;
}

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}
.timeline-body h3,
.timeline-body h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.tools {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 880px) { .tools { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .tools { grid-template-columns: repeat(2, 1fr); } }
.tool {
  background: var(--bg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  transition: background 0.3s var(--ease);
}
.tool:hover { background: var(--bg-elev); }
.tool .name { font-size: 0.95rem; font-weight: 500; }
.tool .role { font-size: 0.78rem; color: var(--text-mute); letter-spacing: 0.05em; }

/* ---------- Projects index page ---------- */
.projects-header {
  padding-top: 8rem;
  padding-bottom: 3rem;
}
.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-chip {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.is-active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
@media (max-width: 720px) { .projects-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials slider ---------- */
.testimonials {
  position: relative;
}
.ts-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-block: 0.5rem 1.5rem;
  cursor: grab;
}
.ts-track::-webkit-scrollbar { display: none; }
.ts-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.ts-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}
.ts-track.is-dragging * { pointer-events: none; }
.ts-btn svg { pointer-events: none; }

.ts-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  scroll-snap-align: start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 320px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.ts-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
@media (max-width: 1100px) { .ts-card { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 720px)  { .ts-card { flex-basis: calc(100% - 0.5rem); } }

.ts-stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  line-height: 1;
}
.ts-quote {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 400;
  margin: 0;
  flex: 1;
  letter-spacing: 0;
}
.ts-quote em { font-style: italic; color: #ffffff; }

.ts-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.ts-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
  color: #ffffff;
}
.ts-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.ts-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: end;
}
.ts-progress {
  flex: 1;
  height: 2px;
  background: var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  max-width: 200px;
}
.ts-bar {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 30%;
  transition: width 0.4s var(--ease);
}
.ts-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text);
  background: transparent;
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 5;
  pointer-events: auto;
  flex-shrink: 0;
}
.ts-btn:hover {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.ts-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.ts-btn:disabled:hover {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.ts-btn svg { width: 18px; height: 18px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form .btn[disabled] {
  opacity: 0.5;
  cursor: progress;
  pointer-events: none;
}

/* Form submission feedback */
.form-status {
  margin-top: 0.5rem;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  animation: fs-in 0.4s var(--ease-out);
}
@keyframes fs-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-status[data-state="success"] {
  border-color: var(--accent);
  background:
    radial-gradient(80% 100% at 0% 50%, var(--accent-glow), transparent 70%),
    var(--bg-elev);
}
.form-status[data-state="success"] .form-status-msg { color: var(--accent); }
.form-status[data-state="error"] {
  border-color: rgba(220, 80, 80, 0.5);
  background: rgba(220, 80, 80, 0.08);
}
.form-status[data-state="error"] .form-status-msg { color: #ff8a8a; }
.form-status-msg {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);   /* WCAG-AA contrast */
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  padding: 0.7rem 0;
  font-size: 1rem;
  color: var(--text);
  outline: 0;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }

/* ---------- Custom <select> replacement (.custom-select) ----------
   Native <select> options can't have padding or hover colors that browsers
   actually respect. So we hide a hidden <input> for form submission and
   render our own button + panel that we can theme freely. */
.custom-select {
  position: relative;
}
.cs-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  padding: 0.7rem 0;
  font-size: 1rem;
  color: var(--text-dim);   /* WCAG-AA contrast for placeholder state */
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.cs-trigger:hover { border-color: var(--text-dim); }
.cs-trigger[aria-expanded="true"] { border-color: var(--accent); }
.custom-select.has-value .cs-trigger { color: var(--text); }

.cs-value {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-chevron {
  width: 14px;
  height: 14px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.cs-trigger[aria-expanded="true"] .cs-chevron {
  transform: rotate(180deg);
}

.cs-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 24px 50px -10px rgba(0,0,0,0.55);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 300px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}
.cs-panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cs-panel li { display: block; }

.cs-option {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  display: block;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.cs-option:hover,
.cs-option.is-active,
.cs-option:focus-visible {
  background: var(--accent);
  color: var(--on-accent);
  outline: 0;
}

/* Custom scrollbar for tall panels */
.cs-panel::-webkit-scrollbar { width: 6px; }
.cs-panel::-webkit-scrollbar-track { background: transparent; }
.cs-panel::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.budget-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 520px) { .budget-row { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-info-block h2,
.contact-info-block h3,
.contact-info-block h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);   /* WCAG-AA contrast */
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  line-height: 1.4;
}
.contact-info-block p, .contact-info-block a { font-size: 1.1rem; color: var(--text); }
.contact-info-block a:hover { color: var(--accent); }
.socials { display: flex; flex-direction: column; gap: 0.5rem; }
.social-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--ease), color 0.3s var(--ease);
}
.social-link:hover { padding-left: 0.75rem; color: var(--accent); }
.social-link .arrow {
  width: 14px; height: 14px;
  transition: transform 0.3s var(--ease);
}
.social-link:hover .arrow { transform: translate(4px, -4px); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  padding: 0.5rem 0;
  gap: 1rem;
}
.faq-q .icon {
  width: 24px; height: 24px;
  position: relative;
  flex-shrink: 0;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: "";
  position: absolute;
  inset: 50% 0;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease);
}
.faq-q .icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-q { color: var(--accent); }
.faq-item.is-open .faq-q .icon::before,
.faq-item.is-open .faq-q .icon::after { background: var(--accent); }
.faq-item.is-open .faq-q .icon::after { transform: rotate(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.4s var(--ease);
  color: var(--text-dim);
}
.faq-item.is-open .faq-a {
  max-height: 400px;
  padding-block: 0.75rem 1rem;
}

/* ---------- Stats marquee ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--border);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > * { border-bottom: 1px solid var(--border); }
  .stats > :nth-child(1), .stats > :nth-child(2) { border-bottom: 1px solid var(--border); }
}
.stat {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stats > :last-child { border-right: 0; }
@media (max-width: 720px) {
  .stat { border-right: 1px solid var(--border); }
  .stats > :nth-child(2n) { border-right: 0; }
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num .accent { color: var(--accent); }
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Tag list ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

/* ---------- Utilities ---------- */
.row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.gap-sm { gap: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 4rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 4rem; }
.center { text-align: center; }
.divider { height: 1px; background: var(--border); margin-block: 3rem; }
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-line > span { transform: none; opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
