@font-face {
  font-family: "Syne";
  src: url("fonts/syne.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  /* Font test: switch back to Syne by replacing "Bricolage Grotesque" with "Syne" */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg: #07061a;
  --bg-2: #0c0a22;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f1fb;
  --muted: #9e9abf;
  --dim: #5d5985;
  --coral: #ff7a90;
  --violet: #9b6bff;
  --cyan: #4fd8f0;
  --moon: #f4f2ea;
  --gradient: linear-gradient(100deg, var(--coral) 0%, var(--violet) 50%, var(--cyan) 100%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

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

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Italic letters lean past their box; padding widens the painted
     area, negative margin keeps the spacing unchanged */
  padding: 0 0.14em 0.18em 0.14em;
  margin: 0 -0.06em -0.18em -0.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Wordmark: vividm + two moons + n */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .o {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin: 0 0.02em;
  border-radius: 50%;
}

.o-full {
  background: radial-gradient(circle at 38% 35%, #ffffff 0%, #f1efe8 45%, #bab8b0 100%);
  box-shadow: 0 0 0.3em rgba(255, 255, 245, 0.8), 0 0 0.8em rgba(160, 180, 255, 0.5);
}

.o-ring { border: 0.08em solid currentColor; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  background: rgba(7, 6, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.nav .nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav .nav-cta:hover { background: rgba(255, 255, 255, 0.12); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}

.btn-light {
  background: var(--text);
  color: #0b0a1a;
  box-shadow: 0 0 30px rgba(255, 255, 245, 0.25);
}

.btn-light:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(255, 255, 245, 0.45); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(110px, 15vh, 170px) 0 0;
  text-align: center;
  background: radial-gradient(ellipse 85% 60% at 50% 100%, #2b2568 0%, #130f36 45%, var(--bg) 78%);
}

.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stars circle { fill: #ffffff; }

.stars .tw { animation: twinkle 4s ease-in-out infinite; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 2.4s ease-in-out infinite;
}

.hero h1 {
  margin: 28px 0 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, min(9vw, 12.5vh), 132px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero h1 em { font-size: 1.1em; }

.lead {
  max-width: 600px;
  margin: 0 auto 38px;
  color: #c9c5e4;
  font-size: clamp(17px, 1.6vw, 20px);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-horizon {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: clamp(220px, 30vw, 380px);
  margin-top: clamp(28px, 4vh, 56px);
}

.hero-moon {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(880px, 125vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  animation: rise 2.6s var(--ease) both;
}

.hero-moon::before {
  content: "";
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 250, 0.55) 0%,
    rgba(220, 228, 255, 0.28) 38%,
    rgba(155, 107, 255, 0.14) 52%,
    transparent 68%);
  animation: pulse 7s ease-in-out infinite;
}

.hero-moon img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: brightness(1.9) contrast(1.12) saturate(0);
  box-shadow:
    0 0 40px rgba(255, 255, 245, 0.7),
    0 0 140px rgba(220, 228, 255, 0.5),
    0 0 300px rgba(155, 107, 255, 0.35);
}

.hero-moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.16), transparent 45%, rgba(7, 6, 26, 0.35) 100%);
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.marquee .item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.marquee .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 241, 251, 0.55);
}

.sep {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #bab8b0);
  box-shadow: 0 0 12px rgba(255, 255, 245, 0.6);
}

/* Sections */
.block { padding: clamp(90px, 12vw, 160px) 0; }

.block-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

.statement {
  max-width: 1120px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.statement .dim { color: var(--dim); }

.statement em { font-size: 1.08em; }

.section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-note {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
}

/* Services */
.svc-list { border-top: 1px solid var(--line); }

.svc {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 90px 1.1fr 1.3fr 48px;
  align-items: center;
  gap: 24px;
  padding: 38px 12px;
  border-bottom: 1px solid var(--line);
}

.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 122, 144, 0.12), rgba(155, 107, 255, 0.15), rgba(79, 216, 240, 0.1));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}

.svc:hover::before { transform: scaleY(1); }

.svc-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  color: var(--muted);
}

.svc h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -0.03em;
  transition: transform 0.5s var(--ease);
}

.svc:hover h3 { transform: translateX(10px); }

.svc p { margin: 0; color: var(--muted); }

.svc-arrow {
  justify-self: end;
  font-size: 26px;
  transition: transform 0.5s var(--ease);
}

.svc:hover .svc-arrow { transform: rotate(45deg); }

/* Approach: moon phases */
.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.phase {
  padding: 36px 30px 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.4s var(--ease), border-color 0.4s;
}

.phase:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 107, 255, 0.45);
}

.phase-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 34px;
  border-radius: 50%;
}

.p1 {
  background: #1d1b3d;
  box-shadow: inset -12px 0 0 0 var(--moon), 0 0 22px rgba(255, 255, 245, 0.15);
}

.p2 {
  background: linear-gradient(90deg, #1d1b3d 50%, var(--moon) 50%);
  box-shadow: 0 0 26px rgba(255, 255, 245, 0.25);
}

.p3 {
  background: radial-gradient(circle at 38% 35%, #ffffff, #e9e7df 55%, #b5b3ab);
  box-shadow: 0 0 30px rgba(255, 255, 245, 0.6), 0 0 60px rgba(160, 180, 255, 0.35);
}

.phase .kicker {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.phase h3 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.phase p { margin: 0; color: var(--muted); }

/* Contact */
.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 14vw, 190px) 0;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(155, 107, 255, 0.22), transparent 70%);
}

.contact h2 {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.mail {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  text-decoration: none;
  word-break: break-word;
}

.mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.mail:hover::after { transform: scaleX(1); }

.contact .note {
  margin: 22px auto 0;
  max-width: 460px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  overflow: hidden;
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }

.footer-links a { text-decoration: none; }

.footer-links a:hover { color: var(--text); }

.giant {
  display: block;
  margin: 48px 0 -0.14em;
  text-align: center;
  font-size: clamp(60px, 16.5vw, 250px);
  letter-spacing: -0.055em;
  font-weight: 800;
  color: rgba(243, 241, 251, 0.9);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}

/* Privacy page */
.legal { padding: 160px 0 110px; }

.legal .wrap { max-width: 800px; }

.legal h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.legal .updated { margin: 0 0 56px; color: var(--muted); font-size: 15px; }

.legal h2 {
  margin: 48px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.legal p, .legal li { color: #cfcbe6; }

.legal ul { padding-left: 22px; }

.legal li { margin-bottom: 8px; }

.legal a { color: var(--coral); }

/* Scroll reveal (only when JavaScript runs) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

/* Animations */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes rise {
  from { transform: translate(-50%, 30%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Tablet and phone */
@media (max-width: 900px) {
  .svc { grid-template-columns: 64px 1fr; }
  .svc p { grid-column: 2; }
  .svc-arrow { display: none; }
  .phases { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 16px; }
  .nav .link { display: none; }
  .wordmark { font-size: 23px; }
  .hero { padding-top: 116px; }
  .hero-horizon { min-height: 200px; }
  .svc { grid-template-columns: 1fr; gap: 8px; padding: 30px 4px; }
  .svc p { grid-column: auto; }
  .svc-num { font-size: 22px; }
  .phase { padding: 30px 24px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-moon, .hero-moon::before, .stars .tw, .eyebrow .dot, .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
