/* ================================
   GUY LIFSHITZ — PORTFOLIO
   Minimal editorial list style
   ================================ */

@font-face{
  font-family: 'Aharoni CLM';
  src: url('assets/fonts/aharoniclm-book-webfont.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Aharoni CLM';
  src: url('assets/fonts/aharoniclm-bookoblique-webfont.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face{
  font-family: 'Aharoni CLM';
  src: url('assets/fonts/aharoniclm-bold-webfont.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Aharoni CLM';
  src: url('assets/fonts/aharoniclm-boldoblique-webfont.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root{
  --paper:  #FAFAF8;
  --ink:    #131211;
  --muted:  #928d82;
  --line:   #e6e2d8;
  --accent: #b3432c;

  --sans: 'Aharoni CLM', sans-serif;
  --mono: 'Aharoni CLM', sans-serif;

  --topbar-h: 77px;
}
@media (max-width: 640px){
  :root{ --topbar-h: 58px; }
}

*{ box-sizing: border-box; }

html{ background: var(--paper); scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--paper) url('assets/paper-texture.jpg') center top / cover no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
}

a{ color: inherit; text-decoration: none; }
::selection{ background: var(--ink); color: var(--paper); }

/* ============ background video (home section only) ============ */
.bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 32%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 0%, #000 32%, transparent 58%);
}
.sec{ position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce){
  .bg-video{ display: none; }
}
@media (max-width: 760px){
  .bg-video{
    left: 10px;
    right: auto;
    top: auto;
    bottom: 14px;
    width: 36vw;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    object-position: left bottom;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ============ motion: entrance + reveal ============ */
[data-reveal]{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1);
}
[data-reveal].in{ opacity: 1; transform: none; }

.grid-item.reveal, .contact-list a.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.grid-item.reveal.in, .contact-list a.reveal.in{
  opacity: 1;
  transform: none;
}

/* ============ top bar ============ */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 28px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(250,250,248,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.topbar.on-dark{
  background: rgba(27,42,54,.55);
  border-color: rgba(255,255,255,.12);
}
.topbar .brand{
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
}
.topbar nav{
  display:flex;
  gap: 26px;
  font-family: var(--mono);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}
.topbar nav a{
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.topbar nav a:hover,
.topbar nav a.active{
  color: var(--ink);
  border-color: var(--ink);
}

/* ============ KESETACH ============ */
.sec-kesetach{
  --paper: #1b2a36;
  --ink:   #f1e9db;
  --muted: #93a0a6;
  --line:  #33475a;
  background: #1b2a36;
  color: var(--ink);
  padding: calc(var(--topbar-h) + 20px) 0 60px;
}
.sec-kesetach .ks-poster img{ filter: none; }
/* whole page blue: viewport, overscroll, everything */
html.page-ks, body.page-ks{
  --paper: #1b2a36; --ink: #f1e9db; --muted: #93a0a6; --line: #33475a;
  background: #1b2a36;
  color: #f1e9db;
}
body.page-ks{ min-height: 100vh; }
body.page-ks .sec-kesetach{ min-height: 100vh; }

/* ---- film grain overlay, fades in on scroll-into-view ---- */
.ks-grain{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity 1.4s ease;
}
.ks-grain.on{ opacity: .5; }
@media (prefers-reduced-motion: reduce){
  .ks-grain{ display: none; }
}

/* ---- cinematic title wipe ---- */
.ks-title{
  clip-path: inset(0 0 0 100%);
  transition: clip-path .9s cubic-bezier(.16,.8,.24,1);
}
.ks-title.wiped{ clip-path: inset(0 0 0 0%); }
@media (prefers-reduced-motion: reduce){
  .ks-title{ clip-path: none; transition: none; }
}
.ks-wrap{
  padding: 20px 0 20px;
  display:grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items:start;
}
.ks-wrap > div{ min-width: 0; }
@media (max-width: 760px){
  .ks-wrap{ grid-template-columns: 1fr; gap: 30px; }
}
.ks-poster img{
  width:100%;
  display:block;
  border: 1px solid var(--line);
}
.ks-title{
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.02;
}
.ks-sub{
  font-family: var(--mono);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.ks-tagline{
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 30px;
}
.ks-section{
  margin-bottom: 34px;
}
.ks-section h2{
  font-family: var(--mono);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.ks-awards{
  width: 100%;
  min-width: 0;
  margin: 0 -40px;
  padding: 6px 0;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.ks-awards-track{
  display:flex;
  align-items:center;
  gap: 46px;
  width: max-content;
  animation: ks-marquee 28s linear infinite;
}
.ks-awards:hover .ks-awards-track{ animation-play-state: paused; }
@keyframes ks-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.award-badge{
  height: 64px;
  width: 120px;
  flex-shrink: 0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.award-badge img{
  height: 42px;
  width: auto;
  max-width: 100%;
  display:block;
  opacity: .8;
  transition: opacity .2s ease;
}
.award-badge.invert img{
  filter: brightness(0) invert(1);
}
.award-badge:hover img{ opacity: 1; }

@media (prefers-reduced-motion: reduce){
  .ks-awards-track{ animation: none; }
}

@media (max-width: 640px){
  .ks-awards{ margin: 0 -22px; }
}
.ks-interviews{
  display:flex;
  flex-direction:column;
}
.ks-interviews a{
  font-family: var(--mono);
  font-style: italic;
  font-size: 14px;
  display:flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color .15s ease, transform .25s cubic-bezier(.16,.8,.24,1);
}
.ks-interviews a:hover{ color: var(--accent); transform: translateX(-4px); }
.ks-empty{
  font-family: var(--mono);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px){
  .topbar{ padding: 20px 22px; }
  .topbar nav{ gap: 16px; }
}
/* small phones (iPhone widths, English too): brand + 4 links + language switch must ALWAYS be visible.
   Sizes scale with the screen width; if a device still runs out of room the links drop to a second row
   instead of being cut off. */
html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 480px){
  .topbar{ padding: 16px 12px; gap: 6px 10px; flex-wrap: wrap; }
  .topbar .brand{ font-size: clamp(12px, 3.6vw, 14px); white-space: nowrap; flex: 0 0 auto; }
  .topbar nav{ gap: clamp(6px, 2.4vw, 11px); font-size: clamp(9.5px, 2.9vw, 11px); letter-spacing: 0; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
  .topbar nav a, .topbar nav .lang-toggle{ white-space: nowrap; }
}
}

/* ============ shell ============ */
.wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 640px){ .wrap{ padding: 0 22px; } }

/* ============ HOME ============ */
.sec-home{
  overflow: hidden;
  min-height: 100vh;
  display:flex;
  align-items:center;
}
.home-hero{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap: 22px;
  padding: var(--topbar-h) 0 40px;
}
@media (max-width: 760px){
  .home-hero{
    align-items:flex-start;
    padding-top: calc(var(--topbar-h) + 12vh);
    padding-right: 14px;
  }
}
@media (min-width: 761px){
  .home-hero{
    transform: translateX(70px);
  }
}
.home-hero .role{
  font-family: var(--mono);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.home-hero h1{
  font-size: clamp(48px, 9vw, 104px);
  line-height: .96;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.01em;
}
.home-links{
  display:flex;
  gap: 28px;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
}
.home-links a{
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity .15s ease;
}
.home-links a:hover{ opacity: .55; }

/* ============ WORK list ============ */
.sec-work{ padding: calc(var(--topbar-h) + 30px) 0 30px; }

/* ---- small CV intro at the top of the work page ---- */
.work-intro{
  padding-bottom: 26px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.credits.timeline.compact{ max-width: 520px; margin-top: 0; }
.credits.timeline.compact .cr-eyebrow{ margin-bottom: 8px; }
.credits.timeline.compact .cr-list li{ padding: 8px 0; grid-template-columns: 32px 58px 1fr; }
.credits.timeline.compact .cr-icon{ width: 32px; height: 22px; }
.credits.timeline.compact .cr-year{ font-size: 12px; }
.credits.timeline.compact .cr-desc{ font-size: 13px; line-height: 1.4; }
.page-head{
  padding: 0 0 28px;
}
.page-head .eyebrow{
  font-family: var(--mono);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.page-head h1{
  font-size: clamp(34px, 6vw, 52px);
  margin: 6px 0 0;
  font-weight: 700;
  position: relative;
  display: inline-block;
  line-height: 1.22;
  transition: font-family .15s ease;
}
.page-head{
  min-height: clamp(150px, 20vw, 190px);
}

/* ============ title glitch-cycle (small, contained to the word) ============ */
.page-head h1.glitching{
  animation: glitchSkew .16s steps(3,end);
}
.page-head h1.glitching::before,
.page-head h1.glitching::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--paper);
  font-family: inherit;
}
.page-head h1.glitching::before{
  color: #c1442d;
  animation: glitchSliceA .16s steps(2,end);
  clip-path: polygon(0 15%, 100% 15%, 100% 38%, 0 38%);
  transform: translateX(-2px);
}
.page-head h1.glitching::after{
  color: #3b6e8f;
  animation: glitchSliceB .16s steps(2,end);
  clip-path: polygon(0 55%, 100% 55%, 100% 76%, 0 76%);
  transform: translateX(2px);
}
@keyframes glitchSkew{
  0%{ transform: skewX(0deg); }
  40%{ transform: skewX(-.6deg); }
  70%{ transform: skewX(.5deg); }
  100%{ transform: skewX(0deg); }
}
@keyframes glitchSliceA{
  0%{ transform: translateX(-2px); opacity: 1; }
  50%{ transform: translateX(3px); opacity: .75; }
  100%{ transform: translateX(-2px); opacity: 0; }
}
@keyframes glitchSliceB{
  0%{ transform: translateX(2px); opacity: 1; }
  50%{ transform: translateX(-3px); opacity: .75; }
  100%{ transform: translateX(2px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .page-head h1.glitching{ animation: none; }
  .page-head h1.glitching::before,
  .page-head h1.glitching::after{ display:none; }
}

/* ============ WORK grid — hover-caption gallery ============ */
.reel-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (max-width: 760px){ .reel-grid{ grid-template-columns: 1fr; gap:6px; } }
@media (min-width: 761px){
  .reel-grid{ gap: 22px; padding: 6px 10px; }
}

.grid-item{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9e5da;
  cursor: pointer;
}

/* ---- pinned-to-a-corkboard photos (desktop only): tiles hang from a
   thumbtack and sway gently; hovering stops the sway, straightens the
   photo, lifts it off the board, and darkens it ---- */
@media (min-width: 761px){
  .grid-item{
    transform-origin: top center;
    transition: transform .4s cubic-bezier(.16,.8,.24,1), box-shadow .4s ease, z-index 0s;
    box-shadow: 0 3px 10px rgba(20,15,10,.12), 0 1px 2px rgba(20,15,10,.08);
    will-change: transform;
  }
  .grid-item:not(.empty)::before{
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 13px; height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e85a4a, #8f2318 72%);
    box-shadow: 0 2px 4px rgba(0,0,0,.4);
    z-index: 6;
    pointer-events: none;
  }
  .grid-item:nth-child(6n+1){ animation: sway-a 5.6s ease-in-out infinite; }
  .grid-item:nth-child(6n+2){ animation: sway-b 6.4s ease-in-out infinite; animation-delay: -1.1s; }
  .grid-item:nth-child(6n+3){ animation: sway-c 4.9s ease-in-out infinite; animation-delay: -2.3s; }
  .grid-item:nth-child(6n+4){ animation: sway-d 6.9s ease-in-out infinite; animation-delay: -.6s; }
  .grid-item:nth-child(6n+5){ animation: sway-e 5.2s ease-in-out infinite; animation-delay: -3s; }
  .grid-item:nth-child(6n+6){ animation: sway-f 6s ease-in-out infinite; animation-delay: -1.8s; }
  .grid-item:hover{
    animation-play-state: paused;
    transform: rotate(0deg) scale(1.045);
    box-shadow: 0 18px 34px rgba(20,15,10,.24), 0 4px 10px rgba(20,15,10,.12);
    z-index: 5;
  }
  .grid-item:hover .bg{ filter: brightness(.74); }

  @keyframes sway-a{ 0%,100%{ transform: rotate(-1.7deg); } 50%{ transform: rotate(1.3deg); } }
  @keyframes sway-b{ 0%,100%{ transform: rotate(1.4deg); } 50%{ transform: rotate(-1.6deg); } }
  @keyframes sway-c{ 0%,100%{ transform: rotate(-1.1deg); } 50%{ transform: rotate(1.8deg); } }
  @keyframes sway-d{ 0%,100%{ transform: rotate(1.7deg); } 50%{ transform: rotate(-1.1deg); } }
  @keyframes sway-e{ 0%,100%{ transform: rotate(-1.4deg); } 50%{ transform: rotate(1.1deg); } }
  @keyframes sway-f{ 0%,100%{ transform: rotate(1.1deg); } 50%{ transform: rotate(-1.7deg); } }

  @media (prefers-reduced-motion: reduce){
    .grid-item{ animation: none !important; }
  }
}
.grid-item .bg{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  transition: transform .6s cubic-bezier(.16,.8,.24,1), filter .5s ease;
}
.grid-item.yt .bg{
  /* YouTube's hqdefault.jpg is 4:3 and often has black letterbox bars
     baked into the pixels for 16:9 videos. Our tile is wider than 4:3,
     so plain cover only crops the sides and leaves the bars visible.
     Overscaling crops them out top and bottom too. */
  background-size: 100% 172%;
}
.grid-item:hover .bg{
  transform: scale(1.045);
}
.grid-item .overlay{
  position:absolute; inset:0;
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  justify-content:flex-end;
  padding: 28px 30px;
  background: linear-gradient(0deg, rgba(10,9,8,.88) 0%, rgba(10,9,8,.45) 40%, rgba(10,9,8,0) 78%);
  opacity: .82;
  transition: opacity .35s ease;
}
.grid-item:hover .overlay,
.grid-item:focus-visible .overlay{
  opacity: 1;
}
.grid-item .g-title{
  color: #FAFAF8;
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 700;
  transform: translateY(6px);
  transition: transform .35s cubic-bezier(.16,.8,.24,1);
}
.grid-item .g-role{
  color: #d8d3c6;
  font-family: var(--mono);
  font-style: italic;
  font-size: 13px;
  margin-top: 6px;
  transform: translateY(6px);
  transition: transform .4s cubic-bezier(.16,.8,.24,1) .03s;
}
.grid-item:hover .g-title,
.grid-item:hover .g-role{ transform: translateY(0); }

.grid-item.empty{
  display:flex; align-items:center; justify-content:center;
  color: var(--muted);
  font-family: var(--mono);
  font-style: italic;
  font-size: 11px;
  letter-spacing: .06em;
}
.grid-item a.cover-link{ position:absolute; inset:0; z-index:2; }

.work-note{
  margin: 30px 0 60px;
  font-family: var(--mono);
  font-style: italic;
  font-size: 12px;
  color: var(--muted);
}

/* ============ ABOUT ============ */
.about-shell{
  width: 100%;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  display:flex;
  align-items:flex-end;
}
.about-wrap{
  width:100%;
  display:flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px;
  padding: calc(var(--topbar-h) + 30px) 0 40px;
}
.about-text{ flex: 1 1 460px; max-width: 520px; order:2; }

.portrait-anchor{
  flex: 0 0 auto;
  width: 440px;
  margin-right: -130px;
  order: 1;
  pointer-events: none;
  overflow: visible;
  /* entrance only: rises into place once on load (driven by the same
     [data-reveal] → .in mechanism as the rest of the page) */
  transform: translateY(60vh);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.16,.8,.2,1), opacity .5s ease;
}
.portrait-anchor.in{
  transform: translateY(0);
  opacity: 1;
}
.portrait-float{
  /* continuous gentle bob, independent of the one-time entrance above
     so the two motions don't fight over the same transform */
  animation: portrait-bob 4.6s ease-in-out infinite;
}
@keyframes portrait-bob{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-16px); }
}
.portrait-anchor img{
  display:block;
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce){
  .portrait-anchor{ transform:none; opacity:1; transition:none; }
  .portrait-float{ animation: none; }
}

@media (max-width: 800px){
  .about-wrap{ flex-direction: column; align-items:center; gap: 20px; padding-top: calc(var(--topbar-h) + 30px); }
  .about-text{ width:100%; max-width:none; order:1; }
  .portrait-anchor{ width: 190px; margin-right: 0; order:2; }
}

/* ---- credits: icon | year | description rows, in the site's own
   paper/ink/accent palette ---- */
.credits.timeline{ margin-top: 36px; }
.credits .cr-eyebrow{
  font-family: var(--mono);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cr-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.cr-list li{
  display: grid;
  grid-template-columns: 36px 64px 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.cr-list li:first-child{ border-top: 1px solid var(--line); }
.cr-icon{
  width: 36px;
  height: 26px;
  object-fit: contain;
  object-position: center;
  justify-self: center;
  opacity: .92;
}
.cr-year{
  font-family: var(--mono);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
  unicode-bidi: plaintext;
}
.cr-desc{
  font-size: 14.5px;
  line-height: 1.4;
}

/* ============ ABOUT / GAME (pong + contact reveal) ============ */
.sec-game{
  padding: calc(var(--topbar-h) + 26px) 0 60px;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  display:flex;
  align-items:flex-start;
}
.sec-game .wrap{ width:100%; max-width: 1240px; }
.game-head{ margin-bottom: 18px; text-align:center; }
.game-head .eyebrow{
  font-family: var(--mono);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.game-head h1{
  font-size: clamp(30px, 5.2vw, 52px);
  margin: 0;
  font-weight: 700;
}

.pong-wrap{
  --paper: #17120f;
  --ink:   #f1e9db;
  --muted: #a39a8d;
  --line:  #3b322a;
  position: relative;
  width: min(100%, 1180px, calc(66vh * 16 / 9));
  width: min(100%, 1180px, calc(66svh * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #17120f;
  border: 2px solid #2c241d;
  border-radius: 6px;
  box-shadow: 0 26px 60px rgba(40,24,10,.30), 0 4px 14px rgba(40,24,10,.2);
  color: var(--ink);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.pong-wrap canvas{
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.pong-phrase{
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -8px) scale(.96);
  max-width: 82%;
  text-align: center;
  font-weight: 700;
  font-size: clamp(14px, 2.2vw, 19px);
  color: #17120f;
  background: #ff6a4a;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255,106,74,.35);
  opacity: 0;
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,1.4,.4,1);
  pointer-events: none;
}
.pong-phrase.on{ opacity: 1; transform: translate(-50%, 0) scale(1); }

.pong-start[hidden], .pong-result[hidden]{ display: none; }
.pong-start{
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(23,18,15,.25) 0%, rgba(23,18,15,.78) 100%);
  cursor: pointer;
  outline: none;
}
.ps-title{
  position: relative;
  z-index: 1;
  font-size: clamp(26px, 5.2vw, 62px);
  max-width: 88%;
  text-align: center;
  text-wrap: balance;
  line-height: 1.15;
  font-weight: 700;
  color: #f1e9db;
  letter-spacing: -.01em;
  text-shadow: 0 0 28px rgba(255,106,74,.55);
  animation: ps-pulse 1.1s ease-in-out infinite;
}
.ps-ring{
  position: absolute;
  width: clamp(120px, 24vw, 230px);
  height: clamp(120px, 24vw, 230px);
  border: 3px solid #ff6a4a;
  border-radius: 50%;
  animation: ps-ring 1.6s ease-out infinite;
}
@keyframes ps-pulse{ 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.07); } }
@keyframes ps-ring{ 0%{ transform: scale(.55); opacity: .9; } 100%{ transform: scale(1.5); opacity: 0; } }
.pong-start:focus-visible .ps-title{ text-decoration: underline; }

.pong-result{
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(23,18,15,.93);
  text-align: center;
  padding: 20px;
  overflow-y: auto;
  animation: pr-in .35s ease both;
}
@keyframes pr-in{ from{ opacity: 0; transform: scale(1.04); } to{ opacity: 1; transform: none; } }
.pong-result .pr-eyebrow{
  font-family: var(--mono);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .1em;
  color: #ff6a4a;
  text-transform: uppercase;
}
.pong-result .pr-outcome{
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 700;
  color: #ff6a4a;
  margin-bottom: 2px;
}
.pong-result h2{ font-size: clamp(30px, 5.4vw, 60px); line-height: 1.12; margin: 0 0 6px; font-weight: 700; max-width: 14em; }
.pong-result p{ font-size: 16px; color: var(--muted); margin: 0 0 4px; }
.pong-result .contact-list{
  width: 100%;
  max-width: 380px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  gap: 4px;
}
.pong-result .contact-list a:hover{ color: #ff6a4a; }
.pong-again{
  margin-top: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 32px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pong-again:hover{ background: var(--ink); color: var(--paper); }

@media (max-width: 640px){
  .pong-wrap{ width: 100%; aspect-ratio: 1 / 1.1; }
}

.game-bio{
  max-width: 760px;
  margin: 34px auto 0;
  text-align: center;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}
.game-bio p{ margin: 0 0 .7em; }
.game-bio .bio-cta{ margin-top: 1.1em; font-weight: 700; color: var(--red, #d3112b); font-size: 1.12em; }

/* placeholder poster tile (project without a thumbnail yet) */
.grid-item .bg.ph{
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(ellipse at 50% 40%, #3a1218 0%, #17120f 70%);
  color:#f1e9db; font-weight:700; letter-spacing:.02em;
  font-size: clamp(64px, 11vw, 140px);
  padding-bottom: 40px;
}

@media (prefers-reduced-motion: reduce){
  .pong-phrase{ transition: none; }
  .ps-title, .ps-ring, .pong-result{ animation: none; }
}

.about-name{
  font-size: clamp(46px, 7vw, 68px);
  font-weight: 700;
  margin: 0 0 4px;
  line-height: .98;
}
.about-meta{
  font-family: var(--mono);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 30px;
}
.about-bio{
  font-size: 20px;
  line-height: 1.65;
  margin-bottom: 38px;
  max-width: 42ch;
}

.contact-list{
  display:flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.contact-list a{
  font-family: var(--mono);
  font-style: italic;
  font-size: 14px;
  display:flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color .15s ease, transform .25s cubic-bezier(.16,.8,.24,1), padding .25s ease;
}
.contact-list a:hover{ color: var(--accent); transform: translateX(-4px); }
.contact-list a .k{ color: var(--muted); direction:ltr; }
.contact-list a .v{ direction:ltr; }


/* ================================
   Pixel cursor (desktop only, native CSS cursor = zero JS cost)
   ================================ */
@media (hover:hover) and (pointer:fine){
  html, body{
    cursor:-webkit-image-set(url('assets/cursor/arrow.png') 1x, url('assets/cursor/arrow@2x.png') 2x) 1 1, auto;
    cursor:image-set(url('assets/cursor/arrow.png') 1x, url('assets/cursor/arrow@2x.png') 2x) 1 1, auto;
  }
  a, button, [role="button"], summary, label, select, .it, #bubble.on, #langCorner{
    cursor:-webkit-image-set(url('assets/cursor/hand.png') 1x, url('assets/cursor/hand@2x.png') 2x) 13 2, pointer;
    cursor:image-set(url('assets/cursor/hand.png') 1x, url('assets/cursor/hand@2x.png') 2x) 13 2, pointer;
  }
}

/* ================================
   Arrival from the home zoom: stepped pixel dissolve
   ================================ */
html.arriving::before{
  content:''; position:fixed; inset:0; z-index:99999; pointer-events:none;
  background:var(--arrive, #131211);
  animation:arrive .7s steps(7,end) .05s forwards;
}
@keyframes arrive{ to{ opacity:0; } }

/* ============ language toggle (inner pages) + LTR adjustments ============ */
.topbar nav .lang-toggle{
  display:inline-flex; gap:.4em; align-items:center; direction:ltr;
  margin:0; padding:0 0 3px; border:0; border-bottom:1px solid transparent; background:none;
  font:inherit; letter-spacing:inherit; color:var(--muted); cursor:pointer;
  transition: color .15s ease, border-color .15s ease;
}
.topbar nav .lang-toggle i{ font-style:normal; opacity:.5; }
.topbar nav .lang-toggle .cur{ color:var(--accent, #d3112b); font-weight:700; }
.topbar nav .lang-toggle:hover{ color:var(--ink); border-bottom-color:var(--ink); }
.topbar.on-dark nav .lang-toggle .cur{ color:#ff6a4a; }
.topbar nav .lang-toggle:focus-visible{ outline:2px dashed var(--accent, #d3112b); outline-offset:4px; }

html[dir="ltr"] .ks-interviews a:hover,
html[dir="ltr"] .contact-list a:hover{ transform: translateX(4px); }

/* visually hidden (kept for headings/SEO) */
.sec-game > .wrap > h1.sr{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
