/* ==========================================================================
   Yusuf Fachroni — portfolio
   ========================================================================== */
:root {
  --bg: #06070a;
  --bg-2: #0b0d12;
  --bg-3: #11141b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --fg: #eceef1;
  --fg-2: #b9bec7;
  --muted: #7d838e;
  --accent: #9bffcb;
  --accent-2: #8a8cff;
  --accent-ink: #04130b;
  /* one-colour gradient: the site's mint, from a pale highlight to a deeper tone */
  --grad: linear-gradient(105deg, #d2ffe8 0%, #9bffcb 45%, #6fe6ad 100%);
  --grad: linear-gradient(105deg in oklab, #d2ffe8 0%, #9bffcb 45%, #6fe6ad 100%);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.display {
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 500;
  margin-top: 20px;
}
.display em { color: var(--fg-2); }
.display--sm { font-size: clamp(34px, 4.6vw, 72px); }

.section { padding-block: clamp(56px, 6.5vw, 104px); position: relative; }

/* ---------- Grain + cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-1%, 3%); } 80% { transform: translate(3%, 1%); } 100% { transform: translate(0, 0); }
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 120; }
  .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: var(--accent); }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255,255,255,.35);
    display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s;
  }
  .cursor__label { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .2s; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); }
  .cursor.is-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--accent); border-color: var(--accent); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot { opacity: 0; }
}

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 150; background: var(--bg); display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
}
.loader__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.loader__label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.loader__count { font-size: clamp(80px, 18vw, 260px); line-height: .8; letter-spacing: -.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
.loader__bar { height: 1px; background: var(--line); margin-top: 24px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
html.loaded .loader { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; margin-inline: auto; z-index: 100;
  width: min(calc(100% - 24px), 1180px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(12, 14, 19, .55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform .6s var(--ease), background .3s;
}
.nav.is-hidden { transform: translateY(-140%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; font-size: 15px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); background: rgba(255,255,255,.06); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nav__status i, .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(155,255,203,.6); animation: pulse 2.2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(155,255,203,0); } 100% { box-shadow: 0 0 0 0 rgba(155,255,203,0); } }
@media (max-width: 900px) { .nav__links, .nav__status { display: none; } }

/* ---------- Buttons / links ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: var(--h); padding: 0 26px;
  border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: -.005em; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translate(2px, 2px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--accent { background: #f1f3f5; color: #0b0c10;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.08), 0 10px 30px -14px rgba(255,255,255,.35);
  transition: box-shadow .5s var(--ease); }
.btn--accent:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.08), 0 14px 38px -14px rgba(255,255,255,.5); }
.btn--accent::before { background: #fff; }
.btn--light { background: var(--fg); color: var(--bg); }
.btn--light::before { background: var(--accent); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); }

.link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fg); position: relative; padding-bottom: 4px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(.35); opacity: .5; transition: transform .6s var(--ease), opacity .3s; }
.link:hover::after { transform: scaleX(1); transform-origin: left; opacity: 1; }
.link svg, .contact__mail svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.link:hover svg { transform: translate(3px, -3px); }
.link--lg { margin-top: 48px; font-size: 17px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 12px; color: var(--fg-2); padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__gl.is-ready { opacity: 1; }
@media (max-width: 900px) { .hero__gl.is-ready { opacity: .45; } }
.hero__aurora {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(138,140,255,.18), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(155,255,203,.12), transparent 70%);
  filter: blur(40px);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__eyebrow { color: var(--fg-2); }
.hero__title {
  margin-top: 28px; font-weight: 500; letter-spacing: -.055em; line-height: .88;
  font-size: clamp(56px, 11.2vw, 196px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title em { color: var(--accent); letter-spacing: -.03em; }
.hero__lead { margin-top: 32px; max-width: 620px; font-size: clamp(17px, 1.35vw, 20px); color: var(--fg-2); line-height: 1.55; }
.hero__lead strong { color: var(--fg); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 64px; padding-bottom: 32px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 56px; border-top: 1px solid var(--line); padding-top: 20px; }
.hero__facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__facts dd { font-size: 14px; color: var(--fg-2); margin-top: 6px; }
.hero__link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.hero__link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.hero__scroll { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 54px; background: linear-gradient(var(--accent), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) {
  .hero__facts { grid-template-columns: 1fr 1fr; gap: 16px 28px; }
  .hero__scroll { display: none; }
}

.js [data-split] .ch { display: inline-block; will-change: transform; }
.js [data-split] .w { display: inline-block; white-space: nowrap; }

/* ---------- Marquee ---------- */

/* ---------- Impact ---------- */
.manifesto { font-size: clamp(28px, 3.6vw, 56px); line-height: 1.12; letter-spacing: -.03em; font-weight: 400; margin-top: 28px; max-width: 1180px; }
.js .manifesto .w { opacity: .16; transition: opacity .2s; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 9vw, 140px); border-top: 1px solid var(--line); }
.stat { padding: 36px 28px 40px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.stat:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(56px, 7vw, 112px); line-height: .9; letter-spacing: -.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat__num b { font-weight: 500; }
.stat:nth-child(2) .stat__num, .stat:nth-child(6) .stat__num { color: var(--accent); }
.stat__label { color: var(--muted); max-width: 30ch; font-size: 15px; }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat:not(:nth-child(3n+1)) { padding: 28px 16px 28px 0; border-left: 0; }
  .stat:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
}

/* ---------- Device ----------
   Android handset like the live site's demo frames. The screen keeps each recording's own aspect ratio
   (--ar = width / height of the video), so the app is never cropped by the frame. */
.device {
  --w: 300px; --ar: .4923;
  position: relative; width: var(--w); border-radius: calc(var(--w) * .13);
  padding: calc(var(--w) * .115) calc(var(--w) * .035) calc(var(--w) * .075);
  background:
    radial-gradient(circle at calc(50% + var(--w) * .16) calc(var(--w) * .057), #2f3d5c 0, #0a0d14 calc(var(--w) * .014), #15171c calc(var(--w) * .015), #15171c calc(var(--w) * .02), transparent calc(var(--w) * .021)),
    linear-gradient(160deg, #1b1d22, #07080a 40%, #121418);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), inset 0 0 0 1.5px #2b2e35, inset 0 0 0 4px #050608, 0 60px 120px -30px rgba(0,0,0,.8), 0 30px 60px -30px var(--glow, rgba(155,255,203,.25));
  transform-style: preserve-3d;
}
/* earpiece */
.device::before { content: ""; position: absolute; top: calc(var(--w) * .05); left: 50%; width: 22%; height: calc(var(--w) * .014); min-height: 3px; transform: translateX(-50%); background: #1d2026; border-radius: 9px; box-shadow: inset 0 1px 1px rgba(0,0,0,.8); z-index: 3; }
.device::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(255,255,255,.10), transparent 30%, transparent 70%, rgba(255,255,255,.04)); pointer-events: none; z-index: 4; }
.device__screen { position: relative; width: 100%; aspect-ratio: var(--ar); border-radius: calc(var(--w) * .02); overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(0,0,0,.8); }
.device__screen video, .device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device--sm { --w: 200px; }

/* ---------- Work (horizontal) ---------- */
.work { position: relative; }
/* Everything in the pinned work view scales with the viewport height, so the heading, the whole handset
   and the case copy always fit on one screen, from a short laptop window to a tall monitor. */
.work__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: clamp(76px, 12svh, 112px) clamp(16px, 4svh, 40px); }
.work__head { position: relative; }
/* faint blueprint sheet of mobile wireframes: one layer from the work section down to the footer, behind
   every section (main.js sets its top to where the work section starts) */
body { position: relative; }
#main, .footer { position: relative; z-index: 1; }
.bp-zone { position: absolute; left: 0; right: 0; top: 100vh; bottom: 0; z-index: 0; pointer-events: none; opacity: .09;
  background: url(/assets/bg/blueprint.svg) center top / max(1600px, 100vw) auto repeat-y;
  -webkit-mask-image: linear-gradient(transparent, #000 240px, #000 calc(100% - 200px), transparent), radial-gradient(80% 100% at 50% 50%, #000 40%, rgba(0,0,0,.35) 100%);
  mask-image: linear-gradient(transparent, #000 240px, #000 calc(100% - 200px), transparent), radial-gradient(80% 100% at 50% 50%, #000 40%, rgba(0,0,0,.35) 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.work__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.work__head .eyebrow { margin-bottom: clamp(8px, 1.6svh, 16px); }
.work__head .display { font-size: clamp(26px, min(3.7vw, 6.4svh), 64px); line-height: 1.05; }
.work__count { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; padding-bottom: .4em; }
.work__count b { color: var(--fg); font-weight: 400; }
.work__progress { margin-top: clamp(12px, 2.6svh, 28px); height: 1px; background: var(--line); }
.work__progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.work__rail { display: flex; gap: clamp(40px, 6vw, 120px); padding: clamp(18px, 4.2svh, 44px) var(--gutter) 0; width: max-content; will-change: transform; }
.case { --a: var(--accent); width: min(1080px, 86vw); display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.case__media { perspective: 1200px; position: relative; }
.case__media::before { content: ""; position: absolute; inset: 10% -20%; background: radial-gradient(closest-side, var(--a), transparent); opacity: .16; filter: blur(30px); z-index: -1; }
/* handset height ≈ 2.2 × its width: give it whatever height is left under the heading */
.case .device { --w: clamp(130px, min(20vw, calc((70svh - 60px) / 2.25)), 290px); }
.case__meta { display: flex; gap: 18px; font-family: var(--mono); font-size: clamp(10.5px, 1.6svh, 12px); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case__meta span:first-child { color: var(--a); }
.case__title { font-size: clamp(32px, min(4.6vw, 8.4svh), 80px); letter-spacing: -.05em; line-height: .95; font-weight: 500; margin-top: clamp(8px, 1.8svh, 16px); }
.case__role { font-family: var(--serif); font-style: italic; font-size: clamp(16px, min(1.7vw, 3.3svh), 24px); color: var(--fg-2); margin-top: clamp(4px, 1svh, 8px); }
.case__text { color: var(--fg-2); margin-top: clamp(10px, 2.2svh, 20px); max-width: 60ch; font-size: clamp(13.5px, min(1.15vw, 2.5svh), 16px); line-height: 1.6; }
.case__kpis { display: flex; flex-wrap: wrap; gap: 0; margin: clamp(12px, 2.8svh, 26px) 0; border-block: 1px solid var(--line); }
.case__kpis li { padding: clamp(8px, 1.7svh, 14px) 20px clamp(8px, 1.7svh, 14px) 0; margin-right: 20px; color: var(--muted); font-size: clamp(12px, 1.9svh, 14px); border-right: 1px solid var(--line); }
.case__kpis li:last-child { border-right: 0; }
.case__kpis b { color: var(--fg); font-weight: 600; font-size: clamp(14px, 2.4svh, 18px); letter-spacing: -.02em; margin-right: 4px; }
.case .tags { margin-bottom: clamp(10px, 2.4svh, 24px); }
.case .tags li { font-size: clamp(11px, 1.7svh, 12px); padding: clamp(4px, .8svh, 6px) 10px; }
@media (max-width: 900px) {
  .work__pin { padding-block: 100px 40px; }
  .work__rail { flex-direction: column; width: 100%; gap: 96px; }
  .case { width: 100%; grid-template-columns: 1fr; }
  .case__media { display: flex; justify-content: center; }
  .work__progress { display: none; }
  .work__count { display: none; }
  .case .device { --w: min(230px, 60vw); }
}


/* ---------- Capabilities bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 32px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; min-height: 280px; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(155,255,203,.10), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(155,255,203,.55), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { font-size: 24px; letter-spacing: -.03em; font-weight: 500; line-height: 1.15; margin-top: auto; }
.card p { color: var(--fg-2); font-size: 15px; }
.card__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(155,255,203,.08); border: 1px solid rgba(155,255,203,.18); }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card--xl { grid-column: span 2; grid-row: span 2; }
.card--xl h3 { font-size: clamp(28px, 2.6vw, 40px); margin-top: 12px; }
.card--wide { grid-column: span 2; }
.card__code { margin-top: auto; border-radius: 14px; background: #07080b; border: 1px solid var(--line); padding: 18px 20px; overflow-x: auto; }
.card__code pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--fg-2); }
.card__code .k { color: #ff9bd2; } .card__code .t { color: var(--accent); } .card__code .s { color: #ffd27a; } .card__code .c { color: var(--muted); }
@media (max-width: 1100px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .bento { grid-template-columns: 1fr; } .card--xl, .card--wide { grid-column: auto; grid-row: auto; } .card { min-height: 0; } }

/* ---------- Experience ---------- */
.exp__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 8vw, 140px); }
.exp__aside { position: sticky; top: 120px; align-self: start; display: grid; gap: 24px; justify-items: start; }
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--accent), var(--accent-2)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.tl { position: relative; padding-bottom: 56px; }
.tl::before { content: ""; position: absolute; left: -36px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); z-index: 1; transition: background .4s, border-color .4s, box-shadow .4s; }
.tl.is-on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px rgba(155,255,203,.6); }
.tl time { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; font-weight: 500; margin-top: 10px; line-height: 1.15; }
.tl__org { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); margin-top: 4px; }
.tl p:last-child { color: var(--fg-2); margin-top: 12px; max-width: 60ch; }
@media (max-width: 900px) { .exp__grid { grid-template-columns: 1fr; } .exp__aside { position: static; } }

/* ---------- Recognition ---------- */
.awards { margin-top: 64px; border-top: 1px solid var(--line); }
.awards li { display: grid; grid-template-columns: 120px 1.4fr 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.awards__y { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.awards__t { font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -.02em; }
.awards__t b { color: var(--accent); font-weight: 600; }
.awards__o { color: var(--muted); font-size: 14px; text-align: right; }
@media (max-width: 800px) { .awards li { grid-template-columns: 70px 1fr; } .awards__o { grid-column: 2; text-align: left; } }

/* ---------- Writing ---------- */
.writing__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(64px, 7vw, 120px) clamp(48px, 5.5vw, 88px); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; top: 40%; width: 90vw; height: 60vw; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(155,255,203,.12), transparent 70%); pointer-events: none; }
.contact__title { font-size: clamp(52px, 9.6vw, 168px); letter-spacing: -.055em; line-height: .9; font-weight: 500; margin-top: 28px; position: relative; }
.contact__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.contact__title em { color: var(--accent); }
.contact__lead { color: var(--fg-2); max-width: 640px; margin-top: 36px; font-size: clamp(17px, 1.3vw, 19px); position: relative; }
.contact__mail {
  position: relative; display: inline-flex; align-items: center; gap: 14px; margin-top: 48px;
  font-size: clamp(24px, 3.4vw, 52px); letter-spacing: -.035em; font-weight: 500; padding: 18px 34px; border-radius: 999px; border: 1px solid var(--line-2);
  transition: background .4s var(--ease), color .4s, border-color .4s;
}
.contact__mail svg { width: .8em; height: .8em; }
.contact__mail:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; position: relative; }
.socials a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--fg-2); transition: color .3s, border-color .3s, background .3s; }
.socials a:hover { color: var(--fg); border-color: var(--line-2); background: rgba(255,255,255,.04); }
.socials--hero { margin-top: 22px; gap: 8px; }
.socials--hero a { padding: 7px 13px 7px 11px; font-size: 13px; gap: 7px; background: rgba(255,255,255,.015); }
.socials--hero svg { width: 14px !important; height: 14px !important; }
.socials svg { width: 16px; height: 16px; flex: none; opacity: .75; transition: opacity .3s, color .3s, transform .4s var(--ease); }
.socials a:hover svg { opacity: 1; color: var(--accent); transform: translateY(-1px); }
@media (max-width: 600px) { .contact__mail { font-size: 19px; padding: 16px 22px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.footer__row a:hover { color: var(--accent); }

/* ---------- Reveal initial states (only when JS + motion are available) ---------- */
.js:not(.reduce) [data-reveal] { opacity: 0; transform: translateY(40px); }
.js:not(.reduce) [data-hero-fade] { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}

/* ---------- Hero stage: blueprint → code → face → step out ---------- */
.hero__copy { min-width: 0; }
.hero__stage { position: relative; width: max(250px, min(30vw, calc((100svh - 300px) / 1.5), 440px)); pointer-events: none; }
.stage { --bp: rgba(138,140,255,.85); position: relative; width: 100%; aspect-ratio: 400 / 600; container-type: inline-size; }
.stage__grid {
  position: absolute; inset: -8% -12%; z-index: 0;
  background-image: linear-gradient(rgba(138,140,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(138,140,255,.10) 1px, transparent 1px),
    linear-gradient(rgba(138,140,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(138,140,255,.05) 1px, transparent 1px);
  background-size: 10cqw 10cqw, 10cqw 10cqw, 2.5cqw 2.5cqw, 2.5cqw 2.5cqw;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent);
  opacity: .5;
}
.bp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; opacity: .32; }
.bp__draw > * { stroke: var(--bp); stroke-width: .8; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bp__ext { stroke-dasharray: .02 .015 !important; opacity: .7; }
.bp__txt text { fill: rgba(185,190,255,.9); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }

.phone {
  position: absolute; left: 25%; top: 26.667%; width: 50%; height: 70%; z-index: 2; border-radius: 7.5cqw;
}
.phone__skin {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(150deg, #23262e, #0d0f13 45%, #16181e);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 .6cqw #050608, 0 4cqw 10cqw rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.6);
}
.phone__screen {
  position: absolute; inset: 1.905% 4%; border-radius: 5.75cqw; overflow: hidden;
}
.scr--bg { background: radial-gradient(120% 70% at 50% 0%, #10141c, #07080b 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); border-radius: inherit; }
.phone__island { position: absolute; left: 35%; top: 4.29%; width: 30%; height: 3.81%; border-radius: 99px; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.scr { position: absolute; inset: 0; }

.scr--code { padding: 11cqw 3cqw 0; font-family: var(--mono); font-size: 1.9cqw; line-height: 1.6; color: #c8cdd6; opacity: 0; }
.ln { position: relative; display: block; height: 1.6em; white-space: pre; }
.ln__sk { position: absolute; top: .32em; height: .95em; left: calc(var(--i) * 1ch); width: calc(var(--w) * 1ch); border: 1px dashed var(--bp); border-radius: 2px; background: rgba(138,140,255,.08); transform-origin: left; }
.ln__t { position: relative; display: inline-block; overflow: hidden; vertical-align: top; white-space: pre; }
.ln.is-typing .ln__t { box-shadow: inset -.14em 0 0 var(--accent); }
.ln .k { color: #c792ea; } .ln .s { color: var(--accent); } .ln .t { color: #82aaff; } .ln .f { color: #ffcb6b; } .ln .n { color: #f78c6c; } .ln .a { color: #89ddff; } .ln .p { color: #c8cdd6; }

.scr--term { top: auto; padding: 3cqw 3.5cqw 4.5cqw; font-family: var(--mono); font-size: 1.8cqw; color: var(--fg-2); background: linear-gradient(transparent, rgba(0,0,0,.6) 30%); opacity: 0; }
.scr--term b { color: var(--accent); font-weight: 400; }
.scr__bar { height: .6cqw; margin: 1.6cqw 0; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.scr__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: left; }
.scr__ok { color: var(--accent); }
/* mirror moment: when the cartoon steps out, the screen turns into glass for a beat */
.scr__mirror { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; opacity: 0; mix-blend-mode: screen; }
.scr__tint { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(210,228,255,.34), rgba(160,190,230,.08) 45%, rgba(220,240,255,.28)); }
.scr__sheen { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 55%; transform: skewX(-18deg) translateX(0);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18) 30%, rgba(255,255,255,.85) 50%, rgba(200,255,230,.25) 62%, transparent); filter: blur(.4cqw); }
.scr__ripple { position: absolute; left: 50%; top: 42%; width: 30cqw; aspect-ratio: 1; margin: -15cqw 0 0 -15cqw; border-radius: 50%;
  border: .5cqw solid rgba(235,245,255,.7); box-shadow: 0 0 3cqw rgba(200,230,255,.5), inset 0 0 3cqw rgba(200,230,255,.35); transform: scale(0); opacity: 0; }
.scr__flash { position: absolute; inset: 0; background: #fff; opacity: 0; mix-blend-mode: overlay; pointer-events: none; }

.app__glow { position: absolute; left: -20%; right: -20%; top: -10%; height: 70%; background: radial-gradient(closest-side at 50% 45%, rgba(155,255,203,.55), rgba(138,140,255,.25) 55%, transparent); filter: blur(2cqw); }
.app__photo { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1 / 1.08; overflow: hidden; opacity: 0; }
.app__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; -webkit-mask-image: linear-gradient(#000 50%, rgba(0,0,0,.5) 78%, transparent); mask-image: linear-gradient(#000 50%, rgba(0,0,0,.5) 78%, transparent); }
.app__photo::before { content: ""; position: absolute; inset: 0 0 auto; height: 28%; z-index: 1; background: linear-gradient(rgba(5,6,9,.6), transparent); }
.app__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; background: var(--accent); box-shadow: 0 0 3cqw 1cqw rgba(155,255,203,.6); opacity: 0; }
.app__shade { position: absolute; left: 0; right: 0; top: 30%; bottom: 0; pointer-events: none;
  background: radial-gradient(90% 50% at 50% 28%, rgba(155,255,203,.07), transparent 70%), linear-gradient(transparent, rgba(7,8,11,.6) 20%, #07080b 55%); }
/* status bar + app bar over the cover photo */
.app__top { position: absolute; inset: 0 0 auto; padding: 2.1cqw 4.2cqw 0; color: #fff; }
.app__status { display: flex; justify-content: space-between; align-items: center; height: 4cqw; font-size: 1.7cqw; }
.app__status b { font-weight: 600; letter-spacing: .02em; }
.app__status span { display: flex; gap: .8cqw; align-items: center; }
.app__status .sig { width: 2.4cqw; height: 1.3cqw; background: linear-gradient(90deg, #fff 0 20%, transparent 20% 27%, #fff 27% 47%, transparent 47% 54%, #fff 54% 74%, transparent 74% 81%, rgba(255,255,255,.4) 81%); -webkit-mask: linear-gradient(to top right, #000 50%, transparent 50%); mask: linear-gradient(to top right, #000 50%, transparent 50%); }
.app__status .bat { position: relative; width: 3cqw; height: 1.4cqw; border: 1px solid rgba(255,255,255,.7); border-radius: .4cqw; }
.app__status .bat::after { content: ""; position: absolute; inset: .2cqw; right: .7cqw; border-radius: .15cqw; background: #fff; }
.app__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 2.2cqw; }
.app__handle { font-family: var(--mono); font-size: 1.5cqw; letter-spacing: .04em; padding: .7cqw 1.6cqw; border-radius: 99px; background: rgba(10,12,16,.35); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(1.5cqw); backdrop-filter: blur(1.5cqw); }
.app__ib { display: grid; place-items: center; width: 5.4cqw; height: 5.4cqw; border-radius: 50%; background: rgba(10,12,16,.35); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(1.5cqw); backdrop-filter: blur(1.5cqw); flex: none; }
.app__ib svg { width: 52%; height: 52%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app__ib svg circle { fill: #fff; stroke: none; }
/* profile body */
.app__meta { position: absolute; left: 0; right: 0; top: 47%; bottom: 5.5%; padding: 0 4cqw; display: flex; flex-direction: column; justify-content: center; gap: 2.6cqw; }
.app__name { display: flex; align-items: center; gap: 1cqw; font-size: 4.4cqw; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: var(--fg); }
.app__badge { width: 3.2cqw; height: 3.2cqw; flex: none; fill: var(--accent); }
.app__badge .tick { fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app__role { margin-top: .9cqw; font-family: var(--mono); font-size: 1.65cqw; letter-spacing: .04em; color: var(--fg-2); opacity: .8; }
.app__loc { display: flex; align-items: center; gap: .9cqw; margin-top: 1cqw; font-size: 1.6cqw; color: var(--muted); }
.app__loc i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .5cqw rgba(155,255,203,.18); }
.app__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 2cqw 0; border-radius: 3.4cqw;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 65%);
  border: 1px solid rgba(255,255,255,.11); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2cqw 5cqw rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(2.4cqw) saturate(140%); backdrop-filter: blur(2.4cqw) saturate(140%);
}
.app__stats div { text-align: center; }
.app__stats div + div { border-left: 1px solid rgba(255,255,255,.09); }
.app__stats b { display: block; font-size: 3.1cqw; font-weight: 500; letter-spacing: -.02em; color: var(--fg); }
.app__stats span { display: block; margin-top: .3cqw; font-family: var(--mono); font-size: 1.3cqw; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.app__chips { display: flex; flex-wrap: wrap; gap: .8cqw; }
.app__chips span { font-family: var(--mono); font-size: 1.5cqw; padding: .6cqw 1.5cqw; white-space: nowrap; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; color: var(--fg-2); background: rgba(255,255,255,.04); }
.app__actions { display: flex; gap: 1.2cqw; align-items: center; }
.app__btn { flex: 1; display: block; padding: 2cqw 0; text-align: center; border-radius: 99px; background: #f1f3f5; color: #0b0c10; font-size: 2.1cqw; font-weight: 500; box-shadow: 0 1.5cqw 4cqw rgba(155,255,203,.18); }
.app__ib--msg { width: 6.6cqw; height: 6.6cqw; background: rgba(255,255,255,.06); }
.app__home { position: absolute; left: 50%; bottom: 1.6%; width: 32%; height: .7cqw; margin-left: -16%; border-radius: 99px; background: rgba(255,255,255,.55); }

/* Cartoon me: steps out of the screen, walks, leans on the phone */
.toon-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.toon { position: absolute; left: 85.3%; bottom: 3%; height: 50%; aspect-ratio: 242 / 800; transform: translateX(-50%); }
.toon::before { content: ""; position: absolute; left: -35%; right: -35%; bottom: -2.2%; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
.toon__body { position: absolute; inset: 0; transform-origin: 50% 100%; }
.toon__img { position: absolute; bottom: 0; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); opacity: 0; filter: drop-shadow(0 1.5cqw 2cqw rgba(0,0,0,.35)); }
.toon[data-pose="stand"] .toon__img--stand, .toon[data-pose="lean"] .toon__img--lean, .toon[data-pose="walk"] .toon__rig { opacity: 1; }
.toon__rig { height: 100%; width: auto; aspect-ratio: 564 / 1140; }

.stage__hud { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stage__step { color: var(--accent); }
.stage__label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage__replay { pointer-events: auto; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--fg-2); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255,255,255,.02); cursor: pointer; transition: color .3s, border-color .3s; }
.stage__replay:hover { color: var(--accent); border-color: var(--accent); }
.reduce .stage__replay { display: none; }
.js:not(.reduce) .hero__stage { opacity: 0; }

/* Final (static) state when there is no motion: photo card hidden, portrait already out */
.scr--app .app__photo { opacity: 1; }
.reduce .bp { opacity: .12; }

@media (min-width: 1000px) {
  .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: clamp(32px, 4vw, 72px); }
  .hero__stage { grid-column: 2; grid-row: 1; }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hero__title { font-size: clamp(56px, 6.4vw, 124px); }
}
@media (max-width: 999px) {
  .hero__stage { width: min(58vw, 270px); margin: 0 auto 28px; }
  .stage__hud { font-size: 10px; gap: 8px; }
}

/* ---------- Archive: list + sticky device ---------- */
.archive__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; }
.archive__lead, .mentioned__lead { max-width: 440px; color: var(--fg-2); font-size: 16px; line-height: 1.6; }
.archive__lead strong { color: var(--fg); font-weight: 500; }
.arch2 { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); gap: clamp(32px, 5vw, 88px); align-items: start; }
.arch2__list { border-top: 1px solid var(--line); }
.arch2__item { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 16px; padding: 30px 0; border-bottom: 1px solid var(--line); cursor: default; }
.arch2__item::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--accent); transition: width .8s var(--ease); }
.arch2__item.is-active::before { width: 100%; }
.arch2__n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 4px; transition: color .4s; }
.arch2__cat { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.arch2__t { margin-top: 10px; font-size: clamp(24px, 2.3vw, 36px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; color: var(--fg-2); transition: color .4s, transform .6s var(--ease); }
.arch2__d { margin-top: 12px; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.6; transition: color .4s; }
.arch2__s { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.arch2__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--fg-2); transition: color .3s; }
.arch2__cta:hover { color: var(--accent); }
.arch2__cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.arch2__cta:hover svg { transform: translate(3px, -3px); }
.arch2__item.is-active .arch2__n { color: var(--accent); }
.arch2__item.is-active .arch2__t { color: var(--fg); transform: translateX(6px); }
.arch2__item.is-active .arch2__d { color: var(--fg-2); }
.arch2__thumb { display: none; }

.arch2__stage { position: sticky; top: max(96px, calc(50vh - 340px)); }
.arch2__panel { position: relative; height: min(680px, calc(100vh - 140px)); min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 55%, rgba(138,140,255,.18), transparent 70%), radial-gradient(40% 40% at 50% 90%, rgba(155,255,203,.10), transparent 70%), linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.arch2__panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); pointer-events: none; }
/* Android handset (same family as the live site's demo frames): the screen takes each recording's own
   aspect ratio, so nothing is cropped; the bezel, speaker, camera and side keys are drawn around it. */
.arch2__device {
  --ar: .4923; --sh: calc(max(410px, min(680px, 100vh - 140px)) - 110px - 52px);
  position: relative; padding: 32px 10px 20px; border-radius: 36px;
  background: linear-gradient(160deg, #1a1c21, #07080a 40%, #111317);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), inset 0 0 0 1.5px #2b2e35, inset 0 0 0 4px #050608, inset 0 1px 0 4px rgba(255,255,255,.05), 0 30px 60px rgba(0,0,0,.55), 0 0 80px rgba(138,140,255,.08);
}
.arch2__device::before, .arch2__device::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #2a2d33, #121418); }
.arch2__device::before { top: 22%; height: 11%; }
.arch2__device::after { top: 37%; height: 6%; }
.arch2__screen { position: relative; height: var(--sh); width: calc(var(--sh) * var(--ar)); border-radius: 6px; overflow: hidden; background: #000; transition: width .5s var(--ease); box-shadow: 0 0 0 1px rgba(0,0,0,.8); }
.arch2__speaker { position: absolute; left: 50%; top: 14px; width: 22%; height: 4px; transform: translateX(-50%); border-radius: 9px; background: #1d2026; box-shadow: inset 0 1px 1px rgba(0,0,0,.8); }
.arch2__cam { position: absolute; left: calc(50% + 15%); top: 11px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a6a, #0a0d14 60%); box-shadow: 0 0 0 1.5px #15171c; }
.arch2__poster, .arch2__video, .arch2__wide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .45s ease; }
.arch2__video { opacity: 0; }
.arch2__video.is-on { opacity: 1; }
.arch2__wide { opacity: 0; object-position: center; }
.arch2__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px rgba(155,255,203,.15); opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s var(--ease); }
.arch2__play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.arch2__screen.is-wide .arch2__wide { opacity: 1; }
.arch2__screen.is-wide .arch2__play { opacity: 1; transform: none; }
.arch2__screen.is-wide .arch2__poster, .arch2__screen.is-wide .arch2__video { opacity: 0; }
.arch2__screen.is-swap .arch2__poster, .arch2__screen.is-swap .arch2__video { opacity: 0; }
.arch2__caption { position: relative; display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.arch2__caption span { color: var(--accent); }
.arch2__caption i { font-style: normal; }
.arch2__caption b { font-weight: 400; color: var(--fg); }

@media (max-width: 900px) {
  .arch2 { grid-template-columns: 1fr; }
  .arch2__stage { display: none; }
  .arch2__item { grid-template-columns: minmax(0, 1fr) 84px; gap: 0 20px; }
  .arch2__n { display: none; }
  .arch2__thumb { display: block; width: 84px; height: auto; border-radius: 14px; border: 4px solid #0a0b0f; box-shadow: 0 0 0 1px rgba(255,255,255,.12); align-self: start; }
  .arch2__t { color: var(--fg); font-size: 22px; }
  .arch2__d { color: var(--fg-2); font-size: 14px; }
  .arch2__item.is-active .arch2__t { transform: none; }
}

/* ---------- Mentioned: press ---------- */
.mentioned__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; }
.press__feat { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.press__card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 300px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--bg-3), var(--bg-2) 60%); overflow: hidden; transition: border-color .4s, transform .6s var(--ease); }
.press__card::before { content: "”"; position: absolute; right: 18px; top: -34px; font-family: var(--serif); font-size: 220px; line-height: 1; color: rgba(255,255,255,.035); transition: color .4s; }
.press__card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.press__card:hover::before { color: rgba(155,255,203,.08); }
.press__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.press__head { margin-top: 18px; color: var(--fg-2); font-size: 16px; line-height: 1.5; }
.press__read { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; font-size: 14px; color: var(--fg); transition: color .3s; }
.press__card:hover .press__read { color: var(--accent); }
.press__read svg, .press__list svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.press__card:hover .press__read svg, .press__list a:hover svg { transform: translate(3px, -3px); }
.press__list { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.press__list a { display: grid; grid-template-columns: 150px 1fr 16px; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); transition: color .3s, padding .5s var(--ease); }
.press__list a:hover { color: var(--accent); padding-left: 8px; }
.press__o { font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--fg); transition: color .3s; }
.press__list a:hover .press__o { color: var(--accent); }
.press__h { font-size: 14.5px; line-height: 1.45; }
@media (max-width: 1000px) { .press__feat { grid-template-columns: 1fr; } .press__card { min-height: 0; } .press__list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .press__list a { grid-template-columns: 1fr 16px; gap: 6px 12px; } .press__h { grid-column: 1; } .press__list svg { grid-row: 1; grid-column: 2; } }

/* press logos sit on light chips so every brand's own colours stay legible */
.press__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.press__logo, .press__lg { display: grid; place-items: center; background: #eceef1; border-radius: 14px; flex: none; }
.press__logo { width: 168px; height: 72px; padding: 14px 18px; }
.press__logo img { max-width: 100%; max-height: 34px; width: auto; height: auto; object-fit: contain; }
.press__logo--text { font-family: var(--serif); font-size: 34px; line-height: 1; color: #0b0d12; letter-spacing: -.01em; }
.press__lg { width: 132px; height: 52px; padding: 10px 14px; transition: transform .5s var(--ease); }
.press__lg img { max-width: 100%; max-height: 26px; width: auto; height: auto; object-fit: contain; }
.press__logo[data-logo="jabar-ekspres"] img, .press__lg[data-logo="jabar-ekspres"] img, .press__lg[data-logo="grid"] img { max-height: 40px; }
.press__card .press__head { margin-top: 28px; font-size: clamp(18px, 1.5vw, 22px); color: var(--fg); letter-spacing: -.015em; }
.press__list a { grid-template-columns: 132px minmax(0, 1fr) 16px; align-items: center; }
.press__list a:hover .press__lg { transform: scale(1.04); }
.press__list .press__o { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .press__list a { grid-template-columns: 104px minmax(0, 1fr) 16px; gap: 14px; } .press__lg { width: 104px; height: 44px; } .press__h { grid-column: auto; } .press__list svg { grid-row: auto; grid-column: auto; } .press__logo { width: 140px; height: 60px; } }

/* ---------- Writing: posts with thumbnails ---------- */
.posts { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.post a { display: flex; flex-direction: column; height: 100%; }
.post__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .4s; filter: saturate(.9); }
.post a:hover .post__img img { transform: scale(1.045); filter: none; }
.post__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post__meta em { font-family: var(--mono); font-style: normal; letter-spacing: .1em; color: var(--muted); }
.post__t { margin-top: 10px; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--fg); transition: color .3s; }
.post a:hover .post__t { color: var(--accent); }
.post__go { display: none; }
.post--feat { grid-column: 1 / -1; }
.post--feat a { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0 48px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.post--feat .post__img { grid-row: 1 / span 3; border-radius: 22px; }
.post--feat .post__meta { margin-top: 0; align-self: end; justify-content: flex-start; gap: 20px; }
.post--feat .post__t { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -.03em; }
.post--feat .post__go { display: inline-flex; align-items: center; gap: 8px; align-self: start; margin-top: 24px; font-size: 14px; color: var(--fg-2); }
.post--feat .post__go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.post--feat a:hover .post__go { color: var(--accent); }
.post--feat a:hover .post__go svg { transform: translate(3px, -3px); }
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post--feat a { grid-template-columns: 1fr; } .post--feat .post__img { grid-row: auto; } .post--feat .post__meta { margin-top: 20px; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; gap: 32px; } .post__t { font-size: 18px; } }

/* ---------- Achievement deck (rebuilt from the Canva deck) ---------- */
.deck__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; }
.deck__lead { max-width: 440px; color: var(--fg-2); font-size: 16px; line-height: 1.6; }
.deck__frame { container: deck / inline-size; position: relative; margin-top: 36px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; outline: none;
  background: radial-gradient(50% 60% at 85% 20%, rgba(138,140,255,.14), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgba(155,255,203,.08), transparent 70%), linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.deck__frame:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.deck__frame::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 3.2cqw 3.2cqw; -webkit-mask-image: linear-gradient(115deg, #000, transparent 70%); mask-image: linear-gradient(115deg, #000, transparent 70%); }
.deck__viewport { position: relative; aspect-ratio: 16 / 9; font-size: 1.12cqw; }
.sl { position: absolute; inset: 0; padding: 4.6em 5.8em; opacity: 0; visibility: hidden; transform: translateX(2.5%); transition: opacity .55s ease, transform .9s var(--ease), visibility 0s linear .9s; }
.sl.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sl.is-before { transform: translateX(-2.5%); }
.sl em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--fg-2); }
.sl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5em; align-items: center; height: 100%; }
.sl__grid--cover { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.sl__stack { display: flex; flex-direction: column; justify-content: center; gap: 2.6em; height: 100%; }
.sl__eyebrow { font-family: var(--mono); font-size: .9em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sl__eyebrow span { color: var(--accent); margin-right: 1em; }
.sl__title { margin-top: .55em; font-size: 3.5em; font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.sl__name { margin-top: .35em; font-size: 7em; font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.sl__role { margin-top: 1.4em; font-family: var(--mono); font-size: 1.05em; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.sl__chips { display: flex; flex-wrap: wrap; gap: .6em; margin-top: 2.2em; }
.sl__chips span { font-family: var(--mono); font-size: .95em; padding: .55em 1.1em; border: 1px solid var(--line-2); border-radius: 99px; color: var(--fg-2); }
.sl__portrait { position: relative; justify-self: center; width: 78%; aspect-ratio: 4 / 5; border-radius: 2em; }
.sl__portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 0 0 1px var(--line-2), 0 3em 6em rgba(0,0,0,.45); }
.sl__portrait::before { content: ""; position: absolute; inset: -12%; z-index: -1; background: radial-gradient(closest-side, rgba(155,255,203,.22), rgba(138,140,255,.12) 55%, transparent); filter: blur(1em); }
.tick { position: absolute; width: 2.2em; height: 2.2em; border: 1px solid var(--accent); opacity: .7; }
.tick--tl { left: -1.1em; top: -1.1em; border-right: 0; border-bottom: 0; }
.tick--br { right: -1.1em; bottom: -1.1em; border-left: 0; border-top: 0; }
.sl__list { display: grid; gap: 1.05em; margin-top: 2.2em; }
.sl__list li { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); gap: .9em; font-size: 1.32em; line-height: 1.5; color: var(--fg-2); }
.sl__list b, .sl__two b { color: var(--fg); font-weight: 500; }
.sl svg { width: 1.3em; height: 1.3em; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: .12em; }
.sl__stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6em; }
.sl__stats div { padding-top: 1.2em; border-top: 1px solid var(--line-2); }
.sl__stats b { display: block; font-size: 4em; font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--fg); }
.sl__stats div:first-child b { color: var(--accent); }
.sl__stats span { display: block; margin-top: .8em; font-size: 1.15em; line-height: 1.45; color: var(--fg-2); }
.sl__two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4em; }
.sl__two p { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); gap: .9em; font-size: 1.28em; line-height: 1.5; color: var(--fg-2); }
.sl__kpi { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: .4em 1em; margin-top: 2em; padding: 1.2em 0; border-block: 1px solid var(--line); }
.sl__kpi b { font-size: 2.6em; font-weight: 500; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.sl__kpi span { font-family: var(--mono); font-size: .88em; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sl__mosaic { display: grid; gap: 1em; align-self: center; }
.sl__mosaic--4 { grid-template-columns: 1fr 1fr; }
.sl__mosaic--3 { grid-template-columns: 1fr 1fr; }
.sl__mosaic--3 .sl__ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.sl__mosaic--2 { grid-template-columns: .55fr 1fr; align-items: center; }
.sl__mosaic--1 .sl__ph { aspect-ratio: 4 / 3; }
.sl__ph { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 1.2em; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); background: var(--bg-3); }
.sl__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sl.is-active .sl__ph img { transform: scale(1.03); }
.sl__ph--phone { aspect-ratio: 9 / 18; border-radius: 1.6em; box-shadow: 0 0 0 .4em #0a0b0f, 0 0 0 calc(.4em + 1px) rgba(255,255,255,.14); }
.sl__ph--phone img { object-position: top; }
.tl { position: relative; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 2.4em; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 1.1em; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(138,140,255,.6), transparent); }
.tl__node { position: relative; }
.tl__dot { position: relative; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg-2); font-family: var(--mono); font-size: 1em; color: var(--accent); }
.tl__year { margin-top: 1.1em; font-size: 1.5em; font-weight: 500; letter-spacing: -.03em; }
.tl__text { margin-top: .6em; font-size: 1.12em; line-height: 1.5; color: var(--fg-2); }
.tl__shots { display: flex; gap: .6em; margin-top: 1.4em; }
.tl__shots img { height: 11em; width: auto; max-width: 100%; object-fit: cover; object-position: top; border-radius: .8em; box-shadow: 0 0 0 1px var(--line-2); }
.sl__end { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.sl__end .sl__name { font-size: 6.4em; }
.sl__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 3em; }
.sl__cta .btn svg { stroke: currentColor; margin: 0; width: 18px; height: 18px; }

.deck__bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 28px; border-top: 1px solid var(--line); background: rgba(6,7,10,.35); }
.deck__count { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.deck__count b { font-weight: 400; color: var(--fg); }
.deck__progress { flex: 1; height: 1px; background: var(--line-2); overflow: hidden; }
.deck__progress i { display: block; height: 100%; width: 10%; background: var(--accent); transition: width .8s var(--ease); }
.deck__nav { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11,13,18,.6); color: var(--fg); cursor: pointer; transition: border-color .3s, color .3s, background .3s; }
.deck__nav:hover { border-color: var(--accent); color: var(--accent); }
.deck__nav:disabled { opacity: .35; cursor: default; border-color: var(--line-2); color: var(--fg); }
.deck__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.deck__dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.deck__dot { display: grid; gap: 6px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line-2); background: none; color: var(--muted); text-align: left; cursor: pointer; font: inherit; transition: color .3s, border-color .3s; }
.deck__dot span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.deck__dot em { font-family: var(--sans); letter-spacing: 0; font-style: normal; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck__dot:hover { color: var(--fg-2); }
.deck__dot.is-active { color: var(--fg); border-top-color: var(--accent); }
.deck__dot.is-active span { color: var(--accent); }
@media (max-width: 900px) { .deck__dot em { display: none; } }


/* Larger screens: the deck block fits one viewport so it can be flipped by scrolling over it */
.deck-pinned .deck__head { align-items: flex-end; }
.deck-pinned .deck__head .display--sm { font-size: clamp(30px, 3.4vw, 54px); }
.deck-pinned .deck__frame { margin: 24px auto 0; max-width: min(100%, calc((100svh - 370px) * 16 / 9)); }
.deck-pinned .deck__dots { max-width: min(100%, calc((100svh - 370px) * 16 / 9)); margin-inline: auto; }

/* Photos sit exactly where they are in the Canva deck (percent of the 16:9 page) */
.sl__photos { position: absolute; inset: 0; pointer-events: none; }
.sl__photos .sl__ph { position: absolute; margin: 0; aspect-ratio: auto; border-radius: .45em; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 1.2em 2.4em rgba(0,0,0,.35); background: var(--bg-3); }
.sl__photos .sl__ph img { width: 100%; height: 100%; object-fit: cover; }
.sl__photos .sl__ph--cut { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.sl__photos .sl__ph--cut img { object-fit: contain; filter: drop-shadow(0 1em 1.6em rgba(0,0,0,.45)); }
.sl__photos .sl__ph--circle { border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 .9em rgba(155,255,203,.06), 0 2em 4em rgba(0,0,0,.45); }
.sl__copy { position: absolute; left: 6.5%; top: 0; bottom: 0; display: flex; flex-direction: column; }
.sl__copy--mid { justify-content: center; }
.sl__copy--top { top: 6.5%; right: 6.5%; bottom: auto; }
.sl__copy--w42 { width: 34%; } .sl__copy--w45 { width: 37%; } .sl__copy--w46 { width: 38%; }
.sl__copy--w52 { width: 44%; } .sl__copy--w55 { width: 47%; }
.sl__copy--top .sl__title { font-size: 2.7em; }
.sl__copy--top .tl { margin-top: 2em; gap: 2em; }
.sl__copy--top .tl__year { font-size: 1.3em; margin-top: .8em; }
.sl__copy--top .tl__text { font-size: 1.04em; }
.sl__copy .sl__list { gap: .8em; margin-top: 1.8em; }
.sl__copy .sl__list li { font-size: 1.24em; }

/* accent phrase: solid signature mint */
.grad, .grad .ch { color: var(--accent); }

/* YouTube projects: no handset, a landscape video card instead */
.arch2__device { transition: opacity .45s ease, transform .6s var(--ease); }
.arch2__panel.is-yt .arch2__device { opacity: 0; transform: scale(.94); pointer-events: none; }
.arch2__yt { position: absolute; left: 50%; top: calc(50% - 22px); width: min(88%, 560px); aspect-ratio: 16 / 9; translate: -50% -50%; border-radius: 18px; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 70px rgba(0,0,0,.6), 0 0 90px rgba(138,140,255,.18);
  opacity: 0; transform: scale(.96) translateY(10px); pointer-events: none; transition: opacity .45s ease, transform .6s var(--ease); }
.arch2__panel.is-yt .arch2__yt { opacity: 1; transform: none; pointer-events: auto; }
.arch2__yt::before { content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; padding: 1px; background: var(--grad); opacity: .55;
  -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); pointer-events: none; }
.arch2__yt::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,8,11,.35), transparent 30%, transparent 45%, rgba(7,8,11,.88)); }
.arch2__yt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arch2__yt:hover .arch2__yt-img { transform: scale(1.04); }
.arch2__yt-chip { position: absolute; left: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 99px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(10,12,16,.45); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.arch2__yt-chip svg { width: 15px; height: 15px; fill: #ff3d3d; }
.arch2__yt-play { position: absolute; left: 50%; top: 46%; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: #f1f3f5; color: #0b0c10;
  box-shadow: 0 0 0 10px rgba(255,255,255,.10), 0 12px 30px rgba(0,0,0,.45); transition: transform .5s var(--ease), box-shadow .5s; }
.arch2__yt-play svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.arch2__yt:hover .arch2__yt-play { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(155,255,203,.10), 0 12px 30px rgba(0,0,0,.45); }
.arch2__yt-cap { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.arch2__yt-cap b { font-weight: 500; font-size: 15px; letter-spacing: -.01em; color: #fff; }
.arch2__yt-cap i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.arch2__yt-cap i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Floating back-to-top: appears once the reader is past half the page and scrolling down; the ring shows
   how far down the page they are */
.totop { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 3vh, 32px); z-index: 90; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(14,16,21,.72); color: var(--fg); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.7); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease), border-color .3s, background .3s; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--accent); background: rgba(20,24,30,.85); }
.totop__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.totop__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.totop:hover .totop__arrow { transform: translateY(-2px); }
