/* ==========================================================================
   Ishaan Gupta: personal site
   Dark base, purple → magenta accents. Orbitron headings, Inter body.
   Edit colors in :root; everything else reads from these tokens.
   ========================================================================== */

:root {
  /* Base */
  --bg: #07050b;
  --bg-2: #0d0914;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(216, 54, 250, 0.14);
  --border-strong: rgba(216, 54, 250, 0.38);

  /* Text */
  --text: #eee8f6;
  --muted: #a99fbb;
  --faint: #6f6680;

  /* Accent palette (from Discord theme) */
  --orchid: #d836fa;
  --magenta: #dc2ba6;
  --purple: #a212f0;
  --grad: linear-gradient(29deg, #d836fa 0%, #dc2ba6 50%, #a212f0 100%);
  --grad-soft: linear-gradient(29deg, rgba(216, 54, 250, 0.16), rgba(220, 43, 166, 0.12), rgba(162, 18, 240, 0.16));

  /* Glow */
  --glow: 0 0 0 1px rgba(216, 54, 250, 0.45), 0 14px 44px -12px rgba(220, 43, 166, 0.6), 0 0 70px -24px rgba(162, 18, 240, 0.7);
  --glow-sm: 0 0 24px -4px rgba(220, 43, 166, 0.55);

  /* Type */
  --font-head: "Orbitron", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
h4 { font-size: 0.95rem; }
::selection { background: rgba(216, 54, 250, 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; border-radius: 4px; }

/* ---------- Ambient background ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-fx::before {
  /* faint engineering grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(216, 54, 250, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 54, 250, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.38; }
.orb-1 { width: 520px; height: 520px; background: var(--purple); top: -180px; left: -140px; animation: drift 22s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; background: var(--magenta); top: 20vh; right: -200px; opacity: 0.22; animation: drift 26s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 380px; height: 380px; background: var(--orchid); bottom: -200px; left: 30vw; opacity: 0.14; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  font-family: var(--font-head); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--orchid);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head p { color: var(--muted); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); border: 0; margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 5, 11, 0.72);
  border-bottom: 1px solid rgba(216, 54, 250, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.06em; font-size: 0.95rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 0.8rem; font-weight: 800;
  box-shadow: var(--glow-sm); transition: transform 0.3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-family: var(--font-head); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 9px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s, box-shadow 0.25s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); box-shadow: var(--glow-sm); }
.nav-links a[aria-current="page"] { color: #fff; background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--border-strong); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform 0.25s, background 0.25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px; background: rgba(7, 5, 11, 0.96); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 12px; }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--border-strong); color: var(--text); background: var(--surface);
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); background: var(--surface-2); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card::before {
  /* soft gradient wash that brightens on hover */
  content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.card > * { position: relative; }
.card:hover, a.card:focus-visible { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--border-strong); }
.card:hover::before { opacity: 0.55; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card p:last-child { margin-bottom: 0; }
.card-media {
  margin: calc(-1 * clamp(20px, 2.4vw, 30px)) calc(-1 * clamp(20px, 2.4vw, 30px)) 20px;
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media.contain img { object-fit: contain; padding: 18px; filter: drop-shadow(0 10px 30px rgba(162, 18, 240, 0.35)); }
.card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orchid);
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.tag {
  font-size: 0.74rem; padding: 4px 11px; border-radius: 999px; color: var(--text);
  background: rgba(216, 54, 250, 0.08); border: 1px solid rgba(216, 54, 250, 0.22);
}
.tag-role { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }

/* Status pill (current projects) */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-family: var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--orchid); margin-bottom: 14px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 0 0 rgba(216, 54, 250, 0.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(216, 54, 250, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 54, 250, 0); } }

/* Animated gradient border for featured cards */
.card-featured { border-color: transparent; background:
  linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
  linear-gradient(var(--angle, 29deg), rgba(216, 54, 250, 0.7), rgba(220, 43, 166, 0.25), rgba(162, 18, 240, 0.7)) border-box;
  border: 1px solid transparent;
}
@property --angle { syntax: "<angle>"; initial-value: 29deg; inherits: false; }
.card-featured:hover { animation: spin-border 3s linear infinite; }
@keyframes spin-border { to { --angle: 389deg; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.25em; }
.hero h1 .grad-text { background-size: 200% 200%; animation: shimmer 8s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-roles { font-family: var(--font-head); font-size: clamp(0.8rem, 1.3vw, 0.95rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.hero-roles b { color: var(--orchid); font-weight: 600; }
.hero .lede { margin-bottom: 30px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 54, 250, 0.42), rgba(162, 18, 240, 0.12) 55%, transparent 70%);
  filter: blur(10px);
}
.hero-visual::after {
  content: ""; position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(216, 54, 250, 0.28); animation: rotate 60s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.hero-visual img { position: relative; z-index: 1; width: min(100%, 520px); animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 50px rgba(162, 18, 240, 0.45)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-caption { position: relative; z-index: 1; margin-top: 10px; font-size: 0.8rem; color: var(--faint); text-align: center; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--bg-2); padding: clamp(18px, 2.4vw, 28px); transition: background 0.3s; }
.stat:hover { background: #140d1e; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

/* ---------- Feature blocks (outreach / robotics) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.feature.flip > :first-child { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }
.feature-num { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--faint); margin-bottom: 10px; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; background: var(--grad); border-radius: 2px; }
.checklist li strong { color: var(--text); font-weight: 600; }

.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(90px, 11vw, 140px); gap: 10px; }
.mosaic figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.mosaic figure:hover { box-shadow: var(--glow); transform: translateY(-3px); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.m-a { grid-column: span 4; grid-row: span 2; }
.m-b { grid-column: span 2; grid-row: span 2; }
.m-c { grid-column: span 3; grid-row: span 2; }
.m-d { grid-column: span 3; grid-row: span 2; }
.m-e { grid-column: span 2; grid-row: span 2; }
.m-f { grid-column: span 4; grid-row: span 2; }

.mini-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.mini-stat { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); min-width: 120px; transition: box-shadow 0.3s, border-color 0.3s; }
.mini-stat:hover { box-shadow: var(--glow-sm); border-color: var(--border-strong); }
.mini-stat b { display: block; font-family: var(--font-head); font-size: 1.35rem; }
.mini-stat span { color: var(--muted); font-size: 0.82rem; }

/* Timeline */
.timeline { position: relative; padding-left: 26px; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--orchid), var(--purple), transparent); }
.timeline li { position: relative; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--orchid); box-shadow: var(--glow-sm); }
.timeline .when { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orchid); }
.timeline .what { color: var(--text); }
.timeline .what small { display: block; color: var(--muted); font-size: 0.9rem; }

/* Quote */
.quote {
  position: relative; margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid var(--border-strong); overflow: hidden;
}
.quote::before { content: "\201C"; position: absolute; top: -30px; left: 14px; font-family: Georgia, serif; font-size: 10rem; line-height: 1; color: rgba(216, 54, 250, 0.22); }
.quote blockquote { margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; position: relative; }
.quote figcaption { margin-top: 16px; color: var(--muted); font-size: 0.92rem; position: relative; }
.quote figcaption b { color: var(--orchid); font-weight: 600; }

/* Robot showcase */
.robot-card .card-media { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 60%, rgba(162, 18, 240, 0.22), transparent 65%), var(--bg-2); }
.contrib {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 3vw, 40px); align-items: center;
}
@media (max-width: 820px) { .contrib { grid-template-columns: 1fr; } }
.contrib-media {
  border-radius: var(--radius); border: 1px solid var(--border); padding: 18px; display: grid; gap: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(216, 54, 250, 0.18), transparent 70%), var(--bg-2);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s;
}
.contrib-media:hover { box-shadow: var(--glow); border-color: var(--border-strong); }
.contrib-media.two { grid-template-columns: 1fr 1fr; align-items: center; }
.contrib-media img { margin: 0 auto; max-height: 360px; object-fit: contain; filter: drop-shadow(0 14px 30px rgba(162, 18, 240, 0.35)); }
.contrib-media figcaption { font-size: 0.78rem; color: var(--faint); text-align: center; }
.contrib-media figure { margin: 0; }
.placeholder-art { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.placeholder-art svg { width: 70%; max-width: 280px; }

/* Awards */
.award-list li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed rgba(216, 54, 250, 0.14); }
.award-list li:last-child { border-bottom: 0; }
.award-list .award-name { font-weight: 600; }
.award-list .award-event { color: var(--muted); font-size: 0.92rem; }
.trophy { flex: none; width: 18px; height: 18px; color: var(--orchid); transform: translateY(3px); }

/* Link list */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.link-tile {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.link-tile:hover { box-shadow: var(--glow); transform: translateY(-3px); border-color: var(--border-strong); }
.link-tile svg { width: 22px; height: 22px; flex: none; color: var(--orchid); }
.link-tile b { display: block; font-weight: 600; font-size: 0.98rem; }
.link-tile span { color: var(--muted); font-size: 0.82rem; }

/* CTA band */
.cta-band {
  border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 64px);
  background: radial-gradient(ellipse at 20% 0%, rgba(216, 54, 250, 0.35), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(162, 18, 240, 0.35), transparent 60%), var(--bg-2);
  border: 1px solid var(--border-strong); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(216, 54, 250, 0.1); padding: 48px 0 36px; margin-top: 40px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer li { margin-bottom: 8px; }
.footer a { transition: color 0.2s, text-shadow 0.2s; }
.footer a:hover { color: var(--orchid); text-shadow: 0 0 18px rgba(220, 43, 166, 0.8); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(216, 54, 250, 0.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: var(--faint); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); transition: box-shadow 0.3s, border-color 0.3s, color 0.2s; }
.socials a:hover { box-shadow: var(--glow); border-color: var(--border-strong); color: #fff; text-shadow: none; }
.socials svg { width: 18px; height: 18px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 18px; }
.contact-form:hover { transform: none; }
.field { display: grid; gap: 8px; }
.field span { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(7, 5, 11, 0.7); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--orchid) 50%), linear-gradient(135deg, var(--orchid) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orchid); box-shadow: var(--glow-sm); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: 0.95rem; color: var(--muted); }
.form-status[data-kind="ok"] { color: #7ef0c1; }
.form-status[data-kind="error"] { color: #ff8db5; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { font-size: 0.82rem; color: var(--faint); }
