/* fuve.si — light glass design system */
:root {
  --bg: #f4f6fb;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --yellow: #facc15;
  --yellow-deep: #eab308;
  --yellow-ink: #854d0e;
  --yellow-tint: rgba(250, 204, 21, 0.18);
  --live: #15803d;
  --live-tint: rgba(34, 197, 94, 0.14);
  --wip: #b45309;
  --wip-tint: rgba(245, 158, 11, 0.16);

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --hairline: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 18px 40px -12px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 30px 70px -20px rgba(15, 23, 42, 0.28);
  --blur: blur(22px) saturate(170%);

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; color-scheme: light; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: 0.92em; }

:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 2px;
  border-radius: 8px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Ambient light behind the glass ---------- */
.ambient-canvas {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(250, 204, 21, 0.28), transparent 60%),
    radial-gradient(900px 600px at 100% 5%, rgba(125, 170, 255, 0.24), transparent 60%),
    radial-gradient(900px 700px at 55% 110%, rgba(255, 170, 120, 0.2), transparent 60%),
    var(--bg);
}
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.7; }
.orb-1 { width: 380px; height: 380px; left: -90px; top: 36%; background: rgba(250, 204, 21, 0.3); }
.orb-2 { width: 460px; height: 460px; right: -120px; top: 62%; background: rgba(147, 197, 253, 0.34); }

/* ---------- Layout ---------- */
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 16px 0; }
.nav-inner {
  width: min(1200px, 100%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 0.85rem;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); border-radius: 999px;
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--hairline);
}
.brand-link { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-word { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-word .dot { color: var(--yellow-deep); }
.brand-tld {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink-2); background: rgba(15, 23, 42, 0.05); padding: 0.18rem 0.5rem; border-radius: 999px;
}
.nav-links { display: flex; gap: 0.15rem; }
.nav-link {
  text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--ink-2);
  padding: 0.5rem 0.9rem; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: rgba(15, 23, 42, 0.05); color: var(--ink); }
.nav-link.active { background: var(--yellow-tint); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn-yellow, .btn-outline, .btn-card-visit, .btn-card-modal {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  text-decoration: none; cursor: pointer; font-weight: 700; font-size: 0.9rem;
  padding: 0.7rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn-yellow {
  background: linear-gradient(180deg, #fde047, var(--yellow)); color: var(--ink);
  border-color: rgba(161, 98, 7, 0.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 8px 20px -6px rgba(234, 179, 8, 0.6);
}
.btn-yellow:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 12px 26px -6px rgba(234, 179, 8, 0.7); }
.btn-outline, .btn-card-modal {
  background: var(--glass-strong); border-color: var(--hairline); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover, .btn-card-modal:hover { background: #fff; transform: translateY(-1px); }
.btn-card-visit { background: var(--ink); color: #fff; }
.btn-card-visit:hover { transform: translateY(-1px); background: #1e293b; }
.btn-card-visit.is-muted { background: var(--glass-strong); color: var(--ink); border-color: var(--hairline); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.82rem; }

/* ---------- Hero ---------- */
.hero { padding: 40px 16px 8px; }
.hero-card {
  width: min(1200px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--hairline);
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 700; color: var(--yellow-ink);
  background: var(--yellow-tint); padding: 0.38rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow-deep); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(234, 179, 8, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); } }

.hero-title {
  margin: 1.1rem 0 0.9rem; font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.05;
  font-weight: 800; letter-spacing: -0.035em; text-wrap: balance;
}
.hero-title .highlight {
  background: linear-gradient(180deg, transparent 62%, rgba(250, 204, 21, 0.65) 62%);
  padding: 0 0.1em;
}
.hero-subtitle { color: var(--ink-2); font-size: 1.06rem; max-width: 56ch; margin: 0; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.75rem; }

.hero-showcase { display: grid; gap: 1rem; }
.hero-logo-stage {
  aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: var(--r-lg);
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5));
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--hairline);
}
.hero-logo-stage img { width: clamp(110px, 40%, 170px); filter: drop-shadow(0 18px 24px rgba(234, 179, 8, 0.28)); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.stat-card {
  padding: 1rem 1.1rem; border-radius: var(--r-md);
  background: var(--glass-strong); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hairline);
}
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-value.live { color: var(--live); }
.stat-value.wip { color: var(--wip); }
.stat-label { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; margin-top: 0.2rem; }

/* ---------- Ticker ---------- */
.ticker-wrap { margin: 2.25rem 0 0.5rem; }
.ticker-viewport {
  overflow: hidden; padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 0.6rem; width: max-content; animation: scroll 60s linear infinite; }
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.ticker-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hairline);
}
.ticker-pill:hover { background: #fff; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.status-dot.live { background: #22c55e; box-shadow: 0 0 0 3px var(--live-tint); }
.status-dot.wip { background: #f59e0b; box-shadow: 0 0 0 3px var(--wip-tint); }

/* ---------- Directory ---------- */
.directory-section { width: min(1200px, 100% - 32px); margin: 3.5rem auto 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-title { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
.section-subtitle { margin: 0.5rem 0 0; color: var(--ink-2); max-width: 60ch; }
.results-count { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }

.controls-toolbar {
  padding: 1rem; border-radius: var(--r-lg); margin-bottom: 1.5rem; display: grid; gap: 0.9rem;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--hairline);
}
.toolbar-top { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; align-items: center; }
.status-tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: rgba(15, 23, 42, 0.05); flex-wrap: wrap; }
.status-tab {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; border: 0; background: transparent;
  font-size: 0.85rem; font-weight: 700; color: var(--ink-2); padding: 0.5rem 1rem; border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.status-tab:hover { color: var(--ink); }
.status-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.search-box { position: relative; flex: 1 1 280px; max-width: 440px; }
.search-box input {
  width: 100%; padding: 0.7rem 1rem 0.7rem 2.6rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--hairline); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus { border-color: var(--yellow-deep); box-shadow: 0 0 0 4px var(--yellow-tint); }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; }

.category-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cat-chip {
  cursor: pointer; font-size: 0.8rem; font-weight: 700; color: var(--ink-2);
  padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.7); transition: all 0.18s;
}
.cat-chip:hover { background: #fff; color: var(--ink); }
.cat-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }

.project-card {
  display: flex; flex-direction: column; gap: 0.9rem; padding: 1.1rem; border-radius: var(--r-lg);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--hairline);
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--hairline); }

.card-visual-banner {
  padding: 0.8rem 0.9rem 0.9rem; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-tint, rgba(250, 204, 21, 0.2)), rgba(255, 255, 255, 0.7));
  border: 1px solid var(--glass-edge); box-shadow: inset 0 0 0 1px var(--hairline);
}
.banner-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.banner-browser-dots { display: flex; gap: 5px; }
.banner-browser-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(15, 23, 42, 0.16); }
.banner-url-pill {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-3); background: rgba(255, 255, 255, 0.85);
  padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--hairline);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.banner-main-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.banner-domain-title { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; word-break: break-word; }
.banner-name { font-size: 0.8rem; color: var(--ink-2); font-weight: 600; }
.banner-icon-box {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: var(--accent, #facc15); color: var(--ink); box-shadow: var(--shadow-sm);
}

.card-meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.status-badge {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.74rem; font-weight: 700;
  padding: 0.25rem 0.65rem; border-radius: 999px;
}
.status-badge.live { background: var(--live-tint); color: var(--live); }
.status-badge.wip { background: var(--wip-tint); color: var(--wip); }
.category-tag { font-size: 0.74rem; font-weight: 600; color: var(--ink-3); }

.card-tagline { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.35; }
.card-summary { margin: 0; font-size: 0.9rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-dns-bar {
  font-size: 0.76rem; color: var(--ink-2); padding: 0.55rem 0.8rem; border-radius: var(--r-sm);
  background: rgba(15, 23, 42, 0.04); border: 1px solid var(--hairline);
}
.card-highlights-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.card-highlights-list li { position: relative; padding-left: 1.2rem; font-size: 0.84rem; color: var(--ink-2); }
.card-highlights-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-tint);
}
.stack-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.stack-pill {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: var(--ink-2);
  padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--hairline);
}
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.2rem; }
.card-actions > * { flex: 1 1 auto; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem; }

/* ---------- Contact ---------- */
.contact-section { width: min(1200px, 100% - 32px); margin: 4.5rem auto 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: clamp(1.25rem, 3.5vw, 2.75rem);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); border-radius: var(--r-xl); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--hairline);
}
.contact-intro { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.contact-mark { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow-md); }
.contact-email-card {
  width: 100%; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--glass-strong);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hairline);
}
.contact-email-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.contact-email-address { font-weight: 800; font-size: 1.05rem; word-break: break-all; }
.contact-email-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mini-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.mini-kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--yellow-ink); font-weight: 700; }
.mini-value { font-weight: 700; margin-top: 0.15rem; }
.mini-value a { text-decoration: underline; text-underline-offset: 3px; }
.domain-jump { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.domain-jump-label { width: 100%; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow-ink); font-weight: 700; margin-bottom: 0.1rem; }

.contact-form { display: grid; gap: 1rem; align-content: start; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: grid; gap: 0.35rem; min-width: 0; }
.form-group label { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 0.95rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.88); border: 1px solid var(--hairline); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--yellow-deep); box-shadow: 0 0 0 4px var(--yellow-tint); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.form-note { font-size: 0.78rem; color: var(--ink-3); }
.form-status {
  display: none; font-size: 0.86rem; padding: 0.8rem 1rem; border-radius: var(--r-md);
  background: var(--yellow-tint); border: 1px solid rgba(234, 179, 8, 0.35); color: var(--ink);
}
.form-status.show { display: block; }
.form-status a { font-weight: 700; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 23, 42, 0.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-backdrop.open { display: flex; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-panel {
  width: min(820px, 100%); max-height: min(88vh, 900px); overflow: auto; padding: clamp(1.25rem, 3vw, 2.25rem);
  background: rgba(255, 255, 255, 0.95); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  animation: rise 0.25s ease;
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.modal-title { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.modal-tagline { margin: 0.3rem 0 0; color: var(--ink-2); }
.modal-meta { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.6rem; }
.modal-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  background: rgba(15, 23, 42, 0.06); border: 1px solid var(--hairline);
}
.modal-close:hover { background: rgba(15, 23, 42, 0.12); }
.modal-body-section { margin-bottom: 1.4rem; }
.modal-body-section h4 { margin: 0 0 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--yellow-ink); }
.modal-body-section p { margin: 0 0 0.8rem; font-size: 0.93rem; color: var(--ink-2); }
.modal-foot { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--hairline); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  padding: 0.75rem 1.2rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: #fff;
  background: rgba(15, 23, 42, 0.92); box-shadow: var(--shadow-lg); transition: all 0.25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 5rem; padding: 0 16px 28px; }
.footer-inner {
  width: min(1200px, 100%); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem; border-radius: var(--r-lg); font-size: 0.86rem; color: var(--ink-2);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hairline);
}
.footer-brand { display: flex; align-items: center; gap: 0.65rem; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-card, .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .brand-tld { display: none; }
  .form-row-2, .mini-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .status-tabs { width: 100%; }
  .status-tab { flex: 1 1 auto; justify-content: center; padding-inline: 0.6rem; }
  .search-box { max-width: none; }
}

/* =========================================================
   v3 — pipeline, milestones, applications, motion
   ========================================================= */

/* Header: stronger glass once scrolled */
.nav-inner { transition: box-shadow 0.3s, background 0.3s; }
.site-header.scrolled .nav-inner { background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--hairline); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(15, 23, 42, 0.05); border: 1px solid var(--hairline); place-items: center;
}
.menu-btn svg { width: 18px; height: 18px; }
.mobile-menu {
  display: none; width: min(1200px, 100%); margin: 8px auto 0; padding: 0.5rem;
  background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: grid; animation: rise 0.22s ease; }
.mobile-menu a { padding: 0.8rem 1rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.mobile-menu a:hover { background: rgba(15, 23, 42, 0.05); }

/* Ambient orbs drift slowly */
.orb-1 { animation: drift1 26s ease-in-out infinite alternate; }
.orb-2 { animation: drift2 32s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, -80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, -60px) scale(0.9); } }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Glass sheen that follows the pointer */
.project-card { position: relative; overflow: hidden; }
.project-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.55), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.project-card:hover::after { opacity: 1; }
.btn-yellow:active, .btn-outline:active, .btn-card-visit:active, .btn-card-modal:active, .btn-ink:active { transform: scale(0.98); }

.btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; cursor: pointer;
  text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 0.7rem 1.25rem; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); transition: transform 0.18s, background 0.18s;
}
.btn-ink:hover { transform: translateY(-1px); background: #1e293b; }
.btn-ink[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Stage track (cards + dossier) ---------- */
.stage-block { display: grid; gap: 0.45rem; }
.stage-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.stage-seg { height: 6px; border-radius: 999px; background: rgba(15, 23, 42, 0.08); overflow: hidden; position: relative; }
.stage-seg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.stage-seg.done::before { background: linear-gradient(90deg, #fde047, var(--yellow-deep)); }
.stage-seg.now::before { background: linear-gradient(90deg, var(--yellow-deep), #f59e0b); }
.stage-seg.now { animation: glow 2.4s ease-in-out infinite; }
.is-visible .stage-seg::before, .modal-panel .stage-seg::before, html:not(.js) .stage-seg::before { transform: scaleX(1); }
@keyframes glow { 50% { opacity: 0.6; } }
.stage-text { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.76rem; color: var(--ink-3); font-weight: 600; }
.stage-text strong { color: var(--ink); }
.stage-labels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.stage-labels span { font-size: 0.68rem; font-weight: 700; color: var(--ink-3); text-align: center; }
.stage-labels span.on { color: var(--ink); }

/* ---------- Pipeline board ---------- */
.pipeline-section { width: min(1200px, 100% - 32px); margin: 3.5rem auto 0; }
.pipeline-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-2); font-weight: 600; }
.pipeline-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.pipeline-board {
  display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 0.8rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px;
}
.stage-col {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.55rem; min-height: 220px;
  padding: 0.9rem; border-radius: var(--r-lg);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--hairline);
}
.stage-col-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.stage-num { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-3); font-weight: 600; display: block; }
.stage-name { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.stage-count {
  min-width: 26px; height: 26px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px;
  font-size: 0.76rem; font-weight: 800; background: rgba(15, 23, 42, 0.06);
}
.stage-col.has-items .stage-count { background: var(--yellow); }
.stage-hint { font-size: 0.74rem; color: var(--ink-3); margin: -0.2rem 0 0.2rem; }
.stage-chip {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left; cursor: pointer;
  padding: 0.55rem 0.65rem; border-radius: var(--r-sm); font-size: 0.82rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.88); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.stage-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chip-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.chip-domain { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-empty { font-size: 0.78rem; color: var(--ink-3); border: 1px dashed rgba(15, 23, 42, 0.16); border-radius: var(--r-sm); padding: 0.7rem; text-align: center; }

/* ---------- Milestone timeline (dossier) ---------- */
.timeline { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; }
.timeline li { position: relative; display: flex; gap: 0.8rem; padding: 0 0 1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: rgba(15, 23, 42, 0.1); }
.timeline li.done::before { background: linear-gradient(var(--yellow-deep), rgba(234, 179, 8, 0.3)); }
.timeline li:last-child::before { display: none; }
.tl-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; border: 2px solid rgba(15, 23, 42, 0.15); background: #fff; position: relative; z-index: 1; }
.timeline li.done .tl-dot { background: var(--yellow); border-color: var(--yellow-deep); }
.timeline li.now .tl-dot { border-color: var(--yellow-deep); }
.timeline li.now .tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow-deep); animation: pulse 2.2s infinite; }
.tl-body { display: grid; gap: 0.1rem; padding-top: 2px; }
.tl-title { font-size: 0.92rem; font-weight: 700; }
.timeline li.next .tl-title { color: var(--ink-2); font-weight: 600; }
.tl-state { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.timeline li.done .tl-state { color: var(--live); }
.timeline li.now .tl-state { color: var(--wip); }
.timeline li.next .tl-state { color: var(--ink-3); }

/* ---------- Collaborate CTA band ---------- */
.cta-band { width: min(1200px, 100% - 32px); margin: 4.5rem auto 0; }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(254, 240, 138, 0.75), rgba(255, 255, 255, 0.72) 45%, rgba(191, 219, 254, 0.6));
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--hairline);
}
.cta-inner h2 { margin: 0.7rem 0 0; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.15; }
.cta-inner p { margin: 0.5rem 0 0; color: var(--ink-2); max-width: 58ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Apply page ---------- */
.apply-hero { width: min(1200px, 100% - 32px); margin: 2.5rem auto 1.5rem; }
.apply-hero h1 { margin: 0.9rem 0 0.4rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; line-height: 1.08; }
.apply-shell { width: min(1200px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.apply-panel {
  padding: clamp(1.25rem, 3.5vw, 2.25rem); border-radius: var(--r-xl);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--hairline);
}
.apply-aside { position: sticky; top: 100px; display: grid; gap: 1rem; }
.aside-card {
  padding: 1.2rem; border-radius: var(--r-lg); background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--hairline);
}
.aside-card h3 { margin: 0 0 0.7rem; font-size: 0.95rem; }
.aside-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; font-size: 0.86rem; color: var(--ink-2); }
.aside-list li { display: flex; gap: 0.5rem; }
.aside-list li::before { content: "✓"; color: var(--yellow-deep); font-weight: 800; }
.aside-project { display: grid; gap: 0.6rem; }
.aside-project .banner-domain-title { font-size: 1.1rem; }

.steps-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1.75rem; }
.step-pill { display: grid; gap: 0.45rem; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); }
.step-pill .bar { height: 5px; border-radius: 999px; background: rgba(15, 23, 42, 0.08); overflow: hidden; }
.step-pill .bar::before { content: ""; display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fde047, var(--yellow-deep)); transition: width 0.45s cubic-bezier(.2,.7,.2,1); }
.step-pill.active, .step-pill.done { color: var(--ink); }
.step-pill.active .bar::before, .step-pill.done .bar::before { width: 100%; }

.step { display: none; }
.step.active { display: grid; gap: 1.1rem; animation: stepIn 0.35s cubic-bezier(.2,.7,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.step-title { margin: 0; padding: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.step > legend.step-title { margin-bottom: 0.3rem; }
.step-sub { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
[hidden] { display: none !important; }
.group-label { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 0.45rem; display: block; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.choice-card { position: relative; cursor: pointer; display: block; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: grid; gap: 0.3rem; height: 100%; padding: 1rem 1.1rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.86); border: 1.5px solid var(--hairline); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.choice-card:hover .choice-body { transform: translateY(-2px); }
.choice-card input:checked + .choice-body { border-color: var(--yellow-deep); box-shadow: 0 0 0 4px var(--yellow-tint), var(--shadow-md); }
.choice-card input:focus-visible + .choice-body { outline: 3px solid var(--yellow-deep); outline-offset: 2px; }
.choice-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--yellow-tint); }
.choice-icon svg { width: 20px; height: 20px; }
.choice-name { font-weight: 800; }
.choice-desc { font-size: 0.82rem; color: var(--ink-2); }

.toggle-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.toggle-chip { cursor: pointer; position: relative; }
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip > span {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; color: var(--ink-2); background: rgba(255, 255, 255, 0.82); border: 1px solid var(--hairline);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.toggle-chip:hover > span { background: #fff; color: var(--ink); }
.toggle-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.toggle-chip .status-dot { width: 7px; height: 7px; }
.toggle-chip input:focus-visible + span { outline: 3px solid var(--yellow-deep); outline-offset: 2px; }

.field-error { font-size: 0.78rem; color: #b91c1c; font-weight: 600; }
.field-error:empty { display: none; }
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12); }
.check-row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: var(--ink-2); cursor: pointer; }
.check-row input { margin-top: 0.2rem; accent-color: var(--yellow-deep); width: 16px; height: 16px; flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.step-actions { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.4rem; padding-top: 1.1rem; border-top: 1px solid var(--hairline); }
.step-actions .spacer { flex: 1; }

.review-list { display: grid; gap: 0.55rem; margin: 0; }
.review-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0.9rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.72); border: 1px solid var(--hairline); }
.review-row dt { font-size: 0.78rem; font-weight: 700; color: var(--ink-3); }
.review-row dd { margin: 0; font-size: 0.9rem; white-space: pre-wrap; word-break: break-word; }

.success-panel { text-align: center; display: grid; justify-items: center; gap: 0.9rem; padding: 1.5rem 0.5rem; }
.success-panel p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.success-badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); box-shadow: 0 16px 34px -10px rgba(234, 179, 8, 0.8); animation: pop 0.5s cubic-bezier(.2,1.4,.4,1); }
.success-badge svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

@media (max-width: 1100px) {
  .pipeline-board { grid-template-columns: repeat(6, minmax(210px, 70%)); }
}
@media (max-width: 960px) {
  .apply-shell { grid-template-columns: 1fr; }
  .apply-aside { position: static; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 560px) {
  .nav-actions .btn-outline { display: none; }
  .choice-grid { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .steps-nav { gap: 0.3rem; }
  .step-pill { font-size: 0.68rem; }
}

/* No blur support: keep the cards readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, 0.92); --glass-strong: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stage-seg::before { transform: scaleX(1) !important; }
}
