/* Reference-led editorial: one aligned grid, no decorative card system. */
:root {
  color-scheme: light;
  --site-scale: 1;
  --site-vw: calc(1vw / var(--site-scale));
  --site-vh: calc(1vh / var(--site-scale));
  --site-svh: calc(1svh / var(--site-scale));
  --site-dvh: calc(1dvh / var(--site-scale));
  --paper: #f7f6f2;
  --ink: #191919;
  --muted: #62615d;
  --rule: #d6d5d0;
  --guide: #eae9e4;
  --hover: #eeede8;
  --accent: #4f2d7f;
  --focus: #4f2d7f;
  --timeline-career: #4f2d7f;
  --timeline-education: #146b68;
  --timeline-activities: #876018;
  --gutter: clamp(24px, calc(6 * var(--site-vw)), 112px);
  --column: calc((calc(100 * var(--site-vw)) - 2 * var(--gutter)) / 12);
  --space-section: clamp(80px, calc(9 * var(--site-vw)), 160px);
  --layer-utilities: 10;
  --layer-dock: 20;
  font-family: Arial, Helvetica, ui-sans-serif, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171717;
  --ink: #f3f2ee;
  --muted: #b4b3ae;
  --rule: #444440;
  --guide: #242423;
  --hover: #252524;
  /* TexPurp stays a sparse decorative mark; never low-contrast dark text. */
  --accent: #f3f2ee;
  --focus: #f3f2ee;
  --timeline-career: #b99add;
  --timeline-education: #71c6bb;
  --timeline-activities: #d9b567;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; zoom: var(--site-scale); }
/* Compact desktop default; preserve mobile/touch targets and normal browser zoom.
   Only visitor styles use this sheet; Platform Manager keeps its own scale. */
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  :root { --site-scale: .9; }
}
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  inset: 0 var(--gutter);
  background: repeating-linear-gradient(to right, var(--guide) 0, var(--guide) 1px, transparent 1px, transparent var(--column));
  border-right: 1px solid var(--guide);
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
a:hover { color: var(--accent); }
::selection { background: #4f2d7f; color: white; }
p { margin: 0 0 1.2em; }
.frame { margin-inline: var(--gutter); }
.skip-link { position: absolute; top: 0; left: var(--gutter); transform: translateY(-150%); padding: 12px; background: var(--ink); color: var(--paper); z-index: 3; }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand, .nav-text, .menu-toggle, .eyebrow, .section-label, .section-number, .timeline-overline, .interest-index, .toolkit .eyebrow {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px; letter-spacing: .07em; line-height: 1.6;
}
.brand { min-height: 44px; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.brand span { color: #4f2d7f; font-size: 20px; }
.portfolio-label { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.header-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; white-space: nowrap; text-align: right; }
.cursor-layer { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; user-select: none; }
.cursor-field { position: absolute; top: 0; left: 0; width: 272px; height: 272px; pointer-events: none; }

.force-run, .hero h1 .force-run { display: inline; }
.force-word, .hero h1 .force-word { display: inline-block; white-space: nowrap; }
.force-letter, .hero h1 .force-letter { display: inline-block; transition: transform 160ms ease-out; }
.force-accessible, .hero h1 .force-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; user-select: none; }
@media (prefers-reduced-motion: reduce) { .force-letter, .hero h1 .force-letter { transition: none; transform: none !important; } }

.personal-project { font-size: 13px; color: var(--muted); max-width: 600px; }
.personal-project a { border-bottom: 1px solid var(--rule); }
#site-nav.dock { position: fixed; z-index: var(--layer-dock); left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 9px; width: max-content; max-width: calc(calc(100 * var(--site-vw)) - 24px); border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); box-shadow: 0 8px 32px #00000012, 0 2px 6px #00000008; }

.dock-item { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; color: var(--muted); transition: background-color .16s ease, color .16s ease; }
.dock-item:hover, .dock-item:focus-visible, .dock-item[aria-current="location"] { background: var(--hover); color: var(--ink); }
.dock-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dock-item.nav-linkedin svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
/* Pull only hidden decorative icons; hit targets, labels and focus rings stay fixed. */
.dock a.dock-item > svg[aria-hidden="true"] { pointer-events: none; transition: transform 120ms ease-out; }
:root[data-animations="off"] .dock a.dock-item > svg[aria-hidden="true"] { transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
 .dock a.dock-item > svg[aria-hidden="true"] { transform: none !important; transition: none !important; }
}
.theme-symbol { font: 28px/1 Arial, sans-serif; }
.dock-divider { flex: 0 0 1px; height: 22px; background: var(--rule); margin-inline: 3px; }
.dock-label { position: absolute; bottom: calc(100% + 18px); left: 50%; transform: translateX(-50%); font: 11px/1.4 Arial, sans-serif; white-space: nowrap; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); background: var(--paper); opacity: 0; visibility: hidden; pointer-events: none; }
.dock-item:hover .dock-label, .dock-item:focus-visible .dock-label { opacity: 1; visibility: visible; }
.dock-item:first-child .dock-label { left: 0; transform: none; }
.dock-item:last-child .dock-label { left: auto; right: 0; transform: none; }
body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: 110px; }
.hero { min-height: calc(calc(100 * var(--site-svh)) - 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto; padding-top: clamp(64px, calc(9 * var(--site-vh)), 140px); }
.hero-copy { grid-column: 6 / 13; grid-row: 1; align-self: center; padding-bottom: 100px; }
/* Current-role card: transparent outline, natural square portrait, no added motion. */
.role-cards { display: grid; gap: 20px; min-width: 0; }
.role-card { align-self: start; width: 100%; max-width: 400px; margin: 0; padding: clamp(22px, calc(2.2 * var(--site-vw)), 32px); border: 1px solid var(--muted); border-radius: 20px; background: transparent; }
.role-card-identity { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.role-portrait { display: block; width: 88px; height: 88px; flex: 0 0 88px; object-fit: contain; border-radius: 12px; }
.role-card-tenure { font-size: 10px; line-height: 1.5; color: var(--muted); text-align: right; margin: 0 0 18px; }
.role-card-person { min-width: 0; }
.role-card-name { font-size: 16px; letter-spacing: -.025em; margin: 0; }
.role-card-title { font: 600 clamp(18px, calc(1.4 * var(--site-vw)), 20px)/1.3 Arial, Helvetica, sans-serif; letter-spacing: -.035em; color: #4f2d7f; margin: 6px 0 0; }
.role-card-institution { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 0; }
.role-card-institution span { display: block; }
:root[data-theme="dark"] .role-card-title { color: var(--ink); text-decoration: underline; text-decoration-color: #4f2d7f; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.eyebrow { color: var(--muted); }
.hero .eyebrow { font-size: 13px; }
.hero h1 { font-size: clamp(110px, calc(12.6 * var(--site-vw)), 250px); font-weight: 600; letter-spacing: -.075em; line-height: .85; margin: 30px 0 40px -.065em; }
.hero h1 span { display: block; }
.hero-descriptor { font-size: clamp(16px, calc(1.3 * var(--site-vw)), 21px); line-height: 1.4; margin-bottom: 24px; letter-spacing: -.025em; }
.hero-lede { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.hero-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; padding-bottom: 110px; font-size: 11px; color: var(--muted); }
.hero-bottom > a:first-child { grid-column: 6 / 9; min-height: 44px; display: flex; align-items: center; gap: 24px; }
.editorial-section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding-block: var(--space-section); border-top: 1px solid var(--rule); scroll-margin-top: 32px; }
.section-label, .section-number { grid-column: 1 / 4; padding-top: 10px; color: var(--muted); }
.section-body { grid-column: 4 / 12; min-width: 0; }
h2 { font: 400 clamp(40px, calc(4 * var(--site-vw)), 68px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; margin: 0 0 24px; }
h2 em { font-weight: 400; }
.section-intro { color: var(--muted); max-width: 560px; font-size: 15px; margin-bottom: 44px; }
.project-filters, .music-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.project-filters button, .music-filters button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--rule); border-radius: 6px; font-size: 13px; }
.project-filters button[aria-pressed="true"], .music-filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-status { color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.entry-date { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.music-link { display: flex; align-items: center; gap: 16px; padding: 18px 0; min-height: 104px; }
.music-link:hover { background: var(--hover); color: var(--ink); }
.music-link .project-text { flex: 1; max-width: none; min-width: 0; overflow-wrap: anywhere; }
.video-thumbnail { position: relative; flex: 0 0 112px; width: 112px; height: 72px; overflow: hidden; background: var(--hover); border: 1px solid var(--rule); }
.thumbnail-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.video-thumbnail img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) { .video-thumbnail { width: 72px; height: 54px; grid-row: 1 / 3; align-self: start; } .music-link { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; align-items: start; } .music-link .project-text, .music-link .project-category { grid-column: 2; } .music-link .project-category { text-align: left; } }
.project-index { border-top: 1px dotted var(--rule); }
.project-row { border-bottom: 1px dotted var(--rule); scroll-margin-top: 32px; }
.project-row summary { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 22px 8px; margin-inline: -8px; cursor: pointer; list-style: none; }
.project-row summary::-webkit-details-marker { display: none; }
.project-row summary:hover, .project-row[open] summary { background: var(--hover); }
.project-text { flex: 0 1 auto; max-width: 64%; }
.project-text strong { font-weight: 600; font-size: 18px; line-height: 1.4; letter-spacing: -.025em; }
.project-description { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.leader { border-bottom: 1px dotted var(--rule); min-width: 8px; flex: 1; }
.project-category { font: 10px/1.6 ui-monospace, Consolas, monospace; letter-spacing: .025em; color: var(--muted); max-width: 110px; text-align: right; }
.disclosure-mark { width: 12px; flex: 0 0 12px; height: 12px; position: relative; }
.disclosure-mark::before, .disclosure-mark::after { content: ''; background: var(--ink); position: absolute; left: 0; top: 5px; width: 11px; height: 1px; }
.disclosure-mark::after { transform: rotate(90deg); }
.project-row[open] .disclosure-mark::after { display: none; }
.project-notes { max-width: 640px; padding: 16px 0 28px; color: var(--muted); font-size: 14px; }
.project-notes strong { color: var(--ink); font-weight: 600; }
.project-notes .tools { font-size: 12px; margin: 20px 0 0; }
.privacy-note { margin: 24px 0 0; font-size: 12px; color: var(--muted); }
.about-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: clamp(28px, calc(4 * var(--site-vw)), 56px); align-items: start; }
.about-copy { max-width: 640px; font-size: 18px; line-height: 1.6; letter-spacing: -.015em; }
.about-copy p:last-child { margin-bottom: 0; }
#about > .section-body { grid-column: 1 / -1; }
#experience { scroll-margin-top: 32px; }
@media (max-width: 760px) { .about-layout { grid-template-columns: minmax(0, 1fr); } }
.approach { border-left: 2px solid #4f2d7f; padding-left: 24px; color: var(--muted); font-size: 14px; max-width: 440px; margin: 40px 0 0; }
.timeline-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 440px); gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--hover); }
.timeline-filters button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; color: var(--muted); }
.timeline-filters button:hover { color: var(--ink); }
.timeline-filters button[aria-pressed="true"] { background: color-mix(in srgb, var(--category-color) 10%, var(--paper)); color: var(--category-color); border-color: var(--category-color); font-weight: 600; box-shadow: inset 0 -2px 0 var(--category-color); }
[data-timeline-category="career"], [data-timeline-filter="career"] { --category-color: var(--timeline-career); }
[data-timeline-category="education"], [data-timeline-filter="education"] { --category-color: var(--timeline-education); }
[data-timeline-category="activities"], [data-timeline-filter="activities"] { --category-color: var(--timeline-activities); }
.timeline-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--category-color); }
.timeline-category { display: inline-flex; align-items: center; gap: 6px; grid-column: 1 / -1; justify-self: start; max-width: 100%; padding: 3px 9px; margin-bottom: 2px; border-radius: 6px; background: color-mix(in srgb, var(--category-color) 10%, var(--paper)); color: var(--category-color); font: 600 12px/1.5 Arial, Helvetica, sans-serif; }
.timeline-category-icon { flex: 0 0 14px; width: 14px; height: 14px; }
.timeline-status { color: var(--muted); font-size: 12px; margin: 0 0 20px; }
.timeline-empty { padding: 32px 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-year { display: flex; align-items: center; gap: 16px; padding-block: 4px 20px; color: #000; }
:root[data-theme="dark"] .timeline-year { color: #c0c0c0; }
.timeline-year::before { content: ''; flex: 1; border-top: 3px solid currentColor; }
.timeline-year-label { flex: 0 0 auto; margin: 0; color: inherit; font: 700 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; text-align: right; }
.timeline > .timeline-entry:first-child, .timeline-year + .timeline-entry { border-top: 0; }
.timeline-entry { border-top: 1px solid var(--rule); padding-block: 28px; }
.timeline-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; border-left: 3px solid var(--category-color); padding-left: 20px; }
.timeline-overline { color: var(--muted); font-size: 11px; }
h3 { margin: 0; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; font-size: 20px; }
.timeline-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; grid-column: 1 / -1; min-width: 0; }
.timeline-identity > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.timeline-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
.timeline-description { grid-column: 1 / -1; overflow-wrap: anywhere; }
.timeline-card p { font-size: 13px; color: var(--muted); margin: 0; }
.timeline-card .timeline-date { margin: 0; color: var(--muted); font-size: 12px; }
.timeline-card .timeline-organization { margin: 0; color: color-mix(in srgb, var(--ink) 86%, var(--paper)); font-size: 16px; font-weight: 500; line-height: 1.5; }
.location-label { color: var(--ink); }
.skills-group { border-top: 1px solid var(--rule); padding-block: 28px; }
.skills-list { margin: 20px 0 0; }
.skills-list > div { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 16px 32px; padding-block: 16px; }
.skills-list dt { font-size: 14px; font-weight: 600; }
.skills-list dd { margin: 0; color: var(--muted); font-size: 14px; }
.skills-interest { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.skills-interest .eyebrow { display: block; margin-bottom: 8px; }
.toolkit { border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.toolkit > .eyebrow, .toolkit > h3, .toolkit-end { grid-column: 1 / -1; }
.toolkit h4 { font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.toolkit p { font-size: 13px; color: var(--muted); margin: 0; }
.interest-list { display: grid; gap: 24px; }
.interest-card { border-top: 1px solid var(--rule); padding-top: 24px; }
.interest-index { color: var(--muted); font-size: 10px; }
.interest-card h3 { margin-block: 8px; }
.interest-card p { font-size: 14px; color: var(--muted); max-width: 540px; margin: 0; }
.contact-inner { grid-column: 4 / 12; }
.contact-inner p { color: var(--muted); font-size: 15px; }
.contact-action { margin-top: 40px; }
#email-link { font-size: 18px; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--ink); gap: 40px; }
.contact-hint { margin-top: 12px; }
.linkedin-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; }
.linkedin-link svg { width: 16px; height: 16px; }
.site-footer { border-top: 1px solid var(--rule); padding-block: 28px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.site-footer a { padding-block: 12px; }
@media (max-width: 1100px) {
  .hosting-detail { display: none; }
  .hero-copy { grid-column: 5 / 13; }
  .hero-bottom > a:first-child { grid-column: 5 / 9; }
  .section-body, .contact-inner { grid-column: 3 / 13; }
  .section-label, .section-number { grid-column: 1 / 3; font-size: 10px; max-width: 100px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; --column: calc((calc(100 * var(--site-vw)) - 2 * var(--gutter)) / 4); }
  .site-header { gap: 12px; padding-block: 12px; }
  .portfolio-label { font-size: 10px; letter-spacing: .02em; }
  .header-note { font-size: 10px; }
  #site-nav.dock { gap: 0; padding: 6px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .dock-divider { margin-inline: 2px; }
  .hero { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 56px; min-height: calc(calc(100 * var(--site-svh)) - 68px); }
  .hero-copy { grid-column: 2 / 5; padding-bottom: 76px; }
  .role-card { padding: 24px; }
  .hero h1 { font-size: clamp(90px, calc(22 * var(--site-vw)), 165px); margin-block: 28px 32px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .045em; }
  .hero-descriptor { font-size: 17px; }
  .hero-bottom { display: flex; flex-direction: column; align-items: start; padding-bottom: 110px; }
  .hero-bottom > a:first-child { margin-left: var(--column); }
  .editorial-section { display: block; padding-block: 64px; }
  .section-label, .section-number { display: block; max-width: none; font-size: 10px; margin-bottom: 28px; padding-top: 0; }
  h2 { font-size: clamp(40px, calc(8 * var(--site-vw)), 58px); }
  .section-intro { font-size: 14px; margin-bottom: 32px; }
  .project-row summary { flex-wrap: wrap; gap: 10px; padding-block: 22px; }
  .project-text { max-width: none; flex-basis: calc(100% - 26px); }
  .project-text strong { font-size: 18px; }
  .project-category { order: 3; max-width: none; text-align: left; font-size: 9px; }
  .leader { display: none; }
  .disclosure-mark { align-self: start; margin-top: 8px; }
  .timeline-identity { flex-direction: column; align-items: stretch; gap: 4px; }
  .skills-list > div { grid-template-columns: 1fr; gap: 8px; }
  .toolkit { grid-template-columns: 1fr; gap: 20px; }
  .contact-inner h2 { margin-top: 0; }
}
@media (max-width: 400px) { .timeline-filters button { gap: 5px; padding-inline: 5px; font-size: 12px; } .timeline-card { padding-left: 14px; } .site-header { flex-wrap: wrap; justify-content: flex-start; gap: 0; } .portfolio-label { min-height: 32px; } .header-note { width: 100%; text-align: right; } }

/* Single-screen variant: native modal panels retain plain-page no-JS fallback. */
.single-screen body { padding-bottom: 0; }
/* Fit below the measured header, including a wrapped/static announcement.
   Reserve the actual dock area, rather than adding header height to a full screen.
   No root overflow suppression: content windows/articles keep their own scrolling. */
.single-screen .hero { min-height: calc(100 * var(--site-dvh) - var(--home-header-height, 88px)); grid-template-rows: 1fr; padding-top: min(64px, calc(var(--home-room, 600px) * .08)); padding-bottom: calc(100 * var(--site-dvh) - var(--dock-top, calc(100 * var(--site-dvh) - 90px)) + 12px); }
.single-screen .hero h1 { font-size: min(clamp(110px, calc(12.6 * var(--site-vw)), 250px), max(36px, calc(var(--home-room, 600px) * .27))); margin-block: min(30px, calc(var(--home-room, 600px) * .035)) min(40px, calc(var(--home-room, 600px) * .045)); }
.single-screen .hero .eyebrow { margin-bottom: min(1.2em, calc(var(--home-room, 600px) * .025)); }
.single-screen .hero-descriptor { margin-bottom: min(24px, calc(var(--home-room, 600px) * .035)); }
.single-screen .hero-copy { padding-bottom: 0; }
.provenance a { border-bottom: 1px solid var(--rule); }
.panel-open { overflow: hidden; }
/* Native top layer supplies window > backdrop > page, without z-index escalation.
   The dock alone is reparented into it; never reserve width for page utilities. */
.content-panel { --window-margin: 80px; --window-cap: 1360px; --window-top: max(24px, env(safe-area-inset-top, 0px)); --panel-bar-height: 38px; --window-inset: max(var(--window-margin), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --workspace-height: max(0px, calc(var(--dock-top, calc(calc(100 * var(--site-dvh)) - 90px)) - var(--window-top) - 12px)); position: fixed; inset: var(--window-top) 0 auto; width: min(var(--window-cap), calc(100% - 2 * var(--window-inset))); max-width: none; height: var(--workspace-height); max-height: none; margin: 0 auto; overflow: visible; padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 20px 80px #00000035; }
.content-panel.is-maximized { --window-margin: 12px; --window-cap: calc(100 * var(--site-vw)); --window-top: max(12px, env(safe-area-inset-top, 0px)); }
.dock-item[data-minimized]::after { content: ""; position: absolute; bottom: 4px; left: calc(50% - 6px); width: 12px; height: 2px; border-radius: 2px; background: currentColor; }
.content-panel::backdrop { background: #00000045; }
.panel-bar { height: var(--panel-bar-height); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 16px; border-bottom: 1px solid var(--rule); }
#panel-title { font: 11px/1.5 ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; }
.panel-window-controls { display: flex; flex-shrink: 0; gap: 2px; }
.panel-control { display: grid; place-items: center; width: 32px; height: 32px; padding: 8px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); }
.panel-control svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.panel-control:hover { color: var(--ink); background: var(--hover); border-color: var(--rule); }
.panel-control:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (pointer: coarse) { .content-panel { --panel-bar-height: 48px; } .panel-control { width: 44px; height: 44px; } }
.panel-scroll { height: calc(100% - var(--panel-bar-height)); border-radius: 0 0 14px 14px; overflow: auto; overscroll-behavior: contain; padding: 36px 48px 56px; scroll-padding: 24px; }
.panel-scroll .editorial-section { display: block; margin: 0; padding: 0 0 48px; border-top: 0; }
.panel-scroll .editorial-section:not([hidden]) + .editorial-section:not([hidden]) { border-top: 1px solid var(--rule); padding-top: 40px; }
.panel-scroll .section-label, .panel-scroll .section-number { display: block; margin-bottom: 24px; padding: 0; max-width: none; }
.panel-scroll .section-body, .panel-scroll .contact-inner { width: 100%; }
/* Video uses the same dialog. Quiet overlay controls occupy the letterbox,
   never YouTube's title or playback controls; iframe full-screen excludes them. */
.content-panel.video-open { background: #0a0a0a; color: #f5f5f5; }
.video-view { position: relative; height: 100%; padding: 64px 24px 46px; display: flex; align-items: center; justify-content: center; border-radius: inherit; }
.video-stage { position: relative; width: min(100%, calc((var(--workspace-height) - 112px) * 1.777777)); aspect-ratio: 16 / 9; background: #000; }
.video-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-controls { position: absolute; top: 8px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.video-back, .video-close { min-height: 44px; border: 1px solid #ffffff30; color: #f5f5f5; background: #171717cc; border-radius: 999px; font-size: 12px; }
.video-back { padding: 8px 14px; display: inline-flex; align-items: center; gap: 8px; }
.video-close { width: 44px; padding: 0; font-size: 24px; }
.video-back:hover, .video-close:hover { background: #303030; border-color: #ffffff65; }
.video-view a:focus-visible, .video-view button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.video-fallback { position: absolute; bottom: 10px; right: 16px; margin: 0; color: #b9b9b9; font-size: 11px; }
.video-fallback a { display: inline-block; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.video-open .site-control { color: var(--muted); }
@media (max-width: 760px) { .video-view { padding-inline: 12px; } }
@media (max-height: 480px) { .video-view { padding: 52px 12px 36px; } .video-stage { width: min(100%, calc((var(--workspace-height) - 90px) * 1.777777)); } .video-controls { top: 2px; } .video-fallback { bottom: 2px; } }
.resume-viewer { display: block; width: 100%; height: max(420px, calc(52 * var(--site-svh))); border: 1px solid var(--rule); background: white; margin-block: 20px; }
.resume-viewer:not([src]) { display: none; }
.resume-status, .resume-fallback { color: var(--muted); font-size: 12px; }
.resume-fallback a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
 .single-screen .hero h1 { font-size: min(clamp(90px, calc(22 * var(--site-vw)), 165px), max(36px, calc(var(--home-room, 600px) * .27))); }
 .hero-bottom .provenance { padding-top: 12px; }
 .content-panel { --window-margin: 10px; --window-top: max(12px, env(safe-area-inset-top, 0px)); border-radius: 10px; }
 .content-panel.is-maximized { --window-margin: 10px; }
 .panel-bar { padding-inline: 16px; }
 .panel-scroll { padding: 28px 22px 40px; }
 .resume-viewer { height: calc(60 * var(--site-svh)); min-height: 360px; }
}
@media (max-height: 700px) { .single-screen .hero { padding-top: max(0px, calc(var(--home-room, 400px) * .04)); } }
@media (max-height: 500px) {
 .single-screen .hero { padding-top: 0; }
 .single-screen .hero h1 { font-size: min(clamp(72px, calc(18 * var(--site-vw)), 165px), max(32px, calc(var(--home-room, 220px) * .21))); }
}
@media (max-width: 760px) and (max-height: 700px) { .single-screen .hero-copy { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dock-item { transition: none; } }

/* One vertical utility stack; content navigation remains in the separate dock. */
.site-controls { position: fixed; z-index: var(--layer-utilities); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(34px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.site-control { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); cursor: pointer; }
.admin-entry-link { display: flex; gap: 6px; width: 80px; padding: 0 8px; font: 12px/1.4 Arial, sans-serif; text-decoration: none; }
.admin-entry-link svg { flex: 0 0 18px; width: 18px; height: 18px; }
.content-panel .site-control { color: var(--ink); }
.site-control:hover, .site-control:focus-visible { color: var(--ink); background: transparent; }
.site-control:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.animation-toggle[aria-pressed="true"] { color: var(--ink); }
.site-control svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.control-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 6px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); font: 11px/1.4 Arial, sans-serif; white-space: nowrap; color: var(--ink); opacity: 0; visibility: hidden; pointer-events: none; }
.site-control:hover .control-label, .site-control:focus-visible .control-label { opacity: 1; visibility: visible; }
html[data-animations="off"] .force-letter, html[data-animations="off"] .hero h1 .force-letter { transition: none; transform: none !important; }
html[data-animations="off"] [data-fun-effect], html[data-animations="off"] [data-fun-effect]::before, html[data-animations="off"] [data-fun-effect]::after { animation: none !important; transition: none !important; transform: none !important; }
@media (min-width: 761px) and (max-width: 1000px) { .content-panel { --window-margin: 40px; } .content-panel.is-maximized { --window-margin: 12px; } }
@media (max-width: 1000px) { #site-nav.dock { left: calc((100% - 56px) / 2); max-width: calc(calc(100 * var(--site-vw)) - 76px); } }
@media (max-width: 760px) { .site-controls { bottom: calc(23px + env(safe-area-inset-bottom, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); } }
@media (max-width: 520px) { #site-nav.dock { left: calc((100% - 56px) / 2); padding: 4px; max-width: calc(calc(100 * var(--site-vw)) - 72px); } .dock-item { width: 40px; flex: 0 1 40px; min-width: 24px; height: 48px; } .site-controls { bottom: calc(21px + env(safe-area-inset-bottom, 0px)); } }
/* Read in order: portfolio label, self-hosted provenance, owner sign-in. */
.site-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; }
.site-header .header-note { min-width: 0; white-space: normal; }
.header-navigation { justify-self: end; display: flex; align-items: center; gap: 4px; }
.site-header .admin-entry-link { flex-shrink: 0; }
@media (max-width: 760px) {
 .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
 .site-header .portfolio-label { grid-column: 1 / -1; }
 .site-header .header-note { grid-column: 1; text-align: right; }
 .site-header .header-navigation { grid-column: 2; }
}

/* Shared project thumbnail and independent supporting actions. */
.project-row .project-thumbnail{display:block;flex:0 0 96px;width:96px;align-self:start}
.project-row .project-thumbnail img{display:block;width:100%;height:72px;object-fit:cover;border-radius:6px}
.project-resources{list-style:none;padding:0;margin:16px 0 0;display:flex;flex-wrap:wrap;gap:12px}
.project-resources li{display:flex;flex-direction:column;gap:4px;max-width:100%;overflow-wrap:anywhere}
.project-resources a{display:inline-block;padding:9px 12px;border:1px solid var(--rule);border-radius:6px;font-size:12px;color:var(--ink);min-height:40px}
.project-resources a:hover{background:var(--hover)}.project-resources p{margin:0;color:var(--muted);font-size:12px}
@media(max-width:520px){.project-row .project-thumbnail{width:68px;flex-basis:68px}.project-row .project-thumbnail img{height:54px}.project-resources{gap:8px}.project-resources li{width:100%}}

/* Collection organization shares the Timeline divider, not its list layout. */
.collection-grouping { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-block:8px 22px; font-size:14px; color:var(--muted); }
.collection-grouping select { max-width:100%; padding:6px 10px; border:1px solid var(--rule); border-radius:6px; color:var(--ink); background:var(--paper); font:inherit; }
.collection-grouping select:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.project-collection:not([data-grouping-mode="year"]) .collection-divider { padding-block:16px 12px; gap:16px; }
.collection-divider .timeline-year-label { max-width:75%; white-space:normal; overflow-wrap:anywhere; }
.collection-divider + .project-row { border-top:0; }
.project-collection { min-width:0; }
.music-filters button { max-width:100%; min-width:0; overflow-wrap:anywhere; white-space:normal; }
.collection-empty { color:var(--muted); }
