:root {
  --blue-50: #eef3ff;
  --blue-100: #dce6ff;
  --blue-200: #b3caff;
  --blue-300: #82a6ff;
  --blue-400: #4d7cff;
  --blue-500: #1346e9;
  --blue-600: #103bc8;
  --blue-700: #102d8f;
  --gray-50: #ffffff;
  --gray-100: #e8e8ec;
  --gray-200: #d0d1d7;
  --gray-300: #a8aab4;
  --gray-400: #6b6d75;
  --gray-500: #494b53;
  --gray-600: #30323c;
  --gray-700: #15161a;
  --radius: 16px;
  color-scheme: light;
  --bg: color-mix(in srgb, var(--gray-50) 65%, var(--gray-100));
  --hero: var(--gray-200);
  --ink: var(--gray-700);
  --muted: var(--gray-500);
  --line: var(--gray-200);
  --blue: var(--blue-500);
  --blue-ink: var(--blue-600);
  --surface: var(--gray-50);
  --tag-bg: var(--gray-100);
  --date-bg: var(--blue-100);
  --date-ink: var(--blue-700);
  --intro-ink: var(--gray-600);
  --copyright-ink: var(--gray-400);
  --ease: cubic-bezier(.2,.72,.25,1);
  --font: "Onest", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--font) }
body:has(dialog[open]) { overflow: hidden }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px }
[hidden] { display: none !important }
.wrap { width: min(calc(100% - clamp(2rem, 4vw, 6rem)), 1840px); margin-inline: auto }
.skip { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 9px 15px; color: var(--gray-50); background: var(--blue); transform: translateY(-180%) }
.skip:focus { transform: none }
@media (any-pointer: fine) {
  html.custom-cursor { --dot-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='5.5' fill='%231346e9'/%3E%3C/svg%3E") 10 10, auto }
  html.custom-cursor, html.custom-cursor *, html.custom-cursor *::before, html.custom-cursor *::after, html.custom-cursor dialog::backdrop { cursor: var(--dot-cursor) !important }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 }
.site-header {
  position: absolute; z-index: 2; inset: 19px 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center;
}
.brand { display: inline-flex; width: fit-content; min-height: 44px; align-items: center }
.brand img { display: block; width: clamp(9.2rem, 15vw, 16.5rem); height: auto }
.brand svg { display: block; width: clamp(9.2rem, 15vw, 16.5rem); height: auto; overflow: visible }
.brand-channel { fill: var(--blue-500) }
.brand-channel--pink { fill: #ff3eac }
.brand-channel--cyan { fill: #00dfff }
.brand-channel--green { fill: #7cff53 }
.brand-slice { animation: brand-slice-ink 3.4s steps(1, end) infinite; animation-delay: var(--slice-delay) }
.brand-channel--pink .brand-slice { opacity: 0; animation-name: brand-slice-pink }
.brand-channel--cyan .brand-slice { opacity: 0; animation-name: brand-slice-cyan }
.brand-channel--green .brand-slice { opacity: 0; animation-name: brand-slice-green }
.brand[data-paused] .brand-slice { animation-play-state: paused }
@keyframes brand-slice-ink {
  0%, 13%, 100% { transform: translate(0) }
  1.5% { transform: translateX(var(--shift)) }
  3% { transform: translate(calc(var(--shift) * -.75), .5px) }
  5% { transform: translateX(calc(var(--shift) * .3)) }
  7% { transform: translateX(calc(var(--shift) * -1.15)) }
  9% { transform: translate(calc(var(--shift) * .6), -.5px) }
  10.5% { transform: translateX(calc(var(--shift) * -.25)) }
}
@keyframes brand-slice-pink {
  0%, 12%, 100% { opacity: 0; transform: translate(0) }
  1% { opacity: .85; transform: translate(calc(var(--shift) * -1.2), -1px) }
  3.5% { opacity: .7; transform: translate(calc(var(--shift) * .9), 1px) }
  5.5% { opacity: 0; transform: translateX(-3px) }
  7.5% { opacity: .8; transform: translate(calc(var(--shift) * .5), -.5px) }
  10% { opacity: .65; transform: translateX(calc(var(--shift) * -.7)) }
}
@keyframes brand-slice-cyan {
  0%, 12.5%, 100% { opacity: 0; transform: translate(0) }
  2% { opacity: .8; transform: translate(calc(var(--shift) * .65), .75px) }
  4% { opacity: .9; transform: translate(calc(var(--shift) * -1.1), -.75px) }
  6.5% { opacity: .6; transform: translateX(calc(var(--shift) * 1.3)) }
  8.5% { opacity: 0; transform: translateX(2px) }
  10.5% { opacity: .7; transform: translate(calc(var(--shift) * -.4), .5px) }
}
@keyframes brand-slice-green {
  0%, 13%, 100% { opacity: 0; transform: translate(0) }
  1.5% { opacity: .65; transform: translate(calc(var(--shift) * .35), -.75px) }
  4.5% { opacity: .75; transform: translateX(calc(var(--shift) * 1.15)) }
  6% { opacity: 0; transform: translateX(-2px) }
  8% { opacity: .8; transform: translate(calc(var(--shift) * -.95), .75px) }
  11% { opacity: .6; transform: translateX(calc(var(--shift) * .55)) }
}
.site-header nav { display: flex; align-items: center; gap: 30px; padding: 0; border: 0; background: transparent }
.site-header nav a, .header-contact, .key { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 clamp(.8rem, 1.6vw, 1.65rem); border-radius: var(--radius); font-weight: 550; white-space: nowrap; transition: color .2s, background-color .2s, font-weight .2s }
.site-header nav a { position: relative; padding-inline: 0; font-weight: 400; transition: color .2s }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav a[aria-current="location"] { color: var(--blue-ink) }
.header-contact { justify-self: end; background: var(--gray-50); color: var(--blue); font-weight: 450 }
.header-contact:hover { background: color-mix(in srgb, var(--gray-50) 90.20%, transparent); color: var(--blue-ink) }
.key:hover { background: var(--blue-ink) }
.hero { position: relative; isolation: isolate; margin: 20px; border-radius: var(--radius); overflow: clip; color: var(--ink); background: var(--hero) }
.hero-stage { display: contents }
main { display: flow-root }
.hero { height: calc(100vh - 40px); height: calc(100dvh - 40px) }
.hero-photo { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: none }
.hero .wrap { width: calc(100% - 40px); max-width: none }
.hero .site-header { inset: 20px 20px auto; width: auto; margin: 0 }
.hero .brand { min-height: 44px; align-items: center }
.hero-content { display: grid; grid-template-columns: 1fr .96fr; gap: 20px; height: 100%; min-height: 0; padding: calc(var(--hero-header-height, 56px) + 40px) 0 20px }
.disciplines { align-self: end; width: fit-content; max-width: 100%; margin: 0; padding: 0; list-style: none; color: var(--blue-ink); font-size: clamp(1.1rem, 1.65vw, 2rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.65; transform: translateY(.325em) }
.disciplines li { width: fit-content; transition: font-weight .32s var(--ease) }
.hero-left { align-self: end; position: relative; min-width: 0 }
.disciplines button { display: block; border: 0; padding: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: left }
.discipline-description { position: absolute; bottom: calc(100% + 24px); left: 0; width: min(25ch, var(--discipline-description-width, 100%)); color: var(--ink); font-size: .875rem; line-height: 1.5; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .25s var(--ease), visibility .2s; pointer-events: none }
.discipline-description p { margin: 0 }
.hero-left[data-description-open] .discipline-description { opacity: .75; visibility: visible; transform: translateY(0) }
.disciplines button[aria-expanded="true"] { font-weight: 450 }
@media (hover: hover) { .disciplines li:hover { font-weight: 450 } }
.hero-right { min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, auto); gap: clamp(.8rem, 3vw, 4rem); align-items: start; padding-top: 50px }
.intro { max-width: 43ch }
.intro h1 { font-size: clamp(1.4rem, 1.9vw, 2.6rem); margin: 0 0 .6rem; font-weight: 680; line-height: 1.1; letter-spacing: -.045em }
.intro p { margin: 0 0 .75rem; color: var(--intro-ink); font-size: clamp(.9rem, 1.05vw, 1.1rem); line-height: 1.65 }
.hero-filters { display: grid; justify-items: end; gap: 18px }
.hero-filters a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px .7rem; border-radius: var(--radius); color: var(--gray-50); background: var(--blue); text-align: center; font-size: .89rem; line-height: 1.15; font-weight: 400; transition: background-color .2s }
.hero-filters a:hover { background: var(--blue-ink) }
.hero-favorites { width: var(--hero-featured-width, 100%); max-width: 100%; align-self: end; flex: 0 0 auto }
.hero-favorites h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; line-height: 1.4 }
.hero-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 20px) }
.hero-top { flex: 0 0 auto }
.hero-work { display: block; min-width: 0; border-radius: var(--radius)}
.hero-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: .3rem; padding: .5rem 0; color: var(--ink); font-size: .89rem; font-weight: 610; line-height: 1.3; overflow-wrap: anywhere }
.hero-caption span { color: var(--blue-ink); font-size: 1.2rem; line-height: 1 }
.art { isolation: isolate; position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.55; border-radius: var(--radius); color: var(--art-ink); background: var(--art-bg); container-type: inline-size }
.hero-work .art { width: min(100%, var(--hero-art-size, 100%)); aspect-ratio: 1; border-radius: var(--radius)}
.art img { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .38s var(--ease) }
.case-cover-link:hover img, .hero-work:hover img { transform: scale(1.035) }
.art-mark { white-space: pre-line; width: 100%; padding: .2em; text-align: center; font-size: 13cqi; line-height: .92; font-weight: 840; letter-spacing: -.065em }
.art--mint { --art-bg: var(--blue-100); --art-ink: var(--blue-700) }
.art--mint .art-mark { font-size: 37cqi }
.art--heat { --art-bg: var(--gray-600); --art-ink: var(--gray-50) }
.art--silver { --art-bg: var(--gray-200); --art-ink: var(--gray-700) }
.art--silver .art-mark { font-size: 30cqi }
.art--orange { --art-bg: var(--blue-300); --art-ink: var(--blue-700) }
.art--blue { --art-bg: var(--blue-200); --art-ink: var(--blue-700) }
.art--violet { --art-bg: var(--blue-100); --art-ink: var(--blue-700) }
section[id], details[id], footer[id] { scroll-margin-top: 20px }
.work { padding-top: clamp(24px, 3vw, 40px) }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px }
.section-heading h2, .footer h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.12; letter-spacing: .015em; font-weight: 400; margin: 0 }
.meta { margin: 0; color: var(--muted); font-size: .88rem }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 23px 0 20px }
.filter-with-divider { display: inline-flex; flex: 1 0 auto; align-items: center; gap: 16px; margin-right: 8px }
.filter-divider { flex: 0 0 1px; width: 1px; height: 24px; background: var(--muted) }
.filters button, .case-tags button, .dialog-header button, .show-more { min-height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 14px; font-size: .88rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s }
.filters button:hover, .case-tags button:hover, .dialog-header button:hover, .show-more:hover { border-color: var(--blue-ink); color: var(--blue-ink) }
.filters button[aria-pressed="true"], .case-tags button[aria-pressed="true"] { color: var(--gray-50); background: var(--blue); border-color: var(--blue) }
.filters button { flex: 1 0 auto; border: 0 }
@media (max-width: 850px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin-inline: -5px;
    padding: 5px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none }
  .filters button, .filter-with-divider { flex: none }
  .filters button { white-space: nowrap }
}
.group { border-top: 1px solid var(--line) }
.group summary { display: flex; align-items: center; gap: 12px; min-height: 66px; cursor: pointer; font-size: clamp(1.05rem, 1.65vw, 1.35rem); letter-spacing: .025em; font-weight: 400; list-style: none }
.group summary::-webkit-details-marker { display: none }
.group summary:hover { color: var(--blue-ink) }
.group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; padding: 2px 9px; border-radius: var(--radius); background: var(--tag-bg); color: var(--muted) }
.disclosure { display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; color: var(--blue-ink); border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.2rem }
.disclosure::before { content: "+" }
.group[open] > summary .disclosure::before { content: "−" }
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; padding: 2px 0 28px }
.show-more { display: block; margin: 0 auto 1.75rem; padding-inline: 1.1rem }
.case { min-width: 0 }
.case-preview { position: relative }
.case-cover-link { display: block; border-radius: var(--radius)}
.case-preview .art { aspect-ratio: 1 }
.case-link { display: block; border-radius: var(--radius)}
.case-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 9px; font-size: 1.12rem }
.case-subtitle { display: block; color: var(--muted); font-size: .95rem }
.case-tags { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none }
.case-tags button { pointer-events: auto; min-height: 28px; padding: 3px 9px; border: 0; background: var(--gray-50); font-size: .875rem; line-height: 1.35 }
.info { margin-top: 0; border-bottom: 1px solid var(--line) }
.info-content { max-width: 64ch; color: var(--muted); padding: 0 0 15px }
.info-content p:first-child { margin-top: 0 }
.footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; justify-content: space-between; gap: 24px; padding: clamp(24px, 3vw, 40px) 0 }
.footer h2 { font-size: clamp(2rem, 4vw, 4rem); margin: 0 }
.contact-links { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap }
.contact-links a { min-height: 44px; display: inline-flex; align-items: center }
.contact-links a:first-child { color: var(--blue-ink) }
.key { background: var(--blue); color: var(--gray-50) }
dialog { padding: 0; width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overscroll-behavior: contain; overflow: auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: 0 12px 70px color-mix(in srgb, var(--gray-700) 25.10%, transparent) }
dialog[open] { animation: enter .28s var(--ease) }
dialog::backdrop { background: color-mix(in srgb, var(--gray-700) 54.90%, transparent) }
.dialog-header { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 2; background: var(--gray-50); padding: 8px 12px; border-bottom: 1px solid var(--line) }
.dialog-header .close { font-size: 1.6rem; width: 44px; padding: 0; line-height: 1 }
#case-content > .art { aspect-ratio: auto; min-height: 170px; border-radius: var(--radius)}
#case-content > .art img { position: static; height: auto; max-height: 68dvh; object-fit: cover; object-position: center }
.project-gallery { background: var(--bg) }
.gallery-stage { touch-action: pan-y pinch-zoom }
.gallery-slide { margin: 0 }
.gallery-next-frame {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery-next-frame:focus-visible { outline-offset: -5px }
.gallery-slide img { display: block; width: 100%; height: min(68dvh, 640px); object-fit: cover; object-position: center }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px; border-bottom: 1px solid var(--line) }
.gallery-controls button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer }
.gallery-controls button:hover:not(:disabled) { color: var(--blue-ink) }
.gallery-controls button:disabled { opacity: .45; cursor: default }
.gallery-controls span { min-width: 5ch; text-align: center; font-variant-numeric: tabular-nums }
.case-description { padding: clamp(18px, 5vw, 52px) }
.case-description h2 { font-size: clamp(2rem, 7vw, 5rem); letter-spacing: -.06em; line-height: 1; margin: 10px 0; overflow-wrap: anywhere }
.dialog-subtitle { color: var(--muted); font-size: 1.1rem; margin: 0 }
.case-description dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; border-block: 1px solid var(--line); padding: 12px 0; margin: 23px 0 }
.case-description dt, .case-description figcaption { color: var(--muted) }
.case-description dd { margin: 0 }
.case-description figure { margin: 25px 0 0 }
.case-description img { display: block; max-width: 100%; height: auto }
.case-description figcaption { margin-top: 7px; font-size: .87rem }
@keyframes enter { from { opacity: 0; transform: translateY(14px) scale(.99) } }
@supports (backdrop-filter: blur(1px)) {
  .dialog-header { background: color-mix(in srgb, var(--gray-700) 81.18%, transparent); backdrop-filter: blur(16px) saturate(1.15) }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header nav { background: transparent }
  .dialog-header { background: var(--gray-50); -webkit-backdrop-filter: none; backdrop-filter: none }
  :root { --line: var(--gray-400); --muted: var(--gray-700) }
}
@media (max-width: 1170px) {
  .hero-top { grid-template-columns: 1fr }
  .hero-filters { display: flex; justify-content: start; flex-wrap: wrap }
}
@media (max-width: 850px) {
  .hero { height: auto; min-height: calc(100dvh - 40px) }
  .site-header { grid-template-columns: 1fr auto; gap: 9px }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; max-width: 100%; overflow-x: auto }
  .site-header nav a { padding-inline: 0; font-size: .88rem }
  .hero-content { display: flex; flex-direction: column; gap: 20px; height: auto; min-height: 0; padding: 0 0 20px }
  .hero-favorites { width: 100%; align-self: stretch }
  .disciplines { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 1.2rem; max-width: none; transform: none }
  .hero-left { order: 1; align-self: stretch }
  .discipline-description {
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    width: min(45ch, 100%);
    transform: none;
    transition: grid-template-rows .25s var(--ease), margin-top .25s var(--ease), opacity .2s ease, visibility .25s;
  }
  .discipline-description p { overflow: hidden; min-height: 0 }
  .hero-left[data-description-open] .discipline-description { grid-template-rows: 1fr; margin-top: 8px; pointer-events: auto }
  .hero-top { padding-top: 70px }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (min-width: 851px) and (max-height: 700px) {
  .hero-filters { gap: 12px }
  .hero-filters a { min-height: 28px; padding-block: 3px }
  .intro p { font-size: .9rem; line-height: 1.55; margin-bottom: .75rem }
  .disciplines { font-size: clamp(1rem, 1.5vw, 1.5rem); line-height: 1.45; transform: translateY(.225em) }
}
@media (max-width: 560px) {
  .hero .brand img { width: clamp(7rem, 28vw, 9.2rem) }
  .hero .brand svg { width: clamp(7rem, 28vw, 9.2rem) }
  .hero .header-contact { padding-inline: .7rem }
  .hero-featured { gap: 8px }
  .hero-work .art { border-radius: var(--radius)}
  .case-grid { grid-template-columns: 1fr }
  .footer { grid-template-columns: 1fr; align-items: start }
  dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; border-radius: var(--radius)}
}
@media (pointer: coarse) {
  .hero-filters { gap: 18px }
  .hero-filters a { min-height: 44px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important }
}

.about-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 80px); row-gap: 32px; padding: 24px 0 40px; color: var(--muted) }
.about-column { min-width: 0 }
.cv-section + .cv-section { margin-top: 40px }
.cv-section h3 { margin: 0 0 20px; color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: .015em; line-height: 1.3 }
.cv-section h4 { margin: 0 0 12px; color: var(--ink); font-size: 1rem; font-weight: 550; line-height: 1.45 }
.cv-section p { max-width: 72ch; margin: 0 0 16px; line-height: 1.65; overflow-wrap: anywhere }
.cv-section .cv-date { display: inline-flex; align-items: center; max-width: 100%; margin: 0 0 12px; padding: 5px 12px; border-radius: var(--radius); background: var(--date-bg); color: var(--date-ink); font-size: .875rem; line-height: 1.4; font-variant-numeric: tabular-nums }
.cv-entry + .cv-entry { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line) }
.cv-section a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: .2em }
.footer-brand { display: block; grid-column: 1 / -1; width: 100%; margin-top: clamp(24px, 5vw, 64px) }
.footer-brand img { display: block; width: 100%; height: auto }
.kinetic-word { display: inline-block; white-space: nowrap }
.kinetic-letter { display: inline-block; font-weight: 400 }
@media (prefers-reduced-motion: no-preference) {
  .kinetic-letter { transition: font-weight 100ms linear }
}
@media (max-width: 850px) { .about-content { grid-template-columns: 1fr; gap: 40px } .footer { grid-template-columns: 1fr; align-items: start } }

.footer { padding-bottom: var(--footer-bottom-inset, clamp(1rem, 2vw, 3rem)) }
.footer-brand { position: relative }
.footer-slideshow { position: absolute; inset: 0; opacity: 0; pointer-events: none; display: grid; grid-template-columns: 48.26% 51.74%; background: transparent; -webkit-mask: url('./brand/zbtndsgn-white.svg') center / 100% 100% no-repeat; mask: url('./brand/zbtndsgn-white.svg') center / 100% 100% no-repeat }
.footer-slideshow[data-ready] { opacity: 1 }
.footer-slideshow img { position: relative; inset: auto; display: block; min-width: 0; width: 100%; height: 100%; object-fit: cover }

/* Case viewer: square artwork and description share the viewport. */
#case-dialog { width: min(1024px, calc(80vw - 128px), calc(160dvh - 224px)); max-width: none; max-height: calc(100dvh - 80px); padding: 0; overflow: visible; border: 0; outline: none; border-radius: var(--radius); background: transparent; box-shadow: 0 16px 64px color-mix(in srgb, var(--gray-700) 14.90%, transparent) }
#case-dialog::backdrop { background: color-mix(in srgb, var(--gray-700) 27.06%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px) }
#case-content { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 28px; max-height: calc(100dvh - 80px); padding: 10px; overflow: auto; overscroll-behavior: contain; border-radius: var(--radius); background: var(--surface) }
#case-content > .art { width: 100%; min-height: 0; aspect-ratio: 1; border-radius: var(--radius)}
#case-content > .art img { position: absolute; height: 100%; max-height: none; object-fit: cover; object-position: center }
#case-content .project-gallery { min-width: 0; background: transparent }
#case-content .gallery-stage { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--bg) }
#case-content .gallery-slide { width: 100%; height: 100% }
#case-content .gallery-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: var(--radius)}
#case-content .gallery-controls { gap: 12px; padding: 12px 0 0; border: 0 }
#case-content .case-description { min-width: 0; padding: 0; overflow-wrap: anywhere }
.case-description h2 { font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.12; letter-spacing: .015em; font-weight: 400; margin: 20px 0 16px }
.case-section-tag { display: inline-block; max-width: 100%; margin: 0; padding: 6px 12px; border-radius: var(--radius); color: var(--muted); background: var(--tag-bg); font-size: .875rem; line-height: 1.45 }
.project-navigation { position: absolute; left: calc(100% + 16px); top: calc(50% - 24px); display: grid; place-items: center; width: 48px; height: 48px; min-height: 48px; padding: 0; border: 0; border-radius: var(--radius); background: var(--gray-50); color: var(--blue-ink); box-shadow: 0 4px 16px color-mix(in srgb, var(--gray-700) 7.84%, transparent) }
.project-navigation:hover { background: var(--blue); color: var(--gray-50) }
@media (prefers-reduced-transparency: reduce) { #case-dialog::backdrop { background: color-mix(in srgb, var(--gray-700) 66.67%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none } }

#dialog-title:focus { outline: none; box-shadow: none }
.previous-project { left: auto; right: calc(100% + 16px) }

.case-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; padding: 0; list-style: none }
.case-detail-tags li { max-width: 100%; padding: 5px 10px; border: 0; border-radius: var(--radius); background: var(--tag-bg); color: var(--muted); font-size: .875rem; line-height: 1.4 }

.cv-job-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; margin-bottom: 16px }
.cv-job-header .cv-job-tags { display: flex; flex-wrap: wrap; align-items: start; gap: 6px; min-width: 0; margin: 0 }
.cv-job-tag { display: inline-flex; max-width: 100%; padding: 5px 12px; border-radius: var(--radius); background: var(--tag-bg); color: var(--muted); font-size: .875rem; line-height: 1.4; font-weight: 400; overflow-wrap: anywhere }
.cv-job-header .cv-date { margin: 0; justify-self: end; white-space: nowrap }

.group-count, .about-content .cv-date, .about-content .cv-job-tag { font-family: inherit; font-size: .875rem; font-weight: 400; line-height: 1.4; letter-spacing: 0; font-variant-numeric: normal }
.about-history { grid-column: 1 / -1; padding-top: 32px; border-top: 1px solid var(--line) }
.cv-history-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 80px) }
.cv-history-column { min-width: 0 }
@media (max-width: 850px) { .cv-history-columns { grid-template-columns: 1fr; gap: 28px } .cv-history-column + .cv-history-column { padding-top: 24px; border-top: 1px solid var(--line) } }

@media (min-width: 851px) {
  .hero .site-header { grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); column-gap: 20px }
  .hero .site-header nav { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; justify-content: space-between; flex-wrap: wrap; column-gap: clamp(12px, 2vw, 30px); row-gap: 8px; padding: 0 calc(var(--header-contact-width, 120px) + 90px) 0 0 }
  .hero .site-header nav a { padding-inline: 0; font-size: clamp(.875rem, 1.05vw, 1rem) }
  .hero .header-contact { position: absolute; right: 0; top: 50%; transform: translateY(-50%) }
}
@media (min-width: 851px) and (max-width: 1050px) {
  .hero .header-contact { padding-inline: 8px; font-size: .875rem }
}

.footer-copyright { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; margin-top: 6px; color: var(--copyright-ink); font-size: .875rem; font-weight: 400; line-height: 1.4; letter-spacing: 0 }
.footer-copyright span { display: block; white-space: nowrap }

.services-content { padding: 16px 0 32px; color: var(--muted) }
.services-intro { max-width: 76ch; margin: 0 0 32px; line-height: 1.65 }
.services-intro a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: .15em }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px }
.service { min-width: 0; display: flex; flex-direction: column; align-items: start; padding-top: 20px; border-top: 1px solid var(--line) }
.service h3 { color: var(--ink); margin: 0 0 16px; font-size: clamp(1.125rem, 1.5vw, 1.4rem); font-weight: 500; line-height: 1.3 }
.service ul { padding: 0; margin: 0 0 24px; list-style: none; line-height: 1.6 }
.service li + li { margin-top: 8px }
.service-price { margin: auto 0 0; padding: 5px 12px; border-radius: var(--radius); background: var(--date-bg); color: var(--date-ink); font-size: .875rem; line-height: 1.4 }
@media (max-width: 1050px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; gap: 24px } }

/* The theme uses the same blue accents and typography on charcoal surfaces. */
:root[data-theme="dark"] { color-scheme: dark; --bg: var(--gray-700); --hero: var(--gray-600); --ink: var(--gray-50); --muted: var(--gray-200); --line: var(--gray-500); --surface: var(--gray-600); --blue: var(--blue-500); --blue-ink: var(--blue-200); --tag-bg: var(--gray-500); --date-bg: var(--blue-700); --date-ink: var(--blue-100); --intro-ink: var(--gray-100); --copyright-ink: var(--gray-300) }
.brand-block { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: start; gap: 8px; min-width: 0 }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius); background: var(--tag-bg) }
.theme-switch button { min-height: 44px; padding: 6px 12px; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); font: inherit; font-size: .875rem; line-height: 1.4; cursor: pointer }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink) }
.theme-switch button:hover { color: var(--ink) }

:root[data-theme="dark"] .header-contact { background: var(--surface); color: var(--blue-ink) }
:root[data-theme="dark"] .header-contact:hover { background: var(--tag-bg) }
:root[data-theme="dark"] .case-tags button { background: var(--surface); color: var(--ink) }
:root[data-theme="dark"] .case-tags button[aria-pressed="true"] { background: var(--blue); color: var(--gray-50) }
:root[data-theme="dark"] .project-navigation { background: var(--surface) }
:root[data-theme="dark"] .project-navigation:hover { background: var(--blue); color: var(--gray-50) }
:root[data-theme="dark"] .dialog-header { background: var(--surface) }
:root[data-theme="dark"] #case-dialog::backdrop { background: color-mix(in srgb, var(--gray-700) 60.00%, transparent) }
:root[data-theme="dark"] .key:hover { background: var(--blue-600) }
::selection { background: var(--blue); color: var(--gray-50) }
html { scrollbar-color: var(--line) var(--bg) }

/* Keep the original portrait treatment in both themes. */
:root[data-theme="dark"] .hero { --hero: var(--gray-200); color: var(--gray-700); --ink: var(--gray-700); --intro-ink: var(--gray-600); --blue-ink: var(--blue-600) }
:root[data-theme="dark"] .hero .brand-channel--ink { fill: var(--blue-500) }
:root[data-theme="dark"] .hero .theme-switch { color: var(--gray-50) }
:root[data-theme="dark"] .hero .theme-switch button[aria-pressed="true"],
:root[data-theme="dark"] .hero .theme-switch button:hover { color: var(--gray-50) }
:root[data-theme="dark"] .hero .header-contact { color: var(--blue-200) }
:root[data-theme="dark"] .hero .discipline-description { color: var(--gray-700) }
.hero .header-contact { align-self: start }
@media (min-width: 851px) {
  .hero .site-header nav { align-self: start; min-height: 44px }
  .hero .header-contact { top: 22px }
}
.footer-brand > img { opacity: 0 }
.footer-brand::before { content: ""; position: absolute; inset: 0; background: var(--ink); -webkit-mask: url('./brand/zbtndsgn-white.svg') center / 100% 100% no-repeat; mask: url('./brand/zbtndsgn-white.svg') center / 100% 100% no-repeat }
.footer-brand:has(.footer-slideshow[data-ready])::before { display: none }
.about-history .cv-job-tag:first-child { background: var(--gray-200); color: var(--gray-600) }
:root[data-theme="dark"] .about-history .cv-job-tag:first-child { background: var(--gray-700); color: var(--gray-200) }

.header-preferences { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100% }
.language-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius); background: var(--tag-bg) }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 6px 8px; border-radius: var(--radius); color: var(--muted); font-size: .875rem; line-height: 1.4 }
.language-switch a[aria-current="true"] { color: var(--ink); background: var(--surface) }
.language-switch a:hover { color: var(--ink) }
:root[data-theme="dark"] .hero .language-switch a[aria-current="true"], :root[data-theme="dark"] .hero .language-switch a:hover { color: var(--gray-50) }
:lang(en) .intro h1 { letter-spacing: -.025em }

.hero { display: flow-root }

/* Compact controls: 80% of the previous type, spacing and height. */
.theme-switch, .language-switch { gap: 1.6px; padding: 2.4px }
.header-preferences { gap: 6.4px }
.theme-switch button { min-height: 35.2px; padding: 4.8px 9.6px; font-size: .7rem }
.language-switch a { min-width: 32px; min-height: 35.2px; padding: 4.8px 6.4px; font-size: .7rem }

.hero { border-radius: 30px }
.header-contact, .contact-links .key,
.hero-filters a, .filters button, .case-tags button { border-radius: 999px }
.disclosure { flex-shrink: 0; border-radius: 50% }

.about-socials { display: flex; align-items: center; gap: 20px; margin: 0 0 20px; color: var(--ink) }
.about-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px }
.about-social-icon svg { display: block; width: 100%; height: 100%; fill: currentColor }

.cv-section .about-social-icon { color: var(--ink); text-decoration: none; transition: color .2s }
.cv-section .about-social-icon:hover,
.cv-section .about-social-icon:focus-visible { color: var(--blue-ink) }

.disclosure { border: 0; background: var(--gray-50); color: var(--blue-600) }


.project-navigation { border-radius: 50% }
.case-description .case-section-tag { display: block; width: fit-content; margin-left: auto; text-align: right }
#case-content .gallery-stage { position: relative }
#case-content .gallery-controls { position: absolute; z-index: 1; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 3px 6px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent) }
#case-content .gallery-controls button { display: grid; place-items: center; width: 24px; height: 24px; min-height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--blue-ink) }
#case-content .gallery-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300) }
#case-content .gallery-dot[aria-pressed="true"]::before { background: var(--blue-500) }
#case-content .gallery-dot:hover::before { background: var(--blue-600) }

#case-dialog { --radius: 30px }

@media (min-width: 851px) {
  #case-content { grid-template-columns: minmax(0, 50%) minmax(0, 1fr) }
}
#case-content > .art,
#case-content .gallery-stage,
#case-content .gallery-slide img { border-radius: 20px }
.case-description .case-section-tag { margin-left: 0; text-align: left; font-size: .75rem; padding: 5px 10px }
.case-description > p:not(.case-section-tag):not(.dialog-subtitle) { font-size: .875rem; line-height: 1.6 }

#case-content .case-description { padding: 20px }
.case-meta-row .case-section-tag { min-width: 0; margin: 0 }
@media (min-width: 851px) {
  #case-content { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0 }
  #case-content > .art, #case-content > .project-gallery { width: calc(100% - 15px) }
}

#case-content .case-description { padding: 15px }
.case-description h2 { font-size: clamp(1.125rem, 1.5vw, 1.5rem) }
.case-meta-row { padding-top: calc(2.175rem + 20px) }
.case-meta-row .case-section-tag,
.case-description .case-detail-tags li { font-size: .75rem; line-height: 1.45; padding: 5px 10px }
.case-description .case-detail-tags li { background: color-mix(in srgb, var(--tag-bg) 65%, var(--gray-50)) }
:root[data-theme="dark"] .case-description .case-detail-tags li { background: color-mix(in srgb, var(--tag-bg) 95%, var(--gray-50)) }

.case-label-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px }
.case-label-row .case-detail-tags { display: contents; margin: 0 }

#case-content .case-detail-tags li { background: var(--gray-50); color: var(--gray-500) }

#case-content { position: relative; background: var(--bg) }
.case-description h2 { margin-top: 36px }
.case-actions {
  --case-action-ink: var(--ink);
  --case-action-bg: var(--surface);
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.case-actions > :is(a, button) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--case-action-ink);
  background: var(--case-action-bg);
  cursor: pointer;
}
.case-actions > :disabled { opacity: .65; cursor: wait }
@media (hover: hover) {
  .case-actions > :is(a, button):hover:not(:disabled) { color: var(--gray-50); background: var(--blue-600) }
}

@media (max-width: 850px) {
  #case-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px) }
  #case-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-height: calc(100dvh - 24px);
    padding: 0;
    scrollbar-width: none;
    touch-action: pan-y pinch-zoom;
  }
  #case-content::-webkit-scrollbar { display: none }
  #case-dialog .project-navigation { display: none }
  #case-content > .art,
  #case-content .gallery-stage,
  #case-content .gallery-slide img { border-radius: 0 }
  #case-content > .art img,
  #case-content .gallery-slide img { object-fit: contain }
  #case-content .case-description { padding: 20px }
  .case-meta-row { padding-top: 0 }
  .case-actions {
    --case-action-ink: var(--gray-50);
    --case-action-bg: var(--gray-700);
  }
  .case-actions[data-light-image] {
    --case-action-ink: var(--gray-700);
    --case-action-bg: var(--gray-50);
  }
  #case-content .gallery-controls { max-width: calc(100% - 16px) }
  #case-content .gallery-controls button { min-width: 0 }
}

/* Hero surface and compact controls. */
.hero::before, .hero-stage::before, .hero-content::before { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('./brand/hero-noise.png') repeat; opacity: .35 }
.hero::before { content: "" }
.hero-top { padding-top: 0 }
.header-preferences { gap: 12px }
.theme-switch, .language-switch { padding: 0; gap: 6px; background: transparent; border-radius: 0 }
.theme-switch button, .language-switch a { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 35.2px; width: 35.2px; height: 35.2px; min-width: 35.2px; min-height: 35.2px; padding: 0; border: 0; border-radius: 50%; background: var(--tag-bg); color: var(--muted); font-size: .7rem; line-height: 1 }
.theme-switch button[aria-pressed="true"], .language-switch a[aria-current="true"] { background: var(--surface); color: var(--ink) }
.theme-switch svg { display: block; flex-shrink: 0 }
@media (max-width: 850px) { .hero-top { padding-top: 20px } }
@media (prefers-reduced-motion: no-preference) {
  .hero .brand-block { animation: hero-arrive .8s cubic-bezier(.25, .1, .25, 1) .03s backwards }
  .hero .site-header nav { animation: hero-menu-arrive .8s cubic-bezier(.25, .1, .25, 1) .12s backwards }
  .hero .header-contact { animation: hero-header-arrive .8s ease-in-out .2s backwards }
  .hero .intro { animation: hero-fade .85s ease-in-out .25s backwards }
  .hero-filters a { animation: hero-filter-arrive .8s cubic-bezier(.25, .1, .25, 1) var(--arrival-delay, .36s) backwards }
  .hero .hero-favorites { animation: hero-fade .8s ease-in-out 1.1s backwards }
  .disciplines li { animation: hero-discipline-arrive .9s ease-in-out var(--arrival-delay, .7s) backwards }
}
@keyframes hero-arrive { from { opacity: 0; transform: translateY(5px); filter: blur(3px) } to { opacity: 1; transform: translateY(0); filter: blur(0) } }
@keyframes hero-header-arrive { from { opacity: 0; filter: blur(3px) } to { opacity: 1; filter: blur(0) } }
@keyframes hero-discipline-arrive { from { opacity: 0; filter: blur(12px) } to { opacity: 1; filter: blur(0) } }
.hero-filters a:nth-child(1) { --arrival-delay: 0.360s }
.hero-filters a:nth-child(2) { --arrival-delay: 0.405s }
.hero-filters a:nth-child(3) { --arrival-delay: 0.450s }
.hero-filters a:nth-child(4) { --arrival-delay: 0.495s }
.hero-filters a:nth-child(5) { --arrival-delay: 0.540s }
.hero-filters a:nth-child(6) { --arrival-delay: 0.585s }
.hero-featured .hero-work:nth-child(1) { --arrival-delay: 0.600s }
.hero-featured .hero-work:nth-child(2) { --arrival-delay: 0.660s }
.hero-featured .hero-work:nth-child(3) { --arrival-delay: 0.720s }
.disciplines li:nth-child(1) { --arrival-delay: 0.700s }
.disciplines li:nth-child(2) { --arrival-delay: 0.755s }
.disciplines li:nth-child(3) { --arrival-delay: 0.810s }
.disciplines li:nth-child(4) { --arrival-delay: 0.865s }
.disciplines li:nth-child(5) { --arrival-delay: 0.920s }

@keyframes hero-menu-arrive { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: translateY(0) } }
@keyframes hero-filter-arrive { from { opacity: 0; transform: translateX(12px) } to { opacity: 1; transform: translateX(0) } }
@keyframes hero-fade { from { opacity: 0 } to { opacity: 1 } }
:root[data-theme] .hero .header-preferences .theme-switch button,
:root[data-theme] .hero .header-preferences .language-switch a { background: var(--gray-50); color: var(--gray-500); transition: color .2s, background-color .2s }
:root[data-theme] .hero .header-preferences .theme-switch button[aria-pressed="true"],
:root[data-theme] .hero .header-preferences .language-switch a[aria-current="true"] { background: var(--blue-500); color: var(--gray-50) }

.hero .brand-block { width: max-content; max-width: 100% }
.hero .header-preferences { width: 100%; justify-content: space-between; flex-wrap: nowrap }

/* Cinematic opening: portfolio imagery lives inside the original SVG wordmark. */
.loading-screen { display: none; --loading-progress: 0; position: fixed; inset: 0; z-index: 10000; overflow: hidden; background: var(--gray-700); color: var(--gray-50); }
.loading-screen::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: url('./brand/hero-noise.png') repeat; opacity: .08; }
html[data-loading] { overflow: hidden; }
html[data-loading] .loading-screen, .loading-screen[data-leaving] { display: block; }
.loading-screen__logo { position: absolute; left: 50%; top: 45%; width: min(84vw, 1280px); aspect-ratio: 264 / 33; transform: translate(-50%, -50%); }
.loading-screen__reel { position: absolute; inset: 0; display: grid; grid-template-columns: 48.26% 51.74%; grid-template-rows: minmax(0, 1fr); mask: url('./brand/zbtndsgn-white.svg') center / contain no-repeat; -webkit-mask: url('./brand/zbtndsgn-white.svg') center / contain no-repeat; }
.loading-screen__reel img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; object-position: center; }
.loading-screen__status { position: absolute; left: 50%; bottom: max(9vh, env(safe-area-inset-bottom, 0px)); width: min(84vw, 1280px); transform: translateX(-50%); }
.loading-screen__phrase { margin: 0 0 30px; text-align: center; text-wrap: balance; color: var(--gray-300); font-size: clamp(.875rem, 1.2vw, 1.125rem); line-height: 1.5; }
.loading-screen__track { height: 2px; background: var(--gray-500); overflow: hidden; }
.loading-screen__fill { display: block; width: 100%; height: 100%; background: var(--gray-50); transform: scaleX(var(--loading-progress)); transform-origin: left center; }
.loading-screen[data-leaving] { pointer-events: none; animation: loading-dismiss .65s cubic-bezier(.22, 1, .36, 1) both; }
html[data-loading] .hero *, html[data-loading] .hero *::before, html[data-loading] .hero *::after { animation-play-state: paused !important; }
@keyframes loading-dismiss { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: no-preference) {
  .loading-screen__logo { animation: loading-logo-settle 3.6s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes loading-logo-settle { from { transform: translate(-50%, -50%) scale(var(--loading-logo-scale, 1.16)); } to { transform: translate(-50%, -50%) scale(1); } }
}
@media (max-width: 600px) {
  .loading-screen__logo { width: 90vw; top: 44%; --loading-logo-scale: 1.08; }
  .loading-screen__status { width: 90vw; bottom: max(8vh, env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .loading-screen[data-leaving] { animation: none; } }

/* Character canvases share one registration point in the left hero field. */
.hero .brand-block { position: relative; }
.hero-change { width: 100%; min-height: 36px; padding: 8px 16px; border: 0; border-radius: 999px; color: #484a52; background: #fff; font-size: .8rem; line-height: 1.4; transition: background-color .2s, color .2s; }
.hero-change:hover, .hero-change:focus-visible { background: #fff; color: var(--blue-500); }
.hero-change[aria-disabled="true"] { opacity: .65; }
.hero-photo.hero-visual { position: absolute; inset: 0 auto 0 8.5%; width: 49%; z-index: 0; background: none; isolation: isolate; transform: scale(1.045); transform-origin: center bottom; }
.hero-visual .hero-character { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-character--channel-a, .hero-character--channel-b { opacity: 0; }
.hero-character--channel-a { filter: hue-rotate(110deg) saturate(2); }
.hero-character--channel-b { filter: hue-rotate(270deg) saturate(2); }
.hero-content { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual[data-switching] .hero-character--main { animation: hero-character-tear .42s steps(1, end) both; }
  .hero-visual[data-switching] .hero-character--channel-a { animation: hero-character-channel-a .42s steps(1, end) both; }
  .hero-visual[data-switching] .hero-character--channel-b { animation: hero-character-channel-b .42s steps(1, end) both; }
}
@keyframes hero-character-tear {
  0%, 100% { transform: none; clip-path: inset(0); }
  12% { transform: translateX(5px); clip-path: inset(0); }
  26% { transform: translateX(-4px); clip-path: inset(12% 0 4%); }
  38% { transform: translateX(7px); clip-path: inset(0); }
  51% { transform: translateX(-3px); clip-path: inset(2% 0 0); }
  68% { transform: none; clip-path: inset(0); }
}
@keyframes hero-character-channel-a {
  0%, 68%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  12% { opacity: .7; transform: translateX(-10px); clip-path: inset(15% 0 65%); }
  26% { opacity: .6; transform: translateX(12px); clip-path: inset(54% 0 28%); }
  38% { opacity: .7; transform: translateX(-9px); clip-path: inset(30% 0 52%); }
  51% { opacity: .5; transform: translateX(6px); clip-path: inset(72% 0 12%); }
}
@keyframes hero-character-channel-b {
  0%, 68%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  12% { opacity: .6; transform: translateX(11px); clip-path: inset(55% 0 30%); }
  26% { opacity: .6; transform: translateX(-9px); clip-path: inset(27% 0 57%); }
  38% { opacity: .6; transform: translateX(8px); clip-path: inset(70% 0 13%); }
  51% { opacity: .5; transform: translateX(-5px); clip-path: inset(10% 0 75%); }
}
@media (max-width: 850px) {
  .hero-photo.hero-visual {
    position: relative;
    inset: auto auto auto 50%;
    width: calc(min(100%, (100% - 40px) * 1.15) * 1.1);
    height: calc(clamp(320px, 85vw, 520px) * 1.15 * 1.1);
    margin: calc(var(--hero-header-height, 160px) + 10px) 0 0;
    translate: -50% 0;
  }
}
@media (pointer: coarse) { .hero-change { min-height: 44px; } }

@media (min-width: 851px) {
  .hero .site-header { min-height: 88px; }
  .hero-left { grid-column: 1; grid-row: 1; }
  .hero-right { grid-column: 2; grid-row: 1; }
}

/* One information hierarchy for every project dialog. */
.case-copy { display: grid; gap: 24px; margin-top: 36px; }
.case-copy > h2 { margin: 0; font-size: clamp(1.25rem, 1.5vw, 1.5rem); line-height: 1.25; letter-spacing: -.02em; }
.case-copy > .dialog-subtitle { margin: -8px 0 0; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.case-copy-block { display: grid; gap: 8px; min-width: 0; }
.case-copy-block > h3 { margin: 0; font-size: .875rem; line-height: 1.5; font-weight: 500; color: var(--muted); }
.case-copy-block > p { margin: 0; font-size: .875rem; line-height: 1.65; }
@media (max-width: 600px) { .case-copy { gap: 20px; margin-top: 28px; } }

/* Single theme/language toggles in the header; refresh over the character. */
.hero .site-header { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.hero .brand-block { display: flex; flex-direction: row; align-items: center; gap: 20px; width: auto; }
.hero-header-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hero-control { display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .35); color: var(--blue-500); font-size: .75rem; line-height: 1; text-decoration: none; transition: background-color .2s; }
.hero-control:hover, .hero-control:focus-visible { background: rgb(255 255 255 / .7); }
.theme-icon--moon { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--moon { display: block; }
.hero-content { pointer-events: none; }
.hero-content > .hero-left, .hero-content > .hero-right { pointer-events: auto; }
.hero-visual .hero-change { position: absolute; z-index: 2; top: 64%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 76px; height: 76px; min-height: 76px; padding: 0; margin: 0; border-radius: 50%; background: rgb(255 255 255 / .65); color: var(--blue-500); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: auto; }
.hero-visual .hero-change:hover, .hero-visual .hero-change:focus-visible { background: rgb(255 255 255 / .8); color: var(--blue-500); }
/* A soft attention cue; the refresh symbol stays still. */
.hero-visual .hero-change::before { content: ""; position: absolute; z-index: -1; inset: -4px; border-radius: inherit; background: rgb(255 255 255 / .85); filter: blur(6px); opacity: calc(.35 + var(--hero-proximity, 0) * .65); transition: opacity .15s ease; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-change::before { animation: hero-refresh-glow 3.2s ease-in-out infinite; }
}
@keyframes hero-refresh-glow {
  0%, 100% { opacity: calc(.2 + var(--hero-proximity, 0) * .55); transform: scale(.98); }
  50% { opacity: calc(.4 + var(--hero-proximity, 0) * .6); transform: scale(1.04); }
}
@media (max-width: 850px) {
  .hero .site-header { --mobile-control-size: 36px; grid-template-columns: minmax(0, 1fr) auto; }
  .hero .brand-block { grid-column: 1 / -1; gap: 12px; justify-content: space-between; }
  .hero .brand { min-width: 0; }
  .hero .brand svg { width: clamp(8.5rem, 35vw, 12rem); max-width: 100%; }
  .hero .hero-control { width: var(--mobile-control-size) }
  .hero .hero-control, .hero .header-contact {
    height: var(--mobile-control-size);
    min-height: var(--mobile-control-size);
  }
  .hero .site-header nav { grid-column: 1; grid-row: 2; }
  .hero .header-contact { grid-column: 2; grid-row: 2; }
}
.hero .site-header nav { align-self: center; padding: 0; }
.hero .header-contact { position: static; transform: none; align-self: center; grid-column: 3; }
@media (max-width: 850px) { .hero .header-contact { grid-column: 2; grid-row: 2; } }
@media (min-width: 851px) {
  .hero .site-header { grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); column-gap: 20px; }
  .hero .site-header nav {
    justify-content: flex-start;
    column-gap: 30px;
    padding-right: calc(var(--header-contact-width, 120px) + 16px);
  }
  .hero .header-contact { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
}

/* Keep the header at its original top inset; reserve its layout height below. */
@media (min-width: 851px) {
  .hero .site-header { align-items: start; }
  .hero .brand-block, .hero .site-header nav { align-self: start; }
  .hero .header-contact { top: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .hero-change > svg { animation: hero-refresh-spin 4s linear infinite; transform-origin: center; }
}
@keyframes hero-refresh-spin { to { transform: rotate(360deg); } }

@media (max-width: 850px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 10px;
    min-height: 0;
    overflow: visible;
    background: transparent;
  }
  .hero::before { content: none }
  .hero-stage, .hero-content {
    position: relative;
    isolation: isolate;
    overflow: clip;
    border-radius: inherit;
    background: var(--hero);
  }
  .hero-stage { display: flow-root }
  .hero-stage::before, .hero-content::before { content: "" }
  .hero .hero-content { width: 100%; padding: 20px }
  .hero .hero-filters { gap: 8px }
  .hero .hero-filters a { white-space: nowrap }
  .hero .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0 clamp(6px, 2vw, 12px);
    scrollbar-width: none;
  }
  .hero .site-header nav::-webkit-scrollbar { display: none }
  .hero .site-header nav a { flex: none }
  .hero .site-header nav .nav-converter { display: none }
  .hero .header-contact {
    grid-row: 1;
    align-self: center;
    padding-inline: 12px;
    font-size: .875rem;
  }
  .hero .brand-block {
    grid-column: 1;
    justify-content: start;
    flex-wrap: nowrap;
    gap: clamp(6px, 2vw, 12px);
  }
  .hero .brand svg { width: clamp(6.25rem, 35vw, 12rem) }
  .hero-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .footer { padding-bottom: 20px }
  .footer-slideshow { overflow: clip }
  .contact-links { justify-content: space-between; gap: 8px 12px }
}
@media (max-width: 850px) and (prefers-reduced-motion: reduce) {
  .discipline-description { transition: none }
}
@media (max-width: 360px) {
  .hero .site-header { --mobile-control-size: 32px; inset-inline: 12px }
  .hero .site-header nav { column-gap: 6px }
  .hero .hero-header-controls { gap: 4px }
  .hero .site-header nav a { font-size: .8rem }
  .contact-links { font-size: .875rem }
  .contact-links .key { padding-inline: .7rem }
}
