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

/* ── TOKENS ── */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --mid: #aaaaaa;
  --line: #ebebeb;
  --ghost: rgba(0,0,0,0.06);
  --accent: #ff9534;
  --font: 'Figtree', Helvetica, Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── BASE ── */
html, body { background: var(--bg); height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  cursor: none;
  animation: pageFadeIn 0.4s ease forwards;
}
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body.fade-out { opacity: 0; transition: opacity 0.3s ease; }
a, button, [role="button"] { cursor: none; }

/* ── VIRTUAL SCROLL ── */
#scroll-container {
  position: fixed;
  top: 0; left: 0; right: 0;
  will-change: transform;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.16,1,0.3,1),
              height 0.25s cubic-bezier(0.16,1,0.3,1),
              background 0.2s, border 0.2s;
  will-change: transform;
}
#cursor.hover {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--ink);
}
.trail-dot {
  position: fixed;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9990;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

/* ── 1440px CENTERED CONTAINER (whole site) ── */
header, main, footer {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ── HEADER ── */
header {
  position: relative;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 36px;
  pointer-events: none;
}
header a { pointer-events: all; text-decoration: none; transition: color 0.15s; }
header .site-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
}
header .back {
  font-size: 13px;
  color: var(--mid);
}
header .site-name:hover,
header .back:hover { color: var(--accent); }
header nav { display: flex; gap: 28px; }
header nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
}
header nav a.active { color: var(--ink); }
header nav a:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 100;
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
}
footer span { font-size: 12px; color: var(--mid); }
footer a {
  font-size: 13px;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s;
}
footer a:hover { color: var(--accent); }

/* ── MAIN ── */
main { padding: 120px 36px 80px; }
.block { margin-bottom: 120px; }

/* ── TYPE — GHOST LABEL ── */
.ghost-text {
  font-size: 80px;
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ghost);
  margin-bottom: 40px;
  user-select: none;
}

/* ── TYPE — LARGE BODY ── */
.large-body {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 960px;
}

/* ── MONO UTILITY ── */
header nav a,
header .back,
.p-tag,
.method-editorial .sep,
.quote-text,
.quote-author,
.cv-years,
.cv-city,
.c-type,
.contact-list a,
.project-tag,
.project-meta,
footer span,
footer a {
  font-family: var(--mono);
  font-weight: 400;
}

/* ── MOBILE ── */
@media (max-width: 700px) {
  html, body { overflow: auto; height: auto; }
  #scroll-container { position: static; transform: none !important; }
  #cursor, .trail-dot { display: none; }
  header { padding: 20px; }
  main { padding: 90px 20px 60px; }
  .block { margin-bottom: 64px; }
  footer { padding: 20px; }
  .ghost-text { font-size: 48px; margin-bottom: 24px; }
  .large-body { font-size: 22px; line-height: 1.4; }
}
