/* ============================================================================
   THA — Talal El Hassan Architects
   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 empty space.

   Two rules hold everywhere in this file:

   1. Nothing is hidden. There is no `opacity: 0` and no `visibility: hidden` on
      content, so a section with no records, or a script that never arrives,
      leaves a readable page rather than an empty one.
   2. Exactly one thing is ever blurred: a statement panel's text wrapper as that
      panel leaves (`.ok-panel__textwrap.fade-out`), and the slideshow's arrows
      and counter as that section leaves (`.ok-slides__foot.fade-out`). The
      panel, the film, the page and every hover state stay sharp.
   ========================================================================== */

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

    --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 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;
}

/* The loading screen holds the scroll until the first view has its data. */
body.ok-booting { overflow: hidden; }

/* Only the phone menu locks the page. */
html.ok-menu-open { overflow: hidden; }

/* The view content is mounted into the layout's <main body>. Giving it a
   stacking context of its own means no view can ever paint over the fixed
   header, however it layers its panels, films or slides. */
[body] {
    position: relative;
    z-index: 0;
}

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;
}

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

: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-eyebrow {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
}

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

.ok-h2 {
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -.015em;
}

/* The big statement a Section record carries as its Title. */
.ok-statement {
    font-size: var(--statement);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -.01em;
    max-width: 60ch;
    text-wrap: pretty;
}

/* A quiet empty state: the section says what it is waiting for, in the same
   12px wide-tracked voice as the labels. It is never a blank area. */
.ok-empty {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--grey);
    max-width: 52ch;
    line-height: 1.8;
}

/* 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;
}

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

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

/* The one link a statement carries. */
.ok-cta {
    display: inline-block;
    margin-top: clamp(20px, 2.6vw, 34px);
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .5em;
    transition: color .3s var(--ease);
}

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

/* HTML that comes out of Base as HTML: project descriptions, office blocks. */
.ok-html { line-height: 1.65; }

.ok-html p { margin: 0 0 .9em; }
.ok-html p:last-child { margin-bottom: 0; }

.ok-html a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
    transition: color .3s var(--ease);
}

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

.ok-html ul { list-style: disc; padding-left: 1.1em; }
.ok-html strong { font-weight: 500; }

/* =========================================================== LOADING SCREEN == */
/* Painted by index.html before any script runs. site.js fades it out
   (.is-gone) as soon as a view has its first data back, and a six-second timer
   removes it regardless, so it can never hold the page. The breathing is on the
   logo only. */
.ok-boot {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--paper);
    transition: opacity .6s var(--ease);
}

.ok-boot.is-gone {
    opacity: 0;
    pointer-events: none;
}

.ok-boot svg {
    height: 2.2rem;
    width: auto;
    display: block;
    animation: ok-breathe 2.4s ease-in-out infinite;
}

@keyframes ok-breathe {
    0%, 100% { opacity: .34; transform: scale(.985); }
    50% { opacity: 1; transform: scale(1); }
}

/* Scripting off: index.html's noscript block takes over from the loader. */
.ok-nojs {
    min-height: 100svh;
    padding: clamp(48px, 10vw, 120px) var(--gutter);
    background: var(--ink);
    color: var(--paper);
}

.ok-nojs svg { height: 2.2rem; width: auto; display: block; }

.ok-nojs__title {
    margin-top: clamp(32px, 6vw, 72px);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 300;
    letter-spacing: -.01em;
}

.ok-nojs__note {
    margin-top: 18px;
    max-width: 54ch;
    color: rgba(247, 247, 242, .72);
}

.ok-nojs__nav {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
}

.ok-nojs__nav a { text-decoration: underline; text-underline-offset: .5em; }

/* ================================================================ 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;
    opacity: 1;
    visibility: visible;
    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 and a dark logo, so
   a transparent header cannot vanish into it. Over media it stays off-white. */
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 {
    display: block;
    color: inherit;
    line-height: 0;
}

.ok-brand {
    height: 2.2rem;
    width: auto;
    display: block;
    color: currentColor;
}

.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 { 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-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); }

/* ============================================================ PHONE MENU == */
/* Shut means display:none, open fades in: an overlay that is not open is simply
   not in the layout, so nothing here is a hidden state waiting on a class. */
.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;
    display: none;
}

.ok-mobile.is-open {
    display: block;
    animation: ok-fade .4s var(--ease) both;
}

.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__top: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;
}

/* ====================================================== STATEMENT PANELS === */
.ok-hero {
    position: relative;
    background: #000;
    color: var(--paper);
}

/* Above the first statement, and it scrolls away with the first panel. */
.ok-eyebrow {
    position: absolute;
    z-index: 3;
    top: calc(var(--header-h) + clamp(18px, 5vh, 56px));
    left: var(--gutter);
    right: var(--gutter);
    color: rgba(247, 247, 242, .74);
}

.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: #000;
    scroll-snap-align: start;
}

/* The client's own film. It crossfades panel to panel: the panel that owns more
   than 45% of the viewport carries .is-active and shows the film at .875 over
   black; the panel being covered drops it out. Never a filter on this element. */
.ok-panel__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .9s linear;
}

.ok-panel.is-active .ok-panel__video { opacity: .875; }

.ok-panel__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, .74) 0%,
        rgba(0, 0, 0, .46) 46%,
        rgba(0, 0, 0, .2) 100%);
    pointer-events: none;
}

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

/* ---- the scroll blur -------------------------------------------------------
   The text wrapper, and only the text wrapper, is filtered. It starts sharp
   (filter none), the observer adds .fade-out as the panel leaves, and the blur
   eases in over .8s linear. Nothing here touches opacity, transform or scale,
   and no ancestor ever carries a filter. */
.ok-panel__textwrap {
    filter: none;
    transition: filter .8s linear;
}

.ok-panel__textwrap.fade-out { filter: blur(3rem); }

.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;
}

.ok-panel__body {
    margin-top: clamp(16px, 1.8vw, 26px);
    max-width: 58ch;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.6;
    color: rgba(247, 247, 242, .82);
}

.ok-panel__cta {
    display: inline-block;
    margin-top: clamp(18px, 2.2vw, 30px);
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--paper);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .5em;
    transition: color .3s var(--ease);
}

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

.ok-panel--quiet .ok-panel__inner { padding-bottom: clamp(56px, 14vh, 160px); }

.ok-panel .ok-empty { color: rgba(247, 247, 242, .6); }

/* ============================================================= 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; }

/* One slide is one typographic field: there is no photography in Base yet, and
   nothing here pretends otherwise. */
.ok-slide__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(12px, 1.4vw, 20px);
    padding: clamp(20px, 4vw, 72px);
    background: #0B0909;
}

.ok-slide__index {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    color: rgba(247, 247, 242, .6);
}

.ok-slide__title {
    max-width: 26ch;
    font-size: clamp(26px, 3.6vw, 58px);
    font-weight: 300;
    line-height: 1.14;
    letter-spacing: -.015em;
    color: var(--paper);
}

.ok-slide__loc {
    font-size: clamp(13px, 1vw, 15px);
    color: rgba(238, 236, 236, .72);
}

.ok-slide__link {
    display: inline-block;
    margin-top: 6px;
    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; }

/* No slides in Base yet: the frame holds a quiet note instead of an empty
   rectangle. */
.ok-slides__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: clamp(20px, 4vw, 72px);
    background: #0B0909;
}

.ok-slides__empty .ok-empty { color: rgba(247, 247, 242, .6); }

/* ---- arrows and counter ----------------------------------------------------
   These leave the section the way a statement's text leaves a panel: the
   observer adds .fade-out and the arrows and counter blur out and fade over
   .4s linear. The slides themselves are untouched. */
.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;
    filter: none;
    opacity: 1;
    transition: filter .4s linear, opacity .4s linear;
}

.ok-slides__foot.fade-out {
    filter: blur(1.5rem);
    opacity: 0;
}

.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;
}

/* ========================================================= HOME SECTIONS == */
.ok-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 48px);
    margin-bottom: clamp(24px, 3.4vw, 48px);
    padding-bottom: clamp(14px, 1.6vw, 22px);
    border-bottom: 1px solid rgba(24, 18, 19, .14);
}

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

.ok-section__more:hover {
    color: var(--gold);
    text-decoration-color: currentColor;
}

.ok-home-projects {
    background: var(--paper);
    padding: clamp(56px, 8vw, 130px) var(--gutter) clamp(64px, 10vw, 150px);
}

.ok-block {
    background: var(--paper);
    padding: clamp(48px, 7vw, 110px) var(--gutter);
}

.ok-block--form { padding-bottom: clamp(64px, 10vw, 150px); }

/* ============================================================ PROJECT CARD == */
/* No photography in Base yet, so the image area is a near-black field carrying
   the project's number and a hairline rule. Nothing is faked, and there is no
   <img> to break. */
.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 {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--ink);
    transition: background-color .5s var(--ease);
}

.ok-card:hover .ok-card__media { background: #241E1F; }

.ok-card__media::after {
    content: "";
    position: absolute;
    left: clamp(14px, 1.6vw, 24px);
    right: clamp(14px, 1.6vw, 24px);
    bottom: clamp(14px, 1.6vw, 24px);
    height: 1px;
    background: rgba(247, 247, 242, .22);
}

.ok-card__index {
    position: absolute;
    left: clamp(14px, 1.6vw, 24px);
    top: clamp(12px, 1.4vw, 20px);
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    color: rgba(247, 247, 242, .66);
}

.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(46svh, 62svh, 760px);
    background: var(--ink);
    overflow: hidden;
}

.ok-project__hero::after {
    content: "";
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: clamp(24px, 4vw, 56px);
    height: 1px;
    background: rgba(247, 247, 242, .24);
}

.ok-project__index {
    position: absolute;
    left: var(--gutter);
    bottom: clamp(34px, 5vw, 72px);
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    color: rgba(247, 247, 242, .72);
}

.ok-project__head {
    padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(64px, 10vw, 150px);
    max-width: 1080px;
}

.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__intro {
    margin-top: clamp(24px, 3vw, 40px);
    max-width: 62ch;
    font-size: clamp(16px, 1.4vw, 19px);
}

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

.ok-pagehead .ok-label { margin-bottom: clamp(14px, 2vw, 24px); }

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

.ok-index .ok-empty { padding-top: clamp(8px, 1.4vw, 16px); }

/* ================================================================ ABOUT === */
.ok-mission {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(48px, 8vw, 120px) var(--gutter);
}

.ok-mission__inner { max-width: 1200px; }

.ok-mission__inner .ok-cta { color: var(--paper); }
.ok-mission__inner .ok-cta:hover { color: var(--gold); }

.ok-mission__body {
    margin-top: clamp(20px, 2.6vw, 34px);
    max-width: 62ch;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
    color: rgba(247, 247, 242, .8);
}

.ok-mission .ok-empty { color: rgba(247, 247, 242, .6); }

.ok-mission--empty { padding-block: clamp(40px, 6vw, 80px); }

.ok-film {
    background: #000;
    padding: 0;
}

.ok-film__video {
    width: 100%;
    max-height: 86svh;
    height: auto;
    object-fit: cover;
    background: #000;
}

.ok-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px) clamp(20px, 3vw, 44px);
}

.ok-service {
    padding-top: clamp(14px, 1.6vw, 20px);
    border-top: 1px solid rgba(24, 18, 19, .16);
}

.ok-service__title {
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 400;
    line-height: 1.3;
}

.ok-service__text {
    margin-top: 10px;
    max-width: 44ch;
    font-size: 15px;
    line-height: 1.6;
    color: var(--grey);
}

.ok-offices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(24px, 3vw, 48px) clamp(20px, 3vw, 44px);
}

.ok-office {
    padding-top: clamp(14px, 1.6vw, 20px);
    border-top: 1px solid rgba(24, 18, 19, .16);
}

.ok-office__title {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ok-office__body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--dark);
}

/* ================================================================ PEOPLE == */
.ok-team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(22px, 3vw, 40px) clamp(18px, 2.6vw, 36px);
}

.ok-person {
    padding-top: clamp(12px, 1.4vw, 18px);
    border-top: 1px solid rgba(24, 18, 19, .16);
}

.ok-person__name {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.35;
}

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

/* ================================================================ NEWS ==== */
.ok-newslist {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.ok-newsitem {
    padding: clamp(22px, 3vw, 40px) 0;
    border-top: 1px solid rgba(24, 18, 19, .16);
    max-width: 78ch;
}

.ok-newsitem:first-child { border-top: 0; padding-top: 0; }

.ok-newsitem__title {
    font-size: clamp(20px, 2.4vw, 32px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.ok-newsitem__brief {
    margin-top: 12px;
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.65;
    color: var(--dark);
}

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

/* The home strip: the newest record, on ink. */
.ok-news {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(56px, 9vw, 150px) var(--gutter);
    scroll-snap-align: start;
}

.ok-news__inner {
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 24px);
}

.ok-news .ok-label { color: rgba(247, 247, 242, .6); }

.ok-news__title {
    font-size: clamp(26px, 3.4vw, 52px);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -.015em;
    max-width: 30ch;
}

.ok-news__brief {
    max-width: 62ch;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.65;
    color: rgba(247, 247, 242, .78);
}

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

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

.ok-news .ok-empty { color: rgba(247, 247, 242, .6); }

/* ================================================================ FORMS === */
.ok-input {
    display: block;
    width: 100%;
    padding: .55em 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(24, 18, 19, .24);
    border-radius: 0;
    color: inherit;
    outline-offset: 4px;
    transition: border-color .3s var(--ease);
}

.ok-input::placeholder { color: var(--grey); }
.ok-input:focus { border-bottom-color: currentColor; }

.ok-input--area {
    border: 1px solid rgba(24, 18, 19, .24);
    padding: .8em;
    resize: vertical;
}

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

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

.ok-formnote {
    min-height: 1.4em;
    font-size: 13px;
    line-height: 1.45;
    color: var(--grey);
}

.ok-formnote.is-ok { color: var(--dark); }
.ok-formnote.is-error { color: var(--alert); }

.ok-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 40px);
    max-width: 900px;
}

.ok-form__row { display: flex; flex-direction: column; gap: 8px; }
.ok-form__row--wide { grid-column: 1 / -1; }

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

.ok-form__foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: clamp(16px, 3vw, 32px);
    flex-wrap: wrap;
    padding-top: 6px;
}

/* ================================================================ FOOTER === */
.ok-footer {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(56px, 8vw, 130px) 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__mark {
    width: 92px;
    height: auto;
    color: var(--paper);
    margin-bottom: 6px;
}

.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); }

.ok-footer .ok-label { color: rgba(247, 247, 242, .6); }

.ok-newsletter {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
    max-width: 340px;
}

.ok-footer .ok-input {
    border-bottom-color: rgba(247, 247, 242, .38);
    color: var(--paper);
}

.ok-footer .ok-input::placeholder { color: rgba(247, 247, 242, .6); }

.ok-footer .ok-formnote { color: rgba(247, 247, 242, .7); }
.ok-footer .ok-formnote.is-ok { color: var(--paper); }
.ok-footer .ok-formnote.is-error { color: #E4806F; }

/* ============================================================ 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(28px, 4.4vw, 62px);
    font-weight: 300;
    line-height: 1.06;
    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 === */
@keyframes ok-fade {
    from { opacity: 0; }

    to { opacity: 1; }
}

/* ============================================================== responsive == */
@media (min-width: 1081px) {
    /* The phone 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,
    .ok-mobile.is-open { display: none; }
}

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

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

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

    .ok-header__brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .ok-brand { height: 1.9rem; }

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

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

@media (max-width: 900px) {
    .ok-footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .ok-grid { 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 slide, stacked above the counter in the bottom-right
       corner. */
    .ok-slides__foot {
        right: 1.5rem;
        bottom: 1.5rem;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

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

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

    .ok-section__head { align-items: flex-start; flex-direction: column; gap: 10px; }

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

@media (max-width: 420px) {
    .ok-slide__title { font-size: 24px; }
}

/* ======================================================= reduced motion ====
   Duplicated on purpose: an explicit Toggle Motion choice is not the same as the
   OS setting. Both switch the transitions off, and both remove the blur
   entirely — with motion reduced there is no blur at all, at any point. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .ok-panel__textwrap,
    .ok-panel__textwrap.fade-out {
        filter: none !important;
        transition: none !important;
    }

    .ok-slides__foot,
    .ok-slides__foot.fade-out {
        filter: none !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .ok-panel__video,
    .ok-slide,
    .ok-slides__track,
    .ok-card__media,
    .ok-mobile,
    .ok-boot,
    .ok-nav__link,
    .ok-cta,
    .ok-panel__cta,
    .ok-input,
    .ok-submit { transition: none; }

    .ok-panel.is-active .ok-panel__video { opacity: .875; }
    .ok-slide { opacity: 1; }

    .ok-boot svg { animation: none; opacity: 1; transform: none; }
    .ok-mobile.is-open { animation: none; }
}

html[data-motion="off"] .ok-panel__textwrap,
html[data-motion="off"] .ok-panel__textwrap.fade-out {
    filter: none !important;
    transition: none !important;
}

html[data-motion="off"] .ok-slides__foot,
html[data-motion="off"] .ok-slides__foot.fade-out {
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
}

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

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-card__media,
html[data-motion="off"] .ok-mobile,
html[data-motion="off"] .ok-boot,
html[data-motion="off"] .ok-input,
html[data-motion="off"] .ok-submit { transition: none; }

html[data-motion="off"] .ok-boot svg { animation: none; opacity: 1; transform: none; }
html[data-motion="off"] .ok-mobile.is-open { animation: none; }
