.inner-page { --page-inset: clamp(24px, 6vw, 116px); }
.inner-page .home-background::after {
    background: linear-gradient(180deg, rgb(3 6 11 / 60%), rgb(3 6 11 / 30%) 60%, rgb(3 6 11 / 85%)), linear-gradient(90deg, rgb(3 6 11 / 40%), rgb(3 6 11 / 15%));
}
.inner-main { min-height: 0; padding: 22px var(--page-inset) 20px; }
.page-eyebrow { margin: 0 0 18px; color: #b6bbc3; font-size: 10px; letter-spacing: 2.8px; }
.inner-main h1 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 500; letter-spacing: -2px; }
.text-link { display: inline-flex; align-items: center; gap: 26px; min-height: 44px; border-bottom: 1px solid #737b87; font-size: 12px; }
.text-link svg, .icon-button svg, .plain-button svg { width: 20px; height: 20px; flex-shrink: 0; }
.about-main { display: flex; align-items: center; overflow: auto; scrollbar-width: thin; scrollbar-color: #565d68 transparent; }
.about-layout { width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(45px, 9vw, 170px); align-items: center; }
.about-copy h2 { margin: 32px 0 18px; font-size: 17px; font-weight: 500; }
.about-copy p:not(.page-eyebrow) { max-width: 510px; color: #c3c7ce; font-size: 14px; line-height: 1.85; }
.about-copy .text-link { margin-top: 17px; }
.about-tools { display: flex; flex-wrap: wrap; gap: 10px 17px; margin-top: 29px; color: #aeb5c0; font-size: 10px; letter-spacing: .6px; }
.about-tools span + span { border-left: 1px solid #5c626b; padding-left: 17px; }
.experience-list { margin: 0; }
.experience-item { padding: 20px 0; border-top: 1px solid rgb(255 255 255 / 20%); }
.experience-item:last-child { padding-bottom: 0; }
.experience-item--team { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 17px; }
.experience-item--team > img { grid-column: 1; grid-row: 1 / 4; width: 64px; height: 64px; object-fit: contain; align-self: center; }
.experience-item--team dt, .experience-item--team dd { grid-column: 2; }
.experience-item dt { margin-bottom: 8px; font-size: 16px; font-weight: 500; }
.experience-item dd { margin: 0; color: #bfc5ce; font-size: 11px; line-height: 1.65; }
.experience-item dd + dd { margin-top: 4px; color: #939eae; }
.projects-main { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 25px; }
.projects-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.projects-heading > p { max-width: 270px; margin: 0 0 6px; color: #b5bdc9; font-size: 12px; line-height: 1.7; text-align: right; }
.projects-heading .page-eyebrow { margin-bottom: 12px; }
.project-stage { position: relative; min-height: 0; overflow: hidden; }
.project-gallery, .project-detail {
    position: absolute; inset: 0; min-width: 0; min-height: 0;
    transition: transform 480ms cubic-bezier(.22,.68,.2,1), opacity 380ms ease, visibility 480ms;
}
.project-gallery { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 20px; transform: translateX(0); }
.project-detail { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 15px; transform: translateX(102%); opacity: 0; visibility: hidden; }
.project-stage.is-detail .project-gallery { transform: translateX(-102%); opacity: 0; visibility: hidden; }
.project-stage.is-detail .project-detail { transform: translateX(0); opacity: 1; visibility: visible; }
.project-filters { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.project-filters::-webkit-scrollbar { display: none; }
.project-filters button {
    position: relative; flex-shrink: 0; min-height: 38px; padding: 0 0 10px; border: 0; border-bottom: 1px solid transparent;
    color: #b5bdc9; background: transparent; font: inherit; font-size: 11px; cursor: pointer;
}
.project-filters button[aria-pressed="true"] { color: #fff; border-color: #fff; }
.project-filters button:hover { color: #fff; }
.project-track {
    display: flex; gap: 24px; min-height: 0; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.project-track::-webkit-scrollbar { display: none; }
.project-card {
    position: relative; flex: 0 0 calc((100% - 48px) / 3); min-width: 0; min-height: 0;
    display: grid; grid-template-rows: minmax(0, 1fr) 180px; padding: 0;
    border: 1px solid rgb(255 255 255 / 20%); text-align: left; color: #f5f5f3;
    background: #0b1019; font: inherit; cursor: pointer; scroll-snap-align: start;
    transition: border-color 180ms, background 180ms;
}
.project-card:hover { border-color: rgb(255 255 255 / 65%); background: #101722; }
.project-card:focus-visible { outline-offset: -4px; }
.project-card-media { position: relative; min-height: 0; overflow: hidden; background: #10151f; }
.project-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.project-card[data-fit="contain"] .project-card-media img { object-fit: contain; padding: 14px; }
.project-card[data-kind="logo"] .project-card-media img { padding: clamp(20px, 3vw, 36px); object-position: center; }
.project-card[data-kind="photo"] .project-card-media img { object-fit: contain; object-position: center; transform: none; padding: 12px; }
.project-card[data-kind="photo"]:hover .project-card-media img { transform: none; }
.project-card:hover .project-card-media img { transform: scale(1.035); }
.project-card-number { position: absolute; top: 14px; left: 15px; padding: 6px 8px; color: #f1f3f6; background: rgb(5 9 15 / 85%); font-size: 10px; letter-spacing: 1px; }
.project-card-info { position: relative; padding: 23px; }
.project-card-category { display: block; margin-bottom: 12px; color: #9da8b9; font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase; }
.project-card h2 { min-height: 2.4em; margin: 0 26px 10px 0; font-size: clamp(18px, 1.65vw, 24px); font-weight: 500; line-height: 1.2; letter-spacing: -.4px; }
.project-card-info p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.4em; margin: 0; color: #b1bac8; font-size: 11px; line-height: 1.7; }
.project-card-metric { position: absolute; right: 12px; bottom: 12px; padding: 8px 10px; border: 1px solid rgb(211 194 160 / 55%); color: #f2e4ca; background: rgb(6 11 18 / 92%); font-size: 10px; letter-spacing: .25px; }
.project-card-arrow { position: absolute; top: 44px; right: 20px; width: 19px; height: 19px; }
.gallery-bottom, .detail-topbar, .detail-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gallery-pagination { display: flex; align-items: center; gap: 22px; }
.gallery-position { min-width: 54px; color: #c8cdd5; font-size: 11px; letter-spacing: 1px; }
.gallery-count { margin: 0; color: #aab4c3; font-size: 10px; letter-spacing: .5px; }
.icon-button {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid rgb(255 255 255 / 30%); color: #fff; background: rgb(6 11 18 / 45%); cursor: pointer;
}
.icon-button:hover { border-color: #fff; background: rgb(255 255 255 / 7%); }
.icon-button:disabled { opacity: .28; cursor: default; }
.plain-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0; border: 0; color: #e0e5ec; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.plain-button:disabled { opacity: .3; cursor: default; }
.detail-index { color: #b4becd; font-size: 10px; letter-spacing: 1px; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: clamp(26px, 4vw, 70px); min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #566174 transparent; }
.detail-visual { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
.detail-image-wrap { min-height: 160px; background: rgb(9 14 23 / 90%); border: 1px solid rgb(255 255 255 / 14%); }
.detail-image { display: block; width: 100%; height: 100%; max-height: 480px; object-fit: contain; }
.detail-image-wrap[data-kind="logo"] .detail-image { padding: clamp(18px, 3vw, 36px); object-position: center; }
.detail-image-wrap[data-kind="photo"] .detail-image { padding: 12px; object-position: center; transform: none; }
.detail-caption-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-caption { margin: 0; color: #a7b2c2; font-size: 9px; line-height: 1.5; }
.detail-image-choices { display: flex; flex-shrink: 0; gap: 6px; }
.detail-image-choices button { min-width: 36px; min-height: 36px; border: 1px solid #586577; background: rgb(9 14 23 / 85%); color: #b6c0ce; font-size: 10px; cursor: pointer; }
.detail-image-choices button[aria-pressed="true"] { border-color: #fff; color: #fff; }
.detail-copy { min-width: 0; align-self: start; padding: 10px 0 18px; }
.detail-copy .page-eyebrow { margin-bottom: 15px; }
.detail-copy h2 { margin: 0 0 12px; font-size: clamp(27px, 3vw, 44px); font-weight: 500; letter-spacing: -1px; line-height: 1.1; }
.detail-subtitle { margin: 0 0 23px; color: #d8dde6; font-size: 12px; line-height: 1.6; }
.detail-metric { width: fit-content; margin: -7px 0 22px; padding: 8px 11px; border: 1px solid rgb(211 194 160 / 45%); color: #f2e4ca; background: rgb(6 11 18 / 70%); font-size: 11px; }
.detail-description, .detail-contribution { margin: 0; color: #bfc8d5; font-size: 12px; line-height: 1.8; }
.detail-label { margin: 25px 0 10px; color: #8fa0b6; font-size: 9px; font-weight: 400; letter-spacing: 2px; }
.detail-technologies { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0; list-style: none; color: #d9dfe8; font-size: 10px; line-height: 1.6; }
.detail-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 23px; }
.detail-status { margin: 20px 0 0; font-size: 10px; color: #d4c6ad; }
.detail-bottom { padding-top: 5px; border-top: 1px solid rgb(255 255 255 / 14%); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.no-script { color: #c7d0de; font-size: 13px; line-height: 1.8; }
.inner-page button { font-family: inherit; }
@media (max-width: 1100px) {
    .project-card { flex-basis: calc((100% - 24px) / 2); }
    .project-filters { gap: 20px; }
    .about-layout { gap: 45px; }
}
@media (max-width: 700px) and (orientation: portrait) {
    .inner-main { padding-top: 25px; padding-bottom: 10px; }
    .inner-main h1 { font-size: 38px; letter-spacing: -1.4px; }
    .inner-page .home-footer { padding-top: 8px; }
    .about-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .about-main { align-items: start; }
    .about-copy h2 { margin-top: 21px; margin-bottom: 12px; font-size: 15px; }
    .about-copy h2, .about-copy [data-copy="aboutBio2"] { display: none; }
    .about-copy p:not(.page-eyebrow) { font-size: 12px; line-height: 1.8; }
    .about-copy .text-link { margin-top: 7px; }
    .about-tools { margin-top: 20px; gap: 8px 12px; font-size: 9px; }
    .about-tools span + span { padding-left: 12px; }
    .experience-item { padding: 13px 0; }
    .experience-item dt { font-size: 14px; margin-bottom: 6px; }
    .experience-item dd { font-size: 10px; }
    .experience-item dd + dd { display: none; }
    .experience-item--team { grid-template-columns: 48px minmax(0, 1fr); column-gap: 13px; }
    .experience-item--team > img { width: 48px; height: 48px; }
    .about-experience .page-eyebrow { font-size: 9px; margin-bottom: 14px; }
    .projects-main { gap: 18px; }
    .projects-main:has(.is-detail) { grid-template-rows: minmax(0, 1fr); gap: 0; }
    .projects-main:has(.is-detail) .projects-heading { display: none; }
    .projects-heading > p { display: none; }
    .projects-heading .page-eyebrow { margin-bottom: 10px; font-size: 9px; }
    .project-gallery { gap: 13px; }
    .project-filters { gap: 22px; }
    .project-filters button { font-size: 10px; min-height: 36px; }
    .project-track { gap: 16px; }
    .project-card { flex-basis: 100%; grid-template-rows: minmax(0, 1fr) 168px; }
    .project-card-info { padding: 18px; }
    .project-card h2 { font-size: 23px; }
    .project-card-category { font-size: 8px; margin-bottom: 9px; }
    .project-card-info p { font-size: 11px; min-height: auto; }
    .project-card-arrow { top: 36px; }
    .gallery-bottom { gap: 8px; }
    .gallery-pagination { gap: 12px; }
    .gallery-count { max-width: 150px; font-size: 9px; line-height: 1.6; }
    .project-detail { gap: 10px; }
    .detail-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: max-content; gap: 18px; }
    .detail-visual { min-height: 0; }
    .detail-image-wrap { height: 190px; min-height: 0; }
    .detail-copy { padding-top: 0; }
    .detail-copy h2 { font-size: 30px; }
    .detail-copy .page-eyebrow { font-size: 9px; margin-bottom: 12px; }
    .detail-description, .detail-contribution { font-size: 12px; }
    .detail-subtitle { margin-bottom: 16px; }
    .detail-bottom .plain-button { gap: 8px; font-size: 10px; }
}
@media (max-height: 720px) and (min-width: 701px) {
    .inner-main { padding-top: 5px; }
    .inner-main h1 { font-size: 38px; }
    .projects-main { gap: 14px; }
    .project-gallery { gap: 10px; }
    .project-card-info { padding: 15px; }
    .project-card { grid-template-rows: minmax(0, 1fr) 144px; }
    .project-card h2 { font-size: 19px; margin-bottom: 6px; }
    .project-card-category { margin-bottom: 8px; }
    .project-card-info p { min-height: 0; }
    .about-copy h2 { margin-top: 23px; }
    .experience-item { padding: 12px 0; }
}
@media (max-height: 650px) and (orientation: portrait) {
    .inner-main { padding-top: 15px; }
    .inner-main h1 { font-size: 30px; }
    .projects-main { gap: 12px; }
    .project-card-info { padding: 13px; }
    .project-card { grid-template-rows: minmax(0, 1fr) 128px; }
    .project-card h2 { font-size: 19px; margin-bottom: 6px; }
    .project-card-category { margin-bottom: 8px; }
    .project-card-info p { font-size: 10px; line-height: 1.55; }
    .project-card-arrow { top: 30px; }
    .detail-image-wrap { height: 120px; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .inner-main { padding-top: 2px; padding-bottom: 4px; }
    .inner-main h1 { font-size: 27px; }
    .projects-heading .page-eyebrow { display: none; }
    .projects-main { gap: 8px; }
    .project-gallery { gap: 6px; }
    .project-filters { gap: 18px; }
    .project-filters button { min-height: 28px; padding-bottom: 6px; font-size: 9px; }
    .project-card { grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
    .project-card-info { padding: 12px; }
    .project-card-info p { display: none; }
    .project-card h2 { font-size: 16px; }
    .project-card-category { font-size: 7px; margin-bottom: 8px; }
    .project-card-arrow { display: none; }
    .project-card-number { top: 5px; left: 5px; font-size: 8px; padding: 4px; }
    .icon-button { width: 34px; height: 34px; }
    .plain-button { min-height: 32px; font-size: 10px; }
    .project-detail { gap: 5px; }
    .detail-body { gap: 20px; }
    .detail-image-wrap { min-height: 0; }
    .detail-copy h2 { font-size: 24px; }
    .about-layout { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
    .project-gallery, .project-detail, .project-card, .project-card-media img { transition: none; }
}
