/* =============================================================================
   Coders Universe — homepage sections below the hero
   Monochrome base taken from the hero, one terminal-green accent,
   mono labels for the "developer studio" feel. Works in dark (default) and light.
   ============================================================================= */

:root {
  --cu-bg: #f4f3ef;
  --cu-bg-2: #eae9e4;
  --cu-card: #ffffff;
  --cu-ink: #0b0b0c;
  --cu-ink-2: #4f4f55;
  --cu-ink-3: #66666c;
  --cu-line: rgba(11, 11, 12, 0.12);
  --cu-line-2: rgba(11, 11, 12, 0.22);
  --cu-accent: #15803d;
  --cu-accent-soft: rgba(21, 128, 61, 0.12);
  --cu-accent-ink: #ffffff;
  --cu-spot: rgba(21, 128, 61, 0.14);
  --cu-code-bg: #0d0e10;
  --cu-code-ink: #e7e7e3;
  --cu-gut: clamp(20px, 5vw, 72px);
  --cu-max: 1360px;
  --cu-r: 18px;
  --cu-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-mode {
  --cu-bg: #0a0a0c;
  --cu-bg-2: #101013;
  --cu-card: #131317;
  --cu-ink: #f2f2ee;
  --cu-ink-2: #a3a3a8;
  --cu-ink-3: #8c8c93;
  --cu-line: rgba(255, 255, 255, 0.09);
  --cu-line-2: rgba(255, 255, 255, 0.18);
  --cu-accent: #5ee08f;
  --cu-accent-soft: rgba(94, 224, 143, 0.12);
  --cu-accent-ink: #052012;
  --cu-spot: rgba(94, 224, 143, 0.13);
}

/* ---------- utilities ---------- */
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100001;
  background: var(--cu-accent); color: var(--cu-accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; font-family: var(--font-body);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
.cu-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.cu-anchor { position: relative; top: -80px; display: block; height: 0; }
:where(.cu-build, .cu-work, .cu-about, .cu-numbers, .cu-skills, .cu-lab, .cu-exp, .cu-services, .cu-blog, .cu-words, .cu-contact, .cu-footer) :focus-visible {
  outline: 2px solid var(--cu-accent); outline-offset: 3px; border-radius: 6px;
}
main section { scroll-margin-top: 72px; }

.cu-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: lowercase;
  color: var(--cu-ink-3); margin-bottom: 22px;
}
.cu-kicker__slash { color: var(--cu-accent); margin-right: 4px; }

.cu-head { max-width: var(--cu-max); margin: 0 auto clamp(40px, 6vw, 80px); padding: 0 var(--cu-gut); }
.cu-head__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.04em;
  color: var(--cu-ink); max-width: 18ch; text-wrap: balance;
}
.cu-head__lede {
  margin-top: 18px; max-width: 58ch; font-size: clamp(14.5px, 1.1vw, 16.5px); line-height: 1.65; color: var(--cu-ink-2);
}
.cu-head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }

/* split headline words (motion.js wraps each word) */
.cu-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.cu-w > span { display: inline-block; }

.cu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s;
}
.cu-btn--solid { background: var(--cu-ink); color: var(--cu-bg); }
.cu-btn--solid:hover { background: var(--cu-accent); color: var(--cu-accent-ink); }
.cu-btn--ghost { border-color: var(--cu-line-2); color: var(--cu-ink); }
.cu-btn--ghost:hover { border-color: var(--cu-ink); }
.cu-btn--wide { width: 100%; }
.cu-link {
  color: var(--cu-ink); font-weight: 600; background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px;
  transition: color .2s, background-size .3s var(--cu-ease);
}
.cu-link:hover { color: var(--cu-accent); }

.cu-dots { display: inline-flex; gap: 6px; }
.cu-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a40; display: block; }
.cu-dots i:nth-child(1) { background: #ff5f57; } .cu-dots i:nth-child(2) { background: #febc2e; } .cu-dots i:nth-child(3) { background: #28c840; }

.cu-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--cu-line-2); color: var(--cu-ink-2);
}
.cu-tag--prod { color: var(--cu-accent); border-color: color-mix(in srgb, var(--cu-accent) 45%, transparent); }
.cu-tag--exp { color: #e0b341; border-color: rgba(224, 179, 65, .45); }
body:not(.dark-mode) .cu-tag--exp { color: #8a6100; border-color: rgba(138, 97, 0, .4); }

/* syntax colours (code always sits on a dark surface) */
.t-k { color: #c792ea; } .t-s { color: #a5e3a1; } .t-f { color: #82aaff; } .t-c { color: #8b93a1; font-style: italic; }
.t-t { color: #ffcb6b; } .t-n { color: #f78c6c; } .t-p { color: #5ee08f; } .t-ok { color: #a5e3a1; } .t-live { color: #5ee08f; font-weight: 700; }

/* every section shares the page background and a hairline divider */
.cu-build, .cu-work, .cu-about, .cu-numbers, .cu-skills, .cu-lab, .cu-exp, .cu-services, .cu-blog, .cu-words, .cu-contact {
  position: relative; background: var(--cu-bg); color: var(--cu-ink);
  padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--cu-line);
  transition: background .4s ease, color .4s ease;
}

/* =============================================================================
   CUSTOM CURSOR — precise dot + trailing "<▌/>" terminal chip + code-glyph trail
   ============================================================================= */
.cu-cursor, .cu-trail { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor body,
  html.has-cursor body a, html.has-cursor body button, html.has-cursor body summary,
  html.has-cursor body label, html.has-cursor body [role="tab"], html.has-cursor body [data-cursor-text] { cursor: none; }
  html.has-cursor body input, html.has-cursor body textarea, html.has-cursor body select { cursor: auto; }

  .cu-cursor { display: block; position: fixed; left: 0; top: 0; z-index: 100000; pointer-events: none; }
  .cu-cursor__dot {
    position: fixed; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: #5ee08f; box-shadow: 0 0 0 2px rgba(10,10,12,.85), 0 0 12px rgba(94,224,143,.8);
    transition: width .25s var(--cu-ease), height .25s var(--cu-ease), margin .25s var(--cu-ease), border-radius .25s, opacity .2s;
    will-change: transform;
  }
  .cu-cursor__chip {
    position: fixed; left: 0; top: 0; display: inline-flex; align-items: center; gap: 1px;
    height: 26px; padding: 0 9px; border-radius: 8px;
    background: rgba(11,12,14,.92); border: 1px solid rgba(94,224,143,.4);
    box-shadow: 0 8px 22px -8px rgba(0,0,0,.6);
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; line-height: 1; color: #5ee08f; white-space: nowrap;
    transition: opacity .2s, border-color .25s, background .25s, padding .3s var(--cu-ease);
    will-change: transform;
  }
  .cu-cursor__br { color: #7d828c; transition: color .25s, margin .3s var(--cu-ease); }
  .cu-cursor__label { color: #eafff1; max-width: 0; overflow: hidden; transition: max-width .35s var(--cu-ease), margin .3s; }
  .cu-cursor__caret { display: inline-block; width: 7px; height: 14px; margin: 0 2px; background: #5ee08f; animation: cu-caret 1s steps(1) infinite; }
  @keyframes cu-caret { 50% { opacity: 0; } }

  /* over links / buttons: the chip becomes a tag like <visit /> */
  .cu-cursor.is-hover .cu-cursor__chip { background: #5ee08f; border-color: #5ee08f; padding: 0 11px; }
  .cu-cursor.is-hover .cu-cursor__br { color: #0b3d1e; }
  .cu-cursor.is-hover .cu-cursor__label { max-width: 90px; color: #052012; margin: 0 4px 0 1px; }
  .cu-cursor.is-hover .cu-cursor__caret { display: none; }
  .cu-cursor.is-hover .cu-cursor__dot { width: 12px; height: 12px; margin: -6px 0 0 -6px; }

  /* over headlines: an editor I-beam */
  .cu-cursor.is-text .cu-cursor__dot { width: 2px; height: 26px; margin: -13px 0 0 -1px; border-radius: 1px; }
  .cu-cursor.is-text .cu-cursor__chip { opacity: 0; }

  .cu-cursor.is-input .cu-cursor__dot, .cu-cursor.is-input .cu-cursor__chip,
  .cu-cursor.is-hidden .cu-cursor__dot, .cu-cursor.is-hidden .cu-cursor__chip { opacity: 0; }
  .cu-cursor.is-down .cu-cursor__dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
  .cu-cursor.is-down .cu-cursor__chip { border-color: #fff; }

  .cu-trail { display: block; position: fixed; inset: 0; z-index: 99999; pointer-events: none; overflow: hidden; }
  .cu-trail__g {
    position: absolute; left: -100px; top: -100px; font-family: var(--font-mono); font-size: 13px; font-weight: 700;
    color: var(--cu-accent); opacity: 0; transform: translate(-50%, -50%);
  }
  .cu-trail__g.is-on { animation: cu-glyph .7s ease-out forwards; }
  @keyframes cu-glyph {
    0% { opacity: .9; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.6) rotate(20deg); }
  }
}

/* =============================================================================
   TICKER
   ============================================================================= */
.cu-ticker { background: var(--cu-bg); border-top: 1px solid var(--cu-line); overflow: hidden; padding: 18px 0; }
.cu-ticker__track { display: flex; width: max-content; animation: cu-ticker 38s linear infinite; }
.cu-ticker__track span {
  font-family: var(--font-mono); font-size: 13px; color: var(--cu-ink-2); padding: 0 28px; white-space: nowrap; position: relative;
}
.cu-ticker__track span::after { content: '/'; position: absolute; right: -4px; color: var(--cu-accent); opacity: .7; }
@keyframes cu-ticker { to { transform: translateX(-50%); } }

/* =============================================================================
   HOW I BUILD — pinned code scene
   ============================================================================= */
.cu-build { padding: 0; }
.cu-build__pin {
  max-width: var(--cu-max); margin: 0 auto; padding: clamp(84px, 9vh, 110px) var(--cu-gut) clamp(48px, 6vh, 72px);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  min-height: 100vh;
}
.cu-build__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -0.035em; max-width: 20ch;
}
.cu-build__steps { margin-top: 28px; display: grid; gap: 6px; counter-reset: s; }
.cu-step {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--cu-line);
  opacity: .42; transition: opacity .45s var(--cu-ease);
}
.cu-step.is-active { opacity: 1; }
.cu-step__n { font-family: var(--font-mono); font-size: 12px; color: var(--cu-accent); padding-top: 4px; }
.cu-step h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.cu-step p { color: var(--cu-ink-2); font-size: 14px; line-height: 1.6; max-width: 46ch; }
.cu-build__note { margin-top: 26px; font-size: 14px; color: var(--cu-ink-3); max-width: 50ch; line-height: 1.6; }
.cu-build__note a { color: var(--cu-ink); text-decoration: underline; text-underline-offset: 3px; }

.cu-build__stage { position: relative; }
.cu-editor {
  background: var(--cu-code-bg); color: var(--cu-code-ink); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.2);
  transform-origin: center;
}
.cu-editor__bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #141518; border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: var(--font-mono); font-size: 12px;
}
.cu-editor__tab { color: #8e939c; padding: 4px 10px; border-radius: 6px; }
.cu-editor__tab.is-on { color: #e7e7e3; background: rgba(255,255,255,.06); }
.cu-editor__path { margin-left: auto; color: #4d5058; }
.cu-editor__body { padding: 18px 0 10px; overflow: hidden; }
.cu-code {
  font-family: var(--font-mono); font-size: clamp(12px, 1.02vw, 14.5px); line-height: 1.75; margin: 0; counter-reset: ln; white-space: normal; overflow: hidden;
}
.cu-code .ln { display: block; padding: 0 18px 0 0; position: relative; counter-increment: ln; white-space: pre; }
.cu-code .ln::before {
  content: counter(ln); display: inline-block; width: 46px; padding-right: 16px; text-align: right; color: #3b3e46;
}
.cu-code .ln.is-cur { background: rgba(255,255,255,.035); }
.cu-code .ln.is-cur::before { color: #9aa0aa; }
/* typing (chars are wrapped only when motion is on) */
html.cu-motion .cu-code .ch { opacity: 0; }
html.cu-motion .cu-code .ch.on { opacity: 1; }
.cu-code .ch.caret { position: relative; }
.cu-code .ch.caret::after {
  content: ''; position: absolute; right: -2px; top: 2px; bottom: 2px; width: 2px; background: #5ee08f; animation: cu-blink 1s steps(1) infinite;
}
@keyframes cu-blink { 50% { opacity: 0; } }

.cu-terminal {
  border-top: 1px solid rgba(255,255,255,.06); background: #0a0b0c; padding: 14px 18px; min-height: 172px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85; color: #a3a7af;
}
html.cu-motion .cu-term__line { opacity: 0; transform: translateY(6px); }
.cu-editor__status {
  display: flex; gap: 18px; padding: 6px 16px; background: #15803d; color: #eafff1;
  font-family: var(--font-mono); font-size: 11px;
}
.cu-editor__ok { margin-left: auto; }

.cu-feed {
  position: absolute; right: -26px; bottom: -26px; width: min(290px, 62%); display: grid; gap: 8px; z-index: 2;
}
.cu-feed__item {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px;
  background: var(--cu-card); border: 1px solid var(--cu-line-2);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.5);
  font-size: 13px; color: var(--cu-ink-2);
}
.cu-feed__item b { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--cu-ink); }
.cu-feed__item.is-done { border-color: color-mix(in srgb, var(--cu-accent) 60%, transparent); }
.cu-feed__item.is-done b { color: var(--cu-accent); }
html.cu-motion .cu-feed__item { opacity: 0; transform: translateX(30px); }

/* =============================================================================
   SELECTED WORK — sticky preview frame
   ============================================================================= */
.cu-work__grid {
  max-width: var(--cu-max); margin: 0 auto; padding: 0 var(--cu-gut);
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px);
}
.cu-case {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0;
  border-top: 1px solid var(--cu-line); opacity: .35; transition: opacity .5s var(--cu-ease);
}
.cu-case:first-child { border-top: 0; }
.cu-case.is-active { opacity: 1; }
.cu-case__thumb { display: none; }
.cu-case__n { font-family: var(--font-mono); font-size: 12px; color: var(--cu-ink-3); margin-bottom: 14px; }
.cu-case__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.035em; line-height: 1.05;
}
.cu-case__title a { color: inherit; transition: color .2s; }
.cu-case__title a:hover { color: var(--cu-accent); }
.cu-case__sum { margin-top: 12px; font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.45; font-weight: 600; max-width: 34ch; color: var(--cu-ink); }
.cu-case__body { margin-top: 12px; color: var(--cu-ink-2); line-height: 1.7; font-size: 14.5px; max-width: 52ch; }
.cu-case__stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.cu-case__stack li {
  font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--cu-line-2); color: var(--cu-ink-2);
}
.cu-case__meta { margin-top: 20px; font-size: 14px; color: var(--cu-ink-3); }

.cu-work__frame-wrap { position: relative; }
.cu-frame {
  position: sticky; top: max(90px, calc(50vh - 280px)); border-radius: 18px; overflow: hidden;
  background: var(--cu-code-bg); border: 1px solid var(--cu-line-2);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.6);
}
.cu-frame__bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #141518; border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: var(--font-mono); font-size: 12px; color: #9aa0aa;
}
.cu-frame__url {
  flex: 1; text-align: center; background: rgba(255,255,255,.05); border-radius: 8px; padding: 5px 12px; color: #c9ccd2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cu-frame__count b { color: #5ee08f; font-weight: 700; }
.cu-frame__view { position: relative; aspect-ratio: 16 / 10; background: #0b0c0e; overflow: hidden; }
.cu-media {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--cu-ease), opacity .4s, visibility 0s .8s;
}
.cu-media.is-active { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .8s var(--cu-ease), opacity .4s, visibility 0s; z-index: 2; }
.cu-media.is-leaving { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); z-index: 1; }
.cu-media img, .cu-media video, .cu-media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.cu-frame__progress { height: 3px; background: rgba(255,255,255,.06); }
.cu-frame__progress span { display: block; height: 100%; width: 14%; background: #5ee08f; transition: width .6s var(--cu-ease); }

/* SmartChase diagram */
.cu-ladder { position: absolute; inset: 0; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(94,224,143,.10), transparent 60%), #0b0c0e; color: #e7e7e3; }
.cu-ladder__row {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  font-size: clamp(14px, 1.2vw, 17px); animation: cu-ladder 8s infinite; animation-delay: calc(var(--d, 0) * 1s);
}
.cu-ladder__row:nth-child(1) { --d: 0; } .cu-ladder__row:nth-child(2) { --d: 1.6; } .cu-ladder__row:nth-child(3) { --d: 3.2; } .cu-ladder__row:nth-child(4) { --d: 4.8; }
.cu-ladder__row em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: #7d828c; }
.cu-ladder__dot { width: 10px; height: 10px; border-radius: 50%; background: #3a3d44; box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.cu-ladder__cap { font-family: var(--font-mono); font-size: 12px; color: #7d828c; margin-top: 6px; }
@keyframes cu-ladder {
  0%, 100% { border-color: rgba(255,255,255,.08); }
  6%, 18% { border-color: rgba(94,224,143,.7); background: rgba(94,224,143,.08); }
  24% { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
}
.cu-ladder__row { position: relative; }
.cu-ladder__row::after { content: ''; position: absolute; left: 21px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #5ee08f; opacity: 0; animation: cu-ladder-dot 8s infinite; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes cu-ladder-dot { 0%,100% { opacity: 0; } 6%, 18% { opacity: 1; } 24% { opacity: 0; } }

/* archive index */
.cu-index { max-width: var(--cu-max); margin: clamp(60px, 8vw, 120px) auto 0; padding: 0 var(--cu-gut); position: relative; }
.cu-index__title { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--cu-ink-3); margin-bottom: 18px; text-transform: lowercase; }
.cu-index__row { border-top: 1px solid var(--cu-line); }
.cu-index__row:last-child { border-bottom: 1px solid var(--cu-line); }
.cu-index__row > a, .cu-index__static {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 24px; align-items: baseline; padding: 26px 0;
  transition: padding .4s var(--cu-ease), color .2s;
}
.cu-index__row > a:hover { padding-left: 14px; }
.cu-index__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -0.03em; }
.cu-index__what { color: var(--cu-ink-2); font-size: 14.5px; line-height: 1.6; }
.cu-index__tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--cu-ink-3); white-space: nowrap; }
.cu-index__peek {
  position: fixed; left: 0; top: 0; width: 280px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; pointer-events: none; z-index: 50;
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .35s var(--cu-ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.cu-index__peek.is-on { opacity: 1; transform: scale(1); }
.cu-index__peek img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================================
   ABOUT — story on the left, a live "whoami" terminal on the right
   ============================================================================= */
.cu-about__grid, .cu-facts { max-width: var(--cu-max); margin-left: auto; margin-right: auto; padding: 0 var(--cu-gut); }
.cu-about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.cu-about__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.04em; max-width: 16ch; }
.cu-about__lead { margin: 24px 0 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; letter-spacing: -0.01em; color: var(--cu-ink); max-width: 46ch; }
.cu-about__text > p:not(.cu-kicker):not(.cu-about__lead) { color: var(--cu-ink-2); font-size: 15.5px; line-height: 1.75; margin-bottom: 14px; max-width: 58ch; }
.cu-about__text strong { color: var(--cu-ink); }
.cu-scrub .cu-sw { transition: color .3s linear; }
html.cu-motion .cu-scrub .cu-sw { color: color-mix(in srgb, var(--cu-ink) 28%, transparent); }
html.cu-motion .cu-scrub .cu-sw.on { color: var(--cu-ink); }
.cu-about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.cu-about__card-wrap { position: relative; perspective: 1200px; }
.cu-about__card-wrap::before {
  content: ''; position: absolute; inset: 8% 6% -6% 10%; border-radius: 30px; z-index: 0;
  background: radial-gradient(60% 60% at 60% 40%, var(--cu-accent-soft), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.cu-profile {
  --mx: 50%; --my: 50%;
  position: relative; z-index: 1; border-radius: 20px; overflow: hidden;
  background: var(--cu-code-bg); color: var(--cu-code-ink); border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.7);
  transform: rotateY(-6deg) rotateX(3deg); transition: transform .6s var(--cu-ease);
}
.cu-profile::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(94,224,143,.10), transparent 60%);
}
.cu-about__card-wrap:hover .cu-profile { transform: rotateY(0) rotateX(0); }
.cu-profile__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #141518; border-bottom: 1px solid rgba(255,255,255,.06); font-family: var(--font-mono); font-size: 12px; color: #7d828c; }
.cu-profile__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #5ee08f; }
.cu-profile__live i { width: 7px; height: 7px; border-radius: 50%; background: #5ee08f; box-shadow: 0 0 8px #5ee08f; }
.cu-profile__code { margin: 0; padding: 22px 24px 18px; font-family: var(--font-mono); font-size: clamp(12px, 1vw, 14px); line-height: 1.85; white-space: normal; }
.cu-profile__code .pl { display: block; white-space: pre; }
html.cu-motion .cu-profile__code .pl { opacity: 0; transform: translateX(-8px); }
.cu-profile__caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: #5ee08f; animation: cu-blink 1s steps(1) infinite; }
.cu-profile__orbit { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 24px 22px; }
.cu-profile__orbit span {
  font-family: var(--font-mono); font-size: 11px; padding: 5px 10px; border-radius: 999px; color: #c9ccd2;
  border: 1px solid rgba(255,255,255,.12); transition: border-color .3s, color .3s, transform .4s var(--cu-ease);
}
.cu-about__card-wrap:hover .cu-profile__orbit span { border-color: rgba(94,224,143,.5); color: #eafff1; }
.cu-about__card-wrap:hover .cu-profile__orbit span:nth-child(odd) { transform: translateY(-3px); }

.cu-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: clamp(56px, 7vw, 96px); }
.cu-facts > div { padding: 18px 18px 0 0; border-top: 1px solid var(--cu-line-2); position: relative; }
.cu-facts > div::before { content: ''; position: absolute; left: 0; top: -1px; width: 28px; height: 1px; background: var(--cu-accent); }
.cu-facts dt { font-family: var(--font-mono); font-size: 11.5px; color: var(--cu-ink-3); margin-bottom: 8px; }
.cu-facts dd { font-size: 14.5px; color: var(--cu-ink); line-height: 1.5; }

/* =============================================================================
   SPOTLIGHT CARDS (numbers, AI lab, reviews)
   One cursor light shared across a grid; borders glow near the pointer.
   ============================================================================= */
.cu-spot-grid {
  max-width: var(--cu-max); margin: 0 auto; padding: 0 var(--cu-gut);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.cu-spot {
  --mx: -500px; --my: -500px;
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--cu-r);
  background: var(--cu-card); border: 1px solid var(--cu-line);
  display: flex; flex-direction: column; gap: 10px; min-height: 240px;
}
/* inner light */
.cu-spot::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--cu-spot), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
/* glowing border ring */
.cu-spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--cu-accent) 85%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
[data-spotlight]:hover .cu-spot::after { opacity: 1; }
.cu-spot:hover::before { opacity: 1; }
.cu-spot--wide { grid-column: span 2; }

.cu-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 4.4vw, 68px); line-height: .9; letter-spacing: -0.06em; margin-top: auto; color: var(--cu-ink); font-variant-numeric: tabular-nums; }
.cu-num b { font-weight: 800; color: var(--cu-accent); }
.cu-spot__label { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.cu-spot__title { font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 23px); font-weight: 800; letter-spacing: -0.035em; margin-top: auto; }
.cu-spot__note { color: var(--cu-ink-2); font-size: 14px; line-height: 1.6; max-width: 44ch; }
.cu-spot .cu-tag { align-self: flex-start; margin-top: 6px; }
.cu-spot__vis { position: relative; height: 92px; margin-bottom: 8px; }

/* vis: users dot-matrix */
.cu-vis-users { display: grid; grid-template-columns: repeat(30, 1fr); gap: 5px; height: auto; align-content: start; }
.cu-vis-users i { aspect-ratio: 1; border-radius: 50%; background: var(--cu-line-2); transition: background .3s; }
.cu-vis-users i.on { background: var(--cu-accent); }
/* vis: before/after bars */
.cu-vis-bar { display: grid; gap: 10px; align-content: center; }
.cu-vis-bar span { position: relative; display: block; height: 22px; border-radius: 6px; background: var(--cu-line); overflow: hidden; }
.cu-vis-bar span::before { content: ''; position: absolute; inset: 0; transform-origin: left; background: var(--cu-ink-3); border-radius: 6px; }
.cu-vis-bar__after::before { background: var(--cu-accent) !important; transform: scaleX(var(--after, .6)); transition: transform 1.4s var(--cu-ease); }
.cu-vis-bar em { position: relative; z-index: 1; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--cu-bg); padding-left: 8px; line-height: 22px; }
/* vis: page load */
.cu-vis-load { display: flex; align-items: center; }
.cu-vis-load span { position: relative; width: 100%; height: 6px; border-radius: 99px; background: var(--cu-line); overflow: hidden; }
.cu-vis-load span::after { content: ''; position: absolute; inset: 0; background: var(--cu-accent); transform: translateX(-100%); animation: cu-load 2.4s var(--cu-ease) infinite; }
@keyframes cu-load { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(0); } }
/* vis: module chips */
.cu-vis-mods { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.cu-vis-mods span { font-family: var(--font-mono); font-size: 11px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--cu-line-2); color: var(--cu-ink-2); transition: transform .4s var(--cu-ease), border-color .3s, color .3s; }
.cu-spot:hover .cu-vis-mods span { border-color: color-mix(in srgb, var(--cu-accent) 60%, transparent); color: var(--cu-ink); }
.cu-spot:hover .cu-vis-mods span:nth-child(odd) { transform: translateY(-3px); }
/* vis: report sheets fan */
.cu-vis-sheets i {
  position: absolute; left: 0; top: 4px; width: 64px; height: 80px; border-radius: 6px; border: 1px solid var(--cu-line-2); background: var(--cu-bg-2);
  transition: transform .6s var(--cu-ease);
  background-image: linear-gradient(var(--cu-line-2) 0 0), linear-gradient(var(--cu-line-2) 0 0), linear-gradient(var(--cu-line-2) 0 0);
  background-size: 40px 3px, 30px 3px, 44px 3px; background-repeat: no-repeat; background-position: 10px 16px, 10px 26px, 10px 36px;
}
.cu-vis-sheets i:nth-child(1) { transform: translateX(0) rotate(-4deg); }
.cu-vis-sheets i:nth-child(2) { transform: translateX(14px) rotate(-1deg); }
.cu-vis-sheets i:nth-child(3) { transform: translateX(28px) rotate(2deg); }
.cu-vis-sheets i:nth-child(4) { transform: translateX(42px) rotate(5deg); border-color: color-mix(in srgb, var(--cu-accent) 60%, transparent); }
.cu-spot:hover .cu-vis-sheets i:nth-child(1) { transform: translateX(0) rotate(-10deg); }
.cu-spot:hover .cu-vis-sheets i:nth-child(2) { transform: translateX(40px) rotate(-3deg); }
.cu-spot:hover .cu-vis-sheets i:nth-child(3) { transform: translateX(80px) rotate(3deg); }
.cu-spot:hover .cu-vis-sheets i:nth-child(4) { transform: translateX(120px) rotate(9deg); }
/* vis: voice waveform */
.cu-vis-wave { display: flex; align-items: center; gap: 4px; }
.cu-vis-wave i { flex: 1; height: 86%; border-radius: 99px; background: var(--cu-accent); opacity: .8; transform: scaleY(.16); animation: cu-wave 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.09s); }
@keyframes cu-wave { 0%, 100% { transform: scaleY(.16); } 50% { transform: scaleY(1); } }
/* vis: escalation steps */
.cu-vis-steps { display: flex; align-items: center; gap: 0; }
.cu-vis-steps span {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 11px; padding: 8px 0; border: 1px solid var(--cu-line-2); color: var(--cu-ink-3);
  margin-left: -1px; animation: cu-steps 6s infinite; animation-delay: calc(var(--s, 0) * 1.2s);
}
.cu-vis-steps span:first-child { border-radius: 8px 0 0 8px; } .cu-vis-steps span:last-child { border-radius: 0 8px 8px 0; }
.cu-vis-steps span:nth-child(2) { --s: 1; } .cu-vis-steps span:nth-child(3) { --s: 2; } .cu-vis-steps span:nth-child(4) { --s: 3; }
@keyframes cu-steps { 0%, 100% { background: transparent; color: var(--cu-ink-3); } 4%, 18% { background: var(--cu-accent-soft); color: var(--cu-accent); } 24% { background: transparent; color: var(--cu-ink-3); } }
/* vis: toggles */
.cu-vis-toggles { display: grid; gap: 8px; align-content: center; }
.cu-vis-toggles span { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--cu-ink-2); }
.cu-vis-toggles i { position: relative; width: 30px; height: 17px; border-radius: 99px; background: var(--cu-line-2); flex: none; animation: cu-toggle-bg 5s infinite; animation-delay: calc(var(--t, 0) * 1s); }
.cu-vis-toggles i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--cu-bg); animation: cu-toggle 5s infinite; animation-delay: inherit; }
.cu-vis-toggles span:nth-child(2) i { --t: 1.2; } .cu-vis-toggles span:nth-child(3) i { --t: 2.4; }
@keyframes cu-toggle { 0%, 15% { transform: translateX(0); } 25%, 70% { transform: translateX(13px); } 80%, 100% { transform: translateX(0); } }
@keyframes cu-toggle-bg { 0%, 15% { background: var(--cu-line-2); } 25%, 70% { background: var(--cu-accent); } 80%, 100% { background: var(--cu-line-2); } }

/* numbers section layout */
.cu-numbers .cu-spot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cu-numbers .cu-spot--wide .cu-spot__vis { height: auto; }

/* =============================================================================
   SKILLS — editor with tabs
   ============================================================================= */
.cu-ide { max-width: var(--cu-max); margin: 0 auto; padding: 0 var(--cu-gut); }
.cu-ide__tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cu-line); overflow-x: auto; scrollbar-width: none; }
.cu-ide__tabs::-webkit-scrollbar { display: none; }
.cu-ide__tab {
  position: relative; font-family: var(--font-mono); font-size: 13.5px; color: var(--cu-ink-3); padding: 14px 18px; white-space: nowrap;
  border-radius: 10px 10px 0 0; transition: color .2s, background .2s;
}
.cu-ide__tab:hover { color: var(--cu-ink); }
.cu-ide__tab.is-on { color: var(--cu-ink); background: var(--cu-card); }
.cu-ide__tab.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cu-accent); }
.cu-ide__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 4vw, 56px) 0 0; }
.cu-ide__panel[hidden] { display: none; }
.cu-ide__explain h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(21px, 1.9vw, 28px); letter-spacing: -0.04em; margin-bottom: 12px; }
.cu-ide__explain > p { color: var(--cu-ink-2); font-size: 15.5px; line-height: 1.7; max-width: 52ch; margin-bottom: 18px; }
.cu-skill-sub { font-family: var(--font-mono); font-size: 12px !important; color: var(--cu-accent) !important; margin: 20px 0 4px !important; }
.cu-skill-list li {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; padding: 14px 10px; margin: 0 -10px;
  border-top: 1px solid var(--cu-line); border-radius: 8px; transition: background .2s;
}
.cu-skill-list li:hover, .cu-skill-list li.is-hot { background: var(--cu-accent-soft); }
.cu-skill-list b { font-weight: 600; font-size: 15px; }
.cu-skill-list span { color: var(--cu-ink-2); font-size: 14px; line-height: 1.55; }
.cu-ide__code {
  align-self: start; position: sticky; top: 110px;
  margin: 0; padding: 22px 0; border-radius: 14px; background: var(--cu-code-bg); color: var(--cu-code-ink);
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9; overflow-x: auto; border: 1px solid rgba(255,255,255,.06); white-space: normal;
}
.cu-ide__code .cl { display: block; padding: 0 22px; border-left: 2px solid transparent; transition: background .2s, border-color .2s; white-space: pre; }
.cu-ide__code .cl.is-hot { background: rgba(94,224,143,.10); border-left-color: #5ee08f; }

/* =============================================================================
   AI LAB
   ============================================================================= */
.cu-ship { margin-bottom: clamp(70px, 9vw, 130px); }
.cu-loop { max-width: var(--cu-max); margin: 0 auto; padding: 0 var(--cu-gut); position: relative; }
.cu-loop__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.cu-loop__title { font-family: var(--font-display); font-size: clamp(21px, 2vw, 28px); font-weight: 800; letter-spacing: -0.04em; }
.cu-loop__head p { color: var(--cu-ink-2); max-width: 40ch; font-size: 15px; line-height: 1.6; }
.cu-loop__body { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.cu-loop__monitor { position: relative; z-index: 2; }
.cu-loop__viewport { overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.cu-loop__track { display: flex; gap: 14px; width: max-content; will-change: transform; flex: 1; }
.cu-stage {
  flex: none; width: 300px; padding: 26px; border-radius: var(--cu-r); background: var(--cu-card); border: 1px solid var(--cu-line);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .4s, transform .5s var(--cu-ease);
}
.cu-stage.is-lit { border-color: color-mix(in srgb, var(--cu-accent) 55%, transparent); }
.cu-stage__n { font-family: var(--font-mono); font-size: 12px; color: var(--cu-accent); }
.cu-stage h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.cu-stage p { color: var(--cu-ink-2); font-size: 14px; line-height: 1.6; }
.cu-stage .cu-tag { margin-top: auto; align-self: flex-start; }
.cu-loop__rail { position: relative; height: 2px; background: var(--cu-line); margin-top: 28px; }
.cu-loop__rail span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--cu-accent); }
.cu-loop__rail i { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--cu-accent); box-shadow: 0 0 0 6px var(--cu-accent-soft), 0 0 22px var(--cu-accent); }

.cu-monitor {
  height: 100%; margin: 0; border-radius: var(--cu-r); padding: 20px; background: var(--cu-code-bg); color: #c9ccd2;
  border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 14px;
}
.cu-monitor__bar { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: #7d828c; }
.cu-monitor__bar b { color: #5ee08f; font-weight: 700; font-variant-numeric: tabular-nums; }
.cu-monitor__chart { width: 100%; height: 190px; overflow: visible; }
.cu-monitor__grid line { stroke: rgba(255,255,255,.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cu-loss { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.cu-loss--train { stroke: #5ee08f; }
.cu-loss--val { stroke: #e0b341; stroke-dasharray: 6 5; }
.cu-monitor__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 11.5px; }
.cu-monitor__legend .lg::before { content: ''; display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; }
.lg--train::before { background: #5ee08f; } .lg--val::before { background: #e0b341; }
.cu-monitor__legend em { flex-basis: 100%; font-style: normal; color: #8e939c; line-height: 1.55; font-family: var(--font-body); font-size: 12.5px; }
.cu-monitor__models { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.cu-monitor__models span { font-family: var(--font-mono); font-size: 11px; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.05); color: #c9ccd2; }

.cu-lab__cta {
  max-width: var(--cu-max); margin: clamp(60px, 8vw, 110px) auto 0; padding: 0 var(--cu-gut);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cu-lab__cta p { max-width: 54ch; color: var(--cu-ink-2); font-size: 16px; line-height: 1.65; }
.cu-lab__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================================================
   EXPERIENCE
   ============================================================================= */
.cu-exp__list { position: relative; max-width: var(--cu-max); margin: 0 auto; padding: 0 var(--cu-gut); }
.cu-ink { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.cu-ink__ghost { fill: none; stroke: var(--cu-line-2); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.cu-ink__line { fill: none; stroke: var(--cu-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cu-accent) 45%, transparent)); }
.cu-ink__pen { opacity: 0; transition: opacity .3s; }
.cu-ink.is-writing .cu-ink__pen { opacity: 1; }
.cu-ink__nib { fill: var(--cu-ink); }
.cu-ink__slit { stroke: var(--cu-bg); stroke-width: 1; }
.cu-ink__hole { fill: var(--cu-bg); }
.cu-ink__grip { fill: var(--cu-accent); }
.cu-job { z-index: 1; }
.cu-job { display: grid; grid-template-columns: 220px 1fr; gap: 0; padding: 0 0 clamp(36px, 5vw, 64px); position: relative; }
.cu-job__when { font-family: var(--font-mono); font-size: 13px; color: var(--cu-ink-3); padding: 6px 30px 0 0; }
.cu-job.is-current .cu-job__when { color: var(--cu-accent); }
.cu-job__body { padding-left: clamp(28px, 4vw, 56px); position: relative; }
.cu-job__body::before {
  content: ''; position: absolute; left: -5px; top: 11px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cu-bg); border: 1.5px solid var(--cu-ink-3); transition: background .3s, border-color .3s;
}
.cu-job.is-on .cu-job__body::before, .cu-job.is-current .cu-job__body::before { background: var(--cu-accent); border-color: var(--cu-accent); }
.cu-job h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -0.035em; line-height: 1.15; }
.cu-job h3 span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--cu-ink-2); margin-top: 6px; }
.cu-job ul { margin-top: 16px; display: grid; gap: 10px; max-width: 70ch; }
.cu-job li { position: relative; padding-left: 20px; color: var(--cu-ink-2); line-height: 1.65; font-size: 15px; }
.cu-job li::before { content: '→'; position: absolute; left: 0; color: var(--cu-accent); font-family: var(--font-mono); font-size: 13px; top: 1px; }

/* =============================================================================
   SERVICES — package cards ("npm i @cu/…"), animated border on the featured plan
   ============================================================================= */
@property --cu-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.cu-plans {
  max-width: var(--cu-max); margin: 0 auto; padding: 0 var(--cu-gut);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch;
  perspective: 1400px;
}
.cu-plan {
  --mx: -500px; --my: -500px;
  position: relative; border-radius: 20px; padding: 1px; isolation: isolate;
  background: var(--cu-line);
  transition: transform .5s var(--cu-ease);
}
.cu-plan::after { /* border glow that follows the pointer */
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx) var(--my), var(--cu-accent), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.cu-plans:hover .cu-plan::after { opacity: 1; }
.cu-plan:hover { transform: translateY(-8px); }
.cu-plan__inner {
  position: relative; height: 100%; border-radius: 19px; padding: 26px 24px 24px; overflow: hidden;
  background: var(--cu-card); display: flex; flex-direction: column; gap: 12px;
}
.cu-plan__inner::before { /* inner spotlight */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--cu-spot), transparent 60%);
}
.cu-plan__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cu-plan__pkg { font-family: var(--font-mono); font-size: 12px; color: var(--cu-ink-3); }
.cu-plan__badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--cu-accent); color: var(--cu-accent-ink); font-weight: 700;
}
.cu-plan__name { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: -0.03em; min-height: 2.3em; }
.cu-plan__desc { color: var(--cu-ink-2); font-size: 14px; line-height: 1.55; min-height: 4.6em; }
.cu-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; padding: 14px 0 12px; border-top: 1px dashed var(--cu-line-2); }
.cu-plan__amt { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 2.3vw, 32px); letter-spacing: -0.04em; color: var(--cu-ink); }
.cu-plan__rng { font-family: var(--font-mono); font-size: 12.5px; color: var(--cu-ink-3); }
.cu-plan__cmd {
  font-family: var(--font-mono); font-size: 12px; color: #c9ccd2; background: var(--cu-code-bg); border-radius: 10px;
  padding: 10px 12px; border: 1px solid rgba(255,255,255,.06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cu-plan__caret { display: inline-block; width: 6px; height: 12px; margin-left: 3px; vertical-align: -1px; background: #5ee08f; opacity: 0; }
.cu-plan:hover .cu-plan__caret { opacity: 1; animation: cu-blink 1s steps(1) infinite; }
.cu-plan__list { display: grid; gap: 8px; margin: 4px 0 6px; }
.cu-plan__list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--cu-ink-2); line-height: 1.45; transition: color .3s; }
.cu-plan__list li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 4px;
  border: 1px solid var(--cu-line-2); transition: background .3s, border-color .3s;
}
.cu-plan__list li::after {
  content: ''; position: absolute; left: 4px; top: 6px; width: 6px; height: 3px; border-left: 2px solid var(--cu-accent-ink); border-bottom: 2px solid var(--cu-accent-ink);
  transform: rotate(-45deg) scale(0); transition: transform .3s var(--cu-ease);
}
.cu-plan:hover .cu-plan__list li { color: var(--cu-ink); }
.cu-plan:hover .cu-plan__list li::before { background: var(--cu-accent); border-color: var(--cu-accent); }
.cu-plan:hover .cu-plan__list li::after { transform: rotate(-45deg) scale(1); }
.cu-plan:hover .cu-plan__list li:nth-child(1)::before, .cu-plan:hover .cu-plan__list li:nth-child(1)::after { transition-delay: .00s; }
.cu-plan:hover .cu-plan__list li:nth-child(2)::before, .cu-plan:hover .cu-plan__list li:nth-child(2)::after { transition-delay: .06s; }
.cu-plan:hover .cu-plan__list li:nth-child(3)::before, .cu-plan:hover .cu-plan__list li:nth-child(3)::after { transition-delay: .12s; }
.cu-plan:hover .cu-plan__list li:nth-child(4)::before, .cu-plan:hover .cu-plan__list li:nth-child(4)::after { transition-delay: .18s; }
.cu-plan:hover .cu-plan__list li:nth-child(5)::before, .cu-plan:hover .cu-plan__list li:nth-child(5)::after { transition-delay: .24s; }
.cu-plan:hover .cu-plan__list li:nth-child(6)::before, .cu-plan:hover .cu-plan__list li:nth-child(6)::after { transition-delay: .30s; }
.cu-plan__cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px;
  font-weight: 600; font-size: 14.5px; color: var(--cu-ink); border: 1px solid var(--cu-line-2);
  transition: background .25s, color .25s, border-color .25s;
}
.cu-plan__cta:hover { background: var(--cu-ink); color: var(--cu-bg); border-color: var(--cu-ink); }
.cu-plan__cta span { transition: transform .3s var(--cu-ease); }
.cu-plan__cta:hover span { transform: translateX(4px); }
/* featured plan: a light runs around the border */
.cu-plan--feature { background: conic-gradient(from var(--cu-ang), var(--cu-line-2), var(--cu-accent) 12%, var(--cu-line-2) 24%, var(--cu-line-2)); animation: cu-spin 5s linear infinite; }
.cu-plan--feature .cu-plan__cta { background: var(--cu-accent); color: var(--cu-accent-ink); border-color: var(--cu-accent); }
.cu-plan--feature .cu-plan__cta:hover { background: var(--cu-ink); color: var(--cu-bg); border-color: var(--cu-ink); }
@keyframes cu-spin { to { --cu-ang: 360deg; } }
.cu-plans__note { max-width: var(--cu-max); margin: 22px auto 0; padding: 0 var(--cu-gut); font-size: 13.5px; color: var(--cu-ink-3); }

/* process — four steps joined by an ink line that draws itself */
.cu-process-wrap { position: relative; max-width: var(--cu-max); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--cu-gut); }
.cu-process__ink { position: absolute; left: var(--cu-gut); right: var(--cu-gut); top: 0; width: calc(100% - 2 * var(--cu-gut)); height: 40px; overflow: visible; }
.cu-process__ink path { fill: none; stroke: var(--cu-accent); stroke-width: 3; stroke-linecap: round; }
.cu-process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 56px; }
.cu-process li { position: relative; }
.cu-process li::before {
  content: ''; position: absolute; left: 0; top: -43px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cu-bg); border: 2px solid var(--cu-accent); transition: background .4s, transform .4s var(--cu-ease);
}
.cu-process li.is-on::before { background: var(--cu-accent); transform: scale(1.2); }
.cu-process span { font-family: var(--font-mono); font-size: 12px; color: var(--cu-accent); }
.cu-process b { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; margin: 8px 0 6px; }
.cu-process p { color: var(--cu-ink-2); font-size: 14px; line-height: 1.6; max-width: 30ch; }

/* =============================================================================
   BLOG — writing band with code-glyph covers
   ============================================================================= */
.cu-posts-bar, .cu-posts, .cu-posts-empty { max-width: var(--cu-max); margin-left: auto; margin-right: auto; padding: 0 var(--cu-gut); }
.cu-posts-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cu-posts-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.cu-chip-btn {
  font-family: var(--font-mono); font-size: 12.5px; padding: 8px 14px; border-radius: 999px; color: var(--cu-ink-2);
  border: 1px solid var(--cu-line-2); background: transparent; transition: background .2s, color .2s, border-color .2s;
}
.cu-chip-btn:hover { color: var(--cu-ink); border-color: var(--cu-ink); }
.cu-chip-btn.active { background: var(--cu-ink); color: var(--cu-bg); border-color: var(--cu-ink); }
.cu-posts-all { font-family: var(--font-mono); font-size: 13px; color: var(--cu-ink); border-bottom: 1px solid var(--cu-line-2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.cu-posts-all:hover { color: var(--cu-accent); border-color: var(--cu-accent); }

.cu-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cu-post {
  --mx: -500px; --my: -500px;
  position: relative; isolation: isolate; border-radius: var(--cu-r); overflow: hidden;
  background: var(--cu-card); border: 1px solid var(--cu-line);
  transition: transform .5s var(--cu-ease), border-color .3s;
}
.cu-post[hidden] { display: none; }
.cu-post::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), var(--cu-spot), transparent 60%);
}
.cu-post:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--cu-accent) 45%, transparent); }
.cu-post__link { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; color: inherit; }
.cu-post__cover {
  position: relative; height: 150px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background-color: var(--cu-code-bg);
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px);
  background-size: 16px 16px; border-bottom: 1px solid var(--cu-line);
}
.cu-post__cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 80% 0%, var(--cov, rgba(94,224,143,.22)), transparent 70%);
  transition: opacity .4s; opacity: .8;
}
.cu-post__cover--ai { --cov: rgba(94,224,143,.28); }
.cu-post__cover--backend { --cov: rgba(130,170,255,.28); }
.cu-post__cover--perf { --cov: rgba(247,140,108,.28); }
.cu-post__cover--seo { --cov: rgba(255,203,107,.26); }
.cu-post__cover--web { --cov: rgba(199,146,234,.28); }
.cu-post__cover--ops { --cov: rgba(165,227,161,.26); }
.cu-post__glyph {
  position: relative; z-index: 1; font-family: var(--font-mono); font-weight: 700; font-size: clamp(20px, 2vw, 28px); color: #e7e7e3; letter-spacing: -0.02em;
  transition: transform .6s var(--cu-ease), letter-spacing .6s var(--cu-ease);
}
.cu-post__glyph::after { content: ''; display: inline-block; width: .5em; height: 1em; margin-left: 4px; vertical-align: -3px; background: #5ee08f; opacity: 0; }
.cu-post:hover .cu-post__glyph { transform: translateY(-4px) scale(1.06); letter-spacing: 0.02em; }
.cu-post:hover .cu-post__glyph::after { opacity: 1; animation: cu-blink 1s steps(1) infinite; }
.cu-post__num { position: absolute; left: 14px; top: 12px; z-index: 1; font-family: var(--font-mono); font-size: 11px; color: #7d828c; }
.cu-post__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cu-post__meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--cu-ink-3); }
.cu-post__cat { color: var(--cu-accent); }
.cu-post__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; color: var(--cu-ink); }
.cu-post__excerpt { color: var(--cu-ink-2); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cu-post__more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 14px; color: var(--cu-ink); }
.cu-post__more span { display: inline-block; transition: transform .35s var(--cu-ease); }
.cu-post:hover .cu-post__more { color: var(--cu-accent); }
.cu-post:hover .cu-post__more span { transform: translateX(5px); }
/* featured first post spans two columns and puts the cover beside the text */
.cu-post--feature { grid-column: span 2; }
.cu-post--feature .cu-post__link { flex-direction: row; }
.cu-post--feature .cu-post__cover { height: auto; width: 44%; flex: none; border-bottom: 0; border-right: 1px solid var(--cu-line); }
.cu-post--feature .cu-post__glyph { font-size: clamp(26px, 2.6vw, 38px); }
.cu-post--feature .cu-post__body { padding: 28px; justify-content: center; }
.cu-post--feature .cu-post__title { font-size: clamp(20px, 1.9vw, 26px); }
.cu-post--feature .cu-post__excerpt { -webkit-line-clamp: 4; font-size: 15px; }
.cu-posts-empty { margin-top: 16px; color: var(--cu-ink-2); }
.cu-posts-empty a { color: var(--cu-ink); text-decoration: underline; }

/* =============================================================================
   CLIENT WORDS — scroll-stacked spotlight cards
   ============================================================================= */
.cu-words__pin {
  max-width: var(--cu-max); margin: 0 auto; padding: 0 var(--cu-gut);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.cu-words__head .cu-head__title { font-size: clamp(30px, 3.8vw, 56px); }
.cu-words__dots { display: flex; gap: 8px; margin-top: 34px; }
.cu-words__dots i { width: 28px; height: 3px; border-radius: 3px; background: var(--cu-line-2); transition: background .3s, width .4s var(--cu-ease); }
.cu-words__dots i.on { background: var(--cu-accent); width: 46px; }
.cu-words__stack { position: relative; display: grid; gap: 14px; }
.cu-quote {
  --mx: -500px; --my: -500px;
  position: relative; isolation: isolate; overflow: hidden; margin: 0;
  padding: clamp(26px, 3vw, 42px); border-radius: 22px; background: var(--cu-card); border: 1px solid var(--cu-line);
  display: flex; flex-direction: column; gap: 22px; min-height: 300px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.55);
}
.cu-quote::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx) var(--my), var(--cu-spot), transparent 60%);
}
.cu-quote::after {
  content: '\201C'; position: absolute; right: 22px; top: -10px; z-index: -1;
  font-family: Georgia, serif; font-size: 220px; line-height: 1; color: var(--cu-accent); opacity: .12;
}
.cu-quote__top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--cu-ink-3); }
.cu-quote__site { color: var(--cu-accent); }
.cu-quote blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.38; letter-spacing: -0.02em; color: var(--cu-ink); }
.cu-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.cu-quote__av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cu-accent-soft); color: var(--cu-accent); font-family: var(--font-mono); font-weight: 700; font-size: 13px; flex: none; }
.cu-quote figcaption b { display: block; font-size: 15.5px; }
.cu-quote figcaption em { font-style: normal; color: var(--cu-ink-3); font-size: 13.5px; }
/* stacked mode (desktop + motion): all cards occupy one cell */
html.cu-motion .cu-words--stacked .cu-words__stack { display: grid; }
html.cu-motion .cu-words--stacked .cu-quote { grid-area: 1 / 1; will-change: transform; }

/* =============================================================================
   CONTACT
   ============================================================================= */
.cu-contact__grid { max-width: var(--cu-max); margin: 0 auto; padding: 0 var(--cu-gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); }
.cu-contact__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.8vw, 56px); line-height: 1.02; letter-spacing: -0.04em; max-width: 13ch; }
.cu-contact__lede { margin-top: 24px; color: var(--cu-ink-2); font-size: 16.5px; line-height: 1.7; max-width: 48ch; }
.cu-contact__direct { margin-top: 36px; }
.cu-contact__direct li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--cu-line); }
.cu-contact__direct li:last-child { border-bottom: 1px solid var(--cu-line); }
.cu-contact__direct span { font-family: var(--font-mono); font-size: 12px; color: var(--cu-ink-3); padding-top: 3px; }
.cu-contact__direct a { font-weight: 600; transition: color .2s; overflow-wrap: anywhere; }
.cu-contact__direct a:hover { color: var(--cu-accent); }
.cu-contact__avail { margin-top: 26px; display: flex; gap: 12px; align-items: center; color: var(--cu-ink-2); font-size: 14.5px; }
.cu-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--cu-accent); flex: none; }
.cu-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--cu-accent); animation: cu-pulse 2s ease-out infinite; }
@keyframes cu-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }

.cu-contact__form-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cu-form { padding: clamp(24px, 3vw, 40px); border-radius: 22px; background: var(--cu-card); border: 1px solid var(--cu-line); display: grid; gap: 18px; }
.cu-form__chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cu-form__chips legend { font-family: var(--font-mono); font-size: 12px; color: var(--cu-ink-3); margin-bottom: 12px; }
.cu-form__chips label { position: relative; }
.cu-form__chips input { position: absolute; opacity: 0; inset: 0; }
.cu-form__chips span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--cu-line-2); font-size: 14px; color: var(--cu-ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.cu-form__chips label:hover span { border-color: var(--cu-ink); color: var(--cu-ink); }
.cu-form__chips input:checked + span { background: var(--cu-ink); color: var(--cu-bg); border-color: var(--cu-ink); }
.cu-form__chips input:focus-visible + span { outline: 2px solid var(--cu-accent); outline-offset: 2px; }
.cu-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cu-field { display: grid; gap: 8px; }
.cu-field label { font-size: 13.5px; font-weight: 600; color: var(--cu-ink); }
.cu-field small { font-weight: 400; color: var(--cu-ink-3); }
.cu-field input, .cu-field select, .cu-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--cu-ink); background: var(--cu-bg); border: 1px solid var(--cu-line-2);
  border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.cu-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--cu-ink-3) 50%), linear-gradient(135deg, var(--cu-ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px;
}
.cu-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.cu-field input::placeholder, .cu-field textarea::placeholder { color: var(--cu-ink-3); }
.cu-field input:focus, .cu-field select:focus, .cu-field textarea:focus { outline: none; border-color: var(--cu-accent); box-shadow: 0 0 0 4px var(--cu-accent-soft); }
.cu-form__fine { font-size: 13px; color: var(--cu-ink-3); line-height: 1.6; }
.cu-form__fine a { color: var(--cu-ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================================
   FOOTER (big sign-off on top of the existing footer)
   ============================================================================= */
.cu-footer { position: relative; overflow: hidden; }
.cu-footer__big {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(52px, 10vw, 160px); line-height: .9; letter-spacing: -0.06em;
  color: var(--cu-ink, #fafafa); opacity: .92; margin: 0 0 clamp(40px, 6vw, 80px); white-space: nowrap;
}
.cu-footer__big span { color: var(--cu-accent); animation: cu-blink 1.1s steps(1) infinite; }
body.dark-mode .cu-footer { background: var(--cu-bg); border-top: 1px solid var(--cu-line); }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1100px) {
  .cu-spot-grid, .cu-numbers .cu-spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-numbers .cu-spot--wide { grid-column: span 2; }
  .cu-ship .cu-spot:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .cu-build__pin { grid-template-columns: 1fr; min-height: 0; }
  .cu-feed { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 14px; grid-template-columns: 1fr 1fr; }

  .cu-work__grid { grid-template-columns: 1fr; }
  .cu-work__frame-wrap { display: none; }
  .cu-case { min-height: 0; opacity: 1; padding: 40px 0; }
  .cu-case__thumb, .cu-case picture .cu-case__thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--cu-line); margin-bottom: 22px; }
  .cu-case__thumb--ladder {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 18px; background: var(--cu-code-bg); color: #c9ccd2;
    font-family: var(--font-mono); font-size: 12px;
  }
  .cu-case__thumb--ladder i { flex: 1; height: 1px; background: #5ee08f; opacity: .6; }
  .cu-index__row > a, .cu-index__static { grid-template-columns: 1fr; gap: 6px; }
  .cu-index__peek { display: none; }

  .cu-about__grid, .cu-ide__panel, .cu-contact__grid, .cu-words__pin { grid-template-columns: 1fr; }
  .cu-profile { transform: none; }
  .cu-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .cu-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-post--feature .cu-post__link { flex-direction: column; }
  .cu-post--feature .cu-post__cover { width: auto; height: 170px; border-right: 0; border-bottom: 1px solid var(--cu-line); }
  .cu-ide__code { position: relative; top: 0; }

  .cu-loop__body { grid-template-columns: 1fr; }
  .cu-loop__viewport { overflow: visible; }
  .cu-loop__track { flex-direction: column; width: auto; }
  .cu-loop__monitor, .cu-stage { width: auto; }
  .cu-loop__rail { display: none; }
  .cu-loop__head { flex-direction: column; align-items: start; }

  .cu-job { grid-template-columns: 1fr; padding-left: 28px; }
  .cu-job__body { padding-left: 0; }
  .cu-job__body::before { left: -33px; }
  .cu-job__when { padding: 0 0 8px; }

  .cu-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-process__ink { display: none; }
  .cu-process { grid-template-columns: 1fr 1fr; row-gap: 30px; padding-top: 0; }
  .cu-process li { padding-left: 26px; }
  .cu-process li::before { top: 2px; }
}
@media (max-width: 640px) {
  .cu-spot-grid, .cu-numbers .cu-spot-grid { grid-template-columns: 1fr; }
  .cu-numbers .cu-spot--wide, .cu-ship .cu-spot:last-child { grid-column: auto; }
  .cu-vis-users { grid-template-columns: repeat(20, 1fr); }
  .cu-vis-users i:nth-child(n+81) { display: none; }
  .cu-form__row { grid-template-columns: 1fr; }
  .cu-feed { grid-template-columns: 1fr; }
  .cu-process { grid-template-columns: 1fr; }
  .cu-contact__direct li { grid-template-columns: 1fr; gap: 4px; }
  .cu-facts { grid-template-columns: 1fr; }
  .cu-posts { grid-template-columns: 1fr; }
  .cu-post--feature { grid-column: auto; }
  .cu-skill-list li { grid-template-columns: 1fr; gap: 4px; }
  .cu-head--row { flex-direction: column; align-items: start; }
  .cu-editor__path { display: none; }
  .cu-editor__body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cu-code { font-size: 11px; }
  .cu-code .ln::before { width: 34px; padding-right: 10px; }
  .cu-footer__big { font-size: 15vw; }
  .cu-plans { grid-template-columns: 1fr; }
  .cu-plan__name, .cu-plan__desc { min-height: 0; }
  .cu-quote { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cu-ticker__track, .cu-ladder__row, .cu-ladder__row::after, .cu-vis-wave i, .cu-vis-steps span,
  .cu-vis-toggles i, .cu-vis-toggles i::after, .cu-vis-load span::after, .cu-pulse, .cu-pulse::after, .cu-plan--feature, .cu-footer__big span { animation: none !important; }
  .cu-media { transition: none; }
}
html:not(.cu-motion) .cu-step { opacity: 1; }

/* Decorative CSS loops only run while their section is on screen (motion.js adds .cu-live) */
[data-anim]:not(.cu-live) *, [data-anim]:not(.cu-live) *::before, [data-anim]:not(.cu-live) *::after { animation-play-state: paused !important; }

/* darkening layer used when quote cards stack (cheaper than animating filter) */
.cu-quote__shade { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; border-radius: inherit; }

/* GSAP ScrollTrigger measures positions by jumping the scroll; CSS smooth scrolling turns
   those jumps into animations and leaves pinned sections mis-measured (blank gaps when you
   scroll back up). In-page links still scroll smoothly via script.js. */
html.js { scroll-behavior: auto !important; }

/* Without motion (no JS, GSAP blocked, or reduced motion): a plain drawn rail instead of the pen */
html:not(.cu-motion) .cu-ink { display: none; }
html:not(.cu-motion) .cu-exp__list::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--cu-accent);
  left: calc(var(--cu-gut) + 220px - 1px);
}
html:not(.cu-motion) .cu-job__body::before { background: var(--cu-accent); border-color: var(--cu-accent); }
@media (max-width: 900px) { html:not(.cu-motion) .cu-exp__list::before { left: calc(var(--cu-gut) - 1px); } }

/* footer: readable contrast + h3 column titles (keeps a valid heading order) */
.cu-footer .footer-tagline, .cu-footer .footer-col a, .cu-footer .footer-col span, .cu-footer .footer-bottom, .cu-footer .footer-bottom a { color: var(--cu-ink-2) !important; opacity: 1 !important; }
.cu-footer .footer-col a:hover, .cu-footer .footer-bottom a:hover { color: var(--cu-ink) !important; }
.cu-footer .footer-col .footer-h {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cu-ink) !important; margin-bottom: 14px;
}
