:root {
    --bg: #070809;
    --panel: #101214;
    --panel-soft: #15181a;
    --ink: #f1f1ea;
    --muted: #8f9697;
    --line: rgba(241, 241, 234, 0.14);
    --lime: #c7ff36;
    --red: #ff6048;
    --cyan: #72dcff;
    --shell: min(1640px, calc(100vw - 64px));
    --mono: "IBM Plex Mono", monospace;
    --sans: "Space Grotesk", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--lime) var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    overflow-x: hidden;
}

::selection {
    background: var(--lime);
    color: #090a0b;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 1px solid var(--lime);
    outline-offset: 5px;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img,
video {
    max-width: 100%;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.scroll-meter {
    position: fixed;
    z-index: 1200;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--lime);
    transform: scaleX(var(--scroll, 0));
    transform-origin: left;
}

.site-header {
    position: fixed;
    z-index: 900;
    top: 0;
    left: 0;
    width: 100%;
    transition: background 0.3s ease, transform 0.4s ease;
}

.site-header.is-scrolled {
    background: rgba(7, 8, 9, 0.88);
    backdrop-filter: blur(16px);
}

.site-nav {
    min-height: 82px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 20px;
}

.brand {
    grid-column: 1 / span 3;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
}

.brand span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
}

.brand b {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-status {
    grid-column: 5 / span 3;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font: 0.66rem var(--mono);
    text-transform: uppercase;
}

.nav-status i {
    width: 7px;
    height: 7px;
    background: var(--lime);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(199, 255, 54, 0.4);
    animation: statusPulse 2.4s ease-out infinite;
}

.nav-links {
    grid-column: 8 / -1;
    display: flex;
    justify-content: flex-end;
    gap: clamp(18px, 2.2vw, 38px);
}

.nav-links a {
    position: relative;
    color: #b8bcbc;
    font: 0.68rem var(--mono);
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--lime);
}

.menu-toggle {
    display: none;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--ink);
}

.menu-toggle span {
    width: 24px;
    height: 1px;
    display: block;
    margin: 6px 0;
    background: currentColor;
}

.hero {
    min-height: 100svh;
    padding: 120px 0 56px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 20px;
}

.hero-copy {
    grid-column: 1 / span 7;
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-code {
    margin: 0;
    color: var(--muted);
    font: 0.76rem var(--mono);
    text-transform: uppercase;
}

.eyebrow span,
.section-code::before {
    color: var(--lime);
}

.eyebrow span {
    margin-right: 16px;
}

.hero h1 {
    margin: clamp(28px, 5vh, 54px) 0 36px;
    font-size: clamp(4.7rem, 9.2vw, 10.8rem);
    line-height: 0.76;
    letter-spacing: 0;
    text-transform: uppercase;
    will-change: opacity;
}

.hero-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    will-change: transform;
}

.hero-line b {
    display: block;
    font-weight: 600;
    transform: translateY(110%);
    animation: heroLineIn 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(2) b {
    color: var(--lime);
    animation-delay: 0.1s;
}

.hero-line:nth-child(3) b {
    animation-delay: 0.2s;
}

.hero-line-shift {
    --motion-indent: clamp(26px, 4vw, 76px);
    padding-left: var(--motion-indent);
}

.motion-word {
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.motion-word b {
    position: relative;
    z-index: 2;
    display: flex;
    width: max-content;
}

.motion-letter {
    display: inline-block;
    will-change: transform, color, filter;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), color 0.22s ease, filter 0.22s ease;
}

.motion-word::before,
.motion-word::after {
    content: attr(data-text);
    position: absolute;
    z-index: 1;
    top: 0;
    left: var(--motion-indent);
    width: max-content;
    opacity: 0;
    pointer-events: none;
    font-weight: 600;
}

.motion-word::before {
    color: var(--cyan);
    clip-path: inset(8% 0 58% 0);
}

.motion-word::after {
    color: var(--red);
    clip-path: inset(55% 0 7% 0);
}

.motion-word:hover::before,
.motion-word.is-kinetic::before {
    opacity: 0.78;
    animation: motionGhostTop 0.72s steps(2, end) infinite;
}

.motion-word:hover::after,
.motion-word.is-kinetic::after {
    opacity: 0.72;
    animation: motionGhostBottom 0.58s steps(2, end) infinite reverse;
}

.hero-foot {
    width: min(610px, 92%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: end;
}

.hero-foot p {
    max-width: 430px;
    margin: 0;
    color: #b2b7b6;
    font-size: clamp(0.9rem, 1.15vw, 1.1rem);
    line-height: 1.45;
}

.hero-foot span {
    color: var(--muted);
    font: 0.62rem/1.6 var(--mono);
    text-align: right;
}

.intro-item {
    opacity: 0;
    transform: translateY(20px);
    animation: introItemIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.hero-foot.intro-item {
    animation-delay: 0.56s;
}

.hero-media {
    grid-column: 8 / -1;
    height: min(70vh, 700px);
    min-height: 520px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    perspective: 1200px;
}

.hero-tile {
    grid-column: span 3;
    grid-row: 5 / span 2;
    position: relative;
    overflow: hidden;
    background: var(--panel);
    clip-path: inset(0 0 100% 0);
    animation: tileReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
    transform: translate3d(var(--px, 0), var(--py, 0), 0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tile:nth-child(3) {
    animation-delay: 0.58s;
}

.hero-tile-main {
    grid-column: 1 / -1;
    grid-row: 1 / span 4;
    animation-delay: 0.3s;
}

.hero-tile video,
.project-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.86) contrast(1.05) brightness(0.8);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.hero-tile:hover video,
.hero-tile:focus-visible video {
    transform: scale(1.04);
    filter: saturate(1) contrast(1.04) brightness(0.92);
}

.hero-tile span {
    position: absolute;
    left: 12px;
    bottom: 10px;
    display: flex;
    gap: 10px;
    color: white;
    font: 0.61rem var(--mono);
    text-transform: uppercase;
    text-shadow: 0 3px 10px #000;
}

.hero-tile span b {
    color: var(--lime);
}

.hero-coordinate {
    position: absolute;
    z-index: 3;
    right: -4px;
    top: -20px;
    color: var(--muted);
    font: 0.58rem var(--mono);
    writing-mode: vertical-rl;
}

.work-section,
.about-section,
.contact-section {
    padding-block: clamp(110px, 14vw, 210px);
}

.section-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: end;
    margin-bottom: clamp(64px, 9vw, 130px);
}

.section-head .section-code {
    grid-column: 1 / span 2;
    align-self: start;
}

.section-head h2 {
    grid-column: 3 / span 7;
    margin: 0;
    font-size: clamp(3.2rem, 6.8vw, 8rem);
    line-height: 0.9;
    font-weight: 500;
    letter-spacing: 0;
}

.section-note {
    grid-column: 10 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(74px, 8vw, 120px) 20px;
    align-items: start;
}

.project-card {
    grid-column: span 7;
    min-width: 0;
    --reveal-x: -36px;
}

.project-card:nth-child(1),
.project-card:nth-child(5) {
    grid-column: 1 / span 7;
}

.project-card:nth-child(2),
.project-card:nth-child(6) {
    grid-column: 8 / -1;
    margin-top: clamp(58px, 6vw, 92px);
    --reveal-x: 36px;
}

.project-card:nth-child(3) {
    grid-column: 1 / span 5;
}

.project-card:nth-child(4) {
    grid-column: 6 / -1;
    margin-top: clamp(44px, 5vw, 76px);
    --reveal-x: 36px;
}

.project-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--panel);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease-out;
    transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.project-card.is-visible .project-media {
    clip-path: inset(0);
}

.project-media::before,
.project-media::after {
    content: "";
    position: absolute;
    z-index: 3;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.project-media::before {
    top: 10px;
    left: 10px;
    border-top: 1px solid var(--card-accent, var(--lime));
    border-left: 1px solid var(--card-accent, var(--lime));
}

.project-media::after {
    right: 10px;
    bottom: 10px;
    border-right: 1px solid var(--card-accent, var(--lime));
    border-bottom: 1px solid var(--card-accent, var(--lime));
}

.project-card[data-accent="cyan"] {
    --card-accent: var(--cyan);
}

.project-card[data-accent="red"] {
    --card-accent: var(--red);
}

.project-card:hover .project-media video,
.project-media:focus-visible video {
    transform: scale(1.035);
    filter: saturate(1) contrast(1.05) brightness(0.94);
}

.card-index,
.open-mark {
    position: absolute;
    z-index: 4;
    top: 16px;
    color: var(--ink);
    font: 0.65rem var(--mono);
    text-shadow: 0 2px 9px #000;
}

.card-index {
    left: 18px;
}

.open-mark {
    right: 18px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--bg);
    font-size: 1rem;
    text-shadow: none;
    transform: scale(0.72) rotate(-20deg);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .open-mark,
.project-media:focus-visible .open-mark {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.project-caption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: baseline;
    padding-top: 18px;
}

.project-caption h3,
.project-caption p {
    margin: 0;
}

.project-caption h3 {
    font-size: clamp(1.35rem, 2.2vw, 2.4rem);
    font-weight: 500;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.project-card:hover .project-caption h3 {
    color: var(--card-accent, var(--lime));
    transform: translateX(8px);
}

.project-caption p {
    color: var(--muted);
    font: 0.62rem var(--mono);
    text-align: right;
    text-transform: uppercase;
}

.project-caption em {
    color: var(--card-accent, var(--lime));
    font-style: normal;
}

.graphic-archive {
    padding-bottom: clamp(110px, 14vw, 210px);
    scroll-margin-top: 90px;
}

.graphic-toggle {
    width: 100%;
    min-height: clamp(150px, 13vw, 210px);
    padding: clamp(26px, 3vw, 46px);
    border: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: end;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--sans);
    text-align: left;
    transition: background 0.35s ease, color 0.35s ease;
}

.graphic-toggle-code {
    grid-column: 1 / span 2;
    align-self: start;
    font: 500 0.78rem var(--mono);
    text-transform: uppercase;
}

.graphic-toggle-title {
    grid-column: 3 / span 7;
    font-size: clamp(2.8rem, 5.4vw, 6.7rem);
    font-weight: 500;
    line-height: 0.84;
    text-transform: uppercase;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-toggle-action {
    grid-column: 10 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    font: 500 0.72rem var(--mono);
    text-transform: uppercase;
}

.graphic-toggle-action i {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: var(--bg);
}

.graphic-toggle-action i::before,
.graphic-toggle-action i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1px;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-toggle-action i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.graphic-toggle:hover,
.graphic-toggle:focus-visible,
.graphic-archive.is-open .graphic-toggle {
    background: var(--lime);
}

.graphic-toggle:hover .graphic-toggle-title,
.graphic-toggle:focus-visible .graphic-toggle-title {
    transform: translateX(12px);
}

.graphic-archive.is-open .graphic-toggle-action i::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.graphic-panel {
    display: grid;
    grid-template-rows: 0fr;
    background: var(--panel-soft);
    transition: grid-template-rows 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-panel-inner {
    min-height: 0;
    overflow: hidden;
}

.graphic-project-list {
    padding: clamp(14px, 1.4vw, 22px);
    display: grid;
    gap: clamp(8px, 0.7vw, 12px);
}

.graphic-archive.is-open .graphic-panel {
    grid-template-rows: 1fr;
}

.graphic-project {
    min-height: clamp(140px, 12vw, 190px);
    padding: clamp(16px, 1.7vw, 26px);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
    background: #0d0f10;
    opacity: 0;
    transform: translateY(28px);
    transition: background 0.35s ease, opacity 0.48s ease, transform 0.58s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-archive.is-open .graphic-project {
    opacity: 1;
    transform: translateY(0);
}

.graphic-archive.is-open .graphic-project:nth-child(1) { transition-delay: 0.08s; }
.graphic-archive.is-open .graphic-project:nth-child(2) { transition-delay: 0.14s; }
.graphic-archive.is-open .graphic-project:nth-child(3) { transition-delay: 0.2s; }
.graphic-archive.is-open .graphic-project:nth-child(4) { transition-delay: 0.26s; }

.graphic-project-media {
    grid-column: 1 / span 2;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: #181b1d;
}

.graphic-project-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.05) brightness(0.82);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.graphic-project > span {
    grid-column: 3;
    align-self: start;
    padding-top: 5px;
    color: var(--lime);
    font: 0.72rem var(--mono);
}

.graphic-project h3 {
    grid-column: 4 / span 5;
    margin: 0;
    font-size: clamp(1.8rem, 3.3vw, 4.2rem);
    font-weight: 500;
    line-height: 0.92;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-project p {
    grid-column: 9 / span 3;
    margin: 0;
    color: var(--muted);
    font: 0.72rem/1.5 var(--mono);
    text-transform: uppercase;
}

.graphic-project b {
    grid-column: 12;
    justify-self: end;
    color: var(--lime);
    font-size: 1.35rem;
    font-weight: 400;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-project:hover,
.graphic-project:focus-visible {
    background: #191c1e;
}

.graphic-project:hover .graphic-project-media img,
.graphic-project:focus-visible .graphic-project-media img {
    transform: scale(1.05);
    filter: saturate(1) contrast(1.03) brightness(0.96);
}

.graphic-project:hover h3,
.graphic-project:focus-visible h3 {
    color: var(--lime);
    transform: translateX(10px);
}

.graphic-project:hover b,
.graphic-project:focus-visible b {
    transform: rotate(45deg);
}

.about-section > .section-code,
.contact-section > .section-code {
    margin-bottom: clamp(50px, 7vw, 100px);
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.portrait {
    grid-column: 1 / span 3;
    margin: 0;
    width: min(100%, 280px);
}

.portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
    filter: saturate(0.75) contrast(1.08);
}

.portrait figcaption {
    margin-top: 12px;
    color: var(--muted);
    font: 0.58rem var(--mono);
    text-transform: uppercase;
}

.about-copy {
    grid-column: 4 / -1;
}

.about-copy h2 {
    margin: 0 0 44px;
    font-size: clamp(3rem, 6vw, 7rem);
    line-height: 0.92;
    font-weight: 500;
}

.about-copy p {
    max-width: 680px;
    margin: 0 0 20px;
    color: #b5bab9;
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    line-height: 1.65;
}

.profile-data {
    grid-column: 10 / -1;
    margin: 0;
}

.profile-data div {
    padding: 14px 0;
}

.profile-data dt {
    margin-bottom: 7px;
    color: var(--muted);
    font: 0.58rem var(--mono);
    text-transform: uppercase;
}

.profile-data dd {
    margin: 0;
    font-size: 0.9rem;
}

.profile-data div:nth-child(2) dd {
    color: var(--cyan);
}

.profile-data div:last-child dd {
    color: var(--lime);
}

.clients {
    width: 100%;
    padding: 52px 0;
    overflow: hidden;
    background: var(--bg);
}

.clients-head {
    margin-bottom: 46px;
}

.client-track {
    width: max-content;
    display: flex;
    animation: clientMove 24s linear infinite;
}

.client-set {
    display: flex;
    align-items: center;
    gap: clamp(90px, 9vw, 160px);
    padding-right: clamp(90px, 9vw, 160px);
}

.client-set img {
    width: clamp(105px, 9vw, 165px);
    height: 72px;
    object-fit: contain;
    filter: none;
}

.client-set img.client-logo-featured {
    width: clamp(135px, 11vw, 200px);
    height: 92px;
}

.client-set img.client-logo-emphasis {
    width: clamp(145px, 11.7vw, 214px);
    height: 98px;
}

.contact-grid h2 {
    grid-column: 1 / span 8;
    margin: 0;
    font-size: clamp(5rem, 11vw, 13rem);
    line-height: 0.76;
    font-weight: 500;
    text-transform: uppercase;
}

.contact-dot {
    display: inline-block;
    color: var(--lime);
}

.contact-line {
    display: block;
    white-space: nowrap;
}

.contact-letter {
    display: inline-block;
    transform-origin: 50% 78%;
    will-change: transform;
}

.contact-title.is-dot-active .contact-letter,
.contact-title.is-link-active .contact-letter {
    animation: contactLetterWobble var(--wobble-duration, 0.58s) cubic-bezier(0.22, 0.8, 0.3, 1) both;
    animation-delay: calc(var(--letter-index) * 12ms);
}

@keyframes contactLetterWobble {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
    26% { transform: translate3d(var(--wobble-x, 0), var(--wobble-y-up, -8px), 0) rotate(var(--wobble-rotate, -3deg)); }
    51% { transform: translate3d(var(--wobble-x-reverse, 0), var(--wobble-y-return, 4px), 0) rotate(var(--wobble-rotate-reverse, 2deg)); }
    73% { transform: translate3d(var(--wobble-x-settle, 0), var(--wobble-y-settle, -2px), 0) rotate(var(--wobble-rotate-settle, -1deg)); }
}

.contact-panel {
    grid-column: 9 / -1;
    align-self: end;
    padding-bottom: 10px;
}

.contact-panel p {
    max-width: 360px;
    margin: 0 0 44px;
    color: var(--muted);
    line-height: 1.55;
}

.contact-panel a {
    display: flex;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
    gap: 20px;
    padding: 17px 0;
    font: clamp(1rem, 1.15vw, 1.2rem) var(--mono);
    transition: color 0.25s ease, padding 0.3s ease;
}

.contact-panel a span {
    flex: 0 0 auto;
    color: var(--lime);
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
    padding-left: 10px;
    color: var(--lime);
}

.site-footer {
    min-height: 110px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
    color: var(--muted);
    font: 0.6rem var(--mono);
    text-transform: uppercase;
}

.site-footer p {
    grid-column: 1 / span 3;
}

.site-footer div {
    grid-column: 5 / span 5;
    display: flex;
    gap: 28px;
}

.site-footer > a {
    grid-column: 11 / -1;
    justify-self: end;
}

.site-footer a:hover {
    color: var(--lime);
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card.reveal {
    transform: translate(var(--reveal-x), 54px);
}

.project-card.reveal.is-visible {
    transform: translate(0, 0);
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    z-index: 1500;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--lime);
}

.cursor-ring {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(241, 241, 234, 0.65);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

body.is-link-hover .cursor-ring {
    width: 36px;
    height: 36px;
    border-color: var(--lime);
}

@media (pointer: fine) {
    body,
    a,
    button {
        cursor: none;
    }
}

@keyframes heroLineIn {
    to { transform: translateY(0); }
}

@keyframes introItemIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tileReveal {
    to { clip-path: inset(0); }
}

@keyframes motionGhostTop {
    0%, 100% { transform: translate(0, 0); }
    34% { transform: translate(0.035em, -0.025em); }
    68% { transform: translate(-0.02em, 0.015em); }
}

@keyframes motionGhostBottom {
    0%, 100% { transform: translate(0, 0); }
    38% { transform: translate(-0.04em, 0.03em); }
    72% { transform: translate(0.025em, -0.015em); }
}

@keyframes statusPulse {
    70% { box-shadow: 0 0 0 7px rgba(199, 255, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(199, 255, 54, 0); }
}

@keyframes clientMove {
    to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
    :root { --shell: min(100% - 40px, 1000px); }

    .nav-status { display: none; }
    .nav-links { grid-column: 6 / -1; }

    .hero {
        padding-top: 130px;
        align-items: start;
    }

    .hero-copy { grid-column: 1 / -1; }
    .hero-media {
        grid-column: 5 / -1;
        height: 470px;
        min-height: 0;
        margin-top: -80px;
    }

    .section-head h2 { grid-column: 3 / span 8; }
    .section-note { grid-column: 3 / span 7; margin-top: 20px; }

    .project-card,
    .project-card:nth-child(n) { grid-column: span 6; }

    .about-copy { grid-column: 4 / -1; }
    .profile-data { grid-column: 11 / -1; }
}

@media (max-width: 760px) {
    :root { --shell: calc(100vw - 32px); }

    .cursor-dot,
    .cursor-ring { display: none; }

    .site-nav { min-height: 70px; }
    .brand { grid-column: 1 / span 8; }
    .menu-toggle { display: block; grid-column: 12; justify-self: end; }

    .nav-links {
        position: fixed;
        inset: 70px 0 auto;
        padding: 26px 16px 34px;
        display: grid;
        gap: 20px;
        background: rgba(7, 8, 9, 0.97);
        transform: translateY(-130%);
        opacity: 0;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }

    .nav-links.is-open { transform: translateY(0); opacity: 1; }
    .nav-links a { font-size: 0.78rem; }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
        display: block;
    }

    .hero h1 { font-size: clamp(4rem, 20vw, 6.5rem); }
    .hero-line-shift { --motion-indent: 0px; padding-left: 0; }
    .hero-foot { width: 100%; }

    .hero-media {
        height: 430px;
        margin-top: 64px;
        display: grid;
    }

    .hero-tile-main { grid-row: 1 / span 4; }
    .hero-coordinate { display: none; }

    .work-section,
    .about-section,
    .contact-section { padding-block: 110px; }

    .section-head { display: block; }
    .section-head .section-code { margin-bottom: 42px; }
    .section-head h2 { font-size: clamp(3.2rem, 15vw, 5rem); }
    .section-note { max-width: 440px; margin-top: 28px; }

    .projects-grid { display: block; }
    .project-card,
    .project-card:nth-child(even) { margin: 0 0 70px; }

    .project-card { --reveal-x: 0px !important; }

    .project-caption { display: block; }
    .project-caption p { margin-top: 8px; text-align: left; }

    .about-grid,
    .contact-grid { display: block; }

    .portrait { width: 180px; margin-bottom: 50px; }
    .about-copy h2 { font-size: clamp(3rem, 14vw, 5rem); }
    .profile-data { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; }

    .contact-grid h2 { font-size: clamp(4.6rem, 20vw, 7.5rem); margin-bottom: 70px; }
    .contact-panel a { font-size: 0.92rem; }

    .site-footer {
        padding: 32px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .site-footer div { order: 3; width: 100%; }
}

/* Work-first editorial showcases */
.project-showcase-list {
    display: grid;
    gap: clamp(110px, 13vw, 210px);
}

.project-showcase {
    --showcase-accent: var(--lime);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
    color: var(--ink);
}

.project-showcase[data-accent="cyan"] { --showcase-accent: var(--cyan); }
.project-showcase[data-accent="red"] { --showcase-accent: var(--red); }

.showcase-media {
    grid-column: 1 / span 8;
    grid-row: 1;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d0f10;
    clip-path: inset(0 0 100% 0);
    transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease-out;
}

.project-showcase.is-visible .showcase-media {
    clip-path: inset(0);
}

.showcase-media::before,
.showcase-media::after {
    border-color: var(--showcase-accent);
}

.showcase-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05) brightness(0.86);
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.showcase-info {
    grid-column: 9 / -1;
    grid-row: 1;
    align-self: end;
    padding: 0 0 8px clamp(8px, 2vw, 34px);
}

.project-showcase:nth-child(even) .showcase-media {
    grid-column: 5 / -1;
}

.project-showcase:nth-child(even) .showcase-info {
    grid-column: 1 / span 4;
    padding: 0 clamp(8px, 2vw, 34px) 8px 0;
}

.showcase-info > span {
    display: block;
    margin-bottom: 24px;
    color: var(--showcase-accent);
    font: 0.8rem var(--mono);
}

.showcase-info h3 {
    margin: 0;
    font-size: clamp(2.5rem, 4.4vw, 5.4rem);
    line-height: 0.9;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-info p {
    max-width: 260px;
    margin: 28px 0 0;
    color: var(--muted);
    font: 0.84rem/1.5 var(--mono);
    text-transform: uppercase;
}

.showcase-info em {
    color: var(--showcase-accent);
    font-style: normal;
}

.showcase-eyebrow {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font: 0.8rem var(--mono);
}

.showcase-eyebrow span,
.showcase-eyebrow .concept-label {
    color: var(--showcase-accent);
    font: inherit;
}

.showcase-eyebrow .concept-label {
    opacity: 0.86;
}

.showcase-info b {
    width: 44px;
    height: 44px;
    margin-top: 32px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--bg);
    font-size: 1.2rem;
    font-weight: 400;
    transition: background 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-showcase:hover .showcase-media video,
.project-showcase:focus-visible .showcase-media video {
    transform: scale(1.025);
    filter: saturate(1) contrast(1.04) brightness(0.94);
}

.project-showcase:hover .showcase-info h3,
.project-showcase:focus-visible .showcase-info h3 {
    color: var(--showcase-accent);
    transform: translateY(-8px);
}

.project-showcase:hover .showcase-info b,
.project-showcase:focus-visible .showcase-info b {
    background: var(--showcase-accent);
    transform: rotate(45deg);
}

@media (max-width: 900px) {
    .project-showcase-list {
        gap: 100px;
    }

    .showcase-media,
    .project-showcase:nth-child(even) .showcase-media {
        grid-column: 1 / span 8;
    }

    .showcase-info,
    .project-showcase:nth-child(even) .showcase-info {
        grid-column: 9 / -1;
        padding: 0 0 4px 12px;
    }

    .showcase-info h3 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
}

@media (max-width: 680px) {
    .project-showcase-list {
        gap: 82px;
    }

    .project-showcase {
        display: block;
    }

    .showcase-media,
    .project-showcase:nth-child(even) .showcase-media {
        width: 100%;
    }

    .showcase-info,
    .project-showcase:nth-child(even) .showcase-info {
        padding: 24px 0 0;
    }

    .showcase-info > span {
        margin-bottom: 14px;
    }

    .showcase-eyebrow {
        margin-bottom: 14px;
    }

    .showcase-info h3 {
        font-size: clamp(2.2rem, 11vw, 4rem);
    }

    .showcase-info p {
        margin-top: 14px;
    }

    .showcase-info b {
        width: 38px;
        height: 38px;
        margin-top: 20px;
    }
}

/* Hero statement and transferred work headline */
.hero-foot {
    width: max-content;
    max-width: 100%;
    display: block;
}

.hero-foot p {
    position: relative;
    isolation: isolate;
    max-width: none;
    padding: 13px 18px 14px;
    background: var(--lime);
    color: var(--bg);
    font-size: clamp(1.05rem, 1.55vw, 1.55rem);
    line-height: 1.15;
    font-weight: 600;
    text-shadow: none;
}

.hero-foot p::before,
.hero-foot p::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: inherit;
    background: var(--lime);
    color: var(--bg);
    font: inherit;
    line-height: inherit;
    opacity: 0;
    pointer-events: none;
}

.hero-foot p::before {
    clip-path: polygon(0 0, 100% 0, 100% 43%, 72% 43%, 68% 55%, 39% 49%, 33% 58%, 0 52%);
}

.hero-foot p::after {
    clip-path: polygon(0 52%, 33% 58%, 39% 49%, 68% 55%, 72% 43%, 100% 43%, 100% 100%, 0 100%);
}

.hero-foot p:hover {
    background: transparent;
    color: transparent;
}

.hero-foot p:hover::before {
    opacity: 1;
    animation: sloganFractureTop 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-foot p:hover::after {
    opacity: 1;
    animation: sloganFractureBottom 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sloganFractureTop {
    0%, 100% { transform: translate3d(0, 0, 0) skewX(0); }
    32% { transform: translate3d(13px, -4px, 0) skewX(-5deg); }
    58% { transform: translate3d(-7px, 2px, 0) skewX(3deg); }
    76% { transform: translate3d(4px, -1px, 0) skewX(-1deg); }
}

@keyframes sloganFractureBottom {
    0%, 100% { transform: translate3d(0, 0, 0) skewX(0); }
    32% { transform: translate3d(-12px, 4px, 0) skewX(5deg); }
    58% { transform: translate3d(8px, -2px, 0) skewX(-3deg); }
    76% { transform: translate3d(-4px, 1px, 0) skewX(1deg); }
}

.section-head .work-statement {
    grid-column: 3 / -1;
    font-size: clamp(2.8rem, 4.8vw, 6.4rem);
    line-height: 1;
}

.work-statement span {
    display: block;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .section-head .work-statement {
        grid-column: 1 / -1;
        font-size: clamp(2.4rem, 5.7vw, 4.5rem);
    }
}

@media (max-width: 760px) {
    .hero-foot {
        width: 100%;
    }

    .hero-foot p {
        width: fit-content;
        max-width: 100%;
        font-size: 1rem;
    }

    .section-head .work-statement {
        font-size: clamp(1.8rem, 7.2vw, 2.7rem);
    }
}

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

    .reveal,
    .intro-item {
        opacity: 1;
        transform: none;
    }

    .hero-line b { transform: none; }
    .hero-tile, .project-media { clip-path: inset(0); }
}

/* Motion project browser */
.site-nav {
    min-height: 92px;
}

.brand b {
    font-size: clamp(1rem, 1.05vw, 1.18rem);
    letter-spacing: 0;
    transition: color 0.24s ease;
}

.brand:hover b,
.brand:focus-visible b {
    color: var(--lime);
}

.nav-status {
    font-size: 0.78rem;
}

.nav-links a {
    font-size: clamp(0.82rem, 0.78vw, 0.92rem);
    font-weight: 500;
}

.project-browser {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.project-index {
    grid-column: 1 / span 5;
    display: grid;
    gap: 8px;
}

.project-row {
    --row-accent: var(--lime);
    min-height: 116px;
    padding: 20px 18px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 168px 24px;
    gap: 14px;
    align-items: center;
    background: #111315;
    color: var(--ink);
    transition: background 0.36s ease, color 0.36s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row[data-accent="cyan"] { --row-accent: var(--cyan); }
.project-row[data-accent="red"] { --row-accent: var(--red); }

.project-row > span,
.project-row p {
    color: var(--muted);
    font: 0.58rem var(--mono);
    text-transform: uppercase;
}

.project-row h3,
.project-row p {
    margin: 0;
}

.project-row h3 {
    font-size: clamp(1.05rem, 1.45vw, 1.55rem);
    line-height: 1.04;
    font-weight: 500;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row p {
    font-size: clamp(0.68rem, 0.68vw, 0.78rem);
    line-height: 1.4;
    text-align: right;
}

.project-row em {
    color: var(--row-accent);
    font-style: normal;
}

.project-row b {
    color: var(--row-accent);
    font-size: 1.1rem;
    font-weight: 400;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row:hover,
.project-row:focus-visible,
.project-row.is-active {
    background: var(--ink);
    color: var(--bg);
    transform: translateX(8px);
}

.project-row:hover h3,
.project-row:focus-visible h3,
.project-row.is-active h3 {
    transform: translateX(5px);
}

.project-row:hover b,
.project-row:focus-visible b,
.project-row.is-active b {
    transform: rotate(45deg);
}

.project-stage {
    grid-column: 6 / -1;
    position: sticky;
    top: 112px;
}

.stage-screen {
    --stage-accent: var(--lime);
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0d0f10;
}

.stage-screen[data-accent="cyan"] { --stage-accent: var(--cyan); }
.stage-screen[data-accent="red"] { --stage-accent: var(--red); }

.stage-screen::before,
.stage-screen::after {
    content: "";
    position: absolute;
    z-index: 3;
    width: 38px;
    height: 38px;
    pointer-events: none;
}

.stage-screen::before {
    top: 16px;
    left: 16px;
    border-top: 1px solid var(--stage-accent);
    border-left: 1px solid var(--stage-accent);
}

.stage-screen::after {
    right: 16px;
    bottom: 16px;
    border-right: 1px solid var(--stage-accent);
    border-bottom: 1px solid var(--stage-accent);
}

.stage-screen video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05) brightness(0.86);
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.28s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.stage-screen.is-switching video {
    opacity: 0;
    transform: scale(1.035) translateY(8px);
    filter: saturate(0.55) brightness(0.5);
}

.stage-label,
.stage-status {
    position: absolute;
    z-index: 4;
    bottom: 18px;
    color: var(--ink);
    font: 0.62rem var(--mono);
    text-transform: uppercase;
    text-shadow: 0 3px 12px #000;
}

.stage-label { left: 20px; }
.stage-status {
    right: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.stage-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stage-accent);
}

@media (max-width: 1000px) {
    .project-index { grid-column: 1 / span 6; }
    .project-stage { grid-column: 7 / -1; }
    .project-row { grid-template-columns: 30px minmax(0, 1fr) 22px; }
    .project-row p { display: none; }
}

@media (max-width: 760px) {
    .site-nav { min-height: 72px; }
    .brand b { font-size: 1rem; }

    .project-browser {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .project-stage {
        order: 1;
        position: relative;
        top: auto;
        width: 100%;
    }

    .project-index {
        order: 2;
        width: 100%;
    }

    .project-row {
        min-height: 92px;
        transform: none !important;
    }
}

/* Kinetic floating project index */
.project-browser {
    --preview-x: 46%;
    --preview-y: 0px;
    position: relative;
    display: block;
    min-height: 0;
}

.project-index {
    position: relative;
    z-index: 3;
    width: 100%;
    display: grid;
    gap: 0;
}

.project-row,
.project-row:hover,
.project-row:focus-visible,
.project-row.is-active {
    min-height: clamp(130px, 10vw, 178px);
    padding: 18px 0;
    grid-template-columns: 70px minmax(0, 1fr) minmax(190px, 2.3fr) 42px;
    gap: 18px;
    background: transparent;
    color: var(--ink);
    transform: none;
}

.project-row {
    opacity: 0.68;
    transition: opacity 0.34s ease, color 0.34s ease;
}

.project-row > span {
    align-self: start;
    padding-top: 13px;
    color: var(--row-accent);
    font-size: 0.7rem;
}

.project-row h3 {
    font-size: clamp(2.8rem, 5.4vw, 6.4rem);
    line-height: 0.88;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

.project-row p {
    max-width: 220px;
    justify-self: end;
    align-self: center;
    font-size: clamp(0.72rem, 0.75vw, 0.86rem);
    text-align: left;
}

.project-row b {
    align-self: center;
    justify-self: end;
    font-size: 1.5rem;
}

.project-row:hover,
.project-row:focus-visible,
.project-row.is-active {
    opacity: 1;
}

.project-row:hover h3,
.project-row:focus-visible h3,
.project-row.is-active h3 {
    color: var(--row-accent);
    transform: translateX(16px);
}

.project-index:hover .project-row:not(:hover):not(:focus-visible) {
    opacity: 0.16;
}

.project-stage {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: min(42vw, 680px);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--preview-x), var(--preview-y), 0) scale(0.88) rotate(-2deg);
    transform-origin: center;
    transition: opacity 0.26s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.project-browser.is-previewing .project-stage {
    opacity: 0.92;
    transform: translate3d(var(--preview-x), var(--preview-y), 0) scale(1) rotate(0deg);
}

.stage-screen {
    aspect-ratio: 16 / 9;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.54);
}

.stage-screen video {
    filter: saturate(0.94) contrast(1.06) brightness(0.88);
}

@media (max-width: 760px) {
    .project-browser {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .project-stage,
    .project-browser.is-previewing .project-stage {
        position: relative;
        order: 1;
        width: 100%;
        opacity: 1;
        transform: none;
    }

    .project-index {
        order: 2;
    }

    .project-row,
    .project-row:hover,
    .project-row:focus-visible,
    .project-row.is-active {
        min-height: 108px;
        padding: 15px 0;
        grid-template-columns: 34px minmax(0, 1fr) 28px;
        grid-template-rows: auto auto;
        gap: 6px 12px;
        opacity: 1;
    }

    .project-row > span {
        grid-row: 1 / span 2;
        padding-top: 6px;
    }

    .project-row h3 {
        grid-column: 2;
        font-size: clamp(1.8rem, 9vw, 3rem);
        line-height: 0.96;
        transform: none !important;
    }

    .project-row p {
        grid-column: 2;
        display: block;
        justify-self: start;
        max-width: none;
        font-size: 0.64rem;
    }

    .project-row b {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .project-index:hover .project-row:not(:hover):not(:focus-visible) {
        opacity: 1;
    }
}

/* Full-bleed background reel */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
}

.hero-copy {
    grid-column: 1 / span 9;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.82), 0 18px 50px rgba(0, 0, 0, 0.48);
    opacity: 0;
    animation: heroContentFade 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.hero-media {
    position: absolute;
    z-index: -2;
    grid-column: 1 / -1 !important;
    grid-row: 1 / -1;
    justify-self: stretch;
    align-self: stretch;
    inset: 0 calc((100vw - var(--shell)) / -2);
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    display: block;
    overflow: hidden;
    background: #070809;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media.is-loaded {
    opacity: 1;
}

.hero-media::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    background: rgba(7, 8, 9, 0.38);
}

.hero-tile,
.hero-tile-main,
.hero-tile:nth-child(3) {
    position: absolute;
    z-index: 1;
    inset: -3%;
    width: 106%;
    height: 106%;
    display: block;
    opacity: 0;
    clip-path: none;
    animation: none;
    transform: translate3d(var(--bg-x, 0), var(--bg-y, 0), 0) scale(1.055);
    transition: opacity 1.15s ease, transform 6s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.48) 34%, rgba(0, 0, 0, 0.82) 58%, #000 76%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.48) 34%, rgba(0, 0, 0, 0.82) 58%, #000 76%);
}

.hero-tile.is-active {
    z-index: 2;
    opacity: 1;
    transform: translate3d(var(--bg-x, 0), var(--bg-y, 0), 0) scale(1.01);
}

.hero-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.06) brightness(0.82);
    transform: none;
}

.hero-tile:hover video,
.hero-tile:focus-visible video {
    transform: none;
    filter: saturate(0.88) contrast(1.06) brightness(0.82);
}

@keyframes heroContentFade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .hero-media {
        height: auto;
        margin: 0;
    }

    .hero-copy {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 100svh;
    }

    .hero-media {
        inset: 0 -16px;
        height: auto;
        margin: 0;
    }

    .hero-media::after {
        background: rgba(7, 8, 9, 0.46);
    }

    .hero-tile,
    .hero-tile-main,
    .hero-tile:nth-child(3) {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media {
        transition-duration: 1.4s !important;
    }

    .hero-tile {
        transition: opacity 1s ease !important;
    }

}

/* Final mobile grid safeguards */
@media (max-width: 760px) {
    .hero-copy,
    .section-head,
    .project-showcase,
    .showcase-media,
    .showcase-info,
    .about-copy,
    .contact-panel {
        min-width: 0;
    }

    .hero {
        padding-top: max(112px, calc(88px + env(safe-area-inset-top)));
    }

    .hero h1 {
        font-size: clamp(3.35rem, 18vw, 5.6rem);
        line-height: 0.8;
    }

    .hero-foot p {
        width: fit-content;
        max-width: 100%;
        font-size: clamp(0.88rem, 3.8vw, 1rem);
    }

    .work-section,
    .about-section,
    .contact-section {
        padding-block: 90px;
    }

    .graphic-archive {
        padding-bottom: 90px;
        scroll-margin-top: 72px;
    }

    .graphic-toggle {
        min-height: 190px;
        padding: 24px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto 1fr;
        gap: 34px 16px;
        align-items: start;
    }

    .graphic-toggle-code {
        grid-column: 1;
        grid-row: 1;
        font-size: 0.7rem;
    }

    .graphic-toggle-title {
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: end;
        font-size: clamp(2.5rem, 13vw, 4.5rem);
        line-height: 0.88;
    }

    .graphic-toggle-action {
        grid-column: 2;
        grid-row: 1;
    }

    .graphic-toggle-action span {
        display: none;
    }

    .graphic-toggle-action i {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .graphic-project-list {
        padding: 10px;
        gap: 8px;
    }

    .graphic-project {
        min-height: 122px;
        padding: 14px;
        grid-template-columns: 90px minmax(0, 1fr) 24px;
        grid-template-rows: auto auto auto;
        gap: 4px 14px;
    }

    .graphic-project-media {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 90px;
        aspect-ratio: 1;
    }

    .graphic-project > span {
        grid-column: 2;
        grid-row: 1;
        padding: 0;
        font-size: 0.62rem;
    }

    .graphic-project h3 {
        grid-column: 2;
        grid-row: 2;
        font-size: clamp(1.25rem, 6vw, 1.8rem);
        line-height: 0.96;
    }

    .graphic-project p {
        grid-column: 2;
        grid-row: 3;
        font-size: 0.58rem;
    }

    .graphic-project b {
        grid-column: 3;
        grid-row: 1 / span 3;
        align-self: center;
        font-size: 1.05rem;
    }

    .graphic-project:hover h3,
    .graphic-project:focus-visible h3 {
        transform: none;
    }

    .section-head .work-statement {
        font-size: clamp(1.45rem, 7vw, 2.5rem);
    }

    .work-statement span {
        white-space: nowrap;
    }

    .portrait {
        width: min(46vw, 180px);
    }

    .about-copy h2 {
        font-size: clamp(2.8rem, 13vw, 4.5rem);
        line-height: 0.95;
    }

    .about-copy p {
        font-size: 1rem;
    }

    .clients {
        padding-block: 42px;
    }

    .clients-head {
        margin-bottom: 32px;
    }

    .client-set {
        gap: 64px;
        padding-right: 64px;
    }

    .client-set img {
        width: 110px;
        height: 64px;
    }

    .client-set img.client-logo-featured {
        width: 140px;
        height: 78px;
    }

    .client-set img.client-logo-emphasis {
        width: 150px;
        height: 83px;
    }

    .contact-grid h2 {
        margin-bottom: 52px;
        font-size: clamp(3.4rem, 17vw, 5.8rem);
        line-height: 0.82;
    }

    .contact-panel p {
        margin-bottom: 28px;
    }

    .contact-panel a {
        max-width: 100%;
        gap: 12px;
        font-size: clamp(0.8rem, 3.6vw, 0.92rem);
        overflow-wrap: anywhere;
    }

    .site-footer {
        min-height: 0;
        gap: 16px 24px;
    }
}

@media (max-width: 360px) {
    .section-head .work-statement {
        font-size: 1.36rem;
    }

    .graphic-project {
        grid-template-columns: 72px minmax(0, 1fr) 20px;
        gap-inline: 10px;
    }

    .graphic-project-media {
        width: 72px;
    }
}
