/* ─────────────────────────────────────────────
   Nesai — Style Sheet
   nesai.asia
───────────────────────────────────────────── */

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

:root {
  --black: #080808;
  --deep: #111111;
  --surface: #161616;
  --border: rgba(255,255,255,0.07);
  --cream: #F2EDE4;
  --muted: rgba(242,237,228,0.45);
  --faint: rgba(242,237,228,0.12);
  --blue: #2C5EEB;
  --blue-bright: #3B6EFF;
  --blue-glow: rgba(44,94,235,0.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.2s;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(44,94,235,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.3s, height 0.3s, opacity 0.2s;
}

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9000;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
nav.scrolled {
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-mark { width: 38px; height: 28px; }
.nav-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 18px;
  letter-spacing: 0.02em; color: var(--cream);
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream); background: var(--blue);
  border: none; padding: 10px 22px;
  border-radius: 100px; cursor: none;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--blue-bright); box-shadow: 0 0 28px var(--blue-glow); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(44,94,235,0.18) 0%, transparent 70%);
  top: -200px; left: -100px; animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(44,94,235,0.12) 0%, transparent 70%);
  bottom: 0; right: -100px; animation-delay: -9s;
}
.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(100,140,255,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%); animation-delay: -4s;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 100%);
}
.hero-kh {
  font-family: 'Cormorant', serif;
  font-size: 15px; font-style: italic;
  color: var(--blue); letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 32px; opacity: 0;
  animation: fadeUp 0.9s 0.2s ease forwards;
}
.hero-logo {
  margin-bottom: 44px; opacity: 0;
  animation: fadeUp 1s 0.4s ease forwards;
}
.hero-logo svg {
  width: 260px;
  filter: drop-shadow(0 0 40px rgba(44,94,235,0.3));
}
.hero-headline {
  font-family: 'Cormorant', serif;
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 300; line-height: 1.02;
  letter-spacing: -0.02em; max-width: 900px;
  opacity: 0; animation: fadeUp 1s 0.6s ease forwards;
}
.hero-headline em { font-style: italic; color: var(--blue); }
.hero-sub {
  font-size: 16px; font-weight: 400;
  color: var(--muted); max-width: 480px; line-height: 1.75;
  margin-top: 28px; opacity: 0;
  animation: fadeUp 1s 0.8s ease forwards;
}
.hero-actions {
  display: flex; gap: 16px; align-items: center;
  margin-top: 48px; opacity: 0;
  animation: fadeUp 1s 1s ease forwards;
}
.btn-primary {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--cream); background: var(--blue);
  border: none; padding: 14px 30px; border-radius: 100px;
  cursor: none; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 0 40px var(--blue-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--muted); background: none;
  border: 1px solid var(--border); padding: 14px 30px;
  border-radius: 100px; cursor: none; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); color: var(--cream); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeUp 1s 1.4s ease forwards;
}
.hero-scroll span {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Definition ── */
.section-def {
  padding: 120px 48px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 80px;
  max-width: 1200px; margin: 0 auto; align-items: center;
}
.def-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
}
.def-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(42px, 5vw, 72px); font-weight: 300;
  line-height: 1.1; margin-bottom: 28px;
}
.def-title em { font-style: italic; color: var(--blue); }
.def-text {
  font-size: 17px; font-weight: 400;
  color: var(--muted); line-height: 1.85; max-width: 460px;
}
.def-text + .def-text { margin-top: 18px; }
.def-visual {
  position: relative; display: flex;
  justify-content: center; align-items: center;
}
.def-blob-wrap { position: relative; width: 360px; height: 360px; }
.def-blob { width: 100%; height: 100%; animation: blobFloat 8s ease-in-out infinite; }
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-14px) rotate(2deg); }
  66% { transform: translateY(8px) rotate(-1.5deg); }
}
.def-dot { position: absolute; border-radius: 50%; background: var(--blue); }
.def-dot-1 {
  width: 18px; height: 18px; top: 22%; right: 14%;
  animation: dotPulse 3s ease-in-out infinite;
}
.def-dot-2 {
  width: 11px; height: 11px; top: 16%; right: 22%;
  animation: dotPulse 3s 0.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* ── Divider ── */
.divider {
  max-width: 1200px; margin: 0 auto;
  height: 1px; background: var(--border);
}

/* ── Principles ── */
.section-principles { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 72px;
}
.section-header-left .section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.section-header-left h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(38px, 4vw, 60px); font-weight: 300; line-height: 1.1;
}
.section-header-left h2 em { font-style: italic; color: var(--blue); }
.section-header-right {
  font-size: 15px; color: var(--muted);
  max-width: 300px; line-height: 1.7; text-align: right;
}
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.principle-card {
  background: var(--surface); padding: 48px 40px;
  position: relative; overflow: hidden; transition: background 0.3s;
}
.principle-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.principle-card:hover { background: #1a1a1a; }
.principle-card:hover::before { opacity: 1; }
.card-num {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--blue); margin-bottom: 32px;
}
.card-icon { width: 40px; height: 40px; margin-bottom: 24px; }
.card-title {
  font-family: 'Cormorant', serif;
  font-size: 32px; font-weight: 400; line-height: 1.15; margin-bottom: 16px;
}
.card-text { font-size: 14px; color: var(--muted); line-height: 1.85; font-weight: 400; }

/* ── Philosophy ── */
.section-philosophy {
  background: var(--deep);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 140px 48px; text-align: center;
  overflow: hidden; position: relative;
}
.philosophy-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(44,94,235,0.06) 0%, transparent 100%);
  pointer-events: none;
}
.philosophy-inner { max-width: 800px; margin: 0 auto; position: relative; }
.philosophy-kh {
  font-family: 'Cormorant', serif; font-size: 72px; font-weight: 300;
  font-style: italic; color: var(--blue); opacity: 0.2;
  line-height: 1; margin-bottom: 32px; letter-spacing: 0.05em;
}
.philosophy-quote {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 4vw, 54px); font-weight: 300; font-style: italic;
  line-height: 1.3; color: var(--cream); margin-bottom: 36px;
}
.philosophy-attribution {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.attr-line { width: 40px; height: 1px; background: var(--blue); }
.attr-text {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}

/* ── Services ── */
.section-services { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }
.services-list { display: flex; flex-direction: column; }
.service-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 36px 0; border-bottom: 1px solid var(--border);
  cursor: none; position: relative; overflow: hidden;
  transition: padding-left 0.3s ease; text-decoration: none;
}
.service-row::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--blue);
  transform: scaleY(0); transition: transform 0.3s ease;
}
.service-row:hover { padding-left: 20px; }
.service-row:hover::after { transform: scaleY(1); }
.service-row:first-child { border-top: 1px solid var(--border); }
.service-left { display: flex; align-items: center; gap: 32px; }
.service-idx {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--blue); width: 28px;
}
.service-name {
  font-family: 'Cormorant', serif;
  font-size: 36px; font-weight: 400; color: var(--cream); transition: color 0.2s;
}
.service-right { display: flex; align-items: center; gap: 40px; }
.service-tags { display: flex; gap: 10px; }
.tag {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 100px;
}
.service-arrow {
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s; color: var(--muted);
}
.service-row:hover .service-arrow {
  background: var(--blue); border-color: var(--blue); color: white;
}

/* ── Process ── */
.section-process {
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 120px 48px;
}
.process-inner { max-width: 1200px; margin: 0 auto; }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; margin-top: 72px;
}
.process-step { padding: 40px 36px; position: relative; background: var(--black); }
.step-num {
  font-family: 'Cormorant', serif;
  font-size: 72px; font-weight: 300; color: var(--faint); line-height: 1; margin-bottom: 20px;
}
.step-title { font-family: 'Cormorant', serif; font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.step-text { font-size: 13px; color: var(--muted); line-height: 1.85; }

/* ── CTA ── */
.section-cta { padding: 160px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(44,94,235,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 700px; margin: 0 auto; }
.cta-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--blue);
  border: 1px solid rgba(44,94,235,0.3); padding: 6px 16px;
  border-radius: 100px; margin-bottom: 40px;
}
.cta-dot {
  width: 6px; height: 6px; background: var(--blue);
  border-radius: 50%; animation: dotPulse 2s ease-in-out infinite;
}
.cta-h {
  font-family: 'Cormorant', serif;
  font-size: clamp(44px, 6vw, 80px); font-weight: 300;
  line-height: 1.08; margin-bottom: 28px;
}
.cta-h em { font-style: italic; color: var(--blue); }
.cta-sub { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 48px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; align-items: center; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-wordmark { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--cream); }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 12px; color: var(--faint); letter-spacing: 0.05em; }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .section-def { grid-template-columns: 1fr; gap: 60px; padding: 80px 24px; }
  .def-visual { order: -1; }
  .def-blob-wrap { width: 280px; height: 280px; }
  .section-principles, .section-services, .section-process { padding: 80px 24px; }
  .principles-grid { grid-template-columns: 1fr; gap: 2px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-header-right { text-align: left; }
  .section-cta { padding: 100px 24px; }
  footer { flex-direction: column; gap: 28px; text-align: center; padding: 40px 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 100px 24px 80px; }
  .philosophy-kh { font-size: 44px; }
  .service-tags { display: none; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
