@property --room { syntax: "<color>"; inherits: true; initial-value: #0C162C; }
html { transition: --room 700ms steps(7, end); scroll-behavior: auto; }
html.i18n-wait body { opacity: 0; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The room: one fixed WebGL canvas behind everything. */
#room { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.tv-fallback { display: none; position: fixed; z-index: 0; right: var(--m); top: 14vh; width: min(46vw, 560px); }
.tv-fallback img { width: 100%; border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-3); image-rendering: pixelated; }
.no-3d .tv-fallback { display: block; }

/* Fixed chrome: wordmark, language, channel strip. */
.top { position: fixed; z-index: 30; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--m); pointer-events: none; }
.top > * { pointer-events: auto; }
.top::before { content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; background: linear-gradient(var(--room), transparent); pointer-events: none; }
.wordmark { font: 400 1.6rem/1 var(--title); text-transform: uppercase; text-decoration: none; color: var(--cream); -webkit-text-stroke: .09em var(--ink); paint-order: stroke fill; text-shadow: .045em .06em 0 var(--ink); }
.lang { position: relative; }
.lang-btn, .sound-btn { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 .9em; font: 600 .95rem/1 var(--mono); color: var(--cream); background: var(--night-2); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-2); cursor: pointer; }
.lang-btn svg, .sound-btn svg { width: 28px; height: 28px; flex: none; }   /* 14 px art at exactly 2x stays crisp */
.lang-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: .4rem; list-style: none; background: var(--night-2); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-3); min-width: 11rem; }
.lang.is-open .lang-list { display: block; }
.lang-list a { display: block; padding: .6rem .8rem; text-decoration: none; border-radius: var(--r-sm); }
.lang-list a:hover { background: var(--night); }
.lang-list a[aria-current] { color: var(--amber); }
.lang-list b { font-family: var(--mono); margin-right: .5em; }

.strip { position: fixed; z-index: 30; right: var(--m); top: 50%; transform: translateY(-50%); }
.strip ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.strip a { display: block; min-width: 44px; padding: 4px 6px; text-align: right; text-decoration: none; font-size: 1.25rem; line-height: 1; color: var(--silver-mid); }
.strip a .osd { color: inherit; }
.strip a:hover { color: var(--cream); }
.strip a[aria-current="true"] { color: var(--amber); }
.strip a[aria-current="true"] .osd::before { content: "\25B6\00a0"; }

/* Scenes: text sits on the wall, the TV is in the canvas. */
main { position: relative; z-index: 1; }
.ch { min-height: 125svh; display: flex; align-items: center; padding: 96px calc(var(--m) + 64px) 96px var(--m); pointer-events: none; }
.ch.hero { min-height: 100svh; }
.ch.quiet { min-height: 110svh; }
.ch.small { min-height: 90svh; }
.ch.finale { min-height: 150svh; }
.ch__inner { pointer-events: auto; width: min(36rem, 100%); }
.finale .ch__inner { width: min(46rem, 100%); }
.title .ln { display: block; }
html[lang="tr"] .title { line-height: 1.17; }   /* dotted capitals (İ) need room above the line */
.ch__desc { margin: 1.1rem 0 0; max-width: 32rem; color: var(--cream); }
.ch__tech { margin: .9rem 0 0; color: var(--silver-mid); font-size: 1.2rem; line-height: 1.25; }
.ch__tech.osd { text-transform: none; }
.ch__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 1.6rem; }
.soon { color: var(--silver-mid); font-size: 1.2rem; }
.hero__role { margin: 1.1rem 0 0; font: 400 1.9rem/1 var(--osd); letter-spacing: .06em; text-transform: uppercase; color: var(--cream); }
.about { display: grid; gap: 1.6rem; }
.about__img { width: 168px; height: auto; border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-3); }

.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px var(--m) 40px; background: var(--ink); color: var(--silver-mid); font-size: .95rem; }
.foot p { margin: 0; }
.foot a { color: var(--silver); }

/* Plain pages (projects, privacy). */
body.plain { background: var(--room); }
.doc { position: relative; max-width: 48rem; margin: 0 auto; padding: 120px var(--m) 80px; }
.doc section { margin-top: 2rem; }
.doc h2 { font: 600 1.25rem/1.2 var(--sans); margin: 0 0 .4rem; }
.doc p { margin: .4rem 0 0; }
.plist { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 2.6rem; }
.plist li { display: grid; grid-template-columns: 160px 1fr; gap: 1.4rem; align-items: start; }
.plist img { border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-2); width: 160px; height: 120px; object-fit: cover; }

/* Phone: TV on top, text below it. */
@media (max-width: 820px) {
  .strip { top: auto; bottom: 0; right: 0; left: 0; transform: none; padding: 6px var(--m) 10px; background: linear-gradient(transparent, var(--room) 40%); }
  .strip ol { grid-auto-flow: column; justify-content: space-between; }
  .strip a { min-width: 0; padding: 8px 2px; text-align: center; font-size: 1.1rem; }
  .strip a[aria-current="true"] .osd::before { content: none; }
  .ch { align-items: flex-end; padding: 96px var(--m) 84px; }
  .ch.hero { min-height: 100svh; }
  .ch__inner { background: color-mix(in srgb, var(--room) 86%, transparent); padding: 14px 16px; border-radius: var(--r-md); }
  .title-xl { font-size: clamp(3rem, 15vw, 5rem); }
  .plist li { grid-template-columns: 1fr; }
  .plist img { width: 100%; height: auto; aspect-ratio: 4/3; }
}

/* Contact form */
.form { display: grid; gap: 14px; margin-top: 1.4rem; }
.form label { display: grid; gap: 6px; font: 600 .95rem/1.2 var(--sans); }
.form input, .form textarea { width: 100%; min-height: 44px; padding: .7em .9em; font: 400 1rem/1.4 var(--sans); color: var(--cream); background: var(--night-2); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: inset 0 2px 0 var(--ink); }
.form textarea { resize: vertical; min-height: 7.5rem; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form__status { margin: 0; font-size: 1rem; }
.form__status[data-kind="ok"] { color: var(--amber); }
.form__status[data-kind="error"] { color: #ff9a8a; }
.recaptcha-widget { min-height: 78px; }
.recaptcha-widget iframe { pointer-events: auto !important; }   /* lenis.css disables iframe pointer events while smooth scrolling */
@media (max-width: 820px) { .foot { padding-bottom: 72px; } }

/* Demo on the TV */
.tv-demo { position: fixed; z-index: 60; opacity: 0; transition: opacity 240ms steps(4, end); }
.tv-demo.is-on { opacity: 1; }
.tv-demo iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--ink); border-radius: 8px; box-shadow: 0 0 0 5px var(--ink), 0 0 36px rgba(220, 220, 220, .25); pointer-events: auto !important; }
.tv-demo__close { position: absolute; right: 0; top: -54px; min-width: 44px; padding: .45em .85em; font-size: 1.5rem; }
.tv-demo.is-full { inset: 0; width: 100%; height: 100%; }
.tv-demo.is-full iframe { border-radius: 0; box-shadow: none; }
.tv-demo.is-full .tv-demo__close { top: 10px; right: 10px; }

.demo-open .ch__inner, .demo-open .strip { opacity: 0; pointer-events: none; transition: opacity 200ms steps(3, end); }
.about__img.swap { animation: pxswap 320ms steps(4, end); }
@keyframes pxswap { 0% { transform: translateY(-18px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* header right side: sound + language */
.top__right { display: flex; align-items: center; gap: 10px; }
.sound-btn { padding: 0 10px; }
.sound-btn svg { width: 24px; height: 24px; }
/* keyboard shelf: invisible until a button has focus, then a small on-screen-display label */
.shelf { position: fixed; z-index: 35; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 70px); transform: translateX(-50%); pointer-events: none; }
.shelf ul { list-style: none; margin: 0; padding: 0; }
.shelf button { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); opacity: 0; width: 1px; height: 1px; overflow: hidden; border: 0; padding: 0; white-space: nowrap; font: 400 1.5rem/1 var(--osd); letter-spacing: .05em; text-transform: uppercase; color: var(--amber); background: var(--ink); border-radius: 6px; }
.shelf button:focus { opacity: 1; width: auto; height: auto; overflow: visible; padding: .35em .7em; outline: 3px solid var(--amber); outline-offset: 2px; }

/* Boot screen: shown until the room is ready (main.js adds .is-ready), then the tube collapses to a line and goes out. */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--ink); color: var(--amber); overflow: hidden; }
.intro::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .38) 2px 4px); pointer-events: none; }
.intro__box { position: relative; display: grid; gap: 22px; justify-items: center; padding: 0 var(--m, 16px); }
.intro__ch { margin: 0; font: 400 1.5rem/1 VT323, monospace; letter-spacing: .24em; color: var(--silver-mid); }
.intro__name { margin: 0; font: 400 clamp(3.4rem, 14vw, 8.5rem)/1 VT323, monospace; letter-spacing: .04em; white-space: nowrap; overflow: hidden; width: 0; border-right: .1em solid var(--amber); text-shadow: 0 0 22px rgba(241, 189, 120, .45);
  animation: intro-type .9s steps(10, end) .15s forwards, intro-caret .5s steps(1) infinite; }
.intro__bar { display: flex; gap: 6px; }
.intro__bar i { width: 14px; height: 14px; background: var(--silver-dark); animation: intro-cell .01s steps(1) forwards; animation-delay: calc(var(--k) * 85ms + 350ms); }
@keyframes intro-type { to { width: calc(10 * (1ch + .04em)); } }
@keyframes intro-caret { 50% { border-right-color: transparent; } }
@keyframes intro-cell { to { background: var(--amber); } }
html.is-ready .intro { animation: intro-off .5s steps(6, end) forwards; pointer-events: none; }
@keyframes intro-off { 0% { transform: none; opacity: 1; } 65% { transform: scaleY(.012); opacity: 1; } 100% { transform: scaleY(.012); opacity: 0; visibility: hidden; } }
html.no-js .intro { display: none; }
@media (prefers-reduced-motion: reduce) {
  .intro__name { width: auto; border-right: 0; animation: none; }
  .intro__bar i { animation: none; background: var(--amber); }
  html.is-ready .intro { display: none; }   /* no animation to wait for (some stylesheets also switch every animation off here) */
}
