:root {
  --bg: #18181a;
  --bg-alt: #1f1f22;
  --bg-card: #232326;
  --fg: #e8e7e4;
  --fg-secondary: #b5b4b0;
  --fg-muted: #7e7d79;
  --accent: #4d7aff;
  --accent-hover: #6b92ff;
  --border: #2c2c30;
  --border-hover: #3a3a40;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --serif: 'Instrument Serif', serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: white; }

/* ═══ NAV ═══ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 52px;
  background: rgba(24,24,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  text-decoration: none;
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-mark {
  width: 22px; height: 22px;
  background: var(--fg);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  font-size: 0.5rem;
  font-weight: 600;
}

.nav-links {
  display: flex; gap: 0;
  list-style: none;
  align-items: center;
  height: 100%;
}

.nav-links li { height: 100%; display: flex; align-items: center; }

.nav-links a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.78rem;
  font-family: var(--mono);
  padding: 0 1.2rem;
  height: 100%;
  display: flex; align-items: center;
  border-left: 1px solid var(--border);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--fg); }

.nav-links li:last-child a {
  background: var(--accent);
  color: white;
  border-left-color: var(--accent);
}

.nav-links li:last-child a:hover { background: var(--accent-hover); }

.hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer;
  width: 26px; height: 18px;
  position: relative;
}

.hamburger span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--fg);
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 5rem;
  padding-top: 52px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; }

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.9rem 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--fg-secondary);
  padding: 0.9rem 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-ghost:hover { color: var(--fg); border-color: var(--border-hover); }

.hero-stats {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.hero-stat {
  padding: 1.2rem 2rem;
  border-right: 1px solid var(--border);
  text-align: center;
}

.hero-stat:last-child { border-right: none; }

.hero-stat-number {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
}

.hero-stat-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ═══ SECTION BASE ═══ */
.s-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 0.8rem;
}

.s-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.s-desc {
  color: var(--fg-secondary);
  font-size: 0.95rem;
  max-width: 460px;
  line-height: 1.6;
}

/* ═══ TWO PATHS ═══ */
#paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.path-card {
  padding: 4rem 3rem;
  text-decoration: none;
  color: var(--fg);
  border-right: 1px solid var(--border);
  transition: background 0.3s;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.path-card:last-child { border-right: none; }

.path-card:hover { background: var(--bg-alt); }

.path-card.path-dark {
  background: var(--bg-card);
}

.path-card.path-dark:hover { background: var(--border); }

.path-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.path-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.path-title em { font-style: italic; color: var(--accent); }

.path-desc {
  color: var(--fg-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 360px;
  margin-bottom: 1.5rem;
}

.path-cta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.path-card:hover .path-cta { gap: 0.7rem; }

/* Services note strip (reused in packages) */
.services-note {
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.services-note-icon {
  color: var(--accent);
  font-size: 0.9rem;
}

/* ═══ PACKAGES TEASER ═══ */
#packages {
  border-bottom: 1px solid var(--border);
}

.packages-header {
  padding: 4rem 3rem 3rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.packages-header .pkg-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.packages-header .pkg-cta:hover { opacity: 0.7; }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pkg {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}

.pkg:last-child { border-right: none; }
.pkg:hover { background: var(--bg-alt); }

.pkg-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 0.8rem;
}

.pkg-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.pkg-desc {
  color: var(--fg-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.8rem;
}

.pkg-features span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-secondary);
}

.pkg-features span::before {
  content: '→ ';
  color: var(--accent);
}

.pkg-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.pkg-link:hover { opacity: 0.7; }

/* Highlight middle */
.pkg.highlight {
  background: var(--bg-card);
  border-right-color: var(--border);
}

.pkg.highlight:hover { background: var(--border); }

/* ═══ FOOTER ═══ */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--fg-secondary); }

/* ═══ PKG PRICE ═══ */
.pkg-price {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* ═══ PORTFOLIO ═══ */
#portfolio {
  border-bottom: 1px solid var(--border);
}

.portfolio-header {
  padding: 4rem 3rem 3rem;
  border-bottom: 1px solid var(--border);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-item {
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}

.portfolio-item:last-child { border-right: none; }
.portfolio-item:hover { background: var(--bg-alt); }

.portfolio-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.03);
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
  letter-spacing: 0.05em;
}

.portfolio-info {
  padding: 1.5rem 2rem 2rem;
}

.portfolio-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.portfolio-info h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.portfolio-info p {
  color: var(--fg-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ═══ ABOUT (personal) ═══ */
#about {
  border-bottom: 1px solid var(--border);
}

.about-personal {
  display: flex;
  gap: 3rem;
  padding: 4rem 3rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.about-photo {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.about-bio .s-title {
  margin-bottom: 0.6rem;
}

.about-bio p {
  color: var(--fg-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 0.5rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem;
}

.value-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--fg-secondary);
}

.value-row:last-child { border-bottom: none; }

.value-row .v-marker {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* ═══ CONTACT ═══ */
#contact {
  border-bottom: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info {
  padding: 4rem 3rem;
  border-right: 1px solid var(--border);
}

.contact-info .s-title {
  margin-bottom: 0.6rem;
}

.contact-info > p {
  color: var(--fg-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-detail {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  width: 60px;
  flex-shrink: 0;
}

.contact-detail-value {
  font-size: 0.88rem;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}

a.contact-detail-value:hover { color: var(--accent); }

.contact-form-wrap {
  padding: 4rem 3rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--fg);
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235f5e5a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.form-note {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--fg-muted);
  margin-top: 0.8rem;
  text-align: center;
}

/* ═══ REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ RESPONSIVE — TABLET ═══ */
@media (max-width: 1024px) {
  #paths { grid-template-columns: 1fr; }
  .path-card { border-right: none; border-bottom: 1px solid var(--border); min-height: 240px; }
  .path-card:last-child { border-bottom: none; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { border-right: none; border-bottom: 1px solid var(--border); }
  .portfolio-item:last-child { border-bottom: none; }

  .about-personal { flex-direction: column; gap: 2rem; align-items: flex-start; }

  .packages-grid { grid-template-columns: 1fr; }
  .pkg { border-right: none; border-bottom: 1px solid var(--border); }
  .pkg:last-child { border-bottom: none; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--border); }

  .hero-stats {
    position: static;
    border-left: none;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    width: 100%;
  }
}

/* ═══ RESPONSIVE — MOBILE ═══ */
@media (max-width: 640px) {
  /* Nav */
  nav { padding: 0 1.2rem; height: 48px; }

  .nav-logo { font-size: 0.78rem; gap: 0.4rem; }
  .nav-mark { width: 20px; height: 20px; font-size: 0.45rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 48px;
    left: 0; right: 0;
    background: rgba(24,24,26,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-links li { height: auto; width: 100%; }

  .nav-links a {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 0.9rem 1.2rem;
    width: 100%;
    font-size: 0.75rem;
  }

  .hamburger { display: block; }

  /* Hero */
  .hero {
    padding: 48px 1.2rem 2.5rem;
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    margin-bottom: 1.2rem;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 0.92rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.75rem;
  }

  .hero-stats {
    display: flex;
    width: 100%;
    margin-top: 2rem;
  }

  .hero-stat {
    flex: 1;
    padding: 1rem 0.5rem;
  }

  .hero-stat-number { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.52rem; }

  /* Path cards */
  .path-card {
    padding: 2.5rem 1.2rem;
    min-height: 200px;
  }

  .path-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .path-desc { font-size: 0.82rem; }
  .services-note { padding: 0.9rem 1.2rem; font-size: 0.65rem; }

  /* Packages */
  .packages-header {
    padding: 3rem 1.2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .s-title { font-size: clamp(1.6rem, 5vw, 2rem); }

  .pkg {
    padding: 2rem 1.2rem;
  }

  .pkg-name { font-size: 1.5rem; }
  .pkg-desc { font-size: 0.82rem; margin-bottom: 1rem; }
  .pkg-features span { font-size: 0.65rem; }

  /* Portfolio */
  .portfolio-header { padding: 3rem 1.2rem 2rem; }
  .portfolio-info { padding: 1.2rem; }
  .portfolio-info h3 { font-size: 1.1rem; }
  .portfolio-info p { font-size: 0.78rem; }

  /* About */
  .about-personal {
    padding: 3rem 1.2rem;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .about-photo { width: 100px; height: 100px; }
  .about-bio p { font-size: 0.85rem; }
  .about-values { padding: 1.5rem 1.2rem; }
  .value-row { font-size: 0.82rem; padding: 0.5rem 0; }

  /* Contact */
  .contact-info { padding: 3rem 1.2rem; }
  .contact-form-wrap { padding: 2.5rem 1.2rem; }
  .contact-info .s-title { font-size: clamp(1.5rem, 5vw, 2rem); }

  .contact-detail { flex-direction: column; gap: 0.2rem; }
  .contact-detail-label { width: auto; }

  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
    gap: 0.8rem;
  }

  .footer-links { gap: 1rem; }
}

/* ═══ PAGE LOADER ═══ */
#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#pageLoader.active {
  opacity: 1;
  pointer-events: all;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.loader-mark {
  width: 40px;
  height: 40px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.loader-bar {
  width: 120px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#pageLoader.active .loader-bar-fill {
  width: 100%;
}

.loader-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══ SMALL PHONES ═══ */
@media (max-width: 380px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-stat { padding: 0.8rem 0.3rem; }
  .hero-stat-number { font-size: 1.1rem; }
  .pkg-name { font-size: 1.3rem; }
  .path-title { font-size: 1.4rem; }
}
