/* Jerico Reables — portfolio.
   Design language: cream ground with drifting contour lines, navy ink, blue accent,
   a profile rail on desktop and a phone-app shell with a tab bar on mobile. */
:root {
  --cream: #F4F4ED;
  --paper: #FBFBF7;
  --white: #FFFFFF;
  --navy: #0B1E3F;
  --ink-rgb: 11, 30, 63;
  --muted: #5A6479;
  --accent: #0059B3;
  --accent-hover: #2C84DD;
  --accent-rgb: 0, 89, 179;
  --verified: #0866FF;
  --success: #2E9E6B;
  --line: rgba(var(--ink-rgb), .14);
  --line-strong: rgba(var(--ink-rgb), .28);
  --tint: rgba(var(--ink-rgb), .05);
  --tint-strong: rgba(var(--ink-rgb), .09);
  --glass: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 38%),
           linear-gradient(100deg, rgba(255,255,255,.97), rgba(255,255,255,.93) 42%, rgba(219,231,255,.95) 76%, rgba(186,209,255,.96));
  --rail-bg: rgba(251, 251, 247, .74);
  --shadow-card: 0 40px 120px -30px rgba(6, 12, 26, .35);
  --shadow-soft: 0 20px 60px -20px rgba(var(--ink-rgb), .25);
  --shadow-btn: 0 8px 24px -8px rgba(var(--ink-rgb), .35);
  --radius-card: 22px;
  --radius-pill: 999px;
  --rail-w: 0px;
  --ease-spring: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.25, .1, .25, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI Variable Display", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --topo-bg: #F4F4ED;
  --topo-line: #757575;
  --topo-alpha: .5;
  /* nav icon tiles */
  --ni-home: #E3EDFA; --ni-home-ink: #0059B3;
  --ni-auto: #FFF0D2; --ni-auto-ink: #B36A00;
  --ni-web: #DDF3E7; --ni-web-ink: #1E8A57;
  --ni-exp: #ECE6FB; --ni-exp-ink: #6A4BC4;
  --ni-contact: #FBE3E7; --ni-contact-ink: #C2405A;
  --ni-plat: #E1F2F7; --ni-plat-ink: #127A93;
  --ni-ea: #FDEBDD; --ni-ea-ink: #C2611F;
  color-scheme: light;
}
[data-theme="dark"] {
  --cream: #070B14;
  --paper: #0B1120;
  --white: #0E1626;
  --navy: #EDF0F6;
  --muted: rgba(237, 240, 246, .62);
  --accent: #5AA2E8;
  --accent-hover: #7DB6EE;
  --accent-rgb: 90, 162, 232;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .22);
  --tint: rgba(255, 255, 255, .05);
  --tint-strong: rgba(255, 255, 255, .09);
  --glass: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 40%),
           linear-gradient(100deg, rgba(14,22,38,.94), rgba(16,26,48,.92) 45%, rgba(18,40,96,.9) 80%, rgba(24,56,140,.88));
  --rail-bg: rgba(11, 17, 32, .74);
  --shadow-card: 0 40px 120px -30px rgba(0, 0, 0, .85);
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, .75);
  --shadow-btn: 0 8px 24px -8px rgba(0, 0, 0, .7);
  --topo-bg: #060C1A;
  --topo-line: #FFFFFF;
  --topo-alpha: .22;
  --ni-home: rgba(90,162,232,.16); --ni-home-ink: #7DB6EE;
  --ni-auto: rgba(255,176,32,.14); --ni-auto-ink: #F2B54A;
  --ni-web: rgba(61,186,116,.14); --ni-web-ink: #5FCB91;
  --ni-exp: rgba(150,120,240,.16); --ni-exp-ink: #B39CF5;
  --ni-contact: rgba(240,100,130,.15); --ni-contact-ink: #F28CA2;
  --ni-plat: rgba(40,180,210,.14); --ni-plat-ink: #5FC9DF;
  --ni-ea: rgba(240,140,70,.15); --ni-ea-ink: #F2A46B;
  color-scheme: dark;
}
@media (min-width: 1100px) { :root { --rail-w: 312px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--cream); color: var(--navy);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.mono { font-family: var(--mono); }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 400; padding: 10px 14px; border-radius: 10px; background: var(--navy); color: var(--cream); }
.skip-link:focus { left: 12px; }

/* ---------- Background contour canvas ---------- */
.topo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.shell { position: relative; z-index: 1; }

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lede { margin-top: 14px; max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 46px; padding: 0 22px; border-radius: var(--radius-pill);
  background: var(--navy); color: var(--cream); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-btn); border: 0; cursor: pointer;
  transition: transform .34s var(--ease-spring), background .14s var(--ease-out);
}
.cta:hover { transform: translateY(-2px); }
.cta svg { font-size: 16px; }
.btn-soft {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: var(--radius-pill); background: var(--white); border: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--navy);
  transition: transform .34s var(--ease-spring), box-shadow .2s;
}
.btn-soft:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-soft svg { font-size: 15px; color: var(--accent); }
.round {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 0; cursor: pointer; color: var(--navy); font-size: 17px;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .34s var(--ease-spring), box-shadow .2s;
}
.round:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-btn); }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
.tick { width: 18px; height: 18px; vertical-align: -3px; }
.tick path:first-child { fill: var(--verified); stroke: none; }
.tick .tick__mark { stroke: #fff; stroke-width: 2.4; fill: none; }
.glass {
  position: relative; border-radius: calc(var(--radius-card) + 6px);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px rgba(255,255,255,.5), 0 30px 70px -40px rgba(6,12,26,.5);
  padding: clamp(14px, 1.6vw, 24px);
}
[data-theme="dark"] .glass { box-shadow: inset 0 0 0 1px var(--line), 0 30px 70px -40px rgba(0,0,0,.8); }
.ni {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; flex: none;
}
.ni--home { background: var(--ni-home); color: var(--ni-home-ink); }
.ni--auto { background: var(--ni-auto); color: var(--ni-auto-ink); }
.ni--web { background: var(--ni-web); color: var(--ni-web-ink); }
.ni--exp { background: var(--ni-exp); color: var(--ni-exp-ink); }
.ni--contact { background: var(--ni-contact); color: var(--ni-contact-ink); }
.ni--plat { background: var(--ni-plat); color: var(--ni-plat-ink); }
.ni--ea { background: var(--ni-ea); color: var(--ni-ea-ink); }

/* ---------- Rail (desktop) ---------- */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail {
    display: block; position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: var(--rail-w);
    padding: clamp(28px, 4vh, 52px) 30px 28px; overflow-y: auto; scrollbar-width: none;
    background: var(--rail-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-right: 1px solid var(--line);
  }
  .rail::-webkit-scrollbar { display: none; }
}
.rail__inner { display: flex; flex-direction: column; align-items: center; min-height: 100%; }
.rail__avatar {
  width: clamp(132px, 20vh, 176px); aspect-ratio: 1; border-radius: 50%; padding: 6px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
  transition: transform .5s var(--ease-spring);
}
.rail__avatar:hover { transform: rotate(-3deg) scale(1.02); }
.rail__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rail__name { margin-top: 18px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.rail__handle { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center; }
.rail__actions { display: flex; gap: 8px; margin-top: 18px; }
.rail__nav { width: 100%; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.rail__nav a {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px;
  font-size: 15px; font-weight: 500; color: var(--navy); transition: background .2s;
}
.rail__nav a:hover { background: var(--tint); }
.rail__nav a.active { background: var(--tint-strong); font-weight: 600; }
.rail__copy { margin-top: auto; padding-top: 28px; width: 100%; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- Mobile header + tab bar ---------- */
.mhead { display: flex; align-items: center; gap: 12px; padding: calc(18px + env(safe-area-inset-top)) 20px 6px; }
.mhead__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--line); }
.mhead__id { flex: 1; min-width: 0; }
.mhead__name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 5px; }
.mhead__handle { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.tabbar {
  position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  height: 66px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(255, 255, 255, .84); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-radius: 26px; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -18px rgba(6,12,26,.45);
}
[data-theme="dark"] .tabbar { background: rgba(14, 22, 38, .86); }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 0 4px; padding: 7px 0;
  font-size: 11px; font-weight: 500; color: var(--muted); border-radius: 18px; transition: background .2s, color .2s;
}
.tabbar a svg { font-size: 20px; }
.tabbar a.active { color: var(--accent); background: var(--tint); }
.tabbar .tabbar__fab {
  width: 58px; height: 58px; margin: -26px auto 0; padding: 0; border-radius: 50%; justify-content: center;
  background: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--cream), 0 14px 28px -10px rgba(var(--accent-rgb), .8);
}
.tabbar .tabbar__fab svg { font-size: 24px; }
.tabbar .tabbar__fab.active { background: var(--accent); color: #fff; }
@media (min-width: 1100px) { .mhead, .tabbar { display: none; } }

/* ---------- Panel + views ---------- */
.panel { margin-left: var(--rail-w); padding: clamp(18px, 4vh, 52px) clamp(16px, 3.4vw, 56px) 140px; outline: none; }
@media (min-width: 1100px) { .panel { padding-bottom: 64px; } }
.view { max-width: 1180px; margin: 0 auto; animation: page-in .45s var(--ease-out); }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vhead { margin-bottom: 22px; }
.vhead--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.vtitle { margin-top: 10px; max-width: 920px; font-size: clamp(30px, 3.4vw, 54px); font-weight: 700; letter-spacing: -.028em; line-height: 1.06; }
.hint {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 7px 13px; border-radius: var(--radius-pill);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hint svg { font-size: 14px; color: var(--accent); }

/* ---------- Home ---------- */
.home__head { display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(20px, 4vw, 56px); margin-bottom: 22px; }
.home__title { display: flex; flex-direction: column; font-size: clamp(32px, 3.6vw, 64px); font-weight: 700; letter-spacing: -.028em; line-height: 1.06; }
.home__title span:last-child { color: var(--accent); }
@media (min-width: 1100px) { .home__title span { white-space: nowrap; } }

.tools { display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 18px; margin-bottom: 18px; border-radius: 22px; }
.tools__label { display: grid; flex: none; line-height: 1.2; }
.tools__label .eyebrow { font-size: 10.5px; }
.tools__label b { font-size: 13.5px; font-weight: 700; }
.marquee {
  flex: 1; min-width: 0; overflow: hidden; border-radius: 16px; padding: 6px 0;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tchip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 16px 5px 6px; margin-right: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; border-right: 1px solid var(--line); }
/* Tool logos sit on a light tile in both themes so every brand colour reads */
.logo {
  width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 30, 63, .12);
}
.logo img { width: 17px; height: 17px; object-fit: contain; }
.logo--fill img { width: 100%; height: 100%; object-fit: cover; }
.pchip .logo { width: 22px; height: 22px; border-radius: 7px; }
.pchip .logo img { width: 14px; height: 14px; }
.pchip .logo--fill img { width: 100%; height: 100%; }

.bento {
  display: grid; gap: 14px;
  grid-template-columns: 1.08fr 1fr 1fr;
  grid-template-rows: minmax(290px, auto) minmax(290px, auto);
  grid-template-areas: "id auto web" "id plat exp";
}
.idcard { grid-area: id; }
.bcard--auto { grid-area: auto; }
.bcard--web { grid-area: web; }
.bcard--plat { grid-area: plat; }
.bcard--exp { grid-area: exp; }

.idcard {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 54px 24px 30px; border-radius: var(--radius-card); overflow: hidden;
  background: linear-gradient(180deg, #FAFCFF, #E7EEFA);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px #fff;
}
[data-theme="dark"] .idcard { background: linear-gradient(180deg, #111C31, #0C1426); }
.idcard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(var(--accent-rgb), .12) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.idcard__badge {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: var(--radius-pill); background: var(--navy); color: var(--cream); font-size: 11.5px; font-weight: 600;
}
.idcard__badge i { width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61,214,140,.25); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 3px rgba(61,214,140,.25); } 50% { box-shadow: 0 0 0 6px rgba(61,214,140,0); } }
.idcard__photo { position: relative; width: min(190px, 62%); aspect-ratio: 1; }
.idcard__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; border: 3px solid var(--accent-hover); box-shadow: 0 22px 40px -22px rgba(6,12,26,.6); }
.idcard__tick {
  position: absolute; right: -12px; bottom: -12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--verified); color: #fff; font-size: 20px; box-shadow: 0 0 0 4px #F1F5FC;
}
[data-theme="dark"] .idcard__tick { box-shadow: 0 0 0 4px #0E182B; }
.idcard__tick svg { stroke-width: 2.6; }
.idcard__hi { margin-top: 30px; font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.idcard__name { margin-top: 4px; font-size: clamp(32px, 3vw, 48px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.idcard__rule { display: block; width: 74%; height: 1.5px; margin: 16px 0 12px; background: linear-gradient(90deg, transparent, var(--accent-hover), transparent); }
.idcard__role { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.75; }
.idcard__tag { margin-top: 16px; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
.idcard__tag b { font-weight: 700; }

.bcard {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  padding: 18px 18px 0; border-radius: var(--radius-card); background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .34s var(--ease-spring), box-shadow .3s;
}
a.bcard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-soft); }
.bcard__head { display: flex; align-items: center; gap: 10px; }
.bcard__head b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.bcard__head::after { content: "↗"; margin-left: auto; font-size: 15px; color: var(--muted); transition: transform .3s var(--ease-spring), color .2s; }
.bcard--plat .bcard__head::after { content: none; }
a.bcard:hover .bcard__head::after { transform: translate(2px, -2px); color: var(--accent); }
.bcard__text { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.drift {
  position: relative; flex: 1; min-height: 170px; margin: 12px -18px 0; padding: 0 18px; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent);
}
.drift__track { position: absolute; left: 18px; right: 18px; top: 0; margin: 0; padding: 0; list-style: none; }
.drift__track--up { animation: drift-up 26s linear infinite; }
.drift__track--slow { animation-duration: 34s; }
.bcard:hover .drift__track { animation-play-state: paused; }
@keyframes drift-up { to { transform: translateY(-50%); } }
.reel-row {
  display: flex; align-items: center; gap: 9px; margin-bottom: 8px; padding: 9px 11px; border-radius: 12px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.8px; font-weight: 500; line-height: 1.3;
}
.reel-row small { margin-left: auto; padding-left: 8px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.reel-shot { position: relative; margin-bottom: 10px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 16 / 10; background: #0d1220; }
.reel-shot img { width: 100%; height: 100%; object-fit: cover; }
.reel-shot span { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; background: rgba(6,12,26,.72); color: #fff; font-size: 11px; font-weight: 600; backdrop-filter: blur(6px); }

.chips-rail {
  margin: 12px -18px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.chips-rail:last-child { margin-bottom: 18px; }
.chips-rail__track { display: flex; gap: 8px; width: max-content; padding: 2px 0; animation: drift-left 30s linear infinite; }
.chips-rail__track--rev { animation-direction: reverse; animation-duration: 36s; }
@keyframes drift-left { to { transform: translateX(-50%); } }
.pchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 9px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pbars { list-style: none; margin: 14px 0 auto; padding: 0; display: grid; gap: 9px; }
.pbars li { display: grid; grid-template-columns: 92px 1fr 22px; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; }
.pbars i { height: 8px; border-radius: 99px; background: var(--tint-strong); overflow: hidden; }
.pbars b { display: block; height: 100%; border-radius: inherit; transform-origin: left; animation: bar-in 1.1s var(--ease-spring) both; }
.pbars li:nth-child(2) b { animation-delay: .08s; } .pbars li:nth-child(3) b { animation-delay: .16s; } .pbars li:nth-child(4) b { animation-delay: .24s; }
@keyframes bar-in { from { transform: scaleX(0); } }
.pbars em { font-style: normal; color: var(--muted); text-align: right; }
.bcard--plat .chips-rail { margin-top: 14px; }

.mini-tl { list-style: none; margin: 14px 0 18px; padding: 0 0 0 16px; border-left: 1.5px solid var(--line); display: grid; gap: 11px; }
.mini-tl li { position: relative; display: grid; line-height: 1.3; }
.mini-tl li::before { content: ""; position: absolute; left: -21px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1.5px var(--accent); }
.mini-tl li:first-child::before { background: var(--accent); }
.mini-tl b { font-size: 13.5px; font-weight: 700; }
.mini-tl span { font-size: 12.5px; color: var(--muted); }

/* ---------- Automations ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.pf {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.pf:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.pf .count { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.pf[aria-pressed="true"] { background: var(--navy); color: var(--cream); box-shadow: none; }
.pf[aria-pressed="true"] .count { color: inherit; opacity: .7; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 12px; border: 0; background: transparent;
  font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s;
}
.tab svg { font-size: 16px; color: var(--accent); }
.tab:hover { background: var(--tint); color: var(--navy); }
.tab[aria-selected="true"] { background: var(--white); color: var(--navy); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line), 0 8px 18px -12px rgba(6,12,26,.35); }
.tab:disabled { opacity: .35; cursor: not-allowed; }
.ipanel { margin-top: 14px; animation: page-in .4s var(--ease-out); }
.ihead {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; border-radius: var(--radius-card); background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
}
.ihead__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.ihead__name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.ihead__label { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ihead__quote { margin-top: 4px; font-size: 15.5px; line-height: 1.55; max-width: 860px; }
.pains { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.pains li { font-size: 12.5px; color: var(--muted); padding: 5px 11px; border-radius: var(--radius-pill); background: var(--tint); }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.examples.single { grid-template-columns: 1fr; max-width: 760px; }
.example { display: flex; flex-direction: column; border-radius: var(--radius-card); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ex-top { padding: 20px 22px 0; }
.ex-meta { display: flex; align-items: center; gap: 10px; }
.ex-meta .badges { justify-content: flex-start; }
.ex-no { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--tint); font-size: 12px; font-weight: 600; }
.ex-title { margin-top: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ex-request { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--accent); font-size: 14px; color: var(--muted); }
.ex-request b { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.shot {
  display: block; width: calc(100% - 44px); margin: 16px 22px 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; text-align: left;
  background: #F2F3F5; box-shadow: inset 0 0 0 1px var(--line);
}
.shot.dark { background: #1B1B1D; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; font-size: 11.5px; font-weight: 500; color: #6b7280; border-bottom: 1px solid rgba(0,0,0,.06); background: rgba(255,255,255,.7); }
.shot.dark .shot-bar { background: #232326; border-color: #2e2e33; color: #9b9ba3; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d8dd; }
.shot.dark .shot-bar i { background: #3a3a40; }
.shot-bar span { margin-left: 6px; }
.shot-bar em { margin-left: auto; font-style: normal; display: inline-flex; align-items: center; gap: 5px; color: #0059B3; }
.shot.dark .shot-bar em { color: #5AA2E8; }
.shot-img { display: block; height: 260px; padding: 12px; }
.shot-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease-spring); }
.shot:hover .shot-img img { transform: scale(1.03); }
.ex-body { display: grid; gap: 14px; padding: 18px 22px 22px; }
.ex-desc { font-size: 14px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba > div { padding: 13px 14px; border-radius: 14px; }
.ba .before { background: var(--tint); }
.ba .after { background: rgba(46, 158, 107, .09); }
.ba h4 { margin: 0 0 8px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ba .before h4 { color: var(--muted); }
.ba .after h4 { color: var(--success); }
.ba ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.ba li { position: relative; padding-left: 15px; font-size: 13.3px; line-height: 1.5; }
.ba .before li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.ba .after li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 8px; height: 4.5px; border-left: 1.6px solid var(--success); border-bottom: 1.6px solid var(--success); transform: rotate(-45deg); }
.panel-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.pn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 4px; border: 0; background: none; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.pn b { color: var(--navy); font-weight: 600; }
.pn svg { font-size: 17px; color: var(--accent); }
.pn:hover b { color: var(--accent); }

/* ---------- Websites ---------- */
.sites { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.site {
  display: flex; flex-direction: column; border-radius: calc(var(--radius-card) + 4px); overflow: hidden;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
}
.site__frame { position: relative; margin: 12px 12px 0; border-radius: 16px 16px 0 0; overflow: hidden; background: #0d1220; cursor: pointer; border: 0; padding: 0; text-align: left; display: block; width: calc(100% - 24px); }
.site__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #161c2b; color: #9aa3b5; font-size: 11.5px; }
.site__bar i { width: 9px; height: 9px; border-radius: 50%; }
.site__bar i:nth-child(1) { background: #ff5f57; } .site__bar i:nth-child(2) { background: #febc2e; } .site__bar i:nth-child(3) { background: #28c840; }
.site__bar span { margin: 0 auto; padding: 3px 14px; border-radius: 999px; background: rgba(255,255,255,.06); }
.site__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.site__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-spring); }
.site__frame:hover .site__shot img { transform: scale(1.04); }
.site__open {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%) scale(.94); opacity: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: #0B1E3F; font-size: 14px; font-weight: 700; box-shadow: 0 16px 40px -14px rgba(0,0,0,.6);
  transition: opacity .3s, transform .4s var(--ease-spring);
}
.site__frame:hover .site__open, .site__frame:focus-visible .site__open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .site__open { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.site__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 22px; flex: 1; }
.site__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.site__name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.concept { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--ni-auto); color: var(--ni-auto-ink); font-size: 11.5px; font-weight: 700; }
.site__cat { margin-top: -4px; font-size: 13.5px; color: var(--muted); }
.site__desc { font-size: 14.5px; line-height: 1.55; }
.site__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.site__tags span { padding: 5px 10px; border-radius: 9px; background: var(--tint); font-size: 12px; font-weight: 600; }
.site__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.site__actions .cta { height: 40px; padding: 0 15px; font-size: 13px; }
.site__actions .btn-soft { height: 40px; padding: 0 12px; gap: 6px; font-size: 13px; }
.site__actions .btn-soft small { font-weight: 500; color: var(--muted); }
.process { margin-top: 18px; padding: 22px 24px; }
.process__steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.process__steps li { counter-increment: step; display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.process__steps li::before { content: "0" counter(step); font: 500 12px/1 var(--mono); color: var(--accent); }
.process__steps b { font-size: 15px; }
.process__steps span { font-size: 13.5px; color: var(--muted); }

/* ---------- Executive assistance ---------- */
.ea-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; overflow: hidden; }
.ea-stats > div { padding: 20px 22px; border-left: 1px solid var(--line); }
.ea-stats > div:first-child { border-left: 0; }
.ea-stats b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ea-stats b em { font-style: normal; color: var(--accent); }
.ea-stats span { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.ea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.ea-card { padding: 20px; border-radius: var(--radius-card); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.ea-card h3 { margin-top: 12px; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.ea-card p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.crm { margin-top: 16px; padding: 22px 24px; }
.crm__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.crm__title { margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.crm__frame { margin-top: 16px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: #1d1f24; }
.crm__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 12px; background: #c4472a; color: #fff; font-size: 12px; font-weight: 600; }
.crm__tab { padding: 4px 10px; border-radius: 6px; opacity: .8; }
.crm__tab--on { background: rgba(255,255,255,.2); opacity: 1; }
.crm__tool { padding: 4px 9px; border-radius: 6px; background: rgba(0,0,0,.14); font-weight: 500; }
.crm__tab + .crm__tool { margin-left: auto; }
.crm__scroll { overflow-x: auto; }
.crm__table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 12.5px; }
.crm__table th { padding: 8px 10px; text-align: left; font-weight: 600; color: #4a4f57; background: #f6f6f4; border-bottom: 1px solid #e3e3df; white-space: nowrap; }
.crm__table td { padding: 8px 10px; border-bottom: 1px solid #eeeeea; white-space: nowrap; }
.crm__table .n { width: 30px; color: #9a9fa8; font-size: 11px; text-align: right; }
.crm__table .firm { font-weight: 600; }
.crm__table .c { text-align: center; }
.crm__table .note { color: #5b616b; }
.crm__table .grp td { padding: 9px 12px; background: #eef3fb; border-bottom: 1px solid #dfe6f2; font-size: 12px; }
.grp__label { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.grp__count { margin-left: 8px; color: #6b7280; }
.pill { display: inline-block; margin-right: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: #edf0f3; }
.pill--type { background: #d9eefb; color: #0b5c8a; }
.pill--pre-seed { background: #e5f6e9; color: #1d6b36; }
.pill--seed { background: #fff1d6; color: #8a5a00; }
.pill--series-a { background: #ece6fb; color: #5b3fb3; }
.pill--check { background: #fde6dc; color: #9a3b17; }
.ck { color: #1f9d55; font-weight: 700; }
.no { color: #b8bcc4; }
.crm__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.ea-ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 12px; }
.tl__more { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.tl__more:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .ea-stats { grid-template-columns: 1fr 1fr; }
  .ea-stats > div:nth-child(3) { border-left: 0; }
  .ea-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ea-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ea-grid, .ea-ticks { grid-template-columns: 1fr; }
  .crm__head { flex-direction: column; }
}

/* sample calendar week */
.cal { margin-top: 16px; padding: 22px 24px; }
.cal__frame { margin-top: 16px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: #1f1f1f; }
.cal__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #ececec; font-size: 13px; }
.cal__bar b { font-size: 16px; font-weight: 500; }
.cal__btn { padding: 4px 12px; border: 1px solid #c8c8c8; border-radius: 999px; font-size: 12px; }
.cal__btn--r { margin-left: auto; }
.cal__nav { letter-spacing: 6px; color: #555; }
.cal__scroll { overflow-x: auto; }
.cal__grid { display: grid; grid-template-columns: 70px repeat(5, minmax(130px, 1fr)); min-width: 740px; padding: 0 8px 10px 0; }
.cal__dh { height: 34px; display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #70757a; text-transform: uppercase; }
.cal__gutter .cal__dh { justify-content: space-around; font-size: 10px; }
.cal__times { position: relative; }
.cal__hr { position: absolute; left: 0; right: 0; display: flex; justify-content: space-around; transform: translateY(-6px); font-size: 9.5px; color: #70757a; }
.cal__day { border-left: 1px solid #ececec; }
.cal__col { position: relative; background-image: linear-gradient(#ececec 1px, transparent 1px); background-size: 100% var(--h); }
.cal__ev { position: absolute; left: 3px; right: 3px; overflow: hidden; display: flex; gap: 5px; align-items: baseline; padding: 1px 6px; border-radius: 5px; color: #fff; font-size: 10.5px; line-height: 1.35; white-space: nowrap; }
.cal__ev b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cal__ev i { font-style: normal; opacity: .85; flex: none; }
.cal__ev--tall { flex-direction: column; gap: 0; padding-top: 3px; }
.cal__ev--exec { background: #d50000; }
.cal__ev--ext { background: #e67c73; }
.cal__ev--one { background: #039be5; }
.cal__ev--int { background: #3f51b5; }
.cal__ev--hold { background: #616161; }
.cal__legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--muted); }
.cal__legend li { display: flex; align-items: center; gap: 7px; }
.cal__legend i { width: 12px; height: 12px; border-radius: 4px; }
.cal__bar > * { white-space: nowrap; }
@media (max-width: 600px) { .cal, .crm { padding: 18px 16px; } .cal__nav, .cal__btn--r { display: none; } }

/* ---------- Experience ---------- */
.xgrid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.xside { display: grid; gap: 16px; }
.xcard { padding: 22px 24px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1.5px solid var(--line); display: grid; gap: 26px; }
.tl li { position: relative; }
.tl li::before { content: ""; position: absolute; left: -29px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--accent); }
.tl li:first-child::before { background: var(--accent); }
.tl__dates { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tl h3 { margin-top: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.tl h3 span { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tl p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tagcloud span { padding: 7px 11px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; }
.tagcloud .spec { background: rgba(var(--accent-rgb), .1); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .3); }
.toolkit { display: grid; grid-template-columns: 96px 1fr; gap: 9px 12px; margin: 12px 0 0; }
.toolkit dt { font: 500 11px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toolkit dd { margin: 0; font-size: 14px; font-weight: 500; }
.edu { display: grid; gap: 2px; margin-top: 10px; }
.edu b { font-size: 16px; }
.edu span { font-size: 13.5px; color: var(--muted); }
.atwork { margin-top: 16px; padding: 22px 24px; }
.atwork__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.atwork h3 { font-size: 17px; font-weight: 700; }
.ticks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: rgba(46,158,107,.14); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 7px; height: 3.5px; border-left: 1.6px solid var(--success); border-bottom: 1.6px solid var(--success); transform: rotate(-45deg); }

/* ---------- Contact ---------- */
.contact { padding: clamp(22px, 3vw, 34px); }
.contact__main { display: flex; align-items: center; gap: 16px; }
.contact__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line); }
.contact__name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.contact__meta { font-size: 14px; color: var(--muted); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.contact__list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font: 500 14px/1.3 var(--mono); }
.contact__list .logo { width: 30px; height: 30px; border-radius: 9px; }
.contact__list .logo img { width: 18px; height: 18px; }
.contact__list a:hover { color: var(--accent); }
.btn-wa img, .round--wa img { width: 18px; height: 18px; }

/* ---------- Portal (website viewer) ---------- */
.portal {
  position: fixed; inset: 0; z-index: 200; display: grid; padding: clamp(8px, 2.4vw, 32px);
  background: rgba(6, 12, 26, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .25s ease;
}
.portal__window {
  display: grid; grid-template-rows: auto 1fr; width: 100%; max-width: 1480px; height: 100%; margin: 0 auto;
  border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  animation: pop .45s var(--ease-spring);
}
.portal__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; padding-left: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.portal__title { flex: 1; min-width: 0; text-align: center; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal__tools { display: flex; align-items: center; gap: 6px; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--tint); }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button svg { font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px -3px rgba(6,12,26,.3); }
.pbtn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--tint); color: var(--navy); font-size: 18px; transition: background .2s;
}
.pbtn:hover { background: var(--tint-strong); }
.portal__stage { position: relative; display: grid; place-items: center; min-height: 0; background: #0b0f17; }
.portal__stage iframe { width: 100%; height: 100%; border: 0; background: #0b0f17; transition: width .45s var(--ease-spring), height .45s var(--ease-spring), border-radius .45s; }
.portal__stage.phone iframe { width: 390px; height: min(844px, calc(100% - 28px)); border-radius: 34px; box-shadow: 0 0 0 9px #1c2130, 0 30px 80px -20px rgba(0,0,0,.8); }
.portal__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #c4cad6; font-size: 14px; pointer-events: none; }
.portal__loading.done { display: none; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.18); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- Video modal ---------- */
.vmodal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: clamp(10px, 3vw, 40px); background: rgba(6,12,26,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .25s ease; }
.vmodal__box { width: min(1180px, 100%); border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow-card); animation: pop .45s var(--ease-spring); }
.vmodal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; background: #0e1626; color: #edf0f6; font-size: 14px; font-weight: 600; }
.vmodal__bar .pbtn { background: rgba(255,255,255,.08); color: #fff; }
.vmodal video { width: 100%; max-height: calc(100vh - 140px); background: #000; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 220; display: grid; grid-template-rows: auto 1fr auto; background: rgba(6, 12, 26, .94); animation: fade .25s ease; }
.lb-bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; color: #edf0f6; }
.lb-title { font-size: 16px; font-weight: 700; }
.lb-actions { margin-left: auto; display: flex; gap: 8px; }
.lb-actions .pbtn { background: rgba(255,255,255,.1); color: #fff; }
.lb-stage { overflow: auto; display: grid; place-items: center; padding: 6px 20px; }
.lb-stage img { max-width: min(1600px, 100%); max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: 12px; background: #fff; }
.lb-caption { max-width: 900px; margin: 0 auto; padding: 10px 20px 22px; text-align: center; color: #a3aab6; font-size: 14px; }

.toast { position: fixed; z-index: 300; left: 50%; bottom: 100px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: 14px; font-weight: 600; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Boot intro ---------- */
.boot { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: var(--cream); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.boot.done { opacity: 0; transform: translateY(-2%); pointer-events: none; }
.boot__inner { width: min(980px, 100%); }
.boot__title { font-size: clamp(44px, 8vw, 116px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.boot__title span { display: inline-block; opacity: 0; transform: translateY(40%); animation: word-in .7s var(--ease-spring) forwards; }
.boot__title span:nth-child(2) { animation-delay: .12s; }
.boot__title span:nth-child(3) { animation-delay: .24s; color: var(--accent); }
@keyframes word-in { to { opacity: 1; transform: none; } }
.boot__flow { list-style: none; margin: clamp(30px, 6vh, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.boot__node { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; opacity: 0; animation: word-in .5s var(--ease-spring) forwards; }
.boot__node:nth-child(1) { animation-delay: .45s; } .boot__node:nth-child(2) { animation-delay: .53s; }
.boot__node:nth-child(3) { animation-delay: .61s; } .boot__node:nth-child(4) { animation-delay: .69s; }
.boot__node:not(:last-child)::before, .boot__node:not(:last-child)::after { content: ""; position: absolute; top: 34px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 3px; border-radius: 3px; background: var(--line); }
.boot__node:not(:last-child)::after { background: var(--success); transform: scaleX(0); transform-origin: left; transition: transform .42s var(--ease-out); }
.boot__node.run:not(:last-child)::after { transform: scaleX(1); }
.boot__card { position: relative; width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-soft); transition: box-shadow .3s; }
.boot__node.ok .boot__card { box-shadow: inset 0 0 0 1.5px var(--success), 0 14px 30px -14px rgba(46,158,107,.6); }
.boot__check { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--cream); transform: scale(0); transition: transform .4s var(--ease-spring); }
.boot__check::after { content: ""; position: absolute; left: 7px; top: 7px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.boot__node.ok .boot__check { transform: scale(1); }
.boot__node b { font-size: 14px; font-weight: 600; }
.boot__status { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
.boot__status i { width: 9px; height: 9px; border-radius: 50%; background: var(--success); animation: ping 1.4s ease-out infinite; }
.boot__skip { position: absolute; right: 22px; bottom: 22px; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: "id auto" "id web" "plat exp"; }
  .bento > * { min-height: 290px; }
}
@media (max-width: 1100px) {
  .home__head { flex-direction: column; }
  .process__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .examples, .sites, .xgrid, .atwork__grid { grid-template-columns: 1fr; }
  .vhead--row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "id" "auto" "web" "plat" "exp"; }
  .tools { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -4px; margin-right: -4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .ihead { grid-template-columns: 1fr; padding: 18px; }
  .ex-top { padding: 18px 16px 0; }
  .shot { width: calc(100% - 32px); margin: 14px 16px 0; }
  .shot-img { height: 200px; }
  .ex-body { padding: 16px; }
  .ba { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .panel-nav .pn span { display: none; }
  .portal { padding: 0; }
  .portal__window { border-radius: 0; }
  .seg { display: none; }
  .portal__stage.phone iframe { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
  .boot__flow { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .boot__node:nth-child(2)::before, .boot__node:nth-child(2)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .marquee__track, .drift__track, .chips-rail__track { animation: none !important; }
}
