/* ============== Tokens ============== */
:root {
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-text: #042f2c;

  --bg: #f7f7f4;
  --bg-elev: #ffffff;
  --bg-mute: #efeee8;
  --text: #0a0a0a;
  --text-mute: #5b605f;
  --border: #e8e6df;
  --border-strong: #d4d0c4;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 1px 2px rgba(10,10,10,0.04);
  --shadow: 0 6px 24px -8px rgba(10,10,10,0.08), 0 2px 6px -2px rgba(10,10,10,0.04);
  --shadow-lg: 0 30px 60px -20px rgba(10,10,10,0.18), 0 12px 24px -8px rgba(10,10,10,0.08);

  --container: 1240px;

  --ff-display: 'Inter', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0a0d0c;
  --bg-elev: #14191a;
  --bg-mute: #1a201f;
  --text: #f5f5f1;
  --text-mute: #9ba39e;
  --border: #232a29;
  --border-strong: #2f3835;
  --accent-soft: #134e4a;
  --accent-text: #ccfbf1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 8px 30px -10px rgba(0,0,0,0.5);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  letter-spacing: -0.05em;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============== Typography ============== */
.display {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-wrap: balance;
}
.h1 { font-size: clamp(40px, 5.8vw, 76px); }
.h2 { font-size: clamp(26px, 2.8vw, 42px); }
.h3 { font-size: clamp(22px, 2.2vw, 32px); }
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--text-mute);
  text-wrap: pretty;
  max-width: 60ch;
}

/* ============== Nav ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: backdrop-filter 0.3s, background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
  font-size: 15px;
  color: var(--text-mute);
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  background: var(--bg-elev);
}
.theme-toggle:hover { background: var(--bg-mute); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--text); }
.btn-dark {
  background: var(--text);
  color: var(--bg);
}
.btn-dark:hover { transform: translateY(-1px); }
.btn-lg {
  padding: 18px 28px;
  font-size: 16px;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ============== Hero ============== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px color-mix(in srgb, #10b981 30%, transparent);
  position: relative;
}
.hero-tag .dot::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-title { margin: 0 0 28px; }
.hero-title .accent-word {
  position: relative;
  display: inline-block;
  color: var(--accent);
}
.hero-title .accent-word::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: var(--accent);
  opacity: 0.18;
  border-radius: 4px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta-item .num {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}
.hero-meta-item .lbl {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 8px;
  display: block;
}

/* Hero image */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  /* no overflow:hidden — floaters need to escape */
}
.hero-visual-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-mute), var(--bg-elev));
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.hero-visual:hover .hero-visual-frame img { transform: scale(1.03); }

.hero-visual.split {
  display: grid;
  grid-template-rows: 1fr auto;
  aspect-ratio: auto;
  min-height: 560px;
}

.hero-visual.minimal {
  background: var(--accent-soft);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  position: relative;
}

/* Animated blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  opacity: 0.18;
  top: -100px; right: -100px;
  animation: blob1 20s ease-in-out infinite;
}
.blob-2 {
  width: 400px; height: 400px;
  background: #38bdf8;
  opacity: 0.12;
  bottom: -150px; left: -150px;
  animation: blob2 25s ease-in-out infinite;
}
[data-theme="dark"] .blob-1 { opacity: 0.28; }
[data-theme="dark"] .blob-2 { opacity: 0.18; }
@keyframes blob1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-60px, 80px) scale(1.1); }
  66% { transform: translate(40px, -50px) scale(0.95); }
}
@keyframes blob2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.15); }
}

.hero-visual .floater {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-visual .floater-1 { top: 8%; left: -28px; animation-delay: 0s; }
.hero-visual .floater-2 { bottom: 8%; right: -28px; animation-delay: 1.5s; }

.floater .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
[data-theme="dark"] .floater .icon { color: var(--accent-soft); background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ============== Marquee ============== */
.marquee-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee {
  display: flex;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 64px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text-mute);
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  display: flex; align-items: center; gap: 64px;
}
.marquee-item:hover { opacity: 1; color: var(--text); }
.marquee-item::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
}
.marquee-item:last-child::after { display: none; }

/* ============== Sections ============== */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 768px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}
.section-head h2 { margin: 16px 0 0; }
.section-head .lead { margin: 0; }

/* ============== Services ============== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  position: relative;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
  cursor: default;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--bg-mute);
  display: grid; place-items: center;
  color: var(--text);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: white;
  transform: rotate(-6deg) scale(1.05);
}
.service-card h3 {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.service-card p {
  margin: 0;
  color: var(--text-mute);
  font-size: 15.5px;
  line-height: 1.55;
}
.service-list {
  margin: auto 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  list-style: none;
}
.service-list li {
  font-size: 14px;
  color: var(--text-mute);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
  transition: color 0.2s;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.service-card:hover .service-list li { color: var(--text); }

/* Card style variants */
.cards-flat .service-card { background: var(--bg-mute); border-color: transparent; }
.cards-outlined .service-card { background: transparent; }
.cards-3d .service-card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-mute));
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--bg-elev) inset, 0 -10px 30px -10px rgba(0,0,0,0.06) inset, var(--shadow);
}
.cards-3d .service-card:hover {
  box-shadow: 0 1px 0 var(--bg-elev) inset, 0 -10px 30px -10px rgba(0,0,0,0.06) inset, var(--shadow-lg);
}
.cards-noicons .service-icon { display: none; }
.cards-noicons .service-card h3 { margin-top: 0; }

/* ============== About ============== */
.about {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: stretch;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-mute);
  min-height: 320px;
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.6s, filter 0.6s;
}
.about-photo:hover img { transform: scale(1.04); filter: saturate(1); }
.about-photo .sticker {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-text h2 { margin: 12px 0 4px; }
.about-text p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0;
}
.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}
.counter {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.counter .num {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 2px;
}
.counter .num .plus { font-size: 28px; color: var(--accent); }
.counter .lbl {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-mute);
}

/* ============== Cases ============== */
.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
  color: var(--text);
}
.case-card:hover { transform: translateY(-3px); }
.case-card.dark {
  background: #14191a;
  color: #f5f5f1;
  border: 1px solid #14191a;
}
.case-card.dark:hover { border-color: var(--accent); }
.case-card.accent {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}
.case-card.accent:hover { border-color: var(--text); }
.case-card.light {
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.case-card.light:hover { border-color: var(--accent); }
.case-card .case-tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  width: max-content;
  backdrop-filter: blur(10px);
}
.case-card.light .case-tag { background: var(--bg-mute); }
.case-card h3 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
  line-height: 1.05;
}
.case-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.85;
}
.case-card .case-stats {
  display: flex; gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.case-card.light .case-stats { border-color: var(--border); }
.case-card .case-stat .v {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.case-card .case-stat .k {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.75;
}

/* ============== Process ============== */
.process {
  background: var(--bg-mute);
}
[data-theme="dark"] .process { background: var(--bg-elev); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 960px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }
.step {
  padding: 28px 24px;
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
[data-theme="dark"] .step { background: var(--bg); }
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.step-num {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.step h4 {
  margin: 16px 0 0;
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.step p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ============== Testimonials ============== */
.testi {
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
  gap: 24px;
  min-height: 280px;
}
.testi .quote { flex: 1; }
.testi .who { margin-top: auto; }
.testi:hover { border-color: var(--accent); transform: translateY(-3px); }
.testi .quote {
  font-family: var(--ff-display);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  flex: 1;
}
.testi .quote::before {
  content: '“';
  display: inline-block;
  font-size: 56px;
  line-height: 0.3;
  color: var(--accent);
  vertical-align: -0.3em;
  margin-right: 4px;
  font-weight: 800;
}
.testi .who {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}
.testi .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-mute);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.testi .name { font-weight: 600; }
.testi .role { color: var(--text-mute); font-size: 13px; }

/* carousel — cases + testimonials */
.carousel-viewport {
  overflow: hidden;
  padding: 4px 4px 10px;
  margin: -4px;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 20px;
}
.carousel-dots {
  display: flex; gap: 8px;
}
.carousel-dots .dot {
  width: 28px; height: 6px;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  border: none;
  padding: 0;
}
.carousel-dots .dot.on {
  background: var(--accent);
  width: 44px;
}
.carousel-nav {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text-mute);
}
.nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  display: grid; place-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s;
  color: var(--text);
}
.nav-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.nav-btn:active { transform: scale(0.95); }
.nav-btn:disabled { opacity: 0.35; pointer-events: none; }
.nav-count { min-width: 64px; text-align: center; letter-spacing: 0.04em; }

/* ============== FAQ ============== */
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  gap: 24px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-toggle {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: transform 0.3s, background 0.2s, border-color 0.2s, color 0.2s;
}
.faq-item.open .faq-toggle {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: rotate(45deg);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(.2,.7,.2,1);
}
.faq-a > div {
  overflow: hidden;
}
.faq-a-inner {
  padding-bottom: 28px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 760px;
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

/* ============== Contact ============== */
.contact {
  background: #121a19;
  color: #f5f5f1;
  border-radius: var(--radius-xl);
  margin: 0 32px 60px;
  padding: 80px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .contact { padding: 40px 28px; margin: 0 16px 40px; } }
.contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) { .contact .contact-grid { grid-template-columns: 1fr; } }
.contact h2 { margin: 16px 0 24px; color: #f5f5f1; }
.contact .lead { color: rgba(245,245,241,0.7); }
.contact .eyebrow { color: rgba(245,245,241,0.6); }
.contact .contact-blob {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.5;
  top: -100px; right: -100px;
  animation: blob1 18s ease-in-out infinite;
  z-index: 0;
}
.inline-form {
  display: grid;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 32px;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.inline-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .inline-form .row { grid-template-columns: 1fr; } }
.inline-form .field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  color: #f5f5f1;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.inline-form .field:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}
.inline-form .field::placeholder { color: rgba(245,245,241,0.5); }
.inline-form textarea.field { resize: vertical; min-height: 100px; }
.inline-form .submit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.inline-form .consent {
  font-size: 12px;
  color: rgba(245,245,241,0.5);
  max-width: 280px;
  line-height: 1.4;
}

.contact-channels {
  display: grid; gap: 12px;
  margin-top: 36px;
}
.contact-channel {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  color: #f5f5f1;
}
.contact-channel:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  transform: translateX(4px);
}
.contact-channel .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-channel .meta { display: flex; flex-direction: column; gap: 2px; }
.contact-channel .meta .k { font-size: 12px; opacity: 0.6; }
.contact-channel .meta .v { font-weight: 500; font-size: 15px; }
.contact-channel .arrow-r { margin-left: auto; opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.contact-channel:hover .arrow-r { opacity: 1; transform: translateX(3px); }

/* ============== Footer ============== */
.process-cta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.process-cta span { font-size: 16px; color: var(--text-mute); }
.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: opacity 0.2s;
}
.text-link:hover { opacity: 0.75; }

/* ============== Publications & Academia ============== */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.pub-card {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  color: var(--text);
}
.pub-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.pub-cover { aspect-ratio: 16 / 10; background: var(--bg-mute); overflow: hidden; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pub-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--text-mute);
  width: max-content;
}
.pub-tag svg { width: 16px; height: 16px; color: var(--accent); }
.pub-card h3 {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 14px 0 6px;
}
.pub-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-mute);
  flex: 1;
}
.pub-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pub-date { font-family: var(--ff-mono); font-size: 12px; color: var(--text-mute); }
.pub-read {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--accent);
}
.pub-read svg { transition: transform 0.2s; }
.pub-read:hover svg { transform: translate(2px, -2px); }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.exp-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
[data-theme="dark"] .exp-card { background: var(--bg); }
.exp-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.exp-photo { position: relative; aspect-ratio: 4 / 3; background: var(--bg-mute); overflow: hidden; }
.exp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.static-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-mute); border: 1px dashed var(--border-strong); box-sizing: border-box; }
.static-ph span { font-size: 12px; text-align: center; padding: 0 16px; }
.exp-photo-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(10,10,10,0.5); color: white;
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
  z-index: 2; border: none;
}
.exp-photo:hover .exp-photo-nav { opacity: 1; }
.exp-photo-nav:hover { background: rgba(10,10,10,0.75); }
.exp-photo-nav.prev { left: 10px; }
.exp-photo-nav.next { right: 10px; }
.exp-photo-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2;
}
.exp-photo-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background 0.2s, width 0.2s; }
.exp-photo-dots span.on { background: white; width: 14px; border-radius: 3px; }
.exp-card-body { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; }
.exp-icon-sm {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-mute); color: var(--accent);
  display: grid; place-items: center; flex-shrink: 0;
}
.exp-card-text { min-width: 0; }
.exp-org { font-weight: 600; font-size: 15px; }
.exp-sub { font-size: 12.5px; color: var(--text-mute); line-height: 1.4; margin-top: 2px; }
.exp-meta {
  margin-left: auto; flex-shrink: 0; padding-left: 8px;
  font-family: var(--ff-mono); font-size: 11px; color: var(--text-mute);
  text-align: right; white-space: nowrap;
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 14px;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }

/* ============== Modal ============== */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 540px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-back.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-mute);
  transition: background 0.2s, transform 0.2s;
}
.modal-close:hover { background: var(--border-strong); transform: rotate(90deg); }
.modal h3 {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.modal p { margin: 0 0 28px; color: var(--text-mute); }
.modal-form { display: grid; gap: 12px; }
.modal-form .field {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.modal-form .field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.modal-form .field::placeholder { color: var(--text-mute); }
.modal-form textarea.field { resize: vertical; min-height: 100px; }
.modal-form button[type="submit"] { margin-top: 4px; justify-content: center; }
.modal-success {
  text-align: center;
  padding: 40px 0;
}
.modal-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 20px;
}

/* ============== Reveal ============== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d2 { transition-delay: 0.08s; }
.reveal.d3 { transition-delay: 0.16s; }
.reveal.d4 { transition-delay: 0.24s; }

/* ============== Grain ============== */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
}
[data-theme="dark"] .grain { opacity: 0.08; mix-blend-mode: screen; }

/* mobile nav hide */
@media (max-width: 768px) {
  .nav-links { display: none; }
}
