:root {
  --bg:          #f0f2f4;
  --bg-white:    #ffffff;
  --bg-lavender: #e8e9fb;
  --bg-dark:     #2a2a2d;
  --bg-darkest:  #050716;
  --text:        #2a2a2d;
  --text-subtle: #595975;
  --accent:      #ffffff;
  --border:      #d2dae2;

  --font-heading: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:    'Fragment Mono', 'Courier New', monospace;

  --max:   1200px;
  --pad:   clamp(1.5rem, 4vw, 3rem);
  --nav-h: 60px;

  --r-pill: 100px;
  --r-card: 20px;
  --r-sm:   10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t1: 0.15s;
  --t2: 0.3s;
  --t3: 0.6s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}
img { -webkit-user-drag: none; user-drag: none; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
img  { max-width: 100%; display: block; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (pointer: fine) {
  * { cursor: none !important; }
}
@media (pointer: coarse) {
  .cursor { display: none !important; }
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: width 0.5s var(--ease), height 0.5s var(--ease);
}

body.cursor--hover .cursor {
  width: 54px; height: 54px;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  pointer-events: none;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s;
}
.nav--scrolled {
  background: linear-gradient(
    180deg,
    rgba(240, 242, 244, 0.78) 0%,
    transparent 100%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav__logo {
  pointer-events: all;
  display: flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  overflow: visible;
  transform-origin: center;
}
.logo-cable { display: none; }
.nav__logo .logo-svg {
  height: 52px;
  width: auto;
  transition: transform 0.6s var(--ease);
}

.nav__logo:hover .logo-rays {
  fill: #ffe566;
  opacity: 1;
  filter:
    drop-shadow(0 0 5px rgba(255,220,0,0.9))
    drop-shadow(0 0 14px rgba(255,185,0,0.7))
    drop-shadow(0 0 32px rgba(255,150,0,0.4));
}
.nav__logo:hover .logo-bulb {
  fill: #e8c87a;
}
.nav__logo .logo-bulb {
  fill: rgba(6, 14, 39, 0.82);
  transition: fill 0.5s var(--ease);
}
.nav__logo .logo-rays {
  fill: rgba(6, 14, 39, 0.18);
  opacity: 1;
  transition: fill 0.4s var(--ease), opacity 0.4s var(--ease), filter 0.5s var(--ease);
}

.nav__logo--on-dark .logo-bulb {
  fill: rgba(240, 242, 244, 0.9);
}
.nav__logo--on-dark .logo-rays {
  fill: rgba(240, 242, 244, 0.22);
}

.nav__logo--lit .logo-rays {
  fill: #ffe566;
  opacity: 1;
  filter:
    drop-shadow(0 0 6px rgba(255,220,0,1))
    drop-shadow(0 0 18px rgba(255,185,0,0.85))
    drop-shadow(0 0 40px rgba(255,150,0,0.55))
    drop-shadow(0 0 70px rgba(255,120,0,0.25));
}
.nav__logo--lit .logo-bulb {
  fill: #e8c87a;
}

.nav__pill {
  pointer-events: all;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 5px;
  gap: 2px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(220, 228, 255, 0.60) 100%
  );
  backdrop-filter: blur(28px) saturate(220%);
  -webkit-backdrop-filter: blur(28px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(180, 190, 230, 0.45);
  box-shadow:
    0 2px 0   rgba(255,255,255,1)      inset,
    0 -1px 0  rgba(140,155,220,0.20)   inset,
    0 12px 40px rgba(10, 20, 80, 0.13),
    0  2px  8px rgba(10, 20, 80, 0.07);
  transition:
    transform    0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s var(--ease),
    box-shadow   0.3s var(--ease);
}

.nav__pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.60) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.nav__pill:hover {
  border-color: rgba(18, 91, 255, 0.8);
  border-bottom-color: rgba(18, 91, 255, 0.5);
  box-shadow:
    0 2px 0   rgba(255,255,255,1)      inset,
    0 -1px 0  rgba(18,91,255,0.15)     inset,
    0 12px 40px rgba(18, 91, 255, 0.16),
    0  2px  8px rgba(18, 91, 255, 0.09);
}

.nav__pill-link { position: relative; z-index: 1; }
.nav__pill-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(42, 42, 45, 0.72);
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-pill);
  transition: background var(--t1), color var(--t1);
  white-space: nowrap;
}
.nav__pill-link:hover {
  background: rgba(18, 91, 255, 0.06);
  color: #125bff;
}
.nav__pill-link--accent { color: #125bff; font-weight: 500; }
.nav__pill-link--accent:hover { background: rgba(18,91,255,0.08); color: #125bff; }

.nav__lang {
  pointer-events: all;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.5;
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  transition: opacity var(--t1), background var(--t1), border-color var(--t1);
  text-decoration: none;
  white-space: nowrap;
}
.nav__lang:hover { opacity: 1; background: rgba(42,42,45,0.06); border-color: var(--text); }

.nav__social {
  pointer-events: all;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__social-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 400;
  color: var(--text);
  opacity: 0.38;
  padding: 0.2rem 0;
  transition: opacity var(--t2);
}
.nav__social-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__social-link:hover { opacity: 1; }
.nav__social-link:hover::after { transform: scaleX(1); }

.nav__social-sep {
  width: 1px;
  height: 14px;
  background: var(--text);
  opacity: 0.18;
  flex-shrink: 0;
}

.nav__burger {
  display: none;
  pointer-events: all;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  width: 32px; height: 32px;
  align-items: flex-end;
  justify-content: center;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--t2) var(--ease), opacity var(--t1), width var(--t2);
}
.nav__burger span:nth-child(1) { width: 22px; }
.nav__burger span:nth-child(2) { width: 16px; }
.nav__burger span:nth-child(3) { width: 22px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 22px; }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem var(--pad);
  gap: 0.5rem;
  transform: translateY(-100%);
  transition: transform var(--t3) var(--ease);
  pointer-events: none;
}
.mobile-menu.open {
  transform: none;
  pointer-events: all;
}
.mm__link {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 400;
  color: var(--text);
  transition: color var(--t1);
  letter-spacing: -0.02em;
}
.mm__link--accent { color: var(--accent); }
.mm__link:hover { color: var(--text-subtle); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.45s; }

@media (max-width: 768px) {
  .nav__pill   { display: none; }
  .nav__social { display: none; }
  .nav__burger { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: 0.01s !important; }
}
