:root {
  --navy: #010161;
  --ink: #202139;
  --paper: #fffdfd;
  --muted: #585c71;
  --line: rgba(1, 1, 97, .16);
  --glass: rgba(255,255,255,.56);
  --blue: #315b9b;
  --yellow: #d7aa38;
  --green: #5b9077;
  --red: #b84643;
  --radius: 16px;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.6; text-align: left; }
h1, h2, h3, p { text-align: left; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
body.home-page { overflow: hidden; }
body:not(.home-page) { padding-bottom: 48px; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 5px; }
::selection { color: white; background: var(--navy); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 50; padding: 10px 16px; background: var(--navy); color: white; }
.skip-link:focus { top: 20px; }
.cube-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; transform: scale(1); transform-origin: center; transition: transform 1050ms var(--ease), opacity 800ms; }
.home-page .cube-canvas { transform: scale(1.055); }
.cube-hold-home .cube-canvas { transform: scale(1.055); }
.cube-hold-inner .cube-canvas { transform: scale(1); }
.glass-scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: rgba(255,253,253,.045); }
.kti-page .cube-canvas, .kti-page .glass-scrim { opacity: .14; }
.site-layer, [data-page-content] { position: relative; z-index: 2; }
[data-page-content]:focus { outline: none; }
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 0 5vw; border-block: 1px solid rgba(1,1,97,.1); background: rgba(246,248,253,.1); box-shadow: 0 -8px 36px rgba(15,20,65,.035); backdrop-filter: blur(7px) saturate(108%); -webkit-backdrop-filter: blur(7px) saturate(108%); transition: transform 1050ms var(--ease), background 800ms; }
.home-page .site-nav { transform: translateY(calc(100svh - 48px)); }
.wordmark { display: none; }
.wordmark span { color: #999aaa; font-weight: 400; }
.site-nav nav { width: min(50vw,720px); display: grid; grid-template-columns: repeat(4,1fr); align-items: center; text-align: center; }
.site-nav nav > a, .work-menu > a, .about-menu > a { position: relative; justify-self: center; color: #555870; font-size: .8rem; }
.site-nav nav > a::after, .work-menu > a::after, .about-menu > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--navy); transition: right 300ms var(--ease); }
.site-nav nav > a:hover, .site-nav nav > a[aria-current="page"], .work-menu > a:hover, .work-menu > a[aria-current="page"], .about-menu > a:hover, .about-menu > a[aria-current="page"] { color: var(--navy); }
.site-nav nav > a:hover::after, .site-nav nav > a[aria-current="page"]::after, .work-menu > a:hover::after, .work-menu > a[aria-current="page"]::after, .about-menu > a:hover::after, .about-menu > a[aria-current="page"]::after { right: 0; }
.work-menu, .about-menu { position: relative; justify-self: center; }
.project-menu, .section-menu { position: absolute; top: calc(100% + 19px); left: 50%; width: 230px; padding: 10px; opacity: 0; visibility: hidden; transform: translate(-50%,-8px); border: 1px solid rgba(1,1,97,.11); border-radius: 13px; background: rgba(248,249,253,.8); box-shadow: 0 16px 45px rgba(20,25,65,.1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: opacity 220ms, transform 300ms var(--ease), visibility 220ms; }
.section-menu { width: 250px; }
.project-menu::before, .section-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.project-menu a, .project-menu span, .section-menu a { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 8px; color: #686b7d; font-size: .72rem; text-align: left; }
.project-menu a, .section-menu a:hover { color: var(--navy); background: rgba(1,1,97,.07); }
.section-menu a { color: var(--navy); }
.project-menu small { color: #9295a4; font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }
.about-page .work-menu:hover .project-menu, .about-page .work-menu:focus-within .project-menu,
.contact-page .work-menu:hover .project-menu, .contact-page .work-menu:focus-within .project-menu,
.kti-page .work-menu:hover .project-menu, .kti-page .work-menu:focus-within .project-menu { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.work-page .about-menu:hover .section-menu, .work-page .about-menu:focus-within .section-menu,
.contact-page .about-menu:hover .section-menu, .contact-page .about-menu:focus-within .section-menu,
.kti-page .about-menu:hover .section-menu, .kti-page .about-menu:focus-within .section-menu { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.identity-stage { position: relative; z-index: 2; height: 0; display: grid; place-items: center; padding: 0 5vw; overflow: hidden; opacity: 0; pointer-events: none; transition: height 1050ms var(--ease), padding 1050ms var(--ease), opacity 700ms; }
.home-page .identity-stage { height: calc(100svh - 48px); padding: 0 5vw; opacity: 1; pointer-events: auto; }
.kti-page .identity-stage { height: 48px; }
.identity-link { text-align: center; color: var(--navy); display: block; }
.identity-link h1, .identity-link p, .identity-name { text-align: center; }
.identity-name { display: block; margin: 0; font-size: clamp(2.5rem,5vw,4.8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.06; }
.identity-link p { margin: 10px 0 0; font-size: clamp(1.25rem,2.5vw,2.4rem); font-weight: 400; letter-spacing: -.025em; }
.home-page [data-page-content] { height: 0; overflow: hidden; }
.page-shell { width: min(1220px,90vw); margin: 0 auto; padding: 118px 0 95px; }
.work-page .page-shell, .about-page .page-shell { padding: 112px 42px 65px; margin-bottom: 35px; }
.page-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 5vw; margin-bottom: 35px; }
.work-page .page-heading { display: block; }
.work-page .page-heading h1 { font-size: clamp(2rem,3.5vw,3.4rem); }
.kicker { margin: 0 0 16px; color: var(--navy); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.page-heading h1, .section-heading h2 { color: var(--navy); margin: 0; font-size: clamp(2.4rem,4.2vw,4.3rem); font-weight: 500; line-height: 1.05; letter-spacing: -.045em; }
.page-heading .intro { width: 100%; max-width: 430px; margin: 0; color: var(--muted); font-size: .92rem; }
.project-deck { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; }
.project-card { appearance: none; min-height: 220px; padding: 23px; border: 1px solid rgba(1,1,97,.13); border-radius: 13px; background: rgba(255,255,255,.5); text-align: left; color: var(--navy); display: flex; flex-direction: column; justify-content: space-between; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); transition: transform 450ms var(--ease), color 450ms, background 450ms, box-shadow 450ms; }
.project-card:hover { transform: translateY(-7px); box-shadow: 0 15px 32px rgba(1,1,97,.07); }
.project-card.active, .project-card[aria-pressed="true"] { color: white; background: rgba(1,1,97,.88); box-shadow: 0 14px 38px rgba(1,1,97,.16); }
.project-index { display: flex; justify-content: space-between; font-size: .65rem; letter-spacing: .1em; opacity: .75; }
.project-code { font-size: clamp(2.4rem,4.5vw,4.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.project-expand { font-size: .68rem; opacity: .75; }
.project-preview { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 5vw; padding: 40px 0 0; min-height: 370px; }
.preview-visual { position: relative; min-width: 0; aspect-ratio: 1.75; border-radius: 12px; overflow: hidden; background: rgba(240,242,248,.62); backdrop-filter: blur(20px); }
.preview-visual img { width: 100%; height: 100%; object-fit: cover; }
.preview-placeholder { height: 100%; display: grid; place-items: center; color: #9196aa; font-size: 4rem; letter-spacing: -.04em; }
.preview-meta { margin: 0 0 18px; color: var(--muted); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.preview-copy h2 { margin: 0; font-size: clamp(2rem,3.5vw,3.4rem); font-weight: 500; line-height: 1.1; color: var(--navy); letter-spacing: -.04em; }
.preview-description { max-width: 420px; margin: 22px 0; color: var(--muted); font-size: .93rem; }
.project-link { display: inline-flex; align-items: center; gap: 24px; padding: 11px 17px; border: 1px solid var(--navy); border-radius: 999px; color: white; background: var(--navy); font-size: .8rem; transition: transform 300ms var(--ease), background 250ms; }
.project-link:hover { transform: translateY(-2px); background: #121278; }
.project-link::after { content: "↗"; font-size: 1.2rem; }
.glass-panel { border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius); background: var(--glass); box-shadow: 0 12px 40px rgba(20,25,65,.05); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.about-content { width: min(1120px,100%); margin: 0 auto; padding: clamp(22px,3vw,38px); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.about-page .cube-canvas { z-index: 4; }
.about-tabs { display: none; }
.about-page .about-tabs { position: fixed; z-index: 6; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 28px; transform: translateY(-50%); }
.about-tabs a { position: relative; padding: 5px 4px; color: #85889a; background: transparent; font-size: .66rem; line-height: 1; letter-spacing: .035em; writing-mode: vertical-rl; transform: rotate(180deg); transition: color 220ms var(--ease), transform 260ms var(--ease); }
.about-tabs a::after { content: ""; position: absolute; top: 5px; bottom: 5px; left: -4px; width: 2px; border-radius: 2px; background: var(--navy); opacity: 0; transform: scaleY(.35); transition: opacity 220ms, transform 300ms var(--ease); }
.about-tabs a:hover { color: var(--navy); transform: rotate(180deg) translateY(3px); }
.about-tabs a[aria-current="location"] { color: var(--navy); font-weight: 600; }
.about-tabs a[aria-current="location"]::after { opacity: 1; transform: scaleY(1); }
.about-intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 6vw; align-items: center; }
.portrait-panel { margin: 0; padding: 12px; background: rgba(255,255,255,.42); }
.portrait-panel img { width: 100%; height: auto; object-fit: contain; border-radius: 9px; }
.bio-panel { padding: 15px 0; }
.bio-panel h1 { margin: 0 0 28px; color: var(--navy); font-weight: 500; font-size: clamp(2.3rem,4vw,4rem); line-height: 1.1; letter-spacing: -.045em; }
.bio-panel p:not(.kicker) { margin: 0 0 18px; max-width: 520px; color: var(--muted); font-size: .96rem; }
.contact-link { display: inline-block; margin-top: 10px; color: var(--navy); font-size: .85rem; border-bottom: 1px solid var(--navy); }
.bio-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; color: var(--navy); font-size: .82rem; }
.bio-links a { border-bottom: 1px solid var(--line); padding-block: 7px; }
.bio-links a:hover { border-color: var(--navy); }
.about-section { margin-top: 100px; scroll-margin-top: 110px; }
.about-intro { scroll-margin-top: 110px; }
.section-heading { margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(2.3rem,4vw,4rem); }
.credentials-grid { display: grid; grid-template-columns: repeat(2,1fr); column-gap: 6vw; row-gap: 30px; }
.credential { padding: 24px 0 32px; border-top: 1px solid var(--line); }
.credential span { color: var(--navy); font-size: .65rem; letter-spacing: .12em; }
.credential h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.3; margin: 28px 0 15px; letter-spacing: -.025em; }
.credential p { color: var(--muted); max-width: 430px; margin: 0; font-size: .92rem; }
.timeline { border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline-row time { color: var(--navy); font-size: .82rem; }
.timeline-row p { margin: 0; color: var(--muted); font-size: .93rem; }
.timeline-row strong { color: var(--ink); font-weight: 500; }
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.quote-card, .quote-card:first-child { grid-column: auto; padding: clamp(22px,2.5vw,32px); display: flex; flex-direction: column; }
.quote-card blockquote, .quote-card:first-child blockquote { margin: 0; color: var(--navy); font-size: clamp(1.02rem,1.25vw,1.3rem); font-weight: 400; line-height: 1.48; letter-spacing: -.015em; }
.quote-card footer { margin-top: auto; padding-top: 24px; font-size: .76rem; color: var(--muted); }
.quote-card footer a { color: var(--navy); border-bottom: 1px solid var(--line); }
.quote-card small { display: block; margin-top: 7px; font-size: .66rem; color: #73778a; }
.quote-card .quote-translation { display: block; margin-top: 14px; color: #73778a; font-size: .66rem; font-weight: 400; letter-spacing: 0; }
.site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 19; width: 100%; height: 48px; margin: 0; border-block: 1px solid rgba(1,1,97,.1); color: #4f536b; background: rgba(246,248,253,.1); backdrop-filter: blur(7px) saturate(108%); -webkit-backdrop-filter: blur(7px) saturate(108%); font-size: .7rem; }
.home-page .site-footer { display: none; }
.footer-inner { width: min(1220px,calc(100vw - 480px)); height: 100%; min-height: 0; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-inner > :nth-child(2) { text-align: center; }
.footer-inner nav { justify-self: end; display: flex; gap: 22px; }
.footer-inner a { color: var(--navy); }
.contact-layout { min-height: calc(100svh - 250px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(48px,7vw,110px); align-items: start; align-content: center; padding: clamp(38px,6vw,76px); }
.contact-layout h1 { margin: 0; color: var(--navy); font-size: clamp(3rem,4vw,4.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -.05em; }
.contact-lead, .contact-copy { width: 100%; }
.contact-copy { max-width: none; }
.contact-copy p { margin: 0; color: var(--muted); font-size: clamp(.96rem,1.1vw,1.1rem); text-align: justify; text-justify: inter-word; }
.service-list { margin: 28px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-list li { position: relative; padding: 11px 0 11px 20px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.contact-copy .service-note { font-size: .86rem; }
.contact-email { display: inline-block; margin-top: 26px; color: var(--navy); font-size: clamp(.98rem,1.15vw,1.15rem); border-bottom: 1px solid var(--navy); }

@media (min-width: 761px) {
  .work-page .page-shell { height: calc(100svh - 108px); min-height: 572px; margin-bottom: 0; padding: 108px 0 8px; display: grid; grid-template-rows: auto auto minmax(0,1fr); }
  .work-page .page-heading { margin-bottom: 15px; padding-top: 0; }
  .work-page .project-card { min-height: 148px; padding: 17px; }
  .work-page .project-preview { min-height: 0; padding-top: 10px; }
  .work-page .preview-visual { max-height: 100%; }
  .contact-page .page-shell { height: calc(100svh - 108px); padding: 48px 0 0; display: grid; grid-template-rows: minmax(0,1fr); }
  .contact-page .contact-layout { min-height: 0; padding: clamp(30px,4vw,58px) 0; }
}

@media (min-width: 1200px) {
  .page-shell, .case-section, .case-section.tint { width: min(1220px,calc(100vw - 480px)); }
  .about-page .about-tabs { left: max(calc((100vw - 1220px)/2 + 10px),250px); }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .page-shell, .case-section, .case-section.tint, .footer-inner { width: calc(100vw - 336px); }
  .about-page .about-tabs { left: 178px; }
}

@media (min-width: 700px) and (max-width: 899px) {
  .page-shell, .case-section, .case-section.tint, .footer-inner { width: calc(100vw - 192px); }
}
.kti-hero { position: relative; width: 100%; margin: 0; overflow: hidden; }
.kti-hero > img { width: 100%; height: auto; object-fit: initial; }
.kti-hero-copy { position: absolute; z-index: 1; left: 5vw; top: 80px; transform: none; width: min(530px,45vw); padding: clamp(28px,3vw,46px); color: var(--navy); background: rgba(255,255,255,.46); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: none; }
.kti-hero-copy h1 { margin: 0; font-size: clamp(2.2rem,3.6vw,4rem); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; font-kerning: none; font-variant-ligatures: none; }
.kti-hero-copy > p:not(.kicker) { font-size: .88rem; margin: 22px 0 0; line-height: 1.55; }
.project-back { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 25px; color: var(--navy); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid rgba(1,1,97,.3); }
.project-float { position: fixed; z-index: 15; right: 26px; top: 50%; transform: translateY(-50%); padding: 11px 17px; border: 1px solid rgba(1,1,97,.14); border-radius: 999px; color: var(--navy); background: rgba(248,249,253,.7); box-shadow: 0 12px 35px rgba(20,25,65,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .72rem; }
.language-intro { max-width: 760px; color: var(--muted); font-size: 1rem; }
.language-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 36px; border-block: 1px solid var(--line); }
.language-item { padding: 24px 20px; border-right: 1px solid var(--line); }
.language-item:first-child { padding-left: 0; }
.language-item:last-child { border-right: 0; }
.language-item strong { display: block; color: var(--navy); font-size: 1.1rem; font-weight: 500; }
.language-item span { color: var(--muted); font-size: .76rem; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 25px; }
.stats b { display: block; font-size: 1.6rem; font-weight: 500; }
.stats span { font-size: .62rem; }
.case-section { width: min(1280px,90vw); margin: 0 auto; padding: 90px 0; }
.case-section.tint { width: min(1280px,90vw); padding: 80px 0; }
.case-head { display: grid; grid-template-columns: 1fr .8fr; gap: 8vw; align-items: end; margin-bottom: 42px; }
.case-head h2 { margin: 0; color: var(--navy); font-size: clamp(2rem,3.8vw,3.7rem); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; }
.case-head p { margin: 0; color: var(--muted); font-size: .94rem; }
.case-head .kicker { margin-bottom: 16px; }
.case-summary { max-width: 860px; }
.case-summary h2 { margin: 0 0 24px; color: var(--navy); font-size: clamp(2rem,3.8vw,3.7rem); font-weight: 600; line-height: 1.12; letter-spacing: -.04em; }
.case-summary > p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: .98rem; }
.case-summary + .parameter-grid, .case-summary + .controls { margin-top: 42px; }
.case-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.case-copy p { color: var(--muted); font-size: .96rem; }
.parameter-grid { display: grid; grid-template-columns: repeat(5,1fr); border-block: 1px solid var(--line); }
.parameter { min-height: 180px; padding: 23px 18px; border-right: 1px solid var(--line); }
.parameter:first-child { padding-left: 0; }
.parameter:last-child { border-right: 0; }
.parameter span { color: #6d7287; font-size: .65rem; }
.parameter h3 { margin: 40px 0 9px; font-size: 1rem; font-weight: 500; }
.parameter p { margin: 0; color: var(--muted); font-size: .78rem; }
.controls { display: grid; grid-template-columns: repeat(5,minmax(120px,1fr)) auto; gap: 12px; margin-bottom: 22px; align-items: start; }
.filter-group { color: var(--muted); font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; }
.select-pair { display: flex; flex-direction: column; }
.compare-label { margin: 6px 0 0; font-size: .65rem; letter-spacing: 0; text-transform: none; }
select, .reset-button, .ranked-toggle { height: 42px; margin-top: 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.9); color: var(--ink); }
.reset-button { margin-top: 23px; background: var(--navy); color: white; font-size: .75rem; }
.ranked-toggle { grid-column: 1/-1; justify-self: start; margin-top: 0; color: #7c2927; background: rgba(184,70,67,.13); border-color: rgba(184,70,67,.42); font-size: .75rem; }
.ranked-toggle:hover { background: rgba(184,70,67,.2); border-color: rgba(184,70,67,.62); }
.ranked-toggle[aria-pressed="true"] { color: white; background: var(--red); border-color: var(--red); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 22px; font-size: .68rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--swatch); }
.chart-legend .ranked { border: 1px solid #8e302e; background: var(--red); }
.charts { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.chart-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.96); }
.chart-title { display: flex; justify-content: space-between; gap: 20px; }
.chart-title strong { display: block; font-weight: 500; font-size: .9rem; }
.chart-title span { color: var(--muted); font-size: .68rem; }
.count { color: var(--navy) !important; white-space: nowrap; }
.chart { min-height: 430px; }
.selected-run { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; margin-top: 20px; padding: 25px; border-radius: 13px; background: #edf1f8; }
.selected-visual { width: 200px; aspect-ratio: 1; grid-row: span 2; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: white; }
.selected-visual img { width: 100%; height: 100%; object-fit: contain; }
.selected-visual span { padding: 20px; color: var(--muted); text-align: center; font-size: .72rem; }
.selected-run h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 500; }
.selected-run p { margin: 0; color: var(--muted); font-size: .76rem; }
.selected-run .kicker { margin-bottom: 10px; }
.metrics { display: flex; flex-wrap: wrap; gap: 15px 35px; }
.metrics span { display: block; color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.metrics strong { color: var(--navy); font-size: 1.4rem; font-weight: 500; }
.kti-footer { width: 100%; margin: 0; }
.reveal-ready { opacity: 0; transform: translateY(35px); transition: opacity 850ms var(--ease), transform 1000ms var(--ease); }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .controls { grid-template-columns: repeat(3,1fr); }
  .charts { grid-template-columns: 1fr; }
  .project-card { padding: 17px; min-height: 185px; }
  .kti-hero-copy { width: 48vw; padding: 25px; }
  .kti-hero-copy h1 { font-size: 2.7rem; }
  .kti-hero-copy > p:not(.kicker) { display: none; }
  .stats { gap: 20px; margin-top: 18px; }
}
@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .site-nav { min-height: 44px; padding: 0 18px; }
  .site-nav nav { width: min(100%,520px); }
  .site-nav nav a { font-size: .73rem; }
  .home-page .site-nav { transform: translateY(calc(100svh - 44px)); }
  .identity-stage { height: 0; }
  .home-page .identity-stage { height: calc(100svh - 44px); }
  .identity-name { font-size: clamp(2.2rem,10vw,3.4rem); }
  .identity-link p { font-size: clamp(1.1rem,5vw,1.7rem); }
  .page-shell { width: calc(100% - 88px); padding-top: 96px; }
  .work-page .page-shell, .about-page .page-shell { padding: 104px 18px 35px; border-radius: 15px; }
  .page-heading { display: block; margin-bottom: 26px; }
  .page-heading .intro { margin-top: 20px; }
  .project-deck { grid-template-columns: repeat(5,minmax(132px,42vw)); gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding: 4px 0 12px; }
  .project-card { min-height: 145px; padding: 14px; scroll-snap-align: start; }
  .project-code { font-size: 2.3rem; }
  .project-index { font-size: .56rem; }
  .project-expand { font-size: .6rem; }
  .project-preview { grid-template-columns: 1fr; gap: 25px; padding-top: 24px; min-height: 0; }
  .preview-description { margin: 16px 0 20px; }
  .project-link { width: 100%; justify-content: space-between; }
  .preview-copy h2 { font-size: 2rem; }
  .about-intro { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
  .portrait-panel { max-width: 540px; }
  .bio-panel { padding: 0; }
  .bio-panel h1 { font-size: 2.4rem; }
  .about-section { margin-top: 64px; }
  .credentials-grid, .quotes { grid-template-columns: 1fr; gap: 18px; }
  .quote-card:first-child { padding-right: 28px; }
  .timeline-row { grid-template-columns: 85px 1fr; gap: 18px; }
  .timeline-row time { font-size: .72rem; }
  .kti-page .identity-stage { height: 44px; }
  .kti-hero { display: flex; flex-direction: column; }
  .kti-hero > img { width: 100%; height: auto; object-fit: contain; }
  .kti-hero-copy { position: relative; left: auto; top: auto; transform: none; width: calc(100% - 36px); margin: -12px auto 0; padding: 24px; background: rgba(255,255,255,.66); }
  .kti-hero-copy h1 { font-size: 2.4rem; }
  .kti-hero-copy > p:not(.kicker) { display: block; }
  .stats { gap: 24px; }
  .case-section, .case-section.tint { width: 100%; padding: 56px 18px; }
  .case-head, .case-copy { grid-template-columns: 1fr; gap: 24px; }
  .case-head h2 { font-size: 2.3rem; }
  .parameter-grid { grid-template-columns: repeat(2,1fr); }
  .parameter { min-height: 150px; border-bottom: 1px solid var(--line); }
  .parameter:first-child { padding-left: 18px; }
  .parameter:nth-child(2n) { border-right: 0; }
  .controls { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .reset-button { margin-top: 23px; }
  .chart-card { padding: 15px 8px; }
  .chart-title { display: block; padding: 0 8px; }
  .count { display: block; margin-top: 8px; }
  .selected-run { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .selected-visual { grid-row: auto; width: min(260px,100%); }
  body:not(.home-page) { padding-bottom: 44px; }
  .site-footer { display: block; height: 44px; }
  .footer-inner { width: calc(100vw - 48px); height: 100%; min-height: 0; padding: 0; display: grid; grid-template-columns: 1fr auto; gap: 16px; }
  .footer-inner > :nth-child(2) { display: none; }
  .footer-inner nav { grid-column: 2; grid-row: 1; justify-self: end; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; align-content: center; min-height: calc(100svh - 180px); }
  .contact-copy p { text-align: left; }
  .project-float { display: none; }
  .project-menu { position: fixed; top: 44px; left: 50%; width: calc(100vw - 36px); display: none; transform: translate(-50%,-8px); }
  .section-menu { display: none !important; }
  .project-detail-page .work-menu.is-open .project-menu { display: block; opacity: 1; visibility: visible; transform: translate(-50%,0); }
  .language-grid { grid-template-columns: repeat(2,1fr); }
  .language-item:nth-child(2) { border-right: 0; }
  .language-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .language-item:nth-child(3) { padding-left: 0; }
}
@media (max-width: 899px) {
  .about-page .about-tabs { top: 48px; left: 0; right: 0; width: auto; height: 44px; padding: 0 14px; flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; transform: none; background: rgba(255,253,253,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scrollbar-width: none; }
  .about-page .about-tabs::-webkit-scrollbar { display: none; }
  .about-tabs a { flex: 0 0 auto; width: auto; padding: 6px 10px; border: 0; text-align: center; white-space: nowrap; writing-mode: horizontal-tb; transform: none; }
  .about-tabs a::after { top: auto; right: 10px; bottom: 1px; left: 10px; width: auto; height: 2px; transform: scaleX(.35); }
  .about-tabs a:hover { transform: none; }
  .about-tabs a[aria-current="location"]::after { transform: scaleX(1); }
  .about-intro, .about-section { scroll-margin-top: 104px; }
}
@media (max-width: 760px) {
  .about-page .about-tabs { top: 44px; }
}
@media (max-width: 560px) {
  .controls { grid-template-columns: 1fr; }
  .reset-button { margin-top: 4px; }
  .ranked-toggle { width: 100%; }
  .parameter-grid { grid-template-columns: 1fr; }
  .parameter, .parameter:first-child { min-height: 120px; padding: 20px 14px; border-right: 0; }
  .parameter h3 { margin-top: 24px; }
  .chart { min-height: 360px; }
  .selected-visual { width: 100%; }
  .contact-layout { padding-inline: 12px; }
  .contact-email { max-width: 100%; overflow-wrap: anywhere; }
}
@media (min-width: 700px) and (max-width: 760px) {
  .page-shell, .case-section, .case-section.tint, .kti-footer { width: calc(100vw - 192px); }
}
@media (max-width: 699px) {
  .case-section, .case-section.tint, .kti-footer { width: calc(100vw - 88px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready { opacity: 1; transform: none; }
}
