:root {
    --black: #050405;
    --black-soft: #0a0809;
    --graphite: #121012;
    --graphite-light: #1c191b;
    --crimson: #9e001b;
    --crimson-deep: #5c0011;
    --red: #ed173b;
    --red-soft: #ff5b75;
    --white: #f5f2f0;
    --muted: #a8a1a4;
    --line: rgba(245, 242, 240, 0.14);
    --line-red: rgba(237, 23, 59, 0.34);
    --max: 1440px;
    --header-height: 64px;
    --display: "Anton", Impact, sans-serif;
    --body: "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--black);
    color: var(--white);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(237, 23, 59, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 23, 59, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
p,
blockquote,
dl,
dd {
    margin-top: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

section,
[id] {
    scroll-margin-top: calc(var(--header-height) + 22px);
}

:focus-visible {
    outline: 3px solid var(--red-soft);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    transform: translateY(-160%);
    background: var(--white);
    color: var(--black);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: rgba(5, 4, 5, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
    width: min(100%, var(--max));
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--red);
    color: var(--red);
    font-family: var(--display);
    font-size: 0.92rem;
}

.brand-name {
    color: var(--white);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-nav a {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 13px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.primary-nav a::after {
    position: absolute;
    right: 13px;
    bottom: 5px;
    left: 13px;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--red);
    content: "";
    transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--white);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    transform: scaleX(1);
}

.primary-nav .nav-resume {
    margin-left: 6px;
    border: 1px solid var(--line);
    color: var(--white);
}

.primary-nav .nav-resume:hover {
    border-color: var(--red);
    background: var(--red);
}

.primary-nav .nav-resume::after {
    display: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.hero,
.projects,
.profile,
.case-studies,
.contact {
    width: 100%;
}

.hero-frame,
.section-frame {
    position: relative;
    width: min(100%, var(--max));
    margin: 0 auto;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.hero-frame {
    height: min(860px, calc(100vh - var(--header-height)));
    min-height: 720px;
    overflow: hidden;
    background: var(--black-soft);
}

.hero-frame::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--red);
    content: "";
}

.hero-utility {
    position: relative;
    z-index: 8;
    height: 82px;
    padding: 18px 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    border-bottom: 1px solid rgba(237, 23, 59, 0.15);
}

.hero-utility p {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.35;
    text-transform: uppercase;
}

.hero-utility p strong,
.hero-utility p span {
    display: block;
}

.hero-utility p strong {
    color: var(--red);
}

.hero-monogram {
    width: 230px;
    height: 56px;
    margin-top: -5px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #020202;
    color: var(--white);
    font-family: var(--display);
    font-size: 1.1rem;
}

.hero-availability {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 700;
}

.hero-availability i,
.hero-availability i::before,
.hero-availability i::after {
    position: relative;
    display: block;
    width: 18px;
    height: 1px;
    background: var(--red);
    content: "";
}

.hero-availability i::before {
    position: absolute;
    transform: rotate(90deg);
}

.hero-availability i::after {
    position: absolute;
    transform: rotate(45deg);
    opacity: 0.35;
}

.hero-stage {
    position: relative;
    height: calc(100% - 138px);
    min-height: 582px;
    isolation: isolate;
    overflow: hidden;
}

.hero-stage::before {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    content: "";
}

.hero-word {
    position: absolute;
    top: 28px;
    right: 24px;
    left: 24px;
    z-index: -2;
    margin: 0;
    display: flex;
    justify-content: center;
    color: var(--crimson);
    font-family: var(--display);
    font-size: clamp(9.5rem, 18.3vw, 16.4rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 34px rgba(158, 0, 27, 0.22);
}

.hero-year {
    position: absolute;
    top: 46px;
    right: 34px;
    z-index: 1;
    margin: 0;
    color: var(--red);
    font-family: var(--display);
    font-size: 1.15rem;
    line-height: 1;
    writing-mode: vertical-rl;
}

.hero-portrait {
    position: absolute;
    z-index: 2;
    bottom: -3px;
    left: 50%;
    width: min(49vw, 660px);
    height: calc(100% - 18px);
    transform: translateX(-50%);
    pointer-events: none;
}


.hero-portrait picture {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: grayscale(1) contrast(1.14) brightness(0.9);
}

.hero-identity {
    position: absolute;
    bottom: 28px;
    left: 32px;
    z-index: 5;
    width: min(34%, 390px);
}

.hello-line {
    margin-bottom: 4px;
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 2.5vw, 2.8rem);
    font-style: italic;
    line-height: 1;
}

.hero-identity h2 {
    margin-bottom: 3px;
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(3.2rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 0.92;
    text-transform: uppercase;
}

.hero-identity h2 span {
    color: var(--white);
}

.identity-role {
    margin-bottom: 14px;
    color: var(--red);
    font-size: 0.77rem;
    font-weight: 800;
    text-transform: uppercase;
}

.identity-copy {
    max-width: 350px;
    margin-bottom: 0;
    color: #c5bec1;
    font-size: 0.82rem;
    line-height: 1.55;
}

.hero-focus {
    position: absolute;
    right: 32px;
    bottom: 42px;
    z-index: 5;
    width: min(28%, 330px);
}

.focus-intro {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    color: #d1cacc;
    font-size: 0.82rem;
    line-height: 1.55;
}

.focus-intro i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--red);
    border-radius: 50%;
    color: var(--red);
}

.hero-focus ul {
    display: grid;
    gap: 12px;
}

.hero-focus li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 600;
}

.hero-focus li span {
    color: var(--red);
    font-weight: 800;
}

.hero-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    height: 56px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    background: rgba(5, 4, 5, 0.88);
}

.hero-footer p,
.hero-footer a {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-footer p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.hero-footer p span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 5px rgba(237, 23, 59, 0.12);
}

.hero-footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.hero-footer a i,
.project-links a,
.case-actions a,
.profile-statement a,
.availability-link {
    transition: color 180ms ease, transform 180ms ease;
}

.hero-footer a:hover i {
    transform: translateY(3px);
}

.section-frame {
    padding: 78px 32px;
}

.projects .section-frame,
.case-studies .section-frame {
    background: var(--black-soft);
}

.section-heading {
    margin-bottom: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 60px;
    align-items: end;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section-heading h2,
.profile-details h2,
.work-process h2,
.contact-intro h2 {
    margin-bottom: 0;
    font-family: var(--display);
    font-weight: 400;
    line-height: 0.98;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: clamp(3.3rem, 5.8vw, 6.1rem);
}

.section-heading > p {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px 18px;
}

.project-item,
.project-item article {
    min-width: 0;
    height: 100%;
}

.project-item article {
    display: flex;
    flex-direction: column;
}

.project-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.45 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--graphite);
}

.project-image::after {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    content: "";
    transition: border-color 180ms ease;
    pointer-events: none;
}

a.project-image:hover::after {
    border-color: var(--red);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.project-item:first-child .project-image img {
    object-position: center 8%;
}

a.project-image:hover img {
    transform: scale(1.035);
    filter: saturate(1.06) contrast(1.03);
}

.project-status {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    background: rgba(5, 4, 5, 0.89);
    color: var(--white);
    font-size: 0.59rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-status.is-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(237, 23, 59, 0.18);
}

.project-caption {
    min-height: 108px;
    padding: 16px 0 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.project-caption h3 {
    margin-bottom: 3px;
    color: var(--white);
    font-size: 0.97rem;
    line-height: 1.25;
}

.project-caption p {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.project-caption small {
    display: block;
    color: #777176;
    font-size: 0.58rem;
    line-height: 1.45;
    text-transform: uppercase;
}

.project-number {
    color: var(--red);
    font-family: var(--display);
    font-size: 1.7rem;
    line-height: 1;
    white-space: nowrap;
}

.project-links,
.private-note {
    min-height: 38px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-links a,
.private-note {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.project-links a:hover {
    color: var(--red-soft);
}

.private-note {
    color: #7f787b;
}

@media (min-width: 1201px) {
    .project-item:nth-child(5) {
        grid-column: 2;
    }
}

.profile .section-frame {
    padding: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.8fr) minmax(310px, 0.75fr);
    border-top: 1px solid var(--line-red);
    border-bottom: 1px solid var(--line-red);
}

.profile-details,
.work-process,
.profile-statement {
    min-width: 0;
    padding: 54px 34px;
}

.profile-details,
.work-process {
    border-right: 1px solid var(--line-red);
    background: #090708;
}

.profile-details h2 {
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 4vw, 4.6rem);
}

.profile-details > p:not(.eyebrow) {
    max-width: 650px;
    color: var(--muted);
    font-size: 0.83rem;
}

.education {
    margin-top: 34px;
    padding: 18px 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.education span,
.education strong {
    display: block;
}

.education span,
.skills h3 {
    margin-bottom: 3px;
    color: var(--red);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.education strong {
    font-size: 0.92rem;
}

.education time {
    color: var(--red-soft);
    font-size: 0.7rem;
    font-weight: 700;
}

.skills {
    padding-top: 27px;
}

.skills ul {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skills li {
    min-height: 31px;
    padding: 6px 10px;
    border: 1px solid #4a4548;
    border-radius: 999px;
    color: #d3cdd0;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.work-process h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.work-process ol {
    position: relative;
    display: grid;
    gap: 22px;
}

.work-process ol::before {
    position: absolute;
    top: 23px;
    bottom: 23px;
    left: 21px;
    width: 1px;
    background: var(--crimson);
    content: "";
}

.work-process li {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: center;
}

.work-process li > span {
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--crimson);
    border-radius: 50%;
    background: var(--black-soft);
    color: var(--red);
    font-size: 0.74rem;
}

.work-process strong {
    color: var(--red-soft);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.work-process p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

.profile-statement {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--crimson-deep);
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
}

.profile-statement::after {
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
    content: "";
}

.quote-mark {
    height: 66px;
    color: var(--red);
    font-family: Georgia, serif;
    font-size: 8rem;
    font-weight: 700;
    line-height: 0.8;
}

.profile-statement blockquote {
    margin-bottom: 22px;
    max-width: 290px;
    font-size: clamp(1.25rem, 2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.35;
}

.signature {
    margin-bottom: 30px;
}

.signature strong,
.signature span {
    display: block;
}

.signature strong {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-style: italic;
}

.signature span,
.profile-statement > p {
    color: #c7b7bc;
    font-size: 0.7rem;
}

.profile-statement > p {
    max-width: 300px;
    margin-bottom: 21px;
}

.profile-statement a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-statement a i {
    color: var(--red-soft);
}

.profile-statement a:hover {
    color: var(--red-soft);
}

.case-studies .section-frame {
    padding-top: 92px;
    padding-bottom: 92px;
}

.case-heading {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.case-study {
    display: grid;
    grid-template-columns: 96px minmax(280px, 0.8fr) minmax(0, 1.45fr);
    border-bottom: 1px solid var(--line-red);
}

.case-study + .case-study {
    margin-top: 54px;
    border-top: 1px solid var(--line-red);
}

.case-index,
.case-intro,
.case-details {
    padding: 34px 26px;
}

.case-index,
.case-intro {
    border-right: 1px solid var(--line);
}

.case-index {
    background: var(--crimson-deep);
}

.case-index span,
.case-index strong {
    display: block;
}

.case-index span {
    color: #d6c8cc;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.case-index strong {
    margin-top: 20px;
    color: var(--red);
    font-family: var(--display);
    font-size: 2.7rem;
    font-weight: 400;
}

.case-intro > p {
    margin-bottom: 9px;
    color: var(--red);
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
}

.case-intro h3 {
    margin-bottom: 26px;
    font-family: var(--display);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 1.08;
    text-transform: uppercase;
}

.case-intro dl {
    margin: 0 0 26px;
    border-top: 1px solid var(--line);
}

.case-intro dl > div {
    padding: 8px 0;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 0.65rem;
}

.case-intro dt {
    color: var(--muted);
    text-transform: uppercase;
}

.case-intro dd {
    margin: 0;
    color: var(--white);
}

.case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.case-actions a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    color: var(--white);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.case-actions a:hover {
    color: var(--red-soft);
}

.case-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.case-details section {
    padding: 20px;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.case-details section:nth-child(2n) {
    border-right: 0;
}

.case-details section.result {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
    background: rgba(158, 0, 27, 0.14);
}

.case-details section > span {
    color: var(--red);
    font-family: var(--display);
    font-size: 0.95rem;
}

.case-details h4 {
    margin-bottom: 5px;
    color: var(--white);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.case-details p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.55;
}

.contact .section-frame {
    padding: 0;
}

.contact-grid {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(310px, 0.8fr) minmax(310px, 0.8fr);
    border-top: 1px solid var(--line-red);
}

.contact-intro,
.contact-links,
.portfolio-device {
    min-width: 0;
    padding: 56px 34px;
}

.contact-intro,
.contact-links {
    border-right: 1px solid var(--line-red);
}

.contact-intro h2 {
    margin-bottom: 22px;
    font-size: clamp(3.5rem, 5vw, 5.5rem);
}

.contact-intro h2 span {
    color: var(--red);
}

.contact-intro > p:not(.eyebrow) {
    max-width: 420px;
    color: var(--muted);
    font-size: 0.79rem;
}

.availability-link {
    margin-top: 18px;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    color: var(--red-soft);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.availability-link i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--red);
    border-radius: 50%;
}

.availability-link:hover i {
    transform: translateX(4px);
}

.contact-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-links > a {
    min-height: 78px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.contact-links > a:first-child {
    border-top: 1px solid var(--line);
}

.contact-links > a > i:first-child {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--crimson);
    border-radius: 50%;
    color: var(--red);
}

.contact-links span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    font-weight: 700;
}

.contact-links small {
    display: block;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-links > a > i:last-child {
    color: var(--muted);
    transition: color 180ms ease, transform 180ms ease;
}

.contact-links > a:hover > i:last-child {
    transform: translateX(4px);
    color: var(--red);
}

.portfolio-device {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #080607;
}

.portfolio-device::before {
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(237, 23, 59, 0.12);
    content: "";
}

.device-screen {
    position: relative;
    z-index: 2;
    width: min(100%, 360px);
    padding: 10px;
    transform: perspective(850px) rotateY(-9deg) rotateX(3deg);
    border: 6px solid #1c191b;
    border-bottom-width: 12px;
    border-radius: 6px;
    background: #050405;
    box-shadow: 22px 24px 0 rgba(94, 0, 17, 0.35);
}

.device-screen span {
    display: block;
    padding: 2px 2px 9px;
    color: var(--red);
    font-size: 0.51rem;
    font-weight: 800;
    text-transform: uppercase;
}

.device-screen img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.device-base {
    position: absolute;
    z-index: 1;
    bottom: 70px;
    width: min(78%, 380px);
    height: 18px;
    transform: skewX(34deg);
    background: #252124;
}

.site-footer {
    height: 70px;
    border-top: 1px solid var(--line);
    background: #030303;
}

.footer-inner {
    color: var(--muted);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 9px;
}

.footer-links a {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--muted);
}

.footer-links a:hover {
    border-color: var(--red);
    color: var(--red);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    transform: translateY(18px);
    border: 1px solid var(--red);
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--red);
}

.js body.is-ready [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 520ms ease var(--reveal-delay, 0ms), transform 520ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.js body.is-ready [data-reveal].is-visible {
    transform: translateY(0);
    opacity: 1;
}

.is-ready .hero-word {
    animation: word-enter 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-ready .hero-portrait {
    animation: portrait-enter 900ms 110ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-ready .hero-identity,
.is-ready .hero-focus {
    animation: copy-enter 720ms 250ms ease both;
}

@keyframes word-enter {
    from { opacity: 0; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes portrait-enter {
    from { opacity: 0; transform: translateX(-50%) translateY(42px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes copy-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-statement,
    .portfolio-device {
        grid-column: 1 / -1;
        min-height: 360px;
        border-top: 1px solid var(--line-red);
    }

    .work-process,
    .contact-links {
        border-right: 0;
    }

    .profile-statement {
        padding-right: 40%;
    }

    .case-study {
        grid-template-columns: 84px minmax(270px, 0.8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 62px;
    }

    .header-inner,
    .footer-inner,
    .hero-utility,
    .hero-footer {
        padding-right: 24px;
        padding-left: 24px;
    }

    .hero-frame {
        height: 850px;
        min-height: 850px;
    }

    .hero-monogram {
        width: 170px;
    }

    .hero-word {
        top: 55px;
        font-size: clamp(7.2rem, 20vw, 10.5rem);
    }

    .hero-portrait {
        width: min(64vw, 530px);
        height: 74%;
    }

    .hero-identity {
        left: 24px;
        width: 40%;
    }

    .hero-focus {
        right: 24px;
        width: 31%;
    }

    .hero-identity h2 {
        font-size: clamp(2.8rem, 7.5vw, 4.3rem);
    }

    .identity-copy,
    .focus-intro {
        font-size: 0.72rem;
    }

    .section-frame {
        padding: 64px 24px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 16px;
    }

    .profile-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .profile-details,
    .work-process,
    .profile-statement,
    .contact-intro,
    .contact-links,
    .portfolio-device {
        padding: 48px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--line-red);
    }

    .profile-statement {
        grid-column: auto;
        min-height: 390px;
        padding-right: 28%;
    }

    .portfolio-device {
        grid-column: auto;
        min-height: 390px;
    }

    .case-study {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .case-details {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
    }

    .case-intro {
        border-right: 0;
    }
}

@media (max-width: 820px) {
    .brand-name {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
        display: grid;
        gap: 0;
        border-bottom: 0 solid var(--line);
        background: rgba(5, 4, 5, 0.98);
        opacity: 0;
        visibility: hidden;
        transition: max-height 220ms ease, opacity 180ms ease, visibility 180ms ease, border-width 180ms ease;
    }

    .primary-nav.is-open {
        max-height: 360px;
        border-bottom-width: 1px;
        opacity: 1;
        visibility: visible;
    }

    .primary-nav a {
        min-height: 52px;
        padding: 0 24px;
        border-bottom: 1px solid var(--line);
    }

    .primary-nav a::after {
        display: none;
    }

    .primary-nav .nav-resume {
        margin: 8px 24px 16px;
        justify-content: center;
    }
}

@media (max-width: 640px) {

    .hero-frame {
        height: 930px;
        min-height: 930px;
    }

    .hero-utility {
        height: 78px;
        padding: 15px 18px;
        grid-template-columns: 1fr 1fr;
    }

    .hero-utility p {
        font-size: 0.56rem;
    }

    .hero-monogram {
        display: none;
    }

    .hero-availability {
        width: 100%;
        min-width: 0;
        justify-content: flex-end;
        gap: 8px;
    }

    .hero-availability i {
        width: 20px;
        flex: 0 0 20px;
    }

    .hero-availability i::before,
    .hero-availability i::after {
        left: 3px;
        width: 14px;
    }

    .hero-stage {
        height: calc(100% - 134px);
    }

    .hero-word {
        top: 38px;
        right: 8px;
        left: 8px;
        font-size: clamp(4.8rem, 24vw, 7rem);
    }

    .hero-year {
        top: 118px;
        right: 18px;
        font-size: 0.86rem;
    }

    .hero-portrait {
        top: 64px;
        bottom: auto;
        width: min(90vw, 430px);
        height: 430px;
    }

    .hero-identity {
        top: 456px;
        right: 18px;
        bottom: auto;
        left: 18px;
        width: auto;
    }

    .hello-line {
        font-size: 1.6rem;
    }

    .hero-identity h2 {
        font-size: 3.35rem;
    }

    .identity-copy {
        max-width: 100%;
        font-size: 0.72rem;
    }

    .hero-focus {
        top: 676px;
        right: 18px;
        bottom: auto;
        left: 18px;
        width: auto;
    }

    .focus-intro {
        margin-bottom: 13px;
        grid-template-columns: 26px 1fr;
    }

    .focus-intro i {
        width: 26px;
        height: 26px;
    }

    .hero-focus ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    .hero-focus li {
        font-size: 0.7rem;
    }

    .hero-footer {
        height: 56px;
        padding: 0 18px;
    }

    .hero-footer p {
        display: none;
    }

    .hero-footer a {
        width: 100%;
        justify-content: space-between;
    }

    .section-frame {
        padding: 54px 18px;
    }

    .section-heading h2 {
        font-size: 3.15rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .project-image {
        aspect-ratio: 1.55 / 1;
    }

    .project-caption {
        min-height: 100px;
    }

    .profile-details,
    .work-process,
    .profile-statement,
    .contact-intro,
    .contact-links,
    .portfolio-device {
        padding: 44px 18px;
    }

    .profile-details h2 {
        font-size: 2.8rem;
    }

    .education {
        align-items: start;
        flex-direction: column;
        gap: 7px;
    }

    .profile-statement {
        min-height: 420px;
        padding-right: 18px;
    }

    .profile-statement blockquote {
        max-width: 100%;
    }

    .case-studies .section-frame {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .case-study {
        display: block;
    }

    .case-index {
        padding: 16px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-right: 0;
    }

    .case-index span {
        writing-mode: horizontal-tb;
    }

    .case-index strong {
        margin-top: 0;
    }

    .case-intro,
    .case-details {
        padding: 26px 18px;
    }

    .case-intro h3 {
        font-size: 2.2rem;
    }

    .case-details {
        display: block;
    }

    .case-details section,
    .case-details section:nth-child(2n) {
        padding: 18px 0;
        border-right: 0;
    }

    .case-details section.result {
        margin-top: 10px;
        padding: 18px;
    }

    .contact-intro h2 {
        font-size: 3.55rem;
    }

    .contact-links > a {
        min-height: 82px;
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        gap: 11px;
    }

    .contact-links > a > i:first-child {
        width: 40px;
        height: 40px;
    }

    .portfolio-device {
        min-height: 330px;
    }

    .device-base {
        bottom: 54px;
    }

    .footer-inner {
        height: auto;
        min-height: 92px;
        padding: 17px 18px;
        flex-wrap: wrap;
        gap: 8px 18px;
    }

    .footer-inner > p:nth-child(2) {
        order: 3;
        width: 100%;
    }

    .site-footer {
        height: auto;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 380px) {
    .hero-identity h2 {
        font-size: 3rem;
    }



    .section-heading h2,
    .contact-intro h2 {
        font-size: 2.9rem;
    }

    .project-number {
        font-size: 1.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .js body.is-ready [data-reveal],
    .js body.is-ready [data-reveal].is-visible {
        transform: none;
        opacity: 1;
    }
}
/* Cinematic interaction upgrade */
:root {
    --paper: #f5f2f0;
    --paper-soft: #ece8e6;
    --ink: #090708;
    --ink-muted: #686164;
    --paper-line: rgba(9, 7, 8, 0.18);
    --read-progress: 0;
    --hero-word-shift: 0px;
    --hero-portrait-shift: 0px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    isolation: isolate;
}

.reading-progress {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 2;
    height: 2px;
    overflow: hidden;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(var(--read-progress));
    transform-origin: left;
    background: var(--red);
    will-change: transform;
}

.hero-word span {
    display: inline-block;
    transform: translateY(var(--hero-word-shift));
    transition: transform 120ms linear;
    will-change: transform;
}

.hero-word span:last-child {
    transform: translateY(calc(var(--hero-word-shift) * 0.72));
}

.hero-portrait img {
    transform: translateY(var(--hero-portrait-shift));
    transition: transform 120ms linear;
    will-change: transform;
}

.section-heading {
    position: relative;
}

.section-heading::after {
    position: absolute;
    right: 0;
    bottom: -18px;
    left: 0;
    height: 1px;
    transform: scaleX(1);
    transform-origin: left;
    background: var(--line-red);
    content: "";
}

.js body.is-ready .section-heading[data-reveal]::after {
    transform: scaleX(0);
    transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}

.js body.is-ready .section-heading[data-reveal].is-visible::after {
    transform: scaleX(1);
}

.project-item {
    --project-drift: 0px;
}

.project-image::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--red);
    content: "";
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.project-image img {
    transform: translateY(var(--project-drift)) scale(1.025);
    will-change: transform;
}

.project-item:hover .project-image::before,
.project-item:focus-within .project-image::before {
    transform: scaleX(1);
}

.project-item:hover .project-image img,
.project-item:focus-within .project-image img,
a.project-image:hover img {
    transform: translateY(calc(var(--project-drift) - 2px)) scale(1.06);
}

.project-number,
.project-links a i,
.case-actions a i,
.contact-links > a > i:last-child,
.availability-link i {
    transition: transform 220ms ease, color 220ms ease;
}

.project-item:hover .project-number,
.project-item:focus-within .project-number,
.project-links a:hover i,
.project-links a:focus-visible i,
.case-actions a:hover i,
.case-actions a:focus-visible i,
.contact-links > a:hover > i:last-child,
.contact-links > a:focus-visible > i:last-child,
.availability-link:hover i,
.availability-link:focus-visible i {
    transform: translateX(4px);
}

.work-process ol::after {
    position: absolute;
    top: 23px;
    bottom: 23px;
    left: 20px;
    width: 3px;
    transform: scaleY(var(--process-progress, 0));
    transform-origin: top;
    background: var(--red);
    content: "";
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .work-process li {
    transform: translateX(0);
    opacity: 0.48;
    transition: opacity 320ms ease, transform 320ms ease;
}

.js .work-process li.is-past {
    opacity: 0.76;
}

.js .work-process li.is-active {
    transform: translateX(5px);
    opacity: 1;
}

.js .work-process li.is-active > span {
    border-color: var(--red);
    background: var(--crimson);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(237, 23, 59, 0.12);
}

.case-studies {
    position: relative;
    isolation: isolate;
    border-top: 7px solid var(--crimson);
    border-bottom: 7px solid var(--crimson);
    background: var(--paper);
    color: var(--ink);
}

.case-studies::before,
.case-studies::after {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 2;
    height: 1px;
    background: var(--red);
    content: "";
    pointer-events: none;
}

.case-studies::before { top: 7px; }
.case-studies::after { bottom: 7px; }

.case-studies .section-frame {
    padding-top: 96px;
    padding-bottom: 104px;
    border-color: var(--paper-line);
    background: transparent;
}

.case-heading {
    margin-bottom: 0;
    padding-bottom: 42px;
    border-color: var(--paper-line);
}

.case-heading::after {
    bottom: 0;
    background: var(--crimson);
}

.case-heading h2 {
    color: var(--ink);
}

.case-heading > p {
    color: var(--ink-muted);
}

.case-list {
    display: grid;
    gap: 96px;
}

.case-study {
    --case-progress: 0.2;
    --case-pan-y: 0%;
    --case-pan-x: 0%;
    --case-scale: 1.01;
    display: block;
    border: 0;
    color: var(--ink);
}

.case-study + .case-study {
    margin-top: 0;
    padding-top: 96px;
    border-top: 1px solid var(--crimson);
}

.case-intro {
    padding: 32px 0 38px;
    display: grid;
    grid-template-columns: 86px minmax(280px, 1.35fr) minmax(230px, 0.7fr) auto;
    gap: 26px;
    align-items: end;
    border-right: 0;
    border-bottom: 1px solid var(--paper-line);
}

.case-index {
    align-self: stretch;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 0;
    background: var(--crimson);
    color: var(--paper);
}

.case-index span {
    color: #f1d8dd;
    font-size: 0.62rem;
    writing-mode: horizontal-tb;
}

.case-index strong {
    margin: 18px 0 0;
    color: var(--white);
    font-size: 3rem;
}

.case-title > p {
    margin-bottom: 9px;
    color: var(--crimson);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.case-title h3 {
    max-width: 780px;
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(2.4rem, 4.15vw, 4.7rem);
    font-weight: 400;
    line-height: 0.98;
    text-transform: uppercase;
}

.case-meta {
    margin: 0;
    border-top: 1px solid var(--paper-line);
}

.case-meta > div {
    padding: 8px 0;
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    border-bottom: 1px solid var(--paper-line);
    font-size: 0.64rem;
}

.case-meta dt {
    color: var(--ink-muted);
    text-transform: uppercase;
}

.case-meta dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.case-actions {
    align-content: end;
    gap: 8px;
}

.case-actions a {
    min-width: 48px;
    min-height: 48px;
    padding: 0 14px;
    justify-content: center;
    border: 1px solid var(--ink);
    color: var(--ink);
}

.case-actions a:hover,
.case-actions a:focus-visible {
    border-color: var(--crimson);
    background: var(--crimson);
    color: var(--white);
}

.case-story {
    padding-top: 44px;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(36px, 5vw, 76px);
    align-items: start;
}

.case-study.is-reversed .case-visual {
    order: 2;
}

.case-study.is-reversed .case-details {
    order: 1;
}

.case-visual {
    position: sticky;
    top: calc(var(--header-height) + 28px);
    min-width: 0;
    margin: 0;
}

.case-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--white);
}

.case-image-link::after {
    position: absolute;
    inset: 0;
    border: 0 solid var(--red);
    content: "";
    transition: border-width 220ms ease;
    pointer-events: none;
}

.case-image-link:hover::after,
.case-image-link:focus-visible::after {
    border-width: 4px;
}

.case-browser {
    display: block;
    padding: 0 12px 12px;
}

.case-browser-bar {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9e979a;
}

.case-browser-bar i {
    width: 7px;
    height: 7px;
    border: 1px solid #686164;
    border-radius: 50%;
}

.case-browser-bar b {
    min-width: 0;
    margin-left: 8px;
    overflow: hidden;
    font-size: 0.58rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-image-window {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    background: #111;
}

.case-image-window img {
    width: 100%;
    will-change: transform;
}

.case-study-marketos .case-image-window img {
    height: auto;
    transform: translateY(var(--case-pan-y));
    transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-study-vasato .case-image-window img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translateX(var(--case-pan-x)) scale(var(--case-scale));
    transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-expand {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(5, 4, 5, 0.9);
    color: var(--white);
    transition: transform 220ms ease, background-color 220ms ease;
}

.case-image-link:hover .case-expand,
.case-image-link:focus-visible .case-expand {
    transform: translateY(-3px);
    background: var(--red);
}

.case-visual figcaption {
    padding: 17px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    color: var(--ink-muted);
    font-size: 0.67rem;
    line-height: 1.55;
}

.case-visual figcaption span > b {
    display: block;
    margin-bottom: 3px;
    color: var(--crimson);
    font-size: 0.58rem;
    text-transform: uppercase;
}

.case-visual-counter {
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.case-visual-counter b {
    color: var(--crimson);
    font-weight: 400;
}

.case-details {
    position: relative;
    padding: 0 0 0 26px;
    display: block;
    border: 0;
}

.case-details::before,
.case-details::after {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 2px;
    content: "";
}

.case-details::before {
    background: var(--paper-line);
}

.case-details::after {
    transform: scaleY(var(--case-progress));
    transform-origin: top;
    background: var(--crimson);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-details .case-step,
.case-details .case-step:nth-child(2n) {
    position: relative;
    min-height: 142px;
    padding: 27px 22px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 15px;
    align-content: center;
    border: 0;
    border-bottom: 1px solid var(--paper-line);
    background: transparent;
    transition: background-color 300ms ease, transform 300ms ease, opacity 300ms ease;
}

.case-details .case-step::before {
    position: absolute;
    top: 50%;
    left: -31px;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: #a69fa2;
    box-shadow: 0 0 0 1px var(--paper-line);
    content: "";
    transition: transform 260ms ease, background-color 260ms ease, box-shadow 260ms ease;
}

.js .case-details .case-step {
    opacity: 0.54;
}

.js .case-details .case-step.is-active {
    transform: translateX(5px);
    background: rgba(158, 0, 27, 0.055);
    opacity: 1;
}

.case-details .case-step.is-active::before {
    transform: translateY(-50%) scale(1.35);
    background: var(--red);
    box-shadow: 0 0 0 5px rgba(237, 23, 59, 0.12);
}

.case-details .case-step.result {
    margin: 0;
    background: rgba(158, 0, 27, 0.07);
}

.case-details .case-step > span {
    color: var(--crimson);
    font-size: 1.05rem;
}

.case-details .case-step h4 {
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 0.76rem;
}

.case-details .case-step p {
    color: var(--ink-muted);
    font-size: 0.74rem;
    line-height: 1.62;
}

.image-dialog {
    width: min(94vw, 1180px);
    max-width: none;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    border: 1px solid #3d383b;
    background: var(--black-soft);
    color: var(--white);
}

.image-dialog::backdrop {
    background: rgba(5, 4, 5, 0.88);
    backdrop-filter: blur(8px);
}

.dialog-shell {
    max-height: 92vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.dialog-shell > header {
    min-height: 72px;
    padding: 12px 16px 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.dialog-shell > header span {
    display: block;
    color: var(--red);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dialog-shell > header h2 {
    margin: 2px 0 0;
    font-size: 0.92rem;
}

.dialog-shell > header button {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.dialog-shell > header button:hover,
.dialog-shell > header button:focus-visible {
    border-color: var(--red);
    background: var(--red);
}

.dialog-media {
    min-height: 0;
    overflow: auto;
    background: #111;
}

.dialog-media img {
    width: 100%;
    height: auto;
}

.contact-links.is-visible > a {
    transition: color 220ms ease, background-color 220ms ease, opacity 440ms ease, transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js body.is-ready .contact-links[data-reveal]:not(.is-visible) > a {
    transform: translateY(12px);
    opacity: 0;
}

.contact-links.is-visible > a:nth-child(2) { transition-delay: 70ms; }
.contact-links.is-visible > a:nth-child(3) { transition-delay: 140ms; }

@media (max-width: 1200px) {
    .case-intro {
        grid-template-columns: 78px minmax(260px, 1.2fr) minmax(210px, 0.8fr);
    }

    .case-actions {
        grid-column: 2 / -1;
    }

    .case-story {
        grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
        gap: 34px;
    }
}

@media (max-width: 900px) {
    .case-studies .section-frame {
        padding-top: 76px;
        padding-bottom: 82px;
    }

    .case-list {
        gap: 74px;
    }

    .case-study + .case-study {
        padding-top: 74px;
    }

    .case-intro {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 22px;
    }

    .case-meta,
    .case-actions {
        grid-column: 2;
    }

    .case-story {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .case-study.is-reversed .case-visual,
    .case-study.is-reversed .case-details {
        order: initial;
    }

    .case-visual {
        position: relative;
        top: auto;
    }

    .case-image-window {
        aspect-ratio: 16 / 10;
    }

    .case-details {
        padding-left: 28px;
    }

    .case-details .case-step,
    .case-details .case-step:nth-child(2n) {
        min-height: 126px;
    }
}

@media (max-width: 640px) {
    .hero-word span,
    .hero-word span:last-child,
    .hero-portrait img {
        transform: none;
    }

    .case-studies {
        border-top-width: 5px;
        border-bottom-width: 5px;
    }

    .case-studies::before { top: 5px; }
    .case-studies::after { bottom: 5px; }

    .case-studies .section-frame {
        padding-top: 64px;
        padding-bottom: 68px;
    }

    .case-heading {
        padding-bottom: 30px;
    }

    .case-list {
        gap: 58px;
    }

    .case-study + .case-study {
        padding-top: 58px;
    }

    .case-intro {
        padding: 26px 0 30px;
        display: block;
    }

    .case-index {
        min-height: 64px;
        margin-bottom: 24px;
        padding: 12px 15px;
        flex-direction: row;
        align-items: center;
    }

    .case-index strong {
        margin: 0;
        font-size: 2.4rem;
    }

    .case-title h3 {
        font-size: 2.45rem;
    }

    .case-meta {
        margin-top: 24px;
    }

    .case-actions {
        margin-top: 20px;
    }

    .case-actions a {
        min-height: 48px;
    }

    .case-story {
        padding-top: 30px;
    }

    .case-browser {
        padding: 0 8px 8px;
    }

    .case-browser-bar {
        height: 32px;
    }

    .case-image-window {
        aspect-ratio: 4 / 3;
    }

    .case-expand {
        right: 13px;
        bottom: 13px;
        width: 44px;
        height: 44px;
    }

    .case-visual figcaption {
        gap: 15px;
    }

    .case-visual-counter {
        font-size: 1.45rem;
    }

    .case-details {
        padding: 0 0 0 23px;
    }

    .case-details .case-step,
    .case-details .case-step:nth-child(2n) {
        min-height: 0;
        padding: 23px 10px 23px 15px;
        grid-template-columns: 30px 1fr;
        gap: 10px;
    }

    .case-details .case-step::before {
        left: -28px;
    }

    .js .case-details .case-step.is-active {
        transform: translateX(2px);
    }

    .image-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .dialog-shell {
        max-height: calc(100vh - 20px);
    }

    .dialog-shell > header {
        min-height: 64px;
        padding: 8px 9px 8px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reading-progress {
        display: none;
    }

    .hero-word span,
    .hero-word span:last-child,
    .hero-portrait img,
    .project-image img,
    .project-item:hover .project-image img,
    .project-item:focus-within .project-image img,
    .case-study-marketos .case-image-window img,
    .case-study-vasato .case-image-window img,
    .js .work-process li,
    .js .work-process li.is-active,
    .js .case-details .case-step,
    .js .case-details .case-step.is-active {
        transform: none !important;
    }

    .work-process ol::after,
    .case-details::after {
        display: none;
    }

    .js .work-process li,
    .js .case-details .case-step {
        opacity: 1;
    }
}

/* Full-color atmospheric hero */
.hero-frame,
.hero-stage {
    background: #080808;
}

.hero-stage::before {
    z-index: -2;
    background-color: #080808;
    background-image:
        linear-gradient(rgba(245, 242, 240, 0.023) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 242, 240, 0.023) 1px, transparent 1px),
        radial-gradient(ellipse at 55% 30%, rgba(197, 0, 39, 0.28) 0, rgba(184, 0, 31, 0.13) 24%, rgba(184, 0, 31, 0.04) 43%, rgba(184, 0, 31, 0) 61%),
        radial-gradient(ellipse at 56% 54%, rgba(184, 0, 31, 0.08) 0, rgba(30, 4, 8, 0.08) 34%, rgba(8, 8, 8, 0) 60%),
        linear-gradient(110deg, #080808 0%, #090506 28%, #150407 48%, #0c0506 68%, #080808 100%);
    background-size: 54px 54px, 54px 54px, auto, auto, auto;
}

.hero-stage::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 4, 5, 0.82) 0%, rgba(5, 4, 5, 0.2) 30%, transparent 49%, rgba(5, 4, 5, 0.13) 66%, rgba(5, 4, 5, 0.76) 100%),
        radial-gradient(ellipse at 54% 40%, transparent 38%, rgba(0, 0, 0, 0.25) 68%, rgba(0, 0, 0, 0.72) 100%),
        linear-gradient(0deg, rgba(5, 4, 5, 0.68) 0%, rgba(5, 4, 5, 0.34) 16%, transparent 35%);
    content: "";
    pointer-events: none;
}

.hero-word {
    z-index: 0;
    color: #b8001f;
    text-shadow: 0 0 30px rgba(197, 0, 39, 0.18);
}

.hero-year {
    z-index: 3;
}

.hero-portrait {
    bottom: -82px;
    left: 54%;
    width: min(40vw, 560px);
    height: calc(100% + 82px);
}

.hero-portrait picture {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
}

.hero-portrait img {
    object-fit: contain;
    object-position: center bottom;
    filter:
        saturate(1.06)
        contrast(1.07)
        brightness(0.99)
        drop-shadow(0 26px 42px rgba(0, 0, 0, 0.64))
        drop-shadow(0 0 16px rgba(245, 214, 202, 0.06));
}

@media (max-width: 1200px) {
    .hero-portrait {
        bottom: -70px;
        left: 53%;
        width: min(44vw, 540px);
        height: calc(100% + 70px);
    }
}

@media (max-width: 900px) {
    .hero-stage::before {
        background-image:
            linear-gradient(rgba(245, 242, 240, 0.022) 1px, transparent 1px),
            linear-gradient(90deg, rgba(245, 242, 240, 0.022) 1px, transparent 1px),
            radial-gradient(ellipse at 50% 31%, rgba(197, 0, 39, 0.25) 0, rgba(184, 0, 31, 0.11) 27%, rgba(184, 0, 31, 0.03) 45%, rgba(184, 0, 31, 0) 61%),
            radial-gradient(ellipse at 50% 56%, rgba(184, 0, 31, 0.06) 0, rgba(8, 8, 8, 0) 58%),
            linear-gradient(108deg, #080808 0%, #100407 48%, #080808 100%);
    }

    .hero-stage::after {
        background:
            linear-gradient(90deg, rgba(5, 4, 5, 0.78) 0%, transparent 38%, transparent 62%, rgba(5, 4, 5, 0.68) 100%),
            radial-gradient(ellipse at 50% 40%, transparent 34%, rgba(0, 0, 0, 0.6) 100%),
            linear-gradient(0deg, rgba(5, 4, 5, 0.58) 0%, transparent 31%);
    }

    .hero-portrait {
        bottom: -58px;
        left: 50%;
        width: min(56vw, 500px);
        height: calc(78% + 58px);
    }
}

@media (max-width: 640px) {
    .hero-frame {
        height: 960px;
        min-height: 960px;
    }

    .hero-stage::before {
        background-size: 42px 42px, 42px 42px, auto, auto, auto;
        background-image:
            linear-gradient(rgba(245, 242, 240, 0.021) 1px, transparent 1px),
            linear-gradient(90deg, rgba(245, 242, 240, 0.021) 1px, transparent 1px),
            radial-gradient(ellipse at 50% 24%, rgba(197, 0, 39, 0.24) 0, rgba(184, 0, 31, 0.1) 29%, rgba(184, 0, 31, 0.03) 47%, rgba(184, 0, 31, 0) 63%),
            radial-gradient(ellipse at 50% 48%, rgba(184, 0, 31, 0.06) 0, rgba(8, 8, 8, 0) 60%),
            linear-gradient(180deg, #080808 0%, #100407 36%, #080808 74%);
    }

    .hero-stage::after {
        background:
            radial-gradient(ellipse at 50% 29%, transparent 35%, rgba(0, 0, 0, 0.36) 64%, rgba(0, 0, 0, 0.72) 100%),
            linear-gradient(180deg, transparent 0%, transparent 42%, rgba(5, 4, 5, 0.5) 58%, rgba(5, 4, 5, 0.88) 100%);
    }

    .hero-portrait {
        top: 58px;
        bottom: auto;
        left: 50%;
        width: min(84vw, 330px);
        height: 462px;
    }

    .hero-portrait picture {
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 89%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 0%, #000 89%, transparent 100%);
    }

    .hero-portrait img {
        object-position: center top;
    }

    .hero-identity {
        top: 500px;
    }

    .hero-focus {
        top: 720px;
    }
}

@media (max-width: 380px) {
    .hero-frame {
        height: 930px;
        min-height: 930px;
    }

    .hero-portrait {
        top: 60px;
        width: min(84vw, 304px);
        height: 430px;
    }

    .hero-identity {
        top: 470px;
    }

    .hero-focus {
        top: 682px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-portrait,
    .hero-portrait img,
    .hero-word,
    .hero-word span {
        animation: none !important;
        transition: none !important;
    }
}
