/* =========================================================
   Hadjimar Belino — portfolio (Halo)
   Dark, minimal, white/grey text that shifts colour
   ========================================================= */

:root {
  --bg: #050505;
  --surface: #0d0d0d;
  --line: #1e1e1e;
  --line-2: #2e2e2e;
  --white: #f5f5f5;
  --grey-1: #b9b9b9;
  --grey-2: #7c7c7c;
  --grey-3: #3a3a3a;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
/* ---------- animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg__canvas { position: absolute; inset: 0; }
.bg__light { position: absolute; border-radius: 50%; filter: blur(110px); will-change: transform; }
.bg__light--a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #1f1f1f; animation: drift-a 26s ease-in-out infinite alternate; }
.bg__light--b { width: 40vw; height: 40vw; right: -10vw; top: 30vh; background: #181818; animation: drift-b 32s ease-in-out infinite alternate; }
.bg__light--c { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: #232323; opacity: .8; animation: drift-c 22s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(22vw, 18vh) scale(1.2); } }
@keyframes drift-b { to { transform: translate(-26vw, -14vh) scale(.85); } }
@keyframes drift-c { to { transform: translate(-14vw, -30vh) scale(1.15); } }
.bg__grain {
  position: absolute; inset: -50%; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
strong { color: var(--white); font-weight: 600; }
::selection { background: var(--white); color: #000; }

/* ---------- text effects ---------- */
/* Seamless loop: the gradient starts and ends on the same colour, runs at 90deg so
   tiles meet cleanly, and moves exactly one tile (200% size -> -200% position) per cycle. */
.shimmer {
  background: linear-gradient(90deg, #6a6a6a 0%, #ffffff 25%, #8f8f8f 50%, #ffffff 75%, #6a6a6a 100%);
  background-size: 200% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sweep 7s linear infinite;
}
@keyframes sweep { from { background-position: 0% 0; } to { background-position: -200% 0; } }

.breathe { animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { color: var(--white); } 50% { color: var(--grey-2); } }

.dim { color: var(--grey-3); transition: color .6s; }
.section__head:hover .dim { color: var(--grey-1); }
.muted { color: var(--grey-2); }
.hl { color: var(--white); font-weight: 600; }
.label {
  display: inline-block;
  font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: var(--grey-2);
}
.link { color: var(--white); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.link:hover { background-size: 100% 1px; }

/* ---------- splash screen: "Hadj.dev" written in cursive (once per visit) ---------- */
.intro { display: none; }
.intro-active .intro, .intro.is-leaving, .intro.is-morphing {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
}
/* the backdrop lives on ::before so it can fade away while the logo stays visible */
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 45%, #121212, #050505 70%); transition: opacity .75s ease; }
html.intro-active, html.intro-active body { overflow: hidden; }
/* nothing behind the splash is drawn while it plays, so the pen gets every frame */
html.intro-active main, html.intro-active .bg, html.intro-active .nav, html.intro-active .footer, html.intro-active .progress { visibility: hidden; }
.intro__stack { position: relative; z-index: 1; display: grid; place-items: center; transition: transform .9s var(--ease), opacity .7s ease; will-change: transform; }
.intro__mark { width: clamp(210px, 40vmin, 440px); height: auto; overflow: visible; transition: filter .6s ease; }


/* skip: finish every stroke at once */
.intro.is-skipped .hx, .intro.is-skipped .hx * { animation: none !important; }

.intro.is-written .intro__mark { filter: drop-shadow(0 0 18px rgba(255,255,255,.22)); }
.intro__label { position: absolute; bottom: 36px; right: var(--pad); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-2); }
.intro__skip { position: absolute; bottom: 36px; left: var(--pad); font-size: 12px; letter-spacing: .08em; color: var(--grey-3); opacity: 0; animation: skip-in .6s ease 1s forwards; }
@keyframes skip-in { to { opacity: 1; } }
@media (max-width: 520px) { .intro__skip { display: none; } }
.intro.is-leaving { opacity: 0; visibility: hidden; transition: opacity .8s ease .1s, visibility 0s linear .9s; pointer-events: none; }
.intro.is-leaving .intro__stack { transform: scale(1.08); opacity: 0; }

/* ---------- splash -> photo morph ----------
   1. the backdrop fades and the logo flies into the hero photo frame (fx.js sets the transform)
   2. the photo opens from the centre of the logo while the logo dissolves */
.intro.is-morphing { pointer-events: none; }
.intro.is-morphing::before, .intro.is-morphing .intro__label, .intro.is-morphing .intro__skip { opacity: 0; transition: opacity .75s ease; }
.intro.is-morphing .intro__skip { animation: none; transition-duration: .3s; }
.intro.is-morphing .intro__stack { transition: transform 1s cubic-bezier(.65, 0, .35, 1), opacity .6s ease; }
.intro.is-dissolving .intro__stack { opacity: 0; }
.halo.is-morph-target { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
.halo.is-morph-target .halo__disc picture { clip-path: circle(0% at 50% 50%); }
.halo.is-morph-target .halo__disc img { scale: 1.14; }
.halo.is-morph-target .halo__ring, .halo.is-morph-target .halo__orbit { opacity: 0; }
.halo.is-morph-target.is-revealing .halo__disc picture { clip-path: circle(72% at 50% 50%); transition: clip-path .9s cubic-bezier(.65, 0, .35, 1); }
.halo.is-morph-target.is-revealing .halo__disc img { scale: 1; transition: scale 1.3s cubic-bezier(.22, 1, .36, 1); }
.halo.is-morph-target.is-revealing .halo__ring, .halo.is-morph-target.is-revealing .halo__orbit { opacity: 1; transition: opacity .9s ease .2s; }

/* ---------- decoding text (fx.js) ---------- */
.decode-char { opacity: .35; }   /* letters still decoding sit back */
.decode-in { opacity: .7; }      /* a letter that just landed, on its way to full */

/* ---------- custom cursor (mouse users only, added by fx.js) ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor .lightbox, html.has-cursor .lightbox * { cursor: auto !important; }  /* the lightbox sits above the custom cursor */
html.has-cursor .lightbox__close { cursor: pointer !important; }
html.has-cursor .shot__hint { display: none; }  /* the cursor's "View" bubble replaces it */
.cursor { position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor.is-visible { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255,255,255,.85);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; border-color: #fff; }
.cursor.is-link .cursor__dot { opacity: 0; }
/* small controls (screen tabs): a light ring that keeps the dot visible, so the label stays readable */
.cursor.is-tab .cursor__ring { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .9); }
.cursor.has-label { mix-blend-mode: normal; }
.cursor.has-label .cursor__ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: rgba(245,245,245,.95); border-color: transparent; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor__label { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #000; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); }
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
/* press feedback is part of the ring's transform in fx.js, so it shrinks in place */

/* ---------- magnetic buttons (pulled toward the mouse by fx.js) ---------- */
.btn.magnetic, .nav__links a.magnetic, .nav__logo.magnetic, .social.magnetic {
  transition-property: color, border-color, background, transform, box-shadow, translate;
  transition-duration: .3s, .3s, .3s, .3s, .3s, .6s;
  transition-timing-function: ease, ease, ease, var(--ease), ease, cubic-bezier(.3, 1.6, .45, 1);
}
.btn.magnetic.is-pulling, .nav__links a.magnetic.is-pulling, .nav__logo.magnetic.is-pulling, .social.magnetic.is-pulling {
  transition-duration: .3s, .3s, .3s, .3s, .3s, .12s;
  transition-timing-function: ease, ease, ease, var(--ease), ease, linear;
}
/* the email circle also fades in on scroll, so keep those transitions alongside the pull */
.js .cta-ring.magnetic {
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease), translate .6s cubic-bezier(.3, 1.6, .45, 1);
  transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s;
}
.js .cta-ring.magnetic.is-pulling { transition-duration: 1s, 1s, 1s, .12s; transition-timing-function: var(--ease), var(--ease), var(--ease), linear; }

/* ---------- progress + nav ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #444, #fff); z-index: 100; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: transform .5s var(--ease), background .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(5,5,5,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
/* ---------- logo: Hex H Halo (logo 33) ----------
   Resting state is the static logo. .is-playing runs the intro (pieces pop in one after another,
   ring draws, dot lands) and then the idle loop (dot orbits, ring drifts, light glides over the H). */
.nav__logo { position: relative; display: grid; place-items: center; width: 44px; height: 44px; }
.brand { width: 42px; height: 42px; }
.hx { overflow: visible; }
.hx .hx-outer { fill: var(--grey-2); }
.hx .hx-stem { fill: var(--white); }
.hx .hx-ring { stroke: var(--grey-2); }
.hx .hx-dot { fill: var(--white); }
.hx .hx-glow { fill: var(--white); opacity: .14; }
.hx .p, .hx .hx-dot, .hx .hx-glow { transform-box: fill-box; transform-origin: center; }
.hx .hx-orbit, .hx .hx-ringwrap { transform-box: view-box; transform-origin: 120px 120px; }
.hx .hx-ringdraw { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.hx .hx-sheen { opacity: 0; }

.hx.is-playing { --hx-d: 0s; }
.hx.is-playing .p { animation: hx-pop .55s cubic-bezier(.34, 1.45, .64, 1) calc(var(--hx-d) + var(--sd, 0s)) both; }
.hx .hx-ol { --sd: 0s; } .hx .hx-sl { --sd: .12s; } .hx .hx-bar { --sd: .24s; } .hx .hx-sr { --sd: .36s; } .hx .hx-or { --sd: .48s; }
.hx.is-playing .hx-ringdraw { animation: hx-draw 1s cubic-bezier(.22, 1, .36, 1) calc(var(--hx-d) + .95s) both; }
.hx.is-playing .hx-dot { animation: hx-dot .55s cubic-bezier(.34, 1.45, .64, 1) calc(var(--hx-d) + 1.3s) both; }
.hx.is-playing .hx-orbit { animation: hx-fade .4s ease calc(var(--hx-d) + 1.3s) both, hx-spin 9s linear calc(var(--hx-d) + 1.9s) infinite; }
.hx.is-playing .hx-ringwrap { animation: hx-spin 60s linear calc(var(--hx-d) + 1.9s) infinite reverse; }
.hx.is-playing .hx-sheen { animation: hx-sheen 4.5s ease-in-out calc(var(--hx-d) + 2.1s) infinite; }
@keyframes hx-pop   { from { transform: scale(.3); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes hx-draw  { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hx-dot   { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes hx-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-spin  { to { transform: rotate(360deg); } }
@keyframes hx-sheen { 0%, 55% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(310px); } }
/* menu logo: the light glides across on hover too */
.nav__logo:hover .hx .hx-sheen { animation: hx-sheen-hover .9s ease-in-out both; }
@keyframes hx-sheen-hover { from { opacity: 1; transform: translateX(0); } to { opacity: 1; transform: translateX(310px); } }
.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; font-size: 14px; color: var(--grey-2); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: var(--white); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after { transform: translateX(-50%) scale(1); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- layout + reveal ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); overflow-x: clip; }  /* spinning rings must not widen the page on phones */

.js [data-enter], .js [data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .is-in[data-enter], .js .is-in[data-reveal] { opacity: 1; transform: none; filter: none; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--grey-1);
  font-size: 14px; font-weight: 400;
  transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { color: var(--white); border-color: #666; transform: translateY(-2px); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--primary { background: var(--white); color: #000; border-color: var(--white); font-weight: 600; }
.btn--primary:hover { color: #000; box-shadow: 0 10px 30px -10px rgba(255,255,255,.45); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 48px);  /* side columns never resize to their text */
  padding: 100px 0 80px;
}
.hero__name { margin: 10px 0 20px; }
.hero__nick { display: inline-block; font-size: clamp(88px, 9.5vw, 148px); font-weight: 800; letter-spacing: -.06em; line-height: .9; padding-bottom: .04em; cursor: default; }
/* glow lives on the wrapper so the shimmer inside never restarts */
.hero__nick:hover { animation: nick-glow-in .6s var(--ease) forwards, nick-glow 2.6s ease-in-out .6s infinite; }
@keyframes nick-glow-in {
  from { filter: drop-shadow(0 0 0 rgba(255,255,255,0)) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  to   { filter: drop-shadow(0 0 14px rgba(255,255,255,.4)) drop-shadow(0 0 40px rgba(255,255,255,.16)); }
}
@keyframes nick-glow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(255,255,255,.4)) drop-shadow(0 0 40px rgba(255,255,255,.16)); }
  50%      { filter: drop-shadow(0 0 24px rgba(255,255,255,.65)) drop-shadow(0 0 72px rgba(255,255,255,.28)); }
}
.hero__full { display: block; margin-top: 10px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 400; letter-spacing: .02em; color: var(--grey-1); animation: breathe 5s ease-in-out infinite; }
.hero__text { color: var(--grey-1); font-weight: 300; line-height: 1.75; max-width: 34ch; margin-bottom: 28px; }

.list { display: grid; gap: 14px; margin-top: 12px; }
.list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; font-size: 15px; position: relative; }
.list li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--white); transition: width .6s var(--ease); }
.list li:hover::after { width: 100%; }
.list li span:first-child { color: var(--grey-1); transition: color .3s; }
.list li:hover span:first-child { color: var(--white); }
.list li span:last-child { color: var(--grey-2); }
.mini-stats { display: flex; gap: 36px; margin-top: 32px; }
.mini-stats b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.mini-stats span { color: var(--grey-2); font-size: 13px; }

/* the halo */
.halo { position: relative; width: clamp(320px, 39vw, 560px); aspect-ratio: 1; }
.halo__ring { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.halo__ring text, .badge__ring text, .cta-ring text {
  fill: var(--grey-2); font-family: "Sora", sans-serif; font-size: 15px; letter-spacing: 6px; text-transform: uppercase;
  animation: ring-tone 6s ease-in-out infinite;
}
@keyframes ring-tone { 50% { fill: var(--grey-1); } }
.halo:hover .halo__ring { animation-duration: 12s; }
.halo__orbit { position: absolute; inset: 7.5%; border-radius: 50%; border: 1px solid #1d1d1d; animation: spin 9s linear infinite reverse; }
.halo__orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--white); box-shadow: 0 0 16px 2px rgba(255,255,255,.6); }
.halo__disc {
  position: absolute; inset: 10%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #2c2c2c, #0b0b0b 70%);
  border: 1px solid #262626;
  box-shadow: 0 0 90px rgba(255,255,255,.07), inset 0 0 60px rgba(0,0,0,.8);
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .6s var(--ease);
}
.halo__disc picture { position: absolute; inset: 0; }
.halo__disc img {
  position: absolute; left: 50%; bottom: -14%; width: 118%; height: auto; max-width: none;
  transform: translate(calc(-50% + var(--px, 0px)), var(--py, 0px));
  transition: transform .6s var(--ease);
}
.halo::after { /* soft glow pulse behind the disc */
  content: ""; position: absolute; inset: 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.09), transparent 65%);
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 50% { opacity: .4; transform: scale(1.06); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px; border: 1px solid var(--grey-3); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--white); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-top: clamp(90px, 12vw, 160px); }
.section__head { margin-bottom: clamp(32px, 4vw, 56px); }
.section__title { font-size: clamp(34px, 5vw, 68px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin-top: 16px; }

/* about */
.about__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__text { font-size: clamp(17px, 1.45vw, 20px); font-weight: 300; line-height: 1.8; color: var(--grey-1); display: grid; gap: 18px; }
.journey { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 22px; }
.journey__route { display: flex; align-items: center; gap: 14px; }
.journey__stop b { display: block; font-size: 18px; font-weight: 600; }
.journey__stop span { color: var(--grey-2); font-size: 13px; }
.journey__stop--end { text-align: right; }
.journey__line { position: relative; flex: 1; height: 1px; background: linear-gradient(90deg, var(--grey-3), var(--white)); }
.journey__line i { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--white); box-shadow: 0 0 14px rgba(255,255,255,.7); animation: travel 3.5s var(--ease) infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }
.journey .muted { font-size: 14px; font-weight: 300; }

/* clarapel */
.clara__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(48px, 8vw, 128px); align-items: center; }

/* ---- realistic iPhone mockup ---- */
.device { position: relative; width: clamp(250px, 23vw, 320px); margin: 20px 70px 40px 10px; perspective: 1600px; }
.device__floor { position: absolute; left: 8%; right: 8%; bottom: -34px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.85), transparent); filter: blur(6px); animation: floor 7s ease-in-out infinite; }
@keyframes floor { 50% { transform: scale(.88); opacity: .7; } }

.phone {
  position: relative;
  aspect-ratio: 393 / 852;
  padding: 3.2%;                                 /* titanium band */
  border-radius: 15.5% / 7.2%;
  background: linear-gradient(140deg, #9b9b9b 0%, #4a4a4a 12%, #1d1d1d 38%, #2a2a2a 62%, #4d4d4d 88%, #a8a8a8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    inset 0 0 3px 2px rgba(0,0,0,.65),
    0 60px 90px -40px rgba(0,0,0,.95),
    0 30px 60px -25px rgba(0,0,0,.8);
  transform-style: preserve-3d;
  transform: rotateY(var(--ty, -14deg)) rotateX(var(--tx, 5deg)) rotateZ(-1.5deg);
  transition: transform .8s var(--ease);
  animation: hover-phone 7s ease-in-out infinite;
}
@keyframes hover-phone { 50% { translate: 0 -12px; } }
.phone::before { /* body depth behind the frame */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, #2a2a2a, #0d0d0d);
  transform: translateZ(-14px);
}
.phone__btn { position: absolute; width: 1.4%; border-radius: 2px; background: linear-gradient(90deg, #6d6d6d, #2b2b2b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.phone__btn--action   { left: -1.1%; top: 16%; height: 4%; }
.phone__btn--vol-up   { left: -1.1%; top: 23.5%; height: 7.5%; }
.phone__btn--vol-down { left: -1.1%; top: 32.5%; height: 7.5%; }
.phone__btn--power    { right: -1.1%; top: 26%; height: 11%; background: linear-gradient(90deg, #2b2b2b, #6d6d6d); }

.phone__bezel { position: relative; height: 100%; padding: 3%; border-radius: 13.5% / 6.3%; background: #000; box-shadow: inset 0 0 0 1px #1a1a1a; }
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 11.5% / 5.4%;
  background: #111c19;
  container-type: inline-size;                   /* 100cqw = 393pt of screen */
}
.phone__status {
  position: absolute; inset: 0 0 auto 0; z-index: 2; height: 13.74cqw;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2cqw 8cqw 0 9cqw;
  background: #111c19; color: #fff;
  font: 600 4.3cqw/1 -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; letter-spacing: -.01em;
}
.phone__icons { display: flex; align-items: center; gap: 1.6cqw; }
.phone__icons svg { width: 4.6cqw; height: auto; fill: currentColor; }
.phone__icons svg:last-child { width: 6.8cqw; }
.phone__island {
  position: absolute; z-index: 3; top: 2.8cqw; left: 50%; transform: translateX(-50%);
  width: 32cqw; height: 9.4cqw; border-radius: 99px; background: #000;
  transition: width .6s var(--ease), height .6s var(--ease);
}
.phone__island i { position: absolute; right: 3.2cqw; top: 50%; width: 2.6cqw; height: 2.6cqw; margin-top: -1.3cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a55, #05070c 70%); }
.device:hover .phone__island { width: 44cqw; height: 11cqw; }
/* Screen content, measured in iPhone points: 100cqw = 393pt.
   Status bar 54pt, ClaraPel's sticky bar 65pt, then 733pt of visible page.
   The page image is 7095pt tall, so it can travel 7095 - 733 = 6362pt. */
.phone__screen {
  --pt: calc(100cqw / 393);
  --travel: calc(-6362 * var(--pt));
}
.phone__appbar { position: absolute; z-index: 1; left: 0; right: 0; top: calc(54 * var(--pt)); }
.phone__appbar img { display: block; width: 100%; height: auto; }
.phone__scroll { position: absolute; left: 0; right: 0; top: calc(119 * var(--pt)); bottom: 0; overflow: hidden; }
.phone__page { display: block; width: 100%; height: auto; transform: translateY(calc(var(--p) * var(--travel))); will-change: transform; }
.phone__scrollbar {
  position: absolute; z-index: 2; right: calc(3 * var(--pt)); width: calc(3 * var(--pt)); border-radius: 9px;
  top: calc(123 * var(--pt)); height: calc(76 * var(--pt));    /* 733/7095 of the 733pt track */
  background: rgba(255,255,255,.45);
  transform: translateY(calc(var(--p) * 649 * var(--pt)));      /* 733 - 76 - 8 of margin */
  opacity: calc(.15 + var(--moving) * .85);
}

/* --p goes 0 -> 1 down the page; it scrolls in flicks with pauses, then jumps back up */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --moving { syntax: "<number>"; inherits: true; initial-value: 0; }
.phone__screen { animation: app-scroll 46s infinite paused; }
.device.is-playing .phone__screen { animation-play-state: running; }
.device:hover .phone__screen { animation-play-state: paused; }   /* stop to read */
@keyframes app-scroll {
  0.0%, 4.95% { --p: 0.0000; --moving: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  7.92% { --moving: 1; }
  11.0%, 15.95% { --p: 0.1250; --moving: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  18.92% { --moving: 1; }
  22.0%, 26.95% { --p: 0.2500; --moving: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  29.92% { --moving: 1; }
  33.0%, 37.95% { --p: 0.3750; --moving: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  40.92% { --moving: 1; }
  44.0%, 48.95% { --p: 0.5000; --moving: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  51.92% { --moving: 1; }
  55.0%, 59.95% { --p: 0.6250; --moving: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  62.92% { --moving: 1; }
  66.0%, 70.95% { --p: 0.7500; --moving: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  73.92% { --moving: 1; }
  77.0%, 81.95% { --p: 0.8750; --moving: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  84.92% { --moving: 1; }
  88.0%, 92.0% { --p: 1.0000; --moving: 0; animation-timing-function: cubic-bezier(.6, 0, .25, 1); }
  95% { --moving: 1; }
  98%, 100% { --p: 0; --moving: 0; }
}
}
.phone__home { position: absolute; z-index: 2; left: 50%; bottom: 2cqw; width: 34cqw; height: 1.3cqw; margin-left: -17cqw; border-radius: 99px; background: rgba(255,255,255,.85); }
.phone__glare {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 28%, transparent 42%, transparent 75%, rgba(255,255,255,.05) 100%);
  mix-blend-mode: screen;
}

/* 16 procedures badge, overlapping the phone */
.badge { position: absolute; z-index: 5; right: -34%; bottom: 8%; width: 58%; aspect-ratio: 1; animation: hover-phone 7s ease-in-out infinite -3.5s; }
.badge__ring { position: absolute; inset: 0; animation: spin 30s linear infinite reverse; }
.badge__ring text { font-size: 19px; letter-spacing: 2px; fill: var(--grey-1); }
.badge__core {
  position: absolute; inset: 18%; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 50% 30%, #262626, #0b0b0b 70%);
  border: 1px solid #2c2c2c; box-shadow: 0 20px 40px -10px rgba(0,0,0,.9), 0 0 50px rgba(255,255,255,.06);
}
.badge__core b { font-size: clamp(38px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.badge__core span { color: var(--grey-2); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.clara__copy { display: grid; gap: 20px; justify-items: start; }
.clara__copy .lead { font-size: clamp(20px, 2vw, 28px); line-height: 1.45; font-weight: 400; letter-spacing: -.015em; }
.clara__copy .muted { font-weight: 300; line-height: 1.8; max-width: 62ch; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.features li { position: relative; padding: 26px 24px 26px 0; }
.features li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.features li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--white); transition: width .7s var(--ease); }
.features li:hover::before { width: 100%; }
.features__n { font-size: 12px; color: var(--grey-3); letter-spacing: .1em; transition: color .3s; }
.features li:hover .features__n { color: var(--white); }
.features h3 { font-size: 17px; font-weight: 600; margin: 14px 0 6px; color: var(--grey-1); transition: color .3s; }
.features li:hover h3 { color: var(--white); }
.features--8 li:nth-child(n+5) { border-top: 1px solid var(--line); }
.features--8 li:nth-child(5) { padding-left: 0; border-left: 0; }
.features__new { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #000; background: var(--white); padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.features p { font-size: 14px; color: var(--grey-2); font-weight: 300; }

.why { margin-top: clamp(48px, 6vw, 80px); padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--grey-3); display: grid; gap: 14px; max-width: 900px; }
.why p:first-of-type { font-size: clamp(20px, 2.2vw, 30px); font-weight: 300; line-height: 1.45; letter-spacing: -.015em; }
.why .muted { font-weight: 300; }

/* how clarapel is built */
.stack { margin-top: clamp(64px, 8vw, 110px); }
.stack__head { margin-bottom: 28px; }
.stack__title { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -.035em; margin-top: 12px; }
.stack__list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.stack__list li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.stack__list li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--white); transition: width .7s var(--ease); }
.stack__list li:hover::after { width: 100%; }
.stack__n { font-size: 12px; color: var(--grey-3); letter-spacing: .1em; padding-top: 4px; transition: color .3s; }
.stack__list li:hover .stack__n { color: var(--white); }
.stack__list h4 { font-size: 17px; font-weight: 600; color: var(--grey-1); transition: color .3s; }
.stack__list li:hover h4 { color: var(--white); }
.stack__list p { font-size: 14px; color: var(--grey-2); font-weight: 300; line-height: 1.7; margin-top: 6px; }

/* work projects */
.section__intro { color: var(--grey-2); font-weight: 300; line-height: 1.7; max-width: 62ch; margin-top: 22px; }
.projects { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; perspective: 1400px; }  /* depth for the card tilt; relative so fx.js can measure cards */
.project {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 2.6vw, 36px);
  background: rgba(13,13,13,.72); border: 1px solid var(--line); border-radius: 26px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .4s, transform .6s var(--ease);
}
.project::before { /* spotlight that follows the cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), transparent 50%);
  opacity: 0; transition: opacity .4s;
}
.project:hover { border-color: #3a3a3a; translate: 0 -4px; }
/* 3D tilt (fx.js sets --tilt): uses the separate rotate/translate properties so it
   doesn't fight the scroll-reveal transform; same specificity as the reveal rule wins by order */
.js .project[data-reveal] {
  rotate: var(--tilt, 0 0 1 0deg);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease), border-color .4s, rotate .8s var(--ease), translate .6s var(--ease);
  transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s, 0s;
}
.js .project[data-reveal].is-tilting { transition-duration: 1s, 1s, 1s, .4s, .15s, .6s; transition-timing-function: var(--ease), var(--ease), var(--ease), ease, linear, var(--ease); }
/* shine: a soft light band that slides with the mouse */
.project::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.10) 47%, rgba(255,255,255,.03) 53%, transparent 68%);
  background-size: 260% 260%;
  background-position: var(--shine-x, 50%) var(--shine-y, 50%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .5s;
}
.project.is-tilting::after { opacity: 1; }
/* with the tilt running, the lift follows the tilt state (stable) instead of :hover (which can flicker at tilted edges) */
.has-cursor .project:hover { translate: none; }
.has-cursor .project.is-tilting { translate: 0 -4px; border-color: #3a3a3a; }
.project:hover::before { opacity: 1; }
.project__top { display: flex; justify-content: space-between; align-items: center; }
.project__n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; font-size: 13px; font-weight: 600; color: var(--grey-1); transition: color .3s; }
.project__n i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--grey-3); animation: spin 16s linear infinite; transition: border-color .3s; }
.project:hover .project__n { color: var(--white); }
.project:hover .project__n i { border-color: var(--white); animation-duration: 5s; }
.project__tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; }
.project h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-top: 6px; color: var(--grey-1); transition: color .3s; }
.project:hover h3 { color: var(--white); }
.project > p, .project__cols p { font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--grey-2); }
.project__stack { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.pills--sm li { padding: 5px 11px; font-size: 12.5px; }

/* featured projects: full width, screenshot on top */
.project--featured { grid-column: 1 / -1; gap: 18px; }
.project__cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.project__cols > div:first-child { display: grid; gap: 12px; }
.project--featured .project__stack { margin-top: 6px; padding-top: 0; border-top: 0; }

/* ---------- screenshot frame (browser window) ---------- */
.shot { margin: 4px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid #2a2a2a; background: #111; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.shot__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #181818; border-bottom: 1px solid #262626; }
.shot__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; }
.shot__url { margin: 0 auto; transform: translateX(-24px); font-size: 12px; color: var(--grey-2); background: #0e0e0e; border: 1px solid #222; padding: 4px 16px; border-radius: 7px; min-width: 38%; text-align: center; }
.shot__view { position: relative; overflow: hidden; aspect-ratio: 1440 / 860; cursor: zoom-in; }
.shot__canvas { position: absolute; top: 0; left: 0; width: 1440px; height: 860px; transform-origin: 0 0; transform: scale(var(--s, .5)); }
.shot__hint { position: absolute; right: 14px; bottom: 14px; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.7); color: var(--white); border: 1px solid rgba(255,255,255,.15); opacity: 0; transform: translateY(6px); transition: .3s var(--ease); pointer-events: none; }
.shot__view:hover .shot__hint { opacity: 1; transform: none; }
.shot__note { font-size: 12.5px !important; color: var(--grey-2) !important; margin-top: -8px; }

.lightbox { margin: auto; padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(6px); }
.lightbox__view { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 40px 120px rgba(0,0,0,.9); }
.lightbox__view .shot__canvas { position: absolute; }
.lightbox__close { position: fixed; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #444; background: #111; color: #fff; font-size: 16px; cursor: pointer; }
.lightbox__close:hover { background: #fff; color: #000; }

/* ---------- mockup: device inventory web app, 4 screens (demo data) ---------- */
.dv { position: absolute; inset: 0; overflow: hidden; background: #0b0d10; color: #e7e9ec; font-family: "Inter", system-ui, sans-serif; font-size: 13px;
  --dv-line: #20242a; --dv-card: #111418; --dv-mut: #8b929c; --dv-sub: #a7adb5; --dv-txt: #c9cdd3; }
.dv .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dv .ic--sm { width: 15px; height: 15px; } .dv .ic--xs { width: 12px; height: 12px; stroke-width: 2.2; }
.dv-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 232px 1fr; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.dv-slide.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease; }

/* sidebar + top bar */
.dv-side { display: flex; flex-direction: column; background: #0e1013; border-right: 1px solid var(--dv-line); padding: 14px 10px 12px; }
.dv-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.dv-brand b { font-weight: 700; }
.dv-tile { width: 30px; height: 30px; border-radius: 7px; background: #3b6fe8; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px; }
.dv-side .dv-brand { border-bottom: 1px solid var(--dv-line); margin: 0 -10px 14px; padding: 2px 18px 16px; }
.dv-nav { display: grid; gap: 4px; }
.dv-nav__i { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--dv-txt); font-size: 14px; }
.dv-nav__i .ic { color: #9aa1ab; }
.dv-nav__i.on { background: #16233b; color: #6ea2ff; font-weight: 600; }
.dv-nav__i.on .ic { color: #6ea2ff; }
.dv-me { margin: auto -10px 0; display: flex; gap: 10px; align-items: center; padding: 14px 18px 10px; border-top: 1px solid var(--dv-line); }
.dv-av { width: 34px; height: 34px; border-radius: 50%; background: #3b6fe8; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.dv-me b { display: block; font-size: 13px; }
.dv-me em { font-style: normal; font-size: 11.5px; color: #6ea2ff; background: #16233b; padding: 2px 8px; border-radius: 6px; display: inline-block; margin-top: 3px; }
.dv-tools { display: flex; gap: 18px; padding: 8px 10px 0; color: var(--dv-mut); }
.dv-tools i { flex: 1; }
.dv-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; max-width: none; margin: 0; padding: 0; }
.dv-top { height: 54px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 26px; border-bottom: 1px solid var(--dv-line); }
.dv-top > b { font-size: 15px; margin-right: auto; }
.dv-view, .dv-search { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid #2a2e35; border-radius: 9px; font-size: 12.5px; color: #9aa1ab; }
.dv-view small { font-size: 11px; line-height: 1.15; text-align: center; }
.dv-view strong { font-size: 12px; line-height: 1.15; color: #e7e9ec; text-align: center; }
.dv-search { width: 236px; }
.dv-search kbd { margin-left: auto; font: 10px ui-monospace, monospace; border: 1px solid #2a2e35; border-radius: 4px; padding: 1px 5px; }

/* page body, cards, buttons */
.dv-body { padding: 22px 28px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.dv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.dv-head h4 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.dv-head p { color: var(--dv-sub); font-size: 14px; margin-top: 6px; }
.dv-head small { display: block; color: var(--dv-mut); font-size: 12px; margin-top: 6px; }
.dv-actions { display: flex; gap: 10px; }
.dv-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid #2a2e35; border-radius: 9px; font-size: 13px; font-weight: 600; color: #e7e9ec; background: #0f1215; white-space: nowrap; justify-self: start; }
.dv-btn--blue { background: #3b6fe8; border-color: #3b6fe8; color: #fff; }
.dv-btn--block { width: 100%; justify-content: center; height: 46px; font-size: 14.5px; font-weight: 500; }
.dv-btn--wide { width: 100%; justify-content: center; }
.dv-card { background: var(--dv-card); border: 1px solid var(--dv-line); border-radius: 14px; padding: 18px 20px; }
.dv-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.dv-card__head b { font-size: 15px; font-weight: 700; display: block; }
.dv-card__head small { color: var(--dv-mut); font-size: 12px; }
.dv hr { border: 0; border-top: 1px solid var(--dv-line); margin: 14px 0; }
.dv-muted { color: var(--dv-mut); font-size: 12.5px; }
.dv-ibox { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.dv-ibox.blue { background: #16233b; color: #6ea2ff; } .dv-ibox.teal { background: #0f2e2a; color: #2dd4bf; } .dv-ibox.grey { background: #1a1d22; color: var(--dv-txt); }

/* dashboard */
.dv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dv-kpi { min-height: 150px; }
.dv-kpi__head { display: flex; justify-content: space-between; align-items: center; color: var(--dv-txt); font-size: 13.5px; }
.dv-kpi__row { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.dv-kpi__n { font-size: 32px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dv-chg { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #34d399; background: #10241c; padding: 3px 7px; border-radius: 6px; }
.dv-tri { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 16px 0 12px; background: #1a1d22; }
.dv-tri i { width: var(--w); transform-origin: left; }
.dv .ok { background: #34d399; } .dv .warn { background: #f5b83d; } .dv .bad { background: #e5484d; }
.dv-agel { list-style: none; display: grid; gap: 5px; font-size: 12.5px; color: var(--dv-txt); }
.dv-agel li { display: flex; justify-content: space-between; }
.dv-agel b { font-weight: 600; color: #e7e9ec; font-variant-numeric: tabular-nums; }
.dv-agel small { color: var(--dv-mut); }
.dv .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; }
.dv-trends { flex: none; }
.dv-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: #0d0f12; border: 1px solid var(--dv-line); }
.dv-seg i { font-style: normal; font-size: 13px; padding: 6px 14px; border-radius: 7px; color: var(--dv-sub); }
.dv-seg i.on { background: #1a1d22; color: #fff; font-weight: 600; }
.dv-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dv-chart > b { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 8px; }
.dv-plot { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: 150px auto; column-gap: 6px; }
.dv-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: var(--dv-mut); transform: translateY(-6px); height: 162px; }
.dv-plot svg { width: 100%; height: 150px; overflow: visible; }
.dv-grid line { stroke: #1d2026; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dv-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.dv-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dv-mut); padding-top: 6px; }
.dv-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12px; color: var(--dv-sub); }
.dv-legend i { display: inline-block; width: 12px; height: 2px; margin-right: 6px; vertical-align: 3px; }
.dv-line.blue { stroke: #4f8ff7; } .dv-line.violet { stroke: #7c5cf0; } .dv-line.green { stroke: #22a06b; }
.dv-legend .blue, .dv .sq.blue { background: #4f8ff7; } .dv-legend .violet, .dv .sq.violet { background: #7c5cf0; } .dv-legend .green, .dv .sq.green { background: #22a06b; }
.dv .sq.amber { background: #d9902a; } .dv .sq.pink { background: #db4a7f; }
.dv-peek { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; min-height: 140px; }

/* endpoint intelligence */
.dv-ei { display: grid; grid-template-columns: .82fr 1.09fr 1.09fr; gap: 16px; }
.dv-age { grid-row: span 2; }
.dv-big { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dv-types { list-style: none; display: grid; gap: 13px; font-size: 13.5px; color: var(--dv-txt); }
.dv-types li { display: flex; justify-content: space-between; align-items: center; }
.dv-types span { display: flex; gap: 10px; align-items: center; }
.dv-types b { font-weight: 600; color: #e7e9ec; }
.dv-donut-row { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: center; }
.dv-donut { position: relative; width: 128px; height: 128px; }
.dv-donut svg { width: 100%; height: 100%; }
.dv-donut .seg { fill: none; stroke-width: 17; }
.seg.blue { stroke: #4f8ff7; } .seg.violet { stroke: #7c5cf0; } .seg.green { stroke: #22a06b; } .seg.amber { stroke: #d9902a; } .seg.pink { stroke: #db4a7f; }
.dv-reveal { fill: none; stroke: #fff; stroke-width: 24; stroke-dasharray: 100 100; stroke-dashoffset: 0; }
.dv-donut > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dv-donut > span b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dv-donut > span small { font-size: 11px; color: var(--dv-mut); }
.dv-dl { list-style: none; display: grid; gap: 10px; font-size: 12.5px; }
.dv-dl li { display: grid; grid-template-columns: 1fr auto 34px; gap: 10px; align-items: center; color: var(--dv-txt); }
.dv-dl b { font-weight: 600; color: #e7e9ec; text-align: right; font-variant-numeric: tabular-nums; }
.dv-dl small { color: var(--dv-mut); text-align: right; }
.dv .sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 9px; vertical-align: -1px; }

/* profile */
.dv-profile { display: grid; grid-template-columns: 1.8fr 1fr; gap: 18px; align-items: start; }
.dv-who { display: flex; gap: 14px; align-items: center; margin: 4px 0 18px; }
.dv-av--lg { width: 50px; height: 50px; font-size: 15px; }
.dv-who b { display: block; font-size: 15px; }
.dv-who small { color: #9aa1ab; font-size: 12.5px; }
.dv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 20px; }
.dv-field { display: grid; gap: 7px; font-size: 13px; color: var(--dv-txt); }
.dv-input { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 13px; border: 1px solid #2a2e35; border-radius: 9px; background: #0d0f12; color: #e7e9ec; font-size: 14px; }
.dv-input.is-off { color: var(--dv-mut); background: #121519; }
.dv-input .dv-chev { margin-left: auto; }
.dv-dl li > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-col { display: grid; gap: 18px; }
.dv-col .dv-field { margin-bottom: 14px; }
.dv-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #34d399; background: #10241c; padding: 5px 11px; border-radius: 999px; }
.dv-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: dv-ping 2s ease-in-out infinite; }

/* sign in */
.dv-slide--auth { grid-template-columns: 1fr 1fr; }
.dv-auth-l { position: relative; overflow: hidden; background: radial-gradient(80% 70% at 30% 30%, #0c1e33, #070b12 72%); padding: 30px 36px; display: flex; flex-direction: column; }
.dv-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.dv-net__l line { stroke: rgba(110, 162, 255, .12); stroke-width: 1; }
.dv-net__d circle { fill: #3aa0c8; opacity: .35; animation: dv-twinkle 4s ease-in-out infinite; animation-delay: calc(var(--k) * -.7s); }
.dv-auth-l .dv-brand { position: relative; }
.dv-pitch { position: relative; margin: auto 0; display: grid; gap: 16px; justify-items: start; }
.dv-badge { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; border: 1px solid #2a2e35; background: rgba(20, 22, 26, .7); }
.dv-pitch h4 { font-size: 36px; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.dv-pitch p { color: var(--dv-sub); font-size: 15px; max-width: 42ch; line-height: 1.6; }
.dv-auth-r { position: relative; background: #0b0d10; display: grid; place-items: center; }
.dv-signin { width: 420px; display: grid; gap: 14px; position: relative; }
.dv-theme { position: absolute; top: -78px; right: 0; color: var(--dv-txt); }
.dv-signin h5 { font-size: 22px; font-weight: 700; }
.dv-signin > p { color: var(--dv-sub); font-size: 14px; margin: -6px 0 8px; }
.dv-input--icon { height: 42px; background: #1a2230; border-color: #2c3646; }
.dv-input em { font-style: normal; }
.dv-caret { width: 1.5px; height: 17px; background: #e7e9ec; margin-left: -8px; animation: dv-blink 1s steps(1) infinite; }

/* screen animations: replay every time a screen becomes active */
.dv-slide.is-on .dv-in { animation: dv-in .7s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 70ms + 120ms) both; }
.dv-slide.is-on .dv-tri i { animation: dv-grow 1s cubic-bezier(.22, 1, .36, 1) calc(.45s + var(--k) * .12s) both; }
.dv-slide.is-on .dv-reveal { animation: dv-draw 1.3s cubic-bezier(.65, 0, .35, 1) .45s both; }
.dv-slide.is-on .dv-line { animation: dv-trace 1.6s cubic-bezier(.65, 0, .35, 1) calc(.55s + var(--k) * .15s) both; }
.dv-slide.is-on .dv-spin { transform-box: fill-box; transform-origin: center; animation: dv-rot .9s cubic-bezier(.65, 0, .35, 1) .7s; }
@keyframes dv-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes dv-grow { from { transform: scaleX(0); } }
@keyframes dv-draw { from { stroke-dashoffset: 100; } }
@keyframes dv-trace { from { stroke-dashoffset: 1; } }
@keyframes dv-rot { to { transform: rotate(360deg); } }
@keyframes dv-ping { 50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, .18); } }
@keyframes dv-twinkle { 50% { opacity: .9; } }
@keyframes dv-blink { 50% { opacity: 0; } }

/* ---------- mockup: operations dashboard web app, 6 screens (demo data) ---------- */
.dv--op { background: #0c0d0f; }
.dv--op .dv-slide { grid-template-columns: 210px 1fr; }
.op-side { position: relative; z-index: 1; display: flex; flex-direction: column; background: #0f1012; border-right: 1px solid #1e2024; padding: 16px 10px 12px; }
.op-brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 16px; color: #5b9cf0; font-weight: 700; font-size: 11.5px; letter-spacing: .12em; line-height: 1.35; }
.op-pin { width: 24px; height: 28px; flex: none; }
.op-nav { display: grid; gap: 1px; }
.op-nav span { display: flex; gap: 11px; align-items: center; padding: 7.5px 10px; border-radius: 7px; color: #dfe3e8; font-size: 13px; }
.op-nav span .ic { color: #b9bec5; }
.op-nav span.on { background: #15284a; color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px #2b4a7c; }
.op-nav em { font-style: normal; font-size: 10.5px; letter-spacing: .08em; color: #8b929c; padding: 16px 10px 6px; }
.op-foot { margin: auto -10px 0; border-top: 1px solid #1e2024; padding: 14px 16px 0; display: grid; gap: 3px; }
.op-theme { display: flex; border: 1px solid #2a2e35; border-radius: 7px; padding: 3px; gap: 3px; margin-bottom: 14px; }
.op-theme span { flex: 1; display: flex; gap: 4px; justify-content: center; align-items: center; font-size: 11px; padding: 5px 2px; color: #b9bec5; border-radius: 5px; }
.op-theme span.on { background: #24272c; color: #fff; box-shadow: inset 0 0 0 1px #3a3f47; }
.op-foot strong { font-size: 13px; }
.op-foot small { font-size: 11px; color: #9aa1ab; margin-bottom: 12px; }
.op-link { font-size: 12.5px; color: #cfd3d8; padding: 5px 0; }
.op-main { position: relative; overflow: hidden; max-width: none; margin: 0; padding: 0; background: radial-gradient(90% 70% at 70% 20%, #0f1218, #0b0c0e 70%); }
.op-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.op-net line { stroke: rgba(70, 130, 200, .2); stroke-width: 1; }
.op-body { position: relative; padding: 28px 72px 0; display: flex; flex-direction: column; gap: 14px; }
.op-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.op-head h4 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.op-head p { font-size: 12.5px; color: #c9cdd3; margin-top: 6px; line-height: 1.5; max-width: 125ch; }
.op-card { background: rgba(16, 18, 21, .9); border: 1px solid #23262b; border-radius: 10px; overflow: hidden; }
.op-pad { padding: 16px 18px; }
.op-line-t { border-top: 1px solid #1e2024; }
.op-h { display: block; font-size: 14px; font-weight: 700; }
.op-sub { font-size: 12px; color: #a7adb5; margin: 4px 0 12px; line-height: 1.5; }
.op-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 6px; background: #2e5aa8; border: 1px solid #4a7bd1; color: #fff; font-weight: 600; font-size: 12.5px; white-space: nowrap; flex: none; }
.op-btn--glow { box-shadow: 0 6px 18px -6px rgba(74, 123, 209, .7); }
.op-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid #23262b; }
.op-seg i { font-style: normal; font-weight: 600; font-size: 12px; padding: 5px 10px; border-radius: 4px; color: #c9cdd3; }
.op-seg i.on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.op-seg--sm i { font-size: 11px; padding: 4px 9px; }
.op-tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 5px; background: #24272c; color: #d7dbe0; white-space: nowrap; margin-right: 6px; }
.op-tag.blue { background: #16284a; color: #7fb0ff; } .op-tag.green { background: #13301f; color: #5bd48a; }
.op-tag.amber { background: #3a2c0d; color: #f2c14e; } .op-tag.red { background: #3a1416; color: #f37a7a; } .op-tag.gold { background: #2c2a10; color: #e6d36a; }
.op-mut { color: #8b929c; } .op-mut2 { color: #a7adb5; } .op-red { font-style: normal; color: #f37a7a; }
.op-stats { display: grid; grid-template-columns: repeat(var(--c), 1fr); }
.op-stats > div { padding: 14px 18px; display: grid; gap: 4px; }
.op-stats > div + div { border-left: 1px solid #1e2024; }
.op-stats span { font-size: 12.5px; color: #c9cdd3; }
.op-stats b { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.op-tabs { display: flex; gap: 30px; border-bottom: 1px solid #1e2024; font-size: 12.5px; font-weight: 600; color: #c9cdd3; }
.op-tabs span { padding: 0 2px 10px; }
.op-tabs span.on { color: #fff; box-shadow: inset 0 -2px 0 #5b9cf0; }
.op-tablewrap { padding: 0; }
.op-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.op-table th { text-align: left; font-size: 10.5px; letter-spacing: .05em; color: #c9cdd3; background: #17191d; padding: 10px 14px; font-weight: 600; line-height: 1.25; vertical-align: bottom; }
.op-table td { padding: 10px 14px; border-top: 1px solid #1e2024; color: #d7dbe0; vertical-align: middle; }
.op-table td b { font-weight: 600; color: #fff; margin-right: 8px; }
.op-table .r { text-align: right; } .op-table .c { text-align: center; }
.op-table td:first-child { white-space: nowrap; }
.op-table td .ic--xs { margin-right: 10px; vertical-align: -1px; }
.op-table--log td:nth-child(4) { max-width: 420px; }
.op-row-head { display: flex; align-items: flex-start; gap: 14px; }
.op-row-head > div { margin-right: auto; }
.op-find { display: inline-flex; align-items: center; gap: 8px; width: 230px; height: 34px; padding: 0 12px; border: 1px solid #3a3f47; border-radius: 6px; font-size: 12.5px; color: #8b929c; }
.op-cb { display: inline-block; width: 58px; height: 5px; background: #1c1f24; border-radius: 3px; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.op-cb i { display: block; height: 100%; width: var(--w); background: #3b82f6; border-radius: 3px; transform-origin: left; }
.op-filters { display: flex; align-items: flex-end; gap: 12px; }
.op-filters label { display: grid; gap: 6px; font-size: 11.5px; color: #c9cdd3; }
.op-select, .op-inputbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; padding: 0 12px; border: 1px solid #3a3f47; border-radius: 6px; background: #0d0e10; font-size: 12.5px; color: #fff; }
.op-select { width: 200px; } .op-inputbox { width: 260px; }
.op-select.is-focus { border-color: #5b9cf0; box-shadow: 0 0 0 2px rgba(91, 156, 240, .25); }
/* dashboard */
.op-filter { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 12.5px; color: #c9cdd3; }
.op-hero { display: grid; grid-template-columns: 250px 1fr; gap: 30px; padding: 20px 22px 16px; }
.op-hero__big span { font-size: 12.5px; font-weight: 600; color: #dfe6ea; }
.op-hero__big b { display: block; font-size: 52px; font-weight: 600; letter-spacing: -.03em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.op-hero__big small { font-size: 12px; color: #c4ced3; }
.op-hero__top { display: flex; justify-content: space-between; align-items: center; }
.op-hero__top b { font-size: 13.5px; }
.op-hero__chart p { color: #b5c2c9; font-size: 12px; margin: 8px 0 10px; }
.op-hero__chart p em { font-style: normal; color: #6fd29a; font-weight: 600; }
.op-plot { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: 180px auto; column-gap: 6px; }
.op-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: #93a2aa; text-align: right; transform: translateY(-6px); height: 192px; }
.op-plot svg { width: 100%; height: 180px; overflow: visible; }
.op-line { stroke: #4f93ef !important; }
.op-area { fill: rgba(58, 120, 214, .22); }
.op-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 10.5px; color: #93a2aa; padding-top: 8px; }
.op-fleet__head { padding: 16px 18px 12px; display: grid; gap: 5px; border-bottom: 1px solid #1e2024; }
.op-fleet__head b { font-size: 13.5px; }
.op-fleet__head span { font-size: 12px; color: #b5c2c9; }
.op-fleet__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.op-fleet__grid div { padding: 14px 18px; border-right: 1px solid #1e2024; border-bottom: 1px solid #1e2024; display: grid; gap: 4px; }
.op-fleet__grid div:nth-child(4n) { border-right: 0; } .op-fleet__grid div:nth-child(n+5) { border-bottom: 0; }
.op-fleet__grid span { font-size: 12px; color: #d3dbe0; }
.op-fleet__grid b { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.op-fleet__grid small { font-size: 10.5px; color: #a7b4bb; }
/* EMA sync */
.op-job__who { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #c9cdd3; }
.op-job__pct { display: flex; align-items: baseline; margin: 12px 0 8px; }
.op-job__pct b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.op-job__pct span { font-size: 12.5px; color: #c9cdd3; margin-left: 8px; }
.op-prog { height: 7px; border-radius: 4px; background: #1c1f24; overflow: hidden; }
.op-prog i { display: block; height: 100%; width: var(--w); background: #3b82f6; border-radius: 4px; transform-origin: left; }
.op-job__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 12px; }
.op-job__grid span { display: block; font-size: 12px; color: #a7adb5; }
.op-job__grid b { font-size: 12.5px; font-weight: 700; }
.op-last { border: 1px solid #23262b; border-radius: 7px; padding: 9px 12px; font-size: 12.5px; background: #0d0e10; }
.op-last small { display: block; font-size: 10.5px; letter-spacing: .06em; color: #a7adb5; margin-bottom: 3px; }
.op-peek { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.op-of { display: flex; align-items: baseline; gap: 8px; }
.op-of b { font-size: 28px; font-weight: 600; }
.op-of span { color: #c9cdd3; }
/* error log */
.op-err { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.op-err > div { display: grid; gap: 7px; justify-items: start; }
.op-err__tags { display: flex; align-items: center; }
.op-err__tags small { font-size: 11px; color: #a7adb5; }
.op-err b { font-size: 13.5px; }
.op-err .op-mut2 { font-size: 12px; }
.op-details { font-size: 12.5px; color: #c9cdd3; }
/* op screen animations (on top of the shared .dv-in / count-ups) */
.dv-slide.is-on .op-row { animation: dv-in .55s cubic-bezier(.22, 1, .36, 1) calc(var(--i) * 45ms + 350ms) both; }
.dv-slide.is-on .op-prog i, .dv-slide.is-on .op-cb i { animation: dv-grow 1.2s cubic-bezier(.22, 1, .36, 1) .55s both; }
.dv-slide.is-on .op-area { animation: op-fade 1s ease 1.1s both; }
@keyframes op-fade { from { opacity: 0; } }

/* screen tabs under the frame, with an auto-advance progress bar */
.dv-tabs { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); border-top: 1px solid #262626; background: #121212; }
.dv-tab { position: relative; padding: 13px 10px; border: 0; background: transparent; color: var(--grey-2); font: inherit; font-size: 13px; transition: color .3s; }
.dv-tab + .dv-tab { border-left: 1px solid #222; }
.dv-tab:hover { color: var(--grey-1); }
.dv-tab:focus { outline: none; }                                   /* no box after a mouse click */
.dv-tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); color: var(--white); }  /* keyboard focus */
.dv-tab.is-on { color: var(--white); }
.dv-tab__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--white); transform: scaleX(0); transform-origin: left; }
.dv-tab.is-on .dv-tab__bar { transform: scaleX(1); }
.shot--tabs.is-auto .dv-tab.is-on .dv-tab__bar { animation: dv-progress 7s linear both; }
.shot--tabs:hover .dv-tab__bar, .shot--tabs.is-paused .dv-tab__bar { animation-play-state: paused !important; }
@keyframes dv-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 760px) {
  .dv-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .dv-tabs::-webkit-scrollbar { display: none; }
  .dv-tab { flex: 1 0 auto; font-size: 11.5px; padding: 11px 14px; white-space: nowrap; }
}

/* skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.skill { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.skill:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.skill h3 { font-size: 13px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-2); margin-bottom: 18px; transition: color .3s; }
.skill:hover h3 { color: var(--white); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14px; color: var(--grey-1); background: rgba(10,10,10,.5);
  transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease);
}
.pills li:hover { color: #000; background: var(--white); border-color: var(--white); transform: translateY(-2px); }
.js .skill .pills li { opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s, background .3s, border-color .3s; transition-delay: calc(var(--i, 0) * 60ms + .2s); }
.js .skill.is-in .pills li { opacity: 1; transform: none; }
.js .skill.is-in .pills li:hover { transform: translateY(-2px); transition-delay: 0s; }

/* experience */
.jobs { border-top: 1px solid var(--line); }
.job {
  position: relative; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.job::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--white); transition: width .7s var(--ease); }
.job:hover::after { width: 100%; }
.job:hover { padding-left: 12px; padding-right: 12px; }
.job__when { font-size: 13px; color: var(--grey-2); font-variant-numeric: tabular-nums; }
.job h3 { font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; letter-spacing: -.01em; color: var(--grey-1); transition: color .3s; }
.job h3 em { font-style: normal; color: var(--grey-2); font-weight: 400; }
.job p { font-size: 14px; margin-top: 4px; color: var(--grey-2); font-weight: 300; }
.job:hover h3, .job--now h3 { color: var(--white); }
.job__tag { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--grey-2); }
.job--now .job__tag { background: var(--white); color: #000; border-color: var(--white); font-weight: 600; }

/* now — words light up while scrolling */
.now { max-width: 1100px; }
.now__text { font-size: clamp(28px, 4.2vw, 58px); font-weight: 600; letter-spacing: -.035em; line-height: 1.22; margin-top: 22px; }
.now__text .w { color: var(--grey-3); transition: color .35s; }
.now__text .w.on { color: var(--white); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.contact .section__title { max-width: 16ch; }
.contact .muted { font-size: 18px; font-weight: 300; margin-top: 18px; }
.contact__email { display: inline-block; margin-top: 10px; font-size: clamp(18px, 2vw, 24px); font-weight: 400; word-break: break-all; }
.cta-ring { position: relative; display: block; width: clamp(220px, 22vw, 300px); aspect-ratio: 1; }
.cta-ring svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.cta-ring text { font-size: 15px; letter-spacing: 5px; }
.cta-ring__core {
  position: absolute; inset: 22%; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--white); color: #000; font-weight: 700; font-size: 17px;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.cta-ring:hover .cta-ring__core { transform: scale(1.08); box-shadow: 0 0 60px rgba(255,255,255,.35); }
.cta-ring:hover svg { animation-duration: 5s; }

/* social profiles: round outline icons, fill white and redraw on hover */
.socials { display: flex; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.social {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(10, 10, 10, .55); color: var(--grey-1);
  transition: color .3s, background .3s, border-color .3s, box-shadow .4s, transform .4s var(--ease);
}
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.social .dot { fill: currentColor; stroke: none; transition: transform .4s var(--ease); transform-origin: 16.9px 7.1px; }
.social .d { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.social:hover, .social:focus-visible { color: #000; background: var(--white); border-color: var(--white); box-shadow: 0 0 40px rgba(255, 255, 255, .3); transform: translateY(-3px); outline: none; }
.social:hover .d, .social:focus-visible .d { animation: social-draw .7s cubic-bezier(.65, 0, .35, 1) both; }
.social:hover .d + .d, .social:focus-visible .d + .d { animation-delay: .12s; }
.social:hover .dot, .social:focus-visible .dot { transform: scale(1.3); }
@keyframes social-draw { from { stroke-dashoffset: 1; } }
.socials--small { margin: 0; gap: 10px; }
.socials--small .social { width: 38px; height: 38px; }
.socials--small .social svg { width: 16px; height: 16px; }

/* footer */
.footer__brand { display: inline-flex; align-items: center; gap: 12px; }
.footer__logo { width: 30px; height: 30px; }
.footer {
  max-width: var(--max); margin: clamp(90px, 12vw, 160px) auto 0; padding: 28px var(--pad) 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--grey-1);
}

/* ---------- back to top: appears after scrolling, ring fills with page progress ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(14,14,14,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .4s ease, transform .5s var(--ease), translate .6s cubic-bezier(.3, 1.6, .45, 1), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top.magnetic.is-pulling { transition: opacity .4s ease, transform .5s var(--ease), translate .12s linear, background .3s; }
.to-top:hover { background: rgba(28,28,28,.85); }
.to-top svg { width: 100%; height: 100%; overflow: visible; }
.to-top__track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1.5; }
.to-top__ring { fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 2;
  stroke-dashoffset: calc(1 - var(--progress, 0)); transform: rotate(-90deg); transform-origin: 24px 24px; }
.to-top__arrow { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.to-top:hover .to-top__arrow { transform: translateY(-3px); }
.to-top:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
html.intro-active .to-top { visibility: hidden; }


/* ---------- contact form pop-up (opens from the "Email me" circle) ---------- */
html.has-cursor .cform, html.has-cursor .cform * { cursor: auto !important; }      /* the dialog sits above the custom cursor */
html.has-cursor .cform button, html.has-cursor .cform .ctopic, html.has-cursor .cform a { cursor: pointer !important; }
html.has-cursor .cform input[type="text"], html.has-cursor .cform input[type="email"], html.has-cursor .cform textarea { cursor: text !important; }
.cform { margin: auto; padding: 0; border: 0; background: transparent; color: var(--white); width: min(640px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; }
.cform::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cform[open] { animation: cform-in .55s cubic-bezier(.22, 1, .36, 1) both; }
.cform[open]::backdrop { animation: cform-fade .4s ease both; }
.cform.is-closing { animation: cform-out .3s cubic-bezier(.4, 0, 1, 1) both; }
.cform.is-closing::backdrop { animation: cform-fade .3s ease reverse both; }
@keyframes cform-in { from { opacity: 0; transform: translateY(22px) scale(.96); filter: blur(6px); } }
@keyframes cform-out { to { opacity: 0; transform: translateY(12px) scale(.97); filter: blur(4px); } }
@keyframes cform-fade { from { opacity: 0; } }
.cform__card {
  position: relative; overflow: hidden auto; max-height: calc(100dvh - 32px);
  padding: clamp(24px, 4vw, 40px); border-radius: 26px;
  background: radial-gradient(120% 90% at 100% 0%, #1c1c1c, #0d0d0d 60%);
  border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
  font-family: "Sora", system-ui, sans-serif;
}
.cform__glow { position: absolute; right: -140px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.09), transparent 65%); pointer-events: none; animation: glow 7s ease-in-out infinite; }
.cform__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,10,10,.6); color: var(--grey-1); display: grid; place-items: center; transition: color .3s, border-color .3s, transform .4s var(--ease); }
.cform__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cform__close:hover { color: var(--white); border-color: #666; transform: rotate(90deg); }
.cform__form { position: relative; display: grid; gap: 18px; }
.cform__form[hidden] { display: none; }
.cform__head { display: grid; gap: 10px; margin-bottom: 4px; padding-right: 40px; }
.cform__title { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.cform__sub { color: var(--grey-2); font-weight: 300; line-height: 1.6; font-size: 15px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cfield { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.cfield__label { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-2); }
.cfield__count { font-style: normal; letter-spacing: .04em; text-transform: none; color: var(--grey-3); font-variant-numeric: tabular-nums; }
.cfield__input {
  width: 100%; font: inherit; font-size: 15px; color: var(--white); background: rgba(5, 5, 5, .6);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.cfield__input::placeholder { color: #555; }
.cfield__input:hover { border-color: #3d3d3d; }
.cfield__input:focus { border-color: #8a8a8a; background: rgba(12, 12, 12, .9); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.cfield__input--area { resize: vertical; min-height: 130px; line-height: 1.6; }
.cfield.is-invalid .cfield__input { border-color: #a44; box-shadow: 0 0 0 4px rgba(200, 60, 60, .12); animation: cform-shake .35s; }
.cfield__error { font-size: 12.5px; color: #f08a8a; }
.cfield__error:empty { display: none; }
@keyframes cform-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ctopics { display: flex; flex-wrap: wrap; gap: 8px; }
.ctopic { position: relative; }
.ctopic input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.ctopic span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--grey-1); font-size: 13.5px; background: rgba(5,5,5,.5); transition: color .3s, background .3s, border-color .3s, transform .3s var(--ease); }
.ctopic:hover span { color: var(--white); border-color: #555; }
.ctopic input:checked + span { color: #000; background: var(--white); border-color: var(--white); transform: translateY(-1px); }
.ctopic input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.cform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__turnstile:empty { display: none; }
.cform__turnstile:not(.is-shown) { position: absolute; left: 0; right: 0; height: 0; overflow: hidden; }   /* invisible check: out of the layout */
.cform__turnstile iframe { border-radius: 12px; }
.cform__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cform__send { position: relative; padding: 14px 24px; font-size: 15px; }
.cform__send-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.cform__send:hover .cform__send-icon { transform: translateX(4px); }
.cform__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.25); border-top-color: #000; animation: spin .7s linear infinite; }
.cform.is-sending .cform__send { pointer-events: none; opacity: .85; }
.cform.is-sending .cform__send-icon { display: none; }
.cform.is-sending .cform__spinner { display: inline-block; }
.cform__note { font-size: 13px; color: var(--grey-2); font-weight: 300; }
.cform__status { font-size: 13.5px; color: #f08a8a; line-height: 1.5; }
.cform__status:empty { display: none; }
.cform__done { position: relative; display: grid; justify-items: center; text-align: center; gap: 14px; padding: 26px 0 8px; }
.cform__done[hidden] { display: none; }
.cform__check { width: 84px; height: 84px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.cform__check circle, .cform__check path { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: cform-draw .7s cubic-bezier(.65, 0, .35, 1) forwards; }
.cform__check path { animation-delay: .45s; }
@keyframes cform-draw { to { stroke-dashoffset: 0; } }
.cform__done > *:not(.cform__check) { animation: dv-in .6s cubic-bezier(.22, 1, .36, 1) both; }
.cform__done .cform__title { animation-delay: .55s; }
.cform__done .cform__sub { animation-delay: .65s; }
.cform__done .cform__again { animation-delay: .75s; margin-top: 8px; background: transparent; font-family: inherit; }
.cform__sub b { color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .cform__row { grid-template-columns: 1fr; }
  .cform__card { border-radius: 20px; padding: 22px 18px; }
  .cform__foot { flex-direction: column; align-items: stretch; }
  .cform__send { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cform, .cform::backdrop, .cform * { animation: none !important; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 110px; gap: 40px; }
  .hero__left { order: 2; }
  .halo { order: 1; width: min(84vw, 440px); }
  .hero__right { order: 3; width: min(100%, 440px); text-align: left; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero .btns { justify-content: center; }
  .scroll-cue { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .features li:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .features li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .skill:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .skill:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 13px; }
  .about__grid, .clara__grid, .contact { grid-template-columns: 1fr; }
  .device { justify-self: center; width: min(62vw, 260px); margin: 10px 0 50px; }
  .badge { right: -17%; }
  .cta-ring { justify-self: center; }
  .job { grid-template-columns: 1fr; gap: 8px; }
  .job__tag { justify-self: start; }
  .job:hover { padding-left: 0; padding-right: 0; }
  .stack__list { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project { border-radius: 20px; }
  .project__cols { grid-template-columns: 1fr; }
  .shot { border-radius: 10px; }
  .shot__bar { height: 26px; padding: 0 10px; }
  .shot__bar i { width: 8px; height: 8px; }
  .shot__url { font-size: 10px; padding: 2px 10px; }
  .shot__hint { opacity: 1; transform: none; font-size: 10px; padding: 4px 9px; right: 8px; bottom: 8px; }
  .project:hover { translate: none; }
  .skills { grid-template-columns: 1fr; }
  .skill, .skill:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .nav__links { display: none; }
  .features { grid-template-columns: 1fr; }
  .features li, .features li + li { padding-left: 0; border-left: 0; }
  .features li + li { border-top: 1px solid var(--line); }
  .halo__ring text { font-size: 17px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 96px; }   /* clear of the back-to-top button */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-enter], .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
