/* ========== Hero (split layout) ========== */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Top-right version pill */
.hero-version {
  position: absolute;
  top: 24px; right: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff04;
  z-index: 3;
}
.hero-version .hv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Bottom-center scroll cue */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--ink-faint);
  z-index: 2;
}
.hero-scroll .hs-line {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, transparent, var(--ink-faint));
  animation: hsPulse 1.6s ease-in-out infinite;
}
@keyframes hsPulse {
  0%, 100% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
  50%      { opacity: 1;  transform: scaleY(1);   transform-origin: top; }
}

/* Two-column split — title/copy left, terminal right */
.hero-split {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-split > * { min-width: 0; }

/* LEFT column */
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 5.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}
.hero-title .ht-line {
  display: block;
  /* override the global em VCR rule — we want clean display type here */
}
.hero-title .ht-green {
  color: var(--green);
  /* subtle phosphor lift so the green line sits forward */
  text-shadow: 0 0 30px #3eff9a22;
}
.hero-title .ht-caret {
  display: inline-block;
  width: 0.5em;
  height: 0.82em;
  margin-left: 0.06em;
  vertical-align: -0.06em;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-dim);
  animation: htCaret 1.04s steps(2, end) infinite;
}
@keyframes htCaret {
  0%, 55%   { opacity: 1; }
  56%, 100% { opacity: 0.15; }
}

.hero-body {
  margin: 38px 0 0;
  max-width: 520px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-dim);
}
.hero-body-em {
  color: var(--ink);
  /* opt out of the global VCR styling for inline emphasis here */
  font-family: var(--font-display);
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.hero-btn:hover {
  color: var(--ink);
  border-color: #ece4d040;
  background: #ffffff06;
  transform: translateY(-1px);
}
.hero-btn.primary {
  color: var(--green);
  border-color: var(--green);
  background: #3eff9a0a;
}
.hero-btn.primary:hover {
  background: #3eff9a18;
  border-color: var(--green);
}
.hero-btn .hb-arrow {
  display: inline-block;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.hero-btn:hover .hb-arrow { transform: translateX(4px); }

/* RIGHT column — terminal sized to fit */
.hero-right {
  position: relative;
  width: 100%;
}
.hero-right .terminal {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
}
.hero-tagstamp {
  position: absolute;
  bottom: -42px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff04;
}

@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; gap: 56px; }
  .hero-right .terminal { max-width: 100%; }
  .hero-tagstamp { position: static; display: inline-block; margin-top: 16px; }
  .hero-scroll { display: none; }
}
@media (max-width: 760px) {
  .hero { padding-top: 96px; }
  .terminal { max-width: 100%; }
  .term-body { font-size: 12px; padding: 16px; }
}

/* terminal */
.terminal {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #0e1219cc, #080a10cc);
  border: 1px solid var(--line-strong);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff08, transparent);
}
.tl { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }
.term-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-left: 12px;
}
.term-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.term-body {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  padding: 22px 26px 28px;
  color: var(--ink);
  min-height: 280px;
}
.term-line { margin-bottom: 6px; display: block; }
.term-cmd {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.term-prompt { color: var(--ink-faint); white-space: nowrap; flex-shrink: 0; }
.term-prompt .arrow { color: var(--green); margin-left: 6px; }
.term-text { color: var(--ink); white-space: nowrap; }
/* Kill VCR flicker styling for any em/strong inside the terminal — it bleeds
   into other rows via text-shadow + breaks the monospace grid. */
.terminal em, .terminal strong, .terminal b,
.term-body em, .term-body strong, .term-body b,
.term-out em, .term-out strong, .term-out b {
  font-family: var(--font-mono) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  animation: none !important;
  color: inherit !important;
}
.caret {
  display: inline-block;
  width: 8px; height: 16px;
  margin-left: 2px;
  background: var(--green);
  vertical-align: middle;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.term-out {
  padding: 4px 0 6px 14px;
  color: var(--ink-dim);
  border-left: 1px solid var(--line);
  margin-left: 4px;
}
.term-out .comment { color: var(--ink-faint); font-style: italic; }
.term-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 4px 4px;
}
.term-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--green-dim);
  color: var(--green);
  background: #3eff9a0d;
  animation: chipIn .4s cubic-bezier(.16,1,.3,1) backwards;
}
@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* keep .green-text + .dot-sep utilities — still used elsewhere */
.green-text { color: var(--green); }
.dot-sep {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* ========== About ========== */
.about {
  margin-top: 220px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: stretch;
}
/* Grid tracks default to `min-width: auto` (min-content), so a long heading
   or url-like word in either column blows the track open and collides
   with its neighbor. Forcing 0 lets `fr` actually shrink the columns. */
.about > * { min-width: 0; }
.about-body { overflow-wrap: break-word; }
.about .pic {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #ece4d010 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #1a1d24, #0a0c11);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
}
.about .pic .placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-align: center;
  padding: 16px;
}
.about .pic .frame-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--ink-faint);
}
.about .pic .frame-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.about .pic .frame-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.about .pic .frame-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.about .pic .frame-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.about-body p {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-dim);
  /* Heading uses bg-clip:text + tight 1.05 line-height, which together with
     the VT323 em glyphs leaves no room before the first paragraph.
     Push the paragraph down so it never crowds the heading. */
  margin: 44px 0 0;
}
.about-body p + p { margin-top: 24px; }
.about-body .section-title { line-height: 1.15; }
.about-body p em { font-style: italic; }
.about-stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.about-stats .stat .n {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.about-stats .stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 36px; margin-top: 140px; }
  .about .pic { max-width: 320px; }
}

/* About card replacing portrait */
.about-card {
  position: relative;
  margin-top: 18px;          /* breathing room between the eyebrow and the card */
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff08, #ffffff02);
  backdrop-filter: blur(14px);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  min-height: 380px;
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(360px 200px at 80% 0%, #3eff9a14, transparent 60%),
    repeating-linear-gradient(135deg, #ece4d008 0 12px, transparent 12px 24px);
  pointer-events: none;
}
.about-card .ac-tag {
  position: relative;
  font-family: var(--font-vcr);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.about-card .ac-big {
  position: relative;
  font-family: var(--font-vcr);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.86;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 0 18px #ece4d022;
  font-weight: 400;
}
.about-card .ac-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
}
.about-card .ac-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 6px;
}
.about-card .ac-meta span { color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.about-card .ac-meta b { color: var(--ink); font-weight: 500; }
.about-card .ac-resume {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-vcr);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background .25s, color .25s, transform .35s cubic-bezier(.16,1,.3,1);
}
.about-card .ac-resume:hover { background: var(--green); border-color: var(--green); transform: translateY(-2px); }
.about-card .ac-resume-meta { font-family: var(--font-mono); font-size: 10px; opacity: .7; letter-spacing: 0.06em; }
.tech {
  margin-top: 220px;
}
.tech-stage {
  position: relative;
  margin-top: 60px;
  height: 560px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 50% 50%, #ece4d008, transparent 70%),
    linear-gradient(180deg, #0a0c11, #07080c);
}
.tech-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 30%, black 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 30%, black 70%);
  pointer-events: none;
}
/* the box that shakes & blasts */
.tech-box {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  perspective: 800px;
  transition: opacity .4s, transform .55s;
  z-index: 2;
}
.tech-box .cube { width: 140px; height: 140px; }
.tech-box .cube-face { width: 140px; height: 140px; border-color: var(--ink-faint); background: linear-gradient(180deg, #ffffff08, #ffffff03); box-shadow: 0 0 30px #ece4d010 inset; }
.tech-box .cube-face .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 56px;
  display: block;
}
.tech-box .f-front  { transform: translateZ(70px); }
.tech-box .f-back   { transform: rotateY(180deg) translateZ(70px); }
.tech-box .f-right  { transform: rotateY(90deg) translateZ(70px); }
.tech-box .f-left   { transform: rotateY(-90deg) translateZ(70px); }
.tech-box .f-top    { transform: rotateX(90deg) translateZ(70px); }
.tech-box .f-bottom { transform: rotateX(-90deg) translateZ(70px); }

.tech-stage.armed .tech-box .cube {
  animation: cubeIdleBig 8s linear infinite;
}
.tech-stage.shake .tech-box {
  animation: stageShake .12s linear 6;
}
.tech-stage.blast .tech-box {
  opacity: 0;
  transform: translate(-50%, -50%) scale(2);
  filter: blur(10px);
}
@keyframes cubeIdleBig {
  0%   { transform: rotateX(-18deg) rotateY(0deg); }
  100% { transform: rotateX(-18deg) rotateY(360deg); }
}
@keyframes stageShake {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(calc(-50% + 4px), calc(-50% - 2px)); }
  75% { transform: translate(calc(-50% - 4px), calc(-50% + 2px)); }
}

.tech-prompt {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  transition: opacity .3s;
}
.tech-stage.blast .tech-prompt { opacity: 0; }
.tech-prompt .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}

/* the floating tech icons after blast */
.tech-icon {
  position: absolute;
  left: 50%; top: 50%;
  width: 84px; height: 84px;
  margin-left: -42px; margin-top: -42px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff08, #ffffff02);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  cursor: none;
  opacity: 0;
  transform: translate(0, 0) scale(0.4);
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .5s;
  pointer-events: auto;
  z-index: 3;
}
.tech-icon .glyph {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-family: var(--font-display);
}
.tech-icon .name {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tech-stage.blast .tech-icon {
  opacity: 1;
  transform: translate(var(--tx), var(--ty)) scale(1);
}
.tech-icon:hover {
  transform: translate(var(--tx), var(--ty)) scale(1.6) !important;
  border-color: var(--green-dim);
  background: #3eff9a10;
  z-index: 8;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .2s;
}
.tech-icon:hover .glyph { color: var(--green); }
.tech-icon:hover .name { color: var(--ink); }

/* gentle float animation on idle */
.tech-stage.blast .tech-icon {
  animation: techFloat 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}
@keyframes techFloat {
  0%, 100% { transform: translate(var(--tx), var(--ty)) scale(1); }
  50%      { transform: translate(calc(var(--tx) + 6px), calc(var(--ty) - 8px)) scale(1); }
}

.tech-replay {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff05;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity .3s, color .2s, border-color .2s;
}
.tech-stage.blast .tech-replay { opacity: 1; }
.tech-replay:hover { color: var(--ink); border-color: #ece4d040; }

/* ========== Projects (carousel: rail + single window) ========== */
.projects { margin-top: 220px; }

.proj-stage {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 600px;
  height: 600px;
  gap: 32px;
  align-items: stretch;
  overflow: hidden;
}
.proj-stage > * { min-width: 0; }

/* LEFT — sidebar archive list */
.proj-rail {
  /* Stretches to match the project window height. Use flex so the footer
     can push to the bottom via margin-top:auto. */
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff05, #ffffff01);
}
.pr-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.pr-label { color: var(--green); }

.pr-list {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pr-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num title"
    "num em";
  column-gap: 12px;
  row-gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, color .2s;
  /* indicator strip on the left edge */
  border-left: 2px solid transparent;
}
.pr-item:hover { background: #ffffff06; }
.pr-item.on {
  background: #ffffff09;
  border-left-color: var(--green);
}
.pr-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  align-self: center;
}
.pr-item.on .pr-num { color: var(--green); }
.pr-title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: -0.01em;
}
.pr-item.on .pr-title { color: var(--ink); }
.pr-em {
  grid-area: em;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* timer bar pinned to the bottom of the active item */
.pr-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: #ece4d010;
  border-radius: 2px;
  overflow: hidden;
}
.pr-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--green), #3eff9a88);
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 6px var(--green-dim);
}

.pr-foot {
  margin-top: auto;       /* push to the bottom of the stretched rail */
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.pr-state { display: inline-flex; align-items: center; gap: 8px; }
.pr-state-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: prPulse 1.6s ease-in-out infinite;
}
.pr-state.paused .pr-state-dot {
  background: var(--ink-faint);
  box-shadow: none;
  animation: none;
}
@keyframes prPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(.7);  opacity: .5; }
}

/* RIGHT — single project window. Keyed on active so the card remounts +
   replays its entry animation each rotation. */
.proj-window {
  height: 100%;
  animation: projIn .5s cubic-bezier(.22, 1, .36, 1) both;
  will-change: opacity, transform;
}
@keyframes projIn {
  from { opacity: 0; transform: translate3d(18px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .proj-window { animation: projFade .3s ease both; }
  @keyframes projFade { from { opacity: 0; } to { opacity: 1; } }
}

/* The visible card — stacked: visual on top (horizontal banner),
   info beneath. Fills the stage height so it matches the rail. */
.project-card.live {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(900px 500px at 100% 0%, #ece4d006, transparent 50%),
    linear-gradient(180deg, #0e1219, #08090d);
}
/* Stack order: info (title/desc/actions/chips) on top → visual banner below.
   Actions sit BELOW the description, inside the info block. */
.project-card.live .info {
  padding: 32px 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* take the space above the pinned banner; clip rather than push the card
     taller if a description ever runs long */
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.project-card.live .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
/* Visual sits below the info as a horizontal banner. */
.project-card.live .visual {
  position: relative;
  width: 100%;
  height: 280px;
  flex: 0 0 auto;
  margin-top: auto;          /* pin banner to the bottom of the card */
  border-top: 1px solid var(--line);
  background: radial-gradient(closest-side, #0e1219, #07080c);
  overflow: hidden;
}
.project-card.live .visual .vmount { position: absolute; inset: 0; }
.project-card.live .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.15em;
}
.project-card.live h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
}
.project-card.live h3 em { font-style: italic; font-weight: 400; }
.project-card.live .desc {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 64ch;
}
.project-card.live .stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

@media (max-width: 980px) {
  .projects { margin-top: 120px; }
  .proj-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 8px;
    height: auto;
    align-items: start;
    margin-top: 56px;
    overflow: visible;
  }
  .proj-rail { height: auto; }
  .proj-window { height: 520px; }
  .project-card.live { height: 520px; }
  .project-card.live .info { overflow: hidden; }
  .project-card.live .visual { height: 200px; flex-shrink: 0; }
  .project-card.live .info { padding: 24px; }
  .project-card.live h3 { font-size: 24px; }
}
@media (max-width: 640px) {
  /* Rail becomes a horizontal scrollable tab strip */
  .proj-rail {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 10px;
    gap: 0;
    border-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
  }
  .proj-rail::-webkit-scrollbar { display: none; }
  .pr-head, .pr-foot { display: none; }
  .pr-list { flex-direction: row; gap: 4px; padding: 0; flex: 1; }
  .pr-item {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-areas: unset;
    gap: 2px;
    padding: 8px 14px;
    white-space: nowrap;
    border-radius: 8px;
    min-width: fit-content;
  }
  .pr-num { display: none; }
  .pr-em { display: none; }
  .pr-bar { display: none; }
  .pr-title { font-size: 13px; }
  .project-card.live .visual { height: 180px; }
  .project-card.live h3 { font-size: 20px; }
  .project-card.live .info { padding: 18px; gap: 12px; }
  .project-card.live .desc { font-size: 14px; }
}

/* visuals — Cipher Safe (lock + bars) */
.v-cipher {
  background:
    radial-gradient(400px 200px at 80% 50%, #3eff9a18, transparent 70%),
    linear-gradient(180deg, #0e1117, #07080c);
}
.v-cipher .key-rows {
  position: absolute;
  inset: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.v-cipher .key-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff04;
}
.v-cipher .key-row .label { color: var(--ink-faint); width: 60px; }
.v-cipher .key-row .val { color: var(--ink); flex: 1; letter-spacing: 0.12em; }
.v-cipher .key-row .lock { color: var(--green); }

/* visuals — OCR/Attendance */
.v-ocr {
  background:
    repeating-linear-gradient(0deg, #ece4d008 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #0e1117, #07080c);
}
.v-ocr .scan {
  position: absolute;
  inset: 30px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #00000040;
}
.v-ocr .row {
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ece4d030, transparent);
}
.v-ocr .row.short { width: 40%; }
.v-ocr .row.med   { width: 70%; }
.v-ocr .laser {
  position: absolute;
  left: 30px; right: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 12px var(--green);
  animation: laser 3s ease-in-out infinite;
}
@keyframes laser {
  0%, 100% { top: 60px; opacity: 0.9; }
  50%      { top: 240px; opacity: 1; }
}
.v-ocr .stamp {
  position: absolute;
  bottom: 24px; right: 24px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--green);
  padding: 4px 8px;
  border: 1px solid var(--green-dim);
  border-radius: 6px;
}

/* visuals — OpenClaw (network) */
.v-claw {
  background: linear-gradient(180deg, #0e1117, #07080c);
}
.v-claw svg { width: 100%; height: 100%; }

/* visuals — Face recog */
.v-face {
  background: linear-gradient(180deg, #0e1117, #07080c);
}
.v-face .face-grid {
  position: absolute;
  inset: 30px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, #ece4d018, transparent 60%),
    repeating-linear-gradient(0deg, #ece4d010 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, #ece4d010 0 1px, transparent 1px 16px);
  border: 1px solid var(--line-strong);
}
.v-face .bracket {
  position: absolute;
  width: 90px; height: 110px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 0 22px var(--green-dim);
}
.v-face .bracket::before, .v-face .bracket::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
}
.v-face .bracket::before { top: -1px; left: -1px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); }
.v-face .bracket::after  { bottom: -1px; right: -1px; border-bottom: 2px solid var(--green); border-right: 2px solid var(--green); }
.v-face .fps {
  position: absolute;
  bottom: 20px; left: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.08em;
}

/* ========== Experience ========== */
.experience { margin-top: 220px; }
/* ========== Experience (zigzag timeline) ========== */
.experience { margin-top: 220px; }

.zigzag {
  position: relative;
  margin-top: 60px;
  padding: 20px 0 40px;
}
/* central vertical spine */
.tl-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--green-dim) 8%, var(--green-dim) 92%, transparent 100%);
  transform: translateX(-50%);
  box-shadow: 0 0 12px #3eff9a22;
}

.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-bottom: 56px;
  min-height: 80px;
}
.tl-row:last-child { margin-bottom: 0; }

/* the dot sits ON the spine, centered horizontally on the row */
.tl-dot {
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translate(-50%, 0);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #6fd1ff;
  box-shadow:
    0 0 8px #6fd1ff,
    0 0 18px #6fd1ff66,
    0 0 0 4px #07080c;     /* knockout so the spine doesn't show through */
  z-index: 2;
}
.tl-row.now .tl-dot {
  background: var(--green);
  box-shadow:
    0 0 10px var(--green),
    0 0 22px var(--green-dim),
    0 0 0 4px #07080c;
  animation: tlNow 1.8s ease-in-out infinite;
}
@keyframes tlNow {
  0%, 100% { transform: translate(-50%, 0) scale(1);   }
  50%      { transform: translate(-50%, 0) scale(1.25);}
}

/* alternate side: card sits in the left column for `.left`, right for `.right` */
.tl-row.left  .tl-card { grid-column: 1; margin-right: 56px; }
.tl-row.right .tl-card { grid-column: 2; margin-left: 56px; }

.tl-card {
  position: relative;
  padding: 22px 24px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at 100% 0%, #ece4d006, transparent 60%),
    linear-gradient(180deg, #0e1219cc, #08090dcc);
  transition: border-color .35s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.tl-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -18px #00000080, 0 0 0 1px #ece4d014;
}
.tl-row.now .tl-card {
  border-color: #3eff9a40;
  box-shadow: 0 0 0 1px #3eff9a25, 0 18px 50px -22px #3eff9a30;
}

/* small connector line from card → spine so the eye links them */
.tl-card::before {
  content: "";
  position: absolute;
  top: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
  width: 56px;
}
.tl-row.left  .tl-card::before { right: -56px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.tl-row.right .tl-card::before { left:  -56px; }

.tlc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.tlc-head .tlc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.tlc-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6fd1ff;
  white-space: nowrap;
}
.tl-row.now .tlc-date { color: var(--green); }
.tlc-cal { stroke: currentColor; opacity: .9; }

/* Sub-row: building icon + org | mode */
.tlc-sub {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}
.tlc-org-icon { stroke: var(--ink-faint); flex-shrink: 0; }
.tlc-org { color: var(--ink); }
.tlc-bar { color: var(--ink-faint); opacity: .6; }
.tlc-mode { color: var(--ink-dim); }

.tlc-desc {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
}

.tlc-bullets {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tlc-bullets li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.tlc-bullet-mark {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  text-shadow: 0 0 6px var(--green-dim);
}

.tlc-tech {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tlc-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff04;
  color: var(--ink-dim);
  white-space: nowrap;
}
.tl-row.now .tlc-chip {
  border-color: #3eff9a30;
  background: #3eff9a0a;
  color: var(--ink);
}

@media (max-width: 760px) {
  .tl-line { left: 18px; transform: none; }
  .tl-row { grid-template-columns: 1fr; }
  .tl-dot { left: 18px; }
  .tl-row.left  .tl-card,
  .tl-row.right .tl-card { grid-column: 1; margin-left: 48px; margin-right: 0; }
  .tl-row.left  .tl-card::before,
  .tl-row.right .tl-card::before { left: -48px; right: auto; background: linear-gradient(90deg, var(--line-strong), transparent); width: 48px; }
}

/* ========== Certifications (horizontal infinite marquee) ========== */
.certs { margin-top: 220px; }
.certs .certs-sub {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

/* The viewport — full bleed, cards drift through it. */
.certs-marquee {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
  /* fade edges so cards dissolve into the page rather than getting clipped */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* The track — width: max-content so the two card sets line up end-to-end.
   We animate to translateX(-50%) which is exactly the width of one set,
   producing a seamless loop. */
.certs-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 8px 0;
  animation: certsScroll 42s linear infinite;
}
.certs-marquee:hover .certs-track { animation-play-state: paused; }
@keyframes certsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Card — fixed width so cadence stays even.
   Two-part layout: image thumbnail on top, content (issuer/title/verify) below. */
.cert-card {
  flex-shrink: 0;
  width: 320px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0e1219, #08090d);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow:
    0 18px 50px -22px #00000080,
    0 0 0 1px #ece4d014;
}

/* Thumbnail block — fills the card width, fixed aspect so all cards align. */
.cc-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--bc) 22%, transparent), transparent 80%),
    linear-gradient(180deg, #0a0d12, #07080c);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cc-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Fallback shown when the image file isn't there yet — issuer initials in
   the issuer's brand color, on a subtle gradient. */
.cc-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--bc);
  pointer-events: none;
}
/* If the img loads successfully, hide the fallback. We use sibling selector
   on the absent-img state above (onError sets display:none on the img). */
.cc-thumb img[src]:not([src=""]) ~ .cc-thumb-fallback { display: none; }
.cc-thumb img[style*="display: none"] ~ .cc-thumb-fallback { display: flex; }
.cc-fallback-glyph {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 24px color-mix(in srgb, var(--bc) 30%, transparent);
}
.cc-fallback-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cc-corner-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 6px;
  background: #07080cb0;
  backdrop-filter: blur(4px);
}

/* Content block */
.cc-body {
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.cc-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.cc-org { letter-spacing: 0.04em; }
.cc-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.04em;
}
.cc-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Verify button — pill anchored to the bottom of the card. */
.cc-verify {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  transition: color .2s ease, gap .2s ease;
}
.cc-verify:hover { color: #ece4d0; gap: 12px; }
.cv-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: cvPulse 1.6s ease-in-out infinite;
}
.cc-verify:hover .cv-dot { background: #ece4d0; box-shadow: 0 0 8px #ece4d0; }
@keyframes cvPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

@media (max-width: 760px) {
  .cert-card { width: 280px; }
  .cc-title { font-size: 15px; }
  .cc-body { padding: 14px 16px; }
}

/* ========== Contact ========== */
.contact { margin-top: 220px; }
.contact-card {
  margin-top: 40px;
  padding: 64px 60px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
}
.contact-card h3 em { font-style: italic; font-weight: 400; }
.contact-card .green-text { color: var(--green); }
.contact-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 18px;
  line-height: 1.7;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.contact-actions .btn { justify-content: space-between; padding: 14px 18px; font-size: 13px; }

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
}


/* ===== Orbital Tech Stack v2 ===== */
.tech .tech-sub {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.orbit-stage {
  position: relative;
  margin-top: 60px;
  height: 640px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 400px at 50% 50%, #ece4d008, transparent 70%),
    radial-gradient(400px 300px at 50% 50%, #3eff9a10, transparent 70%),
    linear-gradient(180deg, #0a0c11, #07080c);
}
.orbit-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ece4d008 1px, transparent 1px),
    linear-gradient(90deg, #ece4d008 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, black 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, black 80%);
  pointer-events: none;
}
.orbit-stage::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(closest-side, transparent 60%, #00000060);
  pointer-events: none;
}

/* category rail */
.orbit-cats {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff08, #ffffff02);
  backdrop-filter: blur(14px);
}
.orbit-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: left;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.orbit-cat .cat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background .2s, box-shadow .2s;
}
.orbit-cat:hover { color: var(--ink); }
.orbit-cat.on {
  background: #ffffff10;
  border-color: var(--line-strong);
  color: var(--ink);
}
.orbit-cat.on .cat-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.orbit-cat.pause { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }

/* core stage */
.orbit-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.orbit-rings {
  position: absolute;
  left: 50%; top: 50%;
  width: 560px; height: 560px;
  margin-left: -280px;
  margin-top: -280px;
  pointer-events: none;
  z-index: 1;
}
.orbit-rings .ring {
  fill: none;
  stroke: #ece4d018;
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.orbit-rings .ring.r0 { stroke: #3eff9a25; }
.orbit-rings .ring.r1 { stroke: #ece4d020; }
.orbit-rings .ring.r2 { stroke: #ece4d014; }
.orbit-rings .tick { stroke: #ece4d018; stroke-width: 1; }
.orbit-rings .tick.t0 { stroke: #3eff9a30; }
.orbit-rings .link-line {
  stroke: var(--green);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  filter: drop-shadow(0 0 4px var(--green));
  animation: dashFlow 1s linear infinite;
  opacity: 0;
  transition: opacity .2s;
}
.orbit-rings .link-line.show { opacity: 1; }
@keyframes dashFlow {
  to { stroke-dashoffset: -14; }
}

/* static tag layer — anchored at center of orbit-core */
.orbit-tags {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  z-index: 2;
}
.orbit-tag {
  position: absolute;
  left: 0; top: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(closest-side, #0d1015 0%, #07080c 100%);
  box-shadow: 0 4px 12px -4px #00000080, inset 0 0 0 1px #ffffff05;
  cursor: pointer;
  pointer-events: auto;
  transition:
    border-color .25s cubic-bezier(.16,1,.3,1),
    box-shadow .25s cubic-bezier(.16,1,.3,1),
    background .25s cubic-bezier(.16,1,.3,1),
    opacity .25s,
    filter .25s;
  /* the per-tag transform from JS lives in the inline style;
     scale is applied via a CSS variable so hover can multiply it */
}
.orbit-tag .tag-icon {
  width: 24px;
  height: 24px;
  pointer-events: none;
  user-select: none;
  transition: transform .25s cubic-bezier(.16,1,.3,1), filter .25s;
  filter: drop-shadow(0 1px 2px #00000080);
}
.orbit-tag.dim {
  opacity: 0.22;
  filter: grayscale(.7);
}
.orbit-tag:hover,
.orbit-tag.hot {
  border-color: var(--green);
  background: radial-gradient(closest-side, #0f1a14 0%, #07080c 100%);
  box-shadow:
    0 0 0 1px #3eff9a30,
    0 8px 24px -4px #3eff9a40,
    0 0 28px #3eff9a30,
    inset 0 0 0 1px #3eff9a18;
  z-index: 4;
}
.orbit-tag:hover .tag-icon,
.orbit-tag.hot .tag-icon {
  transform: scale(1.18);
}

/* central readout */
.orbit-readout {
  position: relative;
  z-index: 3;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  background:
    radial-gradient(closest-side, #07080c 60%, transparent 100%);
}
.orbit-readout::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0e1117f0, #08090fcc);
  backdrop-filter: blur(8px);
  z-index: -1;
  box-shadow: inset 0 0 0 1px #ffffff05, 0 0 40px #00000080;
}
.orbit-readout::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed #ece4d020;
  animation: spin 30s linear infinite;
  pointer-events: none;
}

.orbit-readout .ro-idle-glyph {
  font-family: var(--font-vcr);
  font-size: 38px;
  color: var(--green);
  letter-spacing: 0.05em;
  line-height: 1;
}
.orbit-readout .ro-idle-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}
.orbit-readout .ro-idle-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: 8px;
  letter-spacing: 0.06em;
}
.orbit-readout .ro-idle-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  margin-top: 14px;
  letter-spacing: 0.06em;
  animation: pulseFade 2.4s ease-in-out infinite;
}
@keyframes pulseFade { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

.orbit-readout.show > * { animation: roIn .35s cubic-bezier(.16,1,.3,1) both; }
@keyframes roIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.orbit-readout .ro-cat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--green);
}
.orbit-readout .ro-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2px;
  line-height: 1;
}
.orbit-readout .ro-stats {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
}
.orbit-readout .ro-stats > div {
  display: flex; justify-content: space-between; gap: 8px;
}
.orbit-readout .ro-stats span { color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.orbit-readout .ro-stats b { color: var(--ink); font-weight: 500; }
.orbit-readout .ro-bar {
  margin-top: 10px;
  height: 3px;
  background: #ffffff10;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.orbit-readout .ro-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, #3eff9aaa 100%);
  box-shadow: 0 0 10px var(--green);
  transition: width .5s cubic-bezier(.16,1,.3,1);
}
.orbit-readout .ro-note {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
  font-style: italic;
}

@media (max-width: 760px) {
  .orbit-stage { height: 520px; }
  .orbit-rings { width: 420px; height: 420px; margin-left: -210px; margin-top: -210px; }
  .orbit-cats { left: 12px; top: 12px; padding: 6px; }
  .orbit-cat { font-size: 10px; padding: 5px 8px; }
  .orbit-tag { width: 40px; height: 40px; }
  .orbit-tag .tag-icon { width: 20px; height: 20px; }
}


/* ================================================================
   ========== Tech Stack v2 — "dependencies" ===================
   ================================================================ */
.tech-v2 { margin-top: 220px; }

.sv2-head {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.sv2-head .section-title { margin: 0; }

.sv2-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff05, #ffffff01);
  min-width: 220px;
}
.sv2-sum-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.sv2-sum-key {
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sv2-sum-val { color: var(--ink); }

/* ---- Featured row ---- */
.sv2-feat-block { margin-top: 48px; }
.sv2-feat-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.sv2-feat-tick {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.sv2-feat-text { letter-spacing: 0.14em; }

.sv2-feat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.sv2-feat {
  position: relative;
  padding: 22px 20px 18px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(220px 140px at 50% 0%, #3eff9a0e, transparent 70%),
    linear-gradient(180deg, #0e1219, #08090d);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .25s ease, transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, background .25s ease;
}
.sv2-feat:hover {
  border-color: #3eff9a40;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px #00000080, 0 0 0 1px #3eff9a18;
}
.sv2-feat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #07080c;
  display: grid; place-items: center;
}
.sv2-feat-icon img { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px #00000080); }
.sv2-feat-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2px;
}
.sv2-feat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.sv2-feat-meta > span:first-child { flex-shrink: 0; }
.sv2-feat-bar {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #ffffff10;
  overflow: hidden;
}
.sv2-feat-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #3eff9aaa);
  box-shadow: 0 0 8px var(--green-dim);
  transition: width .35s cubic-bezier(.16,1,.3,1);
}

/* ---- Category columns ---- */
.sv2-cats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sv2-col {
  padding: 18px 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff05, #ffffff01);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.sv2-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 6px 10px;
  border-bottom: 1px dashed var(--line-strong);
}
.sv2-col-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.sv2-col-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.06em;
}

.sv2-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sv2-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  grid-template-areas:
    "icon name years"
    "icon note note";
  column-gap: 12px;
  row-gap: 0;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: default;
  transition: background .2s ease, border-color .2s ease;
}
.sv2-row:hover {
  background: #ffffff06;
  border-color: var(--line-strong);
}
.sv2-row-icon {
  grid-area: icon;
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.sv2-row-icon img {
  width: 20px; height: 20px;
  filter: drop-shadow(0 1px 2px #00000080);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.sv2-row:hover .sv2-row-icon img { transform: scale(1.1); }
.sv2-row-name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.2;
}
.sv2-row-years {
  grid-area: years;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff04;
}
.sv2-row:hover .sv2-row-years { color: var(--green); border-color: #3eff9a30; }
.sv2-row-note {
  grid-area: note;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  margin-top: 3px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease, margin-top .25s ease;
}
.sv2-row:hover .sv2-row-note {
  max-height: 24px;
  opacity: 1;
}

@media (max-width: 980px) {
  .sv2-feat-grid { grid-template-columns: repeat(3, 1fr); }
  .sv2-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sv2-head { grid-template-columns: 1fr; align-items: start; }
  .sv2-summary { min-width: 0; }
  .sv2-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .sv2-cats { grid-template-columns: 1fr; }
}


/* ================================================================
   ========== Certifications v2 — "credential ledger" ==========
   ================================================================ */
.certs-v2 { margin-top: 220px; }

.cv2-head {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.cv2-head .section-title { margin: 0; }

.cv2-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff05, #ffffff01);
  min-width: 220px;
}
.cv2-sum-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.cv2-sum-key { color: var(--ink-faint); letter-spacing: 0.12em; text-transform: uppercase; }
.cv2-sum-val { color: var(--ink); }

.cv2-ledger {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(800px 300px at 100% 0%, #3eff9a08, transparent 60%),
    linear-gradient(180deg, #0e1219, #08090d);
}

.cv2-ledger-head {
  display: grid;
  grid-template-columns: 52px 52px 1fr 140px 110px;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff03;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cv2-h-idx, .cv2-h-cert, .cv2-h-date, .cv2-h-action { display: block; }
/* the header has 4 labels but 5 grid columns — push the action over the
   2nd action slot (the badge sits in column 2, no label needed) */
.cv2-h-idx    { grid-column: 1; }
.cv2-h-cert   { grid-column: 3; }
.cv2-h-date   { grid-column: 4; }
.cv2-h-action { grid-column: 5; text-align: right; }

.cv2-list {
  display: flex;
  flex-direction: column;
}

.cv2-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px 52px 1fr 140px 110px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background .25s ease, padding-left .25s ease;
}
.cv2-row:last-child { border-bottom: 0; }
.cv2-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--bc);
  opacity: 0;
  transition: opacity .25s ease, width .25s ease;
}
.cv2-row:hover {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bc) 6%, transparent), transparent 60%),
    #ffffff04;
  padding-left: 30px;
}
.cv2-row:hover::before { opacity: 1; width: 3px; }

.cv2-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.cv2-row:hover .cv2-idx { color: var(--bc); }

.cv2-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--bc) 18%, transparent), transparent 80%),
    #07080c;
  transition: border-color .25s ease, transform .25s cubic-bezier(.16,1,.3,1);
}
.cv2-row:hover .cv2-badge {
  border-color: color-mix(in srgb, var(--bc) 50%, var(--line-strong));
  transform: scale(1.04);
}
.cv2-badge-glyph {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bc);
  text-shadow: 0 0 14px color-mix(in srgb, var(--bc) 35%, transparent);
}

.cv2-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cv2-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.cv2-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.cv2-org { color: var(--ink-dim); letter-spacing: 0.04em; }
.cv2-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
  opacity: .6;
}
.cv2-tag { color: var(--ink-faint); letter-spacing: 0.06em; }

.cv2-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cv2-date svg { stroke: var(--ink-faint); }

.cv2-verify {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff04;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .2s ease, border-color .2s ease, background .2s ease, gap .25s ease;
}
.cv2-row:hover .cv2-verify {
  color: var(--green);
  border-color: #3eff9a45;
  background: #3eff9a0c;
  gap: 12px;
}
.cv2-verify svg {
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.cv2-row:hover .cv2-verify svg {
  transform: translate(2px, -2px);
}

@media (max-width: 760px) {
  .cv2-head { grid-template-columns: 1fr; align-items: start; }
  .cv2-summary { min-width: 0; }
  .cv2-ledger-head { display: none; }
  .cv2-row {
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
      "badge main verify"
      "badge meta  date";
    row-gap: 6px;
    padding: 16px;
  }
  .cv2-row:hover { padding-left: 18px; }
  .cv2-idx { display: none; }
  .cv2-badge { grid-area: badge; width: 40px; height: 40px; }
  .cv2-main  { grid-area: main; }
  .cv2-meta  { grid-area: meta; }
  .cv2-date  { grid-area: date; justify-self: end; }
  .cv2-verify { grid-area: verify; }
  .cv2-verify-label { display: none; }
}


/* ================================================================
   ========== Tech Stack v3 — "logo wall" =======================
   ================================================================ */
.tech-v3 { margin-top: 220px; }

.tw3-head {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.tw3-head .section-title { margin: 0; }

.tw3-count {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff05, #ffffff01);
}
.tw3-count-n {
  font-family: var(--font-vcr);
  font-size: 44px;
  line-height: 0.9;
  color: var(--green);
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px var(--green-dim);
}
.tw3-count-l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.4;
}

.tw3-wall {
  margin-top: 52px;
  /* flex (not grid) so a partial last row CENTERS instead of left-aligning */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.tw3-tile {
  position: relative;
  /* fixed 6-up basis — (100% − 5 gaps) / 6 — so rows are even and the last
     partial row centers via the wall's justify-content */
  flex: 0 0 calc((100% - 70px) / 6);
  max-width: calc((100% - 70px) / 6);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(220px 140px at 50% 0%, #ffffff05, transparent 65%),
    linear-gradient(180deg, #0d1117, #08090d);
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    border-color .25s ease,
    transform .3s cubic-bezier(.16,1,.3,1),
    box-shadow .25s ease,
    background .25s ease;
}
/* cursor sheen — follows --mx/--my set by the tilt JS, same technique as the
   project/contact cards */
.tw3-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(160px 140px at var(--mx, 50%) var(--my, 50%), #3eff9a22, transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 0;
}
.tw3-tile:hover::before { opacity: 1; }
.tw3-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .25s ease;
}
.tw3-tile:hover {
  border-color: #3eff9a55;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px #00000099, 0 0 24px -8px #3eff9a30;
  background:
    radial-gradient(260px 160px at 50% 0%, #3eff9a12, transparent 65%),
    linear-gradient(180deg, #0d1117, #08090d);
}
.tw3-tile:hover::after {
  box-shadow: inset 0 0 0 1px #3eff9a22;
}

/* keep icon + name above the sheen */
.tw3-icon, .tw3-name { position: relative; z-index: 1; }
.tw3-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  transform: translateZ(28px);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.tw3-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px #00000080);
  transition: filter .25s ease, transform .25s cubic-bezier(.16,1,.3,1);
}
.tw3-tile:hover .tw3-icon { transform: translateZ(38px) scale(1.06) translateY(-6px); }
.tw3-tile:hover .tw3-icon img {
  filter: drop-shadow(0 3px 10px #00000099) drop-shadow(0 0 12px #3eff9a30);
}

.tw3-name {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-align: center;
  /* hidden until hover — fades up into place */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  z-index: 1;
}
.tw3-tile:hover .tw3-name {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .tw3-tile { flex-basis: calc((100% - 56px) / 5); max-width: calc((100% - 56px) / 5); }
  .tw3-icon { width: 56px; height: 56px; }
}
@media (max-width: 840px) {
  .tw3-tile { flex-basis: calc((100% - 42px) / 4); max-width: calc((100% - 42px) / 4); }
}
@media (max-width: 600px) {
  .tw3-head { grid-template-columns: 1fr; align-items: start; }
  .tw3-wall { gap: 10px; }
  .tw3-tile { flex-basis: calc((100% - 20px) / 3); max-width: calc((100% - 20px) / 3); padding: 14px; gap: 12px; }
  .tw3-icon { width: 44px; height: 44px; }
  .tw3-name { font-size: 10px; }
}


/* ================================================================
   ========== Certifications v3 — "image carousel" ==============
   ================================================================ */
.certs-v3 { margin-top: 220px; }

.cv3-head {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.cv3-head .section-title { margin: 0; }

.cv3-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-vcr);
  font-size: 40px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff05, #ffffff01);
}
.cv3-counter-n { color: var(--green); text-shadow: 0 0 14px var(--green-dim); }
.cv3-counter-sep { color: var(--ink-faint); margin: 0 4px; }
.cv3-counter-t { color: var(--ink-dim); }

/* stage holds the arrows + the card */
.cv3-stage {
  position: relative;
  margin-top: 72px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 18px;
  align-items: stretch;
}

.cv3-nav {
  align-self: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0e1219cc, #08090dcc);
  backdrop-filter: blur(8px);
  color: var(--ink-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cv3-nav:hover {
  color: var(--green);
  border-color: #3eff9a55;
  background: #3eff9a10;
  transform: scale(1.06);
}
.cv3-nav:active { transform: scale(0.96); }

/* viewport clips the slide travel so cards enter/exit fully off-edge */
.cv3-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  isolation: isolate;
}

/* the visible certificate card */
.cv3-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  /* brand-tinted border + strong contrast so the card actually reads on the
     page bg instead of blending into it */
  border: 1px solid color-mix(in srgb, var(--bc) 28%, #ece4d028);
  background:
    radial-gradient(900px 500px at 0% 0%, color-mix(in srgb, var(--bc) 12%, transparent), transparent 60%),
    linear-gradient(180deg, #181d27, #11151c);
  box-shadow:
    0 30px 80px -30px #000000aa,
    0 0 0 1px #ffffff05 inset,
    0 0 40px -10px color-mix(in srgb, var(--bc) 18%, transparent);
}
/* the entering card sits in normal flow (drives the viewport height); the
   exiting card overlays it absolutely while sliding away */
.cv3-card.enter { position: relative; z-index: 2; }
.cv3-card.exit  { position: absolute; inset: 0; z-index: 1; }

/* FULL-TRAVEL slide: the new card comes in from one full edge while the old
   one leaves out the opposite edge \u2014 both move together like a filmstrip. */
.cv3-card.enter[data-dir="1"]  { animation: cv3EnterNext var(--cv3-slide, .62s) cubic-bezier(.5,0,.2,1) both; }
.cv3-card.enter[data-dir="-1"] { animation: cv3EnterPrev var(--cv3-slide, .62s) cubic-bezier(.5,0,.2,1) both; }
.cv3-card.exit[data-dir="1"]   { animation: cv3ExitNext  var(--cv3-slide, .62s) cubic-bezier(.5,0,.2,1) both; }
.cv3-card.exit[data-dir="-1"]  { animation: cv3ExitPrev  var(--cv3-slide, .62s) cubic-bezier(.5,0,.2,1) both; }

@keyframes cv3EnterNext { from { transform: translateX(100%);  } to { transform: translateX(0); } }
@keyframes cv3ExitNext  { from { transform: translateX(0);     } to { transform: translateX(-100%); } }
@keyframes cv3EnterPrev { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes cv3ExitPrev  { from { transform: translateX(0);     } to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .cv3-card.enter, .cv3-card.exit { animation: cv3Fade .3s ease both; }
  .cv3-card.exit { display: none; }
  @keyframes cv3Fade { from { opacity: 0; } to { opacity: 1; } }
}

/* big landscape image area */
.cv3-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid color-mix(in srgb, var(--bc) 22%, #ece4d020);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--bc) 10%, transparent), transparent 80%),
    linear-gradient(180deg, #0d1118, #090b11);
  overflow: hidden;
}
.cv3-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #0a0c11;
}
.cv3-img.is-badge img {
  object-fit: contain;
  object-position: center;
  padding: 12px;
}
.cv3-img-corner {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--green);
  padding: 5px 9px;
  border-radius: 6px;
  background: #07080cb0;
  backdrop-filter: blur(6px);
  border: 1px solid #3eff9a25;
  z-index: 2;
}

/* placeholder shown until a real PNG is dropped at certs/<slug>.png */
.cv3-img-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.cv3-ph-stripes {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--bc) 10%, transparent) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(45deg, #ece4d010 0 1px, transparent 1px 28px);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 95%);
}
/* obvious "drop file here" affordance — much higher contrast than v1 */
.cv3-ph-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 36px;
  border: 1.5px dashed color-mix(in srgb, var(--bc) 55%, #ece4d040);
  border-radius: 16px;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--bc) 14%, transparent), transparent 90%),
    #0c0f15ee;
  backdrop-filter: blur(8px);
  text-align: center;
  box-shadow: 0 0 0 4px #07080c66, 0 20px 50px -20px #000000aa;
}
.cv3-ph-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bc) 60%, var(--ink-faint));
}
.cv3-ph-path {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.cv3-ph-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cv3-ph-hint::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: cv3Pulse 1.6s ease-in-out infinite;
}

/* card body — meta · title · verify */
.cv3-body {
  padding: 26px 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cv3-meta-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.cv3-org { color: var(--ink-dim); }
.cv3-meta-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
  opacity: .6;
}
.cv3-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
}
.cv3-date svg { stroke: var(--ink-faint); }

.cv3-title {
  margin: 0;
  /* reserve two lines so cards of different title lengths keep the same
     height — the viewport won't jump as we slide between them */
  min-height: 2.3em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.15;
}

.cv3-verify {
  margin-top: 6px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff04;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease, gap .25s ease;
}
.cv3-verify:hover {
  color: var(--green);
  border-color: #3eff9a55;
  background: #3eff9a10;
  gap: 14px;
}
.cv3-verify-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: cv3Pulse 1.6s ease-in-out infinite;
}
@keyframes cv3Pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.7); } }
.cv3-verify svg { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.cv3-verify:hover svg { transform: translate(2px, -2px); }

/* dot indicators below the stage */
.cv3-dots {
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
}
.cv3-dot {
  position: relative;
  width: 44px;
  height: 18px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.cv3-dot-line {
  position: relative;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #ece4d018;
  transition: background .25s ease, height .25s ease;
  overflow: hidden;
}
.cv3-dot:hover .cv3-dot-line { background: #ece4d040; }
.cv3-dot.on .cv3-dot-line {
  background: #ece4d025;
  height: 3px;
}
/* progress fill on the active dot — width animates over the dwell time */
.cv3-dot-fill {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-dim);
}
.cv3-dot-fill[data-run="1"] {
  animation-name: cv3Progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
.cv3-dot-fill[data-run="0"] { width: 100%; } /* paused/off — show full bar */
@keyframes cv3Progress { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .cv3-dot-fill { width: 100% !important; animation: none !important; }
}

.cv3-hint {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

@media (max-width: 760px) {
  .cv3-counter { font-size: 22px; padding: 6px 10px; border-radius: 10px; }
  .cv3-stage { grid-template-columns: 40px 1fr 40px; gap: 8px; }
  .cv3-nav { width: 40px; height: 40px; }
  .cv3-body { padding: 20px 18px; }
  .cv3-title { font-size: 20px; }
  .cv3-img { aspect-ratio: 4 / 3; }
}
