/* ==========================================================
   Başak Şahan — portfolio · "infinite canvas" theme
   Palette: Midnight Black #02070A · Electric Blue #0297DE · Cantaloupe Orange #FC734D
   ========================================================== */

:root {
  --black: #02070A;
  --blue: #0297DE;
  --orange: #FC734D;

  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #02070A;
  --dot: rgba(255, 255, 255, .075);
  --frame: #0A1218;
  --frame-2: #0F1A21;
  --panel: #0C161C;
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #EEF3F6;
  --muted: #95A5AF;
  --dim: #62737D;
  --blue-ink: #3DB2EE;
  --orange-ink: #FF8F6E;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 24px 60px -30px rgba(0,0,0,.9);
  --img-bg: #F4F6F7;
  --paper: #F6EEE6;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #EEF1F3;
  --dot: rgba(2, 7, 10, .14);
  --frame: #FFFFFF;
  --frame-2: #F6F8F9;
  --panel: #FFFFFF;
  --border: rgba(2, 7, 10, .08);
  --border-2: rgba(2, 7, 10, .14);
  --text: #02070A;
  --muted: #52616B;
  --dim: #85939C;
  --blue-ink: #0177B3;
  --orange-ink: #D4502B;
  --shadow: 0 1px 2px rgba(2,7,10,.05), 0 24px 50px -30px rgba(2,40,70,.3);
  --img-bg: #F4F6F7;
  --paper: #FFF4EC;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background-color: var(--bg); color: var(--text);
  font-family: var(--f-ui); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px; background-attachment: fixed;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
em { font-family: var(--f-display); font-style: italic; font-weight: inherit; color: var(--orange-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, background-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { box-shadow: 0 8px 24px -8px var(--blue); transform: translateY(-1px); }
.btn--orange { background: var(--orange); color: var(--black); box-shadow: 0 10px 28px -12px var(--orange); }
.btn--orange:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--orange); }
.btn--ghost { background: var(--frame); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mark__box {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--orange); color: var(--black); font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: -.02em;
}
.file { display: flex; gap: 6px; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.file__path { color: var(--dim); }
.file__name { font-weight: 600; }
.avatars { display: flex; }
.avatar {
  display: grid; place-items: center; height: 28px; min-width: 28px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; border: 2px solid var(--panel);
}
.avatar--b { background: var(--orange); color: var(--black); }
.avatar--y { background: var(--blue); color: #fff; margin-left: -8px; }

.theme {
  position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 10px; cursor: pointer;
  background: var(--frame-2); border: 1px solid var(--border-2);
}
.theme::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 30px; height: 28px; border-radius: 7px;
  background: var(--frame); box-shadow: 0 1px 3px rgba(0,0,0,.25); border: 1px solid var(--border-2);
  transition: transform .3s var(--ease);
}
:root[data-theme="dark"] .theme::before { transform: translateX(32px); }
.theme__opt { position: relative; display: grid; place-items: center; width: 30px; height: 28px; color: var(--dim); transition: color .3s; }
.theme__opt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme__opt--dark svg { fill: currentColor; stroke: none; }
:root[data-theme="light"] .theme__opt--light { color: var(--orange-ink); }
:root[data-theme="dark"] .theme__opt--dark { color: var(--blue-ink); }

/* ---------- Canvas & frames ---------- */
.canvas { width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gutter) 120px; }
.frame-label {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12.5px; font-weight: 500; color: var(--dim);
  transition: color .2s;
}
.frame-label__icon { font-weight: 600; }
.section:hover > .frame-label, .hero:hover > .frame-label { color: var(--blue-ink); }
.frame {
  position: relative; background: var(--frame); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.section { padding-top: clamp(80px, 12vw, 140px); scroll-margin-top: 50px; }
.section__head { margin: 6px 0 clamp(28px, 4vw, 44px); max-width: 760px; }
.index {
  display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 10px; margin-bottom: 18px;
  border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--blue);
}
.h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.04; letter-spacing: -.035em; }
.h2 em { font-weight: 600; }
.section__sub { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 56ch; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Selection box ---------- */
.sel { position: relative; display: inline-block; padding: 2px 10px; outline: 1.5px solid var(--blue); outline-offset: 0; }
.sel__h { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--blue); border-radius: 1px; }
.sel__h--tl { top: -5px; left: -5px; } .sel__h--tr { top: -5px; right: -5px; }
.sel__h--bl { bottom: -5px; left: -5px; } .sel__h--br { bottom: -5px; right: -5px; }
.sel__dim {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  padding: 2px 7px; border-radius: 4px; background: var(--blue); color: #fff;
  font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 56px); }
.hero__stage {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(36px, 6vw, 76px) clamp(20px, 5vw, 64px) clamp(110px, 12vw, 150px);
  background: var(--frame); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden;
}
.chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--muted); background: var(--frame-2); border: 1px solid var(--border-2);
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #2FCB73; box-shadow: 0 0 0 4px rgba(47,203,115,.18); }
.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; line-height: 1;
  font-size: clamp(2.9rem, 8.6vw, 6.6rem);
}
.redline {
  position: relative; display: block; width: 1px; height: 48px; margin-left: 40px; background: var(--orange);
}
.redline::before, .redline::after { content: ""; position: absolute; left: -4px; width: 9px; height: 1px; background: var(--orange); }
.redline::before { top: 0; } .redline::after { bottom: 0; }
.redline span {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  padding: 1px 6px; border-radius: 4px; background: var(--orange); color: var(--black); font-size: 11px; font-weight: 600;
}
.hero__lead { margin: 0; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.hero__lead em { font-size: 1.1em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.portrait { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 340px; }
.portrait__label { position: absolute; top: -24px; left: 0; font-size: 12px; color: var(--dim); }
.portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%;
  border-radius: 18px; outline: 1.5px solid transparent; transition: outline-color .2s;
}
.portrait:hover img { outline-color: var(--blue); }
.comment {
  position: absolute; left: -18%; bottom: 10%; display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px 10px 10px; border-radius: 16px 16px 16px 4px; max-width: 230px;
  background: var(--panel); border: 1px solid var(--border-2); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45);
  font-size: 13.5px; line-height: 1.4; animation: bob 5s ease-in-out infinite;
}
.comment__avatar { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: var(--black); font-weight: 700; font-size: 12px; }
.comment__body b { display: block; font-size: 12px; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.stickies { position: absolute; inset: 0; pointer-events: none; }
.sticky {
  position: absolute; left: var(--x); top: var(--y); transform: translate(0, -50%) rotate(var(--r));
  width: 168px; min-height: 92px; padding: 14px 14px 16px; border-radius: 4px;
  font-family: var(--f-hand); font-size: 22px; font-weight: 700; line-height: 1.05;
  box-shadow: 0 14px 24px -12px rgba(0,0,0,.45), 0 2px 4px rgba(0,0,0,.1);
  pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: box-shadow .2s, scale .2s;
}
.sticky.is-drag { cursor: grabbing; scale: 1.05; box-shadow: 0 24px 40px -14px rgba(0,0,0,.55); z-index: 5; }
.sticky--orange { background: var(--orange); color: var(--black); }
.sticky--blue { background: var(--blue); color: #fff; }
.sticky--paper { background: var(--paper); color: var(--black); }
.hint { margin: 12px 0 0; text-align: right; font-family: var(--f-hand); font-size: 20px; color: var(--dim); }

/* Cursors */
.cursor { position: absolute; z-index: 20; pointer-events: none; display: flex; align-items: flex-start; }
.cursor svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.cursor span { margin: 16px 0 0 -4px; padding: 3px 9px; border-radius: 4px 10px 10px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cursor--b svg { fill: var(--orange); }
.cursor--b span { background: var(--orange); color: var(--black); }
.cursor--b { left: 62%; top: 30%; animation: wander 16s ease-in-out infinite; }
@keyframes wander {
  0%   { left: 62%; top: 22%; }
  18%  { left: 48%; top: 58%; }
  32%  { left: 44%; top: 60%; }
  50%  { left: 18%; top: 30%; }
  66%  { left: 30%; top: 78%; }
  82%  { left: 74%; top: 72%; }
  100% { left: 62%; top: 22%; }
}
.cursor--you { position: fixed; left: 0; top: 0; z-index: 90; opacity: 0; transition: opacity .25s; will-change: transform; }
.cursor--you svg { fill: var(--blue); }
.cursor--you span { background: var(--blue); color: #fff; }
.cursor--you.is-on { opacity: 1; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 5vw, 56px); }
.about__text .h2 { margin-bottom: 26px; }
.about__text p { margin: 0 0 16px; color: var(--muted); font-size: 1.07rem; }
.about__text strong { color: var(--text); }
.inspector { align-self: start; border-radius: 12px; background: var(--frame-2); border: 1px solid var(--border); font-size: 12.5px; overflow: hidden; }
.inspector__tabs { display: flex; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--dim); font-weight: 600; }
.inspector__tabs .is-on { color: var(--text); }
.inspector__group { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.inspector__group:last-child { border-bottom: 0; }
.inspector__title { margin: 0 0 8px; font-weight: 600; font-size: 12px; }
.prop { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 4px 0; }
.prop span { color: var(--dim); }
.prop b { font-weight: 500; }
.swatches { display: grid; gap: 6px; }
.swatch { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; color: var(--muted); }
.swatch i { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--border-2); }

/* ---------- Cases ---------- */
.case {
  display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 4vw, 48px); margin-bottom: 28px;
}
.case--flip { grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); }
.case--flip .case__media { order: 2; }
.case--flip .case__strip { order: 3; }
.case__media--phone { display: flex; justify-content: center; }
.zoomable { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.phone {
  width: min(100%, 250px); border-radius: 30px; overflow: hidden; background: #0B0F12;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.7), 0 0 0 1px var(--border-2);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.phone:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 40px 70px -30px rgba(0,0,0,.75), 0 0 0 2px var(--blue); }
.case--flip .phone:hover { transform: translateY(-6px) rotate(1.5deg); }
.case__kicker { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--blue-ink); }
.case__title { margin: 0 0 12px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.035em; line-height: 1.05; }
.case__title--sm { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.case__lead { margin: 0 0 18px; font-size: 1.06rem; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { position: relative; padding-left: 22px; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--blue); transform: rotate(45deg); }
.tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tags li { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text); background: var(--frame-2); border: 1px solid var(--border-2); }
.case__strip {
  position: relative; grid-column: 1 / -1; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--border-2); transition: border-color .2s;
}
.case__strip:hover { border-color: var(--blue); }
.strip-label { position: absolute; top: 10px; left: 12px; z-index: 1; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--black); color: #fff; opacity: .85; }
.case__strip img { width: 100%; }

.case--web { grid-template-columns: 1fr; }
.case__body--wide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px 40px; align-items: start; }
.case__body--wide .tags { grid-column: 2; margin-top: 0; }
.case__body--wide .case__lead { margin: 4px 0 0; }
.browsers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.browser { border-radius: 12px; overflow: hidden; background: var(--frame-2); border: 1px solid var(--border-2); transition: transform .3s var(--ease), border-color .2s; }
.browser:hover { transform: translateY(-4px); border-color: var(--blue); }
.browser__bar { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--dim); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.browser__bar i:first-child { background: var(--orange); }
.browser__bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 720 / 440; object-fit: cover; object-position: top; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden; }
.layers { padding: 14px 10px; border-right: 1px solid var(--border); background: var(--frame-2); display: flex; flex-direction: column; gap: 2px; }
.layers__title { margin: 2px 8px 10px; font-size: 12px; font-weight: 600; color: var(--dim); }
.layer {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border: 0; border-radius: 8px; background: none;
  text-align: left; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s;
}
.layer:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--text); }
.layer.is-on { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--text); box-shadow: inset 2px 0 0 var(--blue); }
.layer__n { font-size: 11px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.layer.is-on .layer__n { color: var(--blue-ink); }
.viewer { padding: clamp(16px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.viewer__img { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border-2); }
.viewer__img img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: contain; background: #fff; transition: opacity .25s; }
.viewer__img.is-swap img { opacity: 0; }
.viewer__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--black); color: #fff; opacity: .8; }
.viewer__zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.viewer__cap { margin: 0; font-size: 1.05rem; min-height: 3.2em; }
.viewer__nav { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.viewer__nav button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--frame-2); cursor: pointer; }
.viewer__nav button:hover { border-color: var(--blue); }

/* ---------- Game ---------- */
.game { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game__card { margin: 0; padding: 14px; transition: transform .35s var(--ease); }
.game__card:hover { transform: translateY(-4px) rotate(-.4deg); }
.game__card:nth-child(2):hover { transform: translateY(-4px) rotate(.4deg); }
.game__card .zoomable { width: 100%; border-radius: 10px; overflow: hidden; background: #fff; }
.game__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.game__card figcaption { padding: 16px 6px 6px; color: var(--muted); }
.tag-num { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--black); background: var(--orange); }

/* ---------- More ---------- */
.more { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.more__logo { margin: 0; padding: 14px; }
.more__logo .zoomable { width: 100%; border-radius: 10px; overflow: hidden; background: #fff; }
.more__logo figcaption { padding: 18px 6px 6px; }
.more__logo figcaption p { margin: 0; color: var(--muted); }
.more__notes { display: grid; gap: 22px; }
.note { padding: 24px 24px 26px; border-radius: 6px; box-shadow: 0 18px 32px -18px rgba(0,0,0,.5); }
.note:nth-child(1) { transform: rotate(-1.2deg); }
.note:nth-child(2) { transform: rotate(1deg); }
.note.reveal.is-in:nth-child(1) { transform: rotate(-1.2deg); }
.note.reveal.is-in:nth-child(2) { transform: rotate(1deg); }
.note h3 { margin: 0 0 8px; font-family: var(--f-display); font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.05; }
.note p { margin: 0; }
.note__tag { display: inline-block; margin: 0 0 14px !important; font-family: var(--f-hand); font-size: 22px; font-weight: 700; line-height: 1; }
.note--blue { background: var(--blue); color: #fff; }
.note--orange { background: var(--orange); color: var(--black); }

/* ---------- Versions ---------- */
.versions { list-style: none; margin: 0; padding: clamp(18px, 3vw, 32px) clamp(18px, 3vw, 36px); position: relative; }
.version { position: relative; padding: 18px 0 22px 38px; border-bottom: 1px dashed var(--border-2); }
.version:last-child { border-bottom: 0; }
.version::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border-2); }
.version:first-child::before { top: 28px; }
.version:last-child::before { bottom: calc(100% - 28px); }
.version__dot { position: absolute; left: 2px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--frame); border: 2px solid var(--dim); }
.version.is-current .version__dot { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 22%, transparent); }
.version__head { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.version h3 { margin: 0; font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.version__org { margin: 2px 0 0; color: var(--blue-ink); font-weight: 500; font-size: 14.5px; }
.version__date { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--black); background: var(--orange); }

/* ---------- Library ---------- */
.library { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lib { padding: 20px; }
.lib--wide { grid-column: 1 / -1; }
.lib__title { color: var(--blue-ink); }
.lib__title span { color: var(--orange-ink); }
.lib ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.lib li {
  padding: 6px 11px; border-radius: 8px; font-size: 13.5px; background: var(--frame-2); border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.lib li:hover { border-color: var(--blue); color: var(--blue-ink); }
.lib li::before { content: "◇"; margin-right: 6px; font-size: 10px; color: var(--orange-ink); }

/* ---------- Contact ---------- */
.contact__frame { padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 64px); text-align: center; }
.contact__sel { position: relative; display: inline-block; padding: 10px 14px; outline: 1.5px dashed color-mix(in srgb, var(--blue) 70%, transparent); }
.contact__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; max-width: 15ch; }
.contact__lead { margin: 28px auto 0; max-width: 46ch; color: var(--muted); font-size: 1.08rem; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; font-size: 13px; color: var(--dim); }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 70; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 6px; border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--border-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.5);
}
.dock a {
  display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 11px;
  font-size: 13px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s;
}
.dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dock a:hover { color: var(--text); background: var(--frame-2); }
.dock a.is-active { color: #fff; background: var(--blue); }
.dock a.dock__cta.is-active { background: var(--orange); color: var(--black); }

/* ---------- Lightbox ---------- */
.lightbox { width: min(94vw, 1500px); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: #fff; overflow: auto; }
.lightbox::backdrop { background: rgba(2,7,10,.82); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; height: auto; }
.lightbox__close {
  position: sticky; top: 10px; float: right; margin: 10px 10px -50px 0; z-index: 2; width: 40px; height: 40px; border-radius: 10px;
  border: 0; background: var(--black); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero__stage { grid-template-columns: 1fr; padding-bottom: 40px; }
  .portrait { justify-self: start; max-width: 300px; margin-top: 30px; }
  .comment { left: auto; right: -12px; }
  .stickies { position: static; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
  .sticky { position: relative; left: auto; top: auto; transform: rotate(var(--r)); width: 150px; min-height: 80px; font-size: 20px; touch-action: auto; cursor: default; }
  .hint { display: none; }
  .cursor--b { display: none; }
  .about { grid-template-columns: 1fr; }
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__media { order: 0; }
  .case__body--wide { grid-template-columns: 1fr; }
  .case__body--wide .tags { grid-column: auto; }
  .process { grid-template-columns: 1fr; }
  .layers { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .layers::-webkit-scrollbar { display: none; }
  .layers__title { display: none; }
  .layer { width: auto; flex: none; white-space: nowrap; }
  .layer.is-on { box-shadow: inset 0 -2px 0 var(--blue); }
  .game, .more { grid-template-columns: 1fr; }
  .dock span { display: none; }
  .dock a { padding: 0 11px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .file__path, .avatars { display: none; }
  .browsers { grid-template-columns: 1fr; }
  .library { grid-template-columns: 1fr; }
  .hint { display: none; }
  .sticky { width: calc(50% - 7px); }
  .sticky:nth-child(3) { width: 100%; }
  .redline { height: 40px; margin-left: 24px; }
  .sel__dim { bottom: -28px; }
  .contact__actions .btn { width: 100%; justify-content: center; }
  .version { padding-left: 32px; }
  .version__date { white-space: normal; }
  .dock { bottom: 12px; }
  .dock a { padding: 0 10px; height: 40px; }
  .footer { justify-content: center; text-align: center; }
}
@media (hover: none) { .cursor--you { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .cursor--b { display: none; }
}
