/* ==========================================================================
   Portfolio — layout & type system measured from the reference at 1440×900
   (1rem = 10px on desktop). Font: Barlow Condensed, a free near-metric
   match for the reference's licensed condensed grotesk.
   ========================================================================== */

:root {
  --b: #000;
  --w: #fff;
  --a: #75fe4f;            /* accent — overridden from content.js */
  --dim: #8c8c8c;          /* dimmed project rows on hover */
  --g: max(1.6rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --col: calc((100vw - 2 * var(--g) - 7 * var(--g)) / 8);
  --o3: cubic-bezier(.333333, 1, .666667, 1);
  --o6: cubic-bezier(.19, 1, .22, 1);
  --io6: cubic-bezier(.16, 1, .3, 1);
  --f: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --fw: 700;               /* UI weight */
  --fwd: 800;              /* display weight */
  --cap: .7;               /* cap-height / em   (measured at runtime) */
  --capTop: .2;            /* cap top offset inside a line-height:1 box */
  --D: 28.5rem;            /* project-row display size */
  --pr: .827586;           /* portrait aspect ratio */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='0 1'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 769px) {
  :root { --g: 1.6rem; --col: calc((100vw - 2 * var(--g) - 11 * var(--g)) / 12); }
}

/* ---------- reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
* { font: inherit; }
html {
  font-size: clamp(10px, 2.54453vw, 12px);
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
  background: var(--b);
}
html::-webkit-scrollbar { display: none; }
@media (min-width: 769px) { html { font-size: min(.694444vw, 1.23457svh); } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
[data-lenis-prevent] { overscroll-behavior: contain; }
html.is-loading, html.is-loading body { overflow: hidden; }

body {
  background: var(--b);
  color: var(--w);
  font-family: var(--f);
  font-weight: var(--fw);
  font-size: 1.3rem;
  line-height: 1.04;
  letter-spacing: .02em;
  text-transform: uppercase;
  overscroll-behavior: none;
  font-synthesis: none;
}
@media (max-width: 768px) { body { font-size: 1.2rem; line-height: 1.2; } }

a { color: inherit; text-decoration: none; display: inline-block; }
button { display: inline-block; background: none; border: 0; color: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; cursor: pointer; }
ul, li { list-style: none; }
img, svg, video, figure { display: block; }
img, video { width: 100%; height: 100%; object-fit: cover; }
i { font-style: normal; }
[hidden] { display: none !important; }

.la { display: inline-block; font-size: .8rem; line-height: 1; letter-spacing: .01em; }
.sr-only { clip-path: inset(50%); white-space: nowrap; position: absolute; overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; }
.skip-link { position: fixed; z-index: 10001; top: -10rem; left: var(--g); padding: .8rem 1rem; background: var(--a); color: var(--b); }
.skip-link:focus { top: var(--g); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--a); outline-offset: 4px; box-shadow: 0 0 0 2px var(--b);
}
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .25; background-image: var(--noise); background-size: 150px 150px; }

/* monogram */
.mk { display: block; color: inherit; }
.mk svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------- line / char reveal ---------- */
.ln { display: block; overflow: clip; }
.ln > span { display: block; transform: translate3d(0, 110%, 0); transition: transform .6s var(--o3); }
.rv .ln > span, .ln.rv > span {
  transform: none;
  transition: transform 1.3s var(--o6) calc(var(--d, 0s) + var(--i, 0) * .07s);
}
.ch { display: inline-block; transform: translate3d(0, 105%, 0); }
.rv .ch { transform: none; transition: transform 1.4s var(--o6) calc(var(--d, 0s) + var(--i, 0) * .035s); }
.fd { opacity: 0; transform: translate3d(0, .6rem, 0); transition: opacity .5s var(--o3), transform .5s var(--o3); }
.rv .fd, .fd.rv { opacity: 1; transform: none; transition: opacity 1.2s var(--o3) var(--d, 0s), transform 1.2s var(--o6) var(--d, 0s); }
html.no-motion .ln > span, html.no-motion .ch, html.no-motion .fd { transform: none !important; opacity: 1 !important; transition: none !important; }

/* rules that draw from the left */
.rule { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--o3); pointer-events: none; }
.rv .rule, .rule.rv { transform: none; transition: transform 1.6s var(--o6) var(--d, 0s); }
html.no-motion .rule { transform: none !important; }

/* underline used by email + external links */
.u { position: relative; }
.u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 1px; background: currentColor; }

/* copy-to-clipboard email */
.copy-email { display: inline-grid; text-align: start; cursor: pointer; max-inline-size: 100%; }
.copy-email > span { grid-area: 1 / 1; justify-self: start; position: relative; }
.copy-email > span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 1px; background: currentColor; }
.copy-email .cp-done { visibility: hidden; }
.copy-email.copied .cp-label { visibility: hidden; }
.copy-email.copied .cp-done { visibility: visible; }

/* ==========================================================================
   LOADER / INTRO
   ========================================================================== */
#lo { position: fixed; inset: 0; z-index: 9999; pointer-events: none; color: var(--w); }
#lo-bg { position: absolute; inset: 0; background: var(--b); }
#lo-mark { position: absolute; z-index: 3; left: 0; top: 0; width: 9.603rem; height: 2.885rem; }
#lo-mark .mk { width: 100%; height: 100%; clip-path: inset(50% 0 50% 0); }
#lo-line { position: absolute; left: 0; right: 0; top: 50%; height: clamp(1px, .1154rem, 2px); background: currentColor; transform: translateY(-50%) scaleX(0); transform-origin: left; }
#lo-cards { position: absolute; inset: 0; }
.lc { position: absolute; left: 0; top: 0; overflow: hidden; will-change: transform; background: #111; }
.lc img { width: 100%; height: 100%; object-fit: cover; }
#lo-pr { position: absolute; left: var(--g); right: var(--g); bottom: var(--g); height: 1px; overflow: hidden; background: #ffffff26; }
#lo-pr > div { width: 100%; height: 100%; background: var(--w); transform: scaleX(0); transform-origin: left; transition: transform .18s linear; }

/* route transition overlay */
#tr { position: fixed; inset: 0; z-index: 40; pointer-events: none; visibility: hidden; }
#tr.on { visibility: visible; pointer-events: auto; }
#tr .tr-bg { position: absolute; inset: 0; background: var(--paper, #000); }
#tr .tr-row { position: absolute; left: 0; right: 0; top: 0; padding: 0 var(--g); color: var(--ink, #fff); }
#tr .ho-wo-r, #tr .rule { color: var(--ink, #fff); }
#tr .dt, #tr .rule { transform: none !important; transition: none !important; }
#tr .fd { opacity: 1; transform: none; transition: none; }
.now .dt, .now > .rule, .now .ho-wo-mt > .rule { transform: none !important; transition: none !important; }
@media (max-width: 768px) { #tr { --D: 21vw; } }

/* ==========================================================================
   HOME — HERO + SCROLL STAGE
   ========================================================================== */
#ho-stage { position: relative; height: 430svh; }
#ho-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }

#zp { position: absolute; left: 0; top: 0; width: 9.6rem; aspect-ratio: var(--pr); z-index: 1; visibility: hidden; }
#zp.on { visibility: visible; }
#zp-in { position: absolute; inset: 0; overflow: hidden; }
#zp-img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 28%; }
#zp .grain { opacity: 0; }
#zp-mark { position: absolute; left: 0; top: 0; width: 9.603rem; height: 2.885rem; z-index: 2; color: var(--w); visibility: hidden; transform-origin: 50% 100%; }
#zp-mark.on { visibility: visible; }

#ho-he {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; flex-direction: column;
  min-block-size: 100svh;
  padding: 0 var(--g) 1.2rem;
  pointer-events: none;
}
#ho-he a, #ho-he button { pointer-events: auto; }
#ho-he .la { margin-top: .5rem; }

#ho-ti {
  font-weight: var(--fwd);
  white-space: nowrap;
  text-align: center;
  letter-spacing: -.01em;
  line-height: 1;
  font-size: calc((100vw - var(--g) * 2) * 285 / 1408);
  height: calc((var(--capTop) + var(--cap)) * 1em);
  margin-top: calc(1.8rem - var(--capTop) * 1em);
  overflow: clip;
  user-select: none;
}
#ho-ti .ti-in { display: inline-block; }

#ho-me {
  display: grid;
  grid-template-columns: calc(var(--col) * 6 + var(--g) * 5) 1fr var(--col);
  gap: 2rem var(--g);
  padding-top: var(--g);
  letter-spacing: .01em;
  line-height: 1;
}
#ho-me > div, #ho-me > nav { display: flex; gap: .5rem; }
#ho-me > div > div, #ho-me > nav > div { display: inline-block; min-width: 0; }
#ho-me .la { flex: none; }
.ho-me-in { letter-spacing: .02em; max-width: 32.7rem; line-height: 1.4rem; }
.ho-me-nav > div, .ho-me-yr { margin-top: .1rem; }
.ho-me-nav a { transition: color .3s; }
.ho-me-nav a:hover { color: var(--a); }
.ho-me-nav a + a { margin-left: .9rem; }
.ho-me-yr { text-align: right; }

#ho-fo {
  margin-top: auto; align-self: center;
  display: flex; flex-direction: column; align-items: center; gap: .715rem 0;
  inline-size: 100%; max-inline-size: 96rem;
  font-size: 2rem; line-height: 1; letter-spacing: .01em;
}
#ho-fo-mk { width: 9.603rem; height: 2.885rem; visibility: hidden; }
#ho-st, #ab-st {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "tl im tr" "tb tb tb";
  align-self: stretch; align-items: end; gap: 0 .6rem;
}
.st-l > span, .st-r > span { display: block; }
.st-l { grid-area: tl; text-align: right; }
.st-r { grid-area: tr; text-align: left; }
.st-b { grid-area: tb; text-align: center; }
#ho-slot { grid-area: im; inline-size: 9.6rem; aspect-ratio: var(--pr); margin-bottom: .4rem; }

/* green info panel */
#ho-info {
  position: absolute; left: 0; right: 0; top: 29.333svh; z-index: 3;
  display: flex; align-items: flex-start;
  padding: 0 var(--g);
  color: var(--a);
  pointer-events: none;
}
#ho-info a { pointer-events: auto; }
#ho-info .la { display: inline-block; vertical-align: .1em; margin-right: .5rem; font-size: .8rem; }
#ho-info-lg { width: var(--col); flex: none; margin-top: -.3rem; }
#ho-info-lg .mk { width: 6.4rem; height: 1.9rem; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--o3); }
#ho-info.rv #ho-info-lg .mk { clip-path: inset(0); transition: clip-path 1.3s var(--o6); }
#ho-info-co {
  display: grid;
  grid-template-columns: calc(var(--col) * 3 + var(--g) * 2) calc(var(--col) * 2 + var(--g)) auto;
  align-items: start; gap: 2rem var(--g);
  margin-left: calc(var(--col) * 5 + var(--g) * 6);
  min-width: 0; flex: 1;
}
#ho-info-in { --lbl: 2rem; display: flex; line-height: 1.4rem; }
#ho-info-in .la { flex: 0 0 var(--lbl); margin-right: 0; margin-top: .3rem; }
#ho-info-in > div { min-width: 0; max-width: 29.9rem; }
#ho-info-aw { margin-top: 1.1rem; display: grid; }
#ho-info-av { display: flex; }
#ho-info-av, #ho-info-nav { letter-spacing: .01em; margin-top: .1rem; line-height: 1; }
#ho-info-av .la { margin-top: .1rem; }
#ho-info-nav { width: var(--col); text-align: right; justify-self: end; }
#ho-info-nav a { display: flex; justify-content: end; align-items: center; gap: .5rem; transition: opacity .3s; }
#ho-info-nav a svg { width: auto; height: .7rem; flex: none; }
#ho-info-nav a:hover { opacity: .6; }
#ho-info-nav svg { opacity: 0; transition: opacity .4s var(--o3); }
#ho-info.rv #ho-info-nav svg { opacity: 1; transition: opacity 1s var(--o3) .4s; }

/* ==========================================================================
   HOME — PROJECT LIST
   ========================================================================== */
#ho-wo {
  position: relative; z-index: 1;
  background: var(--w); color: var(--b);
  padding: 2.2rem var(--g) var(--g);
  min-block-size: 100svh;
}
#ho-wo .la, #pr .la { margin-top: 0; }

.ho-wo-r {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: calc(var(--D) * 230 / 285) auto;
  align-items: start;
  column-gap: var(--g);
  padding-bottom: 1.3rem;
  color: var(--b);
  transition: color .3s var(--o3);
}
.ho-wo-r > .rule { top: -1px; color: var(--b); }
#ho-wo-l li:last-child .ho-wo-r > .rule.-b { top: auto; bottom: -1px; }
.ho-wo-n, .ho-wo-c {
  display: block;
  font-weight: var(--fwd);
  font-size: var(--D);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  /* clip box runs a little past the baseline so tails (Q, J) are not cut */
  height: calc((var(--capTop) + var(--cap) + .16) * 1em);
  margin-top: calc(var(--D) * ((230 / 285 - var(--cap)) / 2 - var(--capTop)));
  overflow: clip;
  pointer-events: none;
}
.ho-wo-n { margin-left: calc(var(--D) * -6 / 285); }
.ho-wo-c { justify-self: start; margin-left: calc(var(--D) * -4 / 285); }
.ho-wo-n .dt, .ho-wo-c .dt { display: block; transform: translate3d(0, 120%, 0); transition: transform .6s var(--o3); }
.rv .ho-wo-n .dt, .rv .ho-wo-c .dt { transform: none; transition: transform 1.4s var(--o6) var(--d, 0s); }
.rv .ho-wo-c .dt { transition-delay: calc(var(--d, 0s) + .08s); }
html.no-motion .dt { transform: none !important; transition: none !important; }

.ho-wo-ar {
  position: absolute; top: calc(var(--D) * 6 / 285);
  right: calc(var(--D) * -39 / 285);
  inline-size: var(--D); block-size: calc(var(--D) * .7);
  color: var(--b); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--o3);
}
.ho-wo-ar svg { width: 100%; height: 100%; }

.ho-wo-mt {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: calc(var(--col) * 6 + var(--g) * 5) calc(var(--col) * 3 + var(--g) * 2) calc(var(--col) * 2 + var(--g)) var(--col);
  justify-content: space-between;
  gap: var(--g);
  padding-top: 1.3rem;
  font-size: 1.3rem; line-height: 1; letter-spacing: .01em;
}
.ho-wo-mt > .rule { top: -1px; color: var(--b); }
.ho-wo-mt > :last-child { text-align: right; }
.ho-wo-mt .la { margin-right: .25rem; }

@media (hover: hover) and (pointer: fine) {
  #ho-wo-l:hover .ho-wo-r { color: var(--dim); }
  #ho-wo-l .ho-wo-r:hover { color: var(--b); }
  #ho-wo-l .ho-wo-r:hover .ho-wo-ar { opacity: 1; }
}

#ho-wo-im {
  position: fixed; z-index: 5;
  left: calc(50% - 16rem); top: calc(50% - 20.6rem);
  inline-size: 32rem; block-size: 41.2rem;
  pointer-events: none; visibility: hidden;
}
#ho-wo-im.on { visibility: visible; }
#ho-wo-im-in { position: absolute; inset: 0; overflow: hidden; }
#ho-wo-im .hi { position: absolute; inset: 0; overflow: hidden; }
#ho-wo-im .hi img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
#ho-fo-ft { position: relative; z-index: 0; background: var(--a); color: var(--b); overflow: clip; }
#ho-fo-ft::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25; background-image: var(--noise); background-size: 150px 150px; }
#ft-in { position: relative; display: flex; flex-direction: column; min-block-size: 100svh; padding: 1.4rem var(--g) 0; will-change: transform; }
#ft-me { display: grid; align-items: start; gap: var(--g); font-size: 1.3rem; line-height: 1; letter-spacing: .01em; }
#ft-me > * { display: flex; align-items: baseline; gap: .5rem; }
#ft-me .la { vertical-align: .1em; }
@media (min-width: 769px) {
  #ft-me { grid-template-columns: calc(var(--col) * 6 + var(--g) * 5) repeat(3, calc(var(--col) * 2 + var(--g))); }
  .ft-em, .ft-cr { justify-content: end; text-align: right; }
}
.ft-nav a + a { margin-left: .7rem; }
.socials i { margin: 0 .4rem; }
.ft-em, .ft-cr { white-space: nowrap; }
#ft-me a { transition: opacity .3s; }
@media (hover: hover) and (pointer: fine) { #ft-me a:hover { opacity: .6; } }
#ft-mk-w { inline-size: 100%; margin-top: auto; margin-bottom: 1.5rem; padding-top: 2.4rem; }
#ft-mk { inline-size: 100%; aspect-ratio: 1408 / 423; }

/* ==========================================================================
   PROJECT PAGE
   ========================================================================== */
#project { position: relative; min-block-size: 100svh; background: var(--paper, #000); color: var(--ink, #fff); }
#pr-he { position: fixed; z-index: 0; top: -1px; left: 0; right: 0; padding: 0 var(--g); }
#pr-he .ho-wo-r, #pr-he .ho-wo-r > .rule, #pr-he .ho-wo-mt > .rule { color: var(--ink, #fff); }
.pr-he-name { grid-column: 2; }
.pr-he-with { grid-column: 3; }
.pr-he-year { grid-column: 4; text-align: right; }
#pr-ba { position: relative; z-index: 1; white-space: nowrap; transition: opacity .3s; }
#pr-ba:hover { opacity: .6; }

#pr-lv {
  position: fixed; z-index: 3; top: 1.1rem; right: var(--g);
  display: inline-flex; align-items: flex-start; gap: .37rem;
  max-inline-size: calc(50% - var(--g) * .5);
  font-size: 1.3rem; line-height: 1; letter-spacing: .01em;
  transition: opacity .3s;
}
#pr-lv:hover { opacity: .6; }
#pr-lv svg { inline-size: .91rem; block-size: .66rem; margin-top: .1rem; flex: none; }

#pr-in { position: fixed; z-index: 2; right: 0; bottom: 0; inline-size: 50%; padding: 0 var(--g) 1.2rem calc(var(--g) * .5); pointer-events: none; }
#pr-in a { pointer-events: auto; }
#pr-in-bo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); font-size: 1.3rem; line-height: 1.4rem; letter-spacing: .02em; }
#pr-in-if, #pr-in-ft { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: .3rem; min-width: 0; }
#pr-in-if { grid-column: 1; }
#pr-in-ft { grid-column: 2; column-gap: .4rem; line-height: 1.25; }
#pr-in-if > div, #pr-in-ft > div { min-width: 0; max-width: 30.7rem; overflow-wrap: anywhere; }
#pr-in-ft a { text-decoration: underline; text-underline-offset: .1em; transition: opacity .3s; }
#pr-in-ft a:hover { opacity: .6; }

#pr-ga {
  --gap: 1.5rem;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: var(--gap);
  inline-size: 50%;
  padding: 35.3rem 0 calc(var(--g) * 2) var(--g);
}
#pr-ga::before { content: ""; position: absolute; left: 0; right: 0; top: calc(35.3rem - var(--gap)); bottom: 0; background: var(--paper, #000); z-index: -1; }
.pr-ga-row { display: flex; gap: var(--rg, 0px); inline-size: calc(var(--col) * 6 + var(--g) * 5 - .1rem); flex: none; align-items: flex-start; }
.pr-ga-item { position: relative; flex: calc(100 * var(--r, 1)) 1 0%; min-width: 0; aspect-ratio: var(--r, 1); overflow: hidden; }
.pr-ga-item img, .pr-ga-item video { transform: scale(1.12); transition: transform 1.6s var(--o6); }
.pr-ga-item .cv { position: absolute; inset: 0; background: var(--paper, #000); transform-origin: top; transition: transform 1.2s var(--io6); }
.pr-ga-item.rv img, .pr-ga-item.rv video { transform: none; }
.pr-ga-item.rv .cv { transform: scaleY(0); }
html.no-motion .pr-ga-item img, html.no-motion .pr-ga-item video { transform: none; }
html.no-motion .pr-ga-item .cv { display: none; }
.pr-ga-item .snd {
  position: absolute; z-index: 1; left: 1rem; bottom: 1rem;
  padding: .6rem .8rem; background: var(--paper, #000); color: var(--ink, #fff);
  font-size: 1.1rem; line-height: 1; letter-spacing: .02em;
  transition: opacity .3s;
}
.pr-ga-item .snd:hover { opacity: .7; }

/* certificates in the About panel */
#ab-ce { margin-top: 2.4rem; }
.ab-certs { display: flex; gap: var(--g); }
.ab-certs a { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: var(--r, .707); overflow: hidden; outline-offset: 2px; box-shadow: 0 0 0 1px #0000001a; transition: opacity .3s; }
.ab-certs a:hover { opacity: .7; }
.ab-certs img { width: 100%; height: 100%; object-fit: cover; }

#back-cu, #ab-cu {
  position: fixed; z-index: 60; left: 0; top: 0;
  color: #fff; mix-blend-mode: difference;
  font-size: 1.3rem; line-height: 1; letter-spacing: .01em;
  pointer-events: none; white-space: nowrap;
  visibility: hidden; opacity: 0; transition: opacity .2s;
}
#back-cu.on, #ab-cu.on { visibility: visible; opacity: 1; }
html.back-active { cursor: pointer; }

/* ==========================================================================
   ABOUT PANEL
   ========================================================================== */
#ab_ { position: fixed; inset: 0; z-index: 50; pointer-events: none; visibility: hidden; }
#ab_.vis { visibility: visible; }
#ab-bg { position: absolute; inset: 0; opacity: 0; background: #0009; transition: opacity 1s var(--o3); pointer-events: none; }
#ab-bg.fx { opacity: 1; pointer-events: auto; transition: opacity 1.3s var(--o6); }
#ab {
  position: absolute; inset: 0;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding-block: var(--g);
  pointer-events: none;
  transform: translateY(101vh);
  transition: transform 1s var(--o3);
}
#ab::-webkit-scrollbar { display: none; }
#ab.fx { transform: none; transition: transform 1.3s var(--o6); }
#ab.out { transform: translateX(101vw); transition: transform 1s var(--o3); }
#ab-co {
  position: relative;
  display: flex; flex-direction: column;
  margin-inline: auto var(--g);
  inline-size: calc(var(--col) * 6 + var(--g) * 5);
  padding: var(--g);
  background: var(--w); color: var(--b);
  pointer-events: auto;
}
#ab-co .la { margin-top: .5rem; }
#ab-close { display: none; position: absolute; top: 0; right: var(--g); min-block-size: 44px; min-inline-size: 44px; justify-content: center; align-items: center; font-size: 1.5rem; line-height: 1.2; }
@media (hover: none), (max-width: 768px) { #ab-close { display: flex; } }
#ab-lgw { align-self: center; inline-size: 9.6rem; block-size: 2.885rem; }
#ab-st { max-inline-size: 62rem; inline-size: 100%; align-self: center; margin-top: 1.4rem; font-size: 2rem; line-height: 1; letter-spacing: .01em; }
#ab-st-im { grid-area: im; inline-size: 9.6rem; aspect-ratio: .83; overflow: clip; margin-bottom: .6rem; }
.ab-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--g); align-items: start; margin-top: 1.4rem; }
.ab-row-bo { grid-column: 2; min-width: 0; max-width: 30.3rem; }
.ab-row-bo p + p { margin-top: 1em; }
#ab-tx { margin-bottom: 6rem; }
#ab-im { position: relative; inline-size: 100%; aspect-ratio: .83; overflow: clip; margin-top: calc(var(--g) * 1.5); }
#ab-im > .mk { position: absolute; inset: 0; margin: auto; inline-size: 9.6rem; block-size: 2.885rem; color: var(--w); z-index: 1; }
#ab-re { margin-top: 1.3rem; }
#ab-ct { margin-top: 5.7rem; margin-bottom: 10rem; }
#ab-ct .socials { margin-bottom: 1em; }
#ab-ct a, #ab-tx a { transition: opacity .3s; }
#ab-ct a:hover, #ab-tx a:hover { opacity: .6; }

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  #ho-stage { height: 340svh; }
  #ho-he { padding-block: max(var(--g), env(safe-area-inset-top)) 2.4rem; gap: 3.2rem; }
  #ho-he .la { margin-top: 0; }
  #ho-ti { margin-top: calc(0px - var(--capTop) * 1em); }
  #ho-me { grid-template-columns: minmax(0, 1fr) auto; gap: .8rem var(--g); align-items: baseline; padding-top: 0; }
  #ho-me > div, #ho-me > nav { align-items: baseline; }
  .ho-me-in { grid-column: 1 / -1; max-width: 34rem; line-height: 1.2; }
  .ho-me-nav > div { display: flex !important; flex-wrap: wrap; column-gap: 1.2rem; margin-top: 0; }
  .ho-me-nav a { line-height: 44px; }
  .ho-me-nav a + a { margin-left: 0; }
  .ho-me-yr { margin-top: 0; }
  #ho-fo { --pw: clamp(5.6rem, 17vw, 9.6rem); gap: .5rem; max-inline-size: 62rem; font-size: clamp(12px, 3.35vw, 20px); line-height: 1.04; }
  #ho-fo-mk { inline-size: var(--pw); block-size: calc(var(--pw) * 424 / 1408); }
  #ho-st { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 .5rem; }
  #ho-slot { inline-size: var(--pw); }

  #ho-info { top: 18svh; display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); column-gap: var(--g); }
  #ho-info-lg { width: 6.4rem; margin-top: 0; }
  #ho-info-co { --off: 3rem; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; margin-left: 0; }
  #ho-info-in, #ho-info-av { display: grid; grid-template-columns: var(--off) minmax(0, 1fr); align-items: baseline; line-height: 1.2; }
  #ho-info-in .la, #ho-info-av .la { justify-self: end; white-space: nowrap; margin: 0 1rem 0 0; }
  #ho-info-aw { row-gap: .4rem; margin-top: 2rem; }
  #ho-info-nav { width: auto; justify-self: start; text-align: left; margin-left: var(--off); }
  #ho-info-nav a { justify-content: start; gap: .8rem; min-block-size: 44px; }

  #ho-wo { --D: 21vw; padding-top: var(--g); }
  .ho-wo-r { grid-template-rows: calc(var(--D) * 230 / 285 + var(--g)) auto; padding-top: var(--g); padding-bottom: 1.6rem; }
  .ho-wo-ar { display: none; }
  .ho-wo-mt { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem var(--g); font-size: inherit; align-items: baseline; padding-top: 1.6rem; line-height: 1.2; }
  .ho-wo-mt > span { overflow-wrap: anywhere; min-width: 0; }
  .ho-wo-mt .w-with, .ho-wo-mt .w-year { display: none; }
  .ho-wo-mt > .w-name { text-align: left; }
  #ho-wo-im { display: none; }

  #ft-in { padding: var(--g) var(--g) max(var(--g), env(safe-area-inset-bottom)); gap: 2.4rem; min-block-size: 0; }
  #ft-me { font-size: inherit; gap: 0; line-height: 1.2; }
  #ft-me a { min-block-size: 32px; line-height: 32px; }
  .ft-nav > div { display: flex; flex-wrap: wrap; column-gap: 1.2rem; }
  .ft-nav a + a { margin-left: 0; }
  .ft-em, .ft-cr { white-space: normal; }
  #ft-mk-w { margin: 0; padding: 0; }

  #pr { --D: 21vw; }
  #pr-he { position: relative; }
  #pr-he .ho-wo-mt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-he-with, .pr-he-year { display: none; }
  #pr-lv { position: absolute; }
  #pr-in { position: relative; inline-size: 100%; padding: 2.4rem var(--g) 0; pointer-events: auto; }
  #pr-in-bo { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; line-height: 1.2; }
  #pr-in-if, #pr-in-ft { grid-column: 1; }
  #pr-ga { inline-size: 100%; padding: 2.4rem var(--g) calc(var(--g) * 2); }
  #pr-ga::before { top: 0; }
  .pr-ga-row { inline-size: 100%; }
  #project { display: flex; flex-direction: column; }

  #ab-co { --pw: clamp(5.6rem, 16vw, 9.6rem); inline-size: calc(100% - var(--g) * 2); font-size: inherit; padding-top: 4.8rem; padding-bottom: 2.4rem; line-height: 1.25; }
  #ab-close { font-size: inherit; }
  #ab-co .la { margin-top: 0; }
  #ab-lgw { inline-size: var(--pw); block-size: calc(var(--pw) * 424 / 1408); }
  #ab-st { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 .4rem; margin-top: .5rem; font-size: clamp(11px, 3.05vw, 20px); line-height: 1.04; }
  #ab-st-im { inline-size: var(--pw); margin-bottom: .4rem; }
  .ab-row { grid-template-columns: minmax(0, 1fr); row-gap: 1.2rem; margin-top: 3.2rem; }
  .ab-row-bo { grid-column: 1; overflow-wrap: anywhere; max-width: none; }
  #ab-tx { margin-bottom: 2.4rem; }
  #ab-im { margin-top: 0; }
  #ab-re { margin-top: 3.2rem; }
  #ab-ct { margin-top: 3.2rem; margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #lo-pr > div { transition: none; }
}
