/* Marlowe D. Minh portfolio. Light-green accents on a near-black base.
   Shared by the homepage and all articles; ambient motion respects reduced-motion settings. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --bg: #050505; /* tylertruworks.com body background */
  --bg-grid: rgba(255, 255, 255, 0.04); /* tylertruworks.com 24px grid lines */
  --bg-raise: #0f1511;
  --surface: #121915;
  --surface-2: #18211c;
  --border: #243029;
  --border-strong: #34463b;
  --text: #e9f0ea;
  --muted: #a5b4aa;
  --subtle: #839389;
  --accent: #9ee6a0;
  --accent-hi: #c4f5c1;
  --accent-ink: #072010;
  --accent-soft: rgba(158, 230, 160, 0.1);
  --accent-line: rgba(158, 230, 160, 0.34);
  --hero-grad-a: #fdba74; /* tylertruworks.com hero highlight: orange-300 > orange-500 > red-500 */
  --hero-grad-b: #f97316;
  --hero-grad-c: #ef4444;
  --radius: 16px;
  --radius-lg: 28px;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;
  --section-y: clamp(72px, 9vw, 120px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow-x: clip;
  background: transparent; /* the html canvas carries the sampled background */
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* A gently drifting grid and warm glow stay behind the content on every page. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}
body::before {
  inset: -24px;
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}
body::after {
  top: -10vh;
  left: -10vw;
  width: min(640px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), rgba(249, 115, 22, 0.1) 40%, transparent 70%);
}
html {
  background:
    radial-gradient(ellipse 70% 55% at 50% -15%, rgba(255, 237, 213, 0.08), transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(234, 88, 12, 0.16), transparent 45%),
    var(--bg);
  background-attachment: fixed;
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: grid-drift 18s linear infinite; }
  body::after { animation: glow-drift 20s ease-in-out infinite alternate; }
  @keyframes grid-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(24px, 24px); }
  }
  @keyframes glow-drift {
    from { transform: translate(0, 0) scale(1); opacity: 0.7; }
    to { transform: translate(18vw, 16vh) scale(1.15); opacity: 1; }
  }
}


body > * { position: relative; z-index: 1; }

img, svg, video, iframe { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hi); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }


.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 0.98rem; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-secondary { border-color: var(--accent-line); color: var(--accent); background: transparent; }
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hi); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  color: var(--text); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--accent-line); padding-bottom: 2px;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 13, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 750; font-size: 1.02rem; letter-spacing: -0.01em; text-decoration: none;
}
.wordmark:hover { color: var(--text); }
.wordmark-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent);
}
.wordmark-mark svg { width: 18px; height: 18px; }

.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 0.95rem; font-weight: 550; text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 759px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none;
    padding: 8px var(--gutter) 20px;
    background: var(--bg-raise); border-bottom: 1px solid var(--border);
  }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 2px; }
  .js .site-nav a { padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
  .site-nav a { padding: 8px 10px; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 88px);
}
.hero-copy > * + * { margin-top: 20px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}
.hero h1 .hl {
  color: var(--hero-grad-b);
  background-image: linear-gradient(to right, var(--hero-grad-a), var(--hero-grad-b), var(--hero-grad-c));
  filter: brightness(1.25);
  text-shadow: none;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 .hl {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.hero-copy .eyebrow { font-size: 0.9rem; }
.hero-sub { max-width: 58ch; color: var(--muted); font-size: clamp(1.06rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-top: 8px; }
.location {
  display: flex; align-items: center; gap: 8px;
  color: var(--subtle); font-size: 0.92rem;
}
.location svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

.hero-portrait { position: relative; margin: 0; justify-self: end; width: min(100%, 460px); }
.hero-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: var(--surface);
}
.badge {
  position: absolute; left: 16px; bottom: 16px;
  display: grid; gap: 2px;
  padding: 12px 16px 12px 14px;
  border: 1px solid var(--border-strong); border-radius: 14px;
  background: rgba(11, 16, 13, 0.9);
}
.badge strong { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.badge strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.badge span { color: var(--muted); font-size: 0.84rem; padding-left: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-portrait { animation: rise 0.6s ease-out both; }
  .hero-portrait { animation-delay: 0.08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}

@media (max-width: 859px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-portrait { justify-self: start; width: min(100%, 420px); }
}

/* ---------- Proof strip ---------- */

.proof { border-block: 1px solid var(--border); background: var(--bg-raise); padding-block: 36px 30px; }
.proof-list {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
}
.proof-list li { display: grid; align-content: start; gap: 6px; padding: 4px 22px; border-left: 1px solid var(--border); }
.proof-list li:first-child { border-left: 0; padding-left: 0; }
.proof-list strong { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.proof-list span { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.fn { color: var(--accent); text-decoration: none; font-weight: 700; padding-inline: 1px; }
.proof-note { max-width: 110ch; margin-top: 26px; color: var(--subtle); font-size: 0.82rem; line-height: 1.55; }

@media (max-width: 899px) {
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .proof-list li, .proof-list li:first-child { border-left: 0; padding: 0 16px 0 0; }
  .proof-list li:last-child { grid-column: 1 / -1; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head > * + * { margin-top: 14px; }
.section h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 780; letter-spacing: -0.03em; }
.section-intro { color: var(--muted); font-size: 1.1rem; }

/* About */
.about-intro {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.about-intro h2 { margin-top: 14px; }
.about-text { display: grid; gap: 18px; max-width: 66ch; color: var(--muted); font-size: 1.08rem; }
.about-text p:first-child { color: var(--text); }

@media (max-width: 859px) { .about-intro { grid-template-columns: 1fr; } }

/* Featured USP: the page's only bloom-led element. The section clips the bloom so it never widens the page. */
.about { overflow-x: clip; }
.feature { position: relative; isolation: isolate; margin-top: clamp(56px, 8vw, 96px); }
.feature::before {
  content: ""; position: absolute; inset: -48px -24px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 10% 6%, rgba(158, 230, 160, 0.26), transparent 72%),
    radial-gradient(34% 44% at 94% 96%, rgba(124, 214, 176, 0.18), transparent 72%);
  filter: blur(24px);
}
.feature-panel {
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 30px 80px -40px rgba(158, 230, 160, 0.25);
}
.feature-title { max-width: 20ch; margin-top: 16px; font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; }
.standfirst { max-width: 62ch; margin-top: 20px; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.25rem); }

.flow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  margin: 28px 0 0; padding: 0; list-style: none; counter-reset: flow;
}
.flow li {
  position: relative; display: grid; gap: 10px; align-content: start;
  padding: 18px 18px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface-2); font-weight: 650; line-height: 1.35;
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -22px; width: 16px; height: 16px;
  transform: translateY(-50%);
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%239ee6a0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.flow-n { color: var(--subtle); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
.flow li.is-key { border-color: var(--accent); background: var(--accent-soft); }
.flow li.is-key .flow-n { color: var(--accent); }

.workflow-summary { max-width: 68ch; margin-top: 24px; color: var(--muted); }


.proof-callout {
  margin: 24px 0 0; padding: 20px;
  border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: 14px;
  background: var(--bg);
  font-size: 1.05rem;
}
.proof-callout strong { color: var(--accent); font-weight: 700; }
.feature-link { margin-top: 20px; }

@media (max-width: 999px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { display: none; }
}
@media (max-width: 599px) {
  .flow { grid-template-columns: 1fr 1fr; gap: 10px; }
  .flow li { padding: 12px; font-size: 0.9rem; }
  .flow li:not(:last-child)::after { display: none; }
}

/* What I do + experience */
.about-grid { display: grid; gap: clamp(48px, 7vw, 80px); margin-top: clamp(56px, 8vw, 96px); }
.sub-title { margin-bottom: 22px; font-size: 1.35rem; font-weight: 720; }

.card-base { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

.cap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
.cap-grid li { display: grid; align-content: start; gap: 8px; padding: 20px; min-width: 0; }
.cap-grid h4 { font-size: 1rem; font-weight: 700; line-height: 1.3; text-wrap: pretty; }
.cap-grid h4::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 2px; background: var(--accent); vertical-align: 0.12em; }
.cap-grid p { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.cap-grid li.is-key { border-color: var(--accent-line); }


.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.timeline li {
  display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr); gap: 6px 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.timeline time, .timeline .dates { color: var(--accent); font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline .role { font-weight: 650; }
.timeline .org { color: var(--muted); }

@media (max-width: 759px) {
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Article cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; overflow: hidden; }
.card-cover { aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover.is-chart { background: #121915; }
.card-cover.is-chart img { object-fit: contain; padding: 14px; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 24px; }
.card-title { font-size: 1.32rem; font-weight: 730; line-height: 1.22; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-summary { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 5px 11px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--bg-raise); color: var(--text); font-size: 0.8rem; font-weight: 550; line-height: 1.35;
}
.card-meta { margin-top: auto; padding-top: 6px; color: var(--subtle); font-size: 0.85rem; }
.card .btn { align-self: flex-start; }

.card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.card-featured .card-cover { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--border); display: grid; place-items: center; }
.card-featured .card-cover img { height: auto; }
.card-featured .card-body { padding: clamp(24px, 3.5vw, 40px); justify-content: center; }
.card-featured .card-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }

@media (max-width: 999px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-cover { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 659px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-panel {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: end;
  padding: clamp(28px, 5vw, 56px);
}
.contact-panel h2 { margin-top: 14px; }
.contact-panel .contact-body { max-width: 56ch; margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.contact-actions { display: grid; gap: 16px; justify-items: start; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-email a { color: var(--text); font-size: 1.1rem; font-weight: 600; }
.contact-email a:hover { color: var(--accent); }

@media (max-width: 859px) { .contact-panel { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Footer ---------- */

.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 0.88rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.footer-inner p + p { margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); }

@media (max-width: 759px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Article pages ---------- */

.article-head { max-width: 820px; padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 40px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; font-size: 0.88rem; color: var(--subtle); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.article-head h1 { margin-top: 14px; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; }
.article-meta { margin-top: 20px; color: var(--subtle); font-size: 0.92rem; }

.prose { padding-bottom: clamp(48px, 7vw, 88px); font-size: clamp(1rem, 1.2vw, 1.08rem); }
.prose > * { max-width: 720px; margin-inline: auto; }
.prose > * + * { margin-top: 1.15em; }
.prose a, .prose code { overflow-wrap: anywhere; }
.prose > figure, .prose > .table-wrap { max-width: 960px; }
.prose > figure.fig-narrow { max-width: 640px; }
.prose > h2 + *, .prose > h3 + * { margin-top: 0.7em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 750; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; font-weight: 700; }
.prose p, .prose li { color: #d3ddd5; }
.prose strong { color: var(--text); font-weight: 680; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--border); }

.prose figure { margin-block: 2em; max-width: 100%; }
.prose figure img { width: auto; max-width: 100%; height: auto; margin-inline: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.prose .video-frame img { width: 100%; max-width: 100%; }
.prose figure a.zoom { display: block; max-width: 100%; }
.prose figcaption { max-width: 720px; margin: 12px auto 0; color: var(--subtle); font-size: 0.9rem; font-style: italic; line-height: 1.5; overflow-wrap: anywhere; }

.article-hero {
  width: min(100% - 2 * var(--gutter), 960px);
  margin-block: 0 clamp(32px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.article-hero img { width: 100%; max-width: 100%; max-height: min(58vw, 560px); object-fit: cover; }

.table-wrap {
  max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.96rem; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--bg-raise); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 650; }
.prose td { color: var(--muted); }

@media (max-width: 659px) {
  .table-wrap { overflow-x: auto; }
  .prose table { min-width: 560px; }
}

.video-frame { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-frame iframe, .video-frame a { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; border: 0; }
.video-frame a img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; border: 0; border-radius: 0; transition: opacity 0.2s ease; }
.video-frame a:hover img { opacity: 0.85; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-label {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  padding: 8px 12px; border-radius: 10px; background: rgba(11, 16, 13, 0.88);
  color: var(--text); font-size: 0.85rem; font-weight: 600; line-height: 1.35;
}
.video-note { margin-top: 10px !important; color: var(--subtle); font-size: 0.82rem; text-align: center; }

.more { padding-block: var(--section-y); border-top: 1px solid var(--border); }
.more h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 760; margin-bottom: 28px; }
.card-compact .card-body { gap: 10px; }
.card-compact .card-title { font-size: 1.18rem; }

.notfound { padding-block: clamp(80px, 14vw, 160px); }
.notfound h1 { margin: 14px 0 18px; font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
.notfound p { color: var(--muted); max-width: 50ch; margin-bottom: 28px; }

/* Only opacity and transforms animate; no libraries or continuous scroll handlers. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-in { animation: content-rise 0.55s ease-out both; }
  @keyframes content-rise {
    from { opacity: 0.5; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card, .btn { transition: transform 0.18s ease, border-color 0.18s ease; }
  .card:hover, .btn:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .nav-toggle, .skip-link, .feature::before { display: none !important; }
  body { background: #fff; color: #111; }
}
