/* ==========================================================================
   Anik G Fauzul — Portfolio
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --bg-3: #1b1b1e;
  --paper: #efece5;
  --paper-2: #e4e0d6;
  --ink: #0e0e0f;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, .62);
  --faint: rgba(244, 241, 234, .36);
  --line: rgba(244, 241, 234, .12);
  --ink-muted: rgba(14, 14, 15, .62);
  --ink-line: rgba(14, 14, 15, .13);
  --accent: #ff6a1a;
  --accent-2: #ff9a5c;
  --blue: #2f6bff;
  --cyan: #29b9ff;
  --card: #f0f0f0; /* identical to the service videos' backdrop */

  --r-xl: clamp(24px, 3vw, 44px);
  --r-lg: clamp(18px, 2vw, 28px);
  --r-md: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 72px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 899px) {
  :root { --nav-h: 64px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
@supports not (overflow: clip) { body { overflow-x: hidden; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--accent); color: #0b0b0c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 300;
  pointer-events: none;
  opacity: .065;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, -7%); }
  40% { transform: translate(-9%, 4%); }
  60% { transform: translate(6%, -10%); }
  80% { transform: translate(-3%, 9%); }
}
@media (hover: none) { body::after { inset: 0; animation: none; opacity: .05; } }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: 1640px; margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--muted); }
.label {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mono); font-size: 12px; line-height: 1.2;
  letter-spacing: .04em; text-transform: uppercase;
}
.label i { font-style: normal; color: var(--accent); }
.label--muted { opacity: .55; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 400;
  padding: 10px 14px; border-radius: 10px; background: var(--accent); color: #000; font-weight: 600;
  transform: translateY(-200%); transition: transform .3s;
}
.skip:focus { transform: none; }
.pulse {
  position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #3ddc84; flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid #3ddc84; animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }

@media (hover: none) { .hide-touch { display: none !important; } }
@media (hover: hover) { .show-touch { display: none !important; } }
@media (max-width: 599px) { .hide-sm { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .35s, color .35s, border-color .35s;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 100%;
  width: 140%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, 0) scale(0); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translate(-50%, -55%) scale(1); }
.btn__roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.25; }
.btn__roll > span { display: block; transition: transform .55s var(--ease); }
.btn__roll > span + span { position: absolute; left: 0; top: 100%; }
.btn:hover .btn__roll > span, .mailbig:hover .btn__roll > span { transform: translateY(-100%); }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.btn__arrow { transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--accent { background: var(--accent); color: #0b0b0c; }
.btn--accent::before { background: var(--text); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--accent); }
.btn--ink:hover { color: #0b0b0c; }
.btn--line { border: 1px solid currentColor; }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--paper); border-color: var(--ink); }
.btn--light::before { background: var(--text); }
.btn--light:hover { color: var(--ink); border-color: var(--text); }

/* ==========================================================================
   Preloader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 250;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) calc(22px + env(safe-area-inset-bottom));
  background: radial-gradient(60% 50% at 0% 50%, rgba(255, 106, 26, .14), transparent 70%),
              radial-gradient(60% 50% at 100% 50%, rgba(47, 107, 255, .16), transparent 70%),
              #0b0b0c;
  color: var(--text);
  clip-path: inset(0% 0% 0% 0%);
  animation: loaderFailsafe .6s ease 7s forwards;
}
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
.loader__top, .loader__bottom { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.loader__name {
  text-align: center; text-transform: uppercase;
  font-weight: 800; font-size: clamp(60px, 14vw, 230px); line-height: .84; letter-spacing: -.055em;
}
.loader__line { display: block; overflow: hidden; padding: .04em 0 .02em; }
.loader__line > span { display: inline-block; transform: translateY(110%); }
.loader__count { font-size: clamp(28px, 4vw, 56px); font-family: var(--f-sans); font-weight: 700; letter-spacing: -.04em; color: var(--text); }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); }
.loader__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform: scaleX(0); transform-origin: 0 50%; }
html.is-loading, html.is-loading body { overflow: hidden; }

/* ==========================================================================
   Cursor
   ========================================================================== */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none; transition: opacity .3s; }
  .cursor.is-hidden { opacity: 0; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(255, 255, 255, .7); mix-blend-mode: difference;
    display: grid; place-items: center;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s;
  }
  .cursor.is-link .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(255, 255, 255, .9); border-color: transparent; }
  .cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: transparent; mix-blend-mode: normal; }
  .cursor.is-label .cursor__dot { opacity: 0; }
  .cursor__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #0b0b0c; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .4s var(--ease); }
  .cursor.is-label .cursor__label { opacity: 1; transform: none; }
  .cursor.is-down .cursor__ring { transform-origin: center; }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  pointer-events: none;
  transition: transform .7s var(--ease);
}
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-120%); }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; transition: color .4s; }
.nav__badge {
  display: inline-flex; align-items: flex-start;
  padding: 8px 10px 7px; border-radius: 11px;
  background: var(--accent); color: #0b0b0c;
  font-weight: 800; font-size: 14px; line-height: 1; letter-spacing: -.02em;
}
.nav__badge sup { font-size: 8px; margin-left: 1px; line-height: 1; }
.nav__name {
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  display: inline-block; max-width: 12em; overflow: hidden; white-space: nowrap;
  transition: opacity .45s var(--ease), transform .55s var(--ease), max-width .6s var(--ease), margin .6s var(--ease);
}
/* the name tucks away once the hero has scrolled past, and comes back on return */
.nav.is-past-hero .nav__name { opacity: 0; transform: translateX(-8px); max-width: 0; margin-left: -12px; }
.nav.is-light .nav__logo { color: var(--ink); }

.nav__pill {
  position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + var(--nav-h) / 2);
  transform: translate(-50%, -50%);
  display: flex; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: rgba(16, 16, 18, .62);
  border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.nav__pill a {
  position: relative; z-index: 1;
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: rgba(244, 241, 234, .74);
  transition: color .35s;
}
.nav__pill a:hover { color: var(--text); }
.nav__pill a.is-active { color: #0b0b0c; }
.nav__indicator {
  position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; width: 0;
  border-radius: 999px; background: var(--accent); opacity: 0;
  transition: transform .6s var(--ease), width .6s var(--ease), opacity .35s;
}
.nav__cta { --bh: 44px; padding: 0 18px; }
.nav__burger {
  display: none; align-items: center; gap: 12px;
  height: 46px; padding: 0 7px 0 18px; border-radius: 999px;
  background: rgba(16, 16, 18, .66);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.nav__burger-lines {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-content: center; gap: 5px;
}
.nav__burger-lines i { display: block; width: 13px; height: 1.6px; background: #0b0b0c; border-radius: 2px; transition: transform .5s var(--ease); }
.is-menu-open .nav__burger-lines i:first-child { transform: translateY(3.3px) rotate(45deg); }
.is-menu-open .nav__burger-lines i:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.nav__progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; }
.nav__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 899px) {
  .nav__pill, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__name { font-size: 14px; }
}
@media (max-width: 359px) { .nav__name { display: none; } }

/* ---------- Mobile menu ---------- */
.menu { position: fixed; inset: 0; z-index: 55; visibility: hidden; pointer-events: none; transition: visibility 0s .9s; }
.menu.is-open { visibility: visible; pointer-events: auto; transition: none; }
.menu__panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: radial-gradient(80% 40% at 100% 0%, rgba(255, 106, 26, .22), transparent 70%),
              radial-gradient(80% 40% at 0% 100%, rgba(47, 107, 255, .22), transparent 70%),
              var(--bg);
  clip-path: circle(0% at calc(100% - var(--gutter) - 23px) calc(env(safe-area-inset-top) + var(--nav-h) / 2));
  transition: clip-path .85s var(--ease-io);
  overflow-y: auto;
}
.menu.is-open .menu__panel { clip-path: circle(160% at calc(100% - var(--gutter) - 23px) calc(env(safe-area-inset-top) + var(--nav-h) / 2)); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(42px, 12.5vw, 84px); font-weight: 700; letter-spacing: -.05em; line-height: 1.04;
  overflow: hidden;
}
.menu__links .mono { color: var(--accent); font-size: 12px; transform: translateY(-1.6em); }
.menu__txt { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.menu.is-open .menu__txt { transform: none; }
.menu.is-open .menu__links a:nth-child(1) .menu__txt { transition-delay: .18s; }
.menu.is-open .menu__links a:nth-child(2) .menu__txt { transition-delay: .24s; }
.menu.is-open .menu__links a:nth-child(3) .menu__txt { transition-delay: .30s; }
.menu.is-open .menu__links a:nth-child(4) .menu__txt { transition-delay: .36s; }
.menu.is-open .menu__links a:nth-child(5) .menu__txt { transition-delay: .42s; }
.menu__foot { display: grid; gap: 14px; opacity: 0; transform: translateY(16px); transition: opacity .6s .45s, transform .8s .45s var(--ease); }
.menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu__mail { font-size: 20px; font-weight: 600; letter-spacing: -.02em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.menu__social { display: flex; gap: 20px; font-weight: 500; }
.menu__time { color: var(--muted); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-wrap { position: relative; height: 200vh; height: 200svh; }
.hero {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: #070708;
  isolation: isolate;
}
.hero__media {
  position: absolute; left: 0; right: 0; bottom: 0;
  top: 0;
  transform-origin: 50% 30%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0%;
  background: #070708;
}
/* WebGL pass of the video (see heroFx in main.js); the <video> stays underneath as source + fallback */
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .35s; }
.hero__media.fx-on .hero__fx { opacity: 1; }
.hero__media.fx-on .hero__video { opacity: 0; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(7, 7, 8, .96) 0%, rgba(7, 7, 8, .62) 24%, rgba(7, 7, 8, 0) 52%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(7, 7, 8, .55) 100%);
}
.hero__shade::after { content: ""; position: absolute; inset: 0; background: #070708; opacity: var(--dim, 0); }

.hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 18px) var(--gutter) clamp(14px, 2.2vh, 28px);
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
/* "Open for freelance" status badge: spinning gradient border, radar dot, shimmering text */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.avail {
  position: relative; isolation: isolate;
  --gap: 11px;
  display: inline-flex; align-items: center; gap: var(--gap);
  height: 42px; padding: 0 18px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 28, 32, .72), rgba(10, 10, 12, .72));
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .07);
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: padding .55s var(--ease);
}
.avail::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; padding: 1.2px;
  background: conic-gradient(from var(--spin),
    rgba(255, 255, 255, .1) 0deg, var(--accent) 70deg, #ffd3b3 100deg, var(--cyan) 160deg,
    rgba(255, 255, 255, .1) 220deg, rgba(255, 255, 255, .1) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: availSpin 4.5s linear infinite;
}
.avail::after {
  content: ""; position: absolute; inset: -5px; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), transparent 0deg, rgba(255, 106, 26, .45) 80deg, rgba(41, 185, 255, .4) 160deg, transparent 230deg);
  filter: blur(12px); opacity: .55;
  animation: availSpin 4.5s linear infinite;
  transition: opacity .5s;
}
@keyframes availSpin { to { --spin: 360deg; } }
.avail__dot {
  position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: #3ddc84; box-shadow: 0 0 10px 1px rgba(61, 220, 132, .8);
}
.avail__dot::before, .avail__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid #3ddc84; animation: availPing 2.4s cubic-bezier(.2, .6, .3, 1) infinite;
}
.avail__dot::after { animation-delay: 1.2s; }
@keyframes availPing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
.avail__text {
  background: linear-gradient(105deg, var(--text) 0 42%, #fff 47%, #ffb27a 50%, #fff 53%, var(--text) 58% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: availShine 5s ease-in-out 1.8s infinite;
}
@keyframes availShine { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0 0; } }
.avail__go {
  display: grid; place-items: center; flex: none;
  width: 0; height: 28px; margin: 0 0 0 calc(var(--gap) * -1); border-radius: 50%; overflow: hidden;
  background: var(--accent); color: #0b0b0c; font-size: 14px; font-weight: 700;
  opacity: 0; transform: scale(.4) rotate(-90deg);
  transition: width .55s var(--ease), margin .55s var(--ease), opacity .3s, transform .55s var(--ease);
}
.avail:hover .avail__go, .avail:focus-visible .avail__go { width: 28px; margin: 0 -11px 0 0; opacity: 1; transform: none; }
.avail:hover::after { opacity: .9; }
.hero__loc { text-align: right; display: grid; justify-items: end; gap: 10px; }
.hero__loc p { color: var(--muted); line-height: 1.5; }
.hero__loc [data-clock] { color: var(--text); }
.hero__mid { align-self: end; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: clamp(10px, 2.6vh, 30px); }
.hero__tagline {
  font-size: clamp(24px, 2.4vw, 42px); font-weight: 600; line-height: 1; letter-spacing: -.035em;
  white-space: nowrap;
}
.hero__tagline em { color: var(--accent-2); font-size: 1.12em; font-weight: 400; letter-spacing: -.02em; }
/* rotating role with a quick glitch swap */
.hero__tagline [data-role] { display: inline-block; position: relative; }
.hero__tagline [data-role].is-glitch { animation: roleGlitch .42s steps(2, end); }
@keyframes roleGlitch {
  0%   { transform: translate(0); text-shadow: none; clip-path: inset(0); }
  20%  { transform: translate(-3px, 1px); text-shadow: 2px 0 #ff3b30, -2px 0 #2fa8ff; clip-path: inset(10% 0 55% 0); }
  40%  { transform: translate(3px, -1px); text-shadow: -2px 0 #ff3b30, 2px 0 #2fa8ff; clip-path: inset(55% 0 10% 0); }
  60%  { transform: translate(-2px, 0); text-shadow: 2px 0 #ff3b30, -2px 0 #2fa8ff; clip-path: inset(0 0 30% 0); }
  80%  { transform: translate(2px, 1px); text-shadow: -1px 0 #ff3b30, 1px 0 #2fa8ff; clip-path: inset(25% 0 0 0); }
  100% { transform: translate(0); text-shadow: none; clip-path: inset(0); }
}
.hero__side { display: flex; align-items: flex-end; gap: 14px; }
.hero__stats { display: grid; gap: 10px; }
.glass {
  display: flex; align-items: center; gap: 14px;
  min-width: 170px; padding: 12px 16px 12px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.glass b { font-size: 32px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.glass span { font-size: 12px; line-height: 1.25; color: var(--muted); }
.hero__scroll { position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; }
.hero__scroll svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 16s linear infinite; }
.hero__scroll text { font-family: var(--f-mono); font-size: 10.4px; letter-spacing: .21em; fill: var(--text); }
.hero__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #0b0b0c; font-size: 18px; font-weight: 700;
  transition: transform .5s var(--ease);
}
.hero__scroll:hover .hero__arrow { transform: translateY(4px); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__name {
  display: block; width: 100%;
  font-size: 11.6vw; font-weight: 800; font-stretch: 100%;
  line-height: .8; letter-spacing: -.05em; text-transform: uppercase;
  white-space: nowrap; text-align: center;
  color: var(--text);
  margin-bottom: -.035em;
}
.hero__name-in { display: inline-block; }
.fit-line { display: inline-block; overflow: hidden; padding: .07em .02em .03em; margin: -.07em -.02em -.03em; vertical-align: top; }
.fit-gap { display: inline-block; width: .22em; }
.ch { display: inline-block; will-change: transform; }
.ch--sp { width: .22em; }

/* Portrait screens: tall crop, name on two lines */
@media (max-aspect-ratio: 1/1) {
  .hero__media {
    top: calc(var(--nav-h) + env(safe-area-inset-top) + 30px);
    bottom: auto;
    height: min(72svh, 128vw);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 70%, transparent 100%);
  }
  .hero__shade { background: linear-gradient(to top, rgba(7, 7, 8, .9) 0%, rgba(7, 7, 8, .5) 30%, rgba(7, 7, 8, 0) 58%); }
  .fit-line { display: block; }
  .fit-gap { display: none; }
  .hero__name { line-height: .82; font-size: 26vw; }
  .hero__side { display: none; }
  .hero__mid { padding-bottom: 14px; justify-content: center; }
  .hero__tagline { font-size: clamp(22px, 6.4vw, 32px); text-align: center; }
}
@media (max-width: 599px) {
  .avail { --gap: 10px; height: 38px; padding: 0 15px; font-size: 12.5px; }
  .hero__loc p { font-size: 10.5px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .hero__top { gap: 10px; }
  .avail { --gap: 9px; padding: 0 13px; font-size: 12px; }
  .hero__loc p { font-size: 10px; }
}
/* very short landscape phones: drop the curtain and let the hero breathe */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-wrap { height: auto; }
  .hero { position: relative; height: auto; min-height: calc(100svh + var(--r-xl)); }
  .hero__inner { min-height: 100svh; }
  .about { margin-top: calc(var(--r-xl) * -1) !important; }
  .hero__side { display: none; }
}

/* ==========================================================================
   Sheets & shared section bits
   ========================================================================== */
.sheet { position: relative; z-index: 2; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: calc(var(--r-xl) * -1); }
.sheet--paper { background: var(--paper); color: var(--ink); }
.sheet--dark { background: var(--bg); color: var(--text); }

.sec-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 18px; margin-bottom: clamp(32px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.sheet--paper .sec-head { border-color: var(--ink-line); }

.title {
  font-size: clamp(46px, 7.6vw, 132px); font-weight: 700;
  line-height: .9; letter-spacing: -.055em;
}
.title em { font-weight: 400; letter-spacing: -.035em; color: var(--accent); padding-right: .04em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__in { display: inline-block; }
.rw { display: inline-block; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li, .tags span {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--ink-line);
  font-size: 13px; font-weight: 500; line-height: 1.2;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--ink-line);
  font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  margin-top: -100vh; margin-top: -100svh;
  padding-top: clamp(64px, 9vw, 140px);
  overflow: clip;
  box-shadow: 0 -40px 80px rgba(0, 0, 0, .45);
}
.statement {
  max-width: 17.5em;
  font-size: clamp(31px, 5.5vw, 92px); font-weight: 600;
  line-height: 1.04; letter-spacing: -.045em;
}
.statement em { color: var(--accent); font-size: 1.06em; letter-spacing: -.025em; }
.about__grid {
  display: grid; gap: clamp(48px, 7vw, 120px);
  margin-top: clamp(64px, 9vw, 140px);
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
}

/* paper-sculpture self-portrait: transparent WebP sits straight on the paper; on scroll it is
   revealed by a diagonal mask sweep (--rv: 1 hidden → 0 shown, animated in main.js) */
.sketch { position: relative; width: 100%; margin: 0 auto; }
.sketch img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(118deg, #000 44%, transparent 56%);
  mask-image: linear-gradient(118deg, #000 44%, transparent 56%);
  -webkit-mask-size: 280% 100%; mask-size: 280% 100%;
  -webkit-mask-position: calc(var(--rv, 0) * 100%) 0; mask-position: calc(var(--rv, 0) * 100%) 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
@media (min-width: 900px) {
  /* the portrait is taller than the old sketch, so it is capped a little narrower to stay in view */
  .sketch { width: min(100%, 540px); margin-left: auto; margin-right: auto; }
}
@media (min-width: 600px) and (max-width: 899px) { .sketch { width: min(100%, 580px); } }
@media (max-width: 599px) { .sketch { width: calc(100% + 16px); margin-left: -8px; } }

/* doodle-art motion around the portrait: one layer behind it, one in front (kept clear of the face) */
.sketch img { position: relative; z-index: 1; }
.doodles { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.doodles--back { z-index: 0; }
.doodles--front { z-index: 2; }
.doodles path, .doodles ellipse, .doodles circle { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.doodles .f { fill: var(--accent); stroke: none; }
.doodles .f-2 { fill: var(--accent-2); stroke: none; }
.doodles .f-ink { fill: var(--ink); stroke: none; }
.doodles .f-soft { fill: rgba(255, 106, 26, .14); }
.doodles .f-paper { fill: #fff; }
.doodles .s-paper { stroke: var(--paper); }
.doodles .f-cursor { fill: var(--accent); stroke: var(--paper); stroke-width: 5; }
.doodles .d-orbit { stroke-width: 4; stroke-dasharray: 2 26; opacity: .55; }
.doodles .d-draw { stroke-dasharray: 100; stroke-dashoffset: 100; }
.doodles .d-reel { stroke-width: 9; stroke-linecap: butt; stroke-dasharray: 10 14; }

.dm, .d-flash, .d-lid, .d-rays, .d-pop { transform-box: fill-box; transform-origin: center; }
.d-float { animation: ddFloat 5s ease-in-out infinite; }
.d-float--slow { animation-duration: 6.5s; animation-delay: -2s; }
.d-float--fast { animation-duration: 3.8s; animation-delay: -1s; }
.d-spin { animation: ddSpin 26s linear infinite; }
.d-orbit { animation: ddSpin 60s linear infinite; }
.d-wiggle { animation: ddWiggle 4.4s ease-in-out infinite; }
.d-draw { animation: ddDraw 5s ease-in-out infinite; }
.d-flash { animation: ddFlash 3.2s ease-in-out infinite; }
.d-flash--loop { animation-duration: 3.6s; }
.d-blink { animation: blink 1.2s steps(1) infinite; }
.d-lid { transform-origin: 50% 100%; animation: ddLid 3.4s ease-in-out infinite; }
.d-reel { animation: ddReel 1.6s linear infinite; }
.d-pop { animation: ddPop 2.4s ease-in-out infinite; }
.d-pop--slow { animation-duration: 3.2s; }
.d-click { animation: ddClick 3s ease-in-out infinite; }
.d-rays { animation: ddRays 3s ease-in-out infinite; }
.d-twinkle { animation: ddTwinkle 2.8s ease-in-out infinite; }
.d-twinkle--mid { animation-delay: -.9s; }
.d-twinkle--late { animation-delay: -1.8s; }

@keyframes ddFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes ddSpin { to { transform: rotate(360deg); } }
@keyframes ddWiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes ddDraw { 0% { stroke-dashoffset: 100; } 50%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes ddFlash { 0%, 60%, 100% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.1); } 85% { opacity: 0; } }
@keyframes ddLid { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-18px) rotate(-8deg); } }
@keyframes ddReel { to { stroke-dashoffset: -24; } }
@keyframes ddPop { 0%, 55%, 100% { transform: scale(1); } 65% { transform: scale(1.25); } 75% { transform: scale(.9); } }
@keyframes ddClick { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-16px, -12px); } 48% { transform: translate(-16px, -12px) scale(.88); } 56% { transform: translate(-16px, -12px) scale(1); } }
@keyframes ddRays { 0%, 42%, 70%, 100% { opacity: 0; } 50%, 60% { opacity: 1; } }
@keyframes ddTwinkle { 0%, 100% { transform: scale(.5) rotate(0); opacity: .35; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }

/* loops only run while the portrait is on screen */
.doodles * { animation-play-state: paused; }
.sketch.is-live .doodles * { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .doodles * { animation: none !important; } .doodles .d-draw { stroke-dashoffset: 0; } }
@media (max-width: 899px) { .about__grid { margin-top: 40px; gap: 32px; } }

.about__lead { font-size: clamp(23px, 2.35vw, 38px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; text-wrap: pretty; }
.about__body { margin-top: 22px; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: var(--ink-muted); }

.proverb {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 34px; padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  background: var(--ink); color: var(--paper);
}
.proverb::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 0% 0%, rgba(255, 106, 26, .35), transparent 70%),
              radial-gradient(60% 90% at 100% 100%, rgba(47, 107, 255, .35), transparent 70%);
}
.proverb__sunda {
  font-family: "Noto Sans Sundanese", var(--f-sans);
  font-size: clamp(21px, 2.3vw, 34px); line-height: 1.6;
  background: linear-gradient(90deg, #ff8a4c, #ffd1b0 45%, #8fd3ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proverb__latin { margin-top: 4px; font-family: var(--f-serif); font-style: italic; font-size: clamp(21px, 1.9vw, 30px); line-height: 1.25; }
.proverb__trans { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: rgba(239, 236, 229, .66); }
.proverb__trans .mono { display: block; margin-top: 8px; font-size: 11px; color: rgba(239, 236, 229, .45); }
.about__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(80px, 10vw, 160px);
  border-top: 1px solid var(--ink-line);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column; gap: 12px; padding: 26px 18px 26px 0; border-bottom: 1px solid var(--ink-line); }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--ink-line); }
@media (max-width: 899px) { .stat:nth-child(3) { padding-left: 0; border-left: 0; } }
.stat__num { display: flex; align-items: flex-start; font-size: clamp(58px, 7.4vw, 124px); font-weight: 700; line-height: .86; letter-spacing: -.065em; }
.stat__num sup { font-size: .42em; line-height: 1; color: var(--accent); margin-left: .04em; }
.stat__num small { font-size: .26em; font-weight: 600; letter-spacing: -.01em; margin: .2em .25em 0 0; color: var(--accent); text-transform: uppercase; }
.stat__label { max-width: 24ch; font-size: 14px; line-height: 1.4; color: var(--ink-muted); }

/* ---------- Clients marquee ---------- */
.clients { padding: clamp(72px, 9vw, 130px) 0 calc(var(--r-xl) + clamp(64px, 8vw, 120px)); }
.clients__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 36px); }
.marquee {
  overflow: hidden; padding: clamp(14px, 1.8vw, 22px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(44px, 5.5vw, 96px); width: max-content; will-change: transform; }
.marquee__track li { flex: none; }
.marquee__track img { width: auto; height: var(--h); filter: brightness(0); opacity: .5; transition: opacity .35s; }
.marquee__track li:hover img { opacity: 1; }
@media (max-width: 599px) { .marquee__track img { height: calc(var(--h) * .76); } }

/* ==========================================================================
   Services — stacked discipline cards
   ========================================================================== */
.services { padding: clamp(80px, 10vw, 150px) 0 clamp(90px, 11vw, 160px); }
.services__intro { display: grid; gap: 26px; margin-bottom: clamp(48px, 7vw, 100px); }
@media (min-width: 900px) { .services__intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; } }
.services__lede, .work__lede, .toolkit__lede, .journey__lede { max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--muted); }
.journey__lede { color: var(--ink-muted); margin-top: 26px; }

/* generous gap = extra scroll while a card sits fully in view before the next one slides over it */
.stack { display: grid; gap: clamp(90px, 30vh, 300px); gap: clamp(90px, 30svh, 300px); }
.disc { position: sticky; top: calc(var(--nav-h) + 10px + var(--i) * 12px); }
.disc__inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-radius: var(--r-xl);
  background: var(--card); color: var(--ink);
  transform-origin: 50% 0;
  box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, .7);
}
.disc__inner::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; background: #050506; opacity: var(--veil, 0);
}
.disc__info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 3.4vw, 54px); }
.disc__top { display: flex; align-items: center; gap: 12px; }
.disc__top .label { opacity: .6; }
.disc__num {
  display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--ink); color: var(--card);
  font-family: var(--f-mono); font-size: 12px;
}
.disc__title { font-size: clamp(34px, 4.7vw, 80px); font-weight: 700; line-height: .94; letter-spacing: -.055em; }
.disc__more { align-self: flex-start; margin-top: auto; }
/* short two-line explainer under each service title */
.disc__sub { max-width: 34ch; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.45; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 359px) { .disc__sub { font-size: 13.5px; } }

/* full-screen "page is being updated" popup */
.upd {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(8, 8, 10, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text, #f4f2ee); text-align: center;
  opacity: 0; transition: opacity .45s;
}
.upd.is-open { opacity: 1; }
.upd__body { display: grid; gap: 18px; justify-items: center; max-width: 720px; outline: none; transform: translateY(18px); transition: transform .6s var(--ease); }
.upd.is-open .upd__body { transform: none; }
.upd__title { font-size: clamp(38px, 7vw, 96px); font-weight: 700; line-height: .98; letter-spacing: -.05em; }
.upd__text { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: var(--muted); }
.upd__close { position: absolute; top: 20px; right: 20px; }
.disc__media { position: relative; aspect-ratio: 1 / 1; background: var(--card); overflow: hidden; }
.disc__media video, .disc__media img { width: 100%; height: 100%; object-fit: contain; }
/* card stays blank until its clip is really painting frames, then a card-coloured veil fades off it.
   Fading the <video> itself showed black on iOS, which paints an empty video layer black. */
.disc__media video { background: var(--card); }
.js .disc__media:has(> video)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--card);
  transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1);
}
.js .disc__media.is-on::after { opacity: 0; }
.js .disc__media:has(> video) video { transform: scale(1.03); transition: transform 2.4s cubic-bezier(.4, 0, .2, 1); }
.js .disc__media.is-on video { transform: none; }

/* live link under the Website card */
.disc__live {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  background: var(--ink); color: var(--card);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .03em; text-transform: uppercase;
  transition: background-color .3s, color .3s;
}
.disc__live:hover { background: var(--accent); color: #0b0b0c; }
.disc__live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px rgba(61, 220, 132, .9); }

/* interactive 3D laptop */
.disc__media--3d { cursor: grab; }
.disc__media--3d.is-grabbing { cursor: grabbing; }
.disc__media .laptop3d__fallback {
  position: absolute; left: 50%; top: 50%;
  width: 70%; height: auto; object-fit: initial;
  transform: translate(-50%, -54%);
  border-radius: 10px;
  box-shadow: 0 0 0 7px #0b0b0c, 0 40px 70px -30px rgba(0, 0, 0, .55);
  transition: opacity .7s;
}
.laptop3d__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
  opacity: 0; transition: opacity .9s;
}
.disc__media--3d.is-ready .laptop3d__canvas { opacity: 1; }
.disc__media--3d.is-ready .laptop3d__fallback { opacity: 0; }
.laptop3d__hint {
  position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: 7px 13px; border-radius: 999px;
  background: rgba(14, 14, 15, .07); color: var(--ink-muted);
  font-size: 10.5px; white-space: nowrap; pointer-events: none;
  transition: opacity .5s;
}
.disc__media--3d.is-touched .laptop3d__hint { opacity: 0; }

@media (max-width: 899px) {
  /* every card takes the height of the tallest one; the spare room collects under the button */
  .stack { grid-auto-rows: 1fr; }
  .disc__inner { height: 100%; grid-template-rows: auto 1fr; }
  .disc__more { margin-top: 6px; }
  .disc .tags { flex-wrap: nowrap; gap: 5px; }
  .disc .tags li { white-space: nowrap; }
  .disc__media { order: -1; padding-top: clamp(16px, 5vw, 28px); }
  .disc__info { gap: 12px; }
  .disc__title { margin-top: 2px; }
  .disc__top { order: -1; }
  .disc .tags li { font-size: clamp(10px, 2.9vw, 12px); padding: 5px clamp(7px, 2.2vw, 10px); }
}
@media (max-width: 359px) {
  .disc .tags { gap: 4px; }
  .disc .tags li { font-size: 9px; padding: 4px 6px; }
}
@media (min-width: 900px) {
  .disc__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .disc__title { margin-top: auto; }
  /* keep the mockup off the card's right edge */
  .disc__media { padding: clamp(20px, 2.6vw, 44px) clamp(28px, 3.4vw, 54px) clamp(20px, 2.6vw, 44px) 0; }
}

/* ==========================================================================
   Work — horizontal gallery
   ========================================================================== */
.work { padding: clamp(80px, 10vw, 130px) 0 clamp(70px, 9vw, 120px); }
.work__head .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.work__title-row { display: grid; gap: 18px; margin-bottom: clamp(28px, 4vw, 48px); }
.work__title-row .title { font-size: clamp(46px, 6.4vw, 108px); }
@media (min-width: 900px) {
  .work__title-row { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; margin-bottom: 26px; }
  .work__title-row .title { font-size: clamp(40px, 4.9vw, 92px); }
  .work__head .sec-head { margin-bottom: 18px; }
  .work__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) 0 18px; }
  .work { padding-top: clamp(40px, 5vw, 70px); }
}
.work__viewport { overflow: hidden; }
.work__track { display: flex; gap: clamp(14px, 1.8vw, 26px); width: max-content; padding: 4px var(--gutter) 6px; }

.proj {
  position: relative; flex: none;
  width: clamp(300px, 34vw, 600px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 10px 10px 22px;
  border-radius: var(--r-lg);
  text-align: left;
  background: #161618;
  background: color-mix(in srgb, var(--tint, #333) 22%, #121214);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: transform .7s var(--ease), border-color .4s;
}
.proj:hover { border-color: rgba(255, 255, 255, .2); }
.proj__media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 11; overflow: hidden;
  border-radius: calc(var(--r-lg) - 8px);
  background: color-mix(in srgb, var(--tint, #333) 45%, #0b0b0c);
}
@media (min-width: 900px) {
  /* everything else in the pinned frame takes ~540px; the image gets the rest */
  .proj__media { aspect-ratio: auto; height: clamp(180px, calc(100vh - 510px), 440px); height: clamp(180px, calc(100svh - 510px), 440px); }
  .proj__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .proj__title { font-size: clamp(28px, 2.6vw, 46px); }
}
.proj__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.18); }
.proj__meta { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 8px 0; }
.proj__num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.tags--sm span { padding: 4px 10px; font-size: 11.5px; border-color: rgba(255, 255, 255, .16); color: rgba(244, 241, 234, .82); }
.proj__title { padding: 0 8px; font-size: clamp(30px, 3vw, 50px); font-weight: 700; line-height: .95; letter-spacing: -.05em; }
.proj__desc { padding: 0 8px; max-width: 40ch; font-size: 15px; line-height: 1.45; color: var(--muted); }
.proj__go {
  position: absolute; right: 22px; top: 22px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--text); color: #0b0b0c; font-size: 20px; font-weight: 700;
  transition: transform .6s var(--ease), background-color .3s;
}
.proj:hover .proj__go { transform: rotate(45deg); background: var(--accent); }
.proj--cta {
  justify-content: space-between; align-items: flex-start;
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(140deg, rgba(255, 106, 26, .22), rgba(47, 107, 255, .2)), #121214;
}
.proj__cta-big { font-size: clamp(36px, 3.6vw, 62px); font-weight: 700; line-height: .98; letter-spacing: -.05em; }
.proj__cta-big em { color: var(--accent-2); font-weight: 400; }

.work__bar { display: flex; align-items: center; gap: 18px; margin-top: clamp(18px, 2.4vw, 30px); }
.work__count { color: var(--muted); white-space: nowrap; }
.work__count b { color: var(--text); font-weight: 500; }
.work__progress { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.work__progress i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 899px) {
  .work__viewport {
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .work__viewport::-webkit-scrollbar { display: none; }
  .proj { width: min(84vw, 420px); scroll-snap-align: start; }
  .proj__go { width: 42px; height: 42px; right: 18px; top: 18px; font-size: 17px; }
  .proj--cta { min-height: 420px; }
}

/* ==========================================================================
   More — 3D wall
   ========================================================================== */
.more { padding: clamp(80px, 10vw, 140px) 0 calc(var(--r-xl) + clamp(60px, 8vw, 120px)); overflow: clip; }
.more__head { text-align: center; position: relative; z-index: 2; }
.more__title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(60px, 11.5vw, 200px); line-height: .9; letter-spacing: -.035em;
  background: linear-gradient(90deg, #7fb3ff 0%, #b79cff 45%, #ff8a5c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .06em .08em;
}
.more__sub { max-width: 44ch; margin: 18px auto 0; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }
.wall { position: relative; height: clamp(440px, 64vw, 900px); margin-top: clamp(20px, 3vw, 40px); perspective: 1500px; }
.wall__plane {
  position: absolute; left: 50%; top: 50%;
  display: grid; gap: clamp(12px, 1.5vw, 24px);
  transform: translate(-50%, -50%) rotateX(26deg) rotateZ(-9deg);
  transform-style: preserve-3d;
}
.wall__row { display: flex; gap: clamp(12px, 1.5vw, 24px); width: max-content; will-change: transform; }
.wall__row img {
  flex: none; width: auto; height: clamp(150px, 16.5vw, 300px);
  border-radius: clamp(8px, 1vw, 14px);
  object-fit: cover; background: #222;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7);
}
.wall__row .w-logo { background: #fff; }

/* ==========================================================================
   Journey — timeline
   ========================================================================== */
.journey { padding: clamp(80px, 10vw, 150px) 0 calc(var(--r-xl) + clamp(70px, 9vw, 140px)); overflow: clip; }
.title--ink em { color: var(--accent); }
.timeline { position: relative; display: grid; gap: 22px; margin-top: clamp(56px, 8vw, 120px); padding-left: 34px; }
.timeline__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.timeline__ghost { fill: none; stroke: var(--ink-line); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.timeline__path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.timeline__dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2; transition: fill .4s; }
.timeline__dot.is-on { fill: var(--accent); }
.tl {
  position: relative; z-index: 1;
  display: grid; gap: 14px;
  padding: clamp(20px, 2vw, 28px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--ink-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tl__year {
  display: flex; align-items: flex-start;
  font-size: clamp(64px, 7vw, 116px); font-weight: 800; line-height: .82; letter-spacing: -.07em;
  color: var(--accent);
}
.tl__year--now { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }
.roll { display: inline-flex; }
.roll__col { display: inline-block; height: .82em; overflow: hidden; }
.roll__strip { display: flex; flex-direction: column; }
.roll__strip > span { display: block; height: .82em; line-height: .82; }
.tl__head { display: flex; align-items: center; gap: 14px; }
.tl__head h3 { font-size: clamp(22px, 1.9vw, 30px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.tl__role { margin-top: 3px; font-size: 14.5px; color: var(--ink-muted); }
.tl__logo { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }
.tl__desc { font-size: 15.5px; line-height: 1.55; color: var(--ink-muted); }
.tl .chip { justify-self: start; }
.chip--live { border-color: rgba(61, 220, 132, .5); }
.tl--now { background: var(--ink); color: var(--paper); border-color: transparent; }
.tl--now .tl__role, .tl--now .tl__desc { color: rgba(239, 236, 229, .66); }
.tl--now .chip { border-color: rgba(61, 220, 132, .5); color: var(--paper); }

@media (min-width: 900px) {
  .timeline { padding-left: 0; gap: 0; }
  .tl { width: min(44%, 500px); }
  .tl[data-side="left"] { justify-self: start; margin-left: 3%; }
  .tl[data-side="right"] { justify-self: end; margin-right: 3%; }
  .tl + .tl { margin-top: clamp(-90px, -5vw, -40px); }
}

/* ==========================================================================
   Toolkit
   ========================================================================== */
.toolkit { padding: clamp(80px, 10vw, 150px) 0 clamp(80px, 10vw, 140px); }
.toolkit__intro { display: grid; gap: 26px; margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .toolkit__intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; } }
.tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease);
}
.tool::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 0% 0%, var(--c), transparent 70%);
  opacity: .1; transition: opacity .5s;
}
.tool:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-4px); }
.tool:hover::before { opacity: .22; }
.tool__icon { width: 56px; height: 56px; fill: var(--c); }
.tool__body { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tool__body h3 { font-size: clamp(19px, 1.5vw, 23px); font-weight: 600; letter-spacing: -.03em; }
.tool__val { color: var(--muted); }
.tool__val b { font-family: var(--f-sans); font-size: 30px; font-weight: 700; letter-spacing: -.05em; color: var(--text); }
.tool__val b::after { content: "%"; font-size: .45em; margin-left: 2px; color: var(--c); }
.meter { --v: 0; position: relative; grid-column: 1 / -1; height: 16px; margin-top: 2px; }
.meter__ticks {
  position: absolute; left: 0; right: 0; top: 8px; height: 8px;
  background: repeating-linear-gradient(90deg, rgba(244, 241, 234, .22) 0 1px, transparent 1px 10%);
  border-left: 0; opacity: .9;
}
.meter__ticks::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: rgba(244, 241, 234, .22); }
.meter::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); border-radius: 2px; }
.meter__fill { position: absolute; left: 0; top: 7px; height: 2px; width: calc(var(--v) * 100%); background: var(--c); border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.meter__knob {
  position: absolute; top: 0; left: calc(var(--v) * 100% * var(--p, 1));
  width: 14px; height: 16px; margin-left: -7px;
  background: var(--c);
  clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%);
  border-radius: 2px;
}

/* phones: two compact tiles per row — icon + score on top, name, then the meter */
@media (max-width: 639px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool {
    grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon val" "name name" "meter meter";
    gap: 10px 8px; padding: 14px; border-radius: 18px;
  }
  .tool__icon { grid-area: icon; width: 36px; height: 36px; }
  .tool__body { display: contents; }
  .tool__body h3 { grid-area: name; font-size: 15px; margin-top: 2px; }
  .tool__val { grid-area: val; justify-self: end; align-self: center; }
  .tool__val b { font-size: 22px; }
  .meter { grid-area: meter; height: 16px; margin-top: 0; }
  .meter__knob { width: 11px; height: 13px; margin-left: -5.5px; }
}

/* ---------- Also in the kit: AI & video ---------- */
.ai {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: clamp(20px, 3vw, 40px);
  margin-top: 12px; padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background:
    radial-gradient(40% 80% at 100% 0%, rgba(47, 107, 255, .14), transparent 70%),
    radial-gradient(40% 80% at 0% 100%, rgba(255, 106, 26, .12), transparent 70%),
    var(--bg-2);
}
@media (min-width: 1000px) { .ai { grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); align-items: center; } }
.ai__head { display: grid; gap: 10px; align-content: start; }
.ai__title { font-size: clamp(34px, 3.6vw, 56px); font-weight: 700; line-height: .95; letter-spacing: -.05em; }
.ai__title em { color: var(--accent); }
.ai__lede { max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ai__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ai__app {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 16px; border-radius: 20px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 16%, var(--bg-3)), var(--bg-3) 70%);
  border: 1px solid var(--line);
}
@media (hover: hover) { .ai__app { transition: border-color .4s, transform .6s var(--ease); } }
.ai__app::after {
  content: ""; position: absolute; right: -30%; top: -40%; width: 90%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: var(--c); opacity: .14; filter: blur(30px); transition: opacity .5s;
}
.ai__app:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.ai__app:hover::after { opacity: .3; }
.ai__icon { display: block; width: 46px; height: 46px; margin-bottom: 14px; transition: transform .7s var(--ease); }
.ai__app:hover .ai__icon { transform: rotate(-8deg) scale(1.08); }
.ai__icon svg { display: block; width: 100%; height: 100%; fill: var(--c); filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--c) 40%, transparent)); }
.ai__name { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.ai__role { font-family: var(--f-mono); font-size: 10.5px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 999px) { .ai__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phones: one tidy list — every row the same height, label on the left, role on the right */
@media (max-width: 639px) {
  .ai { gap: 20px; padding: 20px; }
  .ai__list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ai__app { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; }
  .ai__icon { width: 32px; height: 32px; margin: 0; }
  .ai__name { font-size: 15px; line-height: 1.2; }
  .ai__role { font-size: 10px; text-align: right; white-space: nowrap; }
}

/* ---------- Things I love doing: bento ---------- */
.play { margin-top: clamp(56px, 8vw, 110px); }
.play__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
@media (max-width: 379px) { .play__head .label--muted { display: none; } }
.love {
  display: grid; gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 13vw, 200px);
  grid-template-areas:
    "social social ui ui"
    "social social photo video"
    "logo illus brand brand"
    "edit edit pack pack";
}
.love__tile {
  --fg: var(--text);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 1.6vw, 24px);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--bg-3); color: var(--fg);
  transition: transform .7s var(--ease), border-color .4s;
}
.love__tile:hover { transform: translateY(-4px) rotate(-.4deg); border-color: rgba(244, 241, 234, .3); }
.love__num { position: relative; z-index: 2; font-family: var(--f-mono); font-size: 11px; line-height: 1; letter-spacing: .08em; opacity: .55; }
.love__name { position: relative; z-index: 2; font-size: clamp(20px, 1.9vw, 30px); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.love__name em { font-weight: 400; }
.love__art { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.love--social { grid-area: social; background: var(--accent); --fg: #0b0b0c; border-color: transparent; }
.love--social .love__name { font-size: clamp(30px, 3.4vw, 56px); }
.love--ui     { grid-area: ui; background: var(--paper); --fg: var(--ink); border-color: transparent; }
.love--photo  { grid-area: photo; }
.love--video  { grid-area: video; background: var(--blue); --fg: #fff; border-color: transparent; }
.love--logo   { grid-area: logo; }
.love--illus  { grid-area: illus; background: var(--paper); --fg: var(--ink); border-color: transparent; }
.love--brand  { grid-area: brand; }
.love--edit   { grid-area: edit; }
.love--pack   { grid-area: pack; background: var(--accent-2); --fg: #0b0b0c; border-color: transparent; }

/* every loop stays paused until the grid scrolls into view */
.love__tile * { animation-play-state: paused; }
.love.is-live .love__tile * { animation-play-state: running; }

/* 01 social — a fanned stack of feed posts and a popping heart */
.feed { position: absolute; right: 16%; top: 11%; height: 60%; aspect-ratio: 4 / 5; }
.feed i {
  position: absolute; inset: 0; border-radius: 14px; background-color: #fff;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45);
  background-image: linear-gradient(#ffd8c2, #ffd8c2), linear-gradient(rgba(0,0,0,.14), rgba(0,0,0,.14)), linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08));
  background-size: 84% 58%, 60% 6%, 40% 6%; background-position: 50% 12%, 14% 82%, 14% 92%; background-repeat: no-repeat;
  animation: feedFan 5s var(--ease-io) infinite;
}
.feed i:nth-child(1) { --r: -14deg; --x: -30%; }
.feed i:nth-child(2) { --r: -4deg; --x: -12%; }
.feed i:nth-child(3) { --r: 8deg; --x: 8%; background-image: linear-gradient(#2f6bff, #2f6bff), linear-gradient(rgba(0,0,0,.14), rgba(0,0,0,.14)), linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)); }
@keyframes feedFan { 0%, 100% { transform: rotate(0) translateX(0); } 35%, 70% { transform: rotate(var(--r)) translateX(var(--x)); } }
.feed__heart {
  position: absolute; right: 9%; top: 50%; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #0b0b0c; color: #ff4d6d; font-size: 26px; line-height: 1;
  animation: heartPop 2.5s var(--ease) infinite;
}
@keyframes heartPop { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.25); } 80% { transform: scale(.92); } }

/* 02 ui — a mini window with a cursor that clicks the button */
.win { position: absolute; right: 7%; top: 14%; width: 46%; height: 66%; border-radius: 12px; background: #fff; box-shadow: 0 16px 34px -18px rgba(0,0,0,.4); overflow: hidden; }
.win__bar { position: absolute; left: 0; right: 0; top: 0; height: 16%; background: #e8e4da; }
.win__bar::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #ff5f57; box-shadow: 10px 0 #febc2e, 20px 0 #28c840; }
.win__line { position: absolute; left: 10%; top: 30%; width: 70%; height: 9%; border-radius: 4px; background: var(--ink); }
.win__line--s { top: 44%; width: 48%; height: 6%; background: rgba(14,14,15,.25); }
.win__btn { position: absolute; left: 10%; top: 62%; width: 36%; height: 16%; border-radius: 999px; background: var(--accent); animation: btnPress 3.6s infinite; }
.win__cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; fill: var(--ink); stroke: #fff; stroke-width: 1.5; animation: cursorMove 3.6s var(--ease-io) infinite; }
@keyframes cursorMove { 0% { left: 88%; top: 84%; transform: scale(1); } 45% { left: 24%; top: 66%; transform: scale(1); } 52% { left: 24%; top: 66%; transform: scale(.8); } 60% { left: 24%; top: 66%; transform: scale(1); } 100% { left: 88%; top: 84%; transform: scale(1); } }
@keyframes btnPress { 0%, 48%, 58%, 100% { transform: scale(1); filter: none; } 52% { transform: scale(.92); filter: brightness(1.15); } }

/* 03 photo — a camera with a shutter flash */
.cam { position: absolute; right: 12%; top: 16%; height: 42%; width: auto; aspect-ratio: 4 / 3; color: var(--text); }
.cam__iris { transform-box: fill-box; transform-origin: center; animation: iris 4s var(--ease) infinite; }
@keyframes iris { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(.35); } 86% { transform: scale(1.15); } }
.cam__flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 4s infinite; }
@keyframes flash { 0%, 74%, 100% { opacity: 0; } 76% { opacity: .5; } }

/* 04 video — viewfinder corners and a blinking REC */
.vf { position: absolute; inset: 14% 10%; opacity: .8;
  background:
    linear-gradient(#fff, #fff) 0 0 / 18px 2px, linear-gradient(#fff, #fff) 0 0 / 2px 18px,
    linear-gradient(#fff, #fff) 100% 0 / 18px 2px, linear-gradient(#fff, #fff) 100% 0 / 2px 18px,
    linear-gradient(#fff, #fff) 0 100% / 18px 2px, linear-gradient(#fff, #fff) 0 100% / 2px 18px,
    linear-gradient(#fff, #fff) 100% 100% / 18px 2px, linear-gradient(#fff, #fff) 100% 100% / 2px 18px;
  background-repeat: no-repeat; }
.rec { position: absolute; right: 16%; top: 22%; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #fff; }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 05 logo — three primitives that keep trading places */
.shapes { position: absolute; right: 10%; top: 12%; height: 52%; aspect-ratio: 1; }
.sh { position: absolute; width: 44%; aspect-ratio: 1; animation: 6s var(--ease-io) infinite; }
.sh--c { border-radius: 50%; background: var(--accent); animation-name: shC; }
.sh--s { border-radius: 6px; background: var(--paper); animation-name: shS; }
.sh--t { background: var(--blue); clip-path: polygon(50% 4%, 100% 96%, 0 96%); animation-name: shT; }
@keyframes shC { 0%, 28% { left: 0; top: 0; } 33%, 61% { left: 56%; top: 56%; } 66%, 94% { left: 56%; top: 0; } 100% { left: 0; top: 0; } }
@keyframes shS { 0%, 28% { left: 56%; top: 0; transform: rotate(0); } 33%, 61% { left: 0; top: 56%; transform: rotate(90deg); } 66%, 94% { left: 0; top: 0; transform: rotate(180deg); } 100% { left: 56%; top: 0; transform: rotate(180deg); } }
@keyframes shT { 0%, 28% { left: 28%; top: 56%; } 33%, 61% { left: 56%; top: 0; } 66%, 94% { left: 28%; top: 56%; } 100% { left: 28%; top: 56%; } }

/* 06 illustration — a line that keeps drawing itself */
.scribble { position: absolute; right: 8%; top: 20%; width: 66%; color: var(--accent); }
.scribble path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 4.2s var(--ease-io) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 420; } 55%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }

/* 07 branding — a palette that breathes */
.swatch { position: absolute; right: 6%; top: 18%; bottom: 18%; width: 52%; display: flex; gap: 8px; align-items: stretch; }
.swatch i { flex: 1; border-radius: 10px; background: var(--s); animation: breathe 3.2s var(--ease-io) infinite; transform-origin: 50% 100%; }
.swatch i:nth-child(2) { animation-delay: .15s; } .swatch i:nth-child(3) { animation-delay: .3s; }
.swatch i:nth-child(4) { animation-delay: .45s; } .swatch i:nth-child(5) { animation-delay: .6s; }
@keyframes breathe { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* 08 video editing — a timeline with a moving playhead */
.cut { position: absolute; right: 6%; top: 18%; width: 56%; height: 58%; display: grid; grid-template-rows: 1fr 1fr .7fr; gap: 6px; }
.cut__track { position: relative; border-radius: 6px; background: rgba(244, 241, 234, .06); }
.cut__track i { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); border-radius: 6px; background: var(--blue); }
.cut__track:nth-child(2) i { background: var(--accent); }
.cut__track--audio i { background: repeating-linear-gradient(90deg, rgba(41, 185, 255, .7) 0 2px, transparent 2px 5px); opacity: .8; }
.cut__head { position: absolute; top: -8px; bottom: -8px; left: 0; width: 2px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.7); animation: playhead 5s linear infinite; }
.cut__head::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 10px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes playhead { from { left: 0; } to { left: 100%; } }

/* 09 packaging — a box whose lid keeps popping open */
.box { position: absolute; right: 10%; top: 12%; height: 64%; width: auto; aspect-ratio: 1; color: #0b0b0c; overflow: visible; }
.box__lid { transform-box: fill-box; transform-origin: 50% 100%; animation: lid 3s var(--ease) infinite; }
@keyframes lid { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-14px) rotate(-6deg); } }

@media (max-width: 899px) { .love { grid-auto-rows: 150px; } }
@media (max-width: 599px) {
  .love {
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 128px; gap: 8px;
    grid-template-areas: "social social" "ui photo" "video logo" "illus pack" "brand edit";
  }
  .love__tile { padding: 14px; border-radius: 18px; }
  .love__name { font-size: 17px; }
  .love--social .love__name { font-size: 26px; }
  .feed { height: 54%; right: 27%; top: 8%; }
  .feed__heart { width: 40px; height: 40px; font-size: 19px; right: 8%; top: 38%; }
  .win { width: 62%; height: 46%; right: 8%; top: 12%; }
  .win__cursor { width: 15px; height: 15px; }
  .cam { height: 40%; top: 12%; }
  .shapes { height: 46%; top: 10%; }
  .scribble { width: 76%; top: 14%; }
  .swatch { width: 66%; top: 12%; bottom: 46%; gap: 5px; }
  .swatch i { border-radius: 6px; }
  .cut { width: 76%; top: 14%; height: 40%; gap: 4px; }
  .box { height: 52%; top: 8%; }
  .rec { top: 18%; right: 12%; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .love__tile * { animation: none !important; } }

/* ==========================================================================
   Contact & footer
   ========================================================================== */
.contact { overflow: clip; padding-top: clamp(52px, 7vw, 110px); }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(70% 40% at 50% 0%, rgba(255, 255, 255, .04), transparent 70%);
}
/* a round, rainbow-like arc; the svg keeps its own proportions so the letters never get squashed */
.arc { position: relative; z-index: 1; width: min(100%, 1440px); aspect-ratio: 1600 / 340; margin: 0 auto; }
.arc svg { display: block; width: 100%; height: 100%; overflow: visible; }
.arc__text { font-family: var(--f-sans); font-size: 60px; font-weight: 800; letter-spacing: -.02em; fill: var(--text); }
/* phones: a taller box shows just the crown of the arc, so it reads round instead of flat */
@media (max-width: 599px) { .arc { width: 100%; aspect-ratio: auto; height: 150px; } .arc__text { font-size: 40px; } }
.contact__glow {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 85%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 46% at 26% 62%, rgba(255, 106, 26, .34), transparent 70%),
    radial-gradient(38% 46% at 74% 58%, rgba(47, 107, 255, .36), transparent 70%);
  filter: blur(30px);
}
.contact__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  /* tuck the heading up into the hollow under the arc instead of leaving a gap */
  margin-top: clamp(-260px, -17vw, -60px);
  padding-top: clamp(30px, 5vw, 70px); padding-bottom: clamp(70px, 9vw, 130px);
}
@media (max-width: 599px) { .contact__inner { margin-top: -118px; } }
.contact__script {
  position: relative; z-index: 2;
  padding: .1em .5em .2em;
  margin-bottom: -.42em;
  font-family: "Mrs Saint Delafield", var(--f-serif); font-size: clamp(60px, 8vw, 130px); line-height: 1;
  color: var(--accent);
  transform: rotate(-6deg);
}
.contact__title { font-size: clamp(58px, 12.6vw, 230px); font-weight: 800; line-height: .86; letter-spacing: -.065em; }
.contact__title em { font-weight: 400; letter-spacing: -.035em; padding-right: .05em; background: linear-gradient(90deg, var(--accent-2), #ffd9c2 45%, #8fc8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact__sub { max-width: 44ch; margin-top: 30px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; color: var(--muted); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 40px; }
.mailbig {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: clamp(12px, 1.4vw, 20px);
  height: clamp(62px, 6vw, 88px); padding: 0 10px 0 clamp(22px, 2.4vw, 38px);
  border-radius: 999px;
  background: var(--accent); color: #0b0b0c;
  font-size: clamp(16px, 1.85vw, 30px); font-weight: 700; letter-spacing: -.035em;
}
.mailbig__arrow {
  flex: none; width: clamp(44px, 4.6vw, 68px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: #0b0b0c; color: var(--accent); font-size: clamp(18px, 1.8vw, 26px);
  transition: transform .6s var(--ease);
}
.mailbig:hover .mailbig__arrow { transform: rotate(45deg); }

/* two links per row so the list stays short on every screen */
.contact__links {
  width: 100%; margin-top: clamp(64px, 9vw, 120px); text-align: left;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(14px, 3vw, 48px);
  border-top: 1px solid var(--line);
}
.contact__links a {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 34px; align-items: center; gap: 12px;
  padding: clamp(18px, 2vw, 28px) 10px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(24px, 2.7vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.05em;
  transition: color .45s;
}
.contact__links a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: translateY(101%); transition: transform .65s var(--ease);
}
.contact__links a:hover { color: #0b0b0c; }
.contact__links a:hover::before { transform: none; }
.contact__links .mono { color: var(--muted); transition: color .45s; }
.contact__links a:hover .mono, .contact__links a:hover .cl__val { color: rgba(11, 11, 12, .7); }
.cl__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: .08em; }
.cl__val { font-family: var(--f-mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--muted); transition: color .45s; }
.cl__arrow { justify-self: end; font-size: .7em; transition: transform .6s var(--ease); }
.contact__links a:hover .cl__arrow { transform: rotate(45deg); }
@media (max-width: 1199px) { .cl__val { display: none; } .contact__links a { grid-template-columns: 34px minmax(0, 1fr) 28px; } }
@media (max-width: 599px) {
  .contact__links { column-gap: 12px; }
  .contact__links a { grid-template-columns: 20px minmax(0, 1fr) 14px; gap: 6px; padding: 16px 2px; font-size: clamp(16px, 5vw, 22px); letter-spacing: -.04em; }
  .contact__links .mono { font-size: 10px; }
}

.footer { position: relative; z-index: 1; padding-top: 26px; border-top: 1px solid var(--line); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 28px; }
.footer__me { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.4; }
.footer__me img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.footer__time { color: var(--muted); }
.footer__top { font-weight: 600; font-size: 14px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s; }
.footer__top:hover { border-color: var(--text); }
/* phones: clock on the left and "Back to top" pinned to its right, never wrapping underneath */
@media (max-width: 699px) {
  .footer__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 12px; }
  .footer__me { grid-column: 1 / -1; }
  .footer__time { font-size: 11px; }
  .footer__top { justify-self: end; white-space: nowrap; }
}
.footer__giant {
  overflow: hidden; height: .66em;
  margin-top: clamp(20px, 3vw, 40px);
  font-weight: 800; line-height: .8; letter-spacing: -.06em; text-align: center;
  font-size: 26vw; white-space: nowrap;
}
.footer__giant > span {
  display: inline-block;
  background: linear-gradient(180deg, var(--text) 10%, rgba(244, 241, 234, .05) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__giant > span.is-split { background: none; }
.footer__giant .gch {
  display: inline-block;
  background: linear-gradient(180deg, var(--text) 10%, rgba(244, 241, 234, .05) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Project modal
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 5, 6, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; z-index: 1;
  width: min(1240px, 100%); height: min(94vh, 100%); height: min(94svh, 100%);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--bg-2); color: var(--text);
  transform: translateY(104%); transition: transform .8s var(--ease);
  outline: none;
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: sticky; top: 14px; z-index: 5;
  float: right; margin: 14px 14px -62px 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--text); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .5s var(--ease), background-color .3s;
}
.modal__close:hover { transform: rotate(90deg); background: var(--accent); }
.modal__close span, .modal__close span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.modal__close span::after { content: ""; transform: rotate(-90deg); }

.pm { padding: clamp(22px, 4vw, 56px); }
.pm__head { display: grid; gap: 18px; padding-right: 56px; }
.pm__title { font-size: clamp(48px, 8vw, 128px); font-weight: 800; line-height: .88; letter-spacing: -.06em; }
.pm__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
.pm__meta div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.pm__meta dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.pm__meta dd { font-size: 15px; line-height: 1.4; }
.pm__hero { margin-top: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); overflow: hidden; background: color-mix(in srgb, var(--tint, #333) 40%, #0b0b0c); }
.pm__hero img { width: 100%; height: auto; }
.pm__body { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .pm__body { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.pm__text p { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: rgba(244, 241, 234, .82); }
.pm__text p + p { margin-top: 16px; }
.pm__text p:first-child { font-size: clamp(21px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -.02em; color: var(--text); }
.pm__aside { display: grid; gap: 14px; }
.pm__award {
  padding: 18px 20px; border-radius: var(--r-md);
  background: linear-gradient(140deg, rgba(255, 106, 26, .2), rgba(47, 107, 255, .2));
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px; line-height: 1.45;
}
.pm__award b { display: block; font-size: 12px; font-family: var(--f-mono); text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; font-weight: 500; }
.pm__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 56px); }
.pm__gallery--wide { grid-template-columns: minmax(0, 1fr); }
.pm__gallery img { width: 100%; height: auto; border-radius: var(--r-md); background: #1f1f22; }
.pm__next {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%;
  margin-top: clamp(40px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line);
  text-align: left;
}
.pm__next span:first-child { color: var(--muted); }
.pm__next strong { font-size: clamp(28px, 4vw, 56px); font-weight: 700; letter-spacing: -.05em; line-height: 1; transition: color .3s; }
.pm__next:hover strong { color: var(--accent); }

/* ---------- Toast ---------- */

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .loader { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 28px; padding-inline: var(--gutter); }
  .work__viewport {
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  }
  .proj { scroll-snap-align: start; }
}
