/* Pat's Design: the inner pages. Loaded after refresh.css, which holds the tokens, type,
   buttons, navigation, Iris and the footer. Headings are set plain: no italic accent words. */

.page { --fg: var(--ink); --fg-2: var(--ink-2); --accent: var(--blue); --bg: var(--paper); }
.page .nav { transition: background 0.3s, color 0.2s, border-color 0.3s; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; text-decoration-color: var(--blue); }
.nav.is-dark .nav__links a[aria-current="page"] { text-decoration-color: var(--blue-soft); }
h2, h3 { text-wrap: balance; }
.page h1 { font-size: clamp(2.5rem, 4.9vw, 4.5rem); }
.page p, .page li, .page dd { text-wrap: pretty; }
ul, ol { margin: 0; }
.tagline { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(18, 22, 29, 0.5); }
.btn--ghost:hover { background: rgba(18, 22, 29, 0.06); }
.link:last-child { margin-right: 0; }
.muted { color: var(--ink-2); }
.fine { font-size: 0.9rem; color: var(--ink-2); max-width: 46rem; }
.fine + .fine { margin-top: 10px; }

/* ------------------------------------------------------------- page hero */
.phero { background: var(--paper); padding: clamp(128px, 17vh, 188px) 0 clamp(52px, 7vw, 96px); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.phero--solo .phero__grid { grid-template-columns: minmax(0, 50rem); }
.phero--top .phero__grid { align-items: start; }
.phero__text > * + * { margin-top: 22px; }
.phero__text > .eyebrow + h1 { margin-top: 18px; }
.phero .lede { color: var(--ink-2); max-width: 35rem; }
.phero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px !important; }
.phero__actions .link { margin-right: 0; }
/* a quiet line under the hero actions: a short blue rule, then the words in the label face */
.aside-line { display: flex; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; line-height: 1.5; color: var(--ink-2); max-width: 34rem; }
.aside-line::before { content: ""; flex: none; width: 22px; height: 1.5px; background: var(--blue); transform: translateY(-0.3em); }
.phero__media { margin: 0; position: relative; }
.phero__media img, .phero__media video { width: 100%; height: auto; background: var(--paper-2); }
.phero__media figcaption { margin-top: 12px; display: flex; justify-content: space-between; gap: 16px; }
.frame { border: 1px solid var(--rule); background: var(--paper-3); padding: clamp(8px, 1vw, 14px); }
.frame--browser { padding-top: 30px; position: relative; }
.frame--browser::before { content: ""; position: absolute; left: 14px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--rule); box-shadow: 14px 0 0 var(--rule), 28px 0 0 var(--rule); }

/* --------------------------------------------------------------- bands */
.band { position: relative; padding: clamp(72px, 9vw, 132px) 0; background: var(--paper); }
.band--3 { background: var(--paper-3); }
.band--2 { background: var(--paper-2); }
.band--rule { border-top: 1px solid var(--rule); }
.band--tight { padding: clamp(52px, 6vw, 88px) 0; }
.band--night { --fg: var(--cream); --fg-2: #cdd6ea; --accent: var(--blue-soft); background: var(--night); color: var(--cream); }
.band--night .sec-head p:not(.eyebrow), .band--night .muted { color: #cdd6ea; }
.band--night .eyebrow, .band--night .tagline { color: #cdd6ea; }
.sec-head + * { margin-top: clamp(32px, 4.4vw, 60px); }
.sec-head--wide { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 5vw, 80px); align-items: end; }
.sec-head--wide > * + * { margin-top: 0; }
.sec-head--wide > div > * + * { margin-top: 18px; }
.sec-head--wide > p { color: var(--fg-2); max-width: 30rem; }

/* two columns: a heading that stays put, and the detail beside it */
.split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split__head > * + * { margin-top: 18px; }
.split__head p:not(.eyebrow) { color: var(--fg-2); max-width: 28rem; }
.split__head .price { margin-top: 22px; }
@media (min-width: 1101px) { .split__head { position: sticky; top: 112px; } }

.ledger { margin: 0; border-top: 1px solid var(--rule); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 6px 36px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-family: var(--serif); font-weight: 300; font-size: 1.38rem; line-height: 1.2; letter-spacing: -0.012em; }
.ledger dd { color: var(--fg-2); }
.band--night .ledger, .band--night .ledger > div { border-color: rgba(246, 243, 236, 0.16); }

.ticks { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.ticks li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.32em; width: 12px; height: 1.5px; background: var(--blue); }
.ticks--plain { border-bottom: 0; }
.ticks--plain li { border-top: 0; padding: 6px 0 6px 28px; }
.ticks--plain li::before { top: 0.95em; }

/* packages */
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.packs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pack { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px); background: var(--paper-3); border: 1px solid var(--rule); }
.band--3 .pack { background: var(--paper); }
.pack > .link { margin-top: auto; padding-top: 14px; align-self: flex-start; }
.pack p:not(.eyebrow):not(.price) { color: var(--ink-2); }
.pack .ticks { margin-top: 4px; }
.price { font-family: var(--mono); font-weight: 500; font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--fg); }
.price small { display: block; margin-top: 8px; font-size: 0.75rem; letter-spacing: 0.04em; line-height: 1.5; color: var(--fg-2); font-weight: 500; }

/* numbered steps: a blue line across the top, as on a drawing */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(22px, 3vw, 48px); }
.steps > li { counter-increment: step; position: relative; padding-top: 20px; border-top: 1.5px solid var(--accent); }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 14px; }
.steps > li::after { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.steps h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); }
.steps p { margin-top: 10px; color: var(--fg-2); }
.steps .tagline { display: block; margin-bottom: 8px; }

/* questions */
.faq { border-top: 1px solid var(--rule); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 21px 48px 21px 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.22; letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 15px; height: 1.5px; background: var(--blue); transition: transform 0.25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--blue-deep); }
.faq details > p, .faq details > div { color: var(--ink-2); max-width: 44rem; padding: 0 0 22px; }
.faq details > p + p { margin-top: -8px; }
.faq--static > div { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.faq--static h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.faq--static p { margin-top: 10px; color: var(--ink-2); max-width: 46rem; }

.callout { border-left: 2px solid var(--blue); padding: 4px 0 4px 22px; max-width: 46rem; }
.callout h3 { font-size: 1.35rem; }
.callout p { margin-top: 8px; color: var(--ink-2); }
.callout--box { border: 1px solid var(--rule); border-left: 2px solid var(--blue); background: var(--paper-3); padding: 20px 24px; }

/* ----------------------------------------------------------------- films */
.films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 48px); }
.films--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.films--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.film { margin: 0; }
.film--wide { grid-column: 1 / -1; }
.film__play { position: relative; display: block; overflow: hidden; background: #0c0f14; color: #fff; }
.film__play img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s; }
.film--tall .film__play img { aspect-ratio: 9 / 16; }
.film__play:hover img { transform: scale(1.02); }
.film__play::after { content: ""; position: absolute; left: clamp(12px, 1.6vw, 22px); bottom: clamp(12px, 1.6vw, 22px); width: 54px; height: 54px; border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cpath d='M22 17.5v19l15-9.5z' fill='%23005fcc'/%3E%3C/svg%3E") center / 54px no-repeat; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.25s; }
.film__play:hover::after { transform: scale(1.06); }
.film figcaption { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; }
.film figcaption b { font-family: var(--serif); font-weight: 400; font-size: 1.32rem; letter-spacing: -0.012em; line-height: 1.2; }
.film figcaption .tagline { justify-self: end; }
.film figcaption .film__meta { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--fg-2); }
.film > p { margin-top: 8px; color: var(--fg-2); }
.film > p .link { margin-top: 2px; }
.films--4 .film figcaption { grid-template-columns: 1fr; }
.films--4 .film figcaption .tagline { justify-self: start; }
.films--4 .film figcaption b { font-size: 1.15rem; }
.films--4 .film__play::after, .films--3 .film__play::after { width: 44px; height: 44px; background-size: 44px; }
.inline-video { width: 100%; height: auto; background: #0c0f14; }
.inline-video--tall { max-width: 340px; aspect-ratio: 9 / 16; object-fit: cover; }

/* the film player */
.filmdlg { width: min(1120px, 94vw); max-height: 94vh; padding: 0; border: 0; background: var(--night); color: var(--cream); overflow: auto; }
.filmdlg::backdrop { background: rgba(5, 9, 22, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.filmdlg__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px clamp(16px, 2.4vw, 28px); }
.filmdlg__head h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.filmdlg__close { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 14px; min-height: 44px; border: 1px solid rgba(246, 243, 236, 0.35); border-radius: 2px; color: var(--cream); }
.filmdlg__close:hover { background: rgba(246, 243, 236, 0.1); }
.filmdlg video { width: 100%; max-height: 68vh; background: #000; }
.filmdlg__status { padding: 0 clamp(16px, 2.4vw, 28px); font-size: 0.9rem; color: #cdd6ea; }
.filmdlg__status:not(:empty) { padding-top: 12px; }
.filmdlg__words { padding: 16px clamp(16px, 2.4vw, 28px) 24px; display: grid; gap: 12px; color: #cdd6ea; max-width: 54rem; }
.filmdlg__words summary { cursor: pointer; color: var(--blue-soft); font-weight: 500; font-size: 0.95rem; }
.filmdlg__words details p { margin-top: 8px; }
.filmdlg__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.filmdlg__foot .tagline { color: #cdd6ea; }
.filmdlg__foot .link { color: var(--blue-soft); }

/* --------------------------------------------------------- picture cards */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); }
.shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot { display: grid; gap: 10px; align-content: start; }
.shot__img { display: block; overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 8px; }
.shot__img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 0; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.shot__img:hover img { transform: scale(1.02); }
.shot p:not(.eyebrow) { color: var(--ink-2); }
.shot .link { justify-self: start; }

.caserows { display: grid; gap: clamp(44px, 6vw, 88px); }
.caserow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4.4vw, 72px); align-items: center; }
.caserow:nth-child(even) .caserow__img { order: 2; }
.caserow__img { display: block; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); }
.caserow__img img { width: 100%; height: auto; aspect-ratio: 36 / 25; object-fit: cover; object-position: 50% 0; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.caserow__img:hover img { transform: scale(1.015); }
.caserow__copy > * + * { margin-top: 14px; }
.caserow__copy p:not(.eyebrow) { color: var(--ink-2); }
.caserow__copy .tagline { display: block; line-height: 1.7; letter-spacing: 0.08em; }

.figure-wide { margin: 0; }
.figure-wide img { width: 100%; height: auto; border: 1px solid var(--rule); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 48px); align-items: start; }
.pair > article > * + * { margin-top: 12px; }
.pair > article p { color: var(--ink-2); }
.pair > article img { width: 100%; height: auto; border: 1px solid var(--rule); margin-top: 18px; }
.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); padding-top: 4px; }
.facts dd { color: var(--ink); }

/* a figure from someone else's research, with its source */
.stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px clamp(20px, 3vw, 44px); align-items: center; margin: 0; }
.stat__n { font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--blue); }
.stat blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.25; max-width: 24rem; }
.stat figcaption { grid-column: 2; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-2); }

/* tabs (three places to use a film) */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs__list button { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; min-height: 44px; padding: 10px 18px; border: 1px solid color-mix(in srgb, var(--ink) 26%, transparent); border-radius: 999px; transition: background 0.2s, color 0.2s; }
.tabs__list button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs__panel { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.tabs__panel[hidden] { display: none; }
.tabs__copy > * + * { margin-top: 14px; }
.tabs__copy p:not(.eyebrow) { color: var(--ink-2); }
.tip { font-family: var(--mono); font-size: 0.78rem; line-height: 1.55; letter-spacing: 0.01em; color: var(--ink) !important; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 20px !important; }
.mock { background: var(--paper-3); border: 1px solid var(--rule); padding: 18px; max-width: 420px; justify-self: center; width: 100%; font-size: 0.93rem; }
.mock > * + * { margin-top: 10px; }
.mock__bar { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.mock__brand { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.mock__brand span { color: var(--ink-2); margin-left: 8px; letter-spacing: 0.04em; text-transform: none; }
.mock img { width: 100%; height: auto; }
.mock__img { position: relative; display: block; }
.mock__img--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.mock__cta { color: var(--blue); font-weight: 500; }
.mock__two { display: grid; grid-template-columns: 0.8fr 1fr; gap: 14px; align-items: center; }
.mock__two img { aspect-ratio: 9 / 14; object-fit: cover; }
.mock__two h3 { font-size: 1.2rem; }
.mock__btn { display: inline-block; margin-top: 8px; padding: 8px 12px; background: var(--blue); color: #fff; font-size: 0.8rem; font-weight: 500; border-radius: 2px; }

/* ----------------------------------------------------- enquiry builder */
.brief { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.brief__next { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.brief__next ol { margin-top: 12px; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 10px; }
.brief__next li::marker { font-family: var(--mono); font-size: 0.8rem; color: var(--blue); }
.brief__form { background: var(--paper-3); border: 1px solid var(--rule); padding: clamp(20px, 3vw, 36px); }
.brief__form[hidden] { display: none; }
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 18px; }
.field[hidden] { display: none; }
.field label { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.field label span { text-transform: none; letter-spacing: 0.02em; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 2px; }
.field textarea { min-height: 124px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.brief__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.brief__status { margin-top: 14px; font-size: 0.9rem; color: var(--ink-2); }
.brief__form details { margin-top: 14px; font-size: 0.9rem; }
.brief__form details summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.brief__form details textarea { margin-top: 10px; width: 100%; min-height: 180px; font: 0.85rem/1.5 var(--mono); padding: 12px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); }
.email-big { font-family: var(--mono); font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: 0.02em; text-underline-offset: 6px; }

/* ------------------------------------------------------------- closing */
.closing { --fg: var(--cream); --fg-2: #cdd6ea; --accent: var(--blue-soft); position: relative; background: var(--night); color: var(--cream); padding: clamp(88px, 11vw, 160px) 0 clamp(72px, 9vw, 128px); overflow: hidden; }
/* a faint drawing line, as if the page were set out on a sheet */
.closing::before { content: ""; position: absolute; left: var(--edge); right: var(--edge); top: clamp(44px, 5.5vw, 80px); height: 1px; background: linear-gradient(90deg, rgba(169, 202, 255, 0.5), rgba(169, 202, 255, 0.08)); }
.closing__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.closing h2 { margin-top: 16px; font-size: clamp(2.4rem, 4.3vw, 4.2rem); max-width: 11em; }
.closing .eyebrow { color: #cdd6ea; }
.closing__act > * + * { margin-top: 20px; }
.closing__act > p:first-child { color: #cdd6ea; max-width: 26rem; }
.closing .contact__addr a { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--cream); text-underline-offset: 5px; }
.closing .fine { color: #aeb9d2; font-size: 0.84rem; max-width: 26rem; }

/* ----------------------------------------------------- articles, research */
.ahead { background: var(--paper); padding: clamp(128px, 17vh, 180px) 0 clamp(28px, 4vw, 48px); }
.ahead .wrap, .prose-wrap { width: min(46rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.ahead h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.05; margin-top: 18px; }
.ahead__meta { margin-top: 20px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ahead__lede { margin-top: 22px; font-size: 1.17rem; line-height: 1.5; color: var(--ink-2); }
.prose { padding: 0 0 clamp(64px, 8vw, 112px); background: var(--paper); font-size: 1.09rem; line-height: 1.65; }
.prose-wrap > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.7rem, 2.7vw, 2.3rem); line-height: 1.12; margin-top: 2.1em; }
.prose h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--blue); }
.prose strong { font-weight: 600; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 2px; overflow-wrap: anywhere; }
.prose pre { background: var(--paper-2); padding: 16px 18px; overflow-x: auto; font: 0.86rem/1.55 var(--mono); border-left: 2px solid var(--blue); }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 2px solid var(--blue); font-family: var(--serif); font-weight: 300; font-size: 1.35rem; line-height: 1.35; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { margin-top: 8px; font-size: 0.86rem; color: var(--ink-2); }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border-top: 1px solid var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
.prose th { text-align: left; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 12px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.prose td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.9rem; }
.prose .note { font-size: 0.93rem; color: var(--ink-2); border: 1px solid var(--rule); border-left: 2px solid var(--blue); background: var(--paper-3); padding: 16px 20px; }
.prose .note strong { color: var(--ink); }
.prose .watch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 18px 20px; border: 1px solid var(--rule); background: var(--paper-3); font-size: 0.97rem; }
.prose .watch .btn { color: #fff; text-decoration: none; }
.prose .faq { margin-top: 1em; }
.prose .faq details > p { font-size: 1rem; }
.backlink { display: inline-block; margin-top: 2.6em !important; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; }
.band--after { border-top: 1px solid var(--rule); background: var(--paper-3); padding: clamp(48px, 6vw, 84px) 0; }
.band--after .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.band--after h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.band--after p { color: var(--ink-2); margin-top: 12px; max-width: 34rem; }

/* index of articles */
.alist { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.alist li { border-bottom: 1px solid var(--rule); }
.alist a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 6px 32px; padding: 26px 0; text-decoration: none; color: inherit; }
.alist time { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-2); padding-top: 8px; }
.alist h3 { font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.14; max-width: 38rem; }
.alist p { grid-column: 2; color: var(--ink-2); max-width: 40rem; }
.alist a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.alist--featured { border-top-color: var(--blue); }

/* data downloads */
.files { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.files span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-2); }

/* ------------------------------------------------- AI visibility check */
.tool { background: var(--paper-3); border: 1px solid var(--rule); padding: clamp(20px, 3vw, 40px); }
.tool__form { display: flex; gap: 10px; }
.tool__form input { flex: 1; min-width: 0; min-height: 56px; padding: 0 18px; font: 400 1.15rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 34%, transparent); border-radius: 2px; }
.tool__form input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.tool__form .btn { min-height: 56px; padding: 0 28px; cursor: pointer; }
.tool__form .btn:disabled { opacity: 0.6; cursor: default; }
.tool__label { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.tool__result { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
.tool__result[hidden] { display: none; }
.tool__result > * + * { margin-top: 14px; }
.verdict { display: flex; align-items: center; gap: 14px; }
.verdict i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2); }
.verdict[data-v="green"] i { background: #1e8f5a; box-shadow: 0 0 0 5px rgba(30, 143, 90, 0.16); }
.verdict[data-v="amber"] i { background: #c98512; box-shadow: 0 0 0 5px rgba(201, 133, 18, 0.18); }
.verdict[data-v="red"] i { background: #c0392f; box-shadow: 0 0 0 5px rgba(192, 57, 47, 0.16); }
.verdict h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; }
.tool__result p { color: var(--ink-2); max-width: 44rem; }
.tool__bots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.tool__bots h3 { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.tool__bots ul { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tool__bots li { font-family: var(--mono); font-size: 0.78rem; padding: 5px 10px; border: 1px solid var(--rule); background: var(--paper); border-radius: 2px; }
.tool__next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 6px; }

/* ------------------------------------------------------- AI consulting */
.robo { --fg: var(--cream); --fg-2: #cdd6ea; --accent: var(--blue-soft); position: relative; background: radial-gradient(120% 90% at 78% 40%, #101a3d 0%, #070d22 46%, #04070f 100%); color: var(--cream); min-height: min(100svh, 940px); display: grid; align-items: center; overflow: hidden; padding: clamp(120px, 16vh, 170px) 0 clamp(56px, 7vw, 96px); }
.robo .wrap { position: relative; z-index: 2; }
.robo__text { width: min(34rem, 100%); }
.robo__text > * + * { margin-top: 22px; }
.robo h1 { font-size: clamp(2.5rem, 4.7vw, 4.4rem); }
.robo .lede { color: #cdd6ea; }
.robo .eyebrow { color: #cdd6ea; }
.robo .phero__actions .link { color: var(--blue-soft); }
.robo__stage { position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: min(58%, 900px); }
.robo__stage canvas, .robo__stage img { width: 100%; height: 100%; display: block; }
.robo__stage img { object-fit: contain; object-position: 50% 100%; }
.robo__stage::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; background: linear-gradient(90deg, #070d22 0%, rgba(7, 13, 34, 0) 100%); z-index: 2; pointer-events: none; }
/* Pat's own robot reaches towards the text when it presents or points, so the text is a little narrower and the soft
   edge on the stage's left is slimmer: the open hand stays in clear view and off the words. */
.robo--own .robo__text { width: min(31rem, 100%); }
.robo--own .robo__stage::before { width: 9%; }
@media (min-width: 1101px) {
  /* a little to the right, so a reaching hand clears the text at every width; the picture shown while the robot loads follows (robot-own.js) */
  .robo--own .robo__stage { --robot-shift: 4%; }
  .robo--own .robo__stage canvas { transform: translateX(var(--robot-shift)); }
  /* On a short window the heading and the spacing follow the window's height, so the hero is never taller than the
     window: the whole block of text and the whole figure, hands included, sit above the fold. */
  .robo--own { padding: clamp(104px, 13vh, 170px) 0 clamp(40px, 6vh, 96px); }
  .robo--own h1 { font-size: clamp(2.5rem, min(4.7vw, 7.4vh), 4.4rem); }
  .robo--own .robo__text > * + * { margin-top: clamp(14px, 2.4vh, 22px); }
}
@media (min-width: 1101px) and (max-width: 1300px) { .robo--own .robo__text { width: min(28rem, 100%); } .robo--own .robo__stage { --robot-shift: 6%; } }
/* Stacked (phones and tablets): the figure is shown head and shoulders, centred, and its chest fades into the page
   so it does not end in a hard line above the text. */
@media (max-width: 1100px) {
  .robo--own .robo__stage { -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%); mask-image: linear-gradient(to bottom, #000 74%, transparent 99%); }
}
.robo__credit { position: absolute; z-index: 3; right: var(--edge); bottom: 18px; margin: 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; color: rgba(246, 243, 236, 0.72); text-align: right; }
.robo__credit a { color: inherit; text-underline-offset: 3px; }

/* ----------------------------------------------------- narrower windows */
@media (max-width: 1100px) {
  .phero__grid, .split, .sec-head--wide, .closing__grid, .brief, .tabs__panel, .band--after .wrap { grid-template-columns: minmax(0, 1fr); }
  .phero__grid { align-items: start; }
  .sec-head--wide > * + * { margin-top: 16px; }
  .packs--3, .films--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caserow { grid-template-columns: minmax(0, 1fr); }
  .caserow:nth-child(even) .caserow__img { order: 0; }
  .closing h2 { max-width: none; }
  .robo { min-height: 0; display: block; padding-bottom: 0; }
  .robo__stage { position: relative; width: 100%; height: min(78vw, 560px); margin-top: 28px; }
  .robo__stage::before { display: none; }
  .robo__credit { position: static; padding: 10px var(--gutter) 16px; text-align: left; }
}
@media (max-width: 820px) {
  .page h1 { font-size: clamp(2.15rem, 9.2vw, 2.9rem); }
  .phero, .ahead { padding-top: 108px; }
  .ledger > div { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .packs, .packs--3, .films, .films--3, .shots, .shots--2, .pair, .tool__bots { grid-template-columns: minmax(0, 1fr); }
  .films--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film--tall .film__play img { aspect-ratio: 4 / 5; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
  .stat { grid-template-columns: minmax(0, 1fr); }
  .stat figcaption { grid-column: 1; }
  .alist a { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
  .alist p { grid-column: 1; }
  .alist time { padding-top: 0; }
  .tool__form { flex-direction: column; }
  .tool__form .btn { justify-content: center; }
  .phero__actions .btn, .brief__actions .btn { flex: 1 1 auto; justify-content: center; }
  .filmdlg { width: 100vw; max-width: 100vw; max-height: 100vh; }
  .mock__two { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .film__play img, .shot__img img, .caserow__img img { transition: none; }
}

/* a numbered list of what is on the page, beside the heading */
.index ol { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.index a { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; letter-spacing: -0.012em; transition: padding 0.25s, color 0.2s; }
.index a b { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; color: var(--blue); }
.index a::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-5px) rotate(45deg); opacity: 0.5; transition: opacity 0.2s, transform 0.25s; }
.index a:hover { padding-left: 8px; color: var(--blue-deep); }
.index a:hover::after { opacity: 1; transform: translateY(-2px) rotate(45deg); }
.ledger dd a, .faq a, .fine a, .callout a, .pack p a { color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.films--tallpair { grid-template-columns: repeat(2, minmax(0, 200px)); gap: 18px; }
.films--tallpair .film figcaption { grid-template-columns: 1fr; }
.films--tallpair .film figcaption b { font-size: 1.05rem; }
.films--tallpair .film figcaption .tagline { justify-self: start; }
.films--tallpair .film__play::after, .films--offset .film--tall .film__play::after { width: 40px; height: 40px; background-size: 40px; }
.films--offset { grid-template-columns: minmax(0, 1fr) minmax(0, 0.34fr); align-items: end; gap: clamp(16px, 2vw, 28px); }
.films--offset .film--tall figcaption { grid-template-columns: 1fr; }
.films--offset .film--tall figcaption b { font-size: 1.05rem; }
.films--offset .film--tall figcaption .tagline { justify-self: start; }
.phero__media .film figcaption b { font-size: 1.15rem; }
@media (max-width: 820px) { .films--tallpair { grid-template-columns: repeat(2, minmax(0, 1fr)); } .films--offset { grid-template-columns: minmax(0, 1fr); } .films--offset .film--tall { max-width: 60%; } }

/* a phone in a page hero (Project Reveal, On screen) */
.phero__grid--phone { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: center; }
.phone--hero { width: min(300px, 100%); justify-self: center; margin: 0; }
@media (max-width: 1100px) { .phero__grid--phone { grid-template-columns: minmax(0, 1fr); } .phone--hero { justify-self: start; width: min(260px, 70%); } }
@media (max-width: 820px) { .phone--hero { flex: none; } }

/* chapter links under a film */
.chapters { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chapters a { display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); border-radius: 999px; font-size: 0.93rem; font-weight: 500; text-decoration: none; color: var(--ink); transition: background 0.2s, border-color 0.2s; }
.chapters a span { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }
.chapters a:hover { border-color: var(--ink); background: var(--paper); }

/* the live robot fades in over its still */
.robo__stage { opacity: 1; }
.robo__still { position: absolute; inset: 0; transition: opacity 0.9s; }
.robo__live { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 0.9s; outline: none; }
.robo__stage.is-live .robo__live { opacity: 1; }
.robo__stage.is-live .robo__still { opacity: 0; }
@media (max-width: 1100px) { .robo__still { position: static; } }
.robo .aside-line, .band--night .aside-line { color: #cdd6ea; }
.robo .aside-line::before { background: var(--blue-soft); }
.robo__credit { right: auto; left: var(--edge); text-align: left; }

/* ------------------------------------------------- /screens: a week of posts */
body { --brand: var(--blue); }
.skin { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px clamp(24px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.skin .field { margin: 0; gap: 9px; }
.skin .field + .field { margin-top: 0; }
.skin input { min-width: min(20rem, 76vw); font-family: var(--serif); font-size: 1.25rem; }
.field__label { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.seg { display: inline-flex; padding: 4px; border: 1px solid color-mix(in srgb, var(--ink) 26%, transparent); border-radius: 999px; }
.seg button { min-height: 42px; padding: 8px 18px; border-radius: 999px; font-size: 0.93rem; font-weight: 500; transition: background 0.2s, color 0.2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.dots { display: flex; gap: 10px; }
.dots button { width: 44px; height: 44px; border-radius: 50%; background: var(--c, #888); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); transition: box-shadow 0.2s, transform 0.2s; }
.dots button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper-3), 0 0 0 5px var(--ink); }
.week__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); align-items: start; margin-top: clamp(32px, 4vw, 56px); outline-offset: 8px; }
.week__row .phone:nth-child(even) { margin-top: clamp(18px, 2.6vw, 44px); }
.week__row .phone { margin-left: 0; margin-right: 0; }
.week .phone__bar i { background: var(--brand); }
.week .phone__screen img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.week .phone--film video { aspect-ratio: 4 / 5; }
.phone__cap { padding: 0 11px 13px; font-size: 0.74rem; line-height: 1.4; color: var(--ink); }
.phone__cap b { font-weight: 600; margin-right: 3px; }
.week__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.chips { display: flex; gap: 6px; }
.chip { flex: 1; height: 46px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(18, 22, 29, 0.12); }
.chip--brand { flex: 2.2; background: var(--brand); transition: background 0.3s; }
.types { display: grid; gap: 8px; color: var(--ink) !important; }
.types__a { font-family: var(--serif); font-weight: 300; font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.02em; }
.types__b { font-family: var(--sans); font-weight: 500; font-size: 1rem; }
.types__c { font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0.02em; }
@media (max-width: 1100px) {
  .week__row { display: flex; gap: 14px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .week__row::-webkit-scrollbar { display: none; }
  .week__row .phone { flex: 0 0 min(64%, 270px); scroll-snap-align: center; }
  .week__row .phone:nth-child(even) { margin-top: 0; }
}

/* ------------------------------------------------------------ /brand */
.marks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.62fr); gap: clamp(14px, 2vw, 28px); }
.marks figure { margin: 0; display: grid; align-content: space-between; gap: 14px; padding: clamp(18px, 2.4vw, 32px); border: 1px solid var(--rule); min-height: 220px; }
.marks img { max-width: 100%; height: auto; align-self: center; }
.marks__a { background: var(--paper); }
.marks__b { background: var(--night); border-color: var(--night) !important; }
.marks__b .tagline { color: #cdd6ea; }
.marks__c { background: var(--paper-2); grid-template-columns: auto auto; justify-content: start; }
.marks__c img { width: 84px; }
.marks__c figcaption { grid-column: 1 / -1; }
.swgroups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.swgroups h3 { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.sw { list-style: none; padding: 0; display: grid; gap: 0; border: 1px solid var(--rule); }
.sw li { display: grid; gap: 2px; padding: 16px 14px 14px; min-height: 96px; align-content: end; background: var(--c); color: var(--ink); }
.sw li b { font-weight: 500; font-size: 0.95rem; }
.sw li span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; opacity: 0.86; }
.sw--dark { color: #fff !important; }
.specimens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.specimens article { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 1.5px solid var(--blue); }
.spec { color: var(--ink); min-height: 4.4em; }
.spec--serif { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.022em; }
.spec--sans { font-family: var(--sans); font-size: 1.25rem; line-height: 1.45; }
.spec--mono { font-family: var(--mono); font-size: 1.12rem; line-height: 1.5; letter-spacing: -0.01em; }
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.parts > div { background: var(--paper); padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 16px; align-content: start; min-height: 150px; }
.parts__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.parts .btn, .parts .link { cursor: default; }
.eye { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px 2px var(--c); margin-right: 8px; vertical-align: baseline; }
.band--night .facts, .band--night .facts > div { border-color: rgba(246, 243, 236, 0.16); }
@media (max-width: 1100px) { .marks, .specimens { grid-template-columns: minmax(0, 1fr); } .swgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); } .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .parts { grid-template-columns: minmax(0, 1fr); } }

/* printing a page (used for the brand kit PDF) */
@media print {
  .nav, .iris, .foot, .skip, .closing { display: none !important; }
  .phero { padding-top: 40px; }
  .band { padding: 36px 0; break-inside: avoid-page; }
  .split__head { position: static; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
