/* ============================================================
   sidebar.css — panelled portfolio layout
   Sidebar navigates between panels. No long scroll.
   ============================================================ */

:root { --sb-w: 286px; --stage-pad: clamp(24px, 3.4vw, 52px); }

.shell { display: flex; min-height: 100vh; position: relative; z-index: 3; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sb-w); flex-shrink: 0;
  position: fixed; inset: 0 auto 0 0; z-index: 90;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 26px 20px 20px;
  overflow-y: auto; overscroll-behavior: contain;
  transition: transform 380ms var(--ease-drawer);
}
.sidebar::-webkit-scrollbar { width: 4px; }

.sb-top { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

.sb-photo {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--grad); padding: 3px;
  box-shadow: 0 10px 30px rgba(45,212,191,.2);
}
.sb-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.sb-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.sb-role { font-size: .78rem; color: var(--teal); font-weight: 600; margin-top: 3px; }
.sb-status {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  font-size: .68rem; color: var(--text-faint); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}

.sb-nav { margin: 18px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sb-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 13px; border-radius: var(--r-sm); text-align: left;
  font-size: .89rem; font-weight: 500; color: var(--text-dim); position: relative;
  transition: color var(--t-hover) var(--ease), background var(--t-hover) var(--ease),
              transform var(--t-press) var(--ease-out);
}
.sb-nav button .ico { width: 17px; height: 17px; opacity: .7; flex-shrink: 0; }
.sb-nav button:active { transform: scale(.985); }
.sb-nav button.active { background: rgba(45,212,191,.11); color: var(--teal); font-weight: 600; }
.sb-nav button.active .ico { opacity: 1; }
.sb-nav button.active::before {
  content:''; position: absolute; left: 0; top: 24%; bottom: 24%; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--teal);
}
@media (hover: hover) and (pointer: fine) {
  .sb-nav button:hover { background: var(--hair); color: var(--text); }
}

.sb-socials { display: flex; justify-content: center; gap: 7px; margin-bottom: 14px; }
.sb-socials a {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--text-dim);
  transition: background var(--t-hover) var(--ease), color var(--t-hover) var(--ease),
              border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease-out);
}
.sb-socials a:active { transform: scale(.92); transition-duration: var(--t-press); }
.sb-socials svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .sb-socials a:hover { background: var(--grad); color: var(--ink); border-color: transparent; transform: translateY(-2px); }
}

.sb-foot { padding-top: 16px; border-top: 1px solid var(--line); }
.sb-foot .btn { width: 100%; }
.sb-copy { font-size: .68rem; color: var(--text-faint); text-align: center; margin-top: 12px; }

.sb-theme { margin-bottom: 10px; }
.sb-theme .theme-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 38px; padding: 0 12px;
  border-radius: var(--r-sm); white-space: nowrap; overflow: hidden;
}
.sb-theme .theme-btn svg { flex-shrink: 0; width: 16px; height: 16px; }
.sb-theme .theme-btn span { font-size: .8rem; font-weight: 600; line-height: 1; }

/* ============================================================
   STAGE + PANELS
   ============================================================ */
.stage {
  margin-left: var(--sb-w); flex: 1; min-width: 0;
  padding: var(--stage-pad);
  min-height: 100vh;
}

.panel { display: none; max-width: 1080px; margin-inline: auto; }
.panel.active { display: block; }

/* Panel enter — fast, since it fires on every nav click */
html.js .panel.active > * {
  animation: panelIn 380ms var(--ease-out) both;
}
html.js .panel.active > *:nth-child(1) { animation-delay: 0ms; }
html.js .panel.active > *:nth-child(2) { animation-delay: 55ms; }
html.js .panel.active > *:nth-child(3) { animation-delay: 105ms; }
html.js .panel.active > *:nth-child(4) { animation-delay: 145ms; }
html.js .panel.active > *:nth-child(5) { animation-delay: 180ms; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .panel.active > * { animation: fadeOnly 200ms ease both; }
  @keyframes fadeOnly { from { opacity: 0 } to { opacity: 1 } }
}

/* Panel headings */
.panel-head { margin-bottom: clamp(22px, 3vw, 34px); }
.panel-head .eyebrow { margin-bottom: 12px; }
.panel-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.panel-head p { margin-top: 12px; max-width: 62ch; font-size: .96rem; }

.sub-h {
  font-size: 1.05rem; margin: clamp(26px, 3vw, 38px) 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.sub-h::after { content:''; flex: 1; height: 1px; background: var(--line); }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ============================================================
   HOME PANEL
   ============================================================ */
.hero-panel {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
@media (max-width: 940px) { .hero-panel { grid-template-columns: 1fr; } }

.hello {
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  color: var(--teal); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.02;
  letter-spacing: -.035em; margin-bottom: 16px;
}
.hero-copy .lead { margin-bottom: 28px; max-width: 54ch; font-size: 1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.rotator {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2.3vw, 1.7rem);
  height: 1.9em; overflow: hidden; margin-bottom: 22px;
}
.rotator ul { animation: roll 12s cubic-bezier(.86,0,.07,1) infinite; }
.rotator li {
  height: 1.9em; line-height: 1.9em; white-space: nowrap;
  display: flex; align-items: center; gap: 12px;
}
.rotator li::before {
  content: ''; width: 20px; height: 2px; border-radius: 2px;
  background: var(--teal); flex-shrink: 0; opacity: .7;
}
@keyframes roll {
  0%, 18%   { transform: translateY(0); }
  25%, 43%  { transform: translateY(-1.9em); }
  50%, 68%  { transform: translateY(-3.8em); }
  75%, 93%  { transform: translateY(-5.7em); }
  100%      { transform: translateY(-7.6em); }
}
@media (prefers-reduced-motion: reduce) { .rotator ul { animation: none; } }

#home .hero-side { display: flex; flex-direction: column; gap: 14px; }
#home .hero-side .about-photo { aspect-ratio: 1; max-width: 320px; margin-inline: auto; width: 100%; }

.counter-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.counter-cell {
  background: var(--bg-2); padding: 22px 16px; text-align: center;
  transition: background var(--t-hover) var(--ease);
}
.counter-cell .cn {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.counter-cell .cl {
  font-size: .68rem; color: var(--text-faint); text-transform: uppercase;
  letter-spacing: .1em; font-weight: 600; margin-top: 3px;
}
@media (hover: hover) and (pointer: fine) { .counter-cell:hover { background: var(--surface); } }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: .74rem; font-weight: 600; padding: 7px 13px; border-radius: 100px;
  background: var(--hair); border: 1px solid var(--line); color: var(--text-dim);
}

/* Home lower half — about copy beside details + education */
.home-lower {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 3.4vw, 48px); align-items: start;
}
@media (max-width: 900px) { .home-lower { grid-template-columns: 1fr; } }
.home-lower .panel-head { margin-bottom: 18px; }

/* ============================================================
   ABOUT / SHARED
   ============================================================ */
.about-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(26px, 3.5vw, 50px); align-items: start; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }

.about-photo {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-strong);
  aspect-ratio: 4/5; box-shadow: 0 24px 56px rgba(var(--sh), calc(var(--sh-o) * .9));
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.detail-grid { display: grid; gap: 0; margin-top: 22px; }
.detail-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .87rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .dk { color: var(--text-faint); font-weight: 600; }
.detail-row .dv { font-weight: 600; text-align: right; word-break: break-word; }

#bio p { margin-bottom: 14px; font-size: .96rem; }

/* Education — compact rows, no giant timeline */
.edu-list { display: flex; flex-direction: column; gap: 10px; }
.edu-item {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 15px 17px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .edu-item:hover { border-color: var(--line-strong); transform: translateX(3px); }
}
.edu-year {
  font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  color: var(--teal); white-space: nowrap; padding-top: 2px;
  letter-spacing: .04em;
}
.edu-item h4 { font-size: .97rem; margin-bottom: 2px; }
.edu-item .org { font-size: .84rem; color: var(--text-faint); }
.edu-item .note { font-size: .84rem; color: var(--text-dim); margin-top: 6px; }
.edu-item .now {
  display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal); background: rgba(45,212,191,.12);
  border: 1px solid rgba(45,212,191,.28); padding: 2px 8px; border-radius: 100px; margin-left: 8px;
}

/* ============================================================
   RESUME PANEL
   ============================================================ */
.resume-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 3.5vw, 48px); align-items: start; }
@media (max-width: 900px) { .resume-split { grid-template-columns: 1fr; } }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content:''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(var(--teal), var(--violet), transparent); opacity: .4;
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content:''; position: absolute; left: -26px; top: 5px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(45,212,191,.09);
}
.tl-item.current::before { background: var(--teal); }
.tl-date {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 5px;
}
.tl-item h3 { font-size: 1.04rem; margin-bottom: 3px; }
.tl-org { font-size: .85rem; color: var(--text-faint); margin-bottom: 10px; font-weight: 500; }
.tl-list li { position: relative; padding-left: 16px; margin-bottom: 5px; font-size: .87rem; color: var(--text-dim); }
.tl-list li::before { content:''; position: absolute; left: 0; top: 9px; width: 5px; height: 1.5px; background: var(--teal); opacity: .8; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  font-size: .69rem; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  background: var(--hair); border: 1px solid var(--line); color: var(--text-dim);
}

.skill-group { margin-bottom: 22px; }
.skill-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 12px; }
.skill-row { margin-bottom: 12px; }
.skill-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .84rem; font-weight: 600; }
.skill-top em { font-style: normal; color: var(--teal); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.skill-track { height: 4px; border-radius: 100px; background: var(--line); overflow: hidden; }
.skill-fill {
  height: 100%; width: 100%; border-radius: 100px; background: var(--grad);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 800ms var(--ease-out);
}

.mini-list { display: flex; flex-direction: column; gap: 9px; }

/* Consulting — 3 across, so six entries land 3 top / 3 bottom */
.consult-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.consult-card { padding: 17px 19px; }
.consult-card strong { display: block; font-family: var(--font-display); font-size: .97rem; letter-spacing: -.01em; }
.consult-card .role { font-size: .8rem; color: var(--teal); font-weight: 600; margin: 4px 0 8px; }
.consult-card p { font-size: .84rem; line-height: 1.55; }
@media (max-width: 900px) { .consult-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .consult-grid { grid-template-columns: 1fr; } }
.mini-item {
  padding: 13px 15px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mini-item:hover { border-color: var(--line-strong); transform: translateX(3px); }
}
.mini-item strong { display: block; font-family: var(--font-display); font-size: .93rem; }
.mini-item .role { font-size: .79rem; color: var(--teal); font-weight: 600; margin: 3px 0 5px; }
.mini-item p { font-size: .83rem; }

/* ============================================================
   WORK PANEL
   ============================================================ */
.rail-wrap { margin-bottom: 26px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rail-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }

.rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; scroll-behavior: smooth;
  cursor: grab; touch-action: pan-y; overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-track { background: var(--line); border-radius: 10px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.rail.dragging img { pointer-events: none; }

.rail-item {
  flex: 0 0 clamp(210px, 26vw, 290px); scroll-snap-align: start;
  aspect-ratio: 4/3; position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  transition: transform var(--t-pop) var(--ease-out), border-color var(--t-hover) var(--ease),
              box-shadow var(--t-pop) var(--ease-out);
}
.rail-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.rail-item::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(var(--shade), .9), transparent 58%);
}
.rail-cap { position: absolute; inset: auto 0 0 0; padding: 14px; z-index: 2; }
.rail-cap .tc { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.rail-cap .tt { font-family: var(--font-display); font-weight: 700; font-size: .93rem; margin-top: 2px; }
@media (hover: hover) and (pointer: fine) {
  .rail-item:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 20px 44px rgba(var(--sh), calc(var(--sh-o) * 1.1)); }
  .rail-item:hover img { transform: scale(1.07); }
}

.rail-btns { display: flex; gap: 7px; }
.rail-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--text-dim);
  transition: background var(--t-hover) var(--ease), color var(--t-hover) var(--ease),
              border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease-out);
}
.rail-btn:active { transform: scale(.9); transition-duration: var(--t-press); }
.rail-btn[disabled] { opacity: .28; pointer-events: none; }
.rail-btn svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .rail-btn:hover { background: var(--grad); color: var(--ink); border-color: transparent; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter {
  padding: 8px 17px; border-radius: 100px; border: 1px solid var(--line-strong);
  font-size: .83rem; font-weight: 600; color: var(--text-dim);
  transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease),
              background var(--t-hover) var(--ease), transform var(--t-press) var(--ease-out);
}
.filter:active { transform: scale(.97); }
.filter.active { background: var(--grad); color: var(--ink); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .filter:hover { color: var(--text); border-color: var(--text-faint); }
}

.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(0, 152px); grid-auto-flow: dense; gap: 12px;
}
@media (max-width: 1000px) { .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0,140px); } }
@media (max-width: 640px)  { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(0,130px); gap: 9px; } }

.tile {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  grid-column: span 1; grid-row: span 1;
  transition: transform var(--t-pop) var(--ease-out), border-color var(--t-hover) var(--ease),
              box-shadow var(--t-pop) var(--ease-out), opacity var(--t-pop) var(--ease);
}
.tile.sz-lg   { grid-column: span 2; grid-row: span 2; }
.tile.sz-wide { grid-column: span 2; }
.tile.sz-tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.tile::after {
  content:''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(var(--shade), .92) 0%, rgba(var(--shade), .3) 42%, transparent 70%);
  transition: opacity var(--t-pop) var(--ease);
}
.tile:active { transform: scale(.985); transition-duration: var(--t-press); }
.tile-meta {
  position: absolute; inset: auto 0 0 0; padding: 15px 16px; z-index: 2;
  transform: translateY(10px); opacity: 0;
  transition: transform var(--t-pop) var(--ease-out), opacity var(--t-pop) var(--ease-out);
}
.tile-meta .tc { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.tile-meta .tt { font-family: var(--font-display); font-weight: 700; font-size: .9rem; line-height: 1.25; margin-top: 2px; }
.tile.hide { display: none; }
.mosaic.filtering .tile { opacity: .16; }
.mosaic.filtering .tile.match { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 20px 48px rgba(var(--sh), calc(var(--sh-o) * 1.1)); z-index: 5; }
  .tile:hover img { transform: scale(1.08); }
  .tile:hover::after { opacity: 1; }
  .tile:hover .tile-meta { transform: none; opacity: 1; }
}
/* Touch: no hover, so keep captions visible */
@media not all and (hover: hover) and (pointer: fine) {
  .tile::after { opacity: 1; }
  .tile-meta { opacity: 1; transform: none; }
}

/* ============================================================
   CONTACT PANEL
   ============================================================ */
.contact-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 3.4vw, 46px); align-items: start; }
@media (max-width: 880px) { .contact-split { grid-template-columns: 1fr; } }

.cblock-grid { display: flex; flex-direction: column; gap: 10px; }
.cblock {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 17px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cblock:hover { border-color: var(--teal); transform: translateX(3px); }
}
.cblock .cico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad-soft); border: 1px solid rgba(45,212,191,.2);
  display: grid; place-items: center; color: var(--teal);
}
.cblock .cico svg { width: 18px; height: 18px; }
.cblock h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 3px; }
.cblock a, .cblock p { display: block; font-size: .92rem; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .cblock a:hover { color: var(--teal); } }

.quote-item { position: relative; }
.quote-item blockquote { font-size: .87rem; line-height: 1.65; font-style: italic; color: var(--text-dim); margin-bottom: 10px; }
.quote-item.pending blockquote { font-style: normal; color: var(--text-faint); font-size: .82rem; }
.quote-who { display: flex; align-items: center; gap: 11px; }
.quote-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-soft); border: 1px solid rgba(45,212,191,.28);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--teal);
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-card { display: flex; flex-direction: column; gap: 14px; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pill { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; white-space: nowrap; }
.pill.live { background: rgba(45,212,191,.13); color: var(--teal); border: 1px solid rgba(45,212,191,.3); }
.pill.beta { background: rgba(251,191,36,.12); color: var(--amber); border: 1px solid rgba(251,191,36,.3); }
.pill.soon { background: rgba(139,92,246,.13); color: #A78BFA; border: 1px solid rgba(139,92,246,.3); }
.feature-list li { position: relative; padding-left: 20px; font-size: .85rem; color: var(--text-dim); margin-bottom: 7px; }
.feature-list li::before { content:'›'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ============================================================
   MOBILE
   ============================================================ */
.sb-toggle {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 95;
  width: 44px; height: 44px; border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--line-strong); place-items: center;
}
.sb-toggle span { display: block; width: 17px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform var(--t-pop) var(--ease-out), opacity var(--t-hover) var(--ease); }
.sb-toggle span + span { margin-top: 4.5px; }
.sb-toggle.open span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
.sb-toggle.open span:nth-child(2) { opacity: 0; }
.sb-toggle.open span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }

.sb-scrim {
  position: fixed; inset: 0; background: rgba(var(--shade), .7); backdrop-filter: blur(4px);
  z-index: 89; opacity: 0; visibility: hidden;
  transition: opacity var(--t-sheet) var(--ease), visibility var(--t-sheet);
}
.sb-scrim.show { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 60px rgba(var(--sh), calc(var(--sh-o) * 1.2)); }
  .sidebar.open { transform: none; }
  .stage { margin-left: 0; padding-top: 72px; }
  .sb-toggle { display: grid; }
}

/* ============================================================
   SHARED CARD
   ============================================================ */
.card {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 28px); position: relative; overflow: hidden;
  transition: transform var(--t-pop) var(--ease-out), border-color var(--t-hover) var(--ease),
              box-shadow var(--t-pop) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 20px 44px rgba(var(--sh), calc(var(--sh-o) * .9)); }
}
.card-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(45,212,191,.2);
  margin-bottom: 16px; font-size: 1.15rem;
}
.card h3 { margin-bottom: 9px; font-size: 1.06rem; }
.card p { font-size: .89rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 16px; }
/* Exactly 3 across, so six cards land 3 top / 3 bottom */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .grid-3 { grid-template-columns: 1fr; } }
