/* it2digital — a building at night. */

:root {
  --night: #0c0a1d;
  --night-2: #151233;
  --night-3: #1f1a45;
  --brick: #b0523a;
  --brick-2: #8c3c2b;
  --brick-3: #6a2c20;
  --gold: #ffc24b;
  --gold-2: #f2a91f;
  --coral: #ff6a4d;
  --cream: #fff4e0;
  --paper: #f7ecd8;
  --ink: #221833;
  --muted: #b9b1d6;
  --plum: #4a2340;
  --radius: 22px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; line-height: 1.02; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font: 600 12px/1 var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--display); text-decoration: none;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(2px) scale(.98); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 #c98612; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #c98612; }
.btn-ghost { color: var(--cream); background: rgba(255,244,224,.08); box-shadow: inset 0 0 0 1.5px rgba(255,244,224,.35); }
.btn-ghost:hover { background: rgba(255,244,224,.16); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(12,10,29,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 3px; padding: 5px; background: var(--brick); border-radius: 6px; }
.brand-mark i { width: 9px; height: 9px; border-radius: 2px; background: #2a2150; }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(4) { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.brand:hover .brand-mark i:nth-child(2) { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.brand-word { font: 800 22px/1 var(--display); letter-spacing: -0.03em; }
.brand-word em { font-size: 22px; color: var(--gold); margin-left: 1px; }
.nav nav { display: flex; gap: 6px; align-items: center; }
.nav nav a { text-decoration: none; font: 500 15px/1 var(--body); padding: 10px 14px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--cream); background: rgba(255,255,255,.06); }
.nav nav a.nav-cta { color: var(--ink); background: var(--gold); font-weight: 600; }
.lang {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--muted); font: 600 12px/1 var(--body);
}
.lang span { padding: 7px 9px; border-radius: 999px; transition: background .2s, color .2s; }
html[lang="en"] .lang [data-l="en"], html[lang="tr"] .lang [data-l="tr"] { background: var(--cream); color: var(--ink); }
@media (max-width: 760px) { .nav nav a:not(.nav-cta) { display: none; } .nav { gap: 10px; } }
@media (max-width: 380px) { .nav nav { display: none; } }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: end; gap: 32px;
  padding: 120px var(--gutter) 0;
  background: radial-gradient(1200px 600px at 75% 110%, #3a1f4f 0%, transparent 60%), linear-gradient(180deg, #07061a 0%, #120f33 55%, #2a1a45 100%);
  overflow: hidden;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .15; } }
.moon {
  position: absolute; top: 14%; right: 9%; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e6, #f1dcb0 70%);
  box-shadow: 0 0 60px 20px rgba(255,231,180,.18);
}
.moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 70% 65%, rgba(0,0,0,.08) 0 9px, transparent 10px), radial-gradient(circle at 40% 70%, rgba(0,0,0,.06) 0 6px, transparent 7px); }

.hero-copy { position: relative; z-index: 2; align-self: center; padding-bottom: 80px; max-width: 640px; }
.hero h1 { font-size: clamp(46px, 7.2vw, 104px); font-weight: 800; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--gold); font-size: 1.08em; line-height: .95; text-shadow: 0 0 40px rgba(255,194,75,.35); }
.lede { margin: 26px 0 34px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.building-wrap { position: relative; z-index: 1; justify-self: center; width: min(100%, 600px); padding-top: 60px; padding-bottom: 44px; }
.roof { position: relative; height: 54px; margin: 0 6%; }
.antenna { position: absolute; left: 14%; bottom: 0; width: 3px; height: 54px; background: #6e6a88; }
.antenna::before { content: ""; position: absolute; top: 0; left: -8px; width: 19px; height: 3px; background: #6e6a88; box-shadow: 0 12px 0 #6e6a88; }
.antenna::after { content: ""; position: absolute; top: -6px; left: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: blink 1.6s steps(1) infinite; box-shadow: 0 0 10px var(--coral); }
@keyframes blink { 50% { opacity: .15; } }
.tank { position: absolute; right: 12%; bottom: 0; width: 56px; height: 44px; background: #5a3b2f; border-radius: 6px 6px 2px 2px; }
.tank::before { content: ""; position: absolute; left: -6px; right: -6px; top: -14px; height: 16px; background: #6b4636; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bulbs { position: absolute; left: 0; right: 0; top: 8px; width: 100%; height: 40px; overflow: visible; }
.bulbs path { fill: none; stroke: #413a5c; stroke-width: 1.5; }

.facade {
  --cols: 19; --rows: 9;
  position: relative;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: clamp(3px, .6vw, 6px);
  padding: clamp(10px, 2vw, 18px);
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 2px, transparent 2px 12px),
    linear-gradient(180deg, var(--brick) 0%, var(--brick-2) 100%);
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 0 0 6px var(--brick-3), 0 40px 80px rgba(0,0,0,.4);
}
.w {
  aspect-ratio: 3 / 4; border-radius: 3px 3px 2px 2px; cursor: pointer;
  background: linear-gradient(180deg, #221c4a 0%, #171336 100%);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 2px 0 rgba(255,255,255,.08);
  position: relative; transition: background .5s, box-shadow .5s;
}
.w::after { /* the sill */
  content: ""; position: absolute; left: -12%; right: -12%; bottom: -3px; height: 3px; border-radius: 1px; background: rgba(255,230,200,.25);
}
.w.on {
  background: linear-gradient(180deg, var(--c, #ffd27a) 0%, var(--c2, #f5a93a) 100%);
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--c2, #f5a93a) 55%, transparent), inset 0 -3px 0 rgba(0,0,0,.15);
}
.w.on:not(.letter) { opacity: .5; }
.w.letter.on {
  background: linear-gradient(180deg, #fff8d8 0%, #ffc24b 100%);
  box-shadow: 0 0 20px 4px rgba(255,194,75,.6), inset 0 -3px 0 rgba(0,0,0,.1);
  opacity: 1;
}
.w.on::before { /* a curtain */
  content: ""; position: absolute; top: 0; bottom: 0; width: 22%; left: 0;
  background: var(--curtain, rgba(180, 60, 90, .55)); border-radius: 3px 0 0 2px;
}
.w.letter.on::before { display: none; }
.w.pop { animation: pop .35s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { 40% { transform: scale(1.18); } }
.street { height: 18px; background: linear-gradient(180deg, #3b3153, #1b1631); border-radius: 0 0 6px 6px; margin: 0 -4%; }
.hint { position: absolute; right: 4%; bottom: 10px; font: italic 400 18px/1 var(--serif); color: var(--muted); opacity: .8; transform: rotate(-4deg); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 104px; }
  .hero-copy { padding-bottom: 0; }
  .building-wrap { width: min(100%, 440px); padding-top: 12px; }
  .moon { top: 68px; right: 16px; width: 44px; height: 44px; }
  .hint { bottom: 8px; }
}

/* ---------------------------------------------------------------- floors */

.floors {
  position: relative;
  display: grid; grid-template-columns: 180px 1fr; gap: clamp(24px, 6vw, 90px);
  padding: 140px var(--gutter) 120px;
  background: linear-gradient(180deg, #2a1a45 0%, var(--night) 18%);
}
.elevator { position: sticky; top: 110px; align-self: start; display: grid; justify-items: center; gap: 20px; }
.elevator-display {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 16px;
  background: #06050f; box-shadow: inset 0 0 0 2px #2d2750, 0 0 0 6px #1a1638;
}
.elevator-display .arrow { color: var(--coral); font-size: 14px; text-shadow: 0 0 10px var(--coral); transition: transform .3s; }
.elevator-display.down .arrow { transform: rotate(180deg); }
.floor-num { font: 700 56px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--coral); text-shadow: 0 0 16px rgba(255,106,77,.7); min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.elevator-buttons { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(2, 44px); gap: 12px; background: #1a1638; border-radius: 18px; box-shadow: inset 0 0 0 2px #2d2750; }
.elevator-buttons li {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  font: 600 15px/1 var(--body); color: var(--muted);
  background: radial-gradient(circle at 40% 35%, #3a3462, #221d45); box-shadow: 0 3px 0 #0d0b22, inset 0 0 0 2px #45407a;
  transition: color .2s, box-shadow .2s, background .2s;
}
.elevator-buttons li:first-child { grid-column: span 2; justify-self: center; }
.elevator-buttons li.lit { color: var(--ink); background: radial-gradient(circle at 40% 35%, #fff1b8, var(--gold)); box-shadow: 0 0 16px rgba(255,194,75,.7), inset 0 0 0 2px #fff4d0; }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(40px, 6vw, 84px); font-weight: 800; }
.section-head h2 em { color: var(--gold); }

.floors-list { display: grid; gap: 22px; }
.floor {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: start;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .4s, box-shadow .4s, transform .4s;
}
.floor.current { background: linear-gradient(135deg, rgba(255,194,75,.14), rgba(255,106,77,.05)); box-shadow: inset 0 0 0 1px rgba(255,194,75,.45); }
.floor-tag { font: 800 clamp(44px, 5vw, 72px)/.9 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255,244,224,.35); transition: color .4s, -webkit-text-stroke .4s; }
.floor.current .floor-tag { color: var(--gold); -webkit-text-stroke: 0; }
.floor h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }
.floor p { color: var(--muted); max-width: 36em; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 13px/1 var(--body); padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--cream); }

@media (max-width: 760px) {
  .floors { grid-template-columns: 1fr; padding-top: 48px; }
  .elevator { position: sticky; top: 64px; z-index: 5; grid-auto-flow: column; justify-content: start; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); background: rgba(12,10,29,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .elevator-display { padding: 6px 12px; }
  .floor-num { font-size: 28px; }
  .elevator-buttons { grid-auto-flow: column; grid-template-columns: none; padding: 6px; gap: 6px; }
  .elevator-buttons li { width: 32px; height: 32px; font-size: 13px; }
  .elevator-buttons li:first-child { grid-column: auto; }
  .floor { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------------------------------------------------------------- work */

.work { padding: 120px var(--gutter) 140px; background: var(--night); display: grid; gap: 48px; }
.product { position: relative; border-radius: 34px; overflow: hidden; }
.door-label {
  position: absolute; top: 22px; left: 22px; z-index: 3;
  display: flex; gap: 0; border-radius: 10px; overflow: hidden;
  font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.door-label span { padding: 9px 12px; background: #fff4e0; color: var(--ink); }
.door-label span:first-child { background: var(--ink); color: var(--gold); font-family: ui-monospace, Menlo, monospace; }
.tagline { font: italic 400 clamp(24px, 2.6vw, 32px)/1.15 var(--serif); margin: 10px 0 18px; }

/* Noisy Neighbors: dusk over the city */
.nn {
  padding: clamp(80px, 9vw, 110px) clamp(20px, 5vw, 64px) 56px;
  background:
    radial-gradient(900px 400px at 80% 100%, rgba(255,150,80,.35), transparent 70%),
    linear-gradient(180deg, #4a2340 0%, #7a3a4d 45%, #c96a55 100%);
  color: var(--cream);
}
.nn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.app-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 24px rgba(0,0,0,.3); margin-bottom: 22px; }
.nn h3 { font-size: clamp(44px, 6vw, 78px); font-weight: 800; }
.nn-copy > p:not(.tagline) { color: #f7dcd0; max-width: 32em; }
.facts { display: flex; gap: clamp(20px, 4vw, 44px); margin: 30px 0 0; }
.facts div { display: grid; }
.facts dt { font: 800 clamp(36px, 4vw, 52px)/1 var(--display); color: var(--gold); }
.facts dd { margin: 4px 0 0; font-size: 14px; color: #f7dcd0; }

.toy {
  background: #fff4e0; color: var(--ink); border-radius: 26px; padding: 22px;
  box-shadow: 0 30px 60px rgba(60,10,30,.35), inset 0 0 0 4px #f2dcbc;
}
.toy-title { font: 700 14px/1 var(--display); letter-spacing: .02em; color: #8c3c2b; margin-bottom: 14px; }
.toy-board {
  position: relative; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center;
  padding: 16px; border-radius: 16px;
  background: linear-gradient(180deg, var(--brick), var(--brick-2)); box-shadow: inset 0 0 0 5px var(--brick-3);
}
.flat { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: #f3d9cc; aspect-ratio: 140 / 148; box-shadow: 0 0 0 3px #fff4e0; transition: transform .6s cubic-bezier(.5,-0.4,.3,1.4), opacity .5s, box-shadow .4s; }
.flat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.flat figcaption { position: absolute; left: 8px; bottom: 8px; font: 700 12px/1 var(--display); background: #fff4e0; color: var(--ink); padding: 5px 8px; border-radius: 6px; }
.flat-granny { box-shadow: 0 0 0 3px #fff4e0, 0 0 0 7px var(--coral); animation: grumble 1.4s ease-in-out infinite; }
@keyframes grumble { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-1.5deg); } 20% { transform: rotate(1.5deg); } 30% { transform: rotate(0); } }
.flat-granny .happy { opacity: 0; }
.waves { display: grid; justify-items: center; gap: 6px; }
.waves i { display: block; width: 18px; height: 18px; border: 4px solid var(--coral); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(45deg); animation: wave 1s ease-out infinite; }
.waves i:nth-child(2) { animation-delay: .2s; } .waves i:nth-child(3) { animation-delay: .4s; }
@keyframes wave { 0% { opacity: 0; transform: translateX(-8px) rotate(45deg); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateX(8px) rotate(45deg); } }
.for-rent { position: absolute; left: 16px; top: 16px; width: calc((100% - 72px) / 2); aspect-ratio: 140 / 148; border-radius: 10px; background: #efe3cf; display: grid; place-items: center; opacity: 0; transition: opacity .5s .35s; box-shadow: 0 0 0 3px #fff4e0; }
.for-rent span { font: 800 13px/1 var(--display); letter-spacing: .06em; color: #8c3c2b; border: 2px solid #8c3c2b; padding: 6px 8px; border-radius: 6px; background: #fff4e0; transform: rotate(-4deg); }
.toy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.toy-status { font: 600 15px/1.2 var(--body); color: #8c3c2b; }
.toy.solved .flat-drummer { transform: translateY(-140%) rotate(-8deg); opacity: 0; }
.toy.solved .waves { opacity: 0; transition: opacity .3s; }
.toy.solved .for-rent { opacity: 1; }
.toy.solved .flat-granny { animation: none; box-shadow: 0 0 0 3px #fff4e0, 0 0 0 7px #5fb36a; }
.toy.solved .flat-granny .angry { opacity: 0; }
.toy.solved .flat-granny .happy { opacity: 1; }
.toy.solved .toy-status { color: #2f7a3a; }
.confetti { position: absolute; width: 8px; height: 12px; top: 50%; left: 70%; border-radius: 2px; pointer-events: none; animation: confetti 1.1s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes confetti { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

.phones {
  display: flex; gap: clamp(14px, 2vw, 26px); margin: 64px calc(clamp(20px, 5vw, 64px) * -1) 0; padding: 20px clamp(20px, 5vw, 64px) 30px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.phones::-webkit-scrollbar { display: none; }
.phone {
  flex: 0 0 clamp(190px, 22vw, 250px); margin: 0; scroll-snap-align: center;
  border-radius: 34px; padding: 9px; background: #1a1220;
  box-shadow: 0 30px 50px rgba(40,5,25,.45), inset 0 0 0 2px #3a2a3c;
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 0));
  transition: transform .5s cubic-bezier(.3,1.5,.5,1);
}
.phone img { border-radius: 26px; width: 100%; }
.phone:nth-child(odd) { --tilt: -3deg; }
.phone:nth-child(even) { --tilt: 3deg; --lift: 24px; }
.phone:hover { --tilt: 0deg; --lift: -10px; }

@media (max-width: 900px) { .nn-grid { grid-template-columns: 1fr; } }

/* Kovuk: a dark cinema */
.kovuk {
  padding: clamp(80px, 9vw, 110px) clamp(20px, 5vw, 64px) clamp(48px, 6vw, 72px);
  background:
    radial-gradient(700px 380px at 72% 42%, rgba(242,169,31,.2), transparent 70%),
    #08080c;
  box-shadow: inset 0 0 0 1px rgba(242,169,31,.15);
}
.kovuk .door-label span:first-child { color: var(--gold-2); }
.kovuk-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.kovuk-word { width: min(260px, 70%); height: auto; margin-bottom: 8px; }
.kovuk .tagline { color: var(--gold-2); }
.kovuk-copy > p:not(.tagline) { color: #cfc8b8; }
.platforms { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.platforms li { padding: 14px 16px; border-radius: 14px; background: rgba(242,169,31,.07); box-shadow: inset 0 0 0 1px rgba(242,169,31,.18); display: grid; gap: 4px; }
.platforms b { font: 700 16px/1 var(--display); color: #f4f1ea; }
.platforms span { font-size: 13px; color: #9d968a; }

.cinema { position: relative; display: grid; justify-items: center; }
.tv { width: 100%; cursor: pointer; }
.tv-screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #000; padding: 10px;
  box-shadow: 0 0 0 2px #26262e, 0 0 90px rgba(242,169,31,.28), 0 40px 60px rgba(0,0,0,.6);
}
.tv-screen img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 6px; object-fit: cover; transition: opacity .15s; }
.tv-screen img.alt { opacity: 0; }
.tv.flipped .tv-screen img.alt { opacity: 1; }
.tv.flipped .tv-screen img:not(.alt) { opacity: 0; }
.tv.static .tv-screen::after { content: ""; position: absolute; inset: 10px; border-radius: 6px; background: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px), rgba(40,40,50,.6); animation: static .25s steps(3) 1; }
@keyframes static { 50% { transform: translateY(2px); } }
.tv-stand { width: 34%; height: 14px; margin: 0 auto; background: linear-gradient(180deg, #1c1c22, #0e0e12); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.remote { position: absolute; right: -8px; bottom: 30px; width: 34px; height: 120px; border-radius: 17px; background: linear-gradient(180deg, #2a2a33, #16161c); box-shadow: 0 10px 20px rgba(0,0,0,.5), inset 0 0 0 1px #3a3a44; transform: rotate(14deg); }
.remote-dot { position: absolute; top: 16px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); }
.cinema-hint { margin-top: 16px; font: italic 400 17px/1 var(--serif); color: #9d968a; }
@media (max-width: 900px) { .kovuk-grid { grid-template-columns: 1fr; } .remote { display: none; } }

/* The empty flat */
.empty {
  display: block; text-decoration: none; padding: clamp(80px, 9vw, 110px) 24px clamp(56px, 7vw, 80px);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px);
  box-shadow: inset 0 0 0 2px rgba(255,244,224,.18);
  outline-offset: 6px;
}
.empty::before { content: ""; position: absolute; inset: 14px; border-radius: 24px; border: 2px dashed rgba(255,244,224,.18); pointer-events: none; }
.empty-inner { display: grid; justify-items: center; text-align: center; gap: 26px; }
.sign { transform-origin: 50% -30px; animation: swing 3.2s ease-in-out infinite; position: relative; }
.sign::before { content: ""; position: absolute; left: 50%; top: -30px; width: 60px; height: 30px; margin-left: -30px; border: 2px solid #b9b1d6; border-bottom: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sign span { display: block; font: 800 22px/1 var(--display); letter-spacing: .08em; color: #8c3c2b; background: #fff4e0; padding: 14px 22px; border-radius: 10px; box-shadow: 0 0 0 3px #8c3c2b inset, 0 8px 20px rgba(0,0,0,.3); }
@keyframes swing { 50% { transform: rotate(-5deg); } }
.empty:hover .sign { animation-duration: .9s; }
.empty-title { font: 700 clamp(30px, 4vw, 52px)/1.05 var(--display); letter-spacing: -0.02em; }
.empty-title em { color: var(--gold); }

/* ---------------------------------------------------------------- studio */

.studio {
  padding: 130px var(--gutter);
  background:
    radial-gradient(circle at 20% 20%, rgba(0,0,0,.05) 0 2px, transparent 3px) 0 0 / 22px 22px,
    #c9975f;
  color: var(--ink);
}
.studio .eyebrow { color: #7a3326; }
.studio .section-head h2 em { color: #7a3326; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.rules li {
  position: relative; padding: 38px 28px 30px; background: var(--paper); border-radius: 4px;
  box-shadow: 0 16px 30px rgba(70,30,10,.25);
  transform: rotate(var(--r, -1.5deg));
  transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.rules li:nth-child(2) { --r: 1.2deg; background: #fff1b8; }
.rules li:nth-child(3) { --r: -.6deg; background: #ffd9cc; }
.rules li:hover { transform: rotate(0) translateY(-6px); }
.rules li::before { content: ""; position: absolute; top: 12px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a86, var(--coral) 60%, #b93c25); box-shadow: 0 3px 4px rgba(0,0,0,.3); }
.rule-no { font: italic 400 30px/1 var(--serif); color: #b0523a; }
.rules h3 { font-size: 26px; margin: 10px 0 12px; }
.rules p { color: #4a3a4a; }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- rooftop */

.rooftop {
  position: relative; overflow: hidden; text-align: center;
  padding: 170px var(--gutter) 220px;
  background: linear-gradient(180deg, #07061a 0%, #1a1440 70%, #2a1a45 100%);
}
.string { position: absolute; top: 40px; left: 0; width: 100%; height: 120px; }
.string path { fill: none; stroke: #3b3560; stroke-width: 2; }
.lights { position: absolute; top: 40px; left: 0; width: 100%; height: 120px; pointer-events: none; }
.lights i { position: absolute; width: 12px; height: 16px; margin: -2px 0 0 -6px; border-radius: 50% 50% 45% 45%; background: var(--b); box-shadow: 0 0 14px 3px var(--b); animation: glow 3s ease-in-out infinite; animation-delay: var(--d); }
@keyframes glow { 50% { opacity: .45; box-shadow: 0 0 4px 1px var(--b); } }
.rooftop-inner { position: relative; z-index: 2; display: grid; justify-items: center; }
.rooftop h2 { font-size: clamp(42px, 7vw, 96px); font-weight: 800; }
.rooftop h2 em { color: var(--gold); }
.mail {
  margin: 44px 0 18px; font: 800 clamp(28px, 5vw, 64px)/1 var(--display); letter-spacing: -0.03em; text-decoration: none;
  color: var(--ink); background: var(--gold); padding: .35em .6em; border-radius: 999px;
  box-shadow: 0 8px 0 #c98612, 0 0 60px rgba(255,194,75,.35);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s;
  overflow-wrap: anywhere;
}
.mail:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 12px 0 #c98612, 0 0 80px rgba(255,194,75,.5); }
.small { color: var(--muted); }
.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background:
    linear-gradient(#0c0a1d, #0c0a1d) 0% 100% / 7% 60% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 8% 100% / 5% 85% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 14% 100% / 9% 45% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 24% 100% / 6% 75% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 31% 100% / 10% 55% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 42% 100% / 5% 95% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 48% 100% / 8% 50% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 57% 100% / 6% 80% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 64% 100% / 11% 60% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 76% 100% / 5% 90% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 82% 100% / 8% 50% no-repeat,
    linear-gradient(#0c0a1d, #0c0a1d) 91% 100% / 9% 70% no-repeat;
}
.skyline::after { /* a few windows still awake */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle, var(--gold) 0 2px, transparent 3px) 9% 55% / 14px 14px no-repeat,
    radial-gradient(circle, var(--gold) 0 2px, transparent 3px) 43% 30% / 14px 14px no-repeat,
    radial-gradient(circle, var(--gold) 0 2px, transparent 3px) 44% 50% / 14px 14px no-repeat,
    radial-gradient(circle, #ff9a86 0 2px, transparent 3px) 66% 62% / 14px 14px no-repeat,
    radial-gradient(circle, var(--gold) 0 2px, transparent 3px) 77% 40% / 14px 14px no-repeat,
    radial-gradient(circle, var(--gold) 0 2px, transparent 3px) 93% 60% / 14px 14px no-repeat;
}

.foot {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  background: var(--night); color: var(--muted); font-size: 14px;
}
.foot-links { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot-note { font: italic 400 16px/1 var(--serif); }

/* ---------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
