/* Shared visual system. Edit these tokens to restyle all three pages. */
:root {
  color-scheme: dark;
  --canvas: #101617;
  --surface: #0d1112;
  --card: #171d1f;
  --line: #30393d;
  --text: #f4f4f3;
  --muted: #c0c3c5;
  --accent: #b9dced;
  --radius: 0.4rem;
  --header-offset: 6.75rem;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  line-height: 1.55;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body { margin: 0; color: var(--text); background: radial-gradient(ellipse at 50% 0,#1b2426 0,transparent 55rem),var(--canvas); }
body:has(dialog[open]) { overflow: hidden; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { color: white; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #b9e1f9; outline-offset: 4px; }
h1,h2,h3,h4,p,figure { margin: 0; }
h1,h2,h3 { line-height: 1.22; }
h1 { font-size: clamp(2rem,3.75vw,2.8rem); font-weight: 650; letter-spacing: -.015em; }
h2 { font-size: 1.4rem; font-weight: 500; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--muted); }
.site-shell { max-width: 1020px; margin: 2rem auto; background: linear-gradient(115deg,#0c1011,#101516); border: 1px solid #263034; box-shadow: 0 1.5rem 5rem #0003; }
/* Sticky header. Normal wordmark tracking preserves the reference proportions. */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 90px; padding: 1.25rem 2.25rem; background: #0b1012f7; border-bottom: 1px solid #252d31; backdrop-filter: blur(14px); }
.brand { text-decoration: none; color: #f5f5f5; flex: 0 0 auto; }
.wordmark { display: flex; align-items: baseline; font-size: 1.5rem; line-height: 1; letter-spacing: .005em; white-space: nowrap; font-stretch: normal; }
.wordmark strong { font-weight: 700; }
.wordmark > span { font-weight: 350; }
.brand-subtitle { display: block; font-size: .8125rem; letter-spacing: 0; color: #b7bdc0; margin-top: .5rem; }

.brand-line { display: flex; align-items: baseline; gap: .62rem; white-space: nowrap; }
.brand-divider { color: #5c666b; font-size: 1.15rem; line-height: 1; }
.brand-role { color: #b7bdc0; font-size: .9rem; line-height: 1.1; font-weight: 500; letter-spacing: .01em; }
nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
nav a { color: #f0f0ed; text-decoration: none; font-size: .875rem; }
nav a:hover { color: var(--accent); text-decoration: underline; }
.skip-link { position: fixed; top: .5rem; left: 1rem; transform: translateY(-180%); background: var(--accent); color: #12212b; padding: .75rem; z-index: 100; }
.skip-link:focus { transform: none; }
.icon { display: inline-block; flex: 0 0 auto; width: 1.25rem; height: 1.25rem; object-fit: contain; vertical-align: middle; }
.section-heading h2, .contact h2 { display: flex; align-items: center; gap: 1rem; }
.section-heading h2 > .icon { width: 1.55rem; height: 1.55rem; }
/* Compact profile hero on the general resume page. */
.home-hero { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 2.5rem; align-items: center; padding: 3rem 2.25rem 2.6rem; }
.home-hero h1 { font-size: clamp(2rem,3.7vw,2.8rem); }
.hero-subtitle { margin-top: .6rem; color: #eee; font-size: 1.4rem; line-height: 1.3; }
.intro { margin-top: 1.35rem; font-size: 1rem; line-height: 1.6; max-width: 36rem; color: #e0e1e1; }
.profile img:not(.icon) { width: 150px; height: 150px; margin: 0 auto 1.1rem; object-fit: cover; border-radius: 50%; filter: grayscale(1); }
.profile p { font-size: .875rem; display: flex; gap: .65rem; align-items: center; margin: .5rem 0; }
.profile p .icon { width: 1rem; height: 1rem; }
.profile .button { width: 100%; margin-top: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding: .65rem 1.15rem; border: 1px solid #a4cadf; border-radius: .3rem; background: linear-gradient(#11191e,#0b1217); color: #f0f5f8; text-decoration: none; font-size: .875rem; line-height: 1.35; white-space: normal; transition: background .15s; }
.button .icon { width: 1rem; height: 1rem; }
.button.primary { color: #132737; background: linear-gradient(120deg,#d7edf9,#b6d4e8); border-color: #bddcec; }
.button.primary .icon { filter: brightness(.18); }
.button:hover { background: #25343b; }
.button.primary:hover { background: #e2f1fa; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.75rem; }
/* Full-width image heroes: imagery to the right, fading toward the copy. */
.feature-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 440px; padding: 3.25rem 2.25rem; display: flex; align-items: center; }
.hero-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.feature-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#0a1014f2 0%,#0a1014d9 24%,#0a101490 44%,#0a101415 73%,transparent 100%); }
.hero-copy { width: 55%; max-width: 520px; position: relative; }
.hero-copy .intro { max-width: 30rem; }
.data-hero { min-height: 420px; }
.data-hero::before { background: linear-gradient(90deg,#091015f5 0%,#091015db 25%,#09101575 52%,#09101510 80%); }
.vfx-hero { min-height: 460px; }
.vfx-hero .hero-copy { width: 60%; }
/* Sections and resume timeline. */
.section { margin: 0 2.25rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 165px minmax(0,1fr); gap: 1.2rem; padding-bottom: 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .period { font-size: .875rem; color: #b3b8bb; }
.timeline li > div { position: relative; border-left: 1px solid #82939d; padding-left: 1.8rem; }
.timeline li > div::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #b4d9f0; left: -5px; top: .35rem; box-shadow: 0 0 0 3px #101516; }
.timeline h3 { font-size: 1.0625rem; }
.timeline .employer { color: #d4d7d8; margin: .35rem 0; }
.employer span { font-size: .8125rem; color: #9da6ad; }
.timeline li > div > p:last-child { font-size: .9375rem; line-height: 1.55; }
.skill-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.skill-card,.tool { background: linear-gradient(115deg,#1b2123,#151b1d); border: 1px solid #2a3438; border-radius: var(--radius); padding: 1.15rem; }
.skill-icon { width: 30px; height: 30px; margin-bottom: .75rem; }
.skill-card h3 { margin-bottom: .4rem; font-size: 1rem; }
.skill-card p { font-size: .875rem; line-height: 1.65; }
.education { display: flex; gap: 2rem; align-items: start; }
.education .section-heading { margin: 0; }
.education-detail { border-left: 2px solid #9bd7f3; padding-left: 1.3rem; }
.education-detail h3 { font-size: 1.0625rem; }
.education-detail p { margin-top: .3rem; font-size: .875rem; }
.muted { color: #aeb5b9; }
/* Reference-style stacked horizontal project cards. */
.project-row { display: grid; grid-template-columns: 32% minmax(0,1fr); gap: 1.4rem; padding: 1rem; margin-top: 1rem; border: 1px solid #343d41; border-radius: var(--radius); background: linear-gradient(110deg,#191f21,#151b1d); }
.project-thumbnail { min-height: 178px; border: 1px solid #4a5358; border-radius: .2rem; overflow: hidden; background: #10191e; }
.project-thumbnail img { width: 100%; height: 100%; aspect-ratio: 1.4; object-fit: cover; }
#vfx-project .project-thumbnail img { object-fit: contain; background: #fff; }
.project-copy { display: flex; flex-direction: column; align-items: start; padding: .2rem 0; min-width: 0; }
.project-copy h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .7rem; }
.project-copy > p { font-size: .9375rem; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 .7rem; }
.tags li { background: #2b3236; color: #e1e4e5; border-radius: 2rem; padding: .22rem .7rem; font-size: .8125rem; line-height: 1.3; }
.text-link { font-size: .875rem; text-decoration: none; align-self: end; margin-top: auto; padding-top: .5rem; }
.text-link:hover { text-decoration: underline; }
.text-link span { margin-left: .5rem; }
.tool-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .9rem; }
.tool { text-align: center; padding: 1rem .5rem; }
.tool > img { height: 42px; width: 42px; margin: 0 auto .75rem; object-fit: contain; }
.tool h3 { font-size: .8125rem; line-height: 1.4; font-weight: 400; }
/* Selected work: one-poster increments, native manual scroll retained. */
.gallery-controls { display: flex; gap: .5rem; margin-left: auto; }
.gallery-controls button { min-width: 38px; min-height: 38px; border: 1px solid #33434c; border-radius: .25rem; background: #141c20; color: #d4e8f5; font-size: .875rem; }
.gallery-controls .gallery-pause { padding-inline: .65rem; }
.film-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4rem)/5); gap: 1rem; overflow-x: auto; padding-bottom: .8rem; scrollbar-width: thin; scrollbar-color: #4b5d65 transparent; overscroll-behavior-x: contain; }
.film { min-width: 0; }
.film img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 1px solid #636c70; border-radius: .3rem; background: #182026; }
.film strong { display: block; font-size: .875rem; line-height: 1.35; margin: .7rem 0 .3rem; font-weight: 500; }
.film figcaption span { color: #b9c0c5; font-size: .8125rem; display: block; }
.highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.highlights > div { text-align: center; padding: 1.6rem .9rem; border: 1px solid #303a3e; border-radius: .4rem; background: linear-gradient(115deg,#191f21,#151b1d); }
.highlights strong { display: block; font-size: 1.15rem; font-weight: 500; }
.highlights span { display: block; color: #d2d4d5; font-size: .875rem; margin-top: .35rem; }
.section-resume { margin-top: 1.4rem; }
/* Contact bar and quiet footer. */
.contact { border-block: 1px solid #343e44; padding: 1.6rem 2.25rem; background: linear-gradient(100deg,#1a2226,#172024); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.contact h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.contact h2 .icon { width: 1.6rem; height: 1.6rem; }
.contact p { font-size: .875rem; max-width: 29rem; padding-left: 2.6rem; }
.contact .actions { margin-top: 0; flex-shrink: 0; }
.footer-bottom { padding: 1rem 2.25rem; display: flex; justify-content: space-between; gap: 1rem; color: #aeb7bc; font-size: .75rem; }
/* Native dialogs: videos are loaded only when opened and unloaded on close. */
dialog { color: var(--text); background: #111719; border: 1px solid #637986; border-radius: .6rem; padding: 1.75rem; max-height: 90dvh; width: min(92vw,900px); overflow: auto; box-shadow: 0 2rem 7rem #000b; }
dialog::backdrop { background: #000c; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dialog-heading form { margin: 0; }
.dialog-close { display: block; margin-left: auto; width: 44px; height: 44px; border: 1px solid #465760; border-radius: .25rem; background: #1c272d; color: white; font-size: 1.7rem; }
.project-dialog > form { float: right; margin: -.5rem -.5rem .5rem 1rem; }
.reel-frame { aspect-ratio: 16/9; background: #050708; }
.reel-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.reel-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: .875rem; }
.project-dialog h2 { margin-bottom: 1.4rem; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.metrics div { display: flex; flex-direction: column-reverse; }
.metrics dt { font-size: .875rem; color: #bdc6cb; }
.metrics dd { margin: 0; font-size: 2.4rem; color: var(--accent); }
.metrics dd span { font-size: 1.2rem; }
.disclosure { font-size: .8125rem; }
.case-study-body h4 { margin: 1.5rem 0 .5rem; }
.case-study-body li { color: #c0c6ca; margin-bottom: .5rem; }
#project-link-dialog { max-width: 460px; }
#project-link-dialog p { margin-top: 1rem; }
/* Responsive reflow keeps the reference styling without miniature text. */
@media (width <= 64rem) {
 .site-shell { margin: 0; border-inline: 0; }
 .site-header { padding-inline: 1.5rem; }
 nav { gap: 1rem; }
}
@media (width <= 48rem) {
 :root { --header-offset: 9rem; }
 .site-header { align-items: start; flex-direction: column; gap: .85rem; }
 nav { gap: .65rem 1.4rem; }
 .home-hero { gap: 1.75rem; grid-template-columns: minmax(0,1fr) 190px; padding-inline: 1.5rem; }
 .feature-hero { padding: 2.75rem 1.5rem; min-height: 390px; }
 .hero-copy,.vfx-hero .hero-copy { width: 68%; }
 .section { margin-inline: 1.5rem; }
 .timeline li { grid-template-columns: 140px minmax(0,1fr); gap: .75rem; }
 .skill-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .film-gallery { grid-auto-columns: calc((100% - 2rem)/3); }
 .contact { flex-direction: column; align-items: start; padding-inline: 1.5rem; }
 .contact .actions { margin-left: 2.6rem; }
 .project-row { grid-template-columns: 31% minmax(0,1fr); gap: 1rem; }
}
@media (width <= 34rem) {
 :root { --header-offset: 9.5rem; }
 .site-header { padding: 1rem 1.2rem; }
 .wordmark { font-size: 1.35rem; }
 nav { column-gap: 1rem; }
 nav a { font-size: .8125rem; }
 .home-hero { grid-template-columns: 1fr; padding: 2rem 1.2rem; }
 .profile { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: .25rem 1rem; align-items: center; }
 .profile img:not(.icon) { grid-row: 1/4; width: 100px; height: 100px; margin: 0; }
 .profile p { margin: .25rem 0; }
 .profile .button { margin-top: .6rem; }
 .feature-hero { padding-inline: 1.2rem; min-height: 410px; }
 .hero-copy,.vfx-hero .hero-copy { width: 90%; }
 .hero-background { object-position: 70% center; }
 .feature-hero::before { background: linear-gradient(90deg,#0a1014ed,#0a1014aa 60%,#0a10144d); }
 .hero-copy .intro { max-width: 21rem; }
 .actions { gap: .65rem; }
 .button { padding-inline: .8rem; }
 .section { margin-inline: 1.2rem; padding-block: 1.6rem; }
 .section-heading h2 { gap: .65rem; font-size: 1.25rem; }
 .timeline li { grid-template-columns: 1fr; gap: .65rem; }
 .timeline li > div { margin-left: .3rem; padding-left: 1.2rem; }
 .project-row { grid-template-columns: 1fr; }
 .project-thumbnail { height: 165px; min-height: 0; }
 .project-thumbnail img { aspect-ratio: auto; }
 .project-copy h3 { font-size: 1.125rem; }
 .text-link { margin-top: .75rem; }
 .film-gallery { grid-auto-columns: calc((100% - 1rem)/2); }
 .highlights { grid-template-columns: 1fr; }
 .highlights > div { padding: 1.1rem; }
 .education { flex-direction: column; gap: 1rem; }
 .contact { padding: 1.4rem 1.2rem; }
 .contact .actions { margin-left: 0; }
 .footer-bottom { flex-direction: column; padding-inline: 1.2rem; gap: .35rem; }
 dialog { padding: 1rem; }
 .reel-links { flex-direction: column; }
 .metrics { gap: .5rem; }
 .metrics dd { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *,*::before,*::after { animation: none !important; transition: none !important; }
}
@media print {
 .site-header { position: static; }
 body,.site-shell { color: black; background: white; box-shadow: none; }
 p { color: #333; }
 nav,.actions,.button,.hero-background,.gallery-controls,dialog { display: none; }
 .feature-hero::before { display: none; }
 .section { break-inside: avoid; }
}
.tool > img.wide-logo { width: 82px; }
/* Brand marks and interface icons retain their original vector geometry. */

/* Revision: external contact rail, compact whole-poster gallery, resume history. */
@media (width > 56rem) {
 .site-shell { width: min(1020px, calc(100% - 220px)); margin-right: max(190px, calc((100vw - 1020px) / 2)); margin-left: auto; }
}
.contact-rail { position: fixed; z-index: 25; right: max(16px, calc((100vw - 1020px) / 2 - 174px)); bottom: 24px; width: 150px; display: flex; flex-direction: column; gap: .7rem; }
.contact-rail .button { width: 100%; box-shadow: 0 3px 15px #0005; }
.page-general .site-header { align-items: center; }
.page-general .hero-subtitle { margin-top: 0; font-size: clamp(1.7rem,2.7vw,2.25rem); font-weight: 500; line-height: 1.3; }
.profile p { justify-content: center; text-align: center; }
#work { padding-top: 1.7rem; }
.film-gallery { grid-auto-columns: var(--poster-width,155px); width: var(--gallery-width,100%); max-width: 100%; margin-inline: auto; }
.film img { height: 225px; aspect-ratio: auto; object-fit: contain; background: transparent; border: 0; }
#work > .gallery-controls { justify-content: flex-end; margin-top: .65rem; }
.work-history { margin-top: 2rem; }
.work-history-entry { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.work-history-entry:last-child { padding-bottom: 0; }
.work-history-entry h3 { font-size: 1.1rem; }
.work-history-dates { font-size: .875rem; color: #aeb9c0; margin-top: .4rem; }
.work-history-entry ul { padding-left: 1.2rem; margin: .85rem 0 0; color: var(--muted); }
.work-history-entry li + li { margin-top: .4rem; }
@media (width <= 56rem) {
 body { padding-bottom: 85px; }
 .site-shell { width: 100%; margin: 0; }
 .contact-rail { right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); width: auto; flex-direction: row; gap: .65rem; padding: .5rem; border: 1px solid #33434c; border-radius: .4rem; background: #0b1115f2; }
 .contact-rail .button { width: auto; }
}
@media (width <= 34rem) {
 .page-general .site-header { align-items: center; }
 .page-general .site-header nav { justify-content: center; }
 .profile { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
 .profile img:not(.icon) { width: 135px; height: 135px; margin-bottom: .75rem; }
 .profile .button { max-width: 240px; }
 .film img { height: calc(var(--poster-width,155px) * 225 / 155); }
}

/* Icon-only rail; full contact buttons remain in Let's Connect. */
.contact-rail {
 width: 52px;
 right: max(114px, calc((100vw - 1020px) / 2 - 76px));
 flex-direction: column;
 padding: 0;
 border: 0;
 background: transparent;
 opacity: 1;
 visibility: visible;
 transition: opacity 180ms ease, visibility 0s linear;
}
.contact-rail .button { width: 52px; height: 52px; padding: 0; }
.contact-rail .icon { width: 23px; height: 23px; }
.contact-rail.is-hidden {
 opacity: 0;
 visibility: hidden;
 pointer-events: none;
 transition: opacity 180ms ease, visibility 0s linear 180ms;
}
@media (width <= 56rem) {
 .contact-rail { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: 48px; flex-direction: column; }
 .contact-rail .button { width: 48px; height: 48px; }
}


/* 2026-09 portfolio refresh: shared image heroes, credential card, embeds and VFX slideshow. */
.hero-with-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 2rem;
  align-items: center;
}
.hero-with-profile .hero-copy { width: auto; max-width: 520px; z-index: 2; }
.hero-profile {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 1.15rem;
  border: 1px solid #40505a;
  border-radius: .55rem;
  background: linear-gradient(145deg,#0b1115df,#111a20c7);
  box-shadow: 0 1rem 2.7rem #0007;
  backdrop-filter: blur(10px);
}
.hero-profile img:not(.icon) { width: 138px; height: 138px; }
.hero-profile p { color: #e1e5e7; }
.page-data .hero-profile img:not(.icon),
.page-vfx .hero-profile img:not(.icon) { filter: none; }
.general-hero { min-height: 430px; }
.general-hero .hero-background {
  filter: grayscale(1) brightness(.48) contrast(1.18);
  object-position: center 48%;
}
.general-hero::before {
  background: linear-gradient(90deg,#080d10f8 0%,#080d10e8 33%,#080d1090 62%,#080d1040 100%);
}
.general-hero .hero-subtitle { margin-top: 0; }
.page-general .general-hero .profile img:not(.icon) { filter: grayscale(1); }

.education-section { display: block; }
.education-grid { display: grid; grid-template-columns: .8fr 1.35fr; gap: 1rem; }
.education-grid > * {
  min-height: 100%;
  border: 1px solid #303b40;
  border-radius: var(--radius);
  background: linear-gradient(115deg,#181f21,#141a1c);
  padding: 1.25rem;
}
.education-grid .education-detail { border-left: 2px solid #9bd7f3; }
.credential-card { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 1rem; align-items: start; }
.credential-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #536875;
  border-radius: 50%;
  background: #111a1f;
}
.credential-mark img { width: 32px; height: 32px; }
.credential-kicker { color: #b9dced; font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; }
.credential-card h3 { font-size: 1.05rem; }
.credential-card p { margin-top: .35rem; font-size: .875rem; }
.credential-status { display: inline-flex; align-items: center; gap: .45rem; color: #dceaf1; margin-top: .8rem !important; }
.credential-status span { color: #b9dced; font-weight: 700; }

.dashboard-embed { margin: 1.3rem 0 .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
/* Canvas dimensions follow the selected dashboard; no spare workbook area. */
.dashboard-switcher { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .75rem; }
.dashboard-switcher .button { cursor: pointer; font: inherit; font-size: .875rem; }
.dashboard-switcher [aria-pressed="true"] { background: #b9ddef; color: #0b1115; border-color: #b9ddef; }
.tableau-frame {
  position: relative;
  width: 100%;
  height: calc(var(--tableau-scaled-height, 737px) + 2px);
  min-height: 0;
  border: 1px solid #465760;
  border-radius: .35rem;
  overflow: hidden;
  background: #fff;
}
.tableau-frame iframe {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--tableau-width, 1000px);
  height: var(--tableau-height, 737px);
  border: 0;
  display: block;
  transform: scale(var(--tableau-scale, 1));
  transform-origin: 0 0;
}
.project-dialog { width: min(94vw, 1120px); }

.hero-slideshow { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.vfx-hero .hero-slide {
  z-index: auto;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.1s ease, transform 6.2s ease;
}
.vfx-hero .hero-slide.is-active { opacity: 1; transform: scale(1); }
.vfx-hero::before {
  background: linear-gradient(90deg,#080d10fa 0%,#080d10ed 28%,#080d10a8 52%,#080d1038 78%,#080d1018 100%);
}
.vfx-hero .hero-slide:nth-child(2),
.vfx-hero .hero-slide:nth-child(3) { object-position: 72% center; }

.page-vfx .contact-rail .button[aria-label="IMDb"] .icon,
.page-vfx .contact .button[href*="imdb.com"] .icon { width: 27px; height: 27px; }

@media (width <= 48rem) {
  .hero-with-profile { grid-template-columns: minmax(0,1fr) 185px; gap: 1rem; }
  .hero-with-profile .hero-copy { width: auto; }
  .hero-profile { padding: .9rem; }
  .hero-profile img:not(.icon) { width: 112px; height: 112px; }
  .education-grid { grid-template-columns: 1fr; }
}
@media (width <= 34rem) {
  .hero-with-profile { grid-template-columns: 1fr; align-items: start; }
  .hero-with-profile .hero-copy { width: 100%; }
  .hero-profile { width: min(100%, 250px); justify-self: start; margin-top: .35rem; }
  .hero-profile img:not(.icon) { width: 116px; height: 116px; }
  .general-hero { min-height: 610px; }
  .data-hero,.vfx-hero { min-height: 640px; }
  .credential-card { grid-template-columns: 48px minmax(0,1fr); }
  .credential-mark { width: 48px; height: 48px; }
  .credential-mark img { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .vfx-hero .hero-slide { transition: none; transform: none; }
}


/* 2026-09 profile-card normalization: identical layout across General, Data and VFX. */
.hero-profile {
  width: 220px;
  min-height: 326px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.15rem;
}
.hero-profile img:not(.icon) {
  width: 138px;
  height: 138px;
  flex: 0 0 138px;
  margin: 0 auto 1rem;
}
.hero-profile p {
  width: 100%;
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: center;
  column-gap: .6rem;
  justify-content: initial;
  margin: .36rem 0;
  text-align: left;
  line-height: 1.35;
}
.hero-profile p .icon {
  width: 1rem;
  height: 1rem;
  justify-self: center;
}
.hero-profile p span { min-width: 0; }
.hero-profile .button {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}
.page-vfx .contact-rail .button[aria-label="IMDb"] .icon {
  width: 27px;
  height: 27px;
  filter: brightness(0) invert(1);
}
@media (width <= 48rem) {
  .hero-profile {
    width: 185px;
    min-height: 296px;
    padding: .9rem;
  }
  .hero-profile img:not(.icon) {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
  }
  .hero-profile .button { font-size: .78rem; padding-inline: .65rem; }
}
@media (width <= 34rem) {
  .hero-profile {
    width: min(100%, 250px);
    min-height: 0;
  }
  .hero-profile .button { margin-top: .8rem; }
  .hero-profile img:not(.icon) {
    width: 116px;
    height: 116px;
    flex-basis: 116px;
  }
}

@media (max-width: 760px) {
  .brand-line { flex-wrap: wrap; row-gap: .35rem; white-space: normal; }
  .brand-role { font-size: .82rem; }
}


/* Use the same centered, single-column layout across all compact pages. */
@media (max-width: 768px) {
  .site-header { align-items: center; flex-direction: column; }
  .site-header .brand { min-width: 0; max-width: 100%; width: 100%; text-align: center; }
  .site-header .brand-line { flex-wrap: wrap; white-space: normal; justify-content: center; row-gap: .45rem; }
  .site-header .brand-divider { display: none; }
  .site-header .brand-role { flex-basis: 100%; line-height: 1.4; }
  .site-header nav { width: 100%; justify-content: center; }
  .hero-with-profile { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .hero-with-profile .hero-copy { width: 100%; max-width: none; text-align: center; }
  .hero-with-profile .hero-copy .intro { margin-inline: auto; }
  .hero-with-profile .hero-copy .actions { justify-content: center; }
  .hero-with-profile .hero-profile { width: min(100%, 250px); min-height: 0; justify-self: center; }
  .hero-with-profile .hero-profile .button { margin-top: .8rem; }
}
