/* ==========================================================================
   hnrq.pt v2 | plain HTML/CSS/JS, no build step needed to host
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/dm-sans.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/dm-sans-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/dm-mono-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/dm-mono-400-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/dm-mono-500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/dm-mono-500-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --accent: #2e82ff;          /* change this one value to re-colour the whole site */
  --ink: #0a0a0a;
  --ink-muted: rgba(10, 10, 10, 0.4);
  --line: rgba(10, 10, 10, 0.12);
  --bg: #fff;
  --glass: rgba(131, 131, 131, 0.25);
  --white-50: rgba(255, 255, 255, 0.5);

  --pad: 48px;
  --gap: 48px;
  --radius: 8px;
  --max: 1800px;
  --header-h: 60px;

  --mono: "DM Mono", ui-monospace, monospace;
  --sans: "DM Sans", system-ui, sans-serif;

  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.35, 0.5, 1);
  --ease-curtain: cubic-bezier(0.77, 0, 0.18, 1);
}
@media (max-width: 1199.98px) { :root { --gap: 24px; } }
@media (max-width: 809.98px)  { :root { --pad: 20px; --gap: 20px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6, p, figure, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.contact :focus-visible { outline-color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 40px; font: 500 12px var(--mono); transition: top .2s; }
.skip:focus { top: 12px; }

main, footer { position: relative; z-index: 1; }   /* sit above the WebGL canvas */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Type presets */
.t-label  { font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }
.t-mono   { font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1.3; letter-spacing: -.01em; }
.t-sub    { font-family: var(--mono); font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; text-transform: uppercase; }
.t-pill   { font-family: var(--mono); font-weight: 500; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; text-transform: uppercase; }
.t-body   { font-family: var(--sans); font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
.t-display{ font-family: var(--sans); font-weight: 500; font-size: 48px; line-height: 1.15; letter-spacing: -.04em; }
@media (max-width: 1199.98px) {
  .t-sub { font-size: 13px; } .t-pill { font-size: 12px; } .t-body { font-size: 18px; } .t-display { font-size: 28px; }
}

/* ==========================================================================
   WebGL canvas (see gl.js). Images it takes over are hidden in the DOM.
   ========================================================================== */
.gl-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
html:not(.gl) .gl-canvas { display: none; }
.gl [data-gl].gl-ready .media { clip-path: none !important; background: transparent !important; }
.gl [data-gl].gl-ready .media img { opacity: 0 !important; transition: none !important; }

/* ==========================================================================
   Header: fixed, hides on scroll down, frosted once scrolled
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  color: var(--accent);
  view-transition-name: site-header;
  transition: transform .6s var(--ease-out), background-color .4s var(--ease), -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
.site-header.is-hidden { transform: translateY(-101%); }
.site-header .row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.site-header .left { justify-self: start; }
.site-header .center { justify-self: center; display: flex; gap: .5ch; white-space: nowrap; }
.site-header .right { justify-self: end; display: flex; gap: 1ch; }
.site-header a { transition: opacity .2s var(--ease); }
.site-header a:hover { opacity: .55; }
.clock-time { font-variant-numeric: tabular-nums; }
.site-header .year { display: none; }
.home-logo { display: block; width: 66px; }
.home-logo svg { display: block; width: 100%; height: auto; }
.site-header .progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .site-header .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}
@media (max-width: 809.98px) {
  .site-header .center.is-clock { display: none; }
  .site-header .insta { display: none; }
  .site-header .year { display: inline; }
  .site-header .right { grid-column: 3; }
}

/* ==========================================================================
   Hero (home): the kinetic wordmark
   ========================================================================== */
.hero { padding-top: 100px; }
.hero-logo { position: relative; color: var(--accent); transform-origin: 50% 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-logo .L { transform-box: fill-box; transform-origin: 50% 100%; will-change: transform; }
.hero-sub { padding: 70px 0 60px; text-align: center; color: var(--accent); }
.hero-sub p + p { margin-top: 20px; }
.hero-sub a { position: relative; }
.hero-sub a::after, .u-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease-out);
}
.hero-sub a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.split-char { display: inline-block; white-space: pre; }
@media (max-width: 1199.98px) { .hero { padding-top: 80px; } .hero-sub { padding: 120px 0 24px; } }
@media (max-width: 809.98px)  { .hero { padding-top: 72px; } .hero-sub { padding: 48px 0 28px; } }

/* Letter wave: on click and at the end of the intro */
@keyframes wave { 0%,100% { transform: none; } 35% { transform: scaleY(1.14) scaleX(.95); } 65% { transform: scaleY(.94) scaleX(1.03); } }
.hero-logo.waving .L { animation: wave .75s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }

/* ---------- Intro ----------
   Full (first visit in a session): small logo, blue fills in left to right
   while the first images and fonts load, then the wordmark springs to full
   width with a letter wave and the page assembles.
   Quick (returning in the same session): letters rise, page fades in.        */
.js .intro .site-header .row,
.js .intro .split-char,
.js .intro .projects-grid { opacity: 0; }
.js .intro .site-header .row { transform: translateY(-40px); }
.js .intro .split-char { filter: blur(2px); transform: translateY(20px); }
.js .intro .projects-grid { transform: translateY(150px); }

.js .intro-load .hero-logo { transform: scale(var(--intro-scale, .2)); }
@media (max-width: 809.98px) { .js .intro-load .hero-logo { --intro-scale: .7; } }
.hero-logo .logo-mask {
  display: none; position: absolute; z-index: 1; pointer-events: none;
  top: -10%; left: -1.5%; width: 103%; height: 120%;
  background: var(--bg); opacity: .9; transform-origin: 100% 50%;
}
.js .intro-load .hero-logo .logo-mask { display: block; animation: mask-sweep .85s .1s var(--ease) forwards; }
@keyframes mask-sweep { to { transform: translateX(105%) scaleX(.2); } }

.js .intro-play .hero-logo { transform: scale(1); transition: transform 1s var(--ease-spring); }
.js .intro-play .hero-logo .L { animation: wave .7s var(--ease) both; animation-delay: calc(.3s + var(--i) * 40ms); }
.js .intro-play .site-header .row { opacity: 1; transform: none; transition: opacity .6s .5s var(--ease), transform .6s .5s var(--ease-out); }
.js .intro-play .split-char { opacity: 1; filter: blur(0); transform: none;
  transition: opacity .45s var(--ease-out), filter .45s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(.35s + var(--i) * 9ms); }
.js .intro-play .projects-grid { opacity: 1; transform: none; transition: opacity .8s .6s var(--ease), transform 1.3s .6s var(--ease-spring); }

.js .intro-quick .hero-logo .L { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(35%) scaleY(1.2); } }
.js .intro-quick .site-header .row, .js .intro-quick .split-char, .js .intro-quick .projects-grid {
  opacity: 1; transform: none; filter: none; transition: opacity .7s .25s var(--ease), transform 1s .25s var(--ease-out), filter .6s .25s; }

/* ==========================================================================
   Project cards
   ========================================================================== */
.projects-grid { display: flex; flex-direction: column; gap: var(--gap); }
.grid-row { display: flex; gap: var(--gap); align-items: flex-end; }
.grid-row > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 809.98px) { .grid-row { flex-direction: column; align-items: stretch; } }

.card { position: relative; display: block; border-radius: var(--radius); }
.media {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: var(--ar, 4 / 3); background: #f2f2f2;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.card .media img { transition: transform 1s var(--ease-out); }
.card:hover .media img { transform: scale(1.03); }

.card .info {
  position: absolute; z-index: 2; inset: 24px 0 auto 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0 12px; pointer-events: none;
  transition: padding .45s var(--ease-out);
}
.card:hover .info, .card:focus-visible .info { padding: 0 30px; }
.card .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 40px; white-space: nowrap; }
.pill.name { background: #fff; color: var(--ink); }
.pill.cat, .arrow-btn { background: var(--glass); color: var(--white-50); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.arrow-btn {
  width: 40px; height: 40px; border-radius: 40px; flex: none; display: grid; place-items: center;
  opacity: 0; transform: scale(.6); transition: opacity .35s var(--ease), transform .45s var(--ease-spring);
}
.card:hover .arrow-btn, .card:focus-visible .arrow-btn { opacity: 1; transform: none; }
.arrow { display: flex; align-items: center; justify-content: center; gap: 0; transform: rotate(-45deg); transition: gap .35s var(--ease-out); }
.arrow i {
  display: block; width: 8px; height: 8px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M2 6h6v2H0V0h2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M2 6h6v2H0V0h2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.arrow i:first-child { transform: rotate(45deg); }
.arrow i:last-child  { transform: rotate(225deg); }
.card:hover .arrow { gap: 4px; }
@media (max-width: 809.98px) {
  .card .info { inset: 12px 0 auto 0; }
  .card:hover .info { padding: 0 12px; }
  .pill { height: 32px; padding: 0 12px; }
  .arrow-btn { display: none; }
}

/* ---------- Reveal (CSS fallback; WebGL does its own curtain) ---------- */
.js [data-reveal] .media { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease-curtain); }
.js [data-reveal] .media img { transform: scale(1.25); transition: transform 1.6s var(--ease-out); }
.js [data-reveal].is-in .media { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-reveal].is-in .media img { transform: scale(1); }
.js .card[data-reveal].is-in:hover .media img { transform: scale(1.03); transition-duration: 1s; }
.js [data-reveal] .info { opacity: 0; transform: translateY(-8px); transition: opacity .6s .6s var(--ease), transform .6s .6s var(--ease-out), padding .45s var(--ease-out); }
.js [data-reveal].is-in .info { opacity: 1; transform: none; }

/* ==========================================================================
   Custom cursor (only on cards / next project, only with a mouse)
   ========================================================================== */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: none; will-change: transform; }
.has-cursor .cursor { display: block; }
.cursor-pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 40px;
  background: var(--accent); color: #fff; white-space: nowrap; text-transform: uppercase;
  transform: translate(-50%, -50%) scale(0); transition: transform .45s var(--ease-spring);
}
.cursor.is-on .cursor-pill { transform: translate(-50%, -50%) scale(1); }
.has-cursor [data-cursor] { cursor: none; }

/* ==========================================================================
   About
   ========================================================================== */
.about {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); padding: 64px; color: #fff;
  transform-origin: 50% 0; will-change: transform;
}
.about .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.about .mesh { position: absolute; inset: -20%; z-index: -1; overflow: hidden; background: #3b8cf0; }
.about .mesh span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .95; animation: drift 18s ease-in-out infinite alternate; }
.about .mesh span:nth-child(1) { width: 60%; height: 80%; left: -5%;  top: 25%; background: #d6ecfb; animation-duration: 16s; }
.about .mesh span:nth-child(2) { width: 45%; height: 70%; left: 25%; top: -15%; background: #2e7bff; animation-duration: 21s; animation-delay: -4s; }
.about .mesh span:nth-child(3) { width: 55%; height: 75%; left: 45%; top: 30%; background: #b3c8fb; animation-duration: 19s; animation-delay: -8s; }
.about .mesh span:nth-child(4) { width: 40%; height: 60%; left: 70%; top: -10%; background: #2d97e0; animation-duration: 23s; animation-delay: -2s; }
.about .mesh span:nth-child(5) { width: 35%; height: 50%; left: 30%; top: 55%; background: #7a9cff; animation-duration: 17s; animation-delay: -11s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, -6%) scale(1.12); } 100% { transform: translate(-6%, 5%) scale(.92); } }
/* the gradient follows the cursor a little (set from JS) */
.about .mesh { translate: var(--mx, 0) var(--my, 0); transition: translate 1.2s var(--ease-out); }
.about-text { padding-right: 40px; max-width: 1100px; }
.about-text .w, [data-words] .w { transition: opacity .3s linear; }
.js [data-words] .w { opacity: .22; }
.js [data-words] .w.on { opacity: 1; }
.about-foot { display: flex; justify-content: flex-end; align-items: flex-end; padding-top: 160px; }
.services { text-align: right; padding-left: 100px; font-size: 16px; }
.services li { line-height: 1.25; }
.services .head { margin-bottom: 1.2em; }
@media (max-width: 1199.98px) { .about { padding: 48px; } .about-foot { padding-top: 190px; } .services { font-size: 12px; } }
@media (max-width: 809.98px) {
  .about { padding: 32px 22px; }
  .about-text { padding-right: 0; }
  .about-foot { justify-content: flex-start; padding-top: 120px; }
  .services { text-align: left; padding-left: 0; }
}

/* ==========================================================================
   Contact / footer
   ========================================================================== */
.contact { padding: 120px 0 var(--pad); }
.contact-box {
  background: var(--accent); color: #fff; padding: 64px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 180px; min-height: 528px;
  border-radius: var(--radius);
}
.contact-title { max-width: 720px; }
.contact-title .ch { display: inline-block; font-variation-settings: "wght" var(--w, 500); font-weight: 500; white-space: pre; }
.contact-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.socials li + li { margin-top: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 2px; transition: padding .35s var(--ease-out); }
.socials a:hover { padding-left: 10px; }
.contact-links { display: flex; flex-direction: column; align-items: flex-end; }
.contact-links a { display: block; position: relative; width: fit-content; will-change: transform; }
.contact-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease-out);
}
.contact-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.email-row { display: flex; align-items: center; gap: 16px; }
.copy {
  height: 32px; padding: 0 12px; border-radius: 32px; border: 1px solid rgba(255,255,255,.45);
  text-transform: uppercase; opacity: .85; transition: background .25s, color .25s, opacity .25s;
}
.copy:hover { background: #fff; color: var(--accent); opacity: 1; }
@media (max-width: 1199.98px) { .contact-box { padding: 48px; gap: 120px; min-height: 0; } }
@media (max-width: 809.98px) {
  .contact { padding-top: 80px; }
  .contact-box { padding: 24px 22px 32px; gap: 80px; }
  .contact-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .contact-links { align-items: flex-start; }
  .email-row { flex-direction: row-reverse; }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; translate: -50% 0;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 40px; text-transform: uppercase;
  opacity: 0; transform: translateY(20px); transition: opacity .3s var(--ease), transform .5s var(--ease-spring); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }

/* ==========================================================================
   Project page
   ========================================================================== */
.p-hero { padding-top: var(--header-h); }
.p-hero .media { aspect-ratio: var(--ar); max-height: calc(100svh - var(--header-h) - 48px); width: 100%; }
.p-hero .media img { transform-origin: 50% 0; }

.p-info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-top: 96px; padding-bottom: 120px; }
.p-title { color: var(--accent); margin-bottom: 20px; }
.p-overview p + p { margin-top: 1em; }
.p-overview .t-body { max-width: 30ch; }
@media (min-width: 1200px) { .p-overview .t-body { max-width: 34ch; } }
.p-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; justify-self: end; width: min(100%, 520px); }
.p-meta dt { color: var(--ink-muted); margin-bottom: 6px; }
.p-meta dd { white-space: pre-line; }
.p-meta .wide { grid-column: 1 / -1; }

.p-content { display: flex; flex-direction: column; gap: var(--gap); }
.p-content .grid-row { align-items: stretch; }
.p-content .grid-row.two .shot, .p-content .grid-row.two .media { height: 100%; }

/* Next project */
.next { padding-top: 160px; }
.next-link { display: block; }
.next-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.next-kicker { color: var(--ink-muted); }
.next-title {
  font-family: var(--sans); font-weight: 500; letter-spacing: -.055em; line-height: .9;
  font-size: clamp(44px, 8.6vw, 156px); color: var(--accent);
  transition: letter-spacing .7s var(--ease-out);
}
.next-link:hover .next-title { letter-spacing: -.035em; }
.next .shot { display: block; }
.next .media { aspect-ratio: 21 / 9; }

/* All projects list + floating preview */
.others { padding-top: 140px; }
.others h2 { margin-bottom: 20px; }
.others ul { border-top: 1px solid var(--line); }
.others li { border-bottom: 1px solid var(--line); }
.others a {
  position: relative; display: grid; grid-template-columns: 1fr auto 80px; align-items: center; gap: 24px;
  min-height: 68px; padding: 14px 0; overflow: hidden;
}
.others a::before {
  content: ""; position: absolute; inset: 0; background: var(--accent); z-index: -1;
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease-out);
}
.others a:hover::before { transform: scaleY(1); }
.others a:hover { color: #fff; }
.others .title, .others .cat, .others .yr { transition: transform .45s var(--ease-out), color .2s; }
.others a:hover .title { transform: translateX(16px); }
.others a:hover .yr { transform: translateX(-16px); }
.others .cat, .others .yr { color: var(--ink-muted); }
.others a:hover .cat, .others a:hover .yr { color: rgba(255,255,255,.7); }
.others .yr { text-align: right; }
.others li { position: relative; isolation: isolate; }

.float-preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; pointer-events: none; opacity: 0; will-change: transform, opacity;
  transition: opacity .3s var(--ease);
}
.float-preview.is-on { opacity: 1; }
.float-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .float-preview { display: none; } }

@media (max-width: 1199.98px) { .p-info { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 80px; } .p-meta { justify-self: start; } }
@media (max-width: 809.98px) {
  .p-hero { padding-top: calc(var(--header-h) + 8px); }
  .p-hero .media { max-height: none; }
  .p-content .grid-row.two .shot, .p-content .grid-row.two .media { height: auto; }
  .next { padding-top: 100px; }
  .next .media { aspect-ratio: 4 / 3; }
  .others { padding-top: 100px; }
  .others a { grid-template-columns: 1fr auto; }
  .others .cat { display: none; }
}

/* Project page entrance (skipped when arriving through a view transition) */
.js .page-enter .site-header .row { opacity: 0; transform: translateY(-30px); }
.js .page-enter .p-hero .media { clip-path: inset(100% 0 0 0 round var(--radius)); }
.js .page-enter .p-hero img { transform: scale(1.2); }
.js .page-play .site-header .row { opacity: 1; transform: none; transition: opacity .7s .5s var(--ease), transform .7s .5s var(--ease-out); }
.js .page-play .p-hero .media { clip-path: inset(0 0 0 0 round var(--radius)); transition: clip-path 1.3s .1s var(--ease-curtain); }
.js .page-play .p-hero img { transform: scale(1); transition: transform 1.8s .1s var(--ease-out); }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--accent); padding: 120px var(--pad); }
.notfound .logo { display: block; width: min(600px, 80vw); margin: 0 auto 40px; }
.notfound .logo svg { width: 100%; height: auto; }

/* ==========================================================================
   Cross-document view transitions
   Clicking a card morphs its image into the project hero; the big wordmark
   shrinks into the header logo. Browsers without support just navigate.
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .9s; animation-timing-function: cubic-bezier(.75, 0, .15, 1); }
::view-transition-old(root) { animation: .55s cubic-bezier(.7, 0, .3, 1) both vt-out; }
::view-transition-new(root) { animation: .8s .2s cubic-bezier(.16, 1, .3, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-3vh) scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6vh); } }
::view-transition-image-pair(hero-media) { overflow: clip; border-radius: var(--radius); }
::view-transition-old(hero-media), ::view-transition-new(hero-media) {
  height: 100%; width: 100%; object-fit: cover; mix-blend-mode: normal;
}
::view-transition-old(hero-media) { animation: none; }
::view-transition-new(hero-media) { animation: .45s .1s var(--ease) both vt-fade; }
@keyframes vt-fade { from { opacity: 0; } }
::view-transition-old(site-logo), ::view-transition-new(site-logo) { height: 100%; width: 100%; object-fit: contain; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation-duration: .4s; }

/* ==========================================================================
   Reduced motion: everything readable immediately, no WebGL, no transitions
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .js .intro-load .hero-logo { transform: none; }
  .hero-logo .logo-mask { display: none !important; }
  .js .intro .site-header .row, .js .intro .split-char, .js .intro .projects-grid,
  .js [data-words] .w, .js .page-enter .site-header .row { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js [data-reveal] .media, .js .page-enter .p-hero .media { clip-path: none !important; }
  .js [data-reveal] .media img, .js .page-enter .p-hero img { transform: none !important; }
  .js [data-reveal] .info { opacity: 1; transform: none; }
  .cursor, .float-preview { display: none !important; }
}

/* ==========================================================================
   Footer legal row + legal pages
   ========================================================================== */
.legal-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; color: var(--ink-muted); }
.legal-row span:last-child { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 700px) { .legal-row { flex-direction: column; gap: 10px; } }
.legal-row a { transition: color .2s; }
.legal-row a:hover { color: var(--accent); }
.legal { max-width: 760px; padding-top: calc(var(--header-h) + 80px); padding-bottom: 40px; }
.legal h1 { color: var(--accent); }
.legal-updated { margin-top: 12px; color: var(--ink-muted); }
.legal-body { margin-top: 56px; font-size: 18px; line-height: 1.6; }
.legal-body h2 { font: 500 13px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; margin: 40px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink); }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.legal-body code { font: 500 .85em var(--mono); background: rgba(10,10,10,.06); padding: .1em .35em; border-radius: 4px; }
