/* PressRecc: brand tokens */
:root {
  --yellow: #FBD437;
  --navy: #0B132B;
  --navy-2: #1C2541;
  --slate: #3A506B;
  --teal: #5BC0BE;
  --white: #FFFFFF;
  --muted: #C9D2DE;
  --tile-b: #3A506B;
  --tile-c: #26304F;
  --tile-d: #2E4560;

  --font-display: 'Geologica', 'Arial', sans-serif;
  --font-text: 'Golos Text', system-ui, sans-serif;

  /* Side margin grows with the screen; on very wide screens the content stops at --max and sits in the middle. */
  --pad-x: clamp(24px, 6vw, 96px);
  --pad-y: clamp(112px, 12vw, 168px);
  --max: 1280px;
  --gutter: max(var(--pad-x), calc((100% - var(--max)) / 2));
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font-text); color: var(--navy); background: var(--navy); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
/* Even line lengths: no lone word on the last line of a heading or paragraph. */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--yellow); color: var(--navy); padding: 12px 18px; font-weight: 800; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, transform 0.15s; }
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: var(--white); }
.btn--navy { background: var(--navy); color: var(--yellow); }
.btn--navy:hover { background: var(--slate); color: var(--white); }
.text-link { font-size: 15px; font-weight: 700; text-underline-offset: 5px; }
.text-link:hover { color: var(--yellow); }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--white); transition: transform 0.35s var(--ease), background-color 0.25s; }
.header.is-solid { background: var(--navy); }
.header.is-hidden { transform: translateY(-100%); }
.header__logo img { height: 34px; width: auto; filter: invert(1); }
.header__menu { display: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 700; }
.nav__link { text-decoration: none; padding: 8px 0; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.nav__link:hover, .nav__link.is-active { text-decoration: underline; text-decoration-color: var(--yellow); }
.nav__cta { text-decoration: none; background: var(--yellow); color: var(--navy); padding: 12px 18px; transition: background-color 0.2s; }
.nav__cta:hover { background: var(--white); }

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 40px) var(--gutter) 64px; background: var(--navy); color: var(--white); display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 48px; }
.hero__copy { flex: 1 1 440px; container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
/* "Всеки формат." is about 7.5em wide in Geologica, so 12.7cqw keeps the headline on two lines in any column width. */
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 12.7cqw, 96px); line-height: 1.02; letter-spacing: -0.04em; }
.hero__lead { font-size: 20px; line-height: 1.45; font-weight: 500; max-width: 34ch; }
/* The logo mark, whole and inside the margins, with Мартин on the top of the R and Дариан on the camera. */
.hero__mark { flex: 1 1 440px; min-width: 0; display: flex; justify-content: flex-end; }
.mark { --calm: cubic-bezier(0.16, 1, 0.3, 1); position: relative; width: min(100%, 58vh, 620px); aspect-ratio: 1938 / 1492; margin-top: 10vh; }
.mark > i { position: absolute; inset: 0; background: var(--yellow); -webkit-mask: url("/assets/logo-mark.png") no-repeat center / contain; mask: url("/assets/logo-mark.png") no-repeat center / contain; }
/* The bands rise out of their own slots, one after another, once the loader has gone. */
.mark > i:nth-child(1) { --t: 0%; --b: 78%; }
/* The middle band reaches a hair into the next one, so no seam shows across the camera. */
.mark > i:nth-child(2) { --t: 22%; --b: 47.6%; transition-delay: 0.16s; }
.mark > i:nth-child(3) { --t: 52%; --b: 0%; transition-delay: 0.32s; }
.js .mark > i { clip-path: inset(calc(100% - var(--b)) 0 var(--b) 0); transform: translateY(6%); transition: clip-path 1.3s var(--calm), transform 1.3s var(--calm); }
.js .mark.is-in > i { clip-path: inset(var(--t) 0 var(--b) 0); transform: none; }
/* Мартин and Дариан as solid yellow pictograms sitting on the mark, traced from the client's reference and drawn
   in the mark's own coordinates so they sit exactly at any size. The trace is smoothed, and an even navy cut
   under each figure outlines the legs and hands where they lie on the yellow. */
.mark__people { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mark__people .cut { fill: var(--navy); }
.mark__people .fig { fill: var(--yellow); }
.js .person { opacity: 0; transform: translateY(-60px); transition: opacity 0.9s var(--calm), transform 1.2s var(--calm); }
.js .mark.is-in .person { opacity: 1; transform: none; }
.person.p-m { transition-delay: 1.2s; }
.person.p-d { transition-delay: 1.45s; }

/* Sections */
.intro, .work, .services, .price, .contact { padding: var(--pad-y) var(--gutter); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; margin-bottom: 56px; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 7vw, 112px); line-height: 0.95; letter-spacing: -0.05em; }
.section-title--md { font-size: clamp(38px, 5vw, 80px); }

.intro { background: var(--yellow); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 32px 48px; align-items: baseline; }
.intro__title { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.intro__text { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.28; font-weight: 700; letter-spacing: -0.02em; max-width: 34ch; }

.work { background: var(--navy); color: var(--white); }
/* Masonry by columns: tiles of any format pack without holes. */
.wall { columns: 3; column-gap: 20px; }
/* With only one or two projects, fewer and narrower columns, so no empty hole is left on the right. */
.wall:has(> .tile:only-child) { columns: 1; max-width: 560px; }
.wall:has(> .tile:nth-child(2):last-child) { columns: 2; max-width: 880px; }
.tile { break-inside: avoid; margin-bottom: 32px; }
.tile a, .tile__inner { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.tile__media { position: relative; display: block; aspect-ratio: var(--r); background: var(--navy-2); overflow: hidden; transition: transform 0.3s var(--ease); }
.tile__media img, .tile__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__label { z-index: 1; }
.tile__media--b { background: var(--tile-b); } .tile__media--c { background: var(--tile-c); } .tile__media--d { background: var(--tile-d); }
.tile a:hover .tile__media, .tile a:focus-visible .tile__media { transform: translateY(-6px); }
.tile__label { position: absolute; top: 10px; left: 12px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--yellow); }
.tile__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; font-size: 15px; font-weight: 700; }
.tile__meta span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

.services { background: var(--teal); display: flex; flex-direction: column; gap: 0; }
.services .section-title { margin-bottom: 56px; }
/* Three equal service tiles, and a full-width tile under them that leads to the form. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bx { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 32px 28px; min-height: 300px; display: flex; flex-direction: column; }
/* Services in navy, the tile that leads to the form in yellow. */
.bx--navy { background: var(--navy); }
.bx--slate { background: var(--navy); }
.bx--yellow { background: var(--navy); }
.bx__in { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.bx__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.04em; line-height: 1; }
.bx__text { font-size: 17px; line-height: 1.5; color: var(--muted); margin-bottom: 12px; }
.bx__link { margin-top: auto; align-self: flex-start; font-weight: 800; font-size: 15px; color: var(--yellow); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.bx__link:hover { opacity: 0.75; }
.bx--cta { grid-column: 1 / -1; min-height: 0; padding: 36px 28px; flex-direction: row; align-items: center; justify-content: center; text-align: center; background: var(--yellow); color: var(--navy); text-decoration: none; gap: 6px 24px; transition: background-color 0.2s; }
.bx--cta b { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.04em; }
.bx--cta:hover { background: var(--white); }


.contact { background: var(--yellow); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px 80px; align-items: start; }
.contact__head { display: flex; flex-direction: column; gap: 24px; }
.contact__lead { font-size: 18px; line-height: 1.5; font-weight: 500; max-width: 40ch; }
.contact__direct { display: flex; flex-direction: column; gap: 12px; font-size: 18px; font-weight: 700; padding-top: 8px; }
.contact__direct a { text-underline-offset: 5px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; background: var(--white); border: 2px solid var(--navy); padding: 13px 14px; font: inherit; font-size: 18px; font-weight: 500; color: var(--navy); border-radius: 0; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #B42318; box-shadow: inset 0 0 0 1px #B42318; }
.form__error { grid-column: 1 / -1; background: var(--white); padding: 12px 14px; font-weight: 700; }
.form .btn { justify-self: start; }
/* Hidden from people, still filled in by spam bots. */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__note { margin: 0; font-size: 15px; font-weight: 500; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; background: var(--navy); color: var(--white); padding: 40px 32px; }
.form-done:focus { outline: none; }
.form-done__title { margin: 0; font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.05; color: var(--yellow); }
.form-done__text { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 500; max-width: 40ch; }
.form-done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn--ghost-light { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.5); }
.btn--ghost-light:hover { border-color: var(--white); }

.footer { background: var(--navy); color: var(--yellow); padding: 64px var(--gutter) 28px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.footer { --word-w: min(100vw - 2 * var(--pad-x), var(--max)); }
.footer__word { font-family: var(--font-display); font-weight: 800; font-size: calc(var(--word-w) / 5.6); line-height: 0.85; letter-spacing: -0.05em; white-space: nowrap; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: var(--muted); }
.footer__row a { color: var(--white); font-weight: 700; text-decoration: none; }
.footer__links { display: flex; gap: 24px; }
.form__note a { font-weight: 700; text-underline-offset: 4px; }

/* Scroll reveal: only hidden when JS runs, so the page never stays blank */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hero__copy > * { animation: rise 0.7s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.is-loading .hero__copy > * { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Loader */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 100; display: block; animation: loader-failsafe 0s 4.5s forwards; }
.is-loading { overflow: hidden; }
.loader__yellow, .loader__navy { position: absolute; inset: 0; }
.loader__yellow { background: var(--yellow); }
.loader__navy { background: var(--navy); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.loader__rec { position: absolute; top: 24px; left: 24px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; }
.loader__tc { position: absolute; top: 24px; right: 24px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); animation: blink 0.9s steps(1) infinite; }
.loader__mark { position: relative; width: clamp(150px, 18vw, 240px); aspect-ratio: 1938 / 1492; }
.loader__band { position: absolute; inset: 0; width: 100%; height: 100%; filter: invert(1); animation: 0.6s var(--ease) both; }
.loader__band--1 { clip-path: inset(0 0 78% 0); animation-name: in-left; animation-delay: 0.1s; }
.loader__band--2 { clip-path: inset(22% 0 48% 0); animation-name: in-right; animation-delay: 0.24s; }
.loader__band--3 { clip-path: inset(52% 0 0 0); animation-name: in-left; animation-delay: 0.38s; }
.loader__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2vw, 28px); letter-spacing: 0.04em; color: var(--yellow); animation: rise 0.5s 0.8s var(--ease) both; }
.loader__skip { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); min-height: 44px; padding: 0 18px; background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.6); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.loader__skip:hover { border-color: var(--white); }
.loader.is-leaving .loader__navy { animation: exit-up 0.7s var(--ease-in-out) both; }
.loader.is-leaving .loader__yellow { animation: exit-up 0.7s var(--ease-in-out) 0.18s both; }
@keyframes in-left { from { transform: translateX(-36%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes in-right { from { transform: translateX(36%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes exit-up { to { transform: translateY(-100%); } }
/* Price calculator: three steppers and a live total, then the inquiry form with the sum filled in. */
.price { background: var(--navy); color: var(--white); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px 80px; align-items: start; }
.price__head { display: flex; flex-direction: column; gap: 24px; }
.price__lead { font-size: 18px; line-height: 1.5; font-weight: 500; max-width: 40ch; color: var(--muted); }
.calc { display: flex; flex-direction: column; }
.calc__kinds { margin: 0 0 28px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calc__legend { padding: 0; margin-bottom: 12px; font-weight: 700; color: var(--muted); }
.kind { position: relative; cursor: pointer; }
.kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind span { height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 2px solid rgba(255, 255, 255, 0.24); transition: border-color 0.2s, background-color 0.2s; }
.kind b { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.kind small { font-size: 14px; color: var(--muted); line-height: 1.35; }
.kind:hover span { border-color: var(--yellow); }
.kind input:checked + span { border-color: var(--yellow); background: var(--yellow); color: var(--navy); }
.kind input:checked + span small { color: var(--navy); }
.kind input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }
.calc__row:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.calc__kinds + .calc__row { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.calc__name { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.calc__name small { font-family: var(--font-text); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.stepper { display: flex; align-items: center; flex: none; }
.stepper button { width: 48px; height: 48px; border: 2px solid var(--yellow); background: transparent; color: var(--yellow); font: inherit; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.stepper button:hover:not(:disabled) { background: var(--yellow); color: var(--navy); }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper output { min-width: 112px; text-align: center; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.calc__lines { display: flex; flex-direction: column; gap: 8px; padding: 22px 0 0; font-size: 16px; color: var(--muted); }
.calc__lines li { display: flex; justify-content: space-between; gap: 16px; }
.calc__lines b { color: var(--white); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__lines em { font-style: normal; color: var(--teal); }
.calc__total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 16px; padding: 20px 0 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.calc__total p { font-weight: 700; color: var(--muted); }
.calc__total strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.calc__send { align-self: flex-start; }
.form__estimate { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; background: var(--navy); color: var(--white); padding: 12px 14px; font-size: 15px; font-weight: 500; }
.form__estimate b { color: var(--yellow); }
.form__estimate button { background: none; border: 0; color: var(--white); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 4px; }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }
@keyframes loader-failsafe { to { visibility: hidden; } }

/* Tablet and phone */
@media (max-width: 760px) {
  :root { --pad-x: 20px; --pad-y: 88px; --header-h: 64px; }
  .header__menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--yellow); color: var(--navy); border: 0; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; z-index: 1; background: var(--navy); flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 96px 24px 48px; font-family: var(--font-display); font-size: 34px; letter-spacing: -0.03em; visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0s 0.25s; }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity 0.25s; }
  .nav__cta { margin-top: 16px; font-size: 20px; padding: 16px 22px; }
  .header__logo { position: relative; z-index: 2; }
  .hero { gap: 32px; }
  .hero__lead { font-size: 18px; }
  .hero__mark { flex-basis: 100%; }
  .mark { width: min(78%, 360px); margin-top: calc(6vh + 56px); }
  .wall { columns: 2; column-gap: 12px; }
  .tile { margin-bottom: 20px; }
  .intro { grid-template-columns: 1fr; gap: 16px; }
  .bento { grid-template-columns: 1fr; gap: 10px; }
  .bx { padding: 22px 20px; min-height: 0; }
  .bx--cta { padding: 28px 20px; }
  .services .section-title { margin-bottom: 40px; }
  .section-head { margin-bottom: 40px; }
  .wall:has(> .tile:only-child) { max-width: none; }
  .wall:has(> .tile:nth-child(2):last-child) { max-width: none; }
  .contact, .price { grid-template-columns: 1fr; gap: 40px; }
  .calc__row:not([hidden]) { flex-direction: column; align-items: stretch; }
  .calc__kinds { grid-template-columns: 1fr; }
  .stepper { justify-content: space-between; }
  .stepper output { flex: 1; }
  .calc__send { align-self: stretch; }
  .form { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__copy > *, .loader__band, .loader__word, .dot { animation: none; }
  .tile__media, .header, .nav { transition: none; }
  .mark > i, .person { transition: none !important; clip-path: none !important; transform: none !important; opacity: 1 !important; }
}

/* Vimeo tiles and lightbox */
.tile__button { width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tile__button:hover .tile__media, .tile__button:focus-visible .tile__media { transform: translateY(-6px); }
/* The background player is scaled up slightly so Vimeo's letterboxing never shows at the edges. */
.tile__frame { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%) scale(1.02); border: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); }
.tile__media.is-playing .tile__frame { opacity: 1; }
.tile__play { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-size: 16px; padding-left: 3px; box-sizing: border-box; transition: transform 0.2s var(--ease); }
.tile__button:hover .tile__play { transform: scale(1.08); }
.lightbox { width: min(92vw, 1400px, calc((92vh - 120px) * (var(--r, 16 / 9)))); width: min(92vw, 1400px, calc((92dvh - 120px) * (var(--r, 16 / 9)))); max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(11, 19, 43, 0.92); }
/* The dialog is sized by whichever runs out first, width or height, so tall 9:16 videos and short screens both fit and the close button sits right above the video; 54px is that button. */
.lightbox__stage { position: relative; aspect-ratio: var(--r, 16 / 9); width: 100%; background: #000; }
.lightbox__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__close { display: block; flex: none; margin: 0; min-height: 44px; padding: 0 18px; border: 0; background: var(--yellow); color: var(--navy); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.lightbox__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); font-weight: 700; font-size: 15px; }
.lightbox__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.lightbox__step { min-height: 44px; padding: 0 16px; border: 2px solid var(--yellow); background: transparent; color: var(--yellow); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.lightbox__step:hover:not(:disabled) { background: var(--yellow); color: var(--navy); }
.lightbox__step:disabled { opacity: 0.3; cursor: default; }
.lightbox__count { color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; }
.tile__count { position: absolute; top: 10px; right: 12px; z-index: 1; padding: 4px 8px; background: rgba(11, 19, 43, 0.85); color: var(--white); font-size: 13px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .tile__frame, .tile__play { transition: none; } }

/* Privacy page: a plain reading page in the site's colours */
.legal-page { background: var(--white); }
.legal-header { position: sticky; top: 0; z-index: 10; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: var(--white); }
.legal-header__back { font-size: 15px; font-weight: 700; text-decoration: none; padding: 12px 0; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.legal-header__back:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.legal-hero { background: var(--yellow); padding: 88px var(--gutter) 64px; display: flex; flex-direction: column; gap: 20px; }
.legal-hero__lead { font-size: 20px; line-height: 1.5; font-weight: 500; max-width: 40ch; }
.legal-hero__date { font-size: 15px; font-weight: 700; }
.legal { padding: 64px var(--gutter) 112px; font-size: 18px; line-height: 1.6; }
.legal > * { max-width: 760px; }
.legal section + section { margin-top: 56px; }
.legal h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.legal h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 32px 0 8px; }
.legal p + p { margin-top: 12px; }
.legal ul { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; background: var(--yellow); }
.legal a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 600; }
.legal a:hover { background: var(--yellow); }
.legal__summary { background: var(--navy); color: var(--white); padding: 32px; }
.legal__summary h2 { color: var(--yellow); }
.legal__summary li::before { background: var(--teal); }
@media (max-width: 760px) {
  .legal-hero { padding: 56px var(--gutter) 44px; }
  .legal-hero__lead { font-size: 18px; }
  .legal { padding: 44px var(--gutter) 80px; font-size: 17px; }
  .legal__summary { padding: 24px 20px; }
}



/* The flowing line from the business cards, edge to edge, curving differently in each dark section. */
.footer { background: var(--navy) url("/assets/line-footer.svg") no-repeat center top -4vw / 100% auto; }
@media (max-width: 760px) {
  .footer { background-size: 200% auto; background-position: 50% top -10px; }
}


/* Short note after copying the email address. */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 16px); padding: 12px 18px; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: 15px; box-shadow: 0 12px 32px rgba(11, 19, 43, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

@media (min-width: 761px) and (max-width: 1000px) { .bento { grid-template-columns: 1fr; } .bx { min-height: 0; } .price { grid-template-columns: 1fr; } }
