/* ==========================================================================
   Huapi Studio — Premium Dark Editorial Design System
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-ExtraBold/inter-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0c;
  --bg-raised: #101014;
  --surface: #131318;
  --surface-2: #17171d;
  --line: rgba(240, 236, 228, 0.09);
  --line-strong: rgba(240, 236, 228, 0.18);
  --text: #f2efe9;
  --text-dim: #cfcac0;
  --muted: #9a958b;
  --accent: #d8c49d;
  --accent-soft: rgba(216, 196, 157, 0.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(80px, 12vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #121212; }

/* Grain overlay */
.grain-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: url('../img/grain.webp') repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 2000;
  animation: grain-shift 9s steps(10) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  30% { transform: translate(3%, -2%); }
  50% { transform: translate(-3%, 2%); }
  70% { transform: translate(2%, 3%); }
  90% { transform: translate(-2%, 1%); }
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
section { position: relative; }
section[id] { scroll-margin-top: 84px; } /* keep anchored sections clear of the fixed header */

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h1, h2, h3, .h2, .display { text-wrap: balance; } /* even line lengths, no orphan words */
p { text-wrap: pretty; } /* avoids single-word last lines where supported */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.display {
  font-size: clamp(2.9rem, 8.2vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-dim); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.eyebrow.centered::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.45s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--text);
  color: #0d0d0f;
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 12px 40px -12px rgba(216, 196, 157, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow .arr { transition: transform 0.35s var(--ease); color: var(--accent); }
.link-arrow:hover .arr { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
/* The blur lives on a pseudo-element: putting backdrop-filter on the header
   itself would make it the containing block for the fixed mobile menu overlay,
   trapping the menu inside the header bar (breaks on Safari/iOS). */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.site-header.scrolled::before { opacity: 1; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 32px; object-fit: contain; transition: transform 0.5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
  transform-origin: right;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 11px 24px; font-size: 0.88rem; }
.x-link { display: inline-flex; opacity: 0.9; transition: opacity 0.3s, transform 0.4s var(--ease); }
.x-link:hover { opacity: 1; transform: translateY(-2px); }
.x-link img { width: 20px; height: 20px; filter: invert(1); border-radius: 4px; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    background: rgba(10, 10, 12, 0.96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    z-index: -1;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    padding: 8px 0;
  }
  .nav-links .nav-cta { margin-top: 18px; font-size: 1rem; padding: 15px 36px; }
  .nav-links .x-link { margin-top: 10px; }
  .nav-links .x-link img { width: 24px; height: 24px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 44% at 70% 8%, rgba(216, 196, 157, 0.08), transparent 70%),
    radial-gradient(40% 38% at 12% 82%, rgba(120, 150, 170, 0.07), transparent 70%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #77d99a;
  box-shadow: 0 0 0 0 rgba(119, 217, 154, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(119, 217, 154, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(119, 217, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(119, 217, 154, 0); }
}
.hero h1 { max-width: 20ch; }
.hero h1 .serif-i { color: var(--accent); }
.rotator {
  display: inline-block;
  position: relative;
  color: var(--accent);
  min-width: 5ch;
  white-space: nowrap;
}
.rotator .word {
  display: inline-block;
  animation: word-in 0.6s var(--ease);
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.35em) rotate(2deg); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}
.hero-sub {
  max-width: 56ch;
  margin-top: clamp(24px, 3.4vw, 40px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(32px, 4.5vw, 52px);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 72px);
  margin-top: clamp(52px, 8vw, 96px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--text);
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--muted), transparent);
  animation: drip 2s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 700px) { .scroll-hint { display: none; } }

/* ---------- Section headers ---------- */
.section-head { margin-bottom: clamp(48px, 7vw, 80px); }
.section-head.centered { text-align: center; }
.section-head .h2 { margin-top: 18px; }
.section-head .lead { margin-top: 18px; max-width: 60ch; }
.section-head.centered .lead { margin-inline: auto; }

/* ---------- Work ---------- */
.section { padding-block: var(--section-pad); }
.section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  row-gap: clamp(56px, 8vw, 104px);
}
@media (max-width: 800px) {
  .work-grid { grid-template-columns: 1fr; }
}
.work-card { position: relative; }
.work-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.work-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(8, 8, 10, 0.5));
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.work-card:hover .work-media::after { opacity: 1; }
.work-media img {
  width: 100%;
  transition: transform 1s var(--ease);
  will-change: transform;
}
.work-card:hover .work-media img { transform: scale(1.045); }
.work-media .visit {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(242, 239, 233, 0.92);
  color: #0d0d0f;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
  z-index: 2;
  pointer-events: none; /* let clicks fall through to the project link */
}
.work-card:hover .visit { opacity: 1; transform: translateY(0); }
/* Touch devices have no hover — keep the pill visible so the card reads as clickable */
@media (hover: none) {
  .work-media .visit { opacity: 1; transform: translateY(0); }
}
.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.work-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}
.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-card h3 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.work-card h3 a { transition: color 0.3s; }
.work-card h3 a:hover { color: var(--accent); }
.work-card p.desc { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.work-card .stretched::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* CTA band */
.cta-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(216, 196, 157, 0.06), transparent 70%),
    var(--bg-raised);
  text-align: center;
  padding-block: clamp(72px, 10vw, 128px);
}
.cta-band .h2 { max-width: 24ch; margin-inline: auto; }
.cta-band .lead { max-width: 52ch; margin: 22px auto 0; }
.cta-band .actions { margin-top: 40px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Services ---------- */
.services-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  margin-bottom: clamp(56px, 8vw, 96px);
}
@media (max-width: 860px) { .services-intro { grid-template-columns: 1fr; } }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.4s var(--ease);
  cursor: default;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 800px) { .offer-grid { grid-template-columns: 1fr; } }
.offer-card {
  position: relative;
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg-raised) 70%);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.5s;
  display: flex;
  flex-direction: column;
}
.offer-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(216, 196, 157, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}
.offer-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.offer-card:hover::before { opacity: 1; }
.offer-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 28px;
  filter: invert(1) hue-rotate(180deg) saturate(0.7);
  opacity: 0.9;
}
.offer-type {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.offer-card h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.offer-card .price {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text-dim);
  margin-top: 6px;
}
.offer-card .price i { font-style: italic; color: var(--muted); font-size: 1.05rem; }
.offer-card p.body { color: var(--muted); margin-top: 16px; margin-bottom: 28px; flex: 1; }
.offer-card .link-arrow { position: static; }
.offer-card .link-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------- Testimonials ---------- */
.testimonials-wrap { position: relative; }
.t-scroll {
  display: flex;
  gap: clamp(18px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.t-scroll::-webkit-scrollbar { display: none; }
.t-scroll.dragging { cursor: grabbing; scroll-snap-type: none; }
.t-card {
  flex: 0 0 min(420px, 84vw);
  scroll-snap-align: start;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.t-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.t-card .quote-mark {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}
.t-card p.t-text { color: var(--text-dim); font-size: 0.95rem; flex: 1; }
.t-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.t-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}
.t-author b { display: block; font-size: 0.95rem; }
.t-author span { font-size: 0.82rem; color: var(--muted); }
.t-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}
.t-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.t-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.t-btn svg { width: 18px; height: 18px; }

/* ---------- Integrations marquee ---------- */
.marquee-section { overflow: hidden; }
.marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 46s linear infinite;
  padding-block: 8px;
}
.marquee:hover { animation-play-state: paused; }
.marquee-row-reverse { animation-direction: reverse; animation-duration: 52s; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-tile {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: var(--radius-sm);
  background: #f4f1ea;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  transition: transform 0.4s var(--ease);
}
.logo-tile:hover { transform: translateY(-4px); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
@media (max-width: 640px) { .logo-tile { width: 88px; height: 88px; padding: 18px; } }
.marquee-fade { position: relative; }
.marquee-fade::before,
.marquee-fade::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 10vw, 160px);
  z-index: 2;
  pointer-events: none;
}
.marquee-fade::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-fade::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-stack { display: grid; gap: 20px; }

/* ---------- About ---------- */
.about-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: clamp(48px, 7vw, 88px);
  aspect-ratio: 21 / 9;
}
@media (max-width: 700px) { .about-figure { aspect-ratio: 16 / 10; } }
.about-figure img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.about-figure figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(242, 239, 233, 0.95);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.about-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.25), transparent 30%, transparent 60%, rgba(10,10,12,0.45));
}
.about-text { max-width: 780px; margin-inline: auto; text-align: center; }
.about-text .big {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.35;
  color: var(--text);
}
.about-text .big em { font-style: italic; color: var(--accent); }
.about-text p.follow { margin-top: 26px; color: var(--muted); max-width: 62ch; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-col { display: grid; gap: clamp(16px, 2vw, 24px); }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--line-strong); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: -0.01em;
}
.faq-q .icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: transform 0.45s var(--ease), border-color 0.3s, background 0.3s;
}
.faq-q .icon::before,
.faq-q .icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.6px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: background 0.3s;
}
.faq-q .icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q .icon {
  transform: rotate(135deg);
  background: var(--accent);
  border-color: var(--accent);
}
.faq-item.open .faq-q .icon::before,
.faq-item.open .faq-q .icon::after { background: #121212; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease);
}
.faq-a-inner {
  padding: 0 26px 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-section {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(216, 196, 157, 0.06), transparent 70%),
    var(--bg-raised);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .h2 { margin-top: 18px; }
.contact-info .lead { margin-top: 20px; max-width: 40ch; }
.contact-email {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  position: relative;
}
.contact-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.contact-email:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-divider { border: none; border-top: 1px solid var(--line); margin-block: 32px; }
.contact-info .sub { color: var(--muted); margin-bottom: 12px; }

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.form-control {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form-control::placeholder { color: var(--muted); }
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(216, 196, 157, 0.12);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.ok { display: block; background: rgba(119, 217, 154, 0.12); color: #9fe6b9; border: 1px solid rgba(119, 217, 154, 0.3); }
.form-status.err { display: block; background: rgba(230, 120, 120, 0.1); color: #eda3a3; border: 1px solid rgba(230, 120, 120, 0.3); }

/* Checkboxes */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-block: 8px 18px;
}
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  font-size: 0.9rem;
  color: var(--text-dim);
  user-select: none;
}
.check:hover { border-color: var(--line-strong); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.check .box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  opacity: 0;
  transition: opacity 0.2s;
}
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box::after { opacity: 1; }
.check input:checked ~ span { color: var(--text); }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(216, 196, 157, 0.25); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.modal-backdrop.show { opacity: 1; visibility: visible; }
.modal-panel {
  width: min(680px, 100%);
  max-height: min(86vh, 860px);
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.45s var(--ease);
  overscroll-behavior: contain;
}
.modal-backdrop.show .modal-panel { transform: translateY(0) scale(1); }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.modal-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.modal-head p { color: var(--muted); margin-top: 8px; font-size: 0.92rem; }
.modal-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
.form-section-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin: 24px 0 4px;
}
body.modal-open { overflow: hidden; }

/* ---------- Quote ---------- */
.quote-section {
  text-align: center;
  padding-block: clamp(88px, 13vw, 176px);
}
.quote-section blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.4;
  max-width: 30ch;
  margin-inline: auto;
  color: var(--text);
}
.quote-section blockquote em { font-style: italic; color: var(--accent); }
.quote-section cite {
  display: block;
  margin-top: 28px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.footer-brand img { width: 34px; height: 27px; object-fit: contain; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.82rem; color: var(--muted); }
.to-top {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.to-top svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Legal pages ---------- */
.legal-hero { padding-top: clamp(150px, 20vw, 220px); padding-bottom: clamp(40px, 6vw, 64px); }
.legal-hero .muted { margin-top: 18px; }
.legal-body { padding-bottom: var(--section-pad); max-width: 760px; }
.legal-body h2 {
  font-size: 1.35rem;
  margin-top: 44px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.legal-body h3 { font-size: 1.05rem; margin-top: 26px; margin-bottom: 8px; }
.legal-body p { color: var(--muted); margin-bottom: 14px; }
.legal-body a { color: var(--accent); }
.legal-body a:hover { text-decoration: underline; }

/* 404 */
.page-404 {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
}
.page-404 .code {
  font-family: var(--serif);
  font-size: clamp(7rem, 24vw, 15rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.04em;
}
.page-404 .code em { font-style: italic; color: var(--accent); }
.page-404 h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 8px; }
.page-404 p { color: var(--muted); margin-top: 16px; max-width: 44ch; }
.page-404 .btn { margin-top: 36px; }
