@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
    --ink: #111426;
    --ink-soft: #555d70;
    --night: #0b1020;
    --night-soft: #151c32;
    --paper: #f7f7f3;
    --white: #fff;
    --line: rgba(17, 20, 38, .13);
    --mint: #62e6c2;
    --lavender: #a9a5ff;
    --shell: min(1180px, calc(100vw - 48px));
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --shadow: 0 30px 80px rgba(11, 16, 32, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--night);
    background: var(--mint);
    border-radius: 8px;
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
    position: absolute;
    z-index: 20;
    inset: 0 0 auto;
    color: var(--white);
}
.site-header__inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.wordmark {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 10px;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.04em;
}
.wordmark__image {
    display: block;
    width: auto;
    height: 96px;
    filter: brightness(0) invert(1);
}
.wordmark__mark {
    display: grid;
    width: 34px;
    aspect-ratio: 1;
    place-items: center;
    color: var(--night);
    background: var(--mint);
    border-radius: 10px 10px 3px 10px;
    font-size: 16px;
}
.wordmark__footer-icon {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.site-nav > a:not(.button) { color: rgba(255, 255, 255, .74); transition: color .2s ease; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--white); }

.button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--small { min-height: 44px; padding-inline: 20px; }
.button--light { color: var(--night); background: var(--white); }
.button--accent { color: var(--night); background: var(--project-accent, var(--mint)); box-shadow: 0 14px 35px rgba(0, 0, 0, .17); }

.eyebrow {
    margin: 0 0 20px;
    color: #687083;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.eyebrow--bright { color: var(--project-accent, var(--mint)); }
.text-link { display: inline-flex; gap: 12px; align-items: center; font-weight: 700; }
.text-link--light { color: var(--white); }

/* Portfolio landing page */
.portfolio-hero {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--white);
    background: var(--night);
}
.portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, transparent, black 30%, transparent);
}
.portfolio-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .6fr);
    gap: clamp(50px, 10vw, 150px);
    align-items: end;
    padding-top: 105px;
}
.portfolio-hero h1, .case-hero h1 {
    max-width: 820px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(54px, 7.2vw, 104px);
    line-height: .99;
    letter-spacing: -.075em;
}
.portfolio-hero h1 em, .portfolio-cta h2 em { color: var(--lavender); font-family: Georgia, serif; font-weight: 400; }
.portfolio-hero__aside { padding-bottom: 7px; }
.portfolio-hero__aside p { margin: 0 0 34px; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.7; }
.portfolio-hero__orb { position: absolute; border-radius: 50%; filter: blur(3px); }
.portfolio-hero__orb--one { width: 320px; height: 320px; right: -80px; bottom: -120px; background: rgba(98,230,194,.22); }
.portfolio-hero__orb--two { width: 180px; height: 180px; left: 43%; top: 10%; background: rgba(169,165,255,.16); }

.portfolio-intro { padding: 130px 0 150px; }
.section-heading { display: grid; grid-template-columns: 1.2fr .7fr; gap: 100px; align-items: end; margin-bottom: 80px; }
.section-heading h2, .case-overview h2, .mobile-overview h2, .app-gallery h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.08;
    letter-spacing: -.06em;
}
.section-heading > p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.work-group + .work-group { margin-top: 140px; }
.work-group__heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.work-group__heading > div { display: flex; align-items: baseline; gap: 18px; }
.work-group__heading h3 { margin: 0; font: 700 32px/1 "Manrope", sans-serif; letter-spacing: -.04em; }
.work-group__heading p { max-width: 380px; margin: 0; color: var(--ink-soft); }
.work-group__number { color: #9ba0ac; font-size: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 30px; }
.project-card:nth-child(2n) { transform: translateY(70px); }
.project-card__visual {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--project-primary) 90%, white);
    border-radius: var(--radius-md);
}
.project-card__visual::before { content: ""; position: absolute; width: 65%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--project-accent) 50%, transparent); border-radius: 50%; transform: scale(.75); transition: transform .6s ease; }
.project-card__visual > img { width: 82%; max-height: 350px; object-fit: contain; position: relative; filter: drop-shadow(0 25px 25px rgba(0,0,0,.2)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.project-card__visual:hover > img { transform: scale(1.035) translateY(-5px); }
.project-card__visual:hover::before { transform: scale(1); }
.project-card__action { position: absolute; right: 20px; bottom: 20px; padding: 12px 16px; background: var(--white); border-radius: 999px; font-size: 12px; font-weight: 700; transform: translateY(10px); opacity: 0; transition: .25s ease; }
.project-card__visual:hover .project-card__action { transform: none; opacity: 1; }
.project-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--project-accent); background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--project-accent) 35%, transparent), transparent 50%); }
.project-card__placeholder span { font: 800 clamp(80px, 13vw, 180px)/1 "Manrope", sans-serif; opacity: .8; }
.project-card__content { padding: 25px 6px 0; }
.project-card__meta { display: flex; gap: 10px; color: #757c8c; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-card__meta span + span::before { content: "·"; margin-right: 10px; }
.project-card h4 { margin: 13px 0 8px; font: 700 29px/1.15 "Manrope", sans-serif; letter-spacing: -.04em; }
.project-card__content > p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.project-card--mobile .project-card__visual { background: linear-gradient(145deg, var(--project-primary), color-mix(in srgb, var(--project-primary) 70%, var(--project-accent))); }
.mini-phone { position: relative; z-index: 1; width: 210px; height: 365px; padding: 8px; overflow: hidden; background: #080a10; border: 1px solid rgba(255,255,255,.2); border-radius: 34px; box-shadow: 0 35px 45px rgba(0,0,0,.3); transition: transform .5s ease; }
.project-card__visual:hover .mini-phone { transform: rotate(-2deg) translateY(-8px); }
.mini-phone img, .mini-phone .project-card__placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.empty-portfolio { max-width: 760px; margin: 30px auto 0; padding: 80px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-portfolio__mark { display: grid; width: 70px; aspect-ratio: 1; place-items: center; margin: 0 auto 30px; color: var(--night); background: var(--mint); border-radius: 22px 22px 5px 22px; font: 800 30px "Manrope", sans-serif; }
.empty-portfolio h2 { margin: 0 0 15px; font: 700 clamp(32px, 4vw, 52px)/1.1 "Manrope", sans-serif; letter-spacing: -.05em; }
.empty-portfolio > p:last-child { color: var(--ink-soft); }
.portfolio-cta { color: var(--white); background: var(--night); }
.portfolio-cta__inner { min-height: 560px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.portfolio-cta h2 { margin: 0 0 40px; font: 700 clamp(48px, 7vw, 90px)/1.02 "Manrope", sans-serif; letter-spacing: -.07em; }

/* Shared case study */
.case-hero { position: relative; overflow: hidden; color: var(--white); background: var(--project-primary); }
.case-hero__copy { position: relative; z-index: 2; padding-top: 180px; }
.back-link { display: inline-flex; gap: 10px; margin-bottom: 80px; color: rgba(255,255,255,.66); font-size: 13px; font-weight: 700; }
.case-hero__logo { max-width: 180px; max-height: 65px; object-fit: contain; object-position: left center; margin-bottom: 32px; }
.case-hero h1 { max-width: 950px; }
.case-hero__tagline { max-width: 680px; margin: 28px 0 35px; color: rgba(255,255,255,.74); font-size: clamp(19px, 2.2vw, 26px); line-height: 1.5; }
.case-facts { background: var(--white); }
.case-facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-block: 42px; }
.case-facts__grid div { padding-left: 24px; border-left: 1px solid var(--line); }
.case-facts span { display: block; margin-bottom: 8px; color: #818796; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.case-facts strong { font-size: 14px; font-weight: 600; }
.case-overview { padding: 150px 0; }
.case-overview__grid, .mobile-overview__grid { display: grid; grid-template-columns: .8fr 1.1fr; gap: clamp(60px, 12vw, 170px); }
.case-overview__lead, .mobile-overview__grid > p { margin: 0; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.6; letter-spacing: -.02em; }
.case-metrics { color: var(--white); background: var(--project-primary); }
.case-metrics__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric { padding: 65px 45px; border-left: 1px solid rgba(255,255,255,.15); }
.metric:last-child { border-right: 1px solid rgba(255,255,255,.15); }
.metric strong { display: block; margin-bottom: 12px; color: var(--project-accent); font: 700 clamp(40px, 5vw, 70px)/1 "Manrope", sans-serif; letter-spacing: -.06em; }
.metric span { color: rgba(255,255,255,.67); font-size: 13px; }

/* Website case study */
.case-hero--website { min-height: 920px; background-image: radial-gradient(circle at 80% 25%, color-mix(in srgb, var(--project-accent) 18%, transparent), transparent 32%); }
.browser-stage { position: relative; z-index: 2; margin-top: 95px; }
.browser-frame { overflow: hidden; background: #e9ebef; border: 1px solid rgba(255,255,255,.2); border-radius: 16px 16px 0 0; box-shadow: 0 40px 80px rgba(0,0,0,.3); }
.browser-frame__bar { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 15px; background: #f3f4f6; }
.browser-frame__bar > span { width: 9px; aspect-ratio: 1; background: #c8cbd2; border-radius: 50%; }
.browser-frame__address { width: min(380px, 55%); margin: auto; padding: 7px 16px; overflow: hidden; color: #8a8e98; background: var(--white); border-radius: 6px; font-size: 10px; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.browser-frame__viewport { min-height: 510px; background: #dfe2e8; }
.browser-frame__viewport > img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; object-position: top center; }
.case-placeholder { min-height: inherit; display: grid; place-content: center; gap: 10px; text-align: center; color: var(--project-accent); background: radial-gradient(circle, color-mix(in srgb, var(--project-accent) 24%, transparent), transparent 55%), var(--project-primary); }
.case-placeholder span { font: 800 clamp(100px, 16vw, 220px)/.8 "Manrope", sans-serif; }
.case-placeholder small { color: rgba(255,255,255,.7); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.case-narrative { padding: 40px 0 150px; }
.narrative-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.narrative-card { position: relative; min-height: 530px; padding: clamp(45px, 6vw, 85px); background: var(--white); }
.narrative-card:first-child { border-radius: var(--radius-lg) 0 0 0; }
.narrative-card--dark { color: var(--white); background: var(--project-primary); border-radius: 0 var(--radius-lg) 0 0; }
.narrative-card--accent { grid-column: 1 / -1; min-height: 440px; padding-right: 40%; color: var(--ink); background: var(--project-accent); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.narrative-card__number { position: absolute; top: 35px; right: 40px; color: currentColor; opacity: .25; font: 700 12px "Manrope", sans-serif; }
.narrative-card h2 { margin: 0 0 32px; font: 700 clamp(32px, 4vw, 52px)/1.08 "Manrope", sans-serif; letter-spacing: -.05em; }
.narrative-card > p:last-child { margin: 0; color: inherit; opacity: .72; font-size: 17px; line-height: 1.8; }
.case-features { padding: 140px 0; background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 310px; padding: 42px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-card > span { display: block; margin-bottom: 70px; color: #8e94a2; font-size: 11px; }
.feature-card h3 { margin: 0 0 16px; font: 700 22px "Manrope", sans-serif; letter-spacing: -.035em; }
.feature-card p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.website-gallery { padding: 140px 0; background: #e9ebee; }
.website-gallery__item { margin: 0 0 100px; }
.website-gallery__item:last-child { margin-bottom: 0; }
.browser-frame--gallery { border-radius: 14px; box-shadow: var(--shadow); }
.browser-frame--gallery img { width: 100%; }
.website-gallery figcaption, .app-gallery figcaption { margin-top: 18px; color: #6e7481; font-size: 13px; text-align: center; }
.next-project { color: var(--white); background: var(--project-primary); }
.next-project__inner { min-height: 520px; display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; }
.next-project h2 { max-width: 800px; margin: 0; font: 700 clamp(40px, 5vw, 68px)/1.08 "Manrope", sans-serif; letter-spacing: -.06em; }

/* Mobile app case study */
.case-hero--mobile { min-height: 850px; }
.case-hero__glow { position: absolute; width: 650px; aspect-ratio: 1; right: -100px; top: 80px; background: var(--project-accent); border-radius: 50%; filter: blur(160px); opacity: .22; }
.mobile-hero__grid { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: center; min-height: 850px; }
.mobile-hero__grid .case-hero__copy { padding: 145px 0 80px; }
.mobile-hero__grid .back-link { margin-bottom: 65px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button { min-width: 160px; padding: 10px 18px; color: var(--white); background: rgba(0,0,0,.36); border: 1px solid rgba(255,255,255,.24); border-radius: 12px; transition: transform .2s ease, background .2s ease; }
.store-button:hover { transform: translateY(-2px); background: rgba(0,0,0,.55); }
.store-button small, .store-button strong { display: block; }
.store-button small { color: rgba(255,255,255,.68); font-size: 9px; }
.store-button strong { font: 600 17px "Manrope", sans-serif; }
.phone-stage { position: relative; display: grid; place-items: center; align-self: end; height: 700px; }
.phone-stage__orbit { position: absolute; width: 520px; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--project-accent) 45%, transparent); border-radius: 50%; }
.phone-stage__orbit::before, .phone-stage__orbit::after { content: ""; position: absolute; inset: 14%; border: inherit; border-radius: inherit; }
.phone-stage__orbit::after { inset: 29%; }
.phone-frame { position: relative; width: 245px; padding: 9px; background: #090b11; border: 1px solid rgba(255,255,255,.3); border-radius: 43px; box-shadow: 0 35px 70px rgba(0,0,0,.35); }
.phone-frame--hero { width: min(330px, 70%); transform: rotate(3deg); }
.phone-frame__speaker { position: absolute; z-index: 2; width: 31%; height: 23px; top: 14px; left: 50%; background: #090b11; border-radius: 20px; transform: translateX(-50%); }
.phone-frame__screen { aspect-ratio: 9 / 19.3; overflow: hidden; background: var(--project-primary); border-radius: 35px; }
.phone-frame__screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone-frame__screen .case-placeholder { min-height: 100%; }
.phone-frame__screen .case-placeholder span { font-size: 120px; }
.case-facts--mobile { position: relative; z-index: 3; }
.mobile-overview { padding: 150px 0; background: var(--white); }
.mobile-metrics { color: var(--white); background: var(--project-primary); }
.mobile-story { padding: 150px 0; }
.mobile-story__grid { display: grid; grid-template-columns: .8fr 1fr; gap: 120px; }
.mobile-story__sticky { position: sticky; top: 50px; align-self: start; }
.mobile-story__sticky h2 { margin: 0; font: 700 clamp(40px, 5vw, 65px)/1.08 "Manrope", sans-serif; letter-spacing: -.06em; }
.mobile-story__chapters article { position: relative; padding: 15px 0 65px 75px; border-left: 1px solid var(--line); }
.mobile-story__chapters article:last-child { padding-bottom: 15px; }
.mobile-story__chapters article > span { position: absolute; left: -20px; top: 0; display: grid; width: 40px; aspect-ratio: 1; place-items: center; color: var(--project-primary); background: var(--project-accent); border-radius: 50%; font-size: 10px; font-weight: 800; }
.mobile-story__chapters h3 { margin: 0 0 20px; font: 700 27px "Manrope", sans-serif; letter-spacing: -.04em; }
.mobile-story__chapters p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.app-features { padding: 140px 0; color: var(--white); background: var(--project-primary); }
.section-heading--light > p { color: rgba(255,255,255,.6); }
.app-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-feature-card { min-height: 320px; padding: 35px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); }
.app-feature-card__icon { display: grid; width: 48px; aspect-ratio: 1; place-items: center; margin-bottom: 65px; color: var(--project-primary); background: var(--project-accent); border-radius: 15px; font-size: 10px; font-weight: 800; }
.app-feature-card h3 { margin: 0 0 15px; font: 700 22px "Manrope", sans-serif; }
.app-feature-card p { margin: 0; color: rgba(255,255,255,.62); line-height: 1.65; }
.app-gallery { overflow: hidden; padding: 140px 0 160px; background: var(--white); }
.app-gallery__heading { margin-bottom: 80px; }
.app-gallery__track { display: flex; gap: 55px; align-items: flex-start; overflow-x: auto; padding: 10px max(10px, calc((100vw - 1180px) / 2)) 60px; margin-inline: calc((100vw - min(1180px, calc(100vw - 48px))) / -2); scrollbar-width: thin; }
.app-gallery figure { flex: 0 0 245px; margin: 0; }
.app-gallery figure:nth-child(2n) { transform: translateY(50px); }
.app-gallery .phone-frame { width: 100%; box-shadow: 0 25px 60px rgba(11,16,32,.2); }
.next-project--mobile { background-image: radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--project-accent) 17%, transparent), transparent 30%); }

.site-footer { padding: 90px 0 30px; color: var(--white); background: #070b16; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 80px; }
.wordmark--footer { margin-bottom: 22px; }
.site-footer__grid > div > p { max-width: 380px; color: rgba(255,255,255,.52); line-height: 1.7; }
.site-footer__cta a { display: inline-block; font: 700 clamp(27px, 4vw, 45px) "Manrope", sans-serif; letter-spacing: -.05em; border-bottom: 1px solid rgba(255,255,255,.25); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }

@media (max-width: 900px) {
    :root { --shell: min(100% - 32px, 720px); }
    .site-nav > a:not(.button) { display: none; }
    .portfolio-hero { min-height: 760px; }
    .portfolio-hero__grid, .section-heading, .case-overview__grid, .mobile-overview__grid, .mobile-story__grid { grid-template-columns: 1fr; gap: 45px; }
    .portfolio-hero__grid { align-items: center; }
    .portfolio-hero__aside { max-width: 500px; }
    .section-heading { margin-bottom: 60px; }
    .project-card__visual { min-height: 340px; }
    .case-facts__grid { grid-template-columns: repeat(2, 1fr); }
    .case-metrics__grid { grid-template-columns: repeat(3, 1fr); }
    .metric { padding: 45px 24px; }
    .case-hero--website { min-height: auto; }
    .browser-frame__viewport { min-height: 350px; }
    .narrative-card { min-height: 450px; padding: 50px; }
    .narrative-card--accent { padding-right: 20%; }
    .feature-grid, .app-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .mobile-hero__grid { grid-template-columns: 1fr 1fr; gap: 25px; }
    .mobile-story__sticky { position: static; }
    .next-project__inner { grid-template-columns: 1fr; gap: 35px; padding-block: 100px; }
}

@media (max-width: 640px) {
    .site-header__inner { min-height: 84px; }
    .wordmark__image { height: 68px; }
    .site-nav .button { min-height: 38px; padding-inline: 14px; font-size: 12px; }
    .portfolio-hero { min-height: 680px; }
    .portfolio-hero h1, .case-hero h1 { font-size: clamp(48px, 15vw, 66px); }
    .portfolio-intro, .case-overview, .mobile-overview, .mobile-story, .case-features, .app-features, .website-gallery, .app-gallery { padding-block: 95px; }
    .work-group__heading { align-items: start; flex-direction: column; }
    .project-grid { grid-template-columns: 1fr; gap: 55px; }
    .project-card:nth-child(2n) { transform: none; }
    .project-card__visual { min-height: 380px; }
    .empty-portfolio { padding: 55px 25px; }
    .case-hero__copy { padding-top: 130px; }
    .back-link { margin-bottom: 55px; }
    .browser-stage { width: calc(100% - 16px); margin-top: 70px; }
    .browser-frame__viewport { min-height: 250px; }
    .browser-frame__address { display: none; }
    .case-facts__grid { gap: 0; }
    .case-facts__grid div { padding: 20px 12px; }
    .case-overview__grid, .mobile-overview__grid { gap: 35px; }
    .case-metrics__grid { grid-template-columns: 1fr; }
    .metric { border: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
    .metric:last-child { border-right: 0; }
    .narrative-grid { grid-template-columns: 1fr; }
    .narrative-card, .narrative-card:first-child, .narrative-card--dark, .narrative-card--accent { grid-column: auto; min-height: 440px; padding: 50px 30px; border-radius: 0; }
    .narrative-card:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
    .narrative-card--accent { border-radius: 0 0 var(--radius-md) var(--radius-md); }
    .feature-grid, .app-feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 260px; }
    .mobile-hero__grid { display: block; min-height: auto; }
    .mobile-hero__grid .case-hero__copy { padding-top: 125px; }
    .phone-stage { height: 580px; overflow: hidden; }
    .phone-stage__orbit { width: 400px; }
    .phone-frame--hero { width: 270px; }
    .mobile-story__chapters article { padding-left: 50px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 50px; }
    .site-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
