/* ============================================================
   SIMO DESIGN — cinematic 3D-scroll portfolio
   Ink black · emerald accent · cream type · Anton display
   ============================================================ */
:root {
  --ink: #050505;
  --ink-2: #0b0d0c;
  --cream: #f2ede2;
  --cream-dim: rgba(242, 237, 226, 0.62);
  --emerald: #12d98d;
  --emerald-deep: #0a8f5c;
  --display: "Anton", Impact, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.accent { color: var(--emerald); }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; width: min(320px, 70vw); }
.preloader-logo {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}
.preloader-logo span { color: var(--emerald); }
.preloader-bar {
  height: 2px; background: rgba(242, 237, 226, 0.15);
  border-radius: 2px; overflow: hidden;
}
.preloader-fill {
  height: 100%; width: 0%;
  background: var(--emerald);
  transition: width 0.25s ease;
}
.preloader-pct {
  margin-top: 0.7rem;
  font-size: 0.75rem; letter-spacing: 0.3em;
  color: var(--cream-dim);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  mix-blend-mode: normal;
  background: linear-gradient(to bottom, rgba(5,5,5,0.75), transparent);
}
.nav-brand {
  font-family: var(--display);
  font-size: 1.25rem; letter-spacing: 0.05em;
  color: var(--cream); text-decoration: none;
}
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  color: var(--cream-dim); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--emerald); }
.nav-cta {
  border: 1px solid var(--emerald);
  color: var(--emerald); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.55rem 1.1rem; border-radius: 100px;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--emerald); color: var(--ink); }

/* ---------- scrub sections ---------- */
.scrub { position: relative; height: 520vh; }
.scrub .sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
}
.scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(5,5,5,0.55) 100%),
    linear-gradient(to bottom, rgba(5,5,5,0.5), transparent 18%, transparent 82%, rgba(5,5,5,0.6));
}

.reveal-line { opacity: 0; will-change: opacity, transform; }

/* ---------- hero ---------- */
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 5vw;
}
.hero-kicker {
  font-size: clamp(0.65rem, 1.4vw, 0.85rem);
  letter-spacing: 0.45em; color: var(--emerald);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(5rem, 24vw, 19rem);
  line-height: 0.92; letter-spacing: 0.01em;
  display: flex; gap: 0.18em; flex-wrap: wrap; justify-content: center;
  text-shadow: 0 8px 60px rgba(0,0,0,0.8);
}
.hero-title .char {
  display: inline-block;
  opacity: 0; transform: translateY(0.45em) rotate(3deg);
  will-change: opacity, transform;
}
.hero-title .word .char:last-child {
  font-size: 0.22em; color: var(--emerald);
  vertical-align: top; line-height: 1;
  margin-top: 0.35em;
}
.hero-desc {
  margin-top: 1.1rem;
  font-size: clamp(0.8rem, 2vw, 1.15rem);
  letter-spacing: 0.55em; text-indent: 0.55em;
  color: var(--emerald);
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--cream-dim); max-width: 34em;
}
.hero-mid, .hero-end { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 6vw; text-align: center; }
.hero-mid h2, .hero-end h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 6.5rem);
  line-height: 1.02; letter-spacing: 0.01em;
  text-shadow: 0 8px 60px rgba(0,0,0,0.85);
}

.telemetry {
  position: absolute; font-size: 0.68rem; letter-spacing: 0.22em;
  color: var(--cream-dim); z-index: 5;
}
.telemetry.bl { left: clamp(1rem, 3vw, 2.4rem); bottom: 1.4rem; }
.telemetry.br { right: clamp(1rem, 3vw, 2.4rem); bottom: 1.4rem; }
.progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: rgba(242,237,226,0.1); z-index: 6;
}
.progress-fill { height: 100%; width: 0%; background: var(--emerald); }
.scroll-hint {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 2.6rem; font-size: 0.72rem; letter-spacing: 0.4em;
  color: var(--cream-dim); transition: opacity 0.4s; z-index: 6;
  animation: hint-bob 2.2s ease-in-out infinite;
}
@keyframes hint-bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- stats ---------- */
.stats {
  position: relative; z-index: 2;
  background: var(--ink);
  border-top: 1px solid rgba(18,217,141,0.18);
  border-bottom: 1px solid rgba(18,217,141,0.18);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.2rem, 5vw, 4rem);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: var(--emerald); line-height: 1;
}
.stat-label {
  margin-top: 0.6rem; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-dim);
}

/* ---------- pillars ---------- */
.pillar-overlay { position: absolute; inset: 0; pointer-events: none; }
.pillar-header {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; text-align: center; padding: 0 6vw;
}
.pillar-header h2, .work-header h2, .work-hint h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 7.5vw, 6rem);
  line-height: 1.04; text-shadow: 0 8px 60px rgba(0,0,0,0.85);
}
.pillar {
  position: absolute; left: clamp(1.4rem, 8vw, 10rem);
  top: 50%; transform: translateY(-50%);
  max-width: min(560px, 84vw);
  background: rgba(5,5,5,0.55);
  backdrop-filter: blur(6px);
  border-left: 3px solid var(--emerald);
  padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.6rem);
}
.pillar-num {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.4rem;
}
.pillar h3 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  letter-spacing: 0.02em; line-height: 1.05;
  margin-bottom: 0.7rem;
}
.pillar p { color: var(--cream-dim); font-size: clamp(0.9rem, 1.6vw, 1.05rem); line-height: 1.55; }

/* ---------- work ---------- */
.work-header, .work-hint {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; text-align: center; padding: 0 6vw;
  pointer-events: none;
}
.work-cards {
  position: relative; z-index: 2; background: var(--ink);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 4rem);
  max-width: 1400px; margin: 0 auto;
}
.card {
  background: var(--ink-2);
  border: 1px solid rgba(242,237,226,0.08);
  border-radius: 14px; overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s, box-shadow 0.45s;
}
.card:hover {
  transform: translateY(-10px);
  border-color: rgba(18,217,141,0.5);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 40px rgba(18,217,141,0.08);
}
.card-media { aspect-ratio: 16/10; overflow: hidden; background: #0a0a0a; position: relative; }
.card-media img, .card-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); filter: saturate(1.05);
}
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.07); }
.card-play {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 1rem; color: var(--ink);
  pointer-events: none;
}
.card-play::before { content: ""; position: absolute; inset: 0; background: rgba(5,5,5,0.25); transition: opacity 0.4s; }
.card-play::after {
  content: "▶"; position: relative;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--emerald); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding-left: 0.2rem; box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.card-play { color: transparent; font-size: 0; }
.card:hover .card-play::before { opacity: 0; }
.card:hover .card-play::after { transform: scale(1.12); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5,5,5,0.92);
  display: none; align-items: center; justify-content: center;
  padding: clamp(0.6rem, 4vw, 3rem);
}
.lightbox.open { display: flex; }
.lightbox video {
  max-width: min(1200px, 100%); max-height: 85vh;
  width: 100%; border-radius: 10px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.8), 0 0 60px rgba(18,217,141,0.1);
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  background: none; border: 1px solid rgba(242,237,226,0.3);
  color: var(--cream); font-size: 1rem;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  cursor: pointer; transition: border-color 0.25s, color 0.25s;
}
.lightbox-close:hover { border-color: var(--emerald); color: var(--emerald); }
.card-body { padding: 1.4rem 1.5rem 1.7rem; }
.card-tag { font-size: 0.68rem; letter-spacing: 0.28em; }
.card-body h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0.5rem 0 0.6rem;
}
.card-body p { color: var(--cream-dim); font-size: 0.92rem; line-height: 1.55; }

.work-disclaimer {
  position: relative; z-index: 2; background: var(--ink);
  display: block; max-width: 56ch;
  margin: 0 auto; padding: 0 1.2rem 3rem;
  text-align: center;
  font-style: italic; font-size: 0.68rem;
  color: rgba(242,237,226,0.32);
  letter-spacing: 0.06em; line-height: 1.7;
}
.work-disclaimer::before {
  content: ""; display: block;
  width: 2.4rem; height: 1px;
  background: rgba(18,217,141,0.35);
  margin: 0 auto 1.1rem;
}

/* ---------- pricing ---------- */
.pricing {
  position: relative; z-index: 2; background: var(--ink);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 5vw, 4rem);
}
.pricing-header { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); }
.kicker { font-size: 0.72rem; letter-spacing: 0.4em; margin-bottom: 1rem; }
.pricing-header h2, .finale-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 1.02;
}
.pricing-header p { margin-top: 1.2rem; color: var(--cream-dim); line-height: 1.6; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1240px; margin: 0 auto;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--ink-2);
  border: 1px solid rgba(242,237,226,0.1);
  border-radius: 18px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex; flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.45s, box-shadow 0.45s;
}
.plan:hover {
  transform: translateY(-10px);
  border-color: rgba(18,217,141,0.55);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 50px rgba(18,217,141,0.07);
}
.plan.featured {
  border-color: var(--emerald);
  background: linear-gradient(180deg, rgba(18,217,141,0.08), rgba(11,13,12,1) 45%);
}
.plan-badge {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  background: var(--emerald); color: var(--ink);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.22em;
  padding: 0.4rem 1rem; border-radius: 100px; white-space: nowrap;
}
.plan-name { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.06em; color: var(--cream-dim); }
.plan-price {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1; margin: 0.8rem 0 0.3rem;
  color: var(--cream);
}
.plan-price .cur { font-size: 0.5em; vertical-align: 0.65em; color: var(--emerald); }
.plan-price .cad { font-size: 0.28em; letter-spacing: 0.2em; color: var(--cream-dim); margin-left: 0.5em; }
.plan-tag { color: var(--emerald); font-size: 0.85rem; letter-spacing: 0.06em; margin-bottom: 1.4rem; }
.plan ul { list-style: none; flex: 1; }
.plan li {
  padding: 0.55rem 0 0.55rem 1.6rem; position: relative;
  color: var(--cream-dim); font-size: 0.92rem; line-height: 1.45;
  border-bottom: 1px dashed rgba(242,237,226,0.08);
}
.plan li::before { content: "◆"; position: absolute; left: 0; color: var(--emerald); font-size: 0.6rem; top: 0.85rem; }
.plan-cta {
  margin-top: 1.8rem; text-align: center; text-decoration: none;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.95rem 1rem; border-radius: 100px;
  border: 1px solid var(--emerald); color: var(--emerald);
  transition: background 0.25s, color 0.25s;
}
.plan-cta:hover { background: var(--emerald); color: var(--ink); }
.plan.featured .plan-cta { background: var(--emerald); color: var(--ink); }
.plan.featured .plan-cta:hover { background: var(--cream); border-color: var(--cream); }
.pricing-note { text-align: center; margin-top: 2.4rem; color: var(--cream-dim); font-size: 0.95rem; }

/* ---------- finale ---------- */
.finale {
  position: relative; z-index: 2; background: var(--ink);
  padding: clamp(5rem, 12vw, 10rem) clamp(1.2rem, 5vw, 4rem) 0;
  text-align: center;
  background: radial-gradient(ellipse 60% 45% at 50% 30%, rgba(18,217,141,0.09), transparent 70%), var(--ink);
}
.finale-inner p { margin-top: 1.4rem; color: var(--cream-dim); font-size: clamp(0.95rem, 2vw, 1.15rem); }
.finale-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.6rem;
}
.btn {
  text-decoration: none; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.05rem 2.2rem; border-radius: 100px;
  transition: transform 0.3s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--emerald); color: var(--ink); border: 1px solid var(--emerald); }
.btn-primary:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost { border: 1px solid rgba(242,237,226,0.35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }

.footer {
  margin-top: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid rgba(242,237,226,0.08);
  padding: 2.2rem clamp(1.2rem, 5vw, 4rem) 2.6rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.2rem;
}
.footer-brand { font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.05em; }
.footer-desc { font-family: var(--body); font-size: 0.62rem; letter-spacing: 0.4em; color: var(--cream-dim); vertical-align: 0.15em; margin-left: 0.4rem; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--cream-dim); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--emerald); }
.footer-meta { color: rgba(242,237,226,0.35); font-size: 0.75rem; letter-spacing: 0.1em; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 150; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE — iPhone / Samsung / any phone
   ============================================================ */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1rem; }
  .work-cards, .pricing-grid { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .scrub { height: 380vh; }
}
@media (max-width: 640px) {
  .nav { padding: 0.9rem 1rem; }
  .nav-links { display: none; }
  .nav-cta { font-size: 0.68rem; padding: 0.5rem 0.9rem; }
  .hero-title { gap: 0.14em; }
  .hero-sub { font-size: 0.92rem; padding: 0 0.5rem; }
  .telemetry.br { display: none; }
  .pillar {
    left: 1rem; right: 1rem; max-width: none;
    padding: 1.2rem 1.3rem;
  }
  .scrub { height: 320vh; }
  .footer { flex-direction: column; text-align: center; justify-content: center; }
  .finale-btns .btn { width: 100%; text-align: center; }
}
@media (hover: none) {
  .card:hover, .plan:hover { transform: none; }
}
