/* =============================================================
   DIGIGARA — developer portfolio
   Motion standards: emilkowalski/skills (STANDARDS.md · RECIPES.md)
   · exact curves: --ease-out / --ease-in-out / --ease-drawer
   · UI < 300ms · marketing reveals 600ms · stagger 30–80ms
   · GPU only: transform / opacity / clip-path
   ============================================================= */

:root {
  /* palette */
  --bg: #0a0a0b;
  --surface: #111214;
  --surface-2: #15171a;
  --border: #232529;
  --border-soft: #1b1d21;
  --text: #e6e8ec;
  --muted: #9a9ca3;
  --faint: #5c5f66;
  --accent: #3ddc84;
  --accent-bright: #5ce39a;
  --accent-soft: rgba(61, 220, 132, 0.12);
  --accent-line: rgba(61, 220, 132, 0.35);
  --amber: #ffb000;

  /* type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* easing — Emil Kowalski standards, verbatim (no approximations) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entering / exiting */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* on-screen movement */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);   /* sliding panels */

  /* duration budgets */
  --t-press: 160ms;
  --t-hover: 200ms;
  --t-ui: 250ms;
  --t-reveal: 600ms;
  --stagger: 50ms;

  --container: 1240px;
  --nav-h: 64px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* no scroll-behavior: smooth — anchors are JS-driven (Lenis / scrollIntoView) */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: rgba(61, 220, 132, 0.3); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #26282d;
  border: 2px solid var(--bg);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #33363c; }

/* ---------- fixed background layers ---------- */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, black 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, black 20%, transparent 80%);
}

.page-glow {
  position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 220, 132, 0.07), transparent 62%);
  transform: translate(30vw, 40vh);
  will-change: transform;
}

.noise {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared utilities ---------- */
.mono { font-family: var(--font-mono); }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section { position: relative; padding: 120px 0; z-index: 1; }

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.section-kicker { margin-bottom: 22px; }

.section h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 58ch;
}

/* ---------- scroll progress — scaleX, never width ---------- */
#progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 130;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 110;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(10, 10, 11, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-hover) ease;
}

.nav.scrolled { border-bottom-color: var(--border-soft); }

.brand {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.brand .caret {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; gap: 30px; }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--accent); }
}

.status-pill {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.status-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s var(--ease-in-out) infinite alternate;
}

@keyframes pulse { from { opacity: 1; } to { opacity: 0.35; } }

/* ---------- right-edge section dots ---------- */
.section-dots {
  position: fixed; right: 26px; top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex; flex-direction: column; gap: 12px;
}

.section-dots a {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--faint);
  opacity: 0.5;
  transition:
    transform var(--t-hover) var(--ease-out),
    background-color var(--t-hover) ease,
    opacity var(--t-hover) ease;
}

.section-dots a.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.5);
}

/* ---------- boot overlay (rare / first-time tier: delight allowed) ---------- */
#boot {
  position: fixed; inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.boot-inner {
  width: min(620px, 86vw);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2.05;
  color: var(--muted);
}

.boot-title {
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.boot-line { min-height: 27px; }
.boot-line .ok { color: var(--accent); }
.boot-caret { color: var(--accent); animation: blink 1s steps(1) infinite; }

/* ---------- custom cursor (decorative: spring-interpolated, never raw) ---------- */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor,
  body.has-cursor * { cursor: none; }
}

.cursor-dot,
.cursor-ring {
  position: fixed; top: 0; left: 0;
  z-index: 250;
  border-radius: 50%;
  pointer-events: none;
  display: none;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { display: flex; }

.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--accent);
  will-change: transform;
}

.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(61, 220, 132, 0.5);
  align-items: center; justify-content: center;
  will-change: transform;
}

.cursor-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--bg);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 150ms ease;
}

.cursor-ring.is-view {
  background: var(--accent);
  border-color: var(--accent);
}

.cursor-ring.is-view .cursor-label {
  opacity: 1;
  transition-delay: 60ms;
}

/* ---------- buttons — press feedback: scale(0.97) 160ms, never scale(0) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  transition:
    transform var(--t-press) var(--ease-out),
    border-color var(--t-hover) ease,
    background-color var(--t-hover) ease,
    color var(--t-hover) ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06130b;
}

.btn-ghost { background: transparent; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
  .btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-kicker { margin-bottom: 20px; }

.hero-title {
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title .t-line { display: block; }
.hero-title .t-line.accent-line { color: var(--accent); }
.t-char { display: inline-block; will-change: transform; }

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-term-wrap { position: relative; }

.hero-term-wrap::before {
  content: "";
  position: absolute; inset: -10% -6%;
  background: radial-gradient(ellipse at 50% 40%, rgba(61, 220, 132, 0.13), transparent 65%);
  filter: blur(28px);
  z-index: 0;
}

.hero-terminal {
  position: relative;
  z-index: 1;
  animation: float 6s var(--ease-in-out) infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--faint);
  animation: float 3s var(--ease-in-out) infinite;
}

/* ---------- terminal window ---------- */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
}

.term-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.term-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

.term-sig {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.term-body {
  padding: 18px 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}

.term-line { min-height: 26px; white-space: pre-wrap; word-break: break-word; }
.term-line .cmd { color: var(--text); }
.term-line .ok { color: var(--accent); }
.term-caret { color: var(--accent); animation: blink 1s steps(1) infinite; }

/* json syntax colors (typed panels) */
.j-punc { color: var(--faint); }
.j-key { color: var(--muted); }
.j-str { color: var(--accent); }
.j-num { color: var(--amber); }
.j-bool { color: var(--text); }

/* ---------- tech marquee (constant motion: linear) ---------- */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex; width: max-content;
  will-change: transform;
}

.marquee-half {
  display: flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--faint);
  white-space: nowrap;
}

.marquee-half i {
  font-style: normal;
  color: var(--accent);
  margin: 0 26px;
}

/* ---------- giant outline watermarks (scroll-scrubbed parallax) ---------- */
.watermark {
  position: absolute;
  top: 24px; left: -8px;
  z-index: 0;
  font-size: clamp(110px, 16vw, 230px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #1e2025;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
}

/* ---------- reveal on scroll — exact recipe from STANDARDS/RECIPES ----------
   clip-path: inset(0 0 100% 0) -> inset(0 0 0 0), 600ms, fires once */
.reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-reveal) var(--ease-in-out);
}

.reveal[data-visible] { clip-path: inset(0 0 0 0); }

/* simple fade-up items (staggered by JS, 30–80ms budget) */
.fade-up {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}

[data-visible] .fade-up,
.fade-up[data-visible] {
  opacity: 1;
  transform: none;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

.about-copy p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-copy strong { color: var(--text); font-weight: 600; }

.about-brings { margin-top: 30px; display: grid; gap: 16px; }

.about-brings li {
  display: flex; gap: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.about-brings .b-key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  min-width: 158px;
  flex-shrink: 0;
  padding-top: 2px;
}

.profile-panel .term-body { min-height: 328px; font-size: 12.5px; line-height: 2.1; }

/* ---------- work ---------- */
.work-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}

.work-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
  padding-bottom: 8px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 64px 0;
}

.project-row + .project-row { border-top: 1px solid var(--border-soft); }
.project-row.flip .project-visual { order: 2; }

.project-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  will-change: transform;
}

.project-visual::before {
  content: "";
  position: absolute; inset: 8% 12%;
  background: radial-gradient(ellipse at center, rgba(61, 220, 132, 0.09), transparent 65%);
  filter: blur(34px);
  z-index: 0;
}

/* phone mockup */
.phone {
  position: relative;
  z-index: 1;
  width: 248px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #0c0d10;
  padding: 10px;
  border-radius: 36px;
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.65);
  will-change: transform;
}

.phone-screen {
  position: relative;
  border-radius: 27px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  background: #101114;
  /* power-on wipe: exact recipe — clip-path 600ms ease-in-out, once */
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-reveal) var(--ease-in-out);
}

.phone.play .phone-screen { clip-path: inset(0 0 0 0); }

.phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* project text side */
.crumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  margin-bottom: 14px;
}

.crumb .arr {
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity var(--t-hover) ease,
    transform var(--t-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .project-row:hover .crumb .arr { opacity: 1; transform: none; }
}

.project-name {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.logline {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 22px;
}

.logline::before { content: "commit "; color: var(--faint); }

.p-bullets { display: grid; gap: 10px; margin-bottom: 26px; }

.p-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.p-bullets li::before {
  content: "▸";
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

.tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 10px;
}

.p-links { display: flex; gap: 24px; }

.p-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .p-links a:hover { color: var(--accent); }
}

.mmpi-json { width: min(300px, 100%); flex-shrink: 0; }
.mmpi-json .term-body { min-height: 250px; }

/* ---------- capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.cap-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 24px;
  transition:
    transform var(--t-hover) var(--ease-out),
    border-color var(--t-hover) ease;
}

.cap-card::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-hover) ease;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent-soft), transparent 65%
  );
}

.cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.cap-card h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.cap-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .cap-card:hover { transform: translateY(-4px); border-color: #2e3136; }
  .cap-card:hover::after { opacity: 1; }
}

/* ---------- stack ---------- */
.stack-list { margin-top: 56px; }

.stack-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--border-soft);
}

.stack-row:last-child { border-bottom: 1px solid var(--border-soft); }

.stack-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.stack-chips span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 12px;
}

/* ---------- contact ---------- */
.contact { text-align: center; padding: 170px 0 130px; }

.contact-cmd {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--text);
  margin-bottom: 40px;
  min-height: 1.5em;
}

.contact-cmd .prompt { color: var(--accent); }
.contact-cmd .caret { color: var(--accent); animation: blink 1s steps(1) infinite; }

.contact-btn { font-size: 14px; padding: 16px 30px; }

.socials {
  display: flex; justify-content: center; gap: 30px;
  margin-top: 28px;
}

.socials a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .socials a:hover { color: var(--accent); }
}

.contact-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- footer ---------- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-soft);
  padding: 30px 0 44px;
}

.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}

.footer-inner p {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
}

.footer-inner p .footer-copy { display: inline-block; }
.footer-inner p .footer-sep { margin: 0 7px; }

.footer-inner a {
  color: var(--faint);
  text-decoration: none;
  transition: color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-inner a:hover { color: var(--accent); }
}

#done-flicker {
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--t-ui) ease;
}

#done-flicker.lit { opacity: 1; }

/* ---------- responsive (desktop-first, safety pass) ---------- */
@media (max-width: 1024px) {
  .section { padding: 96px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-term-wrap { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .project-row { grid-template-columns: 1fr; gap: 44px; padding: 56px 0; }
  .project-row.flip .project-visual { order: 0; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .section-dots { display: none; }
  .watermark { opacity: 0.55; }
  .work-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .stack-row { grid-template-columns: 1fr; gap: 12px; }
  .phone { width: 212px; }
  .mmpi-json { width: 100%; }
  .project-visual { flex-wrap: wrap; }
  .about-brings li { flex-direction: column; gap: 6px; }
  .about-brings .b-key { min-width: 0; }
}

/* ---------- reduced motion: fewer and gentler, never zero ----------
   keep opacity/color, drop movement, typing loops, smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal, .phone-screen { clip-path: none; transition: none; }
  .fade-up { opacity: 1; transform: none; transition: opacity 200ms ease; }
  .marquee-track { transform: none !important; }
  .hero-terminal, .hero-scroll-hint, .status-pill .dot,
  .brand .caret, .term-caret, .boot-caret { animation: none; }
  .page-glow, .cursor-dot, .cursor-ring { display: none !important; }
  .section-dots a { transition: background-color var(--t-hover) ease, opacity var(--t-hover) ease; }
  .section-dots a.active { transform: none; }
}

/* end of design system */





