/* Original public deck styling, scoped so slide classes do not affect the site. */
.deck-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 24px; padding-bottom: 24px; font-size: 12px; }
.deck-nav > span { color: var(--ink); font-weight: 600; }
.deck-nav > div { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.deck-nav a { color: var(--accent); text-underline-offset: 4px; }
.portfolio-deck { width: min(calc(100% - 96px), 1920px); margin: 0 auto 48px; }
.portfolio-deck .slide { width: 1920px; height: 1080px; position: relative; overflow: hidden; background: var(--bg); padding: 72px 96px 64px; display: flex; flex-direction: column; zoom: var(--deck-scale, .65); margin-bottom: 32px; border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 24px; }
.portfolio-deck .slide:last-child { margin-bottom: 0; }
.portfolio-deck .kicker { font-size: 20px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; gap: 14px; align-items: center; }
.portfolio-deck .kicker .sep { width: 6px; height: 6px; border-radius: 50%; background: #c7d2fe; flex: 0 0 auto; }
.portfolio-deck .kicker .tag { color: var(--muted); }
.portfolio-deck h1 { font-size: 64px; line-height: 1.04; letter-spacing: -.02em; color: var(--ink); margin: 14px 0 0; font-weight: 750; }
.portfolio-deck h2 { font-size: 56px; line-height: 1.06; letter-spacing: -.02em; color: var(--ink); margin: 12px 0 0; font-weight: 750; }
.portfolio-deck .lede { font-size: 25px; line-height: 1.45; color: var(--text); margin: 18px 0 0; max-width: 1500px; }
.portfolio-deck .footer { position: absolute; left: 96px; right: 96px; bottom: 30px; display: flex; justify-content: space-between; font-size: 15px; color: #94a3b8; letter-spacing: .02em; }
.portfolio-deck .grid { display: grid; grid-template-columns: 680px 1fr; gap: 56px; margin-top: 40px; flex: 1; min-height: 0; }
.portfolio-deck .grid.even { grid-template-columns: 1fr 1fr; }
.portfolio-deck .col { display: flex; flex-direction: column; gap: 22px; min-height: 0; }
.portfolio-deck .label { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.portfolio-deck .para { font-size: 21px; line-height: 1.5; margin: 0; }
.portfolio-deck .para b { color: var(--ink); }
.portfolio-deck ul.pts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.portfolio-deck ul.pts li { font-size: 20px; line-height: 1.42; padding-left: 26px; position: relative; }
.portfolio-deck ul.pts li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.portfolio-deck ul.pts li b { color: var(--ink); }
.portfolio-deck .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.portfolio-deck .chip { font-size: 16px; font-weight: 600; color: #3730a3; background: var(--accent-soft); border: 1px solid #e0e7ff; padding: 6px 12px; border-radius: 999px; }
.portfolio-deck .chip.alt { color: #115e59; background: #ecfeff; border-color: #cffafe; }
.portfolio-deck .chip.prod { color: #166534; background: #dcfce7; border-color: #bbf7d0; display: inline-flex; align-items: center; gap: 6px; }
.portfolio-deck .chip.prod::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #16a34a; border-radius: 50%; }
.portfolio-deck .chip.dev { color: #991b1b; background: #fee2e2; border-color: #fecaca; display: inline-flex; align-items: center; gap: 6px; }
.portfolio-deck .chip.dev::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; }
.portfolio-deck .metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.portfolio-deck .metrics.three { grid-template-columns: repeat(3, 1fr); }
.portfolio-deck .metrics.four { grid-template-columns: repeat(4, 1fr); }
.portfolio-deck .metric { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.portfolio-deck .metric .v { font-size: 36px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); line-height: 1.05; }
.portfolio-deck .metric .k { font-size: 16px; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.portfolio-deck .impact .para { font-size: 18px; }
.portfolio-deck .impact .metric { padding: 8px 12px; }
.portfolio-deck .impact .metric .v { font-size: 28px; }
.portfolio-deck .impact .metric .k { font-size: 13px; margin-top: 2px; }
.portfolio-deck .card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.portfolio-deck .shot { background: white; border-radius: 16px; border: 1px solid #d8dee8; box-shadow: 0 30px 60px -20px rgba(15,23,42,.28), 0 10px 20px -10px rgba(15,23,42,.12); overflow: hidden; }
.portfolio-deck .shot .bar { height: 34px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.portfolio-deck .shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; display: block; flex: 0 0 auto; }
.portfolio-deck .shot .bar span { margin-left: 12px; font-size: 13px; color: #64748b; background: white; border: 1px solid #e2e8f0; border-radius: 6px; padding: 3px 12px; }
.portfolio-deck .shot img { display: block; width: 100%; }
.portfolio-deck .shot.crop img { object-fit: cover; object-position: top left; }
.portfolio-deck .term img { display: block; width: 100%; filter: drop-shadow(0 24px 40px rgba(15,23,42,.25)); }
.portfolio-deck .caption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.portfolio-deck .stack { position: relative; flex: 1; }
.portfolio-deck .diagram { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.portfolio-deck .diagram.fill { align-self: stretch; justify-content: space-evenly; }
.portfolio-deck .diagram.big .node { font-size: 21px; padding: 20px 16px; }
.portfolio-deck .diagram.big .node small { font-size: 16px; }
.portfolio-deck .lane { display: grid; align-items: stretch; gap: 0; }
.portfolio-deck .node { background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 14px; padding: 12px 14px; font-size: 17px; line-height: 1.3; color: var(--ink); font-weight: 650; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.portfolio-deck .node small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; margin-top: 3px; }
.portfolio-deck .node.hl { background: var(--accent-soft); border-color: #a5b4fc; }
.portfolio-deck .node.hl2 { background: #ecfeff; border-color: #67e8f9; }
.portfolio-deck .node.ext { background: white; border-style: dashed; }
.portfolio-deck .arrow { display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 26px; font-weight: 700; }
.portfolio-deck .arrow.v { height: 26px; }
.portfolio-deck .title { background: radial-gradient(1200px 700px at 85% 15%, #312e81 0%, rgba(49,46,129,0) 60%), radial-gradient(900px 600px at 0% 100%, #134e4a 0%, rgba(19,78,74,0) 60%), #0b1220; color: #e2e8f0; padding: 110px 120px; }
.portfolio-deck .title h1 { color: white; font-size: 104px; margin-top: 26px; }
.portfolio-deck .title .kicker { color: #a5b4fc; }
.portfolio-deck .title .sub { font-size: 34px; color: #cbd5e1; margin-top: 22px; line-height: 1.35; max-width: 1300px; }
.portfolio-deck .title .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: auto; }
.portfolio-deck .title .stat { border-top: 2px solid rgba(165,180,252,.5); padding-top: 18px; }
.portfolio-deck .title .stat .v { font-size: 58px; font-weight: 750; color: white; letter-spacing: -.02em; }
.portfolio-deck .v.gate { display: flex; align-items: baseline; gap: .28em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 650; letter-spacing: 0; line-height: 1; }
.portfolio-deck .v.gate .reason { font-size: .38em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.portfolio-deck .title .stat .v.gate { font-size: 52px; }
.portfolio-deck .metric .v.gate { font-size: 30px; }
.portfolio-deck .impact .metric .v.gate { font-size: 24px; }
.portfolio-deck .title .stat .k { font-size: 20px; color: #94a3b8; margin-top: 4px; }
.portfolio-deck .title .contact { display: flex; flex-wrap: wrap; gap: 18px 36px; font-size: 22px; color: #a5b4fc; margin-top: 44px; }
.portfolio-deck a.ext { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.portfolio-deck .tl { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; flex: 1; }
.portfolio-deck .tl .era { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.portfolio-deck .tl .yr { font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.portfolio-deck .tl .job .n { font-size: 20px; font-weight: 700; color: var(--ink); }
.portfolio-deck .tl .job .t { font-size: 16px; color: var(--muted); margin-top: 2px; }
.portfolio-deck .tl .job .h { font-size: 16px; color: var(--text); margin-top: 6px; line-height: 1.4; }
.portfolio-deck .ka-bar { margin-top: 22px; background: white; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 18px; padding: 16px 22px; display: flex; gap: 28px; align-items: baseline; }
.portfolio-deck .ka-bar .n { font-size: 20px; font-weight: 700; color: var(--accent); }
.portfolio-deck .ka-bar .t { font-size: 16px; color: var(--muted); }
.portfolio-deck .ka-bar .h { font-size: 16px; color: var(--text); margin-left: auto; }
.portfolio-deck .tl .divider { height: 1px; background: var(--line); }
.portfolio-deck .end { background: #0b1220; color: #e2e8f0; justify-content: center; align-items: flex-start; padding: 120px; }
.portfolio-deck .end h2 { color: white; font-size: 96px; }

@media (max-width: 900px) {
  .portfolio-deck { width: calc(100% - 40px); }
  .portfolio-deck .slide { zoom: 1; width: 100%; height: auto; overflow: visible; padding: 32px 20px 28px; }
  .portfolio-deck .title { padding: 40px 20px; }
  .portfolio-deck .title h1 { font-size: 42px; }
  .portfolio-deck .title .sub { font-size: 18px; max-width: none; }
  .portfolio-deck .title .stats { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
  .portfolio-deck .title .stat .v { font-size: 32px; }
  .portfolio-deck .title .stat .k { font-size: 14px; }
  .portfolio-deck .title .contact { font-size: 16px; gap: 10px 18px; }
  .portfolio-deck h2 { font-size: 32px; }
  .portfolio-deck .lede, .portfolio-deck .para, .portfolio-deck ul.pts li, .portfolio-deck .impact .para { font-size: 16px; }
  .portfolio-deck .grid, .portfolio-deck .grid.even, .portfolio-deck .tl, .portfolio-deck .metrics, .portfolio-deck .metrics.three, .portfolio-deck .metrics.four { grid-template-columns: 1fr !important; }
  .portfolio-deck .tl { margin-top: 20px; }
  .portfolio-deck .ka-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .portfolio-deck .ka-bar .h { margin-left: 0; }
  .portfolio-deck .lane { grid-template-columns: 1fr !important; }
  .portfolio-deck .arrow { height: auto; }
  .portfolio-deck .stack { position: static; display: flex; flex-direction: column; gap: 16px; }
  .portfolio-deck .stack .shot, .portfolio-deck .stack .term, .portfolio-deck .shot, .portfolio-deck .term { position: static !important; width: 100% !important; right: auto !important; left: auto !important; top: auto !important; }
  .portfolio-deck .shot img, .portfolio-deck .term img { width: 100%; height: auto !important; max-height: none; }
  .portfolio-deck .footer { position: static; margin-top: 28px; }
  .portfolio-deck .end { padding: 48px 20px; }
  .portfolio-deck .end h2 { font-size: 40px; }
  .portfolio-deck .end .sub { font-size: 20px !important; }
  .portfolio-deck .end .contact { font-size: 16px !important; margin-top: 28px !important; }
  .portfolio-deck .kicker { flex-wrap: wrap; font-size: 13px; gap: 8px; }
  .portfolio-deck .contact { overflow-wrap: anywhere; }
  .portfolio-deck .shot .bar { height: auto; min-height: 34px; padding: 8px; gap: 4px; }
  .portfolio-deck .shot .bar i { width: 6px; height: 6px; }
  .portfolio-deck .shot .bar span { min-width: 0; margin-left: 4px; font-size: 11px; }
  .portfolio-deck .card, .portfolio-deck .diagram { min-width: 0; padding: 20px; }
  .portfolio-deck .slide > .grid { gap: 28px; }
  .portfolio-deck .grid > *, .portfolio-deck .lane > * { min-width: 0; }
}
@media (max-width: 400px) {
  .portfolio-deck { width: calc(100% - 24px); }
  .portfolio-deck .title .stats { grid-template-columns: 1fr; }
  .portfolio-deck .title h1 { font-size: 36px; }
  .portfolio-deck h2 { font-size: 28px; }
}
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  .site-header, .site-footer, .deck-nav, .skip-link { display: none; }
  .portfolio-deck { width: 1920px; margin: 0; }
  .portfolio-deck .slide { zoom: 1; margin: 0; border: 0; border-radius: 0; break-after: page; print-color-adjust: exact; }
  .portfolio-deck .slide:last-child { break-after: auto; }
}
