/* ==========================================================================
   Manikandan M — Portfolio
   Dark, editorial, motion-first. Fonts: Instrument Serif · Anton · Geist · Caveat
   ========================================================================== */

:root {
  --bg: #0b0b0a;
  --bg-2: #131312;
  --bg-3: #1c1c1a;
  --fg: #f3f0ea;
  --fg-2: #b4b0a7;
  --muted: #7f7b73;
  --line: rgba(243, 240, 234, .12);
  --accent: #ff3d2e;
  --yellow: #ffd84d;
  --blue: #6b7bff;
  --green: #3ddc97;

  --ease: cubic-bezier(.65, .05, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 3.2vw, 48px);

  --f-serif: "Instrument Serif", Georgia, serif;
  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Code", monospace;
  --f-hand: "Caveat", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img, svg, canvas { display: block; }
::selection { background: var(--accent); color: #0b0b0a; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.mono { font-family: var(--f-mono); font-weight: 400; }
.serif-i { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.hand { font-family: var(--f-hand); font-weight: 500; }
.dim { opacity: .55; }
.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dot { color: var(--accent); }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(52px, 8.6vw, 150px);
  line-height: .92;
  letter-spacing: .004em;
}

/* custom cursor hides the native one on fine pointers */
.has-cursor, .has-cursor * { cursor: none !important; }

/* ---------- split text ---------- */
.sw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .1em .06em .14em;
  margin: -.1em -.06em -.14em;
}
.serif-i .sw, .sw .serif-i, .serif-i.sw { padding-inline: .14em; margin-inline: -.14em; }
.sc { display: inline-block; will-change: transform; }
.word { transition: none; }

/* ---------- rolling link letters ---------- */
.roll { display: inline-flex; overflow: hidden; line-height: 1.2; vertical-align: bottom; }
.roll > .rl {
  display: inline-block;
  text-shadow: 0 1.2em currentColor;
  transition: transform .6s var(--ease) calc(var(--i) * 16ms);
}
.roll:hover > .rl, a:hover > .roll > .rl, button:hover > .roll > .rl { transform: translateY(-1.2em); }
.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; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.loader { position: fixed; inset: 0; z-index: 100; }
.loader__panels { position: absolute; inset: 0; display: flex; }
.loader__panels span { flex: 1; height: 101%; background: #121211; border-right: 1px solid rgba(255,255,255,.03); }
.loader__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
}
.loader__top { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); }
.loader__name { font-size: clamp(72px, 17vw, 300px); line-height: .9; text-align: center; letter-spacing: -.02em; }
.loader__bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.loader__words { position: relative; height: 1.4em; overflow: hidden; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); min-width: 200px; }
.loader__word { position: absolute; left: 0; top: 0; transform: translateY(110%); }
.loader__count { font-family: var(--f-display); font-size: clamp(80px, 13vw, 220px); line-height: .78; }
.loader__count sup { font-size: .3em; vertical-align: top; color: var(--accent); margin-left: .05em; }
.loader__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; }
.loader__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   Cursor · grain · progress · toast
   ========================================================================== */
.cursor { display: none; position: fixed; inset: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; transition: opacity .3s; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(255,255,255,.9);
  display: grid; place-items: center;
  transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), background-color .3s, border-color .3s, opacity .3s;
}
.cursor__label { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #0b0b0a; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-link .cursor__ring { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: #fff; }
.cursor.is-link .cursor__dot { opacity: 0; }
.cursor.is-label { mix-blend-mode: normal; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

.grain {
  position: fixed; inset: -100%; width: 300%; height: 300%;
  z-index: 150; pointer-events: none; opacity: .065;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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 1.1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  translate: -50% 0;
  background: var(--fg); color: #0b0b0a;
  padding: 12px 20px; border-radius: 999px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  opacity: 0; transform: translateY(24px) scale(.96);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }

/* ==========================================================================
   Header + menu
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 24px;
  padding: 22px var(--pad);
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.logo { display: flex; align-items: flex-end; gap: 5px; }
.logo__mark { width: 40px; height: 36px; fill: none; stroke: currentColor; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.logo__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-bottom: 4px; }
.header__meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2vw;
  padding-left: 14vw; font-size: 13px; line-height: 1.35;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.header__meta .roll { vertical-align: top; }
.is-scrolled .header__meta { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.menu-btn { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 12px; font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 0; }
.menu-btn__text { display: grid; height: 1.3em; overflow: hidden; line-height: 1.3; }
.menu-btn__text span { grid-area: 1 / 1; transition: transform .6s var(--ease); }
.menu-btn__text span:last-child { transform: translateY(110%); }
.menu-btn__lines { position: relative; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.menu-btn__lines i { position: absolute; width: 14px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease); }
.menu-btn__lines i:first-child { transform: translateY(-3px); }
.menu-btn__lines i:last-child { transform: translateY(3px); }
.menu-open .menu-btn__text span:first-child { transform: translateY(-110%); }
.menu-open .menu-btn__text span:last-child { transform: translateY(0); }
.menu-open .menu-btn__lines i:first-child { transform: rotate(45deg); }
.menu-open .menu-btn__lines i:last-child { transform: rotate(-45deg); }
.menu-open .header { mix-blend-mode: normal; color: #0b0b0a; }
.menu-open .header__meta { opacity: 0; pointer-events: none; }

.menu { position: fixed; inset: 0; z-index: 45; visibility: hidden; }
.menu__bg { position: absolute; inset: 0; background: var(--accent); }
.menu__inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 40px;
  padding: 110px var(--pad) var(--pad);
  color: #0b0b0a;
}
.menu__links a { display: flex; align-items: flex-start; gap: 18px; transition: opacity .4s, transform .6s var(--ease-out); }
.menu__links:hover a { opacity: .3; }
.menu__links a:hover { opacity: 1; transform: translateX(18px); }
.menu__idx { font-size: 13px; padding-top: .8em; }
.menu__mask { display: block; overflow: hidden; padding-top: .05em; }
.menu__txt { display: block; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(48px, 8.2vh, 104px); line-height: .98; }
.menu__side { display: grid; gap: 30px; font-size: 18px; padding-bottom: 8px; }
.menu__side p.mono { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-bottom: 6px; }
.menu__side a { display: flex; width: fit-content; }
.menu__hand { font-size: 30px; transform: rotate(-5deg); transform-origin: left; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, #171715 0%, var(--bg) 72%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__squiggle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__squiggle path { fill: none; stroke: rgba(243, 240, 234, .5); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sq-dot { fill: #fff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px rgba(255,255,255,.6)); }

.hero__label {
  position: absolute; left: var(--pad); top: 34%;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2);
}
.hero__label-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 61, 46, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 46, .6); } 80%, 100% { box-shadow: 0 0 0 12px rgba(255, 61, 46, 0); } }

.hero__badge { position: absolute; right: 7vw; top: 28%; width: clamp(92px, 8.6vw, 132px); z-index: 2; }
.hero__badge svg { width: 100%; height: auto; animation: spin 16s linear infinite; }
.badge__bg { fill: var(--accent); }
.badge__text { font: 500 9.6px var(--f-mono); letter-spacing: .2em; fill: #0b0b0a; }
.badge__star { fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__bottom {
  position: absolute; left: var(--pad); right: var(--pad);
  bottom: calc(var(--name-h, 16vw) + 2.4vh);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  z-index: 3;
}
.hero__intro { max-width: 370px; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.hero__intro em { font-size: 1.2em; color: var(--fg); }

.pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(243, 240, 234, .2); border-radius: 999px;
  font-size: 14px; background: rgba(18, 18, 17, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .4s, color .4s, border-color .4s;
}
.pill__icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(243, 240, 234, .2); display: grid; place-items: center; overflow: hidden; transition: background-color .4s, border-color .4s; }
.pill__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover { background: var(--fg); color: #0b0b0a; border-color: var(--fg); }
.pill:hover .pill__icon { background: var(--accent); border-color: var(--accent); }
.pill:hover .pill__icon svg { animation: nudge .8s var(--ease) infinite; }
@keyframes nudge { 0% { transform: translateY(0); } 45% { transform: translateY(140%); } 46% { transform: translateY(-140%); } 100% { transform: translateY(0); } }

.hero__note {
  position: absolute; left: 31vw; bottom: calc(var(--name-h, 16vw) + .4vw);
  display: flex; align-items: flex-end; gap: 2px;
  font-size: 31px; line-height: 1; color: var(--accent);
  transform: rotate(-7deg); z-index: 3; pointer-events: none;
}
.hero__note span { display: inline-block; transform-origin: 80% 100%; }
.hero__note svg { width: 62px; height: 48px; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero__name .sw { overflow: visible; }
.hero__name {
  position: absolute; left: var(--pad); right: var(--pad); bottom: -.06em;
  font-size: 16vw; line-height: .9; white-space: nowrap; letter-spacing: -.012em;
  z-index: 2;
}

/* ==========================================================================
   Marquees
   ========================================================================== */
.marquees { position: relative; z-index: 2; padding: 8vw 0 9vw; overflow: hidden; background: var(--bg); }
.marquee { overflow: hidden; white-space: nowrap; position: relative; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__group { display: inline-flex; align-items: center; gap: .42em; padding-right: .42em; }
.marquee__group i { font-style: normal; font-size: .55em; }
.marquee--accent {
  z-index: 2; background: var(--accent); color: #0b0b0a;
  transform: rotate(-3deg) scale(1.06);
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(40px, 6vw, 100px); line-height: 1.12; padding: .06em 0;
}
.marquee--light {
  z-index: 1; background: var(--fg); color: #0b0b0a;
  transform: rotate(2.2deg) scale(1.06); margin-top: -1.6vw;
  font-size: clamp(36px, 5.2vw, 86px); line-height: 1.15; padding: .04em 0;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: clamp(100px, 12vw, 200px) var(--pad); }
.section__label {
  position: relative; display: flex; gap: 14px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2);
  margin-bottom: 44px; padding-bottom: 14px;
}
.section__label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); transform: scaleX(var(--rule, 1)); transform-origin: left;
}

/* ---------- About ---------- */
.about__lead {
  font-size: clamp(28px, 4.1vw, 68px); line-height: 1.12; letter-spacing: -.028em; font-weight: 500;
  max-width: 19em;
}
.about__lead em { font-weight: 400; letter-spacing: -.01em; }
.ipill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7em; height: 1em; border-radius: 999px; margin: 0 .08em;
  vertical-align: middle; position: relative; top: -.06em;
}
.ipill svg { width: .6em; height: .6em; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: wiggle 2.6s ease-in-out infinite; }
.ipill--leaf { background: #2e7a4b; }
.ipill--hand { background: var(--blue); }
.ipill--hand svg { animation-delay: -1.2s; }
@keyframes wiggle { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(12deg) scale(1.08); } }

.scribble-wrap { position: relative; display: inline-block; white-space: nowrap; }
.scribble { position: absolute; left: -3%; bottom: -.22em; width: 106%; height: .42em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; }

.about__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 6vw; margin-top: clamp(70px, 9vw, 140px); }
.about__side p { color: var(--fg-2); max-width: 300px; margin-bottom: 26px; }
.about__side p.mono { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(243, 240, 234, .3); font-size: 16px; }
.link-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .6s var(--ease); }
.link-arrow:hover svg { transform: rotate(45deg); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { position: relative; padding: 34px 28px 34px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 28px; }
.stat__num { font-family: var(--f-display); font-size: clamp(56px, 7vw, 116px); line-height: 1; }
.stat__num small { font-size: .38em; color: var(--accent); margin-left: 4px; }
.stat__ring { position: absolute; top: 30px; right: 26px; width: 46px; height: 46px; transform: rotate(-90deg); }
.stat__ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.stat__ring .stat__ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 176; }
.stat__txt { color: var(--fg-2); max-width: 250px; margin-top: 10px; font-size: 15px; }

/* ---------- Services ---------- */
.services .display { margin-bottom: clamp(56px, 7vw, 110px); }
.svc { position: relative; border-top: 1px solid var(--line); }
.svc__row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.05fr) 56px; gap: 24px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: color .45s var(--ease-out);
}
.svc__row::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1;
  background: var(--fg);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-out);
}
.svc__idx { font-size: 13px; padding-top: .7em; color: var(--fg-2); transition: color .4s; }
.svc__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.9vw, 64px); line-height: 1; transition: transform .7s var(--ease-out); }
.svc__body p { color: var(--fg-2); max-width: 440px; transition: color .4s; }
.svc__arrow { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .7s var(--ease), background-color .4s, border-color .4s; }
.svc__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.svc__row:hover { color: #0b0b0a; }
.svc__row:hover::before { transform: scaleY(1); }
.svc__row:hover .svc__title { transform: translateX(16px); }
.svc__row:hover .svc__idx, .svc__row:hover .svc__body p { color: #3a3833; }
.svc__row:hover .tags li { border-color: rgba(11, 11, 10, .25); color: #3a3833; }
.svc__row:hover .svc__arrow { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { font: 12px var(--f-mono); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); transition: border-color .4s, color .4s; }

.svc__preview {
  position: absolute; left: 0; top: 0; z-index: 5;
  width: 260px; height: 190px; border-radius: 20px; overflow: hidden;
  pointer-events: none; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.svc__preview-inner { height: 100%; }
.svc__slide { position: relative; height: 100%; display: grid; place-items: center; overflow: hidden; }
.svc__slide::before {
  content: ""; position: absolute; inset: -50%;
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 2px, transparent 2px 14px);
  animation: slideStripes 6s linear infinite;
}
.svc__slide span { position: relative; font-family: var(--f-serif); font-style: italic; font-size: 92px; line-height: 1; }
.svc__slide--1 { background: var(--accent); color: #0b0b0a; }
.svc__slide--2 { background: var(--blue); color: #fff; }
.svc__slide--3 { background: var(--yellow); color: #0b0b0a; }
.svc__slide--4 { background: #10291c; color: #c3f56f; }
@keyframes slideStripes { to { transform: translate(28px, 28px); } }

/* ---------- Experience (horizontal) ---------- */
.exp { position: relative; overflow: hidden; background: var(--bg); }
.exp__track {
  display: flex; align-items: stretch; gap: 2.6vw;
  width: max-content; height: 100vh; height: 100svh;
  padding: 13vh var(--pad) 15vh;
}
.exp__intro { width: 34vw; display: flex; flex-direction: column; justify-content: center; padding-right: 2vw; }
.exp__hint { font-size: 30px; color: var(--accent); transform: rotate(-4deg); transform-origin: left; margin-top: 28px; }
.exp__card {
  position: relative; overflow: hidden;
  width: min(44vw, 640px);
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(26px, 2.8vw, 44px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px;
}
.exp__num {
  position: absolute; right: -.02em; top: -.16em;
  font-family: var(--f-display); font-size: clamp(160px, 15vw, 260px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 234, .14);
  pointer-events: none;
}
.exp__date { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping-g 2s infinite; }
@keyframes ping-g { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } }
.exp__card h3 { position: relative; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 2.9vw, 48px); line-height: 1; margin-top: 12px; max-width: 11em; }
.exp__co { font-size: 18px; margin-top: 8px; }
.exp__list li { position: relative; padding-left: 24px; color: var(--fg-2); margin-bottom: 10px; font-size: 15.5px; }
.exp__list li::before { content: "↳"; position: absolute; left: 0; color: var(--accent); }
.exp__stat { margin-top: auto; display: flex; align-items: baseline; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.exp__big { font-family: var(--f-serif); font-style: italic; font-size: clamp(48px, 4.8vw, 80px); line-height: 1; }
.exp__stat .mono { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
.exp .tags { margin-top: 0; }
.exp__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 7vh; height: 1px; background: var(--line); }
.exp__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

@media (min-width: 901px) and (max-height: 780px) {
  .exp__track { padding-top: 10vh; padding-bottom: 12vh; }
  .exp__card { gap: 14px; }
  .exp__list li { font-size: 14px; margin-bottom: 6px; }
  .exp__big { font-size: 46px; }
}

/* ---------- Work (stacking cards) ---------- */
.work { padding-bottom: 12vw; }
.work__head { position: relative; margin-bottom: 7vw; }
.work__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .12em; font-size: clamp(64px, 13vw, 232px); line-height: .86; font-weight: 400; }
.work__title .display-inline { font-family: var(--f-display); text-transform: uppercase; font-size: .84em; }
.work__title sup { font-size: 14px; color: var(--accent); align-self: flex-start; margin-top: 1.2em; }
.work__hand { position: absolute; right: 3vw; bottom: -10px; font-size: 30px; color: var(--accent); transform: rotate(-5deg); }

.work-card { position: relative; height: 80vh; min-height: 540px; margin-bottom: 9vh; }
.work-card:last-child { margin-bottom: 0; }
.work-card__inner {
  height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 48px);
  padding: clamp(18px, 2.2vw, 32px);
  background: #151514; border: 1px solid var(--line); border-radius: 32px;
  position: relative; transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 -30px 60px rgba(0, 0, 0, .45);
}
.work-card__inner::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: #000; opacity: var(--dim, 0); pointer-events: none;
}
.work-card__info { display: flex; flex-direction: column; gap: 14px; padding: 6px; min-height: 0; }
.work-card__top { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.work-card__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 4.1vw, 72px); line-height: .96; margin-top: 6px; }
.work-card__title em { text-transform: none; font-size: 1.14em; color: var(--accent); letter-spacing: -.01em; }
.work-card__sub { font: 12px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
.work-card__desc { color: var(--fg-2); max-width: 440px; font-size: 15.5px; }
.work-card__metric { margin-top: auto; display: flex; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.work-card__metric > span { font-family: var(--f-serif); font-style: italic; font-size: clamp(48px, 4.8vw, 84px); line-height: 1; white-space: nowrap; }
.work-card__metric p { font-size: 11px; color: var(--fg-2); text-transform: uppercase; letter-spacing: .05em; line-height: 1.6; }
.metric-trophy { display: inline-flex; align-items: center; gap: 10px; }
.metric-trophy svg { width: .62em; height: .62em; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.work-card .tags { margin-top: 0; }

.viz { position: relative; border-radius: 22px; overflow: hidden; display: grid; place-items: center; min-height: 0; }
.viz svg { width: 100%; height: 100%; max-height: 100%; }
.viz--farm { background: #10291c; }
.viz--hand { background: #101a3d; }
.viz--agent { background: #f1e05a; }
.viz--sms { background: #ebe7de; }
.viz-mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; }
.viz-big { font-family: var(--f-display); font-size: 26px; }
.viz:not(.is-playing) * { animation-play-state: paused !important; }

/* farm */
.farm-vein { fill: none; stroke: #8fd16a; stroke-width: 1.6; opacity: .7; stroke-linecap: round; }
.farm-vein--main { stroke-width: 3; opacity: .9; }
.farm-spot { fill: #9a5a26; transform-box: fill-box; transform-origin: center; animation: spot 2.4s ease-in-out infinite; }
.farm-spot:nth-of-type(2) { animation-delay: -.8s; }
.farm-spot:nth-of-type(3) { animation-delay: -1.6s; }
@keyframes spot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.farm-scan { animation: scan 3.2s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes scan { 0% { transform: translateY(40px); } 100% { transform: translateY(330px); } }
.farm-box { transform-box: fill-box; transform-origin: center; animation: boxIn 3.2s var(--ease-out) infinite; }
@keyframes boxIn { 0%, 44% { opacity: 0; transform: scale(1.12); } 52%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.farm-box__rect { fill: none; stroke: var(--yellow); stroke-width: 2; stroke-dasharray: 6 4; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -20; } }
.farm-moist { transform-box: fill-box; transform-origin: left; animation: moist 3.2s ease-in-out infinite; }
@keyframes moist { 0%, 100% { transform: scaleX(.32); } 60% { transform: scaleX(.8); } }
.farm-toggle { animation: toggleBg 3.2s infinite; }
@keyframes toggleBg { 0%, 46% { fill: #173a27; } 52%, 94% { fill: #c3f56f; } 100% { fill: #173a27; } }
.farm-knob { animation: knob 3.2s var(--ease) infinite; }
@keyframes knob { 0%, 46% { transform: translateX(0); } 54%, 94% { transform: translateX(26px); } 100% { transform: translateX(0); } }
.farm-drops path { opacity: 0; animation: drop 1.2s ease-in infinite; }
.farm-drops path:nth-child(2) { animation-delay: .4s; }
.farm-drops path:nth-child(3) { animation-delay: .8s; }
@keyframes drop { 0% { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }

/* hand */
.hand-bones line { stroke: #8ea2ff; stroke-width: 3; stroke-linecap: round; }
.hand-joints circle { fill: #fff; stroke: #101a3d; stroke-width: 2; }
.hand-joints circle.tip { fill: var(--accent); }
.hand-ripple { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; }

/* agent */
.agent-edges path { fill: none; stroke: #1a1a1a; stroke-width: 2; opacity: .22; }
.agent-flow path { fill: none; stroke: #1a1a1a; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 12 420; animation: flow 2.4s linear infinite; }
.agent-flow path:nth-child(2) { animation-delay: .35s; }
.agent-flow .f1 { animation-delay: .7s; stroke: var(--accent); }
.agent-flow .f2 { animation-delay: 1.5s; stroke: var(--accent); }
.agent-flow .f3 { animation-delay: 2.3s; stroke: var(--accent); }
@keyframes flow { from { stroke-dashoffset: 432; } to { stroke-dashoffset: 0; } }
.agent-node rect { fill: #fffbe2; stroke: #1a1a1a; stroke-width: 2; }
.agent-node text { font: 600 14px var(--f-sans); fill: #1a1a1a; }
.agent-node--dark rect { fill: #1a1a1a; }
.agent-node--dark text { fill: #f1e05a; }
.agent-tool rect { animation: toolOn 4.8s infinite; }
.agent-tool text { animation: toolTxt 4.8s infinite; }
.agent-tool.t2 rect, .agent-tool.t2 text { animation-delay: 1.6s; }
.agent-tool.t3 rect, .agent-tool.t3 text { animation-delay: 3.2s; }
@keyframes toolOn { 0%, 6% { fill: #fffbe2; } 10%, 30% { fill: var(--accent); } 36%, 100% { fill: #fffbe2; } }
@keyframes toolTxt { 0%, 6% { fill: #1a1a1a; } 10%, 30% { fill: #fff; } 36%, 100% { fill: #1a1a1a; } }
.agent-think circle { fill: #1a1a1a; animation: think 1.2s ease-in-out infinite; }
.agent-think circle:nth-child(2) { animation-delay: .15s; }
.agent-think circle:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-6px); opacity: 1; } }

/* student mgmt */
.sms-bars rect { transform-box: fill-box; transform-origin: bottom; animation: bar 3.6s var(--ease-out) infinite; }
.sms-bars rect:nth-child(1) { --h: .62; }
.sms-bars rect:nth-child(2) { --h: .84; animation-delay: .08s; }
.sms-bars rect:nth-child(3) { --h: 1; animation-delay: .16s; }
.sms-bars rect:nth-child(4) { --h: .7; animation-delay: .24s; }
.sms-bars rect:nth-child(5) { --h: .9; animation-delay: .32s; }
@keyframes bar { 0% { transform: scaleY(.04); } 30%, 82% { transform: scaleY(var(--h)); } 100% { transform: scaleY(.04); } }
.sms-donut { stroke-dasharray: 276.5; stroke-dashoffset: 276.5; animation: donut 3.6s var(--ease-out) infinite; }
@keyframes donut { 0% { stroke-dashoffset: 276.5; } 35%, 82% { stroke-dashoffset: 138; } 100% { stroke-dashoffset: 276.5; } }
.sms-rows g { opacity: 0; animation: rowIn 3.6s var(--ease-out) infinite; }
.sms-rows g:nth-child(2) { animation-delay: .12s; }
.sms-rows g:nth-child(3) { animation-delay: .24s; }
@keyframes rowIn { 0% { opacity: 0; transform: translateX(-14px); } 20%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Achievements (scrapbook) ---------- */
.ach { overflow: hidden; }
.ach__lede { margin-top: 28px; max-width: 26em; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.35; letter-spacing: -.015em; color: var(--fg-2); }
.ach-item {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: center;
  margin-top: clamp(90px, 12vw, 200px);
}
.ach-item--flip .polaroid { order: 2; }
.ach-item--flip .ach-item__body { order: 1; }

.polaroid {
  position: relative; width: 100%; max-width: 640px; justify-self: center;
  padding: 14px 14px 0;
  background: #f4f1ea; color: #1a1a18; border-radius: 4px;
  box-shadow: 0 36px 70px rgba(0, 0, 0, .55), 0 6px 14px rgba(0, 0, 0, .35);
  will-change: transform;
}
.polaroid--wide { max-width: 600px; }
.polaroid__img { overflow: hidden; background: #cfcac0; }
.polaroid__img img { display: block; width: 100%; height: auto; will-change: transform; }
.polaroid figcaption { padding: 12px 6px 14px; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; text-transform: none; letter-spacing: 0; }

.tape {
  position: absolute; top: -15px; width: 96px; height: 30px; z-index: 2;
  background: rgba(255, 216, 77, .82);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 0, 100% 0, 96% 25%, 100% 50%, 96% 75%, 100% 100%, 12% 100%, 7% 90%, 3% 100%, 0 92%, 4% 65%, 0 40%, 3% 20%);
}
.tape--l { left: 7%; transform: rotate(-8deg); }
.tape--r { right: 7%; transform: rotate(6deg); }

.stamp { position: absolute; right: -34px; top: -44px; z-index: 3; width: clamp(88px, 8.4vw, 128px); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
.stamp svg { width: 100%; height: auto; overflow: visible; }
.stamp__bg { fill: var(--accent); }
.stamp--yellow .stamp__bg { fill: var(--yellow); }
.stamp--blue .stamp__bg { fill: var(--blue); }
.stamp__text { font: 500 9.4px var(--f-mono); fill: #0b0b0a; transform-origin: 60px 60px; animation: spin 18s linear infinite; }
.stamp__check { fill: none; stroke: #0b0b0a; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.stamp__star { fill: #0b0b0a; }
.stamp__num { font-family: var(--f-display); font-size: 50px; fill: #0b0b0a; }

.ach-item__meta {
  display: flex; gap: 16px; padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2);
}
.ach-item__meta span:first-child { color: var(--accent); }
.ach-item__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(38px, 4.7vw, 82px); line-height: .96; }
.ach-item__title em { text-transform: none; color: var(--accent); font-size: 1.12em; letter-spacing: -.01em; }
.ach-item__org { margin: 18px 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
.ach-item__txt { max-width: 30em; font-size: 16px; color: var(--fg-2); }
.ach-item__txt b { font-weight: 500; color: var(--fg); }
.ach-item__perk {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; width: fit-content; max-width: 100%;
  margin-top: 18px; padding: 12px 16px;
  border: 1px dashed rgba(243, 240, 234, .3); border-radius: 12px;
  font-size: 14px;
}
.ach-item__perk .mono { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.ach-item .tags { margin-top: 20px; }

@media (max-width: 900px) {
  .ach-item { grid-template-columns: minmax(0, 1fr); gap: 52px; margin-top: 96px; }
  .ach-item--flip .polaroid, .ach-item--flip .ach-item__body { order: 0; }
  .stamp { right: -10px; top: -38px; width: 92px; }
}

/* ---------- Certificates ---------- */
.certs__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 28px; }
.certs__lede { max-width: 26em; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.35; letter-spacing: -.015em; color: var(--fg-2); }
.certs__count { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-size: clamp(72px, 9vw, 150px); line-height: .85; }
.certs__count small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); }

.certs__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 56px 0 34px; }
.certs__hand { margin-left: auto; font-size: 28px; line-height: 1; color: var(--accent); transform: rotate(-4deg); white-space: nowrap; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font: 500 13.5px var(--f-sans); color: var(--fg-2);
  transition: background-color .4s var(--ease-out), color .4s, border-color .4s;
}
.fchip sup { font: 11px var(--f-mono); opacity: .7; }
.fchip:hover { border-color: rgba(243, 240, 234, .42); color: var(--fg); }
.fchip.is-active { background: var(--fg); color: #0b0b0a; border-color: var(--fg); }

/* an index, one row per certificate; the CSS counter skips rows the filter hides */
.certs__grid { counter-reset: cert; border-bottom: 1px solid var(--line); }
.cert { --c: var(--accent); --draw: 1; position: relative; counter-increment: cert; }
.cert[data-cat="cloud"] { --c: #6bd0ff; }
.cert[data-cat="platform"] { --c: var(--yellow); }
.cert[data-cat="code"] { --c: var(--green); }
.cert.is-hidden { display: none; }
.cert::before {   /* the row's rule, drawn in on entrance */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line); transform: scaleX(var(--draw)); transform-origin: left;
}

.cert__btn {
  display: grid; width: 100%; text-align: left; align-items: center;
  grid-template-columns: 2.6em 92px minmax(0, 1.55fr) minmax(0, 1fr) minmax(9.5em, auto) 46px;
  grid-template-areas:
    "idx thumb title issuer meta open"
    "idx thumb title cat    meta open";
  column-gap: clamp(16px, 2.2vw, 36px); row-gap: 8px;
  padding: clamp(20px, 2.3vw, 32px) 4px;
  transition: opacity .5s var(--ease-out);
}
.cert__btn::before {
  content: counter(cert, decimal-leading-zero); grid-area: idx; align-self: start;
  padding-top: .55em; font: 12px var(--f-mono); letter-spacing: .06em; color: var(--fg-2);
  transition: color .4s;
}
.cert__thumb { grid-area: thumb; display: block; aspect-ratio: 4 / 3; padding: 6px; overflow: hidden; border-radius: 8px; background: #efece4; }
.cert__thumb img { width: 100%; height: 100%; object-fit: contain; }
.cert__title {
  grid-area: title; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px, 2.5vw, 42px); line-height: 1.04;
  transition: transform .7s var(--ease-out);
}
.cert__title > span {   /* highlighter that swipes in behind the words on hover */
  padding: 0 .12em; margin: 0 -.12em;
  background: linear-gradient(var(--c), var(--c)) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .7s var(--ease-out), color .35s;
}
.cert__issuer { grid-area: issuer; align-self: end; font-size: 14px; color: var(--fg-2); }
.cert__cat { grid-area: cat; align-self: start; display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-2); }
.cert__cat i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cert__meta {
  grid-area: meta; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right;
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-2);
}
.cert__meta span:first-child { color: var(--fg); }
.cert__open {
  grid-area: open; justify-self: end; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--fg);
  transition: background-color .4s, border-color .4s, color .4s, transform .7s var(--ease-out);
}
.cert__open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.cert__btn:hover::before, .cert__btn:focus-visible::before { color: var(--c); }
.cert__btn:hover .cert__title, .cert__btn:focus-visible .cert__title { transform: translateX(14px); }
.cert__btn:hover .cert__title > span, .cert__btn:focus-visible .cert__title > span { background-size: 100% 100%; color: #0b0b0a; }
.cert__btn:hover .cert__open, .cert__btn:focus-visible .cert__open { background: var(--c); border-color: var(--c); color: #0b0b0a; transform: rotate(45deg); }
@media (hover: hover) {
  .certs__grid:hover .cert__btn:not(:hover) { opacity: .3; }
}

/* with the cursor preview on, the inline thumbnails step aside */
.certs.has-peek .cert__btn {
  grid-template-columns: 2.6em minmax(0, 1.55fr) minmax(0, 1fr) minmax(9.5em, auto) 46px;
  grid-template-areas:
    "idx title issuer meta open"
    "idx title cat    meta open";
}
.certs.has-peek .cert__thumb { display: none; }

/* the preview: a reel of thumbnails that trails the cursor */
.cert-peek {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(240px, 22vw, 360px); aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 14px; background: #efece4;
  box-shadow: 0 0 0 2px var(--c, var(--accent)), 0 40px 90px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden;
}
.cert-peek__reel { display: flex; flex-direction: column; height: 100%; }
.cert-peek__slot { flex: 0 0 100%; display: grid; place-items: center; min-height: 0; padding: 12px; }
.cert-peek__slot img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* certificate viewer */
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 40px); }
.lightbox.is-open { display: flex; }
.lightbox__scrim { position: absolute; inset: 0; background: rgba(8, 8, 7, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lightbox__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: clamp(20px, 3vw, 44px);
  width: min(1280px, 100%); max-height: 100%; overflow: auto; padding: clamp(14px, 2vw, 26px);
  background: #131312; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, .6);
}
.lightbox__stage { display: grid; place-items: center; min-width: 0; min-height: 0; padding: 14px; overflow: hidden; border-radius: 16px; background: #efece4; touch-action: pan-y; }
.lightbox__img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(78vh, 760px); object-fit: contain; border-radius: 4px; }
.lightbox__info { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; padding: 8px 6px; }
.lightbox__meta { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.lightbox__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 54px); line-height: .98; }
.lightbox__issuer { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
.lightbox__note { font-size: 15.5px; color: var(--fg-2); }
.lightbox__cat { width: fit-content; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-2); }
.lightbox__nav { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.lightbox__count { min-width: 5.5em; text-align: center; font-size: 12px; letter-spacing: .08em; color: var(--fg-2); }
.lightbox__btn, .lightbox__close {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background-color .3s, color .3s, border-color .3s;
}
.lightbox__btn:hover, .lightbox__close:hover { background: var(--fg); color: #0b0b0a; border-color: var(--fg); }
.lightbox__btn svg, .lightbox__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { position: absolute; right: 14px; top: 14px; z-index: 3; background: rgba(19, 19, 18, .85); }

@media (max-width: 1000px) {
  .cert__btn {
    grid-template-columns: 2.4em 84px minmax(0, 1fr) minmax(8em, auto) 42px;
    grid-template-areas:
      "idx thumb title  meta open"
      "idx thumb issuer meta open"
      "idx thumb cat    meta open";
  }
  .certs.has-peek .cert__btn {
    grid-template-columns: 2.4em minmax(0, 1fr) minmax(8em, auto) 42px;
    grid-template-areas:
      "idx title  meta open"
      "idx issuer meta open"
      "idx cat    meta open";
  }
  .cert__issuer { align-self: auto; }
  .cert__cat { margin-top: 4px; }
  .cert__open { width: 42px; height: 42px; }
}
@media (max-width: 900px) {
  .lightbox__panel { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lightbox__img { max-height: 50vh; }
  .lightbox__info { justify-content: flex-start; }
  .lightbox__close { right: 22px; top: 22px; }
}
@media (max-width: 620px) {
  .certs__filters { margin: 40px 0 28px; }
  .certs__hand { margin: 10px 0 0; font-size: 26px; }
  .cert__btn, .certs.has-peek .cert__btn {
    grid-template-columns: 2em minmax(0, 1fr) 78px;
    grid-template-areas:
      "idx meta   thumb"
      "idx title  thumb"
      "idx issuer thumb"
      "idx cat    thumb";
    row-gap: 6px; padding: 22px 0;
  }
  .certs.has-peek .cert__thumb { display: block; }
  .cert__thumb { align-self: start; }
  .cert__btn::before { padding-top: 0; }
  .cert__meta { flex-flow: row wrap; align-items: center; justify-content: flex-start; gap: 4px 12px; text-align: left; }
  .cert__meta span { white-space: nowrap; }
  .cert__title { font-size: 25px; }
  .cert__open { display: none; }
}

/* ---------- Stack orbit ---------- */
.stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4vw; align-items: center; overflow: hidden; }
.stack__list { margin-top: 48px; border-top: 1px solid var(--line); }
.stack__list > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stack__list dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); padding-top: 4px; }
.stack__list dd { font-size: 15px; }

.orbit-wrap { position: relative; width: 100%; aspect-ratio: 1; min-width: 0; }
.orbit-fit {
  position: absolute; left: 50%; top: 50%; width: 680px; height: 680px; margin: -340px 0 0 -340px;
  transform: scale(var(--os, 1)); perspective: 1400px;
}
.orbit { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.orbit__core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 140px; height: 140px; border-radius: 50%;
  display: grid; place-items: center; align-content: center;
  background: var(--accent); color: #0b0b0a;
}
.orbit__core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: corePulse 2.8s var(--ease-out) infinite; }
@keyframes corePulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }
.orbit__core span { font-size: 64px; line-height: .8; }
.orbit__core small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.orbit__ring {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  border: 1px dashed rgba(243, 240, 234, .16); border-radius: 50%;
  animation: spin var(--d) linear infinite;
}
.orbit__ring--2 { animation-direction: reverse; }
.chip { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)); }
.chip b {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  display: block; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
  background: #1c1c1a; border: 1px solid rgba(243, 240, 234, .14);
  font: 500 14px var(--f-sans);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  animation: spin var(--d) linear infinite reverse;
  transition: background-color .3s, color .3s, scale .4s var(--ease-out);
}
.orbit__ring--2 .chip b { animation-direction: normal; }
.chip--accent b { background: var(--accent); color: #0b0b0a; border-color: transparent; }
.chip--yellow b { background: var(--yellow); color: #0b0b0a; border-color: transparent; }
.chip--blue b { background: var(--blue); color: #fff; border-color: transparent; }
.chip--green b { background: var(--green); color: #0b0b0a; border-color: transparent; }
.chip b:hover { background: var(--fg); color: #0b0b0a; scale: 1.12; }
.orbit:hover .orbit__ring, .orbit:hover .chip b { animation-play-state: paused; }
.orbit__hand { position: absolute; right: 2%; bottom: 3%; font-size: 26px; color: var(--accent); transform: rotate(-6deg); }

/* ---------- Recognition ---------- */
.awards__list { margin-top: 56px; border-top: 1px solid var(--line); }
.award {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: color .4s, padding .6s var(--ease-out);
}
.award::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateY(var(--from, 101%));
  transition: transform .55s var(--ease-out);
}
.award.is-hover { color: #0b0b0a; padding-inline: 22px; }
.award.is-hover::before { transform: translateY(0); }
.award.no-tr::before { transition: none; }
.award__idx { font-size: 13px; color: inherit; opacity: .6; }
.award__title { font-size: clamp(20px, 2.2vw, 34px); letter-spacing: -.02em; font-weight: 500; line-height: 1.2; }
.award__tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; opacity: .7; white-space: nowrap; }

.edu { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 80px; }
.edu__card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 2.6vw, 36px); }
.edu__card p.mono { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.edu__card h3 { font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 12px 0 8px; }
.edu__card > p:not(.mono) { color: var(--fg-2); }
.edu__progress { margin-top: 28px; }
.edu__bar { height: 12px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.edu__bar span {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, #ff6a5c 10px 20px);
  background-size: 28px 28px; animation: stripes 1s linear infinite;
}
@keyframes stripes { to { background-position: 28px 0; } }
.edu__progress p { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 13px; color: var(--fg-2); }
.edu__progress .hand { font-size: 24px; color: var(--fg); text-transform: none; letter-spacing: 0; }
.edu__progress b { font-weight: 500; color: var(--fg); }

/* ---------- Contact ---------- */
.contact { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; padding: 140px var(--pad) 110px; }
.contact__blobs { position: absolute; inset: 0; pointer-events: none; }
.contact__blobs span { position: absolute; width: 46vw; aspect-ratio: 1; border-radius: 50%; filter: blur(100px); opacity: .42; }
.contact__blobs span:nth-child(1) { background: var(--accent); left: -10vw; top: 10%; animation: blobA 16s ease-in-out infinite alternate; }
.contact__blobs span:nth-child(2) { background: #ff8f3d; right: -12vw; top: -10%; animation: blobB 19s ease-in-out infinite alternate; opacity: .3; }
.contact__blobs span:nth-child(3) { background: #5b2bff; left: 30%; bottom: -30%; animation: blobC 22s ease-in-out infinite alternate; opacity: .32; }
@keyframes blobA { to { transform: translate(30vw, 20vh) scale(1.2); } }
@keyframes blobB { to { transform: translate(-28vw, 30vh) scale(.85); } }
@keyframes blobC { to { transform: translate(-20vw, -40vh) scale(1.3); } }
.contact__inner { position: relative; width: 100%; }
.contact__title { font-size: clamp(48px, 8.8vw, 168px); }
.contact__title em { text-transform: none; font-size: 1.1em; letter-spacing: -.01em; }
.contact__row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 64px; flex-wrap: wrap; }
.contact__email {
  font-size: clamp(24px, 4.2vw, 68px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1;
  padding-bottom: 8px; border-bottom: 2px solid var(--fg); text-align: left;
}
.contact__email .roll { line-height: 1.12; }
.contact__email .roll > .rl { text-shadow: 0 1.12em var(--accent); }
.contact__email:hover .roll > .rl { transform: translateY(-1.12em); }
.contact__cta {
  width: clamp(140px, 13vw, 200px); aspect-ratio: 1; border-radius: 50%; flex: none;
  display: grid; place-items: center; text-align: center;
  background: var(--accent); color: #0b0b0a;
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(22px, 2vw, 32px); line-height: 1;
  transition: background-color .4s;
}
.contact__cta:hover { background: var(--fg); }
.contact__cta-txt { display: block; }
.contact__hand { position: absolute; left: 2%; bottom: -54px; font-size: 26px; color: var(--accent); transform: rotate(-3deg); }
.contact__links { display: flex; gap: 40px; margin-top: 96px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 48px var(--pad) 26px; border-top: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.footer__big {
  display: flex; justify-content: space-between;
  font-family: var(--f-display); font-size: 17vw; line-height: .82;
  user-select: none; white-space: nowrap;
}
.footer__big span { display: inline-block; transform-origin: 50% 100%; }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header__meta { padding-left: 6vw; }
  .svc__row { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr); }
  .svc__arrow { display: none; }
}

@media (max-width: 900px) {
  .header__meta { display: none; }
  .menu__inner { grid-template-columns: 1fr; align-content: end; gap: 36px; padding-top: 96px; }
  .menu__txt { font-size: clamp(44px, 12vw, 80px); }
  .menu__side { grid-template-columns: 1fr 1fr; font-size: 16px; }
  .menu__hand { grid-column: 1 / -1; }

  .hero__label { top: auto; bottom: calc(var(--name-h, 16vw) + 200px); }
  .hero__badge { top: 14%; right: 6vw; width: 84px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 18px; bottom: calc(var(--name-h, 16vw) + 18px); }
  .hero__note { left: auto; right: 8vw; bottom: calc(var(--name-h, 16vw) + 12px); font-size: 22px; }
  .hero__note svg { width: 44px; height: 34px; }

  .about__grid { grid-template-columns: 1fr; }
  .stat { padding: 26px 16px 26px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .stat__ring { width: 34px; height: 34px; top: 22px; right: 12px; }
  .stat__txt { font-size: 13.5px; }

  .svc__row { grid-template-columns: 36px minmax(0, 1fr); gap: 10px 14px; padding: 28px 0; }
  .svc__body { grid-column: 2; }
  .svc__preview { display: none; }

  .exp__track { flex-direction: column; width: auto; height: auto; padding: 100px var(--pad); gap: 18px; }
  .exp__intro { width: auto; padding: 0 0 30px; }
  .exp__hint { display: none; }
  .exp__card { width: 100%; }
  .exp__progress { display: none; }

  .work-card { position: relative; top: 0; height: auto; min-height: 0; margin-bottom: 20px; }
  .work-card__inner { grid-template-columns: 1fr; border-radius: 24px; }
  .viz { order: -1; aspect-ratio: 4 / 3; }
  .work__hand { position: static; margin-top: 18px; }

  .stack { grid-template-columns: minmax(0, 1fr); }
  .stack__list > div { grid-template-columns: 1fr; gap: 4px; }
  .orbit-wrap { margin-top: 20px; }

  .award { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 14px; padding: 22px 0; }
  .award__tag { grid-column: 2; justify-self: start; }
  .edu { grid-template-columns: 1fr; }

  .contact__hand { position: static; width: 100%; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(odd) { border-right: 0; }
  .stat:nth-child(even) { padding-left: 0; }
  .marquees { padding: 18vw 0; }
}

@media (hover: none) {
  .orbit__hand { display: none; }
}

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