:root {
  --bg: #050505;
  --fg: #f2eee6;
  --muted: rgba(242, 238, 230, 0.62);
  --line: rgba(242, 238, 230, 0.18);
  --glass: rgba(30, 28, 25, 0.55);
  --warm: #ffd9a0;
  --jade: #c4566f; /* accent: burgundy, lifted so it reads on black */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
@media (hover: hover) { body, a, button { cursor: none; } }
a { color: inherit; text-decoration: none; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0,0,0,.75) 100%); }

/* Nav */
.nav {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: stretch; height: 36px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); font-size: 13px;
}
.nav__logo { white-space: nowrap; font-family: var(--serif); font-size: 17px; letter-spacing: .02em; padding: 0 26px; display: flex; align-items: center; border-right: 1px solid var(--line); background: rgba(255,255,255,.06); }
.nav__links { display: flex; gap: 26px; padding: 0 52px; align-items: center; }
.nav__links a, .nav__cta { opacity: .85; transition: opacity .3s; }
.nav__links a:hover, .nav__cta:hover, .nav a.is-active { opacity: 1; color: var(--warm); }
.nav__icon { display: none; width: 22px; height: 22px; }
.nav__cta { white-space: nowrap; padding: 0 28px; display: flex; align-items: center; border-left: 1px solid var(--line); }

/* Hero */
.hero { position: fixed; inset: 0; pointer-events: none; z-index: 5; transition: opacity .6s, filter .6s; }
.hero a { pointer-events: auto; }
.hero__title { position: absolute; left: 4vw; top: 50%; transform: translateY(-58%); font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 84px); line-height: .98; letter-spacing: -.01em; }
.hero__title span { display: block; }
.hero__side { position: absolute; right: 2vw; top: 50%; transform: translateY(-80%); width: min(270px, 26vw); font-size: 13px; line-height: 1.45; }
.line-link { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-bottom: 10px; border-bottom: 1px solid var(--fg); font-size: 12px; }
.line-link .arrow { font-size: 18px; transition: transform .35s; }
.line-link:hover .arrow { transform: translateX(6px); }
.hero__foot { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); text-align: center; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; line-height: 1.5; width: 90%; }
.spark { width: 20px; height: 20px; fill: var(--fg); margin-bottom: 12px; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { position: absolute; left: 4vw; bottom: 24px; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* Content pages */
.page {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
  padding: 80px 6vw 60px; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s;
  background: radial-gradient(ellipse at center, rgba(5,5,5,.55), rgba(5,5,5,.88));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.page.is-open { opacity: 1; visibility: visible; }
.page__inner { width: min(1100px, 100%); transform: translateY(24px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.page.is-open .page__inner { transform: none; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.page h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 76px); line-height: 1; margin-bottom: 48px; }
.page h2 em, .hero__title em { color: var(--jade); font-style: italic; }
.page h3 { font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.page p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card__art { aspect-ratio: 3/4; margin-bottom: 14px; border: 1px solid var(--line); transition: transform .5s; }
.card:hover .card__art { transform: translateY(-6px); }
.a1 { background: radial-gradient(circle at 30% 30%, #ffd9a0, #6b4a2a 45%, #0b0b0b 80%); }
.a3 { background: radial-gradient(circle at 50% 55%, #c4566f, #5c1528 40%, #050505 80%) !important; }
.a2 { background: linear-gradient(160deg, #2a2a2a, #0a0a0a 60%), #111; box-shadow: inset 0 0 0 40px rgba(255,255,255,.03); }
.a3 { background: conic-gradient(from 200deg at 50% 60%, #0c1a22, #6fa3b5, #0c1a22 40%, #050505); }
.a4 { background: repeating-linear-gradient(90deg, #151515 0 14px, #1d1d1d 14px 28px), #111; }
.list { list-style: none; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 120px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.list span { color: var(--muted); font-size: 13px; }
.list a { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 34px); transition: color .3s, padding .3s; }
.list a:hover { color: var(--warm); padding-left: 10px; }
.big-mail { font-family: var(--serif); font-size: clamp(32px, 5vw, 72px); border-bottom: 1px solid var(--fg); display: inline-block; }
.big-mail:hover { color: var(--warm); border-color: var(--warm); }
.socials { display: flex; gap: 28px; margin-top: 40px; font-size: 13px; color: var(--muted); }
.socials a:hover { color: var(--fg); }

.close {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 15;
  background: none; border: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 12px;
  padding: 8px 18px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s, border-color .3s;
}
.close:hover { border-color: var(--fg); }
body.page-open .close { opacity: 1; visibility: visible; }
body.page-open .hero { opacity: 0; filter: blur(6px); }

/* Cursor */
.cursor {
  position: fixed; left: 0; top: 0; width: 76px; height: 76px; margin: -38px 0 0 -38px; z-index: 50;
  border: 1px solid rgba(242,238,230,.75); border-radius: 50%; pointer-events: none;
  transition: width .3s, height .3s, margin .3s, background .3s;
}
.cursor.is-link { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: rgba(255,217,160,.25); border-color: var(--warm); }
@media (hover: none) { .cursor { display: none; } }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: grid; place-items: center; transition: opacity 1.2s .2s, visibility 1.2s .2s; }
.loader span { font-family: var(--serif); font-size: 32px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
body.loaded .loader { opacity: 0; visibility: hidden; }

/* Mobile */
@media (max-width: 820px) {
  .nav { width: calc(100% - 20px); }
  .nav__links { padding: 0 12px; gap: 14px; flex: 1; justify-content: center; font-size: 12px; }
  .nav__logo { padding: 0 12px; }
  .nav__name { display: none; }      /* phones: knot icon instead of the long name */
  .nav__icon { display: block; }
  .nav__cta { display: none; }
  .hero__title { top: 15%; transform: none; left: 16px; font-size: 44px; }
  .hero__side { right: 16px; left: 16px; width: auto; top: auto; bottom: 120px; transform: none; }
  .hero__foot { font-size: 10px; }
  .hint { display: none; }
  .cols { grid-template-columns: 1fr; gap: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(n+3) { display: none; }
  .page h2 { margin-bottom: 28px; }
  .close { top: 54px; }
}

/* Accessible-only text and fallbacks */
.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; }
.noscript, .webgl-fallback { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; font-family: var(--serif); font-size: 22px; color: var(--fg); }
