/* ————— Mirah Ventures — dark editorial ————— */

:root {
  --bg: #0b0b0e;
  --bg-2: #101014;
  --panel: #14141a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f0eee9;
  --muted: #9b98a3;
  --accent: #5b9dff;
  --accent-soft: rgba(91, 157, 255, 0.14);
  --pink: #e58fb1;
  --radius: 18px;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

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

/* clip, not hidden: hidden on <html> would make the sticky nav stop sticking.
   Pre-reveal elements sit translated off-screen, so both need clipping. */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

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

::selection { background: var(--accent); color: #081120; }

/* ————— atmosphere ————— */

.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 3;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.orb {
  position: fixed; border-radius: 50%;
  filter: blur(120px); pointer-events: none; z-index: 0;
}
.orb-a {
  width: 560px; height: 560px; top: -180px; right: -140px;
  background: radial-gradient(circle, rgba(91, 157, 255, 0.16), transparent 70%);
}
.orb-b {
  width: 640px; height: 640px; bottom: -260px; left: -220px;
  background: radial-gradient(circle, rgba(120, 90, 200, 0.12), transparent 70%);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ————— nav ————— */

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled,
.nav.menu-open {
  background: rgba(11, 11, 14, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.wordmark {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
}
.wordmark .mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #081120;
  font-weight: 700; font-size: 17px;
}
.wordmark .name {
  font-weight: 600; letter-spacing: 0.02em; font-size: 15px;
}

.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active:not(.nav-cta) {
  color: var(--accent);
}

.lang-switch {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; margin-left: 4px;
}
.lang-switch button {
  font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 5px 10px; border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { color: var(--accent); background: var(--accent-soft); }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 9px;
  width: 38px; height: 38px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 16px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ————— shared type ————— */

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }

h1 em, h2 em, .contact-title em {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  letter-spacing: 0; color: var(--accent);
}

.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 58ch;
}

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  margin-top: 12px; line-height: 1.12;
}

section { padding: clamp(72px, 11vw, 140px) clamp(20px, 6vw, 96px); }

/* ————— hero ————— */

.hero {
  min-height: calc(100svh - 72px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 26px;
  padding-top: clamp(40px, 8vw, 80px);
}

.hero h1 {
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: 1.05;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--accent); color: #081120; }
.btn-solid:hover { background: #7cb0ff; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-big { padding: 18px 34px; font-size: clamp(15px, 2vw, 18px); }

.hero-facts {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px 18px;
  list-style: none; margin-top: clamp(28px, 5vw, 56px);
  color: var(--muted); font-size: 14px;
}
.hero-facts strong { color: var(--text); font-weight: 600; }
.hero-facts .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}

/* ————— studio ————— */

.studio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.studio-card {
  position: relative;
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.studio-card:hover { border-color: rgba(91, 157, 255, 0.35); transform: translateY(-3px); }
.studio-card .card-index {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-display); font-style: italic;
  font-size: 44px; color: rgba(255, 255, 255, 0.07);
}
.studio-card h3 { font-size: 22px; margin-bottom: 12px; }
.studio-card p { color: var(--muted); font-size: 15.5px; }

/* ————— work / cases ————— */

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0;
}
.case + .case { border-top: 1px solid var(--line); }
.case-flip .case-text { order: 2; }
.case-flip .case-visual { order: 1; }

/* per-project accent: cases scoped to their own brand color */
.case-vellu { --pa: #c9a96e; --pa-soft: rgba(201, 169, 110, 0.15); }
.case-tt    { --pa: #ef9db8; --pa-soft: rgba(239, 157, 184, 0.13); }

.case-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
  background: var(--pa-soft, var(--accent-soft));
  color: var(--pa, var(--accent));
}

.case h3 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.case-lede { color: var(--muted); margin-bottom: 22px; max-width: 52ch; }

.case-facts {
  list-style: none; display: grid; gap: 10px; margin-bottom: 26px;
  font-size: 15px;
}
.case-facts li { display: flex; align-items: baseline; gap: 10px; color: var(--text); }
.case-facts li::before {
  content: ""; flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pa, var(--accent)); transform: translateY(-2px);
}

.case-link {
  color: var(--pa, var(--accent)); text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.case-link:hover { border-bottom-color: var(--pa, var(--accent)); }

/* ————— vignettes (hand-built UI) ————— */

.case-visual { perspective: 1200px; }

.vignette {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #17171e, #101014);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 22px;
  transition: transform 0.25s ease;
  will-change: transform;
}

/* — Vellu vignette: mini replica of the real vellu.cc landing (dark + champagne gold) — */
.vignette-vellu {
  background: #0d0b0a;
  border-color: rgba(201, 169, 110, 0.22);
  display: flex; flex-direction: column;
}
.vgv-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.vgv-logo {
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; color: #c9a96e;
}
.vgv-pill {
  font-size: 10.5px; color: #a89a8c;
  border: 1px solid rgba(201, 169, 110, 0.25); border-radius: 999px; padding: 4px 11px;
}
.vgv-body { flex: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: center; }
.vgv-tag {
  display: inline-block; font-size: 9.5px; letter-spacing: 0.06em;
  color: #c9a96e; border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 999px; padding: 3px 9px; margin-bottom: 10px;
}
.vgv-title {
  font-family: "Cormorant Garamond", var(--font-display), serif;
  font-weight: 300; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.12;
  letter-spacing: 0.03em; color: #f2ede6; margin-bottom: 8px;
}
.vgv-title em { font-style: normal; color: #c9a96e; }
.vgv-sub { font-size: 10.5px; color: #a89a8c; margin-bottom: 12px; }
.vgv-ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.vgv-btn {
  font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 6px 13px;
  background: #c9a96e; color: #14100a;
}
.vgv-btn.ghost { background: none; color: #a89a8c; border: 1px solid rgba(255, 255, 255, 0.14); }
.vgv-phone {
  border: 1px solid rgba(201, 169, 110, 0.25); border-radius: 16px;
  background: #14110f; padding: 12px 11px;
  animation: vg-float 6s ease-in-out infinite;
}
.vgv-phone-salon { font-family: var(--font-display); font-style: italic; font-size: 12.5px; color: #f2ede6; margin-bottom: 8px; }
.vgv-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 8px; }
.vgv-slot {
  font-size: 9.5px; text-align: center; color: #cbbfae;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 7px; padding: 4px 0;
}
.vgv-slot.sel { background: rgba(201, 169, 110, 0.18); border-color: #c9a96e; color: #c9a96e; }
.vgv-book { font-size: 10px; font-weight: 600; text-align: center; background: #c9a96e; color: #14100a; border-radius: 8px; padding: 6px 0; }
@keyframes vg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 430px) {
  .vgv-body { grid-template-columns: 1fr; }
  .vgv-phone { max-width: 200px; }
}

/* — Tammy Taylor vignette: mini replica of the real site (light cream + ink + pink) — */
.vignette-tt {
  background: #faf7f4; border-color: rgba(43, 34, 38, 0.1); padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.vgt-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 15px;
}
.vgt-logo { display: flex; align-items: baseline; gap: 6px; }
.vgt-logo b {
  font-family: "Cormorant Garamond", var(--font-display), serif;
  font-weight: 600; font-size: 15px; color: #2b2226; letter-spacing: 0.02em;
}
.vgt-logo span { font-size: 8px; font-weight: 600; letter-spacing: 0.22em; color: #d9748f; }
.vgt-links { display: flex; gap: 10px; align-items: center; }
.vgt-links span { font-size: 9.5px; color: #6d5f66; }
.vgt-book { font-size: 9.5px; font-weight: 600; background: #d9748f; color: #fff; border-radius: 999px; padding: 5px 11px; }
.vgt-hero {
  background: #2b2226; padding: 18px 15px 20px;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.vgt-kicker {
  font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #f2a8bc; margin-bottom: 7px;
}
.vgt-title {
  font-family: "Cormorant Garamond", var(--font-display), serif;
  font-weight: 500; font-size: clamp(19px, 2vw, 24px); line-height: 1.15;
  color: #fff; margin-bottom: 11px;
}
.vgt-ctas { display: flex; gap: 7px; flex-wrap: wrap; }
.vgt-cta { font-size: 9.5px; font-weight: 600; background: #d9748f; color: #fff; border-radius: 999px; padding: 5px 12px; }
.vgt-cta.outline { background: none; border: 1px solid rgba(255, 255, 255, 0.7); }
.vgt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 13px 15px 15px; }
.vgt-card i { display: block; height: 40px; border-radius: 8px; margin-bottom: 5px; }
.vgt-card .p1 { background: linear-gradient(150deg, #f2a8bc, #d9748f); }
.vgt-card .p2 { background: linear-gradient(150deg, #e8cdb8, #c9a284); }
.vgt-card .p3 { background: linear-gradient(150deg, #f5e0d0, #dfb89a); }
.vgt-card b { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 10.5px; color: #2b2226; }

/* ————— approach ————— */

.approach { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.approach-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(91, 157, 255, 0.5); color: var(--accent);
  font-family: var(--font-display); font-style: italic; font-size: 19px;
  margin-bottom: 16px;
}
.approach-step h3 { font-size: 20px; margin-bottom: 8px; }
.approach-step p { color: var(--muted); font-size: 15px; }

/* ————— contact ————— */

.contact {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.contact-title { font-size: clamp(32px, 5.4vw, 64px); line-height: 1.1; }
.contact .lede { margin: 0 auto; }

/* ————— footer ————— */

.footer {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

/* ————— page hero (subpages) ————— */

.page-hero {
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 18px;
}
.page-hero h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.08; }
.page-hero h1 em {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  letter-spacing: 0; color: var(--accent);
}

/* ————— home: featured work preview ————— */

.work-preview {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.preview-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  padding: clamp(18px, 2.6vw, 28px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.preview-card .vignette { flex: 1; }
.preview-card:hover { border-color: rgba(91, 157, 255, 0.35); transform: translateY(-4px); }
.preview-card.case-vellu:hover { border-color: rgba(201, 169, 110, 0.4); }
.preview-card.case-tt:hover { border-color: rgba(239, 157, 184, 0.4); }
.preview-card .btn-solid {
  background: var(--pa, var(--accent)); color: #081120;
}
.preview-card .btn-solid:hover { filter: brightness(1.1); }
.preview-card .btn-ghost:hover {
  border-color: var(--pa, var(--accent));
  background: var(--pa-soft, var(--accent-soft));
}
.preview-card .vignette { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.preview-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; gap: 12px;
}
.preview-meta .case-tag { margin-bottom: 0; }
.preview-title { font-size: 20px; font-weight: 600; }
.preview-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-sm { padding: 9px 17px; font-size: 13.5px; }
.section-more { margin-top: 32px; }

/* ————— cta band ————— */

.cta-band {
  margin: 0 clamp(20px, 6vw, 96px) clamp(72px, 10vw, 120px);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line); border-radius: 24px;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(91, 157, 255, 0.12), transparent 70%),
    linear-gradient(160deg, var(--panel), var(--bg-2));
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.cta-band h2 { font-size: clamp(28px, 4.4vw, 52px); line-height: 1.1; }
.cta-band h2 em {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  color: var(--accent);
}
.cta-band p { color: var(--muted); max-width: 52ch; }

/* ————— services ————— */

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  padding: clamp(24px, 3vw, 34px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover { border-color: rgba(91, 157, 255, 0.35); transform: translateY(-3px); }
.service-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 19px; margin-bottom: 16px;
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14.5px; }
.service-card .proof {
  display: block; margin-top: 14px; font-size: 12.5px;
  color: var(--accent); letter-spacing: 0.02em;
}

/* ————— contact page ————— */

.work .contact-title { margin-bottom: clamp(28px, 4.5vw, 52px); }
.contact-page { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: stretch; }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
/* span the cards from the first input box (108px = pills block + NAME
   label) down to the bottom of the message textarea (123px = button +
   mailto line below it) so they mirror the fields exactly */
@media (min-width: 861px) {
  .contact-details { padding-top: 108px; padding-bottom: 123px; }
}
.contact-item {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  padding: 22px 24px;
}
.contact-item h3 { font-size: 15px; margin-bottom: 6px; color: var(--text); }
.contact-item p, .contact-item li { color: var(--muted); font-size: 14.5px; }
.contact-item ul { list-style: none; display: grid; gap: 6px; }
.contact-item li { display: flex; gap: 9px; align-items: baseline; }
.contact-item li::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); transform: translateY(-2px);
}
.contact-email-block { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }

/* ————— contact form ————— */

#contact-form { display: grid; gap: 8px; }
.form-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 14px;
}
.form-label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#contact-form input::placeholder, #contact-form textarea::placeholder { color: rgba(155, 152, 163, 0.55); }
#contact-form input:focus, #contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
#contact-form textarea { resize: vertical; min-height: 140px; }

.purpose-row { border: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.purpose-row .form-label { width: 100%; margin-top: 0; }
.purpose-pill { position: relative; cursor: pointer; }
.purpose-pill input { position: absolute; opacity: 0; pointer-events: none; }
.purpose-pill span {
  display: inline-block; font-size: 13.5px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.purpose-pill:hover span { color: var(--text); }
.purpose-pill input:checked + span {
  color: var(--accent); border-color: var(--accent); background: var(--accent-soft);
}
.purpose-pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#cf-submit { margin-top: 16px; justify-self: start; }
#cf-submit:disabled { opacity: 0.6; cursor: wait; }
.form-error { color: #ff8f9c; font-size: 14px; margin-top: 8px; }
.form-alt { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.form-success {
  border: 1px solid rgba(91, 157, 255, 0.35); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  padding: 30px 28px;
}
.form-success h3 { font-size: 20px; margin-bottom: 8px; color: var(--accent); }
.form-success p { color: var(--muted); }

@media (max-width: 860px) {
  .contact-page { grid-template-columns: 1fr; }
}

/* ————— footer nav ————— */

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); }

/* ————— reveal animation ————— */

/* hidden state only when JS is running (html.js), so content never depends on JS */
.js :is(.reveal, .reveal-left, .reveal-right, .reveal-scale) {
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal        { opacity: 0; transform: translateY(22px); }
.js .reveal-left   { opacity: 0; transform: translateX(-38px); }
.js .reveal-right  { opacity: 0; transform: translateX(38px); }
.js .reveal-scale  { opacity: 0; transform: scale(0.94); }
.js :is(.reveal, .reveal-left, .reveal-right, .reveal-scale).visible {
  opacity: 1; transform: none;
}

/* cascade for grids/lists: children reveal one after another */
.js .stagger > :nth-child(1) { transition-delay: 0ms; }
.js .stagger > :nth-child(2) { transition-delay: 80ms; }
.js .stagger > :nth-child(3) { transition-delay: 160ms; }
.js .stagger > :nth-child(4) { transition-delay: 240ms; }
.js .stagger > :nth-child(5) { transition-delay: 320ms; }
.js .stagger > :nth-child(6) { transition-delay: 400ms; }
.js .stagger > :nth-child(7) { transition-delay: 480ms; }
.js .stagger > :nth-child(8) { transition-delay: 560ms; }

/* ————— marquee ticker ————— */

.ticker {
  overflow: hidden;
  padding: clamp(14px, 2.2vw, 24px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-set {
  display: flex; align-items: center;
  gap: clamp(26px, 3.4vw, 52px);
  padding-right: clamp(26px, 3.4vw, 52px);
}
.ticker-set span {
  font-size: clamp(24px, 3.6vw, 46px);
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap; line-height: 1.15;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 238, 233, 0.42);
}
.ticker-set span.fill {
  font-family: var(--font-display); font-style: italic;
  text-transform: lowercase; letter-spacing: 0;
  font-size: clamp(28px, 4.2vw, 54px);
  color: var(--accent); -webkit-text-stroke: 0;
}
.ticker-set i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); flex: none;
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ————— hero scroll cue ————— */

.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: fit-content;
  margin: clamp(22px, 4vw, 44px) auto 0;
}
.cue-line {
  width: 1px; height: 46px; background: var(--line);
  position: relative; overflow: hidden;
}
.cue-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  animation: cue-drop 2s ease-in-out infinite;
}
@keyframes cue-drop {
  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; }
}
.cue-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}

/* ————— nav link underline ————— */

.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active:not(.nav-cta)::after { transform: scaleX(1); }

/* ————— scroll parallax targets ————— */

[data-float] { transform: translateY(var(--fy, 0px)); will-change: transform; }
.preview-card:hover .vignette[data-float] {
  transform: translateY(var(--fy, 0px)) scale(1.02);
}

/* ————— cross-page transitions ————— */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.22s ease both; }
  ::view-transition-new(root) { animation: vt-in 0.4s ease 0.06s both; }
}
@keyframes vt-out {
  to { opacity: 0; transform: translateY(-12px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(16px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .vignette { transition: none; }
  .ticker-track { animation: none; }
  .cue-line::after { animation: none; }
  .vgv-phone { animation: none; }
  [data-float] { transform: none; }
}

/* ————— responsive ————— */

@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case-flip .case-text { order: 1; }
  .case-flip .case-visual { order: 2; }
  .wordmark .name { font-size: 14px; }

  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 11, 14, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-links a.nav-cta {
    margin-top: 12px; text-align: center;
    border: 1px solid var(--accent); border-radius: 999px;
  }
  .lang-switch {
    align-self: center; margin: 14px 0 0;
  }
  .lang-switch button { padding: 7px 14px; font-size: 12.5px; }
}
