/* ===== Tokens ===== */
:root{
  --ink: #2b2a2f;
  --ink-soft: #57565c;
  --ink-faint: #8a8990;
  --line: rgba(43,42,47,0.14);
  --line-strong: rgba(43,42,47,0.28);
  --bg: #fdfcfb;
  --bg-alt: #f5f3f1;
  --paper: #ffffff;
  --accent: #2b2a2f;

  --font-display: 'Jost', 'Century Gothic', 'Futura', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.eyebrow-dot{ flex-shrink: 0; }
.contact .eyebrow{ justify-content: center; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

h2{
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.03em;
}

p{ margin: 0; }

.section-head{
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head p{
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
}
.section-head.center{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section{ padding: 120px 0; }
@media (max-width: 720px){
  section{ padding: 80px 0; }
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover{
  background: transparent;
  color: var(--ink);
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover{
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn svg{ width: 16px; height: 16px; flex-shrink: 0; }

/* ===== Nav ===== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,252,251,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled{
  border-bottom-color: var(--line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img{ height: 34px; width: auto; }
.brand-word{
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a{
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 28px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span{
  width: 22px; height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px){
  .nav-links{
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    height: calc(100vh - 84px);
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 20px 32px 40px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-links.open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a{
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .header-actions .btn-primary.desktop-only{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 84px;
  overflow: hidden;
}
#constellation{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.hero .wrap{
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-mark{
  width: 96px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.1s forwards;
}
.hero h1{
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.15;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.25s forwards;
}
.hero h1 em{
  font-style: normal;
  color: var(--ink-soft);
}
.hero-sub{
  margin-top: 26px;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 18px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.4s forwards;
}
.hero-ctas{
  margin-top: 44px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.55s forwards;
}
.hero-scroll{
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.9s forwards;
}
.hero-scroll .line{
  width: 1px; height: 40px;
  background: var(--line-strong);
  overflow: hidden;
  position: relative;
}
.hero-scroll .line::after{
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--ink);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine{
  0%{ top: -100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ===== Reveal on scroll ===== */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in > *{ transition-delay: calc(var(--i, 0) * 0.1s); }

/* ===== Services ===== */
.services{ background: transparent; }
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px){
  .service-grid{ grid-template-columns: 1fr; }
}
.service-card{
  background: var(--paper);
  padding: 52px 44px;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(43,42,47,0.18);
  z-index: 1;
}
.service-index{
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  display: block;
}
.service-card h3{
  font-size: 26px;
  margin-bottom: 18px;
}
.service-card p{
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.service-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.service-tags span{
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 7px 14px;
  border-radius: 20px;
}

/* ===== Portfolio ===== */
.portfolio{ background: transparent; }
.project-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px){
  .project-grid{ grid-template-columns: 1fr; }
}
.project-card{
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(43,42,47,0.22);
}
.project-visual{
  position: relative;
  aspect-ratio: 16/10;
  background: var(--ink);
  overflow: hidden;
}
.project-visual svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.project-visual .tag{
  position: absolute;
  top: 16px; left: 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253,252,251,0.7);
  border: 1px solid rgba(253,252,251,0.3);
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 2;
}
.project-body{ padding: 30px 32px 34px; }
.project-body h3{ font-size: 21px; margin-bottom: 10px; }
.project-body p{ color: var(--ink-soft); font-size: 15px; }
.project-note{
  margin-top: 40px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
}

/* ===== Process ===== */
.process-track{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 8px;
}
.process-track::before{
  content: '';
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--line-strong);
}
.process-step{
  position: relative;
  text-align: center;
  padding: 0 6px;
}
.process-node{
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.process-step:hover .process-node{
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: scale(1.1);
}
.process-step h3{
  font-size: 19px;
  margin-bottom: 12px;
}
.process-step p{
  color: var(--ink-soft);
  font-size: 14.5px;
}

@media (max-width: 720px){
  .process-track{
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .process-track::before{
    top: 0;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process-step{
    text-align: left;
    padding: 0 0 0 64px;
  }
  .process-node{
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
}

/* ===== Contact / CTA ===== */
.contact{
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact .eyebrow{ color: rgba(253,252,251,0.55); }
.contact h2{ color: var(--bg); }
.contact p.lede{
  max-width: 520px;
  margin: 22px auto 0;
  color: rgba(253,252,251,0.7);
  font-size: 17px;
}
.contact-actions{
  margin-top: 44px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact .btn-primary{
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.contact .btn-primary:hover{
  background: transparent;
  color: var(--bg);
}
.contact .btn-ghost{
  border-color: rgba(253,252,251,0.3);
  color: var(--bg);
}
.contact .btn-ghost:hover{
  background: var(--bg);
  color: var(--ink);
}
.contact-detail{
  margin-top: 56px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253,252,251,0.45);
}

/* ===== Footer ===== */
.site-footer{
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.site-footer .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img{ height: 24px; }
.footer-brand span{
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 14px;
}
.footer-meta{
  color: var(--ink-faint);
  font-size: 13px;
}
.footer-links{
  display: flex;
  gap: 24px;
}
.footer-links a{
  position: relative;
  font-size: 13px;
  color: var(--ink-soft);
  padding-bottom: 3px;
  transition: color 0.25s var(--ease);
}
.footer-links a::after{
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s var(--ease);
}
.footer-links a:hover{ color: var(--ink); }
.footer-links a:hover::after{ right: 0; }

/* ===== WhatsApp floating button ===== */
.wa-float{
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(43,42,47,0.45);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width: 26px; height: 26px; }
