/* ============================================================
   AFIQ HAZWAN — SEA NIGHT CINEMA
   Cinematic dark · Clash Display · one hot accent
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0c0a09;
  --bg-2: #141110;
  --ink: #ede8df;
  --ink-2: rgba(237, 232, 223, 0.62);
  --ink-3: rgba(237, 232, 223, 0.34);
  --ink-4: rgba(237, 232, 223, 0.14);
  --line: rgba(237, 232, 223, 0.12);
  --hot: #ff5a26;
  --hot-dim: rgba(255, 90, 38, 0.14);

  --display: 'Inter', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --gutter: clamp(20px, 4.5vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; min-height: 100vh; }

::selection { background: var(--hot); color: #0c0a09; }
::-webkit-scrollbar { width: 0; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- film grain + vignette atmosphere ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.vignette {
  position: fixed; inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(5, 4, 3, 0.55) 100%);
}

/* ---------- real site grid, made visible ----------
   This is the actual 4-column grid the page's content sits in — the
   outer padding is var(--gutter), the exact same variable every
   section/nav/container on the site uses for its left/right edge.
   So these column lines land precisely on real content boundaries,
   not an arbitrary viewport fraction. Fixed to the viewport (not the
   page) so it reads as a ruler sitting above everything, and
   mix-blend-mode:difference keeps it visible over both light and
   dark content beneath it. */
.viewport-grid {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  mix-blend-mode: difference;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--gutter);
}
.viewport-grid span {
  position: relative;
  height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.viewport-grid span:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
/* horizontal ruler rules, full-bleed (there's no site-wide row/baseline
   token the way --gutter is the column token, so these are an even
   viewport-thirds ruler rather than tied to a specific element) —
   positioned on the container itself, taken out of grid flow via
   position:absolute so they don't become stray grid items */
.viewport-grid::before, .viewport-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.viewport-grid::before { top: 33.3334%; }
.viewport-grid::after { top: 66.6667%; }

/* "+" crosshairs at every real intersection: each span's own left/right
   edge (its actual column divider line) crossed with top / one-third /
   two-thirds down. Three separate fixed-size (11x11) background layers
   placed at explicit positions — NOT one image tiled/stretched to fill
   a percentage-height tile, which stretches the thin sprite lines into
   fat smeared bars instead of staying crisp 1px crosshairs. */
.viewport-grid span::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -5.5px;
  width: 11px;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 11px 11px;
  background-position: right top, right 33.3334%, right 66.6667%;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cline x1='0' y1='5.5' x2='11' y2='5.5' stroke='white' stroke-opacity='0.4'/%3E%3Cline x1='5.5' y1='0' x2='5.5' y2='11' stroke='white' stroke-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cline x1='0' y1='5.5' x2='11' y2='5.5' stroke='white' stroke-opacity='0.4'/%3E%3Cline x1='5.5' y1='0' x2='5.5' y2='11' stroke='white' stroke-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cline x1='0' y1='5.5' x2='11' y2='5.5' stroke='white' stroke-opacity='0.4'/%3E%3Cline x1='5.5' y1='0' x2='5.5' y2='11' stroke='white' stroke-opacity='0.4'/%3E%3C/svg%3E");
}
.viewport-grid span:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -5.5px;
  width: 11px;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 11px 11px;
  background-position: left top, left 33.3334%, left 66.6667%;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cline x1='0' y1='5.5' x2='11' y2='5.5' stroke='white' stroke-opacity='0.4'/%3E%3Cline x1='5.5' y1='0' x2='5.5' y2='11' stroke='white' stroke-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cline x1='0' y1='5.5' x2='11' y2='5.5' stroke='white' stroke-opacity='0.4'/%3E%3Cline x1='5.5' y1='0' x2='5.5' y2='11' stroke='white' stroke-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cline x1='0' y1='5.5' x2='11' y2='5.5' stroke='white' stroke-opacity='0.4'/%3E%3Cline x1='5.5' y1='0' x2='5.5' y2='11' stroke='white' stroke-opacity='0.4'/%3E%3C/svg%3E");
}

@media (max-width: 700px) {
  .viewport-grid { display: none; }
}

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--gutter);
  transition: transform 0.9s var(--ease-out);
}
.loader.done { transform: translateY(-100%); }
.loader .count {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(80px, 16vw, 240px);
  line-height: 0.8;
  color: var(--ink);
}
.loader .tag {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  padding-bottom: 12px;
}

/* ---------- custom cursor ---------- */
.cur-dot, .cur-ring {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}
.cur-dot { width: 8px; height: 8px; background: var(--hot); }
.cur-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s;
}
body.cur-hover .cur-ring { width: 64px; height: 64px; opacity: 0.9; }
@media (hover: none), (max-width: 900px) {
  .cur-dot, .cur-ring { display: none; }
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--hot);
  z-index: 300;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
}
.nav .brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.nav .brand em { font-style: normal; color: var(--hot); }
.nav .links { display: flex; gap: clamp(14px, 2.5vw, 34px); }
@media (max-width: 700px) {
  .nav .links a:not([href="#contact"]) { display: none; }
}
.nav .links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 2px;
}
.nav .links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav .links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 3D canvas ---------- */
#gl {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* ---------- hero → hyperdrive scroll sequence ---------- */
.hero-pin {
  position: relative;
  height: 420vh;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.hero-sticky .hero { position: absolute; inset: 0; }

.hero-fade {
  will-change: opacity, filter, transform;
  transition: opacity 0.05s linear;
}

.warp-text {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 var(--gutter);
}
.warp-line {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  will-change: opacity, transform;
}
.warp-quote {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.warp-quote .warp-line--big {
  position: static;
  transform: none;
}
.warp-credit {
  margin-top: 18px;
  opacity: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  will-change: opacity, transform;
  transform: translateY(8px);
}

.warp-face {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  will-change: opacity, transform;
}
.warp-face img {
  width: clamp(120px, 16vw, 200px);
  height: clamp(120px, 16vw, 200px);
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 70px rgba(0, 0, 0, 0.55);
}
.warp-face-tag {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.warp-flash {
  display: none;
}

@media (max-width: 700px) {
  .hero-pin { height: 260vh; }
  .warp-line { white-space: normal; font-size: clamp(26px, 8vw, 48px); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px var(--gutter) 0;
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-kicker::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--hot);
}
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 9.2vw, 152px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-title .row { display: block; overflow: hidden; }
.hero-title .row span { display: block; }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-sub p {
  max-width: 400px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.hero-sub .loc {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  line-height: 1.9;
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  z-index: 4;
  overflow: hidden;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee span {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2.6vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
  padding-right: 18px;
}
.marquee span em {
  font-style: normal;
  color: var(--hot);
  padding-right: 18px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- shared section chrome ---------- */
section { position: relative; z-index: 4; }
.sec {
  padding: clamp(90px, 13vh, 160px) var(--gutter);
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
}
.sec-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.sec-head .idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--hot);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* was 4 columns spanning raw 0–100vw with no outer gutter, so its
     cell borders landed at plain quarter-viewport marks instead of
     the same var(--gutter) inset every other section/the grid overlay
     uses — that's what was actually causing the misalignment */
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(6px);
}
.stat {
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  color: var(--ink);
}
.stat .num em { font-style: normal; color: var(--hot); }
.stat .lbl {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- work rows ---------- */
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 4.5vw, 54px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.45s var(--ease-out);
  overflow: hidden;
}
.work-row:first-of-type { border-top: 1px solid var(--line); }
.work-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hot);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
  z-index: 0;
}
.work-row:hover::before { transform: scaleY(1); transform-origin: top; }
.work-row > * { position: relative; z-index: 1; }
.work-row:hover { padding-left: clamp(10px, 2vw, 28px); }
.work-row:hover .w-no, .work-row:hover .w-name,
.work-row:hover .w-desc, .work-row:hover .w-meta { color: #0c0a09; }
.work-row:hover .w-name { -webkit-text-stroke: 0; }

.w-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  transition: color 0.3s;
}
.w-main { min-width: 0; }
.w-name, .w-desc { display: block; }
.w-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5.5vw, 84px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.w-desc {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  transition: color 0.3s;
}
.w-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
  line-height: 2;
  transition: color 0.3s;
  white-space: nowrap;
}
.w-meta .badge {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 3px 10px;
  border-radius: 99px;
}
@media (max-width: 760px) {
  .work-row { grid-template-columns: 1fr; gap: 8px; }
  .w-no { display: none; }
  .w-meta { text-align: left; }
}

/* ---------- builds section banner ---------- */
.builds-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 24px;
  margin-bottom: 1px;
  background: var(--hot-dim);
  border: 1px solid var(--line);
  border-bottom: none;
}
.builds-banner span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
}
.builds-banner a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hot);
  white-space: nowrap;
}

/* ---------- builds grid ---------- */
.builds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.build {
  background: var(--bg);
  padding: clamp(28px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.build:hover { background: var(--bg-2); }
.build::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, var(--hot-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.build:hover::after { opacity: 1; }
.build .b-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hot);
  border: 1px solid var(--hot);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 22px;
}
.build h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 44px);
  text-transform: uppercase;
  line-height: 1;
}
.build p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  max-width: 46ch;
}
.build .b-stack {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 860px) { .builds { grid-template-columns: 1fr; } }

/* ---------- experience ---------- */
.xp-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: clamp(16px, 3vw, 44px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.xp-row:first-of-type { border-top: 1px solid var(--line); }
.xp-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--hot);
}
.xp-role {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 2.4vw, 30px);
}
.xp-role span { color: var(--ink-3); }
.xp-place {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 700px) {
  .xp-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 4;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 40px;
}
.footer .f-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.footer .f-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 9.4vw, 152px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.footer .f-title .hollow {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.footer .f-title a {
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}
.footer .f-title a:hover { color: var(--hot); -webkit-text-stroke: 0; }
.footer .f-bottom {
  margin-top: auto;
  padding-top: 70px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.footer .f-links { display: flex; gap: 26px; }
.footer .f-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}
.footer .f-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--hot);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.footer .f-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer .f-fine {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- fixed hud (clock / coords) ---------- */
.hud {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  padding: 16px var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  pointer-events: none;
  mix-blend-mode: difference;
}
@media (max-width: 700px) { .hud { display: none; } }

/* ---------- reveal machinery ---------- */
.rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.rv.on { opacity: 1; transform: none; }

.rv-line { display: block; overflow: hidden; }
.rv-line span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.rv-line.on span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv-line span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none; }
  .grain { animation: none; }
}

/* ---------- Pacifico Cursive Signature Font ---------- */
@font-face {
  font-family: 'Pacifico';
  src: url('assets/Pacifico-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ---- work grouped into two platform categories ---- */
.wgroup + .wgroup { margin-top: clamp(40px, 6vw, 72px); }
.wgroup-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

/* ---- image showcase work grid: 1 hero / 2 half / 3 third rhythm,
   like a design-studio portfolio grid rather than plain text cards ---- */
.work-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.wcell {
  position: relative;
  display: block;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0c0a09;
}
.wcell--hero { grid-column: span 6; aspect-ratio: 21 / 9; }
.wcell--half { grid-column: span 3; aspect-ratio: 16 / 10; }
.wcell--third { grid-column: span 2; }

.wcell-media {
  position: absolute;
  inset: 0;
}
.wcell-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: grayscale(0.25) brightness(0.75);
}

/* mobile app cells: solid brand-color card behind a floating device
   mockup (object-fit:contain + padding) instead of a cropped cover
   photo, since these are transparent-background device renders */
.wcell--app .wcell-media {
  padding: clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}
.wcell--app .wcell-media img { object-fit: contain; }
.wcell--grab { background: #00b14f; }
.wcell--popsical { background: #6c2bd9; }
.wcell--lomotif { background: #e63946; }
.wcell:hover .wcell-media img {
  transform: scale(1.05);
  filter: grayscale(0) brightness(0.9);
}
.wcell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 4, 3, 0.92) 0%, rgba(5, 4, 3, 0.35) 45%, transparent 70%);
  pointer-events: none;
}

.wcell .wtag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  background: #A6D608;
  color: #0c0a09;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
}
.wcell .w-no {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(237, 232, 223, 0.7);
}
.wcell-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wcell h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.01em;
}
.wcell p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.wcell--third p { display: none; }
.wcell .wmeta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* ---- bento mobile collapse ---- */
@media (max-width: 900px) {
  .work-bento { grid-template-columns: 1fr; }
  .wcell, .wcell--hero, .wcell--half, .wcell--third {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
  .wcell--third p { display: block; }
}
