:root {
  --bg: #0a0a0a;
  --bg-elevated: #131313;
  --line: #1f1f1f;
  --line-strong: #2a2a2a;
  --text: #f4f4f4;
  --text-muted: #8a8a8a;
  --text-dim: #5a5a5a;
  --accent: #ffffff;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter Tight', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: #fff; color: #000; }

/* === SCROLL REVEAL — bidirectional === */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* === NAV === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

/* Logo as image */
.logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.logo-img:hover { opacity: 0.65; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.nav-cta:hover {
  background: var(--text);
  color: var(--bg);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  padding: 8rem 2.5rem 8rem;  /* more bottom padding so marquee clears CTA */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* ── Video: right-half only, fully blended into dark bg ── */
.hero-video-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Radial mask: video fades to nothing on ALL edges — no hard cut anywhere */
  mask-image: radial-gradient(
    ellipse 80% 70% at 70% 50%,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.6) 35%,
    rgba(0,0,0,0.2) 65%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 70% 50%,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.6) 35%,
    rgba(0,0,0,0.2) 65%,
    transparent 100%
  );
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.45;
  display: block;
}

/* All hero text/content above video layers */
.hero > *:not(.hero-video-wrap) {
  position: relative;
  z-index: 2;
}

/* ── Scroll-fade wrapper for hero content ── */
.hero-content-fade {
  position: relative;
  z-index: 2;
  will-change: opacity, transform;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-meta span::before {
  content: '◦  ';
  color: var(--text-dim);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
  /* extra breathing room before the marquee */
  margin-bottom: 5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.8rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: var(--text-muted);
  transform: translateX(4px);
}
.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.3rem;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Marquee — pinned to bottom with enough clearance */
.hero-marquee {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: marquee 40s linear infinite;
}
.marquee-track span { margin: 0 2.5rem; }
.marquee-track span::before {
  content: '⟶ ';
  margin-right: 0.5rem;
  color: var(--text-muted);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === SECTIONS === */
section {
  padding: 7rem 2.5rem;
  position: relative;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: end;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-num::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--text-muted);
  margin-right: 1rem;
  vertical-align: middle;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.section-title em {
  font-style: italic;
  color: var(--text-muted);
}

/* === ABOUT === */
.about { border-bottom: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1400px;
}

.about-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 50ch;
}
.about-text p strong {
  color: var(--text);
  font-weight: 400;
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.founder {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: all 0.4s ease;
}
.founder:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

/* Photo placeholder */
.founder-photo {
  margin-bottom: 1.5rem;
}
.founder-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-dim);
}
.founder-photo-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}
.founder-photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
}

.founder-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.founder-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.founder-role-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* LinkedIn button */
.founder-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.3s ease;
  margin-left: 1rem;
  margin-top: 2px;
}
.founder-linkedin svg {
  width: 14px;
  height: 14px;
}
.founder-linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
  transform: translateY(-1px);
}

.founder-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === SERVICES === */
.services {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.services-list { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 80px 48px 1fr 2fr 100px;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: default;
  transition: padding 0.4s ease;
}
.service-row:hover { padding-left: 1.5rem; }
.service-row:hover .service-arrow {
  color: var(--text);
  transform: translateX(8px);
}

.service-idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.service-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 50ch;
}
.service-arrow {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text-dim);
  text-align: right;
  transition: all 0.4s ease;
}

/* === EXPERIENCE === */
.experience { border-bottom: 1px solid var(--line); }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.exp-cell {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exp-cell:nth-child(2n)  { border-right: none; }
.exp-cell:nth-last-child(-n+2) { border-bottom: none; }

.exp-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}
.exp-num em {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.5em;
  vertical-align: super;
}

.exp-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.exp-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tools-list {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.tools-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.tool-tag {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.tool-tag:hover {
  border-color: var(--text);
  color: var(--text);
}

/* === PROCESS === */
.process {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}
.process-list {
  border-top: 1px solid var(--line);
}
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr 2fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding 0.4s ease;
}
.process-step:last-child { border-bottom: none; }
.process-step:hover { padding-left: 1.5rem; }

.process-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text-muted);
}
.process-num em {
  font-style: italic;
  color: var(--text-dim);
}

.process-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.process-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 55ch;
}

.process-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.8rem;
}

/* === FAQ === */
.faq {
  border-bottom: 1px solid var(--line);
}
.faq-list {
  border-top: 1px solid var(--line);
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.8rem 0;
  cursor: pointer;
  user-select: none;
  transition: padding 0.3s ease;
}
.faq-question:hover { padding-left: 0.8rem; }
.faq-q-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 300;
}
.faq-item.open .faq-toggle {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.8rem;
}
.faq-a-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

@media (max-width: 900px) {
  .process-step {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }
  .process-desc { grid-column: 1 / -1; }
  .process-num { font-size: 2.5rem; }
  .process-title { font-size: 1.4rem; }
  .faq-q-text { font-size: 1.1rem; }
  .faq-question { padding: 1.4rem 0; gap: 1rem; }
}

/* === CONTACT === */
.contact {
  padding: 8rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.contact-mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.contact h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 3rem;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.contact h2 em {
  font-style: italic;
  color: var(--text-muted);
}
.contact-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* Contact form */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--text-muted);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group select option { background: var(--bg-elevated); }
.form-group textarea { height: 120px; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: left;
}
.form-consent input[type="checkbox"] {
  width: 14px; height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--text);
  cursor: pointer;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.8rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}
.btn-submit:hover { background: var(--text-muted); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line-strong);
}
.form-message.success { display: block; border-color: #4ade80; color: #4ade80; }
.form-message.error   { display: block; border-color: #f87171; color: #f87171; }

/* === FOOTER === */
footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s ease infinite;
}

/* Social icons row */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-link:hover {
  border-color: var(--text-muted);
  color: var(--text);
  transform: translateY(-2px);
}
.social-link svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 5rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .section-header {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-text { grid-template-columns: 1fr; gap: 2rem; }
  .founders { grid-template-columns: 1fr; }
  .service-row {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    padding: 1.8rem 0;
  }
  .service-desc, .service-arrow, .service-icon { display: none; }
  .service-name { font-size: 1.4rem; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .exp-cell:last-child { border-bottom: none !important; }
  .contact-meta { gap: 1.5rem; }
  .footer-main { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

/* === SPINNING DISC + POPUP === */
.disc-wrap {
  position: fixed;
  bottom: 2rem;
  right: 2.2rem;
  z-index: 200;
  width: 100px;
  height: 100px;
  cursor: pointer;
  /* Layered drop-shadow for depth */
  filter:
    drop-shadow(0 2px 4px rgba(0,0,0,0.6))
    drop-shadow(0 8px 24px rgba(0,0,0,0.5))
    drop-shadow(0 0 12px rgba(201,168,76,0.18));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.disc-wrap:hover {
  transform: scale(1.05);
}
.disc-svg {
  width: 100%;
  height: 100%;
  animation: spin 5s linear infinite;
  transform-origin: center;
}
/* Pause spin when popup is open */
.disc-wrap.open .disc-svg {
  animation-play-state: paused;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .disc-svg { animation: none; }
}

/* ── Pill: slides straight up from behind the disc, no squish ── */
.disc-popup {
  position: fixed;
  bottom: calc(2rem + 8px);
  right: calc(2.2rem + 50px);
  transform: translateX(50%);
  transform-origin: bottom center;
  z-index: 199;
  width: 72px;
  background: #f2f0ec;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(100% 0 0 0 round 999px);
  transition: clip-path 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  /* Pill drop shadow — heavier on the left so sub-panel looks like it comes from behind */
  box-shadow:
    -6px 4px 24px rgba(0,0,0,0.45),
    0 8px 32px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.25);
}
.disc-popup.open {
  clip-path: inset(0% 0 0 0 round 999px);
  pointer-events: all;
}

/* Nav items inside pill */
.disc-popup-nav {
  list-style: none;
  padding: 0.9rem 0 calc(100px + 1rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.disc-popup-nav li {
  width: 100%;
}
.disc-popup-nav li + li {
  border-top: 1px solid rgba(0,0,0,0.08);
}
.disc-popup-nav li a,
.disc-popup-nav li button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.75rem 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: center;
  line-height: 1.3;
}
.disc-popup-nav li a:hover,
.disc-popup-nav li button:hover {
  background: rgba(0,0,0,0.05);
}
/* Active pill item highlight */
.disc-popup-nav li button.pill-active {
  color: #000;
  background: rgba(0,0,0,0.07);
}
.disc-popup-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ── Sub-panel: white, connected flush to pill's left edge ── */
.disc-subpanel {
  position: fixed;
  bottom: calc(2rem + 8px);
  right: calc(2.2rem + 78px);
  width: 220px;
  max-height: 280px;
  overflow-y: auto;
  background: #f2f0ec;
  border-radius: 16px 0 0 16px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: -6px 4px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.15);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.26s ease,
    transform 0.28s cubic-bezier(0.16,1,0.3,1),
    visibility 0s linear 0.28s;
  z-index: 198;
}
.disc-subpanel.active {
  visibility: visible;
  pointer-events: all;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.26s ease,
    transform 0.28s cubic-bezier(0.16,1,0.3,1),
    visibility 0s linear 0s;
}

.disc-subpanel-back {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 0 0.7rem 0;
  font-family: 'JetBrains Mono', monospace;
  transition: color 0.2s;
}
.disc-subpanel-back:hover { color: #111; }

.disc-subpanel h4 {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.disc-subpanel p {
  font-size: 0.6rem;
  line-height: 1.7;
  color: #555;
  letter-spacing: 0.02em;
}
.disc-subpanel p + p { margin-top: 0.5rem; }
.disc-subpanel a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  transition: border-color 0.2s;
}
.disc-subpanel a:hover { border-color: #111; }

.tools-stack { display: flex; flex-direction: column; }
.tool-entry {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.tool-entry:last-child { border-bottom: none; }
.tool-emoji { font-size: 0.9rem; flex-shrink: 0; }
.tool-name { font-size: 0.6rem; color: #1a1a1a; letter-spacing: 0.03em; }
.tool-desc { font-size: 0.52rem; color: #999; margin-top: 1px; }

/* === LANG TOGGLE === */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 3px;
  margin: 0 1.2rem;
  flex-shrink: 0;
}
.lang-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  background: var(--text);
  border-radius: 999px;
  transition: left 0.32s cubic-bezier(0.4,0,0.2,1), width 0.32s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.lang-btn {
  position: relative;
  z-index: 1;
  padding: 4px 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: rgba(255,255,255,0.38);
  transition: color 0.3s;
  white-space: nowrap;
}
.lang-btn.active { color: var(--bg); }

/* === CURSOR GLOW === */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* starts invisible */
  background: radial-gradient(
    600px circle at -9999px -9999px,
    rgba(255,255,255,0.045) 0%,
    transparent 70%
  );
  transition: background 0.12s ease;
  will-change: background;
}

/* === AVAILABILITY BADGE === */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 9px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: default;
  transition: border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}
.avail-badge:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

/* Dot — green when open, amber when limited, red when closed */
.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avail-badge.open   .avail-dot { background: #c9a84c; }
.avail-badge.limited .avail-dot { background: #fbbf24; }
.avail-badge.closed  .avail-dot { background: #f87171; }

/* Blink only when open */
.avail-badge.open .avail-dot {
  animation: availPulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
}
@keyframes availPulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.6); }
  50%  { box-shadow: 0 0 0 5px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

/* === FLOW FIELD CANVAS === */
#flowCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* Service row icons */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  transition: border-color 0.4s ease;
}
.service-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-dim);
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s ease;
}
.service-row:hover .service-icon {
  border-color: var(--text-muted);
}
.service-row:hover .service-icon svg {
  stroke: var(--text);
}

/* === GOLD SEPARATORS === */
.about,
.services,
.experience,
.contact {
  position: relative;
}
.about::before,
.services::before,
.experience::before,
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(201,168,76,0.55) 30%,
    rgba(201,168,76,0.55) 70%,
    transparent 100%
  );
  pointer-events: none;
}