/* This stylesheet controls the website appearance: colours, typography, spacing, layout, responsive breakpoints, and animations. */
:root {
    --bg: #f5f4f0;
    --ink: #111;
    --muted: #6b6b66;
    --line: #dcdad3;
    --hero: #fdd501;
    --pad: clamp(20px,4vw,56px)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

/* Smooth scrolling makes anchor links glide to their target sections. */
html {
    scroll-behavior: smooth
}

/* Base page styles set the default font, background, text colour, and line spacing. */
body {
    font-family: 'Inter Tight','Inter',system-ui,sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased
}

/* Media never grows wider than its container, which helps it fit smaller screens. */
img,video {
    display: block;
    max-width: 100%
}

/* Links inherit the text colour and lose the browser underline until styled elsewhere. */
a {
    color: inherit;
    text-decoration: none
}

/* This wrapper centers content and limits its maximum width on large screens. */
.wrap {
    padding-inline:var(--pad);max-width: 1480px;
    margin-inline:auto}

/* The sticky navigation stays visible near the top while the visitor scrolls. */
header.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px var(--pad);
    background: rgba(245,244,240,.88);
    backdrop-filter: blur(10px)
}

.logo {
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -.02em
}

/* Flexbox arranges the navigation links in a row. */
.nav nav {
    display: flex;
    gap: 28px;
    font-size: 15px
}

.nav nav a {
    opacity: .55;
    transition: .2s
}

.nav nav a:hover,.nav nav a.on {
    opacity: 1
}

.eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted)
}

h1 {
    font-size: clamp(40px,7vw,104px);
    line-height: .98;
    letter-spacing: -.04em;
    font-weight: 500
}

h2 {
    font-size: clamp(26px,3.2vw,44px);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 500;
    max-width: 500px;
}

p {
    font-size: 18px;
    max-width: 650px;
}

.btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 14px 26px;
    border: 1px solid var(--ink);
    border-radius: 99px;
    font-size: 15px;
    transition: .2s;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    color: inherit
}

.btn:hover,.btn.solid {
    background: var(--ink);
    color: #fff
}

.btn.solid:hover {
    background: #33b1ff;
    border-color: #33b1ff;
    color: #fff;
    opacity: 1
}

/* Sections receive shared vertical spacing so page content has room to breathe. */
section {
    padding-block:clamp(56px,9vw,120px)}

/* home hero */
.hero {
    background: var(--hero);
    padding: 0;
    overflow: hidden
}

/* The hero wrapper controls the alignment of its text and visual. */
.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: end;
    min-height: calc(100vh - 66px)
}

/* This flex item contains the main hero text. */
.hero-t {
    padding-block:clamp(40px,8vw,110px);align-self: center
}

.hero-t h1 {
    margin: 18px 0 28px
}

.hero-t p {
    max-width: 460px;
    font-size: 19px;
    margin-bottom: 34px
}

/* This area holds the hero image or visual beside the introduction. */
.hero-i {
    display: flex;
    justify-content: center;
    align-self: end
}

.hero-i img {
    width: 100%;
    max-width: 480px
}

/* about */
.about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    min-height: 650px;
}

/* Padding gives the portrait breathing room that matches the site's other sections. */
.about-image {
    min-width: 0;
    min-height: 560px;
    height: 100%;
    padding: clamp(32px, 5vw, 76px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contain keeps the whole transparent portrait visible instead of cropping or enlarging it. */
#about .about-portrait {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
}

/* The About label, headline, and body copy sit in the right column. */
.about-content {
    align-self: center;
    min-width: 0;
    padding: clamp(36px, 6vw, 100px);
}

.about-heading {
    margin-top: 14px;
    margin-bottom: 32px;
    max-width: 620px;
}

.about-content p {
    font-size: clamp(19px,1.9vw,26px);
    line-height: 1.35;
    letter-spacing: -.01em;
    margin-bottom: 22px
}

.about-content p.s {
    font-size: 17px;
    color: var(--muted)
}

/* These tags list the design disciplines featured in the portfolio. */
.disc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px
}

.disc span {
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 14px
}

/* carousel */
.ch {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 34px
}

/* Carousel controls are grouped together for easy access. */
.ctrl {
    display: flex;
    gap: 10px;
    align-items: center
}

.ctrl button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--ink);
    background: none;
    font-size: 20px;
    cursor: pointer;
    transition: .2s
}

.ctrl button:hover {
    background: var(--ink);
    color: #fff
}

.ctrl .cnt {
    font-size: 14px;
    color: var(--muted);
    margin-right: 12px;
    min-width: 44px
}

/* The horizontal track lets visitors browse project slides side to side. */
.track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none
}

.track::-webkit-scrollbar {
    display: none
}

/* Each slide is a self-contained project preview. */
.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    min-height: 520px
}

.slide .tx {
    padding: clamp(24px,4vw,56px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px
}

.slide .n {
    font-size: 14px;
    opacity: .7
}

.slide h3 {
    font-size: clamp(34px,4.6vw,66px);
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 500;
    margin: 14px 0;
}

.slide p {
    max-width: 380px;
    opacity: .9;
    font-size: 20px;
}

.slide .more {
    font-size: 15px;
    border-bottom: 1px solid;
    align-self: flex-start;
    padding-bottom: 3px
}

.slide .im {
    overflow: hidden
}

.slide .im img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s
}

.slide:hover .im img {
    transform: scale(1.04)
}

/* portfolio grid */
.pg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px,5vw,72px) clamp(20px,2.5vw,36px)
}

.card .th {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 14px;
    background: #e6e4dd
}

.card .th img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s
}

.card:hover .th img {
    transform: scale(1.045)
}

.card .mt {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    align-items: baseline
}

.card h3 {
    font-size: clamp(26px,2.8vw,40px);
    letter-spacing: -.03em;
    font-weight: 500;
    line-height: 1.05
}

.card .tg {
    font-size: 14px;
    color: var(--muted);
    text-align: right
}

/* The project page heading area introduces the case study. */
.pagehead {
    padding-block:clamp(50px,8vw,110px) 40px}

.pagehead p {
    max-width: 560px;
    margin-top: 20px;
    font-size: 19px;
    color: var(--muted)
}

.ph {
    padding-top: clamp(40px,6vw,90px)
}

/* Project metadata is arranged so role and scope are easy to scan. */
.meta {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(30px,6vw,100px);
    margin-block:48px clamp(40px,6vw,80px)}

.meta dl div {
    margin-bottom: 22px
}

.meta dt {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px
}

.meta dd {
    font-size: 17px
}

.meta .lead {
    font-size: clamp(20px,2vw,28px);
    line-height: 1.3;
    letter-spacing: -.015em
}

/* This area controls the project media presentation. */
.pm {
    display: block;
    width: 100%;
    max-height: 100vh;
    object-fit: cover;
    border-radius: 14px;
    background: #e6e4dd
}

/* A shared container keeps case-study sections aligned consistently. */
.sec-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 600px;
    margin-left: 100px;
}

/* Each case-study section groups one topic or stage of the project. */
.sec {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(30px,6vw,100px);
    padding-top: clamp(70px,9vw,130px);
    padding-bottom: 30px
}

.sec p {
    font-size: 18px;
    text-align: left;
}

.sec h2 {
    width: auto;
    text-align: left;
}

/* This wrapper controls the overall width of project-page content. */
.page-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* This layout places related content in a row. */
.row-container {
    display: flex;
    flex-direction: row;
    align-items: cente;
    width: 100%;
}

.row-container img {
    width: 600px;
    height: auto;
    margin-top: 50px;
}

.blk-a1 {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.blk-a1 img {
    width: 600px;
    height: auto;
    margin-top: 50px;
}

/* Process-related content is grouped for the case-study narrative. */
.process {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.body-container {
    max-width: 600px;
    margin-left: 100px;
}

.body-packaging {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.body-packaging p {
    margin-bottom: 20px;
}

/* These block styles create reusable visual layouts for project content. */
.blk {
    margin-top: clamp(16px,2vw,28px);
    display: grid;
    gap: clamp(16px,2vw,28px);
    align-items: start
}

.blk.c1 {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 250px;
}

.blk.c2 {
    grid-template-columns: 1fr 1fr
}

.blk.c3 {
    grid-template-columns: repeat(3,1fr)
}

.blk figure {
    margin: 0
}

.blk img,.blk-a1 img,.mind-grid img,.pm,.blk video {
    width: 100%;
    border-radius: 12px;
    background: #e6e4dd;
    cursor: zoom-in
}

.blk video {
    cursor: default
}

.blk.c1 img {
    max-height: 88vh;
    object-fit: contain;
    margin-inline:auto;background: none;
    width: min(100%, 1100px);
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px
}

.credits {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(30px,6vw,100px);
    padding-top: clamp(70px,9vw,130px)
}

.credits div div {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--line);
    padding: 14px 0;
    font-size: 16px
}

.credits span {
    width: 160px;
    color: var(--muted)
}

.more h2 {
    margin-bottom: 30px
}

.more .pg {
    grid-template-columns: repeat(3,1fr)
}

.more .card h3 {
    font-size: 24px
}


/* CONTACT HERO
   The portrait sits above the headline. Flexbox stacks these items vertically.
   Keep the existing spacing values below unless intentionally redesigning the layout.
*/
/* The image is cropped to remove transparent padding, so a small negative margin keeps the heading close. */
/* The hero wrapper controls the overall stack, background, and outside spacing. */
/* The hero is a vertical stack: portrait first, headline and intro directly underneath. */
.contact-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2px var(--pad) 8px;
    background: transparent;
    color: var(--ink);
    overflow: hidden;
}
/* The image wrapper is position: relative so the animated words can be placed over it. */
.contact-portrait {
    position: relative;
    width: min(100%, 700px);
    margin: 0 auto -14px; /* Pull the heading closer to the visible portrait. */
    isolation: isolate;
    transform-origin: 50% 52%;
    animation: portrait-bob 1.4s ease-in-out infinite alternate; /* 1.4s total means each left/right movement takes 0.7s. */
    will-change: transform;
}
/* Make the image fill its wrapper without stretching its proportions. */
.contact-portrait img {
    display: block;
    width: 100%;
    height: auto;
}
.contact-hero-copy {
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
    position: relative;
    z-index: 2;
}
/* The large heading uses a responsive font size: it scales with the screen width. */
/* The main contact headline large; clamp() adapts it to different screen widths. */
.contact-hero-copy h1 {
    margin: 0;
    font-size: clamp(56px, 8.2vw, 124px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 500;
}
.contact-hero-copy p {
    max-width: 560px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 1.5vw, 19px);
}
.contact-hero .eyebrow { color: var(--muted); }
/* These words are layered over the portrait and moved by the keyframes below. */
/* Position the animated words over the mouth; pointer-events keeps them from blocking clicks. */
/* The LET'S TALK words take 1.7 seconds per animation cycle. */
.spoken-words {
    position: absolute;
    left: 52%;
    top: 55%;
    z-index: 3;
    color: #f2c8a6;
    font-size: clamp(12px, 1.55vw, 23px);
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
    text-shadow: 0 0 16px rgba(242, 200, 166, .18);
    transform-origin: left center;
    pointer-events: none;
    animation: words-from-mouth 1.7s ease-out infinite; /* Each LET'S TALK phrase completes its animation in 0.5 seconds. */
}
.spoken-words-two {
    color: #e6b8a6;
    font-size: clamp(9px, 1.15vw, 17px);
    animation: words-from-mouth-two 1.7s ease-out infinite; /* The second phrase uses the same 0.5-second cycle. */
    animation-delay: .12s;
}
/* A keyframe animation alternates the portrait between a slight left and right tilt. */
/* Move gently from left to right. With alternate, 1.4s gives 0.7s per direction. */
@keyframes portrait-bob {
    0%, 100% { transform: rotate(-1.25deg) translateX(-2px); }
    50% { transform: rotate(1.25deg) translateX(2px); }
}
/* The words start hidden, appear near the mouth, then travel outward and fade away. */
/* Start near the mouth, travel outward, and fade out during each half-second cycle. */
@keyframes words-from-mouth {
    0%, 12% { opacity: 0; transform: translate(0, 0) scale(.45) rotate(-8deg); }
    22% { opacity: 1; }
    68% { opacity: .9; transform: translate(58px, -42px) scale(.95) rotate(-3deg); }
    88%, 100% { opacity: 0; transform: translate(78px, -58px) scale(1) rotate(1deg); }
}
@keyframes words-from-mouth-two {
    0%, 15% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(-5deg); }
    25% { opacity: .9; }
    70% { opacity: .75; transform: translate(48px, 22px) scale(.85) rotate(4deg); }
    90%, 100% { opacity: 0; transform: translate(68px, 30px) scale(.9) rotate(7deg); }
}
/* Accessibility: stop decorative movement for visitors who request reduced motion. */
/* Accessibility: respect the operating-system setting to reduce motion. */
@media (prefers-reduced-motion: reduce) {
    .spoken-words, .spoken-words-two { animation: none; opacity: 0; }
/* The portrait wrapper provides the positioning area for the animated words. */
    .contact-portrait { animation: none; }
}
/* Tablet layout: slightly narrower portrait and adjusted hero padding. */
@media (max-width: 768px) {
/* Contact hero layout controls the portrait and heading placement. */
    .contact-hero { gap: 0; padding-top: 2px; padding-bottom: 6px; }
/* The portrait wrapper provides the positioning area for the animated words. */
    .contact-portrait { width: min(100%, 620px); }
/* These words animate over the portrait to suggest speech. */
    .spoken-words { left: 52%; top: 55%; }
}
/* On small phones, reduces the headline size and keeps the layout inside the screen. */
@media (max-width: 540px) {
/* Contact hero layout controls the portrait and heading placement. */
    .contact-hero { padding-inline: 20px; padding-top: 2px; padding-bottom: 6px; }
    .contact-hero-copy h1 { font-size: clamp(44px, 10vw, 76px); }
    /* The words start hidden, appear near the mouth, then travel outward and fade away. */
@keyframes words-from-mouth {
        0%, 12% { opacity: 0; transform: translate(0, 0) scale(.45) rotate(-8deg); }
        22% { opacity: 1; }
        68% { opacity: .9; transform: translate(30px, -24px) scale(.95) rotate(-3deg); }
        88%, 100% { opacity: 0; transform: translate(42px, -34px) scale(1) rotate(1deg); }
    }
    /* A second copy of "let's talk" follows a slightly different path to add depth to the effect. */
@keyframes words-from-mouth-two {
        0%, 15% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(-5deg); }
        25% { opacity: .9; }
        70% { opacity: .75; transform: translate(28px, 14px) scale(.85) rotate(4deg); }
        90%, 100% { opacity: 0; transform: translate(38px, 20px) scale(.9) rotate(7deg); }
    }
}

/* contact */
.ct {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(30px,6vw,100px)
}


/* Contact form layout: phone and project type share a row; budget sits below. */
/* Grid-template-columns makes the two fields equal width. */
.contact-project-row { grid-template-columns: 1fr 1fr; }
.contact-budget-row { width: calc((100% - 24px) / 2); }

/* Tablet layout: slightly narrower portrait and adjusted hero padding. */
@media (max-width: 768px) {
    .contact-project-row { grid-template-columns: 1fr 1fr; }
    .contact-budget-row { width: calc((100% - 16px) / 2); }
}
/* Phone layout: smaller layout. */
@media (max-width: 540px) {
    .contact-project-row { grid-template-columns: 1fr 1fr; }
    .contact-budget-row { width: 100%; }
}

.ct .info div {
    margin-bottom: 28px
}

.ct .info a {
    border-bottom: 1px solid;
    font-size: 20px
}

form {
    display: grid;
    gap: 22px
}

/* Floating form labels begin inside each field and move above it on focus or when it has a value. */
.floating-field {
    position: relative;
    min-width: 0;
    padding-top: 8px;
}

.floating-field label {
    position: absolute;
    left: 0;
    top: 20px;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    line-height: 1.3;
    color: var(--muted);
    pointer-events: none;
    transform-origin: left top;
    transition: top .18s ease, font-size .18s ease, color .18s ease;
}

.floating-field input,
.floating-field select,
.floating-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 17px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink);
    padding: 18px 0 10px;
    border-radius: 0;
    outline: none;
}

.floating-field select {
    appearance: none;
    cursor: pointer;
}

.floating-field textarea {
    min-height: 140px;
    resize: vertical;
    padding-top: 24px;
}

.floating-field input::placeholder,
.floating-field textarea::placeholder { color: transparent; }

.floating-field:focus-within label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field select:valid + label,
.floating-field textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: var(--ink);
}

.floating-field:focus-within input,
.floating-field:focus-within select,
.floating-field:focus-within textarea { border-bottom-width: 2px; }

/* Clear focus box so visitors can see which form field is active. */
.floating-field input:focus-visible,
.floating-field select:focus-visible,
.floating-field textarea:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
    border-radius: 4px;
}

.floating-field select:invalid + label { color: var(--muted); }
.contact-budget-row { width: calc((100% - 24px) / 2); }
.contact-budget-row .floating-field { width: 100%; }
@media (max-width: 540px) {
    .contact-budget-row { width: 100%; }
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

#st {
    font-size: 15px;
    min-height: 22px
}

footer {
    border-top: 1px solid var(--line);
    margin-top: clamp(60px,8vw,120px);
    padding-block:56px 36px}

footer .big {
    font-size: clamp(34px,6vw,90px);
    letter-spacing: -.04em;
    line-height: 1;
    font-weight: 500;
    display: block;
    margin-bottom: 46px
}

footer .fl {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px
}

#lb {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    cursor: zoom-out;
    padding: 24px
}

#lb.on {
    display: flex
}

#lb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

/* Responsive rules adjust the layout when the available screen width changes. */
@media (max-width: 768px) {
    .hero .wrap,.about,.about-section,.meta,.sec,.credits,.ct,.slide {
        grid-template-columns:1fr
    }

    .about-image {
        min-height: 0;
        height: min(78vw, 560px);
        padding: clamp(20px, 5vw, 36px);
    }

    #about .about-portrait {
        min-height: 0;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .about-content {
        padding: 42px var(--pad) 56px;
    }

/* The hero wrapper controls the alignment of its text and visual. */
    .hero .wrap {
        min-height: 0
    }

    .hero-i img {
        max-width: 340px
    }

    .slide .im {
        aspect-ratio: 4/3;
        order: -1
    }

    .slide {
        min-height: 0
    }

    .pg,.more .pg,.blk.c2,.blk.c3,.row {
        grid-template-columns: 1fr
    }

/* Flexbox arranges the navigation links in a row. */
    .nav nav {
        gap: 16px
    }

    .card .mt {
        flex-direction: column;
        gap: 4px
    }

    .card .tg {
        text-align: left
    }
}

.hero-i img {
    -webkit-mask-image: linear-gradient(to right,transparent,#000 14%,#000 86%,transparent),linear-gradient(to bottom,transparent,#000 10%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right,transparent,#000 14%,#000 86%,transparent),linear-gradient(to bottom,transparent,#000 10%);
    mask-composite: intersect
}


/* Photo spans the full content width. */
.uv-light-block {
    width: 100%;
    align-items: stretch;
}

.uv-light-block figure {
    width: 100%;
    max-width: none;
}

.blk.c1.uv-light-block .uv-light-image {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    object-fit: contain;
}


.blk.c1 img {
    width: min(100%, 1100px);
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.page-wrapper .blk.c1:has(img[src*="blueberry_boost_label"]),
.page-wrapper .blk.c1:has(img[src*="tropical_recharge_label"]) {
    width: 100%;
}
.page-wrapper .blk.c1 img[src*="blueberry_boost_label"],
.page-wrapper .blk.c1 img[src*="tropical_recharge_label"] {
    width: min(100%, 1100px);
    max-width: 100%;
}

/* Enlarges the Zimbabwe Currency Heritage x Modernity image. */
.heritage-modernity-block { width: 100%; align-items: stretch; }
.heritage-modernity-block figure { width: 100%; max-width: none; }
.heritage-modernity-image { display: block; width: 100% !important; max-width: 100% !important; max-height: none !important; height: auto; object-fit: contain; }


body:has(.page-wrapper) .page-wrapper { width: min(100% - 48px, 1200px); margin: 0 auto; display: block; }
body:has(.page-wrapper) .row-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: clamp(24px, 5vw, 72px); align-items: center; width: 100%; margin: 36px auto 70px; }
body:has(.page-wrapper) .row-container figure, body:has(.page-wrapper) .blk figure { min-width: 0; width: 100%; margin: 0; }
body:has(.page-wrapper) .row-container img { display: block; width: 100%; max-width: 100%; height: auto; max-height: none; object-fit: contain; margin: 0; }
body:has(.page-wrapper) .sec-container { max-width: 620px; margin: 0 auto; }
body:has(.page-wrapper) .blk { width: min(100% - 48px, 1200px); margin: 48px auto; display: grid; gap: clamp(18px, 3vw, 40px); align-items: center; }
body:has(.page-wrapper) .blk.c1 { grid-template-columns: minmax(0, 1fr); margin-top: 55px; }
body:has(.page-wrapper) .blk.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body:has(.page-wrapper) .blk.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body:has(.page-wrapper) .blk img { display: block; width: 100%; max-width: 100%; height: auto; max-height: none; object-fit: contain; margin: 0; }
body:has(.page-wrapper) .sec { width: min(100% - 48px, 1200px); margin: 0 auto; padding-top: clamp(36px, 6vw, 76px); padding-bottom: 20px; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
@media (max-width: 768px) { body:has(.page-wrapper) .row-container { grid-template-columns: 1fr; } body:has(.page-wrapper) .blk.c2, body:has(.page-wrapper) .blk.c3 { grid-template-columns: 1fr; } body:has(.page-wrapper) .sec { grid-template-columns: 1fr; } body:has(.page-wrapper) .page-wrapper, body:has(.page-wrapper) .blk, body:has(.page-wrapper) .sec { width: min(100% - 32px, 1200px); } }


.mind-mode-page .wrap { width: min(100% - 48px, 1200px); margin-inline: auto; }
.mind-content { width: min(100% - 48px, 1200px); margin: 0 auto; }
.mind-content figure { margin: 0; min-width: 0; }
.mind-content img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; border-radius: 12px; background: #e6e4dd; }
.mind-hero { width: 100%; margin: 0 auto clamp(48px, 7vw, 90px) !important; }
.mind-hero img { max-height: 88vh; object-fit: contain; }
.mind-feature { width: 100%; margin: clamp(32px, 5vw, 64px) auto !important; }
.mind-feature img { max-height: none; }
.mind-copy { max-width: 820px; margin: clamp(42px, 6vw, 76px) auto clamp(24px, 4vw, 48px); }
.mind-copy h2 { margin: 0 0 18px; }
.mind-copy p { font-size: 18px; line-height: 1.65; margin: 0; }
.mind-grid { display: grid; gap: clamp(18px, 3vw, 36px); align-items: start; margin: clamp(28px, 4vw, 48px) auto; }
.mind-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mind-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mind-grid img { width: 100%; height: auto; max-height: none; }
@media (max-width: 768px) { .mind-content, .mind-mode-page .wrap { width: min(100% - 32px, 1200px); } .mind-grid-two, .mind-grid-three { grid-template-columns: 1fr; } .mind-copy { margin-block: 36px 24px; } }


.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    gap: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
/* Applies these styles when the viewport is 540px wide
or narrower, so the layout adapts to small screens. */
@media (max-width: 540px) {
    header.nav {
        flex-wrap: wrap;
        position: sticky;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav nav {
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 16px 0 6px;
    }

    .nav.nav-open nav {
        display: flex;
    }

    .nav.nav-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav.nav-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav.nav-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}


@media (max-width: 768px) {
    .blk-a1 {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .blk-a1 figure,
    .blk-a1 .body-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .blk-a1 img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-top: 0;
    }
}
