/* ============================================================
   Harshvardhan Sikarwar — portfolio
   Implemented from the Claude Design source at design/Portfolio.dc.html.
   Values (colors, type, spacing, radii) are lifted from that file.
   ============================================================ */

:root {
  /* Page tone — "Celadon mist", the default of the design's pageTone prop.
     Other tones from the source: Limestone #e9e5da, Iris grey #e2e0ef,
     Warm clay #ecdfd5, Cool fog #dbdfe3, Pale sand #e8e2d2. */
  --paper: #dbe3dc;
  --accent: #c2502e;

  --ink: #1d211f;
  --ink-70: rgba(29, 33, 31, .7);
  --ink-66: rgba(29, 33, 31, .66);
  --ink-14: rgba(29, 33, 31, .14);
  --ink-12: rgba(29, 33, 31, .12);
  --ink-10: rgba(29, 33, 31, .1);

  --dark: #141a19;
  --card: #f6f3ea;
  --card-2: #efebe0;
  --cream: #e9e5da;
  --cream-72: rgba(233, 229, 218, .72);
  --cream-66: rgba(233, 229, 218, .66);
  --cream-16: rgba(233, 229, 218, .16);

  --green: #7f9b6d;
  --green-lt: #a8c48a;

  /* LinkedIn brand blue, for the social ball */
  --linkedin: #0a66c2;

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --maxw: 1180px;
  --pad: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #5a5f57; }
::selection { background: var(--ink); color: var(--cream); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--pad); top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font: 500 13px/1 var(--body);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--cream); }

/* The strip holds an even number of identical tracks; -50% advances it by
   exactly half its width, so the loop is seamless. */
@keyframes mq   { from { transform: translate3d(0,0,0); }     to { transform: translate3d(-50%,0,0); } }
@keyframes mqr  { from { transform: translate3d(-50%,0,0); }  to { transform: translate3d(0,0,0); } }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ── chrome ─────────────────────────────────────────────── */

.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 120;
}

/* While the custom cursor is live nothing may re-assert a native one.
   Links and buttons carry `cursor: pointer` from the UA stylesheet, so
   without this the system hand sits on top of the custom cursor over
   every interactive element — which is exactly where it gets looked at.
   The class is added by cursor() in main.js only for a real mouse or
   pen, so touch devices and a no-JS page keep the native cursor. */
.cursor-live, .cursor-live * { cursor: none !important; }

.cursor-ring, .cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none; opacity: 0;
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0);
  /* The ring is moved every frame from JS; keep it off the main
     thread and out of the way of the blend. */
  will-change: transform;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid #8d9088; border-radius: 50%;
  z-index: 200;
}
.cursor-dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: #9b9e95;
  z-index: 201;
}

.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: blip 2.4s ease-in-out infinite;
  flex: none;
}

/* ── nav ────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  /* Same gutter as the sections, so the nav's edges line up with content. */
  width: calc(100% - var(--pad) * 2);
  max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(29, 33, 31, 0);
  border-radius: 999px;
  background: rgba(250, 249, 247, 0);
  box-shadow: 0 8px 30px rgba(29, 33, 31, 0);
}

.nav__pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(29, 33, 31, 0);
  border-radius: 999px;
  background: rgba(246, 243, 234, 0);
  flex: none;
}
.nav__pill-text { font: 500 12.5px/1 var(--body); white-space: nowrap; }

.nav__links {
  display: flex; align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  flex-wrap: wrap; min-width: 0; flex-shrink: 1;
}
.nav__links a {
  font: 500 13.5px/1 var(--body);
  display: flex; gap: 4px; align-items: baseline;
  white-space: nowrap;
}
.nav__count { font-size: 10.5px; opacity: .72; }
.nav__end { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__cta { flex: none; }

/* ── hamburger ──────────────────────────────────────────── */

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  padding: 0; border: 1px solid var(--ink-14); border-radius: 999px;
  background: var(--card); color: var(--ink);
  cursor: pointer; flex: none;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.burger:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.burger__bars { display: flex; flex-direction: column; gap: 4px; width: 17px; }
.burger__bars span {
  display: block; height: 1.6px; width: 100%;
  background: currentColor; border-radius: 2px;
  transition: transform .34s var(--ease), opacity .2s ease;
}
.burger[aria-expanded="true"] .burger__bars span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ── drawer ─────────────────────────────────────────────── */

.drawer-scrim {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(29, 33, 31, .46);
  opacity: 0; transition: opacity .34s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.drawer-scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 140;
  width: min(330px, 86vw); height: 100%; height: 100dvh;
  display: flex; flex-direction: column;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 24px
           calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  border-left: 1px solid var(--ink-12);
  box-shadow: -24px 0 60px -30px rgba(29, 33, 31, .6);
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 30px;
}
.drawer__brand {
  font: 600 13px/1.25 var(--display);
  letter-spacing: -.01em; max-width: 190px;
}
.drawer__close {
  width: 40px; height: 40px; flex: none;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid var(--ink-14); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.drawer__close:hover { background: var(--ink); color: var(--cream); }

.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--ink-12);
  font: 700 clamp(19px, 5.6vw, 23px)/1.1 var(--display);
  letter-spacing: -.025em; text-transform: uppercase;
  transition: padding-left .3s var(--ease), color .3s ease;
}
.drawer__nav a:hover { padding-left: 8px; color: var(--accent); }
.drawer__count { font: 400 10.5px/1 var(--mono); opacity: .4; letter-spacing: .06em; }

.drawer__foot { margin-top: auto; padding-top: 32px; }
.drawer__mail {
  display: block; margin-bottom: 14px;
  font: 500 13.5px/1.4 var(--body);
  overflow-wrap: anywhere;
}
.drawer__mail:hover { color: var(--accent); }
.drawer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__social a {
  padding: 9px 14px;
  border: 1px solid var(--ink-14); border-radius: 999px;
  font: 500 12px/1 var(--body);
  transition: background .3s ease, color .3s ease;
}
.drawer__social a:hover { background: var(--ink); color: var(--cream); }

/* The drawer is a small-screen affordance only. */
@media (min-width: 901px) {
  .drawer, .drawer-scrim { display: none !important; }
}

body.is-locked { overflow: hidden; }

/* ── buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  font-family: var(--body);
  white-space: nowrap;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}

.btn--solid {
  padding: 11px 18px;
  background: var(--ink); color: var(--cream);
  font: 500 13px/1 var(--body);
}
.btn--solid:hover { background: var(--accent); color: var(--cream); transform: translateY(-1px); }

.hero__actions .btn--solid { padding: 13px 20px; font-size: 13.5px; }

.btn--ghost {
  padding: 13px 20px;
  border: 1px solid rgba(29, 33, 31, .18);
  background: rgba(236, 231, 219, .6);
  font: 500 13.5px/1 var(--body);
}
.btn--ghost:hover { background: var(--card); border-color: rgba(29, 33, 31, .4); color: var(--ink); }

.btn--outline {
  padding: 11px 17px;
  border: 1px solid var(--ink-14);
  background: rgba(236, 231, 219, .75);
  font: 500 12.5px/1 var(--body);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.section__head .btn--outline { border-color: rgba(29, 33, 31, .18); background: rgba(236, 231, 219, .6); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 12.5px/1 var(--body);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink-14);
  transition: border-color .3s ease, color .3s ease;
}
.link-arrow:hover { border-color: var(--ink); color: var(--ink); }

/* ── sections ───────────────────────────────────────────── */

/* Anchor targets clear the fixed nav (14px top + ~56px tall). */
.section { position: relative; scroll-margin-top: 92px; }
#top { scroll-margin-top: 0; }

/* Every section keeps the same gutter on both sides, and nothing inside a
   content box may reach past it. The marquee is the one deliberate
   exception — a ticker has to run edge to edge — and it is handled on its
   own rule below. */
.section__inner,
.hero__inner,
.about__grid,
.stack__head,
.contact__inner { max-width: min(var(--maxw), 100%); }

.section > *,
.hero > * { max-width: 100%; }
.section__inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 54px);
}
.section__title {
  margin: 0;
  font: 700 clamp(28px, 4.4vw, 58px)/1 var(--display);
  letter-spacing: -.03em;
}
.section__note { font: 400 13px/1 var(--body); color: var(--ink-66); }

.eyebrow {
  font: 500 11px/1 var(--body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 22px;
}

.ghost-type {
  position: absolute;
  top: clamp(34px, 5vw, 64px); left: 0; width: 100%;
  text-align: center;
  font: 900 clamp(56px, 12vw, 182px)/1 var(--display);
  letter-spacing: .01em;
  color: rgba(29, 33, 31, .045);
  pointer-events: none; user-select: none;
}
.ghost-type--exp {
  top: clamp(30px, 4.6vw, 60px);
  font-size: clamp(52px, 11.6vw, 176px);
  letter-spacing: normal;
}

/* ── hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(980px, 100vh);
  min-height: min(980px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 132px var(--pad) 46px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; }

.name { perspective: 900px; margin-bottom: clamp(28px, 7vw, 90px); }

/* --name-size is measured and set by fitName() so the longest word lands
   exactly on the content-box edge. The clamp is the no-JS fallback: it is
   deliberately conservative, since a fallback face is wider than Archivo. */
.name__row {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 0 2vw;
  font-family: var(--display); font-weight: 800;
  font-size: var(--name-size, clamp(30px, calc(10.8vw - 7px), 132px));
  line-height: .92; letter-spacing: -.03em;
  transform-style: preserve-3d;
}
.name__word { display: flex; max-width: 100%; }
.name__word--outline {
  color: transparent;
  -webkit-text-stroke: min(2px, calc(.11vw + 1px)) var(--ink);
}
.name__word--solid {
  text-shadow:
    1px 1px 0 rgba(29, 33, 31, .16),
    2px 2px 0 rgba(29, 33, 31, .12),
    3px 3px 0 rgba(29, 33, 31, .08),
    4px 5px 14px rgba(29, 33, 31, .18);
}
.ltr { display: inline-block; transition: transform .5s var(--ease); }

.hero__base {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: 34px;
}
.hero__intro { max-width: 420px; min-width: 260px; }
.hero__role {
  margin: 0 0 10px;
  font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--display);
  letter-spacing: -.02em;
}
.hero__blurb {
  margin: 0 0 22px;
  font: 400 14.5px/1.55 var(--body);
  color: var(--ink-70);
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero__social { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.hero__social-hint {
  font: 500 10.5px/1 var(--body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-66);
}

.arena { position: relative; width: min(320px, 46vw); height: 190px; }
.ball {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
}
.ball--github {
  width: 66px; height: 66px;
  background: var(--ink); color: var(--cream);
  box-shadow:
    0 14px 26px -12px rgba(29, 33, 31, .65),
    inset 0 -8px 16px rgba(0, 0, 0, .45),
    inset 0 8px 12px rgba(255, 255, 255, .16);
}
.ball--linkedin {
  width: 58px; height: 58px;
  background: var(--linkedin); color: #ffffff;
  box-shadow:
    0 14px 26px -12px rgba(29, 33, 31, .55),
    inset 0 -8px 16px rgba(0, 0, 0, .3),
    inset 0 8px 12px rgba(255, 255, 255, .22);
}
.ball--mail {
  width: 52px; height: 52px;
  background: var(--card); color: var(--ink);
  border: 1px solid rgba(29, 33, 31, .22);
  box-shadow:
    0 14px 26px -14px rgba(29, 33, 31, .5),
    inset 0 -8px 14px rgba(29, 33, 31, .12),
    inset 0 8px 12px rgba(255, 255, 255, .7);
}
.ball:hover { color: inherit; }

.hero__meta {
  margin-top: 38px;
  display: flex; align-items: center; gap: 12px;
  font: 500 11px/1 var(--body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-70);
}
.hero__rule { flex: 1; max-width: 120px; height: 1px; background: rgba(29, 33, 31, .2); }

/* ── about ──────────────────────────────────────────────── */

.about { padding: clamp(70px, 9vw, 130px) var(--pad); border-top: 1px solid var(--ink-10); }
.about__grid {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(34px, 5vw, 80px);
}
.about__lede {
  margin: 0 0 18px;
  font: 500 clamp(20px, 2.2vw, 29px)/1.32 var(--display);
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.about__body {
  margin: 0;
  font: 400 14.5px/1.6 var(--body);
  color: var(--ink-70);
  max-width: 52ch;
  text-wrap: pretty;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-12);
  border: 1px solid var(--ink-12);
  align-content: start;
}
.stat { background: var(--paper); padding: 24px 20px; }
.stat__num {
  font: 800 clamp(30px, 3.6vw, 46px)/1 var(--display);
  letter-spacing: -.03em;
}
.stat__accent { color: var(--accent); }
.stat__label {
  margin-top: 9px;
  font: 400 12px/1.4 var(--body);
  color: var(--ink-66);
}
.stat--wide {
  grid-column: 1 / -1;
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 0;
}
.stat__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stat__caption {
  position: absolute; left: 16px; bottom: 14px;
  font: 500 10px/1 var(--body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-66);
  pointer-events: none;
}

/* ── work ───────────────────────────────────────────────── */

.work { padding: clamp(70px, 9vw, 120px) var(--pad); border-top: 1px solid var(--ink-10); overflow: hidden; }
.work .section__head { margin-bottom: clamp(34px, 4vw, 58px); }
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.card {
  border: 1px solid var(--ink-12);
  background: var(--card);
  padding: 14px;
  transition: box-shadow .4s ease, border-color .4s ease, transform .3s ease;
  will-change: transform;
}
.card:hover {
  box-shadow: 0 26px 60px -24px rgba(29, 33, 31, .4);
  border-color: rgba(29, 33, 31, .3);
}
.card--wide { grid-column: 1 / -1; }
.card--wide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}
.card--wide__text {
  padding: 6px 6px 6px 4px;
  display: flex; flex-direction: column; justify-content: center;
}

.term { background: var(--dark); border-radius: 6px; overflow: hidden; }
.term__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(236, 231, 219, .09);
}
.term__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(236, 231, 219, .22); flex: none; }
.term__dot:nth-child(2) { background: rgba(236, 231, 219, .16); }
.term__dot:nth-child(3) { background: rgba(236, 231, 219, .12); }
.term__file {
  margin-left: 8px;
  font: 400 11px/1 var(--mono);
  color: rgba(236, 231, 219, .55);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.term__badge {
  margin-left: auto;
  font: 500 10px/1 var(--body);
  letter-spacing: .1em;
  color: var(--green-lt);
  white-space: nowrap;
}
.term__body {
  margin: 0;
  padding: 17px 15px;
  font: 400 11.5px/1.75 var(--mono);
  color: rgba(236, 231, 219, .62);
  white-space: pre-wrap;
  overflow: hidden;
}
.c-dim { color: rgba(236, 231, 219, .3); }
.c-mid { color: rgba(236, 231, 219, .8); }
.c-hi  { color: var(--card); }
.card--wide .c-mid { color: rgba(236, 231, 219, .85); }

.card__body { padding: 18px 6px 6px; }
.card__kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; flex-wrap: wrap; }
.tag {
  padding: 4px 9px; border-radius: 4px;
  font: 600 9.5px/1.3 var(--body);
  letter-spacing: .1em;
}
.tag--dark { background: var(--ink); color: var(--cream); }
.tag--accent { background: var(--accent); color: var(--card); }
.card__meta { font: 400 11.5px/1 var(--body); color: var(--ink-70); }
.card__title {
  margin: 0 0 8px;
  font: 600 clamp(18px, 1.7vw, 23px)/1.22 var(--display);
  letter-spacing: -.02em;
}
.card__title--lg { font-size: clamp(18px, 1.8vw, 25px); }
.card__text {
  margin: 0 0 14px;
  font: 400 13.5px/1.55 var(--body);
  color: var(--ink-70);
  text-wrap: pretty;
}
.card__text--wide { line-height: 1.6; max-width: 56ch; }
.card__links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 6px 11px;
  border: 1px solid var(--ink-14);
  border-radius: 999px;
  font: 400 11.5px/1 var(--body);
}
.chips--dark { margin-top: 16px; }
.chips--dark .chip {
  border-color: rgba(233, 229, 218, .2);
  color: var(--cream-72);
}

/* ── open source ────────────────────────────────────────── */

.oss {
  background: var(--dark);
  color: var(--cream);
  padding: clamp(70px, 9vw, 130px) var(--pad);
  overflow: hidden;
}
/* Sits inside .section__inner, so right:0 is the content-box edge — the same
   gutter as every other element. The design let it bleed off-screen; keeping
   it inside means it no longer collides with the facts grid either. */
.oss__canvas {
  position: absolute; top: 50%; right: 0;
  transform: translateY(-50%);
  width: min(560px, 42%); height: min(560px, 42%);
  aspect-ratio: 1;
  opacity: .85; pointer-events: none;
}
.oss .section__note { color: var(--cream-66); }
.oss__list { max-width: 720px; border-top: 1px solid var(--cream-16); }
.oss__item { padding: 26px 0; border-bottom: 1px solid var(--cream-16); }
.oss__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.oss__name {
  font: 600 clamp(20px, 2.2vw, 28px)/1 var(--display);
  letter-spacing: -.02em;
}
.oss__name--sm { font-size: clamp(18px, 1.9vw, 24px); }
.oss__pr {
  padding: 5px 10px;
  border: 1px solid rgba(233, 229, 218, .24);
  border-radius: 999px;
  font: 400 11px/1 var(--mono);
  color: rgba(233, 229, 218, .7);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.oss__pr:hover { background: var(--cream); color: var(--dark); border-color: var(--cream); }
.oss__merged {
  padding: 5px 10px; border-radius: 999px;
  background: var(--green-lt); color: #12160f;
  font: 600 10.5px/1 var(--body);
  letter-spacing: .06em;
}
.oss__stars { font: 400 12px/1 var(--body); color: rgba(233, 229, 218, .6); }
.oss__text {
  margin: 0 0 16px;
  font: 400 14px/1.65 var(--body);
  color: var(--cream-72);
  max-width: 58ch;
  text-wrap: pretty;
}
.oss__item:last-child .oss__text { margin-bottom: 0; }
.oss__item:last-child .oss__head { margin-bottom: 10px; }
.oss__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px;
  background: var(--cream-16);
  border: 1px solid var(--cream-16);
}
.oss__fact { background: var(--dark); padding: 16px; }
.oss__fact-t { font: 600 12.5px/1.4 var(--body); margin-bottom: 5px; }
.oss__fact-b { font: 400 11.5px/1.5 var(--body); color: var(--cream-66); }

/* ── stack ──────────────────────────────────────────────── */

.stack { padding: clamp(66px, 8vw, 110px) 0; border-top: 1px solid var(--ink-10); overflow: hidden; }
.stack__head {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad) clamp(34px, 4vw, 52px);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}

/* Deliberate full-bleed exception to the gutter rule: a ticker runs edge to
   edge. The section clips it, so it never adds page scroll. */
.marquee {
  display: flex; width: max-content; max-width: none;
  animation: mq 34s linear infinite;
  will-change: transform;
}
.marquee__track { display: flex; align-items: center; flex: none; }
.marquee--rev { margin-top: 6px; animation: mqr 40s linear infinite; }

.mq-lg {
  padding: 0 26px;
  font: 800 clamp(28px, 4.6vw, 62px)/1.28 var(--display);
  letter-spacing: -.03em;
  white-space: nowrap;
}
.mq-lg--outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink-70);
}
.mq-sm {
  padding: 0 20px;
  font: 500 clamp(15px, 1.5vw, 22px)/1.6 var(--body);
  color: var(--ink-66);
  white-space: nowrap;
}

/* ── experience ─────────────────────────────────────────── */

.exp { padding: clamp(70px, 9vw, 120px) var(--pad); border-top: 1px solid var(--ink-10); overflow: hidden; }
.exp .section__head { margin-bottom: clamp(30px, 4vw, 50px); }
.exp .section__note { font-weight: 500; }

.rows { border-top: 1px solid var(--ink-14); }
.row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: clamp(20px, 2.4vw, 30px) clamp(0px, 1.4vw, 18px);
  border-bottom: 1px solid var(--ink-14);
  transition: background .35s ease, color .35s ease;
}
.row:hover { background: var(--ink); color: var(--cream); }
.row__left { min-width: 240px; }
.row__title {
  font: 600 clamp(17px, 1.8vw, 23px)/1.2 var(--display);
  letter-spacing: -.02em;
}
.row__sub {
  margin-top: 6px;
  font: 400 13.5px/1.4 var(--body);
  color: var(--ink-66);
  transition: color .35s ease;
}
.row__meta {
  display: flex; align-items: center; gap: 18px;
  font: 400 13.5px/1 var(--body);
  color: var(--ink-66);
  transition: color .35s ease;
}
.row:hover .row__sub,
.row:hover .row__meta { color: rgba(233, 229, 218, .62); }
.row__tech { opacity: 0; transition: opacity .35s ease; font-size: 12px; }
.row:hover .row__tech { opacity: 1; }
.row__date { white-space: nowrap; }

/* ── services accordion ─────────────────────────────────── */

.services { padding: clamp(70px, 9vw, 120px) var(--pad); border-top: 1px solid var(--ink-10); }
.services__title { margin-bottom: clamp(28px, 3.6vw, 46px); }
.acc { display: flex; flex-direction: column; gap: 10px; }
.acc__item {
  border: 1px solid var(--ink-14);
  background: var(--card-2);
  overflow: hidden;
  transition: background .4s ease, color .4s ease;
}
.acc__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 26px) clamp(16px, 2vw, 26px);
  background: transparent; border: 0; cursor: pointer;
  color: inherit; text-align: left;
  font-family: var(--display);
}
.acc__label { display: flex; align-items: baseline; gap: clamp(10px, 1.6vw, 20px); min-width: 0; }
.acc__n { font: 400 11.5px/1 var(--mono); opacity: .4; flex: none; }
.acc__title {
  font: 700 clamp(19px, 2.9vw, 40px)/1.05 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.acc__sign { font-size: clamp(16px, 1.8vw, 22px); opacity: .68; flex: none; }
.acc__panel-inner {
  padding: 0 clamp(16px, 2vw, 26px) clamp(20px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px; align-items: start;
}
.acc__body {
  margin: 0;
  font: 400 14.5px/1.6 var(--body);
  color: var(--ink-70);
  max-width: 54ch;
  text-wrap: pretty;
}
.acc__tools { font: 400 12.5px/1.7 var(--mono); color: var(--ink-66); }

/* ── contact ────────────────────────────────────────────── */

.contact {
  padding: clamp(90px, 12vw, 170px) var(--pad) clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--ink-10);
  overflow: hidden;
  text-align: center;
}
.contact__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.contact__inner { position: relative; width: 100%; max-width: 820px; margin: 0 auto; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--ink-10);
  border-radius: 999px;
  background: var(--card);
  margin-bottom: 26px;
  font: 500 12.5px/1 var(--body);
  white-space: nowrap;
}

.contact__title {
  margin: 0 0 18px;
  font: 800 clamp(30px, 6.2vw, 76px)/1.02 var(--display);
  letter-spacing: -.035em;
}
.contact__text {
  margin: 0 auto 32px;
  max-width: 52ch;
  font: 400 15px/1.6 var(--body);
  color: var(--ink-70);
  text-wrap: pretty;
}
.contact__cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font: 500 14px/1 var(--body);
  white-space: nowrap;
  box-shadow: 0 14px 34px -12px rgba(29, 33, 31, .7);
  transition: background .3s ease, transform .3s ease;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact__cta:hover { background: var(--accent); color: var(--cream); transform: translateY(-2px); }

.contact__links {
  margin-top: clamp(46px, 7vw, 86px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.contact__foot {
  margin-top: clamp(40px, 6vw, 70px);
  padding-top: 20px;
  border-top: 1px solid var(--ink-12);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font: 400 11.5px/1.4 var(--body);
  color: var(--ink-70);
  text-align: left;
}

/* ── responsive ─────────────────────────────────────────── */

/* ≤1100px — the torus needs more clearance from the text column */
@media (max-width: 1100px) {
  .oss__canvas { width: min(440px, 38%); height: min(440px, 38%); opacity: .6; }
}

/* ≤900px — section links move into the drawer */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: inline-flex; }
  .nav { padding: 8px 8px 8px 12px; }
  .oss__list { max-width: none; }
  .oss__canvas { width: 300px; height: 300px; opacity: .3; top: auto; bottom: 0; transform: none; }
  .card--wide__text { padding: 14px 6px 6px 4px; }
}

/* ≤760px — single-column content */
@media (max-width: 760px) {
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .oss__facts { grid-template-columns: minmax(0, 1fr); }
  .oss__canvas { display: none; }
  .row { gap: 8px; }
  .row__left { min-width: 0; flex: 1 1 100%; }
  .row__meta { flex: 1 1 100%; justify-content: flex-start; }
  .acc__panel-inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ≤620px — phone */
@media (max-width: 620px) {
  :root { --pad: 20px; }
  .hero { padding: 104px var(--pad) 40px; min-height: auto; }
  .name { margin-bottom: 30px; }
  .name__row { justify-content: flex-start; gap: 0; }
  .hero__base { gap: 26px; }
  .hero__intro { max-width: none; min-width: 0; }
  .hero__social { align-items: flex-start; width: 100%; }
  .arena { width: 100%; height: 150px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .contact__foot { justify-content: center; text-align: center; }
  .nav__pill-text { display: none; }
  .nav__pill { padding: 8px; }
  .card { padding: 10px; }
  .card__body { padding: 16px 4px 4px; }
  .term__file { font-size: 10px; }
  .term__body { font-size: 10.5px; padding: 14px 12px; }
  .contact__cta { font-size: 13px; padding: 14px 20px; }
  .ghost-type { display: none; }
}

/* ≤400px — smallest common phones */
@media (max-width: 400px) {
  :root { --pad: 16px; }
  .nav { gap: 10px; }
  .hero__actions .btn--solid,
  .btn--ghost { padding: 12px 16px; font-size: 13px; }
  .stat { padding: 20px 16px; }
}

/* Touch / coarse pointers never get the custom cursor or the
   pointer-driven canvas warps — keep the native cursor. */
@media (hover: none), (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none; }
  .cursor-live, .cursor-live * { cursor: auto !important; }
  .cursor-live a, .cursor-live button, .cursor-live [role="button"],
  .cursor-live summary { cursor: pointer !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .marquee--rev { animation: none; }
  .status-dot { animation: none; }
  .ltr { transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
