:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --soft: rgba(255, 255, 255, 0.78);
  --subtle: rgba(255, 255, 255, 0.08);
  --max-w: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --slide-ease: cubic-bezier(0.86, 0, 0.07, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  cursor: none;
  position: fixed;
  inset: 0;
}

::selection { background: rgba(167, 139, 250, 0.4); color: #fff; }

a { color: inherit; }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-follower {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor {
  width: 6px; height: 6px;
  background: #fff;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease);
}
.cursor-follower {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.28);
  z-index: 9998;
  transform: translate3d(-100px, -100px, 0);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .3s;
}
.cursor.is-hover { width: 14px; height: 14px; }
.cursor.on-light { background: #000; }
.cursor-follower.is-hover { width: 56px; height: 56px; border-color: rgba(255,255,255,0.6); }
.cursor-follower.on-light { border-color: rgba(0,0,0,0.4); }

@media (hover: none), (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

/* ---------- Aurora ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0,0,0);
  transition: transform 1.4s var(--slide-ease);
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.aurora-blob-1 {
  width: 480px; height: 480px;
  background: #6366f1;
  top: -160px; left: -120px;
  animation: aurora1 36s ease-in-out infinite;
}
.aurora-blob-2 {
  width: 420px; height: 420px;
  background: #ec4899;
  top: 30%; right: -140px;
  animation: aurora2 42s ease-in-out infinite;
}
.aurora-blob-3 {
  width: 540px; height: 540px;
  background: #14b8a6;
  bottom: -200px; left: 32%;
  opacity: 0.32;
  animation: aurora3 48s ease-in-out infinite;
}
@keyframes aurora1 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(80px, 60px, 0); } }
@keyframes aurora2 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-70px, 40px, 0); } }
@keyframes aurora3 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(40px, -80px, 0); } }

/* ---------- Grain (static, no blend mode for perf) ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 2;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--subtle);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 36px; display: block; }
@media (max-width: 600px) { .logo img { height: 30px; } }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .3s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang-switch {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 100px;
  cursor: none;
  transition: all .35s var(--ease);
}
.lang-switch:hover { border-color: #fff; background: #fff; color: #000; }
@media (hover: none) { .lang-switch { cursor: pointer; } }

/* ---------- Dots indicator ---------- */
.dots {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: auto;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  cursor: none;
  padding: 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
}
.dot:hover { border-color: #fff; }
.dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.25);
}
@media (hover: none) { .dot { cursor: pointer; } }
@media (max-width: 600px) { .dots { right: 14px; gap: 12px; } .dot { width: 8px; height: 8px; } }

/* ---------- Slides container ---------- */
.deck {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.slides {
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 1.15s var(--slide-ease);
}
.slide {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px clamp(20px, 4vw, 48px) 60px;
  position: relative;
  overflow: hidden;
}
.slide-inner {
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ---------- Hero ---------- */
.hero { padding-top: 110px; text-align: center; }
.hero-content {
  max-width: min(1500px, 96vw);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeIn .9s .2s var(--ease) forwards;
}
.hero-title {
  font-size: clamp(2rem, 8.6vw, 8.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
}
.hero-line {
  display: block;
  overflow: hidden;
  padding: 0 0.04em 0.06em;
  white-space: nowrap;
}
.hero-line .char {
  display: inline-block;
  transform: translateY(110%);
  animation: revealUp 1.2s var(--ease) forwards;
  will-change: transform;
}
.hero-line.accent {
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-line.accent .char {
  background: linear-gradient(115deg, #fff 25%, #c4b5fd 50%, #f0abfc 70%, #fff 95%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: revealUp 1.2s var(--ease) forwards, shine 8s linear infinite;
}
@keyframes revealUp { to { transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: var(--soft);
  margin: 32px auto 0;
  max-width: 620px;
  font-weight: 300;
  opacity: 0;
  animation: fadeIn 1s 1.6s var(--ease) forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1s 2.1s var(--ease) forwards;
  z-index: 3;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  transform-origin: top;
  animation: scrollHint 2.4s ease-in-out infinite;
}
@keyframes scrollHint { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* ---------- Section typography ---------- */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.section-title {
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 1100px;
  margin-bottom: 24px;
}
.section-lead {
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  color: var(--soft);
  max-width: 680px;
  font-weight: 300;
  line-height: 1.55;
}

/* ---------- Reveal (driven by .is-active on slide) ---------- */
.slide .reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    filter 1s var(--ease);
}
.slide.is-active .reveal { opacity: 1; transform: none; filter: blur(0); }

/* stagger via nth-child within slide-inner */
.slide.is-active .slide-inner > .reveal:nth-child(1) { transition-delay: .15s; }
.slide.is-active .slide-inner > .reveal:nth-child(2) { transition-delay: .25s; }
.slide.is-active .slide-inner > .reveal:nth-child(3) { transition-delay: .35s; }
.slide.is-active .slide-inner > .reveal:nth-child(4) { transition-delay: .45s; }
.slide.is-active .slide-inner > .reveal:nth-child(5) { transition-delay: .55s; }

/* ---------- Pillars ---------- */
.pillars {
  margin-top: clamp(40px, 6vh, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--subtle);
  border-radius: 22px;
  background: rgba(255,255,255,0.02);
  transition: border-color .5s var(--ease), background .5s var(--ease), transform .5s var(--ease);
}
.pillar:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  transform: translateY(-4px);
}
.pillar-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vh, 48px);
  font-variant-numeric: tabular-nums;
}
.pillar h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.pillar p {
  color: var(--soft);
  font-size: clamp(.9rem, 1vw, 1rem);
  font-weight: 300;
  line-height: 1.55;
}

.pillars.reveal { /* allow stagger for child grid */ }
.slide.is-active .pillars .pillar { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.is-active .pillars .pillar:nth-child(1) { transition-delay: .55s; opacity: 1; transform: none; }
.slide.is-active .pillars .pillar:nth-child(2) { transition-delay: .65s; opacity: 1; transform: none; }
.slide.is-active .pillars .pillar:nth-child(3) { transition-delay: .75s; opacity: 1; transform: none; }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 6vh, 70px);
}
.work-card {
  text-decoration: none;
  color: var(--fg);
  display: block;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  will-change: transform;
}
.work-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 22px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.work-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.28), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(0,0,0,0.35), transparent 60%);
  mix-blend-mode: overlay;
}
.work-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
}
.work-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.work-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  padding: 7px 12px;
  border-radius: 100px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.22);
  font-variant-numeric: tabular-nums;
}
.work-arrow {
  position: relative;
  z-index: 2;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transform: scale(0.8);
  opacity: 0;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.work-card:hover .work-arrow { opacity: 1; transform: scale(1); }
.work-card:hover .work-visual {
  box-shadow: 0 30px 80px -20px rgba(99, 102, 241, 0.25);
}
.work-meta { padding: 18px 4px 0; }
.work-meta h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.work-meta p {
  color: var(--soft);
  font-size: clamp(.85rem, 1vw, .98rem);
  font-weight: 300;
  line-height: 1.5;
}

/* stagger work cards */
.slide.work.is-active .work-card { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.work.is-active .work-card:nth-child(1) { transition-delay: .45s; opacity: 1; transform: none; }
.slide.work.is-active .work-card:nth-child(2) { transition-delay: .55s; opacity: 1; transform: none; }
.slide.work.is-active .work-card:nth-child(3) { transition-delay: .65s; opacity: 1; transform: none; }

/* ---------- Contact form ---------- */
.contact-form {
  margin-top: clamp(28px, 4vh, 48px);
  display: grid;
  gap: 14px;
  max-width: 640px;
}
.contact-form input[name="_honey"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input { cursor: text; }
.field textarea {
  min-height: 110px;
  resize: vertical;
  cursor: text;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,0.38);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(248,113,113,0.5);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.form-status {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
  min-height: 1em;
  flex: 1;
}
.form-status.success { color: #6ee7df; }
.form-status.error { color: #f87171; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .3s;
  white-space: nowrap;
}
.btn-submit svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(255,255,255,0.3);
}
.btn-submit:hover svg { transform: translateX(6px); }
.btn-submit:disabled { opacity: 0.6; pointer-events: none; transform: none; }
@media (hover: none) { .btn-submit { cursor: pointer; } }

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .btn-submit { justify-content: center; }
  .form-status { text-align: center; }
}

.copyright {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 60;
  pointer-events: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.lang-switch) { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .pillar { padding: 18px; }
  .pillar-num { margin-bottom: 16px; }
  .work-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .work-visual { aspect-ratio: 16/9; }
  .work-meta { padding-top: 12px; }
  .slide { padding: 90px 20px 50px; }
  .footnote { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .slide .reveal, .pillar, .work-card { opacity: 1 !important; transform: none !important; filter: none !important; }
}
