/* ============================================================================
   Olson Kundig — design system

   Inter throughout; ink #181213, off-white #F7F7F2, light #EEECEC, gold #CC953D,
   grey #75716E, dark #3B3735. Square corners, no shadows, 12px wide-tracked
   small caps for navigation and labels, and a lot of white space.

   Mobius CSS is not loaded (see README): the handful of reset rules it supplied
   live at the top of this file.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
    --ink: #181213;
    --paper: #F7F7F2;
    --light: #EEECEC;
    --gold: #CC953D;
    --grey: #75716E;
    --dark: #3B3735;

    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;

    --header-h: 78px;
    --gutter: clamp(18px, 3.2vw, 56px);
    --label: 12px;
    --track: .16em;

    --ease: cubic-bezier(.22, .61, .36, 1);

    --statement: clamp(28px, 3.2vw, 46px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    background: var(--ink);
    scroll-behavior: smooth;
    /* Gentle snapping: the six statement panels and the sections below them
       line up with the viewport without ever trapping a scroll. */
    scroll-snap-type: y proximity;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* `clip` rather than `hidden`: it prevents a stray horizontal scrollbar
       without turning <body> into a scroll container, which would take the
       scroll away from <html> and with it the snapping. */
    overflow-x: clip;
}

/* Only the mobile menu locks the page. The megamenu is hover-driven, so locking
   scroll under it would leave a touch or keyboard visitor with no way out but
   Escape — it closes on the first scroll instead. */
html.ok-menu-open { overflow: hidden; }

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

img,
video { display: block; max-width: 100%; border: 0; }

h1, h2, h3, p, figure, blockquote { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 3px;
}

/* ------------------------------------------------------- shared typography -- */
.ok-label {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--grey);
}

.ok-h1 {
    font-size: clamp(34px, 6.2vw, 88px);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -.02em;
}

/* Carries the page's one <h1> where the design has no visible one. */
.ok-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* A clearly marked gap in the client's content, never dressed up as copy. */
.ok-todo {
    color: var(--grey);
    font-style: normal;
}

.ok-back {
    display: inline-block;
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: .42em;
    text-decoration-thickness: 1px;
}

.ok-back:hover { color: var(--gold); }

/* Inline link inside a statement: underlined, and part of the sentence. */
.ok-inline-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .16em;
    text-decoration-thickness: 1px;
    transition: color .3s var(--ease);
}

.ok-inline-link:hover { color: var(--gold); }

/* ================================================================ HEADER === */
.ok-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 120;
    height: var(--header-h);
    display: flex;
    align-items: center;
    color: var(--paper);
    background: transparent;
    transition: background-color .45s var(--ease), color .45s var(--ease);
}

.ok-header.is-solid {
    background: var(--ink);
    color: var(--paper);
}

/* A page whose top is paper-coloured starts with dark type, so a transparent
   header cannot vanish into it. */
html[data-header-theme="light"] .ok-header:not(.is-solid) { color: var(--ink); }

.ok-header__inner {
    width: 100%;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 54px);
}

.ok-header__brand {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .34em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ok-header__nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 28px);
    margin-left: auto;
}

.ok-nav__link {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: .55em;
    text-decoration-thickness: 1px;
    transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
    white-space: nowrap;
}

.ok-nav__link:hover,
.ok-nav__link[aria-expanded="true"] { text-decoration-color: currentColor; }

.ok-header__tools {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 20px);
    margin-left: clamp(12px, 2vw, 32px);
}

.ok-motion {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: .5em;
    transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
    white-space: nowrap;
}

.ok-motion:hover { text-decoration-color: currentColor; }

.ok-motion.is-off { color: var(--gold); }

.ok-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: currentColor;
    transition: color .3s var(--ease);
}

.ok-icon:hover { color: var(--gold); }

.ok-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.ok-burger span {
    display: block;
    width: 22px;
    height: 1px;
    margin-left: auto;
    background: currentColor;
    transition: transform .35s var(--ease), opacity .25s var(--ease);
}

.ok-burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.ok-burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================= MEGA MENU === */
.ok-mega {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: var(--ink);
    color: var(--paper);
    padding: calc(var(--header-h) + clamp(24px, 5vw, 72px)) var(--gutter) clamp(40px, 6vw, 80px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s var(--ease);
    overflow-y: auto;
}

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

.ok-mega__panel { display: none; }
.ok-mega__panel.is-on { display: block; }

.ok-mega__title {
    display: inline-block;
    color: var(--gold);
    margin-bottom: clamp(20px, 3vw, 40px);
    transition: color .3s var(--ease);
}

.ok-mega__title:hover { color: var(--paper); }

.ok-mega__list {
    columns: 3;
    column-gap: clamp(24px, 4vw, 80px);
    max-width: 1200px;
}

.ok-mega__link {
    display: block;
    break-inside: avoid;
    padding: .34em 0;
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 300;
    line-height: 1.35;
    color: var(--paper);
    transition: color .3s var(--ease);
}

.ok-mega__link:hover { color: var(--gold); }

/* ============================================================ MOBILE MENU == */
.ok-mobile {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: var(--ink);
    color: var(--paper);
    padding: calc(var(--header-h) + 16px) var(--gutter) 48px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s var(--ease);
}

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

.ok-mobile__close {
    position: absolute;
    top: 18px;
    right: var(--gutter);
    font-size: 26px;
    line-height: 1;
}

.ok-mobile__top {
    display: block;
    padding: .3em 0;
    font-size: clamp(26px, 8vw, 34px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.ok-mobile__subs {
    padding: 0 0 .8em .2em;
}

.ok-mobile__sub {
    display: block;
    padding: .3em 0;
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--grey);
}

.ok-mobile__top:hover,
.ok-mobile__sub:hover { color: var(--gold); }

.ok-mobile__foot {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(247, 247, 242, .16);
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: var(--label);
    letter-spacing: var(--track);
    text-transform: uppercase;
}

.ok-mobile__social { display: flex; gap: 20px; }
.ok-mobile__social-link:hover { color: var(--gold); }

/* ====================================================== STATEMENT PANELS === */
.ok-hero { background: var(--ink); }

.ok-panel {
    position: relative;
    height: 100vh;          /* fallback for browsers without svh */
    height: 100svh;
    display: flex;
    /* Statement low in the frame, plenty of sky above it. */
    align-items: flex-end;
    overflow: hidden;
    background: var(--ink);
    scroll-snap-align: start;
}

.ok-panel__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.4s var(--ease);
}

.ok-panel.is-in .ok-panel__video { opacity: 1; }

.ok-panel__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(24, 18, 19, .72) 0%,
        rgba(24, 18, 19, .42) 46%,
        rgba(24, 18, 19, .16) 100%);
}

.ok-panel__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: calc(var(--header-h) + 24px) var(--gutter) clamp(56px, 12vh, 140px);
}

.ok-panel__text {
    max-width: 60ch;
    color: #fff;
    font-size: var(--statement);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-wrap: pretty;
}

/* ============================================================= SLIDESHOW == */
.ok-slides {
    position: relative;
    height: 100vh;          /* fallback */
    height: 100svh;
    padding: 6rem 3rem;
    background: var(--ink);
    overflow: hidden;
    scroll-snap-align: start;
}

.ok-slides__frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.ok-slides__track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 900ms var(--ease);
}

.ok-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    opacity: .3;
    transition: opacity 800ms var(--ease);
}

.ok-slide.is-on { opacity: 1; }

.ok-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

/* Scrim under the caption so the small type keeps its contrast over any
   photograph. It sits under the caption and lets pointer events through, so
   swipe and drag still work across the whole frame. */
.ok-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(24, 18, 19, 0), rgba(24, 18, 19, .74));
    pointer-events: none;
}

.ok-slide__caption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: clamp(16px, 2.4vw, 34px);
    /* Leave the bottom-right corner to the arrows and the counter. */
    max-width: min(46ch, calc(100% - 260px));
    color: var(--paper);
    z-index: 2;
}

.ok-slide__title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.005em;
}

.ok-slide__loc {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(238, 236, 236, .8);
}

.ok-slide__link {
    display: inline-block;
    margin-top: 14px;
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--paper);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: .5em;
    transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
}

.ok-slide__link:hover { text-decoration-color: currentColor; }

.ok-slides__foot {
    position: absolute;
    right: clamp(16px, 2.4vw, 34px);
    bottom: clamp(16px, 2.4vw, 34px);
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    z-index: 3;
}

.ok-slides__arrows { display: flex; gap: 8px; }

.ok-arrow {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(247, 247, 242, .55);
    color: var(--paper);
    font-size: 15px;
    line-height: 1;
    transition: background-color .3s var(--ease), color .3s var(--ease),
        border-color .3s var(--ease);
}

.ok-arrow:hover {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.ok-slides__count {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    color: var(--paper);
    white-space: nowrap;
}

/* ============================================================ NEWS STRIP === */
.ok-news {
    position: relative;
    height: 100vh;          /* fallback */
    height: 100svh;
    background: var(--ink);
    overflow: hidden;
    scroll-snap-align: start;
}

.ok-news__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ok-news__band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 48px);
    padding: clamp(18px, 2.6vw, 36px) var(--gutter);
}

.ok-news__title {
    font-size: clamp(17px, 2vw, 30px);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -.005em;
}

.ok-news__link {
    flex: none;
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: .5em;
    transition: color .3s var(--ease);
}

.ok-news__link:hover { color: var(--gold); }

/* ================================================================ FOOTER === */
.ok-footer {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(60px, 9vw, 140px) var(--gutter) clamp(44px, 6vw, 84px);
}

.ok-footer__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(30px, 5vw, 80px);
    max-width: 1600px;
    margin-inline: auto;
}

.ok-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.ok-footer__link,
.ok-footer__meta {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    line-height: 1.4;
}

.ok-footer__link {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: .5em;
    text-decoration-thickness: 1px;
    transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
}

.ok-footer__link:hover { text-decoration-color: currentColor; }

.ok-footer__motion.is-off { color: var(--gold); }

.ok-footer__meta { color: rgba(247, 247, 242, .72); }

/* ========================================================= PROJECT INDEX === */
.ok-pagehead {
    background: var(--paper);
    padding: calc(var(--header-h) + clamp(56px, 10vw, 150px)) var(--gutter) clamp(24px, 4vw, 48px);
}

.ok-index {
    background: var(--paper);
    padding: 0 var(--gutter) clamp(64px, 10vw, 160px);
}

/* Filter tabs: a static row, the active one underlined in ink. */
.ok-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 1.4vw, 22px) clamp(14px, 2vw, 30px);
    padding-bottom: clamp(24px, 3vw, 44px);
    border-bottom: 1px solid rgba(24, 18, 19, .14);
    margin-bottom: clamp(24px, 3.4vw, 48px);
}

.ok-tab {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--grey);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: .5em;
    text-decoration-thickness: 1px;
    transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
    white-space: nowrap;
}

.ok-tab:hover { color: var(--ink); text-decoration-color: currentColor; }

.ok-tab.is-active {
    color: var(--ink);
    text-decoration-color: currentColor;
}

.ok-index__note {
    max-width: 64ch;
    margin-bottom: clamp(24px, 3vw, 40px);
    font-size: 14px;
    line-height: 1.5;
}

.ok-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px) clamp(18px, 3vw, 48px);
}

.ok-card {
    display: block;
    color: var(--ink);
}

.ok-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--light);
}

.ok-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}

.ok-card:hover .ok-card__img { transform: scale(1.04); }

.ok-card__title {
    display: block;
    margin-top: 16px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
}

.ok-card__loc {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--grey);
}

/* ========================================================= PROJECT DETAIL == */
.ok-project { background: var(--paper); }

.ok-project__hero {
    position: relative;
    height: clamp(58svh, 78svh, 900px);
    background: var(--ink);
    overflow: hidden;
}

.ok-project__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ok-project__hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(24, 18, 19, .38), rgba(24, 18, 19, 0));
    pointer-events: none;
}

.ok-project__head {
    padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(24px, 4vw, 48px);
    max-width: 1200px;
}

.ok-project__title {
    margin-top: clamp(20px, 3vw, 36px);
    max-width: 24ch;
}

.ok-project__meta {
    margin-top: 14px;
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--grey);
}

.ok-project__meta.ok-todo { font-size: var(--label); }

.ok-project__intro {
    margin-top: clamp(20px, 3vw, 32px);
    max-width: 56ch;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
}

.ok-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 28px);
    padding: 0 var(--gutter) clamp(64px, 10vw, 150px);
}

.ok-gallery__item {
    margin: 0;
    background: var(--light);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.ok-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================ PLACEHOLDERS == */
.ok-pending {
    min-height: 100vh;      /* fallback */
    min-height: 100svh;
    background: var(--paper);
    padding: calc(var(--header-h) + clamp(60px, 12vw, 180px)) var(--gutter) clamp(80px, 12vw, 180px);
    display: flex;
    align-items: flex-start;
}

.ok-pending__inner { max-width: 820px; }

.ok-pending__title {
    margin-top: clamp(16px, 2.4vw, 28px);
    font-size: clamp(34px, 6vw, 82px);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -.02em;
}

.ok-pending__note {
    margin-top: clamp(20px, 3vw, 34px);
    max-width: 56ch;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--grey);
}

.ok-pending__links {
    margin-top: clamp(28px, 4vw, 48px);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

/* ================================================================ motion === */
html.ok-ready [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

html.ok-ready [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ============================================================== responsive = */
@media (min-width: 1081px) {
    /* The mobile overlay is only reachable from the hamburger, which is hidden
       at this width — hiding it here keeps it from ever covering the page. */
    .ok-mobile { display: none; }
}

@media (max-width: 1080px) {
    :root { --header-h: 62px; }

    .ok-header__nav,
    .ok-header__tools .ok-motion,
    .ok-icon { display: none; }

    .ok-header__inner { justify-content: space-between; }

    .ok-header__brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 13px;
        letter-spacing: .28em;
    }

    .ok-header__tools { margin-left: auto; }
    .ok-burger { display: flex; }

    .ok-mega { display: none; }
}

@media (max-width: 900px) {
    .ok-footer__inner { grid-template-columns: 1fr; gap: 28px; }
    .ok-footer__col--meta { grid-column: 1; }
    .ok-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ok-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    :root { --statement: 24px; }

    .ok-panel__text { font-size: 24px; }

    .ok-slides { padding: 1.5rem; }

    /* Arrows sit over the image on small screens, stacked above the counter in
       the bottom-right corner; the caption keeps clear of them below. */
    .ok-slides__foot {
        right: 1.25rem;
        bottom: 1.25rem;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .ok-arrow {
        width: 40px;
        height: 40px;
        background: rgba(24, 18, 19, .35);
        border-color: rgba(247, 247, 242, .75);
    }

    .ok-slide__caption {
        max-width: 100%;
        padding: 1rem;
        padding-bottom: 96px;
    }

    .ok-slide__title { font-size: 18px; }

    .ok-news__band {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px var(--gutter) 22px;
    }

    .ok-grid { grid-template-columns: 1fr; }
    .ok-gallery { grid-template-columns: 1fr; }

    .ok-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px;
    }

    .ok-tabs::-webkit-scrollbar { display: none; }

    .ok-project__head { padding-top: 32px; }
}

@media (max-width: 420px) {
    .ok-slide__caption { max-width: 100%; }
}

/* ======================================================= reduced motion ====
   Duplicated on purpose: an explicit "Toggle Motion" choice is not the same as
   the OS setting, and both have to collapse the transitions and pin the
   reveal states open. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    html.ok-ready [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .ok-panel__video,
    .ok-slide,
    .ok-slides__track,
    .ok-mega,
    .ok-mobile,
    .ok-card__img,
    .ok-inline-link,
    .ok-nav__link { transition: none; }

    .ok-panel__video { opacity: 1; transform: none; }
    .ok-slide { opacity: 1; }
}

html[data-motion="off"] {
    scroll-behavior: auto;
}

html[data-motion="off"] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
}

html[data-motion="off"] .ok-panel__video,
html[data-motion="off"] .ok-slide,
html[data-motion="off"] .ok-slides__track,
html[data-motion="off"] .ok-mega,
html[data-motion="off"] .ok-mobile,
html[data-motion="off"] .ok-card__img { transition: none; }

html[data-motion="off"] .ok-panel__video { opacity: 1; transform: none; }
html[data-motion="off"] .ok-slide { opacity: 1; }
