@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 200 600;
    font-display: swap;
    src: url('assets/fonts/montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 200 600;
    font-display: swap;
    src: url('assets/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 650;
    font-display: swap;
    src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
    --background: #f6f6f0;
    --surface: #ffffff;
    --ink: #56182b;
    --text: #30252b;
    --muted: #625960;
    --blue: #dbe7ef;
    --line: #ddd9d5;
    --radius: 24px;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --logo-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --glass-base: rgba(255, 255, 255, 0.92);
    --glass-fill: linear-gradient(135deg, #ffffff80, #ffffff12 45%, #e4eef633), var(--glass-base);
    --glass-edge: rgba(255, 255, 255, 0.86);
    --glass-shadow: 0 12px 36px #34445c0a, 0 2px 6px #34445c05, inset 0 1px 0 #ffffff, inset 0 -1px 0 #ffffff66;
    --glass-shadow-hover: 0 18px 42px #34445c12, 0 4px 10px #34445c06, inset 0 1px 0 #ffffff, inset 0 -1px 0 #ffffff99;
    --glass-accent: linear-gradient(145deg, #86445beb, #56182bf2);
    --glass-accent-hover: linear-gradient(145deg, #96536bf0, #68223bf5);
    --glass-blur: 22px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 300;
    line-height: 1.12;
    text-wrap: balance;
}

h2 {
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -0.045em;
}

h3 {
    font-size: 24px;
    letter-spacing: -0.025em;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 5px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

::selection {
    background: #c6dce9;
    color: var(--ink);
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding-block: 68px;
}

.skip-link {
    position: fixed;
    z-index: 20;
    top: 12px;
    left: 12px;
    padding: 12px 20px;
    background: var(--ink);
    color: white;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 12px;
    margin-top: 14px;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: min(1248px, calc(100% - 32px));
    padding-inline: 24px;
    border-radius: 28px;
}

.wordmark {
    color: var(--ink);
    font-family: var(--logo-font);
    font-size: 36px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.075em;
}

.wordmark span {
    color: #9b3c57;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.nav-contact {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #b1a0a4;
    border-radius: 999px;
    padding: 9px 18px;
}

.nav-contact span {
    display: inline-flex;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    padding: 8px 14px;
    font-size: 14px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 52px;
    padding-top: 84px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0.07em;
    line-height: 1.5;
    text-transform: uppercase;
}

.small-star {
    font-size: 20px;
    line-height: 1;
}

.eyebrow-divider {
    color: #afa5a7;
    margin-inline: 4px;
}

.hero h1 {
    position: relative;
    margin-top: 28px;
    font-size: clamp(56px, 6.3vw, 88px);
    font-weight: 200;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.title-star {
    display: inline-block;
    margin-left: 12px;
    vertical-align: top;
    color: #86a8be;
    font-size: 30px;
    line-height: 1.6;
}

.hero-role {
    margin-top: 28px;
    color: var(--ink);
    font-size: clamp(18px, 1.6vw, 23px);
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.hero-description {
    max-width: 400px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 17px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.button-primary {
    background: var(--ink);
    color: white;
}

.button-outline {
    color: var(--ink);
}

.wave-arrow {
    display: inline-block;
    width: 32px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wave-arrow--back {
    rotate: 180deg;
}

.wave-arrow--down {
    rotate: 90deg;
    width: 24px;
}

.wave-arrow--up {
    rotate: -90deg;
    width: 24px;
}

.project-arrow .wave-arrow {
    width: 28px;
}

.image-open .wave-arrow {
    width: 24px;
}

.gallery-heading .wave-arrow,
.footer-inner > a:last-child .wave-arrow {
    width: 24px;
    height: 16px;
}

.nav-contact .wave-arrow {
    width: 26px;
}

.hero-art {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    aspect-ratio: 1.15;
    width: 100%;
    max-width: 560px;
    justify-self: center;
}

.hero-glow {
    position: absolute;
    inset: 8% 4%;
    border-radius: 50%;
    background: radial-gradient(ellipse, #dce8eea6, #e5edf04d 45%, transparent 70%);
}

.hero-scene {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.hero-fallback {
    opacity: 1;
}

html.hero-pending .hero-fallback {
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html.hero-pending .hero-fallback {
        visibility: visible;
    }
}

.hero-layer {
    position: absolute;
    inset: 0;
    display: none;
}

.hero-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-layer--tools img {
    position: absolute;
    top: 4%;
    left: 0.5%;
    width: 88%;
    height: 88%;
}

.assembly-ready .hero-layer {
    display: block;
}

.assembly-ready .hero-fallback {
    opacity: 0;
}

.hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 65%;
    border: 1px solid #a5becd99;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
}

.hero-orbit--burgundy {
    width: 74%;
    height: 86%;
    border-color: #93536a40;
    transform: translate(-50%, -50%) rotate(28deg);
}

.hero-illustration {
    position: relative;
    z-index: 2;
    width: 96%;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 16px #4f677d14);
}

.hero-pebble {
    position: absolute;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 5px 12px #4b6a8014;
}

.hero-pebble--blue {
    top: 17%;
    right: 11%;
    background: radial-gradient(circle at 30% 25%, #f1f8fb, #aec8d9 60%, #7c9caf);
}

.hero-pebble--cream {
    bottom: 22%;
    left: 9%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 25%, #ffffff, #e7e0ce 65%, #c8bc9e);
}

.hero-shadow {
    position: absolute;
    bottom: 16%;
    left: 20%;
    width: 60%;
    height: 12px;
    border-radius: 50%;
    background: #6b87972b;
    filter: blur(12px);
}

.hero-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 36px 28px;
    margin-top: 40px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 36px;
}

.section-heading .eyebrow,
.about-copy > .eyebrow,
.contact-copy > .eyebrow {
    margin-bottom: 18px;
}

.section-intro {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.work-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
}

.filter-button {
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    padding: 10px 20px;
    font-size: 13px;
    line-height: 1.5;
}

.filter-button[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: white;
}

.work-count {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 12px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-content: start;
}

.project-card {
    min-width: 0;
    padding: 18px;
    border-radius: 32px;
}

.project-link {
    display: block;
    border-radius: 20px;
}

.project-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #e5e2de;
    border-radius: var(--radius);
    padding: 12px;
    background: #ffffff26;
}

.project-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.project-image .preview-frame {
    display: none;
}

.preview-scene {
    position: absolute;
    inset: 12px;
    overflow: hidden;
    border-radius: 14px;
    opacity: 0;
    pointer-events: none;
    background: var(--background);
}

.preview-layout {
    display: grid;
    width: 100%;
    height: 100%;
    gap: 8px;
}

.preview-scene--branding .preview-layout {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.preview-scene--social .preview-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1.15fr 0.85fr;
}

.preview-tile {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7px;
    border: 1px solid var(--glass-border, #ffffff);
    border-radius: 12px;
    background: var(--glass-fill);
    box-shadow: 0 4px 14px #34445c09;
}

.preview-scene--social .preview-tile:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
}

.preview-scene--social .preview-tile:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.preview-scene--social .preview-tile:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.preview-scene--presentations .preview-layout {
    display: flex;
    gap: 0;
    transform: translateX(calc(var(--slide-index, 0) * -100%));
}

.preview-scene--presentations .preview-tile {
    flex: 0 0 100%;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.project-image .preview-scene .preview-frame {
    display: block;
    width: 100%;
    height: 100%;
    max-width: min(100%, var(--material-width, 100%));
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.project-image.has-preview .project-cover {
    opacity: 0;
}

.project-image.has-preview .preview-scene {
    opacity: 1;
}

.preview-progress {
    position: absolute;
    right: 18px;
    bottom: 10px;
    left: 18px;
    display: none;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}

.project-card[data-category="presentations"] .has-preview .preview-progress {
    display: flex;
}

.preview-progress > span {
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #b7abae;
}

.preview-progress > .is-current {
    background: var(--ink);
}

.case-cover {
    margin-bottom: 40px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.035em;
}

.project-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 7px;
}

.project-heading h3 {
    min-width: 0;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.3;
}

.project-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid #c8b8bb;
    border-radius: 50%;
    color: var(--ink);
    font-size: 19px;
}

.project-description {
    margin-top: 6px;
    padding-right: 50px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.about-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    align-items: center;
    gap: 72px;
    border-radius: 32px;
    background: var(--blue);
    padding: 56px;
}

.about-copy h2 {
    margin-bottom: 24px;
    font-size: clamp(30px, 3.5vw, 46px);
}

.about-copy > p:not(.eyebrow) {
    max-width: 600px;
    margin-top: 14px;
    color: #47434b;
    font-size: 16px;
}

.tools {
    margin-top: 30px;
}

.tools h3 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.tool-list,
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tool-list li {
    border: 1px solid #b7c9d6;
    border-radius: 999px;
    padding: 5px 12px;
    color: #4c4650;
    font-size: 12px;
}

.portrait-frame {
    width: 265px;
    padding: 10px 10px 16px;
    background: #fcfcf8;
    border-radius: 18px;
    transform: rotate(3deg);
    box-shadow: 0 12px 32px rgba(58, 71, 82, 0.08);
}

.portrait-frame img {
    width: 245px;
    border-radius: 10px;
}

.portrait-frame figcaption {
    display: flex;
    flex-direction: column;
    margin: 12px 4px 0;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.6;
}

.portrait-frame figcaption span:last-child {
    color: var(--muted);
    font-size: 10px;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 0 0;
}

.career-grid > section {
    min-width: 0;
    padding: 28px;
    border-radius: 28px;
}

.career-grid h3 {
    margin-top: 12px;
    font-size: 28px;
}

.timeline {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 20px;
    padding-block: 16px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.55;
}

.timeline-date {
    color: var(--muted);
    font-size: 12px;
    padding-top: 2px;
    white-space: nowrap;
}

.timeline-note {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.service-number {
    display: flex;
    justify-content: space-between;
    margin-bottom: 44px;
    color: var(--muted);
    font-size: 12px;
}

.service-number span {
    display: inline-flex;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
}

.service-card h3 {
    font-size: 27px;
    line-height: 1.2;
}

.service-card p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
    background: #eeeee8;
    border: 1px solid #e2e0d9;
    border-radius: 32px;
    padding: 56px;
}

.contact-copy > p:not(.eyebrow) {
    margin-top: 20px;
    color: var(--muted);
    font-size: 15px;
}

.contact-art {
    width: 250px;
    margin: 0 0 24px auto;
    border-radius: 18px;
}

.contact-link {
    display: block;
    padding: 14px 18px;
    margin-top: 10px;
    border-radius: 20px;
    overflow-wrap: anywhere;
}

.contact-link > span:first-child {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
}

.contact-link > span:last-child {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.4;
}

.contact-location {
    margin-top: 20px;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-block: 32px;
    color: var(--muted);
    font-size: 12px;
}

.footer-inner .wordmark {
    font-size: 28px;
}

/* Shared case layout */
.case-main {
    padding-top: 40px;
}

.case-back {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 13px;
}

.case-number {
    color: var(--muted);
    font-size: 12px;
}

.case-intro {
    padding-block: 56px 40px;
    max-width: 1000px;
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--project-accent, var(--ink));
}

.case-intro h1 {
    margin-top: 22px;
    font-size: clamp(38px, 5.6vw, 76px);
    letter-spacing: -0.055em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.case-lead {
    max-width: 740px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
}

.case-tags {
    margin-top: 24px;
}

.case-tags li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
    color: var(--muted);
    font-size: 12px;
}

.case-story {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-block: 16px 56px;
}

.case-story > div {
    min-width: 0;
    padding: 26px;
    border-radius: 24px;
}

.case-story h2,
.presentation-description h2 {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.case-story p,
.presentation-description p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
}

.presentation-description {
    max-width: 800px;
    padding: 28px;
    margin-block: 16px 40px;
    border-radius: 24px;
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 28px;
}

.gallery-heading h2 {
    font-size: 28px;
}

.gallery-heading p {
    max-width: 260px;
    color: var(--muted);
    font-size: 11px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: 32px 24px;
}

.gallery-item {
    grid-column: span 3;
    min-width: 0;
}

.gallery-item--full {
    grid-column: span 6;
}

.gallery-item--third {
    grid-column: span 2;
}

.gallery-item--two-thirds {
    grid-column: span 4;
}

.gallery-image-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 12px;
    border: 1px solid #e5e2de;
    border-radius: 20px;
    overflow: hidden;
    background: #ebeae5;
}

.gallery-image-link img {
    width: min(100%, var(--image-width));
    height: auto;
    border-radius: 10px;
}

.image-open {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--background);
    color: var(--ink);
    font-size: 18px;
    box-shadow: 0 2px 12px #30252b12;
}

.gallery-item figcaption,
.case-cover figcaption {
    padding: 10px 4px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.case-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    border-radius: 24px;
    margin-top: 64px;
    padding: 24px;
}

.next-project {
    text-align: right;
    color: var(--ink);
}

.next-project > span {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    color: var(--muted);
    font-size: 12px;
}

.next-project strong {
    display: block;
    margin-top: 8px;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 400;
}

.case-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-radius: var(--radius);
    background: var(--blue);
    margin-block: 56px 40px;
    padding: 32px 40px;
}

.case-contact p {
    color: var(--ink);
    font-size: 26px;
    letter-spacing: -0.025em;
}

/* One glass material across home, controls, and case pages. */
.header-inner,
.project-card,
.about-panel,
.career-grid > section,
.service-card,
.contact-panel,
.case-story > div,
.presentation-description,
.case-navigation,
.case-contact,
.portfolio-filter,
.button,
.nav-contact,
.menu-toggle,
.project-arrow,
.image-open,
.contact-link,
.portrait-frame,
.tool-list li,
.case-tags li,
.gallery-image-link {
    border: 1px solid var(--glass-edge);
    background: var(--glass-fill);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
}

.button-primary,
.filter-button[aria-pressed="true"] {
    background: var(--glass-accent);
    border-color: #ffffff66;
    color: #ffffff;
    box-shadow: 0 6px 18px #56182b1a, inset 0 1px 0 #ffffff59, inset 0 -1px 0 #39112033;
}

.project-image {
    border-color: #ffffff99;
    box-shadow: inset 0 1px 0 #ffffffb3, 0 1px 4px #34445c04;
}

.project-meta,
.project-heading,
.project-description {
    margin-inline: 4px;
}

.project-description {
    margin-bottom: 8px;
}

.portrait-frame,
.image-open {
    --glass-blur: 12px;
    background: linear-gradient(135deg, #ffffff80, #ffffff12), rgba(255, 255, 255, 0.76);
}

.tool-list li,
.case-tags li,
.project-arrow {
    --glass-blur: 10px;
    box-shadow: inset 0 1px 0 #ffffffcc, 0 2px 8px #34445c05;
}

.contact-art {
    padding: 8px;
    border: 1px solid var(--glass-edge);
    border-radius: 24px;
    background: var(--glass-fill);
    box-shadow: var(--glass-shadow);
}

.case-back .text-link {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-edge);
    background: var(--glass-fill);
    box-shadow: var(--glass-shadow);
}

.case-number {
    align-self: center;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root {
        --glass-base: rgba(255, 255, 255, 0.34);
    }
}

@media (max-width: 1023px) {
    .hero {
        column-gap: 32px;
        padding-top: 56px;
    }

    .hero h1 {
        font-size: clamp(45px, 6vw, 62px);
    }

    .about-panel,
    .contact-panel {
        padding: 36px;
        gap: 36px;
    }

    .about-panel {
        grid-template-columns: minmax(0, 1fr) 250px;
    }

    .portrait-frame {
        width: 240px;
    }

    .career-grid {
        gap: 24px;
    }

    .service-card {
        padding: 22px;
    }

    .service-card h3 {
        font-size: 21px;
    }

    .site-nav {
        gap: 24px;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 84px;
    }

    .site-header:not(.navigation-enhanced) {
        position: static;
    }

    .container {
        width: calc(100% - 40px);
    }

    .section {
        padding-block: 44px;
    }

    .header-inner {
        min-height: 72px;
        flex-wrap: wrap;
        gap: 0;
        width: calc(100% - 24px);
        padding: 16px;
        border-radius: 24px;
    }

    .wordmark {
        font-size: 31px;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 20px;
        padding-top: 18px;
        border-top: 1px solid var(--line);
        font-size: 13px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-contact {
        padding: 6px 12px;
    }

    .nav-contact span {
        display: inline-flex;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 40px;
    }

    .hero .eyebrow {
        gap: 8px;
        font-size: 10px;
    }

    .hero h1 {
        margin-top: 22px;
        font-size: clamp(46px, 12.8vw, 78px);
    }

    .title-star {
        font-size: 22px;
    }

    .hero-role {
        margin-top: 24px;
        font-size: 18px;
    }

    .hero-description {
        max-width: 430px;
        font-size: 15px;
    }

    .button-row {
        gap: 10px;
        margin-top: 24px;
    }

    .button {
        min-height: 48px;
        gap: 16px;
        padding: 11px 18px;
        font-size: 13px;
    }

    .button-row .button {
        gap: 10px;
        padding-inline: 14px;
        font-size: 12px;
    }

    .button-row .wave-arrow {
        width: 24px;
    }

    .hero-art {
        max-width: 460px;
        margin-top: 22px;
    }

    .hero-pebble--blue {
        width: 26px;
        height: 26px;
    }

    .hero-bottom {
        gap: 16px;
        margin-top: 16px;
        padding-block: 24px;
        font-size: 10px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .section-intro br {
        display: none;
    }

    .section-intro {
        max-width: 280px;
        font-size: 13px;
    }

    .work-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 24px;
    }

    .filter-button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .portfolio-filter {
        gap: 2px;
        border-radius: 24px;
    }

    .project-card {
        padding: 12px;
        border-radius: 28px;
    }

    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .project-image {
        border-radius: 20px;
        padding: 12px;
    }

    .preview-progress {
        bottom: 7px;
    }

    .project-heading h3 {
        font-size: 22px;
    }

    .project-meta {
        font-size: 10px;
        margin-top: 14px;
    }

    .project-description {
        font-size: 13px;
    }

    .about-panel,
    .contact-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding: 28px 24px;
        border-radius: 24px;
    }

    .about-copy h2 {
        font-size: 30px;
    }

    .about-copy > p:not(.eyebrow) {
        font-size: 14px;
    }

    .portrait-frame {
        width: min(245px, calc(100% - 8px));
        justify-self: center;
    }

    .career-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-top: 24px;
    }

    .career-grid > section {
        padding: 24px;
    }

    .timeline li {
        gap: 12px;
        grid-template-columns: 82px minmax(0, 1fr);
        font-size: 13px;
    }

    .timeline-note,
    .timeline-date {
        font-size: 11px;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .service-card {
        padding: 24px;
    }

    .service-number {
        margin-bottom: 24px;
    }

    .service-card h3 {
        font-size: 26px;
    }

    .service-card h3 br {
        display: none;
    }

    .contact-panel {
        gap: 24px;
    }

    .contact-copy h2 {
        font-size: 42px;
    }

    .contact-art {
        width: min(230px, 100%);
        margin-bottom: 20px;
    }

    .contact-link > span:last-child {
        font-size: 15px;
        gap: 12px;
    }

    .contact-link {
        padding: 12px;
    }

    .footer-inner {
        flex-wrap: wrap;
        gap: 20px;
        padding-block: 24px;
    }

    .footer-inner p {
        order: 3;
        width: 100%;
        font-size: 11px;
    }

    .case-main {
        padding-top: 28px;
    }

    .case-intro {
        padding-block: 40px 28px;
    }

    .case-intro h1 {
        font-size: clamp(35px, 8.5vw, 58px);
        margin-top: 18px;
    }

    .case-lead {
        font-size: 16px;
        margin-top: 22px;
    }

    .case-story {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding-block: 12px 40px;
    }

    .case-story > div {
        padding: 24px;
    }

    .case-story p,
    .presentation-description p {
        font-size: 14px;
        margin-top: 10px;
    }

    .gallery-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 22px;
    }

    .gallery-heading h2 {
        font-size: 26px;
    }

    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .gallery-item {
        grid-column: 1;
    }

    .gallery-image-link {
        min-height: 0;
        padding: 10px;
        border-radius: 16px;
    }

    .case-navigation {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        margin-top: 40px;
    }

    .next-project {
        text-align: left;
    }

    .next-project > span {
        justify-content: flex-start;
    }

    .next-project strong {
        font-size: 24px;
    }

    .case-contact {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        margin-block: 40px 32px;
    }

    .case-contact p {
        font-size: 24px;
    }

    :root {
        --glass-blur: 14px;
    }
}

@media (prefers-reduced-transparency: reduce) {
    :root {
        --glass-base: #fafaf7;
        --glass-blur: 0px;
    }

    .portrait-frame,
    .image-open {
        background: #fafaf7;
    }

    .portrait-frame,
    .image-open,
    .tool-list li,
    .case-tags li,
    .project-arrow {
        --glass-blur: 0px;
    }
}

@media (forced-colors: active) {
    .header-inner,
    .project-card,
    .about-panel,
    .career-grid > section,
    .service-card,
    .contact-panel,
    .case-story > div,
    .presentation-description,
    .case-navigation,
    .case-contact,
    .portfolio-filter {
        border-color: CanvasText;
        background: Canvas;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .filter-button[aria-pressed="true"] {
        border-color: Highlight;
        background: Highlight;
        color: HighlightText;
    }
}
