/* OldWorld Remasters - the studio's site. One identity: dark petrol ground, warm ivory, an amber accent (all three
   from the helmet logo), and the motif "from pixels to AAA": pixel type and stepped squares turning into smooth
   lines. Fallout itself shows only in the shots. */

:root {
  --bg: #01232b;
  --bg-deep: #00171d;
  --panel: rgba(6, 52, 62, 0.55);
  --panel-solid: #052d36;
  --ivory: #f3ead6;
  --ivory-2: #d8cdb4;
  --muted: #a3b2ab;
  --amber: #f2a93b;
  --amber-hi: #ffca73;
  --rust: #d4651c;
  --line: rgba(243, 234, 214, 0.12);
  --line-2: rgba(243, 234, 214, 0.22);
  --font-display: "Chakra Petch", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-pixel: "Silkscreen", "Consolas", ui-monospace, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 16px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 17px/1.65 var(--font-body);
  color: var(--ivory);
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(242, 169, 59, 0.11), transparent 62%),
    radial-gradient(900px 700px at -12% 18%, rgba(12, 92, 104, 0.32), transparent 62%),
    radial-gradient(1200px 900px at 50% 120%, rgba(212, 101, 28, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #011e25 55%, var(--bg-deep) 100%);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* a fine grain over everything (no image files: an SVG noise) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: #1a1205; }
:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--amber); color: #1a1205; padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(1, 35, 43, 0.92), rgba(1, 35, 43, 0.72));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.top.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8); }
.top-in {
  width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; }
.brand-word { display: grid; grid-template-columns: auto auto; column-gap: 1px; line-height: 1; }
.wm-pixel { font: 400 17px/1 var(--font-pixel); letter-spacing: 0.02em; color: var(--ivory); align-self: end; padding-bottom: 1px; }
.wm-smooth { font: 700 20px/1 var(--font-display); letter-spacing: 0.01em; color: var(--ivory); }
.wm-sub { grid-column: 1 / -1; font: 600 9.5px/1 var(--font-body); letter-spacing: 0.42em; text-transform: uppercase; color: var(--amber); margin-top: 5px; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; font: 500 14px/1 var(--font-body); color: var(--ivory-2);
  padding: 9px 12px; border-radius: 9px; transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ivory); background: rgba(243, 234, 214, 0.06); }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.lang button {
  border: 0; background: transparent; cursor: pointer; padding: 6px 10px; border-radius: 7px;
  font: 400 12px/1 var(--font-pixel); letter-spacing: 0.06em; color: var(--muted); transition: background 0.2s, color 0.2s;
}
.lang button[aria-pressed="true"] { background: var(--amber); color: #1a1205; }
.lang button:not([aria-pressed="true"]):hover { color: var(--ivory); }
@media (max-width: 860px) { .nav { display: none; } }

/* ------------------------------------------------------------------ shared */
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font: 400 12px/1.2 var(--font-pixel); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber);
}
/* three stepped pixels - the logo's corner of the visor */
.px { position: relative; width: 6px; height: 6px; background: var(--amber); box-shadow: 8px -6px 0 0 var(--amber), 16px -12px 0 0 rgba(242, 169, 59, 0.45); margin-right: 16px; margin-top: 10px; flex: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.4vw, 72px); }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
.lead, .sec-text { color: var(--ivory-2); font-size: clamp(16px, 1.35vw, 19px); max-width: 62ch; margin: 16px 0 0; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.fine { color: var(--muted); font-size: 14px; margin: 22px 0 0; }

/* the section rule: pixels shrinking into a line - "from pixels to AAA" */
.rule { display: flex; align-items: center; gap: 7px; height: 20px; }
.rule i { display: block; background: var(--amber); flex: none; }
.rule i:nth-child(1) { width: 12px; height: 12px; }
.rule i:nth-child(2) { width: 9px; height: 9px; opacity: 0.85; }
.rule i:nth-child(3) { width: 6px; height: 6px; opacity: 0.7; }
.rule i:nth-child(4) { width: 4px; height: 4px; opacity: 0.55; }
.rule i:nth-child(5) { width: 2px; height: 2px; opacity: 0.45; }
.rule span { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(242, 169, 59, 0.5), rgba(243, 234, 214, 0.12) 40%, transparent); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--amber-hi); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(255, 202, 115, 0.35); padding-bottom: 2px; transition: gap 0.25s var(--ease), border-color 0.2s;
}
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { gap: 12px; border-color: var(--amber-hi); }

/* ------------------------------------------------------------------ hero: the comparison */
.hero { padding-top: clamp(22px, 3vw, 40px); }
.hero-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-head .kicker { margin-bottom: 10px; }
.hero-head .lead { margin: 12px auto 0; max-width: 70ch; text-wrap: balance; }
.hero-head h1 { font-size: clamp(32px, 4.4vw, 62px); text-wrap: balance; }
.compare-wrap { padding: clamp(18px, 2.4vw, 28px) var(--gutter) 0; display: flex; justify-content: center; }
.compare {
  --pos: 50%;
  position: relative;
  /* as big as the first screen allows: the headline above and the day / night switch below stay in view */
  width: min(100%, 1400px, calc((100vh - 340px) * 1.7273));
  width: min(100%, 1400px, calc((100svh - 340px) * 1.7273));
  min-width: min(100%, 680px);
  aspect-ratio: 1520 / 880;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 120px -30px rgba(242, 169, 59, 0.18);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  isolation: isolate;
}
.compare .side { position: absolute; inset: 0; }
.compare .side-orig { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }
.compare img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 44% 38%;   /* the same for every picture: the same crop everywhere */
  pointer-events: none; -webkit-user-drag: none;
}
.compare .t-night { opacity: 0; transition: opacity 0.7s var(--ease); }
.compare.is-night .t-night { opacity: 1; }
.compare .t-day { transition: opacity 0.7s var(--ease); }
.compare.is-night .t-day { opacity: 0; }
/* a soft vignette over both halves */
.compare::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 58%, rgba(0, 10, 14, 0.45) 100%);
}
.label {
  position: absolute; top: 16px; z-index: 6; pointer-events: none;
  padding: 8px 12px; border-radius: 10px; line-height: 1;
  background: rgba(1, 26, 32, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); transition: opacity 0.3s;
}
.label-orig { left: 16px; font: 400 12px/1 var(--font-pixel); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory); }
.label-orig b { font-weight: 400; color: var(--muted); margin-left: 4px; }
.label-hd { right: 16px; font: 700 14px/1 var(--font-display); letter-spacing: 0.04em; color: var(--amber-hi); border-color: rgba(242, 169, 59, 0.45); }
.compare.hide-orig .label-orig, .compare.hide-hd .label-hd { opacity: 0; }

.divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 5; width: 0; pointer-events: none;
}
.divider::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: linear-gradient(180deg, rgba(255, 202, 115, 0.2), var(--amber-hi) 20%, var(--amber) 80%, rgba(242, 169, 59, 0.2));
  box-shadow: 0 0 16px rgba(242, 169, 59, 0.7), 0 0 2px rgba(0, 0, 0, 0.6);
}
.knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(1, 30, 37, 0.88); color: var(--ivory);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  box-shadow: inset 0 0 0 2px var(--amber);
  transition: transform 0.25s var(--ease);
}
.knob::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  clip-path: inherit; border: 2px solid var(--amber);
  background: linear-gradient(135deg, rgba(255, 202, 115, 0.18), transparent 55%);
}
.knob svg { width: 10px; height: 13px; position: relative; }
.arrow-px { fill: var(--ivory); shape-rendering: crispEdges; }
.arrow-sm { color: var(--amber-hi); }
.compare.is-dragging .knob, .handle:focus-visible ~ .divider .knob { transform: translate(-50%, -50%) scale(1.08); }
.handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 7; width: 64px; transform: translateX(-50%);
  cursor: ew-resize; outline: none;
}
.handle:focus-visible::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%);
  border: 2px solid var(--amber-hi); border-radius: 14px;
}

.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px;
  padding-top: 22px;
}
.seg {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line-2);
}
.seg-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 10px 18px; border-radius: 10px; background: transparent; color: var(--ivory-2);
  font: 600 15px/1 var(--font-body); transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.seg-btn svg { width: 18px; height: 18px; }
.seg-btn[aria-pressed="true"] { background: var(--amber); color: #1a1205; box-shadow: 0 6px 22px -8px rgba(242, 169, 59, 0.8); }
.seg-btn:not([aria-pressed="true"]):hover { color: var(--ivory); background: rgba(243, 234, 214, 0.07); }
.hint { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 14px; }
.hint svg { width: 28px; height: 12px; color: var(--amber); }
.note { margin: 0; color: var(--muted); font-size: 14px; }
.note::before { content: "·"; margin-right: 22px; color: var(--line-2); }
.hero + .rule { margin-top: clamp(56px, 8vw, 110px); }

/* ------------------------------------------------------------------ the project */
.project { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.project-head h2 { font-size: clamp(40px, 4.6vw, 66px); line-height: 0.98; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.chips span {
  font: 400 11px/1 var(--font-pixel); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-2);
  padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(243, 234, 214, 0.03);
}
.big { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.55; margin: 0; color: var(--ivory); font-weight: 500; text-wrap: pretty; }
.pillars { list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pillars li {
  position: relative; padding: 22px 20px 20px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(8, 62, 74, 0.6), rgba(4, 40, 48, 0.4));
  border: 1px solid var(--line);
}
.pillars li::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent 70%);
}
.pill-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(242, 169, 59, 0.12); color: var(--amber-hi); margin-bottom: 14px; }
.pill-ico svg { width: 22px; height: 22px; }
.pillars h3 { font-size: 20px; margin-bottom: 6px; }
.pillars p { margin: 0; color: var(--ivory-2); font-size: 15px; line-height: 1.55; }

/* ------------------------------------------------------------------ the video */
.video-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.4s; filter: saturate(0.95) brightness(0.88); }
.video:hover img { transform: scale(1.025); filter: saturate(1.05) brightness(0.95); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border: 0; cursor: pointer; display: grid; place-items: center;
  color: #1a1205; background: var(--amber);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  box-shadow: 0 0 0 10px rgba(242, 169, 59, 0.18);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.play svg { width: 40px; height: 40px; margin-left: 4px; }
.play:hover { transform: translate(-50%, -50%) scale(1.07); background: var(--amber-hi); }
.video-note {
  position: absolute; left: 14px; bottom: 12px; margin: 0; z-index: 2;
  font-size: 12.5px; color: var(--ivory-2); background: rgba(1, 22, 27, 0.7); padding: 6px 10px; border-radius: 8px;
}
.video.is-playing .play, .video.is-playing .video-note, .video.is-playing img { display: none; }
.ask {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: clamp(22px, 3vw, 34px); border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(242, 169, 59, 0.16), rgba(5, 45, 54, 0.7) 55%), var(--panel-solid);
  border: 1px solid rgba(242, 169, 59, 0.3);
}
.ask-mark {
  position: absolute; right: -6px; top: -26px; font: 700 160px/1 var(--font-display); color: rgba(242, 169, 59, 0.12); pointer-events: none;
}
.ask-q { font: 700 clamp(22px, 2.2vw, 28px)/1.2 var(--font-display); margin: 0; text-wrap: balance; position: relative; }
.ask-sub { margin: 0; color: var(--ivory-2); font-size: 15px; position: relative; }
.ask .link-arrow { align-self: flex-start; position: relative; }

/* ------------------------------------------------------------------ development shots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.shot {
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 58, 69, 0.55), rgba(3, 32, 39, 0.55));
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.shot:hover { transform: translateY(-4px); border-color: rgba(242, 169, 59, 0.35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.shot-img { position: relative; display: block; padding: 0; border: 0; background: #000; cursor: zoom-in; aspect-ratio: 16 / 9; overflow: hidden; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.shot:hover .shot-img img { transform: scale(1.04); }
.shot-img::after {
  content: ""; position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 8px;
  background: rgba(1, 22, 27, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7' fill='none' stroke='%23f3ead6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  opacity: 0; transition: opacity 0.3s;
}
.shot:hover .shot-img::after, .shot-img:focus-visible::after { opacity: 1; }
.shot-body { padding: 18px 20px 22px; }
.tag { margin: 0 0 8px; font: 400 11px/1 var(--font-pixel); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.shot h3 { font-size: 22px; margin-bottom: 8px; }
.shot-body > p:not(.tag) { margin: 0; color: var(--ivory-2); font-size: 15.5px; line-height: 1.55; }
.shot-body .wip { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.shot-body .wip::before { content: ""; width: 6px; height: 6px; background: var(--amber); flex: none; transform: translateY(-1px); }

/* ------------------------------------------------------------------ the studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.studio-logo { margin: 0; position: relative; }
.studio-logo::before {
  content: ""; position: absolute; inset: 8% 8% 14%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 169, 59, 0.28), rgba(212, 101, 28, 0.08) 60%, transparent);
  filter: blur(20px);
}
/* the logo's own petrol ground fades into the page's, whatever shade the page has there */
.studio-logo img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
}
.studio-logo figcaption {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 14px;
}
.cap-px { font: 400 11px/1 var(--font-pixel); letter-spacing: 0.08em; color: var(--ivory-2); }
.cap-sm { font: 700 13px/1 var(--font-display); letter-spacing: 0.08em; color: var(--amber-hi); }
.motto { margin: 14px 0 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.motto-px { font: 400 0.72em/1 var(--font-pixel); color: var(--ivory-2); letter-spacing: 0.02em; }
.motto-sm { font-family: var(--font-display); font-weight: 700; color: var(--amber-hi); }
.mini-h { font: 400 12px/1 var(--font-pixel); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 38px 0 14px; }
.projects { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.proj { position: relative; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(6, 52, 62, 0.45); overflow: hidden; }
.proj h4 { font-size: 22px; margin: 10px 0 6px; }
.proj p { margin: 0 0 12px; color: var(--ivory-2); font-size: 15px; line-height: 1.5; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 400 10.5px/1 var(--font-pixel); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.dot { width: 7px; height: 7px; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 2.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.proj-next { border-style: dashed; border-color: var(--line-2); background: transparent; }
.proj-next .status { color: var(--muted); }
.proj-next h4 { color: var(--ivory-2); }
.next-px { position: absolute; right: 16px; bottom: 16px; display: grid; grid-template-columns: repeat(3, 7px); gap: 3px; opacity: 0.35; }
.next-px i { width: 7px; height: 7px; background: var(--ivory-2); }
.next-px i:nth-child(2), .next-px i:nth-child(4), .next-px i:nth-child(9) { opacity: 0; }
.follow { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 220px;
  padding: 14px 20px 14px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(243, 234, 214, 0.04); transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn svg { width: 28px; height: 28px; flex: none; color: var(--amber-hi); }
.btn span { display: flex; flex-direction: column; line-height: 1.25; }
.btn b { font: 700 17px/1.2 var(--font-display); }
.btn small { font-size: 13px; color: var(--muted); }
.btn:hover { transform: translateY(-2px); border-color: rgba(242, 169, 59, 0.5); background: rgba(242, 169, 59, 0.08); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #1a1205; }
.btn-amber svg { color: #1a1205; }
.btn-amber small { color: rgba(26, 18, 5, 0.72); }
.btn-amber:hover { background: var(--amber-hi); border-color: var(--amber-hi); }

/* ------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); background: rgba(0, 18, 23, 0.55); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 18px 48px; padding-block: 40px 34px; align-items: start; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { border-radius: 11px; }
.foot-brand p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.foot-brand b { color: var(--ivory); font: 700 16px/1.3 var(--font-display); }
.foot-legal { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 78ch; }
.foot-copy { grid-column: 1 / -1; margin: 0; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 18px; }
.to-top { color: var(--ivory-2); text-decoration: none; font: 400 11px/1.6 var(--font-pixel); letter-spacing: 0.1em; text-transform: uppercase; }
.to-top:hover { color: var(--amber-hi); }

/* ------------------------------------------------------------------ the lightbox */
.lightbox {
  width: min(96vw, 1600px); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 120px rgba(0, 0, 0, 0.8);
}
.lightbox::backdrop { background: rgba(0, 12, 16, 0.86); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; }
.lb-close {
  position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2);
  display: grid; place-items: center; cursor: pointer; background: rgba(1, 22, 27, 0.8); color: var(--ivory);
}
.lb-close svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .compare .t-night, .compare .t-day { transition: none; }
  .dot { animation: none; }
}

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1020px) {
  .project, .studio { grid-template-columns: minmax(0, 1fr); }
  .studio-logo { max-width: 440px; margin-inline: auto; }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shots { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-in { height: 60px; gap: 12px; }
  .brand-logo { width: 34px; height: 34px; }
  .wm-smooth { font-size: 18px; }
  .wm-pixel { font-size: 15px; }
  .wm-sub { letter-spacing: 0.34em; }
  /* the phone: a taller window into both pictures - the same crop for the original and HD */
  .compare-wrap { padding-inline: 0; }
  .compare { width: 100%; min-width: 0; aspect-ratio: 1 / 0.92; border-radius: 0; box-shadow: 0 0 0 1px var(--line); }
  .compare img { object-position: 50% 40%; }   /* both fire bowls and the gate in the narrow window */
  .label { top: 12px; padding: 7px 10px; }
  .label-orig { left: 12px; font-size: 10.5px; }
  .label-hd { right: 12px; font-size: 12.5px; }
  .knob { width: 50px; height: 50px; }
  .hero-foot { flex-direction: column; gap: 12px; }
  .note::before { display: none; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .btn { min-width: 0; width: 100%; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .play { width: 74px; height: 74px; }
  .play svg { width: 32px; height: 32px; }
}
