:root { --bg:#f7f5f0; --bg2:#efebe2; --card:#ffffff; --fg:#1d2321; --muted:#5f6b67; --line:#e2ddd2; --accent:#0f766e; --accent2:#e07a3f; --accent3:#3d5a98; --dot:#cfc8b8; --shadow:0 10px 30px rgba(29,35,33,.08);
  --med:#d9485f; --tra:#0f766e; --vis:#3d5a98; --res:#8a5cf6; --sw:#b7791f;
  --display:"Fraunces", Georgia, serif; --ui:"Inter", system-ui, sans-serif; }
[data-mode="night"] { --bg:#0e1514; --bg2:#121c1b; --card:#172322; --fg:#e8efe9; --muted:#9db0aa; --line:#24332f; --accent:#2dd4bf; --accent2:#f59e6b; --accent3:#8fb0ff; --dot:#29403b; --shadow:0 10px 30px rgba(0,0,0,.35); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--ui); -webkit-font-smoothing: antialiased; transition: background .4s, color .4s; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 14px 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.pin { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav ul a:hover, .nav ul a.on { color: var(--fg); }
.mode { border: 1px solid var(--line); background: var(--card); color: var(--fg); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; }

/* hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 6px 12px; border-radius: 999px; }
.kicker .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
h1 { font-family: var(--ui); font-weight: 900; font-size: clamp(48px, 7.2vw, 96px); line-height: .95; letter-spacing: -.045em; margin: 22px 0 18px; }
h1 em { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -.02em; }
.lede { font-size: 20px; color: var(--muted); max-width: 580px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); color: var(--fg); background: var(--card); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-mode="night"] .btn.primary { color: #062a26; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 999px 999px 28px 28px; box-shadow: var(--shadow); }
.float { position: absolute; background: var(--card); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.35; animation: bob 6s ease-in-out infinite; }
.float { color: var(--fg); text-decoration: none; } .float:hover { outline: 2px solid var(--accent); }
.float b { display: block; font-size: 20px; letter-spacing: -.02em; }
.float.f1 { left: -36px; top: 18%; } .float.f2 { right: -24px; top: 52%; animation-delay: -2s; } .float.f3 { left: -10px; bottom: 6%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { background: var(--card); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); }
.stat .v { font-size: 38px; font-weight: 900; letter-spacing: -.04em; color: var(--accent); line-height: 1.1; }
.stat .l { font-size: 14px; color: var(--muted); }

section { padding: 96px 0; }
.alt { background: var(--bg2); }
.sec-k { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); margin: 0 0 10px; }
h2 { font-weight: 900; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.035em; line-height: 1.02; margin: 0 0 16px; }
h2 em { font-family: var(--display); font-weight: 500; color: var(--accent); }
.sec-intro { color: var(--muted); max-width: 680px; font-size: 18px; margin: 0 0 40px; }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 6px; }

/* journey */
.journey { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; }
.map-sticky { position: sticky; top: 96px; align-self: start; }
.map-card { background: var(--card); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.map { position: relative; width: 100%; aspect-ratio: 180 / 69; }
.map canvas, .map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route { fill: none; stroke: var(--accent2); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 18 16; opacity: .35; transition: opacity .5s; }
.route.on { opacity: 1; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -68; } }
.city circle.core { fill: var(--accent); transition: r .4s, fill .4s; }
.city circle.halo { fill: var(--accent); opacity: 0; }
.city.on circle.core { fill: var(--accent2); }
.city.on circle.halo { animation: halo 1.8s ease-out infinite; }
@keyframes halo { 0% { opacity: .5; r: 12; } 100% { opacity: 0; r: 46; } }
.city text { font: 800 38px var(--ui); fill: var(--fg); paint-order: stroke; stroke: var(--card); stroke-width: 10px; }
.map-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 10px 6px 2px; }
.clock b { color: var(--fg); font-variant-numeric: tabular-nums; }
.chapters { display: flex; flex-direction: column; gap: 28px; }
.chapter { background: var(--card); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .4s, transform .4s; min-height: 46vh; }
.chapter.on { border-color: var(--accent); }
.chapter .when { font-size: 13px; font-weight: 700; color: var(--accent2); letter-spacing: .06em; text-transform: uppercase; }
.chapter h3 { font-size: 30px; font-weight: 900; letter-spacing: -.03em; margin: 6px 0 10px; }
.chapter h3 span { font-family: var(--display); font-weight: 500; font-style: italic; color: var(--muted); font-size: 22px; }
.chapter ul { padding-left: 18px; margin: 12px 0 0; }
.chapter li { margin-bottom: 6px; }
.chapter img { border-radius: 16px; margin-top: 16px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* two fields */
.fields { display: grid; grid-template-columns: 1fr 260px 1fr; gap: 20px; align-items: stretch; }
.field { background: var(--card); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); border-top: 6px solid var(--c); }
.field .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--c); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.field h3 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.field .item { padding: 14px 0; border-top: 1px solid var(--line); }
.field .item:first-of-type { border-top: 0; }
.field .item .meta { font-size: 13px; color: var(--muted); }
.field .item p { margin: 6px 0 0; font-size: 15px; }
.method { display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 10px; }
.method .core { background: var(--fg); color: var(--bg); border-radius: 24px; padding: 24px 18px; }
.method .core h3 { font-size: 18px; }
.method .core ol { text-align: left; padding-left: 20px; margin: 10px 0 0; font-size: 14px; }
.method .arrows { font-size: 26px; color: var(--muted); letter-spacing: 12px; margin: 8px 0; }
.pubcard { margin-top: 28px; background: var(--card); border-radius: 24px; padding: 26px 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.pubcard .doc { width: 64px; height: 80px; border-radius: 8px; background: linear-gradient(180deg, var(--accent) 0 26%, var(--bg2) 26%); position: relative; }
.pubcard .doc::after { content: ""; position: absolute; left: 10px; right: 10px; top: 32px; height: 36px; background: repeating-linear-gradient(var(--line) 0 3px, transparent 3px 8px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg2); color: var(--muted); }
.chip.ok { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.chip.wait { background: color-mix(in srgb, var(--accent2) 18%, transparent); color: var(--accent2); }

/* experience list */
.xp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xp-card { background: var(--card); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.xp-card .when { font-size: 12px; font-weight: 700; color: var(--muted); }
.xp-card .org { color: var(--accent); font-weight: 600; font-size: 15px; }
.xp-card ul { padding-left: 18px; font-size: 15px; margin: 10px 0; flex: 1; }
.xp-card a { font-size: 14px; font-weight: 600; }

/* projects */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.toolbar input { flex: 1 1 220px; max-width: 320px; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 15px; outline: none; }
.toolbar input:focus { border-color: var(--accent); }
.legend button { border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px; padding: 7px 14px; font: 600 13px var(--ui); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.legend button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--muted)); }
.legend button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.pcard { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; position: relative; }
.pcard:hover { transform: translateY(-4px); }
.pcard .stripe { height: 6px; background: linear-gradient(90deg, var(--c1, var(--muted)), var(--c2, var(--c1, var(--muted)))); }
.pcard .pb { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard .meta { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pcard p { font-size: 15px; margin: 8px 0; }
.pcard .result { background: var(--bg2); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 500; }
.pcard .go { font-size: 14px; font-weight: 700; text-decoration: none; margin-top: 8px; }
.pcard.big img { aspect-ratio: 16/8; object-fit: cover; width: 100%; }
.pcard.big .visual { aspect-ratio: 16/8; background: radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--accent2) 40%, transparent), transparent 55%), radial-gradient(circle at 75% 65%, color-mix(in srgb, var(--res) 35%, transparent), transparent 55%), var(--bg2); display: grid; place-items: center; font: 900 24px var(--ui); letter-spacing: -.02em; color: var(--fg); text-align: center; padding: 20px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.empty { color: var(--muted); }

/* recognition */
.awards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 18px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; }
.award { scroll-snap-align: start; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.award img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.award .ph { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--bg2); font: 900 40px var(--ui); color: var(--accent); }
.award .ab { padding: 16px 18px 18px; }
.award .date { font-size: 12px; font-weight: 700; color: var(--accent2); }
.award h3 { font-size: 17px; margin: 4px 0; }
.award p { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.award a { font-size: 13px; font-weight: 700; }
.scroll-hint { font-size: 13px; color: var(--muted); }
.media { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-top: 34px; background: var(--card); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.media img { border-radius: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.lead li { list-style: none; padding: 14px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.lead { padding: 0; margin: 0; }
.lead .d { font-size: 13px; color: var(--muted); white-space: nowrap; }
.skills { display: flex; flex-direction: column; gap: 14px; }
.skills .grp b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }

/* contact */
.contact { background: var(--fg); color: var(--bg); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.contact h2 { color: var(--bg); }
.contact h2 em { color: var(--accent2); }
.contact p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.clinks { display: flex; flex-direction: column; gap: 10px; }
.clinks a, .clinks button { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 10%, transparent); color: var(--bg); text-decoration: none; font: 600 15px var(--ui); border: 0; cursor: pointer; }
.clinks a:hover, .clinks button:hover { background: color-mix(in srgb, var(--bg) 18%, transparent); }
footer { padding: 32px 0 48px; font-size: 13px; color: var(--muted); text-align: center; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float, .route.on, .kicker .live, .city.on circle.halo { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .hero-grid, .journey, .fields, .featured, .media, .two, .contact { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; margin: 0 auto; }
  .map-sticky { top: 64px; z-index: 5; }
  .chapter { min-height: auto; }
  .xp, .pgrid, .gallery { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav ul { display: none; }
  .nav .mode { margin-left: auto; }
  .contact { padding: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .xp, .pgrid, .gallery { grid-template-columns: 1fr; }
  .float.f1 { left: -6px; } .float.f2 { right: -6px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
}

/* --- v2 additions --- */
.term-link { font: 600 13px "JetBrains Mono", ui-monospace, monospace; color: var(--fg); text-decoration: none; border: 1px solid var(--line); background: var(--card); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.term-link:hover { border-color: var(--accent); color: var(--accent); }
button.btn { font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.method .hint { font-size: 12px; opacity: .7; margin: 4px 0 0; }
.method .core ol { list-style: none; padding: 0; }
.method .core li { margin: 8px 0; }
.method [data-step] { width: 100%; text-align: left; font: 500 14px var(--ui); color: inherit; background: color-mix(in srgb, var(--bg) 12%, transparent); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: background .2s, border-color .2s; }
.method [data-step]:hover, .method [data-step].on { border-color: var(--accent2); background: color-mix(in srgb, var(--accent2) 22%, transparent); }
.method [data-step]::before { content: attr(data-step) "  "; font-weight: 900; color: var(--accent2); }
.field .item { transition: opacity .3s, background .3s; border-radius: 12px; }
.fields.focus .item { opacity: .35; }
.fields.focus .item.lit { opacity: 1; background: color-mix(in srgb, var(--accent2) 10%, transparent); padding-left: 10px; padding-right: 10px; }

.tl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tl-filter button[aria-pressed="false"] { opacity: .45; background: var(--card); color: var(--fg); border-color: var(--line); }
.tl-filter button[aria-pressed="true"] { background: var(--card); color: var(--fg); border-color: var(--c); }
.tl-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.tl-years { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.tl-col { display: flex; flex-direction: column; gap: 8px; }
.tl-y { font-weight: 900; font-size: 28px; letter-spacing: -.03em; border-bottom: 3px solid var(--fg); padding-bottom: 4px; margin-bottom: 4px; position: sticky; top: 0; }
.tl-ev { text-align: left; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: 8px 10px; font: 600 13px/1.35 var(--ui); color: var(--fg); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tl-ev:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tl-ev.sel { outline: 2px solid var(--c); box-shadow: var(--shadow); }
.tl-m { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tl-detail { position: sticky; top: 96px; background: var(--card); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); min-height: 260px; }
.tl-detail h3 { font-size: 22px; margin: 10px 0 6px; }
.tl-detail ul { padding-left: 18px; font-size: 15px; }
.tl-type { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.tl-city { font-size: 14px; font-weight: 600; }
.tagbtn { border: 0; cursor: pointer; font-family: inherit; }
.tagbtn:hover { background: var(--accent); color: #fff; }

.qv { border: 0; border-radius: 26px; padding: 30px; max-width: 620px; width: calc(100% - 32px); background: var(--card); color: var(--fg); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.qv::backdrop { background: rgba(10,20,18,.45); backdrop-filter: blur(3px); }
.qv-x { position: absolute; right: 16px; top: 12px; font-size: 26px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.qv-head { display: flex; gap: 16px; align-items: center; }
.qv-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.qv-head h3 { font-size: 24px; margin: 0; }
.qv-head p { margin: 2px 0 0; font-size: 15px; }
.qv-list { padding-left: 18px; margin: 18px 0; font-size: 15px; }
.qv-list li { margin-bottom: 8px; }
.qv .cta { margin-top: 10px; }

.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 25; display: flex; flex-direction: column; gap: 12px; }
.dots a { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; position: relative; transition: background .2s, transform .2s; }
.dots a.on { background: var(--accent); transform: scale(1.3); }
.dots a span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; background: var(--card); color: var(--fg); padding: 3px 8px; border-radius: 8px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots a:hover span, .dots a:focus span { opacity: 1; }
@media (max-width: 1100px) { .dots { display: none; } }
@media (max-width: 960px) { .tl-wrap { grid-template-columns: 1fr; } .tl-detail { position: static; order: -1; } .term-link { margin-left: auto; } .nav .mode { margin-left: 0; } }
.tl-o { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 600px) { .term-link { font-size: 0; padding: 7px 10px; } .term-link::before { content: ">_"; font-size: 13px; } .brand { font-size: 15px; } }

/* --- v3 additions --- */
a.stat { position: relative; text-decoration: none; color: var(--fg); display: block; transition: transform .2s, box-shadow .2s; }
a.stat:hover { transform: translateY(-3px); }
.s-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); }
.stat .v { font-size: 34px; }
.s-go { position: absolute; right: 18px; top: 16px; color: var(--muted); transition: transform .2s; }
a.stat:hover .s-go { transform: translateX(4px); color: var(--accent); }
.orgs { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.orgs > span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.orgs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; }
.orgs li { font-weight: 700; color: var(--fg); opacity: .75; font-size: 15px; }
.orgs li::before { content: "◆ "; color: var(--accent); font-size: 10px; vertical-align: middle; }

.ch-photos { margin-top: 16px; }
.ch-main { border-radius: 16px; aspect-ratio: 16/10; object-fit: cover; width: 100%; cursor: zoom-in; }
.ch-cap { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.ch-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.ch-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; width: 72px; height: 50px; background: none; }
.ch-thumbs button.on { border-color: var(--accent); }
.ch-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.chapter img { margin-top: 0; aspect-ratio: auto; }

.pipeline { margin: 6px 0 14px; background: var(--bg2); border-radius: 14px; padding: 10px; }
.pipeline svg { width: 100%; height: auto; display: block; }
.pipeline .pn rect { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.pipeline .pn.m rect { stroke: var(--med); stroke-width: 2; }
.pipeline .pn.c rect { fill: var(--med); stroke: none; }
.pipeline .pn text { font: 700 12px var(--ui); fill: var(--fg); text-anchor: middle; }
.pipeline .pn text.sub { font: 500 9.5px var(--ui); fill: var(--muted); }
.pipeline .pn.c text, .pipeline .pn.c text.sub { fill: #fff; }
.pipeline .pa { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.pipeline .ah { fill: var(--muted); }
.pipeline .lane { font: 800 9px var(--ui); letter-spacing: .12em; text-transform: uppercase; fill: var(--med); }
.pipeline figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

.pcard.big img.contain { object-fit: contain; background: #fafafa; padding: 6px; }
img.zoom { cursor: zoom-in; }

.media { grid-template-columns: 1.4fr 1fr; }
.media-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.media-strip a { position: relative; border-radius: 14px; overflow: hidden; display: block; }
.media-strip img { aspect-ratio: 3/4; object-fit: cover; width: 100%; transition: transform .4s; border-radius: 0; }
.media-strip a:hover img { transform: scale(1.05); }
.media-strip span { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; }

.certs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 48px 0 18px; }
.certs-head h3 { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 0; }
.cert-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert { margin: 0; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.cert-btn { padding: 0; border: 0; background: #f2f0ea; cursor: zoom-in; }
.cert-btn img { aspect-ratio: 4/3; object-fit: contain; width: 100%; padding: 8px; transition: transform .3s; }
.cert:hover .cert-btn img { transform: scale(1.03); }
.cert figcaption { padding: 10px 12px 12px; font-size: 13px; line-height: 1.35; }
.cert figcaption b { display: block; font-size: 13.5px; }
.cert figcaption span { color: var(--muted); font-size: 12px; }

.tl-img { width: 100%; border-radius: 14px; margin: 10px 0; max-height: 220px; object-fit: cover; }
.lightbox { border: 0; padding: 18px; background: var(--card); color: var(--fg); border-radius: 18px; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(0,0,0,.75); }
.lightbox img { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; border-radius: 10px; cursor: zoom-out; }
.lightbox p { text-align: center; font-size: 14px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 960px) { .certs { grid-template-columns: repeat(3, 1fr); } .media { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .certs { grid-template-columns: 1fr 1fr; } .ch-thumbs button { width: 60px; height: 42px; } }
.pipe-wrap { margin-top: 28px; background: var(--card); border-radius: 24px; padding: 26px 28px; box-shadow: var(--shadow); }
.pipe-wrap h3 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.pipe-wrap .pipeline { max-width: 820px; margin: 14px auto 0; background: var(--bg2); }

/* simple vs technical */
details.tech { margin: 10px 0 4px; border-top: 1px dashed var(--line); padding-top: 8px; }
details.tech summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); list-style: none; }
details.tech summary::-webkit-details-marker { display: none; }
details.tech summary::before { content: "＋ "; }
details.tech[open] summary::before { content: "－ "; }
details.tech > div { font-size: 14px; color: var(--muted); margin-top: 8px; }
details.tech > div p { margin: 0 0 8px; }
.tech-toggle { font: 600 13px var(--ui); border: 1px solid var(--line); background: var(--card); color: var(--fg); padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tech-toggle[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 960px) { .tech-toggle { display: none; } }
.award img.contain { object-fit: contain; background: #fff; padding: 14px; }
