/* ========================================
   GLOBAL
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --playful-citrus: #eef28a;
    --playful-coral: #ffad98;
    --playful-sky: #a9dff0;
    --playful-mint: #b7e5c8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    color: #111;
    background: #fff;
}

body.has-custom-cursor,
body.has-custom-cursor * {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10002;
    width: 14px;
    height: 14px;
    opacity: 0;
    pointer-events: none;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #ff7058;
    transform: translate(-50%, -50%);
    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.custom-cursor.is-visible {
    opacity: 1;
}

.custom-cursor.is-clickable::before {
    background: #79c7df;
    transform: translate(-50%, -50%) scale(2);
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   HOME — HERO
======================================== */

.hero {
    width: 100%;
    aspect-ratio: 3.45 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--playful-citrus);
}

.hero-content {
    text-align: center;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(64px, 8vw, 130px);
    letter-spacing: -5px;
}

.hero p {
    margin-bottom: 0;
    font-size: 20px;
    color: #555;
}

.hero-button {
    display: inline-block;
    padding: 14px 22px;
    border: 1px solid #111;
    border-radius: 5px;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s ease;
}

.hero-button:hover {
    color: #fff;
    background: #111;
}

/* ========================================
   HOME — PORTFOLIO LAYOUT
======================================== */

.portfolio {
    max-width: 1500px;
    margin: 0 auto;
    padding: 35px;
    display: grid;
    grid-template-columns: 266px 1fr;
    gap: 35px;
}

/* ========================================
   HOME — SIDEBAR
======================================== */

.sidebar {
    position: sticky;
    top: 35px;
    height: fit-content;
}

/* ========================================
   IDENTITY / LOGO
======================================== */

.identity {
    margin-bottom: 79px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
}

.profile-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.profile-placeholder {
    width: 216px;
    height: 79px;
    margin-bottom: 7px;
    border-radius: 0;
}

.identity-text h2,
.identity h2 {
    font-size: 17px;
    font-weight: 600;
}

.identity-text p,
.identity p {
    margin-top: 5px;
    font-size: 13px;
    color: #888;
}

/* ========================================
   HOME — MAIN NAVIGATION
======================================== */

.main-navigation,
.sidebar nav,
.sidebar-navigation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.main-navigation > a,
.sidebar nav > a,
.sidebar-navigation a {
    display: block;
    padding: 20px 17px;
    color: #777;
    text-decoration: none;
    font-size: 19px;
    border: 1px solid transparent;
    border-radius: 7px;
    transition: 0.2s;
}

.main-navigation > a:hover,
.sidebar nav > a:hover,
.sidebar-navigation a:hover,
.mobile-menu a.mobile-main-link:hover {
    background: #f5f5f5;
}

.main-navigation > a.active,
.sidebar nav > a.active,
.sidebar-navigation a.active,
.mobile-menu a.mobile-main-link.active {
    border-color: #ddd;
}

/* ========================================
   ABOUT ME + CONTACT

   ALWAYS ONE UNDER ANOTHER
======================================== */

.nav-secondary,
.sidebar-secondary {
    width: 100%;
    margin-top: 43px;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px;
}

.nav-secondary a,
.sidebar-secondary a {
    display: block;
    width: 100%;
    padding: 14px 17px;
    color: #888;
    text-decoration: none;
    font-size: 20px;
    text-transform: none;
    transition: 0.2s;
}

.nav-secondary a:hover,
.sidebar-secondary a:hover {
    color: #111;
}

/* ========================================
   PROJECT GRID
======================================== */

.content-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body[data-page='work'] .content-panel,
body[data-page='play'] .content-panel {
    gap: 40px;
}

.page-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-intro h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.page-intro p {
    margin: 0;
    max-width: none;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.info-page {
    max-width: 760px;
}

.info-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-copy h2,
.info-copy h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.info-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.info-copy a {
    color: #111;
    text-decoration: underline;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px 14px;
}

.project-link {
    color: inherit;
    text-decoration: none;
}

.project {
    cursor: pointer;
}

/* ========================================
   PROJECT THUMBNAILS
======================================== */

.project-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 0;
    background: #ddd;
    transition: transform 0.25s ease;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.project:hover .project-image img {
    transform: scale(1.04);
}

/* TEMPORARY PROJECT COLOURS */

.project-1 {
    background-image: url('../../images/pinball/pinball.JPG.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-3 {
    background-image: url('../../images/sundial/sundial.jpg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-4 {
    background: #badbc3;
}

.project-5 {
    background: #b8d8ff;
}

.project-6 {
    background: #dedede;
}

.project-lab-knitting {
    background-color: #f2b7a4;
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0 16px,
        rgba(255, 255, 255, 0.3) 16px 19px
    );
}

.project-lab-paintings {
    background-color: #a9dff0;
    background-image:
        radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.55) 0 12%, transparent 13%),
        radial-gradient(circle at 70% 65%, rgba(238, 242, 138, 0.8) 0 18%, transparent 19%);
}

.project-walkie-talkie {
    background-color: #eef28a;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 3px, transparent 3.5px);
    background-size: 26px 26px;
}

.project-clock-exhibition {
    background-color: #ffad98;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0 34px,
        rgba(255, 255, 255, 0.3) 34px 37px
    );
}

/* ========================================
   PROJECT CARD INFORMATION
======================================== */

.project-info {
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 0;
    font-size: 15px;
}

.project-info p {
    font-size: 13px;
    color: #555;
}

.project-info span {
    display: block;
    color: #777;
    font-size: 12px;
    white-space: nowrap;
}

/* ========================================
   PROJECT PAGE — GENERAL
======================================== */

.project-page {
    background: #fff;
}

.case-layout {
    max-width: 1600px;
    margin: 0 auto;
    padding: 35px;
    display: grid;
    grid-template-columns: 266px minmax(0, 1fr);
    gap: 55px;
}

/* ========================================
   PROJECT PAGE — SIDEBAR
======================================== */

.case-sidebar {
    position: sticky;
    top: 35px;
    align-self: start;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
}

/* ========================================
   PROJECT SIDEBAR IDENTITY
======================================== */

.sidebar-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    color: #111;
    text-decoration: none;
}

.sidebar-identity .profile-placeholder {
    width: 216px;
    height: 79px;
    margin-bottom: 7px;
    background: transparent;
    border-radius: 0;
}

.sidebar-identity h2 {
    font-size: 17px;
    font-weight: 600;
}

.sidebar-identity p {
    margin-top: 4px;
    font-size: 13px;
    color: #888;
}

/* ========================================
   PROJECT SIDEBAR — MAIN LINKS
======================================== */

.sidebar-navigation {
    margin-top: 79px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-navigation a {
    display: block;
    padding: 20px 17px;
    color: #777;
    text-decoration: none;
    font-size: 19px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 7px;
    transition: 0.2s;
}

.sidebar-navigation a:hover {
    color: #111;
    background: #f5f5f5;
}

.sidebar-navigation a.active {
    color: #111;
    border-color: #ddd;
}

/* ========================================
   PROJECT SIDEBAR — ABOUT + CONTACT
======================================== */

.sidebar-secondary {
    width: 100%;
    margin-top: 43px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.sidebar-secondary a {
    display: block;
    width: 100%;
    padding: 14px 17px;
    color: #888;
    text-decoration: none;
    font-size: 20px;
    text-transform: none;
}

.sidebar-secondary a:hover {
    color: #111;
}

/* ========================================
   MOBILE HEADER
   HIDDEN ON DESKTOP
======================================== */

.mobile-header,
.mobile-menu {
    display: none;
}

/* ========================================
   PROJECT CONTENT
======================================== */

.case-content {
    min-width: 0;
    padding-top: 15px;
}

/* ========================================
   PROJECT TITLE
======================================== */

.case-title {
    padding: 10px 0 55px;
    text-align: center;
}

.sundial-hero {
    margin: 30px 0 50px;
}

.sundial-hero-main {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 40px;
}

.sundial-hero-copy {
    padding: 20px 0;
}

.sundial-hero h1 {
    margin: 0 0 38px;
    color: #ef7f25;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
}

.sundial-hero-meta {
    margin: 0 0 22px;
    color: #555;
    font-size: 14px;
}

.sundial-hero-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 330px;
}

.sundial-hero-description p {
    font-size: 16px;
    line-height: 1.5;
    color: #222;
}

.sundial-hero-visual {
    position: relative;
    min-width: 0;
    height: clamp(420px, 42vw, 600px);
    overflow: hidden;
}

.sundial-hero-visual img {
    position: relative;
    left: -15%;
    width: 130%;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.sundial-hover-image {
    transform-origin: center;
    transition: transform 0.35s ease;
}

.sundial-hover-image:hover {
    transform: scale(1.02);
}

.sundial-hero .case-skills {
    width: 100%;
    max-width: none;
    margin: 28px 0 0;
    padding: 10px 0;
    display: block;
    overflow: hidden;
    border-top-width: 2px;
    border-bottom-width: 2px;
}

.sundial-hero .case-skills span {
    font-size: clamp(12px, 1.3vw, 15px);
    font-weight: 600;
    white-space: nowrap;
}

.case-skills-track {
    display: flex;
    width: max-content;
    animation: skills-marquee 24s linear infinite;
}

.case-skills-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    gap: clamp(12px, 2vw, 24px);
    padding-right: clamp(24px, 3vw, 42px);
}

.sundial-hero .case-skills:hover .case-skills-track {
    animation-play-state: paused;
}

@keyframes skills-marquee {
    to {
        transform: translateX(-33.3333%);
    }
}

.case-title h1 {
    margin-bottom: 18px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.case-year {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #999;
}

.case-type {
    font-size: 15px;
    color: #999;
}

/* ========================================
   PROJECT HERO IMAGE
======================================== */

.case-hero {
    width: 100%;
    margin-bottom: 55px;
}

.case-hero img {
    width: 100%;
    max-height: 750px;
    object-fit: cover;
}

/* ========================================
   CASE STUDY SECTIONS
======================================== */

.case-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0;
}

.case-section-heading {
    max-width: 900px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.case-section-heading span {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    color: #aaa;
}

.case-section-heading h2 {
    font-size: clamp(21px, 2.5vw, 32px);
    letter-spacing: -0.03em;
}

.case-text {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.case-text p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.65;
    color: #333;
}

.prototype-details h3 {
    margin: 24px 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.case-intro-text {
    margin-bottom: 20px;
}

/* ========================================
   PROJECT METADATA
======================================== */

.case-meta {
    margin-top: 55px;
    padding-top: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    border-top: 1px solid #ddd;
}

.case-meta span {
    display: block;
    margin-bottom: 8px;
    font-size: 9px;
    color: #999;
}

.case-meta p {
    font-size: 12px;
    line-height: 1.4;
}

/* ========================================
   RESEARCH
======================================== */

.research-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.research-layout img {
    width: 100%;
}

/* ========================================
   SKILLS STRIP
======================================== */

.case-skills {
    max-width: 1050px;
    margin: 20px auto 40px;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.case-skills span {
    font-size: 9px;
}

/* ========================================
   LARGE PROJECT IMAGES
======================================== */

.case-wide-image {
    width: 100%;
    height: auto;
    margin: 35px 0 25px;
}

.sundial-prototype-gallery {
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, 2vw, 28px);
    margin-top: 24px;
    container-type: inline-size;
}

.sundial-prototype-gallery img {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: clamp(180px, 30cqw, 360px);
    object-fit: contain;
}

.sundial-action-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.sundial-action-gallery figure {
    margin: 0;
}

.sundial-action-gallery img {
    width: 100%;
    height: auto;
}

.sundial-action-gallery figcaption {
    margin-top: 8px;
    color: #555;
    font-size: 16.1px;
    font-weight: 600;
    text-align: center;
}

.toko-detail-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 35px;
}

.toko-detail-gallery img {
    width: 100%;
    height: auto;
}

.case-caption {
    margin-top: 12px;
    font-size: 11px;
    color: #777;
}

/* ========================================
   TWO TEXT COLUMNS
======================================== */

.case-two-text-columns {
    margin-top: 45px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 55px;
}

.case-two-text-columns p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* ========================================
   NEXT PROJECTS
======================================== */

.case-next {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0 80px;
}

.case-next-label {
    display: block;
    margin: 0 auto 20px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #111;
}

.case-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.next-project-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.next-project-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 10px;
    overflow: hidden;
}

.next-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.next-project-info > div {
    flex: 1 1 auto;
    min-width: 0;
}

.next-project-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.next-project-info span {
    display: block;
    color: #777;
    font-size: 11px;
    white-space: nowrap;
}

/* ========================================
   TABLET — HOME
======================================== */

@media (max-width: 1000px) {
    .hero h1 {
        margin-bottom: 16px;
        font-size: 36px;
        letter-spacing: 0;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-button {
        padding: 12px 20px;
    }

    .portfolio {
        display: block;
        padding: 0 35px 35px;
    }

    .sidebar {
        display: none;
    }

    .projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-link-static .project {
        cursor: default;
    }
}

/* ========================================
   PROJECT PAGE — TABLET / MOBILE
======================================== */

@media (max-width: 1000px) {
    .case-next-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-next-grid > .next-project-card:nth-child(n + 3) {
        display: none;
    }

    .case-layout {
        display: block;
        padding: 0 35px 35px;
    }

    .case-sidebar {
        display: none;
    }

    /* MOBILE TOP HEADER */

    .mobile-header {
        width: 100%;
        padding: 25px 35px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fff;
    }

    .home-mobile-header {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .mobile-brand {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 6px);
        display: inline-block;
        color: #111;
        text-decoration: none;
    }

    .menu-button {
        margin-left: auto;
    }

    .mobile-brand .profile-placeholder {
        width: 180px;
        height: 66px;
        margin: 0;
        background: transparent;
        border-radius: 0;
        display: block;
    }

    .mobile-header:has(+ .mobile-menu.open) .mobile-brand .profile-placeholder {
        display: none;
    }

    .mobile-header:has(+ .mobile-menu.open) {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1001;
        background: transparent;
    }

    /* HAMBURGER */

    .menu-button {
        padding: 5px;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 27px;
        line-height: 1;
    }

    /* DROPDOWN MENU */

    .mobile-menu {
        width: 100%;
        padding: 15px 35px 25px;
        display: none;
        flex-direction: column;
        background: #fff;
    }

    .mobile-menu.open {
        position: fixed;
        inset: 0;
        z-index: 1000;
        height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 25px 35px;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu a {
        padding: 13px 0;
        text-align: center;
        color: #777;
        text-decoration: none;
        font-size: 18px;
    }

    .mobile-menu a.active {
        color: #111;
    }

    .mobile-menu a.mobile-secondary-link[href*='about.html']::before {
        width: 14px;
        height: 1px;
        margin: 0 auto 28px;
        background: #111;
    }

    /* PROJECT CONTENT */

    .case-content {
        padding-top: 0;
    }

    .case-title {
        padding: 70px 0 45px;
    }

    .case-hero {
        margin-bottom: 30px;
    }

    .case-section {
        padding: 32px 0;
    }

    .case-skills {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 720px) {
    .sundial-prototype-gallery {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        overflow: visible;
    }

    .sundial-prototype-gallery img {
        width: 100%;
        max-width: 100%;
        height: clamp(280px, 90vw, 420px);
    }

    .sundial-action-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .toko-detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sundial-hero-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sundial-hero-copy {
        padding: 0;
    }

    .sundial-hero h1 {
        margin-bottom: 24px;
        font-size: clamp(38px, 10vw, 58px);
    }

    .sundial-hero-description {
        max-width: none;
    }

    .sundial-hero-visual {
        height: clamp(320px, 80vw, 450px);
    }

    .sundial-hero-visual img {
        left: -10%;
        width: 120%;
    }

    .sundial-hero .case-skills {
        margin-top: 22px;
    }

    .case-skills-group {
        flex: 0 0 auto;
        width: max-content;
        justify-content: flex-start;
        gap: 24px;
        padding-right: 24px;
    }

    .case-skills-track {
        width: max-content;
    }
}

@media (prefers-reduced-motion: reduce) {
    .case-skills-track {
        animation: none;
        width: 100%;
    }

    .case-skills-group:first-child {
        flex: 0 0 100%;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-right: 0;
    }

    .case-skills-group:not(:first-child) {
        display: none;
    }

    .sundial-hover-image {
        transition: none;
    }

    .sundial-hover-image:hover {
        transform: none;
    }
}

/* ========================================
   MOBILE — HOME
======================================== */

@media (max-width: 650px) {
    .hero h1 {
        margin-bottom: 10px;
        font-size: 32px;
        letter-spacing: 0;
    }

    .hero p {
        font-size: 14px;
    }

    .portfolio {
        display: block;
        padding: 20px;
    }

    .sidebar {
        position: static;
        margin-bottom: 40px;
    }

    .identity {
        margin-bottom: 45px;
        gap: 12px;
    }

    .identity .profile-placeholder {
        width: 150px;
        height: 55px;
        margin-bottom: 5px;
        border-radius: 0;
    }

    .main-navigation > a,
    .sidebar nav > a {
        padding: 12px 10px;
        font-size: 13px;
    }

    /* IMPORTANT:
       KEEP ALL HOME NAVIGATION VERTICAL
    */

    .main-navigation,
    .sidebar nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }

    /* ABOUT + CONTACT ALSO VERTICAL */

    .nav-secondary {
        width: 100%;
        margin-top: 25px;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px;
    }

    .nav-secondary a {
        display: block;
        width: 100%;
        padding: 8px 10px;
        font-size: 13px;
    }

    /* PROJECT GRID */

    .projects {
        grid-template-columns: 1fr;
    }

    /* PROJECT PAGE */

    .mobile-header {
        padding: 20px;
    }

    .home-mobile-header {
        padding-top: 35px;
        padding-bottom: 60px;
    }

    .mobile-menu {
        padding: 10px 20px 20px;
    }

    .case-layout {
        padding: 0 20px 20px;
    }

    .case-title {
        padding: 55px 0 35px;
    }

    .case-title h1 {
        font-size: 26px;
    }

    /* RESEARCH */

    .research-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* METADATA */

    .case-meta {
        grid-template-columns: 1fr 1fr;
    }

    /* SKILLS */

    .case-skills {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* TEXT */

    .case-two-text-columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* FINAL */

    .case-final {
        margin: 70px auto 0;
        padding: 0 20px;
    }

    .case-final-grid {
        display: block;
        gap: 45px;
    }

    /* NEXT PROJECT */

    .case-next {
        padding: 75px 0 50px;
    }

    .case-next-grid {
        grid-template-columns: 1fr;
    }

    .case-next-grid > .next-project-card:nth-child(n + 2) {
        display: none;
    }
}

@media (max-width: 620px) {
    .case-next-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CLEAN NAVIGATION STYLE
======================================== */

/* HOME / WORK / LAB */

.main-navigation > a,
.sidebar nav > a,
.sidebar-navigation a,
.mobile-menu a.mobile-main-link {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #111;
    font-weight: 400;
    transition:
        font-weight 0.15s ease,
        color 0.15s ease;
}

/* HOVER */

.main-navigation > a:hover,
.sidebar nav > a:hover,
.sidebar-navigation a:hover,
.mobile-menu a.mobile-main-link:hover {
    background: transparent !important;
    border: none !important;
    color: #111;
    font-weight: 700;
}

/* CURRENT PAGE */

.main-navigation > a.active,
.sidebar nav > a.active,
.sidebar-navigation a.active,
.mobile-menu a.mobile-main-link.active {
    background: transparent !important;
    border: none !important;
    color: #111;
    font-weight: 700;
}

/* ABOUT ME + CONTACT */

.nav-secondary a,
.sidebar-secondary a,
.mobile-menu a.mobile-secondary-link {
    background: transparent !important;
    border: none !important;
    font-weight: 400;
    transition:
        font-weight 0.15s ease,
        color 0.15s ease;
}

/* ABOUT ME + CONTACT HOVER */

.nav-secondary a:hover,
.sidebar-secondary a:hover,
.mobile-menu a.mobile-secondary-link:hover {
    background: transparent !important;
    color: #888;
    font-weight: 400;
}

/* ABOUT ME + CONTACT CURRENT PAGE */

.nav-secondary a.active,
.sidebar-secondary a.active,
.mobile-menu a.mobile-secondary-link.active {
    color: #888;
    font-weight: 400;
}

.mobile-menu a.mobile-secondary-link {
    text-transform: none;
}

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    margin-top: 72px;
    padding: 24px 20px 48px;
    color: #111;
    text-align: center;
}

body[data-page='home'] .site-footer {
    margin-top: 112px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer-top {
    font-size: 18px;
}

.site-footer-socials {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-social {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
}

.behance-mark {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}

.linkedin-mark {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}

.instagram-mark svg {
    width: 20px;
    height: 20px;
}

.site-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Keep thumbnail frames still; zoom only the image inside. */

.project-image,
.next-project-thumb {
    overflow: hidden;
}

.project-image img,
.next-project-thumb img {
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.project-link:hover .project-image img,
.project-link:focus-visible .project-image img,
.next-project-card:hover .next-project-thumb img,
.next-project-card:focus-visible .next-project-thumb img {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .project-image img,
    .next-project-thumb img {
        transition: none;
    }
}

/* Project colours: shared accents inspired by the print portfolio. */

.project-page[data-project='toko'] {
    --project-accent: rgb(84% 34.2% 20.7%);
    --project-detail: rgb(84% 34.2% 20.7%);
}

.project-page[data-project='sundial'] {
    --project-accent: rgb(94.4% 51.9% 16.7%);
    --project-detail: rgb(94.4% 51.9% 16.7%);
}

.project-page[data-project='pinball'] {
    --project-accent: rgb(98% 70.9% 4.3%);
    --project-detail: rgb(98% 70.9% 4.3%);
}

.project-page[data-project='combo'] {
    --project-accent: rgb(88.6% 41.9% 51.9%);
    --project-detail: rgb(88.6% 41.9% 51.9%);
}

.project-page[data-project='skates'] {
    --project-accent: #326da5;
    --project-detail: #285b8c;
}

.project-page[data-project='walkie-talkie'] {
    --project-accent: #c87586;
    --project-detail: #a95164;
}

.project-page[data-project='clock'] {
    --project-accent: #95702a;
    --project-detail: #79591e;
}

.project-page[data-project='knitting'] {
    --project-accent: #b65d45;
    --project-detail: #984a35;
}

.project-page[data-project='paintings'] {
    --project-accent: #285b78;
    --project-detail: #285b78;
}

.project-page[data-project] .case-title h1,
.project-page[data-project] .sundial-hero h1,
.project-page[data-project] .case-section-heading h2 {
    color: var(--project-accent);
}

.project-page[data-project] .case-type,
.project-page[data-project] .case-text h3,
.project-page[data-project] .case-skills,
.project-page[data-project] .case-skills span {
    color: var(--project-detail);
}

.project-page[data-project] .case-skills {
    border-color: var(--project-accent);
}

.project-page[data-project] .case-text a {
    color: var(--project-detail);
    text-decoration-color: var(--project-accent);
}

/* Match project dates to their category accent. */

.project-page[data-project] .case-year {
    color: var(--project-detail);
}

/* Softer metadata keeps the project title first in the hierarchy. */

.project-page[data-project] .case-year,
.project-page[data-project] .case-type {
    color: color-mix(in srgb, var(--project-accent) 65%, white);
}

/* COMBO: full objects and side-by-side drawing comparisons. */

[data-project='combo'] .combo-hero {
    max-height: 650px;
    object-fit: contain;
}

[data-project='combo'] .combo-brand {
    width: 240px;
    max-width: 100%;
    height: auto;
    margin-top: 24px;
}

[data-project='combo'] .combo-image-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 24px 0 40px;
}

[data-project='combo'] .combo-image-pair figure {
    margin: 0;
    min-width: 0;
}

[data-project='combo'] .combo-image-pair img {
    width: 100%;
    height: 520px;
    object-fit: contain;
}

[data-project='combo'] .combo-image-pair figcaption {
    margin-top: 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    [data-project='combo'] .combo-image-pair {
        grid-template-columns: 1fr;
    }

    [data-project='combo'] .combo-image-pair img {
        height: auto;
        max-height: 540px;
        object-fit: contain;
    }
}

/* Cat positioned against the viewport edge, using the cropped image ratio. */

body[data-project='combo'] {
    position: relative;
    overflow-x: clip;
}

[data-project='combo'] .combo-edge-decoration {
    position: absolute;
    right: -110px;
    top: 310px;
    width: clamp(114.75px, 11.475vw, 179.775px);
    aspect-ratio: 1075 / 2584;
    z-index: 2;
    transform: rotate(-20deg);
    transform-origin: center bottom;
    transition: transform 0.4s ease;
}

[data-project='combo'] .combo-edge-decoration::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../images/combo/combo_4.PNG.webp') center / contain no-repeat;
}

@media (hover: hover) and (pointer: fine) {
    [data-project='combo'] .combo-edge-decoration:hover {
        transform: translateX(-40px) rotate(-28deg);
    }
}

@media (max-width: 1024px) {
    [data-project='combo'] .combo-edge-decoration {
        top: 265px;
        right: -95px;
        width: 133.875px;
    }
}

@media (max-width: 640px) {
    [data-project='combo'] .combo-edge-decoration {
        top: 175px;
        right: -75px;
        width: 95.625px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-project='combo'] .combo-edge-decoration {
        transition: none;
    }
}

/* Keep the existing logo slot so surrounding content does not move. */

[data-project='combo'] .combo-brand {
    visibility: hidden;
}

[data-project='combo'] .case-title {
    position: relative;
}

[data-project='combo'] .case-title::after {
    position: absolute;
    right: 0;
    background: url('../../images/shared/combo_logo.png') center / contain no-repeat;
    pointer-events: none;
}

/* Logo follows the measured title-to-category height. */

[data-project='combo'] .case-title::after {
    height: var(--combo-title-height, 130px);
    width: auto;
    aspect-ratio: 409 / 123;
}

@media (max-width: 640px) {
    [data-project='combo'] .case-title::after {
        top: 0;
        width: auto;
        height: var(--combo-title-height, 110px);
        max-width: 42%;
        background-position: right center;
    }
}

[data-project='combo'] .case-title::after {
    top: var(--combo-title-top, 0px);
}

[data-project='toko'] .case-title {
    position: relative;
}

[data-project='toko'] .toko-project-logo {
    position: absolute;
    right: 0;
    width: auto;
    max-width: 22%;
    object-fit: contain;
    object-position: right center;
}

@media (max-width: 640px) {
    [data-project='toko'] .toko-project-logo {
        max-width: 18%;
    }
}

.about-portrait {
    width: clamp(190px, 26vw, 300px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 48% center;
    border-radius: 50%;
    align-self: flex-start;
}

/* Portfolio-inspired introduction: portrait and handwritten greeting. */

.info-page:has(.about-hero) {
    max-width: 1100px;
    gap: 64px;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding: 40px 0;
}

.about-hero .about-portrait {
    width: 100%;
    max-width: 370px;
    justify-self: center;
    align-self: center;
}

.about-hero-copy {
    min-width: 0;
    gap: 18px;
}

.about-hero-copy h1 {
    margin: 0;
}

.about-hello {
    width: 180px;
    max-width: 65%;
    height: auto;
}

@media (max-width: 680px) {
    .about-hero {
        grid-template-columns: 1fr;
        padding: 16px 0;
        gap: 30px;
    }

    .about-hero .about-portrait {
        max-width: 280px;
    }

    .about-hero-copy {
        width: 100%;
    }
}

.info-copy a.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 14px 24px;
    border-radius: 8px;
    background: #f5d7ce;
    color: #703522;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.info-copy a.cv-button:hover {
    background: #efc0b2;
}

.info-copy a.cv-button:focus-visible {
    outline: 2px solid #a83e29;
    outline-offset: 4px;
}

/* Slow decorative wheels; content and controls stay above them. */

body[data-project='skates'] {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

[data-project='skates'] .skates-wheels {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

[data-project='skates'] .skates-wheel {
    position: absolute;
    width: clamp(144.5px, 20.4vw, 289px);
    height: auto;
    animation: skates-wheel-turn 65s linear infinite;
}

[data-project='skates'] .skates-wheel-yellow {
    top: 130px;
    right: -160px;
}

[data-project='skates'] .skates-wheel-blue {
    top: 62%;
    left: -170px;
    animation-direction: reverse;
    animation-duration: 80s;
}

@keyframes skates-wheel-turn {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    [data-project='skates'] .skates-wheel {
        width: 187px;
    }

    [data-project='skates'] .skates-wheel-yellow {
        right: -145px;
        top: 95px;
    }

    [data-project='skates'] .skates-wheel-blue {
        left: -150px;
    }
}

@media (max-width: 640px) {
    [data-project='skates'] .skates-wheel {
        width: 144.5px;
    }

    [data-project='skates'] .skates-wheel-yellow {
        right: -130px;
        top: 90px;
    }

    [data-project='skates'] .skates-wheel-blue {
        left: -130px;
        top: 70%;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-project='skates'] .skates-wheel {
        animation: none;
    }
}

/* Keep recommendation images inside identical frames regardless of source proportions. */

.project-page .next-project-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-page .next-project-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

/* Temporary typographic identity inside the existing logo area. */

.profile-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #111;
    text-align: center;
}

.profile-placeholder .brand-name {
    font-size: clamp(16px, 2vw, 21px);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.profile-placeholder .brand-role {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: #555;
}

/* Software logos with readable labels and consistent visual size. */

.software-tools {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    margin: 22px 0 18px;
    padding: 0;
}

.software-tools li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 86px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.software-tools img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .software-tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Playful CV button matching the homepage citrus palette. */

.cv-button {
    background: var(--playful-citrus);
    color: #252817;
}

.cv-button:hover {
    background: #e2e86c;
    color: #252817;
}

.cv-button:focus-visible {
    outline-color: #737c22;
}

.project-page[data-project='iron'] {
    --project-accent: #b52b32;
    --project-detail: #b52b32;
}

/* Banner option 2: custom block lettering. */

.block-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    aspect-ratio: auto;
    height: auto;
    padding: 25px 35px 32px;
    background: #f2f0e9;
    overflow: hidden;
}

.block-hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    font-size: 13px;
    line-height: 1.4;
    color: #30302b;
}

.block-hero .block-name {
    width: 100%;
    margin: 0;
    line-height: 0;
    font-size: inherit;
    letter-spacing: normal;
}

.block-name svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    fill: #262626;
}

@media (max-width: 640px) {
    .block-hero {
        padding: 20px 18px 24px;
        gap: 22px;
    }

    .block-hero-meta {
        font-size: 11px;
        gap: 12px;
    }

    .block-hero-meta span:last-child {
        text-align: right;
        max-width: 140px;
    }
}

/* TOKO wordmark replaces the first word in the project heading. */

[data-project='toko'] .case-title .toko-logo-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2em;
}

[data-project='toko'] .toko-heading-logo {
    display: block;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

/* Increase project title hierarchy by 15%; align TOKO logo to capital height. */

.project-page .case-year {
    font-size: 18.515px;
}

.project-page .case-type {
    font-size: 19.8375px;
}

[data-project='toko'] .toko-heading-logo {
    height: 1cap;
}

/* Responsive identity, edge-to-edge wide media and full-width recommendations. */

.mobile-brand .profile-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-brand .profile-placeholder .brand-name {
    display: block;
    font-size: 18px;
    line-height: 1.15;
}

.mobile-brand .profile-placeholder .brand-role {
    display: block;
    font-size: 12px;
    line-height: 1.3;
}

.project-page .case-next {
    width: 100%;
    min-width: 0;
}

.project-page .case-next-grid {
    width: 100%;
}

.project-page .next-project-card {
    min-width: 0;
}

@media (max-width: 1000px) {
    .project-page {
        --project-gutter: 35px;
    }

    .project-page .case-content {
        width: 100%;
    }

    .project-page .case-hero,
    .project-page .case-wide-image,
    .project-page .pinball-gallery-single {
        width: calc(100% + var(--project-gutter) * 2);
        max-width: none;
        margin-left: calc(-1 * var(--project-gutter));
        margin-right: calc(-1 * var(--project-gutter));
    }

    .project-page .case-hero img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .project-page .case-next-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .project-page {
        --project-gutter: 20px;
    }

    .project-page .case-next-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .project-page .case-next-grid > .next-project-card:nth-child(n + 2) {
        display: none;
    }
}

/* Larger links in the tablet/mobile navigation overlay. */

@media (max-width: 1000px) {
    .mobile-menu.open {
        gap: 8px;
        overflow-y: auto;
    }

    .mobile-menu a.mobile-main-link,
    .mobile-menu a.mobile-secondary-link {
        font-size: clamp(30px, 5vw, 48px);
        line-height: 1.2;
        padding: 10px 16px;
    }

    .mobile-menu a.mobile-secondary-link[href*='about.html']::before {
        content: none;
        display: none;
    }
}

@media (max-height: 500px) and (max-width: 1000px) {
    .mobile-menu.open {
        gap: 2px;
        padding-top: 65px;
        padding-bottom: 20px;
    }

    .mobile-menu a.mobile-main-link,
    .mobile-menu a.mobile-secondary-link {
        font-size: 26px;
        padding: 6px 16px;
    }
}

/* Small playful colour accents in the expanded navigation. */

@media (max-width: 1000px) {
    .mobile-menu a[href$='index.html'] {
        --menu-accent: var(--playful-citrus);
    }

    .mobile-menu a[href$='work.html'] {
        --menu-accent: var(--playful-coral);
    }

    .mobile-menu a[href$='play.html'] {
        --menu-accent: var(--playful-sky);
    }

    .mobile-menu a[href$='about.html'] {
        --menu-accent: var(--playful-mint);
    }

    .mobile-menu a[href$='contact.html'] {
        --menu-accent: var(--playful-citrus);
    }

    .mobile-menu a.mobile-main-link,
    .mobile-menu a.mobile-secondary-link {
        border-radius: 12px !important;
        transition:
            background-color 0.2s ease,
            color 0.2s ease;
    }

    .mobile-menu a.mobile-main-link.active,
    .mobile-menu a.mobile-secondary-link.active,
    .mobile-menu a.mobile-main-link:hover,
    .mobile-menu a.mobile-secondary-link:hover,
    .mobile-menu a.mobile-main-link:focus-visible,
    .mobile-menu a.mobile-secondary-link:focus-visible {
        background: var(--menu-accent) !important;
        color: #111;
    }

    .mobile-menu a:focus-visible {
        outline: 2px solid #111;
        outline-offset: 3px;
    }
}

/* Quiet temporary banner and more breathing room before the project grid. */

.block-hero {
    min-height: 110px;
}

.block-hero .banner-small-name {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    margin: 0;
}

@media (max-width: 1000px) {
    body[data-page='home'] .home-mobile-header {
        margin-top: 28px;
    }

    body[data-page='home'] .portfolio {
        margin-top: 25px;
    }
}

@media (max-width: 640px) {
    .block-hero .banner-small-name {
        font-size: 11px;
    }
}

/* Bold primary navigation; retain black on hover and keyboard focus. */

.sidebar nav > a:is([href$='index.html'], [href$='work.html'], [href$='play.html']),
.mobile-menu a.mobile-main-link {
    font-weight: 700;
}

.sidebar
    nav
    > a:is([href$='index.html'], [href$='work.html'], [href$='play.html']):is(:hover, :focus-visible),
.mobile-menu a.mobile-main-link:is(:hover, :focus-visible) {
    color: #111 !important;
}

/* Modular graphic banner. */

.modular-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: auto;
    height: clamp(250px, 24vw, 350px);
    min-height: 0;
    padding: 24px;
    background: #fff;
}

.modular-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.modular-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.modular-hero-copy {
    text-align: center;
    padding: 13px 25px 12px;
    background: rgba(255, 255, 255, 0.92);
}

.modular-hero h1 {
    color: #111;
    font-size: clamp(32px, 3.3vw, 52px);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 7px;
}

.modular-hero p {
    color: #292929;
    font-size: clamp(13px, 1.15vw, 17px);
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 640px) {
    .modular-hero {
        height: 245px;
        padding: 20px;
    }

    .modular-hero-copy {
        padding: 12px 16px;
    }

    .modular-hero h1 {
        font-size: clamp(29px, 7.5vw, 42px);
    }

    .modular-art svg {
        width: 180%;
        max-width: none;
        margin-left: -40%;
    }
}

/* White temporary identity with a prominent SARA wordmark. */

.profile-placeholder {
    background: transparent;
    padding: 0;
    gap: 0;
}

.profile-placeholder .brand-name,
.mobile-brand .profile-placeholder .brand-name {
    font-size: 52px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.045em;
}

.profile-placeholder .brand-surname {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    margin-top: 3px;
}

.profile-placeholder .brand-role,
.mobile-brand .profile-placeholder .brand-role {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 3px;
}

body[data-page='home'] .portfolio {
    margin-top: 0;
}

@media (max-width: 1000px) {
    .mobile-brand .profile-placeholder {
        gap: 0;
    }

    .mobile-brand .profile-placeholder .brand-name {
        font-size: 35px;
    }

    .mobile-brand .profile-placeholder .brand-surname {
        font-size: 12px;
        margin-top: 2px;
    }

    .mobile-brand .profile-placeholder .brand-role {
        font-size: 10px;
        margin-top: 2px;
    }
}

/* Simple yellow welcome banner. */

.simple-hero {
    background: #f4df59;
    aspect-ratio: auto;
    min-height: 330px;
    padding: 60px 24px;
}

.simple-hero h1 {
    font-size: clamp(64px, 8vw, 120px);
    letter-spacing: -0.05em;
    margin-bottom: 20px;
}

.simple-hero p {
    font-size: 20px;
    color: #424029;
}

@media (max-width: 650px) {
    .simple-hero {
        min-height: 260px;
        padding: 45px 20px;
    }

    .simple-hero h1 {
        font-size: 64px;
    }

    .simple-hero p {
        font-size: 16px;
    }
}

/* Playful navigation lettering without shifting surrounding layout. */

.nav-lettering {
    display: inline-block;
    white-space: nowrap;
    pointer-events: none;
}

.nav-letter {
    display: inline-block;
    transform: translate(0, 0) rotate(0deg);
    transition: transform 0.34s cubic-bezier(0.2, 0.75, 0.3, 1);
    transition-delay: var(--letter-delay);
}

@media (hover: hover) and (pointer: fine) {
    a:hover > .nav-lettering .nav-letter {
        transform: translate(var(--letter-x), var(--letter-y)) rotate(var(--letter-angle));
    }
}

a:focus-visible > .nav-lettering .nav-letter {
    transform: translate(var(--letter-x), var(--letter-y)) rotate(var(--letter-angle));
}

@media (prefers-reduced-motion: reduce) {
    .nav-letter {
        transition: none;
    }

    a:hover > .nav-lettering .nav-letter,
    a:focus-visible > .nav-lettering .nav-letter {
        transform: none;
    }
}

/* Stable navigation text colours during hover. */

.main-navigation > a,
.sidebar-navigation > a,
.mobile-menu a.mobile-main-link {
    color: #111;
}

.main-navigation > a:hover,
.sidebar nav > a:hover,
.sidebar-navigation > a:hover,
.mobile-menu a.mobile-main-link:hover {
    color: #111;
}

.nav-secondary a,
.sidebar-secondary a,
.mobile-menu a.mobile-secondary-link,
.nav-secondary a:hover,
.sidebar-secondary a:hover,
.mobile-menu a.mobile-secondary-link:hover,
.nav-secondary a.active,
.sidebar-secondary a.active,
.mobile-menu a.mobile-secondary-link.active,
.mobile-menu a.mobile-secondary-link:focus-visible {
    color: #cf501f;
}

/* Centred tablet/mobile menu: no colour tiles, clear secondary-link spacing. */

@media (max-width: 1000px) {
    .mobile-menu a.mobile-main-link,
    .mobile-menu a.mobile-secondary-link,
    .mobile-menu a.mobile-main-link:is(:hover, :focus-visible, .active),
    .mobile-menu a.mobile-secondary-link:is(:hover, :focus-visible, .active) {
        background: transparent !important;
        border-radius: 0 !important;
    }

    .mobile-menu a.mobile-secondary-link[href*='about.html'] {
        margin-top: clamp(28px, 5vh, 54px);
    }

    .mobile-menu .nav-letter {
        --letter-x: var(--letter-center-x) !important;
    }
}

@media (max-height: 500px) and (max-width: 1000px) {
    .mobile-menu a.mobile-secondary-link[href*='about.html'] {
        margin-top: 16px;
    }
}

/* Display the temporary identity without a placeholder background. */

.profile-placeholder,
.mobile-brand .profile-placeholder {
    background: transparent;
}

/* Project navigation follows the same accent as its main heading. */

.project-page[data-project] .sidebar-secondary a,
.project-page[data-project] .nav-secondary a,
.project-page[data-project] .mobile-menu a.mobile-secondary-link,
.project-page[data-project] .sidebar-secondary a:is(:hover, :focus-visible, .active),
.project-page[data-project] .nav-secondary a:is(:hover, :focus-visible, .active),
.project-page[data-project] .mobile-menu a.mobile-secondary-link:is(:hover, :focus-visible, .active) {
    color: var(--project-accent);
}

/* COMBO wordmark directly beside the TOY SET title, matching capital height. */

[data-project='combo'] .case-title::after {
    content: none;
    display: none;
}

[data-project='combo'] .toy-set-title-row {
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 36px);
    margin-bottom: 18px;
}

[data-project='combo'] .toy-set-title-row h1 {
    margin: 0;
    white-space: nowrap;
}

[data-project='combo'] .toy-set-heading-logo {
    display: block;
    width: auto;
    height: 1cap;
    max-width: none;
    object-fit: contain;
}

@media (max-width: 640px) {
    [data-project='combo'] .case-title {
        padding-right: 0;
    }

    [data-project='combo'] .toy-set-title-row {
        gap: 14px;
    }
}

/* Larger project titles; TOY SET itself remains centred independently of its logo. */

[data-project='combo'] .toy-set-title-row {
    position: relative;
    display: block;
    text-align: center;
}

[data-project='combo'] .toy-set-title-row h1 {
    display: inline-block;
}

[data-project='combo'] .toy-set-heading-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 480px) {
    [data-project='combo'] .toy-set-heading-logo {
        max-height: 1cap;
    }
}

[data-project='combo'] .toy-set-title-row {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

[data-project='combo'] .toy-set-heading-logo {
    left: calc(100% + 24px);
}

@media (max-width: 640px) {
    [data-project='combo'] .toy-set-heading-logo {
        left: calc(100% + 12px);
    }
}

@media (max-width: 480px) {
    [data-project='combo'] .toy-set-heading-logo {
        max-width: none;
        width: auto;
        height: 1cap;
    }
}

/* Another 20% increase to the main project titles. */

.project-page .case-title h1 {
    font-size: clamp(54.46584px, 6.28452vw, 87.98328px);
}

[data-project='toko'] .case-title .toko-logo-title {
    font-size: clamp(50.27616px, 6.703488vw, 96.36264px);
}

[data-project='combo'] .toy-set-title-row {
    font-size: clamp(54.46584px, 6.28452vw, 87.98328px);
}

[data-project='combo'] .toy-set-title-row h1 {
    font-size: inherit;
}

@media (max-width: 640px) {
    .project-page .case-title h1 {
        font-size: 54.46584px;
    }

    [data-project='combo'] .toy-set-title-row {
        font-size: clamp(36.432px, 9.1872vw, 54.46584px);
    }

    [data-project='combo'] .toy-set-title-row h1 {
        font-size: inherit;
    }
}

@media (max-width: 480px) {
    [data-project='toko'] .case-title .toko-logo-title {
        font-size: clamp(43.99164px, 12.56904vw, 58.65552px);
    }
}

/* Warm antique-gold accent for the clock exhibition. */

.project-page[data-project='clock'] {
    --project-accent: #a87820;
    --project-detail: #8d641b;
}

/* More breathing room between About me subsections. */

.info-page:has(.about-hero) > article.info-copy > h3:not(:first-child) {
    margin-top: 32px;
}

/* Consistent bold navigation on project pages, including hover states. */

.project-page .sidebar-navigation a,
.project-page .sidebar-secondary a,
.project-page .mobile-menu a,
.project-page .sidebar-navigation a:is(:hover, :focus-visible, .active),
.project-page .sidebar-secondary a:is(:hover, :focus-visible, .active),
.project-page .mobile-menu a:is(:hover, :focus-visible, .active) {
    font-weight: 700;
}

/* Project name letters gently spread horizontally alongside the image zoom. */

.project-title-letter {
    display: inline-block;
    font: inherit;
    color: inherit;
    transform: none;
    transition: transform 0.3s ease;
    transition-delay: var(--title-delay);
}

@media (hover: hover) and (pointer: fine) {
    .project-link:hover .project-title-letter,
    .next-project-card:hover .project-title-letter {
        transform: translateX(var(--title-spread));
    }
}

.project-link:focus-visible .project-title-letter,
.next-project-card:focus-visible .project-title-letter {
    transform: translateX(var(--title-spread));
}

@media (prefers-reduced-motion: reduce) {
    .project-title-letter {
        transition: none;
    }

    .project-link:is(:hover, :focus-visible) .project-title-letter,
    .next-project-card:is(:hover, :focus-visible) .project-title-letter {
        transform: none;
    }
}

/* Decorative render sits outside document flow; project text retains its original layout. */

body[data-project='toko'] {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

[data-project='toko'] .toko-edge-render {
    position: absolute;
    right: -240px;
    top: 700px;
    width: 1000px;
    height: 710px;
    background: url('../../images/toko/toko_render.png.webp') left top / 100% auto no-repeat;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 1000px) {
    [data-project='toko'] .toko-edge-render {
        width: 820px;
        height: 582px;
        right: -290px;
    }
}

@media (max-width: 650px) {
    [data-project='toko'] .toko-edge-render {
        width: 650px;
        height: 461px;
        right: -330px;
    }
}

/* Reserve only the space occupied by the render; lower lines regain full width. */

@media (max-width: 650px) {
    [data-project='toko'] .case-text.toko-wrap-copy {
        padding-right: 0 !important;
    }

    [data-project='toko'] .toko-wrap-copy::before {
        content: '';
        display: block;
        float: right;
        width: var(--render-text-space);
        height: var(--render-text-height);
        pointer-events: none;
    }
}

/* Prototype photographs grouped under their corresponding descriptions. */

[data-project='toko'] .toko-prototype-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 42px;
}

[data-project='toko'] .toko-prototype-photos img {
    display: block;
    align-self: start;
}

@media (max-width: 650px) {
    [data-project='toko'] .toko-prototype-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    [data-project='toko'] .toko-prototype-photos {
        gap: 12px;
        margin-bottom: 32px;
    }
}

/* Personal drawn logo in the existing identity area. */

.profile-placeholder .personal-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-placeholder,
.sidebar-identity .profile-placeholder,
.mobile-brand .profile-placeholder {
    padding: 0;
    background: transparent;
}

/* Uniform prototype photo proportions, including the slide photographs. */

[data-project='toko'] .toko-prototype-photos img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Final collection: product views, concise details and a closing play photograph. */

[data-project='toko'] .toko-collection-grid {
    display: grid;
    gap: 38px 24px;
    margin: 30px 0 48px;
}

[data-project='toko'] .toko-collection-item {
    grid-column: span 2;
    margin: 0;
    min-width: 0;
}

[data-project='toko'] .toko-collection-item:nth-child(n + 4) {
    grid-column: span 3;
}

[data-project='toko'] .toko-collection-image {
    aspect-ratio: 4 / 3;
    background: #fff;
}

[data-project='toko'] .toko-collection-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

[data-project='toko'] .toko-collection-item h3 {
    color: var(--project-accent);
    font-size: 18px;
    margin: 16px 0 8px;
}

[data-project='toko'] .toko-collection-item p {
    font-size: 15px;
    color: #333;
    line-height: 1.65;
    margin: 0;
    max-width: 38ch;
}

[data-project='toko'] .toko-material-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    border-top: 1px solid #e8d5c9;
    padding: 26px 0 0;
}

[data-project='toko'] .toko-material-notes span {
    color: var(--project-accent);
    font-size: 12px;
}

[data-project='toko'] .toko-material-notes p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 10px 0 0;
}

[data-project='toko'] .toko-play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
    margin: 30px 0 48px;
}

[data-project='toko'] .toko-play-layout > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 670px;
    object-fit: contain;
}

[data-project='toko'] .toko-play-layout .case-text {
    margin: 0;
}

[data-project='toko'] .toko-play-layout .case-text > p:first-child {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.3;
}

@media (max-width: 700px) {
    [data-project='toko'] .toko-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
    }

    [data-project='toko'] .toko-collection-item,
    [data-project='toko'] .toko-collection-item:nth-child(n + 4) {
        grid-column: auto;
    }

    [data-project='toko'] .toko-collection-item h3 {
        font-size: 17px;
    }

    [data-project='toko'] .toko-material-notes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    [data-project='toko'] .toko-play-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    [data-project='toko'] .toko-play-layout > img {
        max-height: none;
    }
}

/* Four final accessories after removing the digital-only arch bridge. */

[data-project='toko'] .toko-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-project='toko'] .toko-collection-item,
[data-project='toko'] .toko-collection-item:nth-child(n + 4) {
    grid-column: auto;
}

@media (max-width: 700px) {
    [data-project='toko'] .toko-collection-item:last-child {
        grid-column: auto;
        max-width: none;
        justify-self: stretch;
    }
}

/* A portfolio-inspired dark finale, isolated from the rest of the page. */

[data-project='toko'] .toko-dark-copy h2 {
    font-size: clamp(24px, 2.5vw, 32px);
    letter-spacing: -0.03em;
}

[data-project='toko'] .toko-dark-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-project='toko'] .toko-dark-products figure {
    margin: 0;
    min-width: 0;
}

[data-project='toko'] .toko-dark-products img {
    display: block;
    width: 100%;
}

[data-project='toko'] .toko-dark-products figcaption {
    font-size: 12px;
    color: #e4dfbb;
    text-align: center;
    margin-top: 10px;
}

[data-project='toko'] .toko-dark-play-photo {
    display: block;
}

/* Treat graphite as a section background, preserving the standard text alignment. */

[data-project='toko'] .toko-dark-final {
    position: relative;
    isolation: isolate;
}

[data-project='toko'] .toko-dark-final::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((100% - 100vw) / 2);
    width: 100vw;
    background: #262626;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 1000px) {
    [data-project='toko'] .toko-dark-copy {
        padding-left: 0;
    }
}

/* Clean portfolio-style finale; its background stays within the project column. */

[data-project='toko'] .toko-dark-copy {
    padding-left: 0;
}

[data-project='toko'] .toko-dark-products {
    margin-bottom: 28px;
}

[data-project='toko'] .toko-dark-copy p {
    margin-bottom: 0;
}

@media (max-width: 1000px) {
    [data-project='toko'] .toko-dark-final {
        padding: 34px 28px;
        gap: 26px;
    }
}

/* A shared heading and caption remove the uneven column alignment. */

[data-project='toko'] .toko-dark-final {
    display: grid;
}

[data-project='toko'] .toko-dark-products {
    align-content: center;
}

[data-project='toko'] .toko-dark-play-photo {
    min-height: 0;
    object-position: center;
}

@media (max-width: 900px) {
    [data-project='toko'] .toko-dark-final {
        grid-template-columns: minmax(0, 1fr);
        padding: 30px 24px;
        gap: 24px;
    }

    [data-project='toko'] .toko-dark-products {
        grid-column: 1;
        grid-row: 2;
        gap: 20px;
    }

    [data-project='toko'] .toko-dark-products img {
        height: clamp(130px, 26vw, 220px);
    }

    [data-project='toko'] .toko-dark-play-photo {
        grid-column: 1;
        grid-row: 3;
        height: auto;
        object-fit: contain;
    }

    [data-project='toko'] .toko-dark-copy p {
        grid-column: 1;
        grid-row: 4;
    }
}

/* Welcome uses the same letter scatter and timing as Back to Top. */

.simple-hero .welcome-letter-motion {
    width: fit-content;
    margin-inline: auto;
}

@media (hover: hover) and (pointer: fine) {
    .welcome-letter-motion:hover > .nav-lettering .nav-letter {
        transform: translate(var(--letter-x), var(--letter-y)) rotate(var(--letter-angle));
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-letter-motion:hover > .nav-lettering .nav-letter {
        transform: none;
    }
}

/* Cream canvas matching the home banner. */

:root {
    --page-background: #ffffff;
}

body,
.project-page,
.mobile-header,
.mobile-menu {
    background: var(--page-background);
}

/* Slightly larger personal logo without moving navigation or page content. */

.profile-placeholder .personal-logo {
    transform: scale(1.15);
    transform-origin: center;
}

/* Coral background for the sundial's two time-of-day photographs. */

[data-project='sundial'] .sundial-action-gallery {
    padding: clamp(54px, 10vw, 150px) clamp(20px, 3.5vw, 44px) clamp(44px, 6vw, 90px);
    gap: clamp(20px, 3.5vw, 40px);
}

[data-project='sundial'] .sundial-action-gallery img {
    display: block;
}

[data-project='sundial'] .sundial-action-gallery figcaption {
    color: #fff;
    text-align: left;
    margin-top: 14px;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 720px) {
    [data-project='sundial'] .sundial-action-gallery {
        padding: 40px 20px;
        gap: 30px;
    }
}

/* Join the coral time gallery directly to the following photograph. */

[data-project='sundial'] .sundial-action-gallery {
    margin-bottom: 0;
}

[data-project='sundial'] .sundial-action-gallery + .case-wide-image {
    display: block;
    margin-top: 0;
}

/* Match the edge-to-edge photograph on tablet and mobile. */

@media (max-width: 1000px) {
    .project-page[data-project='sundial'] .sundial-action-gallery {
        width: calc(100% + var(--project-gutter) * 2);
        max-width: none;
        margin-left: calc(-1 * var(--project-gutter));
        margin-right: calc(-1 * var(--project-gutter));
        margin-bottom: 0;
    }

    .project-page[data-project='sundial'] .sundial-action-gallery + .case-wide-image {
        margin-top: 0;
    }
}

/* Pastel blue canvas behind desktop navigation; preserve its existing layout. */

@media (min-width: 1001px) {
    .sidebar,
    .case-sidebar {
        isolation: isolate;
    }

    .sidebar::before,
    .case-sidebar::before {
        content: '';
        position: absolute;
        top: -35px;
        bottom: -35px;
        left: -24px;
        right: 0;
        min-height: 100vh;
        background: #e5f2f6;
        z-index: -1;
        pointer-events: none;
    }
}

/* Technical drawings from the original portfolio; stack for legibility on smaller screens. */

[data-project='sundial'] .sundial-technical-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.3fr;
    gap: 28px;
    align-items: center;
    margin: 36px 0 0;
}

.sundial-technical-grid a {
    display: block;
    min-width: 0;
}

.sundial-technical-grid img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 720px) {
    [data-project='sundial'] .sundial-technical-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Let the concept text flow around the cat, including its hover area. */

[data-project='combo'] .combo-concept-copy::before {
    content: '';
    float: right;
    width: var(--combo-cat-space, 0px);
    height: var(--combo-cat-height, 0px);
    pointer-events: none;
}

[data-project='combo'] .combo-concept-copy {
    display: flow-root;
}

[data-project='combo'] .combo-making-photo {
    display: block;
    height: auto;
}

/* Match the original drawing to its faint tracing in the development sheet. */

[data-project='combo'] .combo-drawing-frame {
    position: relative;
    aspect-ratio: 1541 / 1596;
}

[data-project='combo'] .combo-drawing-comparison .combo-drawing-frame img {
    position: absolute;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    top: 0;
    left: 0;
}

[data-project='combo'] .combo-drawing-comparison figure:first-child .combo-drawing-frame img {
    width: 54.6%;
    left: 22.7%;
    top: 4.4%;
}

/* Compact drawing comparison with headings above the artwork. */

[data-project='combo'] .combo-drawing-comparison {
    width: min(100%, 760px);
    margin: 40px auto 56px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 7vw, 90px);
    align-items: start;
}

[data-project='combo'] .combo-drawing-comparison figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-project='combo'] .combo-drawing-comparison figcaption {
    order: 0;
    margin: 0 0 18px;
    color: var(--project-accent);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

[data-project='combo'] .combo-drawing-comparison img {
    display: block;
    width: 100%;
    height: 350px;
    max-height: none;
    object-fit: contain;
    object-position: center top;
}

@media (max-width: 640px) {
    [data-project='combo'] .combo-drawing-comparison {
        gap: 22px;
        margin: 28px auto 40px;
    }

    [data-project='combo'] .combo-drawing-comparison figcaption {
        font-size: 15px;
        margin-bottom: 12px;
    }

    [data-project='combo'] .combo-drawing-comparison img {
        height: clamp(160px, 48vw, 300px);
    }
}

/* Slightly raise the drawing comparison labels. */

[data-project='combo'] .combo-drawing-comparison figcaption {
    transform: translateY(-6px);
}

/* Remove the unused hidden logo space between Concept and the drawings. */

[data-project='combo'] .combo-concept-copy .combo-brand {
    display: none;
}

/* White desktop navigation and title-aligned personal identity. */

@media (min-width: 1001px) {
    .project-page .sidebar-identity .profile-placeholder {
        position: relative;
    }

    .project-page .sidebar-identity .personal-logo {
        position: absolute;
        top: var(--identity-title-top, 10px);
        height: var(--identity-title-image-height, 79px);
        width: auto;
        max-width: none;
        transform: none;
    }
}

/* Align the visible edge of the logo with the desktop navigation lettering. */

@media (min-width: 1001px) {
    .project-page .sidebar-identity .personal-logo {
        left: var(--identity-title-left, 10px);
    }
}

/* Keep the process photograph secondary to the finished toy set. */

.project-page[data-project='combo'] .case-wide-image.combo-making-photo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    margin: 24px auto 40px;
}

@media (max-width: 650px) {
    .project-page[data-project='combo'] .case-wide-image.combo-making-photo {
        max-height: 400px;
    }
}

/* On desktop reserve horizontal space for the cat without adding empty height. */

@media (min-width: 1001px) {
    [data-project='combo'] .combo-concept-copy {
        padding-right: var(--combo-cat-space, 0px);
    }

    [data-project='combo'] .combo-concept-copy::before {
        display: none;
    }

    [data-project='combo'] .case-section:has(.combo-concept-copy) {
        padding-bottom: 16px;
    }

    [data-project='combo'] .combo-drawing-comparison {
        margin-top: 16px;
    }
}

/* Pair the making story with its portrait process photograph. */

.project-page[data-project='combo'] .combo-making-section {
    display: grid;
}

.combo-making-copy {
    min-width: 0;
}

[data-project='combo'] .combo-making-copy .case-section-heading {
    margin: 0 0 20px;
}

[data-project='combo'] .combo-making-copy .case-text {
    margin: 0;
    padding: 0;
}

.project-page[data-project='combo'] .combo-making-section .combo-making-photo {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0;
}

@media (max-width: 700px) {
    .project-page[data-project='combo'] .combo-making-section .combo-making-photo {
        max-height: 400px;
    }
}

/* Keep project navigation anchored even when the footer is reached. */

@media (min-width: 1001px) {
    .case-layout > .case-sidebar {
        position: fixed;
        top: 35px;
        left: max(35px, calc((100% - 1600px) / 2 + 35px));
        width: 266px;
        height: calc(100dvh - 70px);
        z-index: 20;
    }

    .case-layout > .case-content {
        grid-column: 2;
    }
}

/* WALKIE TALKIE: continuous artwork with a compact introduction. */

[data-project='walkie-talkie'] .case-section {
    padding-bottom: 0;
    margin-bottom: 16px;
}

[data-project='walkie-talkie'] .case-text p:last-child {
    margin-bottom: 0;
}

[data-project='walkie-talkie'] .walkie-gallery {
    display: block;
}

[data-project='walkie-talkie'] .walkie-sketch-frame {
    overflow: hidden;
}

[data-project='walkie-talkie'] .walkie-gallery .case-wide-image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}

/* Only hide empty space above the antenna guides; preserve all drawings. */

[data-project='walkie-talkie'] .walkie-sketch-frame .case-wide-image {
    margin-top: -4%;
}

@media (max-width: 1000px) {
    [data-project='walkie-talkie'] .walkie-gallery {
        width: calc(100% + var(--project-gutter) * 2);
        margin-left: calc(-1 * var(--project-gutter));
    }
}

/* IRON: original portfolio assets, presented as responsive web sections. */

[data-project='iron'] .iron-render-panel {
    background: #1a1a1a;
    margin: 20px 0 36px;
    padding: 24px;
}

.iron-render-panel img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.iron-sketch-link {
    display: block;
    margin: 12px 0 40px;
}

.iron-sketch-link img {
    display: block;
    width: 100%;
    height: auto;
}

.iron-prototype-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0 40px;
    align-items: center;
}

.iron-prototype-grid img {
    display: block;
    width: 100%;
    height: auto;
}

.iron-final-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 30px;
    background: #1a1a1a;
    margin: 0 0 40px;
}

.iron-final-panel img {
    display: block;
    width: 100%;
    height: auto;
}

.iron-final-panel a {
    display: block;
    min-width: 0;
}

.iron-cord-detail {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {
    .iron-prototype-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .iron-final-panel {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .iron-render-panel {
        padding: 16px;
    }
}

/* The desktop navigation is an overlay, with no opaque backing layer. */

@media (min-width: 1001px) {
    .sidebar,
    .case-sidebar {
        background: transparent;
    }

    .sidebar::before,
    .case-sidebar::before {
        content: none;
        background: transparent;
    }
}

/* IRON: one continuous dark opening, inspired by the portfolio spread. */

[data-project='iron'] .iron-opening {
    background: #1a1a1a;
    color: #e8e5e2;
    margin: -35px -35px 48px;
    padding: 45px 35px 36px;
}

[data-project='iron'] .iron-opening .case-title {
    padding: 0 0 28px;
}

[data-project='iron'] .iron-opening .case-title h1 {
    color: #d03a3d;
}

[data-project='iron'] .iron-opening .case-year,
[data-project='iron'] .iron-opening .case-type {
    color: #e59396;
}

.iron-opening-story {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: center;
}

.iron-opening-copy h2 {
    color: #e59396;
    font-size: clamp(21px, 2.5vw, 32px);
    margin-bottom: 18px;
}

.iron-opening-copy p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.iron-opening-story > img {
    display: block;
    width: 100%;
    height: auto;
}

[data-project='iron'] .iron-prototype-grid {
    gap: 22px;
    margin: 36px 0 44px;
    align-items: start;
}

.iron-prototype-grid img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

[data-project='iron'] .iron-sketch-link {
    margin: 12px 0 32px;
}

[data-project='iron'] .iron-final-panel .iron-cord-detail {
    margin-top: -6px;
}

@media (max-width: 1000px) {
    [data-project='iron'] .iron-opening {
        margin: -35px calc(-1 * var(--project-gutter)) 36px;
        padding: 36px var(--project-gutter) 30px;
    }
}

@media (max-width: 700px) {
    .iron-opening-story {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .iron-opening-story > img {
        grid-row: 1;
    }

    .iron-opening-copy {
        max-width: 540px;
    }

    [data-project='iron'] .iron-final-panel {
        padding: 24px 16px 0;
        gap: 24px;
    }
}

/* Transparent navigation surfaces: keep underlying artwork visible. */

.sidebar,
.case-sidebar,
.mobile-header,
.mobile-menu,
.main-navigation,
.sidebar-navigation,
.sidebar-secondary {
    background: transparent !important;
}

.sidebar::before,
.case-sidebar::before {
    background: transparent !important;
    pointer-events: none;
}

/* SUNDIAL: introduce the object before its construction process. */

[data-project='sundial'] .case-content {
    min-width: 0;
}

[data-project='sundial'] .sundial-lead {
    font-size: clamp(23px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 700;
    color: #292727;
}

[data-project='sundial'] .sundial-opening-image {
    display: block;
    margin-top: 24px;
}

[data-project='sundial'] .sundial-prototype-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
}

[data-project='sundial'] .sundial-prototype-gallery img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    align-self: stretch;
}

@media (max-width: 650px) {
    [data-project='sundial'] .sundial-prototype-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    [data-project='sundial'] .sundial-action-gallery {
        grid-template-columns: 1fr;
    }
}

/* Equal process-photo heights without cropping or stretching. */

[data-project='sundial'] .sundial-prototype-gallery {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    container-type: inline-size;
}

[data-project='sundial'] .sundial-prototype-gallery img {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: calc((100cqw - 16px) / 2.8333333333);
    aspect-ratio: auto;
    object-fit: contain;
    align-self: auto;
}

@media (max-width: 650px) {
    [data-project='sundial'] .sundial-prototype-gallery {
        gap: 8px;
    }
}

/* Portfolio finishing pass: shared readability and responsive fixes. */

@media (max-width: 1000px) {
    .mobile-menu,
    .mobile-menu.open {
        background: var(--page-background) !important;
        background-image: none !important;
        z-index: 1000;
    }
}

[data-page='contact'] .page-intro {
    max-width: 740px;
}

[data-page='contact'] .info-copy {
    margin-top: 40px;
}

[data-page='contact'] .info-copy a[href^='mailto:'] {
    display: inline-block;
    font-size: clamp(20px, 2.8vw, 38px);
    line-height: 1.35;
    font-weight: 600;
    color: #cf501f;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
    overflow-wrap: anywhere;
}

.toko-mobile-overview {
    display: none;
}

[data-project='toko'] .toko-delivery-section {
    margin-block: 52px;
}

[data-project='toko'] .toko-manual-card > a:not(.toko-manual-steps) img {
    height: 260px;
}

[data-project='toko'] .toko-manual-card .toko-manual-steps img {
    height: 180px;
}

[data-project='toko'] .toko-manual-grid {
    gap: 28px;
}

[data-project='toko'] .toko-dark-final {
    margin-top: 32px;
    margin-bottom: 40px;
}

@media (max-width: 650px) {
    [data-project='toko'] .toko-edge-render {
        display: none;
    }

    [data-project='toko'] .case-section:first-of-type .case-text,
    [data-project='toko'] .case-text.toko-wrap-copy {
        padding-right: 0 !important;
    }

    [data-project='toko'] .case-text.toko-wrap-copy::before {
        display: none;
    }

    .toko-mobile-overview {
        display: block;
        margin: 0 0 28px;
    }

    .toko-mobile-overview img {
        display: block;
        width: 100%;
        height: auto;
    }

    [data-project='toko'] .toko-manual-card .toko-manual-steps img {
        height: auto;
    }
}

[data-project='sundial'] .sundial-action-gallery {
    padding-top: clamp(32px, 4vw, 60px);
}

.clock-board-zoom {
    display: block;
    color: #795719;
    text-decoration: none;
    margin-bottom: 30px;
}

.clock-board-zoom .case-wide-image {
    display: block;
    margin-bottom: 12px;
}

.clock-board-zoom > span,
.skates-presentation-link > span {
    display: block;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.skates-presentation-link {
    display: block;
    color: #316a98;
    margin-bottom: 30px;
}

.skates-presentation-link .case-wide-image {
    display: block;
    margin-bottom: 12px;
}

[data-project='skates'] video {
    background: #a2c9e2;
}

[data-project='iron'] .iron-final-render {
    width: 100%;
}

.project-page[data-project='combo'] .combo-making-section {
    background: #d3e2e7;
    padding: 28px max(0px, calc((min(100%, 1200px) - 900px) / 2));
    align-items: center;
    gap: 32px;
    margin: 0 auto 36px;
    max-width: 1200px;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
}

.project-page[data-project='combo'] .combo-making-section .combo-making-photo {
    max-height: 390px;
    width: 100%;
}

[data-project='combo'] .combo-making-copy {
    padding-top: 0;
    align-self: center;
}

[data-project='combo'] .combo-making-copy .case-section-heading h2 {
    color: #302033;
}

[data-project='combo'] .combo-making-copy .case-text p:last-child {
    margin-bottom: 0;
}

.project-page .case-next {
    margin-top: 64px;
}

.project-page .site-footer {
    margin-top: 48px;
    gap: 36px;
}

@media (max-width: 700px) {
    .project-page[data-project='combo'] .combo-making-section {
        grid-template-columns: 1fr;
        padding: 22px 0;
        gap: 20px;
    }

    .project-page[data-project='combo'] .combo-making-section .combo-making-photo {
        width: auto;
        margin-inline: auto;
    }
}

@media (max-width: 1000px) {
    [data-project='iron'] .iron-opening {
        margin-top: 16px;
    }
}

/* Neutral categories; orange project numbering in the main galleries. */

.project-info > span,
.next-project-info > span,
.project-page[data-project] .next-project-info > span {
    color: #777;
}

.project-info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
    align-items: start;
}

.project-info > div {
    grid-column: 2;
    min-width: 0;
}

.project-info > span:not(.project-number) {
    grid-column: 2;
}

.project-info > .project-number {
    grid-column: 1;
    grid-row: 1 / 3;
    color: #cf501f;
    font-variant-numeric: tabular-nums;
}

/* Project numbers span the title and category together. */

.project-info > .project-number {
    align-self: stretch;
    display: flex;
    align-items: center;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
}

/* Slightly narrower project numerals, preserving their height. */

.project-info > .project-number {
    transform: scaleX(0.88);
    transform-origin: left center;
    margin-right: -4px;
}

/* Hand-drawn yellow highlighter revealed by hovering anywhere on a project card. */

.project-info h3,
.next-project-info h3 {
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    isolation: isolate;
}

.project-info h3::before,
.next-project-info h3::before {
    content: '';
    position: absolute;
    left: -3px;
    right: -5px;
    bottom: 0;
    height: 0.72em;
    background: #f0cc61;
    clip-path: polygon(0 12%, 20% 4%, 48% 9%, 77% 0, 100% 7%, 99% 89%, 72% 97%, 45% 91%, 18% 100%, 1% 92%);
    transform: scaleX(0) rotate(-1deg);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
    z-index: -1;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .project-link:hover .project-info h3::before,
    .next-project-card:hover .next-project-info h3::before {
        transform: scaleX(1) rotate(-1deg);
    }
}

.project-link:focus-visible .project-info h3::before,
.next-project-card:focus-visible .next-project-info h3::before {
    transform: scaleX(1) rotate(-1deg);
}

/* Keep lettering steady so the marker tracks the complete title. */

.project-link:is(:hover, :focus-visible) .project-title-letter,
.next-project-card:is(:hover, :focus-visible) .project-title-letter {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .project-info h3::before,
    .next-project-info h3::before {
        transition: none;
    }
}

/* Personal studio-style opening: bold type, one drawn mark, a clear route to work. */

.hero.studio-hero {
    background: #fff;
    height: auto;
    min-height: 0;
    padding: 48px 35px 42px;
    overflow: hidden;
}

.studio-hero-inner {
    max-width: 1430px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.33fr);
    gap: 36px;
    align-items: center;
    padding: 0 2%;
    border-bottom: 1px solid #dedbd3;
    padding-bottom: 34px;
}

.studio-hero-copy {
    min-width: 0;
    text-align: left;
}

.studio-hero-copy .studio-hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4a4547;
    margin: 0 0 22px;
}

.studio-hero-copy h1 {
    font-size: clamp(58px, 7.5vw, 112px);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.065em;
    color: #201c20;
    margin: 0;
}

.studio-hero-copy h1 span {
    white-space: nowrap;
}

.studio-hero-work {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    color: #b8441d;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.studio-hero-work svg {
    display: block;
    width: 62px;
    height: 36px;
    transition: transform 0.25s ease;
}

.studio-hero-work:hover svg {
    transform: translate(5px, 3px);
}

.studio-hero-work:focus-visible {
    outline: 2px solid #b8441d;
    outline-offset: 6px;
}

.studio-hero-mark {
    display: block;
    width: 100%;
    max-width: 300px;
    justify-self: center;
    transform: rotate(-8deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
    .studio-hero-mark:hover {
        transform: rotate(6deg);
    }
}

@media (max-width: 1000px) {
    .hero.studio-hero {
        padding: 36px 35px 0;
    }

    .studio-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(110px, 0.3fr);
        gap: 20px;
        padding-inline: 0;
    }

    .studio-hero-copy h1 {
        font-size: clamp(46px, 7.5vw, 76px);
    }
}

@media (max-width: 650px) {
    .hero.studio-hero {
        padding: 28px 20px 0;
    }

    .studio-hero-inner {
        position: relative;
        display: block;
        padding-bottom: 24px;
    }

    .studio-hero-copy .studio-hero-eyebrow {
        font-size: 10px;
        letter-spacing: 0.09em;
        margin-bottom: 25px;
        padding-right: 65px;
    }

    .studio-hero-copy h1 {
        font-size: clamp(40px, 10.5vw, 66px);
    }

    .studio-hero-mark {
        position: absolute;
        width: 64px;
        top: -10px;
        right: 0;
    }

    .studio-hero-work {
        margin-top: 18px;
        font-size: 14px;
    }

    .studio-hero-work svg {
        width: 48px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .studio-hero-mark,
    .studio-hero-work svg {
        transition: none;
    }
}

.hero.studio-hero {
    aspect-ratio: auto;
}

.studio-hero-inner {
    width: 100%;
}

/* Reference-led banner: compact statement, oversized play and a broad graphic mark. */

.hero.reference-hero {
    background: #ffffff;
    padding: 28px 35px 22px;
}

.reference-hero .studio-hero-inner {
    position: relative;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 10px;
    border: 0;
    padding: 0;
    align-items: center;
    max-width: 1430px;
}

.reference-hero .studio-hero-copy {
    position: relative;
    z-index: 1;
}

.reference-hero .studio-hero-copy h1 {
    margin: 0;
    color: #302033;
    letter-spacing: -0.065em;
    line-height: 0.88;
    font-weight: 900;
}

.reference-hero .studio-hero-copy h1 span {
    display: block;
}

.reference-hero .hero-serious {
    font-size: clamp(42px, 6.3vw, 92px);
    white-space: nowrap;
    letter-spacing: -0.065em;
}

.reference-hero .hero-play {
    font-size: clamp(94px, 14.4vw, 210px);
    line-height: 0.82;
    letter-spacing: -0.075em;
    margin-top: 5px;
}

.reference-hero .studio-hero-copy .hero-designer-tag {
    display: inline-block;
    background: #d5ee43;
    color: #302033;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    padding: 6px 10px;
    margin: 17px 0 0;
    transform: rotate(-0.6deg);
}

.reference-hero .studio-hero-mark {
    position: static;
    transform: rotate(-9deg);
}

.reference-hero .hero-drawn-arrow {
    position: absolute;
    left: 55%;
    bottom: 22%;
    width: clamp(48px, 6vw, 82px);
    height: auto;
    color: #ce6a32;
}

.hero-ink-dot {
    position: absolute;
    right: 3px;
    bottom: 8%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #302033;
}

@media (hover: hover) and (pointer: fine) {
    .reference-hero .studio-hero-mark:hover {
        transform: rotate(3deg);
    }
}

@media (max-width: 1000px) {
    .hero.reference-hero {
        padding: 26px 35px;
    }

    .reference-hero .hero-serious {
        font-size: clamp(35px, 6.3vw, 65px);
    }

    .reference-hero .hero-play {
        font-size: clamp(80px, 14.4vw, 145px);
    }
}

@media (max-width: 650px) {
    .hero.reference-hero {
        padding: 26px 20px;
    }

    .reference-hero .studio-hero-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
        gap: 0;
    }

    .reference-hero .hero-serious {
        font-size: clamp(25px, 6.8vw, 44px);
    }

    .reference-hero .hero-play {
        font-size: clamp(68px, 17vw, 108px);
        margin-top: 4px;
    }

    .reference-hero .studio-hero-copy .hero-designer-tag {
        font-size: 7px;
        letter-spacing: 0.08em;
        padding: 4px 6px;
        white-space: nowrap;
    }

    .reference-hero .studio-hero-mark {
        width: 115%;
        max-width: none;
        justify-self: start;
    }

    .reference-hero .hero-drawn-arrow {
        width: 37px;
        left: 67%;
        bottom: 26%;
    }

    .hero-ink-dot {
        width: 8px;
        height: 8px;
        right: 0;
        bottom: 9%;
    }
}

/* Chunky display lettering with the original centred Welcome scatter. */

.reference-hero .studio-hero-copy h1 .hero-play {
    font-family: 'Arial Black', 'Segoe UI Black', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -0.09em;
    -webkit-text-stroke: 0.012em currentColor;
    width: fit-content;
}

.reference-hero .studio-hero-copy h1 .hero-play-letter {
    display: inline-block;
    white-space: pre;
    transform: none;
    transition: transform 0.34s cubic-bezier(0.2, 0.75, 0.3, 1);
    transition-delay: var(--play-delay);
}

@media (hover: hover) and (pointer: fine) {
    .reference-hero .hero-play:hover .hero-play-letter {
        transform: translate(var(--play-x), var(--play-y)) rotate(var(--play-rotation));
    }
}

@media (prefers-reduced-motion: reduce) {
    .reference-hero .studio-hero-copy h1 .hero-play-letter {
        transition: none;
        transform: none;
    }
}

/* Slow, subtle movement for the hero mark and a little more space below play. */

.reference-hero .studio-hero-mark {
    animation: hero-star-spin 30s linear infinite;
    transform-origin: center;
}

@keyframes hero-star-spin {
    from {
        transform: rotate(-9deg);
    }
    to {
        transform: rotate(351deg);
    }
}

@media (max-width: 650px) {
    .reference-hero .studio-hero-copy .hero-designer-tag {
        margin-top: 22px;
    }
}

/* Larger project previews and a calmer, coordinated home banner. */

@media (min-width: 1001px) {
    [data-page='home'] .projects,
    [data-page='work'] .projects,
    [data-page='play'] .projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 22px;
    }
}

.project-info h3,
.next-project-info h3 {
    color: #302033;
}

.main-navigation > a,
.main-navigation > a:is(:hover, :focus-visible, .active),
.sidebar-navigation > a,
.sidebar-navigation > a:is(:hover, :focus-visible, .active),
.sidebar nav.main-navigation > a,
.sidebar nav.main-navigation > a:is(:hover, :focus-visible, .active),
.mobile-menu a.mobile-main-link,
.mobile-menu a.mobile-main-link:is(:hover, :focus-visible, .active) {
    color: #302033;
}

.reference-hero .studio-hero-mark {
    width: 78%;
    max-width: 280px;
    justify-self: center;
}

.reference-hero .studio-hero-copy .hero-designer-tag {
    margin-top: 46px;
}

@media (max-width: 650px) {
    .reference-hero .studio-hero-mark {
        width: 88%;
        max-width: none;
        justify-self: center;
    }

    .reference-hero .studio-hero-copy .hero-designer-tag {
        margin-top: 38px;
    }
}

/* More compact hero, with the same type and spacing below play. */

.hero.reference-hero {
    padding-top: 12px;
    padding-bottom: 12px;
}

.reference-hero .studio-hero-inner {
    padding-block: 0;
}

@media (max-width: 650px) {
    .hero.reference-hero {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .reference-hero .studio-hero-inner {
        padding-block: 0;
    }
}

/* Keep the complete desktop navigation comfortably within the first screen. */

@media (min-width: 1001px) {
    .reference-hero .studio-hero-mark {
        max-width: 230px;
    }

    .hero.reference-hero {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Bring desktop navigation closer to the personal logo. */

@media (min-width: 1001px) {
    .sidebar .identity {
        margin-bottom: 35px;
    }

    .case-sidebar .sidebar-navigation {
        margin-top: 35px;
    }
}

/* Give the hero copy more breathing room above the left navigation. */

/* Match the desktop hero columns to the project grid below. */

@media (min-width: 1001px) {
    .reference-hero .studio-hero-inner {
        padding-left: 301px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 22px;
    }

    .reference-hero .studio-hero-copy {
        padding-left: 0;
    }

    .reference-hero .hero-serious {
        font-size: clamp(32px, 4.2vw, 70px);
    }

    .reference-hero .studio-hero-copy h1 .hero-play {
        font-size: clamp(82px, 10.5vw, 160px);
    }

    .reference-hero .studio-hero-mark {
        justify-self: center;
    }
}

/* Home: one continuous navigation column beside the hero and projects. */

[data-page='home'] .home-content {
    min-width: 0;
}

[data-page='home'] .hero.reference-hero {
    width: 100%;
    margin: 0 0 38px;
    padding: 0 0 12px;
}

[data-page='home'] .reference-hero .studio-hero-inner {
    width: 100%;
    max-width: none;
    padding: 0;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 22px;
}

[data-page='home'] .reference-hero .studio-hero-copy {
    padding-left: 0;
    position: relative;
    left: 24px;
}

@media (max-width: 650px) {
    [data-page='home'] .reference-hero .studio-hero-copy {
        left: 8px;
    }
}

[data-page='home'] .reference-hero .hero-serious {
    font-size: clamp(32px, 4.2vw, 68px);
}

[data-page='home'] .reference-hero .studio-hero-copy h1 .hero-play {
    font-size: clamp(82px, 10.5vw, 154px);
}

[data-page='home'] .reference-hero .studio-hero-mark {
    width: 72%;
    max-width: 210px;
}

@media (max-width: 1000px) {
    [data-page='home'] .home-mobile-header {
        margin-top: 0;
    }

    [data-page='home'] .portfolio {
        margin-top: 20px;
    }

    [data-page='home'] .hero.reference-hero {
        margin-bottom: 30px;
    }
}

@media (max-width: 650px) {
    [data-page='home'] .reference-hero .studio-hero-inner {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
        gap: 0;
    }

    [data-page='home'] .reference-hero .hero-serious {
        font-size: clamp(25px, 6.8vw, 44px);
    }

    [data-page='home'] .reference-hero .studio-hero-copy h1 .hero-play {
        font-size: clamp(68px, 17vw, 108px);
    }

    [data-page='home'] .reference-hero .studio-hero-mark {
        width: 80%;
    }
}

/* Final design on the normal page canvas, before the closing photograph. */

[data-project='toko'] .toko-dark-final {
    background: transparent;
    color: #111;
    padding: 0;
    margin: 52px 0 40px;
}

[data-project='toko'] .toko-dark-final::before {
    content: none;
    display: none;
}

[data-project='toko'] .toko-dark-copy h2 {
    color: var(--project-accent);
}

[data-project='toko'] .toko-dark-copy p {
    color: #111;
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 700px) {
    [data-project='toko'] .toko-dark-final {
        padding: 0;
    }
}

/* Portfolio composition: heading, renders and copy beside the play photograph. */

[data-project='toko'] .toko-dark-final {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 3vw, 44px);
}

[data-project='toko'] .toko-dark-copy {
    display: block;
    min-width: 0;
    padding: 0;
}

[data-project='toko'] .toko-dark-copy h2 {
    text-align: center;
    margin: 0 0 28px;
    grid-column: auto;
    grid-row: auto;
}

[data-project='toko'] .toko-dark-products {
    grid-column: auto;
    grid-row: auto;
    margin: 0 0 28px;
    gap: 22px 18px;
}

[data-project='toko'] .toko-dark-products img {
    height: clamp(100px, 12vw, 180px);
    object-fit: contain;
}

[data-project='toko'] .toko-dark-copy p {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    margin: 0;
    text-align: left;
}

[data-project='toko'] .toko-dark-play-photo {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 700px) {
    [data-project='toko'] .toko-dark-final {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    [data-project='toko'] .toko-dark-products img {
        height: clamp(120px, 30vw, 190px);
    }
}

/* Soften only the outer edges of the four final accessory renders. */

[data-project='toko'] .toko-dark-products img {
    -webkit-mask-image:
        linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
        linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
        linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    mask-composite: intersect;
}

/* Fade the portrait render edges inside the contained image bounds. */

[data-project='toko'] .toko-dark-products figure:nth-child(n + 3) img {
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    -webkit-mask-image:
        linear-gradient(to right, transparent, #000 18%, #000 82%, transparent),
        linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    mask-image:
        linear-gradient(to right, transparent, #000 18%, #000 82%, transparent),
        linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

/* One desktop navigation frame across the complete portfolio. */

@media (min-width: 1001px) {
    .portfolio,
    .case-layout {
        max-width: 1500px;
        padding: 35px;
        grid-template-columns: 266px minmax(0, 1fr);
        column-gap: 35px;
    }

    .portfolio > .sidebar,
    .case-layout > .case-sidebar {
        position: fixed;
        top: 50px;
        left: max(35px, calc((100% - 1500px) / 2 + 35px));
        width: 266px;
        height: calc(100dvh - 70px);
        z-index: 20;
    }

    .portfolio > :not(.sidebar),
    .case-layout > .case-content {
        grid-column: 2;
    }

    .sidebar .identity,
    .case-sidebar .sidebar-identity {
        margin: 0;
        padding: 0;
    }

    .sidebar .profile-placeholder,
    .case-sidebar .profile-placeholder {
        position: relative;
        width: 266px;
        height: 90px;
        margin: 0;
    }

    .sidebar .profile-placeholder .personal-logo,
    .project-page .sidebar-identity .profile-placeholder .personal-logo,
    .case-sidebar .profile-placeholder .personal-logo {
        position: absolute;
        top: 0;
        left: 17px;
        width: auto;
        max-width: none;
        object-fit: contain;
        transform: none;
    }

    .sidebar .main-navigation,
    .case-sidebar .sidebar-navigation {
        position: absolute;
        top: 130px;
        left: 0;
        width: 266px;
        margin: 0;
        gap: 12px;
    }

    .sidebar .main-navigation > a,
    .case-sidebar .sidebar-navigation > a {
        padding: 20px 17px;
        font-size: 19px;
        line-height: 22px;
        font-weight: 600;
    }

    .sidebar .nav-secondary,
    .case-sidebar .sidebar-secondary {
        position: absolute;
        top: 254px;
        left: 0;
        width: 266px;
        margin: 0;
        gap: 6px;
    }

    .case-sidebar .sidebar-secondary {
        top: 384px;
    }

    .sidebar .nav-secondary a,
    .case-sidebar .sidebar-secondary a {
        padding: 14px 17px;
        font-size: 20px;
        line-height: 24px;
    }
}

/* The personal logo keeps the project-heading size on every desktop page. */

@media (min-width: 1001px) {
    .sidebar .profile-placeholder .personal-logo,
    .project-page .sidebar-identity .profile-placeholder .personal-logo,
    .case-sidebar .profile-placeholder .personal-logo {
        height: 62px;
    }
}

@media (max-width: 650px) {
    [data-project='toko'] .toko-mobile-overview {
        display: block;
        position: static;
        width: 100%;
        margin: 18px auto 32px;
    }

    [data-project='toko'] .toko-mobile-overview img {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        margin-inline: auto;
        transform: none;
    }
}

/* Temporary graphic envelope, ready to replace with Sara's own drawing. */

[data-page='contact'] .contact-envelope {
    display: block;
    width: clamp(110px, 15vw, 180px);
    height: auto;
    margin: 0 0 26px;
    transform: rotate(-6deg);
}

/* A second life for the material, a playful finale for the project. */

[data-project='combo'] .combo-final-images {
    display: grid;
    margin: 40px 0 56px;
}

[data-project='combo'] .combo-play-slogan {
    font-weight: 800;
    letter-spacing: -0.055em;
}

[data-project='combo'] .combo-final-images figure {
    min-width: 0;
}

[data-project='combo'] .combo-final-images img {
    width: 100%;
    height: auto;
    max-height: 750px;
    object-fit: contain;
}

@media (max-width: 640px) {
    [data-project='combo'] .combo-final-images {
        margin: 32px 0 40px;
    }
}

/* Keep the mobile/tablet logo and navigation button available while scrolling. */

@media (max-width: 1000px) {
    .mobile-header,
    body[data-page='home'] .home-mobile-header {
        position: sticky;
        top: 0;
        z-index: 999;
        min-height: 104px;
        margin-top: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        align-items: center;
    }

    .mobile-header .mobile-brand {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .mobile-header:has(+ .mobile-menu.open) {
        position: sticky;
        z-index: 1001;
    }
}

[data-page='contact'] .contact-email-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

[data-page='contact'] .contact-email-row .contact-envelope {
    flex: 0 0 44px;
    width: 44px;
    height: auto;
    margin: 0;
}

[data-page='contact'] .contact-email-row a,
[data-page='contact'] .contact-email-row a:is(:hover, :focus-visible) {
    min-width: 0;
    text-decoration: none;
    border-bottom: 0;
    box-shadow: none;
}

@media (max-width: 600px) {
    [data-page='contact'] .contact-email-row {
        gap: 9px;
    }

    [data-page='contact'] .contact-email-row .contact-envelope {
        flex-basis: 30px;
        width: 30px;
    }
}

/* Solid page-colour surface behind the sticky mobile/tablet header. */

@media (max-width: 1000px) {
    body > header.mobile-header,
    body > header.mobile-header:has(+ .mobile-menu.open) {
        background-color: var(--page-background, #ffffff) !important;
        background-image: none !important;
        opacity: 1;
    }
}

/* Clearer recommendation heading across project pages. */

.case-next-label {
    font-size: 19px;
    line-height: 1.3;
}

/* Bold, playful opening titles for the four main sections. */

body:is([data-page='work'], [data-page='play'], [data-page='about'], [data-page='contact']) .page-intro h1 {
    position: relative;
    display: inline-block;
    isolation: isolate;
    font-family: 'Arial Black', 'Segoe UI Black', Arial, sans-serif;
    font-size: clamp(48px, 6.5vw, 92px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.065em;
    color: #302033;
    margin-bottom: 22px;
    -webkit-text-stroke: 0.012em currentColor;
}

@media (max-width: 650px) {
    body:is([data-page='work'], [data-page='play'], [data-page='about'], [data-page='contact'])
        .page-intro
        h1 {
        font-size: clamp(46px, 12vw, 66px);
        margin-bottom: 18px;
    }
}

/* Align desktop project headings with the logo's top edge. */

@media (min-width: 1001px) {
    .project-page .case-content > .case-title {
        padding-top: 0;
        margin-top: -12px;
    }
}

/* Contact: social links directly below email; no back-to-top footer. */

body[data-page='contact'] .contact-socials a {
    color: inherit;
    text-decoration: none;
}

body[data-page='contact'] .contact-socials a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* SUNDIAL: playful opening with the isolated product photograph. */

[data-project='sundial'] .sundial-introduction {
    display: grid;
    align-items: center;
}

[data-project='sundial'] .sundial-opening-copy {
    margin: 0;
    min-width: 0;
}

[data-project='sundial'] .sundial-opening-copy h2 {
    letter-spacing: -0.05em;
    font-weight: 800;
    margin: 0 0 22px;
}

[data-project='sundial'] .sundial-opening-copy p {
    margin: 0;
}

[data-project='sundial'] .sundial-opening-image {
    width: 100%;
    height: auto;
    max-height: 580px;
    object-fit: contain;
    margin: 0;
}

@media (max-width: 650px) {
    [data-project='sundial'] .sundial-introduction {
        margin-bottom: 24px;
    }

    [data-project='sundial'] .sundial-opening-copy p {
        max-width: 36ch;
    }

    [data-project='sundial'] .sundial-opening-image {
        max-height: 480px;
    }
}

/* Remove the PNG's empty transparent margins from the layout, not the object. */

[data-project='sundial'] .case-content > .case-title {
    padding-bottom: 24px;
}

[data-project='sundial'] .sundial-introduction {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(18px, 2vw, 30px);
    margin: 0 0 32px;
}

[data-project='sundial'] .sundial-opening-copy h2 {
    font-size: clamp(56px, 6.7vw, 100px);
    line-height: 0.94;
    margin-bottom: 24px;
}

[data-project='sundial'] .sundial-opening-copy p {
    max-width: 31ch;
}

[data-project='sundial'] .sundial-product-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3357 / 3231;
}

[data-project='sundial'] .sundial-product-frame .sundial-opening-image {
    position: absolute;
    width: 178.730116%;
    max-width: none;
    height: auto;
    max-height: none;
    left: -33.780161%;
    top: -23.800681%;
    margin: 0;
}

@media (max-width: 650px) {
    [data-project='sundial'] .sundial-introduction {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    [data-project='sundial'] .sundial-opening-copy h2 {
        font-size: clamp(58px, 15vw, 84px);
    }

    [data-project='sundial'] .sundial-product-frame {
        width: min(100%, 440px);
        justify-self: center;
    }
}

/* Expressive display typography; body copy retains its existing font. */

@font-face {
    font-family: 'Outfit';
    src: url('../../fonts/Outfit-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

:root {
    --font-display: 'Outfit', 'Trebuchet MS', sans-serif;
}

body h1,
body h2,
body h3,
body h4,
body .main-navigation a,
body .sidebar-navigation a,
body .sidebar-secondary a,
body .nav-secondary a,
body .mobile-menu a,
body .case-next-label,
body .combo-drawing-comparison figcaption,
body .reference-hero .studio-hero-copy h1 .hero-play,
body:is([data-page='work'], [data-page='play'], [data-page='about'], [data-page='contact']) .page-intro h1 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    -webkit-text-stroke: 0;
}

body h1,
body .reference-hero .studio-hero-copy h1,
body .reference-hero .studio-hero-copy h1 .hero-play,
body:is([data-page='work'], [data-page='play'], [data-page='about'], [data-page='contact']) .page-intro h1 {
    font-weight: 800;
}

body h2,
body h3,
body h4 {
    font-weight: 700;
}

body .main-navigation a,
body .sidebar-navigation a,
body .sidebar-secondary a,
body .nav-secondary a,
body .mobile-menu a {
    font-weight: 700;
    letter-spacing: -0.025em;
}

body .project-info h3,
body .next-project-info h3 {
    letter-spacing: -0.025em;
}

/* Balance the concept render beside the taller text on compact desktops. */

@media (min-width: 1001px) and (max-width: 1200px) {
    [data-project='toko'] .toko-edge-render {
        translate: 0 48px;
    }
}

/* Shared interface finishing details. */

:root {
    --ui-muted: #666;
}

.reference-hero .studio-hero-copy .hero-designer-tag,
.project-info h3::before,
.next-project-info h3::before {
    background: var(--ui-yellow);
}

.main-navigation a > .nav-lettering,
.sidebar-navigation a > .nav-lettering,
.sidebar-secondary a > .nav-lettering,
.mobile-menu a > .nav-lettering {
    position: relative;
}

body .main-navigation a:focus-visible,
body .sidebar-navigation a:focus-visible,
body .sidebar-secondary a:focus-visible,
body .mobile-menu a:focus-visible {
    outline: 2px solid var(--ui-ink);
    outline-offset: 3px;
}

body .project-image,
body .next-project-thumb {
    margin-bottom: 14px;
}

body .project-info,
body .next-project-info {
    row-gap: 5px;
}

body .project-info h3,
body .next-project-info h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    white-space: normal;
}

body .project-info > span:not(.project-number),
body.project-page[data-project] .next-project-info > span {
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.055em;
    color: var(--ui-muted);
    white-space: normal;
}

body .project-info {
    --caption-title-size: 16px;
    --caption-category-size: 11px;
    --caption-gap: 5px;
    row-gap: var(--caption-gap);
}

body .project-info h3 {
    font-size: var(--caption-title-size);
}

body .project-info > .project-number {
    font-size: calc(
        var(--caption-title-size) * 1.25 + var(--caption-category-size) * 1.45 + var(--caption-gap)
    );
    line-height: 0.72;
    align-self: stretch;
    display: flex;
    align-items: center;
}

@media (max-width: 650px) {
    body .project-info {
        --caption-title-size: 15px;
    }
}

body.project-page .case-next {
    margin: 64px auto 0;
    padding: 40px 0 0;
}

body.project-page .case-next-label {
    color: var(--ui-ink);
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 24px;
}

body.project-page .case-next-grid {
    gap: 32px 22px;
}

body .site-footer,
body.project-page .site-footer {
    margin-top: 48px;
    padding: 24px 20px 40px;
    gap: 28px;
}

body .site-footer-top {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 650px) {
    body.project-page .case-next {
        margin-top: 40px;
        padding-top: 28px;
    }

    body .project-info h3,
    body .next-project-info h3 {
        font-size: 15px;
    }
}

/* Centered recommendation heading with footer letter motion. */

body.project-page .case-next {
    border-top: 0;
}

body.project-page .case-next-label {
    width: fit-content;
    margin-inline: auto;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .case-next-label:hover > .nav-lettering .nav-letter {
        transform: translate(var(--letter-x), var(--letter-y)) rotate(var(--letter-angle));
    }
}

@media (prefers-reduced-motion: reduce) {
    .case-next-label:hover > .nav-lettering .nav-letter {
        transform: none;
    }
}

/* Edge fading is tied to each SVG viewBox, independent of object-fit letterboxing. */

[data-project='toko'] .toko-dark-products img,
[data-project='toko'] .toko-dark-products figure:nth-child(n + 3) img {
    -webkit-mask-image: none;
    mask-image: none;
}

/* COMBO: compact logo on tablet; full-bleed making background only. */

@media (max-width: 1000px) {
    [data-project='combo'] .toy-set-heading-logo {
        left: calc(100% + 12px);
        width: auto;
        max-width: none;
        height: 1cap;
    }

    .project-page[data-project='combo'] .combo-making-section {
        position: relative;
        isolation: isolate;
    }

    .project-page[data-project='combo'] .combo-making-section::before {
        content: '';
        position: absolute;
        z-index: -1;
        pointer-events: none;
        inset: 0 calc(-1 * var(--project-gutter));
        background: #d3e2e7;
    }
}

@media (max-width: 650px) {
    [data-project='combo'] .combo-play-slogan {
        left: -8px;
    }
}

/* COMBO logo switches at the same breakpoint as the navigation. */

[data-project='combo'] .combo-logo-compact {
    display: none;
}

[data-project='combo'] .combo-logo-desktop {
    display: block;
}

@media (max-width: 1000px) {
    [data-project='combo'] .combo-logo-desktop {
        display: none;
    }

    [data-project='combo'] .combo-logo-compact {
        display: block;
    }
}

.project-page[data-project='combo'] .combo-making-copy .case-section-heading h2 {
    color: var(--project-accent);
}

[data-project='combo'] .combo-play-slogan {
    position: static;
    left: auto;
    margin: 0;
}

[data-project='combo'] .combo-final-images figure {
    width: 100%;
    max-width: 900px;
    justify-self: center;
    margin: 0;
}

/* Recycled-plastic texture fills the slogan beside the finished toy set. */

[data-project='combo'] .combo-final-images {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
}

[data-project='combo'] .combo-play-slogan {
    text-align: left;
    line-height: 0.98;
    color: #285b78;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    [data-project='combo'] .combo-play-slogan {
        background-size: cover;
        background-position: center;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

@media (max-width: 640px) {
    [data-project='combo'] .combo-final-images {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 12px;
    }
}

/* Align the closing slogan with the standard 900px case-study text column. */

[data-project='combo'] .combo-final-images {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(0px, calc((min(100%, 1200px) - 900px) / 2));
}

/* COMBO final colour and slogan refinement. */

[data-project='combo'] .combo-play-slogan {
    font-size: clamp(37px, 5.7vw, 84px);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    [data-project='combo'] .combo-play-slogan {
        background-image:
            linear-gradient(rgba(25, 65, 90, 0.16), rgba(25, 65, 90, 0.16)),
            url('../../images/combo/combo-texture.jpg');
    }
}

@media (max-width: 640px) {
    [data-project='combo'] .combo-play-slogan {
        font-size: clamp(27px, 7.2vw, 46px);
    }
}

/* Extra background breathing room on narrow desktop layouts. */

@media (min-width: 1001px) and (max-width: 1250px) {
    .project-page[data-project='combo'] .combo-making-section {
        position: relative;
        isolation: isolate;
        background: transparent;
    }

    .project-page[data-project='combo'] .combo-making-section::before {
        content: '';
        position: absolute;
        z-index: -1;
        pointer-events: none;
        inset: 0 -24px;
        background: #d3e2e7;
    }
}

/* IRON: a continuous dark canvas, including navigation and footer. */

body.project-page[data-project='iron'] {
    --page-background: #1a1a1a;
    --project-accent: #e15a5c;
    --project-accent-detail: #e15a5c;
    background: #1a1a1a;
}

[data-project='iron'] .case-layout,
[data-project='iron'] .case-content,
[data-project='iron'] .mobile-header,
[data-project='iron'] .mobile-menu,
[data-project='iron'] .mobile-menu.open {
    background: #1a1a1a !important;
}

[data-project='iron'] .sidebar-navigation > a,
[data-project='iron'] .sidebar-navigation > a:is(:hover, :focus-visible, .active),
[data-project='iron'] .mobile-menu a.mobile-main-link,
[data-project='iron'] .mobile-menu a.mobile-main-link:is(:hover, :focus-visible, .active),
[data-project='iron'] .menu-button,
[data-project='iron'] .case-text,
[data-project='iron'] .case-text p,
[data-project='iron'] .case-next-label,
[data-project='iron'] .next-project-info h3,
[data-project='iron'] .site-footer a {
    color: #f1eeec;
}

[data-project='iron'] .case-section-heading h2 {
    color: #e15a5c;
}

[data-project='iron'] .next-project-info > span {
    color: #b6b1b0;
}

[data-project='iron'] .next-project-info h3::before {
    background: #853335;
}

/* Softer contrast on the dark Iron page. */

body.project-page[data-project='iron'] {
    color: #bdb9b7;
}

[data-project='iron'] .personal-logo {
    filter: brightness(0) invert(0.7);
}

[data-project='iron'] .sidebar-navigation > a,
[data-project='iron'] .sidebar-navigation > a:is(:hover, :focus-visible, .active),
[data-project='iron'] .mobile-menu a.mobile-main-link,
[data-project='iron'] .mobile-menu a.mobile-main-link:is(:hover, :focus-visible, .active),
[data-project='iron'] .menu-button,
[data-project='iron'] .case-text,
[data-project='iron'] .case-text p,
[data-project='iron'] .iron-opening-copy p,
[data-project='iron'] .next-project-info h3,
[data-project='iron'] .site-footer a {
    color: #bdb9b7;
}

body.project-page[data-project='iron'] .case-next-label {
    color: #a7a3a1;
}

/* Burgundy metadata and a Concept heading matching IRON exactly. */

[data-project='iron'] .iron-opening .case-title .case-year,
[data-project='iron'] .iron-opening .case-title .case-type {
    color: #8e343d;
}

[data-project='iron'] .iron-opening .iron-opening-copy h2 {
    color: #d03a3d;
}

/* A soft burst of steam from the concept iron on click or tap. */

[data-project='iron'] .iron-steam-trigger {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    appearance: none;
    cursor: pointer;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}

[data-project='iron'] .iron-steam-trigger > img {
    display: block;
    width: 100%;
    height: auto;
}

.iron-steam-trigger:focus-visible {
    outline: 2px solid #b64f52;
    outline-offset: 8px;
    border-radius: 8px;
}

.iron-steam-layer {
    position: absolute;
    pointer-events: none;
    overflow: visible;
}

.iron-steam-puff {
    position: absolute;
    left: var(--steam-left);
    top: var(--steam-top);
    width: var(--steam-size);
    aspect-ratio: 0.8;
    border-radius: 48% 52% 60% 40%;
    background: radial-gradient(
        ellipse,
        rgba(220, 225, 230, 0.42) 0%,
        rgba(205, 215, 223, 0.18) 40%,
        transparent 72%
    );
    filter: blur(7px);
    opacity: 0;
    mix-blend-mode: screen;
    animation: iron-steam-rise var(--steam-duration) ease-out var(--steam-delay) both;
}

@keyframes iron-steam-rise {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.25) rotate(-12deg);
    }
    18% {
        opacity: 0.85;
    }
    50% {
        opacity: 0.52;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--steam-drift)), var(--steam-rise)) scale(1.9) rotate(22deg);
    }
}

@media (max-width: 700px) {
    .iron-opening-story > .iron-steam-trigger {
        grid-row: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iron-steam-puff {
        animation-name: iron-steam-gentle;
    }

    @keyframes iron-steam-gentle {
        0%,
        100% {
            opacity: 0;
        }
        35% {
            opacity: 0.45;
        }
    }
}

/* Continuous textured steam, drawn beneath the soleplate. */

.iron-steam-layer {
    inset: 0;
}

.iron-steam-canvas {
    position: absolute;
    pointer-events: none;
    max-width: none !important;
    mix-blend-mode: screen;
}

/* Keep the steam from creating horizontal scrolling. */

body.project-page[data-project='iron'] {
    overflow-x: clip;
}

/* Carry the iron render to the right page edge without moving the copy. */

@media (min-width: 1001px) {
    [data-project='iron'] .iron-opening-story > .iron-steam-trigger {
        width: calc(100% + max(35px, (100vw - 1500px) / 2 + 35px));
        max-width: none;
    }
}

@media (max-width: 1000px) {
    [data-project='iron'] .iron-opening-story > .iron-steam-trigger {
        width: calc(100% + var(--page-gutter, 35px));
        max-width: none;
    }
}

/* Consistent Iron headings, a breathing border for sketches and larger drawings. */

body.project-page[data-project='iron'] h1,
body.project-page[data-project='iron'] .iron-opening-copy h2,
body.project-page[data-project='iron'] .case-section-heading h2 {
    color: #d03a3d;
}

[data-project='iron'] .iron-sketch-link {
    background: #fff;
    padding: clamp(18px, 3vw, 36px);
}

[data-project='iron'] .iron-final-panel {
    padding: 24px 0 0;
}

@media (max-width: 700px) {
    [data-project='iron'] .iron-final-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

/* Secondary navigation matches the IRON title in every interaction state. */

body.project-page[data-project='iron'] .sidebar-secondary a,
body.project-page[data-project='iron'] .sidebar-secondary a:is(:hover, :focus-visible, .active),
body.project-page[data-project='iron'] .mobile-menu a.mobile-secondary-link,
body.project-page[data-project='iron']
    .mobile-menu
    a.mobile-secondary-link:is(:hover, :focus-visible, .active) {
    color: #d03a3d;
}

/* Tighter process transition and a stronger final side view. */

[data-project='iron'] .iron-opening {
    margin-bottom: 24px;
    padding-bottom: 16px;
}

[data-project='iron'] .iron-prototype-grid {
    margin-bottom: 24px;
}

[data-project='iron'] .iron-prototype-takeaway {
    margin-bottom: 40px;
}

[data-project='iron'] .iron-final-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    width: calc(100% + max(35px, (100vw - 1500px) / 2 + 35px));
    gap: 26px;
    padding-right: 0;
    overflow: visible;
}

[data-project='iron'] .iron-final-panel .iron-final-render {
    width: 100%;
    height: auto;
}

@media (max-width: 1000px) {
    [data-project='iron'] .iron-final-panel {
        width: calc(100% + var(--project-gutter, 35px));
    }
}

@media (max-width: 700px) {
    [data-project='iron'] .iron-final-panel {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* SUNDIAL opening follows the shared case-study text alignment. */

[data-project='sundial'] .sundial-introduction {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(0px, calc((min(100%, 1200px) - 900px) / 2));
}

[data-project='sundial'] .sundial-opening-copy h2 {
    color: #8b5929;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    [data-project='sundial'] .sundial-opening-copy h2 {
        background-image:
            linear-gradient(rgba(74, 42, 14, 0.12), rgba(74, 42, 14, 0.12)),
            url('../../images/sundial/sundial-sunlight-texture.jpg.webp');
        background-size: cover;
        background-position: center;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

@media (forced-colors: active) {
    [data-project='sundial'] .sundial-opening-copy h2 {
        background: none;
        color: CanvasText;
        -webkit-text-fill-color: CanvasText;
    }
}

/* SUNDIAL finishing: deliberate opening crop, quieter gallery, tighter ending. */

[data-project='sundial'] .sundial-product-frame {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 92%);
}

[data-project='sundial'] .sundial-action-gallery {
    background: #d98770;
}

[data-project='sundial'] .sundial-action-gallery figure {
    overflow: hidden;
}

[data-project='sundial'] .sundial-action-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

[data-project='sundial'] .sundial-action-gallery figure:first-child img {
    object-position: 54% 54%;
}

[data-project='sundial'] .sundial-action-gallery figure:nth-child(2) img {
    object-position: 48% 52%;
}

body.project-page[data-project='sundial'] .case-next {
    margin-top: 24px;
    padding-top: 16px;
}

@media (max-width: 650px) {
    body.project-page[data-project='sundial'] .case-next {
        margin-top: 20px;
        padding-top: 12px;
    }
}

/* Process video occupies the first photograph's existing gallery slot. */

[data-project='sundial'] .sundial-prototype-gallery .sundial-process-video {
    display: block;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    height: calc((100cqw - 16px) / 2.8333333333);
    aspect-ratio: 4 / 3;
    align-self: auto;
}

/* Fill the process tile without letterboxing. */

[data-project='sundial'] .sundial-prototype-gallery .sundial-process-video {
    object-fit: cover;
    object-position: center;
    background: transparent;
}

/* Overlap the loop ending with its opening for a softer transition. */

[data-project='sundial'] .sundial-prototype-gallery .sundial-video-loop {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    height: calc((100cqw - 16px) / 2.8333333333);
    aspect-ratio: 4 / 3;
    max-width: 100%;
}

[data-project='sundial'] .sundial-video-loop .sundial-process-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    aspect-ratio: auto;
    pointer-events: none;
}

/* Sara's current interface palette; project heading accents stay independent. */

:root {
    --brand-indigo: #101334;
    --brand-orange: #d34e24;
    --brand-yellow: #f1db4b;
    --brand-blue: #92b9bd;
    --ui-ink: var(--brand-indigo);
    --ui-accent: var(--brand-orange);
    --ui-yellow: var(--brand-yellow);
}

body .personal-logo {
    filter: url('../../images/shared/personal-branding-logo-filter.svg#indigo') !important;
}

body .main-navigation > a,
body .sidebar-navigation > a,
body .mobile-menu a.mobile-main-link,
body .main-navigation > a:is(:hover, :focus-visible, .active),
body .sidebar-navigation > a:is(:hover, :focus-visible, .active),
body .mobile-menu a.mobile-main-link:is(:hover, :focus-visible, .active) {
    color: var(--brand-indigo) !important;
}

body .nav-secondary a,
body .sidebar-secondary a,
body .mobile-menu a.mobile-secondary-link,
body .nav-secondary a:is(:hover, :focus-visible, .active),
body .sidebar-secondary a:is(:hover, :focus-visible, .active),
body .mobile-menu a.mobile-secondary-link:is(:hover, :focus-visible, .active) {
    color: var(--brand-orange) !important;
}

body:is([data-page='work'], [data-page='play'], [data-page='about'], [data-page='contact']) .page-intro h1,
body[data-page='home'] .reference-hero .studio-hero-copy h1,
body .project-info h3,
body .next-project-info h3 {
    color: var(--brand-indigo);
}

body .project-info > .project-number {
    color: var(--brand-orange);
}

body .custom-cursor::before {
    background: var(--brand-orange);
}

body .custom-cursor.is-clickable::before {
    background: var(--brand-blue);
}

body .reference-hero .studio-hero-mark path {
    fill: var(--brand-yellow);
}

body .reference-hero .studio-hero-copy .hero-designer-tag {
    background: var(--brand-yellow);
    color: var(--brand-indigo);
}

body .project-info h3::before,
body .next-project-info h3::before {
    background: var(--brand-yellow);
}

body[data-page='contact'] .info-copy a[href^='mailto:'] {
    color: var(--brand-orange);
}

body[data-page='contact'] .contact-envelope path:first-child {
    fill: var(--brand-orange);
}

body .cv-button,
body .info-copy a.cv-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 154px;
    height: 154px;
    box-sizing: border-box;
    padding: 22px;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    background: var(--brand-orange);
    color: #fff;
    text-align: center;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 600;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

body .cv-button:hover,
body .info-copy a.cv-button:hover {
    background: var(--brand-indigo, #101334);
    color: #fff;
}

body .info-copy a.cv-button:focus-visible {
    outline: 2px solid var(--brand-indigo, #101334);
    outline-offset: 5px;
}

body .studio-hero-work {
    color: var(--brand-orange);
}

body .sidebar nav.main-navigation > a,
body .sidebar nav.main-navigation > a:is(:hover, :focus-visible, .active),
body .case-sidebar nav.sidebar-navigation > a,
body .case-sidebar nav.sidebar-navigation > a:is(:hover, :focus-visible, .active) {
    color: var(--brand-indigo) !important;
}

/* A compact palette composition around the home hero star. */

body[data-page='home'] .reference-hero .studio-hero-inner {
    position: relative;
    isolation: isolate;
}

body[data-page='home'] .reference-hero .studio-hero-inner::before {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--brand-blue);
}

body[data-page='home'] .reference-hero .studio-hero-inner::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    aspect-ratio: 1;
    border: clamp(14px, 1.8vw, 25px) solid var(--brand-orange);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(28deg);
}

body[data-page='home'] .reference-hero .studio-hero-mark {
    position: relative;
    z-index: 1;
}

@media (max-width: 650px) {
    body[data-page='home'] .reference-hero .studio-hero-inner::after {
        border-width: 11px;
    }
}

/* Dark Iron page: every navigation label and the personal logo stay grey. */

body.project-page[data-project='iron'] .case-sidebar nav a,
body.project-page[data-project='iron'] .case-sidebar nav a:is(:hover, :focus-visible, .active),
body.project-page[data-project='iron'] .mobile-menu a,
body.project-page[data-project='iron'] .mobile-menu a:is(:hover, :focus-visible, .active),
body.project-page[data-project='iron'] .menu-button {
    color: #bdb9b7;
}

/* Give each hero shape its own space around the star. */

body[data-page='home'] .reference-hero .studio-hero-inner::before {
    right: 0;
    top: 0;
    width: clamp(85px, 10vw, 140px);
}

body[data-page='home'] .reference-hero .studio-hero-inner::after {
    right: 25%;
    bottom: 0;
    width: clamp(85px, 10vw, 140px);
}

@media (max-width: 650px) {
    body[data-page='home'] .reference-hero .studio-hero-inner::before {
        width: 58px;
        right: -2%;
        top: 0;
    }

    body[data-page='home'] .reference-hero .studio-hero-inner::after {
        width: 58px;
        right: 18%;
        bottom: 0;
    }
}

/* Iron is exempt from the global indigo/orange navigation branding. */

body.project-page[data-project='iron'] .personal-logo {
    filter: brightness(0) invert(0.7) !important;
}

body.project-page[data-project='iron'] .case-sidebar nav.sidebar-navigation > a,
body.project-page[data-project='iron']
    .case-sidebar
    nav.sidebar-navigation
    > a:is(:hover, :focus-visible, .active),
body.project-page[data-project='iron'] .case-sidebar nav.sidebar-secondary > a,
body.project-page[data-project='iron']
    .case-sidebar
    nav.sidebar-secondary
    > a:is(:hover, :focus-visible, .active),
body.project-page[data-project='iron'] .mobile-menu a.mobile-main-link,
body.project-page[data-project='iron'] .mobile-menu a.mobile-main-link:is(:hover, :focus-visible, .active),
body.project-page[data-project='iron'] .mobile-menu a.mobile-secondary-link,
body.project-page[data-project='iron']
    .mobile-menu
    a.mobile-secondary-link:is(:hover, :focus-visible, .active),
body.project-page[data-project='iron'] .menu-button {
    color: #bdb9b7 !important;
}

/* Project secondary navigation follows each project title colour. */

body.project-page[data-project] {
    --project-navigation-accent: var(--project-accent);
}

body.project-page[data-project='iron'] {
    --project-navigation-accent: #d03a3d;
}

body.project-page[data-project] .case-sidebar nav.sidebar-secondary > a,
body.project-page[data-project] .case-sidebar nav.sidebar-secondary > a:is(:hover, :focus-visible, .active),
body.project-page[data-project] .mobile-menu a.mobile-secondary-link,
body.project-page[data-project] .mobile-menu a.mobile-secondary-link:is(:hover, :focus-visible, .active) {
    color: var(--project-navigation-accent) !important;
}

/* Navigation keeps its bold weight while letters animate. */

body .main-navigation a,
body .sidebar-navigation a,
body .sidebar-secondary a,
body .nav-secondary a,
body .mobile-menu a,
body .main-navigation a:is(:hover, :focus-visible, .active),
body .sidebar-navigation a:is(:hover, :focus-visible, .active),
body .sidebar-secondary a:is(:hover, :focus-visible, .active),
body .nav-secondary a:is(:hover, :focus-visible, .active),
body .mobile-menu a:is(:hover, :focus-visible, .active) {
    font-weight: 700 !important;
}

body
    :is(.main-navigation, .sidebar-navigation, .sidebar-secondary, .nav-secondary, .mobile-menu)
    .nav-lettering,
body
    :is(.main-navigation, .sidebar-navigation, .sidebar-secondary, .nav-secondary, .mobile-menu)
    .nav-letter {
    font-weight: inherit;
}

/* Sundial photo comparison on the page background with brand-orange captions. */

body[data-project='sundial'] .sundial-action-gallery {
    background: transparent;
}

body[data-project='sundial'] .sundial-action-gallery figcaption {
    color: var(--project-accent);
}

/* A persistent cue for the interactive iron render. */

/* Tight final-render framing keeps the whole iron prominent. */

[data-project='iron'] .iron-final-render-crop {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6;
    overflow: hidden;
}

[data-project='iron'] .iron-final-panel .iron-final-render-crop .iron-final-render {
    position: absolute;
    width: 145%;
    max-width: none;
    height: auto;
    left: -18%;
    top: -33%;
}

/* Blend the cropped final iron render into the dark page at its lower edge. */

[data-project='iron'] .iron-final-render-crop {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

/* Let the final iron image reach the viewport's left edge on tablet and mobile. */

@media (max-width: 1000px) {
    [data-project='iron'] .iron-final-render-crop {
        margin-left: calc(-1 * var(--project-gutter, 35px));
        width: calc(100% + var(--project-gutter, 35px));
    }
}

/* Keep the cropped render measurable before its image loads. */

[data-project='iron'] .iron-final-render-crop {
    min-width: 0;
    align-self: center;
    height: auto;
}

[data-project='iron'] .iron-final-render-crop .iron-final-render {
    aspect-ratio: 1.6;
}

/* Project captions without numbering or an empty number column. */

body .project-info {
    grid-template-columns: minmax(0, 1fr);
}

body .project-info > div,
body .project-info > span:not(.project-number) {
    grid-column: 1;
}

/* Keep thumbnail steam inside the image and preserve the project link. */

.project-link[href$='projects/iron.html'] .project-image {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.project-link[href$='projects/iron.html'] .iron-steam-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Project cards and pages ready for future content. */

.project-image.project-dusk-lamp,
.next-project-thumb.project-dusk-lamp {
    background: #e9b999;
}

.project-page[data-project='dusk-lamp'] {
    --project-accent: #ad6038;
    --project-detail: #ad6038;
}

.project-image.project-personal-branding,
.next-project-thumb.project-personal-branding {
    background: #f0ad98;
}

.project-page[data-project='personal-branding'] {
    --project-accent: #ce502c;
    --project-detail: #ce502c;
}

.project-image.project-pattern-playground,
.next-project-thumb.project-pattern-playground {
    background: #c6d8f0;
}

.project-page[data-project='pattern-playground'] {
    --project-accent: #4671ad;
    --project-detail: #4671ad;
}

.project-image.project-mosaic-coffee-table,
.next-project-thumb.project-mosaic-coffee-table {
    background: #c6d9c9;
}

.project-page[data-project='mosaic-coffee-table'] {
    --project-accent: #477c60;
    --project-detail: #477c60;
}

.project-image.project-out-of-place,
.next-project-thumb.project-out-of-place {
    background: #d3c6df;
}

.project-page[data-project='out-of-place'] {
    --project-accent: #806194;
    --project-detail: #806194;
}

.project-image.project-sketchbook,
.next-project-thumb.project-sketchbook {
    background: #ece2b9;
}

.project-page[data-project='sketchbook'] {
    --project-accent: #94752c;
    --project-detail: #94752c;
}

/* Closer crop of the fox sweater in Knitting thumbnails. */

.project-image img[src$='knitting-into-the-wild-sweater.JPEG'],
.next-project-thumb img[src$='knitting-into-the-wild-sweater.JPEG'] {
    object-position: 50% 35%;
    transform: scale(1.28);
    transform-origin: 50% 35%;
}

.project-link:hover .project-image img[src$='knitting-into-the-wild-sweater.JPEG'],
.project-link:focus-visible .project-image img[src$='knitting-into-the-wild-sweater.JPEG'],
.project:hover .project-image img[src$='knitting-into-the-wild-sweater.JPEG'],
.next-project-card:hover .next-project-thumb img[src$='knitting-into-the-wild-sweater.JPEG'],
.next-project-card:focus-visible .next-project-thumb img[src$='knitting-into-the-wild-sweater.JPEG'] {
    transform: scale(1.33);
}

/* Home: personal introduction in place of the Serious about play slogan. */

body[data-page='home'] .reference-hero .studio-hero-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 48px);
    align-items: center;
}

body[data-page='home'] .reference-hero .studio-hero-copy {
    left: 0;
    min-width: 0;
}

body[data-page='home'] .reference-hero .studio-hero-copy h1.hero-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(42px, 5.3vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 800;
}

body[data-page='home'] .reference-hero .hero-name > span {
    display: block;
}

body[data-page='home'] .reference-hero .studio-hero-copy .hero-designer-tag {
    margin-top: 24px;
    font-size: clamp(9px, 0.8vw, 12px);
    letter-spacing: 0.1em;
    white-space: normal;
}

@media (max-width: 650px) {
    body[data-page='home'] .reference-hero .studio-hero-inner {
        grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
        gap: 12px;
    }

    body[data-page='home'] .reference-hero .studio-hero-copy h1.hero-name {
        font-size: clamp(28px, 6.4vw, 42px);
    }

    body[data-page='home'] .reference-hero .studio-hero-copy .hero-designer-tag {
        font-size: 8px;
        margin-top: 16px;
    }
}

/* Contact: one compact invitation with an unmistakable email action. */

body[data-page='contact'] .content-panel.info-page {
    max-width: 960px;
    min-width: 0;
    gap: 32px;
    padding-top: 8px;
}

body[data-page='contact'] .page-intro h1 {
    font-size: clamp(64px, 7vw, 104px);
    line-height: 1;
    margin: 0;
}

body[data-page='contact'] .info-copy {
    margin-top: 0;
    gap: 28px;
    min-width: 0;
}

body[data-page='contact'] .info-copy > p:first-child {
    max-width: 52ch;
    font-size: clamp(17px, 1.65vw, 21px);
    line-height: 1.6;
    color: var(--brand-indigo);
}

body[data-page='contact'] .contact-email-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 12px 0 28px;
}

body[data-page='contact'] .contact-email-row .contact-envelope {
    flex: 0 0 54px;
    width: 54px;
}

body[data-page='contact'] .info-copy a[href^='mailto:'] {
    font-size: clamp(23px, 2.65vw, 38px);
    line-height: 1.3;
    letter-spacing: -0.035em;
    overflow-wrap: normal;
    word-break: normal;
}

body[data-page='contact'] .contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid #e4e4e9;
    color: var(--brand-indigo);
}

body[data-page='contact'] .contact-socials .footer-social {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: auto;
    height: auto;
    min-height: 44px;
    text-decoration: none;
}

body[data-page='contact'] .contact-socials .footer-social::after {
    content: attr(aria-label);
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}

body[data-page='contact'] .contact-socials svg {
    width: 20px;
    height: 20px;
}

body[data-page='contact'] .contact-socials a:hover {
    color: var(--brand-orange);
}

@media (max-width: 650px) {
    body[data-page='contact'] .content-panel.info-page {
        gap: 24px;
        padding-top: 12px;
    }

    body[data-page='contact'] .page-intro h1 {
        font-size: clamp(56px, 14vw, 78px);
    }

    body[data-page='contact'] .contact-email-row {
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 8px;
    }

    body[data-page='contact'] .contact-email-row .contact-envelope {
        flex-basis: 30px;
        width: 30px;
        margin-top: 3px;
    }

    body[data-page='contact'] .info-copy a[href^='mailto:'] {
        font-size: clamp(21px, 5.5vw, 30px);
    }

    body[data-page='contact'] .contact-socials {
        gap: 10px 22px;
        padding-top: 18px;
    }
}

/* Contact social links without a divider, with larger icons. */

body[data-page='contact'] .contact-socials {
    border-top: 0;
}

body[data-page='contact'] .contact-socials .footer-social {
    font-size: 30px;
    gap: 12px;
}

body[data-page='contact'] .contact-socials svg {
    width: 30px;
    height: 30px;
}

/* Use the supplied recycled-plastic photograph inside the lettering. */

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    [data-project='combo'] .combo-play-slogan {
        background-image:
            linear-gradient(rgba(16, 39, 58, 0.22), rgba(16, 39, 58, 0.22)),
            url('../../images/combo/combo-texture.jpg');
        background-size: cover;
        background-position: center;
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

@media (forced-colors: active) {
    [data-project='combo'] .combo-play-slogan {
        background: none;
        color: CanvasText;
        -webkit-text-fill-color: CanvasText;
    }
}

.pinball-making-photo {
    margin: 32px auto 48px;
    max-width: 900px;
}

.pinball-making-photo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 680px;
    margin: auto;
}

/* CV circle overlaps the portrait like a slightly tilted sticker. */

body[data-page='about'] .about-portrait-wrap {
    position: relative;
    width: 100%;
    max-width: 370px;
    justify-self: center;
    align-self: center;
    margin: 0 0 18px;
}

body[data-page='about'] .about-portrait-wrap .about-portrait {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1;
}

body[data-page='about'] .about-portrait-wrap .cv-button {
    position: absolute;
    z-index: 1;
    text-decoration: none;
}

body[data-page='about'] .about-portrait-wrap .cv-button:focus-visible {
    outline: 2px solid var(--brand-indigo, #101334);
    outline-offset: 5px;
}

@media (max-width: 680px) {
    body[data-page='about'] .about-portrait-wrap {
        max-width: 280px;
        margin-bottom: 24px;
    }
}

/* Smaller, upright CV circle with a lighter portrait overlap. */

body[data-page='about'] .about-portrait-wrap .cv-button {
    width: 134px;
    height: 134px;
    padding: 18px;
    font-size: 21px;
    right: -20px;
    bottom: -24px;
    transform: none;
}

@media (max-width: 680px) {
    body[data-page='about'] .about-portrait-wrap .cv-button {
        width: 102px;
        height: 102px;
        padding: 14px;
        font-size: 17px;
        right: -12px;
        bottom: -20px;
    }
}

/* Yellow CV badge with legible dark text. */

body[data-page='about'] .about-portrait-wrap .cv-button {
    background: var(--brand-yellow, #f5dd57);
    color: var(--brand-indigo, #101334);
}

/* Restore the navy interaction state on the yellow CV badge. */

body[data-page='about'] .about-portrait-wrap .cv-button:is(:hover, :focus-visible) {
    background: var(--brand-indigo, #101334);
    color: #fff;
}

/* Multiply the yellow CV circle with the portrait beneath it. */

body[data-page='about'] .about-portrait-wrap {
    isolation: isolate;
}

body[data-page='about'] .about-portrait-wrap .cv-button {
    mix-blend-mode: multiply;
}

body[data-page='about'] .about-portrait-wrap .cv-button:is(:hover, :focus-visible) {
    mix-blend-mode: multiply;
}

/* Blend only the circle; keep the CV label in a solid colour. */

body[data-page='about'] .about-portrait-wrap .cv-button,
body[data-page='about'] .about-portrait-wrap .cv-button:is(:hover, :focus-visible) {
    background: transparent;
    mix-blend-mode: normal;
    z-index: auto;
}

body[data-page='about'] .about-portrait-wrap .cv-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand-yellow, #f5dd57);
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: background-color 0.2s ease;
}

body[data-page='about'] .about-portrait-wrap .cv-button:is(:hover, :focus-visible)::before {
    background: var(--brand-indigo, #101334);
}

body[data-page='about'] .about-portrait-wrap .cv-button-label {
    position: relative;
    z-index: 1;
    color: var(--brand-indigo, #101334);
}

body[data-page='about'] .about-portrait-wrap .cv-button:is(:hover, :focus-visible) .cv-button-label {
    color: #fff;
}

/* Hand-drawn navigation symbols from the supplied artwork. */

body .menu-button {
    font-size: 0;
}

body .menu-button::before {
    content: '';
    display: block;
    width: 42px;
    height: 42px;
    background: currentColor;
}

body .menu-button[aria-expanded='true']::before {
    -webkit-mask-image: url('../../images/shared/handdrawn-close.png.webp');
    mask-image: url('../../images/shared/handdrawn-close.png.webp');
}

.site-footer-top .handdrawn-arrow {
    display: inline-block;
    width: 29px;
    height: 39px;
    margin-right: 8px;
    vertical-align: middle;
    background: currentColor;
    -webkit-mask: url('../../images/shared/handdrawn-arrow-new.png.webp') center / contain no-repeat;
    mask: url('../../images/shared/handdrawn-arrow-new.png.webp') center / contain no-repeat;
}

/* Keep the hairdryer and its coloured shadow in the thumbnail frame. */

.project-image img[src*='hairdryer-thumbnail'],
.next-project-thumb img[src*='hairdryer-thumbnail'] {
    object-fit: cover;
    object-position: center bottom;
}

.project-image.project-mosaic-fish,
.next-project-thumb.project-mosaic-fish {
    background: #fff;
}

.project-image.project-mosaic-fish img,
.next-project-thumb.project-mosaic-fish img {
    object-fit: contain;
}

.project-image.project-knitting-square,
.project-page .next-project-thumb.project-knitting-square {
    aspect-ratio: 1;
    background: #485946;
}

.project-image.project-knitting-square img,
.project-page .next-project-thumb.project-knitting-square img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-image.project-dusk-sketches,
.next-project-thumb.project-dusk-sketches {
    background: #fff;
}

.project-image.project-dusk-sketches img,
.project-page .next-project-thumb.project-dusk-sketches img {
    object-fit: contain;
}

body .project-image.project-melo img,
body.project-page .next-project-thumb.project-melo img {
    object-position: center;
    transform: translateX(3%) scale(1.08);
}

body .project-link:is(:hover, :focus-visible) .project-image.project-melo img,
body.project-page .next-project-card:is(:hover, :focus-visible) .next-project-thumb.project-melo img {
    transform: translateX(3%) scale(1.11);
}

body .menu-button::before {
    -webkit-mask: url('../../images/shared/handdrawn-menu-new.png.webp') center / contain no-repeat;
    mask: url('../../images/shared/handdrawn-menu-new.png.webp') center / contain no-repeat;
}

body .menu-button[aria-expanded='true']::before {
    -webkit-mask: url('../../images/shared/handdrawn-close-new.png.webp') center / contain no-repeat;
    mask: url('../../images/shared/handdrawn-close-new.png.webp') center / contain no-repeat;
}

/* Center the roller skates within gallery and recommendation crops. */

.project-image img[src*='roller-skates-thumbnail'],
.next-project-thumb img[src*='roller-skates-thumbnail'] {
    object-position: center center;
}

/* Transparent company marks share the same thumbnail corner margins. */
.project-image:has(> .project-company), .next-project-thumb:has(> .project-company) { position: relative; }
.project-image > .project-company, .next-project-thumb > .project-company {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    display: block;
    width: 74px;
    height: 51px;
    padding: 0;
    background: transparent;
    pointer-events: none;
}
body .project-image > .project-company img, body .next-project-thumb > .project-company img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right top;
    transform: none;
    filter: none;
}
.project-image > .project-company--combo, .next-project-thumb > .project-company--combo {
    mix-blend-mode: multiply;
}
@media (max-width: 480px) {
    .project-image > .project-company, .next-project-thumb > .project-company {
        right: 10px;
        top: 10px;
        width: 68px;
        height: 46px;
    }
}

/* Slightly tighter framing for the Quick Sketches thumbnail. */
.project-image img[src$='bear-studies/panda.webp'],
.next-project-thumb img[src$='bear-studies/panda.webp'] {
    scale: 1.1;
}