/* Sistem Odası — tek sabit sahne (canvas) + üstünden kayan içerik.
   Renk: koyu oda, tek vurgu: durum LED'i amberi. */
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Martian Mono"; src: url(../fonts/martian-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(../fonts/martian-mono-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F; }

:root {
  --ground: #07090d;
  --panel: rgba(9, 12, 17, 0.78);
  --line: rgba(255, 255, 255, 0.10);
  --fg: #e8edf3;
  --muted: #8b97a7;
  --amber: #eaa53e;
  --ok: #49d17d;
  --lock: #7aa7ff;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --hh: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { margin: 0; background: var(--ground); color: var(--fg); font: 400 17px/1.6 var(--display); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.kick { font: 600 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.btn { appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--fg); font: 600 12px/1 var(--mono); letter-spacing: .04em; padding: 11px 15px; border-radius: 4px; cursor: pointer; }
.btn:hover { border-color: rgba(255, 255, 255, .28); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* sahne */
#stage { position: fixed; left: 0; right: 0; bottom: 0; top: var(--hh); z-index: 0; overflow: hidden; background: #000; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#ov { position: absolute; inset: 0; pointer-events: none; }
.scr { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; border: 0; display: block; background: #000; transition: opacity .35s ease; will-change: transform; }
#eem, #eem-l, #eem-r { width: 1536px; height: 864px; }
#rack { width: 1280px; height: 800px; }
#zc { position: absolute; pointer-events: none; cursor: zoom-in; }
#scr-l, #scr-r { width: 1920px; height: 1080px; cursor: zoom-in; }
#scr-l.swap, #scr-r.swap { opacity: .15 !important; transition-duration: .18s; }
#hot { position: absolute; inset: 0; }
.hs { position: absolute; border: 1px solid transparent; border-radius: 3px; cursor: pointer; pointer-events: auto; transition: border-color .2s, background .2s, box-shadow .2s; }
.hs:hover, .hs.on { border-color: rgba(234, 165, 62, .9); background: rgba(234, 165, 62, .08); box-shadow: 0 0 24px rgba(234, 165, 62, .25); }
#shade { position: absolute; inset: 0; background: var(--ground); opacity: 0; pointer-events: none; }

/* üst bar */
/* üst menü: sahnenin üstünde ayrı bir şerit, render'ı kapatmaz */
.top { position: fixed; z-index: 20; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 20px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gut) 10px; background: var(--ground); border-bottom: 1px solid var(--line); }
.top .brand { justify-self: start; }
.top .lang { justify-self: end; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* logo: terminal istemi ege@EEM:~$ — açılışta harf harf yazılır, sonra imleç yanıp söner */
.lg { height: 30px; width: auto; display: block; flex: none; }
/* harfler başta gizli; site.js tek tek açar. JS çalışmazsa 2,4 sn sonra hepsi kendiliğinden görünür */
.lg .lg-c { opacity: 0; animation: lgshow 0s 2.4s forwards; }
.lg .lg-c.on { opacity: 1; }
.lg .lg-cur { animation: lgshow 0s 2.4s forwards; transition: transform .07s linear; }
.lg.done .lg-cur { transform: none; animation: cur 1.1s steps(1) infinite; }
@keyframes lgshow { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lg .lg-c, .lg .lg-cur { opacity: 1; transform: none; animation: none; } }
.nm { font-weight: 650; font-stretch: 110%; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.nav a { text-decoration: none; font: 600 14px/1 var(--display); letter-spacing: .01em; color: rgba(232, 237, 243, .78); padding: 10px 18px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { color: var(--fg); background: rgba(255, 255, 255, .07); }
.nav a.on { color: #160f03; background: var(--amber); }
.lang { appearance: none; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 6px 4px; display: flex; gap: 2px; cursor: pointer; }
.lang span { font: 600 11px/1 var(--mono); padding: 3px 6px; color: var(--muted); border-radius: 2px; }
.lang span.on { background: var(--fg); color: var(--ground); }

/* sahneler */
main { position: fixed; left: 0; right: 0; bottom: 0; top: var(--hh); z-index: 2; pointer-events: none; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity .6s ease .15s, visibility 0s; }
.scene .card, .scene .sheet, .scene .hero-txt, .scene button, .scene a { pointer-events: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn.pri { background: var(--amber); border-color: var(--amber); color: #120c02; }
.btn.pri:hover { background: #f3b558; }
.btn.sm { padding: 8px 10px; font-size: 11px; }
.about-card { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); width: min(560px, calc(100vw - 2 * var(--gut))); max-height: 82vh; overflow: auto; padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; }
#about-blocks { display: flex; flex-direction: column; gap: 12px; }
#about-blocks p { color: #c9d2dc; font-size: 16px; line-height: 1.65; }
.about-card .focus-t { margin-top: 6px; font: 600 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.focus { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.focus li { font-size: 13.5px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #dfe5ec; }
.about-card .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.wc-nav { display: flex; gap: 6px; margin-left: auto; }
.mon-hint { position: absolute; left: 50%; bottom: 1.2vh; transform: translateX(-50%); font: 500 11.5px/1.4 var(--mono); color: var(--muted); letter-spacing: .04em; text-align: center; width: min(760px, 90vw); opacity: 0; transition: opacity .4s; text-shadow: 0 1px 8px #000; }
.mon-hint.on { opacity: 1; }
.arr { position: absolute; top: 50%; transform: translateY(-50%) scale(.9); width: 64px; height: 92px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(9, 12, 17, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--fg); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .4s, transform .4s, visibility 0s linear .4s, background .2s; pointer-events: auto; }
.arr.l { left: 10px; } .arr.r { right: 10px; }
.arr.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .4s, transform .4s, visibility 0s, background .2s; }
.arr:hover { background: rgba(234, 165, 62, .25); border-color: var(--amber); }
.arr span { font: 600 11.5px/1 var(--mono); color: var(--amber); }
.arr span:empty { display: none; }
.arr.r.on svg { animation: arrR 1.6s ease-in-out infinite; } .arr.l.on svg { animation: arrL 1.6s ease-in-out infinite; }
@keyframes arrR { 50% { transform: translateX(4px); } } @keyframes arrL { 50% { transform: translateX(-4px); } }
.zoom-hint { position: absolute; left: 50%; bottom: 1.2vh; transform: translateX(-50%); font: 500 11.5px/1.4 var(--mono); color: var(--muted); letter-spacing: .04em; text-align: center; width: min(720px, 90vw); opacity: 0; transition: opacity .4s; }
.zoom-hint.on { opacity: 1; }
.sheet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%); width: min(1180px, calc(100vw - 2 * var(--gut))); max-height: 84vh; overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 8px 2px; }
.sheet h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1; font-weight: 800; font-stretch: 120%; max-width: 20ch; }
.dots { position: fixed; z-index: 20; right: calc(var(--gut) - 6px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.dots { transition: opacity .3s, visibility 0s linear 0s; }
body[data-scene="work"] .dots { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.dots button { appearance: none; position: relative; width: 22px; height: 22px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.dots button::after { content: attr(data-label); position: absolute; right: 28px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 12.5px/1 var(--display); color: var(--fg); padding: 7px 10px; border-radius: 7px; background: rgba(9, 12, 17, .9); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots button:hover::after, .dots button:focus-visible::after { opacity: 1; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: background .3s, transform .3s; }
.dots button.on::before { background: var(--amber); transform: scale(1.4); }
/* bölümler */
.card { background: var(--panel); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--line); border-radius: 6px; }

.hero-txt { position: absolute; left: var(--gut); bottom: 10vh; max-width: min(640px, 86vw); display: flex; flex-direction: column; gap: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.hero-txt h1 { font-size: clamp(38px, 5.2vw, 80px); line-height: .98; font-weight: 800; font-stretch: 122%; letter-spacing: -.02em; }
.hero-txt .lead { font-size: clamp(16px, 1.6vw, 20px); color: #c7d0db; max-width: 54ch; }

.about-card h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; font-weight: 780; font-stretch: 116%; }
.about-card p { color: #c3ccd7; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: 980px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stats div { background: var(--panel); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 22px 22px 20px; }
.stats dt { font: 800 clamp(34px, 4vw, 52px)/1 var(--display); font-stretch: 120%; font-variant-numeric: tabular-nums; }
.stats dd { margin: 8px 0 0; font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }


.work-card { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%) translateY(14px); width: min(1180px, calc(100vw - 2 * var(--gut))); padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transition: opacity .4s; }
.work-card.on { opacity: 1; transform: translateX(-50%); transition: opacity .45s, transform .45s; pointer-events: auto; }
.wc-head { display: flex; align-items: center; gap: 16px; }
.wc-dots { display: flex; gap: 6px; margin-left: auto; }
.wc-dots i { width: 18px; height: 3px; background: rgba(255, 255, 255, .16); border-radius: 2px; transition: background .3s; }
.wc-dots i.on { background: var(--amber); }
.wc-body { display: grid; grid-template-columns: 1.15fr 1fr 0.95fr; gap: 26px; }
.wc-body > * { min-width: 0; }
.wc-main { display: flex; flex-direction: column; gap: 10px; }
.wc-main h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; font-weight: 780; font-stretch: 116%; }
.wc-main p { color: #c3ccd7; font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { font: 500 11px/1 var(--mono); padding: 7px 9px; border: 1px solid var(--line); border-radius: 3px; color: #cdd5df; }
.wc-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wc-items li { font-size: 14px; line-height: 1.35; padding-left: 14px; position: relative; }
.wc-items li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; background: var(--amber); border-radius: 1px; }
.wc-items li span { display: block; color: var(--muted); font-size: 13px; }
.wc-scr { display: flex; flex-direction: column; gap: 8px; }
.scap { appearance: none; text-align: left; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; color: inherit; cursor: zoom-in; display: flex; flex-direction: column; gap: 3px; font: inherit; }
.scap:hover { border-color: rgba(234, 165, 62, .6); }
.scap .k { font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scap b { font: 600 12px/1.35 var(--mono); }
.scap .w { font-size: 13px; color: var(--muted); line-height: 1.35; }

.lab-card { position: absolute; left: var(--gut); top: 50%; transform: translateY(-46%); width: min(440px, calc(100vw - 2 * var(--gut))); max-height: 84vh; overflow: auto; padding: 24px 24px 18px; display: flex; flex-direction: column; gap: 12px; }
.lab-card { pointer-events: auto; }
.lab-card h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; font-stretch: 120%; line-height: 1; }
.lab-card .lead { font-size: 14.5px; color: #c3ccd7; }
.svc { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.svc li button { width: 100%; appearance: none; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; padding: 9px 2px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; cursor: pointer; text-align: left; font: inherit; }
.svc li button:hover, .svc li button.on { background: rgba(255, 255, 255, .04); }
.svc img { width: 22px; height: 22px; }
.svc .s-n { font-weight: 600; font-size: 15px; }
.svc .s-h { display: block; font: 400 11px/1.3 var(--mono); color: var(--muted); }
.chip { font: 600 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 5px 7px; border-radius: 3px; white-space: nowrap; }
.chip.public { color: var(--ok); background: rgba(73, 209, 125, .1); }
.chip.invite { color: var(--amber); background: rgba(234, 165, 62, .1); }
.chip.locked { color: var(--lock); background: rgba(122, 167, 255, .1); }
.svc-det { display: flex; flex-direction: column; gap: 12px; }
/* servis ayrıntısını kapatma: kartın sağ üst köşesinde, belirgin */
.sd-close { position: absolute; top: 14px; right: 14px; z-index: 2; appearance: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: var(--fg); font: 600 12px/1 var(--mono); letter-spacing: .04em; cursor: pointer; box-shadow: 0 4px 18px rgba(0, 0, 0, .45); transition: background .2s, border-color .2s, color .2s; }
.sd-close:hover, .sd-close:focus-visible { background: var(--amber); border-color: var(--amber); color: #160f03; }
.sd-head { display: flex; gap: 14px; align-items: center; }
.sd-head h3 { font-size: 24px; font-weight: 750; font-stretch: 112%; }
.sd-head p { font-size: 12px; color: var(--muted); }
.svc-det .acc { font-size: 14px; color: #c3ccd7; }
.sd-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-links a { text-decoration: none; }

/* düz bölümler */
/* projeler: dosya klasörleri. Arka kapak + sekme, içinde kağıt (sayfanın küçük görüntüsü), önde kapak */
.pgrid { flex: none; margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 34px 22px; padding: 18px 4px 6px; }
.fold { --c: var(--amber); position: relative; display: block; aspect-ratio: 1.3; text-decoration: none; color: #fff; perspective: 900px; outline-offset: 6px; }
.f-back { position: absolute; inset: 12px 0 0 0; border-radius: 4px 10px 10px 10px; background: color-mix(in srgb, var(--c) 46%, #0a0c10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.f-back::before { content: ""; position: absolute; left: 0; top: -12px; width: 42%; height: 14px; border-radius: 8px 10px 0 0; background: inherit; box-shadow: inherit; }
.f-paper { position: absolute; left: 7%; right: 7%; top: 9%; bottom: 10%; border-radius: 3px; overflow: hidden; background: #f4f5f7; box-shadow: 0 -2px 10px rgba(0, 0, 0, .35); transform: translateY(8%); transition: transform .45s cubic-bezier(.3, .7, .3, 1); }
.f-paper img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.f-front { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; border-radius: 6px 6px 10px 10px; padding: 14px 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.3, .7, .3, 1);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #11141a), color-mix(in srgb, var(--c) 56%, #0a0c10)); box-shadow: 0 10px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .28); text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.f-front b { font: 750 19px/1.1 var(--display); font-stretch: 110%; }
.f-front small { font: 500 10.5px/1.2 var(--mono); opacity: .88; }
.f-front .f-d { font-size: 12.5px; line-height: 1.4; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fold:hover .f-paper, .fold:focus-visible .f-paper { transform: translateY(-16%); }
.fold:hover .f-front, .fold:focus-visible .f-front { transform: rotateX(-16deg); }
.fold.out .f-paper { visibility: hidden; }
.fold.out .f-front { transform: rotateX(-24deg); }
/* açılan proje: kağıt ekranı kaplar, sayfa içinde açılır */
@media (max-width: 560px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .f-front { padding: 10px 10px 9px; height: 58%; }
  .f-front b { font-size: 15px; }
  .f-front .f-d { display: none; }
}
.pv { position: fixed; inset: 0; z-index: 60; background: rgba(4, 6, 9, 0); transition: background .5s; }
.pv.dim, .pv.full { background: rgba(4, 6, 9, .72); }
.pv.pre { visibility: hidden; pointer-events: none; }
.pv-paper { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; transform-origin: 0 0; will-change: transform; overflow: hidden; border-radius: 6px; background: var(--pbg, #f4f5f7); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.pv.full .pv-paper { border-radius: 0; }
.pv-paper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .25s; }
.pv-paper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .25s; background: var(--pbg, #fff); pointer-events: none; }
.pv.live .pv-paper iframe { opacity: 1; }
.pv.live .pv-paper img { opacity: 0; }
.pv.full .pv-paper iframe { pointer-events: auto; }
.pv-back { position: fixed; z-index: 61; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px 10px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .26); background: rgba(9, 12, 17, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 600 13px/1 var(--display); cursor: pointer; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s, background .2s; pointer-events: none; }
.pv.full .pv-back { opacity: 1; transform: none; pointer-events: auto; }
.pv-back:hover, .pv-back:focus-visible { background: var(--amber); border-color: var(--amber); color: #160f03; }
.contact .lead { color: #c3ccd7; font-size: 18px; }
/* iletişim: kelime kelime gelen başlık, parıldayan e-posta, nabız gibi atan buton, ping atan terminal */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; }
.ct-l { display: flex; flex-direction: column; gap: 16px; }
.ct .kick { display: flex; align-items: center; gap: 10px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(73, 209, 125, .6); animation: led 1.8s ease-out infinite; }
@keyframes led { 0% { box-shadow: 0 0 0 0 rgba(73, 209, 125, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(73, 209, 125, 0); } }
.ct-title { max-width: 18ch; }
.ct-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.ct-title .w > span { display: inline-block; transform: translateY(110%); transition: transform .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 55ms); }
.scene.on .ct-title .w > span { transform: none; }
.mail { position: relative; align-self: flex-start; font: 600 clamp(18px, 2.6vw, 32px)/1.25 var(--mono); text-decoration: none; padding-bottom: 6px; overflow-wrap: anywhere;
  background: linear-gradient(100deg, var(--fg) 42%, #ffd88f 50%, var(--fg) 58%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4.5s linear infinite; }
@keyframes shine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.mail::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--amber), #ff7a45); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2, .8, .2, 1) .45s; }
.scene.on .mail::after { transform: scaleX(1); }
.mail:hover::after { background: var(--amber); }
.ct-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-btns .btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ct-send { animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(234, 165, 62, .55); } 75%, 100% { box-shadow: 0 0 0 14px rgba(234, 165, 62, 0); } }
.ct-term { border-radius: 12px; overflow: hidden; background: rgba(8, 10, 14, .92); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(234, 165, 62, .08), 0 0 60px rgba(234, 165, 62, .07);
  transform: translateY(18px) scale(.98); opacity: 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1) .25s, opacity .6s .25s; }
.scene.on .ct-term { transform: none; opacity: 1; }
.ct-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 11.5px/1 var(--mono); color: var(--muted); }
.ct-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a404b; } .ct-bar i:first-child { background: #ff5f57; } .ct-bar i:nth-child(2) { background: #febc2e; } .ct-bar i:nth-child(3) { background: #28c840; }
.ct-bar span { margin-left: auto; margin-right: auto; padding-right: 45px; }
#ct-pre { margin: 0; padding: 16px 18px 18px; min-height: 230px; font: 12.5px/1.75 var(--mono); color: #c8d2df; white-space: pre-wrap; overflow-wrap: anywhere; }
#ct-pre .g { color: var(--ok); } #ct-pre .b { color: #7aa7ff; } #ct-pre .ok { color: var(--ok); font-weight: 600; }
#ct-pre .cur { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: var(--amber); animation: cur 1s steps(1) infinite; }
@keyframes cur { 50% { opacity: 0; } }
@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; gap: 22px; } #ct-pre { min-height: 0; font-size: 11.5px; } }
.foot { max-width: 1180px; margin: 0 auto; padding: 28px var(--gut) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* lightbox */
#lb { position: fixed; inset: 0; z-index: 50; }
.lb-bg { position: absolute; inset: 0; background: rgba(3, 4, 6, .9); opacity: 0; transition: opacity .35s; }
#lb.on .lb-bg { opacity: 1; }
.lb-fig { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1500px, 94vw); margin: 0; }
.lb-fig img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; display: block; background: #000; border: 1px solid var(--line); border-radius: 4px; transform-origin: 0 0; }
.lb-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 0; opacity: 0; transition: opacity .3s .2s; }
#lb.on .lb-bar { opacity: 1; }
.lb-cap { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-cap b { font: 600 12px/1.4 var(--mono); }
.lb-cap span { font-size: 14px; color: var(--muted); }

@media (max-width: 1080px) {
  .top .nm { display: none; }
  .nav a { padding: 9px 13px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .wc-body { grid-template-columns: 1fr; gap: 12px; }
  .wc-items { display: none; }
  .wc-scr { flex-direction: row; } .scap { flex: 1; } .scap .w { display: none; }
  .about-card { top: auto; bottom: 3vh; transform: none; max-height: 52vh; }
  .dots { display: none; }
  .sheet { top: 16px; bottom: 16px; transform: translateX(-50%); max-height: none; }
  .lab-card { top: auto; bottom: 3vh; transform: none; max-height: 56vh; }
  .hero-txt { bottom: 12vh; }
}
@media (max-width: 680px) {
  .top { grid-template-columns: auto 1fr auto; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 9px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .scrollcue i { animation: none; } .scr, .card { transition: none; } }
