/* ============================================================
   Fonts: Unbounded (display) · Fira Mono (labels/UI) · Epilogue (body)
   Palette: #050508 bg · #b8ff00 accent (acid lime) · #f2f0fa text
   ============================================================ */
:root {
  --bg:        #050508;
  --surface:   #0b0b10;
  --surface-2: #121218;
  --text:      #f2f0fa;
  --muted:     #64617a;
  --acc:       #b8ff00;
  --acc-dim:   rgba(184, 255, 0, 0.07);
  --border:    rgba(255, 255, 255, 0.065);
  --nav-h:     68px;
  --max-w:     1160px;
  --r:         4px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

body {
  font-family: 'Epilogue', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  cursor: none;
}
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot { display: none; }
}

/* ── Grain overlay ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Custom cursor ── */
.cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  background: var(--acc);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .18s, height .18s, opacity .18s;
  will-change: left, top;
}
body:has(a:hover) .cursor-dot,
body:has(button:hover) .cursor-dot {
  width: 22px;
  height: 22px;
  opacity: .5;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Unbounded', system-ui, sans-serif;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.mono, .s-num, .badge, .c-num, .p-num, .pc-label, label,
.p-tags span, .skills-wrap span, .stat-l, .footer-copy, .pricing-note {
  font-family: 'Fira Mono', monospace;
}

/* accent dot */
.acc { color: var(--acc); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  background: var(--acc);
  color: var(--bg);
  font-family: 'Unbounded', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r);
  cursor: none;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .82; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  background: transparent;
  color: var(--muted);
  font-family: 'Epilogue', sans-serif;
  font-size: .88rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: none;
  transition: color .2s, border-color .2s, transform .2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.25); transform: translateY(-2px); }

/* ── Navigation ── */
#nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(5, 5, 8, .88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: 'Fira Mono', monospace;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .04em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--acc) !important;
  border: 1px solid var(--acc);
  padding: 7px 16px;
  border-radius: var(--r);
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--acc-dim) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}

/* ── Mobile menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu li { padding: 14px 0; text-align: center; }
.mobile-menu a {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--muted);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--acc); }

/* ── Section base ── */
section { padding: 120px 0; }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.section-head {
  margin-bottom: 64px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.s-num {
  display: block;
  font-size: .7rem;
  color: var(--acc);
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 16px;
}
.s-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.badge {
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.eyebrow-line {
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: var(--border);
}
.hero-name {
  font-size: clamp(5.5rem, 20vw, 16rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
  margin-bottom: 52px;
}
.hero-foot {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-sub {
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  color: var(--muted);
  max-width: 360px;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint span {
  font-family: 'Fira Mono', monospace;
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-track {
  width: 1px;
  height: 44px;
  background: var(--border);
  overflow: hidden;
}
.scroll-fill {
  width: 100%;
  height: 100%;
  background: var(--acc);
  animation: scrollPulse 2s ease-in-out infinite;
  transform: translateY(-100%);
}
@keyframes scrollPulse {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 44px 40px;
  position: relative;
  transition: background .3s;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--acc);
  transition: height .4s cubic-bezier(.16,1,.3,1);
}
.service-card:hover::after { height: 100%; }
.service-card:hover { background: var(--surface); }
.c-num {
  display: block;
  font-size: .68rem;
  color: var(--acc);
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.service-card > p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.service-card ul li {
  font-family: 'Fira Mono', monospace;
  font-size: .72rem;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: .02em;
}
.service-card ul li:last-child { border: none; }
.service-card ul li::before { content: '— '; color: var(--acc); }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .3s;
}
.pricing-card:hover { border-color: rgba(184,255,0,.35); }
.pricing-addon { background: var(--bg); }
.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.pc-label {
  font-size: .65rem;
  color: var(--acc);
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid rgba(184,255,0,.4);
  padding: 4px 12px;
  border-radius: 100px;
}
.pc-price { text-align: right; }
.p-from {
  font-family: 'Fira Mono', monospace;
  font-size: .65rem;
  color: var(--muted);
  display: block;
}
.p-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  display: block;
}
.p-unit {
  font-family: 'Fira Mono', monospace;
  font-size: .7rem;
  color: var(--muted);
  display: block;
}
.pricing-card h3 { font-size: 1.35rem; }
.pricing-card > p { font-size: .875rem; color: var(--muted); line-height: 1.75; }
.pc-features { flex: 1; }
.pc-features li {
  font-size: .85rem;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.pc-features li:last-child { border: none; }
.pc-features li::before { content: '✓ '; color: var(--acc); font-weight: 700; }
.pricing-note {
  margin-top: 28px;
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: .03em;
}

/* ── Portfolio ── */
.portfolio-list { display: flex; flex-direction: column; }
.p-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .35s cubic-bezier(.16,1,.3,1), opacity .2s;
  cursor: none;
}
.p-item:first-child { border-top: 1px solid var(--border); }
.p-item:hover { padding-left: 10px; }
.p-num {
  font-size: .68rem;
  color: var(--acc);
  letter-spacing: .1em;
}
.p-info h3 { font-size: 1.15rem; margin-bottom: 5px; }
.p-info p { font-size: .83rem; color: var(--muted); }
.p-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.p-tags span {
  font-size: .65rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .04em;
}
.p-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: color .2s, transform .2s;
}
.p-item:hover .p-arrow { color: var(--acc); transform: translateX(4px); }

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr .6fr;
  gap: 72px;
  align-items: start;
}
.about-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-photo-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}
.about-photo {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(.95) contrast(1.02);
}
.about-lead {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}
.about-text p {
  font-size: .925rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 14px;
}
.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.skills-wrap span {
  font-size: .7rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--r);
  letter-spacing: .04em;
  transition: border-color .2s, color .2s;
}
.skills-wrap span:hover { border-color: var(--acc); color: var(--acc); }
.about-stats {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.stat-n {
  font-family: 'Unbounded', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--acc);
  display: block;
}
.stat-l {
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

/* ── Contact ── */
.contact-form { max-width: 680px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
label {
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}
input, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 13px 17px;
  color: var(--text);
  font-family: 'Epilogue', sans-serif;
  font-size: .92rem;
  outline: none;
  resize: none;
  transition: border-color .2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { border-color: rgba(184,255,0,.5); }
.btn-submit { margin-top: 8px; font-size: .72rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner p { font-size: .82rem; color: var(--muted); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-copy { font-size: .68rem !important; letter-spacing: .04em; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-family: 'Fira Mono', monospace;
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .04em;
  transition: color .2s;
}
.footer-legal a:hover { color: var(--acc); }

/* ── Reveal animations ── */
.reveal-in {
  opacity: 0;
  transition: opacity .65s ease calc(var(--d, 0s));
}
.reveal-in.revealed { opacity: 1; }

.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease calc(var(--d, 0s)),
              transform .65s cubic-bezier(.16,1,.3,1) calc(var(--d, 0s));
}
.reveal-up.revealed { opacity: 1; transform: none; }

.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .95s cubic-bezier(.16,1,.3,1);
}
.reveal-clip.revealed { clip-path: inset(0 0% 0 0); }

.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease calc(var(--cd, 0s)),
              transform .55s cubic-bezier(.16,1,.3,1) calc(var(--cd, 0s));
}
.reveal-card.revealed { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .scroll-hint   { display: none; }

  .p-item { grid-template-columns: 44px 1fr auto; }
  .p-tags { display: none; }

  section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .nav-inner, .section-inner, .hero-inner, .footer-inner { padding: 0 20px; }
  .form-row    { grid-template-columns: 1fr; }
  .pricing-card { padding: 32px 24px; }
  .service-card { padding: 32px 24px; }
  .about-stats  { padding: 36px 28px; }
  .hero-foot    { flex-direction: column; gap: 28px; }
}
