:root {
  --bg: #09090d;
  --fg: #eceef4;
  --muted: #a3a7b8;
  --dim: #646879;
  --hair: rgba(255, 255, 255, 0.08);
  --accent: #a9bcff;
  --accent-2: #d3dbff;
  --online: #7ed7a5;
  --idle: #f3c86b;
  --dnd: #f07a7a;
  --offline: #6b6f7d;
  --gutter: clamp(16px, 7vw, 140px);
  --ui: 1; /* set by script.js: whole-layout scale on desktop */
  --panel-w: 680px;
  --wide-w: 980px;
  --card-fill: rgba(10, 10, 15, 0.62);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: grab;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
body.dragging { cursor: grabbing; user-select: none; }

::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; border-radius: 6px; }
[hidden] { display: none !important; }

#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.caret { animation: blink 1.1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* ── enter screen ───────────────────────── */
.enter {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(9, 9, 13, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.enter.hidden { opacity: 0; visibility: hidden; }
.enter-inner { display: grid; gap: 10px; text-align: center; }
.enter-name { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; }
.enter-hint { color: var(--muted); font-size: 13px; }

/* ── current section label ──────────────── */
.where {
  position: fixed;
  z-index: 20;
  top: calc(26px * var(--ui));
  transform-origin: left top;
  left: var(--gutter);
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px var(--bg);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(var(--ui));
  transition: opacity .6s ease .3s, transform .7s var(--ease) .3s;
}
body.entered .where { opacity: 1; transform: scale(var(--ui)); }
.where-idx { color: var(--accent); }
.where-sep { color: var(--dim); }
.where-name { color: var(--fg); }

/* ── cards ──────────────────────────────── */
.stage { position: relative; z-index: 2; }

.panel {
  --fp: 34px;          /* space reserved around each card for its frame (used when fitting cards) */
  position: relative;
  width: 100%;
  max-width: var(--panel-w);
  padding: 40px 46px;
  font-size: 16px;
  cursor: auto;
  border-radius: 18px;
  background: var(--card-fill);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  text-shadow: 0 1px 10px rgba(9, 9, 13, 0.9);
}
.panel.wide { max-width: var(--wide-w); }
#profile { padding-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ascii-img { display: block; }
.panel > * { position: relative; z-index: 1; }

/* ascii frames (canvas, drawn by script.js) */
.ascii-frame {
  position: absolute !important;
  z-index: 2 !important;
  left: calc(var(--fp) * -1);
  top: calc(var(--fp) * -1);
  pointer-events: none;
}
.box { position: relative; --fp: 0px; }
.box > :not(.ascii-frame) { position: relative; z-index: 1; }

/* staggered reveal of card contents (class added by js) */
.rv {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 140ms);
}
.panel.active .rv { opacity: 1; transform: none; }

/* desktop: fixed stage, cards are positioned by the spring in script.js */
@media (min-width: 900px) and (min-height: 700px) {
  :root { --gutter: calc(140px * var(--ui)); }
  html.paged, html.paged body { overflow: hidden; height: 100%; }
  .stage {
    position: fixed;
    inset: calc(76px * var(--ui)) 0 calc(112px * var(--ui));
    z-index: 2;
    pointer-events: none;
  }
  .panel {
    position: absolute;
    left: var(--gutter);
    top: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    transform-origin: left center;
  }
  .panel.active { pointer-events: auto; }
}

/* mobile / short screens: normal flowing page */
@media not all and (min-width: 900px) and (min-height: 700px) {
  .stage {
    display: grid;
    justify-items: center;
    gap: 40px;
    padding: 64px 16px 120px;
  }
  .panel { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .8s var(--ease); }
  .panel.active { opacity: 1; transform: none; }
  .cue { display: none; }
}

/* ── profile ────────────────────────────── */
.banner {
  height: 230px;
  margin: 0 -46px;
  border-radius: 18px 18px 0 0;
  background: center / cover no-repeat;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent);
  mask-image: linear-gradient(to bottom, #000 35%, transparent);
}
.profile { display: flex; gap: 32px; align-items: flex-end; margin-top: -110px; }

.avatar-wrap { position: relative; flex: none; width: 190px; height: 190px; }
.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #15151c;
  box-shadow: 0 0 0 5px rgba(9, 9, 13, 0.9), 0 18px 40px -14px rgba(0, 0, 0, 0.9);
}
.decoration { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; pointer-events: none; }
.dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 5px solid var(--bg);
  background: var(--offline);
}
.dot.online { background: var(--online); }
.dot.idle { background: var(--idle); }
.dot.dnd { background: var(--dnd); }

.identity { min-width: 0; padding-bottom: 6px; }
.name-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.ascii-name { height: 200px; }
.name-meta { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.clan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
}
.clan::before { content: "("; color: var(--dim); }
.clan::after { content: ")"; color: var(--dim); }
.clan img { width: 16px; height: 16px; }
.badges { display: inline-flex; gap: 4px; }
.badges img { width: 24px; height: 24px; }
.handle { margin-top: 2px; color: var(--muted); font-size: 17px; }
.bio { margin-top: 8px; min-height: 1.5em; font-size: 19px; }

.presence { display: flex; align-items: center; gap: 20px; margin-top: 34px; padding: 22px 24px; }
.pr-art {
  flex: none;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: center / cover no-repeat;
  color: var(--accent);
}
.pr-art .ico-big { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: rgba(88, 101, 242, 0.14); }
.pr-art .ico-big svg { width: 36px; height: 36px; }
svg .svg-fill, .svg-fill { fill: currentColor; }
.svg-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico svg, .contact-ico svg { width: 1.1em; height: 1.1em; display: block; filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 45%, transparent)); }
.ico, .contact-ico { display: inline-grid; place-items: center; }
.pr-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pr-info > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-label { color: var(--dim); font-size: 13px; }
.pr-title { font-weight: 500; font-size: 18px; }
.pr-sub { color: var(--muted); font-size: 14px; }
.pr-sub:empty { display: none; }
.pr-bar { margin-top: 4px; color: var(--dim); font-size: 12px; letter-spacing: -0.5px; }
.fill { color: var(--accent); }

/* ascii buttons: ( label ) */
.btn, .link, .chip { white-space: nowrap; }
.btn {
  flex: none;
  padding: 4px 2px;
  font-size: 13px;
  color: var(--muted);
  transition: color .25s, transform .35s var(--spring);
}
.btn::before, .link::before, .chip::before { content: "( "; color: var(--dim); transition: color .25s; }
.btn::after, .link::after, .chip::after { content: " )"; color: var(--dim); transition: color .25s; }
.btn:hover { color: var(--fg); }
.btn:hover::before, .btn:hover::after, .link:hover::before, .link:hover::after { color: var(--accent); }
.btn:active, .link:active { transform: scale(0.95); }

.links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; }
.link {
  display: inline-flex;
  align-items: baseline;
  padding: 6px 0;
  font-size: 16px;
  transition: color .25s, transform .35s var(--spring);
}
.link:hover { transform: translateY(-2px); }
.link { align-items: center; }
.link .ico { margin-right: 10px; }
.link .arrow { color: var(--dim); margin-left: 9px; transition: color .25s, transform .35s var(--spring); }
.link:hover .arrow { color: var(--accent); transform: translateX(3px); }

.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--dim);
  font-size: 13px;
}
.hint-btn { color: var(--dim); font-size: 13px; transition: color .2s; }
.hint-btn:hover { color: var(--fg); }

/* ── shared section bits ────────────────── */
.panel-title { display: flex; align-items: baseline; gap: 16px; font-size: 36px; font-weight: 700; }
.panel-title .num { font-size: 13px; font-weight: 500; color: var(--accent); }
.sub-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.sub-title::before { content: "--"; }
.sub-title::after { content: ""; flex: 1; border-top: 1px dashed rgba(255, 255, 255, 0.1); }
.lead { margin-top: 12px; color: var(--muted); font-size: 15px; }
.big { margin-top: 18px; font-size: 28px; font-weight: 700; }

/* ── projects ───────────────────────────── */
.proj-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; margin-top: 28px; align-items: center; }
.proj-preview { display: grid; gap: 12px; padding: 16px 18px 18px; border-radius: 14px; cursor: pointer; }
.win-bar { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--dim); }
.win-dots { display: inline-flex; gap: 6px; font-weight: 700; }
.win-dots span:nth-child(1) { color: #f07a7a; }
.win-dots span:nth-child(2) { color: #f3c86b; }
.win-dots span:nth-child(3) { color: #7ed7a5; }
.win-url { color: var(--muted); }
.win-url::before { content: "( "; color: var(--dim); }
.win-url::after { content: " )"; color: var(--dim); }
.win-body { position: relative; display: block; aspect-ratio: 1200 / 630; border-radius: 10px; overflow: hidden; background: #050507; }
.win-body .ascii-img, .proj-img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s ease; }
.proj-img { object-fit: cover; opacity: 0; }
.proj-preview:hover .proj-img { opacity: 1; }
.proj-preview:hover .win-body .ascii-img { opacity: 0; }
.featured { padding: 4px 0; }
.proj-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.proj-nav { display: flex; align-items: center; gap: 16px; }
.nav-btn { white-space: nowrap; font-size: 18px; color: var(--fg); padding: 4px 2px; transition: color .25s, transform .35s var(--spring); }
.nav-btn::before { content: "( "; color: var(--dim); transition: color .25s; }
.nav-btn::after { content: " )"; color: var(--dim); transition: color .25s; }
.nav-btn:hover { color: var(--accent); }
.nav-btn:hover::before, .nav-btn:hover::after { color: var(--accent); }
#proj-prev:hover { transform: translateX(-3px); }
#proj-next:hover { transform: translateX(3px); }
.nav-btn:active { transform: scale(0.92) !important; }
.proj-count { min-width: 52px; text-align: center; font-size: 14px; color: var(--muted); }
.proj-slide { transition: opacity .28s ease, transform .5s var(--spring); }
.proj-slide.out-left { opacity: 0; transform: translateX(-40px); transition: opacity .24s ease, transform .26s ease-in; }
.proj-slide.out-right { opacity: 0; transform: translateX(40px); transition: opacity .24s ease, transform .26s ease-in; }
.proj-slide.in-right { opacity: 0; transform: translateX(40px); transition: none; }
.proj-slide.in-left { opacity: 0; transform: translateX(-40px); transition: none; }
.proj-dots { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.proj-dot { font-size: 14px; color: var(--dim); padding: 2px 4px; transition: color .25s, transform .35s var(--spring); }
.proj-dot:hover { color: var(--muted); }
.proj-dot.active { color: var(--accent); transform: scale(1.25); text-shadow: 0 0 10px rgba(169, 188, 255, 0.7); }
.proj-offline { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--dnd); text-shadow: 0 1px 8px #000; }
.live.off { color: var(--dnd); }
.live.off::before { background: var(--dnd); animation: none; }
.feat-note { margin-top: 14px; color: var(--dim); font-size: 13px; }
.old-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.old-card { display: grid; gap: 6px; padding: 18px 22px; border-radius: 12px; }
.old-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.old-name { font-weight: 500; font-size: 17px; color: var(--muted); }
.old-name::before { content: "> "; color: var(--dim); }
.old-desc { color: var(--dim); font-size: 14px; }
.feat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feat-name { font-size: 34px; font-weight: 700; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--online); }
.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(126, 215, 165, .6); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(126, 215, 165, 0); }
}
.feat-tagline { margin-top: 8px; font-size: 16px; }
.feat-desc { margin-top: 10px; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; }
.chip { font-size: 13px; color: var(--muted); }
.feat-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 16px; }

.project-list { display: grid; gap: 2px; }
.project { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; }
.project-name { font-weight: 500; color: var(--muted); }
.project-name::before { content: "> "; color: var(--dim); }
.project-desc { grid-column: 1 / -1; color: var(--dim); font-size: 14px; }
.status { font-size: 13px; align-self: center; color: var(--dim); }

/* ── experience ─────────────────────────── */
.skills { display: grid; gap: 18px; margin-top: 28px; }
.skill { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; }
.lang-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.lang-ico svg { width: 30px; height: 30px; filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 40%, transparent)); }
.skill-main { display: grid; gap: 4px; min-width: 0; }
.skill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.skill-name { font-size: 17px; font-weight: 500; }
.skill-note { color: var(--muted); font-size: 14px; }
.skill-bar { color: rgba(255, 255, 255, 0.14); font-size: 14px; letter-spacing: -0.5px; white-space: nowrap; overflow: hidden; }

/* ── contact ────────────────────────────── */
.contact-list { margin-top: 26px; padding: 10px 26px; }
.contact-row {
  display: grid;
  grid-template-columns: 74px auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.contact-row:last-child { border-bottom: 0; }
.contact-ico { font-size: 17px; }
.contact-label { color: var(--dim); font-size: 13px; }
.contact-value { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
a.contact-value:hover { color: var(--accent); }
.contact-actions { display: flex; gap: 14px; }

/* ── scroll guide (ascii arrow) ─────────── */
.cue {
  position: fixed;
  z-index: 15;
  left: 50%;
  bottom: calc(12px * var(--ui));
  transform-origin: bottom center;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 14px;
  color: var(--fg);
  text-shadow: 0 0 10px rgba(169, 188, 255, 0.35);
  opacity: 0;
  transform: translate(-50%, 16px) scale(var(--ui));
  transition: opacity .6s ease .6s, transform .8s var(--spring) .6s;
}
body.entered .cue { opacity: 1; transform: translate(-50%, 0) scale(var(--ui)); }
.cue-label { font-size: 10px; letter-spacing: 0.25em; padding-left: 0.25em; color: var(--dim); transition: color .2s; }
.cue:hover .cue-label { color: var(--muted); }
.cue-art { display: grid; font-size: 12px; line-height: 1.05; white-space: pre; }
.cue-art .lit { color: var(--accent); text-shadow: 0 0 8px rgba(169, 188, 255, 0.8); }
.cue.up .cue-label { order: 2; }
.cue.attention { animation: cue-bob 1.2s var(--spring) 2; }
@keyframes cue-bob {
  40% { transform: translate(-50%, 8px) scale(var(--ui)); }
  70% { transform: translate(-50%, -2px) scale(var(--ui)); }
}

/* ── ascii speaker (mute) ───────────────── */
.speaker {
  position: fixed;
  z-index: 15;
  right: calc(28px * var(--ui));
  bottom: calc(22px * var(--ui));
  transform-origin: bottom right;
  padding: 8px 10px;
  color: var(--fg);
  text-shadow: 0 1px 10px var(--bg);
  opacity: 0;
  transform: translateY(16px) scale(var(--ui));
  transition: opacity .6s ease .7s, transform .8s var(--spring) .7s;
}
body.entered .speaker { opacity: 1; transform: scale(var(--ui)); }
.speaker-art { display: block; white-space: pre; text-align: left; font-size: 12px; line-height: 1.1; color: rgba(236, 238, 244, 0.75); transition: color .25s, transform .35s var(--spring); }
.speaker:hover .speaker-art { color: var(--fg); transform: scale(1.06); }
.speaker:active .speaker-art { transform: scale(0.94); }
.speaker-art .w { color: var(--accent); text-shadow: 0 0 10px rgba(169, 188, 255, 0.8); }
.speaker-art .x { color: var(--dnd); }

/* ── toast ──────────────────────────────── */
.toast {
  position: fixed;
  z-index: 60;
  top: 22px;
  left: 50%;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.9);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px) scale(var(--ui));
  transform-origin: top center;
  transition: opacity .25s, transform .45s var(--spring);
}
.toast::before { content: "( "; color: var(--accent); }
.toast::after { content: " )"; color: var(--accent); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(var(--ui)); }

/* ── small screens ──────────────────────── */
@media (max-width: 899px) {
  body { cursor: auto; }
  .where { top: 18px; left: 50%; transform: translate(-50%, -8px); padding: 4px 12px; border-radius: 999px; background: rgba(9, 9, 13, 0.7); }
  body.entered .where { transform: translate(-50%, 0); }
  .panel { --card-fill: rgba(10, 10, 15, 0.78); }
  .speaker { right: 12px; bottom: 12px; border-radius: 14px; background: rgba(9, 9, 13, 0.82); }
}
@media (max-width: 560px) {
  .panel { padding: 24px 20px; font-size: 15px; }
  #profile { padding-top: 0; }
  .banner { height: 150px; margin: 0 -20px; }
  .profile { gap: 10px 16px; margin-top: -60px; align-items: flex-end; flex-wrap: wrap; }
  .identity { flex-basis: 100%; }
  .avatar-wrap { width: 108px; height: 108px; }
  .ascii-name { height: 56px; }
  .name-meta { padding-bottom: 6px; }
  .proj-grid { grid-template-columns: 1fr; gap: 22px; }
  .old-grid { grid-template-columns: 1fr; }
  .bio { font-size: 15px; }
  .presence { padding: 16px; gap: 14px; }
  .pr-art { width: 60px; height: 60px; }
  .panel-title { font-size: 28px; }
  .big { font-size: 22px; }
  .contact-list { padding: 6px 16px; }
  .contact-row { grid-template-columns: auto 1fr auto; }
  .contact-label { display: none; }
  .skill { gap: 14px; }
}

/* the scroll arrow is only for the desktop paging mode */
@media not all and (min-width: 900px) and (min-height: 700px) {
  .cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* ── ascii icons (canvas) ───────────────── */
.ico-art { display: block; }
.ico .ico-art, .contact-ico .ico-art { width: 1.6em; height: 1.6em; }
.lang-ico .ico-art { width: 44px; height: 44px; }
.pr-art .ico-big .ico-art { width: 50px; height: 50px; }

/* ── icon tiles ─────────────────────────── */
.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.5em;
  height: 1.5em;
  border-radius: 0.38em;
  background: var(--bg);
  color: var(--fg);
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: none;
  box-shadow: 0 0 16px -4px var(--bg), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
.ico.tile, .contact-ico.tile { font-size: 11px; width: 24px; height: 24px; border-radius: 7px; }
.ico.tile.long, .contact-ico.tile.long { font-size: 8.5px; }
.lang-ico.tile { width: 50px; height: 50px; border-radius: 13px; font-size: 18px; }
.lang-ico.tile.long { font-size: 14px; }
.tile.ico-big { width: 68px; height: 68px; border-radius: 18px; }
.tile.ico-big .ico-art { width: 50px; height: 50px; }

/* ── experience: one list ───────────────── */
.skills { grid-template-columns: 1fr; row-gap: 14px; }
.skill { gap: 18px; }
.lang-ico { width: 48px; height: 48px; border-radius: 13px; }
.lang-ico svg { width: 26px; height: 26px; }

/* ── nvservice preview: scrolling script behind amber lettering ── */
.code-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 10px 16px;
  font: 9px/1.4 var(--mono);
  color: rgba(247, 185, 85, 0.2);
  white-space: pre;
  overflow: hidden;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.look-code .win-body { background: #0c0906; }
.look-code .code-bg { opacity: 1; animation: code-scroll 22s linear infinite; }
.look-code .win-url { color: #f7b955; }
@keyframes code-scroll { to { transform: translateY(-50%); } }

/* ── profile header: name centred on the avatar ── */
.profile { align-items: center; }
.identity { flex: 1; display: grid; align-content: center; justify-items: start; gap: 10px; padding-bottom: 0; }
.id-top, .identity .bio { height: 30px; display: flex; align-items: center; margin: 0; }
.id-top { gap: 14px; }
.id-top .handle { margin: 0; }
.name-meta { padding-bottom: 0; }
.ascii-name { height: auto; }
@media (max-width: 560px) {
  .id-top, .identity .bio { height: auto; min-height: 26px; flex-wrap: wrap; }
  .identity { flex: 1 1 100%; min-width: 0; }
  .id-top { gap: 6px 12px; }
}

/* ── bigger profile card ── */
#profile { max-width: 1120px; }
#profile .banner { height: 260px; }
#profile .profile { margin-top: -128px; gap: 36px; }
#profile .avatar-wrap { width: 224px; height: 224px; }
#profile .presence { padding: 24px 26px; }
#profile .pr-title { font-size: 19px; }
#profile .bio { font-size: 20px; }
#profile .handle { font-size: 18px; }
@media (max-width: 560px) {
  #profile .banner { height: 150px; }
  #profile .profile { margin-top: -60px; gap: 10px 16px; }
  #profile .avatar-wrap { width: 108px; height: 108px; }
}
