@font-face {
  font-family: "Aston Script";
  src: url("fonts/Aston Script.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Pix32";
  src: url("fonts/Pix32.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: #fffffe;
  --ink: #111;
  --muted: rgba(17, 17, 17, .65);
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  cursor: none;
  /* custom cursor */
}

/* ---------------- Background Canvas ---------------- */
#bgDots {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 100;
}

/* ---------------- Spotlight (cursor shadow only) ---------------- */
.spotlight {
  position: fixed;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  mix-blend-mode: multiply;

  background: radial-gradient(circle,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.04) 28%,
      transparent 58%);
}

/* Grain ONLY inside spotlight blob */
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: multiply;
}

/* ---------------- Cursor ---------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(17, 17, 17, 0.85);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(1px);

  transition: width 160ms ease, height 160ms ease, background 160ms ease, border-color 160ms ease, opacity 200ms ease;
}

.cursor-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.95);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.cursor.is-hover {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(17, 17, 17, 1);
}

.cursor.is-down {
  width: 22px;
  height: 22px;
}

/* ---------------- Sticky Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 1);
  background: color-mix(in srgb, var(--bg) 92%, white 8%);
  backdrop-filter: blur(6px);
}

.nav {
  font-family: "Pix32", monospace;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-right {
  justify-content: flex-end;
}

.nav-link,
.icon-link,
.brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: .06em;
}


/* ---- Work dropdown ---- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-trigger {
  background: transparent;
  border: 0;
  padding: 4px 0;
  /* match underline spacing */
  font: inherit;
  /* keep Pix32 style */
  color: inherit;
  cursor: none;
  /* keep your custom cursor */
}

/* Menu panel */
.dropdown-menu {
  pointer-events: auto;

  position: absolute;
  top: calc(100% + 10px);
  left: -8px;

  min-width: 160px;
  padding: 10px 10px;

  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  backdrop-filter: blur(8px);

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;

  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 50;
}

.dropdown-item {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;

  text-decoration: none;
  color: var(--ink);
  font-family: "Pix32", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Show on hover OR focus-within (keyboard friendly) */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Invisible hover bridge so you can move into the menu */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 18px;
  /* increase if needed */
}

/* Brand (no underline animation) */
.brand {
  font-family: "Aston Script", serif;
  letter-spacing: .06em;
  font-size: 18px;
}

/* Underline hover animation */
.underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
  opacity: .9;
}

.underline:hover::after,
.underline:focus-visible::after {
  transform: scaleX(1);
}

/* Icons */
.icon-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

/* ---------------- Hero ---------------- */
.hero {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 48px 18px;
  position: relative;
  z-index: 2;
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  display: grid;
  place-items: center;
}

.hero-text {
  text-align: center;
}

.headline {
  font-family: "Aston Script", serif;
  margin: 0;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 1.6;
}

.subhead {
  font-family: "Pix32", monospace;
  margin: 35px;
  margin-right: 950px;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--muted);
}

.subhead2 {
  font-family: "Pix32", monospace;
  margin: 30px;
  margin-left: 620px;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 520px) {
  .nav {
    padding: 12px 14px;
  }

  .nav-left,
  .nav-right {
    gap: 14px;
  }
}

/* Touch devices: disable cursor + spotlight */
@media (hover: none),
(pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor,
  .spotlight {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #bgDots {
    display: none;
  }
}