
/* Portfolio - Pham Hung Duc. Light blueprint: pitch green + brass.
   Static only: no entrance animation, content always visible. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16.5px; line-height: 1.72;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
:root {
  --bg: #F1F5F2;
  --surface: #FFFFFF;
  --surface-2: #F7FAF8;
  --ink: #14201A;
  --ink-2: #33473D;
  --muted: #5E7268;
  --line: #DBE5DF;
  --line-2: #EAF0EC;
  --brand: #16603C;        /* pitch green - text safe */
  --brand-fill: #1F8A55;
  --brand-tint: #E4F1EA;
  --accent: #8A6320;       /* brass - text safe */
  --accent-fill: #D9A93F;
  --accent-tint: #FAF1DD;
  --red: #8E3B33;
  --red-tint: #F8EBE9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,32,26,.04), 0 8px 22px rgba(20,32,26,.05);
  --shadow-lg: 0 2px 4px rgba(20,32,26,.05), 0 18px 40px rgba(20,32,26,.09);
  --maxw: 1120px;
}
h1, h2, h3, h4 { font-family: 'Bitter', Georgia, serif; font-weight: 600; color: var(--ink); letter-spacing: -.015em; line-height: 1.26; margin: 0; }
p { margin: 0 0 1.05em; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
code, kbd, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: .1em .38em; font-size: .86em; color: var(--ink-2); }
kbd { background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: .1em .45em; font-size: .82em; color: var(--ink-2); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: 'Bitter', serif; font-weight: 600; font-size: 14px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: 'Bitter', serif; font-weight: 600; font-size: 15px; }
.brand-sub { font-size: 11.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 8px 13px; border-radius: 7px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--surface-2); color: var(--brand); }
.nav-links a.on { background: var(--brand-tint); color: var(--brand); font-weight: 600; }

/* hero */
.hero { padding: 68px 0 56px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 52px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); background: var(--brand-tint); border: 1px solid #CDE3D7; padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); margin-bottom: 18px; }
.hero h1 .hl { color: var(--brand); }
.lead { font-size: 1.16rem; color: var(--ink-2); line-height: 1.68; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 8px; border: 1px solid transparent; transition: transform .12s, box-shadow .15s; }
.btn-1 { background: var(--brand); color: #fff; }
.btn-1:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-2 { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-2:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.idcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.idcard-top { background: var(--ink); padding: 22px 24px; color: #fff; }
.idcard-top .n { font-family: 'Bitter', serif; font-weight: 600; font-size: 1.3rem; }
.idcard-top .m { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: #9DB3A8; margin-top: 3px; }
.idrows { padding: 6px 24px 18px; }
.idrow { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.idrow:last-child { border-bottom: 0; }
.idrow dt { flex: 0 0 92px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.idrow dd { margin: 0; font-size: 14.8px; font-weight: 500; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--ink-2); font-weight: 500; }

/* sections */
.sec { padding: 68px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 34px; }
.sec-kicker { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 10px; }
.sec-head p { color: var(--muted); max-width: 62ch; margin: 0; }

.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.goal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.goal-ic { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 17px; margin-bottom: 14px; }
.goal h3 { font-size: 1.1rem; margin-bottom: 10px; }
.goal ul { margin: 0; padding-left: 19px; color: var(--ink-2); }
.goal li { margin-bottom: 7px; }
.goal li:last-child { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; text-align: center; }
.stat b { display: block; font-family: 'Bitter', serif; font-size: 2rem; color: var(--brand); line-height: 1; }
.stat span { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .14s, box-shadow .16s, border-color .16s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #BFD9CB; }
.pcard-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pnum { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-family: 'Bitter', serif; font-weight: 600; font-size: 15px; }
.pmod { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--muted); }
.pen { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.pcard h3 { font-size: 1.12rem; margin-bottom: 10px; }
.pcard p { color: var(--muted); font-size: 14.6px; line-height: 1.62; margin-bottom: 16px; }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.pcard-foot .go { font-size: 14px; font-weight: 600; color: var(--brand); }
.pcard:hover .go { text-decoration: underline; }

/* bai page */
.bhero { padding: 46px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand); text-decoration: underline; }
.bhero-tag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tag-num { background: var(--brand); color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 5px 11px; border-radius: 5px; }
.tag-mod { background: var(--accent-tint); color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 5px 11px; border-radius: 5px; border: 1px solid #EEDFC0; }
.bhero .ben { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.bhero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.bhero .lead { margin-bottom: 22px; font-size: 1.06rem; }
.bmeta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.body { padding: 52px 0 60px; }
.body h2 { font-size: 1.45rem; margin: 46px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.body h2:first-child { margin-top: 0; }
.body h3.sub { font-size: 1.05rem; margin: 28px 0 12px; color: var(--ink-2); }
.body > p { color: var(--ink-2); }
.body ul.bul { margin: 0 0 1.2em; padding-left: 20px; color: var(--ink-2); }
.body ul.bul li { margin-bottom: 9px; }

.aim { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand-fill); border-radius: 10px; padding: 24px 26px; margin-bottom: 40px; box-shadow: var(--shadow); }
.aim h3 { font-size: .8rem; margin-bottom: 13px; color: var(--brand); font-family: 'JetBrains Mono', monospace; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.aim ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.aim li { margin-bottom: 8px; }
.aim li:last-child { margin-bottom: 0; }

.tree { background: var(--ink); border-radius: 10px; padding: 24px 26px; margin: 0 0 26px; overflow-x: auto; }
.tree-row { display: flex; gap: 14px; align-items: baseline; padding: 5px 0; font-family: 'JetBrains Mono', monospace; font-size: 13.5px; white-space: nowrap; }
.tree-n { color: #E6EEE9; }
.tree-n.dir { color: var(--accent-fill); }
.tree-c { color: #8AA096; font-size: 12px; font-family: 'Be Vietnam Pro', sans-serif; white-space: normal; }

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.rule h4 { font-size: .95rem; margin-bottom: 8px; color: var(--brand); }
.rule p { margin: 0; font-size: 14.4px; color: var(--muted); line-height: 1.6; }

.steps { counter-reset: st; margin: 0 0 26px; padding: 0; list-style: none; }
.stp { counter-increment: st; display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.stp:last-child { border-bottom: 0; }
.stp::before { content: counter(st); flex: 0 0 28px; height: 28px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.stp-b h4 { font-size: .95rem; margin-bottom: 4px; }
.stp-b p { margin: 0; font-size: 14.6px; color: var(--muted); line-height: 1.62; }

.callout { background: var(--accent-tint); border: 1px solid #EEDFC0; border-radius: 10px; padding: 22px 24px; margin: 32px 0 0; }
.callout h4 { font-size: .78rem; font-family: 'JetBrains Mono', monospace; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 9px; }
.callout p { margin: 0; color: var(--ink-2); font-size: 15.2px; line-height: 1.66; }

.q { border-left: 3px solid var(--accent-fill); padding: 4px 0 4px 22px; margin: 0 0 26px; font-family: 'Bitter', serif; font-size: 1.22rem; font-weight: 600; color: var(--ink); line-height: 1.45; }

.tbl-wrap { overflow-x: auto; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
thead th { background: var(--surface-2); text-align: left; padding: 13px 15px; font-family: 'Bitter', serif; font-weight: 600; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody td { padding: 12px 15px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }

/* refs with type tag */
.refs2 { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: rf; }
.refs2 li { counter-increment: rf; position: relative; padding: 13px 0 13px 36px; border-bottom: 1px solid var(--line-2); }
.refs2 li:last-child { border-bottom: 0; }
.refs2 li::before { content: "[" counter(rf) "]"; position: absolute; left: 0; top: 13px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }
.refs2 .ct { font-size: 14.5px; color: var(--ink-2); display: block; margin-bottom: 5px; line-height: 1.6; }
.refs2 .tp { font-size: 11px; font-family: 'JetBrains Mono', monospace; background: var(--brand-tint); color: var(--brand); padding: 2px 8px; border-radius: 4px; }

/* outline (AI result) */
.outline { display: grid; gap: 10px; margin-bottom: 26px; }
.outline-r { display: grid; grid-template-columns: 176px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 15px 18px; align-items: start; }
.outline-r b { font-family: 'Bitter', serif; font-size: .94rem; color: var(--brand); }
.outline-r span { font-size: 14.2px; color: var(--ink-2); line-height: 1.6; }

.nl { counter-reset: nn; margin: 0 0 26px; padding: 0; list-style: none; }
.nl li { counter-increment: nn; display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.nl li:last-child { border-bottom: 0; }
.nl li::before { content: "0" counter(nn); flex: 0 0 auto; font-family: 'Bitter', serif; font-weight: 600; font-size: 1.15rem; color: #BDCFC5; line-height: 1.35; }
.nl h4 { font-size: .97rem; margin-bottom: 5px; }
.nl p { margin: 0; font-size: 14.6px; color: var(--muted); line-height: 1.64; }

/* CREATE formula */
.cr { display: grid; gap: 10px; margin-bottom: 26px; }
.cr-r { display: grid; grid-template-columns: 44px 190px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 15px 18px; align-items: start; }
.cr-l { width: 34px; height: 34px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: 'Bitter', serif; font-weight: 600; font-size: 15px; }
.cr-n b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--accent); letter-spacing: .04em; }
.cr-n span { font-size: 13.6px; color: var(--ink); font-weight: 500; }
.cr-d { font-size: 14.2px; color: var(--muted); line-height: 1.6; }

/* tools */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; box-shadow: var(--shadow); }
.tool-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tool-h b { font-family: 'Bitter', serif; font-size: 1.02rem; }
.tool-h span { font-size: 11.5px; font-family: 'JetBrains Mono', monospace; background: var(--brand-tint); color: var(--brand); padding: 3px 9px; border-radius: 4px; }
.tool p { margin: 0; font-size: 14.2px; color: var(--muted); line-height: 1.6; }

/* flow */
.flow { display: grid; gap: 8px; margin-bottom: 26px; counter-reset: fl; }
.flow-r { display: grid; grid-template-columns: 34px 130px 130px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 13px 18px; align-items: center; counter-increment: fl; }
.flow-r::before { content: counter(fl); width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.flow-r b { font-family: 'Bitter', serif; font-size: .93rem; }
.flow-r .t { font-size: 11.5px; font-family: 'JetBrains Mono', monospace; background: var(--brand-tint); color: var(--brand); padding: 3px 9px; border-radius: 4px; justify-self: start; }
.flow-r span.d { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
.spec { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; align-items: baseline; }
.spec b { flex: 0 0 148px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.spec span { font-size: 14.4px; color: var(--ink); font-weight: 500; }

.decide { background: var(--brand-tint); border: 1px solid #CDE3D7; border-radius: 10px; padding: 18px 22px; margin: 0 0 26px; font-size: 14.8px; color: var(--ink-2); line-height: 1.65; display: flex; gap: 12px; }
.decide::before { content: "→"; color: var(--brand); font-weight: 700; flex: 0 0 auto; }

.techs { display: grid; gap: 10px; margin-bottom: 26px; }
.tech-r { display: grid; grid-template-columns: 160px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; align-items: start; }
.tech-r b { font-family: 'Bitter', serif; font-size: .93rem; color: var(--brand); }
.tech-r span { font-size: 14.2px; color: var(--muted); line-height: 1.58; }

.human { display: grid; gap: 14px; margin-bottom: 26px; }
.human-c { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent-fill); border-radius: 8px; padding: 18px 22px; }
.human-c h4 { font-size: .97rem; margin-bottom: 6px; }
.human-c p { margin: 0; font-size: 14.4px; color: var(--ink-2); line-height: 1.64; }

/* before / after */
.ba { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.ba-c { border-radius: 10px; padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); }
.ba-c.old { background: var(--surface-2); }
.ba-c.new { background: var(--brand-tint); border-color: #CDE3D7; }
.ba-c h4 { font-size: .96rem; margin-bottom: 11px; }
.ba-c.new h4 { color: var(--brand); }
.ba-c ol { margin: 0 0 12px; padding-left: 19px; font-size: 14.1px; color: var(--ink-2); }
.ba-c li { margin-bottom: 5px; }
.ba-c .tot { font-size: 13.4px; color: var(--muted); font-style: italic; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }

.pol { display: grid; gap: 14px; margin-bottom: 26px; }
.pol-c { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand-fill); border-radius: 8px; padding: 18px 22px; }
.pol-c h4 { font-size: .97rem; margin-bottom: 7px; }
.pol-c p { margin: 0; font-size: 14.4px; color: var(--muted); line-height: 1.64; }

.codeblk { background: var(--ink); color: #E6EEE9; border-radius: 10px; padding: 22px 24px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.75; white-space: pre-wrap; margin: 0 0 26px; overflow-x: auto; }
.declare { background: var(--brand-tint); border: 1px solid #CDE3D7; border-radius: 10px; padding: 22px 24px; margin: 0 0 26px; font-size: 15px; color: var(--ink-2); line-height: 1.7; font-style: italic; }

.eth { display: grid; gap: 16px; margin-bottom: 26px; }
.eth-c { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; box-shadow: var(--shadow); }
.eth-c h4 { font-size: 1rem; margin-bottom: 9px; color: var(--accent); }
.eth-c p { margin: 0; font-size: 14.6px; color: var(--ink-2); line-height: 1.66; }

/* 6 principles */
.p6 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 26px; counter-reset: p6; }
.p6-c { counter-increment: p6; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; box-shadow: var(--shadow); }
.p6-c h4 { font-size: .98rem; margin-bottom: 7px; display: flex; align-items: center; gap: 10px; }
.p6-c h4::before { content: counter(p6); width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.p6-c p { margin: 0; font-size: 14.2px; color: var(--muted); line-height: 1.6; }

/* infographic mock */
.ig { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); margin-bottom: 12px; }
.ig-head { background: var(--ink); color: #fff; padding: 26px 24px; text-align: center; }
.ig-title { font-family: 'Bitter', serif; font-weight: 600; font-size: 1.28rem; text-transform: uppercase; letter-spacing: .02em; }
.ig-sub { font-size: 12.8px; color: #9DB3A8; margin-top: 8px; line-height: 1.5; }
.ig-cols { display: grid; grid-template-columns: repeat(2, 1fr); }
.ig-col { padding: 24px; }
.ig-col.go { background: var(--brand-tint); }
.ig-col.stop { background: var(--red-tint); border-left: 1px solid var(--line); }
.ig-lab { display: flex; align-items: center; gap: 9px; font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.ig-col.go .ig-lab { color: var(--brand); }
.ig-col.stop .ig-lab { color: var(--red); }
.ig-lab .dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.ig-col.go .dot { background: var(--brand-fill); }
.ig-col.stop .dot { background: var(--red); }
.ig-col ul { margin: 0; padding-left: 19px; font-size: 14.4px; color: var(--ink-2); }
.ig-col li { margin-bottom: 8px; }
.ig-col li:last-child { margin-bottom: 0; }
.ig-foot { background: var(--accent-fill); color: #3B2C08; text-align: center; padding: 15px 20px; font-family: 'Bitter', serif; font-weight: 600; font-size: 1rem; }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gal figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.gal img { width: 100%; height: auto; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.gal figcaption { padding: 13px 16px; font-size: 13.2px; color: var(--muted); line-height: 1.55; }
.gal-note { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; font-style: italic; }

.pdfbox { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.pdfbar { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.pdfbar .fn { font-family: 'JetBrains Mono', monospace; font-size: 12.6px; color: var(--ink-2); }
.pdfbar .fx { font-size: 12px; color: var(--muted); }
.pdfbar .dl { margin-left: auto; font-size: 13.2px; font-weight: 600; color: var(--brand); text-decoration: none; }
.pdfbar .dl:hover { text-decoration: underline; }
.pdfbox iframe { width: 100%; height: 760px; border: 0; display: block; background: #525659; }

.pager { display: flex; gap: 14px; justify-content: space-between; padding: 34px 0 0; border-top: 1px solid var(--line); margin-top: 46px; }
.pg { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 15px 20px; flex: 1; max-width: 340px; transition: border-color .15s, transform .12s; }
.pg:hover { border-color: var(--brand); transform: translateY(-2px); }
.pg span { font-size: 11.5px; font-family: 'JetBrains Mono', monospace; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.pg b { font-family: 'Bitter', serif; font-size: .93rem; color: var(--ink); font-weight: 600; }
.pg.next { text-align: right; margin-left: auto; }

.refl { display: grid; gap: 18px; }
.refl-c { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.refl-c h3 { font-size: 1.13rem; margin-bottom: 12px; display: flex; align-items: center; gap: 11px; }
.refl-c h3 .rn { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 7px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.refl-c p { color: var(--ink-2); margin-bottom: 0; }
.refl-c p + p { margin-top: .9em; }

.mtx { display: grid; gap: 10px; }
.mtx-r { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.mtx-r b { font-size: 14.2px; font-family: 'Bitter', serif; }
.mtx-r span { font-size: 14px; color: var(--muted); line-height: 1.55; }

.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0; }
.foot-in { display: flex; justify-content: space-between; gap: 22px; align-items: center; flex-wrap: wrap; }
.foot-l b { font-family: 'Bitter', serif; font-size: 15px; display: block; }
.foot-l span { font-size: 13px; color: var(--muted); }
.foot-r { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-r a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; transition: border-color .15s, color .15s; }
.foot-r a:hover { border-color: var(--brand); color: var(--brand); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .goals, .projects, .rules, .tools, .gal, .specs, .ba, .p6 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .outline-r, .mtx-r, .tech-r { grid-template-columns: 1fr; gap: 6px; }
  .cr-r { grid-template-columns: 44px 1fr; }
  .cr-d { grid-column: 1 / -1; }
  .flow-r { grid-template-columns: 34px 1fr; }
  .flow-r .t, .flow-r span.d { grid-column: 2; }
  .ig-cols { grid-template-columns: 1fr; }
  .ig-col.stop { border-left: 0; border-top: 1px solid var(--line); }
  .nav-in { height: auto; padding: 12px 20px; flex-wrap: wrap; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: 2px; flex-wrap: nowrap; }
  .nav-links a { white-space: nowrap; }
  .pdfbox iframe { height: 520px; }
  .pager { flex-direction: column; }
  .pg { max-width: none; }
  .pg.next { text-align: left; }
  .sec, .hero { padding: 44px 0; }
  .idrow dt { flex-basis: 78px; }
}
@media (max-width: 520px) {
  body { font-size: 15.8px; }
  .wrap { padding: 0 18px; }
  .stats { grid-template-columns: 1fr; }
  .spec { flex-direction: column; gap: 3px; }
  .spec b { flex-basis: auto; }
}
@media print { .nav, .pager, .foot, .pdfbox { display: none; } body { background: #fff; } }
