/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

:root {
  --bg: #0f0f0f;
  --surface: #161616;
  --surface2: #1c1c1c;
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.15);
  --text: #f0f0f0;
  --muted: #666;
  --muted2: #444;
  --border: rgba(255, 255, 255, 0.07);
  --font-head: 'Geist', sans-serif;
  --font-mono: 'Geist Mono', monospace;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  max-width: 100vw;
  max-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  -webkit-font-smoothing: antialiased;
}

/* ── Glowing Dot Cursor ──────────────────────────────── */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 4px rgba(74, 222, 128, 0.6), 0 0 30px 8px rgba(74, 222, 128, 0.25);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.15s ease, height 0.15s ease;
}

/* ── Hero ─────────────────────────────────────────────── */
#hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}


/* Noise texture overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* Hero content */
#hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(88vw, 1400px);
}

#hero-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  opacity: 0;
}

#hero-headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.8vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.headline-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
}


#hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1.2rem;
  opacity: 0;
}


/* ── Menu Triggers ───────────────────────────────────── */
.menu-trigger {
  position: absolute;
  z-index: 3;
  background: none;
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.55);
  transition: color 0.3s ease;
  opacity: 0;
}

.menu-trigger:hover {
  color: var(--accent);
}

#trigger-connect {
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

#trigger-work {
  right: 2rem;
  top: 50%;
  transform: translateX(50%) translateY(-50%) rotate(90deg);
}

#trigger-testimonials {
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

#trigger-about {
  left: 2rem;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(-90deg);
}

/* ── Panels Base ─────────────────────────────────────── */
.panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-close {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: border-color 0.2s, background 0.2s;
}
.panel-close:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.panel-close svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,0.8);
  stroke-width: 2;
  transition: stroke 0.2s;
}
.panel-close:hover svg { stroke: var(--accent); }


/* ── Connect Panel ──────────────────────────────────── */
#panel-connect {}


.hidden-honeypot { display: none; }

.connect-centered {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  width: min(560px, 90%);
  margin: 0 auto;
  gap: 2.5rem;
}

.connect-meta {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 100%;
}

.connect-email {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.connect-email svg {
  width: 16px; height: 16px;
  stroke: var(--accent);
  stroke-width: 1.5;
  flex-shrink: 0;
}
.connect-email:hover {
  color: var(--accent);
}

.connect-location {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.connect-location svg {
  width: 16px; height: 16px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}


/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-optional {
  color: var(--muted2);
  text-transform: none;
  letter-spacing: 0;
}

.form-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input::placeholder {
  color: var(--muted2);
}

.form-input:focus {
  border-color: rgba(74, 222, 128, 0.4);
}

.form-input.invalid {
  border-color: rgba(255, 80, 80, 0.6);
}

.form-input.invalid:focus {
  border-color: rgba(255, 80, 80, 0.9);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
}

.form-textarea {
  resize: none;
  height: 90px;
}

.form-submit {
  background: var(--accent);
  color: #0f0f0f;
  border: none;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  transition: opacity 0.2s;
  width: 100%;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ff6b6b;
  margin-top: 0.35rem;
}

.field-error.visible {
  display: block;
}

.form-success,
.form-error {
  display: none;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.2rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-success {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--accent);
}

.form-success svg {
  margin-top: 2px;
}

.form-success-title {
  margin: 0;
  font-weight: 700;
}

.form-success-sub {
  margin: 0.2rem 0 0;
  opacity: 0.75;
}

.form-error {
  background: rgba(255, 80, 80, 0.07);
  border: 1px solid rgba(255, 80, 80, 0.25);
  color: #ff6b6b;
}

.form-success svg,
.form-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
}

.form-error p {
  margin: 0;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
}

.form-success.visible,
.form-error.visible {
  display: flex;
}

/* ── Work Experience Panel ──────────────────────────── */
#panel-work {}

.work-inner {
  padding: 5rem 6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.work-header {
  margin-bottom: 4rem;
}

.work-header h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.0;
}

.work-header .sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 0.6rem;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.work-list::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.work-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 2rem 0 2rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.work-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 2.4rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--muted2);
  transition: border-color 0.3s, background 0.3s;
}

.work-item:hover::before {
  border-color: var(--accent);
  background: var(--accent);
}

.work-role {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.work-company {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.work-desc {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  letter-spacing: 0.01em;
  max-width: 520px;
}

.work-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted2);
  text-transform: uppercase;
  padding-top: 0.25rem;
  white-space: nowrap;
}

/* ── Testimonials Panel ──────────────────────────────── */
#panel-testimonials {}

.testi-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 8rem;
  position: relative;
}

.testi-carousel {
  width: 100%;
  max-width: 860px;
  position: relative;
}

.testi-slides {
  display: grid;
}

.testi-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.testi-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.testi-quote-mark {
  font-size: 6rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testi-body {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.testi-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.testi-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.testi-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
}

.testi-dots {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.testi-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted2);
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.testi-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.testi-arrows {
  display: flex;
  gap: 0.75rem;
}

.testi-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.testi-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── About Panel ─────────────────────────────────────── */
#panel-about {}

.about-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-left {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.about-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-right {
  padding: 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.about-name {
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 2rem;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(240,240,240,0.7);
  max-width: 720px;
  margin-bottom: 3rem;
}

.about-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 222, 128, 0.3);
  transition: border-color 0.2s;
}
.about-link:hover {
  border-color: var(--accent);
}

.about-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.social-link svg {
  width: 14px; height: 14px;
  fill: currentColor;
}

.social-link:hover {
  border-color: rgba(74,222,128,0.35);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Panel Item Reveal ───────────────────────────────── */
.panel-item {
  opacity: 0;
  transform: translateY(16px);
}

/* ── Scrollbar hidden globally ───────────────────────── */
::-webkit-scrollbar { display: none; }
