/* Normal-flow navigation and the two profile pages. Gallery/zoom styling stays in styles.css. */
.site-header { position: relative; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px) minmax(0, 1fr); align-items: center; column-gap: 20px; min-height: 64px; padding: calc(env(safe-area-inset-top) + 10px) max(20px, calc(env(safe-area-inset-right) + 12px)) 10px max(20px, calc(env(safe-area-inset-left) + 12px)); background: #000; }
.site-shell { padding-top: 0; }
.site-topline { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; justify-self: end; min-width: 0; min-height: 44px; margin: 0; padding: 0; }
.site-navigation { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.site-navigation a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 999px; color: #999; font-size: 13px; line-height: 1.4; text-decoration: none; white-space: nowrap; transition: color 140ms ease, border-color 140ms ease; }
.site-navigation a[aria-current="page"] { border-color: #444; color: #fff; }
.site-navigation a.nav-highlight { position: relative; overflow: hidden; isolation: isolate; border-color: #666; color: #f3f3f3; background: rgb(255 255 255 / .045); }
.site-navigation a.nav-highlight[aria-current="page"] { border-color: #aaa; background: rgb(255 255 255 / .09); }
.site-navigation a.nav-highlight::before { content: ""; position: absolute; top: -60%; bottom: -60%; left: 0; width: 70%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .12) 12%, rgb(255 255 255 / .55) 28%, #fff 50%, rgb(255 255 255 / .55) 72%, rgb(255 255 255 / .12) 88%, transparent); opacity: 0; pointer-events: none; transform: translateX(-180%) skewX(-18deg); animation: navigation-shine 5s linear infinite; }
@keyframes navigation-shine { 0% { transform: translateX(-180%) skewX(-18deg); opacity: 0; } 2% { transform: translateX(-180%) skewX(-18deg); opacity: .4; } 32% { transform: translateX(260%) skewX(-18deg); opacity: .4; } 33%, 100% { transform: translateX(260%) skewX(-18deg); opacity: 0; } }
.site-navigation a:focus-visible, .cv-project:focus-visible { outline: 2px solid #ddd; outline-offset: 4px; }
.search-home { grid-column: 2; grid-row: 1; width: 100%; height: 44px; min-width: 0; padding: 0; }
.search-home .gallery-tools { position: relative; inset: auto; width: 100%; max-width: 380px; gap: 8px; margin-inline: auto; transform: none; }
.search-home .gallery-search { height: 44px; padding-inline: 15px; }
.search-home .gallery-filter-toggle { flex-basis: 44px; width: 44px; height: 44px; }
.search-home .gallery-filter-panel { top: calc(100% + 8px); bottom: auto; }
.tools-docked .search-home .gallery-tools { position: fixed; top: auto; left: env(safe-area-inset-left); right: env(safe-area-inset-right); bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); width: min(380px, calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); }
.tools-docked .search-home .gallery-filter-panel { top: auto; bottom: 0; }
.site-header:has(.search-home[hidden]) { grid-template-columns: minmax(0, 1fr); }
.site-header:has(.search-home[hidden]) .site-topline { grid-column: 1; justify-self: center; }
.site-shell #page-portfolio { padding-top: 0; padding-bottom: max(88px, calc(env(safe-area-inset-bottom) + 76px)); }
.site-shell #page-portfolio:focus { outline: 0; }
.content-page { width: min(1200px, 100%); min-height: calc(100dvh - 64px); margin-inline: auto; padding: 56px max(28px, env(safe-area-inset-right)) 96px max(28px, env(safe-area-inset-left)); }
.cv-layout { display: grid; grid-template-columns: minmax(0, 326px) minmax(0, 1fr); align-items: start; gap: clamp(40px, 6vw, 88px); }
.cv-sidebar, .cv-main { min-width: 0; }
.profile-card { overflow: hidden; border: 1px solid #303030; border-radius: 22px; }
.profile-photo { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-bottom: 1px solid #303030; background: #000; }
.profile-photo img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.profile-identity { padding: 25px 26px 27px; }
.profile-name { margin: 0 0 6px; font-size: 27px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.profile-role { margin: 0; color: #a5a5a5; font-size: 14px; line-height: 1.5; }
.studio-history { margin-top: 38px; }
.cv-eyebrow { margin: 0 0 12px; color: #858585; font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .2em; }
.studio-history h2 { margin: 0; color: #eee; font-size: 19px; font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
.studio-list { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.studio-entry { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding-block: 16px; }
.studio-entry + .studio-entry { border-top: 1px solid #1f1f1f; }
.studio-logo { display: grid; place-items: center; flex: none; width: 46px; height: 46px; overflow: hidden; border: 1px solid #303030; border-radius: 12px; background: #000; }
.studio-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.studio-entry > div { min-width: 0; }
.studio-entry h3 { margin: 0 0 5px; color: #c8c8c8; font-size: 14px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.studio-entry p { margin: 0; color: #888; font-size: 12px; line-height: 1.5; }
.studio-entry[data-current="true"] p { color: #b2b2b2; }
.studio-entry[data-current="true"] + .studio-entry[data-current="false"] { margin-top: 8px; padding-top: 24px; border-top-color: #444; }
.studio-nda-note { margin-top: 22px; padding: 16px 18px; border: 1px solid #383838; border-radius: 12px; color: #aaa; background: #0a0a0a; font-family: "Keyart Title", "Segoe UI", sans-serif; font-size: 13px; font-weight: 400; line-height: 1.65; overflow-wrap: anywhere; }
.studio-nda-note p { margin: 0; }
.studio-nda-note .studio-nda-period { margin-bottom: 8px; color: #eee; }
.cv-heading { padding-top: 4px; }
.cv-heading h1, .contact-heading h1 { margin: 0; color: #fff; font-family: "Keyart Title", "Segoe UI", sans-serif; font-size: clamp(38px, 5vw, 60px); font-weight: 400; line-height: 1.15; letter-spacing: -.015em; overflow-wrap: anywhere; }
.cv-heading h1:focus, .contact-heading h1:focus { outline: 0; }
.cv-intro { margin: 31px 0 20px; color: #ebebeb; font-size: clamp(24px, 3vw, 36px); font-weight: 400; line-height: 1.35; letter-spacing: -.035em; }
.cv-bio { max-width: 580px; margin: 0; color: #929292; font-size: 16px; line-height: 1.8; }
.cv-section { margin-top: 40px; padding-top: 28px; border-top: 1px solid #292929; }
.cv-section-title { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.cv-section-title > span { color: #575757; font-family: "Keyart Rating", "Segoe UI", sans-serif; font-size: 12px; line-height: 1; }
.cv-section-title h2 { margin: 0; color: #ddd; font-size: 16px; font-weight: 500; line-height: 1.4; }
.cv-skills { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.cv-skills li { padding: 9px 14px; border: 1px solid #333; border-radius: 999px; color: #aaa; font-size: 12px; line-height: 1.5; }
.cv-project { display: block; overflow: hidden; border: 1px solid #303030; border-radius: 18px; color: #fff; text-decoration: none; }
.cv-project img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cv-project-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.cv-project-caption h3 { margin: 0 0 5px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.cv-project-caption p { margin: 0; color: #858585; font-size: 12px; line-height: 1.5; }
.cv-project-caption > span { color: #aaa; font-size: 25px; line-height: 1; }
.contact-page { width: min(640px, 100%); padding-top: clamp(58px, 9vh, 110px); }
.contact-content { min-width: 0; }
.contact-heading { margin-bottom: 38px; }
.contact-heading h1 { font-size: clamp(32px, 4.5vw, 50px); }
.contact-heading > p:last-child { margin: 20px 0 0; color: #929292; font-size: 15px; line-height: 1.7; }
.contact-list { display: grid; gap: 16px; }
.contact-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.contact-logo { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgb(255 255 255 / .3); border-radius: 50%; background: transparent; }
.contact-logo svg { display: block; width: 36px; height: 32px; overflow: visible; }
.contact-details { min-width: 0; min-height: 76px; padding: 8px 18px; border: 1px solid rgb(255 255 255 / .3); border-radius: 999px; background: transparent; }
.contact-service { margin: 0; color: #888; font-size: 11px; line-height: 1.4; }
.contact-value { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 6px; color: #eee; background: transparent; font: inherit; font-size: 16px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; cursor: pointer; touch-action: manipulation; }
.contact-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 64px; height: 64px; min-width: 64px; min-height: 44px; margin: 0; padding: 6px; border: 1px solid rgb(255 255 255 / .3); border-radius: 50%; color: #bbb; background: transparent; font-size: 10px; line-height: 1.2; cursor: pointer; touch-action: manipulation; }
.contact-copy svg { display: block; width: 16px; height: 16px; pointer-events: none; }
.contact-copy-label { display: block; font-size: 10px; line-height: 1.2; }
.contact-copy:focus-visible, .contact-value:focus-visible { outline: 2px solid #ddd; outline-offset: 3px; }
.contact-copy-status { min-height: 24px; margin: 20px 0 0; color: #aaa; font-size: 13px; line-height: 1.7; text-align: center; overflow-wrap: anywhere; }
.contact-copy-fallback { display: block; width: 100%; min-width: 0; padding: 15px 18px; border: 1px solid #555; border-radius: 16px; color: #fff; background: transparent; font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
@media (hover: hover) {
  .site-navigation a:hover { color: #fff; }
  .site-navigation a.nav-highlight:hover { border-color: #aaa; background: rgb(255 255 255 / .08); }
  .cv-project:hover { border-color: #666; }
  .contact-copy:hover { border-color: #777; color: #fff; }
  .contact-value:hover { color: #fff; }
}
@media (max-width: 1100px) {
  .site-header { grid-template-columns: minmax(0, 380px) auto; justify-content: center; column-gap: 18px; }
  .search-home { grid-column: 1; }
  .site-topline { grid-column: 2; }
}
@media (max-width: 960px) {
  .search-home .gallery-filter-panel { top: calc(100% + 10px); bottom: auto; right: 0; left: auto; }
  .tools-docked .search-home .gallery-filter-panel { top: auto; bottom: calc(100% + 12px); }
  .cv-layout { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px; }
  .cv-intro { font-size: 27px; }
  .cv-desktop-break { display: none; }
}
@media (max-width: 760px) {
  .content-page { padding-top: 34px; padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px)); }
  .cv-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cv-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 26px; }
  .studio-history { margin-top: 8px; }
  .profile-identity { padding: 20px; }
  .profile-name { font-size: 24px; }
  .profile-role { font-size: 12px; }
  .cv-heading { padding-top: 0; }
  .cv-intro { margin-top: 24px; }
  .cv-section { margin-top: 30px; }
  .contact-page { padding-top: 44px; }
  .contact-value { font-size: 15px; }
}
@media (max-width: 700px) {
  .site-header { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 4px; padding: calc(env(safe-area-inset-top) + 8px) max(12px, calc(env(safe-area-inset-right) + 8px)) 8px max(12px, calc(env(safe-area-inset-left) + 8px)); }
  .site-topline { grid-column: 1; grid-row: 1; justify-self: center; }
  .search-home { grid-column: 1; grid-row: 2; }
  .site-navigation { gap: 2px; }
}
@media (max-width: 500px) {
  .site-navigation a { padding-inline: 12px; font-size: 12px; }
  .content-page { padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right)); }
  .cv-sidebar { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .profile-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); border-radius: 18px; }
  .profile-photo { height: 100%; min-height: 195px; border-right: 1px solid #303030; border-bottom: 0; }
  .profile-identity { align-self: center; padding: 18px 15px; }
  .profile-name { font-size: 22px; }
  .profile-role { font-size: 11px; }
  .studio-history { margin-top: 0; }
  .studio-list { margin-top: 10px; }
  .studio-entry { padding-block: 13px; }
  .cv-heading h1 { font-size: 38px; }
  .cv-intro { font-size: 26px; }
  .cv-bio { font-size: 14px; }
  .cv-skills li { padding: 8px 12px; font-size: 11px; }
  .cv-project-caption { padding: 15px 16px; }
  .cv-project-caption h3 { font-size: 16px; }
  .contact-heading h1 { font-size: 31px; }
  .contact-heading { margin-bottom: 28px; }
  .contact-heading > p:last-child { font-size: 14px; }
.contact-card { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; }
  .contact-logo { width: 48px; height: 48px; }
  .contact-logo svg { width: 29px; height: 27px; }
  .contact-details { padding: 8px 12px; border-radius: 26px; }
  .contact-value { font-size: 13px; }
  .contact-copy { min-width: 48px; width: 48px; height: 48px; padding: 10px; }
  .contact-copy svg { width: 19px; height: 19px; }
  .contact-copy-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-navigation a { transition: none; }
}
