/* =========================================================================
   Sarquist Media
   Monochrome, paper-light, depth through layering rather than colour.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
    --paper:        #f6f5f2;
    --paper-raised: #fbfaf8;
    --paper-pure:   #ffffff;
    --paper-deep:   #edece8;

    --ink:        #0d0d0e;
    --ink-soft:   #26262a;
    --ink-muted:  #6c6c72;
    --ink-faint:  #9a9a9f;

    --line:       rgba(13, 13, 14, 0.13);
    --line-soft:  rgba(13, 13, 14, 0.07);
    --line-hair:  rgba(13, 13, 14, 0.04);

    --shadow-sm: 0 1px 2px rgba(13, 13, 14, 0.05);
    --shadow-md: 0 12px 34px -18px rgba(13, 13, 14, 0.30);
    --shadow-lg: 0 40px 90px -50px rgba(13, 13, 14, 0.45);

    --font-display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
    --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --shell:   1240px;
    --shell-x: clamp(20px, 5vw, 56px);

    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

    --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--ink);
    color: var(--paper);
    padding: 12px 20px;
    border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--shell-x);
}

.section {
    position: relative;
    padding-block: clamp(80px, 11vw, 152px);
}

.section__head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: end;
    margin-bottom: clamp(40px, 6vw, 76px);
}
.section__head--center {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
    text-align: center;
}
.section__title {
    font-size: clamp(2rem, 4.1vw, 3.4rem);
    max-width: 16ch;
}
.section__head--center .section__title { max-width: none; margin-inline: auto; }
.section__lede {
    color: var(--ink-muted);
    font-size: 1.0625rem;
    max-width: 46ch;
}
.section__head--center .section__lede { margin: 20px auto 0; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}
.section__head--center .eyebrow { justify-content: center; }

.icon { flex: none; }

/* ---------- WebGL stage ---------- */
.stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
#stage-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.stage__wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(246, 245, 242, 0) 40%, rgba(246, 245, 242, 0.86) 100%),
        linear-gradient(180deg, rgba(246, 245, 242, 0.2) 0%, rgba(246, 245, 242, 0) 22%);
}
.stage__grain {
    position: absolute;
    inset: -50%;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 8s steps(6) infinite;
}
@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    16% { transform: translate(-2%, -3%); }
    33% { transform: translate(3%, -1%); }
    50% { transform: translate(-1%, 2%); }
    66% { transform: translate(2%, 3%); }
    83% { transform: translate(-3%, 1%); }
}

main, .masthead, .footer, .cta-band { position: relative; z-index: 1; }

/* ---------- Scroll rail ---------- */
.scroll-rail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 60;
    background: transparent;
}
.scroll-rail__fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--ink);
    transform-origin: left;
}

/* ---------- Buttons ---------- */
.btn {
    --btn-pad: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: var(--btn-pad);
    border-radius: 100px;
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
    white-space: nowrap;
}
.btn--lg { --btn-pad: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { transform: translateY(-2px); background: var(--ink-soft); }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(13, 13, 14, 0.03); transform: translateY(-2px); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
    transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
    width: fit-content;
}
.link-arrow:hover { border-color: var(--ink); gap: 13px; }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(2px); }

/* ---------- Masthead ---------- */
.masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.masthead.is-stuck {
    background: rgba(246, 245, 242, 0.82);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom-color: var(--line-soft);
}
.masthead.is-hidden { transform: translateY(-100%); }
.masthead { transition: transform 0.45s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease); }

.masthead__inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    width: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--paper-raised);
    transition: transform 0.5s var(--ease), border-color 0.3s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg); border-color: var(--ink); }
.brand__img { width: 30px; height: 30px; object-fit: contain; display: block; border-radius: 7px; }
.brand__text {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    letter-spacing: -0.04em;
    line-height: 1;
    display: flex;
    gap: 5px;
}
.brand__text strong { font-weight: 600; }
.brand__text span { font-weight: 400; color: var(--ink-muted); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 450;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--ink-soft);
    transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav__link:hover, .nav__link.is-current { color: var(--ink); background: rgba(13, 13, 14, 0.045); }
.nav__chev {
    width: 5px;
    height: 5px;
    border-right: 1.4px solid currentColor;
    border-bottom: 1.4px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.3s var(--ease);
    opacity: 0.6;
}
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(225deg) translateY(-1px); }

.masthead__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.masthead__actions .btn--ghost { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: -0.01em; }

/* ---------- Mega menu ---------- */
.mega {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(251, 250, 248, 0.97);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.mega.is-open { opacity: 1; transform: translateY(0); }
.mega__inner {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    padding-block: 44px 48px;
}
.mega__title { font-size: 1.75rem; margin-bottom: 12px; }
.mega__copy { color: var(--ink-muted); font-size: 0.9375rem; margin-bottom: 20px; }
.mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.mega__cat {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}
.mega__col li a {
    display: flex;
    gap: 11px;
    padding: 9px 10px;
    margin-inline: -10px;
    border-radius: var(--r-md);
    transition: background-color 0.25s var(--ease);
}
.mega__col li a:hover { background: rgba(13, 13, 14, 0.05); }
.mega__icon { color: var(--ink-muted); padding-top: 2px; }
.mega__col strong { display: block; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 500; }
.mega__col em {
    display: block;
    font-style: normal;
    font-size: 0.8125rem;
    color: var(--ink-faint);
    line-height: 1.4;
}

/* ---------- Mobile drawer ---------- */
.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1.4px;
    background: var(--ink);
    transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger span:first-child { top: 17px; }
.burger span:last-child { bottom: 17px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

.drawer {
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 45;
    background: var(--paper);
    overflow-y: auto;
    padding: 32px var(--shell-x) 60px;
}
.drawer__list a {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: -0.04em;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-hair);
}
.drawer__services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    margin-bottom: 28px;
}
.drawer__services a { font-size: 0.9375rem; color: var(--ink-muted); }
.drawer .eyebrow { margin-top: 32px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 118px));
    padding-bottom: clamp(64px, 9vw, 120px);
    min-height: 92vh;
    display: flex;
    align-items: center;
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    width: 100%;
}
.hero__title {
    font-size: clamp(2.75rem, 7.4vw, 6.25rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title em {
    font-style: normal;
    position: relative;
    color: var(--ink-muted);
}
.hero__title em::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1em;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 1.1s var(--ease) 0.9s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero__lede {
    font-size: clamp(1rem, 1.35vw, 1.1875rem);
    color: var(--ink-muted);
    max-width: 54ch;
    margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px; }

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 26px;
    margin: 0;
    padding-top: 30px;
    border-top: 1px solid var(--line-soft);
    max-width: 640px;
}
.hero__stats dt {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2.125rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}
.hero__stats dd {
    margin: 7px 0 0;
    font-size: 0.8125rem;
    color: var(--ink-muted);
    line-height: 1.35;
}

.panel {
    background: rgba(251, 250, 248, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.panel__row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: -0.01em;
}
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink);
    position: relative;
    flex: none;
}
.dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--ink);
    opacity: 0;
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0% { transform: scale(0.6); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}
.panel__divider { height: 1px; background: var(--line-soft); margin: 18px 0; }
.panel__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 5px;
}
.panel__value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.03em; }
.panel__list { display: grid; gap: 9px; }
.panel__list li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.8125rem; color: var(--ink-muted); }
.panel__list .icon { margin-top: 2px; color: var(--ink); }

.hero__scrollcue {
    position: absolute;
    left: var(--shell-x);
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.hero__scrollline {
    display: block;
    width: 54px;
    height: 1px;
    background: var(--line);
    position: relative;
    overflow: hidden;
}
.hero__scrollline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: translateX(-100%);
    animation: sweep 2.4s var(--ease-io) infinite;
}
@keyframes sweep {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

/* ---------- Trust marquee ---------- */
.trust {
    padding-block: 30px 42px;
    border-block: 1px solid var(--line-hair);
    background: rgba(251, 250, 248, 0.55);
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 1;
}
.trust__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 22px;
}
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.035em;
    color: var(--ink-soft);
    transition: color 0.3s var(--ease);
}
.marquee li a:hover .marquee__name { color: var(--ink); }
.marquee__meta {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 2px;
}

/* ---------- Service grid ---------- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.svc { background: var(--paper-raised); }
.svc__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 26px 24px;
    position: relative;
    isolation: isolate;
    transition: color 0.4s var(--ease);
}
.svc__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s var(--ease);
    z-index: -1;
}
.svc__link:hover { color: var(--paper); }
.svc__link:hover::before { transform: scaleY(1); }
.svc__index {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-faint);
    letter-spacing: 0.1em;
}
.svc__link:hover .svc__index,
.svc__link:hover .svc__copy,
.svc__link:hover .svc__price { color: rgba(246, 245, 242, 0.66); }
.svc__icon { margin: 22px 0 18px; color: currentColor; }
.svc__title { font-size: 1.1875rem; margin-bottom: 9px; letter-spacing: -0.03em; }
.svc__copy { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.55; margin-bottom: 26px; transition: color 0.4s var(--ease); }
.svc__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--line-hair);
}
.svc__link:hover .svc__foot { border-color: rgba(246, 245, 242, 0.18); }
.svc__price { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted); transition: color 0.4s var(--ease); }
.svc__arrow { transition: transform 0.4s var(--ease); }
.svc__link:hover .svc__arrow { transform: translateX(4px); }

/* ---------- Work cards ---------- */
.work-list { display: grid; gap: clamp(28px, 4vw, 52px); }
.wcard__link {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(18px, 2.4vw, 28px);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-xl);
    background: rgba(251, 250, 248, 0.6);
    backdrop-filter: blur(10px);
    transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.wcard:nth-child(even) .wcard__link { direction: rtl; }
.wcard:nth-child(even) .wcard__body { direction: ltr; }
.wcard__link:hover {
    border-color: var(--line);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.wcard__media {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--paper-deep);
    aspect-ratio: 4 / 3;
}
.wcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
    filter: grayscale(1) contrast(1.02);
}
.wcard__link:hover .wcard__media img { transform: scale(1.045); filter: grayscale(0.55) contrast(1.02); }
.wcard__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(251, 250, 248, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.wcard__body { direction: ltr; }
.wcard__client {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 12px;
}
.wcard__title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); margin-bottom: 14px; }
.wcard__copy { color: var(--ink-muted); margin-bottom: 26px; max-width: 46ch; }
.wcard__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-block: 22px;
    margin-bottom: 22px;
    border-block: 1px solid var(--line-hair);
}
.wcard__metrics strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}
.wcard__metrics span { font-size: 0.75rem; color: var(--ink-muted); display: block; margin-top: 5px; }

/* ---------- The lab ---------- */
.lab__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.lab__cell {
    margin: 0;
    background: var(--paper-raised);
    display: flex;
    flex-direction: column;
}
.lab__canvas {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    cursor: crosshair;
    background: var(--paper-pure);
}
.lab__cell figcaption { padding: 18px 20px 22px; border-top: 1px solid var(--line-hair); }
.lab__cell strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 4px;
}
.lab__cell figcaption span { font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.5; }
.lab__note {
    margin-top: 28px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-faint);
    max-width: 62ch;
    margin-inline: auto;
    line-height: 1.7;
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border-block: 1px solid var(--line-soft);
}
.step { background: var(--paper); padding: 34px 26px 38px; position: relative; }
.step__num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    color: var(--ink-faint);
    display: block;
    margin-bottom: 26px;
}
.step__title { font-size: 1.25rem; margin-bottom: 10px; }
.step__copy { font-size: 0.9375rem; color: var(--ink-muted); margin-bottom: 22px; }
.step__meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding-top: 14px;
    border-top: 1px solid var(--line-hair);
    display: block;
}

/* ---------- Proof band ---------- */
.proof {
    padding-block: clamp(52px, 7vw, 92px);
    background: var(--ink);
    color: var(--paper);
    position: relative;
    z-index: 1;
}
.proof__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(28px, 4vw, 48px);
}
.proof__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.6vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
}
.proof__label {
    display: block;
    margin-top: 12px;
    font-size: 0.875rem;
    color: rgba(246, 245, 242, 0.6);
    max-width: 22ch;
}

/* ---------- Quotes ---------- */
.quotes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    gap: 20px;
}
.quote {
    margin: 0;
    padding: 30px 28px;
    background: rgba(251, 250, 248, 0.66);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.quote:hover { transform: translateY(-4px); border-color: var(--line); }
.quote__stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--ink); }
.quote blockquote {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    line-height: 1.5;
    letter-spacing: -0.02em;
}
.quote figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-hair); }
.quote figcaption strong { display: block; font-size: 0.9375rem; font-weight: 500; }
.quote figcaption span { font-size: 0.8125rem; color: var(--ink-muted); }

/* ---------- Journal cards ---------- */
.journal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    gap: 28px;
}
.pcard__media {
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--paper-deep);
    margin-bottom: 18px;
}
.pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.04); filter: grayscale(0.3); }
.pcard__meta {
    display: flex;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 10px;
}
.pcard__title { font-size: 1.25rem; margin-bottom: 9px; }
.pcard:hover .pcard__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pcard__copy { font-size: 0.875rem; color: var(--ink-muted); }

/* ---------- Accordion ---------- */
.faq__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: start;
}
.faq__layout .btn { margin-top: 24px; }
.accordion { border-top: 1px solid var(--line-soft); }
.accordion__item { border-bottom: 1px solid var(--line-soft); }
.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    transition: color 0.25s var(--ease);
}
.accordion__trigger:hover { color: var(--ink-muted); }
.accordion__sign {
    position: relative;
    width: 14px;
    height: 14px;
    flex: none;
}
.accordion__sign::before,
.accordion__sign::after {
    content: '';
    position: absolute;
    background: var(--ink);
    transition: transform 0.4s var(--ease), opacity 0.3s;
}
.accordion__sign::before { top: 6.3px; left: 0; right: 0; height: 1.4px; }
.accordion__sign::after { left: 6.3px; top: 0; bottom: 0; width: 1.4px; }
.accordion__trigger[aria-expanded="true"] .accordion__sign::after { transform: rotate(90deg); opacity: 0; }
.accordion__panel { padding-bottom: 26px; color: var(--ink-muted); max-width: 62ch; }

/* ---------- CTA band ---------- */
.cta-band {
    padding-block: clamp(64px, 8vw, 110px);
    border-top: 1px solid var(--line-soft);
    background: rgba(251, 250, 248, 0.62);
    backdrop-filter: blur(10px);
}
.cta-band__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(30px, 5vw, 72px);
    align-items: center;
}
.cta-band__title { font-size: clamp(1.875rem, 3.8vw, 3rem); max-width: 18ch; margin-bottom: 18px; }
.cta-band__copy { color: var(--ink-muted); max-width: 48ch; margin-bottom: 28px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__points { display: grid; gap: 14px; }
.cta-band__points li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; }
.cta-band__points .icon { margin-top: 3px; flex: none; }

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: rgba(246, 245, 242, 0.72);
    padding-block: clamp(56px, 7vw, 88px) 32px;
}
.footer a { transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--paper); }
.footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: clamp(36px, 5vw, 80px);
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(246, 245, 242, 0.12);
}
.brand--footer { color: var(--paper); margin-bottom: 22px; }
.brand--footer .brand__mark { background: rgba(246, 245, 242, 0.06); border-color: rgba(246, 245, 242, 0.16); }
.brand--footer .brand__text span { color: rgba(246, 245, 242, 0.55); }
.footer__pitch { font-size: 0.9375rem; max-width: 38ch; margin-bottom: 26px; }
.footer__contact { display: grid; gap: 7px; font-size: 0.875rem; margin-bottom: 24px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__social a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(246, 245, 242, 0.16);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
}
.footer__social a:hover { border-color: rgba(246, 245, 242, 0.5); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__col h3 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(246, 245, 242, 0.45);
    margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col a { font-size: 0.875rem; }
.footer__keywords a { font-size: 0.8125rem; color: rgba(246, 245, 242, 0.55); }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 26px;
    font-size: 0.8125rem;
    color: rgba(246, 245, 242, 0.45);
}
.footer__bottom ul { display: flex; gap: 22px; }

/* ---------- Reveal animation ---------- */
/* Content is visible by default. site.js adds .js-anim to the root element
   only once it is able to reveal elements again, so a script failure can
   never leave the page blank for a visitor or a crawler. */
.js-anim .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
    transition-delay: calc(var(--i, 0) * 45ms);
}
.js-anim .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.hide-sm { display: inline-flex; }

@media (max-width: 1080px) {
    .nav { display: none; }
    .burger { display: block; }
    /* .nav carried the auto margin that pushed these right. */
    .masthead__actions { margin-left: auto; }
    .hide-sm { display: none; }
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__panel { max-width: 380px; }
    .footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .section__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .wcard__link { grid-template-columns: minmax(0, 1fr); }
    .wcard:nth-child(even) .wcard__link { direction: ltr; }
    .faq__layout { grid-template-columns: minmax(0, 1fr); }
    .cta-band__grid { grid-template-columns: minmax(0, 1fr); }
    .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .footer__cols { grid-template-columns: minmax(0, 1fr); }
    .drawer__services { grid-template-columns: minmax(0, 1fr); }
    .hero { min-height: auto; }
}

/* Below this width the brand wordmark, the call to action and the menu button
   no longer fit side by side. The mark alone still identifies the site, and
   the call to action is the one element worth protecting on a phone. */
@media (max-width: 480px) {
    .brand__text { display: none; }
    .masthead__inner { gap: 12px; }
    .masthead__actions { gap: 8px; }
    .masthead__actions .btn--solid { padding: 11px 16px; font-size: 0.875rem; }
    .burger { width: 40px; height: 40px; }
    .burger span { left: 11px; right: 11px; }
    .burger span:first-child { top: 16px; }
    .burger span:last-child { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .stage { display: none; }
}

@media print {
    .stage, .masthead, .drawer, .cta-band, .scroll-rail { display: none !important; }
    body { background: #fff; }
}