/* ==========================================================================
   Predrag, Unity Game Developer
   Dark stone, gold accents and painted game art.
   ========================================================================== */

:root {
  --stone: #191919;
  --panel: #1c1c1c;
  --panel-2: #242424;
  --line: #3b3b3b;
  --line-2: #555;
  --text: #fff;
  --text-2: #d8d8d8;
  --muted: #a9a9a9;

  --gold: #f8b700;
  --gold-hi: #ffe600;
  --gold-mid: #fcc800;
  --gold-deep: #e58e00;
  --gold-ink: #2b1e00;
  --live: #6fe39a;

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 60px);
  --chamfer: polygon(13% 0, 87% 0, 100% 13%, 100% 87%, 87% 100%, 13% 100%, 0 87%, 0 13%);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}
html.has-modal { overflow: hidden; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--text); font-weight: 600; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px;
  background: var(--gold); color: var(--gold-ink); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(.95rem, .4vw + .85rem, 1.25rem);
  line-height: 1.3; text-transform: uppercase; color: var(--gold);
}
.eyebrow--live { display: flex; align-items: center; gap: 12px; }

.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--live); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--live); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

/* Riveted metal band between sections */
.rivets {
  height: 14px;
  border-block: 1px solid #000;
  background:
    radial-gradient(circle at 50% 50%, #b9b9b9 0 1.1px, #3a3a3a 1.7px, transparent 2.6px) 0 50% / 26px 100% repeat-x,
    linear-gradient(180deg, #5c5f63, #2c2e31 30%, #1c1d1f 70%, #4a4c50);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 clamp(24px, 3vw, 42px); border-radius: 2px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; text-transform: uppercase; white-space: nowrap;
  transition: filter .15s, background .2s, color .2s, transform .15s;
}
.btn-primary {
  background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold-mid) 45%, var(--gold-deep) 100%);
  border-color: #f2c200;
  color: var(--gold-ink);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .55);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: translateY(1px); filter: brightness(.95); }
.btn-ghost { border-color: var(--gold-mid); color: var(--gold); background: rgba(8, 12, 28, .55); }
.btn-ghost:hover { background: var(--gold-mid); color: var(--gold-ink); }
.btn-sm { min-height: 48px; padding: 0 24px; font-size: .95rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-transform: uppercase; color: var(--gold);
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { color: var(--gold-hi); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Floating nav ---------- */
.nav { position: fixed; z-index: 50; top: 16px; left: 16px; right: 16px; }
.nav-bar {
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  height: 72px; max-width: 1720px; margin-inline: auto; padding: 0 12px 0 clamp(12px, 2vw, 28px);
  border-radius: 8px;
  background: rgba(38, 34, 42, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  transition: background .25s;
}
.nav.is-scrolled .nav-bar { background: rgba(24, 22, 26, .95); }

.brand { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text); }
.brand img {
  width: 84px; height: 84px; margin-block: -6px; flex: none;
  clip-path: var(--chamfer);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6));
}
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav-links a {
  position: relative; padding: 6px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text);
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a[aria-current="true"] { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); margin-left: auto; }

.lang { display: inline-flex; gap: 2px; }
.lang button {
  min-width: 38px; height: 36px; padding: 0 8px;
  font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-start;
  min-height: clamp(700px, 100svh, 960px);
  padding: clamp(120px, 21vh, 210px) var(--gutter) 56px;
  background: #0d1a44;
}
.hero-scene { --tint: #10225f; position: absolute; inset: 0; z-index: -1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; background: var(--tint); }
.hero-scene.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.hero-scene--mf { --tint: #35100f; }
.hero-scene--fr { --tint: #17150f; }
.hero-scene--ff { --tint: #260d5c; }

.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.08); }
.scene-art { position: absolute; max-width: none; }
.scene-art--square {
  top: 0; left: calc(-1 * clamp(0px, 4vw, 70px)); width: auto; height: 100%; aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(90deg, #000 66%, transparent 98%);
          mask-image: linear-gradient(90deg, #000 66%, transparent 98%);
}
.scene-art--wide {
  top: 50%; left: -1vw; width: 58vw; height: auto; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(90deg, #000 76%, transparent 99%), linear-gradient(0deg, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(90deg, #000 76%, transparent 99%), linear-gradient(0deg, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.scene-phones { position: absolute; top: 54%; left: 4vw; width: 44vw; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6vw; transform: translateY(-50%); }
.scene-phones img { width: 100%; border-radius: 18px; border: 5px solid #06060a; box-shadow: 0 26px 50px rgba(0, 0, 0, .65); }
.scene-phones img:nth-child(1) { transform: rotate(-4deg) translateY(16px); }
.scene-phones img:nth-child(2) { transform: translateY(-16px) scale(1.06); z-index: 1; }
.scene-phones img:nth-child(3) { transform: rotate(4deg) translateY(16px); }

.scene-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 34%, color-mix(in srgb, var(--tint) 86%, transparent) 58%, var(--tint) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .5), transparent 20%),
    linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 22%);
}

.hero-content {
  width: min(56%, 820px); margin-left: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-tabs { display: flex; justify-content: center; gap: clamp(4px, 1vw, 16px); width: 100%; margin-bottom: clamp(24px, 3.4vh, 40px); }
.hero-tab {
  flex: 0 1 164px; display: grid; place-items: center;
  padding: 0 6px clamp(12px, 2vh, 20px);
  border-bottom: 3px solid transparent;
  opacity: .62; filter: saturate(.55);
  transition: opacity .25s, filter .25s, border-color .25s;
}
.hero-tab .emblem { transition: transform .25s; }
.hero-tab:hover { opacity: 1; filter: none; }
.hero-tab.is-active { opacity: 1; filter: none; border-bottom-color: var(--gold); }
.hero-tab.is-active .emblem { transform: scale(1.12); }

.emblem {
  display: block; width: clamp(64px, 6.4vw, 96px); aspect-ratio: 1; padding: 3px;
  clip-path: var(--chamfer);
  background: linear-gradient(145deg, #fff0b0, #c8960f 40%, #6e4a08 68%, #f5cf63);
}
.emblem img { width: 100%; height: 100%; object-fit: cover; clip-path: var(--chamfer); }

.hero-panel { display: flex; flex-direction: column; align-items: center; animation: panel-in .5s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html:not(.js) .hero-tabs { display: none; }

.hero-title {
  margin-top: 8px;
  font-size: clamp(2.3rem, 3.5vw + .6rem, 3.75rem); font-weight: 600;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}
.hero-lead { margin-top: 18px; max-width: 42em; font-size: clamp(1.05rem, .4vw + .98rem, 1.28rem); color: #e6e6ee; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hero-actions { margin-top: clamp(24px, 3.4vh, 36px); display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero-avail { margin-top: clamp(18px, 2.6vh, 28px); color: #c9cde0; font-size: 1rem; }

/* ---------- Stone sections ---------- */
.stone {
  background-color: #1b1b1b;
  background-image: url("img/texture-stone.webp");
  background-size: 768px;
  background-blend-mode: soft-light;
}
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding-top: 0; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(20px, 2.4vw, 30px); padding-inline: clamp(0px, 1.4vw, 20px); }
.section-head--stack { display: block; }
.section-name { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 20px); }
.section-name h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem); }
.section-name .eyebrow { margin-bottom: 4px; }
.section-links { display: flex; flex-wrap: wrap; gap: 12px 44px; padding-bottom: 6px; }
.section-lead { margin-top: 18px; max-width: 54em; }
.crest {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--gold); color: var(--gold);
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 1px #000;
}

/* Intro pane */
.pane {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line); background: var(--panel);
}
.pane-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(24px, 3vw, 42px); }
.pane-title { font-size: clamp(1.8rem, 1.6vw + 1.1rem, 2.5rem); }
.hl { color: var(--gold); }
.tech-line { display: flex; flex-wrap: wrap; row-gap: 4px; margin-left: -24px; clip-path: inset(0 0 0 24px); color: var(--muted); font-size: .92rem; font-weight: 600; }
.tech-line li { position: relative; padding-left: 24px; }
.tech-line li::before { content: ""; position: absolute; left: 10px; top: .62em; width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); }
.pane-link { margin-top: auto; align-self: flex-end; padding-top: 8px; }
.pane-media { position: relative; min-height: 340px; }
.pane-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.pane-sticker { position: absolute; top: clamp(-36px, -2.4vw, -18px); right: clamp(14px, 2.4vw, 32px); width: clamp(92px, 9vw, 136px); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }

/* ---------- Projects ---------- */
.project { border: 1px solid var(--line); background: var(--panel); }
.project + .project { margin-top: clamp(20px, 2.4vw, 32px); }
.project--featured {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 1px rgba(248, 183, 0, .25), 0 24px 60px -30px rgba(248, 183, 0, .4);
}
.project--featured .project-main { display: contents; }
.project--featured .gallery { grid-column: 1 / -1; order: -1; }
.project--featured .thumbs { grid-template-columns: repeat(4, minmax(0, 190px)); justify-content: center; }
.project--featured .project-features { display: block; border-top: 0; border-left: 1px solid var(--line); padding: clamp(24px, 3vw, 42px); }
.project--featured .features-title { margin-bottom: 16px; }
.project--featured .features { grid-template-columns: 1fr; gap: 14px; }

.project-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.project--flip .project-main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.project--flip .project-copy { order: 2; }

.project-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 42px); }
.project-name { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.project-icon { width: 72px; height: 72px; flex: none; clip-path: var(--chamfer); }
.project-title { margin-top: 10px; font-size: clamp(1.85rem, 1.4vw + 1.3rem, 2.6rem); }
.project-name .project-title { margin-top: 0; }
.project-tagline { margin-top: 6px; color: var(--muted); font-size: 1.05rem; }
.project-desc { margin-top: 18px; }
.project-cta { margin-top: 24px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { padding: 4px 11px; border: 1px solid var(--line-2); font-size: .82rem; font-weight: 600; color: var(--text-2); }
.project-credit { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.project-credit .icon { color: var(--gold); }
.project-credit--live { margin-top: 6px; color: #bdf2d1; }
.project-credit--live .pulse { margin-inline: 3px; }

/* Gallery */
.gallery { display: flex; flex-direction: column; justify-content: center; min-width: 0; background: #101010; }
.gallery-main { position: relative; flex: none; aspect-ratio: 2340 / 1080; overflow: hidden; background: #050505; }
.gallery-main img,
.gallery-main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.gallery-main img.is-loading { opacity: .35; }
.gallery-open { position: absolute; inset: 0; cursor: zoom-in; }
html:not(.js) .gallery-open { display: none; }
.zoom-hint {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px;
  background: rgba(10, 10, 10, .75); border: 1px solid var(--gold); color: var(--gold);
  opacity: 0; transition: opacity .2s;
}
.gallery-open:hover .zoom-hint,
.gallery-open:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: .85; } }

.thumbs { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px; }
.thumb { position: relative; aspect-ratio: 2340 / 1080; overflow: hidden; background: #050505; border: 2px solid transparent; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; border-color: var(--gold); }
.play-badge { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 10, .75); border: 1px solid var(--gold); color: var(--gold); }
.play-badge .icon { width: 12px; height: 12px; margin-left: 2px; }

/* Phones */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); align-content: center; padding: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 48px); background: radial-gradient(70% 70% at 50% 50%, #3a1512, #151010); }
.phone { aspect-ratio: 720 / 1123; overflow: hidden; cursor: zoom-in; border: 5px solid #06060a; border-radius: clamp(12px, 1.6vw, 20px); background: #06060a; box-shadow: 0 22px 44px rgba(0, 0, 0, .65); transition: transform .3s ease; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone:nth-child(2) { transform: translateY(-10px); }
.phone:hover { transform: translateY(-14px); }

/* Features */
.project-features { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px 24px; padding: clamp(20px, 2.4vw, 30px) clamp(24px, 3vw, 42px); border-top: 1px solid var(--line); }
.features-title { font-size: 1.05rem; font-weight: 600; color: var(--gold); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px; }
.features li { position: relative; padding-left: 22px; font-size: 1rem; line-height: 1.5; }
.features li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* ---------- About ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(14px, 3vw, 40px); margin-bottom: clamp(32px, 4vw, 56px); }
.tab {
  padding: 8px clamp(10px, 2vw, 32px) 12px; border-bottom: 3px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, .6vw + .95rem, 1.5rem); color: #8a8a8a;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--gold); }
html:not(.js) .tabs { display: none; }

.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-intro { display: flex; flex-direction: column; align-items: flex-start; }
.about-intro h2 { margin-top: 6px; font-size: clamp(2rem, 1.6vw + 1.4rem, 3rem); color: #e4e4e4; }
.about-intro > p:not(.eyebrow) { margin-top: 18px; }
.about-intro .btn { margin-top: 26px; }

.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(28px, 4vw, 56px); }
.item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; }
.item h3 { font-size: clamp(1.25rem, .5vw + 1.1rem, 1.55rem); }
.item-kicker { margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; font-size: .86rem; text-transform: uppercase; color: var(--gold); }
.item-org { margin-top: 2px; margin-bottom: 8px; font-weight: 600; color: var(--gold); }
.item h3 + p:not(.item-org) { margin-top: 8px; }
.item p:not(.item-kicker):not(.item-org) { font-size: 1rem; }
.ring {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  box-shadow: inset 0 0 0 2px #000;
}
.ring .icon { width: 20px; height: 20px; }
.ring--flag { font-family: var(--font-display), "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: .85rem; font-weight: 700; }

.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skills li { padding: 8px 15px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); font-weight: 600; font-size: .95rem; color: var(--text-2); }
.skills .skill--hot { border-color: var(--gold); color: var(--gold); }

/* ---------- Split calls to action ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 400px; padding: clamp(36px, 4vw, 60px) clamp(20px, 5vw, 72px); }
.split-panel + .split-panel { border-left: 1px solid #555; }
.split-art { position: absolute; z-index: -1; bottom: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 1; }
.split-copy { display: flex; flex-direction: column; gap: 10px; }
.split-copy h2 { font-size: clamp(1.8rem, 1.5vw + 1.2rem, 2.6rem); }
.split-panel--game { align-items: flex-end; text-align: right; background: linear-gradient(90deg, #30110d, #4a1d17); transition: filter .25s; }
.split-panel--game:hover { filter: brightness(1.14); }
.split-panel--game .split-art { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 38%, transparent 86%); mask-image: linear-gradient(90deg, #000 38%, transparent 86%); }
.split-panel--game .split-copy { max-width: 46%; align-items: flex-end; }
.split-go { margin-top: 10px; color: var(--muted); font-size: 1.2rem; }
.split-panel--contact { background: linear-gradient(270deg, #0f2b45, #16384f); }
.split-panel--contact .split-art { right: 0; opacity: .9; -webkit-mask-image: linear-gradient(270deg, #000 34%, transparent 76%); mask-image: linear-gradient(270deg, #000 34%, transparent 76%); }
.split-panel--contact .split-copy { max-width: 58%; align-items: flex-start; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.contact-links:empty { display: none; }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(44px, 5vw, 64px) 0 clamp(36px, 4vw, 52px);
  background-color: #1a120b;
  background-image: url("img/texture-stone.webp");
  background-size: 768px;
  background-blend-mode: soft-light;
}
.footer-title { text-align: center; font-size: clamp(1.6rem, 1vw + 1.2rem, 2.1rem); color: #f3e3c6; }
.footer-social { display: flex; justify-content: center; gap: 22px; margin-top: 20px; }
.footer-social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #d6d6d6; border: 1px solid #5a4a38; transition: color .2s, border-color .2s; }
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-row { margin-top: clamp(36px, 5vw, 64px); padding-bottom: 20px; border-bottom: 1px solid #4a3c2c; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; color: var(--text); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; gap: 18px; margin-top: 24px; font-size: .94rem; }
.footer-bottom img { width: 68px; height: 68px; flex: none; clip-path: var(--chamfer); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 4, 4, .95); color: var(--text); }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; animation: lb-in .22s ease; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { grid-column: 2; margin: 0; height: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 0 24px; }
.lb-stage img,
.lb-stage video { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border: 1px solid var(--line); touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.lb-caption { padding-inline: 16px; color: var(--muted); font-size: .9rem; text-align: center; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--gold); color: var(--gold); background: rgba(0, 0, 0, .5); transition: background .2s, color .2s; }
.lb-btn:hover { background: var(--gold); color: var(--gold-ink); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-prev { grid-column: 1; margin-left: clamp(8px, 2vw, 24px); }
.lb-next { grid-column: 3; margin-right: clamp(8px, 2vw, 24px); }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; }

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .scene-art--square { left: -90px; }
}

@media (max-width: 1100px) {
  .nav-bar { height: 64px; }
  .brand img { width: 72px; height: 72px; }
  .project-features { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* Hero stacks: art on top, copy below */
  .hero { --art: min(100vw, 620px); display: block; min-height: 0; padding: calc(var(--art) * .95) 16px 44px; }
  .hero-content { width: 100%; margin: 0; }
  .scene-art--square { top: 0; left: 50%; width: var(--art); height: auto; transform: translateX(-50%); -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, #000 86%, transparent 100%); }
  .scene-art--wide { top: 84px; left: 50%; width: min(112vw, 700px); transform: translateX(-50%); }
  .scene-phones { top: 84px; left: 50%; width: min(86vw, 520px); gap: 8px; transform: translateX(-50%); }
  .scene-phones img { border-width: 3px; border-radius: 12px; }
  .scene-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .3), transparent calc(var(--art) * .3), transparent calc(var(--art) * .72), var(--tint) calc(var(--art) * 1.02)); }
  .hero-tab { flex: 1 1 0; padding-inline: 2px; }

  .pane, .project-main, .project--flip .project-main, .project--featured { grid-template-columns: 1fr; }
  .project--flip .project-copy { order: 0; }
  .project-main > .gallery, .project-main > .phones { order: -1; }
  .project--featured .project-features { border-left: 0; border-top: 1px solid var(--line); }
  .pane-media { order: -1; min-height: 0; aspect-ratio: 3 / 2; }
  .pane-sticker { top: auto; bottom: -22px; }
  .items { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-panel + .split-panel { border-left: 0; border-top: 1px solid #555; }
  .split-panel { min-height: 340px; }
}

@media (max-width: 720px) {
  .nav { top: 8px; left: 8px; right: 8px; }
  .nav-links { display: none; }
  .brand img { width: 62px; height: 62px; }
  .features { grid-template-columns: 1fr; }
  .section-links { gap: 10px 28px; }
}

@media (max-width: 520px) {
  .nav-cta { display: none; }
  .hero-actions, .hero-actions .btn, .project-cta { width: 100%; }
  .contact-links, .contact-links .btn { width: 100%; }
  .split-panel--game .split-art { left: -96px; }
  .split-panel--game .split-copy { max-width: 56%; }
  .split-panel--contact .split-copy { max-width: 100%; }
  .split-panel--contact .split-art { opacity: .16; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-stage { grid-column: 1; grid-row: 1; padding: 64px 12px 92px; }
  .lb-prev, .lb-next { position: absolute; bottom: 22px; margin: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

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