@font-face {
    font-family: "Fredoka";
    src: url("../fonts/fredoka-latin.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@view-transition {
    navigation: auto;
}

::view-transition-group(snail-purple),
::view-transition-group(snail-white),
::view-transition-group(snail-blue) {
    animation-duration: 0.55s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root {
    --cream: #fff9f0;
    --ink: #242138;
    --muted: #625b70;
    --purple: #6038a8;
    --purple-dark: #4e2c8c;
    --blue: #2058a5;
    --lilac: #eee5ff;
    --aqua: #c8f1e3;
    --white: #fff;
    --deep: #0d0b24;
    --deep-soft: #1b1548;
    --moss: #a9e05b;
    --mist: #d8d2ee;
    --radius: 24px;
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --heading: "Fredoka", ui-rounded, "Trebuchet MS", sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    scrollbar-color: var(--purple) var(--cream);
    -webkit-text-size-adjust: 100%;
}

::selection {
    background: var(--moss);
    color: var(--deep);
}

body {
    position: relative;
    margin: 0;
    overflow-x: clip;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
}

h1,
h2,
h3 {
    margin: 0 0 0.5em;
    font-family: var(--heading);
    font-weight: 500;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem);
}

h2 {
    font-size: clamp(1.9rem, 1.5rem + 1.7vw, 3rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--blue);
    text-underline-offset: 0.15em;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 40;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
}

.skip-link:focus {
    left: 12px;
}

.notice {
    position: relative;
    z-index: 25;
    margin: 0;
    padding: 10px 20px;
    background: var(--moss);
    color: var(--deep);
    font-weight: 600;
    text-align: center;
}

/* Lets the slanted ribbon run past the edges without adding a sideways scroll. */
main {
    overflow-x: clip;
}

/* Header */

.site-header {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 14px 0;
}

.site-header.is-stuck {
    position: fixed;
    top: 0;
    padding: 8px 0;
    background: rgb(13 11 36 / 93%);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 8px 30px rgb(13 11 36 / 28%);
    animation: header-in 0.35s var(--ease-out);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}

.wordmark {
    margin: 0;
    color: var(--white);
    font-family: var(--heading);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.wordmark::before {
    content: "";
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    margin-right: 0.38em;
    background: url("../img/favicon.svg") center / contain no-repeat;
    vertical-align: -0.16em;
    transition: transform 0.7s var(--ease-out);
}

a.wordmark:hover::before {
    transform: rotate(360deg);
}

.menu-button {
    display: none;
    min-height: 44px;
    padding: 8px 18px;
    border: 2px solid rgb(255 255 255 / 55%);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    list-style: none;
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 16px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: rgb(255 255 255 / 15%);
}

.site-header :focus-visible {
    outline-color: var(--white);
}

/* Buttons and links */

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 52px;
    padding: 12px 30px;
    border-radius: 999px;
    background: var(--purple);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 32px rgb(120 80 230 / 45%);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background-color 0.3s;
}

.button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 35%) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease-out);
}

.button:hover {
    background: var(--purple-dark);
    box-shadow: 0 16px 40px rgb(120 80 230 / 60%);
    transform: translateY(-3px) scale(1.03);
}

.button:hover::after {
    transform: translateX(120%);
}

.button-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 10px 24px;
    border: 2px solid rgb(255 255 255 / 38%);
    border-radius: 999px;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s, border-color 0.25s;
}

.button-ghost:hover {
    border-color: var(--moss);
    background: rgb(169 224 91 / 14%);
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
}

/* Sections */

.section {
    position: relative;
    padding: 64px 0;
}

.section-header {
    max-width: 680px;
    margin-bottom: 36px;
}

.section-intro,
.lead {
    color: var(--muted);
    font-size: 1.2rem;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--purple);
    font-family: var(--heading);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.section-tint {
    background: var(--lilac);
}

.split {
    display: grid;
    gap: 32px;
    align-items: center;
}

/* Living water, shared by every dark band */

.water {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.water-glow {
    position: absolute;
    width: 62vmax;
    height: 62vmax;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}

.water-glow-one {
    top: -32vmax;
    left: -16vmax;
    background: radial-gradient(circle, rgb(96 56 168 / 60%), transparent 66%);
    animation: drift-one 22s ease-in-out infinite alternate;
}

.water-glow-two {
    right: -22vmax;
    bottom: -38vmax;
    background: radial-gradient(circle, rgb(32 120 165 / 42%), transparent 66%);
    animation: drift-two 26s ease-in-out infinite alternate;
}

.water-ray {
    position: absolute;
    top: -20%;
    width: 18vw;
    min-width: 120px;
    height: 150%;
    background: linear-gradient(90deg, transparent, rgb(214 228 255 / 26%) 50%, transparent);
    mask-image: linear-gradient(180deg, #000, transparent 74%);
    transform-origin: top center;
    animation: sway 13s ease-in-out infinite alternate;
    will-change: transform;
}

.water-ray-one {
    left: 12%;
    rotate: 16deg;
}

.water-ray-two {
    left: 42%;
    width: 11vw;
    rotate: 9deg;
    opacity: 0.7;
    animation-duration: 17s;
    animation-delay: -5s;
}

.water-ray-three {
    left: 68%;
    width: 22vw;
    rotate: -8deg;
    opacity: 0.55;
    animation-duration: 21s;
    animation-delay: -9s;
}

.bubble {
    position: absolute;
    bottom: -40px;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgb(255 255 255 / 85%), rgb(255 255 255 / 12%) 42%, rgb(255 255 255 / 4%) 70%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 34%);
    opacity: 0;
    animation: bubble-rise var(--t) linear var(--d) infinite;
    will-change: transform;
}

.bubble-1 { --x: 6%; --s: 12px; --t: 15s; --d: -2s; }
.bubble-2 { --x: 14%; --s: 7px; --t: 11s; --d: -7s; }
.bubble-3 { --x: 23%; --s: 16px; --t: 18s; --d: -11s; }
.bubble-4 { --x: 34%; --s: 6px; --t: 10s; --d: -3s; }
.bubble-5 { --x: 45%; --s: 10px; --t: 14s; --d: -9s; }
.bubble-6 { --x: 53%; --s: 20px; --t: 20s; --d: -14s; }
.bubble-7 { --x: 62%; --s: 8px; --t: 12s; --d: -5s; }
.bubble-8 { --x: 71%; --s: 13px; --t: 16s; --d: -1s; }
.bubble-9 { --x: 79%; --s: 6px; --t: 9s; --d: -6s; }
.bubble-10 { --x: 86%; --s: 18px; --t: 19s; --d: -12s; }
.bubble-11 { --x: 92%; --s: 9px; --t: 13s; --d: -8s; }
.bubble-12 { --x: 97%; --s: 7px; --t: 11s; --d: -4s; }

.pop-bubble {
    position: absolute;
    z-index: 3;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgb(255 255 255 / 90%), rgb(255 255 255 / 14%) 45%, transparent 72%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 44%);
    pointer-events: none;
    animation: bubble-pop var(--t) var(--ease-out) forwards;
}

.wave,
.wave-top {
    position: absolute;
    left: 0;
    width: 100%;
    height: 56px;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    bottom: -1px;
}

.wave-top {
    top: -1px;
    z-index: 1;
    transform: scaleY(-1);
}

.wave::before,
.wave::after,
.wave-top::before,
.wave-top::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 200%;
    background: url("../img/wave.svg") repeat-x left bottom / 50% 100%;
    animation: wave-roll 16s linear infinite;
    will-change: transform;
}

.wave::before,
.wave-top::before {
    background-image: url("../img/wave-lilac.svg");
    opacity: 0.24;
    animation-duration: 26s;
    animation-direction: reverse;
}

.wave-top::before,
.wave-top::after {
    background-image: url("../img/wave-lilac.svg");
}

/* Hero */

.hero,
.band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #120e33 0%, var(--deep) 58%, #15103a 100%);
    color: var(--white);
}

.hero {
    --px: 0;
    --py: 0;
    display: flex;
    align-items: center;
    min-height: min(100svh, 860px);
    padding: 92px 0 96px;
}

.hero-inner {
    display: grid;
    gap: 16px;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 2;
    animation: rise 0.9s var(--ease-out) both;
}

.hero .eyebrow {
    color: var(--moss);
}

.hero h1 {
    margin-bottom: 0.36em;
    font-size: clamp(2.7rem, 1.5rem + 4.3vw, 4.85rem);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.line {
    display: block;
}

.hero .lead {
    max-width: 30em;
    margin-bottom: 1.6em;
    color: var(--mist);
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
}

.word {
    display: inline-block;
    animation: word-in 0.8s var(--ease-out) both;
    animation-delay: calc(var(--i) * 90ms + 120ms);
}

/* Gradient text only paints inside its box, so the padding makes room for the g and y tails. */
.word-accent {
    margin: -0.1em -0.05em -0.24em;
    padding: 0.1em 0.05em 0.24em;
    background: linear-gradient(95deg, #cdb0ff 0%, #8fd8ff 52%, var(--moss) 100%);
    background-size: 200% 100%;
    background-clip: text;
    color: transparent;
    animation: word-in 0.8s var(--ease-out) both, shimmer 7s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 90ms + 120ms), 1s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-photo {
    position: relative;
    z-index: 1;
    margin: 0 -10px;
    transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -12px), 0);
    transition: transform 0.6s var(--ease-out);
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 12% 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(169 224 91 / 22%), rgb(96 56 168 / 22%) 45%, transparent 70%);
    filter: blur(36px);
}

.hero-bubble {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 47% 53% 55% 45% / 52% 46% 54% 48%;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 26%), 0 0 90px rgb(140 100 255 / 42%), 0 34px 90px rgb(0 0 0 / 50%);
    animation: photo-in 1.2s var(--ease-out) both, bob 9s ease-in-out 1.2s infinite alternate;
}

.hero-bubble::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 30% 20% at 27% 18%, rgb(255 255 255 / 42%), transparent 72%),
        radial-gradient(ellipse 40% 26% at 76% 88%, rgb(120 200 255 / 22%), transparent 74%);
    box-shadow: inset 0 0 46px 6px rgb(13 11 36 / 72%), inset 0 0 0 2px rgb(255 255 255 / 14%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
}

/* Inner page bands */

.band {
    padding: 96px 0 72px;
}

.band-inner {
    z-index: 2;
}

.band .lead {
    color: var(--mist);
}

.band a {
    color: var(--white);
}

.band::after {
    content: "";
    position: absolute;
    top: -12vmax;
    right: -10vmax;
    width: 48vmax;
    height: 48vmax;
    background: url("../img/shell-spiral.svg") center / contain no-repeat;
    opacity: 0.05;
    pointer-events: none;
    animation: slow-spin 150s linear infinite;
}

.band-blue .water-glow-one {
    background: radial-gradient(circle, rgb(32 120 215 / 62%), transparent 66%);
}

.band-blue .water-glow-two {
    background: radial-gradient(circle, rgb(90 170 240 / 40%), transparent 66%);
}

.band-white .water-glow-one {
    background: radial-gradient(circle, rgb(222 214 245 / 42%), transparent 66%);
}

.band-white .water-glow-two {
    background: radial-gradient(circle, rgb(255 244 222 / 24%), transparent 66%);
}

.band-lifted {
    padding-bottom: 150px;
}

.band-lost {
    min-height: 72svh;
}

.lost-snail {
    width: 150px;
    margin-bottom: 18px;
    transform: rotate(-12deg);
}

.band-product {
    padding-bottom: 104px;
}

.page-header {
    max-width: 780px;
    padding: 12px 0 8px;
}

.breadcrumbs {
    padding: 8px 0;
    color: var(--mist);
    font-size: 0.95rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 4px;
    opacity: 0.6;
}

.band :focus-visible,
.hero :focus-visible {
    outline-color: var(--white);
}

/* Photos */

.photo {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
}

.photo-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.photo-placeholder .snail-art {
    width: 52%;
    max-width: 240px;
    filter: drop-shadow(0 10px 16px rgb(13 11 36 / 45%));
    animation: bob 6s ease-in-out infinite alternate;
}

.placeholder-label {
    font-family: var(--heading);
    font-size: 0;
}

.placeholder-label small {
    display: block;
    color: rgb(255 255 255 / 78%);
    font-family: var(--body);
    font-size: 0.85rem;
}

.placeholder-purple {
    background: radial-gradient(circle at 50% 42%, #4a2a96, #1b1548 76%);
}

.placeholder-blue {
    background: radial-gradient(circle at 50% 42%, #24609f, #101f4c 76%);
}

.placeholder-white {
    background: radial-gradient(circle at 50% 42%, #3a3468, #15103a 76%);
}

.placeholder-aqua {
    background: radial-gradient(circle at 50% 42%, #1f7a72, #0f2c3a 76%);
}

/* Snail mascot */

.snail-art {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.theme-purple {
    --shell: #8150d4;
    --band: #3b1b7e;
    --shine: #e6d6ff;
}

.theme-blue {
    --shell: #57a0f2;
    --band: #1c55ad;
    --shine: #e2efff;
}

.theme-white {
    --shell: #fffaf0;
    --band: #d9cfe8;
    --shine: #fff;
}

.snail-skin {
    fill: #ffd8bc;
    stroke: #2a2148;
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.snail-stalk,
.snail-stalk-line {
    fill: none;
    stroke-linecap: round;
}

.snail-stalk-line {
    stroke: #2a2148;
    stroke-width: 9;
}

.snail-stalk {
    stroke: #ffd8bc;
    stroke-width: 4.5;
}

.snail-eyeball {
    fill: #fff;
    stroke: #2a2148;
    stroke-width: 2.5;
}

.snail-pupil {
    fill: #2a2148;
    transform-box: fill-box;
    transform-origin: center;
    animation: blink 5.5s infinite;
}

.snail-eye {
    transform-box: fill-box;
    transform-origin: 30% 100%;
    animation: eye-wiggle 3.2s ease-in-out infinite alternate;
}

.snail-eye-back {
    animation-duration: 2.7s;
    animation-delay: -1s;
}

.shell-base {
    fill: var(--shell);
    stroke: #2a2148;
    stroke-width: 2.5;
}

.shell-band {
    fill: none;
    stroke: var(--band);
    stroke-width: 6.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shell-shine {
    fill: none;
    stroke: var(--shine);
    stroke-width: 5;
    stroke-linecap: round;
    opacity: 0.85;
}

.snail-layer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    contain: layout paint;
}

.snail-trail {
    position: absolute;
    top: 0;
    left: 0;
}

.snail-trail path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.snail-trail-glow {
    stroke-width: 16;
    opacity: 0.22;
}

.snail-trail-edge {
    stroke: #6038a8;
    stroke-width: 7;
    opacity: 0.32;
}

.snail-trail-line {
    stroke-width: 4;
}

.snail-rider {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--rider, 84px);
    transform-origin: 50% 92%;
    pointer-events: auto;
    cursor: pointer;
    will-change: transform;
}

.snail-rider .snail-skin,
.snail-rider .snail-eye-group {
    transform-box: view-box;
    transform-origin: 41% 50%;
    transition: transform 0.3s var(--ease-out);
}

.snail-rider.is-hiding .snail-skin,
.snail-rider.is-hiding .snail-eye-group {
    transform: scale(0.08);
}

.snail-rider.is-hiding .shell-base,
.snail-rider.is-hiding .shell-band,
.snail-rider.is-hiding .shell-shine {
    animation: shell-shiver 0.14s linear 5 alternate;
    transform-box: view-box;
}

.snail-rider .snail-art {
    filter: drop-shadow(0 4px 8px rgb(13 11 36 / 28%));
}

.snail-rider.is-crawling .snail-crawl {
    transform-origin: 50% 100%;
    animation: crawl 0.7s ease-in-out infinite alternate;
}

.snail-say {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 14px;
    border-radius: 16px 16px 16px 4px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--heading);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    width: max-content;
    max-width: var(--speech-max, 320px);
    box-shadow: 0 8px 22px rgb(13 11 36 / 28%);
    opacity: 0;
    transition: opacity 0.3s;
}

.snail-say.is-showing {
    opacity: 1;
}

/* Product cards */

.card-grid {
    display: grid;
    position: relative;
    z-index: 2;
    gap: 26px;
    grid-template-columns: 1fr;
    list-style: none;
}

.card-grid-lifted {
    margin-top: -112px;
}

.card {
    --rx: 0deg;
    --ry: 0deg;
    --gx: 50%;
    --gy: 0%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 36px rgb(36 33 56 / 12%);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: box-shadow 0.35s, transform 0.35s var(--ease-out);
}

.card.is-tilting {
    transition: box-shadow 0.35s;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle 280px at var(--gx) var(--gy), rgb(255 255 255 / 34%), transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}

.card:hover {
    box-shadow: 0 26px 56px rgb(96 56 168 / 28%);
}

.card:hover::after {
    opacity: 1;
}

.card-blue:hover {
    box-shadow: 0 26px 56px rgb(32 88 165 / 30%);
}

.card-media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--deep);
}

.card-purple .card-media {
    view-transition-name: snail-purple;
}

.card-white .card-media {
    view-transition-name: snail-white;
}

.card-blue .card-media {
    view-transition-name: snail-blue;
}

.gallery-purple .gallery-main {
    view-transition-name: snail-purple;
}

.gallery-white .gallery-main {
    view-transition-name: snail-white;
}

.gallery-blue .gallery-main {
    view-transition-name: snail-blue;
}

.card-media .photo,
.card-media .photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
    transition: transform 0.7s var(--ease-out);
}

.card:hover .card-media .photo,
.card:hover .card-media .photo-placeholder {
    transform: scale(1.06);
}

.card-body {
    padding: 20px 22px 22px;
}

.card-title {
    margin-bottom: 4px;
    font-size: 1.45rem;
}

.card-title a {
    color: var(--ink);
    text-decoration: none;
}

/* The whole card is clickable through the single title link. */
.card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.card-title a:focus-visible {
    outline: none;
}

.card:focus-within {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.card-meta {
    margin-bottom: 12px;
    color: var(--muted);
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
}

.card-price {
    font-family: var(--heading);
    font-size: 1.5rem;
    font-weight: 500;
}

.card-price small {
    color: var(--muted);
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 400;
}

.stock-chip {
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--aqua);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Ribbon */

/* Sits below the snail layer, so the snail crawls over it. */
.ribbon {
    position: relative;
    z-index: 3;
    overflow: hidden;
    width: 106%;
    margin: 0 -3%;
    padding: 14px 0;
    background: linear-gradient(90deg, var(--purple), var(--blue) 55%, #1f8a78);
    box-shadow: 0 14px 34px rgb(36 33 56 / 18%);
    color: var(--white);
    font-family: var(--heading);
    font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem);
    font-weight: 500;
    transform: rotate(-1.3deg);
}

.ribbon-track {
    display: flex;
    width: max-content;
    animation: ribbon-roll 42s linear infinite;
    will-change: transform;
}

.ribbon p {
    display: flex;
    flex-shrink: 0;
    margin: 0;
}

.ribbon span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ribbon span::after {
    content: "";
    width: 1.05em;
    height: 1.05em;
    margin: 0 1.3em;
    background: url("../img/favicon.svg") center / contain no-repeat;
}

/* Size story */

.section-size {
    background: linear-gradient(180deg, var(--cream), var(--lilac));
}

.size-grid {
    display: grid;
    gap: 36px;
    align-items: center;
}

.size-photo {
    position: relative;
    margin: 0;
}

.size-photo img {
    width: 100%;
    border-radius: 32px 80px 32px 80px;
    box-shadow: 0 24px 56px rgb(36 33 56 / 24%);
}

.size-photo figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    max-width: 78%;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgb(13 11 36 / 74%);
    color: var(--white);
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}

.grow {
    display: none;
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 32px rgb(36 33 56 / 10%);
}

.js .grow {
    display: block;
}

.grow-stage {
    margin: 0 4px 14px 20px;
    container-type: inline-size;
}

.grow-scene {
    --unit: calc(100cqw / 9);
    position: relative;
    height: calc(var(--unit) * 6.6);
}

.grow-snail {
    --cm: 1.5;
    position: absolute;
    z-index: 1;
    bottom: 22px;
    left: calc(var(--cm) * var(--unit) * -0.21);
    width: calc(var(--cm) * var(--unit) * 1.76);
    transition: width 0.25s var(--ease-out), left 0.25s var(--ease-out);
}

.grow-penny {
    position: absolute;
    bottom: 24px;
    left: calc(var(--unit) * 6.7);
    display: grid;
    place-items: center;
    width: calc(var(--unit) * 2.03);
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(140deg, #eab287, #c47a4d);
    box-shadow: inset 0 0 0 3px #a9623a, inset 0 0 0 5px #efc3a1;
    color: #5e2d15;
    font-family: var(--heading);
    font-weight: 600;
}

.grow-ruler {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 3px solid var(--ink);
    color: var(--muted);
    font-size: 0.8rem;
}

.grow-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.grow-label output {
    color: var(--purple);
    font-family: var(--heading);
    font-size: 1.25rem;
    font-weight: 500;
}

.grow input[type="range"] {
    width: 100%;
    min-height: 44px;
    margin: 0;
    accent-color: var(--purple);
    cursor: grab;
}

.grow-stage-name {
    margin: 0;
    color: var(--muted);
}

/* Bred here */

.statement {
    max-width: 760px;
    text-align: center;
}

.statement-snail {
    width: 136px;
    margin: 0 auto 12px;
}

.statement h2 {
    font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem);
}

.statement .prose {
    margin: 0 auto;
    font-size: 1.2rem;
}

/* Steps */

.steps {
    position: relative;
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 28px rgb(96 56 168 / 10%);
    counter-increment: step;
    transition: transform 0.35s var(--ease-out);
}

.steps li:hover {
    transform: translateY(-5px) rotate(-0.6deg);
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #fff, var(--aqua) 62%);
    box-shadow: 0 4px 12px rgb(32 120 165 / 22%);
    font-family: var(--heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.steps p {
    margin: 0;
}

/* Deep water ending */

.section-deep {
    padding-top: 140px;
    padding-bottom: 40px;
    background: var(--deep);
    color: var(--white);
}

.section-deep .water {
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 62%, transparent);
}

.deep-inner {
    z-index: 2;
}

.section-deep .eyebrow {
    color: var(--moss);
}

.question-list {
    display: grid;
    gap: 14px;
    list-style: none;
}

.question-list a {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 14px 24px;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 999px;
    background: rgb(255 255 255 / 8%);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background-color 0.3s, transform 0.35s var(--ease-out), border-color 0.3s;
}

.question-list a:hover {
    border-color: var(--moss);
    background: rgb(169 224 91 / 16%);
    transform: translateY(-4px) scale(1.015);
}

.question-list a::after {
    content: "→";
    margin-left: auto;
    padding-left: 14px;
    color: var(--moss);
    font-size: 1.3rem;
    transition: transform 0.3s var(--ease-out);
}

.question-list a:hover::after {
    transform: translateX(6px);
}

.section-deep :focus-visible {
    outline-color: var(--white);
}

/* Long-form pages */

.page-layout,
.guide-layout {
    padding: 44px 0 64px;
}

.page-body {
    padding-bottom: 8px;
}

.page-photo {
    margin-bottom: 18px;
}

.contents {
    margin-bottom: 32px;
    padding: 22px 24px;
    border-radius: var(--radius);
    background: var(--aqua);
}

.contents h2 {
    font-size: 1.3rem;
}

.contents ul {
    list-style: none;
}

.contents li {
    padding: 2px 0;
}

.contents a {
    display: block;
    padding: 5px 10px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.25s;
}

.contents a:hover {
    background: rgb(255 255 255 / 60%);
}

.contents a.is-active {
    background: var(--deep);
    color: var(--white);
}

.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #a98cff, #6cc6ff, var(--moss));
    transform: scaleX(var(--read, 0));
    transform-origin: left;
}

.prose {
    max-width: 760px;
}

.prose h2 {
    margin-top: 1.6em;
    font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem);
    scroll-margin-top: 90px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose ul,
.prose ol {
    margin: 0 0 1em;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 0.3em;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 1em;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgb(36 33 56 / 8%);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th,
td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--lilac);
    text-align: left;
    vertical-align: top;
}

thead th {
    background: var(--deep);
    color: var(--white);
}

tbody th {
    font-weight: 600;
    white-space: nowrap;
}

.note {
    margin: 0 0 1em;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--lilac);
}

.note p {
    margin: 0;
}

/* Product page */

.product-layout {
    display: grid;
    gap: 28px;
    padding: 12px 0 8px;
}

.gallery {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgb(255 255 255 / 8%);
    box-shadow: 0 24px 60px rgb(0 0 0 / 45%);
}

/* A row of photos that snaps one at a time. Swiping works even without JavaScript. */
.gallery-track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
}

.js .gallery-track {
    scrollbar-width: none;
}

.js .gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track:focus-visible {
    outline-offset: -8px;
    border-radius: var(--radius);
}

.gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.gallery-main .photo {
    aspect-ratio: 5 / 4;
    border-radius: 0;
    transition: transform 0.8s var(--ease-out);
}

.gallery-main:hover .photo {
    transform: scale(1.04);
}

.gallery-main .photo-placeholder {
    aspect-ratio: 5 / 4;
}

/* Each photo settles into place as it slides in. */
@supports (animation-timeline: view()) {
    html:not(.motion-off) .gallery-slide .photo {
        animation: gallery-settle linear both;
        animation-timeline: view(inline);
    }
}

.gallery-arrow,
.gallery-count {
    display: none;
    position: absolute;
    z-index: 1;
    margin: 0;
    border: 1px solid rgb(255 255 255 / 28%);
    background: rgb(20 17 48 / 72%);
    color: var(--white);
    backdrop-filter: blur(8px);
}

.js .gallery-arrow {
    display: grid;
    place-items: center;
}

.js .gallery-count {
    display: block;
}

.gallery-arrow {
    top: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgb(13 11 36 / 35%);
    cursor: pointer;
    translate: 0 -50%;
    transition: background 0.2s, scale 0.2s var(--ease-out);
}

.gallery-prev {
    left: 14px;
}

.gallery-next {
    right: 14px;
}

.gallery-arrow:hover {
    background: rgb(20 17 48 / 92%);
    scale: 1.08;
}

.gallery-arrow:active {
    scale: 0.92;
}

.gallery-count {
    right: 14px;
    bottom: 14px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-thumbs {
    display: none;
    position: relative;
    gap: 10px;
    overflow-x: auto;
    margin: 0 -5px;
    padding: 5px;
    scrollbar-color: rgb(255 255 255 / 35%) transparent;
    scrollbar-width: thin;
}

.js .gallery-thumbs {
    display: flex;
}

.gallery-thumb {
    flex: 0 0 auto;
    overflow: hidden;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgb(255 255 255 / 10%);
    cursor: pointer;
    opacity: 0.62;
    transition: opacity 0.25s, box-shadow 0.25s;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    opacity: 0.9;
}

.gallery-thumb:focus-visible {
    outline-offset: 1px;
}

.gallery-thumb[aria-current='true'] {
    box-shadow: 0 0 0 2px var(--moss);
    opacity: 1;
}

.purchase-panel {
    position: relative;
    padding: 28px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: var(--radius);
    background: rgb(255 255 255 / 9%);
    box-shadow: 0 24px 60px rgb(0 0 0 / 30%);
    backdrop-filter: blur(14px);
    animation: rise 0.9s var(--ease-out) both;
}

.purchase-panel h1 {
    margin-bottom: 6px;
    font-size: clamp(2.3rem, 1.7rem + 2.4vw, 3.4rem);
}

.provenance {
    color: var(--moss);
    font-weight: 600;
}

.purchase-intro {
    color: var(--mist);
}

.price {
    margin-bottom: 2px;
    font-family: var(--heading);
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.2;
}

.price span {
    color: var(--mist);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 400;
}

.size {
    color: var(--mist);
}

.other-colours a {
    font-weight: 600;
}

.swatch {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-right: 0.3em;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgb(255 255 255 / 60%);
}

.swatch-purple {
    background: #8150d4;
}

.swatch-blue {
    background: #57a0f2;
}

.swatch-white {
    background: var(--white);
}

.stock-state {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 14px;
    border-radius: 999px;
    background: var(--moss);
    color: var(--deep);
    font-weight: 600;
}

.preview-note {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgb(255 255 255 / 12%);
}

.delivery-note {
    margin: 0;
    color: var(--mist);
}

/* Footer */

.site-footer {
    position: relative;
    margin-top: 40px;
    padding: 56px 0 150px;
    background: url("../img/seabed.svg") repeat-x center bottom / 1440px 170px, linear-gradient(180deg, var(--deep) 62%, #1a1442);
    color: var(--white);
}

.section-deep + .site-footer,
main:has(.section-deep:last-child) + .site-footer {
    margin-top: 0;
}

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

.footer-inner {
    display: grid;
    gap: 28px;
}

.site-footer h2 {
    font-size: 1.15rem;
}

.site-footer ul {
    list-style: none;
}

.site-footer li a {
    display: inline-block;
    padding: 5px 0;
}

.site-footer :focus-visible {
    outline-color: var(--white);
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 20px;
}

.copyright {
    margin: 0;
    color: var(--mist);
    font-size: 0.9rem;
}

.motion-toggle {
    min-height: 44px;
    padding: 6px 18px;
    border: 1px solid rgb(255 255 255 / 34%);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.25s;
}

.motion-toggle:hover {
    background: rgb(255 255 255 / 14%);
}

/* Reveal on scroll */

.reveal-pending {
    opacity: 0;
    transform: translateY(34px) scale(0.98);
}

.reveal-in {
    animation: reveal 0.85s var(--ease-out) backwards;
    animation-delay: var(--delay, 0ms);
}

/* Motion */

@keyframes header-in {
    from { transform: translateY(-100%); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
}

@keyframes word-in {
    from { opacity: 0; transform: translateY(0.5em) rotate(4deg); }
}

@keyframes photo-in {
    from { opacity: 0; transform: scale(1.08); }
}

@keyframes gallery-settle {
    from, to { scale: 1.12; }
    50% { scale: 1; }
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(34px) scale(0.98); }
}

@keyframes shimmer {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

@keyframes blob {
    0% { border-radius: 47% 53% 55% 45% / 52% 46% 54% 48%; }
    50% { border-radius: 54% 46% 47% 53% / 46% 54% 48% 52%; }
    100% { border-radius: 49% 51% 44% 56% / 56% 47% 53% 44%; }
}

@keyframes slow-spin {
    to { rotate: 360deg; }
}

@keyframes ribbon-roll {
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes shell-shiver {
    from { translate: -1.5px 0; }
    to { translate: 1.5px 0; }
}

@keyframes hero-drift {
    to { translate: 0 110px; scale: 0.93; }
}

@keyframes hero-fade {
    to { opacity: 0.1; translate: 0 50px; }
}

@keyframes bob {
    from { translate: 0 0; }
    to { translate: 0 -12px; }
}

@keyframes drift-one {
    to { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); }
}

@keyframes drift-two {
    to { transform: translate3d(-10vmax, -7vmax, 0) scale(1.1); }
}

@keyframes sway {
    from { transform: skewX(-5deg) scaleX(0.9); opacity: 0.55; }
    to { transform: skewX(5deg) scaleX(1.12); opacity: 1; }
}

@keyframes bubble-rise {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    8% { opacity: 0.85; }
    50% { transform: translate3d(18px, -58vh, 0); }
    92% { opacity: 0.7; }
    100% { transform: translate3d(-10px, -118vh, 0); opacity: 0; }
}

@keyframes bubble-pop {
    from { transform: translate3d(0, 0, 0) scale(0.4); opacity: 1; }
    to { transform: translate3d(var(--dx), var(--dy), 0) scale(1); opacity: 0; }
}

@keyframes wave-roll {
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes crawl {
    from { transform: scale(1, 1); }
    to { transform: scale(1.05, 0.95); }
}

@keyframes eye-wiggle {
    from { transform: rotate(-5deg); }
    to { transform: rotate(6deg); }
}

@keyframes blink {
    0%, 94%, 100% { transform: scaleY(1); }
    97% { transform: scaleY(0.1); }
}

/* Layout breakpoints from the visual specification */

/* Keep the full navigation from wrapping over sticky guide controls on tablets. */
@media (max-width: 959px) {
    .js .menu-button {
        display: inline-flex;
        align-items: center;
    }

    .js .site-nav {
        display: none;
        width: 100%;
        padding: 6px 0 10px;
    }

    .js .site-nav.is-open {
        display: block;
    }

    .js .site-nav ul {
        flex-direction: column;
    }

    .site-header:has(.site-nav.is-open) {
        background: rgb(13 11 36 / 92%);
        backdrop-filter: blur(14px);
    }
}

@media (max-width: 639px) {
    /* Keep the wordmark and menu on one line, so the stuck header stays slim on phones. */
    .header-inner {
        column-gap: 10px;
    }

    .wordmark {
        font-size: clamp(1.1rem, 5.6vw, 1.45rem);
    }

    tbody th {
        white-space: normal;
    }

    .hero-photo {
        order: 2;
    }

    .snail-trail-glow {
        stroke-width: 9;
    }

    .snail-trail-edge {
        stroke-width: 5;
    }

    .snail-trail-line {
        stroke-width: 3;
    }
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .question-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .container {
        padding: 0 32px;
    }
}

@media (min-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-inner {
        grid-template-columns: 1.08fr 0.92fr;
        gap: 28px;
    }

    .hero-photo {
        margin: 0;
    }

    .hero-bubble {
        animation: photo-in 1.2s var(--ease-out) both, bob 9s ease-in-out 1.2s infinite alternate, blob 16s ease-in-out infinite alternate;
    }

    .split,
    .size-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .product-layout {
        grid-template-columns: 55fr 45fr;
        align-items: start;
        gap: 40px;
    }

    .purchase-panel {
        position: sticky;
        top: 84px;
    }

    .section {
        padding: 96px 0;
    }

    .container {
        padding: 0 48px;
    }
}

@media (min-width: 1100px) {
    .guide-layout {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 56px;
        align-items: start;
    }

    .contents {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        margin-bottom: 0;
    }
}

/* Scroll-linked depth, in browsers that support it. */
@supports (animation-timeline: scroll()) {
    .hero-photo {
        animation: hero-drift linear both;
        animation-timeline: scroll(root);
        animation-range: 0 90vh;
    }

    .hero-text {
        animation: rise 0.9s var(--ease-out) both, hero-fade linear both;
        animation-timeline: auto, scroll(root);
        animation-range: normal, 10vh 80vh;
    }
}

.motion-off {
    scroll-behavior: auto;
}

.motion-off *,
.motion-off *::before,
.motion-off *::after {
    animation: none !important;
    transition: none !important;
}

.motion-off .bubble {
    display: none;
}

.motion-off .card {
    transform: none;
}

/* Without JavaScript, follow the device setting directly. */
@media (prefers-reduced-motion: reduce) {
    html:not(.js) *,
    html:not(.js) *::before,
    html:not(.js) *::after {
        animation: none !important;
        transition: none !important;
    }

    html:not(.js) .bubble {
        display: none;
    }
}

@media print {
    .water,
    .wave,
    .wave-top,
    .snail-layer {
        display: none;
    }
}
