/* Shared nav + footer + content pages (Products, Work, Journey, About, Credentials, Resume) */

/* ── Top navigation ── */
.sitenav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); padding: env(safe-area-inset-top, 0px) max(5vw, 16px, env(safe-area-inset-right, 0px)) 0 max(5vw, 16px, env(safe-area-inset-left, 0px)); color: var(--ink); }
.sitenav.on-hero { position: relative; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; color: var(--hero-ink); }
.sitenav-in { max-width: 1200px; margin: 0 auto; min-height: 64px; display: flex; align-items: center; gap: 24px; }
.on-hero .sitenav-in { min-height: 88px; }
.nav-home { display: inline-flex; align-items: center; gap: 10px; color: inherit !important; text-decoration: none !important; font-weight: 600; font-size: 15px; }
.nav-home .mark { width: 30px; height: 30px; border-radius: 9px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: inherit; opacity: .78; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; border-bottom-color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { background: var(--ink); color: var(--bg) !important; border-radius: 12px; min-height: 44px; padding: 0 18px; }
.on-hero .nav-cta { background: var(--hero-ink); color: var(--hero-bg) !important; }
.nav-cta:hover { opacity: .88; }
.nav-menu-btn { display: none; }
.nav-panel { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; padding: 4px 0 14px; }
.nav-panel[hidden] { display: none; }
.nav-panel a { color: inherit; min-height: 48px; display: flex; align-items: center; font-size: 17px; border-top: 1px solid var(--line); text-decoration: none; }
.nav-panel a[aria-current="page"] { color: var(--brand); font-weight: 600; }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-menu-btn { display: grid; }
}
@media (max-width: 420px) { .nav-home-txt { display: none; } .nav-cta { padding: 0 14px; } }

/* ── Footer ── */
.sitefoot { border-top: 1px solid var(--line); padding: 28px max(5vw, 16px) max(28px, env(safe-area-inset-bottom, 0px)); }
.sitefoot-in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--muted); }
.sitefoot-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ── Page scaffolding ── */
.pg { padding: clamp(48px, 7vw, 96px) max(5vw, 16px, env(safe-area-inset-right, 0px)) clamp(56px, 8vw, 112px) max(5vw, 16px, env(safe-area-inset-left, 0px)); }
.pg-in { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.pg-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.eyebrow { margin: 0; font-size: 15px; font-weight: 600; color: var(--brand); }
.pg-head h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.04em; }
.pg-head p.lead { margin: 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--muted); }
.sec { display: flex; flex-direction: column; gap: 24px; }
.sec h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.sec .sub { margin: -12px 0 0; color: var(--muted); }
.card { background: var(--surface); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; border-radius: 28px; background: var(--brand-tint); }
.cta-band strong { font-size: 22px; letter-spacing: -0.02em; }
.cta-band p { margin: 4px 0 0; color: var(--ink-2); }

/* ── Products (Apple-style landing) ── */
.pnav { position: sticky; top: 64px; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 0 max(5vw, 16px); }
.pnav-in { max-width: 1080px; margin: 0 auto; display: flex; gap: 28px; overflow-x: auto; min-height: 52px; align-items: center; scrollbar-width: none; }
.pnav-in a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.pnav-in a:hover { color: var(--brand); }
.pnav-in .pn-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.pnav-in .pn-ic .i { width: 15px; height: 15px; }
.prod { padding: clamp(64px, 9vw, 120px) max(5vw, 16px); border-bottom: 1px solid var(--line); scroll-margin-top: 116px; }
.prod:nth-child(even) { background: var(--surface); }
.prod-in { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.prod-icon { width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center; box-shadow: 0 12px 32px rgba(20, 26, 51, .12); }
.prod-icon .i { width: 44px; height: 44px; }
.prod-name { margin: 6px 0 0; font-size: 19px; font-weight: 600; color: var(--muted); }
.prod-tag { margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.04em; max-width: 14ch; }
.prod-msg { margin: 0; max-width: 640px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.5; }
.prod-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.prod-ctas .btn { min-height: 48px; padding: 0 24px; font-size: 16px; }
.prod-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.prod-facts span { font-size: 13px; padding: 8px 14px; border-radius: 980px; background: var(--bg); border: 1px solid var(--line); }
.prod-facts b { font-weight: 600; margin-right: 6px; color: var(--muted); }
.prod-feats { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 36px; text-align: left; }
.feat { padding: 24px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.prod:nth-child(even) .feat { background: var(--bg); }
.prod:nth-child(odd) .feat { background: var(--surface); border-color: transparent; }
.feat-n { font-size: 13px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.feat strong { font-size: 18px; letter-spacing: -0.02em; }
.feat span { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ── Work ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 40px; padding: 0 16px; border-radius: 980px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 14px; font-weight: 500; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.work-card[hidden] { display: none; }
.work-card small { font-size: 13px; font-weight: 600; color: var(--muted); }
.work-card h3 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.work-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.work-card .track { align-self: flex-start; margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 600; color: var(--brand); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.pillar { display: flex; flex-direction: column; gap: 8px; }
.pillar .i { width: 28px; height: 28px; color: var(--brand); }
.pillar strong { font-size: 18px; letter-spacing: -0.02em; }
.pillar span { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ── Journey ── */
.jl { list-style: none; margin: 0; padding: 0; position: relative; }
.jl::before { content: ""; position: absolute; left: 119px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.jl li { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 36px; padding: 0 0 40px; }
.jl li::before { content: ""; position: absolute; left: 113px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line-strong); }
.jl li:first-child::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 5px var(--brand-tint); }
.jl-year { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.jl-body { display: flex; flex-direction: column; gap: 4px; }
.jl-body small { font-size: 13px; font-weight: 600; color: var(--brand); }
.jl-body strong { font-size: 20px; letter-spacing: -0.02em; line-height: 1.3; }
.jl-body .org { font-size: 15px; color: var(--muted); }
.jl-body ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
@media (max-width: 640px) {
  .jl::before { left: 6px; }
  .jl li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-left: 32px; }
  .jl li::before { left: 0; }
  .jl-year { text-align: left; font-size: 18px; }
}

/* ── About ── */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-photo { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--brand) 70%, #fff), var(--brand) 60%); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; max-width: 440px; width: 100%; justify-self: center; }
.about-photo img { width: 96%; display: block; }
.about-story { display: flex; flex-direction: column; gap: 18px; font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.about-story p { margin: 0; }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.facts-row div { background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.facts-row small { font-size: 12px; font-weight: 600; color: var(--muted); }
.facts-row strong { font-size: 16px; line-height: 1.4; }
.role-card { text-decoration: none !important; color: var(--ink) !important; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.role-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); transform: translateY(-2px); }
.role-card .i { width: 28px; height: 28px; color: var(--brand); }
.role-card strong { font-size: 19px; letter-spacing: -0.02em; }
.role-card span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.role-card em { font-style: normal; font-weight: 600; color: var(--brand); font-size: 14px; margin-top: auto; padding-top: 6px; }
@media (max-width: 760px) { .about-hero { grid-template-columns: minmax(0, 1fr); } .about-photo { max-width: 300px; } }

/* ── Credentials ── */
.feat-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.fb { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 20px 22px; border-radius: 24px; background: var(--surface); border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; color: var(--ink); }
.fb:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20, 26, 51, .1); }
.fb .medal { width: 104px; height: 104px; }
.fb strong { font-size: 16px; line-height: 1.3; }
.fb span { font-size: 13px; color: var(--muted); }
.cred-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; align-items: start; }
.cg { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.cg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--surface); }
.cg-head strong { font-size: 16px; }
.cg-head span { font-size: 13px; font-weight: 600; color: var(--muted); }
.cg-list { list-style: none; margin: 0; padding: 0; }
.cg-item { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 20px; border: 0; border-top: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; color: var(--ink); }
.cg-item:hover { background: var(--surface); }
.cg-thumb { width: 44px; height: 44px; display: grid; place-items: center; }
.cg-thumb img { width: 44px; height: 44px; object-fit: contain; }
.cg-thumb .medal { width: 40px; height: 40px; }
.cg-txt { display: flex; flex-direction: column; min-width: 0; }
.cg-txt strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-txt small { font-size: 13px; color: var(--muted); }
.cg-ok { font-size: 12px; font-weight: 600; color: var(--ok); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cg-ok .i { width: 13px; height: 13px; }
.cg-more { width: 100%; min-height: 44px; border: 0; border-top: 1px solid var(--line); background: var(--bg); color: var(--brand); font-weight: 600; font-size: 14px; cursor: pointer; }
.cg-item.extra[hidden] { display: none; }

/* ── Resume ── */
.rz-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.rz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rz-actions .btn { min-height: 44px; }
.rz-note { font-size: 13px; color: var(--muted); }
.doc { background: #fff; color: #16181d; border-radius: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 60px rgba(20, 26, 51, .12); padding: clamp(28px, 6vw, 64px); max-width: 880px; width: 100%; margin: 0 auto; font-size: 14px; line-height: 1.55; }
.doc h1 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.doc .d-head { color: #3b5bdb; font-weight: 600; margin: 4px 0 0; }
.doc .d-contact { margin: 8px 0 0; color: #5c6370; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.doc .d-contact a { color: #3b5bdb; }
.doc h2 { margin: 28px 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #3b5bdb; border-bottom: 1px solid #e6e8ec; padding-bottom: 6px; }
.doc p { margin: 0; }
.doc .d-job { margin-top: 14px; }
.doc .d-job-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; }
.doc .d-job-top strong { font-size: 15px; }
.doc .d-job-top span { color: #5c6370; font-variant-numeric: tabular-nums; }
.doc .d-org { color: #5c6370; }
.doc ul { margin: 6px 0 0; padding-left: 18px; }
.doc li { margin: 3px 0; }
.doc .d-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.doc .d-skill b { font-weight: 600; }
@media (max-width: 640px) { .doc .d-cols { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .sitenav, .sitefoot, .rz-bar, .pg-head { display: none !important; }
  body { background: #fff !important; }
  .pg { padding: 0 !important; }
  .doc { box-shadow: none; border-radius: 0; padding: 0; max-width: none; font-size: 9.6pt; line-height: 1.42; }
  .doc h1 { font-size: 21pt; }
  .doc h2 { margin: 14px 0 6px; padding-bottom: 4px; }
  .doc .d-job { margin-top: 9px; }
  .doc li { margin: 1px 0; }
  .doc ul { margin-top: 3px; }
  .doc h2 { break-after: avoid; }
  .d-job { break-inside: avoid; }
  @page { size: A4; margin: 13mm 14mm; }
}
.fb img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.12)); }

/* polish */
.tint-indigo { background: var(--tint-indigo); } .tint-green { background: var(--tint-green); } .tint-peach { background: var(--tint-peach); }
.prod-icon.tint-indigo .i, .pn-ic.tint-indigo .i { color: var(--brand); }
.cred-groups { display: block; columns: 2 420px; column-gap: 20px; }
.cred-groups .cg { break-inside: avoid; margin-bottom: 20px; }
.about-hero .pg-head h1 { font-size: clamp(36px, 4.6vw, 56px); }

/* ── Journey: interactive career map ── */
.tl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tl-stats div { padding: 16px 18px; border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.tl-stats strong { font-size: 28px; letter-spacing: -0.03em; color: var(--brand); line-height: 1.1; }
.tl-stats span { font-size: 13px; color: var(--muted); }
.tl-card { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--bg); }
.tl-scroll { overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); background: var(--surface); }
.tl-map { position: relative; min-width: 820px; padding: 18px 28px 8px; }
.tl-chs { position: relative; height: 54px; }
.tl-ch { position: absolute; top: 0; height: 100%; padding: 0 10px; border-left: 2px solid var(--line-strong); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.tl-ch strong { font-size: 13px; white-space: nowrap; }
.tl-ch small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-lanes { position: relative; height: 128px; margin-top: 8px; background: linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.tl-lane-lbl { position: absolute; left: 0; top: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tl-lane-lbl.edu { top: auto; bottom: 4px; }
.tl-bar { position: absolute; height: 40px; border: 0; border-radius: 12px; cursor: pointer; padding: 0 10px; display: flex; align-items: center; min-width: 30px; overflow: hidden; font-size: 12.5px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }
.tl-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-bar.lane-work { top: 20px; background: color-mix(in srgb, var(--brand) 16%, var(--bg)); color: var(--brand); }
.tl-bar.lane-edu { bottom: 20px; background: var(--tint-peach); color: #9a3a0a; }
:root[data-theme="dark"] .tl-bar.lane-edu { color: #f6b08a; }
.tl-bar:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 26, 51, .12); }
.tl-bar.on { background: var(--brand); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.tl-bar.lane-edu.on { background: #c2410c; color: #fff; }
.tl-now { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2px dashed var(--brand); }
.tl-now i { position: absolute; top: -18px; left: -14px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand); }
.tl-ticks { position: relative; height: 22px; margin-top: 6px; }
.tl-ticks span { position: absolute; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-panel { padding: clamp(22px, 4vw, 36px); min-height: 260px; animation: rise .25s ease-out; }
.tl-p-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tl-p-ch { font-size: 13px; font-weight: 600; color: var(--brand); }
.tl-p-nav { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-p-nav .theme-toggle { width: 36px; height: 36px; font-size: 20px; line-height: 1; color: var(--ink); }
.tl-p-nav .theme-toggle:disabled { opacity: .35; cursor: default; }
.tl-panel h2 { margin: 0; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -0.03em; line-height: 1.2; }
.tl-p-meta { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.tl-panel ul { margin: 16px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 76ch; }
@media (max-width: 640px) { .tl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ═════════ Uniform page system ═════════ */
.u-page { animation: pageIn .35s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.u-hero { padding: clamp(48px, 7vw, 88px) max(5vw, 16px) clamp(28px, 4vw, 48px); text-align: center; }
.u-hero-in { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.u-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 980px; background: var(--brand-tint); color: var(--brand); font-size: 14px; font-weight: 600; }
.u-chip .i { width: 16px; height: 16px; }
.u-hero h1 { margin: 0; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.u-lead { margin: 0; max-width: 620px; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.u-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.u-ctas.left { justify-content: flex-start; }
.u-ctas .btn { min-height: 46px; padding: 0 20px; }
.u-stage { max-width: 1080px; margin: clamp(28px, 4vw, 48px) auto 0; padding: clamp(20px, 3vw, 36px); border-radius: 32px; background: linear-gradient(180deg, var(--brand-tint), color-mix(in srgb, var(--brand-tint) 35%, var(--bg))); text-align: left; }
.u-stage.plain { background: none; padding: 0; }
.u-stage.wide { max-width: 1160px; }
.u-stage.doc-stage { max-width: 900px; }
.u-tabs { position: sticky; top: 64px; z-index: 30; padding: 10px max(5vw, 16px); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--line); }
.u-tabs-in { max-width: 1080px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.u-tabs-in::-webkit-scrollbar { display: none; }
.u-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 980px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-2) !important; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.u-tab .i { width: 16px; height: 16px; }
.u-tab:hover { border-color: var(--brand); }
.u-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg) !important; }
.u-body-wrap { max-width: 1080px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) max(5vw, 16px) 0; display: flex; flex-direction: column; gap: clamp(48px, 7vw, 88px); }
.u-body-wrap.narrow { max-width: 760px; }
.u-sep { border: 0; height: 1px; background: var(--line); margin: 0; }

/* Feature row: text + rounded visual, alternating */
.u-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; scroll-margin-top: 140px; }
.u-row.flip .u-row-txt { order: 2; }
.u-row-txt { display: flex; flex-direction: column; gap: 14px; }
.u-kicker { margin: 0; font-size: 14px; font-weight: 600; color: var(--brand); }
.u-row h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.u-body { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.u-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.u-facts span { font-size: 13px; padding: 7px 12px; border-radius: 980px; background: var(--surface); }
.u-facts b { font-weight: 600; color: var(--muted); }
.u-row-vis { border-radius: 32px; min-height: 320px; display: grid; place-items: center; padding: clamp(24px, 4vw, 44px); background: var(--surface); }

/* Carousel of cards */
.u-car { display: flex; flex-direction: column; gap: 18px; }
.u-car-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.u-car-head h2 { margin: 0; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.03em; }
.u-car-head p { margin: 4px 0 0; color: var(--muted); }
.u-car-nav { display: flex; gap: 8px; }
.u-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.u-arrow:hover { border-color: var(--brand); color: var(--brand); }
.u-car-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 32px) / 3)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.u-car-track::-webkit-scrollbar { display: none; }
.u-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 24px; background: var(--surface); color: var(--ink) !important; text-decoration: none !important; min-height: 180px; transition: transform .2s, box-shadow .2s; }
a.u-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 26, 51, .1); }
.u-card-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); color: var(--brand); display: grid; place-items: center; margin-bottom: 4px; }
.u-card-ic .i { width: 22px; height: 22px; }
.u-card small { font-size: 12.5px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.u-card strong { font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }
.u-card span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.u-card em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--brand); }
.u-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; scroll-margin-top: 140px; }
.u-grid .u-card[hidden] { display: none; }

/* Closing CTA */
.u-end { max-width: 1080px; margin: clamp(56px, 8vw, 96px) auto clamp(48px, 6vw, 80px); padding: clamp(36px, 5vw, 56px) max(5vw, 24px); border-radius: 32px; background: var(--ink); color: var(--bg); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; width: calc(100% - 2 * max(5vw, 16px)); }
.u-end h2 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; }
.u-end p { margin: 0 0 8px; color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.u-end .btn-primary { background: var(--bg); color: var(--ink) !important; }

/* Products */
.p-stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.p-app { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 18px; border-radius: 24px; background: var(--bg); color: var(--ink) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.p-app:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20, 26, 51, .12); }
.p-app-ic { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; color: var(--ink); box-shadow: 0 8px 24px rgba(20, 26, 51, .1); }
.p-app-ic .i { width: 34px; height: 34px; }
.p-app strong { font-size: 17px; }
.p-app small { font-size: 13px; color: var(--muted); }
.p-device { width: 100%; max-width: 440px; border-radius: 18px; background: var(--bg); box-shadow: 0 24px 60px rgba(20, 26, 51, .14); overflow: hidden; }
.p-device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.p-device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.p-device-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.p-device-body { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.p-device-body .p-app-ic { width: 56px; height: 56px; border-radius: 16px; }
.p-device-body .p-app-ic .i { width: 28px; height: 28px; }
.p-device-body strong { font-size: 22px; letter-spacing: -0.02em; }
.p-device-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.p-device-tags span { font-size: 13px; padding: 7px 12px; border-radius: 980px; background: var(--surface); }

/* Work */
.w-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.w-role { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; border-radius: 24px; border: 2px solid transparent; background: var(--bg); cursor: pointer; text-align: left; color: var(--ink); transition: border-color .2s, transform .2s; }
.w-role:hover, .w-role.on { border-color: var(--brand); transform: translateY(-2px); }
.w-role strong { font-size: 18px; letter-spacing: -0.02em; }
.w-role span:last-child { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.work-card em { color: var(--brand); }

/* About */
.a-stage { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(20px, 3vw, 36px); border-radius: 32px; background: var(--surface); }
.a-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.a-facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.a-facts li:last-child { border-bottom: 0; }
.a-facts small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.a-facts strong { font-size: 17px; }
.a-story { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.a-story p { margin: 0; }
.a-quote { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--brand); text-align: center; max-width: 16ch; }

/* Credentials list (single column, filtered by tabs) */
.c-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.c-list li[hidden] { display: none; }
.c-list li:first-child .cg-item { border-top: 0; }
.cg-pill { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface); padding: 3px 9px; border-radius: 980px; white-space: nowrap; }

/* Journey inside uniform stage */
.u-stage.wide .tl-stats { margin-bottom: 16px; }

/* ═════════ Phone: native-app shell ═════════ */
.tabbar { display: none; }
a, button { -webkit-tap-highlight-color: transparent; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; font-size: 10.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabbar .ti { width: 52px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .2s; }
  .tabbar .ti .i { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar a[aria-current="page"] .ti { background: var(--brand-tint); }
  .tabbar a:active .ti { transform: scale(.92); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); overscroll-behavior-y: contain; }
  .sitefoot { display: none; }
  .nav-cta { display: none; }
  .u-hero { text-align: left; padding-top: 24px; }
  .u-hero-in { align-items: flex-start; }
  .u-hero h1 { font-size: 36px; }
  .u-ctas { justify-content: flex-start; }
  .u-stage { border-radius: 24px; padding: 16px; margin-top: 24px; }
  .u-tabs { top: 64px; padding: 8px 16px; }
  .u-tabs-in { justify-content: flex-start; }
  .u-row, .u-row.flip { grid-template-columns: minmax(0, 1fr); }
  .u-row.flip .u-row-txt { order: 0; }
  .u-row-vis { min-height: 220px; border-radius: 24px; }
  .u-car-nav { display: none; }
  .u-car-track { grid-auto-columns: 78%; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
  .p-stage, .w-roles { grid-template-columns: minmax(0, 1fr); }
  .p-app { flex-direction: row; text-align: left; padding: 14px; gap: 14px; }
  .p-app-ic { width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0; }
  .p-app-ic .i { width: 26px; height: 26px; }
  .a-stage { grid-template-columns: minmax(0, 1fr); }
  .u-end { border-radius: 24px; text-align: left; align-items: flex-start; }
  .u-card:active, .p-app:active, .w-role:active { transform: scale(.98); }
  /* Home: chat window sits above the tab bar */
  .app { height: calc(100svh - 120px); }
}
@media (display-mode: standalone) { .scroll-cue { display: none; } }
@media print {
  .u-hero-in, .tabbar, .u-tabs, .u-end { display: none !important; }
  .u-hero { padding: 0 !important; }
  .u-stage { margin: 0 !important; padding: 0 !important; background: none !important; max-width: none !important; }
  body { padding: 0 !important; }
}
@media (max-width: 760px) {
  .p-app { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; }
  .p-app .p-app-ic { grid-row: 1 / 3; }
  .p-app strong, .p-app small { grid-column: 2; }
  .p-app strong { align-self: end; }
  .p-app small { align-self: start; }
}

/* ── Products index: one card per product ── */
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.p-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 28px; color: var(--ink) !important; text-decoration: none !important; min-height: 320px; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.p-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20, 26, 51, .12); }
.p-card .p-app-ic { width: 60px; height: 60px; border-radius: 17px; background: var(--bg); margin-bottom: 10px; }
.p-card .p-app-ic .i { width: 28px; height: 28px; }
.p-card small { font-size: 13px; font-weight: 600; color: var(--muted); }
.p-card strong { font-size: 26px; letter-spacing: -0.03em; }
.p-card-tag { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.p-card-body { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.p-card-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-card-meta { font-size: 13px; color: var(--muted); }
.p-card em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--brand); white-space: nowrap; }

/* ── Single product page ── */
.p-switch { max-width: 1080px; margin: 0 auto; padding: 18px max(5vw, 16px) 0; display: flex; align-items: center; gap: 16px; }
.p-back { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }
.p-switch-in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.p-switch-in::-webkit-scrollbar { display: none; }
.p-switch-in a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 980px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.p-switch-in a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.p-mini { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
.p-mini .i { width: 15px; height: 15px; color: var(--ink); }
.p-hero { max-width: 1080px; margin: 20px auto 0; width: calc(100% - 2 * max(5vw, 16px)); border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.p-hero-txt { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.p-hero-txt .u-chip { background: var(--bg); }
.p-hero h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.04em; line-height: 1.02; }
.p-hero-tag { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.p-hero .u-lead { margin: 0; text-align: left; }
.p-hero-vis { display: flex; justify-content: center; }
.p-device-body small { font-size: 14px; color: var(--muted); }
.p-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.p-facts div { padding: 18px 20px; border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.p-facts small { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.p-facts strong { font-size: 16px; overflow-wrap: anywhere; }
.p-facts a { color: var(--brand); text-decoration: none; }
.p-sec h2 { margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.p-sec-lead { margin: 0 0 24px; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.p-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.p-feat { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .2s, background .2s, transform .2s; }
.p-feat:hover { transform: translateY(-2px); }
.p-feat.on { border-color: var(--brand); background: var(--brand-tint); }
.p-feat-n { font-size: 13px; font-weight: 700; color: var(--brand); }
.p-feat strong { font-size: 18px; letter-spacing: -0.01em; }
.p-feat span:last-child { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.p-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-pn a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none; transition: background .2s; }
.p-pn a:hover { background: var(--surface-2); }
.p-pn a.next { text-align: right; }
.p-pn small { font-size: 13px; color: var(--muted); font-weight: 600; }
.p-pn strong { font-size: 18px; }

/* ── Work cards ── */
.work-tags { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.work-tags i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-chip); padding: 4px 10px; border-radius: 980px; }
.work-tags b { margin-left: auto; font-size: 13px; color: var(--brand); }
.work-card.is-link { border: 1px dashed var(--line-strong); background: var(--bg); }

/* ── About ── */
.a-impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.a-impact div { padding: 22px 24px; border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.a-impact strong { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.04em; line-height: 1; color: var(--brand); }
.a-impact span { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.a-path-card { width: 100%; max-width: 380px; background: var(--bg); border-radius: 24px; padding: 24px; box-shadow: 0 18px 44px rgba(20, 26, 51, .1); }
.a-path-h { margin: 0 0 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.a-path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.a-path li { position: relative; padding: 0 0 16px 22px; display: flex; flex-direction: column; gap: 1px; }
.a-path li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.a-path li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 17px; bottom: 0; width: 2px; background: var(--line); }
.a-path small { font-size: 12px; font-weight: 600; color: var(--muted); }
.a-path strong { font-size: 15px; }
.a-path span { font-size: 13.5px; color: var(--ink-2); }
.a-path-more { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }

@media (max-width: 820px) {
  .p-grid { grid-template-columns: minmax(0, 1fr); }
  .p-card { min-height: 0; padding: 24px; }
  .p-hero { grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .p-switch { flex-wrap: wrap; }
  .p-switch-in { margin-left: 0; width: 100%; }
  .a-impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .p-pn { grid-template-columns: minmax(0, 1fr); }
  .p-pn a.next { text-align: left; }
}

/* Carousels with up to four cards show them all in one row on wider screens */
@media (min-width: 821px) {
  .u-car.fit .u-car-track { grid-auto-flow: row; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
  .u-car.fit .u-car-nav { display: none; }
}
.work-card.is-link { grid-column: 1 / -1; min-height: 0; }
