/* ============================================================
   BASE — Reset, body, common components
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
img   { display: block; max-width: 100%; }
button { background: none; border: none; font: inherit; color: inherit; cursor: none; }
@media (hover: none) { button { cursor: auto; } }

/* ── CURSOR ───────────────────────────────── */

/* Dot — exact mouse position, always visible */
.c-dot {
  position: fixed; top: 0; left: 0;
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9002;
  opacity: 0;
  will-change: transform;
  transition: opacity 300ms var(--ease), background 280ms var(--ease);
}
.c-dot.is-vis   { opacity: 1; }
.c-dot.is-dark  { background: rgba(246,243,238,.9); }
.c-dot.is-hover { opacity: 0; }       /* hides when pill is active */
.c-dot.is-form  { opacity: 0; }       /* hides on form fields */

/* Ring — lagging halo / morphs to pill on hover */
.c-ring {
  position: fixed; top: 0; left: 0;
  /* Default: 28×28 circle */
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(10,10,10,.22);
  background: transparent;
  pointer-events: none;
  z-index: 9001;
  opacity: 0;
  will-change: transform;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  /* All dimension transitions use spring-like easing */
  transition:
    opacity      400ms var(--ease),
    width        380ms cubic-bezier(0.16, 1, 0.3, 1),
    height       380ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 380ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color  260ms var(--ease),
    background    260ms var(--ease);
}
.c-ring.is-vis { opacity: 1; }

/* Pill state — triggered by hover on interactive elements */
.c-ring.is-pill {
  width: 86px; height: 26px;
  border-radius: 13px;
  border-color: var(--ink);
  background: var(--ink);
}

/* Press feedback */
.c-ring.is-press { transition: none; }

/* Dark bg variants */
.c-ring.is-dark               { border-color: rgba(246,243,238,.28); }
.c-ring.is-dark.is-pill       { border-color: var(--bone); background: var(--bone); }

/* Label inside pill */
.c-ring__label {
  position: absolute;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone); white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 140ms var(--ease);
  user-select: none;
}
.c-ring.is-pill .c-ring__label         { opacity: 1; }
.c-ring.is-dark.is-pill .c-ring__label { color: var(--ink); }

@media (hover: none) { .c-ring, .c-dot { display: none; } }

/* ── SECTION WRAPPER ──────────────────────── */
.section { padding: var(--sv) var(--gutter); }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section__label {
  font-family: var(--font-mono);
  font-size: var(--t-xs); letter-spacing: .22em; text-transform: uppercase;
  opacity: .5;
  margin-bottom: clamp(40px, 5vw, 72px);
  display: flex; align-items: center; gap: 14px;
}
.section__label::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; flex-shrink: 0;
}

/* ── BUTTONS ──────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 14px; letter-spacing: .04em;
  background: var(--ink); color: var(--bone);
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--ink);
  transition: background 250ms var(--ease), color 250ms var(--ease);
}
.btn-arrow { display: inline-block; transition: transform 250ms var(--ease); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px; letter-spacing: .04em;
  position: relative; opacity: .65;
}
.btn-ghost::after {
  content: ""; position: absolute; bottom: -3px; left: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease);
}

.btn-accent {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 14px; letter-spacing: .04em;
  background: var(--accent); color: var(--ink);
  padding: 14px 32px; border-radius: 999px; border: 1px solid var(--accent);
  transition: background 250ms var(--ease), color 250ms var(--ease);
}

.btn-outline-light {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 14px; letter-spacing: .04em;
  color: var(--bone);
  padding: 14px 32px; border-radius: 999px;
  border: 1px solid rgba(246,243,238,.28);
  transition: border-color 300ms var(--ease);
}

/* ── MARQUEE ──────────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(10,10,10,.1);
  border-bottom: 1px solid rgba(10,10,10,.1);
  padding: 13px 0;
}
.marquee__track {
  display: flex; gap: 0;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}
.marquee__i {
  font-family: var(--font-mono);
  font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase;
  opacity: .42; white-space: nowrap; padding: 0 clamp(28px, 3.5vw, 56px);
}
.marquee__s { opacity: .18; padding: 0 4px; align-self: center; font-size: 10px; }

/* ── MANIFESTO ────────────────────────────── */
.manifesto { background: var(--bone); }
.manifesto__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 140px); align-items: start;
}
.manifesto__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: .95; letter-spacing: -.035em;
}
.manifesto__title em { font-style: italic; opacity: .6; }
.manifesto__body {
  font-size: var(--t-base); line-height: 1.6; opacity: .75;
  margin-bottom: 28px; max-width: 52ch;
}
.manifesto__list { display: flex; flex-direction: column; }
.manifesto__list li {
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 0; border-top: 1px solid rgba(10,10,10,.12);
  display: flex; align-items: center; gap: 14px; opacity: .7;
}
.manifesto__list li::before { content: attr(data-n); opacity: .4; }
@media (max-width: 900px) {
  .manifesto__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Hover — pointer devices only ──────────────────────────
   Touch devices must not fire hover states on tap.
   Only real pointing devices (mouse / trackpad) match this.
────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: transparent; color: var(--ink); }
  .btn-primary:hover .btn-arrow { transform: translateX(4px); }
  .btn-ghost:hover { opacity: 1; }
  .btn-ghost:hover::after { transform: scaleX(1); }
  .btn-accent:hover { background: transparent; color: var(--accent); }
  .btn-outline-light:hover { border-color: rgba(246,243,238,.7); }
}
