/* HEEELP rebrand preview. Two directions on the old theme, sharing the same content.
   Rule of thumb: the hand-drawn voice font appears only when the sheep talks. */

@font-face {
    font-family: "invasporos-regular";
    src: url("../fonts/invaSporos-Regular.woff2") format("woff2"), url("../fonts/invaSporos-Regular.woff") format("woff");
    font-display: swap;
}

:root {
    --ink: #33280f;
    --ink-soft: #5b4717;
    --sky: #fff2e5;
    --paper: #fffcf5;
    --note: #fffacc;
    --tape: #ffe7a8;
    --sign: #ffa76c;
    --sign-hover: #ffb98a;
    --surf: #5fd8f3;
    --water: #2bc4f3;
    --sea: #1f6f94;
    --deep: #003d50;
    --abyss: #03222f;
    --sand: #fee4a4;
    --gutter: clamp(16px, 4vw, 40px);
    --font: "Geologica", "Segoe UI", Helvetica, Arial, sans-serif;
    --voice: "Gloria Hallelujah", "Segoe Print", cursive;
}

.is-gr { --voice: "invasporos-regular", "Segoe Print", cursive; }

.dir-a {
    --page: var(--paper);
    --text: var(--ink);
    --muted: var(--ink-soft);
    --heading: var(--deep);
    --line: rgba(91, 71, 23, .3);
    --link: #0a5a78;
    --press: var(--ink);
    --plain-line: var(--ink);
    --plain-text: var(--ink);
    --seg-on: var(--deep);
    --seg-on-text: #fff;
    --tile-a: var(--sign);
    --tile-a-ink: var(--ink);
    --tile-b: var(--sea);
    --tile-b-ink: #fff;
    --tile-c: var(--note);
    --tile-c-ink: var(--ink);
    --focus: var(--deep);
}

.dir-b {
    --page: var(--abyss);
    --text: #eef8fb;
    --muted: #c5e2ec;
    --heading: #fff;
    --line: rgba(190, 230, 245, .28);
    --link: #8fe6fa;
    --press: #01161f;
    --plain-line: #fff;
    --plain-text: #fff;
    --seg-on: #fff;
    --seg-on-text: var(--deep);
    --tile-a: var(--sign);
    --tile-a-ink: var(--ink);
    --tile-b: var(--surf);
    --tile-b-ink: var(--ink);
    --tile-c: var(--note);
    --tile-c-ink: var(--ink);
    --focus: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 400 17px/1.55 var(--font);
    color: var(--text);
    background: var(--page);
    overflow-wrap: break-word;
}
h1, h2, h3, p, ol, ul, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1 { font-weight: 700; letter-spacing: -.022em; line-height: 1.07; text-wrap: balance; }
h2 {
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -.015em;
    color: var(--heading);
    text-wrap: balance;
}
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }

.w { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(52px, 7vw, 84px); scroll-margin-top: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.fine { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.lead { font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.48; }
.hint { font-size: 14.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js-only { display: none; }
.js .js-only { display: block; }
.js .seg.js-only { display: flex; }

.skip {
    position: absolute; left: 12px; top: -80px; z-index: 50;
    padding: 10px 16px; background: var(--deep); color: #fff; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Buttons that look and feel pressed */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 10px 18px;
    font: 600 16px/1.2 var(--font); color: var(--ink); text-align: center; text-decoration: none;
    background: var(--sign);
    border: 1.5px solid var(--ink);
    border-radius: 9px 12px 8px 11px / 11px 8px 12px 9px;
    box-shadow: 0 3px 0 var(--press);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { background: var(--sign-hover); transform: translateY(-1px); box-shadow: 0 4px 0 var(--press); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--press); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn--plain { background: transparent; color: var(--plain-text); border-color: var(--plain-line); box-shadow: 0 3px 0 var(--plain-line); }
.btn--plain:hover { background: rgba(255, 255, 255, .18); box-shadow: 0 4px 0 var(--plain-line); }
.btn--plain:active { box-shadow: 0 0 0 var(--plain-line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Header */
.top {
    position: relative; z-index: 20;
    display: flex; align-items: center; gap: 18px;
    width: min(1240px, 100%); margin-inline: auto;
    padding: 14px var(--gutter);
    color: var(--ink);
}
.top__logo { display: block; flex: none; margin-right: auto; }
.top__logo img { height: 66px; width: auto; }
.top__nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.top__nav a {
    color: var(--ink); font-size: 15.5px; font-weight: 500; text-decoration: none;
    padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s;
}
.top__nav a:hover, .top__nav a:focus-visible { border-color: var(--sign); }
.top :focus-visible { outline-color: var(--deep); }
.lang { display: flex; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; flex: none; }
.lang a { min-width: 40px; padding: 7px 9px; font-size: 13.5px; font-weight: 600; text-align: center; color: var(--ink); text-decoration: none; transition: background .15s; }
.lang a:hover { background: var(--tape); }
.lang a[aria-current] { background: var(--ink); color: #fff; }
.menu-btn { display: none; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2px, .5vw, 6px); }
.tiles--head span { font-size: 13px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1; font-weight: 700; font-size: clamp(12px, 1.5vw, 19px);
    border-radius: 6px 8px 5px 7px; box-shadow: inset 0 0 0 1.5px rgba(51, 40, 15, .3);
}
.tile--a { background: var(--tile-a); color: var(--tile-a-ink); }
.tile--b { background: var(--tile-b); color: var(--tile-b-ink); }
.tile--c { background: var(--tile-c); color: var(--tile-c-ink); }
.tile--dot { width: 18px; height: 18px; aspect-ratio: auto; flex: none; }
.shift-row { margin-top: 12px; }
.shift-row__name { font-size: 15px; margin-bottom: 6px; }
.legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; margin-top: 16px; font-size: 14.5px; }
.legend__list { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legend__list li { display: flex; align-items: center; gap: 7px; }
.legend__tally { font-weight: 600; }
.seg { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.seg__btn {
    min-height: 44px; padding: 9px 14px;
    font: 600 15px/1.2 var(--font); color: var(--plain-text);
    background: transparent;
    border: 1.5px solid var(--plain-line);
    border-radius: 8px 11px 7px 10px / 10px 7px 11px 8px;
    box-shadow: 0 3px 0 var(--plain-line);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}
.seg__btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--plain-line); }
.seg__btn:active { transform: translateY(3px); box-shadow: none; }
.seg__btn[aria-pressed="true"] { background: var(--seg-on); color: var(--seg-on-text); border-color: var(--seg-on); transform: translateY(3px); box-shadow: none; }
.js .shifts [data-row="2"] { display: none; }
.js .shifts--press:not(.is-static) .shift-row__name { display: none; }

/* Reduced motion keeps both rows on screen, like the one-pager */
.shifts.is-static [data-row="2"] { display: block; }
.shifts.is-static .seg, .shifts.is-static .hint { display: none; }

.proof { font-size: 15.5px; line-height: 1.35; }
.proof b { display: block; font-size: clamp(34px, 3.7vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Sequence */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 14px 18px; align-items: center; margin-top: 28px; }
.flow__box { padding: 20px 22px; border: 1.5px solid var(--line); border-radius: 10px 13px 9px 12px; height: 100%; }
.flow__box--wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.flow__box--wide > div { flex: 1 1 320px; }
.flow__arrow { width: 64px; color: var(--muted); }
.trl {
    display: inline-block; margin-top: 12px; padding: 3px 12px;
    font-size: 14px; font-weight: 600; color: var(--ink);
    background: var(--sign); border-radius: 999px;
}
.flow__box--wide .trl { margin-top: 0; }
.origin { max-width: 78ch; margin-top: 30px; }
.origin .fine { font-size: 15px; }

.bring__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(24px, 4vw, 44px); }
.ways__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.way { display: flex; flex-direction: column; align-items: flex-start; }
.way p { flex: 1; }
.way .btn { margin-top: 18px; }

.people__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.founder__card { display: flex; align-items: center; gap: 18px; margin: 24px 0 14px; }
.founder__photo { width: 112px; height: 112px; object-fit: cover; border-radius: 48% 52% 50% 50% / 52% 50% 50% 48%; border: 3px solid var(--sign); flex: none; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.links a { font-weight: 600; }
.reviews__score { margin-bottom: 18px; font-size: 16px; }
.reviews__score b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-right: 6px; }
.reviews blockquote { padding-left: 18px; border-left: 3px solid var(--sign); margin-bottom: 20px; }
.reviews cite { display: block; margin-top: 4px; font-size: 14px; font-style: normal; color: var(--muted); }
.reviews__services { margin-top: 26px; }

.talk__body { padding-block: clamp(52px, 7vw, 80px) 24px; scroll-margin-top: 24px; }
.talk__text { margin-top: 8px; font-size: 18px; }
.talk__mail { margin-top: 18px; font-weight: 600; }

/* Footer */
.foot { font-size: 15px; padding-block: 28px 22px; }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 24px; }
.foot__h { font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.3; margin-bottom: 6px; color: inherit; }
.foot li { margin-bottom: 3px; }
.foot__espa img { width: 100%; max-width: 250px; height: auto; background: #fff; border-radius: 6px; padding: 6px; }
.foot__copy { margin-top: 18px; font-size: 14px; }

/* The sheep */
.sheep { position: absolute; z-index: 6; width: clamp(128px, 15vw, 214px); }
.sheep__btn { display: block; border-radius: 40%; cursor: pointer; transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.sheep__btn:hover { transform: translateY(-3px) rotate(-2deg); }
.sheep__btn:active, .sheep__btn.is-pressed { transform: translateY(5px) scale(.96, .92); }
.sheep__btn:focus-visible { outline-offset: 0; outline-color: var(--deep); }
.sheep__float { display: block; animation: bob 5.5s ease-in-out infinite; }
.sheep__float { position: relative; }
.sheep__img { width: 100%; height: auto; }
.sheep__eyes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sheep__say {
    position: absolute; right: 42%; bottom: 82%;
    width: max-content; max-width: 260px;
    padding: 8px 14px;
    font: 400 17px/1.4 var(--voice); color: var(--ink);
    background: #fff9e9;
    border: 2.5px solid #c0af86;
    border-radius: 18px 20px 6px 18px;
}
.sheep__say::after {
    content: ""; position: absolute; right: 14px; bottom: -8px; width: 12px; height: 12px;
    background: #fff9e9; border: solid #c0af86; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.is-gr .sheep__say { font-size: 18px; line-height: 1.25; }
@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-9px) rotate(1.5deg); }
}
.bubble {
    position: absolute; left: 50%; bottom: 30%; width: 12px; height: 12px;
    border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, .35);
    animation: rise .75s ease-out forwards; pointer-events: none;
}
@keyframes rise { to { transform: translate(var(--dx), -130px) scale(.6); opacity: 0; } }

/* The contact dialog is the same paper in both directions */
.contact {
    width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
    padding: clamp(18px, 3vw, 28px);
    color: var(--ink); background: var(--paper);
    border: 2px solid var(--ink-soft);
    border-radius: 12px 16px 11px 15px;
    --link: #0a5a78; --plain-line: var(--ink); --plain-text: var(--ink); --press: var(--ink); --focus: var(--deep); --muted: var(--ink-soft); --heading: var(--deep);
}
.contact::backdrop { background: rgba(3, 34, 47, .6); }
.contact__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.contact__head h2 { font-size: 30px; }
.contact__close { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.contact__close:hover { background: var(--tape); }
.drop {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; cursor: pointer;
    background: var(--note); border: 2px dashed var(--ink-soft); border-radius: 10px;
    transition: background .15s, transform .12s;
}
.drop:hover, .drop.is-over { background: var(--tape); }
.drop.is-over { transform: scale(1.015); }
.drop:focus-within { outline: 3px solid var(--deep); outline-offset: 2px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__sheep { flex: none; }
.drop__say { display: block; font: 400 19px/1.3 var(--voice); }
.is-gr .drop__say { font-family: "Gloria Hallelujah", "Segoe Print", cursive; }
.drop__text { display: block; font-size: 14.5px; }
.files { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 8px; font-size: 14.5px; }
.files__remove { min-height: 36px; padding: 4px 10px; font: 600 14px var(--font); color: var(--ink); background: none; border: 1.5px solid var(--ink-soft); border-radius: 7px; cursor: pointer; }
.files__remove:hover { background: var(--tape); }
.field { margin-top: 13px; }
.field label { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.field input, .field textarea {
    width: 100%; min-height: 46px; padding: 10px 12px;
    font: 400 16px/1.4 var(--font); color: var(--ink);
    background: #fff; border: 1.5px solid var(--ink-soft); border-radius: 8px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--deep); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #a32a12; border-width: 2px; }
.field__err { margin-top: 4px; font-size: 14.5px; font-weight: 600; color: #a32a12; }
.form-err { margin-block: 12px 0; }
.contact__form > .btn { margin-top: 16px; width: 100%; }
.contact__sent { text-align: center; padding-block: 10px; }
.contact__sent img { margin-inline: auto; }
.contact__say { margin-block: 12px 18px; font: 400 19px/1.45 var(--voice); }
.is-gr .contact__say { font-size: 21px; line-height: 1.3; }

/* ================= Direction A, the signpost ================= */
.dir-a .top-wrap { background: var(--sky); }
.scene { position: relative; overflow: hidden; background: var(--sky); isolation: isolate; }
.cloud { position: absolute; z-index: 0; pointer-events: none; opacity: .75; }
.cloud--1 { left: -130px; top: 34%; width: 300px; }
.cloud--2 { right: -150px; top: 2%; width: 310px; }
.signpost { position: relative; z-index: 3; padding: 26px var(--gutter) 0; }
.sign { position: relative; width: min(1180px, 100%); margin-inline: auto; }
.sign__post { position: absolute; left: 50%; top: -26px; bottom: -190px; width: 64px; margin-left: -32px; background: var(--sign); box-shadow: 6px 0 0 rgba(255, 167, 108, .25); }
.sign__shadow { position: relative; filter: drop-shadow(8px 8px 0 rgba(255, 167, 108, .24)); }
.sign__board {
    display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 22px;
    padding: clamp(14px, 2.3vw, 30px);
    background: var(--sign);
    clip-path: polygon(0 0, 100% 0, 100% 22%, calc(100% - 15px) 25%, 100% 28%, 100% 74%, calc(100% - 15px) 77%, 100% 80%, 100% 100%, 0 100%, 0 82%, 15px 79%, 0 76%, 0 30%, 15px 27%, 0 24%);
}
.sign__side { display: grid; gap: 22px; grid-template-rows: 1fr auto; }
.note {
    position: relative;
    padding: clamp(20px, 2.8vw, 36px);
    color: var(--ink);
    background: url("../images/rebrand/note.svg") center / 100% 100% no-repeat;
    --link: #0a5a78;
}
.note::before {
    content: ""; position: absolute; top: -7px; left: 50%; width: 92px; height: 21px; margin-left: -46px;
    background: var(--tape); transform: rotate(-2.5deg);
}
.note h1 { font-size: clamp(31px, 3.75vw, 52px); color: var(--deep); margin-bottom: 16px; }
.note--main p + p { margin-top: 10px; }
.note--proof, .note--reach { padding: 24px 22px 20px; }
.note--proof { display: flex; flex-direction: column; justify-content: center; }
.note--proof .proof + .proof, .note--proof .fine { margin-top: 16px; }
.note--reach a { font-weight: 600; }
.note--reach .fine { margin-top: 2px; }
.sea {
    position: relative; z-index: 2; height: 190px; margin-top: -24px;
    background: url("../images/main-bg.png") repeat-x;
    animation: drift 30s linear infinite;
}
@keyframes drift { from { background-position-x: 900px; } to { background-position-x: 0; } }
.sand {
    position: relative; z-index: 4; height: 110px; margin-top: -66px;
    background: url("../images/footer-bg2.png") repeat-x center top / 1440px 333px;
}
.star { position: absolute; }
.star--1 { left: 16%; top: 46px; width: 50px; }
.star--2 { left: 72%; top: 58px; width: 34px; }
.star--3 { right: 14%; top: 44px; width: 44px; }
.sheep--scene { right: max(14px, 4vw); bottom: 44px; }

.dir-a .shifts { background: var(--sand); padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 70px); scroll-margin-top: 24px; }
.dir-a .shifts__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.dir-a .shifts__caption { margin-top: 14px; color: var(--ink-soft); }
.dir-a .shifts .tiles--head span, .dir-a .legend { color: var(--ink); }

.edge { height: 46px; background-repeat: repeat-x; background-position: left top; background-size: 360px 120px; }
.edge--paper { background-color: var(--sand); background-image: url("../images/rebrand/edge-paper.svg"); margin-bottom: -1px; }
.edge--deep { background-color: var(--paper); background-image: url("../images/rebrand/edge-deep.svg"); margin-bottom: -1px; }
.edge--on-deep { background-color: var(--deep); }
.deep { background: var(--deep); --text: #eef8fb; --muted: #c5e2ec; --heading: #fff; --line: rgba(190, 230, 245, .35); --link: #8fe6fa; --focus: #fff; color: var(--text); }
.deep .sec { padding-block: clamp(40px, 5.5vw, 66px); }
.way { padding: clamp(22px, 3vw, 36px); }
.dir-a .way {
    color: var(--ink);
    background: url("../images/rebrand/note.svg") center / 100% 100% no-repeat;
    --plain-line: var(--ink);
}
.dir-a .way { position: relative; }
.dir-a .way::before {
    content: ""; position: absolute; top: -8px; left: 50%; width: 92px; height: 21px; margin-left: -46px;
    background: var(--tape); transform: rotate(2deg);
}
.dir-a .way h3 { font-size: 22px; font-weight: 700; color: var(--deep); }

.dir-a .talk { position: relative; overflow: hidden; background: var(--sky); isolation: isolate; }
.sea--low { height: 130px; margin-top: 6px; }
.sand--low { height: 96px; margin-top: -60px; }
.dir-a .foot { background: #fbe0a0; color: var(--ink); --link: #5b3b00; --focus: var(--deep); }
.dir-a .foot a { color: var(--ink); }

.scene--lost { min-height: calc(100dvh - 94px); display: flex; flex-direction: column; justify-content: flex-end; }
.sign--one { width: min(760px, 100%); }
.sign__board--one { grid-template-columns: minmax(0, 1fr); }

/* ================= Direction B, the seabed ================= */
.sky { position: relative; overflow: hidden; background: var(--sky); isolation: isolate; }
.sky .cloud { z-index: 0; }
.sky .cloud--1 { left: 18%; top: 38px; width: 230px; opacity: .6; }
.sky .cloud--2 { right: 30%; top: 64px; width: 210px; opacity: .5; }
.surface { position: relative; height: 120px; margin-bottom: -2px; }
.surface__wave { position: absolute; inset: 0; background-repeat: repeat-x; background-position-y: top; background-size: 360px 120px; animation: swell 26s linear infinite; }
.surface__wave--1 { background-image: url("../images/rebrand/wave-1.svg"); z-index: 1; }
.surface__wave--2 { background-image: url("../images/rebrand/wave-2.svg"); z-index: 2; animation-duration: 19s; animation-direction: reverse; }
.surface__wave--3 { background-image: url("../images/rebrand/wave-3.svg"); z-index: 8; animation-duration: 33s; }
@keyframes swell { from { background-position-x: 0; } to { background-position-x: 360px; } }
.sheep--surface { right: max(18px, 7vw); bottom: 2px; z-index: 6; width: clamp(118px, 12.5vw, 176px); }
.sheep--surface .sheep__say { right: 94%; bottom: 40%; border-radius: 18px 20px 18px 18px; }
.sheep--surface .sheep__say::after { right: -8px; bottom: 14px; border-width: 2.5px 2.5px 0 0; }

.water {
    background: linear-gradient(180deg, #0f7396 0, #0c6383 18%, #0a5875 45%, #084c66 72%, #0a556f 100%);
}
.water--lost { background: linear-gradient(180deg, #0f7396 0, #0a556f 100%); min-height: 62vh; display: flex; flex-direction: column; justify-content: space-between; }
.dive { padding-block: clamp(8px, 1.4vw, 16px) 20px; color: #fff; --link: #d2f4fc; --muted: #e2f3f8; }
.dive h1 { font-size: clamp(36px, 5.6vw, 74px); font-weight: 300; line-height: 1.05; letter-spacing: -.025em; max-width: 19ch; color: #fff; }
.dive__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 64px); margin-top: clamp(18px, 2.4vw, 30px); align-items: start; }
.dive__body p + p { margin-top: 10px; }
.dive > .lead { max-width: 60ch; margin-top: 18px; }
.dive__proof { display: grid; gap: 14px; }
.dive__proof .proof { color: #fff; }

.shifts--film { padding-block: clamp(40px, 6vw, 70px); scroll-margin-top: 12px; }
.shifts--film .shifts__grid { display: grid; gap: 22px; }
.shifts--film .beat { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.42; max-width: 62ch; margin-top: 12px; }
.shifts--film .tile { font-size: clamp(12px, 2vw, 26px); }
.cue { display: none; }

/* Only with scripting and motion allowed does the section become a scroll-driven film */
.shifts--film.is-live { height: 280vh; padding: 0; }
.is-live .shifts__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.is-live .beats { position: relative; min-height: 5.6em; margin-top: 12px; }
.is-live .beat { position: absolute; inset: 0 auto auto 0; margin: 0; opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease; }
.is-live .beat.on { opacity: 1; transform: none; }
.is-live .cue { display: block; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 14px; color: var(--muted); white-space: nowrap; transition: opacity .3s; }

.dir-b .way { border: 1.5px solid var(--line); border-radius: 10px 13px 9px 12px; background: rgba(255, 255, 255, .05); }
.dir-b .way h3 { font-size: 22px; color: #fff; }
.dir-b .talk { position: relative; z-index: 1; }
.seabed {
    height: clamp(150px, 19vw, 280px); margin-top: -40px;
    background:
        url("../images/bubbles2.svg") center 8px / 1341px auto repeat-x,
        url("../images/rebrand/seabed.svg") center bottom / max(100%, 1100px) auto no-repeat;
}
.dir-b .foot { background: var(--abyss); color: var(--muted); }

/* ================= Small screens ================= */
@media (max-width: 960px) {
    .top { flex-wrap: wrap; }
    .top__logo { order: 1; }
    .lang { order: 2; }
    .js .menu-btn {
        order: 3; display: block; min-height: 40px; padding: 6px 12px;
        font: 600 15px var(--font); color: var(--ink); background: none;
        border: 1.5px solid var(--ink); border-radius: 8px; cursor: pointer;
    }
    .top__nav { order: 4; width: 100%; flex-direction: column; gap: 0; }
    .top__nav a { padding: 10px 0; border-bottom: 1px solid rgba(91, 71, 23, .2); }
    .js .top__nav:not(.is-open) { display: none; }
    .sign__board, .dir-a .shifts__grid, .split, .dive__body, .people__grid { grid-template-columns: minmax(0, 1fr); }
    .sign__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    body { font-size: 16.5px; }
    .top__logo img { height: 54px; }
    .sign__side, .ways__pair, .bring__list { grid-template-columns: minmax(0, 1fr); }
    .flow { grid-template-columns: minmax(0, 1fr); }
    .flow__arrow { transform: rotate(90deg); justify-self: center; width: 42px; }
    .sign__post { left: 22%; }
    .sheep { width: 132px; }
    .sheep__say { max-width: 150px; font-size: 15px; }
    .sheep--scene { right: 8px; bottom: 34px; }
    .sea { height: 170px; }
    .actions .btn { flex: 1 1 100%; }
    .foot__grid { grid-template-columns: minmax(0, 1fr); }
    .is-live .beats { min-height: 8.8em; }
    .shifts--film.is-live { height: 260vh; }
    .cloud { display: none; }
    .surface { height: 78px; }
    .sheep--surface { width: 116px; right: 8px; }
    .sheep--surface .sheep__say { max-width: 136px; right: 88%; bottom: 26%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The sheep is now the vest-less SVG, with a scared and a relieved face */
.sheep__svg { width: 100%; height: auto; overflow: visible; }
.sheep__face { opacity: 0; transition: opacity .2s; }
.sheep.is-scared .sheep__face--scared, .sheep.is-relieved .sheep__face--relief { opacity: 1; }
.sheep__pupil > path { transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.sheep.is-scared .sheep__pupil > path { transform: scale(.45); }

/* Compact form, so the whole thing with Send fits on one screen */
.contact { padding: clamp(16px, 2.4vw, 24px); }
.contact__head { margin-bottom: 10px; }
.contact__head h2 { font-size: 26px; }
.drop { padding: 8px 12px; }
.field { margin-top: 10px; }
.field input, .field textarea { min-height: 42px; padding: 8px 11px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.contact__form > .btn { margin-top: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* Opening: the note gets slapped on the board and wobbles once, and the sheep peeks up */
.contact[open] { animation: note-in .5s cubic-bezier(.2, .9, .3, 1.25) both; }
.contact[open]::backdrop { animation: fade-in .25s ease both; }
.contact[open] .drop__sheep { animation: peek .7s .25s cubic-bezier(.3, 1.6, .5, 1) both; }
.contact.is-closing { animation: note-out .18s ease-in both; }
@keyframes note-in {
    0% { opacity: 0; transform: translateY(-36px) rotate(-5deg) scale(.94); }
    55% { opacity: 1; transform: translateY(5px) rotate(1.6deg) scale(1.01); }
    78% { transform: translateY(-2px) rotate(-.7deg); }
    100% { transform: none; }
}
@keyframes note-out { to { opacity: 0; transform: translateY(18px) rotate(2deg) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes peek {
    0% { opacity: 0; transform: translateY(14px) rotate(-12deg); }
    60% { opacity: 1; transform: translateY(-4px) rotate(6deg); }
    100% { transform: none; }
}

/* The scared sheep trembles a little */
.sheep.is-scared .sheep__svg { animation: tremble .18s linear infinite; }
@keyframes tremble { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, 1px); } }

/* Short screens (iPhone SE, small laptops): the form still fits with Send in view */
@media (max-height: 720px) {
    .contact { padding: 14px 16px; }
    .contact__head { margin-bottom: 6px; }
    .contact__head h2 { font-size: 22px; }
    .drop { padding: 6px 10px; }
    .drop__sheep { width: 34px; height: auto; }
    .drop__say { font-size: 16px; }
    .field { margin-top: 7px; }
    .field label { font-size: 14px; margin-bottom: 2px; }
    .field input { min-height: 40px; padding-block: 6px; }
    .field textarea { min-height: 0; height: 62px; }
    #hint-message { display: none; }
    .contact__form > .btn { margin-top: 10px; min-height: 44px; }
}

/* The vest comes off and floats up when the sheep goes under */
.sheep__vest { transform-box: fill-box; transform-origin: center; transition: transform 1.1s cubic-bezier(.25, .7, .35, 1), opacity 1.1s ease; }
.sheep.lost-vest .sheep__vest { transform: translate(-20px, -95px) rotate(-30deg); opacity: 0; }

/* ================= Round 5 ================= */
/* The sheep and its speech bubble are one big target; the waves and clouds never catch the click */
.sheep__btn { position: relative; border-radius: 14px; }
.surface, .surface__wave, .cloud { pointer-events: none; }

/* The swim ring: hisses when punctured, then pops */
.sheep__tube { transform-box: view-box; transform-origin: 112px 150px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.sheep__hiss, .sheep__pop { opacity: 0; }
.sheep__pop { font: 700 30px var(--voice); fill: #f28b3c; stroke: #fff9e9; stroke-width: 5px; paint-order: stroke; transform-box: fill-box; transform-origin: center; }
.sheep.is-punctured .sheep__tube { transform: scale(.97, .72); }
.sheep.is-punctured:not(.is-burst) .sheep__hiss { opacity: 1; animation: hiss .3s linear infinite; }
.sheep.is-burst .sheep__tube { transform: scale(1.35, 1.2); opacity: 0; transition: transform .22s ease-out, opacity .22s ease-out; }
.sheep.is-burst .sheep__pop { animation: pop .95s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes hiss { 50% { transform: translate(-2px, 1px); opacity: .45; } }
@keyframes pop {
    0% { opacity: 0; transform: scale(.2) rotate(-12deg); }
    30% { opacity: 1; transform: scale(1.25) rotate(5deg); }
    70% { opacity: 1; transform: scale(1) rotate(-2deg); }
    100% { opacity: 0; transform: scale(1.1) translateY(-12px); }
}
.sheep__psss { opacity: 0; font: 400 22px var(--voice); fill: var(--ink-soft); }
.sheep.is-punctured:not(.is-burst) .sheep__psss { opacity: 1; animation: hiss .3s linear infinite; }

/* Loader: the sheep bobbing on a little wave, only when loading is slow */
.loader { display: none; }
.js .loader {
    position: fixed; inset: 0; z-index: 200;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: var(--sky); opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.loader.is-shown { opacity: 1; pointer-events: auto; }
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__sheep { animation: loader-bounce .5s ease-in-out infinite; }
@keyframes loader-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .loader__sheep { animation: none; } }
