/* PLAIF Portfolio — Minwoo Lee
   Type: Inter (body/headings), JetBrains Mono (data/spec)
   Palette per playbook §4-1:
     --navy    #1B2A4A  primary, headers, dark surfaces
     --steel   #4A5568  secondary body
     --signal  #2B6CB0  accents, connectors
     --amber   #D69E2E  gap/area-building
     --teal    #2C7A7B  delivery/outcome badges
     --paper   #FFFFFF
     --ink     #0E1628  near-black for body type
   Background tones: white primary, soft off-white for variety.
*/

:root {
  --navy: #1B2A4A;
  --navy-2: #243758;
  --steel: #4A5568;
  --steel-soft: #718096;
  --signal: #2B6CB0;
  --amber: #C08620;
  --teal: #2C7A7B;
  --paper: #FFFFFF;
  --off: #F5F3EE;   /* warm off-white for variety slides */
  --mist: #F7FAFC;
  --hair: #E5E7EB;
  --ink: #0E1628;

  /* Type scale (px at 1920×1080) */
  --t-mega: 132px;
  --t-hero: 96px;
  --t-title: 64px;
  --t-sub: 44px;
  --t-body: 30px;
  --t-small: 24px;
  --t-label: 18px;

  /* Spacing */
  --pad-x: 110px;
  --pad-y: 88px;
  --gap-title: 48px;
  --gap-item: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

section.slide {
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  letter-spacing: -0.005em;
  display: flex;
  flex-direction: column;
}

.mono { font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace; letter-spacing: 0; }

/* ─── Frame — top utility bar + bottom chrome ──────────────────────────── */
.frame-top, .frame-bot {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x);
  font-size: var(--t-label); color: var(--steel-soft);
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 500;
}
.frame-top { top: 44px; }
.frame-bot { bottom: 44px; }
.frame-top .dot, .frame-bot .dot { color: var(--steel); }
.frame-top .mark { font-weight: 700; color: var(--navy); letter-spacing: 0.02em; text-transform: none; font-size: 20px;}
.frame-top .mark em { font-style: normal; color: var(--signal); }

.chapter-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px; color: var(--steel-soft); letter-spacing: 0.15em;
}

/* Body layout */
.body {
  position: absolute;
  inset: 104px var(--pad-x) 96px var(--pad-x);
  display: flex; flex-direction: column;
}

/* Eyebrow */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; color: var(--signal);
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}

/* Titles */
.title {
  font-size: var(--t-title);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 1500px;
}
.title em { font-style: normal; color: var(--signal); }
.subtitle {
  font-size: var(--t-sub);
  font-weight: 400;
  line-height: 1.2;
  color: var(--steel);
  letter-spacing: -0.01em;
  margin-top: 22px;
  max-width: 1400px;
}

/* Divider rule */
.rule {
  height: 1px; background: var(--hair); margin: 40px 0;
}
.rule.thick { height: 2px; background: var(--navy); opacity: 0.12; }

/* Body copy */
p.body-copy, .body-copy {
  font-size: var(--t-body); line-height: 1.4; color: var(--ink);
  letter-spacing: -0.005em;
  font-weight: 400;
}
.body-copy.small { font-size: var(--t-small); line-height: 1.5; color: var(--steel); }

/* Chip badges */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; font-weight: 500;
  padding: 12px 20px;
  border: 1px solid var(--hair);
  color: var(--navy);
  background: var(--paper);
  border-radius: 999px;
  letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.chip.solid { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.chip.signal { background: var(--signal); color: #fff; border-color: var(--signal); }
.chip.teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip.amber { color: var(--amber); border-color: var(--amber); }
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block;
}

/* Grid helpers */
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Data cards — no rounded-accent-border trope; plain disciplined blocks */
.card {
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 32px 32px 32px 32px;
}
.card h4 {
  font-size: var(--t-small);
  color: var(--steel-soft);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.card .metric {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px; font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.card .metric .unit { font-size: 28px; color: var(--steel); margin-left: 6px; }
.card .metric-caption { margin-top: 14px; font-size: 22px; color: var(--steel); line-height: 1.4;}

/* Stack list */
dl.stack { display: grid; grid-template-columns: 220px 1fr; row-gap: 18px; column-gap: 36px; }
dl.stack dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--steel-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
  font-weight: 500;
}
dl.stack dd {
  font-size: var(--t-small); line-height: 1.45; color: var(--ink);
}
dl.stack dd b { font-weight: 600; color: var(--navy); }
dl.stack dd .mono { font-size: 22px; }

/* Inline code / spec */
.spec {
  font-family: 'JetBrains Mono', monospace;
  background: var(--mist);
  padding: 2px 8px;
  border: 1px solid var(--hair);
  font-size: 0.92em;
  color: var(--navy);
  white-space: nowrap;
}

/* Big metric row */
.bignum-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy);}
.bignum {
  padding: 32px 24px 28px; border-right: 1px solid var(--hair);
  display:flex; flex-direction:column; gap: 8px;
}
.bignum:last-child { border-right: none; }
.bignum .k {
  font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel-soft); font-family: 'JetBrains Mono', monospace;
}
.bignum .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 54px; font-weight: 500; color: var(--navy); line-height: 1; letter-spacing: -0.02em;
}
.bignum .v .u { font-size: 22px; color: var(--steel); margin-left: 4px; font-weight: 400;}
.bignum .c { font-size: 19px; color: var(--steel); line-height: 1.4; margin-top: 6px;}

/* Section marker — ‘N · Chapter Title’ */
.section-mark {
  display: inline-flex; align-items: baseline; gap: 18px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 20px; color: var(--signal); font-weight: 500;
}
.section-mark .num {
  font-size: 28px; color: var(--signal); font-weight: 600;
}

/* ── Lede: bold subhead under .title with optional keyword accents (<em>) ─ */
.lede {
  font-size: 24px; font-weight: 600; line-height: 1.34;
  color: var(--navy); margin-top: 24px; max-width: 920px;
  letter-spacing: -0.015em; word-break: keep-all; overflow-wrap: break-word;
}
.lede em { font-style: normal; color: var(--signal); font-weight: 600; }
.dark .lede { color: #E6EBF4; }
.dark .lede em { color: #78A2D6; }

/* ── Entry list: numbered rows with mono num + bold heading + body ────── */
.entry-list { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.entry-list.tight { gap: 14px; margin-top: 24px; }

.entry {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
}
.entry:last-child { border-bottom: 0; padding-bottom: 0; }
.entry .entry-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px;
}
.entry .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px; font-weight: 600; color: var(--signal);
  letter-spacing: 0.04em; flex-shrink: 0;
}
.entry h3 {
  font-size: 22px; font-weight: 600; color: var(--navy);
  letter-spacing: -0.015em; line-height: 1.2;
  margin: 0; word-break: keep-all; overflow-wrap: break-word;
}
.entry h3 em { font-style: normal; color: var(--signal); font-weight: 600; }
.entry p {
  font-size: 16px; font-weight: 400; color: var(--ink);
  line-height: 1.55; margin: 0;
  letter-spacing: -0.005em; word-break: keep-all; overflow-wrap: break-word;
}
.entry p b { color: var(--navy); font-weight: 600; }
.entry p em { font-style: normal; color: var(--signal); font-weight: 500; }

/* compact variant — for slides with many entries */
.entry-list.compact .entry { padding-bottom: 12px; }
.entry-list.compact .entry h3 { font-size: 19px; }
.entry-list.compact .entry p { font-size: 14px; line-height: 1.5; }
.entry-list.compact .entry .num { font-size: 14px; }

/* dark variants */
.dark .entry { border-bottom-color: rgba(255,255,255,0.15); }
.dark .entry .num { color: #78A2D6; }
.dark .entry h3 { color: #fff; }
.dark .entry h3 em { color: #78A2D6; }
.dark .entry p { color: #B9C7DE; }
.dark .entry p b { color: #fff; }
.dark .entry p em { color: #78A2D6; }

/* ── Comparison cards: paired columns sharing entry typography ───────── */
.compare-card {
  border-radius: 4px;
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 0; overflow: hidden;
}
.compare-card.muted { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.compare-card.featured { background: rgba(120,162,214,0.12); border: 1.5px solid rgba(120,162,214,0.45); }
.compare-card .compare-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em; flex-shrink: 0;
}
.compare-card.muted .compare-num { color: #8FA6C8; }
.compare-card.featured .compare-num { color: #78A2D6; }
.compare-card .compare-h {
  font-size: 22px; font-weight: 600; color: #fff;
  letter-spacing: -0.015em; line-height: 1.2;
  flex-shrink: 0; margin: 0;
}
.compare-card .compare-h .compare-sub {
  display: block;
  font-size: 14px; font-weight: 400;
  margin-top: 4px;
}
.compare-card.muted .compare-h .compare-sub { color: #8FA6C8; }
.compare-card.featured .compare-h .compare-sub { color: #78A2D6; }
.compare-card .compare-body {
  font-size: 13px; line-height: 1.55;
  min-height: 0; overflow: hidden;
}
.compare-card.muted .compare-body { color: #B9C7DE; }
.compare-card.featured .compare-body { color: #D7DFEC; }
.compare-card .compare-body b { color: #fff; font-weight: 600; }
.compare-card .compare-body em { font-style: normal; color: #78A2D6; font-weight: 500; }

/* footer band — shared "callout" treatment */
.callout-band {
  display: grid;
  gap: 28px;
  padding: 22px 28px;
  background: rgba(120,162,214,0.08);
  border-top: 1.5px solid rgba(120,162,214,0.4);
  border-radius: 4px;
  align-items: stretch;
}
.callout-band .callout-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; font-weight: 600; color: #78A2D6;
  letter-spacing: 0.02em; line-height: 1.35;
}
.callout-band .callout-body {
  font-size: 13px; line-height: 1.55; color: #D7DFEC;
}
.callout-band .callout-body b { color: #fff; font-weight: 600; }
.callout-band .callout-body em { font-style: normal; color: #78A2D6; font-weight: 500; }

/* Two-column hero slide with photo */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; height: 100%; align-items: stretch; }
.split .text-col { display: flex; flex-direction: column; justify-content: center; }
.split .img-col { display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--navy); }
.split .img-col img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Dark slide variant */
section.slide.dark {
  background: var(--navy); color: #E6EBF4;
}
.dark .title { color: #fff; }
.dark .title em,
section.slide.dark .title em { color: #78A2D6 !important; }
.dark .subtitle { color: #AEC2DF; }
.dark .eyebrow { color: #78A2D6; }
.dark .body-copy { color: #D7DFEC; }
.dark .card { background: transparent; border-color: rgba(255,255,255,0.15); }
.dark .card h4 { color: #8FA6C8; }
.dark .card .metric { color: #fff; }
.dark .card .metric-caption { color: #B9C7DE; }
.dark .bignum-row { border-top-color: rgba(255,255,255,0.25); border-bottom-color: rgba(255,255,255,0.25); }
.dark .bignum { border-right-color: rgba(255,255,255,0.1); }
.dark .bignum .k { color: #8FA6C8; }
.dark .bignum .v { color: #fff; }
.dark .bignum .v .u { color: #B9C7DE; }
.dark .bignum .c { color: #B9C7DE; }
.dark .chip { background: transparent; color: #E6EBF4; border-color: rgba(255,255,255,0.25); }
.dark .chip.solid { background: #fff; color: var(--navy); border-color: #fff; }
.dark .chip.signal { background: var(--signal); color: #fff; border-color: var(--signal); }
.dark .frame-top, .dark .frame-bot { color: #8FA6C8; }
.dark .frame-top .mark { color: #fff; }
.dark .rule { background: rgba(255,255,255,0.18); }
.dark dl.stack dt { color: #8FA6C8; }
.dark dl.stack dd { color: #E6EBF4; }
.dark dl.stack dd b { color: #fff; }
.dark .spec { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); color: #D7DFEC; }
.dark .section-mark { color: #78A2D6; }
.dark .section-mark .num { color: #78A2D6; }

/* Off-white variant */
section.slide.off { background: var(--off); }

/* Q-quote style */
.bigquote {
  font-size: 56px; font-weight: 400; line-height: 1.22; color: var(--navy);
  letter-spacing: -0.015em; max-width: 1500px;
}
.bigquote em { font-style: normal; color: var(--signal); font-weight: 600;}
.bigquote b { font-weight: 700; }

/* Pills used in the thesis flow */
.stage-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stage {
  border: 1px solid var(--hair);
  padding: 28px 28px 28px 28px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--paper);
}
.stage .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; color: var(--signal); letter-spacing: 0.08em;
  font-weight: 500;
}
.stage .title-s {
  font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1.2;
}
.stage .flow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; color: var(--steel); letter-spacing: 0.02em;
  padding: 10px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.stage p { font-size: 21px; line-height: 1.45; color: var(--ink); }

/* Footer anchor line */
.anchor {
  font-size: 26px; color: var(--steel); line-height: 1.4;
  max-width: 1500px;
}

/* Photo framing */
.photo-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-caption {
  position: absolute; left: 24px; bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; color: rgba(255,255,255,0.9);
  padding: 8px 12px; background: rgba(14,22,40,0.55); backdrop-filter: blur(8px);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* Experiment results table */
table.exp { width: 100%; border-collapse: collapse; }
table.exp th, table.exp td {
  text-align: left; padding: 18px 18px;
  border-bottom: 1px solid var(--hair);
  font-size: 22px;
}
table.exp th {
  font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel-soft); font-weight: 600;
  border-bottom: 1px solid var(--navy);
  font-family: 'JetBrains Mono', monospace;
}
table.exp td.num { font-family: 'JetBrains Mono', monospace; color: var(--navy); font-weight: 500; text-align: right;}
table.exp td.sig { font-weight: 600; color: var(--teal); }
table.exp td.metric { color: var(--navy); font-weight: 600; }
table.exp .effect-bar {
  display: inline-block; height: 8px; background: var(--teal); vertical-align: middle;
  margin-right: 10px; border-radius: 2px;
}
table.exp .effect-bar.neg { background: var(--amber); }

/* Key/Value system stack diagram (vertical) */
.stack-diagram {
  display: grid; grid-template-columns: 180px 1fr; gap: 0 20px;
  border-top: 1px solid var(--navy);
}
.stack-diagram .layer-label {
  padding: 18px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel-soft); font-weight: 500;
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: center;
}
.stack-diagram .layer-body {
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 22px; color: var(--ink); line-height: 1.4;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.stack-diagram .layer-body b { font-weight: 600; color: var(--navy); }
.stack-diagram .pill {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 17px; padding: 4px 10px; border: 1px solid var(--hair); color: var(--navy);
  background: var(--mist);
}

/* Capability bridges card */
.bridge {
  border: 1px solid var(--hair); padding: 28px; display: flex; flex-direction: column;
  gap: 14px; background: var(--paper);
}
.bridge .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; color: var(--signal); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
.bridge h3 { font-size: 28px; color: var(--navy); font-weight: 700; line-height: 1.15; }
.bridge .tag { font-size: 18px; color: var(--teal); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.bridge ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bridge ul li {
  font-size: 19px; line-height: 1.4; color: var(--ink);
  padding-left: 16px; position: relative;
}
.bridge ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; background: var(--signal);
}
.bridge .bridge-hint {
  margin-top: 4px; font-size: 17px; color: var(--steel); font-style: italic; line-height: 1.35;
}

/* Wide-quote title slide */
section.slide.titleslide { background: var(--navy); color: #fff; }
.titleslide .body { inset: 0; display: flex; flex-direction: column; justify-content: center; padding: var(--pad-y) var(--pad-x); }
.titleslide .nameplate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; letter-spacing: 0.22em; text-transform: uppercase; color: #78A2D6; font-weight: 500;
}
.titleslide h1 {
  font-size: 100px; line-height: 1.02; font-weight: 700; letter-spacing: -0.025em;
  margin-top: 34px; color: #fff; max-width: 1600px;
}
.titleslide h1 em { font-style: normal; color: #78A2D6; font-weight: 500;}
.titleslide .tagline {
  font-size: 32px; color: #C5D2E7; font-weight: 400;
  margin-top: 34px; line-height: 1.35;
  max-width: 1300px;
}
.titleslide .meta {
  display: flex; gap: 36px; margin-top: 64px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; letter-spacing: 0.08em; color: #AEC2DF;
}
.titleslide .meta span b { color: #fff; font-weight: 500;}

/* Two-panel spec/photo */
.hero-photo { position: relative; width: 100%; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,22,40,0) 45%, rgba(14,22,40,0.75) 100%);
  pointer-events: none;
}

/* Gap bar (honest gap) */
.gap-bar {
  background: #FFF7EA;
  border-left: 4px solid var(--amber);
  padding: 22px 26px;
  display: flex; gap: 22px; align-items: flex-start;
}
.gap-bar .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber); font-weight: 600; padding-top: 4px; white-space: nowrap;
}
.gap-bar .v { font-size: 20px; line-height: 1.45; color: var(--ink); }
.gap-bar .v b { color: var(--navy); font-weight: 600; }

/* Checkmark badges for credibility */
.creds {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.cred {
  padding: 20px 22px; border-right: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 6px;
}
.cred:last-child { border-right: none; }
.cred .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 40px; font-weight: 500; color: var(--navy); line-height: 1;
}
.cred .l { font-size: 17px; color: var(--steel); line-height: 1.3;}

/* Closing one-liner */
.closing {
  font-size: 72px; line-height: 1.12; font-weight: 400; letter-spacing: -0.02em;
  color: #fff; max-width: 1600px;
}
.closing b { font-weight: 700; color: #fff; }
.closing em { font-style: normal; color: #78A2D6; }
.closing .under { position: relative; }
.closing .under::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 4px;
  background: var(--signal);
}
