/* =====================================================================
   DEVELOPER CORE (back face): "the night side"
   ---------------------------------------------------------------------
   Idea: the front is the day side of a card (soft lilac, pink, glass).
   The back is the same card at night: deep ink, the same three accents,
   big editorial serif headlines, mono micro-labels, a bento layout, an
   ID-badge recruiter card and a drifting neural-net backdrop.

   Everything is scoped to .ak-back so it never collides with the front's
   global h2 / section / nav / a rules.
   Tune the whole look from the variables at the top.
   ===================================================================== */

.ak-back {
  --g0: #090717;
  --g1: #100c27;
  --g2: #19133b;
  --ink: #f4ecff;
  --mute: #c4bbe0;
  --dim: #8d84b6;
  --lilac: #dac8f6;
  --pink: #f4b6d1;
  --mint: #a8e6d8;
  --peach: #ffb98a;
  --line: rgba(218, 200, 246, .14);
  --line2: rgba(218, 200, 246, .3);
  --glass: rgba(218, 200, 246, .05);
  --glass2: rgba(218, 200, 246, .09);
  --grad: linear-gradient(100deg, var(--lilac) 8%, var(--pink) 48%, var(--peach) 78%, var(--mint));
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --spring: cubic-bezier(.34, 1.56, .5, 1);
  --bar: 74px;
  background: var(--g0);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
}
.ak-back ::selection { background: var(--pink); color: #1a1030; }
.ak-back :focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ---- reset the front's global element rules inside this face ---- */
.ak-back h1, .ak-back h2, .ak-back h3, .ak-back h4 {
  margin: 0; background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: currentColor; color: var(--ink); font-weight: 400; letter-spacing: -.02em;
}
.ak-back h2::after { content: none; display: none; }
.ak-back p, .ak-back ul, .ak-back ol, .ak-back dl, .ak-back dd, .ak-back figure { margin: 0; padding: 0; list-style: none; }
.ak-back section.dc-sec, .ak-back section.dc-proof { padding: 0; }
.ak-back button { font: inherit; color: inherit; }
.ak-back a { color: inherit; }
.ak-back em { font-style: italic; }
.ak-back [hidden] { display: none !important; }

/* ---- scene behind the content ---- */
.ak-back .dc-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .75; }
.ak-back .dc-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ak-back .dc-aurora i { position: absolute; border-radius: 50%; opacity: .6; will-change: transform; }
.ak-back .dc-aurora i:nth-child(1) { width: 60vmax; height: 60vmax; left: -22vmax; top: -26vmax; background: radial-gradient(circle, #6d4fd0, transparent 65%); animation: dc-drift1 26s ease-in-out infinite alternate; }
.ak-back .dc-aurora i:nth-child(2) { width: 46vmax; height: 46vmax; right: -16vmax; top: 20%; background: radial-gradient(circle, rgba(244, 182, 209, .55), transparent 66%); animation: dc-drift2 31s ease-in-out infinite alternate; }
.ak-back .dc-aurora i:nth-child(3) { width: 50vmax; height: 50vmax; left: 18%; bottom: -30vmax; background: radial-gradient(circle, rgba(168, 230, 216, .32), transparent 66%); animation: dc-drift1 36s ease-in-out -9s infinite alternate-reverse; }
@keyframes dc-drift1 { to { transform: translate3d(6vmax, 5vmax, 0) scale(1.12); } }
@keyframes dc-drift2 { to { transform: translate3d(-7vmax, -4vmax, 0) scale(.92); } }
.ak-back:not(.is-live) .dc-aurora i, .ak-back:not(.is-live) .dc-pulse::after { animation-play-state: paused; }

/* ---- scroller ---- */
.ak-back .ak-scroll {
  background: none; scroll-padding-top: calc(var(--bar) + 12px);
}
.ak-back .dc-wrap { max-width: 1120px; margin: 0 auto; padding: calc(var(--bar) + 54px) 28px 160px; position: relative; }

/* ---- top bar: a glass pill, like the front's nav ---- */
.ak-back .dc-top {
  position: absolute; z-index: 20; top: calc(14px + env(safe-area-inset-top, 0px)); left: calc(50% - var(--ak-sbw, 0px) / 2);
  transform: translateX(-50%); width: min(1120px, calc(100% - 24px)); height: 50px;
  display: flex; align-items: center; gap: 14px; padding: 0 8px 0 8px; border-radius: 99px;
  background: rgba(17, 12, 43, .72); border: 1px solid var(--line2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
.ak-back .dc-return {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 12px; border-radius: 99px; cursor: pointer;
  border: 0; font: 600 14px var(--sans); color: #1a1030; background: linear-gradient(135deg, var(--lilac), var(--pink));
  transition: transform .5s var(--spring), box-shadow .3s;
}
.ak-back .dc-return:hover { transform: translateX(-3px); box-shadow: 0 8px 22px rgba(244, 182, 209, .35); }
.ak-back .dc-brand { flex: none; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.ak-back .dc-brand b { font: 500 19px var(--serif); letter-spacing: -.01em; }
.ak-back .dc-brand em { font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-style: normal; }
.ak-back .dc-chips-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.ak-back .dc-chips-nav::-webkit-scrollbar { display: none; }
.ak-back .dc-chips-nav button {
  flex: none; background: none; border: 0; cursor: pointer; padding: 7px 12px; border-radius: 99px;
  font: 500 13px var(--sans); color: var(--mute); transition: color .2s, background .2s;
}
.ak-back .dc-chips-nav button:hover { color: var(--ink); background: var(--glass2); }
.ak-back .dc-chips-nav button[aria-current="true"] { color: #1a1030; background: var(--lilac); }
.ak-back .dc-progress {
  position: absolute; left: 24px; right: 24px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: .9;
}

.ak-back .dc-where { display: none; margin-left: auto; padding-right: 16px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ak-back .dc-where b { color: var(--pink); font-weight: 500; }

/* ---- left rail (wide screens): numbered section index ---- */
.ak-back .dc-rail { display: none; }
@media (min-width: 1380px) {
  .ak-back .dc-chips-nav { display: none; }
  .ak-back .dc-where { display: block; }
  .ak-back .dc-rail {
    display: flex; flex-direction: column; gap: 2px; position: absolute; z-index: 15; left: 26px; top: 50%; transform: translateY(-50%);
    padding: 10px 6px; border-radius: 22px; background: rgba(17, 12, 43, .5); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .ak-back .dc-rail button {
    display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 6px 12px 6px 8px; border-radius: 99px;
    font: 500 12px var(--mono); color: var(--dim); text-align: left; transition: color .2s, background .2s;
  }
  .ak-back .dc-rail button i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; transition: transform .3s var(--spring), opacity .2s, background .2s; }
  .ak-back .dc-rail button:hover { color: var(--ink); }
  .ak-back .dc-rail button[aria-current="true"] { color: var(--ink); background: var(--glass2); }
  .ak-back .dc-rail button[aria-current="true"] i { opacity: 1; transform: scale(1.7); background: var(--pink); box-shadow: 0 0 10px var(--pink); }
}

/* ---- shared bits ---- */
.ak-back .dc-kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); }
.ak-back .dc-num { padding: 3px 9px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line2); color: var(--pink); letter-spacing: .06em; }
.ak-back .dc-head { margin-bottom: 38px; max-width: 760px; }
.ak-back .dc-head h2 { font: 400 clamp(36px, 5.6vw, 64px)/1.02 var(--serif); margin: 14px 0 12px; letter-spacing: -.03em; }
.ak-back .dc-title em { white-space: nowrap; }
.ak-back .dc-head h2 em, .ak-back .dc-title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-right: .06em; }
.ak-back .dc-sub { color: var(--mute); font-size: 17px; max-width: 60ch; }
.ak-back .dc-sec { margin-top: 128px; }
.ak-back .dc-hero { margin-top: 0; }
.ak-back .dc-pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.ak-back .dc-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--mint); animation: dc-ping 2.2s ease-out infinite; }
@keyframes dc-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

/* cards: a soft spotlight follows the pointer */
.ak-back .dc-card {
  position: relative; border-radius: 26px; padding: 24px; background: var(--glass); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s, transform .5s var(--spring), background .3s;
}
.ak-back .dc-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(218, 200, 246, .16), transparent 55%);
}
.ak-back .dc-card:hover { border-color: var(--line2); }
.ak-back .dc-card:hover::before { opacity: 1; }
.ak-back .dc-cap { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.ak-back .dc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ak-back .dc-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 99px; font-size: 14px; font-weight: 500; line-height: 1.3;
  background: var(--glass2); border: 1px solid var(--line); color: var(--ink); transition: transform .5s var(--spring), background .2s, border-color .2s, color .2s;
}
.ak-back .dc-chip:hover { transform: translateY(-4px); background: var(--lilac); color: #1a1030; border-color: var(--lilac); }
.ak-back .dc-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.ak-back .dc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 99px; cursor: pointer; text-decoration: none;
  font: 600 14.5px var(--sans); color: var(--ink); background: var(--glass); border: 1px solid var(--line2);
  transition: transform .5s var(--spring), background .25s, box-shadow .3s, color .2s;
}
.ak-back .dc-btn:hover { transform: translateY(-4px); background: var(--glass2); }
.ak-back .dc-btn.fill { color: #1a1030; border-color: transparent; background: linear-gradient(135deg, var(--lilac), var(--pink)); box-shadow: 0 8px 24px rgba(244, 182, 209, .25); }
.ak-back .dc-btn.fill:hover { box-shadow: 0 14px 36px rgba(244, 182, 209, .5); background: linear-gradient(135deg, var(--lilac), var(--pink)); }
.ak-back .dc-btn.sm { padding: 7px 14px; font-size: 13px; }
.ak-back .dc-empty { color: var(--dim); font-size: 15px; }
.ak-back .dc-note { color: var(--dim); font: 400 12.5px var(--mono); margin-top: 10px; }
.ak-back .dc-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--pink); text-decoration: underline; text-underline-offset: 4px; font: inherit; }

/* reveal on scroll */
.ak-back .dc-rv { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform 1s var(--spring); transition-delay: var(--d, 0s); }
.ak-back .dc-rv.in { opacity: 1; transform: none; }

/* =====================================================================
   01 · BRIEF
   ===================================================================== */
.ak-back .dc-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 54px; align-items: center; min-height: calc(100svh - var(--bar) - 120px); }
.ak-back .dc-title { font: 400 clamp(54px, 8.6vw, 116px)/.95 var(--serif); letter-spacing: -.04em; margin: 22px 0 22px; }
.ak-back .dc-lede { font-size: 19px; color: var(--mute); max-width: 44ch; }
.ak-back .dc-rotor { margin-top: 22px; font: 400 clamp(22px, 2.6vw, 30px)/1.3 var(--serif); color: var(--mute); min-height: 1.4em; }
.ak-back .dc-rotor b { font-weight: 400; font-style: italic; color: var(--ink); border-bottom: 1px dashed var(--line2); padding-bottom: 1px; }
.ak-back .dc-caret { display: inline-block; width: 2px; height: .95em; margin-left: 4px; vertical-align: -.12em; background: var(--pink); animation: dc-blink 1s steps(1) infinite; }
@keyframes dc-blink { 50% { opacity: 0; } }
.ak-back .dc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ak-back .dc-now { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.ak-back .dc-now li { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-size: 13.5px; color: var(--mute); }
.ak-back .dc-now li b { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(168, 230, 216, .14); color: var(--mint); }
.ak-back .dc-now li:nth-child(2) b { background: rgba(244, 182, 209, .14); color: var(--pink); }
.ak-back .dc-now li:nth-child(3) b { background: rgba(218, 200, 246, .16); color: var(--lilac); }

/* ID badge */
.ak-back .dc-hero-r { perspective: 1100px; display: flex; justify-content: center; }
.ak-back .dc-badge {
  position: relative; width: min(100%, 430px); padding: 46px 28px 24px; border-radius: 30px; border: 1px solid transparent;
  background: linear-gradient(165deg, #1d1646, #100c27 60%) padding-box, linear-gradient(140deg, var(--lilac), var(--pink) 45%, var(--mint)) border-box;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 80px rgba(150, 120, 230, .18);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform;
  animation: dc-bob 7s ease-in-out infinite;
}
@keyframes dc-bob { 50% { translate: 0 -10px; } }
.ak-back .dc-badge::before { content: ""; position: absolute; left: 50%; top: 14px; width: 64px; height: 10px; margin-left: -32px; border-radius: 99px; background: var(--g0); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 0 0 1px var(--line2); }
.ak-back .dc-badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 45%, transparent 60%); background-size: 250% 100%; background-position: var(--sheen, 120%) 0; transition: background-position .6s; }
.ak-back .dc-bd-top { display: flex; justify-content: space-between; font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.ak-back .dc-bd-id { display: flex; align-items: center; gap: 18px; }
.ak-back .dc-bd-photo { flex: none; width: 92px; height: 92px; border-radius: 50%; padding: 3px; background: conic-gradient(from 0deg, var(--pink), var(--lilac), var(--mint), var(--pink)); }
.ak-back .dc-bd-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #130e30; display: block; background: var(--g2); }
.ak-back .dc-bd-photo.noimg { display: grid; place-items: center; font: 400 34px var(--serif); color: #1a1030; }
.ak-back .dc-bd-name { font: 400 34px/1.02 var(--serif); letter-spacing: -.02em; }
.ak-back .dc-bd-role { margin-top: 6px; font-size: 14px; color: var(--mute); line-height: 1.4; }
.ak-back .dc-bd-st { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 12px; border-radius: 99px; font-size: 12.5px; background: rgba(168, 230, 216, .1); border: 1px solid rgba(168, 230, 216, .3); color: var(--mint); }
.ak-back .dc-bd-st.work { background: rgba(244, 182, 209, .1); border-color: rgba(244, 182, 209, .3); color: var(--pink); }
.ak-back .dc-bd-sec { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line2); }
.ak-back .dc-bd-roles li { position: relative; padding: 5px 0 5px 24px; font-size: 15px; color: var(--ink); }
.ak-back .dc-bd-roles li::before { content: "→"; position: absolute; left: 0; color: var(--pink); font-family: var(--mono); }
.ak-back .dc-bd-sec .dc-chip { font-size: 12.5px; padding: 4px 11px; }
.ak-back .dc-bd-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.ak-back .dc-bar { flex: 1; height: 34px; border-radius: 4px; opacity: .5; background: repeating-linear-gradient(90deg, var(--lilac) 0 2px, transparent 2px 5px, var(--lilac) 5px 6px, transparent 6px 11px, var(--lilac) 11px 14px, transparent 14px 16px); -webkit-mask: linear-gradient(90deg, #000 60%, transparent); mask: linear-gradient(90deg, #000 60%, transparent); }

/* proof strip */
.ak-back .dc-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.ak-back .dc-stat { padding: 22px 22px 20px; }
.ak-back .dc-stat b { display: block; font: 400 clamp(44px, 5.2vw, 68px)/1 var(--serif); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ak-back .dc-stat span { display: block; margin-top: 8px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.ak-back .dc-stat small { display: block; margin-top: 4px; font-size: 13px; color: var(--dim); line-height: 1.4; }

/* =====================================================================
   02 · CASE STUDIES
   ===================================================================== */
.ak-back .dc-tabs-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.ak-back .dc-tabs-row button {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 12px; border-radius: 99px; cursor: pointer; background: var(--glass); border: 1px solid var(--line);
  font: 500 15px var(--sans); color: var(--mute); transition: all .3s;
}
.ak-back .dc-tabs-row button span { font: 500 11px var(--mono); padding: 3px 8px; border-radius: 99px; background: var(--glass2); color: var(--dim); }
.ak-back .dc-tabs-row button:hover { color: var(--ink); border-color: var(--line2); }
.ak-back .dc-tabs-row button[aria-selected="true"] { color: #1a1030; background: linear-gradient(135deg, var(--lilac), var(--pink)); border-color: transparent; }
.ak-back .dc-tabs-row button[aria-selected="true"] span { background: rgba(26, 16, 48, .12); color: #1a1030; }
.ak-back .dc-case { padding: 34px; border-radius: 32px; }
.ak-back .dc-case-ghost { position: absolute; right: 24px; top: -22px; font: 400 200px/1 var(--serif); font-style: italic; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(218, 200, 246, .13); pointer-events: none; user-select: none; }
.ak-back .dc-case h3 { position: relative; font: 400 clamp(34px, 4.6vw, 56px)/1 var(--serif); letter-spacing: -.03em; margin-bottom: 30px; }
.ak-back .dc-flow { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 0; }
.ak-back .dc-step { position: relative; padding: 0 28px 0 0; }
.ak-back .dc-step + .dc-step { padding-left: 28px; border-left: 1px dashed var(--line2); }
.ak-back .dc-step h4 { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.ak-back .dc-step h4::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.ak-back .dc-step:nth-child(1) { --c: var(--pink); } .ak-back .dc-step:nth-child(2) { --c: var(--lilac); } .ak-back .dc-step:nth-child(3) { --c: var(--mint); }
.ak-back .dc-step h4 { color: var(--c); }
.ak-back .dc-step p { color: var(--mute); font-size: 16px; line-height: 1.6; }
.ak-back .dc-case-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.ak-back .dc-facts { display: flex; flex-wrap: wrap; gap: 26px; }
.ak-back .dc-facts div small { display: block; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ak-back .dc-facts div b { font: 400 22px var(--serif); }
.ak-back .dc-case .dc-chips { position: relative; margin-top: 22px; }

/* =====================================================================
   03 · STACK
   ===================================================================== */
.ak-back .dc-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
/* 6 groups lay out as 2+4 / 2+4 / 3+3; other counts fall back to thirds */
.ak-back .dc-bento > .dc-card { grid-column: span 2; }
.ak-back .dc-bento > .dc-card:nth-child(6n+2), .ak-back .dc-bento > .dc-card:nth-child(6n+4) { grid-column: span 4; }
.ak-back .dc-bento > .dc-card:nth-child(6n+5), .ak-back .dc-bento > .dc-card:nth-child(6n) { grid-column: span 3; }
.ak-back .dc-bento .dc-cap { color: var(--lilac); }
.ak-back .dc-bento .dc-cap b { float: right; color: var(--dim); font-weight: 500; }
.ak-back .dc-legend { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--dim); font-size: 13.5px; }
.ak-back .dc-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* =====================================================================
   04 · AI LAB
   ===================================================================== */
.ak-back .dc-lab { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.ak-back .dc-lab-l { position: sticky; top: calc(var(--bar) + 20px); }
.ak-back .dc-net { width: 100%; height: auto; display: block; }
.ak-back .dc-net line { stroke: rgba(218, 200, 246, .22); stroke-width: 1; }
.ak-back .dc-net line.on { stroke: url(#dc-ng); stroke-width: 1.6; stroke-dasharray: 6 10; animation: dc-flow 1.6s linear infinite; }
@keyframes dc-flow { to { stroke-dashoffset: -32; } }
.ak-back .dc-net circle { fill: #1d1646; stroke: var(--lilac); stroke-width: 1.5; animation: dc-node 3.4s ease-in-out infinite; animation-delay: calc(var(--n) * -.35s); transform-box: fill-box; transform-origin: center; }
.ak-back .dc-net circle.out { stroke: var(--mint); fill: rgba(168, 230, 216, .25); }
@keyframes dc-node { 50% { transform: scale(1.3); fill: rgba(244, 182, 209, .45); } }
.ak-back .dc-facts-l { margin-top: 18px; display: grid; gap: 12px; }
.ak-back .dc-facts-l dt { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ak-back .dc-facts-l dd { font-size: 15px; color: var(--ink); margin-top: 2px; }
.ak-back .dc-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ak-back .dc-focus .dc-card { padding: 22px; }
.ak-back .dc-focus h3 { font: 400 24px/1.1 var(--serif); margin: 12px 0 8px; }
.ak-back .dc-focus p { font-size: 14.5px; color: var(--mute); line-height: 1.55; }
.ak-back .dc-focus .dc-chips { margin-top: 14px; }
.ak-back .dc-tag { display: inline-flex; align-items: center; gap: 7px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.ak-back .dc-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.ak-back .dc-focus .is-study { background: transparent; border-style: dashed; }
.ak-back .dc-focus .is-study .dc-tag { color: var(--dim); }
.ak-back .dc-focus .is-study .dc-tag::before { box-shadow: none; background: transparent; border: 1.5px solid currentColor; }

/* =====================================================================
   05 · EXPERIENCE
   ===================================================================== */
.ak-back .dc-xp { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ak-back .dc-tl { position: relative; padding-left: 30px; }
.ak-back .dc-tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--pink), var(--lilac) 60%, transparent); border-radius: 2px; }
.ak-back .dc-tl details { position: relative; margin-bottom: 14px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.ak-back .dc-tl details::before { content: ""; position: absolute; left: -30px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); border: 3px solid var(--g0); box-shadow: 0 0 0 2px rgba(244, 182, 209, .35), 0 0 16px rgba(244, 182, 209, .5); }
.ak-back .dc-tl details[open] { background: var(--glass2); border-color: var(--line2); }
.ak-back .dc-tl summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; }
.ak-back .dc-tl summary::-webkit-details-marker { display: none; }
.ak-back .dc-tl summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); font: 400 18px var(--mono); transition: transform .3s; }
.ak-back .dc-tl details[open] summary::after { transform: rotate(45deg); }
.ak-back .dc-tl summary small { display: block; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }
.ak-back .dc-tl summary b { display: block; font: 400 24px/1.15 var(--serif); }
.ak-back .dc-tl summary span { display: block; font-size: 14.5px; color: var(--mute); margin-top: 3px; }
.ak-back .dc-tl ul { padding: 0 22px 22px; }
.ak-back .dc-tl li { position: relative; padding: 5px 0 5px 22px; font-size: 15px; color: var(--mute); }
.ak-back .dc-tl li::before { content: ""; position: absolute; left: 3px; top: .85em; width: 6px; height: 6px; background: var(--mint); transform: rotate(45deg); border-radius: 1px; }
.ak-back .dc-edu .dc-card { margin-bottom: 14px; padding: 20px 22px; }
.ak-back .dc-edu small { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.ak-back .dc-edu b { display: block; font: 400 20px/1.2 var(--serif); margin: 6px 0 4px; }
.ak-back .dc-edu span { font-size: 14px; color: var(--mute); }

/* =====================================================================
   06 · GITHUB
   ===================================================================== */
.ak-back .dc-gh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.ak-back .dc-gh-stats > div { padding: 18px 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
.ak-back .dc-gh-stats dt { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ak-back .dc-gh-stats dd { font: 400 38px/1.1 var(--serif); margin-top: 4px; }
.ak-back .dc-gh-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }
.ak-back .dc-gh-row.two { grid-template-columns: 1fr 1fr; }
.ak-back .dc-heat { display: grid; grid-auto-flow: row; gap: 4px; grid-template-rows: none; }
.ak-back .dc-heat i { aspect-ratio: 1; border-radius: 4px; background: rgba(218, 200, 246, .07); }
.ak-back .dc-heat i[data-l="1"] { background: rgba(168, 230, 216, .28); }
.ak-back .dc-heat i[data-l="2"] { background: rgba(168, 230, 216, .5); }
.ak-back .dc-heat i[data-l="3"] { background: rgba(168, 230, 216, .75); }
.ak-back .dc-heat i[data-l="4"] { background: var(--mint); box-shadow: 0 0 10px rgba(168, 230, 216, .6); }
.ak-back .dc-bars li { display: grid; grid-template-columns: 96px 1fr 26px; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.ak-back .dc-bars .bar { height: 8px; border-radius: 99px; background: var(--glass2); position: relative; overflow: hidden; }
.ak-back .dc-bars .bar::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--grad); }
.ak-back .dc-bars em { font: 500 12px var(--mono); color: var(--dim); font-style: normal; text-align: right; }
.ak-back .dc-list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ak-back .dc-list li:first-child { border-top: 0; padding-top: 0; }
.ak-back .dc-list a { color: var(--lilac); font-weight: 600; text-underline-offset: 4px; }
.ak-back .dc-list small { display: block; color: var(--dim); font: 400 12px var(--mono); margin-top: 2px; }
.ak-back .dc-skel { height: 160px; border-radius: 26px; background: linear-gradient(100deg, var(--glass) 30%, var(--glass2) 50%, var(--glass) 70%); background-size: 250% 100%; animation: dc-shim 1.4s linear infinite; }
@keyframes dc-shim { to { background-position: -250% 0; } }

/* =====================================================================
   07 · TERMINAL
   ===================================================================== */
.ak-back .dc-term { border-radius: 22px; overflow: hidden; background: #07050f; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(150, 120, 230, .1); }
.ak-back .dc-term-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; background: rgba(218, 200, 246, .06); border-bottom: 1px solid var(--line); }
.ak-back .dc-term-bar .dots { display: flex; gap: 7px; margin-right: 10px; }
.ak-back .dc-term-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff7a8a; }
.ak-back .dc-term-bar .dots i:nth-child(2) { background: #ffd27a; } .ak-back .dc-term-bar .dots i:nth-child(3) { background: #7be3b4; }
.ak-back .dc-term-bar span.t { font: 400 12px var(--mono); color: var(--dim); margin-right: auto; }
.ak-back .dc-term-bar .dc-btn { padding: 4px 12px; font: 500 12px var(--mono); }
.ak-back .dc-term-out { height: 360px; overflow: auto; padding: 18px 20px; font: 400 13.5px/1.6 var(--mono); color: #d9d0f3; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; scrollbar-color: rgba(218, 200, 246, .3) transparent; }
.ak-back .dc-term-out .cmd { color: var(--ink); }
.ak-back .dc-term-out .hl { color: var(--pink); font-weight: 600; }
.ak-back .dc-term-out .dim { color: var(--dim); }
.ak-back .dc-term-out .ok { color: var(--mint); }
.ak-back .dc-term-out .bad { color: #ff9aa8; }
.ak-back .dc-term-out .code { display: block; margin: 6px 0; padding: 12px 14px; border-radius: 12px; background: rgba(218, 200, 246, .06); border-left: 2px solid var(--lilac); color: var(--lilac); }
.ak-back .dc-term-in { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); font: 500 13.5px var(--mono); }
.ak-back .dc-term-in label { color: var(--mint); white-space: nowrap; }
.ak-back .dc-term-in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; caret-color: var(--pink); }
.ak-back .dc-term-in:focus-within { background: rgba(218, 200, 246, .04); }

/* =====================================================================
   08 · KNOWLEDGE
   ===================================================================== */
.ak-back .dc-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 8px; }
.ak-back .dc-tools input[type="search"] {
  flex: 1 1 280px; min-width: 0; padding: 13px 20px; border-radius: 99px; font: 400 15px var(--sans); color: var(--ink);
  background: var(--glass); border: 1px solid var(--line2); outline: none; transition: border-color .2s, box-shadow .2s;
}
.ak-back .dc-tools input::placeholder { color: var(--dim); }
.ak-back .dc-tools input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(244, 182, 209, .18); }
.ak-back .dc-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ak-back .dc-filter button { padding: 8px 15px; border-radius: 99px; cursor: pointer; font: 500 13px var(--sans); color: var(--mute); background: var(--glass); border: 1px solid var(--line); transition: all .25s; }
.ak-back .dc-filter button:hover { color: var(--ink); border-color: var(--line2); }
.ak-back .dc-filter button[aria-pressed="true"] { color: #1a1030; background: var(--lilac); border-color: var(--lilac); }
.ak-back .dc-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-top: 18px; }
.ak-back .dc-kb details { border-radius: 22px; background: var(--glass); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.ak-back .dc-kb details[open] { background: var(--glass2); border-color: var(--line2); }
.ak-back .dc-kb summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative; }
.ak-back .dc-kb summary::-webkit-details-marker { display: none; }
.ak-back .dc-kb summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); font: 400 16px var(--mono); transition: transform .3s; }
.ak-back .dc-kb details[open] summary::after { transform: rotate(45deg); }
.ak-back .dc-kb summary b { display: block; font: 400 21px/1.2 var(--serif); }
.ak-back .dc-kb summary small { display: block; margin-top: 4px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); }
.ak-back .dc-kb .body { padding: 0 22px 22px; }
.ak-back .dc-kb .body p { color: var(--mute); font-size: 15px; margin-top: 10px; }
.ak-back .dc-kb pre { position: relative; margin: 14px 0 0; padding: 16px; border-radius: 14px; background: #07050f; border: 1px solid var(--line); overflow-x: auto; font: 400 12.5px/1.6 var(--mono); color: var(--lilac); }
.ak-back .dc-kb pre .copy { position: absolute; top: 8px; right: 8px; padding: 3px 10px; border-radius: 99px; cursor: pointer; font: 500 11px var(--mono); color: var(--mute); background: var(--glass2); border: 1px solid var(--line2); }
.ak-back .dc-kb pre .copy:hover { color: var(--ink); }

/* =====================================================================
   09 · CREDENTIALS
   ===================================================================== */
.ak-back .dc-certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ak-back .dc-cert { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.ak-back .dc-logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: #fff; padding: 8px; font: 500 24px var(--serif); color: #2c2362; }
.ak-back .dc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ak-back .dc-cert b { display: block; font: 400 19px/1.25 var(--serif); letter-spacing: -.01em; }
.ak-back .dc-cert small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--dim); }
.ak-back .dc-cert a { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--pink); text-decoration: none; }
.ak-back .dc-cert a::after { content: " ↗"; transition: margin .2s; }
.ak-back .dc-cert a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ak-back .dc-cert .dc-v { margin-top: auto; }
.ak-back .dc-ach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.ak-back .dc-ach li { padding: 18px 20px; border-radius: 22px; border: 1px dashed var(--line2); }
.ak-back .dc-ach .when { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.ak-back .dc-ach b { display: block; font: 400 19px/1.25 var(--serif); margin: 6px 0 2px; }
.ak-back .dc-ach small { color: var(--dim); font-size: 13.5px; }

/* =====================================================================
   10 · RECOMMENDATIONS
   ===================================================================== */
.ak-back .dc-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ak-back .dc-quote { padding: 32px 28px 26px; }
.ak-back .dc-quote::after { content: "“"; position: absolute; top: -4px; right: 20px; font: 400 130px/1 var(--serif); color: rgba(244, 182, 209, .18); pointer-events: none; }
.ak-back .dc-quote blockquote { margin: 0; font: 400 21px/1.4 var(--serif); position: relative; }
.ak-back .dc-quote figcaption { margin-top: 22px; font-size: 14px; color: var(--mute); }
.ak-back .dc-quote figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* =====================================================================
   11 · CONTACT
   ===================================================================== */
.ak-back .dc-bigmail { display: block; font: 400 clamp(26px, 3.4vw, 42px)/1.15 var(--serif); letter-spacing: -.02em; word-break: break-all; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 8px; text-decoration-color: var(--line2); transition: text-decoration-color .3s, color .3s; margin-bottom: 22px; }
.ak-back .dc-bigmail:hover { text-decoration-color: var(--pink); color: var(--pink); }
.ak-back .dc-chan li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.ak-back .dc-chan .k { flex: none; width: 82px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.ak-back .dc-chan .v { flex: 1; min-width: 0; font-size: 14.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-back .dc-chan .acts { display: flex; gap: 6px; }
.ak-back .dc-form { display: grid; gap: 14px; }
.ak-back .dc-form label { display: grid; gap: 6px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ak-back .dc-form select, .ak-back .dc-form textarea { width: 100%; padding: 12px 16px; border-radius: 16px; font: 400 15px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: rgba(7, 5, 15, .6); border: 1px solid var(--line2); outline: none; }
.ak-back .dc-form select option { background: #130e30; }
.ak-back .dc-form textarea { min-height: 110px; resize: vertical; }
.ak-back .dc-form select:focus, .ak-back .dc-form textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(244, 182, 209, .16); }
.ak-back .dc-form small { color: var(--dim); font-size: 13px; }
.ak-back .dc-end { margin-top: 110px; text-align: center; font: 400 13px var(--mono); color: var(--dim); }

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 1000px) {
  .ak-back .dc-hero { grid-template-columns: 1fr; gap: 44px; min-height: 0; }
  .ak-back .dc-hero-r { justify-content: flex-start; }
  .ak-back .dc-proof { grid-template-columns: repeat(2, 1fr); }
  .ak-back .dc-lab, .ak-back .dc-xp { grid-template-columns: minmax(0, 1fr); }
  .ak-back .dc-lab-l { position: static; }
  .ak-back .dc-bento { grid-template-columns: repeat(2, 1fr); }
  .ak-back .dc-bento > .dc-card:nth-child(n) { grid-column: span 1; }
  .ak-back .dc-certs, .ak-back .dc-ach { grid-template-columns: repeat(2, 1fr); }
  .ak-back .dc-brand em { display: none; }
}
@media (max-width: 720px) {
  .ak-back { --bar: 68px; }
  .ak-back .dc-wrap { padding: calc(var(--bar) + 34px) 18px 100px; }
  .ak-back .dc-sec { margin-top: 88px; }
  .ak-back .dc-sec.dc-hero { margin-top: 0; }
  .ak-back .dc-brand { display: none; }
  .ak-back .dc-return-t { display: none; }
  .ak-back .dc-return { padding: 0 12px; }
  .ak-back .dc-chips-nav { margin-left: 0; flex: 1; }
  .ak-back .dc-flow { grid-template-columns: 1fr; gap: 22px; }
  .ak-back .dc-step, .ak-back .dc-step + .dc-step { padding: 0; border-left: 0; }
  .ak-back .dc-step + .dc-step { padding-top: 22px; border-top: 1px dashed var(--line2); }
  .ak-back .dc-case { padding: 24px 20px; border-radius: 26px; }
  .ak-back .dc-case-ghost { font-size: 130px; right: 6px; top: -10px; }
  .ak-back .dc-bento, .ak-back .dc-focus, .ak-back .dc-kb, .ak-back .dc-gh-row, .ak-back .dc-gh-row.two, .ak-back .dc-certs, .ak-back .dc-ach { grid-template-columns: 1fr; }
  .ak-back .dc-gh-stats { grid-template-columns: repeat(2, 1fr); }
  .ak-back .dc-badge { padding: 44px 20px 20px; }
  .ak-back .dc-chan li { flex-wrap: wrap; }
  .ak-back .dc-chan .v { flex-basis: calc(100% - 100px); }
  .ak-back .dc-term-out { height: 300px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .ak-back *, .ak-back *::before, .ak-back *::after { animation: none !important; transition: none !important; }
  .ak-back .dc-rv { opacity: 1; transform: none; }
}


/* =====================================================================
   v3 additions: GitHub snake, languages, channels, arcade
   ===================================================================== */
.ak-back code { font: 500 .88em var(--mono); padding: 2px 8px; border-radius: 8px; background: var(--glass2); color: var(--pink); }
.ak-back .dc-pub { display: block; font-size: 14.5px; line-height: 1.45; margin-top: 4px; }
.ak-back .dc-pub a { color: var(--lilac); text-underline-offset: 4px; }

/* snake card */
.ak-back .dc-snake-card { padding: 24px; margin-bottom: 16px; }
.ak-back .dc-snake-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; }
.ak-back .dc-snake-head .dc-cap { margin: 0; }
.ak-back .dc-snake-meta { font: 400 13px/1.6 var(--mono); color: var(--mute); }
.ak-back .dc-snake-meta b { color: var(--mint); font-weight: 500; }
.ak-back .dc-snake-wrap { display: flex; justify-content: center; padding: 22px 0 10px; overflow: hidden; }
.ak-back .dc-snake-wrap canvas { display: block; max-width: 100%; }
.ak-back .dc-snake-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-top: 10px; }
.ak-back .dc-snake-foot .dc-note { margin: 0; }
.ak-back .dc-legend-s { display: inline-flex; align-items: center; gap: 5px; font: 400 12px var(--mono); color: var(--dim); }
.ak-back .dc-legend-s i { width: 12px; height: 12px; border-radius: 3px; background: rgba(218, 200, 246, .07); }
.ak-back .dc-legend-s i[data-l="1"] { background: rgba(168, 230, 216, .32); }
.ak-back .dc-legend-s i[data-l="2"] { background: rgba(168, 230, 216, .52); }
.ak-back .dc-legend-s i[data-l="3"] { background: rgba(168, 230, 216, .76); }
.ak-back .dc-legend-s i[data-l="4"] { background: var(--mint); box-shadow: 0 0 8px rgba(168, 230, 216, .8); }

/* languages */
.ak-back .dc-langs-card { padding: 24px; }
.ak-back .dc-langbar { display: flex; gap: 3px; height: 14px; margin: 4px 0 18px; border-radius: 99px; overflow: hidden; }
.ak-back .dc-langbar i { display: block; min-width: 8px; border-radius: 99px; }
.ak-back .dc-langs { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ak-back .dc-langs li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; }
.ak-back .dc-langs li i { width: 10px; height: 10px; border-radius: 50%; }
.ak-back .dc-langs em { font: 400 12px var(--mono); color: var(--dim); font-style: normal; }

/* channels: one wide card, tiles in a row */
.ak-back .dc-comms { padding: 28px; }
.ak-back .dc-chan-h { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.ak-back .dc-tile { display: grid; gap: 8px; height: 100%; padding: 20px 22px; border-radius: 22px; text-decoration: none; background: var(--glass2); border: 1px solid var(--line); transition: transform .5s var(--spring), border-color .3s, background .3s; }
.ak-back .dc-tile:hover { transform: translateY(-5px); border-color: var(--pink); background: rgba(244, 182, 209, .08); }
.ak-back .dc-tile .k { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }
.ak-back .dc-tile .v { font: 400 19px/1.25 var(--serif); color: var(--ink); word-break: break-all; }
.ak-back .dc-tile .go { font-size: 13.5px; font-weight: 600; color: var(--pink); }
.ak-back .dc-comms-cta { margin-top: 24px; text-align: center; }

/* arcade (lives inside the terminal window) */
.ak-back .dc-arc { padding: 16px 18px 20px; background: radial-gradient(ellipse at 50% -10%, rgba(150, 120, 230, .18), transparent 62%), #07050f; min-height: 420px; }
.ak-back .dc-arc-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
.ak-back .dc-arc-title { font: 600 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); text-shadow: 0 0 14px rgba(244, 182, 209, .6); }
.ak-back .dc-arc-score { font: 500 13px var(--mono); color: var(--ink); }
.ak-back .dc-arc-best { font: 500 13px var(--mono); color: var(--mint); }
.ak-back .dc-arc-btns { margin-left: auto; display: flex; gap: 6px; }
.ak-back .dc-arc-btns .dc-btn { padding: 5px 14px; font: 500 12px var(--mono); }
.ak-back .dc-arc-body { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ak-back .dc-arc-board { position: relative; width: 100%; }
.ak-back .dc-arc-board.is-game { width: 100%; max-width: var(--w, 420px); margin: 0 auto; }
.ak-back .dc-arc-cv { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 18px; background: #07050f; border: 1px solid var(--line2); box-shadow: 0 0 0 1px rgba(168, 230, 216, .08), 0 0 44px rgba(150, 120, 230, .22); touch-action: none; user-select: none; -webkit-user-select: none; }
.ak-back .dc-arc-hint { margin-top: 14px; text-align: center; font: 400 12.5px/1.5 var(--mono); color: var(--dim); }
.ak-back .dc-arc-over { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 16px; border-radius: 18px; background: rgba(7, 5, 15, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ak-back .dc-arc-big { font: 400 clamp(32px, 6vw, 44px)/1.05 var(--serif); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; margin-bottom: 8px; }
.ak-back .dc-arc-over p { color: var(--mute); font-size: 15px; }
.ak-back .dc-arc-over b { color: var(--mint); }
.ak-back .dc-arc-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

.ak-back .dc-arc-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.ak-back .dc-arc-pick { display: grid; gap: 8px; align-content: start; text-align: left; cursor: pointer; padding: 22px; border-radius: 22px; color: var(--ink); background: var(--glass); border: 1px solid var(--line2); transition: transform .5s var(--spring), border-color .3s, background .3s; }
.ak-back .dc-arc-pick:hover { transform: translateY(-5px); border-color: var(--pink); background: rgba(244, 182, 209, .07); }
.ak-back .dc-arc-pick i { display: block; width: 36px; height: 36px; font-style: normal; color: var(--mint); filter: drop-shadow(0 0 8px currentColor); transition: transform .5s var(--spring); }
.ak-back .dc-arc-pick i svg { display: block; width: 100%; height: 100%; }
.ak-back .dc-arc-pick:hover i { transform: scale(1.14) rotate(-6deg); }
.ak-back .dc-arc-pick:nth-child(3n+2) i { color: var(--pink); }
.ak-back .dc-arc-pick:nth-child(3n) i { color: var(--lilac); }
.ak-back .dc-arc-pick:nth-child(4) i { color: var(--peach); }
.ak-back .dc-arc-pick b { font: 400 25px/1.1 var(--serif); }
.ak-back .dc-arc-pick span { font-size: 14.5px; color: var(--mute); line-height: 1.5; }
.ak-back .dc-arc-pick em { font: 400 12px var(--mono); color: var(--dim); font-style: normal; }

/* touch pads: shown on touch devices and narrow screens */
.ak-back .dc-arc-ctrl { display: none; }
.ak-back .dc-arc.is-touch .dc-arc-ctrl:not([hidden]) { display: block; }
.ak-back .dc-pad { display: grid; gap: 10px; user-select: none; -webkit-user-select: none; touch-action: none; }
.ak-back .dc-pad-4 { grid-template-columns: repeat(3, 66px); grid-template-areas: ". up ." "left . right" ". down ."; }
.ak-back .dc-pad-4 .up { grid-area: up; } .ak-back .dc-pad-4 .left { grid-area: left; } .ak-back .dc-pad-4 .right { grid-area: right; } .ak-back .dc-pad-4 .down { grid-area: down; }
.ak-back .dc-pad-1 { grid-template-columns: 1fr; width: min(100%, 340px); }
.ak-back .dc-pad-b.jump { font: 600 16px var(--mono); letter-spacing: .24em; }
.ak-back .dc-dx { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ak-back .dc-dx .dc-btn:disabled { opacity: .35; cursor: default; }
.ak-back .dc-arc-ctrl:has(.dc-dx) { display: block !important; }
.ak-back .dc-pad-2 { grid-template-columns: repeat(2, 1fr); width: min(100%, 340px); }
.ak-back .dc-pad-b { height: 66px; border-radius: 20px; cursor: pointer; font-size: 26px; line-height: 1; color: var(--ink); background: rgba(218, 200, 246, .08); border: 1px solid var(--line2); touch-action: none; -webkit-tap-highlight-color: transparent; transition: background .12s, transform .12s; }
.ak-back .dc-pad-b.is-down { background: var(--lilac); color: #1a1030; transform: scale(.94); }
@media (max-width: 900px) { .ak-back .dc-arc-ctrl:not([hidden]) { display: block; } }

/* memory match */
.ak-back .dc-mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 420px; margin: 0 auto; }
.ak-back .dc-mem-c { aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; perspective: 700px; -webkit-tap-highlight-color: transparent; }
.ak-back .dc-mem-c .in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.ak-back .dc-mem-c.is-open .in { transform: rotateY(180deg); }
.ak-back .dc-mem-c .f, .ak-back .dc-mem-c .b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ak-back .dc-mem-c .f { background: linear-gradient(145deg, #1d1646, #110c2b); border: 1px solid var(--line2); color: var(--dim); font: 500 22px var(--mono); }
.ak-back .dc-mem-c:hover .f { border-color: var(--pink); }
.ak-back .dc-mem-c .b { transform: rotateY(180deg); color: var(--c); background: rgba(218, 200, 246, .07); border: 1.5px solid var(--c); font: 600 clamp(15px, 4.2vw, 24px) var(--mono); text-shadow: 0 0 14px var(--c); }
.ak-back .dc-mem-c.is-done .b { background: rgba(168, 230, 216, .12); box-shadow: 0 0 18px -2px var(--c); }

/* retro // ARCADE title */
.ak-back .dc-arc-title.is-retro { font: 400 15px/1 'Press Start 2P', var(--mono); letter-spacing: .04em; text-transform: none; color: var(--mint); text-shadow: none; display: inline-flex; align-items: center; padding: 6px 0; }
.ak-back .dc-arc-title.is-retro span { display: inline-flex; }
.ak-back .dc-arc-title.is-retro i { font-style: normal; display: inline-block; animation: dc-wave 1.8s ease-in-out infinite, dc-hue 6s linear infinite; animation-delay: calc(var(--i) * 110ms), calc(var(--i) * -400ms); text-shadow: 0 0 9px currentColor; }
.ak-back .dc-arc-title.is-retro::after { content: ""; width: 9px; height: 15px; margin-left: 6px; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: dc-blink 1s steps(1) infinite; }
@keyframes dc-wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@keyframes dc-hue { 0% { color: var(--mint); } 33% { color: var(--lilac); } 66% { color: var(--pink); } 100% { color: var(--mint); } }
@keyframes dc-blink { 50% { opacity: 0; } }

/* terminal ARCADE button: little animated game-pad chip */
.ak-back .dc-btn.dc-arcbtn { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 10px; border-color: transparent; color: var(--mint); background: linear-gradient(#0d0a20, #0d0a20) padding-box, conic-gradient(from var(--a, 0deg), var(--mint), var(--lilac), var(--pink), var(--peach), var(--mint)) border-box; border: 1.5px solid transparent; animation: dc-spin 3.2s linear infinite; box-shadow: 0 0 16px -4px rgba(168, 230, 216, .55); }
.ak-back .dc-btn.dc-arcbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: dc-pad 2.6s ease-in-out infinite; transform-origin: 50% 70%; }
.ak-back .dc-btn.dc-arcbtn svg circle { fill: currentColor; stroke: none; }
.ak-back .dc-btn.dc-arcbtn b { font: 400 9.5px/1 'Press Start 2P', var(--mono); letter-spacing: .04em; }
.ak-back .dc-btn.dc-arcbtn i { width: 6px; height: 10px; background: var(--pink); box-shadow: 0 0 8px var(--pink); animation: dc-blink 1s steps(1) infinite; }
.ak-back .dc-btn.dc-arcbtn:hover { transform: translateY(-2px) scale(1.04); color: #fff; background: linear-gradient(#1b1440, #1b1440) padding-box, conic-gradient(from var(--a, 0deg), var(--mint), var(--lilac), var(--pink), var(--peach), var(--mint)) border-box; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes dc-spin { to { --a: 360deg; } }
@keyframes dc-pad { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-14deg) scale(1.1); } 86% { transform: rotate(12deg) scale(1.1); } 94% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .ak-back .dc-arc-title.is-retro i, .ak-back .dc-btn.dc-arcbtn, .ak-back .dc-btn.dc-arcbtn svg, .ak-back .dc-btn.dc-arcbtn i, .ak-back .dc-arc-title.is-retro::after { animation: none; } }

@media (max-width: 720px) {
  .ak-back .dc-arc { padding: 14px 12px 18px; }
  .ak-back .dc-arc-menu { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ak-back .dc-arc-pick { padding: 16px 14px; gap: 6px; border-radius: 18px; }
  .ak-back .dc-arc-pick b { font-size: 20px; }
  .ak-back .dc-arc-pick span { display: none; }
  .ak-back .dc-arc-title.is-retro { font-size: 12px; }
  /* AI lab on phones: compact sketch card, focus areas as a swipeable row instead of a tall tower */
  .ak-back .dc-lab-l .dc-card { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 18px; }
  .ak-back .dc-lab-l .dc-cap { grid-column: 1 / -1; }
  .ak-back .dc-lab-l .dc-net { grid-column: 1; grid-row: 2; }
  .ak-back .dc-lab-l .dc-facts-l { grid-column: 2; grid-row: 2; margin-top: 0; gap: 8px; }
  .ak-back .dc-lab-l .dc-facts-l dd { font-size: 13.5px; line-height: 1.4; }
  .ak-back .dc-focus { display: flex; grid-template-columns: none; overflow-x: auto; gap: 12px; margin-inline: -18px; padding: 2px 18px 8px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; -webkit-overflow-scrolling: touch; }
  .ak-back .dc-focus::-webkit-scrollbar { display: none; }
  .ak-back .dc-focus .dc-card { flex: 0 0 78%; scroll-snap-align: start; padding: 18px; }
  .ak-back .dc-focus h3 { font-size: 21px; }
  /* case-study picker: one horizontal swipeable row */
  .ak-back .dc-tabs-row { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-inline: -18px; padding: 2px 18px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: 18px; }
  .ak-back .dc-tabs-row::-webkit-scrollbar { display: none; }
  .ak-back .dc-tabs-row button { flex: 0 0 auto; gap: 8px; padding: 8px 14px 8px 9px; font-size: 14px; white-space: nowrap; scroll-snap-align: start; }
  .ak-back .dc-snake-card, .ak-back .dc-langs-card, .ak-back .dc-comms { padding: 20px 18px; }
  .ak-back .dc-chan-h { grid-template-columns: 1fr; }
}


/* v5: no page-progress line, no "08 / 08" counter, no scrollbar on the night side */
.ak-back .dc-progress { display: none !important; }

.ak-back .dc-btn.dc-snd.is-off { opacity: .55; text-decoration: line-through; }
