/* =====================================================================
   HALOSHINE — site stylesheet
   One system, no override layers. Sections appear in page order.

   1  Tokens              8  Hero               15 Footer
   2  Base                9  Marquee            16 Document pages
   3  Layout             10  Studio             17 Notice pages
   4  Type               11  What we make       18 Reveal system
   5  Buttons & links    12  Approach           19 Responsive
   6  Header & nav       13  Process            20 Reduced motion
   7  Page chrome        14  Contact
   ===================================================================== */


/* 1 — Tokens ---------------------------------------------------------- */

:root {
    color-scheme: dark;

    /* Night: the deep purples the illustrations are painted on */
    --ink-950: #0c0112;
    --ink-900: #120218;
    --ink-850: #16031f;
    --ink-800: #1d0629;
    --ink-700: #270a38;
    --brand-plum: #3c0a3d;

    /* Day: the light sections */
    --paper: #f7f2fa;
    --paper-ink: #211028;
    --paper-dim: #5f4b69;

    /* Ink on night */
    --text: #fbf7ff;
    --text-dim: #c9b9d2;
    --text-faint: #9b87a6;
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.24);

    /* Play colours, taken from the illustrations */
    --cyan: #87dfeb;
    --cyan-deep: #3fb6c6;
    --gold: #ffd071;
    --gold-deep: #e0a93c;
    --lilac: #d3afea;
    --lilac-deep: #a276c0;

    /* Pastel card grounds */
    --card-cyan: #bdeef2;
    --card-gold: #ffe6a8;
    --card-lilac: #ead3f3;

    /* Type */
    --font-sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

    --fs-sm: 0.875rem;
    --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --fs-lede: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
    --fs-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.625rem);
    --fs-h2: clamp(2.125rem, 1.4rem + 3vw, 4rem);
    --fs-display: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);

    /* Space & shape */
    --shell: 1240px;
    --gutter: clamp(20px, 4vw, 48px);
    --section: clamp(88px, 10vw, 150px);
    --header-h: 80px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 30px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* 2 — Base ------------------------------------------------------------ */

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

* { margin: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background: var(--ink-900);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

::selection { background: rgba(135, 223, 235, 0.35); color: #fff; }

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink-900);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: none; }



/* 3 — Layout ---------------------------------------------------------- */

.shell {
    width: min(var(--shell), 100% - var(--gutter) * 2);
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: var(--section);
}

.section--paper {
    background: var(--paper);
    color: var(--paper-ink);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}


/* 4 — Type ------------------------------------------------------------ */

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; line-height: 1.15; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 700 0.6875rem/1.2 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px var(--gold);
    flex: none;
}

.section--paper .eyebrow { color: var(--paper-dim); }
.section--paper .eyebrow::before { background: var(--lilac-deep); box-shadow: none; }

.section-head {
    display: grid;
    gap: 20px;
    max-width: 760px;
    margin-bottom: clamp(44px, 6vw, 72px);
}

.section-head--split {
    max-width: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    align-items: last baseline;
    column-gap: clamp(32px, 6vw, 96px);
}

.section-head--split .eyebrow { grid-column: 1 / -1; }

.lede {
    font-size: var(--fs-lede);
    line-height: 1.6;
    color: var(--text-dim);
    max-width: 56ch;
    text-wrap: pretty;
}

.section--paper .lede { color: var(--paper-dim); }

.accent {
    padding-block: 0.04em 0.16em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background: linear-gradient(100deg, #f4d0ff 0%, #ffffff 45%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.accent--ink {
    background: linear-gradient(100deg, #6c37a0 0%, #9a3d9c 50%, #c44683 100%);
    -webkit-background-clip: text;
    background-clip: text;
}


/* 5 — Buttons & links ------------------------------------------------- */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn__icon {
    width: 16px;
    height: 16px;
    flex: none;
    transition: transform 0.35s var(--ease);
}

.btn:hover .btn__icon { transform: translate(3px, -3px); }
.btn--down:hover .btn__icon { transform: translateY(3px); }

.btn--primary {
    background: #fbf6fe;
    color: var(--ink-900);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.55), inset 0 -2px 0 rgba(33, 16, 40, 0.12);
}

/* a sweep of light across the primary action on hover */
.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(135, 223, 235, 0.55) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.7s var(--ease);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -12px rgba(0, 0, 0, 0.6), inset 0 -2px 0 rgba(33, 16, 40, 0.12);
}

.btn--primary:hover::after { transform: translateX(110%); }

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
    border-color: rgba(135, 223, 235, 0.6);
    background: rgba(135, 223, 235, 0.08);
}

.btn--dark {
    background: var(--paper-ink);
    color: #fff;
}

.btn--dark:hover {
    background: #36173f;
    transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    border-bottom-color: color-mix(in srgb, currentColor 40%, transparent);
    transition: gap 0.3s var(--ease), border-color 0.3s;
}

.text-link svg { width: 15px; height: 15px; }
.text-link:hover { gap: 15px; border-bottom-color: currentColor; }


/* 6 — Header & nav ---------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), height 0.35s var(--ease), transform 0.4s var(--ease);
}

/* The glass lives on a pseudo-element, not the header itself: backdrop-filter
   makes an element the containing block for its position:fixed children,
   which would trap the mobile drawer inside the 66px header strip. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(18, 2, 24, 0.82);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.site-header.is-scrolled {
    --header-h: 66px;
    border-bottom-color: var(--line-soft);
}

.site-header.is-scrolled::before { opacity: 1; }

/* get out of the way while reading, come back on the first scroll up */
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }

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

.brand { display: inline-flex; flex: none; position: relative; z-index: 2; }

.brand img {
    height: 32px;
    width: auto;
    transition: opacity 0.2s;
}

.brand:hover img { opacity: 0.8; }

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__link {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-dim);
    transition: color 0.2s, background 0.2s;
}

.nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.nav__link.is-active { color: #fff; }

.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.nav__cta { margin-left: 10px; }
.nav__cta.btn { padding: 11px 16px; font-size: var(--fs-sm); }

.menu-toggle {
    display: none;
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }

.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.scrim {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(8, 0, 12, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.scrim.is-open { opacity: 1; visibility: visible; }


/* 7 — Page chrome: scroll progress, back to top ----------------------- */

.progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 110;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--lilac), var(--gold));
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
    pointer-events: none;
}

.to-top {
    position: fixed;
    right: clamp(14px, 2.5vw, 28px);
    bottom: clamp(14px, 2.5vw, 28px);
    z-index: 80;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(29, 6, 41, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--cyan); }

.to-top__ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.to-top__ring circle { fill: none; stroke-width: 2; }
.to-top__track { stroke: var(--line); }

.to-top__bar {
    stroke: var(--cyan);
    stroke-linecap: round;
    stroke-dasharray: 150.8;
    stroke-dashoffset: calc(150.8 * (1 - var(--progress, 0)));
}

.to-top__arrow { width: 16px; height: 16px; position: relative; }


/* 8 — Hero ------------------------------------------------------------ */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
    padding-bottom: clamp(64px, 8vw, 112px);
    background: var(--ink-850);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000, transparent 75%);
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    animation: glow-drift 16s ease-in-out infinite alternate;
}

.hero__glow--a {
    width: 720px;
    height: 720px;
    left: -280px;
    top: -120px;
    background: radial-gradient(circle, rgba(211, 175, 234, 0.2), transparent 64%);
}

.hero__glow--b {
    width: 620px;
    height: 620px;
    right: -160px;
    bottom: -260px;
    background: radial-gradient(circle, rgba(135, 223, 235, 0.18), transparent 64%);
    animation-delay: -8s;
}

@keyframes glow-drift {
    to { transform: translate(60px, 40px) scale(1.08); }
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

.hero__copy {
    display: grid;
    justify-items: start;
    gap: 28px;
}

.hero__title {
    font-size: var(--fs-display);
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-wrap: initial;
}

/* each line rises out of its own mask */
.hero__title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
    white-space: nowrap;
}

/* padding extends the box that background-clip:text paints into, so the
   g in "learning" keeps its gradient instead of vanishing below the box */
.hero__title .line > span {
    display: inline-block;
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
    animation: rise 1s var(--ease) both;
}

.hero__title .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.2s; }

@keyframes rise {
    from { transform: translateY(105%); }
    to { transform: none; }
}

.hero__lede {
    max-width: 30rem;
    font-size: var(--fs-lede);
    line-height: 1.55;
    color: var(--text-dim);
    text-wrap: pretty;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* staggered entrance for everything that isn't the headline */
.hero__copy > :not(.hero__title) {
    animation: fade-up 0.9s var(--ease) both;
}

.hero__copy > .eyebrow { animation-delay: 0s; }
.hero__copy > .hero__lede { animation-delay: 0.28s; }
.hero__copy > .hero__actions { animation-delay: 0.38s; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

/* the illustration */

.hero__media {
    position: relative;
    margin: 0;
    animation: media-in 1.2s var(--ease) 0.15s both;
}

@keyframes media-in {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.hero__frame {
    position: relative;
    aspect-ratio: 11 / 10;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: #2a0b47;
    box-shadow:
        0 40px 80px -30px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.14);
    transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.6s var(--ease);
    will-change: transform;
}

.hero__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(var(--shift-x, 0), var(--shift-y, 0)) scale(1.06);
    transition: transform 0.6s var(--ease);
}

/* a soft sheen that follows the tilt */
.hero__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 35%, transparent 70%, rgba(20, 2, 30, 0.3));
    pointer-events: none;
}

.float-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(22, 3, 31, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6);
    animation: chip-float 7s ease-in-out infinite;
}

.float-chip--a { left: -26px; top: 12%; }
.float-chip--b { right: -22px; bottom: 11%; animation-delay: -3.5s; }

.float-chip__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex: none;
}

.float-chip__icon svg { width: 20px; height: 20px; }
.float-chip--a .float-chip__icon { background: var(--gold); color: #4a2a0a; }
.float-chip--b .float-chip__icon { background: var(--cyan); color: #083640; }

.float-chip strong {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.float-chip small {
    display: block;
    margin-top: 2px;
    font: 600 0.625rem/1.2 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.sparkle {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    color: var(--gold);
    pointer-events: none;
    animation: twinkle 3.6s ease-in-out infinite;
}

.sparkle--1 { top: -14px; right: 16%; }
.sparkle--2 { bottom: 24%; left: -34px; width: 12px; height: 12px; color: var(--cyan); animation-delay: -1.2s; }
.sparkle--3 { bottom: -12px; right: 38%; width: 14px; height: 14px; color: var(--lilac); animation-delay: -2.4s; }

@keyframes twinkle {
    0%, 100% { transform: scale(0.5) rotate(0deg); opacity: 0.25; }
    50% { transform: scale(1.15) rotate(45deg); opacity: 1; }
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: grid;
    justify-items: center;
    gap: 10px;
    font: 700 0.5625rem var(--font-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    transform: translateX(-50%);
    animation: fade-up 1s var(--ease) 0.9s both;
}

.scroll-cue i {
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--cyan), transparent);
    transform-origin: top;
    animation: cue 2.2s var(--ease-in-out) infinite;
}

@keyframes cue {
    0% { transform: scaleY(0); opacity: 1; }
    60% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}


/* 9 — Marquee --------------------------------------------------------- */

.marquee {
    overflow: hidden;
    background: var(--gold);
    color: #2a1031;
    border-block: 1px solid rgba(0, 0, 0, 0.12);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 30px;
    width: max-content;
    height: 58px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track svg { width: 14px; height: 14px; color: #8a6420; flex: none; }

@keyframes marquee {
    to { transform: translateX(-50%); }
}


/* 10 — Studio --------------------------------------------------------- */

.studio {
    background: linear-gradient(160deg, var(--brand-plum), var(--ink-800) 70%);
    overflow: hidden;
}

.studio__media {
    position: relative;
    margin: 0;
}

.media-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ink-700);
    box-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.media-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.media-frame:hover img { transform: scale(1.04); }

.studio__badge {
    position: absolute;
    right: -18px;
    bottom: -22px;
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: var(--gold);
    color: #3a2208;
    text-align: center;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6);
}

.studio__badge svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: spin 22s linear infinite;
}

.studio__badge text {
    font: 700 9.5px var(--font-mono);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    fill: #3a2208;
}

.studio__badge b { font-size: 1.75rem; line-height: 1; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.studio__copy {
    display: grid;
    gap: 24px;
    justify-items: start;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font: 700 0.6875rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: border-color 0.25s, color 0.25s, transform 0.3s var(--ease);
}

.chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--gold);
    transform: rotate(45deg);
}

.chip:hover { border-color: rgba(255, 208, 113, 0.5); color: #fff; transform: translateY(-2px); }


/* 11 — What we make --------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    --card-bg: var(--card-cyan);
    --card-deep: var(--cyan-deep);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-lg);
    background: var(--card-bg);
    color: var(--paper-ink);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 12px 28px -18px rgba(44, 14, 60, 0.3);
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.card:hover {
    --lift: -6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 26px 44px -26px rgba(44, 14, 60, 0.4);
}

.card--gold { --card-bg: var(--card-gold); --card-deep: var(--gold-deep); }
.card--lilac { --card-bg: var(--card-lilac); --card-deep: var(--lilac-deep); }

.card__art {
    position: relative;
    height: 200px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(52% 62% at 50% 52%, rgba(255, 255, 255, 0.5), transparent 72%),
        color-mix(in srgb, var(--card-bg) 62%, #fff);
    border-bottom: 1px solid rgba(33, 16, 40, 0.08);
}

.card__art svg {
    width: 190px;
    height: 150px;
    overflow: visible;
    transition: transform 0.6s var(--spring);
}

.card:hover .card__art svg { transform: translateY(-6px) scale(1.04); }

.card__num {
    position: absolute;
    top: 18px;
    left: 20px;
    font: 700 0.6875rem var(--font-mono);
    letter-spacing: 0.14em;
    color: rgba(33, 16, 40, 0.72);
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 26px 28px;
    flex: 1;
}

.card__body p { color: rgba(33, 16, 40, 0.72); font-size: 0.975rem; }

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(33, 16, 40, 0.12);
    list-style: none;
    padding-left: 0;
}

.card__tags li {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    font: 700 0.6875rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(33, 16, 40, 0.75);
}

/* the little scenes inside each card */
.bob { animation: bob 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bob--2 { animation-delay: -1.1s; }
.bob--3 { animation-delay: -2.2s; }

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

.dash-path { stroke-dasharray: 6 7; animation: dash 1.6s linear infinite; }

@keyframes dash {
    to { stroke-dashoffset: -26; }
}


/* 11b — Our games ----------------------------------------------------- */

.games { background: #eee1f6; }

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.game {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-xl);
    background: #fff;
    color: var(--paper-ink);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -26px rgba(44, 14, 60, 0.35);
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.game:hover {
    --lift: -6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 30px 54px -30px rgba(44, 14, 60, 0.45);
}

.game__art {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3eaf8;
    border-bottom: 1px solid rgba(33, 16, 40, 0.08);
}

.game__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.game:hover .game__art img { transform: scale(1.03); }

.game__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 28px 30px;
    flex: 1;
}

.game__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    min-height: 28px;
}

.game__genre {
    font: 700 0.75rem var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper-dim);
}

.game__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff1cf;
    color: #6b4a0c;
    font: 700 0.75rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game__status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-deep);
    animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 169, 60, 0.45); }
    50% { box-shadow: 0 0 0 5px rgba(224, 169, 60, 0); }
}

.game__body p { color: rgba(33, 16, 40, 0.72); }

.game__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid rgba(33, 16, 40, 0.1);
    list-style: none;
}

.game__tags li {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3eaf8;
    font: 700 0.6875rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(33, 16, 40, 0.75);
}


/* 12 — Approach ------------------------------------------------------- */

.approach {
    background:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        var(--ink-800);
    background-size: 48px 48px, 48px 48px, auto;
}

.approach__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}

.approach__copy {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    display: grid;
    gap: 22px;
}

.principles {
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--line);
}

.principle {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    gap: 18px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}

.principle:hover { padding-inline: 16px; background: rgba(255, 255, 255, 0.03); }

.principle__num {
    padding-top: 6px;
    font: 700 0.6875rem var(--font-mono);
    letter-spacing: 0.12em;
    color: var(--cyan);
}

.principle p { margin-top: 8px; color: var(--text-dim); }

.principle__tag {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 8px;
    border: 1px solid rgba(135, 223, 235, 0.3);
    border-radius: 6px;
    font: 700 0.6875rem var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
}

.principle__mark {
    width: 40px;
    height: 40px;
    justify-self: end;
    color: var(--lilac);
    transition: transform 0.5s var(--spring), color 0.3s;
}

.principle:hover .principle__mark { transform: rotate(20deg) scale(1.12); color: var(--gold); }


/* 12b — Services ------------------------------------------------------ */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px 30px;
    border-radius: var(--r-lg);
    background: #ffffff;
    border: 1px solid rgba(33, 16, 40, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 24px -18px rgba(44, 14, 60, 0.25);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}

.service:hover {
    transform: translateY(-4px);
    border-color: rgba(33, 16, 40, 0.16);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 40px -24px rgba(44, 14, 60, 0.38);
}

.service__num {
    position: absolute;
    top: 22px;
    right: 24px;
    font: 700 0.6875rem var(--font-mono);
    letter-spacing: 0.14em;
    color: rgba(33, 16, 40, 0.45);
}

.service__icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 6px;
    border-radius: 22px;
    background: var(--tile, var(--paper-2, #efe6f4));
}

.service__icon svg {
    width: 62px;
    height: 62px;
    transition: transform 0.55s var(--spring);
}

.service:hover .service__icon svg { transform: translateY(-3px) rotate(-5deg) scale(1.06); }

.service h3 { color: var(--paper-ink); }

.service p {
    color: var(--paper-dim);
    font-size: 0.975rem;
    line-height: 1.6;
}

.services__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    margin-top: 28px;
    padding: 22px 26px;
    border-radius: var(--r-lg);
    border: 1px dashed rgba(33, 16, 40, 0.2);
}

.services__cta p {
    max-width: 52ch;
    font-size: 1.0625rem;
    color: var(--paper-ink);
}


/* 13 — Process -------------------------------------------------------- */

.process {
    background: linear-gradient(180deg, var(--ink-700), var(--brand-plum));
    overflow: hidden;
}

.process__head { align-items: center; }

.process__media { margin: 0; }

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: clamp(48px, 6vw, 80px);
    list-style: none;
    padding: 0;
}

/* the track the steps sit on, and the line that draws across it */
.timeline::before,
.timeline::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 22px;
    right: 22px;
    height: 2px;
    border-radius: 2px;
}

.timeline::before { background: var(--line); }

.timeline::after {
    background: linear-gradient(90deg, var(--cyan), var(--lilac), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.8s var(--ease-in-out) 0.2s;
}

.timeline.is-in::after { transform: scaleX(1); }

/* align-content: start stops shorter steps spreading the row's extra height
   between their own rows, which pushed their titles out of line */
.step { position: relative; display: grid; gap: 14px; justify-items: start; align-content: start; }

.step__node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink-700);
    border: 2px solid var(--line-strong);
    font: 700 0.75rem var(--font-mono);
    color: var(--text-faint);
    transition: background 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--spring), box-shadow 0.5s var(--ease);
    transition-delay: calc(var(--i, 0) * 0.42s + 0.3s);
}

.timeline.is-in .step__node {
    background: var(--ink-900);
    border-color: var(--cyan);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(135, 223, 235, 0.12), 0 0 22px rgba(135, 223, 235, 0.35);
}

.step h3 { margin-top: 6px; }
.step p { color: var(--text-dim); font-size: 0.975rem; max-width: 26ch; }


/* 14 — Contact -------------------------------------------------------- */

.contact__box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
    padding: clamp(32px, 6vw, 80px);
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, #c3eff2 0%, #dcdcf4 50%, #ecd0f4 100%);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 30px 60px -30px rgba(44, 14, 60, 0.35);
}

/* slow drifting blobs behind the form */
.contact__box::before,
.contact__box::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    animation: glow-drift 14s ease-in-out infinite alternate;
}

.contact__box::before {
    width: 380px;
    height: 380px;
    right: -120px;
    top: -140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 66%);
}

.contact__box::after {
    width: 320px;
    height: 320px;
    left: -100px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(255, 208, 113, 0.45), transparent 66%);
    animation-delay: -7s;
}

.contact__copy { display: grid; gap: 22px; justify-items: start; }

.contact__meta {
    display: grid;
    gap: 14px;
    margin-top: 10px;
    width: 100%;
}

.contact__meta div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(33, 16, 40, 0.14);
    font-size: 0.9375rem;
}

.contact__meta dt {
    font: 700 0.75rem/1.75 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper-dim);
}

.contact__meta a { font-weight: 700; border-bottom: 1px solid rgba(33, 16, 40, 0.3); }
.contact__meta a:hover { border-color: var(--paper-ink); }

.contact__email {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    padding: 4px 10px;
    border: 1px solid rgba(33, 16, 40, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    font: 700 0.6875rem var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper-ink);
    transition: background 0.2s, border-color 0.2s;
}

.copy-btn:hover { background: #fff; border-color: rgba(33, 16, 40, 0.4); }
.copy-btn.is-done { background: #1f7a52; border-color: #1f7a52; color: #fff; }

.next-steps {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--paper-ink);
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.next-steps span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background: var(--paper-ink);
    color: #fff;
    font: 700 0.6875rem var(--font-mono);
}

.form {
    display: grid;
    gap: 16px;
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 50px -28px rgba(44, 14, 60, 0.45);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: grid; gap: 7px; }

.field__label {
    font: 700 0.75rem var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper-dim);
}

.field__input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(33, 16, 40, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--paper-ink);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.25s var(--ease), background 0.2s;
}

.field__input::placeholder { color: #9a8aa3; }

.field__input:hover { border-color: rgba(33, 16, 40, 0.3); }

.field__input:focus {
    outline: none;
    background: #fff;
    border-color: #6b3d82;
    box-shadow: 0 0 0 4px rgba(107, 61, 130, 0.14);
}

.field__input:user-invalid { border-color: #c0395a; }

select.field__input {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23211028' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

textarea.field__input { min-height: 110px; resize: vertical; line-height: 1.5; }

.form .btn { justify-content: space-between; width: 100%; }

.form__status {
    min-height: 1.3em;
    font-size: 0.875rem;
    color: var(--paper-dim);
}

.form__status.is-ok { color: #1f7a52; }
.form__status.is-err { color: #b3304f; }

.form__note {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--paper-dim);
}

.form__note a {
    color: var(--paper-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn.is-busy { pointer-events: none; opacity: 0.75; }

.btn.is-busy .btn__icon { animation: spin 0.9s linear infinite; }


/* 15 — Footer --------------------------------------------------------- */

.site-footer {
    position: relative;
    padding-top: clamp(56px, 7vw, 88px);
    background: var(--ink-950);
    border-top: 1px solid var(--line-soft);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan) 25%, var(--lilac) 50%, var(--gold) 75%, transparent);
    opacity: 0.6;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
    gap: 40px;
    padding-bottom: clamp(44px, 6vw, 70px);
}

.footer-brand img { height: 38px; width: auto; }

.footer-brand p {
    max-width: 30ch;
    margin-top: 18px;
    color: var(--text-faint);
    font-size: var(--fs-sm);
    line-height: 1.65;
}

.footer-col { display: grid; align-content: start; gap: 12px; }

.footer-col h2 {
    margin-bottom: 4px;
    font: 700 0.6875rem var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.footer-col a {
    width: fit-content;
    font-size: var(--fs-sm);
    color: var(--text-dim);
    transition: color 0.2s, transform 0.25s var(--ease);
}

.footer-col a:hover { color: var(--cyan); transform: translateX(4px); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 24px;
    border-top: 1px solid var(--line-soft);
    color: var(--text-faint);
    font-size: 0.8125rem;
}

.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--cyan); }


/* 16 — Document pages (privacy, terms) -------------------------------- */

.doc {
    padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px));
    padding-bottom: var(--section);
}

.doc .shell { max-width: 820px; }

.doc__head {
    padding-bottom: 32px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.doc__head h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); }

.doc__meta {
    margin-top: 16px;
    font: 600 0.75rem var(--font-mono);
    letter-spacing: 0.06em;
    color: var(--text-faint);
}

.doc__body { color: var(--text-dim); }

.doc__body h2 {
    margin: 52px 0 16px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
    letter-spacing: -0.03em;
    color: var(--text);
}

.doc__body h3 {
    margin: 30px 0 10px;
    font-size: 1.1875rem;
    letter-spacing: -0.02em;
    color: var(--cyan);
}

.doc__body p,
.doc__body ul,
.doc__body ol { margin-bottom: 16px; }

.doc__body ul,
.doc__body ol { padding-left: 22px; }

.doc__body li { margin-bottom: 8px; }
.doc__body li::marker { color: var(--lilac-deep); }
.doc__body strong { color: var(--text); }
.doc__body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.callout {
    margin: 28px 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.04);
}

.callout p { margin: 0; color: var(--text); }

.toc {
    margin-bottom: 40px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.03);
}

.toc h3 {
    margin: 0 0 14px;
    font: 700 0.6875rem var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 8px; font-size: var(--fs-sm); break-inside: avoid; }
.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--cyan); }


/* 17 — Notice pages (404, thank you) ---------------------------------- */

.notice {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 22px;
    padding: 64px var(--gutter);
    text-align: center;
    overflow: hidden;
}

.notice .hero__bg { z-index: -1; }

.notice__glyph {
    width: 88px;
    height: 88px;
    animation: media-in 0.9s var(--ease) both;
}

.notice__code {
    font-size: clamp(5rem, 16vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.notice > h1:not(.notice__code) { font-size: var(--fs-h2); max-width: 15ch; }
.notice > h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }

.notice .lede { margin-inline: auto; }

.notice .hero__actions { justify-content: center; }

.notice > * { animation: fade-up 0.9s var(--ease) both; }
.notice > :nth-child(2) { animation-delay: 0.08s; }
.notice > :nth-child(3) { animation-delay: 0.16s; }
.notice > :nth-child(4) { animation-delay: 0.24s; }
.notice > :nth-child(5) { animation-delay: 0.32s; }
.notice > :nth-child(6) { animation-delay: 0.4s; }


/* 18 — Reveal system -------------------------------------------------- */

/* Hidden only once JS confirms it can reveal them; a <noscript> rule and
   the reduced-motion block both force them visible. */
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
}

.js .reveal--left { transform: translateX(-40px); }
.js .reveal--right { transform: translateX(40px); }
.js .reveal--scale { transform: scale(0.94); }

.js .reveal.is-in { opacity: 1; transform: none; }


/* 19 — Responsive ----------------------------------------------------- */

@media (max-width: 1080px) {
    .scroll-cue { display: none; }

    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* the logo sits right above; keep the label to one line in narrower columns */
    .eyebrow__long { display: none; }

    .cards { grid-template-columns: 1fr 1fr; }
    .cards .card:last-child { grid-column: 1 / -1; flex-direction: row; }
    .cards .card:last-child .card__art { height: auto; width: 42%; border-bottom: 0; border-right: 1px solid rgba(33, 16, 40, 0.08); }

    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}


/* 901–1080px: tablets in landscape and small laptops keep the two-column
   hero; the headline steps down so "Small moments" still fits its column. */
@media (min-width: 901px) and (max-width: 1080px) {
    :root { --fs-display: 3.5rem; }
    .hero__inner { gap: 40px; }
}

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__copy { max-width: 680px; }
    .hero__media { max-width: 640px; width: 100%; justify-self: center; }
}

@media (max-width: 880px) {
    :root { --header-h: 70px; }

    .menu-toggle { display: block; }

    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 1;
        width: min(84vw, 360px);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: calc(var(--header-h) + 20px) 22px 28px;
        background: var(--ink-800);
        border-left: 1px solid var(--line);
        transform: translateX(100%);
        visibility: hidden;
        /* hide only after the slide-out finishes... */
        transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
    }

    /* ...but become visible instantly on open, so focus can move in at once */
    .nav.is-open { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }

    .nav__link {
        padding: 16px 14px;
        border-radius: 12px;
        font-size: 1.125rem;
        color: var(--text);
    }

    .nav__link.is-active::after { left: auto; right: 16px; top: 50%; bottom: auto; margin: -2px 0 0; }

    /* links cascade in when the drawer opens */
    .nav > * { opacity: 0; transform: translateX(20px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
    .nav.is-open > * { opacity: 1; transform: none; }
    .nav.is-open > :nth-child(1) { transition-delay: 0.08s; }
    .nav.is-open > :nth-child(2) { transition-delay: 0.13s; }
    .nav.is-open > :nth-child(3) { transition-delay: 0.18s; }
    .nav.is-open > :nth-child(4) { transition-delay: 0.23s; }
    .nav.is-open > :nth-child(5) { transition-delay: 0.28s; }
    .nav.is-open > :nth-child(6) { transition-delay: 0.33s; }
    .nav.is-open > :nth-child(7) { transition-delay: 0.38s; }

    .nav__cta { margin: 16px 0 0; justify-content: space-between; }
    .nav__cta.btn { padding: 16px 18px; font-size: 1rem; }

    .split,
    .approach__grid,
    .contact__box { grid-template-columns: 1fr; }

    .section-head--split { grid-template-columns: 1fr; }

    .studio__media { order: -1; }
    .studio__badge { width: 96px; height: 96px; right: 12px; bottom: -28px; }

    .approach__copy { position: static; }

    .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .timeline::before, .timeline::after { display: none; }
}

@media (max-width: 380px) {
    .hero__title .line { white-space: normal; }
}

@media (max-width: 640px) {

    .hero__actions { width: 100%; }
    .hero__actions .btn { flex: 1 1 auto; justify-content: space-between; }

    .float-chip { padding: 9px 12px 9px 9px; }
    .float-chip__icon { width: 30px; height: 30px; }
    .float-chip strong { font-size: 0.8125rem; }
    .float-chip--a { left: 10px; top: 10px; }
    .float-chip--b { right: 10px; bottom: 10px; }
    .sparkle--2 { left: 6px; }

    .cards { grid-template-columns: 1fr; }
    .game-grid { grid-template-columns: 1fr; }
    .cards .card:last-child { grid-column: auto; flex-direction: column; }

    .service-grid { grid-template-columns: 1fr; }
    .service { padding: 24px 22px 26px; }
    .services__cta { padding: 20px; }
    .services__cta .btn { width: 100%; justify-content: space-between; }
    .cards .card:last-child .card__art { width: auto; height: 200px; border-right: 0; border-bottom: 1px solid rgba(33, 16, 40, 0.08); }

    .principle { grid-template-columns: 36px minmax(0, 1fr); }
    .principle__mark { display: none; }

    /* single column: the progress line runs down through the nodes instead */
    .timeline { grid-template-columns: 1fr; row-gap: 36px; }

    .timeline::before,
    .timeline::after {
        display: block;
        top: 22px;
        bottom: 22px;
        left: 21px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .timeline::after {
        background: linear-gradient(180deg, var(--cyan), var(--lilac), var(--gold));
        transform: scaleY(0);
        transform-origin: top;
    }

    .timeline.is-in::after { transform: scaleY(1); }

    .step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; }
    .step__node { grid-row: span 2; }
    .step h3 { margin-top: 8px; }

    .form__row { grid-template-columns: 1fr; }
    .contact__meta div { grid-template-columns: 1fr; gap: 2px; }

    .footer-top { grid-template-columns: 1fr 1fr; }
    .toc ol { columns: 1; }

    /* single column on phones: give each entry a full-size tap target */
    .toc li { margin-bottom: 0; }
    .toc a { display: block; padding-block: 12px; }
}



@media (max-width: 520px) {
    .contact__box {
        padding: 28px 18px 20px;
        border-radius: var(--r-lg);
    }

    .form { padding: 20px 16px; }
}

/* Touch targets: 44px minimum wherever the layout is touch-sized.
   Real box sizes, not pseudo-element hit areas, so what you see is what you tap. */
@media (max-width: 880px) {
    .brand { padding-block: 9px; }
    .brand img { height: 26px; }

    .text-link { padding-top: 14px; }

    .contact__meta a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .copy-btn {
        min-height: 44px;
        min-width: 64px;
        padding-inline: 14px;
    }

    .footer-col { gap: 0; }
    .footer-col h2 { margin-bottom: 6px; }

    .footer-col a,
    .footer-bottom a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        min-width: 44px;
    }

    .footer-bottom nav { column-gap: 22px; row-gap: 0; }
}


/* 20 — Reduced motion ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }

    .js .reveal { opacity: 1; transform: none; }
    .timeline::after { transform: none; }
    .hero__frame, .card { transform: none !important; }
    .site-header.is-hidden { transform: none; }
}
