/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #ffffff;
  --surface: #f5f5f5;
  --text:    #000000;
  --muted:   #555555;
  --accent:  #000000;
  --border:  #d4d4d4;
  --nav-h:   60px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* ─── Nav: dark/galaxy state when over hero ─────────────────── */
nav.nav-dark {
  background: rgba(5, 5, 8, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
nav.nav-dark .nav-logo { color: #ffffff; }
nav.nav-dark .nav-links a { color: rgba(200, 200, 210, 0.75); }
nav.nav-dark .nav-links a:hover,
nav.nav-dark .nav-links a.active { color: #ffffff; }
nav.nav-dark .nav-links a::after { background: #ffffff; }
nav.nav-dark .hamburger span { background: #ffffff; }

nav .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: width 0.25s cubic-bezier(0.22,1,0.36,1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Sections ───────────────────────────────────────────────── */
section {
  padding: 5rem 0;
  scroll-margin-top: var(--nav-h);
}

section.surface { background: var(--surface); }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 3rem;
}

/* ─── Hero (animation only) ─────────────────────────────────── */
#hero {
  min-height: 100dvh;
  height: 100vh;
  display: block;
  position: relative;
  overflow: hidden;
  background: #050508;
  isolation: isolate;
}

#heroAnim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* Soft vignette so edges sink to true black */
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(5, 5, 8, 0.55) 80%,
    #050508 100%
  );
}

/* Custom cursor inside the hero — desktop pointer devices only */
.hero-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px; /* center on the (left, top) coords set in JS */
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   0.3s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  z-index: 5;
  will-change: left, top, transform;
}
.hero-cursor.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-cursor.is-active::after {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 60%);
  mix-blend-mode: normal;
}
@media (hover: none), (max-width: 900px) {
  .hero-cursor { display: none; }
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(70px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right.visible { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1), transform 0.85s cubic-bezier(0.22,1,0.36,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ─── Ripple ─────────────────────────────────────────────────── */
.ripple {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: translate(-50%,-50%) scale(0);
  pointer-events: none;
  animation: rippleOut 0.55s ease-out forwards;
}
@keyframes rippleOut {
  to { transform: translate(-50%,-50%) scale(40); opacity: 0; }
}

/* ─── Card spotlight (legacy — kept for any .service-card elsewhere) ── */

/* ─── Button ─────────────────────────────────────────────────── */
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50%       { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.10),
                          0 0 30px rgba(255, 255, 255, 0.08); }
}

@keyframes btn-shimmer {
  0%   { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(220%) skewX(-15deg); }
}

.btn {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  padding: 0.85rem 2.2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  z-index: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  cursor: pointer;
  animation: btn-pulse 2.8s ease-in-out 1.8s infinite;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.22s ease,
              letter-spacing 0.22s ease,
              background 0.22s ease,
              color 0.22s ease,
              border-color 0.22s ease;
}

/* Diagonal shimmer stripe */
.btn::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 40%;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-120%) skewX(-15deg);
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.btn:hover {
  background: #ffffff;
  color: #050508;
  border-color: #ffffff;
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2),
              0 16px 40px rgba(255, 255, 255, 0.15),
              0 4px 10px rgba(255, 255, 255, 0.10);
  letter-spacing: 0.1em;
  animation: none;
}

.btn:hover::before {
  animation: btn-shimmer 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
}

.btn:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.12);
  transition-duration: 0.08s;
}

/* ─── Hero bottom fade ───────────────────────────────────────── */
.hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom,
    rgba(5, 5, 8, 0) 0%,
    rgba(5, 5, 8, 0.4) 30%,
    #f5f5f5 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ─── About ──────────────────────────────────────────────────── */
.about-bio {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.8;
  margin-top: 1.5rem;
}

.about-panel { display: none; }
.about-panel.is-active { display: block; }

/* ─── About — kinetic typography ─────────────────────────────── */
.about-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* Word stagger — set --i in JS, fades in via .reveal.visible */
.about-bio [data-word],
.about-title [data-word] {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition:
    opacity   .55s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 28ms),
    transform .55s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 28ms);
}
.reveal.visible [data-word] { opacity: 1; transform: none; }

/* ─── About Stats ───────────────────────────────────────────── */
.about-stats {
  display: flex;
  gap: 3.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 400;
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-num::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Section Divider ───────────────────────────────────────── */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 0;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible .divider-line {
  transform: scaleX(1);
}

/* ─── Services ───────────────────────────────────────────────── */
.svc-section {
  background: #080808;
  color: #fff;
  padding: 0;
  position: relative;
}

/* Fade in from the light section above */
.svc-fade-top {
  height: 120px;
  background: linear-gradient(to bottom, var(--surface), #080808);
  pointer-events: none;
}

/* Fade out to white portfolio section below */
.svc-fade-bottom {
  height: 120px;
  background: linear-gradient(to bottom, #080808, var(--bg));
  pointer-events: none;
}

.svc-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.svc-section .section-label {
  color: #555;
}

.svc-section .section-title {
  color: #fff;
}

/* Each category row */
.svc-block {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid #1e1e1e;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.svc-block:last-of-type {
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 0;
}

.svc-block-meta {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.svc-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #3a3a3a;
  font-variant-numeric: tabular-nums;
}

.svc-block-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
}

/* Cards grid */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #1c1c1c;
  border: 1px solid #1c1c1c;
  border-radius: 2px;
  overflow: hidden;
}

.svc-card {
  background: #080808;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease;
  transition-delay: var(--d, 0ms);
}

/* Stagger the reveal delay */
.svc-card.reveal {
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) var(--d, 0ms),
              transform 0.7s cubic-bezier(0.22,1,0.36,1) var(--d, 0ms);
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, -9999px) var(--my, -9999px), rgba(255,255,255,0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.svc-card:hover::after {
  transform: scaleX(1);
}

.svc-card:hover {
  background: #0e0e0e;
}

.svc-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 0.65rem;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}

.svc-card p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ─── Contact ────────────────────────────────────────────────── */

.contact-email {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 4px;
  margin-bottom: 1.75rem;
  transition: opacity 0.2s;
}

.contact-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-email:hover {
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.contact-email:hover::after { transform: scaleX(1); }

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon-link {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.social-icon-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ─── Contact Section (Dark Immersive) ───────────────────────── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.contact-section {
  background: #050508;
  color: #ffffff;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.contact-fade-top {
  height: 120px;
  background: linear-gradient(to bottom, var(--bg), #050508);
  pointer-events: none;
}

.contact-fade-bottom {
  height: 80px;
  background: linear-gradient(to bottom, #050508, var(--text));
  pointer-events: none;
}

/* Film grain overlay */
.contact-bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  animation: grainShift 0.4s steps(3) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2px, 2px); }
  66%  { transform: translate(2px, -1px); }
  100% { transform: translate(-1px, -2px); }
}

/* Section-level ambient spotlight */
.contact-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    800px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01) 40%,
    transparent 70%
  );
  transition: opacity 0.5s;
}

.contact-section:hover .contact-spotlight { opacity: 1; }

/* Container */
#contact .container {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 5rem;
}

#contact .section-label {
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
}

#contact .section-title {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

#contact .section-subtitle {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 2.5rem;
  font-size: 1rem;
}

/* ── Glassmorphism Card ─────────────────────────────────────── */
.contact-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  z-index: 1;
}

/* Rotating conic-gradient border — outer layer */
.contact-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.02) 70%,
    rgba(255, 255, 255, 0.1) 100%
  );
  z-index: -2;
  animation: borderRotate 8s linear infinite;
}

/* Dark fill inside — the 1px gap reveals the rotating border */
.contact-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: rgba(8, 8, 12, 0.92);
  z-index: -1;
}

@keyframes borderRotate {
  to { --border-angle: 360deg; }
}

/* Card mouse-tracking spotlight */
.contact-card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.07),
    transparent 70%
  );
  transition: opacity 0.3s;
}

.contact-card:hover .contact-card-spotlight { opacity: 1; }

/* ── Form ───────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.contact-section .form-group input,
.contact-section .form-group select,
.contact-section .form-group textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  width: 100%;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.contact-section .form-group input::placeholder,
.contact-section .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.contact-section .form-group input:focus,
.contact-section .form-group select:focus,
.contact-section .form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05),
              0 0 24px rgba(255, 255, 255, 0.03);
}

.contact-section .form-group select {
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-section .form-group select option,
.contact-section .form-group select optgroup {
  background: #1a1a1e;
  color: #ffffff;
}

.contact-section .form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Submit button — ghost style from .btn, stretched full width */
.contact-card .btn {
  align-self: stretch;
  text-align: center;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.contact-card .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  animation: none;
}

/* ── Success State ──────────────────────────────────────────── */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-success[hidden] { display: none; }

.contact-success svg {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

/* Animated SVG draw-in */
.contact-success svg circle {
  stroke-dasharray: 63;
  stroke-dashoffset: 63;
}

.contact-success svg polyline {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}

.contact-success.visible svg circle {
  animation: drawStroke 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.contact-success.visible svg polyline {
  animation: drawStroke 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

.contact-success-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  opacity: 0;
}

.contact-success-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0;
}

.contact-success.visible .contact-success-title {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

.contact-success.visible .contact-success-sub {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

/* ── Social Icons (dark theme) ──────────────────────────────── */
.contact-section .contact-socials {
  margin-top: 0;
}

.contact-section .social-icon-link {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-section .social-icon-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #050508;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.1);
}

/* ── Contact Mobile ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 1.75rem 1.25rem; }
  .contact-fade-top { height: 80px; }
  .contact-fade-bottom { height: 60px; }
  .contact-bg-grain { display: none; }
  .svc-slate-num { font-size: 1.7rem; }
  .svc-card-num  { font-size: .65rem; }
  .svc-card-cta  { font-size: .75rem; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--text);
  color: #888;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
}

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    height: calc(100dvh - var(--nav-h));
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    z-index: 99;
    pointer-events: none;
  }

  .nav-links.open {
    display: flex;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }

  .nav-links a {
    font-size: 1.2rem;
    color: var(--text);
  }

  .about-stats { gap: 2rem; flex-wrap: wrap; }
  .stat-num { font-size: 1.8rem; }

  .about-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .about-bio { font-size: 1rem; line-height: 1.7; }

  /* Services */
  .svc-block { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 1.5rem; }
  .svc-block-meta { position: static; }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card {
    padding: 1.75rem 1.5rem;
    min-height: auto;
    /* Visible affordance: a thin chevron indicator that body is collapsable */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .svc-card-title { font-size: 1.4rem; }
  /* Body collapsed by default; .is-open expands it (set by JS on tap) */
  .svc-card-body {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    transition: opacity .35s cubic-bezier(0.22, 1, 0.36, 1),
                max-height .45s cubic-bezier(0.22, 1, 0.36, 1),
                margin-top .35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .svc-card.is-open .svc-card-body {
    opacity: 1;
    max-height: 360px;
    margin-top: .5rem;
  }
  /* Rotate the arrow when card is open as the affordance */
  .svc-card-cta-arrow {
    transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .svc-card.is-open .svc-card-cta-arrow {
    transform: rotate(90deg);
  }
  /* Disable hover-driven body reveal on mobile (tap controls it instead) */
  .svc-card:hover .svc-card-body,
  .svc-card:focus-within .svc-card-body {
    opacity: 0;
    max-height: 0;
  }
  .svc-card.is-open:hover .svc-card-body,
  .svc-card.is-open:focus-within .svc-card-body {
    opacity: 1;
    max-height: 360px;
  }
  /* Hide shine sweep on mobile — too easy to retrigger and feels twitchy */
  .svc-card-shine { display: none; }

  .svc-fade-top { height: 80px; }
  .svc-fade-bottom { height: 80px; }

  section { padding: 4rem 0; }

  /* Prevent horizontal overflow from side reveals */
  .reveal-left  { transform: translateY(50px); }
  .reveal-right { transform: translateY(50px); }
  .reveal-left.visible, .reveal-right.visible { transform: none; }

  /* Dark nav overlay on mobile */
  nav.nav-dark .nav-links {
    background: #050508;
  }

  /* No lift/scale on touch devices, keep ghost style */
  .btn:hover {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
    transform: none;
    box-shadow: none;
    letter-spacing: 0.06em;
    animation: btn-pulse 2.8s ease-in-out 1.8s infinite;
  }

  /* Prevent long email from overflowing */
  .contact-email {
    word-break: break-all;
    font-size: 0.95rem;
  }
}

/* ─── Floating Contact Button ────────────────────────────────── */
.float-contact-wrap {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.float-contact-wrap.visible {
  opacity: 1;
  pointer-events: auto;
}

.float-contact-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  animation: floatPulseRing 2.5s ease-out infinite;
}

@keyframes floatPulseRing {
  0%   { transform: scale(1);    opacity: 0.5; }
  100% { transform: scale(1.45); opacity: 0; }
}

.float-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.float-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.float-contact svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  flex-shrink: 0;
}

.float-contact::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transition: left 0.5s ease;
  pointer-events: none;
}

.float-contact:hover::after {
  left: 160%;
}

@media (max-width: 900px) {
  .float-contact-wrap { bottom: 1.2rem; right: 1.2rem; }
}

/* ── Photography ─────────────────────────────────────────── */
.photo-wall-wrap {
  max-width: 1600px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}
.photo-wall {
  column-count: 4;
  column-gap: 6px;
}
.pw-item {
  position: relative;
  overflow: hidden;
  margin: 0 0 6px;
  break-inside: avoid;
  background: var(--surface);
  display: block;
  width: 100%;
  animation: pwIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.pw-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
  filter: saturate(0.95);
}
.pw-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}
.pw-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  pointer-events: none;
}
.pw-item:hover::after { background: rgba(0,0,0,0.08); }

.pw-item:nth-child(1)  { animation-delay: 0.02s; }
.pw-item:nth-child(2)  { animation-delay: 0.06s; }
.pw-item:nth-child(3)  { animation-delay: 0.10s; }
.pw-item:nth-child(4)  { animation-delay: 0.14s; }
.pw-item:nth-child(5)  { animation-delay: 0.18s; }
.pw-item:nth-child(6)  { animation-delay: 0.22s; }
.pw-item:nth-child(7)  { animation-delay: 0.26s; }
.pw-item:nth-child(8)  { animation-delay: 0.30s; }
.pw-item:nth-child(9)  { animation-delay: 0.34s; }
.pw-item:nth-child(10) { animation-delay: 0.38s; }
.pw-item:nth-child(11) { animation-delay: 0.42s; }
.pw-item:nth-child(12) { animation-delay: 0.46s; }
.pw-item:nth-child(13) { animation-delay: 0.50s; }
.pw-item:nth-child(14) { animation-delay: 0.54s; }
.pw-item:nth-child(15) { animation-delay: 0.58s; }
.pw-item:nth-child(16) { animation-delay: 0.62s; }
.pw-item:nth-child(17) { animation-delay: 0.66s; }
.pw-item:nth-child(18) { animation-delay: 0.70s; }
.pw-item:nth-child(n+19) { animation-delay: 0.74s; }

@keyframes pwIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .photo-wall { column-count: 3; }
}
@media (max-width: 600px) {
  .photo-wall { column-count: 2; column-gap: 4px; }
  .pw-item { margin-bottom: 4px; }
}

/* ─── Testimonials (pinned scroll-stack) ───────────────────── */
.ts-section {
  position: relative;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ts-pin {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: clamp(4rem, 8vh, 6rem) 1.5rem;
  box-sizing: border-box;
}

.ts-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ts-spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px circle at var(--cx, 50%) var(--cy, 50%),
      rgba(0, 0, 0, 0.05), transparent 60%),
    radial-gradient(1200px circle at calc(20% + var(--prog, 0) * 60%) 50%,
      rgba(0, 0, 0, 0.04), transparent 70%);
  transition: background 0.8s linear;
}

.ts-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.ts-header .section-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.ts-header .section-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.6rem;
  line-height: 1.15;
}
.ts-header .section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.ts-progress {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ts-progress-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.ts-progress-sep { opacity: 0.45; }
.ts-progress-bar {
  position: relative;
  display: inline-block;
  width: 84px;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
}
.ts-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--text);
  transition: width 0.25s linear;
}

.ts-stack {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  min-height: 360px;
}

.ts-card {
  position: absolute;
  inset: 0;
  margin: auto;
  height: fit-content;
  padding: clamp(2rem, 4.5vw, 3.5rem) clamp(1.75rem, 4vw, 3.25rem);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  will-change: transform, opacity;
}

.ts-mark {
  position: absolute;
  top: -2rem;
  left: 1rem;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 1;
  color: rgba(0, 0, 0, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.ts-quote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Shrink long-quote cards a bit so meta always fits */
.ts-card[data-ts-slide="2"] .ts-quote {
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  line-height: 1.55;
}

.ts-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.038s);
  will-change: opacity, transform;
}
.ts-card.is-active .ts-word {
  opacity: 1;
  transform: translateY(0);
}

/* Emphasized phrases — just bold, no underline */
.ts-emph {
  font-weight: 700;
  color: var(--text);
}

.ts-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.ts-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.ts-role {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Mobile + reduced-motion: vertical stack, no pin */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .ts-pin {
    height: auto !important;
    min-height: 0 !important;
    position: static !important;
    padding: clamp(4rem, 8vw, 6rem) 1.25rem;
  }
  .ts-progress { display: none; }
  .ts-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 760px;
    min-height: 0;
  }
  .ts-card {
    position: relative !important;
    inset: auto !important;
    max-height: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .ts-quote { font-size: clamp(1.35rem, 5vw, 1.9rem); }
  .ts-card .ts-word,
  .ts-card.is-visible .ts-word {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-spotlight { transition: none; }
}

/* ─── Unified Light Theme (overrides for sections below hero) ── */
/* The hero stays dark to host the canvas animation; the nav
   goes dark while the hero is in view (default nav.nav-dark
   styles in the base section above handle that). */

/* ─── Services (light, with personality restored) ───────────── */
.svc-section {
  background: var(--surface);
  color: var(--text);
  padding: 6rem 0;
}
.svc-section .section-label { color: var(--muted); }
.svc-section .section-title { color: var(--text); }
.svc-block {
  border-top: 1px solid var(--border);
}
.svc-block:last-of-type { border-bottom: 1px solid var(--border); }
.svc-block-title { color: var(--text); }
.svc-num { color: var(--muted); }

.svc-cards {
  background: var(--border);
  border-color: var(--border);
}

.svc-card {
  background: #ffffff;
  padding: 3rem 2.5rem 2.5rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease;
}
.svc-card:hover {
  background: #fafafa;
}

/* Tighter, brighter spotlight on the light theme */
.svc-card::before {
  background: radial-gradient(220px circle at var(--mx, -9999px) var(--my, -9999px), rgba(0,0,0,0.09), transparent 65%);
}

/* Top accent line on hover, black instead of white */
.svc-card::after {
  background: var(--text);
}

/* ─── Services — editorial card content ──────────────────────── */
.svc-slate {
  display: inline-flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .4rem;
}
.svc-slate-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
}
.svc-slate-bar { display: none; }

.svc-card-num {
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.svc-card h4.svc-card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: .6rem 0 1rem;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.svc-card h4.svc-card-title em {
  font-style: normal;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  color: var(--muted);
  font-size: 1em;
}
.svc-card-lede {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.svc-card-body {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.75;
  margin-top: auto;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: opacity   .35s cubic-bezier(0.22, 1, 0.36, 1),
              max-height .45s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card:hover .svc-card-body,
.svc-card:focus-within .svc-card-body {
  opacity: 1;
  max-height: 240px;
}

/* Shine sweep — Elite UI pattern 4 */
.svc-card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: overlay;
}
.svc-card:hover .svc-card-shine,
.svc-card:focus-within .svc-card-shine { transform: translateX(110%); }

/* Arrow-slide CTA — Elite UI pattern 6 */
.svc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: .6rem 0;
  min-height: 24px;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  position: relative;
  z-index: 4;
  align-self: flex-start;
  transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card-cta-label {
  position: relative;
}
.svc-card-cta-label::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card-cta:hover .svc-card-cta-label::after,
.svc-card-cta:focus-visible .svc-card-cta-label::after {
  transform: scaleX(1);
}
.svc-card-cta-arrow {
  display: inline-block;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card-cta:hover .svc-card-cta-arrow,
.svc-card-cta:focus-visible .svc-card-cta-arrow {
  transform: translateX(8px);
}
.svc-card-cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 2px;
}
.svc-card:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* ─── Contact (light, with animated card restored) ──────────── */
.contact-section {
  background: var(--bg);
  color: var(--text);
  padding: 6rem 0 5rem;
  border-top: 1px solid var(--border);
}
#contact .section-label { color: var(--muted); }
#contact .section-title { color: var(--text); }
#contact .section-subtitle { color: var(--muted); }

/* Subtle dark-on-light spotlight on the section */
.contact-spotlight {
  background: radial-gradient(
    800px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.015) 40%,
    transparent 70%
  );
}

/* Card — restore rotating animated border in light tones */
.contact-card {
  background: transparent;
  border: none;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.18);
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.04) 20%,
    rgba(0, 0, 0, 0.22) 45%,
    rgba(0, 0, 0, 0.04) 70%,
    rgba(0, 0, 0, 0.18) 100%
  );
  z-index: -2;
  animation: borderRotate 8s linear infinite;
  display: block;
}
.contact-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: #ffffff;
  z-index: -1;
  display: block;
}

/* Card cursor spotlight — dark on light */
.contact-card-spotlight {
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 0, 0, 0.05),
    transparent 70%
  );
}

/* Form fields — light theme */
.form-group label { color: var(--muted); }
.contact-section .form-group input,
.contact-section .form-group select,
.contact-section .form-group textarea {
  color: var(--text);
  background: #fafafa;
  border-color: var(--border);
}
.contact-section .form-group input::placeholder,
.contact-section .form-group textarea::placeholder {
  color: #a8a8a8;
}
.contact-section .form-group input:focus,
.contact-section .form-group select:focus,
.contact-section .form-group textarea:focus {
  border-color: var(--text);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.contact-section .form-group select {
  background-color: #fafafa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.contact-section .form-group select option,
.contact-section .form-group select optgroup {
  background: #ffffff;
  color: var(--text);
}

/* Submit button — solid black on light card */
.contact-card .btn {
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
  animation: none;
}
.contact-card .btn:hover {
  background: #ffffff;
  color: var(--text);
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08),
              0 16px 40px rgba(0, 0, 0, 0.15);
}
.contact-card .btn:active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Success state */
.contact-success svg { color: var(--text); }
.contact-success-title { color: var(--text); }
.contact-success-sub { color: var(--muted); }

/* Social icons — dark on light */
.contact-section .social-icon-link {
  color: var(--muted);
  border-color: var(--border);
  background: #ffffff;
}
.contact-section .social-icon-link:hover {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ─── Inquiry form — floating labels + microinteractions ────── */
.ff-float {
  position: relative;
  gap: 0;
}

.contact-section .form-group.ff-float input,
.contact-section .form-group.ff-float select,
.contact-section .form-group.ff-float textarea {
  padding-top: 1.55rem;
  padding-bottom: 0.55rem;
}

.contact-section .form-group.ff-float textarea {
  padding-top: 1.7rem;
}

.ff-float > label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  margin: 0;
  pointer-events: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  background: transparent;
  transform-origin: 0 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.32s ease,
              opacity 0.2s ease;
  z-index: 2;
}

/* Float on focus or when field has content */
.ff-float input:not(:placeholder-shown) ~ label,
.ff-float input:focus ~ label,
.ff-float textarea:not(:placeholder-shown) ~ label,
.ff-float textarea:focus ~ label,
.ff-float select:focus ~ label,
.ff-float.ff-select.ff-has-value > label,
.ff-float.ff-select:focus-within > label {
  transform: translateY(-0.7rem) scale(0.72);
  color: var(--text);
}

/* Underline accent */
.ff-line {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}
.ff-float:focus-within .ff-line { transform: scaleX(1); }

/* Inline error */
.ff-error {
  display: block;
  min-height: 0;
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #8a4040;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.ff-error:not(:empty) {
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.4rem;
}
.contact-section .form-group input.has-error,
.contact-section .form-group select.has-error,
.contact-section .form-group textarea.has-error {
  border-color: #b66;
}

/* Service chip */
.ff-chip {
  position: absolute;
  right: 2.6rem;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}
.ff-chip[hidden] { display: none; }
.ff-chip.is-in {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Magnetic submit prep */
.contact-card .btn {
  position: relative;
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease,
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease;
  will-change: width, border-radius, transform;
}
.contact-card .btn .btn-label {
  display: inline-block;
  transition: opacity 0.2s ease;
}
.contact-card .btn .btn-check {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  opacity: 0;
  transition: opacity 0.18s ease 0.05s;
  color: #ffffff;
}
.contact-card .btn .btn-check[hidden] { display: none; }

/* Loading state — collapse to circle + spinner */
.contact-card .btn.is-loading {
  width: 52px !important;
  border-radius: 999px;
  pointer-events: none;
  padding: 0;
  align-self: center;
}
.contact-card .btn.is-loading .btn-label { opacity: 0; }
.contact-card .btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* Success state — keep circle, swap to checkmark */
.contact-card .btn.is-success {
  width: 52px !important;
  border-radius: 999px;
  pointer-events: none;
  padding: 0;
  align-self: center;
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
}
.contact-card .btn.is-success .btn-label { opacity: 0; }
.contact-card .btn.is-success::after { display: none; }
.contact-card .btn.is-success .btn-check { opacity: 1; }

/* Reduced-motion overrides */
@media (prefers-reduced-motion: reduce) {
  .ff-float > label { transition: none; }
  .ff-line { display: none; }
  .ff-chip { transition: none; }
  .contact-card .btn,
  .contact-card .btn .btn-label,
  .contact-card .btn .btn-check { transition: none; }
  .contact-card .btn.is-loading {
    width: 100% !important;
    border-radius: 6px;
    padding: 0.85rem 1.5rem;
  }
  .contact-card .btn.is-loading::after { display: none; }
  .contact-card .btn.is-loading .btn-label { opacity: 1; }
  .contact-card .btn.is-success {
    width: 100% !important;
    border-radius: 6px;
    padding: 0.85rem 1.5rem;
  }
  .contact-card .btn.is-success .btn-label { opacity: 1; }
  .contact-card .btn.is-success .btn-check { opacity: 0; }
}

/* Mobile — keep chip out of the way of dropdown chevron */
@media (max-width: 600px) {
  .ff-chip { display: none; }
}

/* Mobile — hero fills exactly the viewport above the marquee */
@media (max-width: 768px) {
  #hero {
    height:     calc(100dvh - var(--marquee-h));
    min-height: calc(100dvh - var(--marquee-h));
  }
}

/* ─── About Bio Accent Words (animated underline draw) ──────── */
.bio-accent {
  color: #1a1a1a;
  font-weight: 700;
  position: relative;
  background: linear-gradient(120deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.06) 100%);
  background-repeat: no-repeat;
  background-size: 0% 0.35em;
  background-position: 0 88%;
  padding: 0 0.1em;
  transition: background-size .9s cubic-bezier(0.22, 1, 0.36, 1)
              calc(var(--accent-i, 0) * 120ms + .35s);
}
.reveal.visible .bio-accent { background-size: 100% 0.35em; }

/* ─── Services Marquee (fixed height for hero math) ────────── */
:root { --marquee-h: 60px; }
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--text);
  color: #ffffff;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  height: var(--marquee-h);
  padding: 0;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  flex-shrink: 0;
}

.marquee-dot {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  :root { --marquee-h: 52px; }
  .marquee-item { font-size: 0.8rem; letter-spacing: 0.08em; }
  .marquee-track { gap: 1.75rem; animation-duration: 18s; }
}

/* ─── Scroll-driven Hero exit ────────────────────────────────
   Driven by --hero-progress on <html> (set in script.js).
   Range 0 → 1 across .hero-stage. The canvas reads this same
   variable through getComputedStyle. */
:root { --hero-progress: 0; }

.hero-stage {
  position: relative;
  height: 180vh;
}

.hero-stage > #hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
}

.about-rise { /* legacy hook still on the about container; static now */ }

/* Mobile: hero fills viewport-minus-marquee, no sticky pin. */
@media (max-width: 768px) {
  .hero-stage { height: auto; }
  .hero-stage > #hero {
    position: static;
    height:     calc(100dvh - var(--marquee-h));
    min-height: calc(100dvh - var(--marquee-h));
  }
}

/* Reduced motion: collapse to a static calm state. */
@media (prefers-reduced-motion: reduce) {
  .hero-stage { height: auto; }
  .hero-stage > #hero {
    position: static;
    height: auto;
    min-height: 100vh;
  }
  .hero-cursor { display: none; }

  /* About + Services: kill all transitions, force final visible state */
  .about-bio [data-word],
  .about-title [data-word],
  .bio-accent,
  .svc-slate-bar,
  .svc-card-shine,
  .svc-card-cta,
  .svc-card-cta-arrow,
  .svc-card-cta-label::after,
  .svc-card-body { transition: none !important; }

  .about-bio [data-word],
  .about-title [data-word] { opacity: 1 !important; transform: none !important; }
  .bio-accent { background-size: 100% 0.35em !important; }
  .svc-slate-bar { transform: scaleX(1) !important; }
  .svc-card-shine { display: none; }
  .svc-card-body { opacity: 1 !important; max-height: none !important; }

}

/* ─── Home Logo Lockup (replaces former Selected Work slideshow) ───── */
#portfolio.home-logos {
  background: #0a0a0a;
  color: #fff;
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
}

.home-logos-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
}
.home-logos-eyebrow {
  font: 600 0.65rem/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}
.home-logos-divider {
  width: 1px; height: 12px; background: #2a2a2a;
}
.home-logos-count {
  font: 500 0.65rem/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  font-variant-numeric: tabular-nums;
}

.home-logos-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 auto 1.25rem;
  max-width: 18ch;
}
.home-logos-lede {
  font: 400 1rem/1.65 'Inter', system-ui, sans-serif;
  color: #888;
  max-width: 52ch;
  margin: 0 auto 3rem;
}

.home-logos-row {
  list-style: none;
  padding: 0;
  margin: 0 auto 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 1100px;
}
.home-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-logo span {
  font: 600 0.78rem/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-logo:hover,
.home-logo:focus-visible {
  border-color: var(--brand-fg);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
  outline: none;
}
.home-logo:hover span,
.home-logo:focus-visible span {
  color: var(--brand-fg);
}

.home-logos-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  text-decoration: none;
  font: 600 0.82rem/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-logos-cta span:last-child {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-logos-cta:hover,
.home-logos-cta:focus-visible {
  background: transparent;
  color: #fff;
  outline: none;
}
.home-logos-cta:hover span:last-child {
  transform: translateX(6px);
}

@media (max-width: 640px) {
  #portfolio.home-logos { padding: 4rem 0; }
  .home-logos-row { gap: 0.6rem; margin-bottom: 2.25rem; }
  .home-logo { padding: 0.7rem 1.1rem; }
  .home-logo span { font-size: 0.7rem; letter-spacing: 0.12em; }
}

/* ─── Work page (work.html) ─────────────────────────────────── */
.work-body { background: #0a0a0a; color: #fff; }

.work-intro {
  padding: calc(var(--nav-h) + 4rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.work-intro-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
}
.work-intro-eyebrow {
  font: 600 0.65rem/1 'Inter', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}
.work-intro-divider { width: 1px; height: 12px; background: #2a2a2a; }
.work-intro-count {
  font: 500 0.65rem/1 'Inter', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  font-variant-numeric: tabular-nums;
}
.work-intro-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 auto 1.25rem;
}
.work-intro-lede {
  font: 400 1.05rem/1.65 'Inter', sans-serif;
  color: #888;
  max-width: 56ch;
  margin: 0 auto;
}

/* Bento Hero */
.work-bento-wrap {
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
}
.work-bento {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: clamp(0.75rem, 1.2vw, 1rem);
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, 22vw);
  grid-template-areas:
    "wl wl wl ob ob sr"
    "wl wl wl mg mg sr"
    "op op op mg mg mt"
    "op op op nb nb mt";
}
.work-tile-whiteline  { grid-area: wl; }
.work-tile-outback    { grid-area: ob; }
.work-tile-mechgas    { grid-area: mg; }
.work-tile-mighty     { grid-area: mt; }
.work-tile-opulence   { grid-area: op; }
.work-tile-northbound { grid-area: nb; }
.work-tile-seenrank   {
  grid-area: sr;
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(236, 72, 153, 0.28), transparent 60%),
    radial-gradient(120% 100% at 0% 100%, rgba(159, 18, 57, 0.35), transparent 65%),
    #0a0610;
}

.work-tile {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #111;
  isolation: isolate;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-tile-art {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  z-index: 1;
}
.work-tile-art img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  filter: grayscale(0.55) brightness(0.7);
  transition: filter 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-tile-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-tile-meta {
  position: absolute;
  z-index: 3;
  left: clamp(1rem, 2vw, 1.75rem);
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.work-tile-tag {
  font: 600 0.65rem/1 'Inter', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-fg);
  opacity: 0.9;
}
.work-tile-title {
  font: 600 clamp(1.1rem, 1.8vw, 1.6rem)/1.15 'Inter', sans-serif;
  letter-spacing: -0.015em;
  margin: 0;
  color: #fff;
}
.work-tile:hover .work-tile-art img,
.work-tile:focus-visible .work-tile-art img {
  filter: grayscale(0) brightness(0.85);
  transform: scale(1.04);
}
.work-tile:hover,
.work-tile:focus-visible {
  outline: none;
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .work-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(220px, 38vw);
    grid-template-areas:
      "wl wl"
      "ob mg"
      "mt op"
      "nb sr";
  }
}
@media (max-width: 560px) {
  .work-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(220px, 50vw);
    grid-template-areas: "wl" "ob" "mg" "mt" "op" "nb" "sr";
  }
}

/* Case studies */
.work-case {
  background: var(--brand-bg);
  color: #fff;
  padding: clamp(4rem, 9vw, 8rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  scroll-margin-top: var(--nav-h);
}
.work-case-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.work-case-head {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.work-case-index {
  font: 600 0.7rem/1 'Inter', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}
.work-case-tag {
  font: 600 0.75rem/1.2 'Inter', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-fg);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.work-case-tag::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--brand-fg);
  opacity: 0.85;
}
.work-case-title {
  font: 600 clamp(2.2rem, 4.5vw, 3.6rem)/1.06 'Inter', sans-serif;
  letter-spacing: -0.025em;
  color: var(--brand-fg);
  margin: 0;
}
.work-case-chips {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.work-case-chips li {
  font: 500 0.7rem/1 'Inter', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.work-case-hero {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  margin-bottom: 2.25rem;
}
.work-case-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.work-case-hero.is-empty {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(236, 72, 153, 0.22), transparent 70%),
    radial-gradient(50% 70% at 10% 100%, rgba(159, 18, 57, 0.25), transparent 70%),
    linear-gradient(135deg, #1a0a14 0%, #0d0710 100%);
}
.work-case-hero.is-empty::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 16%;
  bottom: 16%;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.work-case-body p {
  font: 400 1.02rem/1.7 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch;
  margin: 0 0 1.25rem;
}
.work-case-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-bottom: 0.4rem;
  font: 600 0.82rem/1 'Inter', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--brand-fg);
  transition: gap 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-case-cta:hover,
.work-case-cta:focus-visible {
  gap: 1rem;
  outline: none;
}

@media (max-width: 1024px) {
  .work-case-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .work-case-head {
    position: static;
    top: auto;
  }
}

/* Footer CTA */
.work-footer-cta {
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.work-footer-cta-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 auto 1rem;
  max-width: 22ch;
}
.work-footer-cta-lede {
  font: 400 1.02rem/1.65 'Inter', sans-serif;
  color: #888;
  margin: 0 auto 2.5rem;
  max-width: 50ch;
}
.work-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 1.85rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  text-decoration: none;
  font: 600 0.82rem/1 'Inter', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-footer-cta-btn span:last-child {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-footer-cta-btn:hover,
.work-footer-cta-btn:focus-visible {
  background: transparent;
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}
.work-footer-cta-btn:hover span:last-child {
  transform: translateX(6px);
}


/* ─── Pricing (homepage section + standalone page) ───────────────── */

.pricing-section {
  position: relative;
  background: #0a0a0a;
  color: #fff;
  padding: 6rem 0 7rem;
  border-top: 1px solid #1c1c1c;
}

.pricing-section .section-title,
.pricing-section .section-label {
  color: #fff;
}

.pricing-section .section-subtitle {
  color: #888;
}

.pricing-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.pricing-card {
  position: relative;
  background: #080808;
  border: 1px solid #1c1c1c;
  border-radius: 4px;
  padding: 3rem 2.5rem 2.5rem;
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  transition: background 0.25s ease;
}

/* ── Pricing card staggered entrance ── */
/* Inner elements start hidden + slightly offset; cascade in once .reveal becomes .visible */
.pricing-card .pricing-card-tag,
.pricing-card .pricing-card-title,
.pricing-card .pricing-card-lede,
.pricing-card .pricing-price-row,
.pricing-card .pricing-included .pricing-col,
.pricing-card .pricing-list li,
.pricing-card .pricing-cta-row,
.pricing-card .pricing-note {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-card .pricing-price-row {
  transform: translateY(24px) scale(0.96);
  transform-origin: left center;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cascade timing — kicks in when the IntersectionObserver adds .visible */
.pricing-card.visible .pricing-card-tag      { transition-delay: 0.10s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-card-title    { transition-delay: 0.20s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-card-lede     { transition-delay: 0.30s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-price-row     { transition-delay: 0.42s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-included .pricing-col:nth-child(1) { transition-delay: 0.58s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-included .pricing-col:nth-child(2) { transition-delay: 0.68s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-list li:nth-child(1) { transition-delay: 0.72s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-list li:nth-child(2) { transition-delay: 0.79s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-list li:nth-child(3) { transition-delay: 0.86s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-list li:nth-child(4) { transition-delay: 0.93s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-list li:nth-child(5) { transition-delay: 1.00s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-cta-row       { transition-delay: 1.12s; opacity: 1; transform: none; }
.pricing-card.visible .pricing-note          { transition-delay: 1.22s; opacity: 1; transform: none; }

/* Subtle accent-line draw across the top edge once the card is visible */
.pricing-card.visible::after {
  transform: scaleX(1);
  transition-delay: 0.35s;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pricing-card .pricing-card-tag,
  .pricing-card .pricing-card-title,
  .pricing-card .pricing-card-lede,
  .pricing-card .pricing-price-row,
  .pricing-card .pricing-included .pricing-col,
  .pricing-card .pricing-list li,
  .pricing-card .pricing-cta-row,
  .pricing-card .pricing-note {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.pricing-card:hover::after,
.pricing-card:focus-within::after {
  transform: scaleX(1);
}

.pricing-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.25rem;
}

.pricing-card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.pricing-card-lede {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 56ch;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid #1c1c1c;
  margin-bottom: 2rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pricing-price-amt {
  font-family: 'Instrument Serif', serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pricing-price-unit {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}

.pricing-price-plus {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  color: #555;
  line-height: 1;
}

.pricing-included {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.pricing-col-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #1c1c1c;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-list li {
  font-size: 0.85rem;
  color: #b8b8b8;
  line-height: 1.55;
  position: relative;
}

.pricing-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.pricing-cta-primary,
.pricing-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pricing-cta-primary {
  background: #fff;
  color: #000;
}

.pricing-cta-primary:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.pricing-cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #2a2a2a;
}

.pricing-cta-secondary:hover {
  border-color: #555;
  background: #111;
}

.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.02em;
}

/* ─── Standalone pricing.html page ───────────────────────────────── */

#pricing-page {
  background: #fff;
  color: #000;
  padding-bottom: 6rem;
}

#pricing-page .section-label,
#pricing-page .section-title {
  color: #000;
}

#pricing-page .section-subtitle {
  color: var(--muted);
  max-width: 64ch;
}

.pricing-page-card-wrap {
  margin-top: 3rem;
}

.pricing-card-detail {
  background: #080808;
  color: #fff;
}

.pricing-card-detail .pricing-cta-secondary {
  color: #fff;
}

.pricing-block {
  margin-top: 4.5rem;
  max-width: 760px;
}

.pricing-block-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.pricing-block-lede {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.pricing-list-plain {
  gap: 1rem;
}

.pricing-list-plain li {
  color: #444;
  font-size: 0.95rem;
  padding-left: 0;
}

.pricing-list-plain li strong {
  color: #000;
  font-weight: 600;
}

.pricing-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.pricing-steps li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.pricing-steps li:last-child {
  border-bottom: 1px solid var(--border);
}

.pricing-step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pricing-step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.35rem;
}

.pricing-step-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-faq {
  display: flex;
  flex-direction: column;
}

.pricing-faq-item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.pricing-faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.pricing-faq-item summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-right: 0.25rem;
}

.pricing-faq-item summary::-webkit-details-marker {
  display: none;
}

.pricing-faq-item summary::after {
  content: '+';
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.2s ease;
}

.pricing-faq-item[open] summary::after {
  content: '−';
}

.pricing-faq-item p {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 64ch;
}

.pricing-final-cta {
  margin-top: 5rem;
  text-align: center;
}

.pricing-final-cta .pricing-cta-primary {
  background: #000;
  color: #fff;
}

.pricing-final-cta .pricing-cta-primary:hover {
  background: #222;
}

/* ─── Pricing Tier Table (3-up) ──────────────────────────────── */

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.pricing-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #080808;
  border: 1px solid #1c1c1c;
  border-radius: 6px;
  padding: 2.25rem 1.75rem 2rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              background 0.35s ease;
  overflow: hidden;
}

.pricing-tier:hover {
  transform: translateY(-4px);
  border-color: #2a2a2a;
}

/* Featured tier — elevated, brighter, scaled up */
.pricing-tier-featured {
  background: linear-gradient(180deg, #131313 0%, #0c0c0c 100%);
  border-color: #3a3a3a;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(-12px);
  z-index: 2;
  overflow: visible;
  padding-top: 2.75rem;
}

.pricing-tier-featured:hover {
  transform: translateY(-16px);
  border-color: #4a4a4a;
}

.pricing-tier-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

/* "Most Popular · 3 spots/month" badge — floats above the card */
.pricing-tier-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.pricing-tier-tag {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.pricing-tier-featured .pricing-tier-tag {
  color: #c9a84c;
}

.pricing-tier-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.pricing-tier-lede {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
  margin-bottom: 1.75rem;
  min-height: 2.5em;
}

.pricing-tier-price {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #1c1c1c;
}

.pricing-tier-price .pricing-price-amt {
  font-size: 2.5rem;
}

.pricing-tier-featured .pricing-tier-price .pricing-price-amt {
  font-size: 2.8rem;
}

.pricing-tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.pricing-tier-list li {
  font-size: 0.83rem;
  color: #b8b8b8;
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-tier-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid #6a6a6a;
  border-bottom: 1.5px solid #6a6a6a;
  transform: rotate(-45deg);
}

.pricing-tier-featured .pricing-tier-list li::before {
  border-color: #c9a84c;
}

.pricing-tier-list li strong {
  color: #fff;
  font-weight: 600;
}

.pricing-tier-list-muted {
  color: #555 !important;
}

.pricing-tier-list-muted::before {
  width: 6px !important;
  height: 6px !important;
  border: none !important;
  background: #333;
  border-radius: 50%;
  transform: none !important;
  top: 0.55rem !important;
  left: 2px !important;
}

/* CTA buttons */
.pricing-tier-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 1.25rem;
  border-radius: 2px;
  transition: all 0.2s ease;
  margin-top: auto;
}

.pricing-tier-cta-primary {
  background: #fff;
  color: #000;
}

.pricing-tier-cta-primary:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.pricing-tier-cta-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #2a2a2a;
}

.pricing-tier-cta-ghost:hover {
  border-color: #555;
  background: #111;
}

/* Footnote under tier table */
.pricing-footnote {
  margin-top: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.pricing-footnote p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  letter-spacing: 0.01em;
}

.pricing-footnote-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #333;
  padding-bottom: 0.25rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pricing-footnote-link:hover {
  border-color: #fff;
}

/* Standalone pricing.html — adjust for white background */
#pricing-page .pricing-tiers-detail {
  margin-top: 0;
}

/* Staggered entrance for tier cards (uses existing .reveal → .visible) */
.pricing-tier .pricing-tier-tag,
.pricing-tier .pricing-tier-name,
.pricing-tier .pricing-tier-lede,
.pricing-tier .pricing-tier-price,
.pricing-tier .pricing-tier-list li,
.pricing-tier .pricing-tier-cta {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-tier.visible .pricing-tier-tag   { transition-delay: 0.08s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-name  { transition-delay: 0.16s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-lede  { transition-delay: 0.22s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-price { transition-delay: 0.30s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-list li:nth-child(1) { transition-delay: 0.36s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-list li:nth-child(2) { transition-delay: 0.42s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-list li:nth-child(3) { transition-delay: 0.48s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-list li:nth-child(4) { transition-delay: 0.54s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-list li:nth-child(5) { transition-delay: 0.60s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-list li:nth-child(6) { transition-delay: 0.66s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-list li:nth-child(7) { transition-delay: 0.72s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-list li:nth-child(8) { transition-delay: 0.78s; opacity: 1; transform: none; }
.pricing-tier.visible .pricing-tier-cta   { transition-delay: 0.86s; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pricing-tier .pricing-tier-tag,
  .pricing-tier .pricing-tier-name,
  .pricing-tier .pricing-tier-lede,
  .pricing-tier .pricing-tier-price,
  .pricing-tier .pricing-tier-list li,
  .pricing-tier .pricing-tier-cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pricing-tier-featured { transform: none; }
  .pricing-tier-featured:hover { transform: none; }
}

@media (max-width: 768px) {
  .pricing-section {
    padding: 4rem 0 5rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .pricing-card-title {
    font-size: 1.3rem;
  }

  .pricing-price-amt {
    font-size: 2.5rem;
  }

  .pricing-price-row {
    gap: 0.5rem;
  }

  .pricing-included {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-cta-primary,
  .pricing-cta-secondary {
    justify-content: center;
  }

  .pricing-steps li {
    grid-template-columns: 40px 1fr;
    gap: 0.75rem;
  }

  .pricing-step-num {
    font-size: 1.3rem;
  }

  /* Tier table: stack vertically, featured first */
  .pricing-tiers {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 460px;
  }

  .pricing-tier {
    padding: 1.75rem 1.5rem;
  }

  .pricing-tier-featured {
    transform: none;
    order: -1;
  }

  .pricing-tier-featured:hover {
    transform: translateY(-4px);
  }

  .pricing-tier-badge {
    font-size: 0.5rem;
    padding: 0.35rem 0.65rem;
  }

  .pricing-tier-price .pricing-price-amt,
  .pricing-tier-featured .pricing-tier-price .pricing-price-amt {
    font-size: 2.2rem;
  }

  .pricing-footnote {
    margin-top: 2rem;
    padding: 0 1.5rem;
  }
}

/* ─── Showcase nav link (HALON external) ─────────────────────── */
.nav-link-demo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-link-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ce6df;
  box-shadow: 0 0 6px #7ce6df;
  display: inline-block;
}

/* ── SeenRank Promo ────────────────────────────────────────── */
.seenrank-promo {
  position: relative;
  padding: 5rem 0;
  background: #050508;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}
.seenrank-promo-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(236, 72, 153, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(159, 18, 57, 0.15), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.seenrank-promo-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}
.seenrank-promo-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.seenrank-promo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9a8d4;
  width: fit-content;
}
.seenrank-promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.7);
  animation: seenrankPulse 2.4s ease-in-out infinite;
}
@keyframes seenrankPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}
.seenrank-promo-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
}
.seenrank-promo-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: #ec4899;
}
.seenrank-promo-lede {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
  margin: 0;
}
.seenrank-promo-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0.25rem 0 0;
}
.seenrank-promo-chips li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}
.seenrank-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.seenrank-promo-cta-primary,
.seenrank-promo-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.seenrank-promo-cta-primary {
  background: #ec4899;
  color: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(236, 72, 153, 0.55);
}
.seenrank-promo-cta-primary:hover {
  background: #f472b6;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -8px rgba(236, 72, 153, 0.65);
}
.seenrank-promo-cta-ghost {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.seenrank-promo-cta-ghost:hover {
  background: #ffffff;
  color: #050508;
  border-color: #ffffff;
  transform: translateY(-3px);
}
.seenrank-promo-visual {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, #0d0d12 0%, #08080c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.seenrank-promo-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: conic-gradient(from 180deg at 50% 50%,
    rgba(236, 72, 153, 0.35),
    rgba(255, 255, 255, 0.04),
    rgba(236, 72, 153, 0.25),
    rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
.seenrank-promo-mark {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 12px 24px -8px rgba(159, 18, 57, 0.55);
  z-index: 2;
}
.seenrank-promo-shot {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #1a0a14 0%, #0d0710 100%);
  aspect-ratio: 16 / 10;
  width: 100%;
}
.seenrank-promo-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(236, 72, 153, 0.22), transparent 70%),
    radial-gradient(50% 70% at 10% 100%, rgba(159, 18, 57, 0.25), transparent 70%);
  pointer-events: none;
}
.seenrank-promo-shot::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 18%;
  bottom: 18%;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(236, 72, 153, 0.08) inset,
    0 20px 40px -16px rgba(0, 0, 0, 0.6);
}
.seenrank-promo-shot img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.seenrank-promo-shot.is-empty::before,
.seenrank-promo-shot.is-empty::after {
  /* keep skeleton visible if image fails */
}
@media (max-width: 880px) {
  .seenrank-promo {
    padding: 4rem 0;
  }
  .seenrank-promo-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .seenrank-promo-mark {
    width: 56px;
    height: 56px;
    top: -12px;
    left: -12px;
  }
  .seenrank-promo-actions {
    gap: 0.6rem;
  }
  .seenrank-promo-cta-primary,
  .seenrank-promo-cta-ghost {
    flex: 1;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .seenrank-promo-dot {
    animation: none;
  }
}
