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

/* ── nøt. brand skin (Lucy 09-Jul: their Pantra font + Pantone cream/navy).
   Moved up from the portal's inline overrides on 07-Aug so the public site and
   the ordering portal share one theme instead of drifting apart.

   The variable NAMES are legacy and now lie — kept as-is because portal.html
   and portal-order.html reference them in their own inline styles:
     --espresso      = the cream page background  (was the dark brown)
     --espresso-soft = white cards / elevated surfaces
     --cream         = the navy ink               (was the light text)
   So anything sitting ON navy (buttons, the hero over its photo scrim) must
   set --paper explicitly — var(--cream) would render navy on navy. ── */
@font-face {
    font-family: 'Pantra';
    src: url('fonts/Pantra-Medium.otf') format('opentype');
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --espresso: #FCF8F0;        /* page background — brand cream */
    --espresso-soft: #FFFFFF;   /* cards / elevated surfaces */
    --cream: #274B65;           /* primary ink — brand navy */
    --cream-dim: #67788C;       /* muted navy */
    --blue: #274B65;            /* accents + buttons — brand navy */
    --blue-soft: #35597A;       /* lighter navy for hover / accents */
    --paper: #FCF8F0;           /* light, for text/marks sitting ON navy */
    --line: rgba(39, 75, 101, 0.12);   /* hairline rules on cream */
    --line-soft: rgba(39, 75, 101, 0.07);
    --font-display: 'Pantra', 'Bricolage Grotesque', Georgia, serif;
    --font-body: 'Familjen Grotesk', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--espresso);
    color: var(--cream);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-bottom: 28px;
}

.eyebrow-coral { color: var(--blue-soft); }

/* the inline text wordmark — nav, footer, headline copy.
   renders in Pantra now, so it matches the logo asset rather than approximating
   it in a substitute face. the slash + dot take the lighter navy as an accent. */
.o { color: var(--blue-soft); }
.dot { color: var(--blue-soft); }

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: rgba(252, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--cream);
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.2s;
}

.nav-cta:hover { color: var(--blue-soft); }
.nav-cta span { transition: transform 0.2s; display: inline-block; }
.nav-cta:hover span { transform: translateX(4px); }

/* HERO */
.hero {
    position: relative;
    height: 100svh;
    min-height: 620px;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-color: #274B65;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

/* navy scrim, not brown — the photo stays cinematic but the veil is brand ink,
   so the hero reads as the same system as the cream sections below it */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(39, 75, 101, 0.28) 0%, rgba(39, 75, 101, 0.66) 100%),
        linear-gradient(to bottom, rgba(30, 57, 78, 0.5) 0%, rgba(39, 75, 101, 0.14) 42%, rgba(30, 57, 78, 0.86) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* the real logo asset, not a font approximation of it.
   not-logo.png is flat navy on transparent, so it's used as a mask and filled
   with brand cream here (over the photo) and left navy on cream elsewhere. */
.brand-mark {
    display: block;
    width: min(520px, 66vw);
    aspect-ratio: 722 / 358;
    margin: 0 auto;
    background: var(--paper);
    -webkit-mask: url('images/not-logo.png') no-repeat center / contain;
    mask: url('images/not-logo.png') no-repeat center / contain;
    filter: drop-shadow(0 6px 40px rgba(16, 32, 45, 0.45));
}

.brand-mark-ink {
    background: var(--cream);
    filter: none;
}

.hero-tagline {
    margin-top: 26px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--paper);
}

.hero-tagline .sep {
    color: rgba(252, 248, 240, 0.55);
    margin: 0 14px;
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(252, 248, 240, 0.7);
    text-decoration: none;
    animation: bob 2.4s ease-in-out infinite;
}

/* TICKER */
.ticker {
    background: var(--espresso-soft);
    color: var(--cream-dim);
    overflow: hidden;
    white-space: nowrap;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ticker-track {
    display: inline-block;
    animation: marquee 50s linear infinite;
}

.ticker-track span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    margin: 0 6px;
}

.ticker-track .star {
    color: var(--blue-soft);
    opacity: 0.6;
    margin: 0 22px;
    font-size: 0.7em;
    vertical-align: middle;
}

/* ABOUT */
.about {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
}

.watermark {
    position: absolute;
    top: 50%;
    right: -6%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(20rem, 48vw, 46rem);
    line-height: 1;
    color: rgba(39, 75, 101, 0.055);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.about-grid {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.about-text {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: var(--cream);
}

/* BAKES */
.bakes {
    padding: 0 0 130px;
}

.bakes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bake {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--espresso-soft);
    aspect-ratio: 4 / 5;
}

.bake img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bake figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 22px 20px 18px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: lowercase;
    color: var(--paper);
    background: linear-gradient(to top, rgba(30, 57, 78, 0.92) 0%, rgba(30, 57, 78, 0) 100%);
}

.bake:hover img { transform: scale(1.06); }

/* WHOLESALE */
.wholesale {
    background: var(--espresso-soft);
    padding: 120px 0;
    border-top: 1px solid var(--line-soft);
}

.wholesale-inner {
    max-width: 640px;
}

.wholesale-head {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.wholesale-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--cream-dim);
    margin-bottom: 40px;
    max-width: 480px;
}

/* on navy: --paper, never var(--cream) — that's the ink colour now */
.btn-primary {
    display: inline-block;
    padding: 16px 38px;
    background: var(--blue);
    color: var(--paper);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 9px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--blue-soft);
    box-shadow: 0 12px 30px rgba(39, 75, 101, 0.28);
}

/* FOOTER */
footer {
    padding: 54px 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cream);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--cream-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--blue-soft); }

.footer-copy {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--cream-dim);
    text-transform: lowercase;
}

/* FOCUS STATES */
a:focus-visible {
    outline: 2px solid var(--blue-soft);
    outline-offset: 4px;
    border-radius: 2px;
}

/* MOTION */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

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

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .hero-content { animation: none; }
    .scroll-cue { animation: none; }
    .bake img { transition: none; }
    html { scroll-behavior: auto; }
}

/* RESPONSIVE */
@media (max-width: 760px) {
    nav { padding: 14px 20px; }

    .about { padding: 90px 0; }

    .bakes-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bake { aspect-ratio: 4 / 3; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* SECTION HEADINGS (replaces the per-section eyebrow trope) */
.section-head {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: var(--cream);
    margin-bottom: 44px;
}

/* HOW IT WORKS */
.howto {
    background: var(--espresso-soft);
    padding: 110px 0;
    border-top: 1px solid var(--line-soft);
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    border-top: 2px solid rgba(39, 75, 101, 0.24);
    padding-top: 22px;
}

.step-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--blue-soft);
    margin-bottom: 14px;
}

.step-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.step p {
    color: var(--cream-dim);
    font-size: 1.02rem;
    line-height: 1.6;
}

/* RELIABILITY STRIP */
.essentials-sec {
    padding: 100px 0;
}

.essentials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.essential {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.essential h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.essential p {
    color: var(--cream-dim);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ENQUIRE / FORM */
.enquire {
    background: var(--espresso-soft);
    padding: 110px 0 120px;
    border-top: 1px solid var(--line-soft);
}

.enquire-inner {
    max-width: 720px;
}

.enquire-head {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.enquire-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--cream-dim);
    max-width: 520px;
    margin-bottom: 44px;
}

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

.field {
    display: flex;
    flex-direction: column;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--cream-dim);
    margin-bottom: 9px;
}

.field input,
.field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--cream);
    background: var(--espresso);
    border: 1px solid rgba(39, 75, 101, 0.18);
    border-radius: 9px;
    padding: 13px 15px;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue-soft);
    box-shadow: 0 0 0 3px rgba(39, 75, 101, 0.16);
}

.enquiry-form .btn-primary {
    grid-column: 1 / -1;
    justify-self: start;
    border: none;
    cursor: pointer;
    margin-top: 4px;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* the h1 is the logo asset, so the real heading text lives here for
   screen readers and search engines */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.enquire-alt {
    margin-top: 26px;
    font-size: 0.95rem;
    color: var(--cream-dim);
}

.enquire-alt a {
    color: var(--blue-soft);
    text-decoration: none;
}

.enquire-alt a:hover { text-decoration: underline; }

/* THANK YOU PAGE */
.thanks {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.thanks .brand-mark {
    width: min(260px, 52vw);
    margin-bottom: 34px;
}

.thanks-msg {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--cream);
    margin-bottom: 14px;
}

.thanks-sub {
    color: var(--cream-dim);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 36px;
}

/* RESPONSIVE — new components */
@media (max-width: 760px) {
    .howto { padding: 80px 0; }

    .steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .essentials-sec { padding: 70px 0; }

    .essentials {
        grid-template-columns: 1fr 1fr;
        gap: 24px 18px;
    }

    .enquire { padding: 80px 0 90px; }

    .enquiry-form {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
