:root {
    --paper: #ffffff;
    --ink: #4a4a4a;
    --mint: #A8F5DE;
    --mint-light: #D2F9EF;
    --yellow: #ffea80;
    --accent: #0bb08a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Nunito", sans-serif;
}

/* HERO */

.hero {
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding-top: 100px;
    padding-bottom: clamp(48px, 13vh, 125px);
    overflow: hidden;
}

.intro {
    align-self: center;
    text-align: center;
    padding: 35px 20px 100px;
    
}

.name-wrap {
    position: relative;
    width: fit-content;
    margin-inline: auto;
}

#hero-name {
    margin: 0;
    font-size: clamp(36px, 7.1vw, 115px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.8;
    white-space: nowrap;
}

.subtitle {
    max-width: 850px;
    margin: 20px auto 0;
    color: var(--accent);
    font-size: clamp(18px, 1.8vw, 25px);
    font-weight: 400;
    line-height: 1.5;
    text-wrap: balance;
}

/* ANIMATED ARCH */

.name-bridge {
    position: absolute;
    width: 0;
    overflow: visible;
    pointer-events: none;
    transform-origin: center bottom;
}

.name-bridge path {
    fill: none;
    stroke: var(--mint);
    stroke-width: 10;
    stroke-linecap: round;
}

.name-bridge.is-ready {
    animation: bridge-roam 10s ease-in-out infinite;
}

/* Starts and ends above the two i's. */

@keyframes bridge-roam {
    0%, 12%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    32% {
        transform: translate(-55px, -65px) scale(1.22) rotate(-9deg);
    }

    55% {
        transform: translate(75px, -95px) scale(0.75) rotate(12deg);
    }

    78% {
        transform: translate(35px, -25px) scale(1.1) rotate(-5deg);
    }
}

/* NAVIGATION */

.hero-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 40px);
    width: 100%;
}

.nav-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 10px clamp(24px, 2.7vw, 43px);
    border-radius: 999px;

    color: var(--ink);
    font-size: 21px;
    font-weight: 400;
    text-decoration: none;

    transition:
        transform 200ms ease,
        box-shadow 200ms ease;
}

.green {
    background: var(--mint);
}

.yellow {
    background: var(--yellow);
}

.nav-button:hover {
    transform: translateY(-5px) rotate(-2deg);
    box-shadow: 0 7px 0 rgb(74 74 74 / 8%);
}

.nav-button:active {
    transform: translateY(-1px);
}

.nav-button:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 5px;
}

.nav-icon {
    min-width: 110px;
    padding-inline: 28px;
}

.nav-icon svg {
    width: 27px;
    height: 27px;
}

/* DECORATIVE PILLS */

.nav-bar {
    height: 54px;
    background: var(--mint-light);
    border-radius: 999px;
}

.nav-start,
.nav-end {
    flex: 1 1 80px;
    min-width: 20px;
}

.nav-start {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.nav-end {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.nav-middle {
    flex: 2 1 180px;
    min-width: 40px;
}

.nav-start {
    border-radius: 0 999px 999px 0;
}

.nav-end {
    border-radius: 999px 0 0 999px;
}

/* TABLET */

@media (max-width: 1100px) {
    .hero-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        padding-inline: 24px;
    }

    .nav-bar {
        display: none;
    }

    .nav-button {
        font-size: 19px;
        padding-inline: 30px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 48px;
    }

    .intro {
        padding-inline: 16px;
        padding-bottom: 70px;
    }

    #hero-name {
        font-size: clamp(28px, 8.1vw, 48px);
    }

    .subtitle {
        max-width: 340px;
        margin-top: 18px;
        font-size: 18px;
    }

    .hero-nav {
        max-width: 400px;
        margin-inline: auto;
        gap: 14px;
    }

    .nav-button {
        min-height: 48px;
        padding: 10px 24px;
        font-size: 17px;
    }

    .nav-icon {
        min-width: 90px;
    }

    @keyframes bridge-roam {
        0%, 12%, 100% {
            transform: translate(0, 0) scale(1);
        }

        32% {
            transform: translate(-20px, -40px) scale(1.2) rotate(-9deg);
        }

        55% {
            transform: translate(30px, -60px) scale(0.75) rotate(12deg);
        }

        78% {
            transform: translate(15px, -20px) scale(1.1) rotate(-5deg);
        }
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .name-bridge.is-ready {
        animation: none;
    }

    .nav-button {
        transition: none;
    }

    .nav-button:hover {
        transform: none;
    }
}

/* FIGMA RESIZE ANIMATION */

.name-bridge {
    position: absolute;
    width: var(--bridge-width, 180px);
    height: var(--bridge-height, 48px);
    overflow: visible;
    pointer-events: none;
    transform: none;
}

.name-bridge.is-ready {
    animation: figma-resize 9s ease-in-out infinite;
}

.bridge-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.name-bridge .bridge-curve {
    fill: none;
    stroke: var(--mint);
    stroke-width: 9px;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.name-bridge .bridge-outline {
    fill: none;
    stroke: #999;
    stroke-width: 1px;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.bridge-selection {
    position: absolute;
    inset: 0;
    border: 1px solid #999;
}

.resize-handle {
    position: absolute;
    z-index: 1;
    width: 8px;
    height: 8px;
    background: var(--paper);
    border: 1px solid #999;
    transform: translate(-50%, -50%);
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    left: 100%;
}

.bottom-left {
    top: 100%;
    left: 0;
}

.bottom-right {
    top: 100%;
    left: 100%;
}

@keyframes figma-resize {
    /* Original size */
    0%, 15%, 100% {
        width: var(--bridge-width);
        height: var(--bridge-height);
    }

    /* Drag wider and flatter */
    32%, 40% {
        width: calc(var(--bridge-width) * 1.35);
        height: calc(var(--bridge-height) * 0.7);
    }

    /* Drag narrower and taller */
    58%, 66% {
        width: calc(var(--bridge-width) * 0.8);
        height: calc(var(--bridge-height) * 1.65);
    }

    /* Make the whole box smaller */
    80%, 86% {
        width: calc(var(--bridge-width) * 0.7);
        height: calc(var(--bridge-height) * 0.7);
    }
}

@media (prefers-reduced-motion: reduce) {
    .name-bridge.is-ready {
        animation: none;
    }
}

/* Keep the animated icon behind the name */
.name-wrap {
    isolation: isolate;
}

#hero-name {
    position: relative;
    z-index: 2;
}

.name-bridge {
    position: absolute;
    z-index: 1;
}

/* Thicker mint / blue arch */
.name-bridge .bridge-curve {
    stroke-width: 15px;
}

.hero-nav {
    gap: clamp(14px, 2vw, 30px);
}

.nav-button {
    font-size: 17px;
    min-height: 44px;
    padding: 8px 30px;
}

.nav-icon {
    min-width: 88px;
    padding-inline: 24px;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
}

.nav-bar {
    height: 44px;
}

@media (max-width: 600px) {
    .hero-nav {
        gap: 12px;
    }

    .nav-button {
        padding-inline: 22px;
    }

    .nav-icon {
        min-width: 76px;
    }
}

/* PAGE ENTRANCE */

/* Name rises into place */
#hero-name {
    animation: name-enter 950ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes name-enter {
    from {
        opacity: 0;
        transform: translateY(35px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Subtitle follows the name */
.subtitle {
    animation: subtitle-enter 800ms ease 250ms both;
}

@keyframes subtitle-enter {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* Draw the arch on arrival */
.bridge-art {
    animation: arch-enter 1000ms ease 450ms both;
}

@keyframes arch-enter {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 -15%);
    }

    to {
        opacity: 1;
        clip-path: inset(-30% -15% -30% -15%);
    }
}

/* Selection box and handles appear afterward */
.bridge-selection,
.resize-handle {
    animation: selection-enter 450ms ease 1100ms both;
}

@keyframes selection-enter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Wait until the entrance finishes before resizing */
.name-bridge.is-ready {
    animation-delay: 1500ms;
}

/* Nav pills unfold sideways */
.hero-nav > * {
    animation: nav-enter 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay:
        calc(500ms + var(--nav-order, 0) * 90ms),
        calc(1500ms + var(--nav-order, 0) * 180ms);
}

.hero-nav > :nth-child(1) { --nav-order: 0; }
.hero-nav > :nth-child(2) { --nav-order: 1; }
.hero-nav > :nth-child(3) { --nav-order: 2; }
.hero-nav > :nth-child(4) { --nav-order: 3; }
.hero-nav > :nth-child(5) { --nav-order: 4; }
.hero-nav > :nth-child(6) { --nav-order: 5; }
.hero-nav > :nth-child(7) { --nav-order: 6; }
.hero-nav > :nth-child(8) { --nav-order: 7; }
.hero-nav > :nth-child(9) { --nav-order: 8; }

@keyframes nav-enter {
    from {
        opacity: 0;
        clip-path: inset(0 50% round 999px);
        translate: 0 12px;
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 round 999px);
        translate: 0 0;
    }
}

/* Release the entrance animation so hover effects still work */
.nav-button:hover {
    transform: translateY(-5px) rotate(-2deg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #hero-name,
    .subtitle,
    .bridge-art,
    .bridge-selection,
    .resize-handle,
    .hero-nav > *,
    .name-bridge.is-ready {
        animation: none;
    }
}

/* NAME: slow, subtle breathing motion */
#hero-name {
    animation:
        name-enter 950ms cubic-bezier(0.22, 1, 0.36, 1) both,
        gentle-float 7s ease-in-out 1s infinite;
}

/* SUBTITLE: slightly different timing */
.subtitle {
    animation:
        subtitle-enter 800ms ease 250ms both,
        gentle-float 8s ease-in-out 1.5s infinite;
}

@keyframes gentle-float {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -3px;
    }
}

/* NAV: sideways entrance, then tiny individual bobs */
.hero-nav > * {
    animation:
        pill-reveal 850ms cubic-bezier(0.22, 1, 0.36, 1) both,
        pill-idle var(--idle-duration, 6s) ease-in-out infinite;

    animation-delay:
        calc(500ms + var(--nav-order, 0) * 90ms),
        calc(1500ms + var(--nav-order, 0) * 180ms);
}

/* Different speeds prevent synchronized movement */
.hero-nav > :nth-child(3n + 1) {
    --idle-duration: 6s;
}

.hero-nav > :nth-child(3n + 2) {
    --idle-duration: 7.5s;
}

.hero-nav > :nth-child(3n) {
    --idle-duration: 8.5s;
}

@keyframes pill-reveal {
    from {
        opacity: 0;
        clip-path: inset(0 50% round 999px);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 round 999px);
    }
}

@keyframes pill-idle {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -5px;
    }
}

/* ARCH: keep resizing, with a tiny gentle tilt */
.name-bridge.is-ready {
    animation:
        figma-resize 12s ease-in-out 1500ms infinite,
        arch-sway 9s ease-in-out 1500ms infinite;
}

@keyframes arch-sway {
    0%, 100% {
        rotate: -1deg;
    }

    50% {
        rotate: 1deg;
    }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
    #hero-name,
    .subtitle,
    .hero-nav > *,
    .name-bridge.is-ready,
    .bridge-art,
    .bridge-selection,
    .resize-handle {
        animation: none;
        translate: none;
        rotate: none;
    }
}

/* Bars fade in while keeping their outer ends flat */
.hero-nav > .nav-bar {
    animation-name: bar-reveal, pill-idle;
}

.nav-start {
    transform-origin: left center;
}

.nav-end {
    transform-origin: right center;
}

.nav-middle {
    transform-origin: center;
}

@keyframes bar-reveal {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-nav > .nav-bar {
        animation: none;
    }
}

.hero {
    min-height: 65svh;
    padding-top: 60px;
    padding-bottom: 45px;
}

.intro {
    top: 0;
    padding-bottom: 45px;
}

/* Make only the corner handles interactive */
.name-bridge .resize-handle {
    pointer-events: auto;
    touch-action: none;
    user-select: none;

    /* Larger invisible area makes the tiny handles easier to grab */
}

.resize-handle::after {
    content: "";
    position: absolute;
    inset: -8px;
}

.resize-handle.top-left,
.resize-handle.bottom-right {
    cursor: nwse-resize;
}

.resize-handle.top-right,
.resize-handle.bottom-left {
    cursor: nesw-resize;
}

/* Stop automatic movement while dragging or returning */
.name-bridge.is-ready.is-resizing {
    animation: none;
    rotate: 0deg;
    transform: none;
}

/* Skip the load-in delay when resuming */
.name-bridge.is-ready.has-been-dragged {
    animation-delay: 0s, 0s;
}


/* FEATURED WORK */

.featured-work {
    margin-left: var(--work-left, 8vw);
    margin-right: var(--work-right, 8vw);
    padding-top: 80px;
    padding-bottom: 100px;
    scroll-margin-top: 35px;
}

.featured-work h2 {
    margin: 0 0 42px;
    color: var(--ink);
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.project-card {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.project-art {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 34px;

    /* Allows the icons and cup to bleed outside */
    overflow: visible;
    isolation: isolate;

    transition: transform 300ms ease;
}

.tinder-art {
    background: #FF528D;
}

.openbook-art {
    background: #D1B4FF;
}

.coffee-art {
    background: #81C8FF;
}

.project-card:hover .project-art {
    transform: translateY(-5px);
}

.project-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 12px;
    border-radius: 8px;
}

/* TEXT */

.project-copy {
    padding-top: 36px;
}

.project-copy h3 {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: clamp(20px, 1.7vw, 25px);
    font-weight: 700;
    line-height: 1.2;
}

.project-subtitle {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.project-description {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
}

/* VIEW PILL */

.project-view {
    position: absolute;
    z-index: 5;
    top: 18%;
    right: -18px;

    padding: 7px 24px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;

    opacity: 0;
    transform: translateX(-8px);
    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.project-card:hover .project-view,
.project-card:focus-visible .project-view {
    opacity: 1;
    transform: translateX(0);
}

/* Use this class on the real logo image later */
.tinder-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30%;
    height: auto;
    transform: translate(-50%, -50%);
}

/* TINDER ICONS */

.tinder-icons {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.tinder-icon {
    position: absolute;
    display: grid;
    place-items: center;
    width: 12%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #222a32;
    font-size: clamp(16px, 2vw, 28px);
}

/* Larger heart and X */
.icon-x,
.icon-heart {
    width: 16%;
    font-size: clamp(22px, 2.7vw, 38px);
}

.icon-rewind {
    left: -6%;
    top: 13%;
    color: #ffb400;
}

.icon-star {
    left: -14%;
    top: 29%;
    color: #00aaff;
}

.icon-x {
    left: 7%;
    top: 25%;
    color: #ff287d;
}

.icon-heart {
    left: -8%;
    top: 45%;
    color: #9bea24;
}

.icon-send {
    left: 13%;
    top: 59%;
    color: #81C8FF;
}

/* Real icon images can use the same positioning classes */
img.tinder-icon {
    display: block;
    height: auto;
    background: none;
    object-fit: contain;
}

/* OPENBOOK SCREENSHOT PLACEHOLDER */

.openbook-image-placeholder,
.openbook-image {
    position: absolute;
    left: 3.5%;
    top: 18%;
    width: 93%;
    height: 64%;
    border-radius: 5px;
}

.openbook-image {
    object-fit: contain;
}

.openbook-image-placeholder {
    padding: 5%;
    background: #f1f5ff;
    overflow: hidden;
}

.mock-toolbar {
    height: 20%;
    margin-bottom: 7%;
    border-radius: 4px;
    background: white;
    filter: blur(2px);
}

.mock-panel {
    height: 57%;
    padding: 8%;
    border-radius: 4px;
    background: white;
    filter: blur(3px);
}

.mock-panel span {
    display: block;
    width: 80%;
    height: 6px;
    margin-bottom: 12px;
    background: #d9dce8;
}

.mock-panel span:nth-child(2) {
    width: 55%;
}

.mock-dots {
    margin-top: 5%;
    color: #a16aff;
    font-size: 20px;
    filter: blur(1px);
}

/* 1951 LOGO */

.coffee-logo {
    position: absolute;
    left: 8%;
    top: 10%;
    width: 48%;
    aspect-ratio: 1;
}

.coffee-logo {
    height: auto;
    object-fit: contain;
}

/* SEPARATE CUP LAYER */

.coffee-cup {
    position: absolute;
    z-index: 2;
    right: -20%;
    bottom: -12%;
    width: 95%;
}

.coffee-cup {
    height: auto;
    object-fit: contain;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .featured-work {
        margin-inline: 40px;
    }

    .work-grid {
        gap: 24px;
    }

    .project-art {
        border-radius: 24px;
    }

    .project-subtitle {
        font-size: 17px;
    }

    .project-description {
        font-size: 16px;
    }
}

@media (max-width: 750px) {
    .featured-work {
        margin-inline: 32px;
        padding-top: 20px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .project-copy {
        padding-top: 30px;
    }
    .tinder-icon {
        font-size: 24px;
    }

    .icon-heart,
    .icon-x {
        font-size: 34px;
    }

    .coffee-cup-placeholder {
        font-size: 150px;
    }

    .project-view {
        opacity: 1;
        transform: none;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-art,
    .project-view {
        transition: none;
    }

    .project-card:hover .project-art {
        transform: none;
    }
}

/* Mouse-following View pill */
@media (hover: hover) and (pointer: fine) {
    .project-art {
        cursor: none;
    }

    .project-art .project-view {
        top: 0;
        left: 0;
        right: auto;
        pointer-events: none;
        white-space: nowrap;

        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
        transition: opacity 150ms ease, transform 150ms ease;
    }

    /* Override the previous card hover behavior */
    .project-card:hover .project-view {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
    }

    .project-art.is-pointer-inside .project-view {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    /* Keep a visible View pill for keyboard navigation */
    .project-card:focus-visible .project-view {
        top: 18%;
        left: auto;
        right: 12px;
        opacity: 1;
        transform: none;
    }
}


/* Heading appears after the nav */
#work-heading {
    animation: work-reveal 700ms ease 300ms both;
}

/* Cards follow the heading */
.work-grid > .project-card {
    animation: work-reveal 800ms
        cubic-bezier(0.22, 1, 0.36, 1) both;
}

.work-grid > .project-card:nth-child(1) {
    animation-delay: 400ms;
}

.work-grid > .project-card:nth-child(2) {
    animation-delay: 500ms;
}

.work-grid > .project-card:nth-child(3) {
    animation-delay: 600ms;
}

@keyframes work-reveal {
    from {
        opacity: 0;
        translate: 0 25px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* Only the overflowing images wait for scrolling */
.featured-work.decorations-ready .tinder-icon,
.featured-work.decorations-ready .coffee-cup {
    opacity: 0;
}

/* Tinder icons bubble in */
.featured-work.decorations-ready
.tinder-art.decorations-visible .tinder-icon {
    animation: tinder-bubble 700ms
        cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: calc(200ms + var(--bubble-delay, 0ms));
}

.icon-rewind { --bubble-delay: 0ms; }
.icon-star   { --bubble-delay: 40ms; }
.icon-x      { --bubble-delay: 80ms; }
.icon-heart  { --bubble-delay: 120ms; }
.icon-send   { --bubble-delay: 160ms; }

@keyframes tinder-bubble {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.25);
    }

    65% {
        opacity: 1;
        transform: translateY(-4px) scale(1.12);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Coffee cup rises into view */
.featured-work.decorations-ready
.coffee-art.decorations-visible .coffee-cup {
    animation: cup-reveal 900ms
        cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 200ms;
}

@keyframes cup-reveal {
    from {
        opacity: 0;
        transform: translateY(40px) rotate(8deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #work-heading,
    .work-grid > .project-card,
    .featured-work.decorations-ready .tinder-icon,
    .featured-work.decorations-ready .coffee-cup {
        animation: none;
        opacity: 1;
        transform: none;
        translate: none;
    }
}

/* Tinder: bubble entrance, then gentle bobbing */
.featured-work.decorations-ready
.tinder-art.decorations-visible .tinder-icon {
    animation:
        tinder-bubble 700ms cubic-bezier(0.22, 1, 0.36, 1) both,
        decoration-bob 5s ease-in-out infinite;

    animation-delay:
        calc(100ms + var(--bubble-delay, 0ms)),
        calc(800ms + var(--bubble-delay, 0ms));
}



/* Coffee cup: entrance, then slower bobbing */
.featured-work.decorations-ready
.coffee-art.decorations-visible .coffee-cup {
    animation:
        cup-reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both,
        decoration-bob 6.5s ease-in-out 1s infinite;
}

@keyframes decoration-bob {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .featured-work.decorations-ready
    .tinder-art.decorations-visible .tinder-icon,
    .featured-work.decorations-ready
    .coffee-art.decorations-visible .coffee-cup {
        animation: none;
        opacity: 1;
        transform: none;
        translate: none;
    }
}

.featured-work.decorations-ready
.tinder-art.decorations-visible .tinder-icon.icon-rewind {
    animation-duration: 700ms, 4.2s;
}

.featured-work.decorations-ready
.tinder-art.decorations-visible .tinder-icon.icon-star {
    animation-duration: 700ms, 5.7s;
}

.featured-work.decorations-ready
.tinder-art.decorations-visible .tinder-icon.icon-x {
    animation-duration: 700ms, 4.9s;
}

.featured-work.decorations-ready
.tinder-art.decorations-visible .tinder-icon.icon-heart {
    animation-duration: 700ms, 6.3s;
}

.featured-work.decorations-ready
.tinder-art.decorations-visible .tinder-icon.icon-send {
    animation-duration: 700ms, 5.2s;
}

/* COMING SOON SECTION */

.coming-soon {
    margin-left: var(--coming-left, 8vw);
    margin-right: var(--coming-right, 8vw);
    padding-top: 20px;
    padding-bottom: 100px;
    font-family: "Nunito", sans-serif;
}

.coming-soon h2 {
    margin: 0 0 42px;
    color: var(--ink, #4a4a4a);
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
}

.coming-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.coming-card {
    min-width: 0;
}

/* COLORED BOXES */

.coming-art {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 34px;
    overflow: visible;
    isolation: isolate;

    color: var(--ink, #4a4a4a);
    text-decoration: none;

    transition: transform 300ms ease;
}

.coming-rive {
    background: #292929;
}

.coming-apple {
    background: #ff555b;
}

.coming-adobe {
    background: #ffa6aa;
}

/* The entire box and its contents enlarge together */
.coming-art:hover,
.coming-art:focus-visible {
    transform: translateY(-4px) scale(1.025);
}

.coming-art:focus-visible {
    outline: 3px solid var(--accent, #0bb08a);
    outline-offset: 8px;
}

/* LOGO IMAGES */

.coming-image {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 65%;
    height: auto;
    max-height: 45%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.coming-rive .coming-image {
    width: 70%;
}

.coming-apple .coming-image {
    width: 62%;
}

.coming-adobe .coming-image {
    width: 65%;
}

/* TEXT BELOW THE BOXES */

.coming-copy {
    padding-top: 36px;
}

.coming-copy h3 {
    margin: 0 0 8px;
    color: var(--accent, #0bb08a);
    font-size: clamp(20px, 1.7vw, 25px);
    font-weight: 700;
    line-height: 1.2;
}

.coming-subtitle {
    margin: 0 0 10px;
    color: var(--ink, #4a4a4a);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.coming-description {
    margin: 0;
    color: var(--ink, #4a4a4a);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
}

/* LEARN MORE PILL: default position for touch and keyboard */

.coming-view {
    position: absolute;
    z-index: 5;
    top: auto;
    bottom: 18px;
    left: 18px;

    padding: 8px 22px;
    border-radius: 999px;
    background: var(--mint, #a4f3dd);
    color: var(--ink, #4a4a4a);

    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
}

/* MOUSE-FOLLOWING PILL */

@media (hover: hover) and (pointer: fine) {
    .coming-art.cursor-ready {
        cursor: none;
    }

    .coming-art.cursor-ready .coming-view {
        left: var(--pointer-x, 50%);
        top: var(--pointer-y, 50%);
        bottom: auto;

        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);

        transition:
            opacity 150ms ease,
            transform 150ms ease;
    }

    .coming-art.cursor-ready.pointer-inside .coming-view {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    .coming-art.cursor-ready:focus-visible .coming-view {
        left: 18px;
        top: auto;
        bottom: 18px;
        opacity: 1;
        transform: none;
    }
}

/* TABLET */

@media (max-width: 1100px) {
    .coming-soon {
        margin-inline: 40px;
    }

    .coming-grid {
        gap: 24px;
    }

    .coming-art {
        border-radius: 24px;
    }
}

/* MOBILE */

@media (max-width: 750px) {
    .coming-soon {
        margin-inline: 32px;
    }

    .coming-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .coming-copy {
        padding-top: 28px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .coming-art,
    .coming-art.cursor-ready .coming-view {
        transition: none;
    }
}

/* Hidden until the section is reached */
.coming-soon.scroll-ready h2,
.coming-soon.scroll-ready .coming-card {
    opacity: 0;
}

/* Heading first */
.coming-soon.scroll-visible h2 {
    animation: coming-enter 700ms ease both;
}

/* Cards follow */
.coming-soon.scroll-visible .coming-card {
    animation: coming-enter 800ms
        cubic-bezier(0.22, 1, 0.36, 1) both;
}

.coming-soon.scroll-visible .coming-card:nth-child(1) {
    animation-delay: 100ms;
}

.coming-soon.scroll-visible .coming-card:nth-child(2) {
    animation-delay: 200ms;
}

.coming-soon.scroll-visible .coming-card:nth-child(3) {
    animation-delay: 300ms;
}

@keyframes coming-enter {
    from {
        opacity: 0;
        translate: 0 25px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .coming-soon.scroll-ready h2,
    .coming-soon.scroll-ready .coming-card {
        opacity: 1;
        animation: none;
        translate: none;
    }
}


/* Hidden on desktop */
.mobile-navigation {
    display: none;
}

@media (max-width: 750px) {

    /* HERO */

    .hero {
        min-height: 85svh;
        grid-template-rows: 1fr auto;
        padding-top: 100px;
        padding-bottom: 55px;
        overflow: visible;
    }

    .intro {
        position: relative;
        top: 0;
        padding: 45px 24px 80px;
        text-align: center;
    }

    #hero-name {
        font-size: clamp(28px, 8vw, 60px);
        letter-spacing: 0.01em;
        line-height: 1.2;
        white-space: nowrap;
    }

    .subtitle {
        max-width: 560px;
        margin: 18px auto 0;
        font-size: clamp(17px, 2.6vw, 22px);
        line-height: 1.5;
        text-wrap: balance;
    }

    /* Hide desktop pills */
    .hero-nav {
        display: none;
    }

    /* MOBILE NAVIGATION */

    .mobile-navigation {
        display: block;
        position: relative;
        width: 100%;
        z-index: 10;
    }

    .mobile-nav-strip {
        display: flex;
        align-items: center;
        gap: clamp(20px, 5vw, 40px);
        width: 100%;
    }

    .mobile-bar {
        display: block;
        height: clamp(38px, 6vw, 52px);
        background: var(--mint-light);
    }

    .mobile-bar-left {
        flex: 3 1 0;
        border-radius: 0 999px 999px 0;
    }

    .mobile-bar-right {
        flex: 1 1 0;
        border-radius: 999px 0 0 999px;
    }

    .mobile-menu-toggle {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 7px;

        width: clamp(48px, 11vw, 80px);
        min-height: 48px;
        padding: 0;

        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 7px;
        border-radius: 999px;
        background: var(--yellow);

        transition:
            transform 250ms ease,
            opacity 250ms ease;
    }

    /* Turn the menu icon into an X when open */
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(14px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-14px) rotate(-45deg);
    }

    .mobile-menu-toggle:focus-visible {
        outline: 2px solid var(--ink);
        outline-offset: 8px;
        border-radius: 6px;
    }

    /* Menu opens above the bar */
    .mobile-menu {
        position: absolute;
        right: 24px;
        bottom: calc(100% + 24px);

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;

        width: min(320px, calc(100vw - 48px));
        padding: 16px;
        border: 1px solid var(--mint-light);
        border-radius: 24px;
        background: var(--paper);
        box-shadow: 0 12px 35px rgb(74 74 74 / 10%);
    }

    .mobile-menu[hidden] {
        display: none;
    }

    .mobile-menu a {
        display: block;
        padding: 12px 14px;
        border-radius: 999px;
        background: var(--mint);
        color: var(--ink);

        font-size: 17px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }

    .mobile-menu a:nth-child(2),
    .mobile-menu a:last-child {
        background: var(--yellow);
    }

    .mobile-menu a:focus-visible {
        outline: 2px solid var(--ink);
        outline-offset: 3px;
    }

    /* STACKED PROJECT CARDS */

    .featured-work,
    .coming-soon {
        margin-inline: 32px;
    }

    .work-grid,
    .coming-grid {
        grid-template-columns: 1fr;
        width: min(100%, 480px);
        margin-inline: auto;
        gap: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-toggle span {
        transition: none;
    }
}

@media (max-width: 750px) {
    /* Thinner mint arch */
    .name-bridge .bridge-curve {
        stroke-width: 8px;
    }

    /* Larger name */
    #hero-name {
        font-size: clamp(32px, 10vw, 100px);
        letter-spacing: 0;
    }
}

html,
body {
    overflow-x: clip;
}

.name-bridge.scroll-morph {
    position: fixed !important;
}

.name-bridge.scroll-morph.is-ready {
    animation: none !important;
    transform: none !important;
    translate: none !important;
    rotate: none !important;
}