/* Theme and interaction refinement. Existing layout, artwork, font, and identity remain. */
:root {
  color-scheme: light;
  --page: #f7f8fa;
  --surface: #fff;
  --surface-raised: #edf0f3;
  --surface-subtle: #f0f2f5;
  --ink: #171b20;
  --ink-2: #4d5662;
  --ink-3: #59636f;
  --line: #d8dde3;
  --line-strong: #a8b2bd;
  --accent: #ffae3b;
  --accent-ink: #965000;
  --accent-soft: #ffead0;
  --header: rgb(247 248 250 / 96%);
  --diagram-ink: #273b4c;
  --diagram-line: #566b7b;
  --diagram-muted: #8b9ca9;
  --diagram-faint: #c2ccd3;
  --spot: rgb(196 112 14 / 8%);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --soft: var(--surface-subtle);
  --w-2: var(--ink-2);
  --w-3: var(--ink-3);
  --w-line: var(--line);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101214;
  --surface: #181b1e;
  --surface-raised: #1f2429;
  --surface-subtle: #15181b;
  --ink: #f4f6f8;
  --ink-2: #bac2cb;
  --ink-3: #a3adb8;
  --line: #343c44;
  --line-strong: #62717e;
  --accent-ink: #ffae3b;
  --accent-soft: #3d2c15;
  --header: rgb(16 18 20 / 96%);
  --diagram-ink: #d4e1eb;
  --diagram-line: #9fb4c3;
  --diagram-muted: #6c818f;
  --diagram-faint: #3a4c59;
  --spot: rgb(255 174 59 / 9%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #101214; --surface: #181b1e; --surface-raised: #1f2429; --surface-subtle: #15181b;
    --ink: #f4f6f8; --ink-2: #bac2cb; --ink-3: #a3adb8; --line: #343c44; --line-strong: #62717e;
    --accent-ink: #ffae3b; --accent-soft: #3d2c15; --header: rgb(16 18 20 / 96%);
    --diagram-ink: #d4e1eb; --diagram-line: #9fb4c3; --diagram-muted: #6c818f; --diagram-faint: #3a4c59;
  }
}
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; scrollbar-color: var(--line-strong) var(--page); }
body { background: var(--page); color: var(--ink-2); font-weight: 400; }
::selection { background: var(--accent); color: #171b20; }
button { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .65; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-ink); outline-offset: 5px; box-shadow: none;
}
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
svg { flex-shrink: 0; }
.header-controls svg, .demo-controls svg, .project-details summary svg, .copy-email svg, .project-link svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.top { height: 84px; padding: 16px var(--gutter); color: var(--ink); background: var(--page); gap: 28px; border-bottom: 1px solid transparent; }
.top--solid { background: var(--header); color: var(--ink); border-bottom-color: var(--line); backdrop-filter: blur(12px); }
.desktop-nav { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.desktop-nav a { font-size: 14px; font-weight: 500; text-decoration: none; min-height: 44px; display: flex; align-items: center; position: relative; color: var(--ink-2); }
.desktop-nav a::after { content: ""; position: absolute; bottom: 4px; left: 0; right: 0; height: 2px; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--ink); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current]::after { transform: scaleX(1); }
.header-controls { display: flex; align-items: center; gap: 18px; }
.theme-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.theme-switch button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; transition: color 160ms, background 160ms; }
.theme-switch button[aria-pressed="true"] { color: var(--ink); background: var(--surface-raised); }
.theme-switch button:hover { color: var(--accent-ink); }
.theme-switch svg { width: 17px; height: 17px; }
.menu-btn { border: 1px solid var(--line); border-radius: 50%; width: 46px; height: 46px; }
.menu-btn:hover { background: var(--surface-raised); }
.reading-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; }
body.menu-open .top { color: var(--ink); background: var(--page); }
.menu { background: var(--page); color: var(--ink); }
.menu-links a, .menu-side a { color: var(--ink); }
.menu-links a:hover, .menu-links a:focus-visible, .menu-links a[aria-current] { color: var(--accent-ink); }
.menu-links li { padding: 8px 0; }
.menu-side { color: var(--ink-2); padding-bottom: 12px; }
.menu-side a { padding: 6px 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
.btn { font-weight: 600; letter-spacing: .08em; gap: 20px; transition: background 180ms, box-shadow 180ms; }
.btn:hover { background: #ffc46d; box-shadow: 0 7px 18px rgb(73 46 4 / 12%); }
.btn-text { color: var(--ink); letter-spacing: .07em; min-height: 48px; }
.hero { background: var(--page); color: var(--ink); padding: 144px 0 96px; min-height: min(920px, 100svh); border-bottom: 1px solid var(--line); }
.hero-grid { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(28px, 4vw, 68px); align-items: center; }
.hero h1 { color: var(--ink); font-size: clamp(46px, 4.75vw, 70px); line-height: 1.07; letter-spacing: -.035em; }
.hero .ln { display: block; animation: none; }
.hero-intro { color: var(--ink); font-size: 22px; line-height: 1.4; margin: 30px 0 16px; font-weight: 400; }
.hero .lede { color: var(--ink-2); font-size: 16px; line-height: 1.65; margin: 0 0 30px; max-width: 54ch; }
.hero .actions { gap: 20px; }
.hero .lede, .hero .actions, .hero .fleet-log, .hero-scene, .scroll-badge { animation: none; }
.fleet-demo { min-width: 0; width: 100%; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); min-height: 56px; }
.demo-title { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.demo-controls { display: flex; gap: 14px; }
.demo-controls button { border: 0; padding: 10px 0; min-height: 44px; background: none; color: var(--ink-2); font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.demo-controls button:hover:not(:disabled) { color: var(--accent-ink); }
.demo-controls svg { width: 14px; height: 14px; }
.hero-scene { height: clamp(400px, 37vw, 580px); min-height: 0; margin: 0; }
.hero-scene .scene-hint { left: 0; bottom: 8px; max-width: 100%; color: var(--ink-3); font-size: 12.5px; }
.scene-label { background: var(--ink); color: var(--page); border-radius: 6px; max-width: calc(100% - 12px); white-space: normal; line-height: 1.35; padding: 10px 12px; box-shadow: 0 8px 20px rgb(0 0 0 / 18%); }
.scene-label span { color: inherit; opacity: .8; font-size: 11px; }
.scene-label::before { flex-shrink: 0; }
.demo-status { border-top: 1px solid var(--line); padding-top: 13px; min-height: 97px; }
.hero .fleet-log { font-size: 12px; color: var(--ink-2); margin: 0 0 8px; min-height: 3.2em; font-variant-numeric: tabular-nums; }
.fleet-log b { color: var(--accent-ink); }
.demo-caption { color: var(--ink-3); font-size: 11.5px; margin: 0; }
.demo-fallback { font-size: 14px; margin-top: 14px; }
.scroll-badge { display: none; }
.sec { padding: clamp(76px, 8.5vw, 120px) 0; }
.sec h2 { font-size: clamp(36px, 4vw, 58px); letter-spacing: -.025em; }
.sec--dark, .foot { background: var(--surface-subtle); color: var(--ink-2); }
.sec--dark h2, .sec--dark h3, .foot h2, .mark--lg, .foot-links a, .foot-meta a { color: var(--ink); }
.sec--soft { background: var(--surface-subtle); }
.sec-head { max-width: 850px; margin-bottom: 34px; }
.sec-head p { max-width: 57ch; }
#work .sec-head { display: grid; grid-template-columns: 1fr 1fr; max-width: none; gap: 48px; align-items: end; }
#work .sec-head p { margin: 0; font-size: 16px; }
.work-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 28px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.work-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.work-filters button { border: 1px solid transparent; background: transparent; color: var(--ink-2); padding: 9px 14px; min-height: 44px; border-radius: 24px; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background 160ms, color 160ms; }
.work-filters button:hover { background: var(--surface-raised); color: var(--ink); }
.work-filters button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.work-filters span { margin-left: 8px; opacity: .75; font-variant-numeric: tabular-nums; }
#work-count { margin: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.cards { gap: 28px; align-items: start; }
.card { background: var(--surface); border-color: var(--line); border-radius: 14px; transition: border-color 180ms, box-shadow 220ms; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 14px 28px rgb(0 0 0 / 5%); }
.card--wide, .cards--single .card { grid-column: 1 / -1; grid-template-columns: 1.06fr 1fr; grid-template-rows: none; }
.shot { background: var(--surface-raised); overflow: hidden; }
.shot svg { transition: transform 500ms var(--ease); }
.card:hover .shot svg { transform: scale(1.025); }
.card--wide .shot, .cards--single .shot { min-height: 350px; aspect-ratio: auto; }
.card-body { padding: 30px 32px; position: relative; z-index: 2; }
.card h3 { color: var(--ink); font-size: 27px; margin-bottom: 8px; font-weight: 500; letter-spacing: -.015em; }
.card-body .card-kicker { color: var(--ink-3); line-height: 1.5; font-size: 12px; margin-bottom: 20px; }
.card-body p { font-size: 15px; line-height: 1.65; }
.card-body .tags { line-height: 1.65; margin: 18px 0; }
.project-details { margin-top: 24px; border-top: 1px solid var(--line); }
.project-details summary { list-style: none; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; color: var(--ink); cursor: pointer; font-weight: 500; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary svg { width: 16px; height: 16px; transition: transform 220ms var(--ease); }
.project-details[open] summary svg { transform: rotate(45deg); }
.project-details summary:hover { color: var(--accent-ink); }
.project-flow { padding-left: 20px; font-size: 13px; margin: 10px 0 0; }
.project-flow li { padding: 5px 0 5px 5px; }
.project-flow li::marker { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.project-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--accent-ink); text-underline-offset: 4px; }
.project-link svg { width: 15px; height: 15px; }
.spot::after { background: radial-gradient(350px circle at var(--mx,50%) var(--my,50%),var(--spot),transparent 68%); z-index: 1; }
.sec--dark .spot { --spot: rgb(196 112 14 / 8%); }
.about-grid { gap: 68px; grid-template-columns: 1.1fr .9fr; }
.about-grid h2 { margin-bottom: 28px; }
.about-grid p { font-size: 16px; }
.stats { gap: 24px; }
.stats dd, .yr, .job-head span { font-variant-numeric: tabular-nums; }
.stats dd { font-size: 28px; white-space: nowrap; }
.timeline li { padding: 19px 0; grid-template-columns: 55px 1fr; gap: 20px; font-size: 14px; }
.what strong { font-size: 17px; }
.intro-right { display: none; }
.band-head { margin-bottom: 46px; }
.cols { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cols li { border-color: var(--line); padding: 32px 24px 40px; min-height: 0; }
.cols li::before { display: none; }
.cols h3 { font-size: 19px; }
.cols p { font-size: 14px; }
.marquee { margin-top: 42px; }
.marquee-track { animation-duration: 85s; animation-play-state: paused; }
.loop-visible .marquee-track, .scroll-badge.loop-visible svg { animation-play-state: running; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 14px; padding-right: 26px; color: var(--ink-2); }
.marquee-track span::after { margin-left: 26px; width: 4px; height: 4px; background: var(--accent-ink); }
.exp-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
.exp-grid > div { position: sticky; top: 128px; }
.jobs li { padding: 30px 0; }
.job-head h3 { font-size: 23px; }
.jobs .job-role { font-size: 14px; margin: 8px 0 12px; }
.jobs p { font-size: 15px; }
.cc-panel { padding: 34px 28px; }
.foot { border-top: 1px solid var(--line); padding-top: 84px; }
.foot-grid { grid-template-columns: 1.4fr .65fr .75fr; gap: 50px; }
.foot h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; margin-bottom: 26px; letter-spacing: -.025em; }
.foot-links a { font-size: 19px; min-height: 36px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--accent-ink); }
.foot-meta { font-size: 14px; }
.foot-meta a { display: inline-block; padding: 5px 0; text-underline-offset: 4px; }
.foot-meta a:hover { text-decoration: underline; }
.contact-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.copy-email { min-height: 48px; padding: 8px 0; display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); background: transparent; border: 0; font-size: 13px; cursor: pointer; }
.copy-email:hover { color: var(--accent-ink); }
.copy-email svg { width: 16px; height: 16px; }
.contact-email { display: inline-block; font-size: 15px; margin-top: 18px; text-decoration: none; text-underline-offset: 4px; }
.contact-email:hover { text-decoration: underline; }
.copy-status { min-height: 1.6em; margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
.foot-bottom { margin-top: 60px; }
::view-transition-old(root) { animation: theme-out 180ms ease-out both; }
::view-transition-new(root) { animation: theme-in 320ms ease-out both; }
@keyframes theme-out { to { opacity: 0; } }
@keyframes theme-in { from { opacity: 0; } to { opacity: 1; } }
[data-motion="paused"] .marquee-track, .page-hidden .marquee-track, .page-hidden .scroll-badge svg { animation-play-state: paused; }
[data-motion="paused"] .spot::after { opacity: 0; }
[data-motion="paused"] .shot svg { transform: none; transition: none; }
[data-motion="paused"] { scroll-behavior: auto; }
@media (min-width: 1600px) {
  .hero { min-height: 820px; }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .hero h1 { font-size: clamp(40px, 4.5vw, 52px); }
  .hero { padding-top: 128px; min-height: 760px; }
  .hero-scene { height: 400px; margin: 0; }
  .hero-scene .scene-hint { left: 0; }
  .demo-toolbar { align-items: flex-start; flex-direction: column; gap: 0; }
  .demo-title { padding-top: 12px; }
  .about-grid, .exp-grid { grid-template-columns: 1fr; gap: 44px; }
  .exp-grid > div { position: static; }
  .stats { grid-template-columns: repeat(3, auto); }
  .about-grid p { max-width: 68ch; }
  .cols li:nth-child(n+3) { border-top-color: var(--line); }
  .card--wide .shot { min-height: 0; }
  .foot-grid { grid-template-columns: 1.3fr 1fr; }
  .foot-meta { grid-column: 2; }
}
@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .header-controls { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 0; padding: 126px 0 66px; }
  .hero h1 { font-size: clamp(50px, 7.4vw, 68px); }
  .hero .ln { display: block; }
  .hero-copy { max-width: 620px; }
  .hero-intro { margin-top: 22px; }
  .hero .lede { max-width: 65ch; }
  .hero-scene { height: 390px; }
  .demo-toolbar { flex-direction: row; align-items: center; }
  .demo-title { padding: 0; }
  #work .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .card--wide, .cards--single .card { grid-template-columns: 1fr; }
  .card--wide .shot, .cards--single .shot { aspect-ratio: 560/300; min-height: 0; }
  .cards { gap: 22px; }
  .card-body { padding: 26px; }
  .work-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  #work-count { align-self: flex-end; }
}
@media (max-width: 700px) {
  .top { height: 76px; gap: 16px; padding: 14px var(--gutter); }
  .header-controls { gap: 12px; }
  .theme-switch button { width: 36px; height: 36px; }
  .mark { font-size: 26px; }
  .menu-btn { width: 44px; height: 44px; }
  .hero-copy { display: block; }
  .hero .ln { display: block; }
  .hero h1 { font-size: clamp(44px, 10vw, 62px); line-height: 1.1; }
  .hero-intro { font-size: 19px; }
  .hero .lede { margin: 0 0 24px; font-size: 15px; }
  .hero .actions { gap: 12px 22px; }
  .btn-text { font-size: 11px; gap: 12px; }
  .btn { font-size: 11px; padding-left: 24px; min-height: 54px; }
  .hero-scene { height: 340px; margin: 0; }
  .hero-copy { display: block; }
  .hero-intro { margin-top: 22px; }
  .demo-title { font-size: 11px; }
  .demo-controls { gap: 12px; }
  .demo-controls button { font-size: 11.5px; }
  .demo-controls svg { display: none; }
  .hero .fleet-log { font-size: 10px; }
  .demo-status { min-height: 92px; }
  .work-filters { gap: 5px; }
  .work-filters button { font-size: 12px; padding: 8px 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stats dd { font-size: 27px; }
  .cols li, .cols li:nth-child(3) { padding: 28px 0; border-top-color: var(--line); }
  .cols h3 { margin-bottom: 12px; }
  .cols p { max-width: 62ch; }
  .sec { padding: 72px 0; }
  .job-head { flex-wrap: wrap; gap: 5px 18px; }
  .job-head span { font-size: 12px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-meta { grid-column: auto; }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 6px 20px; }
  .foot-links a { font-size: 17px; }
  .foot-bottom { margin-top: 40px; }
  .menu-links a { font-size: clamp(31px, 7.5vw, 48px); }
  .menu-inner { padding-bottom: 32px; }
}
@media (hover: none) {
  .spot::after { display: none; }
  .card:hover .shot svg { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; gap: 10px 20px; }
  .marquee-track span { padding: 0; }
  .marquee-track span::after { display: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .shot svg, .project-details summary svg, .desktop-nav a::after { transition: none; }
  .card:hover .shot svg { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print {
  :root, :root[data-theme] { --page: #fff; --surface: #fff; --surface-subtle: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --line: #bbb; }
  html { scroll-padding: 0; }
  .top, .menu, .fleet-demo, .actions, .work-toolbar, .shot, .contact-actions, .foot-links, .foot-meta, .foot-bottom, .project-details { display: none !important; }
  .card[hidden] { display: grid !important; }
  .hero { padding: 0 0 24px; min-height: 0; }
  .hero-grid, .about-grid, .exp-grid, .foot-grid, #work .sec-head { display: block; }
  .hero h1 { font-size: 36px; }
  .sec, .foot { padding: 24px 0; }
  .sec h2 { font-size: 28px; }
  .card, .card--wide, .cards--single .card { display: block; break-inside: avoid; grid-column: auto; }
  .card-body { padding: 18px; }
  .exp-grid > div { position: static; }
}

/* ---- brand rows on project cards ---- */
.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.brand-svg { height: 15px; width: auto; color: var(--ink); flex: none; }
.brand-img { height: 22px; width: auto; display: none; flex: none; }
.brand--hog .brand-img { height: 30px; }
.brand--aer .brand-img { height: 16px; }
:root[data-theme="dark"] .brand-img--dark { display: block; }
:root:not([data-theme="dark"]) .brand-img--light { display: block; }
.card .shot { position: relative; }
.card--ttd, .card--cc, .card--aer, .card--hog { --shot-stripe: var(--accent-ink); }
.card--ttd { --accent-ink: #0372E2; --accent: #0372E2; }
.card--cc { --accent-ink: #835b00; }
:root[data-theme="dark"] .card--cc { --accent-ink: #F2B21B; }
.card--aer { --accent-ink: #C4531A; }
:root[data-theme="dark"] .card--aer { --accent-ink: #E06A28; }
.card--hog { --accent-ink: #C40000; }
:root[data-theme="dark"] .card--hog { --accent-ink: #FF3B30; }
.card--ttd .shot::before, .card--cc .shot::before, .card--aer .shot::before, .card--hog .shot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--shot-stripe); z-index: 1; }
.card--aer .shot { background: #0A0A0A; }
.card--hog .shot { background: #0b0b0b; }
.shot--video { display: flex; align-items: center; justify-content: center; padding: 22px; }
.card--wide .shot--video { min-height: 380px; }
.phone-frame { height: 100%; max-height: 340px; aspect-ratio: 9 / 16; border-radius: 22px; border: 2px solid rgba(255, 255, 255, .16); overflow: hidden; background: #000; box-shadow: 0 24px 50px rgba(0, 0, 0, .55); }
.phone-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body .tags .project-link { margin-right: 18px; }

/* ---- "Always learning" statement (glow band) ---- */
.sec--learn { position: relative; overflow: hidden; background: var(--page); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--learn::before, .sec--learn::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.sec--learn::before { width: 52vw; height: 52vw; max-width: 720px; max-height: 720px; left: -10vw; top: -30%; background: var(--accent-30); opacity: .55; animation: aurora-a 22s ease-in-out infinite alternate; }
.sec--learn::after { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; right: -8vw; bottom: -35%; background: var(--learn-blob-2); opacity: .7; animation: aurora-b 26s ease-in-out infinite alternate; }
:root { --accent-30: rgba(196, 112, 14, .28); --learn-blob-2: rgba(10, 60, 120, .10); }
:root[data-theme="dark"] { --accent-30: rgba(255, 174, 59, .28); --learn-blob-2: rgba(120, 160, 255, .12); }
@keyframes aurora-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(12vw, 10%) scale(1.15); } }
@keyframes aurora-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(-10vw, -14%) scale(1.1); } }
.learn-wrap { position: relative; z-index: 1; max-width: 1000px; text-align: left; }
.learn-chip { margin: 0 0 22px; display: inline-block; padding: 1.5px; border-radius: 999px; background: conic-gradient(from var(--chip-angle, 0deg), transparent 0 62%, var(--accent) 80%, transparent 100%); animation: chip-spin 5s linear infinite; }
@property --chip-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes chip-spin { to { --chip-angle: 360deg; } }
.learn-chip-inner { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.learn-h { font-size: clamp(34px, 4.6vw, 62px); color: var(--ink); line-height: 1.1; margin: 0 0 24px; }
.shine { font-weight: 700; color: transparent; background: linear-gradient(110deg, var(--ink) 0%, var(--ink) 38%, var(--accent) 50%, var(--ink) 62%, var(--ink) 100%); background-size: 260% 100%; background-position: 120% 0; -webkit-background-clip: text; background-clip: text; animation: shine 4.5s ease-in-out infinite; filter: drop-shadow(0 0 22px var(--accent-30)); }
@keyframes shine { 0% { background-position: 120% 0; } 60% { background-position: -120% 0; } 100% { background-position: -120% 0; } }
.learn-p { font-size: 20px; line-height: 1.65; color: var(--ink-2); max-width: 66ch; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .sec--learn::before, .sec--learn::after, .learn-chip, .shine { animation: none; }
  .shine { background-position: 50% 0; }
}
:root[data-motion="paused"] .sec--learn::before, :root[data-motion="paused"] .sec--learn::after, :root[data-motion="paused"] .learn-chip, :root[data-motion="paused"] .shine { animation: none; }

/* ---- portrait in About ---- */
.portrait { margin: 0 0 30px; width: min(100%, 300px); position: relative; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 50px rgba(0, 0, 0, .18); }
.portrait::before { content: ""; position: absolute; inset: -6px; border-radius: 24px; border: 1.5px solid var(--accent); opacity: .55; pointer-events: none; }
.portrait figcaption { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 1100px) { .timeline-wrap { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 28px; align-items: start; } .portrait { margin: 0; } }
@media (max-width: 700px) { .timeline-wrap { grid-template-columns: 1fr; } .portrait { width: min(100%, 240px); } }
