/* Okto Zone site styles. Hand-written, no build step.
   Black and white from the logo, one ultramarine accent, Archivo at three widths:
   expanded black for display type (echoes the chunky logo), normal width for reading. */

:root {
    --ink: #000;
    --text: #2c303b;
    --muted: #5b6070;
    --paper: #fff;
    --tint: #eef1fd;
    --sea: #2340e8;
    --sea-dark: #1529b0;
    --line: #d9deea;
    --sun: #ffcf3a;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1200px;
    --gutter: 16px;
    --radius: 10px;
    --shadow: 6px 6px 0 var(--ink);
}

@media (min-width: 700px) {
    :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-stretch: 100%;
    overflow-x: hidden;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--sea-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sun); color: var(--ink); }

.skip {
    position: absolute; left: var(--gutter); top: -100px; z-index: 100;
    padding: 0.6rem 1rem; background: var(--ink); color: #fff; border-radius: 6px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

.display {
    color: var(--ink);
    font-stretch: 125%;
    font-weight: 820;
    font-size: clamp(2.6rem, 1.1rem + 6.2vw, 6.1rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.display--page { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); }

.h2 {
    color: var(--ink);
    font-stretch: 112%;
    font-weight: 760;
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.h3 {
    color: var(--ink);
    font-stretch: 100%;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.25;
}

.lead {
    max-width: 36rem;
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
    line-height: 1.5;
    color: var(--text);
}

.prose { max-width: 40rem; }
.prose > * + * { margin-top: 1rem; }
.prose .h2 { margin-bottom: 1.25rem; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 1.45rem;
    border: 2px solid var(--ink); border-radius: 999px;
    background: var(--ink); color: #fff;
    font: inherit; font-stretch: 105%; font-weight: 650; line-height: 1.1;
    text-decoration: none; text-align: center; overflow-wrap: anywhere; cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { background: var(--sea); border-color: var(--sea); color: #fff; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--sun); }
.btn--small { padding: 0.5rem 1.05rem; font-size: 0.95rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.more {
    color: var(--ink); font-weight: 650; text-decoration: underline;
    text-decoration-color: var(--sea); text-decoration-thickness: 3px; text-underline-offset: 0.3em;
}
.more:hover { color: var(--sea); }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--paper);
    border-bottom: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); box-shadow: 0 4px 0 var(--sun); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: block; line-height: 0; }
.brand img { width: 134px; height: auto; }

.site-nav__list { display: flex; align-items: center; gap: 0.35rem; padding: 0; list-style: none; }
.site-nav__link {
    display: block; padding: 0.5rem 0.8rem;
    color: var(--ink); font-weight: 600; text-decoration: none;
}
.site-nav__link:hover { color: var(--sea); }
.site-nav__link[aria-current="page"] {
    text-decoration: underline; text-decoration-color: var(--sea);
    text-decoration-thickness: 3px; text-underline-offset: 0.45em;
}
.site-nav .btn { margin-left: 0.5rem; }
.site-nav .btn[aria-current="page"] { background: var(--sea); border-color: var(--sea); }

.nav-toggle { display: none; }

@media (max-width: 819px) {
    .nav-toggle {
        display: inline-flex; align-items: center; gap: 0.6rem;
        padding: 0.55rem 0.9rem; border: 2px solid var(--ink); border-radius: 999px;
        background: var(--paper); color: var(--ink); font: inherit; font-weight: 650; cursor: pointer;
    }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
        display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
        transition: transform 0.2s, opacity 0.2s;
    }
    .nav-toggle__bars { position: relative; }
    .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle__bars::before { top: -6px; }
    .nav-toggle__bars::after { top: 6px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

    .site-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--paper); border-bottom: 2px solid var(--ink);
        padding: 0.5rem var(--gutter) 1.5rem;
    }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav__link {
        padding: 0.9rem 0; border-bottom: 1px solid var(--line);
        font-stretch: 112%; font-weight: 750; font-size: 1.5rem;
    }
    .site-nav .btn { margin: 1.25rem 0 0; width: 100%; padding: 0.9rem; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(2.5rem, 1rem + 5vw, 5.5rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.hero__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title mark" "lead lead" "actions actions";
    column-gap: 2rem;
}
.hero__title { grid-area: title; max-width: 11.5em; }
.hero__mark {
    grid-area: mark; align-self: start; position: relative; isolation: isolate;
    width: clamp(92px, 18vw, 260px); aspect-ratio: 1;
}
.hero__lead { grid-area: lead; margin-top: 1.75rem; }
.hero__inner .actions { grid-area: actions; margin-top: 2rem; }

@media (max-width: 599px) {
    .hero__inner { grid-template-areas: "mark mark" "title title" "lead lead" "actions actions"; }
    .hero__mark { margin-bottom: 1.5rem; }
}

/* Work strip under the hero: the one orchestrated motion on the site. */
.strip {
    display: grid; grid-auto-flow: column; grid-auto-columns: 80%;
    gap: 1.25rem; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
    padding: 0 10px 14px 0; list-style: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.strip__item { scroll-snap-align: start; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.strip__item:nth-child(1) { animation-delay: 0.55s; }
.strip__item:nth-child(2) { animation-delay: 0.65s; }
.strip__item:nth-child(3) { animation-delay: 0.75s; }
.strip__item:nth-child(4) { animation-delay: 0.85s; }

@media (min-width: 700px) {
    .strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.75rem; overflow: visible; }
}
@media (min-width: 1100px) {
    .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .strip__item:nth-child(even) { margin-top: 2.5rem; }
}

.strip__link { display: block; color: var(--ink); text-decoration: none; }
.strip__name { display: block; margin-top: 1.1rem; font-weight: 700; line-height: 1.3; }
.strip__meta { display: block; color: var(--muted); font-size: 0.95rem; font-stretch: 90%; }
.strip__link:hover .strip__name { text-decoration: underline; text-decoration-color: var(--sea); text-decoration-thickness: 2px; }

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

/* ---------- Browser frame ---------- */

.frame {
    overflow: hidden;
    border: 2px solid var(--ink); border-radius: var(--radius);
    background: var(--paper); box-shadow: 6px 6px 0 var(--accent, var(--ink));
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.frame__bar {
    display: flex; align-items: center; gap: 0.75rem;
    height: 28px; padding: 0 0.7rem;
    border-bottom: 2px solid var(--ink); background: #f3f4f7;
}
.frame__dots {
    flex: none; width: 34px; height: 8px;
    background:
        radial-gradient(circle at 4px 4px, var(--ink) 3px, transparent 3.5px),
        radial-gradient(circle at 17px 4px, var(--ink) 3px, transparent 3.5px),
        radial-gradient(circle at 30px 4px, var(--ink) 3px, transparent 3.5px);
}
.frame__url {
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    color: var(--muted); font-size: 0.75rem; font-stretch: 87%;
}
.frame__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.section--flush { padding-top: 0; }
.section--near { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section--tint { background: var(--tint); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section .h2 + .steps, .section__head + .services, .section .h2 + .services { margin-top: 2.5rem; }

.page-head { padding: clamp(2.75rem, 1.5rem + 5vw, 5.5rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.page-head .lead { margin-top: 1.5rem; }
.crumb { margin-bottom: 1.25rem; font-weight: 600; }
.crumb a { color: var(--ink); }
.crumb a::before { content: "\2190\00a0"; }

.services {
    display: grid; gap: 2.25rem 2rem; padding: 0; list-style: none;
}
@media (min-width: 600px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 950px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.services__item { padding-top: 1rem; border-top: 4px solid var(--c, var(--ink)); }
.services__item:nth-child(odd) { --c: var(--sea); }
.services__item p { margin-top: 0.5rem; max-width: 30rem; }

.steps { display: grid; gap: 2.5rem; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.steps__item { counter-increment: step; }
.steps__item::before {
    content: counter(step);
    display: block; margin-bottom: 0.75rem;
    color: var(--c, var(--sea)); font-stretch: 125%; font-weight: 850; font-size: 3.6rem; line-height: 1;
    transform-origin: left bottom;
}
.steps__item:nth-child(2) { --c: var(--ink); }
.js .steps__item.is-in::before { animation: pop 0.6s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
.steps__item p { margin-top: 0.5rem; max-width: 30rem; }

/* Services page */
.service-list { padding: 0; list-style: none; }
.service-list__item { display: grid; gap: 1rem 3rem; padding: 2.25rem 0; border-top: 4px solid var(--c, var(--ink)); }
.service-list__item:nth-child(odd) { --c: var(--sea); }
.service-list__item:last-child { border-bottom: 3px solid var(--ink); }
@media (min-width: 820px) { .service-list__item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); } }
.service-list__body { max-width: 38rem; }
.service-list__short { color: var(--ink); font-weight: 650; font-size: 1.15rem; margin-bottom: 0.6rem; }

/* Work page */
.work { display: grid; gap: 3.5rem 2.5rem; padding: 0; list-style: none; }
@media (min-width: 820px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work__link { display: block; color: var(--text); text-decoration: none; }
.work__name { margin-top: 1.5rem; }
.work__link:hover .work__name { text-decoration: underline; text-decoration-color: var(--sea); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.work__meta { margin: 0.2rem 0 0.6rem; color: var(--muted); font-stretch: 90%; }

/* Project page */
.showcase { position: relative; }
.showcase--phone { padding-right: 8%; padding-bottom: 4%; }
.showcase__phone {
    position: absolute; right: 0; bottom: 0;
    width: 24%; max-width: 260px; height: auto;
    border: 6px solid var(--ink); border-radius: 26px;
    background: var(--ink); box-shadow: var(--shadow);
}
@media (max-width: 599px) { .showcase__phone { border-width: 4px; border-radius: 16px; width: 30%; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); } }
.split__mark { width: clamp(120px, 24vw, 280px); transform: rotate(-9deg); }

.facts { display: grid; gap: 0; }
.facts > div { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 3px solid var(--ink); }
.facts dt { color: var(--muted); font-size: 0.9rem; font-stretch: 90%; }
.facts dd { color: var(--ink); font-weight: 600; }

.next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; }
.next__label { color: var(--muted); }
.next__link {
    color: var(--ink); text-decoration: none;
    font-stretch: 125%; font-weight: 820; font-size: clamp(1.75rem, 1rem + 3vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em;
}
.next__link:hover { color: var(--accent, var(--sea)); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 0.15em; }

/* Contact page */
.contact { display: grid; gap: 3rem 5rem; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.contact__row { padding: 1.1rem 0 1.25rem; border-top: 3px solid var(--ink); }
.contact__row:last-child { border-bottom: 1px solid var(--line); }
.contact__row + .contact__row { border-top-width: 1px; border-top-color: var(--line); }
.contact__row dt { color: var(--muted); font-size: 0.95rem; font-stretch: 90%; }
.contact__row dd { margin-top: 0.2rem; color: var(--ink); font-weight: 600; }
.contact__big {
    color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
    font-stretch: 115%; font-weight: 760; font-size: clamp(1.45rem, 1rem + 2vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em;
}
.contact__big:hover { color: var(--sea); text-decoration: underline; text-decoration-thickness: 3px; }
.contact__help { padding: 1.75rem; background: var(--tint); border-radius: var(--radius); }

.ticks { margin-top: 1rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li + li { margin-top: 0.6rem; }
.ticks li::before {
    content: ""; position: absolute; left: 0.1rem; top: 0.55em;
    width: 0.65rem; height: 0.65rem; background: var(--sea); border-radius: 2px;
}

/* ---------- Contact band ---------- */

.cta { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; background: var(--sea); color: #fff; overflow: hidden; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 820px) { .cta__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.cta :focus-visible { outline-color: #fff; }
.cta__title {
    color: #fff; font-stretch: 125%; font-weight: 820;
    font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.2rem); line-height: 1; letter-spacing: -0.025em; text-wrap: balance;
}
.cta__text { margin-top: 1rem; max-width: 34rem; font-size: 1.2rem; color: #e4e8ff; }
.cta__email {
    display: inline-block; margin-top: 2rem; color: #fff; overflow-wrap: anywhere;
    font-stretch: 115%; font-weight: 760; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.9rem); line-height: 1.1;
    text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em;
}
.cta__email:hover { color: var(--sun); }
.cta__phones { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.cta__phones a { color: #fff; font-weight: 650; font-size: 1.15rem; }
.cta__phones a:hover { color: var(--sun); }
.cta__phones span { color: #c9d1ff; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #c9ccd6; font-size: 0.975rem; }
.site-footer :focus-visible { outline-color: var(--sun); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2.5rem 2rem; padding-top: 4rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 0.8fr; } }
.site-footer__logo { width: 150px; filter: invert(1); }
.site-footer__brand p { margin-top: 1rem; max-width: 18rem; }
.site-footer__head { margin-bottom: 0.9rem; color: #fff; font-size: 1rem; font-weight: 700; }
.site-footer__list { padding: 0; list-style: none; }
.site-footer__list li + li { margin-top: 0.4rem; }
.site-footer__note { color: #8f94a3; }
.site-footer__news p { max-width: 24rem; }
.site-footer__base { padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid #2a2d36; color: #8f94a3; font-size: 0.9rem; }

.news-form { margin-top: 1.1rem; }
.news-form__label { display: block; margin-bottom: 0.4rem; color: #fff; font-size: 0.9rem; font-weight: 600; }
.news-form__row { display: flex; gap: 0.5rem; }
.news-form__input {
    flex: 1; min-width: 0; padding: 0.7rem 0.9rem;
    border: 2px solid #fff; border-radius: 999px; background: #fff; color: var(--ink); font: inherit;
}
.news-form__input[aria-invalid="true"] { border-color: #ff9d8a; }
.news-form__button {
    flex: none; padding: 0.7rem 1.15rem; border: 2px solid var(--sea); border-radius: 999px;
    background: var(--sea); color: #fff; font: inherit; font-weight: 650; cursor: pointer;
}
.news-form__button:hover { background: #fff; border-color: #fff; color: var(--ink); }
.news-form__button:disabled { opacity: 0.6; cursor: wait; }
.news-form__error { margin-top: 0.5rem; color: #ffb3a4; }
.news-form__done { margin-top: 0.5rem; color: var(--sun); font-weight: 600; }

/* ---------- Colour and motion ---------- */

/* Hero: headline words rise one after another, then the lead, buttons and the work strip. */
.hero__title .word { display: inline-block; animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.hero__lead { animation: rise 0.8s var(--ease) 0.4s both; }
.hero__inner .actions { animation: rise 0.8s var(--ease) 0.5s both; }

/* The octopus floats on a sun-yellow disc and blows a few bubbles. */
.hero__mark::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    border-radius: 50%; background: var(--sun);
    transform: translate(9%, 9%);
}
.hero__mark::after {
    content: ""; position: absolute; z-index: -1; left: -12%; bottom: 4%;
    width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--sea);
}
.hero__octo { display: block; width: 100%; height: auto; animation: float 6s ease-in-out infinite; }
.split__mark { animation: float 7s ease-in-out infinite; }

.bubble {
    position: absolute; z-index: 1; top: 6%; left: 48%;
    width: 12%; aspect-ratio: 1; border-radius: 50%;
    border: 3px solid var(--sea); background: rgba(255, 255, 255, 0.6);
    opacity: 0; animation: bubble 5.5s ease-in infinite;
}
.bubble--1 { animation-delay: 1.2s; }
.bubble--2 { width: 8%; left: 62%; animation-delay: 2.9s; }
.bubble--3 { width: 10%; left: 36%; animation-delay: 4.3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-9deg); }
    50% { transform: translateY(-10px) rotate(-4deg); }
}
@keyframes bubble {
    0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translate(14px, -150px) scale(1.15); }
}
@keyframes pop {
    0% { transform: scale(0.4) rotate(-12deg); opacity: 0; }
    70% { transform: scale(1.12) rotate(3deg); opacity: 1; }
    100% { transform: none; }
}

/* Screenshots lift towards the pointer, the shadow in the client's colour grows. */
.strip__link:hover .frame, .work__link:hover .frame,
.strip__link:focus-visible .frame, .work__link:focus-visible .frame {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 var(--accent, var(--ink));
}
.frame__img { transition: transform 0.6s var(--ease); }
.strip__link:hover .frame__img, .work__link:hover .frame__img { transform: scale(1.03); }

/* Nav underline grows from the left on desktop. */
@media (min-width: 820px) {
    .site-nav__link {
        background: linear-gradient(var(--sea), var(--sea)) no-repeat left calc(100% - 2px) / 0 3px;
        transition: background-size 0.25s var(--ease), color 0.15s;
    }
    .site-nav__link:hover, .site-nav__link[aria-current="page"] { background-size: calc(100% - 1.6rem) 3px; background-position-x: 0.8rem; text-decoration: none; }
}

/* Moving band of services under the home hero. Pauses under the pointer. */
.ticker {
    overflow: hidden; background: var(--sun); color: var(--ink);
    border-block: 2px solid var(--ink);
}
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; margin: 0; padding: 0.85rem 0; list-style: none; }
.ticker__list li {
    display: flex; align-items: center; white-space: nowrap;
    font-stretch: 125%; font-weight: 820; font-size: clamp(1.2rem, 0.9rem + 1.2vw, 1.9rem); letter-spacing: -0.02em;
}
.ticker__list li::after {
    content: ""; width: 0.55em; height: 0.55em; margin: 0 1.1em;
    border-radius: 50%; background: var(--sea);
}
.ticker__list li:nth-child(even)::after { background: var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Project pages: the header takes the client's brand colour and the screenshots overlap it. */
.page-head--project {
    background: var(--accent); color: #fff;
    padding-bottom: clamp(9rem, 6rem + 10vw, 15rem);
}
.page-head--project .display, .page-head--project .lead, .page-head--project .crumb a { color: #fff; }
.page-head--project .lead { opacity: 0.88; }
.section--overlap { margin-top: calc(-1 * clamp(7rem, 4.5rem + 8vw, 12rem)); }
.showcase .frame { box-shadow: 10px 10px 0 var(--ink); }

/* Contact band badge: rotating text around the octopus. */
.badge { position: relative; width: clamp(150px, 16vw, 220px); aspect-ratio: 1; justify-self: start; }
@media (min-width: 820px) { .badge { justify-self: end; } }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; overflow: visible; }
.badge__ring text { fill: #fff; font-family: var(--font); font-stretch: 125%; font-weight: 800; font-size: 15.5px; letter-spacing: 0.04em; }
.badge__octo {
    position: absolute; left: 50%; top: 50%; width: 52%; height: auto;
    transform: translate(-50%, -50%) rotate(-9deg);
    border-radius: 50%; box-shadow: 0 0 0 6px var(--sun);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll reveal. Only hidden once the page has JavaScript; if site.js never runs (no
   .reveal-ready), a late animation shows everything after 3 s so nothing stays invisible. */
.js [data-reveal] {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--d, 0) * 110ms);
}
.js:not(.reveal-ready) [data-reveal] { animation: show 0s linear 3s forwards; }
.js [data-reveal].is-in { opacity: 1; transform: none; animation: none; }
@keyframes show { to { opacity: 1; transform: none; } }

/* ---------- Scrollbar ---------- */

/* Chrome, Edge, Safari: a blue pill on a pale track with a black edge. */
::-webkit-scrollbar { width: 14px; height: 10px; }
::-webkit-scrollbar-track { background: var(--tint); border-left: 2px solid var(--ink); }
::-webkit-scrollbar-thumb {
    background: var(--sea); border-radius: 999px;
    border: 3px solid var(--tint); border-left-width: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink); }
::-webkit-scrollbar-thumb:active { background: var(--sea-dark); }
::-webkit-scrollbar-corner { background: var(--tint); }

/* The work strip scrolls sideways on phones: a slim bar under it. */
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-track { background: var(--line); border: 0; border-radius: 999px; }
.strip::-webkit-scrollbar-thumb { border: 0; background: var(--ink); }

/* Firefox only understands scrollbar-color (Chrome would drop the styles above if it saw it). */
@supports (-moz-appearance: none) {
    html { scrollbar-color: var(--sea) var(--tint); }
    .strip { scrollbar-color: var(--ink) var(--line); }
}

html { scroll-behavior: smooth; }

/* ---------- Back to top ---------- */

/* Round button, bottom right. The yellow ring fills as you scroll down the page. */
.to-top {
    --p: 0;
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
    display: grid; place-items: center;
    width: 54px; height: 54px; padding: 0;
    border: 2px solid var(--ink); border-radius: 50%;
    background: var(--ink); color: #fff; cursor: pointer;
    box-shadow: 4px 4px 0 var(--sea);
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.85);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s, box-shadow 0.15s var(--ease);
}
.to-top.is-visible {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s, box-shadow 0.15s var(--ease);
}
.to-top:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sun); }
.to-top:active { transform: none; box-shadow: none; }
.to-top:focus-visible { outline-color: var(--sea); }
.to-top__ring { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); transform: rotate(-90deg); }
.to-top__track { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 3; }
.to-top__bar {
    fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 138.23; stroke-dashoffset: calc(138.23 * (1 - var(--p)));
}
.to-top__arrow { position: relative; width: 20px; height: 20px; transition: transform 0.2s var(--ease); }
.to-top:hover .to-top__arrow { transform: translateY(-3px); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .bubble { display: none; }
    html { scroll-behavior: auto; }
}
