:root { --canvas: #f5f6f7; --surface: #fff; --soft: #e9edf0; --ink: #22262c; --muted: #565f67; --quiet: #66717b; --line: #d7dee3; --accent: #be4026; --accent-soft: #fce8e2; --coral: #bd4128; --stage: #e8edf0; --positive: #297366; --signal: #fd6748; --studio-cyan: #228fa0; }
[data-theme="dark"] { --canvas: #181818; --surface: #222222; --soft: #292929; --ink: #f4f5f5; --muted: #bdbdbd; --quiet: #a5a5a5; --line: #3a3a3a; --accent: #ff9279; --accent-soft: #3e2926; --coral: #ff9279; --stage: #2a2c2d; --positive: #7fdfc9; --signal: #fd6748; --studio-cyan: #6dd5de; }
.nav-inner { min-height: 76px; }
.nav-link.active { border-color: var(--accent); }
.nav-logo .logo-period { color: var(--accent); }
.btn { border-radius: 5px; }
.btn-primary { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--canvas); border-color: var(--accent); }
.studio-hero { position: relative; overflow: clip; padding-top: 26px; }
.studio-introduction { text-align: center; position: relative; z-index: 2; }
.studio-person { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); min-height: 36px; }
.studio-person img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.studio-introduction h1 { font-size: 76px; font-weight: 600; line-height: 1.12; margin: 12px auto 10px; max-width: 1000px; text-wrap: balance; }
.studio-name-main { color: var(--ink); font-weight: 750; }
.studio-name-rest { color: var(--muted); font-weight: 450; font-size: 36px; }
.studio-name-dot { color: var(--accent); }
.studio-role { font-size: 14px; color: var(--muted); }
.studio-hello-actions { display: flex; justify-content: center; align-items: center; gap: 27px; margin-top: 21px; }
.studio-hello-actions .btn { padding: 11px 20px; min-height: 44px; font-size: 12px; }
.studio-hello-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 12px; }
.studio-stage { position: relative; height: min(390px,calc(100svh - 440px)); min-height: 265px; touch-action: pan-y; margin-top: 14px; isolation: isolate; }
.studio-type { position: absolute; inset: 0 24px; display: grid; place-items: center; pointer-events: none; overflow: hidden; z-index: -1; }
.studio-type span { grid-area: 1 / 1; font-size: 180px; font-weight: 800; line-height: 1; color: var(--soft); -webkit-text-stroke: 1px var(--line); opacity: 0; transform: translateY(90%) skewY(7deg); transition: transform 1.15s cubic-bezier(.22,1,.36,1), opacity .65s; }
.studio-type b { display: inline-block; font-weight: inherit; transform: translateY(50px) rotate(4deg); transition: transform 1s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--letter) * 45ms); }
.studio-hero[data-focus="studio"] [data-type="studio"] b, .studio-hero[data-focus="web"] [data-type="web"] b, .studio-hero[data-focus="mobile"] [data-type="mobile"] b { transform: none; }
.studio-hero[data-focus="web"] [data-type="web"] { transform: translateX(-220px) translateY(-5%); }
.studio-hero[data-focus="studio"] [data-type="studio"], .studio-hero[data-focus="web"] [data-type="web"], .studio-hero[data-focus="mobile"] [data-type="mobile"] { opacity: 1; transform: translateY(-5%) skewY(0); }
.studio-hero[data-focus="web"] [data-type="web"] { -webkit-text-stroke-color: var(--studio-cyan); color: transparent; opacity: .55; transform: translateX(-220px) translateY(-5%); }
.studio-hero[data-focus="mobile"] [data-type="mobile"] { -webkit-text-stroke-color: var(--accent); color: transparent; opacity: .5; }
.studio-reel-meta { position: absolute; top: 6px; left: max(24px,calc((100% - 1280px)/2)); right: max(24px,calc((100% - 1280px)/2)); display: flex; justify-content: space-between; color: var(--quiet); font-size: 10px; font-variant-numeric: tabular-nums; pointer-events: none; }
.studio-reel-track { position: absolute; bottom: 0; height: 2px; width: min(1280px,calc(100% - 48px)); left: 50%; transform: translateX(-50%); background: var(--line); }
.studio-reel-progress { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.studio-hero[data-focus="mobile"] .studio-reel-progress { background: var(--studio-cyan); }
.studio-hero[data-playback="held"] .studio-reel-progress { opacity: .25; }
.studio-hero[data-state="ready"] .studio-name-main { animation: studio-name-in .9s cubic-bezier(.22,1,.36,1) both; }
.studio-hero[data-state="ready"] .studio-name-rest { animation: studio-name-in 1.15s cubic-bezier(.22,1,.36,1) both; }
.studio-name-main, .studio-name-rest { display: inline-block; }
@keyframes studio-name-in { from { transform: translateY(24px); opacity: 0; filter: blur(7px); } to { transform: translateY(0); opacity: 1; filter: blur(0); } }
.studio-hero[data-motion="paused"] .studio-type, .studio-hero[data-motion="paused"] .studio-type * { transition: none; }
.studio-hero[data-motion="paused"] .studio-name-main, .studio-hero[data-motion="paused"] .studio-name-rest { animation: none; }
.studio-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; outline-offset: -6px; cursor: grab; touch-action: pan-y; }
.studio-canvas:active { cursor: grabbing; }
.studio-hero[data-state="ready"] .studio-canvas { opacity: 1; }
.studio-hero[data-state="fallback"] .studio-canvas { visibility: hidden; }
.studio-fallback { position: absolute; width: min(770px,75%); height: 100%; left: 50%; transform: translateX(-50%); }
.studio-fallback a { position: absolute; display: grid; place-items: center; overflow: hidden; border: 9px solid #2c3139; border-radius: 12px; background: #eef1f4; box-shadow: 0 12px 30px #0002; }
.studio-fallback img { width: 100%; height: 100%; object-fit: contain; }
.studio-fallback-web { left: 0; width: 78%; height: 72%; top: 16%; transform: rotate(-5deg); }
.studio-fallback-mobile { right: 0; width: 24%; height: 85%; top: 9%; transform: rotate(9deg); }
.studio-hero[data-state="ready"] .studio-fallback { visibility: hidden; }
.studio-scene-tools { position: absolute; right: max(24px,calc((100% - 1280px)/2)); bottom: 20px; display: flex; gap: 5px; }
.studio-scene-tools .icon-btn { color: var(--muted); border: 1px solid var(--line); background: var(--canvas); width: 44px; height: 44px; min-height: 44px; font-size: 11px; }
.studio-dock { min-height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding-block: 6px 10px; }
.studio-availability { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.studio-availability .availability-dot { background: var(--positive); flex-shrink: 0; }
.studio-switch { display: flex; align-items: center; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 3px 12px #00000005; }
.studio-switch button { background: none; border: 0; color: var(--muted); border-radius: 3px; min-height: 40px; padding: 8px 15px; font-size: 11px; display: inline-flex; align-items: center; gap: 8px; }
.studio-switch button[aria-pressed="true"] { color: var(--ink); background: var(--soft); }
.studio-switch button:hover { color: var(--accent); }
.studio-project-link { text-align: right; font-size: 12px; }
.studio-project-link [data-studio-project-title] { display: inline-block; }
.studio-project-link a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.studio-project-link a:hover { color: var(--accent); }
.studio-rule { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding-block: 14px; font-size: 9px; color: var(--quiet); }
.studio-rule > span:first-child { color: var(--studio-cyan); }
.home-work { padding-top: 28px; }
.editorial-heading h2 { font-size: 46px; }
.gallery-enhanced[data-view="gallery"] .portfolio-index-card::before { box-shadow: none; border-radius: 5px; }
.gallery-enhanced[data-view="gallery"] .gallery-active::before { box-shadow: 0 14px 32px #00000008; }
.gallery-mark { color: var(--quiet); }
.gallery-mark > span { color: var(--accent); }
.gallery-enhanced[data-view="gallery"] .portfolio-index-media { border-radius: 3px; }
.gallery-enhanced[data-view="gallery"] .portfolio-index-card::after { background: var(--studio-cyan); }
.motion-story { background: var(--surface); border-block: 1px solid var(--line); }
.motion-portrait img { filter: none; border-radius: 6px; }
.motion-story-copy h2 em { font-family: inherit; font-style: normal; font-size: inherit; color: var(--studio-cyan); }
.practice-disclosure[open] h3 { color: var(--accent); }
.final-cta { background: var(--soft); }
.final-cta h2 { font-size: 58px; }
.cta-arrow { color: var(--canvas); background: var(--ink); border-radius: 50%; }
.about-hero h1, .portfolio-index-hero h1, .skills-hero h1, .notes-hero h1, .contact-hero h1 { font-size: 58px; }
.inspector-panel p { white-space: pre-line; }
@media (max-width:1000px) { .studio-introduction h1 { font-size: 52px; } .studio-name-rest { font-size: 30px; } .studio-dock { grid-template-columns: 1fr auto; } .studio-availability { display: none; } .studio-switch { justify-self: start; } .studio-hero[data-focus="web"] [data-type="web"] { transform: translateX(-140px) translateY(-5%); } }
@media (max-width:760px) {
    .nav-inner { min-height: 68px; }
    .studio-hero { padding-top: 24px; }
    .studio-introduction h1 { font-size: 39px; max-width: 350px; margin-top: 12px; }
    .studio-name-rest { font-size: 28px; }
    .studio-person { font-size: 10px; }
    .studio-person img { width: 26px; height: 26px; }
    .studio-role { font-size: 11px; max-width: 290px; margin-inline: auto; }
    .studio-hello-actions { gap: 20px; margin-top: 16px; }
    .studio-hello-actions .btn, .studio-hello-actions .text-link { font-size: 11px; }
    .studio-stage { height: 275px; min-height: 0; }
    .studio-type { inset-inline: 8px; }
    .studio-type span { font-size: 70px; }
    .studio-hero[data-focus="web"] [data-type="web"] { transform: translateX(-80px) translateY(-5%); }
    .studio-reel-meta { left: 16px; right: 16px; font-size: 8px; top: 0; }
    .studio-reel-track { width: calc(100% - 32px); }
    .studio-scene-tools { right: 16px; bottom: 8px; }
    .studio-scene-tools .icon-btn { width: 44px; height: 44px; }
    .studio-dock { display: flex; flex-direction: column; gap: 2px; padding-block: 9px 0; }
    .studio-switch { align-self: center; }
    .studio-switch button { min-height: 44px; padding-inline: 20px; }
    .studio-project-link a { min-height: 38px; font-size: 10px; }
    .studio-rule { font-size: 8px; padding-block: 10px; }
    .studio-fallback { width: 82%; }
    .studio-fallback a { border-width: 5px; }
    .studio-fallback-web { height: 59%; top: 22%; }
    .studio-fallback-mobile { height: 63%; top: 21%; width: 28%; }
    .home-work { padding-top: 38px; }
    .editorial-heading h2 { font-size: 36px; }
    .final-cta h2 { font-size: 39px; }
    .about-hero h1, .portfolio-index-hero h1, .skills-hero h1, .notes-hero h1, .contact-hero h1 { font-size: 42px; }
}
@media (max-width:360px) { .studio-introduction h1 { font-size: 35px; } .studio-stage { height: 245px; } .studio-rule { font-size: 7px; } }
@media (min-width:761px) and (max-height:750px) { .studio-hero { padding-top: 15px; } .studio-person { display: none; } .studio-introduction h1 { font-size: 47px; margin-top: 5px; } .studio-hello-actions { margin-top: 10px; } .studio-stage { min-height: 210px; height: calc(100svh - 375px); } }
@media (max-width:760px) and (max-height:740px) {
    .studio-hero { padding-top: 14px; }
    .studio-person { display: none; }
    .studio-introduction h1 { font-size: 32px; margin-top: 8px; }
    .studio-stage { height: clamp(130px,calc(100svh - 420px),220px); }
    .studio-rule { display: none; }
    .home-work { padding-top: 16px; }
}
@media (min-width:761px) and (max-height:500px) {
    .nav-inner { min-height: 52px; }
    .studio-hero { padding-top: 8px; }
    .studio-introduction h1 { font-size: 26px; margin-block: 5px; }
    .studio-name-rest { font-size: 22px; }
    .studio-role { font-size: 11px; }
    .studio-hello-actions { margin-top: 8px; }
    .studio-stage { height: max(100px,calc(100svh - 280px)); min-height: 0; }
    .studio-scene-tools { bottom: 5px; }
    .studio-rule { display: none; }
    .home-work { padding-top: 16px; }
}
@media (prefers-reduced-motion:reduce) { .studio-hero * { transition: none !important; animation: none !important; } }
