/* ============================================================
   Rasel Talukder — Portfolio
   Palette: off-white · gray · dark orange
   ============================================================ */
:root {
  --paper: #f3f0ea;
  --paper-2: #ebe7df;
  --card: #fbfaf7;
  --ink: #1d1c1a;
  --ink-2: #2a2927;
  --gray-700: #4a4743;
  --gray-500: #77726b;
  --gray-400: #a29d95;
  --line: #dcd7ce;
  --line-dark: #3a3835;
  --orange: #c2410c;
  --orange-2: #dd5316;
  --orange-soft: #f5e1d5;

  --f-display: "Inter Tight", "Inter Display", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--orange); color: var(--paper); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.accent { color: var(--orange); }
.muted { color: var(--gray-500); }

/* ---------- Intro loader ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
  transition: transform .9s var(--ease);
}
.intro.done { transform: translateY(-100%); }
.intro__top, .intro__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.intro__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 9vw, 130px); line-height: .9; letter-spacing: -.04em; overflow: hidden; }
.intro__name span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.intro__name span:nth-child(2) { animation-delay: .08s; }
.intro__count { font-family: var(--f-display); font-size: clamp(40px, 9vw, 130px); font-weight: 500; line-height: .9; color: var(--orange); font-variant-numeric: tabular-nums; }
.intro__skip { color: var(--gray-400); }
.intro__bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--orange); width: 0; transition: width .1s linear; }
@keyframes rise { to { transform: translateY(0); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: calc(100% - 28px); max-width: calc(var(--wrap) - 20px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px;
  background: rgba(243, 240, 234, .72);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(29, 28, 26, .08);
  border-radius: 999px;
  transition: transform .5s var(--ease), background .3s;
}
.nav.hide { transform: translate(-50%, -140%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.nav__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--gray-700); transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--paper-2); color: var(--ink); }
.nav__menu { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); align-items: center; justify-content: center; }
.nav__menu span { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.nav__menu span::before, .nav__menu span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s; }
.nav__menu span::before { top: -5px; } .nav__menu span::after { top: 5px; }
.nav.open .nav__menu span { background: transparent; }
.nav.open .nav__menu span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .nav__menu span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons (text swap on hover) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  transition: background .3s var(--ease), transform .3s var(--ease);
  overflow: hidden;
}
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--orange { background: var(--orange); }
.btn--orange:hover { background: var(--orange-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn__t { display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn__t > span { grid-area: 1/1; transition: transform .45s var(--ease); }
.btn__t > span:last-child { transform: translateY(110%); }
.btn:hover .btn__t > span:first-child { transform: translateY(-110%); }
.btn:hover .btn__t > span:last-child { transform: translateY(0); }
.btn__arrow { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); transition: transform .4s var(--ease); }
.btn--ghost .btn__arrow { background: var(--paper-2); }
.btn:hover .btn__arrow { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 140px 0 60px; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13px; color: var(--gray-700);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2f9e5b; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2f9e5b; opacity: 0; animation: ping 2s infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(42px, 5.7vw, 84px); line-height: .95; letter-spacing: -.045em;
  margin: 26px 0 26px;
}
.hero h1 .serif { font-size: 1.08em; letter-spacing: -.02em; color: var(--orange); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-in .hero h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
.hero h1 .line:nth-child(3) > span { transition-delay: .16s; }
.hero__intro { max-width: 540px; font-size: 18px; color: var(--gray-700); margin: 0 0 30px; }

/* rich text (admin editor output) */
.rich p { margin: 0 0 .75em; }
.rich > :last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 .75em; padding-left: 1.25em; }
.rich li { margin: .2em 0; }
.rich li::marker { color: var(--orange); }
.rich hr { border: 0; border-top: 1px solid currentColor; opacity: .18; margin: 1em 0; }
.rich a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.rich h3, .rich h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; margin: 0 0 .4em; color: inherit; }
.rich h3 { font-size: 1.3em; } .rich h4 { font-size: 1.1em; }
.rich blockquote { margin: 0 0 .75em; padding-left: 14px; border-left: 3px solid var(--orange); }
.rich b, .rich strong { font-weight: 600; color: inherit; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero visual: photo + orbiting skills */
.heroviz { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.04; margin-left: auto; --mx: 0; --my: 0; }
.heroviz__glow { position: absolute; left: 50%; top: 46%; width: 90%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(221,83,22,.22), transparent 62%); filter: blur(10px); }
.heroviz__disc { position: absolute; left: 50%; top: 46%; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e86a2c, var(--orange) 50%, #7c2a09);
  box-shadow: inset 0 -20px 60px rgba(0,0,0,.25), 0 30px 60px -20px rgba(124,42,9,.5);
  transform: translate(-50%, -50%) translate(calc(var(--mx) * 10px), calc(var(--my) * 10px)) scale(.4); opacity: 0;
  transition: transform 1.4s var(--ease) .2s, opacity .8s .2s; }
.heroviz.in .heroviz__disc { transform: translate(-50%, -50%) translate(calc(var(--mx) * 10px), calc(var(--my) * 10px)) scale(1); opacity: 1; }
.orbit { position: absolute; left: 50%; top: 46%; width: 90%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.85); opacity: 0; transition: transform 1.6s var(--ease) .35s, opacity 1s .35s; }
.heroviz.in .orbit { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(29,28,26,.18); }
.orbit__ring::after { content: ""; position: absolute; inset: 13%; border-radius: 50%; border: 1px solid rgba(29,28,26,.08); }
.orbit__spin { position: absolute; inset: 0; animation: spin 70s linear infinite; }
.node { position: absolute; transform: translate(-50%, -50%); }
.node__in { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: spin 70s linear infinite reverse; }
.node__ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--orange); border: 1px solid var(--line); box-shadow: 0 10px 24px -8px rgba(29,28,26,.25); transition: background .3s, color .3s, transform .4s var(--ease); }
.node__ic svg { width: 22px; height: 22px; }
.node__lb { font-size: 11.5px; font-weight: 500; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: rgba(243,240,234,.9); border: 1px solid var(--line); color: var(--gray-700); }
.node:hover .node__ic { background: var(--orange); color: var(--paper); transform: scale(1.12); }
.heroviz:hover .orbit__spin, .heroviz:hover .node__in { animation-play-state: paused; }
.heroviz__photo { position: absolute; left: 50%; bottom: 0; width: 70%; z-index: 3;
  transform: translateX(-50%) translate(calc(var(--mx) * -16px), calc(var(--my) * -8px)); transition: transform .6s var(--ease); pointer-events: none; }
.heroviz__photo img { width: 100%; opacity: 0; transform: translateY(16%) scale(.96); filter: blur(6px) drop-shadow(0 24px 30px rgba(29,28,26,.25));
  transition: opacity 1s var(--ease) .45s, transform 1.4s var(--ease) .45s, filter 1.2s var(--ease) .45s; }
.heroviz.in .heroviz__photo img { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 24px 30px rgba(29,28,26,.25)); animation: breathe 7s ease-in-out 2s infinite; }
@keyframes breathe { 50% { transform: translateY(-6px); } }
.chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 30px -12px rgba(29,28,26,.3);
  opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.heroviz.in .chip { opacity: 1; transform: none; animation: bob 6s ease-in-out infinite; }
.chip b { font-family: var(--f-display); font-size: 28px; letter-spacing: -.03em; color: var(--orange); line-height: 1; font-variant-numeric: tabular-nums; }
.chip small { font-size: 11.5px; line-height: 1.25; color: var(--gray-500); }
.chip--1 { left: -2%; top: 20%; transition-delay: .9s; }
.chip--2 { right: -2%; top: 40%; transition-delay: 1.05s; animation-delay: -2s !important; }
.chip--3 { left: 2%; bottom: 20%; transition-delay: 1.2s; animation-delay: -4s !important; }
.heroviz__tag { position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 16px; background: var(--ink); color: var(--paper); white-space: nowrap; box-shadow: 0 16px 34px -12px rgba(0,0,0,.45); transition: all .9s var(--ease) 1.3s; }
.heroviz.in .heroviz__tag { opacity: 1; transform: translate(-50%, 0); }
.heroviz__tag b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.heroviz__tag small { color: var(--gray-400); font-size: 12.5px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; margin-top: 64px; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--gray-700); white-space: nowrap; }
.marquee__item .star { color: var(--orange); font-size: 18px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec--tint { background: var(--paper-2); }
.sec__head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); align-items: start; }
.sec__label { display: flex; gap: 10px; align-items: center; color: var(--gray-500); padding-top: 14px; }
.sec--dark .sec__label { color: var(--gray-400); }
.sec__label b { color: var(--orange); font-weight: 500; }
.sec__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 5.4vw, 76px); line-height: .98; letter-spacing: -.04em; margin: 0; max-width: 14ch; }
.sec__title .serif { color: var(--orange); }
.sec__sub { max-width: 520px; color: var(--gray-500); margin: 18px 0 0; font-size: 17px; }
.sec--dark .sec__sub { color: var(--gray-400); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Clients: moving logo wall ---------- */
.logowall { display: grid; gap: 16px; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logowall__row { overflow: hidden; padding: 8px 0; }
.logowall__track { display: flex; gap: 16px; width: max-content; animation: scroll 60s linear infinite; }
.logowall__row--rev .logowall__track { animation-direction: reverse; animation-duration: 70s; }
.logowall:hover .logowall__track { animation-play-state: paused; }
.lcard { flex: none; position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; min-width: 310px; padding: 18px 46px 18px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s, box-shadow .4s; }
.lcard::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(221,83,22,.14), transparent); transform: skewX(-18deg); animation: shine 7s ease-in-out infinite; }
.lcard:nth-child(3n+2)::after { animation-delay: 2.3s; } .lcard:nth-child(3n)::after { animation-delay: 4.6s; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.lcard:hover { transform: translateY(-5px) rotate(-1deg); border-color: var(--orange); box-shadow: 0 18px 34px -16px rgba(194,65,12,.45); }
.lcard__logo { width: 62px; height: 62px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--paper); overflow: hidden; }
.lcard__logo img { max-width: 80%; max-height: 80%; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .8; transition: filter .4s, opacity .4s, transform .5s var(--ease); }
.lcard:hover .lcard__logo img { filter: none; opacity: 1; transform: scale(1.08); }
.logo-mono i { font-style: normal; width: 62px; height: 62px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -.03em; background: var(--ink); color: var(--paper); transition: background .35s, transform .5s var(--ease); }
.lcard:hover .logo-mono i { background: var(--orange); transform: rotate(-8deg) scale(1.05); }
.lcard__txt b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.lcard__txt small { color: var(--gray-500); font-size: 13.5px; }
.lcard__n { position: absolute; top: 14px; right: 16px; color: var(--gray-400); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.portrait { position: relative; margin: 0; aspect-ratio: 4/5; --mx: 0; --my: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); isolation: isolate; }
.portrait__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 100%, #3a3835 0%, var(--ink) 60%); }
.portrait__bg::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; left: 10%; top: 14%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--orange-2), var(--orange) 55%, #7c2a09); }
.portrait__ring { position: absolute; width: 92%; aspect-ratio: 1; left: 4%; top: 9%; border-radius: 50%; border: 1.5px solid rgba(243,240,234,.16); animation: spin 26s linear infinite; border-top-color: rgba(243,240,234,.55); }
.portrait__ring--2 { width: 104%; left: -2%; top: 3%; animation-duration: 40s; animation-direction: reverse; border-top-color: transparent; border-right-color: var(--orange-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait { clip-path: circle(0% at 50% 60%); transition: clip-path 1.6s var(--ease), opacity .9s var(--ease), transform .9s var(--ease) !important; }
.about.in .portrait { clip-path: circle(85% at 50% 50%); }
.portrait__bg::before { transition: transform 1.6s var(--ease) .3s; transform: scale(.6); }
.about.in .portrait .portrait__bg::before { transform: translate(calc(var(--mx) * 12px), calc(var(--my) * 12px)) scale(1); }
.portrait img { position: absolute; left: 50%; bottom: 0; height: 95%; width: auto; max-width: none;
  transform: translateX(-50%) translate(calc(var(--mx) * -14px), 14%) scale(1.06); opacity: 0; filter: blur(8px) drop-shadow(0 24px 40px rgba(0,0,0,.45));
  transition: transform 1.6s var(--ease) .35s, opacity 1.1s var(--ease) .35s, filter 1.3s var(--ease) .35s; }
.about.in .portrait img { transform: translateX(-50%) translate(calc(var(--mx) * -14px), 0) scale(1); opacity: 1; filter: blur(0) drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
.portrait .float, .portrait__tag { opacity: 0; translate: 0 14px; transition: opacity .8s var(--ease) 1.1s, translate .8s var(--ease) 1.1s; }
.about.in .portrait .float, .about.in .portrait .portrait__tag { opacity: 1; translate: 0 0; }
.portrait__tag { transition-delay: 1.3s; }
.portrait__mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 120px; color: var(--paper); }
.portrait__tag { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(243,240,234,.94); backdrop-filter: blur(8px); color: var(--ink); }
.portrait__tag b { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.portrait__tag span { color: var(--gray-500); font-size: 14px; }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: bob 5s ease-in-out infinite; }
.float b { font-family: var(--f-display); color: var(--orange); font-size: 16px; }
.float--1 { top: 22px; left: 18px; }
.float--2 { bottom: 88px; right: 16px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.about__text { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--gray-700); margin: 0 0 28px; letter-spacing: -.01em; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span:first-child { color: var(--gray-500); flex: none; }
.facts li span:last-child { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.facts a:hover { color: var(--orange); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border-radius: var(--r); padding: 18px; background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile--orange { background: var(--orange); color: var(--paper); border-color: var(--orange); }
.tile h4 { margin: 0 0 4px; font-family: var(--f-display); font-size: 18px; letter-spacing: -.02em; font-weight: 600; }
.tile p { margin: 0; font-size: 13.5px; opacity: .78; line-height: 1.4; }
.about__sub { margin-top: clamp(60px, 8vw, 100px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.about__h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 30px; }

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 60px); }
.svc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.svc__btn { width: 100%; display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); text-align: left; color: var(--gray-400); transition: color .3s, padding .4s var(--ease); }
.svc__btn .mono { color: var(--gray-500); width: 26px; }
.svc__btn strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.03em; }
.svc__btn:hover { color: var(--paper); }
.svc__btn.active { color: var(--paper); padding-left: 12px; }
.svc__btn.active .mono { color: var(--orange-2); }
.svc__panel { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); position: sticky; top: 100px; min-height: 420px; display: flex; flex-direction: column; }
.svc__top { display: flex; justify-content: space-between; align-items: center; color: var(--gray-400); }
.svc__tag { padding: 6px 12px; border-radius: 999px; background: rgba(194,65,12,.18); color: #f08a5d; }
.svc__panel h3 { font-family: var(--f-display); font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.04em; line-height: 1; margin: 34px 0 14px; font-weight: 600; }
.svc__desc { color: var(--gray-400); font-size: 17px; margin: 0 0 26px; max-width: 46ch; }
.svc__points { list-style: none; padding: 0; margin: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc__points li { display: flex; gap: 10px; align-items: center; padding: 13px 14px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: 14.5px; }
.svc__points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-2); flex: none; }
.svc__anim { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; align-items: start; }
.skillgroup { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.skillgroup h4 { margin: 0 0 18px; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.skillgroup h4 .mono { color: var(--gray-400); }
.skill { margin-bottom: 14px; opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--sd, 0s); }
.in .skill { opacity: 1; transform: none; }
.skill:last-child { margin-bottom: 0; }
.skill__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; margin-bottom: 7px; }
.skill__row span:last-child { font-family: var(--f-mono); font-size: 12px; color: var(--gray-500); }
.skill__bar { height: 4px; border-radius: 4px; background: var(--paper-2); margin-right: 5px; }
.skill__bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; transition: width 1.5s var(--ease), background .3s; transition-delay: var(--sd, 0s); position: relative; }
.skill__bar i::after { content: ""; position: absolute; right: -1px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); transform: translate(50%, -50%) scale(0); transition: transform .4s var(--ease); transition-delay: calc(var(--sd, 0s) + 1.2s); }
.in .skill__bar i::after { transform: translate(50%, -50%) scale(1); }
.skill__pct { font-variant-numeric: tabular-nums; }
.skill__bar { overflow: visible; }
.skillgroup:hover .skill__bar i { background: var(--orange); }
.in .skill__bar i { width: var(--w); }

/* ---------- Work (drag carousel) ---------- */
.work__ctrl { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; color: var(--gray-500); }
.work__arrows { display: flex; gap: 8px; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .25s, color .25s; }
.round:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; cursor: grab; scrollbar-width: none; }
.work::-webkit-scrollbar { display: none; }
.work.dragging { cursor: grabbing; scroll-snap-type: none; }
.work.dragging * { pointer-events: none; }
.proj { flex: 0 0 min(440px, 84vw); scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.proj__media { aspect-ratio: 16/10; background: var(--paper-2); position: relative; overflow: hidden; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.proj:hover .proj__media img, .proj:hover .ph { transform: scale(1.04); }
.proj__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proj__cat { color: var(--orange); }
.proj h3 { margin: 0; font-family: var(--f-display); font-size: 24px; letter-spacing: -.03em; line-height: 1.1; font-weight: 600; }
.proj__sum { color: var(--gray-500); font-size: 15px; }
.proj__metrics { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
.proj__metrics div { flex: 1; padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.proj__metrics b { display: block; font-family: var(--f-display); font-size: 24px; letter-spacing: -.03em; }
.proj__metrics small { color: var(--gray-500); font-size: 12px; }
.proj__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; font-size: 14px; color: var(--gray-700); }

/* placeholder visual (no image yet) */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; color: var(--paper); transition: transform .8s var(--ease); overflow: hidden; }
.ph::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 16px 16px; pointer-events: none; }
.ph--0 { background: linear-gradient(135deg, #1d1c1a, #3d3a36); }
.ph--1 { background: linear-gradient(135deg, #c2410c, #7c2a09); }
.ph--2 { background: linear-gradient(135deg, #77726b, #3a3835); }
.ph--3 { background: linear-gradient(135deg, #e7dfd2, #cfc6b8); color: var(--ink); }
.ph__big { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; line-height: .95; position: relative; z-index: 1; }
.ph__top { display: flex; justify-content: space-between; position: relative; z-index: 1; opacity: .8; }
.ph__circle { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -12%; bottom: -18%; border: 1.5px solid currentColor; opacity: .2; }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.vid { border-radius: var(--r); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-dark); }
.vid__frame { position: relative; aspect-ratio: 16/9; background: #000; cursor: pointer; overflow: hidden; }
.vid--short .vid__frame { aspect-ratio: 9/16; max-height: 560px; margin: 0 auto; }
.vid__frame img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s var(--ease); }
.vid__frame:hover img { opacity: 1; transform: scale(1.03); }
.vid__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; transition: transform .35s var(--ease); }
.vid__frame:hover .vid__play { transform: translate(-50%, -50%) scale(1.1); }
.vid__info { padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.vid__info b { font-weight: 500; }
.vid__info .mono { color: var(--gray-400); }
.yt-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line-dark); flex-wrap: wrap; }
.yt-card h3 { margin: 0 0 6px; font-family: var(--f-display); font-size: 28px; letter-spacing: -.03em; }
.yt-card p { margin: 0; color: var(--gray-400); }

/* ---------- Design gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--gray-700); transition: all .25s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery { columns: 3 260px; column-gap: 16px; }
.gal { break-inside: avoid; margin-bottom: 16px; border-radius: var(--r); overflow: hidden; position: relative; background: var(--paper-2); cursor: zoom-in; display: block; width: 100%; }
.gal img { width: 100%; transition: transform .7s var(--ease); }
.gal:hover img { transform: scale(1.03); }
.gal .ph { position: relative; min-height: 300px; }
.gal:nth-child(3n+2) .ph { min-height: 380px; }
.gal:nth-child(4n) .ph { min-height: 240px; }
.gal__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(243,240,234,.92); backdrop-filter: blur(8px); font-size: 14px; transform: translateY(8px); opacity: 0; transition: all .35s var(--ease); color: var(--ink); text-align: left; }
.gal:hover .gal__cap, .gal:focus-visible .gal__cap { transform: none; opacity: 1; }
.gal__cap .mono { color: var(--orange); font-size: 11px; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20,19,18,.92); display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 12px; }
.lightbox button { position: absolute; top: 20px; right: 20px; color: var(--paper); }

/* ---------- Websites ---------- */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.site { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: transform .4s var(--ease); }
.site:hover { transform: translateY(-4px); }
.site__bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.site__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.site__bar span { margin-left: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site__shot { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--paper-2); }
.site__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site__body { padding: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.site__body b { display: block; font-family: var(--f-display); font-size: 18px; letter-spacing: -.02em; }
.site__body small { color: var(--gray-500); }

/* ---------- Experience: accordion ---------- */
.xp { border-top: 1px solid var(--line); }
.xp__item { border-bottom: 1px solid var(--line); position: relative; transition: background .4s var(--ease); }
.xp__item::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--orange); transition: width .8s var(--ease); }
.xp__item:hover::before, .xp__item.open::before { width: 100%; }
.xp__item.open { background: linear-gradient(180deg, var(--card), transparent); }
.xp__head { width: 100%; display: grid; grid-template-columns: 190px minmax(0, 1fr) auto 46px; gap: 24px; align-items: center; padding: 26px 12px 26px 0; text-align: left; transition: padding .5s var(--ease); }
.xp__item.open .xp__head, .xp__head:hover { padding-left: 12px; }
.xp__period { color: var(--gray-500); }
.xp__main { display: block; }
.xp__role { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.03em; line-height: 1.15; transition: color .3s; }
.xp__head:hover .xp__role, .xp__item.open .xp__role { color: var(--orange); }
.xp__co { display: block; color: var(--gray-500); margin-top: 3px; }
.xp__now { display: inline-flex; align-items: center; gap: 7px; color: #2f9e5b; padding: 6px 11px; border-radius: 999px; background: #e3f1e8; }
.xp__plus { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .35s, border-color .35s, transform .5s var(--ease); }
.xp__plus::before, .xp__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); transition: background .3s; }
.xp__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.xp__head:hover .xp__plus { border-color: var(--ink); }
.xp__item.open .xp__plus { background: var(--orange); border-color: var(--orange); transform: rotate(135deg); }
.xp__item.open .xp__plus::before, .xp__item.open .xp__plus::after { background: var(--paper); }
.xp__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.xp__item.open .xp__body { grid-template-rows: 1fr; }
.xp__inner { overflow: hidden; }
.xp ul { margin: 0; padding: 0 70px 30px 226px; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.xp li { position: relative; padding-left: 20px; color: var(--gray-700); font-size: 15px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.xp__item.open li { opacity: 1; transform: none; transition-delay: calc(var(--i) * .07s + .2s); }
.xp li::before { content: "→"; position: absolute; left: 0; color: var(--orange); font-size: 13px; top: 1px; }

/* ---------- Education / Certs ---------- */
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.edu__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.edu__col h4 { margin: 0 0 18px; display: flex; justify-content: space-between; color: var(--gray-500); font-weight: 400; }
.edu__item { padding: 14px 0; border-top: 1px solid var(--line); }
.edu__item:first-of-type { border-top: 0; padding-top: 0; }
.edu__item b { display: block; font-weight: 600; letter-spacing: -.01em; }
.edu__item small { color: var(--gray-500); display: block; font-size: 13.5px; margin-top: 2px; }
.edu__item .tag { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 6px; background: var(--orange-soft); color: var(--orange); font-family: var(--f-mono); font-size: 11px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.quote__txt { font-size: 17px; line-height: 1.5; }
.quote__txt::before { content: "“"; font-family: var(--f-serif); color: var(--orange); font-size: 46px; line-height: 0; vertical-align: -18px; margin-right: 4px; }
.quote__who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.quote__who .avatar { width: 42px; height: 42px; font-size: 15px; box-shadow: none; }
.quote__who small { display: block; color: var(--gray-500); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px); }
.contact__big { font-family: var(--f-display); font-weight: 600; font-size: clamp(44px, 6.6vw, 96px); line-height: .92; letter-spacing: -.045em; margin: 0 0 30px; }
.contact__big .serif { color: var(--orange-2); }
.clines { display: grid; gap: 1px; background: var(--line-dark); border-radius: var(--r); overflow: hidden; }
.cline { background: var(--ink-2); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background .25s; }
a.cline:hover { background: #33312e; }
.cline .mono { color: var(--gray-400); }
.cline b { font-weight: 500; text-align: right; word-break: break-word; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; color: var(--gray-500); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.form__note { font-size: 14px; min-height: 1.2em; margin: 0; }
.form__note.ok { color: #2f7d4f; } .form__note.err { color: var(--orange); }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.clock { display: flex; align-items: center; gap: 8px; color: var(--gray-500); font-size: 13px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--paper); padding: 40px 0 0; overflow: hidden; border-top: 1px solid var(--line-dark); }
.foot__top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; color: var(--gray-400); font-size: 14px; }
.foot__links a:hover { color: var(--paper); }
.wordmark {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.06em; line-height: .8;
  font-size: clamp(38px, 9.6vw, 138px); white-space: nowrap; text-align: center;
  display: flex; justify-content: center; margin: 24px 0 18px; user-select: none; line-height: 1;
}
.wordmark span { display: inline-block; transition: transform .5s var(--ease), color .3s; }
.wordmark span:hover { transform: translateY(-12%); color: var(--orange); }
.wordmark .sp { width: .28em; }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 24px; border-top: 1px solid var(--line-dark); color: var(--gray-400); font-size: 13px; position: relative; z-index: 1; background: var(--ink); }

/* back to top / mode badge */
.demo-badge { position: fixed; left: 14px; bottom: 14px; z-index: 40; padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12px; color: var(--gray-700); display: flex; gap: 8px; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.demo-badge a { color: var(--orange); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid, .about, .svc, .contact { grid-template-columns: 1fr; }
  .portrait { max-width: 480px; width: 100%; margin: 0 auto; }
  .heroviz { margin: 10px auto 0; max-width: 520px; }
  .xp__head { grid-template-columns: minmax(0, 1fr) 46px; gap: 6px 16px; }
  .xp__period { grid-column: 1; }
  .xp__main { grid-column: 1; }
  .xp__now { grid-column: 1; justify-self: start; }
  .xp__plus { grid-column: 2; grid-row: 1 / span 3; }
  .xp ul { padding: 0 0 26px 12px; grid-template-columns: 1fr; }
  .svc__panel { position: relative; top: 0; min-height: 0; }
  .edu { grid-template-columns: 1fr; }
  .xp__item { grid-template-columns: 1fr; gap: 12px; }
  .sec__head { grid-template-columns: 1fr; gap: 8px; }
  .sec__label { padding-top: 0; }
}
@media (max-width: 860px) {
  .nav__links, .nav .btn { display: none; }
  .nav__menu { display: inline-flex; }
  .nav.open { border-radius: 24px; flex-wrap: wrap; }
  .nav.open .nav__links { display: flex; flex-direction: column; width: 100%; order: 3; padding: 8px 0 6px; }
  .nav.open .nav__links a { font-size: 18px; padding: 12px 10px; }
}
@media (max-width: 620px) {
  .logo-mono span { font-size: 13px; }
  .svc__points, .form__row, .tiles { grid-template-columns: 1fr; }
  .node__lb { display: none; }
  .node__ic { width: 40px; height: 40px; }
  .node__ic svg { width: 18px; height: 18px; }
  .chip { padding: 8px 10px; }
  .chip b { font-size: 22px; }
  .chip--1 { left: 0; } .chip--2 { right: 0; } .chip--3 { display: none; }
  .lcard { min-width: 250px; padding: 14px 40px 14px 14px; }
  .lcard__logo, .logo-mono i { width: 50px; height: 50px; }
  .hero { padding-top: 120px; }
  .hero__intro { font-size: 16.5px; }
  .big-num { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track, .logowall__track, .orbit__spin, .node__in { animation: none !important; }
  .portrait { clip-path: none; }
}

/* ---------- Custom cursor + scroll progress ---------- */
html { scrollbar-color: var(--orange) var(--paper-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; border: 2px solid var(--paper-2); }
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 150; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.cursor-on.has-cursor, .cursor-on.has-cursor body, .cursor-on.has-cursor a, .cursor-on.has-cursor button, .cursor-on.has-cursor [role=button], .cursor-on.has-cursor .gal, .cursor-on.has-cursor .work { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 200; opacity: 0; transition: opacity .3s; }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--orange); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1.5px solid var(--orange); display: grid; place-items: center;
  transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s; }
.cursor-ring.is-hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(194,65,12,.12); }
.cursor-ring.is-drag { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--orange); }
.cursor-ring.is-text { opacity: .25; }
.cursor-ring.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cursor-ring__txt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); }

/* ============ Round 4 additions ============ */
/* marquee + orbit custom icons */
.marquee__ic { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.node__ic img { width: 60%; height: 60%; object-fit: contain; }

/* ---------- Skills: tabs + animated rings ---------- */
.sk__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; color: var(--gray-700); transition: all .3s var(--ease); }
.chip-tab i, .chip i { font-style: normal; font-family: var(--f-mono); font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--paper-2); color: var(--gray-500); transition: all .3s; }
.chip-tab:hover { border-color: var(--ink); }
.chip-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-tab.active i, .chip.active i { background: var(--orange); color: var(--paper); }
.sk__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); gap: 14px; }
.ring { position: relative; padding: 22px 16px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-align: center; overflow: hidden;
  opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .7s var(--ease), transform .7s var(--ease), background .4s, color .4s, border-color .4s; transition-delay: var(--sd, 0s), var(--sd, 0s), 0s, 0s, 0s; }
.sk__grid.in .ring { opacity: 1; transform: none; }
.ring::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: -95%; border-radius: 50%; background: radial-gradient(circle, rgba(221,83,22,.18), transparent 60%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.ring:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-6px); transition-delay: 0s; }
.ring:hover::before { opacity: 1; }
.ring__dial { position: relative; width: 112px; height: 112px; margin: 0 auto 14px; transition: transform .6s var(--ease); }
.ring:hover .ring__dial { transform: scale(1.06) rotate(-6deg); }
.ring__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__bg { fill: none; stroke: var(--paper-2); stroke-width: 8; transition: stroke .4s; }
.ring:hover .ring__bg { stroke: #34322f; }
.ring__fg { fill: none; stroke: var(--orange); stroke-width: 8; stroke-linecap: round; stroke-dasharray: var(--C); stroke-dashoffset: var(--C);
  transition: stroke-dashoffset 1.7s var(--ease), stroke-width .3s; transition-delay: calc(var(--sd, 0s) + .15s), 0s; filter: drop-shadow(0 4px 8px rgba(194,65,12,.25)); }
.sk__grid.in .ring__fg { stroke-dashoffset: calc(var(--C) * (1 - var(--p) / 100)); }
.ring:hover .ring__fg { stroke-width: 10; stroke: var(--orange-2); }
.ring__num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring__num small { font-size: .5em; color: var(--orange); margin-left: 1px; align-self: center; }
.ring__num > span:first-child { display: inline-flex; align-items: baseline; }
.ring__ic { width: 34px; height: 34px; color: var(--orange); }
.ring__name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.25; }
.ring__grp { margin-top: 6px; color: var(--gray-400); font-size: 10.5px; }

/* ---------- Gallery categories ---------- */
.filters .chip { display: inline-flex; align-items: center; gap: 8px; transition: all .3s var(--ease); }
.filters .chip:hover { border-color: var(--ink); }
.gal { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--gi, 0) * .07s); }
.gal.gal--in { opacity: 1; transform: none; }
.gal__more { display: flex; justify-content: center; margin-top: 18px; }
.gal__more .btn[hidden] { display: none; }

/* ---------- Education / certifications hover ---------- */
.edu__col { transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease); position: relative; overflow: hidden; }
.edu__col::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--orange); transition: width .7s var(--ease); }
.edu__col:hover { transform: translateY(-8px); border-color: rgba(194,65,12,.35); box-shadow: 0 24px 44px -24px rgba(29,28,26,.35); }
.edu__col:hover::after { width: 100%; }
.edu__item { border-radius: 12px; margin: 0 -10px; padding: 14px 10px; transition: background .3s, transform .4s var(--ease); }
.edu__item:first-of-type { padding-top: 14px; }
.edu__item:hover { background: var(--paper); transform: translateX(6px); }
.edu__item:hover b { color: var(--orange); }
.edu__item b { transition: color .3s; }
.edu__item--cert { display: flex; gap: 12px; align-items: center; }
.cert__thumb { position: relative; flex: none; width: 66px; height: 50px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); cursor: zoom-in; }
.cert__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cert__thumb span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(29,28,26,.55); color: var(--paper); font-size: 11px; font-weight: 600; opacity: 0; transition: opacity .3s; }
.edu__item:hover .cert__thumb img { transform: scale(1.12); }
.edu__item:hover .cert__thumb span { opacity: 1; }
.cert__link { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--orange); font-weight: 500; }
.cert__link:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact__text { color: var(--gray-400); font-size: 17px; max-width: 46ch; margin: -12px 0 26px; }
.cline__k { display: flex; align-items: center; gap: 12px; }
.cline__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--orange-2); transition: background .3s, color .3s, transform .4s var(--ease); flex: none; }
.cline__ic svg { width: 17px; height: 17px; }
a.cline:hover .cline__ic { background: var(--orange); color: var(--paper); transform: rotate(-8deg); }
.cline__ic--wa { color: #3ccf6e; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.soc { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--paper);
  transition: transform .45s var(--ease), background .3s, border-color .3s; animation: socIn .7s var(--ease) both; animation-delay: calc(var(--i) * .07s + .2s); }
.soc svg { width: 19px; height: 19px; }
.soc:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-5px) rotate(-6deg); }
.soc--whatsapp:hover { background: #25a35a; border-color: #25a35a; }
@keyframes socIn { from { opacity: 0; transform: translateY(14px) scale(.8); } }

/* ---------- Floating WhatsApp button ---------- */
.wa { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; color: #fff;
  animation: waIn .8s var(--ease) 1.6s both; }
.wa__btn { position: relative; z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25a35a;
  box-shadow: 0 12px 28px -8px rgba(37,163,90,.6); transition: transform .4s var(--ease); animation: waWiggle 6s ease-in-out 3s infinite; }
.wa__btn svg { width: 27px; height: 27px; }
.wa__btn svg path:first-child { stroke: #fff; } .wa__btn svg path:last-child { fill: #fff; }
.wa__ring { position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 50%; border: 2px solid #25a35a; animation: waPing 2.4s ease-out infinite; pointer-events: none; }
.wa__ring--2 { animation-delay: 1.2s; }
.wa__label { position: relative; z-index: 1; margin-left: -34px; padding: 10px 16px 10px 34px; border-radius: 999px; background: var(--ink); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  clip-path: inset(0 100% 0 0 round 999px); opacity: 0; transition: clip-path .5s var(--ease), opacity .3s; }
.wa:hover .wa__label, .wa:focus-visible .wa__label { clip-path: inset(0 0 0 0 round 999px); opacity: 1; }
.wa:hover .wa__btn { transform: scale(1.08); animation-play-state: paused; }
@keyframes waIn { from { opacity: 0; transform: translateY(30px) scale(.6); } }
@keyframes waPing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes waWiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-14deg); } 94% { transform: rotate(12deg); } 97% { transform: rotate(-6deg); } }
@media (max-width: 620px) { .wa { left: 12px; bottom: 12px; } .wa__btn, .wa__ring { width: 50px; height: 50px; } .ring__dial { width: 92px; height: 92px; } .ring__num { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { .wa, .wa__btn, .wa__ring, .soc { animation: none !important; } .ring, .gal { opacity: 1; transform: none; } }
/* fixes */
.ring__num { display: flex; align-items: center; justify-content: center; gap: 1px; }
.form { align-self: start; align-content: start; }
.edu__item { border-radius: 0; transition: background .3s, transform .4s var(--ease), border-radius .3s, border-color .3s; }
.edu__item:hover { border-radius: 12px; border-top-color: transparent; }
.edu__item:hover + .edu__item { border-top-color: transparent; }

/* ============ Round 5 ============ */
/* ---------- Skills: bar chart ---------- */
.sk__charts { position: relative; }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); }
.chart[hidden] { display: none; }
.chart__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.chart__head b { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; }
.chart__head small { color: var(--gray-500); font-size: 14px; }
.chart__avg { text-align: right; font-family: var(--f-display); font-weight: 600; font-size: 36px; letter-spacing: -.03em; color: var(--orange); line-height: 1; font-variant-numeric: tabular-nums; }
.chart__avg small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-500); margin-top: 6px; font-weight: 400; }
.chart__plot { position: relative; --h: 300px; padding-left: 36px; }
.chart__grid { position: absolute; left: 0; right: 0; top: 30px; height: var(--h); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart__grid span { position: relative; font-family: var(--f-mono); font-size: 10.5px; color: var(--gray-400); line-height: 0; }
.chart__grid span::after { content: ""; position: absolute; left: 32px; right: 0; top: 0; border-top: 1px dashed var(--line); }
.chart__grid span:last-child::after { border-top: 1px solid var(--gray-400); }
.chart__bars { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(10px, 2.4vw, 36px); align-items: end; }
.bar { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.bar__val { height: 30px; display: flex; align-items: center; font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); transition-delay: calc(var(--sd) + 1s); }
.bar__track { position: relative; width: 100%; max-width: 74px; height: var(--h); display: flex; align-items: flex-end; }
.bar__fill { position: relative; width: 100%; height: 0; border-radius: 14px 14px 4px 4px; background: linear-gradient(180deg, var(--orange-2), var(--orange) 55%, #9a330a); box-shadow: 0 14px 26px -14px rgba(194,65,12,.7);
  transition: height 1.4s var(--ease), filter .3s, transform .4s var(--ease); transition-delay: var(--sd), 0s, 0s; overflow: hidden; display: flex; justify-content: center; }
.bar__fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.1) 0 8px, transparent 8px 16px); background-size: 200% 200%; animation: barShine 6s linear infinite; }
@keyframes barShine { to { background-position: 100% 100%; } }
.bar:nth-child(even) .bar__fill { background: linear-gradient(180deg, #4a4743, var(--ink)); box-shadow: 0 14px 26px -14px rgba(29,28,26,.6); }
.bar__ic { position: relative; z-index: 1; margin-top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; opacity: 0; transition: opacity .4s; transition-delay: calc(var(--sd) + 1.1s); }
.bar__ic svg { width: 16px; height: 16px; } .bar__ic img { width: 18px; height: 18px; object-fit: contain; }
.bar__name { margin-top: 12px; font-size: 13.5px; font-weight: 500; text-align: center; line-height: 1.3; color: var(--gray-700); min-height: 2.6em; transition: color .3s; }
.sk__charts.in .chart.active .bar__fill { height: calc(var(--p) * 1%); }
.sk__charts.in .chart.active .bar__val, .sk__charts.in .chart.active .bar__ic { opacity: 1; transform: none; }
.chart.play .bar__fill { animation: barGrow 1.4s var(--ease) both; animation-delay: var(--sd); }
@keyframes barGrow { from { height: 0; } }
.bar:hover .bar__fill { filter: brightness(1.12); transform: scaleX(1.06); }
.bar:hover .bar__name { color: var(--orange); }
@media (max-width: 700px) {
  .chart__plot { padding-left: 0; --h: auto; }
  .chart__grid { display: none; }
  .chart__bars { grid-template-columns: 1fr; gap: 14px; }
  .bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
  .bar__name { order: 1; margin: 0; text-align: left; min-height: 0; font-size: 13px; }
  .bar__track { order: 2; height: 26px; max-width: none; background: var(--paper-2); border-radius: 8px; }
  .bar__val { order: 3; height: auto; font-size: 15px; justify-content: flex-end; }
  .bar__fill { height: 100% !important; width: 0; border-radius: 8px; transition: width 1.4s var(--ease); transition-delay: var(--sd); justify-content: flex-end; }
  .sk__charts.in .chart.active .bar__fill { width: calc(var(--p) * 1%); }
  .chart.play .bar__fill { animation: barGrowX 1.4s var(--ease) both; animation-delay: var(--sd); }
  .bar__ic { margin: 0 4px 0 0; width: 20px; height: 20px; align-self: center; }
  .bar__ic svg { width: 12px; height: 12px; }
}
@keyframes barGrowX { from { width: 0; } }

/* ---------- Graphic design: category tiles ---------- */
.ctiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ctile { position: relative; display: flex; flex-direction: column; text-align: left; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.ctile[hidden] { display: none; }
.ctile:hover { transform: translateY(-8px); border-color: var(--orange); box-shadow: 0 30px 50px -28px rgba(29,28,26,.45); }
.ctile__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.ctile__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ctile:hover .ctile__media > img, .ctile:hover .ph { transform: scale(1.06); }
.ctile__stack { position: absolute; right: 14px; bottom: 14px; display: flex; }
.ctile__stack img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 2px solid var(--card); margin-left: -14px; box-shadow: 0 6px 14px rgba(0,0,0,.2); transition: margin .4s var(--ease), transform .4s var(--ease); }
.ctile:hover .ctile__stack img { margin-left: -4px; }
.ctile:hover .ctile__stack img:nth-child(2) { transform: rotate(-6deg); } .ctile:hover .ctile__stack img:nth-child(3) { transform: rotate(6deg); }
.ctile__body { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; }
.ctile__body b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.ctile__body small { color: var(--gray-500); font-size: 13.5px; }
.ctile__go { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--paper); transition: background .3s, color .3s; }
.ctile__go i { font-style: normal; font-family: var(--f-mono); font-size: 12px; }
.ctile__go svg { transition: transform .4s var(--ease); }
.ctile:hover .ctile__go { background: var(--orange); color: var(--paper); }
.ctile:hover .ctile__go svg { transform: rotate(45deg); }
.ctile--extra { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.ctile--extra.in { opacity: 1; transform: none; }
@media (max-width: 900px) { .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ctiles { grid-template-columns: 1fr; } }

/* category page (full screen) */
.cpage-open, .cpage-open body { overflow: hidden; }
.cpage { position: fixed; inset: 0; z-index: 80; background: var(--paper); overflow-y: auto; padding-bottom: 60px; opacity: 0; transform: translateY(30px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.cpage.open { opacity: 1; transform: none; }
.cpage[hidden] { display: none; }
.cpage__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; background: rgba(243,240,234,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); max-width: none; }
.cpage__bar > div { flex: 1; }
.cpage__bar h3 { margin: 2px 0 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; line-height: 1; }
.cpage__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 22px; }
.cpage .gallery { columns: 3 260px; }

/* ---------- Experience: company link + location ---------- */
.xp__head { cursor: pointer; }
.xp__co { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.xp__link { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(194,65,12,.35); text-underline-offset: 4px; transition: color .25s, text-decoration-color .25s; }
.xp__link:hover { color: var(--orange); text-decoration-color: var(--orange); }
.xp__link svg { transition: transform .3s var(--ease); }
.xp__link:hover svg { transform: translate(2px, -2px); }
.xp__mode { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--gray-500); }
.xp__loc { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12.5px; color: var(--gray-400); }
.xp__loc svg { color: var(--orange); flex: none; }

/* ---------- Contact: heading on top, two equal cards ---------- */
.contact__top { max-width: 820px; margin-bottom: 34px; }
.contact__top .contact__big { margin-bottom: 14px; }
.contact__top .contact__text { margin: 0; }
.contact { align-items: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.ccard { display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.ccard__head { margin-bottom: 18px; }
.ccard__head b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.ccard__head small { color: var(--gray-400); font-size: 14px; }
.ccard .clines { background: var(--line-dark); flex: 1; display: flex; flex-direction: column; }
.ccard .cline { flex: 1; background: #252422; }
.ccard .socials { margin-top: 20px; }
.contact .form { align-self: stretch; display: flex; flex-direction: column; gap: 16px; }
.contact .form > .field:has(textarea) { flex: 1; display: flex; flex-direction: column; }
.contact .form textarea { flex: 1; min-height: 150px; }

/* photo size / position (admin slider theke) */
.heroviz__photo { width: calc(var(--ps, 70) * 1%); bottom: calc(var(--py, 0) * -1%); }
.heroviz__photo img { max-height: none; }
.portrait img { height: calc(var(--aps, 95) * 1%); bottom: calc(var(--apy, 0) * -1%); }
