/* =========================================================
   Design tokens - extracted from the Design & Portfolio references (1920 artboards)
   ========================================================= */
@font-face { font-family: "Playfair Display"; src: url(../fonts/playfair-display.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(../fonts/playfair-display-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url(../fonts/roboto.woff2) format("woff2"); font-weight: 100 900; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Roboto Flex"; src: url(../fonts/roboto-flex.woff2) format("woff2"); font-weight: 100 1000; font-stretch: 25% 151%; font-display: swap; }
@font-face { font-family: "Roboto"; src: url(../fonts/roboto-italic.woff2) format("woff2"); font-weight: 100 900; font-stretch: 75% 100%; font-style: italic; font-display: swap; }

:root {
  /* color */
  --c-blue: #0089de;          /* nav bar, primary buttons, panels, accents */
  --c-blue-hover: #0a9bf5;
  --c-bg: #212324;            /* page colour = average of the background image (assets/shared/background/background.jpg) */
  --c-surface: #181818;       /* dark cards (Branding for us, contact form) */
  --c-surface-2: #333333;
  --c-text: #ffffff;
  --c-text-soft: #f7f6f2;
  --c-muted: #a9a9a9;
  --c-line: rgba(255, 255, 255, .35);

  /* type */
  --f-display: "Playfair Display", Georgia, serif;
  --f-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.5rem, 1.2rem + 3.4vw, 4.95rem);      /* 79px @1920 */
  --fs-h2: clamp(2rem, 1.3rem + 1.8vw, 3rem);             /* 48px @1920 */
  --fs-h3: clamp(1.5rem, 1.1rem + 1.1vw, 2.625rem);       /* 42px @1920 */
  --fs-lead: clamp(1rem, .85rem + .5vw, 1.5rem);          /* 24px @1920 */
  --fs-body: clamp(.95rem, .85rem + .3vw, 1.25rem);       /* 20px @1920 */
  --fs-small: clamp(.75rem, .7rem + .15vw, .875rem);
  --fs-btn: clamp(.75rem, .7rem + .2vw, .9375rem);        /* 15px @1920 */
  --fs-nav: clamp(12px, .55rem + .3vw, 13px);           /* ref 14px @1920, slightly smaller */
  --f-ui: "Roboto Flex", var(--f-body);

  /* spacing - from the Design hero: one rhythm unit between heading / text / buttons */
  --stack: clamp(24px, 3.8vw, 72px);
  --btn-gap: clamp(14px, 2.2vw, 42px);

  /* layout - content (and logo) start at x=186 on the 1920 artboard */
  --container: 1548px;
  --gutter: clamp(20px, 12vw - 44px, 186px);
  --section-y: clamp(56px, 7vw, 120px);
  --header-h: clamp(52px, 3.2vw, 60px);
  --radius: clamp(12px, 1.2vw, 22px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* 1 artboard px (1920 wide) in viewport units - for crops that must match the reference exactly */
  --u: max(.5px, calc(100vw / 1920));
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-anchor: none; /* the pinned sections resize from script: no browser scroll corrections */ scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.5; color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
/* the background image covers every screen and drifts gently with the scroll: the layer is 20% taller than the screen
   and slides up by that 20% from the top of the page to the bottom (--bg-p = scroll progress 0 -> 1, set in main.js) */
body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 120lvh; z-index: -1; pointer-events: none;
  background: var(--c-bg) url(../img/shared/bg-2-1920.webp) center / cover no-repeat;
  transform: translate3d(0, calc(var(--bg-p, 0) * -20lvh), 0); will-change: transform; }
@media (max-width: 960px) { body::before { background-image: url(../img/shared/bg-2-960.webp); } }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--c-text); color: #000; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* phone-only hooks (css/phone.css): the accent part of a title, testimonial initials, the menu sheet's top row and the section dock.
   Neutral on bigger screens. */
.m-acc, .m-acc span { font: inherit; letter-spacing: inherit; color: inherit; }
.quote__av, .site-nav__top, .dock, .svc-card__count, .svc__dots, .svc__chips, .mk-tabs, .ph-bar, .ph-chips, .sf-card, .sf-card__count, .toc, .legal-nav { display: none; }
.mk-areas { display: contents; }
.eyebrow { font-size: var(--fs-small); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }

/* =========================================================
   Components
   ========================================================= */
/* Buttons: ONE style on every page (the Home mockup's): Roboto Flex Bold uppercase, tight tracking, 3px corners, 209 x 41 at 1920.
   A button is as wide as its label needs, never narrower than 209; buttons sharing a row take the width of the longest label.
   Phones: the row stacks, full width up to 320px (bigger tap targets). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  width: auto; min-width: max(150px, calc(209 * var(--u))); max-width: 100%; height: max(36px, calc(41 * var(--u))); padding: 0 1.2em;
  font: 700 max(13px, calc(21 * var(--u)))/1 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: 3px; color: var(--c-text); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--c-blue); border-color: var(--c-blue); }
.btn--primary:hover { background: var(--c-blue-hover); border-color: var(--c-blue-hover); }
.btn--outline { background: transparent; border-color: var(--c-text); }
.btn--outline:hover { background: var(--c-text); color: var(--c-bg); }
.btn-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: max(14px, calc(42 * var(--u))); width: max-content; max-width: 100%; }
.btn-row > .btn { width: 100%; }
.btn-row--center { margin-inline: auto; }
@media (max-width: 480px) { .btn-row { grid-auto-flow: row; width: min(100%, 320px); } .btn { height: 44px; } }

/* Section title with the short blue underline */
.section-title { text-align: center; font-size: var(--fs-h2); }
.section-title::after {
  content: ""; display: block; width: clamp(80px, 7vw, 132px); height: clamp(3px, .3vw, 6px);
  margin: .35em auto 0; background: var(--c-blue);
}
.section + .section { border-top: 1px solid var(--c-line); }
/* Design ref: ~50px line->title, ~70px title->content, ~50px content->text, ~60px text->buttons */
.section { padding-block: clamp(36px, 2.6vw, 50px) clamp(44px, 3.2vw, 60px); }
.section .section-title { margin-bottom: var(--stack); }

/* Centered intro text with the thin corner arcs (references/various/text-card) */
.lead-quote {
  position: relative; max-width: 37.5em; margin: clamp(28px, 2.6vw, 50px) auto clamp(28px, 3vw, 58px);
  padding: .35em 1.2em; text-align: center; font-size: var(--fs-lead); line-height: 1.25;
}
.lead-quote::before, .lead-quote::after {
  content: ""; position: absolute; width: clamp(18px, 1.6vw, 30px); aspect-ratio: 1; border: 1.5px solid rgba(255, 255, 255, .8);
}
.lead-quote::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 100%; }
.lead-quote::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-blue); color: var(--c-text);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s, transform .45s cubic-bezier(.32, .72, 0, 1); }
/* slides away while scrolling down, comes back on the way up (main.js) */
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
/* Once the page scrolls: white liquid glass, dark gray content, blue logo (toggled in main.js) */
.site-header.is-scrolled { background: rgba(255, 255, 255, .5); color: #2e3336;
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(255, 255, 255, .45), 0 10px 30px rgba(0, 0, 0, .14); }
/* logo | centered links | language: links stay truly centered on the page */
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.site-header__logo { justify-self: start; display: block; }
/* Abnexia lockup (icon + wordmark) as a mask, so it can be white on the blue header and blue on the white glass one */
.site-header__mark { display: block; height: clamp(18px, 1.25vw, 24px); aspect-ratio: 1600 / 224; background: #fff;
  -webkit-mask: url(../img/shared/logos/abnexia-white.png) center / contain no-repeat; mask: url(../img/shared/logos/abnexia-white.png) center / contain no-repeat;
  transition: background-color .4s var(--ease); }
.site-header.is-scrolled .site-header__mark { background: #fff; } /* white logo once the page has scrolled */
.page-journal .site-header.is-scrolled .site-header__mark { background: var(--c-blue); } /* white pages (Journal, articles): stays blue so it shows */
.site-nav { display: contents; }
.site-nav ul { grid-column: 2; display: flex; gap: clamp(24px, 16.9vw - 187px, 140px); } /* ref spacing at 1920, tighter on laptops so the Contact button has room */
.site-nav a { text-decoration: none; }
.site-nav ul a {
  position: relative; display: block; padding-block: 6px;
  font-size: var(--fs-nav); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.site-nav__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: clamp(14px, 1.4vw, 26px); }
/* Contact: a real site button (square, uppercase, wide tracking), last item, flush with the right page margin.
   Opens the form popup (any #contact link does). White outline on the blue header, solid blue on the white glass one. */
.nav-cta { display: inline-flex; align-items: center; justify-content: center; height: clamp(32px, 2.1vw, 40px); padding: 0 1.9em;
  border: 2px solid currentColor; color: inherit; white-space: nowrap; text-decoration: none;
  font: 700 var(--fs-nav)/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.nav-cta:hover { background: #fff; border-color: #fff; color: var(--c-blue); }
.site-header.is-scrolled .nav-cta { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.site-header.is-scrolled .nav-cta:hover { background: var(--c-blue-hover); border-color: var(--c-blue-hover); }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0); transition: transform .25s var(--ease);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

/* Nav bar as in the final reference (laptops and up): Roboto Flex, logo and Contact at ~12% from the edges,
   small tracked links centred, Eng | Fr stacked, a large outlined Contact button */
@media (min-width: 1081px) {
  :root { --header-h: max(40px, 3.17vw); } /* reference: 40px at 1263 wide */
  .site-header__inner.container { max-width: none; padding-inline: 12.2vw; }
  .site-header__mark { height: clamp(18px, 1.36vw, 28px); }
  .site-nav ul { gap: 1.9vw; }
  .site-nav ul a { padding-block: 4px; font: 600 clamp(10px, .64vw, 13px)/1 var(--f-ui); letter-spacing: .16em; }
  .site-nav ul a::after { bottom: -3px; height: 1.5px; }
  .site-nav__end { gap: 1.66vw; }
  .site-nav .lang { display: grid; grid-template-columns: auto auto; justify-items: center; column-gap: .25em; row-gap: .15em;
    font: 600 clamp(9px, .56vw, 11px)/1 var(--f-ui); }
  .nav-cta { width: 10.8vw; height: max(32px, 2.06vw); padding: 0; font: 600 clamp(11px, .9vw, 17px)/1 var(--f-ui); letter-spacing: .24em; }
}
.lang { display: flex; gap: 4px; font-size: .75rem; line-height: 1; }
.lang a { text-decoration: none; opacity: .6; transition: opacity .2s; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }

/* Burger: three thin rounded lines that fold into a light X */
.nav-toggle { display: none; position: relative; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.8px; border-radius: 2px; background: currentColor;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .2s, top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Burger menu (below 1080px, where the full nav + Contact no longer fit): a floating dark-grey glass card under the
   header (absolute in the sticky header, so it stays right under it in both header states). */
@media (max-width: 1080px) {
  .site-header__inner { display: flex; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); display: flex; flex-direction: column; gap: 18px;
    padding: 10px; border-radius: var(--radius); color: #fff;
    background: rgba(25, 25, 25, .94); /* the form's dark grey (#191919), same in both header states */
    -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .35);
    transform-origin: top right; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.96);
    transition: opacity .25s ease, transform .5s cubic-bezier(.34, 1.4, .64, 1), visibility .5s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 15px 18px; border-radius: 99px; font-size: clamp(1rem, 4.4vw, 1.25rem); letter-spacing: .12em;
    transition: background-color .2s, color .2s; }
  .site-nav ul a::after { display: none; }
  .site-nav ul a:hover { background: rgba(255, 255, 255, .08); }
  /* current page: a brand-blue pill (white text, never blue on grey) */
  .site-nav ul a[aria-current="page"] { background: var(--c-blue); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
  /* links drift in one after another */
  .site-nav li, .site-nav__end { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .4s var(--ease); }
  .site-nav.is-open li, .site-nav.is-open .site-nav__end { opacity: 1; transform: none; }
  .site-nav.is-open li:nth-child(2) { transition-delay: .04s; } .site-nav.is-open li:nth-child(3) { transition-delay: .08s; }
  .site-nav.is-open li:nth-child(4) { transition-delay: .12s; } .site-nav.is-open li:nth-child(5) { transition-delay: .16s; }
  .site-nav.is-open .site-nav__end { transition-delay: .2s; }
  /* Contact as a full-width white button at the bottom of the dark card, language under it */
  .site-nav__end { flex-direction: column; align-items: stretch; gap: 16px; }
  .nav-cta, .site-header.is-scrolled .nav-cta { order: -1; height: 52px; margin: 6px 4px 0; border-color: #fff; background: #fff; color: #191919;
    font-size: clamp(.9rem, 3.8vw, 1.1rem); }
  .nav-cta:hover, .site-header.is-scrolled .nav-cta:hover { background: rgba(255, 255, 255, .88); border-color: transparent; color: #191919; }
  .site-nav .lang { align-self: flex-start; margin: 0 0 6px 18px; font-size: .8rem; letter-spacing: .12em; }
}

/* =========================================================
   Footer
   ========================================================= */
/* Pattern: ONLY used cropped, in the footer (13%) and the contact form card (23%).
   Placement copied from page-design.ai (artboard px x --u). Do not reuse elsewhere. */
.pattern-crop { position: absolute; pointer-events: none; background: url(../img/shared/pattern/pattern.svg) no-repeat; background-size: calc(1927 * var(--u)) auto; }
/* card = 784 wide @1920: crop is relative to the card's own width (container units) */
.form-card { container-type: inline-size; }
.form-card__pattern { inset: 0; border-radius: inherit; background-size: calc(1927 / 784 * 100cqw) auto; background-position: calc(-1111 / 784 * 100cqw) calc(-756 / 784 * 100cqw); opacity: .23; }
/* Footer (every page): a rounded near-black card with the brand waves over its left half (drawn as big as in the
   contact form). Top: white Abnexia logo, the Playfair tagline, newsletter, socials | three link columns. Then the legal row. */
.site-footer { padding: 0 clamp(8px, 1.1vw, 20px) clamp(8px, 1.1vw, 20px); }
.site-footer__card { position: relative; isolation: isolate; overflow: hidden; border-radius: clamp(14px, 1.4vw, 24px); background: #0d0d0d; color: #fff;
  padding: clamp(28px, 3.4vw, 64px) clamp(20px, 3.4vw, 64px) clamp(16px, 2.2vw, 40px); }
/* waves: the form's scale (pattern = 2.458 x the 784px form card); the crest runs diagonally, so the left half is
   covered with a clear top-right corner; the right edge fades out instead of stopping on a hard line */
.site-footer__pattern { --ps: calc(min(784px, 100vw - 40px) * 2.458); position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: 50%; pointer-events: none;
  background: url(../img/shared/pattern/pattern.svg) calc(var(--ps) * -.17) calc(var(--ps) * -.27) / var(--ps) auto no-repeat; opacity: .13;
  -webkit-mask: linear-gradient(90deg, #000 70%, transparent); mask: linear-gradient(90deg, #000 70%, transparent); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 380px) auto; justify-content: space-between; gap: 40px clamp(32px, 6vw, 120px); }
.site-footer__logo { display: block; width: clamp(150px, 10vw, 190px); height: auto; margin-bottom: clamp(16px, 1.4vw, 24px); }
.site-footer__tagline { font: 700 clamp(22px, 1.6vw, 30px)/1.15 var(--f-display); letter-spacing: -.005em; }
.site-footer__tagline .m-acc { font-style: italic; color: var(--c-blue); }
.site-footer__pitch { margin-top: 8px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.site-footer__news { margin-top: 18px; }
.site-footer__row { display: flex; gap: 8px; }
.site-footer__news .field { flex: 1; min-width: 0; }
.site-footer__news .field input { height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; background: transparent;
  font-size: 14px; text-align: left; text-align-last: left; }
.site-footer__news .field input::placeholder { color: rgba(255, 255, 255, .5); }
.site-footer__news .field input:focus { border-color: var(--c-blue); }
.site-footer__join { flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--c-blue); color: #fff;
  font: 600 14px/1 var(--f-body); cursor: pointer; transition: background .2s; }
.site-footer__join:hover { background: var(--c-blue-hover); }
.site-footer__news .consent { margin-top: 10px; gap: 8px; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .6); }
.site-footer__news .consent input { width: 15px; height: 15px; }
.site-footer__status { margin-top: 8px; font-size: 13px; }
.site-footer__status:empty { display: none; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 32px; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; color: #fff;
  transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: #fff; color: #0d0d0d; border-color: #fff; }
.social svg { width: 16px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 28px clamp(32px, 6vw, 110px); align-content: start; }
.site-footer__head { margin-bottom: 14px; font: 700 14px/1.2 var(--f-body); }
.site-footer__cols ul { display: grid; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.site-footer__cols a { text-decoration: none; transition: color .2s; }
.site-footer__cols a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(36px, 4vw, 72px); padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: rgba(255, 255, 255, .5); }
.site-footer__policies { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__policies a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer__policies a:hover { color: #fff; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   DESIGN PAGE
   ========================================================= */
/* Hero: full-bleed mockup wall, dark veil, copy aligned to the container */
.hero { position: relative; display: grid; align-items: center; overflow: hidden;
  min-height: max(520px, min(calc(1014 * var(--u)), calc(100svh - var(--header-h) - var(--strip-h)))); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(33, 35, 36, .92) 0%, rgba(33, 35, 36, .72) 40%, rgba(33, 35, 36, .5) 100%); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(48px, 5vw, 96px) clamp(40px, 4vw, 72px); }
.hero__title { font-size: var(--fs-hero); line-height: 1.25; }
.hero__text { max-width: 34.5em; margin-block: var(--stack); }

/* Client strip: blue band, logos drifting, edges fading into the page */
:root { --strip-h: max(48px, calc(62 * var(--u))); }
.clients { position: relative; height: var(--strip-h); overflow: hidden; background: var(--c-blue); }
.clients::before, .clients::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 17.5%; pointer-events: none; }
.clients::before { left: 0; background: linear-gradient(90deg, var(--c-bg), transparent); }
.clients::after { right: 0; background: linear-gradient(-90deg, var(--c-bg), transparent); }
/* 13 logos: duration scaled from the 7-logo strip so the drift is 1.2x the previous speed */
.clients__track { display: flex; width: max-content; height: 100%; animation: marquee 48s linear infinite; }
.clients:hover .clients__track { animation-play-state: paused; }
.clients__list { display: flex; align-items: center; gap: clamp(48px, 8vw, 150px); padding-right: clamp(48px, 8vw, 150px); }
.clients__list li { display: grid; place-items: center; }
.clients__list img { grid-area: 1 / 1; height: calc(max(18px, calc(26 * var(--u))) * var(--s, 1)); width: auto; transition: opacity .35s var(--ease); }
.clients__list img + img { opacity: 0; }
.clients__list li:hover img { opacity: 0; }
.clients__list li:hover img + img { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Identity & Branding: bento grid (column widths from the 1920 artboard) */
.carousel__slides { display: grid; }
.bento {
  grid-area: 1 / 1; display: grid; gap: clamp(8px, .73vw, 14px);
  grid-template-columns: 212fr 190fr 234fr 442fr 434fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1568 / 554;
  grid-template-areas: "a a c t2 e" "b t1 c d e";
  visibility: hidden; transition: visibility 0s .32s;
}
.bento.is-active { visibility: visible; transition-delay: 0s; }
/* Slide change: each card folds away towards a random edge (--o / --s, 0.2s or 0.3s = --d, set in main.js),
   then the next slide's cards unfold from their own random edge */
.bento > div { min-width: 0; min-height: 0; overflow: hidden; transform-origin: var(--o, center);
  transform: var(--s, scale(0)); transition: transform var(--d, .3s) cubic-bezier(.55, 0, .45, 1); }
.bento.is-active > div { transform: none; transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .bento > div { transition: none; } }
.bento img { width: 100%; height: 100%; object-fit: cover; }
.bento__a { grid-area: a; } .bento__b { grid-area: b; } .bento__c { grid-area: c; } .bento__d { grid-area: d; } .bento__e { grid-area: e; }
.bento__t1, .bento__t2 { display: flex; align-items: center; }
.bento__t1 { grid-area: t1; padding-left: 6%; }
.bento__t2 { grid-area: t2; justify-content: center; }
.bento__t1 img { width: calc(var(--w) / 190 * 100%); height: auto; object-fit: contain; }
.bento__t2 img { width: calc(var(--w) / 442 * 100%); height: auto; object-fit: contain; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: clamp(20px, 2.6vw, 50px); }
.dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--c-text); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.dots button[aria-current="true"] { background: var(--c-blue); }
.dots button::before { content: ""; display: block; margin: -10px; padding: 12px; } /* bigger hit area */

/* Pinned sections (navigator, journey): the wrapper is made taller in main.js by the inner scroll distance;
   the visual sticks just under the nav bar and the page scroll drives its inner scroll */
/* Both fill the visible screen under the nav bar on every device: same width (the content column) and
   the full remaining height, with an equal 12px gap above and below */
/* shared "floating window" shadow: browser window, journey board, contact form */
:root { --float-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 70px rgba(0, 0, 0, .35); }
:root { --pin-gap: 12px; --pin-top: calc(var(--header-h) + var(--pin-gap)); }
.pin-sticky { position: sticky; top: var(--pin-top); height: calc(100svh - var(--pin-top) - var(--pin-gap)); min-height: 320px; }

/* UI / UX: Safari-style window (macOS 26 look). The toolbar takes the colour of the open site, like Safari's tinted tab bar;
   controls are liquid-glass capsules. Sizes in cqw so the window scales as one piece. */
.safari { --fg: #fff; --glass: rgba(255, 255, 255, .14); --glass-hi: rgba(255, 255, 255, .5); --glass-lo: rgba(255, 255, 255, .1); --hover: rgba(255, 255, 255, .14);
  container-type: inline-size; display: flex; flex-direction: column; height: 100%;
  overflow: hidden; border-radius: clamp(10px, 1.1vw, 18px); background: var(--tint);
  box-shadow: var(--float-shadow); transition: background-color .5s var(--ease); }
.safari[data-theme="light"] { --fg: #1d1d1f; --glass: rgba(255, 255, 255, .7); --glass-hi: rgba(255, 255, 255, .95); --glass-lo: rgba(0, 0, 0, .06); --hover: rgba(0, 0, 0, .06); }
.safari__chrome { position: relative; z-index: 2; color: var(--fg); transition: color .5s var(--ease);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 70%), var(--tint); transition: background-color .5s var(--ease), color .5s; }
.safari__toolbar { display: grid; grid-template-columns: auto auto auto 1fr minmax(0, 38cqw) 1fr auto; align-items: center; gap: 1.1cqw; height: max(38px, 3.6cqw); padding: 0 1.3cqw; }
.safari__toolbar > .sf-address { grid-column: 5; }
.safari__toolbar > .sf-group:last-child { grid-column: 7; }
.safari__lights { display: flex; gap: .55cqw; padding-right: .6cqw; }
.safari__lights i { width: max(10px, .85cqw); aspect-ratio: 1; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.safari__lights i:nth-child(2) { background: #febc2e; } .safari__lights i:nth-child(3) { background: #28c840; }
/* liquid glass capsule */
.sf-glass { border-radius: 99px; background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-lo), inset 0 0 0 .5px var(--glass-lo), 0 1px 3px rgba(0, 0, 0, .12), 0 4px 14px rgba(0, 0, 0, .1); }
.sf-group { display: flex; padding: 2px; }
.sf-btn { display: grid; place-items: center; width: max(28px, 2.5cqw); aspect-ratio: 1; padding: 0; border: 0; border-radius: 99px; background: none; color: inherit; cursor: pointer; transition: background-color .2s, opacity .2s; }
.sf-btn:hover:not(:disabled) { background: var(--hover); }
.sf-btn:disabled { opacity: .35; cursor: default; }
.sf-btn svg { width: 62%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sf-address { position: relative; display: flex; align-items: center; justify-content: center; height: max(28px, 2.5cqw); padding: 0 max(30px, 2.6cqw); font-size: max(12px, .95cqw); font-weight: 500; }
.sf-address__url { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sf-address__url span { opacity: .55; }
.sf-address .sf-btn { position: absolute; right: 2px; top: 50%; width: max(24px, 2.1cqw); transform: translateY(-50%); }
.sf-address.is-loading::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5;
  transform-origin: left; animation: sf-load 1s var(--ease) forwards; }
@keyframes sf-load { from { transform: scaleX(0); } to { transform: scaleX(.9); } }
.safari__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45cqw; padding: .1cqw 1.3cqw .7cqw; }
.safari__tabs button { display: grid; place-items: center; height: max(26px, 2.2cqw); border: 0; border-radius: 99px; background: none; color: inherit; cursor: pointer; transition: background-color .25s; }
.safari__tabs button:hover { background: var(--hover); }
.safari__tabs button[aria-selected="true"] { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-lo), 0 1px 3px rgba(0, 0, 0, .12), 0 4px 14px rgba(0, 0, 0, .1); }
.safari__tabs img { height: max(18px, 1.75cqw); width: auto; transition: transform .25s var(--ease); }
.safari__tabs button:hover img { transform: scale(1.08); }
/* page area: the 1920px site is scaled to the window width (--k set in main.js) */
/* the page area takes whatever height is left under the toolbar; the site is scaled to the window width */
.safari__viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.safari__page { position: absolute; inset: 0; overflow: hidden; background: #fff; } /* opaque so the sliding sites don't show through each other */
.safari__page iframe { display: block; width: 1920px; height: calc(100% / var(--k, .8)); border: 0; transform: scale(var(--k, .8)); transform-origin: 0 0; }
.safari__sidebar { position: absolute; z-index: 3; left: .8cqw; top: .8cqw; bottom: .8cqw; width: max(170px, 15cqw); display: flex; flex-direction: column; gap: 2px; padding: .8cqw;
  border-radius: 1.1cqw; color: var(--fg); background: color-mix(in srgb, var(--tint) 55%, transparent); transform: translateX(-110%); transition: transform .35s var(--ease); }
.safari__sidebar.is-open { transform: none; }
/* closed panels must not cover the page (their display rules would otherwise override [hidden]) */
.safari__sidebar[hidden], .safari__overview[hidden] { display: none; }
.safari__sidebar p { padding: .3cqw .6cqw .5cqw; font-size: max(12px, .8cqw); font-weight: 700; opacity: .6; }
.safari__sidebar button { display: flex; align-items: center; gap: .7cqw; padding: .55cqw .6cqw; border: 0; border-radius: .6cqw; background: none; color: inherit; font: 500 max(12px, .95cqw) var(--f-body); text-align: left; cursor: pointer; }
.safari__sidebar button:hover, .safari__sidebar button[aria-current="true"] { background: var(--hover); }
.safari__sidebar img { height: max(14px, 1.2cqw); width: max(16px, 1.4cqw); object-fit: contain; }
.safari__overview { position: absolute; z-index: 3; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 2.5cqw; padding: 6cqw;
  background: color-mix(in srgb, var(--tint) 70%, rgba(0, 0, 0, .4)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; transition: opacity .3s; }
.safari__overview.is-open { opacity: 1; }
.safari__overview button { display: grid; justify-items: center; gap: .6cqw; padding: 0; border: 0; background: none; color: var(--fg); font: 600 max(12px, 1.1cqw) var(--f-body); cursor: pointer; }
.safari__overview span { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; border-radius: 1.2cqw; background: var(--tint);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 14px 30px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.safari__overview button:hover span { transform: scale(1.04); }
.safari__overview span img { height: 30%; }
.safari__overview small { font-weight: 400; opacity: .65; }
.safari__toast { position: absolute; z-index: 4; left: 50%; top: 1.2cqw; padding: .5cqw 1.2cqw; border-radius: 99px; background: rgba(30, 30, 30, .85); color: #fff;
  font-size: max(12px, .9cqw); transform: translate(-50%, -10px); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.safari__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* UI/UX window: the three projects made obvious - each tab shows its name, and a glass project bar (the Journey phase
   bar's style) sits over the bottom of the window; the open project is the white pill */
.safari__tabs button { grid-auto-flow: column; gap: .6em; }
.sf-tab__name { font: 600 max(12px, .95cqw)/1 var(--f-body); letter-spacing: .01em; }
.sf-switch { position: absolute; z-index: 3; left: 50%; bottom: max(14px, 1.4cqw); transform: translateX(-50%); display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 99px; white-space: nowrap;
  background: linear-gradient(135deg, rgba(30, 30, 30, .55), rgba(30, 30, 30, .35)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 30px rgba(0, 0, 0, .3); }
.sf-switch__count { padding: 0 .9em 0 1em; font: 700 max(12px, .85cqw)/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.sf-switch button { display: inline-flex; align-items: center; gap: .55em; height: max(40px, 3.3cqw); padding: 0 1.25em; border: 0; border-radius: 99px;
  background: none; color: #fff; font: 600 max(14px, 1.15cqw)/1 var(--f-body); cursor: pointer; transition: background-color .25s, color .25s; }
.sf-switch button img { width: auto; height: 1.4em; }
.sf-switch button { position: relative; -webkit-tap-highlight-color: transparent; }
.sf-switch button:not([aria-current="true"]):hover { background: rgba(255, 255, 255, .14); }
.sf-switch button[aria-current="true"] { color: #191919; }
/* the white pill under the open project: moved by the Journey bar's spring physics (main.js), so no CSS transition */
.sf-switch__glider { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 99px; background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2); will-change: transform, width; }
@media (max-width: 860px) {
  .sf-switch__count, .sf-tab__name { display: none; }
  .sf-switch button { height: 40px; padding: 0 .8em; font-size: 12px; }
  .safari__open { bottom: 70px; }
}

/* Portfolio: glass project bar with each project's logo (the UI/UX and Journey bars' style). Fixed at the bottom
   while the projects are on screen; the white pill (spring physics, main.js) sits on the project being read. */
.pf-nav { position: fixed; z-index: 40; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; padding: 5px;
  border-radius: 99px; white-space: nowrap;
  background: linear-gradient(135deg, rgba(30, 30, 30, .55), rgba(30, 30, 30, .35)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 30px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translate(-50%, 24px) scale(.96);
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.pf-nav.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.pf-nav a { position: relative; display: grid; place-items: center; height: 44px; padding: 0 1.25em; border-radius: 99px;
  -webkit-tap-highlight-color: transparent; transition: background-color .25s; }
.pf-nav a:not([aria-current]):hover { background: rgba(255, 255, 255, .14); }
.pf-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pf-nav img { width: auto; height: 18px; max-width: 100px; transition: filter .25s; }
.pf-nav a[href="#drmath"] img, .pf-nav a[href="#academia"] img { height: 25px; } /* two-line logos: same optical size */
.pf-nav a[aria-current] img:not(.pf-nav__on) { filter: brightness(0); } /* white logo turns black on the white pill */
/* Dr Math: the mascot is a white silhouette, which would turn into a black blob; on the white pill it swaps (cross-fade)
   for the drawn version instead: white mascot, black outlines and lettering */
.pf-nav a > img { grid-area: 1 / 1; }
.pf-nav__on { opacity: 0; transition: opacity .25s; }
.pf-nav__off { transition: opacity .25s, filter .25s; }
.pf-nav a[aria-current] .pf-nav__on { opacity: 1; }
.pf-nav a[aria-current] .pf-nav__off { opacity: 0; }
.pf-nav__glider { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 99px; background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2); will-change: transform, width; }
@media (max-width: 600px) {
  .pf-nav a { height: 40px; padding: 0 .45em; }
  .pf-nav img { height: 13px; max-width: 66px; }
  .pf-nav a[href="#drmath"] img, .pf-nav a[href="#academia"] img { height: 19px; }
}

/* Your Journey: the blue pin board */
/* the board fills the pinned area; each phase's pins sit in a 1575 x 910 stage scaled to fit (contain) and centred,
   so the composition never distorts whatever the screen shape */
.board { position: relative; overflow: hidden; height: 100%; container-type: size; border-radius: var(--radius); background: #14465f; } /* the Journal's dark blue */
.stage { position: absolute; inset: 0; margin: auto; width: min(100cqw, 100cqh * 1575 / 910); aspect-ratio: 1575 / 910; }
/* tall boards (phones, portrait tablets): a portrait composition on a 1000 x 1800 stage (--px/--py/--pw on each pin),
   same pin scale for every asset, deliverables under the photos */
@container (max-aspect-ratio: 1.2) {
  .stage { width: min(100cqw, 100cqh * 1000 / 1800); aspect-ratio: 1000 / 1800; }
  .stage .pin { left: calc(var(--px) / 1000 * 100%); top: calc(var(--py) / 1800 * 100%); width: calc(var(--pw) / 1000 * 100%); }
  /* the tag bar spans most of a narrow board: stack the deliverables just above it */
  .step .deliverables { bottom: calc(var(--edge) * 1.6 + var(--steps-h) + 18px); } /* above the phase bar */
}
/* dot grid over the whole board (no frame); spacing follows the stage scale so the dots stay square on any board shape */
.board { --sw: min(100cqw, 100cqh * 1575 / 910); box-shadow: var(--float-shadow);
  --edge: clamp(14px, 2.2cqw, 32px); } /* one margin for the board's furniture: scroll bar (top), tag bar and deliverables (bottom) */
/* the dots live on the scrolling track (attachment: local) so they slide with the phases */
.board__track { background: radial-gradient(circle, rgba(255, 255, 255, .55) 1.2px, transparent 1.6px) calc(var(--sw) * 40 / 1575) calc(var(--sw) * 40 / 1575) / calc(var(--sw) * 80 / 1575) calc(var(--sw) * 80 / 1575) local; }
/* Phases sit side by side in a horizontal scroller (snap per phase); drag, swipe, trackpad or the glass bar */
/* Phases sit side by side and scroll freely (no snapping, no entrance animations) */
.board__track { position: absolute; inset: 0; z-index: 1; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none; cursor: grab; outline-offset: -4px; }
.board__track::-webkit-scrollbar { display: none; }
.board__track.is-dragging { cursor: grabbing; user-select: none; }
.board__track.is-dragging img { pointer-events: none; }
.step { position: relative; flex: 0 0 100%; height: 100%; }
/* positions in board px (1575 x 910) */
.pin { position: absolute; left: calc(var(--x) / 1575 * 100%); top: calc(var(--y) / 910 * 100%); width: calc(var(--w) / 1575 * 100%); }
.pin img { width: 100%; height: auto; -webkit-user-drag: none; } /* the assets carry their own shadow */
/* deliverables: pinned to the board's bottom-right corner (outside the scaled stage), baseline level with the tag bar */
.deliverables { position: absolute; z-index: 2; right: var(--edge); bottom: var(--edge); text-align: right; pointer-events: none;
  font: 700 clamp(12px, .63vw, 13px) var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.deliverables p { display: inline-block; margin-bottom: 1.4em; padding-bottom: 4px; opacity: .7;
  background: linear-gradient(#fff, #fff) right bottom / 40% 1.5px no-repeat; }
.deliverables ul { display: grid; gap: .7em; }
.deliverables li { margin-right: -.3em; } /* cancel the trailing letter-spacing so the right edge is flush */

/* Phase bar: liquid glass pill, bottom centre. The white glider is moved by spring physics in main.js
   (follows the scroll, can be dragged, settles with a slight bounce), so it has no CSS transition. */
/* Phase bar: the UI/UX project bar's look and size (dark glass pill, white pill on the current phase, Roboto 600, no caps);
   the white glider is moved by spring physics in main.js (follows the scroll, can be dragged, settles with a slight bounce) */
.board { --steps-fs: max(14px, 1.15cqw); --steps-h: max(40px, 3.3cqw); }
.steps { position: absolute; z-index: 3; left: 50%; bottom: var(--edge); transform: translateX(-50%); display: flex; padding: 5px; border-radius: 99px; touch-action: none;
  white-space: nowrap; background: linear-gradient(135deg, rgba(30, 30, 30, .55), rgba(30, 30, 30, .35));
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 30px rgba(0, 0, 0, .3); }
.steps__glider { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 99px; background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2); will-change: transform, width; }
.steps button { position: relative; height: var(--steps-h); padding: 0 1.25em; border: 0; border-radius: 99px; background: none; color: #fff; cursor: pointer;
  font: 600 var(--steps-fs)/1 var(--f-body); -webkit-tap-highlight-color: transparent; user-select: none; transition: color .25s, background-color .25s; }
.steps button[aria-current] { color: #191919; cursor: grab; }
.steps button:not([aria-current]):hover { background: rgba(255, 255, 255, .14); }
.steps.is-dragging, .steps.is-dragging button { cursor: grabbing; }

/* Scrollbar (not a progress bar): thumb = visible share of the track, draggable */
/* sits along the top edge, inset like the rest, on a faint track so it reads as a scrollbar */
.board__scroll { position: absolute; z-index: 3; left: var(--edge); right: var(--edge); top: var(--edge); height: clamp(3px, .3vw, 5px); cursor: pointer;
  border-radius: 99px; background: rgba(255, 255, 255, .2); }
.board__scroll::before { content: ""; position: absolute; inset: -8px 0; } /* hit area */
.board__scroll span { position: absolute; top: 0; left: 0; width: 25%; height: 100%; border-radius: 99px; background: #fff; cursor: grab; }

/* Contact form card */
.form-card { position: relative; overflow: hidden; width: min(100%, 784px); margin-inline: auto; padding: clamp(28px, 2.6vw, 50px) clamp(24px, 3.6vw, 69px) clamp(28px, 2.6vw, 42px);
  border-radius: var(--radius); background: #191919; box-shadow: var(--float-shadow); }
.form-card > :not(.pattern-crop) { position: relative; }
.form-card__title { font-size: var(--fs-h2); line-height: 1.08; }
.form-card__intro { margin-block: .9em clamp(24px, 2.4vw, 46px); font-size: clamp(.8rem, .7rem + .25vw, 1.125rem); }
.form-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 39px) clamp(16px, 2vw, 38px); }
/* plate behind the fields (card colour) so the pattern stops ~7px around them, as in references/form */
.form-grid::before { content: ""; position: absolute; z-index: -1; inset: calc(-1 * var(--plate)); --plate: clamp(5px, .37vw, 7px);
  border-radius: calc(clamp(14px, 1vw, 20px) + var(--plate)); background: #191919; }
.field { position: relative; display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; height: clamp(36px, 2.1vw, 40px); padding: 0 2.2em; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 99px;
  background: transparent; color: #fff; font: 400 clamp(.9rem, .75rem + .4vw, 1.25rem) var(--f-body); text-align: center; text-align-last: center; appearance: none;
  transition: border-color .2s, background-color .2s;
}
.field select option { background: #191919; color: #fff; }
/* Open list of the dropdowns (Chrome / Edge customizable select; other browsers keep their native list):
   a dark rounded panel like the form, options as pill rows, the chosen one in brand blue */
@supports (appearance: base-select) {
  .field select, .field select::picker(select) { appearance: base-select; }
  .field select { display: flex; align-items: center; justify-content: center; }
  .field select::picker-icon { display: none; } /* the field already draws its own chevrons */
  .field select::picker(select) { margin-block: 8px; padding: 6px; border: 1px solid rgba(255, 255, 255, .14); border-radius: clamp(14px, 1vw, 20px);
    background: rgba(25, 25, 25, .97); color: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    opacity: 0; transform: translateY(-4px); transition: opacity .18s, transform .25s var(--ease), display .25s allow-discrete, overlay .25s allow-discrete; }
  .field select:open::picker(select) { opacity: 1; transform: none; }
  @starting-style { .field select:open::picker(select) { opacity: 0; transform: translateY(-4px); } }
  .field select option { justify-content: center; padding: .65em 1.2em; border-radius: 99px; background: transparent; font: inherit; cursor: pointer; }
  .field select option:hover, .field select option:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
  .field select option:checked { background: var(--c-blue); color: #fff; }
  .field select option::checkmark { display: none; }
  .field select option[value=""] { display: none; } /* the placeholder only shows on the closed field */
}
.has-ring option { cursor: pointer !important; } /* portfolio ring cursor sits under the open list */
.field ::placeholder { color: #fff; opacity: 1; }
.field textarea { height: clamp(110px, 7.7vw, 147px); padding: .8em 1.4em; border-radius: clamp(14px, 1vw, 20px); text-align: left; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-blue); background: rgba(0, 137, 222, .08); }
.field.is-required::after { content: "*"; position: absolute; right: 1em; top: 50%; transform: translateY(-40%); pointer-events: none; font-size: 1.1rem; }
.field--select::after { content: ""; position: absolute; right: 1.1em; top: 50%; width: 10px; height: 16px; transform: translateY(-50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Cpath d='m1.5 5.5 3.5-3.5 3.5 3.5M1.5 10.5 5 14l3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.field.is-invalid input { border-color: #ff6b6b; }
.btn--submit { margin-top: clamp(20px, 2vw, 40px); }
.form-card__status { min-height: 1.5em; margin-top: 14px; font-size: var(--fs-small); }
.form-card__note { margin-top: 12px; font-size: var(--fs-small); color: rgba(255, 255, 255, .55); }
.form-card__note + .form-card__status { margin-top: 4px; }

/* Skip arrow: liquid-glass circle on the right edge, only while the navigator or the journey is pinned.
   Points the scroll direction (flips with a little spring); a click skips the rest of the section. */
.skip-arrow { position: fixed; z-index: 50; right: clamp(12px, 2.4vw, 40px); top: 50%; display: grid; place-items: center;
  width: clamp(42px, 3.2vw, 54px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 28px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transform: translate(14px, -50%) scale(.85);
  transition: opacity .3s, visibility .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1), background-color .2s; }
.skip-arrow.is-on { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.skip-arrow:hover { background-color: rgba(255, 255, 255, .12); }
.skip-arrow:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }
.skip-arrow svg { width: 44%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.skip-arrow.is-up svg { transform: rotate(180deg); }

/* Contact popup: the same form card in a modal over the blurred, dimmed page (opened by every #contact link) */
/* fills the screen (thin margin so it still reads as a popup); the form is a column whose message box takes the
   leftover height, and spacing/title follow the screen height, so it always fits without a scroll bar */
.form-modal { --g: clamp(10px, 1.6vw, 24px); height: calc(100dvh - 2 * var(--g));
  width: min(calc(100vw - 2 * var(--g)), (100dvh - 2 * var(--g)) * 1.15); /* full height, same proportions as the page form (~784 x 680) */ max-width: none; max-height: none;
  margin: auto; padding: 0; overflow: auto; scrollbar-width: none; /* safety net on tiny screens: still scrollable, never a visible bar */
  border: 0; border-radius: var(--radius); background: none; color: inherit; overscroll-behavior: contain; }
.form-modal::-webkit-scrollbar { display: none; }
.form-modal::backdrop { background: rgba(12, 12, 12, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.form-modal .form-card { display: flex; flex-direction: column; width: 100%; min-height: 100%; height: 100%;
  padding: min(4vw, 5.5dvh, 64px) clamp(20px, 5vw, 96px) min(3vw, 4.5dvh, 48px); }
.form-modal .form-card__title { font-size: min(var(--fs-h2), 7.2dvh); }
.form-modal .form-card__intro { margin-block: min(.9em, 1.2dvh) min(2.4vw, 3.4dvh, 46px); }
.form-modal .form-grid { flex: 1; min-height: 0; grid-template-rows: auto auto auto 1fr; gap: min(2vw, 2.4dvh, 39px) clamp(12px, 2vw, 38px); }
.form-modal .field input, .form-modal .field select { height: clamp(32px, 5dvh, 46px); }
.form-modal .field--area, .form-modal .field textarea { height: 100%; min-height: 56px; resize: none; }
.form-modal .btn--submit { align-self: flex-start; margin-top: min(2vw, 3dvh, 40px); }
.form-modal .form-card__note { margin-top: min(12px, 1.4dvh); }
.form-modal .form-card__status { min-height: 1.2em; }
/* close: a thin, minimal cross that turns on hover */
.form-modal__close { position: absolute; z-index: 2; top: clamp(14px, 2vw, 30px); right: clamp(14px, 2vw, 30px); width: 36px; height: 36px;
  border: 0; background: none; color: #fff; cursor: pointer; opacity: .7; transition: opacity .2s, transform .35s var(--ease); }
.form-modal__close::before, .form-modal__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 1.5px;
  border-radius: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.form-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.form-modal__close:hover { opacity: 1; transform: rotate(90deg); }
.form-modal__close:focus-visible { outline: 1.5px solid var(--c-blue); outline-offset: 4px; border-radius: 50%; opacity: 1; }
.form-modal[open] { animation: modal-in .4s var(--ease); }
.form-modal[open]::backdrop { animation: modal-fade .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes modal-fade { from { opacity: 0; } }
html:has(.form-modal[open]) { overflow: hidden; scrollbar-gutter: stable; } /* page can't scroll behind the popup */
/* the portfolio ring cursor sits under the popup: use the normal cursor inside it */
.has-ring .form-modal, .has-ring .form-modal *, .has-ring .form-modal::backdrop { cursor: auto !important; }
.has-ring .form-modal :is(button, select, option, a) { cursor: pointer !important; }
.has-ring .form-modal :is(input, textarea) { cursor: text !important; }
@media (max-width: 860px) { .form-modal .form-grid { grid-template-rows: repeat(5, auto) 1fr; } } /* fields in one column */
/* phones: a full-screen sheet that slides up */
@media (max-width: 600px) {
  .form-modal { width: 100%; height: 100dvh; margin: 0; border-radius: 0; }
  .form-modal .form-card { border-radius: 0; }
  .form-modal[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
}

@media (max-width: 860px) {
  .bento { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-template-areas: "a a" "b c" "t1 c" "t2 t2" "d d" "e e"; }
  .bento__a, .bento__d { aspect-ratio: 835 / 542; } .bento__e { aspect-ratio: 874 / 1109; } .bento__b { aspect-ratio: 424 / 542; }
  .bento__t1 img, .bento__t2 img { width: 80%; }
  .form-grid { grid-template-columns: 1fr; }
}
/* phones only: drop the largest text (t2) and the largest photo (e) so each slide stays compact */
@media (max-width: 600px) {
  .bento { grid-template-areas: "a a" "b c" "t1 c" "d d"; }
  .bento__t2, .bento__e { display: none; }
}

/* =========================================================
   PORTFOLIO PAGE (1920 artboard: panels span x 43-1877)
   ========================================================= */
.container--wide { width: 100%; padding-inline: max(16px, 2.24vw); margin-inline: auto; max-width: 2200px; }
.pf { display: grid; gap: clamp(20px, 1.6vw, 30px); padding-block: clamp(16px, 1.5vw, 29px) clamp(60px, 5.2vw, 100px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: .35em 1em; border-radius: 99px; background: #4d4d4d; font: 700 clamp(12px, .62vw, 13px) var(--f-body); letter-spacing: .02em; }
.tag--blue { background: var(--c-blue); }

/* Photos share one corner radius (Val Iris Instagram posts keep their own baked-in corners);
   "Hello..." and "Branding for us" share one title size */
/* title = 3.82% of the branding card (reference), which is ~47.3vw wide (half the row); "Hello..." uses the same size */
:root { --photo-r: 20px; --fs-pf-title: clamp(22px, 1.806vw, 42px); }

/* Intro card: photo + Hello quote */
.pf-hero { position: relative; overflow: hidden; border-radius: var(--photo-r); container-type: inline-size; }
.pf-hero__bg { width: 100%; height: auto; }
.pf-hero__content { position: absolute; left: 59.5%; top: 50%; transform: translateY(-50%); width: 27%; }
.pf-hero__hello { font: 700 var(--fs-pf-title)/1.2 var(--f-body); }
.pf-hero__hello::after, .pf-hero__name::before { content: ""; display: block; width: 3.2cqw; height: 2px; margin-top: .35em; background: #fff; }
.pf-hero__name::before { margin: 0 0 .7em; background: var(--c-blue); }
.pf-quote { position: relative; margin-block: 3.2cqw 3.6cqw; padding: 1.4cqw 1.6cqw .8cqw; text-align: center; font-size: clamp(12px, 1.05cqw, 18px); line-height: 1.35; }
.pf-quote::before { content: "“"; position: absolute; top: -.75em; left: 50%; transform: translateX(-50%); font: 700 2.4em/1 var(--f-display); }
.pf-quote::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 100% 100%, transparent 58%, rgba(255,255,255,.85) 60%, transparent 62%) left top / 1.6cqw 1.6cqw no-repeat,
              radial-gradient(circle at 0 0, transparent 58%, rgba(255,255,255,.85) 60%, transparent 62%) right bottom / 1.6cqw 1.6cqw no-repeat; }
.pf-quote u { text-underline-offset: 3px; }
.pf-hero__name { margin-bottom: .8em; font-size: clamp(12px, 1.05cqw, 18px); text-transform: uppercase; }

/* Branding for us: card proportions and type from references/various/text-card (1860 x 610 @2x) */
/* measured on the reference (1861 px wide): title 3.82%, underline 5.27% x 2px, body 1.94% / 1.27 line-height,
   text column 16% -> 84%; the card takes half of the row */
/* large screens: hero + "Branding for us" row fill exactly one screen under the nav. The photo keeps its full width
   and is cropped top/bottom only (object-fit), never taller than its natural size nor thinner than 30% of its width.
   Height = screen - nav - top/bottom padding - gap - branding row (half width x card ratio 608/1860). */
@media (min-width: 861px) {
  .pf-hero__bg { object-fit: cover; object-position: 50% 40%;
    height: min(100cqw * 1433 / 3721, max(30cqw, 100svh - var(--header-h) - 2 * clamp(16px, 1.5vw, 29px) - clamp(20px, 1.6vw, 30px)
      - (100cqw - clamp(12px, 1vw, 20px)) / 2 * 608 / 1860)); }
}
.pf-branding { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1vw, 20px); align-items: center; }
.pf-branding__title { display: grid; place-items: center; }
.pf-branding__title img { width: 66%; }
.text-card { position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 1860 / 608; display: flex; flex-direction: column; justify-content: center;
  padding: 2% 15.9% 2% 16%; border-radius: var(--photo-r); background: var(--c-surface); } /* % = of the card's own width (cqw can't measure the container itself) */
.text-card > :not(.text-card__bg) { position: relative; }
/* background = the card exactly as designed (pattern crop), exported text-free from the Portfolio PDF */
.text-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.text-card h2 { font: 700 var(--fs-pf-title)/1.1 var(--f-body); }
/* cqw here = the text column (68.1% of the card), so card-relative values are divided by .681 */
.text-card h2::after { content: ""; display: block; width: 7.74cqw; height: max(1.5px, .29cqw); margin: 1.91cqw 0 3.16cqw; background: #fff; }
.text-card p { font-size: max(12px, 2.85cqw); line-height: 1.27; text-align: justify; hyphens: auto; }

/* Logofolio: dark blue panel (the Journal's) with dot grid, 5-column logo grid */
.logofolio { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); container-type: inline-size;
  padding: 3.5cqw 7.4cqw 4cqw; border-radius: var(--radius); background-color: #14465f;
  background-image: radial-gradient(circle, rgba(255,255,255,.5) 1.2px, transparent 1.6px); background-size: calc(80 / 1860 * 100cqw) calc(80 / 1860 * 100cqw); }
.logofolio__intro { grid-column: 1 / 3; align-self: center; }
.logofolio__intro img { width: 37%; margin-bottom: 2.4cqw; }
/* the quote: same type as the "Branding for us" paragraph (.text-card p), its size worked out from the panel width
   (text card = half the row minus the gap, text column = 68.1% of it; the panel's side padding is 7.4vw each) */
.logofolio__intro p { max-width: 30em; font-size: max(12px, calc(.9705cqw + .1436vw - clamp(12px, 1vw, 20px) * .0097)); line-height: 1.27; text-align: justify; hyphens: auto; }
.logofolio__grid { display: contents; }
.logofolio__grid li { display: grid; place-items: center; height: 11.5cqw; }
/* contain box: wide logos cap on width, tall logos on height (matches the reference balance) */
.logofolio__grid img { width: 10.5cqw; height: 5cqw; object-fit: contain; }
.logofolio__color { display: none; }
/* Hover reveal (mouse only, main.js): a dark square follows the cursor and shows the logos in colour inside it */
.logofolio.has-reveal { cursor: none; }
.logofolio__reveal { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle, rgba(255,255,255,.3) 1.2px, transparent 1.6px) 0 0 / calc(80 / 1860 * 100cqw) calc(80 / 1860 * 100cqw), #1b1b1b;
  clip-path: inset(var(--t, 50%) var(--r, 50%) var(--b, 50%) var(--l, 50%)); }
.logofolio__reveal > img { position: absolute; display: block; object-fit: contain; }
.logofolio__intro--copy { position: absolute; margin: 0; }
.logofolio__spot { position: absolute; z-index: 3; left: 0; top: 0; pointer-events: none; border: 1px solid rgba(255, 255, 255, .45); opacity: 0; }
.logofolio__cursor { position: absolute; z-index: 4; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; pointer-events: none;
  border: 1.5px solid #fff; border-radius: 50%; opacity: 0; transition: opacity .2s; }
.logofolio.is-in .logofolio__cursor { opacity: 1; }

/* Portfolio page: the cursor is the same small ring everywhere (main.js); it grows a little over links and buttons */
.has-ring, .has-ring * { cursor: none !important; }
.cursor-ring { position: fixed; z-index: 1000; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; pointer-events: none;
  border: 1.5px solid #fff; border-radius: 50%; mix-blend-mode: difference; opacity: 0;
  transition: opacity .2s, width .2s var(--ease), height .2s var(--ease), margin .2s var(--ease); }
.cursor-ring.is-on { opacity: 1; }
.cursor-ring.is-link { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-ring.is-hidden { opacity: 0; }

/* Projects */
.project { display: grid; gap: clamp(14px, 1.2vw, 22px); margin-top: clamp(24px, 2.6vw, 50px); scroll-margin-top: calc(var(--header-h) + 8px); }
.project__no { display: flex; align-items: center; gap: 24px; font-size: clamp(1.4rem, 1rem + 1vw, 2.25rem); white-space: nowrap; }
.project__no::before, .project__no::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.project__head { position: relative; overflow: hidden; display: grid; grid-template-columns: 44.5% 1fr; align-items: center; min-height: calc(190 / 1834 * 100cqw);
  border-radius: var(--radius); background: var(--c-surface); container-type: inline-size; }
.project__head > :not(.pattern-crop) { position: relative; }
.project__pattern { inset: 0; background-size: calc(1927 / 1834 * 100cqw) auto; background-position: calc(-1165 / 1834 * 100cqw) calc(-1045 / 1834 * 100cqw); opacity: .13; }
.project__logo { display: grid; place-items: center; align-self: stretch; padding: 2cqw; border-right: 1px solid rgba(255,255,255,.6); margin-block: 2cqw; }
.project__logo img { width: 14cqw; height: 4.6cqw; object-fit: contain; }
.project__logo--wide img { width: 17.5cqw; height: 6.6cqw; } /* The Bull: horizontal lockup, a touch larger as in the reference */
.project__info { padding: 2.2cqw 6cqw 2.2cqw 2.4cqw; }
.project__info p { margin-bottom: 1.1em; font-size: clamp(12px, .98cqw, 18px); line-height: 1.35; }

.gallery { --pad: clamp(6px, .55vw, 10px); display: grid; gap: var(--pad); padding: var(--pad); border-radius: calc(var(--photo-r) + var(--pad)); background: var(--c-surface); }
.gallery img { width: 100%; height: auto; border-radius: var(--photo-r); }
.gallery img.no-r { border-radius: 0; } /* cut-out visuals (EchoEdge palette / orca, Val Iris poster) */
/* EchoEdge palette: the framed orca photo sits at 67.7% of the image; shift it so that frame is centred on large screens */
@media (min-width: 861px) { .gallery .ee-palette { transform: translateX(-17.7%); } }
/* Tkellem signature on the last Academia photo, bottom-left */
.signed { position: relative; }
.gallery .signed__mark { position: absolute; left: 3.5%; bottom: 5%; width: 22%; height: auto; border-radius: 0; pointer-events: none; }


/* Val Iris collage, rebuilt from the assets: reference positions on a 1834 x 1790 artboard (large screens) */
.vi-collage { position: relative; aspect-ratio: 1834 / 1790; }
.vi-collage .vi { position: absolute; left: calc(var(--x) / 1834 * 100%); top: calc(var(--y) / 1790 * 100%); width: calc(var(--w) / 1834 * 100%); height: auto; }
.vi-collage .vi-roll, .vi-collage .vi-pattern, .vi-collage .vi-leaf { border-radius: 0; } /* banner, strip and leaves keep their own shapes; posts use the photo radius */
.vi-collage .vi-leaf { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scaleX(var(--f, 1)); pointer-events: none; }
@media (max-width: 860px) {
  .vi-collage { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad);
    grid-template-areas: "staff staff" "roll p15" "roll p19" "p16 p17" "p20 p21" "pat pat"; }
  .vi-collage .vi { position: static; width: 100%; }
  .vi-collage .vi-leaf { display: none; }
  .vi-staff { grid-area: staff; } .vi-roll { grid-area: roll; height: 100%; object-fit: cover; } .vi-pattern { grid-area: pat; }
  .vi-p15 { grid-area: p15; } .vi-p19 { grid-area: p19; } .vi-p16 { grid-area: p16; } .vi-p17 { grid-area: p17; } .vi-p20 { grid-area: p20; } .vi-p21 { grid-area: p21; }
}
.row-split { display: grid; grid-template-columns: var(--cols); gap: inherit; }
.stack { display: grid; grid-template-rows: 1fr 1fr; gap: inherit; }
.cell { position: relative; min-height: 0; }
.cell img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.row-center { display: grid; place-items: center; padding-block: 2%; }

.posters { overflow: hidden; padding-block: 2%; border-radius: var(--photo-r); background: #f0b43f; }
.posters__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.gallery .posters img { border-radius: 30px; } /* Instagram posters: rounder, hides the white corners baked into the files */
.posters__list { display: flex; gap: clamp(10px, 1vw, 20px); padding-right: clamp(10px, 1vw, 20px); }
.posters__list li { width: clamp(180px, 22vw, 425px); }

.pf-contact { padding-top: clamp(40px, 5vw, 100px); }

@media (max-width: 860px) {
  /* hero: the photo is zoomed to its left part (PORTFOLIO title left, the person right, nobody cut);
     Hello, quote, name and tags follow as plain text on the page background */
  .pf-hero { overflow: visible; border-radius: 0; }
  .pf-hero__bg { aspect-ratio: 1.5; object-fit: cover; object-position: 7% 50%; border-radius: var(--photo-r); }
  .pf-hero__content { position: static; transform: none; width: auto; padding: clamp(28px, 7cqw, 44px) clamp(4px, 2cqw, 16px) 0; }
  .pf-hero__hello::after { width: 10cqw; }
  .pf-quote { margin-block: clamp(32px, 8cqw, 44px) clamp(28px, 7cqw, 40px); padding: 4cqw 5cqw 2.5cqw; font-size: clamp(14px, 3.4cqw, 18px); }
  .pf-quote::after { background-size: 5cqw 5cqw; }
  .pf-hero__name { font-size: clamp(13px, 3.4cqw, 18px); }
  .pf-hero__name::before { width: 10cqw; }
  .pf-branding { grid-template-columns: 1fr; }
  .text-card { aspect-ratio: auto; padding: clamp(32px, 9cqw, 64px) clamp(24px, 8cqw, 64px); }
  .text-card h2::after { width: 12cqw; }
  .text-card p { font-size: clamp(14px, 3.6cqw, 17px); }
  /* logos bigger and legible */
  .logofolio { grid-template-columns: repeat(3, 1fr); padding: 7cqw 5cqw; }
  .logofolio__intro { grid-column: 1 / -1; margin-bottom: 4cqw; }
  .logofolio__intro img { width: 30%; }
  .logofolio__intro p { font-size: clamp(14px, calc(3.6cqw + .36vw - clamp(24px, 8vw, 64px) * .072), 17px); } /* = .text-card p (one column; panel side padding 5vw) */
  .logofolio__grid li { height: 24cqw; } .logofolio__grid img { width: 26cqw; height: 11cqw; }
  .project__head { grid-template-columns: 1fr; }
  .project__logo { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.6); margin: 0 6cqw; padding-block: 6cqw; }
  .project__logo img { width: 40cqw; height: 12cqw; }
  .project__logo--wide img { width: 52cqw; height: 17cqw; }
  .project__info { padding: 6cqw; }
}
@media (max-width: 600px) {
  .logofolio { grid-template-columns: repeat(2, 1fr); padding: 9cqw 6cqw; }
  .logofolio__intro img { width: 42%; }
  .logofolio__intro p { font-size: clamp(14px, calc(3.6cqw + .432vw - clamp(24px, 8vw, 64px) * .072), 17px); } /* = .text-card p (panel side padding 6vw here) */
  .logofolio__grid li { height: 34cqw; } .logofolio__grid img { width: 38cqw; height: 16cqw; }
}

/* =========================================================
   HOME PAGE - replica of references/pdf/page-home.pdf (1920 artboard).
   Every size is the artboard value in px x --u (1 artboard px = 100vw / 1920), with a floor for small screens.
   Type (measured from the PDF):
     Titles      Playfair Display 60 / 1.093, Regular (section titles) or Bold (titles inside cards); hero headline SemiBold, blue
     Card titles Playfair Display ExtraBold, 12.2% of the card width (48 on the centre card)
     Body        Roboto Flex Regular 18 / 36 (hero, services), 28 / 48 (method), 28 / 36 (about), 28 (case)
     Labels      Roboto Flex 36 Medium (Case Study), Roboto 21 (card lists), Roboto 19 / 1.33 (quotes), Roboto Bold 18 / 11 (names, roles)
     Buttons     Roboto Flex Bold 21, uppercase, 209 x 41, radius 3
   Patterns (brand waves, pattern.svg) cropped per card at 13% white (navy and black cards) or 23% (service cards).
   ========================================================= */
:root { --apple: cubic-bezier(.32, .72, 0, 1); }
.home { --u: calc(100vw / 1920); --hm: max(16px, calc(113 * var(--u))); } /* exact artboard unit (no floor) | page margin of the cards: 113 */
.home .container { max-width: none; padding-inline: var(--hm); }

/* header (all pages, the Journal mockup's): white bar, navy type, blue logo, navy outlined Contact; larger nav type from the
   Home mockup; the white glass state on scroll is unchanged */
.site-header:not(.is-scrolled) { background: #fff; color: #023047; box-shadow: 0 1px 0 rgba(2, 48, 71, .08); }
.site-header:not(.is-scrolled) .site-header__mark { background: var(--c-blue); }
@media (min-width: 1081px) {
  .site-header:not(.is-scrolled) .nav-cta { border-color: #023047; color: #023047; background: transparent; }
  .site-header:not(.is-scrolled) .nav-cta:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
}
@media (min-width: 1081px) {
  .site-header__inner.container { padding-inline: 11.9vw; }
  .site-nav ul { gap: calc(23 * var(--u)); }
  .site-nav ul a { font: 600 max(12px, calc(18 * var(--u)))/1 var(--f-ui); letter-spacing: .02em; }
  .site-nav ul a::after { bottom: -5px; height: 2px; }
  .site-nav__end { gap: calc(35 * var(--u)); }
  .site-nav .lang { display: flex; align-items: center; gap: .45em; font: 600 max(12px, calc(18 * var(--u)))/1 var(--f-ui); }
  .nav-cta { width: max(120px, calc(209 * var(--u))); height: max(30px, calc(41 * var(--u))); border-radius: 3px;
    font: 600 max(12px, calc(21 * var(--u)))/1 var(--f-ui); letter-spacing: .03em; }
}
.page-home .form-card__pattern, .page-marketing .form-card__pattern { opacity: .11; }

/* shared pieces */
.home-sec { position: relative; }
.home-title { text-align: center; font: 400 max(28px, calc(60 * var(--u)))/1.093 var(--f-display); }
.home-title--left { text-align: left; }
.home-text { font: 400 max(14px, calc(18 * var(--u)))/2 var(--f-ui); color: #fffef8; }
.home-text--center { max-width: 40em; margin-inline: auto; text-align: center; }
/* pattern crop inside a card: size and offset in artboard px (pattern drawn 1485 wide on the 1920 artboard) */
.home-pattern { position: absolute; inset: 0; pointer-events: none; opacity: .13; border-radius: inherit;
  background: url(../img/shared/pattern/pattern.svg) var(--px) var(--py) / calc(1485 * var(--u)) auto no-repeat; }

/* 01 Hero: the panorama (3841 x 1463) full width, 17 under the nav; everything on it in cqw of the artwork */
.home-hero { padding: calc(17 * var(--u)) 0 max(28px, calc(87 * var(--u))); }
/* hero + logo strip = one screen: the strip lands on the bottom edge. Tall screens: spare height shared above and below;
   short screens: the gap above the strip shrinks (87 -> 12px) so the strip still fits. 731.4 = 17 + artwork 731.4 - 58 + buttons 41 */
@media (min-width: 861px) {
  .home-hero { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--header-h) - var(--strip-h));
    padding-bottom: clamp(12px, calc(100svh - var(--header-h) - var(--strip-h) - 731.4 * var(--u)), calc(87 * var(--u))); }
}
.home-hero__stage { position: relative; container-type: inline-size; aspect-ratio: 3841 / 1463; }
.home-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q500 346 1000 14V981Q500 655 0 981Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q500 346 1000 14V981Q500 655 0 981Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.home-hero__welcome, .home-hero__title, .home-hero__text { position: absolute; left: 50%; transform: translate(-50%, -50%); text-align: center; }
/* centres measured on the mockup (share of the artwork height): welcome 24.5%, headline 49.7%, text 72.3% */
.home-hero__welcome { top: 24.5%; display: flex; align-items: center; gap: .55em; white-space: nowrap;
  font: 600 .9375cqw/1 var(--f-ui); letter-spacing: .02em; text-transform: uppercase; color: #191919; }
.home-hero__welcome img { height: .78em; width: auto; }
.home-hero__title { top: 49.7%; width: 100%; font: 600 3.125cqw/1.093 var(--f-display); color: var(--c-blue); }
.home-hero__text { top: 72.3%; width: 42cqw; font: 500 1.35cqw/1.45 var(--f-ui); color: #191919; } /* the punch line under the headline */
/* the buttons sit under the bottom arc (28 above the artwork's lower edge) */
.home-hero__cta { position: relative; z-index: 1; margin-top: calc(-58 * var(--u)); } /* raised 30 above the mockup's spot */

/* 02 Services: cover-flow of five cards. Centre card 393 x 529 (radius 30), sides 86%, outer 67%; positions from main.js.
   Every card is the centre size, scaled per slot; inner sizes in cqw of the card. */
#services { overflow-x: clip; padding-top: max(36px, calc(61 * var(--u))); }
#services .home-title { margin-bottom: max(28px, calc(79 * var(--u))); }
.svc { --cw: clamp(150px, 20.47vw, 460px); position: relative; }
.svc__track { position: relative; height: calc(var(--cw) * 529 / 393); padding: 0; }
.svc-card { --s: 1; position: absolute; left: 50%; top: 50%; width: var(--cw); aspect-ratio: 393 / 529; overflow: hidden; container-type: inline-size;
  border-radius: calc(var(--cw) * .0768); color: #fff; background: #353b3e; cursor: pointer; z-index: calc(3 - var(--d, 0));
  transform: translate(calc(-50% + var(--x, 0px)), -50%) scale(var(--s));
  transition: transform .9s var(--apple), opacity .6s var(--apple), translate .45s var(--apple), box-shadow .45s var(--apple); }
.svc-card.is-jump { transition: none; }
/* hover (mouse): the card lifts a little on a soft shadow; the whole card is a link to its service page (main.js) */
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover { translate: 0 -12px; box-shadow: 0 26px 50px rgba(0, 0, 0, .38); }
}
.svc-card--blue { background: var(--c-blue); }
.svc-card--dark { background: #181818; }
.svc-card > * { position: relative; z-index: 2; }
.svc-card > .svc-card__bg { position: absolute; z-index: 0; max-width: none; }
.svc-card__bg--dt { inset: 0; width: 100%; height: 100%; object-fit: cover; }                           /* the artwork is the whole card (handshake from 37% down) */
.svc-card__bg--bi { left: -124.9%; top: -32.5cqw; width: 299.4%; height: auto; opacity: .24; }           /* hands drawing, dimmed */
.svc-card__bg--ux { left: -74.7%; top: 0; width: 224.4%; height: auto; opacity: .24; }                  /* the laptop, dimmed */
.svc-card--photo::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 max(1.5px, .6cqw) #fff; pointer-events: none; }
.svc-card > .svc-card__pattern { position: absolute; z-index: 1; inset: 0; opacity: .23;
  background: url(../img/shared/pattern/pattern.svg) -187cqw -64.5cqw / 378cqw auto no-repeat; }
.svc-card__title { padding: 7cqw 5cqw 0 6.1cqw; font: 800 12.2cqw/1.117 var(--f-display); }
/* a title with a word too long for the card at the standard size (French "& Accompagnement") */
.svc-card__title--fit { font-size: 10.4cqw; }
.svc-card__title::after { content: ""; display: block; width: 41.5cqw; height: 3.56cqw; margin-top: 5.2cqw; background: #fff; }
.svc-card--accent .svc-card__title::after { background: var(--c-blue); }
/* Apple-style morph: the pill of a side card and the list box of the centre card are ONE shape (same width): on a side card the
   box is clipped down to its bottom strip, fully round, and shifted to the pill's spot (centred, 5cqw from the bottom). */
.svc-card > .svc-card__list, .svc-card > .svc-card__go { position: absolute; }
.svc-card__list { left: 5.1cqw; bottom: 4.83cqw; width: 62.1cqw; padding: 3.2cqw 4.3cqw 4.6cqw; border-radius: 3.9cqw; background: rgba(255, 255, 255, .77);
  color: #191919; font: 400 5.34cqw/1.25 var(--f-body);
  transform: translate(13.9cqw, .2cqw); clip-path: inset(calc(100% - 7.7cqw) 0 0 0 round 3.85cqw);
  transition: transform .8s var(--apple), clip-path .8s var(--apple); }
.svc-card.is-active .svc-card__list { transform: none; clip-path: inset(0 0 0 0 round 3.9cqw); transition-delay: .18s; }
.svc-card__list li { padding: .13em 0 .12em; border-bottom: 1px solid #353c3f; opacity: 0; transform: translateY(.5em); transition: opacity .2s, transform .2s; }
.svc-card.is-active .svc-card__list li { opacity: 1; transform: none; transition: opacity .45s var(--apple), transform .6s var(--apple);
  transition-delay: calc(.5s + var(--n, 0) * .06s); }
.svc-card__list li:nth-child(2) { --n: 1; } .svc-card__list li:nth-child(3) { --n: 2; } .svc-card__list li:nth-child(4) { --n: 3; }
.svc-card__list li:nth-child(5) { --n: 4; } .svc-card__list li:nth-child(6) { --n: 5; }
.svc-card__go { right: 4.3cqw; bottom: 4.83cqw; display: grid; place-items: center; width: 17.8cqw; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .77); color: #181818; opacity: 0; transform: scale(.4); pointer-events: none;
  transition: opacity .25s, transform .3s var(--apple), background-color .2s; }
.svc-card.is-active .svc-card__go { opacity: 1; transform: none; pointer-events: auto; transition: opacity .4s .6s, transform .7s .6s var(--apple), background-color .2s; }
.svc-card.is-active .svc-card__go:hover { background: #fff; transform: translate(2px, -2px); transition-delay: 0s; }
.svc-card__go svg { width: 46%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
/* the row can be dragged (mouse, pen or touch; vertical swipes still scroll the page) */
.svc__track { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.svc__track img, .svc__track a { -webkit-user-drag: none; }
.svc.is-dragging .svc__track, .svc.is-dragging .svc-card { cursor: grabbing; }
/* pause / previous / next under the cards (liquid-glass circles, .glass-btn) */
.svc__controls { display: flex; justify-content: center; gap: max(10px, calc(14 * var(--u))); margin-top: max(16px, calc(30 * var(--u))); }
.svc__btn svg { width: 50%; }
.svc__btn .i-play { display: none; fill: currentColor; stroke: none; }
.svc.is-paused .i-pause { display: none; } .svc.is-paused .i-play { display: block; }
#services .home-text { margin-top: max(20px, calc(36 * var(--u))); }
.home-btns { margin-top: max(20px, calc(53 * var(--u))); }

/* 03 Case study: navy card 1693 x 390 (radius 31), photo frame 446 x 362 on the left, waves behind */
#case-study { padding-top: max(40px, calc(79 * var(--u))); }
.case { position: relative; overflow: hidden; display: grid; grid-template-columns: calc(446 * var(--u)) 1fr; align-items: center;
  padding: calc(15 * var(--u)) calc(20 * var(--u)) calc(13 * var(--u)); border-radius: max(14px, calc(31.4 * var(--u))); background: #14465f; }
.case__pattern { --px: calc(-555 * var(--u)); --py: calc(-697 * var(--u)); }
.case > :not(.home-pattern) { position: relative; }
.case__media { display: flex; flex-direction: column; aspect-ratio: 446 / 362; padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(12 * var(--u));
  border-radius: max(10px, calc(17.8 * var(--u))); background: rgba(255, 255, 255, .89); }
.case__photo { flex: 1; min-height: 0; overflow: hidden; border-radius: max(6px, calc(10 * var(--u))); background: #c9d3d8; }
.case__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.case__meta { display: flex; justify-content: space-between; align-items: center; margin-top: calc(13 * var(--u)); padding: 0 calc(12 * var(--u)) 0 calc(11 * var(--u));
  font: 400 max(12px, calc(18 * var(--u)))/1 var(--f-ui); color: #191919; }
.case__tag { display: inline-grid; place-items: center; min-width: calc(88 * var(--u)); height: calc(25 * var(--u)); min-height: 18px; padding: 0 .7em;
  border-radius: 99px; background: #fff; color: var(--c-blue); font-weight: 500; }
.case__body { padding-left: calc(83 * var(--u)); }
.case__label { display: inline-block; padding-bottom: calc(15 * var(--u)); border-bottom: max(4px, calc(8 * var(--u))) solid var(--c-blue);
  font: 500 max(18px, calc(36 * var(--u)))/1.2 var(--f-ui); }
.case__title { margin-top: calc(7 * var(--u)); font: 700 max(26px, calc(60 * var(--u)))/1.093 var(--f-display); }
.case__text { margin-top: calc(24 * var(--u)); font: 400 max(15px, calc(28 * var(--u)))/1.3 var(--f-ui); }
.home .case__btn { width: max(210px, calc(336 * var(--u))); margin-top: max(16px, calc(21 * var(--u))); }

/* 04 Methodology: title + text on the left, the process graph (528 wide) on the right */
#method { padding-top: max(32px, calc(52 * var(--u))); } /* to the top of the graph (the taller column) */
.method { display: grid; grid-template-columns: 1fr calc(528 * var(--u)); align-items: center; column-gap: calc(60 * var(--u));
  padding-right: calc(144 * var(--u) + var(--hm)) !important; }
.method__text { padding-left: calc(25 * var(--u)); }
.method__lead { max-width: 29em; margin-top: max(18px, calc(45 * var(--u))); font: 400 max(16px, calc(28 * var(--u)))/1.714 var(--f-ui); }
.method__diagram { width: 100%; height: auto; }
/* big screens: the process graph 1.4x larger (528 -> 739 artboard px), on Home and Marketing; the Marketing block
   gives back some of its right margin so the text beside it keeps a comfortable width */
@media (min-width: 1440px) {
  .method { grid-template-columns: 1fr calc(739 * var(--u)); }
  .mk-method { grid-template-columns: 1fr calc(739 * var(--u)) !important; padding-right: calc(228 * var(--u)) !important; }
}

/* 05 About: black card 1693 x 390, waves on the left, two outlined number boxes (254 x 148) on the right */
#about { padding-top: max(40px, calc(79 * var(--u))); }
.about { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr calc(254 * var(--u)); align-items: center; column-gap: 40px;
  min-height: calc(390 * var(--u)); padding: calc(36 * var(--u)) calc(284 * var(--u)) calc(36 * var(--u)) calc(40 * var(--u));
  border-radius: max(14px, calc(31.4 * var(--u))); background: #181818; }
.about__pattern { --px: calc(-680 * var(--u)); --py: calc(-697 * var(--u)); }
.about > :not(.home-pattern) { position: relative; }
.about__title { font: 700 max(26px, calc(60 * var(--u)))/1.093 var(--f-display); }
.about__lead { max-width: 28em; margin-top: max(16px, calc(52 * var(--u))); font: 400 max(16px, calc(28 * var(--u)))/1.286 var(--f-ui); }
.about__stats { display: grid; gap: calc(23 * var(--u)); padding: 0; }
.about-stat { display: grid; justify-items: center; align-content: center; gap: calc(14 * var(--u)); min-height: calc(148 * var(--u)); padding: 12px;
  border: 2px solid var(--c-blue); border-radius: max(14px, calc(31.4 * var(--u))); text-align: center; }
.about-stat__n { font: 500 max(28px, calc(48 * var(--u)))/1.1 var(--f-display); }
.about-stat__label { font: 400 max(13px, calc(19.9 * var(--u)))/1.3 var(--f-body); }

/* 06 Testimonials: navy band (radius 30) with waves on the left, three frosted quote boxes 531 x 136 */
#testimonials { padding-top: max(36px, calc(60 * var(--u))); }
#testimonials .home-title { margin-bottom: max(28px, calc(90 * var(--u))); }
.quotes__list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(24 * var(--u)); padding: 0; }
.quote { display: flex; flex-direction: column; align-items: flex-start; }
.quote__box { flex: 1; align-self: stretch; } /* the three boxes keep one height, names on one line */
.quote__box { position: relative; display: grid; place-items: center; min-height: calc(136 * var(--u)); padding: calc(18 * var(--u)) calc(38 * var(--u));
  border-radius: max(14px, calc(31.6 * var(--u))); background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  text-align: center; font: 400 max(13px, calc(19 * var(--u)))/1.33 var(--f-body); }
/* thin white arcs on the top-left and bottom-right corners */
.quote__box::before, .quote__box::after { content: ""; position: absolute; width: calc(33 * var(--u)); aspect-ratio: 1; border: 1px solid #fff; pointer-events: none; }
.quote__box::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: max(14px, calc(31.6 * var(--u))); }
.quote__box::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: max(14px, calc(31.6 * var(--u))); }
.quote__box u { text-decoration-thickness: 1px; text-underline-offset: .22em; }
.quote__mark { position: absolute; left: 50%; top: calc(-9 * var(--u)); width: max(14px, calc(19 * var(--u))); transform: translateX(-50%); fill: #fff; }
.quote__name { margin-top: calc(27 * var(--u)); padding-top: calc(9 * var(--u)); font: 700 max(14px, calc(18 * var(--u)))/1.2 var(--f-body);
  background: linear-gradient(var(--c-blue), var(--c-blue)) calc(4 * var(--u)) 0 / calc(48 * var(--u)) 2px no-repeat; }
.quote__role { display: inline-block; margin-top: calc(13 * var(--u)); padding: 0 calc(11 * var(--u)); border-radius: 99px; background: rgba(255, 255, 255, .22);
  font: 700 max(12px, calc(13 * var(--u)))/max(18px, calc(20 * var(--u))) var(--f-body); }

/* 07 Contact */
#contact { padding: max(36px, calc(51 * var(--u))) 0 max(48px, calc(79 * var(--u))); }
#contact .home-title { margin-bottom: max(28px, calc(99 * var(--u))); }

/* 08 Newsletter popup: a small liquid-glass window (the page shows through it, frosted), springs in */
.news { width: min(380px, calc(100% - 32px)); margin: auto; padding: 0; border: 0; border-radius: 28px; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none; color: #fff;
  background: linear-gradient(155deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 42%, rgba(255, 255, 255, .1)), rgba(28, 30, 34, .5);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 80px rgba(0, 0, 0, .45); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .news { background-color: rgba(28, 30, 34, .94); } }
.news::backdrop { background: rgba(0, 0, 0, .3); }
.news[open] { animation: news-in .55s cubic-bezier(.32, 1.35, .6, 1); }
@keyframes news-in { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.news__form { display: grid; gap: 12px; padding: 34px 26px 16px; text-align: center; }
.news__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 4px; border-radius: 16px; color: #fff;
  background: linear-gradient(160deg, #3fb0f5, var(--c-blue) 60%, #0a6fb5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 22px rgba(0, 137, 222, .4); }
.news__icon svg { width: 26px; height: 26px; }
.news__title { font: 600 22px/1.2 var(--f-body); letter-spacing: -.015em; }
.news__text { margin: -2px 0 6px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.news .field input { height: 46px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1);
  font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.news .field input::placeholder { color: rgba(255, 255, 255, .6); }
.news .field input:focus { border-color: var(--c-blue); background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 4px rgba(0, 137, 222, .3); }
.news__btn { width: 100%; height: 46px; border-radius: 99px; font: 600 15px/1 var(--f-body); text-transform: none; letter-spacing: 0; }
.news .consent { gap: 8px; margin-top: 2px; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
.news .consent input { width: 16px; height: 16px; }
.news .consent.is-invalid { color: #ffb0b0; }
.news__status { font-size: 14px; color: #fff; }
.news__status:empty { display: none; }
.news__later { justify-self: center; padding: 8px 14px; border: 0; background: none; color: rgba(255, 255, 255, .7); font: 500 14px var(--f-body); cursor: pointer; transition: color .2s; }
.news__later:hover, .news__later:focus-visible { color: #fff; }
.news .form-modal__close { top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.news .form-modal__close::before, .news .form-modal__close::after { width: 12px; }
.news .form-modal__close:hover { background: rgba(255, 255, 255, .24); }
@media (prefers-reduced-motion: reduce) { .news[open] { animation: none; } }

/* responsive */
@media (max-width: 1080px) {
  .method { padding-right: var(--hm) !important; }
  .about { padding-right: calc(80 * var(--u)); }
}
@media (max-width: 860px) {
  /* hero: the artwork grows with its content (arcs kept), text and headline flow inside its white centre */
  .home-hero__stage { aspect-ratio: auto; display: grid; justify-items: center; gap: 14px; padding: 23vw 7vw 25vw; }
  .home-hero__welcome, .home-hero__title, .home-hero__text { position: relative; left: auto; top: auto; transform: none; width: auto; }
  .home-hero__welcome { font-size: 12px; }
  .home-hero__title { font-size: clamp(26px, 7.4vw, 44px); }
  .home-hero__text { font-size: 16px; line-height: 1.5; }
  .home-hero__cta { margin-top: 18px; }
  .svc { --cw: min(58vw, 300px); }
  .case, .about, .method { grid-template-columns: 1fr; }
  .case { padding: 8px; }
  .case__media { aspect-ratio: 446 / 380; }
  .case__body { padding: 26px 14px 20px; }
  .method { row-gap: 32px; padding-right: var(--hm) !important; }
  .method__text { padding-left: 0; }
  .method__visual { justify-self: center; width: min(100%, 420px); }
  .about { row-gap: 28px; padding: 32px 20px; }
  .about__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-stat { min-height: 110px; border-radius: 16px; }
  .quotes__list { grid-template-columns: 1fr; gap: 32px; }
  .quote__box { padding: 22px 26px; }
  .quote__mark { top: -8px; }
  .quote__name { margin-top: 18px; padding-top: 9px; background-size: 40px 2px; background-position: 4px 0; }
  .quote__role { margin-top: 8px; padding: 0 10px; }
}

/* =========================================================
   INTERACTIVE ICON BUTTONS - the liquid-glass circle of the skip arrow (Design page, UI/UX section):
   white gradient glass, blurred backdrop, bright top edge, soft drop shadow, springy press.
   ========================================================= */
.glass-btn { display: inline-grid; place-items: center; flex: none; width: max(36px, calc(48 * var(--u))); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  color: #fff; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 28px rgba(0, 0, 0, .25);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background-color .2s; }
.glass-btn:hover { background-color: rgba(255, 255, 255, .12); transform: scale(1.06); }
.glass-btn:active { transform: scale(.92); transition-duration: .15s; }
.glass-btn:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }
.glass-btn svg { width: 44%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }

.glass-btn:disabled { opacity: .35; cursor: default; transform: none; }

/* =========================================================
   MARKETING PAGE - replica of references/pdf/page-marketing.pdf (1920 artboard), inside .home (same --u unit and helpers).
   Type (measured from the PDF): hero eyebrow Playfair 48 Bold, headline Playfair 79.5 / 1.22 Bold, text Roboto 19.9 / 1.33;
   intro and customers titles Playfair 60 / 48 SemiBold; area titles Playfair 36 Bold; area lines Roboto Flex 36 Bold;
   card titles Roboto Flex 32 SemiBold on navy labels; card lists Roboto Flex 16 Light, uppercase; body Roboto Flex 18 / 36.
   Buttons: the Design page ones (Roboto Bold 20, .25em tracking, 208 x 40). Folder tab colour per area: blue, purple, orange.
   ========================================================= */

/* hero: the blueprint full width, page grey on the left fading into its blue; fills the screen with the logo strip */
.mk-hero { --u: calc(100vw / 1920); --hm: max(16px, calc(113 * var(--u))); /* also used on the Design page (outside .home) */
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: max(520px, min(calc(1015 * var(--u)), calc(100svh - var(--header-h) - var(--strip-h)))); }
.mk-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #212324 0%, #212324 11%, rgba(33, 35, 36, .82) 28%, rgba(33, 35, 36, .55) 55%, rgba(33, 35, 36, .22) 100%); }
.mk-hero__inner { position: relative; z-index: 2; width: 100%; padding: max(40px, calc(40 * var(--u))) max(20px, calc(186 * var(--u))) max(40px, calc(70 * var(--u))); }
.mk-hero__eyebrow { font: 700 max(22px, calc(48 * var(--u)))/1.2 var(--f-display); }
/* separation block under the eyebrow: the short blue bar of the section titles */
.mk-hero__eyebrow::after { content: ""; display: block; width: max(64px, calc(132 * var(--u))); height: max(4px, calc(7 * var(--u)));
  margin-top: max(14px, calc(26 * var(--u))); background: var(--c-blue); }
.mk-hero__title { margin-top: max(20px, calc(60 * var(--u))); font: 700 max(34px, calc(79.5 * var(--u)))/1.22 var(--f-display); }
/* Design page: same hero, its mockup wall keeps its right edge in view */
.mk-hero--design .mk-hero__bg { object-position: right center; }
.mk-hero__text { max-width: 41em; margin-top: max(18px, calc(62 * var(--u))); font: 400 max(14px, calc(19.9 * var(--u)))/1.33 var(--f-body); }
.mk-hero .btn-row { margin-top: max(24px, calc(66 * var(--u))); }

/* intro: navy card (the Home case card family), title left, text from x 959 */
.mk-sec--intro { padding-top: max(36px, calc(82 * var(--u))); }
.mk-intro { position: relative; overflow: hidden; display: grid; grid-template-columns: calc(731 * var(--u)) 1fr; align-items: center; column-gap: 0;
  min-height: calc(252 * var(--u)); padding: calc(30 * var(--u)) calc(80 * var(--u)) calc(30 * var(--u)) calc(118 * var(--u));
  border-radius: max(14px, calc(31.4 * var(--u))); background: #14465f; }
.mk-intro__pattern { --px: calc(-555 * var(--u)); --py: calc(-697 * var(--u)); }
.mk-intro > :not(.home-pattern) { position: relative; }
.mk-intro__title { font: 600 max(26px, calc(60 * var(--u)))/1.093 var(--f-display); }
.mk-intro__text { font: 400 max(15px, calc(28 * var(--u)))/1.714 var(--f-ui); }

/* an area: the Design page's section title (centred, short blue bar under it) and its corner-arc lead line,
   then the cards, the text and the button, all centred */
.mk-area { padding-top: max(48px, calc(94 * var(--u))); }
.mk-sec--intro + .mk-area { padding-top: max(48px, calc(94 * var(--u))); }
.mk-band { padding-inline: var(--gutter); text-align: center; }
.mk-band .lead-quote { margin-bottom: 0; }
.mk-body { padding: 0 calc(222 * var(--u)) 0 calc(222 * var(--u)); text-align: center; }
/* cards: four-wide slots, centred, so a row of three (Strategy) or an odd last card sits in the middle */
.mk-card { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); }
.mk-cards { --gap: calc(40 * var(--u)); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
  margin-top: max(32px, calc(100 * var(--u))); padding: 0; }
/* laptops (1081-1439): still four cards in one row; the side margins shrink so each card stays big enough
   for its folder list (12px text) to fit inside the folder */
@media (min-width: 1081px) and (max-width: 1439px) { .mk-body { padding-inline: var(--gutter); } .mk-cards { --gap: 22px; } }
.mk-text { max-width: 53em; margin: max(24px, calc(36 * var(--u))) auto 0; font: 400 max(14px, calc(18 * var(--u)))/2 var(--f-ui); }
.mk .mk-btn { margin-top: max(20px, calc(50 * var(--u))); }
.mk-cards { text-align: left; } /* the folder lists keep their own alignment */

/* folder card (340 x 340): navy frame, photo (slightly blurred so the title leads), title on navy labels top-right,
   black folder with the waves and a coloured tab, the list inside. Inner sizes in cqw of the card. */
.mk-card { position: relative; container-type: inline-size; aspect-ratio: 1; }
.mk-card__frame { position: absolute; inset: 0; padding: 2.06cqw; border-radius: 7cqw; background: #154760; }
.mk-card__in { position: relative; height: 100%; overflow: hidden; border-radius: 5cqw; background: #0089de; }
/* the photo only fills the window above the folder (inner top -> folder body, 39cqw), so its subject is what shows */
.mk-card__img { position: absolute; top: -1cqw; left: -1cqw; width: calc(100% + 2cqw); max-width: none; height: 42cqw; object-fit: cover; object-position: 35% 50%; filter: blur(1.5px); /* subject left of the title labels */
  transition: filter .5s var(--ease), transform .8s var(--ease); }
.mk-card:hover .mk-card__img { filter: blur(0); transform: scale(1.03); }
/* Strategy cards: the mockup's own pictures, placed exactly as in the PDF (box in cqw of the card, from the inner frame;
   the chess file is stored rotated and the stairs mirrored, as the mockup shows them) */
.mk-card__img--mi, .mk-card__img--bs, .mk-card__img--gp { object-fit: fill; }
.mk-card__img--mi { top: -43.78cqw; left: -1.41cqw; width: 97.3cqw; height: 145.96cqw; }
.mk-card__img--bs { top: -10.88cqw; left: -3.65cqw; width: 100.67cqw; height: 56.6cqw; }
.mk-card__img--gp { top: -10.11cqw; left: -.76cqw; width: 97.2cqw; height: 54.7cqw; }
.mk-card__img--flip { transform: scaleX(-1); } /* subject mirrored to the free (left) side of the window */
.mk-card:hover .mk-card__img--flip { transform: scale(-1.03, 1.03); }
/* Marketing folder cards: an abstract gradient in the window (tinted by the area colour --tab), four variations per area;
   hover (mouse) lifts the card like the Home service cards and lets the gradient drift */
.mk-card__art { position: absolute; top: -1cqw; left: -1cqw; width: calc(100% + 2cqw); height: 42cqw; z-index: 0;
  background-size: 130% 130%; background-position: 0% 0%; transition: background-position 1.2s var(--ease); }
.mk-card:nth-child(4n + 1) .mk-card__art { background-image:
  radial-gradient(circle at 22% 32%, color-mix(in srgb, var(--tab) 45%, #fff) 0, transparent 42%),
  radial-gradient(circle at 82% 88%, #081a26 0, transparent 55%),
  linear-gradient(135deg, var(--tab), #0b2a3d); }
.mk-card:nth-child(4n + 2) .mk-card__art { background-image:
  radial-gradient(ellipse at 70% 20%, color-mix(in srgb, var(--tab) 35%, #fff) 0, transparent 38%),
  conic-gradient(from 200deg at 30% 70%, var(--tab), #0d3550, color-mix(in srgb, var(--tab) 70%, #fff), var(--tab)); }
.mk-card:nth-child(4n + 3) .mk-card__art { background-image:
  radial-gradient(circle at 78% 26%, rgba(255, 255, 255, .55) 0, transparent 26%),
  linear-gradient(160deg, color-mix(in srgb, var(--tab) 60%, #fff), var(--tab) 45%, #091c29); }
.mk-card:nth-child(4n) .mk-card__art { background-image:
  radial-gradient(ellipse at 40% 115%, color-mix(in srgb, var(--tab) 55%, #fff) 0, transparent 58%),
  radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--tab) 80%, #000) 0, transparent 45%),
  linear-gradient(200deg, #0b2233, var(--tab)); }
.mk-card { transition: translate .45s var(--apple); }
.mk-card__frame { transition: box-shadow .45s var(--apple); }
@media (hover: hover) and (pointer: fine) {
  .mk-card:hover { translate: 0 -12px; }
  .mk-card:hover .mk-card__frame { box-shadow: 0 26px 50px rgba(0, 0, 0, .38); }
  .mk-card:hover .mk-card__art { background-position: 100% 100%; }
}
.mk-card__title { position: absolute; z-index: 2; top: 2.8cqw; right: 5.5cqw; display: flex; flex-direction: column; align-items: flex-end;
  font: 600 9.44cqw/1 var(--f-ui); text-align: right; }
.mk-card__title span { display: block; padding: .1em .22em .11em .25em; background: #154760; white-space: nowrap; }
.mk-card__folder { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 71.9%; background: #191919;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 326 234'%3E%3Cpath d='M0 12Q0 0 12 0H112C121 0 125 3 129 10L139 31C143 38 147 40 156 40H310Q326 40 326 56V234H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 326 234'%3E%3Cpath d='M0 12Q0 0 12 0H112C121 0 125 3 129 10L139 31C143 38 147 40 156 40H310Q326 40 326 56V234H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
/* the waves on the folder: the mockup's crop (pattern 1326 wide at -690 / -329 from the 340 card), 13% white */
.mk-card__folder::before { content: ""; position: absolute; inset: 0; opacity: .13; background: url(../img/shared/pattern/pattern.svg) -204.9cqw -125.9cqw / 389.8cqw auto no-repeat; }
/* coloured tab */
.mk-card__folder::after { content: ""; position: absolute; left: 12.2cqw; top: 5.7cqw; width: 15.6cqw; height: 3.6cqw; border-radius: 99px; background: var(--tab, var(--c-blue)); }
.mk-card__list { position: absolute; left: 12.2cqw; top: 21.6cqw; width: 68.2cqw; padding: 0; font: 300 max(12px, 4.74cqw)/1 var(--f-ui); text-transform: uppercase; }
.mk-card__list:has(li:nth-child(5)) { top: 18.4cqw; } /* longer lists start higher, as in the mockup */
.mk-card__list li { padding: .05em 0 .45em; } /* one item every 32 artboard px, as in the mockup (five fit) */
.mk-card__list li + li { padding-top: .25em; }
.mk-card__list li:not(:last-child) { border-bottom: 1px solid #fff; }
/* small laptops (four cards in a row): the lists follow the card's scale, as in the mockup, down to 10px so five items fit */
@media (min-width: 1081px) and (max-width: 1365px) { .mk-card__list { font-size: max(10px, 4.74cqw); } }

/* customers at the centre: text left, the process graph (528 wide) right */
.mk-sec--method { padding-top: max(56px, calc(100 * var(--u))); }
.mk-method { display: grid; grid-template-columns: 1fr calc(528 * var(--u)); align-items: center; column-gap: calc(80 * var(--u));
  padding: 0 calc(310 * var(--u)) 0 calc(228 * var(--u)); }
.mk-method__title { font: 600 max(26px, calc(48 * var(--u)))/1.125 var(--f-display); }
.mk-method__title::after { content: ""; display: block; width: max(100px, calc(225 * var(--u))); height: max(4px, calc(8 * var(--u))); margin-top: max(16px, calc(30 * var(--u))); background: #fff; }
.mk-method__lead { max-width: 26.5em; margin-top: max(14px, calc(18 * var(--u))); font: 400 max(15px, calc(28 * var(--u)))/1.714 var(--f-ui); }
.mk-method__graph { width: 100%; height: auto; }

/* case study: the Home card */
.mk-sec--case { padding-top: max(48px, calc(95 * var(--u))); }
.mk #contact { padding-top: max(40px, calc(75 * var(--u))); }

@media (max-width: 1080px) {
  .mk-cards { --gap: 18px; }
  .mk-card { flex-basis: calc((100% - var(--gap)) / 2); }
  .mk-body { padding-inline: var(--hm); }
  .mk-method { padding-inline: var(--hm); }
}
@media (max-width: 860px) {
  .mk-hero::before { background: linear-gradient(180deg, rgba(33, 35, 36, .85), rgba(33, 35, 36, .6)); } /* text runs over the whole photo here */
  .mk-hero__inner { padding-inline: var(--hm); }
  .mk-intro { grid-template-columns: 1fr; row-gap: 18px; padding: 32px 22px; }
  .mk-method { grid-template-columns: 1fr; row-gap: 32px; }
  .mk-method__graph { justify-self: center; width: min(100%, 420px); }
}
@media (max-width: 560px) {
  .mk-card { flex-basis: min(100%, 360px); }
}

/* =========================================================
   ACADEMY PAGE - same look as the phone version: one screen with the Unsplash photo (Walls.io, "How-to / Social media
   marketing" sticky notes, Unsplash License) under a deep blue veil; centred: the "Opens soon" glass pill (pulsing dot,
   letters decode), the Academy lockup, one line of text and a white pill button. "Join the waitlist" opens the
   waitlist form in the site's popup (.form-modal).
   ========================================================= */
.page-academy { background: #0b2a3d; }
.page-academy::before { display: none; } /* no shared drifting background on this page */
.ac { --u: calc(100vw / 1920); position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  min-height: max(calc(100svh - var(--header-h)), 560px); padding: max(48px, calc(80 * var(--u))) var(--gutter) max(64px, calc(110 * var(--u)));
  text-align: center; color: #fff;
  background: #0b2a3d url(../img/academy/desktop-bg-1920.webp) center / cover no-repeat;
  background-image: image-set(url(../img/academy/desktop-bg-1920.webp) 1x, url(../img/academy/desktop-bg-2560.webp) 2x); }
.ac::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 30, 48, .66) 0%, rgba(0, 72, 120, .74) 50%, rgba(4, 24, 40, .9) 100%); }
.ac__center { display: grid; justify-items: center; gap: 0; max-width: 40em; }
.ac__logo img { width: clamp(240px, calc(460 * var(--u)), 520px); height: auto; filter: brightness(1.5); }
.ac-soon { order: -1; display: inline-flex; align-items: center; gap: 10px; height: 38px; margin-bottom: max(28px, calc(44 * var(--u))); padding: 0 16px 0 14px;
  border-radius: 19px; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.ac-soon::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #fff; animation: ac-pulse 2s infinite; }
@keyframes ac-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.ac-soon__line { display: none; }
.ac-soon__text { white-space: nowrap; font: 600 13px/1 var(--f-ui); letter-spacing: .2em; margin-right: -.2em; text-transform: uppercase; color: #fff; }
.ac-soon__text .is-scrambling { color: #7cc4f0; opacity: .9; }
.ac__text { max-width: 32em; margin-top: max(28px, calc(40 * var(--u))); font: 400 max(17px, calc(21 * var(--u)))/1.6 var(--f-body); color: rgba(255, 255, 255, .92); }
/* white pill with the blue arrow disc (the phone buttons) */
.ac .btn.ac__cta { gap: 16px; width: auto; min-width: 0; height: 56px; margin-top: max(30px, calc(44 * var(--u))); padding: 0 8px 0 26px; border: 0; border-radius: 28px;
  background: #fff; color: #212324; font: 500 16px/1 var(--f-body); letter-spacing: 0; text-transform: none;
  transition: background-color .3s var(--card-ease, ease), translate .5s var(--card-ease, ease), box-shadow .5s var(--card-ease, ease); }
.ac .btn.ac__cta::after { content: ""; flex: none; width: 40px; height: 40px; border-radius: 20px;
  background: var(--c-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (hover: hover) and (pointer: fine) {
  .ac .btn.ac__cta:hover { background: #fff; color: #212324; translate: 0 -2px; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
}
/* the waitlist form in the popup (no glow, the contact form's look) */
.ac-modal .form-card { background: #191919; }
.ac-form__title { font-size: min(var(--fs-h2), 7.2dvh); line-height: 1.08; }
.ac-form__intro { margin-block: min(.9em, 1.2dvh) min(2.4vw, 3.4dvh, 40px); font-size: clamp(.8rem, .7rem + .25vw, 1.125rem); }
.ac-form__ask { display: grid; grid-template-rows: auto 1fr; gap: 8px; }
.ac-form__label { padding-left: 14px; font: 400 max(12px, calc(14 * var(--u)))/1.3 var(--f-ui); }
.ac-modal .ac-form__ask textarea { height: 100%; min-height: 70px; }
@media (prefers-reduced-motion: reduce) { .ac-soon::before { animation: none; } }
/* =========================================================
   JOURNAL PAGE - replica of references/pdf/page-journal.ai (1920 artboard), sizes = artboard px x --u.
   A light page: white header (navy type, blue logo), navy hero 480 tall with the dotted textures (left + right,
   718 x 480, rotated from the mockup asset), the two calls to action, then one band per category (two 2px hairlines
   98 apart, Playfair 48) followed by the Home case card (1693 wide) for each article.
   ========================================================= */
.page-journal { --c-bg: #ffffff; background: #fff; color: #191919; }
.page-journal::before { display: none; }
.page-journal .case, .page-journal .jr-hero { color: #fff; }
/* calls to action: two equal buttons as wide as the longer label + padding (never cramped), mockup width as the minimum */
/* hero */
.jr-hero { position: relative; overflow: hidden; display: grid; place-items: center; min-height: max(360px, calc(480 * var(--u))); background: #14465f; color: #fff; }
.jr-hero__dots { position: absolute; top: 0; width: calc(718 * var(--u)); height: 100%; pointer-events: none; opacity: .55;
  background: url(../img/journal/dots.png) center / 100% 100% no-repeat; }
.jr-hero__dots--l { left: calc(-1 * var(--u)); } .jr-hero__dots--r { right: calc(-1 * var(--u)); }
.jr-hero__inner { position: relative; padding: max(48px, calc(126 * var(--u))) var(--gutter) max(48px, calc(74 * var(--u))); text-align: center; }
.jr-hero__title { font: 600 max(30px, calc(60 * var(--u)))/1.095 var(--f-display); }
.jr-cta { margin-top: max(28px, calc(52 * var(--u))); }
/* outline button on the navy hero: fills white with navy text on hover (the page colour is white here, so the
   shared hover would turn the label white on white) */
.jr-hero .btn--outline:hover { background: #fff; border-color: #fff; color: #14465f; }
.jr-cta .btn-row { gap: max(14px, calc(31 * var(--u))); }
.jr-cta__notes { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.1em; margin-top: max(12px, calc(10 * var(--u))); font: 400 max(12px, calc(14 * var(--u)))/1.4 var(--f-ui); }
.jr-cta__notes a { color: inherit; }
/* category band */
.jr-sec { padding-top: max(44px, calc(77 * var(--u))); }
.jr-band { padding: max(14px, calc(20.5 * var(--u))) var(--gutter); border-block: 2px solid #191919; text-align: center; font: 400 max(26px, calc(48 * var(--u)))/1.1 var(--f-display); color: #191919; }
.jr-sec > .container { margin-top: max(28px, calc(40 * var(--u))); }
.jr-list { display: grid; gap: max(20px, calc(46 * var(--u))); }
/* closing call (on white: navy notes, navy outline) */
.jr-end { padding: max(80px, calc(194 * var(--u))) var(--gutter) max(96px, calc(300 * var(--u))); }
.jr-cta--light { margin-top: 0; text-align: center; }
.jr-cta--light .jr-cta__notes { color: #154760; }
.jr-cta--light .btn--outline { border-color: #154760; color: #154760; }
.jr-cta--light .btn--outline:hover { background: #154760; color: #fff; }
@media (max-width: 860px) {
  .jr-hero__dots { width: 60%; opacity: .35; }
  .jr-cta__sep { display: none; }
  .jr-cta__notes { flex-direction: column; gap: 6px; }
}

/* Journal: small article cards (category lists, "Read next"), three per row on large screens; the big case card's deep blue */
.jr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: max(20px, calc(40 * var(--u))); }
.jr-mini { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 18px; border-radius: max(14px, calc(24 * var(--u))); background: #14465f; color: #fff;
  text-decoration: none; box-shadow: 0 10px 26px rgba(2, 48, 71, .18); transition: translate .4s var(--apple), box-shadow .4s var(--apple); }
.jr-mini__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: max(10px, calc(16 * var(--u))); background: #c9d3d8; }
.jr-mini__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: scale .6s var(--apple); }
.jr-mini__thumb--soon { background: radial-gradient(circle at 25% 30%, rgba(255, 255, 255, .35) 0, transparent 40%), linear-gradient(135deg, #0089de, #14465f); }
.jr-mini__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline: 4px; font: 400 max(12px, calc(15 * var(--u)))/1 var(--f-ui); color: rgba(255, 255, 255, .78); }
.jr-mini__pill { padding: .45em .9em; border-radius: 99px; background: #fff; color: var(--c-blue); font-weight: 600; }
.jr-mini__title { padding-inline: 4px; font: 700 max(17px, calc(24 * var(--u)))/1.25 var(--f-display); }
.jr-mini__text { padding-inline: 4px; font: 400 max(13px, calc(16 * var(--u)))/1.45 var(--f-body); color: rgba(255, 255, 255, .8); }
@media (hover: hover) and (pointer: fine) {
  .jr-mini:hover { translate: 0 -8px; box-shadow: 0 22px 44px rgba(2, 48, 71, .3); }
  .jr-mini:hover .jr-mini__img { scale: 1.04; }
}
@media (max-width: 1080px) { .jr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .jr-grid { grid-template-columns: minmax(0, 1fr); } }

/* Article: links into the service pages, service call-outs between sections, "Read next" */
.art-body a { color: #0068a8; text-decoration: underline; text-decoration-color: rgba(0, 137, 222, .35); text-decoration-thickness: 1.5px; text-underline-offset: .2em;
  transition: text-decoration-color .2s, color .2s; }
.art-body a:hover { color: #004f80; text-decoration-color: currentColor; }
.art-cta { position: relative; margin: max(36px, calc(56 * var(--u))) 0; padding: 22px 26px 22px 28px; border-radius: 16px; background: #f1f7fb;
  box-shadow: inset 4px 0 0 var(--c-blue); }
.art-cta__kicker { font: 700 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #0068a8; }
.art-body .art-cta__text { margin: 10px 0 14px; font-size: 1.02em; line-height: 1.55; color: #26303a; }
.art-body .art-cta__link { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: #0068a8; }
.art-body .art-cta__link span { transition: translate .25s var(--ease); }
.art-body .art-cta__link:hover span { translate: 4px 0; }
.art-next { width: min(100% - 2 * var(--gutter), 1120px); margin: max(56px, calc(90 * var(--u))) auto 0; }
.art-next__title { margin-bottom: max(18px, calc(28 * var(--u))); padding-bottom: 12px; border-bottom: 2px solid #191919; font: 400 max(26px, calc(40 * var(--u)))/1.1 var(--f-display); color: #191919; }

/* =========================================================
   JOURNAL ARTICLE - light reading page in the Journal style: navy head with the dotted textures (text left, the case
   photo in its white frame right), a 760px reading column, the funnel / angles / results set as small cards.
   ========================================================= */
.art-hero { place-items: stretch; min-height: 0; }
.art-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) calc(420 * var(--u)); align-items: center; gap: calc(90 * var(--u));
  width: min(100% - 2 * var(--gutter), calc(1693 * var(--u))); margin-inline: auto; padding-block: max(40px, calc(72 * var(--u))); }
.art-crumbs { display: flex; gap: .6em; margin-bottom: max(18px, calc(28 * var(--u))); font: 500 max(12px, calc(15 * var(--u)))/1 var(--f-ui); letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.art-crumbs a { color: inherit; text-decoration: none; }
.art-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.art-hero__title { margin-top: max(14px, calc(20 * var(--u))); max-width: 17em; font: 700 max(28px, calc(54 * var(--u)))/1.12 var(--f-display); text-wrap: balance; }
.art-hero__meta { display: flex; flex-wrap: wrap; gap: .4em 0; margin-top: max(18px, calc(28 * var(--u))); font: 400 max(13px, calc(16 * var(--u)))/1.4 var(--f-ui); color: rgba(255, 255, 255, .8); }
.art-hero__meta span + span::before { content: "\00b7"; margin: 0 .7em; }
.art-hero__photo { margin: 0; }
.art-body { width: min(100% - 2 * var(--gutter), 760px); margin: 0 auto; padding-top: max(48px, calc(90 * var(--u))); color: #3a3f43;
  font: 400 max(16px, calc(18.5 * var(--u)))/1.78 var(--f-body); }
.art-body section + section { margin-top: max(48px, calc(80 * var(--u))); }
.art-body h2 { font: 700 max(26px, calc(40 * var(--u)))/1.15 var(--f-display); color: #191919; text-wrap: balance; }
.art-body h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .45em; background: var(--c-blue); }
.art-body h3 { display: flex; gap: .5em; margin-top: 2.2em; font: 600 max(20px, calc(25 * var(--u)))/1.3 var(--f-ui); color: #14465f; }
.art-no { color: var(--c-blue); }
.art-body p, .art-body ul, .art-body ol, .art-body blockquote { margin-top: 1.1em; }
.art-body strong { color: #191919; font-weight: 700; }
.art-body em { font-style: italic; color: #14465f; }
.art-lead { font: 400 max(19px, calc(23 * var(--u)))/1.6 var(--f-ui); color: #191919; }
.art-callout { padding: .2em 0 .2em 1.1em; border-left: 4px solid var(--c-blue); font: 500 max(17px, calc(20 * var(--u)))/1.6 var(--f-ui); color: #14465f; }
.art-points { display: grid; gap: 1em; }
.art-points li { position: relative; padding-left: 1.6em; }
.art-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55em; height: .55em; border-radius: 2px; background: var(--c-blue); }
/* the four funnel stages: one row of numbered cards */
.art-funnel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; counter-reset: st; }
.art-funnel li { counter-increment: st; position: relative; padding: 1.1em 1.2em 1.2em; border-radius: 14px; background: #f1f5f8; font-size: .94em; line-height: 1.6; }
.art-funnel li::before { content: "0" counter(st); display: block; margin-bottom: .35em; font: 600 .82em/1 var(--f-ui); letter-spacing: .14em; color: var(--c-blue); }
.art-funnel strong { display: block; font: 700 1.15em/1.3 var(--f-display); color: #14465f; }
.art-angles { display: grid; gap: 14px; }
.art-angles li { padding: 1em 1.2em; border: 1px solid #d9e2e8; border-radius: 14px; }
.art-angles strong { color: #14465f; }
/* results: navy cards, the figure large */
.art-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.art-stats li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .35em; padding: 1.2em 1.3em 1.3em; border-radius: 16px; background: #14465f; color: rgba(255, 255, 255, .85); line-height: 1.5; font-size: .95em; }
.art-stats .art-stats__n { flex-basis: 100%; order: -1; font: 700 max(30px, calc(44 * var(--u)))/1.1 var(--f-display); color: #fff; }
.art-stats li > span:first-child:not(:only-of-type) { order: -2; flex-basis: 100%; font-size: .85em; color: rgba(255, 255, 255, .65); }
.art-quote { margin: 1.4em 0 0; padding: 0; font: 600 max(21px, calc(29 * var(--u)))/1.45 var(--f-display); color: #191919; }
.art-quote::before { content: "\201C"; display: block; height: .55em; font: 700 2.4em/1 var(--f-display); color: var(--c-blue); }
.art-sign { padding-top: 1.1em; border-top: 1px solid #d9e2e8; font-style: italic; color: #14465f; }
.art-end { padding-top: max(64px, calc(120 * var(--u))); }
@media (max-width: 860px) {
  .art-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .art-hero__photo { width: min(100%, 420px); }
  .art-funnel, .art-stats { grid-template-columns: 1fr; }
}

/* =========================================================
   JOURNAL WRITER - "Become Author": a white, minimal writing window. Bar (title, autosave, close), a 760px page with the
   review notice, author details, the article title, a sticky toolbar and the editor; the content uses the article page's
   typography (.art-body), so authors see their mise en page as it will be published. Footer: legal acknowledgment + send.
   ========================================================= */
.writer { width: min(1120px, calc(100vw - 32px)); height: calc(100dvh - 32px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0;
  border-radius: 18px; overflow: hidden; background: #fff; color: #191919; box-shadow: 0 40px 120px rgba(0, 0, 0, .35); }
.writer::backdrop { background: rgba(8, 12, 16, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.writer[open] { animation: modal-in .35s var(--ease); }
.writer__form { display: flex; flex-direction: column; height: 100%; }
.writer__bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 26px; border-bottom: 1px solid #e8edf1; }
.writer__name { font: 600 15px/1 var(--f-ui); }
.writer__name span { margin-left: .6em; padding-left: .6em; border-left: 1px solid #d5dde3; font-weight: 400; color: #6b7780; }
.writer__saved { margin-left: auto; font: 400 13px/1 var(--f-ui); color: #6b7780; }
.writer__close { position: relative; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #191919; cursor: pointer; transition: background-color .2s; }
.writer__close:hover { background: #f1f4f6; }
.writer__close::before, .writer__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.writer__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.writer__scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.writer__page { width: min(100% - 40px, 760px); margin: 0 auto; padding: 28px 0 64px; }
.writer__notice { padding: 12px 16px; border-radius: 10px; background: #f1f6fa; color: #14465f; font: 400 14px/1.5 var(--f-ui); }
.writer__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin-top: 22px; }
.writer__meta input, .writer__meta select { width: 100%; height: 38px; padding: 0 2px; border: 0; border-bottom: 1px solid #d5dde3; border-radius: 0; background: transparent; color: #191919;
  font: 400 14px var(--f-ui); appearance: none; transition: border-color .2s; }
.writer__meta select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%236b7780' stroke-width='1.4'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") right 2px center / 10px no-repeat; cursor: pointer; }
.writer__meta input::placeholder { color: #8a959d; }
.writer__meta input:focus, .writer__meta select:focus { outline: none; border-bottom-color: var(--c-blue); }
.writer .is-invalid, .writer__meta .is-invalid { border-bottom-color: #d64545 !important; }
.writer__title-wrap { display: block; margin-top: 34px; }
.writer__title { display: block; width: 100%; padding: 0; border: 0; resize: none; overflow: hidden; background: none; color: #191919;
  font: 700 clamp(30px, 3vw, 44px)/1.15 var(--f-display); field-sizing: content; }
.writer__title::placeholder { color: #c3cbd1; }
.writer__title:focus { outline: none; }
.writer__title.is-invalid::placeholder { color: #e3a0a0; }
/* toolbar: sticks to the top of the scrolling page */
.writer__tools { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 22px -10px 0; padding: 8px 10px; border-block: 1px solid #e8edf1; background: rgba(255, 255, 255, .96); }
.writer__group { display: flex; gap: 2px; }
.writer__group + .writer__group { padding-left: 12px; border-left: 1px solid #e8edf1; }
.writer__group--end { margin-left: auto; }
.writer__tools button { display: inline-flex; align-items: center; gap: 6px; min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: #33393e;
  font: 600 13px/1 var(--f-ui); cursor: pointer; transition: background-color .15s, color .15s; }
.writer__tools button:hover { background: #f1f4f6; }
.writer__tools button.is-on { background: #e5f2fb; color: #0068a8; }
.writer__tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.writer__tools svg circle { fill: currentColor; stroke: none; }
.writer__tools button[data-block="blockquote"] svg path { fill: currentColor; stroke: none; }
/* editor: the article page typography, plus the cards and pictures authors insert */
.writer__editor { position: relative; width: auto; min-height: 50vh; margin: 0; padding: 26px 0 0; outline: none; }
.writer__editor.is-empty::before { content: attr(data-placeholder); position: absolute; max-width: 700px; color: #9aa5ad; pointer-events: none; }
.writer__editor > :first-child { margin-top: 0; }
.writer__editor h2 { margin-top: 1.6em; }
.writer__editor blockquote { margin: 1.4em 0 0; padding: 0 0 0 1em; border-left: 4px solid var(--c-blue); font: 600 1.25em/1.5 var(--f-display); color: #191919; }
.writer__editor ul, .writer__editor ol { padding-left: 1.4em; }
.writer__editor ul { list-style: disc; } .writer__editor ol { list-style: decimal; }
.writer__editor li + li { margin-top: .4em; }
.writer__editor a { color: #0068a8; text-decoration: underline; }
.writer__editor hr { margin: 2em 0; border: 0; border-top: 1px solid #d9e2e8; }
.ed-card { margin-top: 1.2em; padding: 1em 1.2em; border-radius: 14px; background: #f1f5f8; border-left: 4px solid var(--c-blue); }
.ed-card > :first-child { margin-top: 0; }
.ed-card--figure { border-left: 0; background: #14465f; color: rgba(255, 255, 255, .88); }
.ed-card--figure .ed-card__n { font: 700 2em/1.1 var(--f-display); color: #fff; }
.ed-card--figure p + p { margin-top: .3em; }
.ed-pic { margin: 1.4em 0 0; }
.ed-pic img { display: block; width: 100%; height: auto; border-radius: 12px; }
.ed-pic figcaption { margin-top: .5em; font: 400 .82em/1.4 var(--f-ui); color: #6b7780; text-align: center; }
.ed-pic.is-selected img { outline: 3px solid var(--c-blue); outline-offset: 3px; }
.writer__editor.is-drop { box-shadow: inset 0 0 0 2px var(--c-blue); border-radius: 12px; }
/* footer: acknowledgment + send */
.writer__foot { display: flex; align-items: center; gap: 16px 28px; padding: 14px 26px; border-top: 1px solid #e8edf1; background: #fafbfc; }
.writer__check { display: flex; align-items: flex-start; gap: 10px; max-width: 560px; font: 400 13.5px/1.45 var(--f-ui); color: #33393e; cursor: pointer; }
.writer__check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--c-blue); }
.writer__check.is-invalid span { color: #c23b3b; }
.writer__send { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.writer__status { max-width: 300px; font: 400 13px/1.4 var(--f-ui); color: #33393e; text-align: right; }
.writer__status:empty { display: none; }
.writer .writer__submit { width: auto; min-width: 0; height: 44px; padding: 0 22px; }
@media (max-width: 760px) {
  .writer { width: 100%; height: 100dvh; border-radius: 0; }
  .writer__meta { grid-template-columns: 1fr 1fr; }
  .writer__group--end { margin-left: 0; }
  .writer__tools button span { display: none; }
  .writer__name span { display: none; }
  .writer__foot { flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .writer__send { margin-left: 0; justify-content: space-between; }
  .writer__status { text-align: left; }
}

/* =========================================================
   SHARED FIXES - project calls to action, the UI/UX window on phones, 404 page, touch targets and form fields on phones
   ========================================================= */
/* Portfolio: every project closes with "Start a similar project" */
.project__cta { display: flex; justify-content: center; padding-top: clamp(6px, .8vw, 14px); }
/* contact form: optional WhatsApp / booking line after "We reply within 24 hours" (build.py) */
.form-card__note a { color: #fff; text-underline-offset: 3px; }

/* UI/UX window on phones and small tablets: a 1920px site shrunk to a phone is unreadable, so the window isn't pinned
   (the page scrolls past it), shows the first screen of each site and links to the full site (main.js) */
.safari__open { display: none; }
@media (max-width: 860px) {
  .pin-wrap:has(.safari) .pin-sticky { position: relative; top: auto; height: min(78svh, 640px); }
  .safari__open { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5em;
    min-height: 44px; padding: 0 20px; border-radius: 99px; background: rgba(20, 20, 20, .84); color: #fff; text-decoration: none; white-space: nowrap;
    font: 700 13px/1 var(--f-ui); letter-spacing: .04em; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
  /* phone toolbar: the lights, the address and the three site tabs (desktop-only controls hidden) */
  .safari__toolbar > .sf-btn, .safari__toolbar > .sf-group { display: none; }
  .safari__toolbar { grid-template-columns: auto minmax(0, 1fr); height: 44px; }
  .safari__toolbar > .sf-address { grid-column: 2; }
  .safari__tabs button { height: 40px; }
}

/* 404 */
.nf { display: grid; place-items: center; min-height: calc(100svh - var(--header-h) - 160px); padding-block: var(--section-y); text-align: center; }
.nf__code { font: 700 clamp(84px, 12vw, 180px)/1 var(--f-display); color: var(--c-blue); }
.nf__title { margin-top: .3em; font-size: var(--fs-h2); }
.nf__text { margin: .8em 0 var(--stack); color: var(--c-text-soft); }
.nf__fr { margin-top: 2.6em; font-size: var(--fs-small); color: var(--c-muted); }
.nf__fr a { color: #fff; }

/* Journey phase bar on phones: four phases must fit across the board at 12px */
/* (sentence case at Roboto condensed width, so the four phase names fit a phone board at 12px, in both languages) */
@media (max-width: 860px) { .board { --steps-fs: 12px; } } /* same as the UI/UX project bar on phones and tablets */
/* boards narrower than ~1000px: the deliverables sit above the phase bar instead of level with it */
@container (max-width: 1000px) { .step .deliverables { bottom: calc(var(--edge) + var(--steps-h) + 22px); } }
@media (max-width: 480px) { .board { --steps-fs: 12px; } .steps button { padding: 0 .7em; font-stretch: 87.5%; } }
@media (max-width: 380px) { .steps button { padding-inline: .5em; font-stretch: 75%; } }

/* Phones and touch tablets */
@media (max-width: 860px) {
  /* fields: 16px text so phones don't zoom in when a field is tapped, and at least 44px tall */
  .field input, .field select, .news input, .writer input, .writer select { min-height: 44px; font-size: 16px !important; }
  .field textarea, .writer textarea { font-size: 16px !important; }
  /* links and small controls get a touch area of at least 44px (invisible: the look doesn't change) */
  .site-header__logo { padding-block: 13px; }
  .site-footer__cols ul { gap: 0; }
  .site-footer__join { min-height: 44px; }
  .site-footer__cols a { position: relative; display: inline-block; padding-block: 11px; }
  .site-footer__cols a::after, .art-crumbs a::after { content: ""; position: absolute; inset: -4px -6px; }
  .art-crumbs a { position: relative; }
  .svc__btn { width: 44px; }
  .social a { position: relative; }
  .social a::after { content: ""; position: absolute; inset: -7px; }
  .dots { gap: 18px; }
  .dots button::before { margin: -18px; padding: 22px; }
  .art-crumbs a, .jr-cta__notes a, .art-end .jr-cta__notes a { display: inline-block; padding-block: 12px; }
  .svc-card__go::before { content: ""; position: absolute; inset: -14px; }
  .sf-address .sf-btn::before { content: ""; position: absolute; inset: -10px; }
}
@media (max-width: 1080px) { .site-nav .lang a, .site-nav .lang span { padding: 12px 6px; } }

/* =========================================================
   MOTION - pages fade in, content fades up on scroll (main.js), cross-page fade
   ========================================================= */
/* every page fades in; the nav bar stays put between pages */
@keyframes page-in { from { opacity: 0; } }
main, .site-footer { animation: page-in .55s var(--ease) backwards; } /* backwards: nothing left over once it has played */
html.is-leaving main, html.is-leaving .site-footer { opacity: 0; transition: opacity .26s cubic-bezier(.4, 0, .2, 1); }
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
/* cross-page: the old page eases out while the new one fades in and settles a few pixels up (soft, not a cut) */
::view-transition-old(root) { animation: .32s cubic-bezier(.4, 0, .2, 1) both vt-out; }
::view-transition-new(root) { animation: .62s cubic-bezier(.22, .8, .24, 1) .06s both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
/* fade-up on scroll */
.rv { opacity: 0; translate: 0 24px; }
.rv.rv-in { opacity: 1; translate: none; transition: opacity .75s var(--ease), translate .85s var(--ease); transition-delay: var(--rv-d, 0s); }
@media (prefers-reduced-motion: reduce) {
  main, .site-footer { animation: none; }
  @view-transition { navigation: none; }
}

/* Article editor (everything wider than a phone): the formatting panel always sits on the right of the article and stays
   in view while scrolling (sticky in the editor's scroll area); buttons in pairs, groups split by hairlines, labels as
   tooltips. Phones: the bar floats above the selected text (main.js, phone.css). */
@media (min-width: 601px) {
  .writer__page { width: min(100% - 48px, 900px); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: start; }
  .writer__page > * { grid-column: 1; }
  .writer__page > .writer__tools { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 18px; align-self: start;
    display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 8px; border: 1px solid #e8edf1; border-radius: 14px; background: #fff;
    box-shadow: 0 10px 28px rgba(2, 48, 71, .08); }
  .writer__tools .writer__group { display: grid; grid-template-columns: repeat(2, 36px); gap: 2px; }
  .writer__tools .writer__group + .writer__group { padding: 6px 0 0; border-left: 0; border-top: 1px solid #e8edf1; }
  .writer__tools button { justify-content: center; min-width: 0; width: 36px; height: 36px; padding: 0; }
  .writer__tools button span { display: none; } /* Card / Figure / Picture: the icon + tooltip say it */
}

/* Case study cards (Home, Marketing, Journal "This week's read"): the whole card opens the article (main.js);
   on hover it lifts a little, like the other cards, and the photo zooms in slightly */
.case.is-link { cursor: pointer; transition: translate .45s var(--apple), box-shadow .45s var(--apple); }
.case.is-link .case__img { transition: scale .7s var(--apple); }
@media (hover: hover) and (pointer: fine) {
  .case.is-link:hover { translate: 0 -8px; box-shadow: 0 26px 50px rgba(0, 0, 0, .3); }
  .case.is-link:hover .case__img { scale: 1.04; }
}

/* CARD HOVER - one motion for every card on the site (Home service cards, Marketing folders, case studies, Journal cards):
   the same lift, the same soft ease in and out, the same shadow growth, the same slow photo zoom. Mouse / trackpad only. */
:root { --card-ease: cubic-bezier(.22, .8, .24, 1); --card-t: .6s; --card-lift: -10px; --card-shadow: 0 24px 48px rgba(0, 0, 0, .32); }
.svc-card { transition: transform .9s var(--apple), opacity .6s var(--apple), translate var(--card-t) var(--card-ease), box-shadow var(--card-t) var(--card-ease); }
.mk-card, .jr-mini, .case.is-link { transition: translate var(--card-t) var(--card-ease), box-shadow var(--card-t) var(--card-ease); }
.mk-card__frame { transition: box-shadow var(--card-t) var(--card-ease); }
.case.is-link .case__img, .jr-mini__img { transition: scale .9s var(--card-ease); }
.mk-card__img { transition: filter .6s var(--card-ease), transform .9s var(--card-ease); }
@media (hover: hover) and (pointer: fine) {
  .svc-card, .mk-card, .jr-mini, .case.is-link { will-change: translate; }
  .svc-card:hover, .mk-card:hover, .jr-mini:hover, .case.is-link:hover { translate: 0 var(--card-lift); }
  .svc-card:hover, .mk-card:hover .mk-card__frame, .case.is-link:hover { box-shadow: var(--card-shadow); }
  .jr-mini:hover { box-shadow: 0 24px 48px rgba(2, 48, 71, .26); } /* same shape, tinted for the white Journal page */
  .jr-mini:hover .jr-mini__img, .case.is-link:hover .case__img { scale: 1.04; }
}

/* Consent checkbox on every form (contact, newsletter, waitlist): required, links to the Privacy Policy */
.consent { position: relative; display: flex; align-items: flex-start; gap: 10px; margin-top: clamp(14px, 1.4vw, 22px); text-align: left;
  font: 400 max(12px, .8rem)/1.45 var(--f-body); color: rgba(255, 255, 255, .78); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--c-blue); cursor: pointer; }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { color: #ff9b9b; }
.consent.is-invalid input { outline: 2px solid #ff6b6b; outline-offset: 2px; }
.news .consent { margin-top: 2px; }
.form-modal .consent { margin-top: min(1.4vw, 2dvh, 18px); }
.writer__check + .writer__check { margin-top: 8px; }
.writer__check a { color: #0068a8; text-decoration: underline; }
@media (max-width: 860px) { .consent input { width: 22px; height: 22px; } }

/* Legal links in the footer: on every page (also the minimal Home / Marketing footers) */
@media (max-width: 860px) { .site-footer__policies a { padding-block: 10px; } }

/* Legal pages (Privacy Policy, Terms & Conditions, Legal notice): one readable column */
.legal { width: min(100% - 2 * var(--gutter), 780px); margin: 0 auto; padding-block: clamp(48px, 6vw, 96px) clamp(64px, 8vw, 120px); color: #d9dee2;
  font: 400 clamp(15px, .95rem + .1vw, 17px)/1.75 var(--f-body); }
.legal__kicker { font: 700 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--c-blue); }
.legal__title { margin-top: 14px; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: #fff; }
.legal__date { margin: 10px 0 34px; color: var(--c-muted); font-size: .9em; }
.legal h2 { margin: 2.2em 0 .6em; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); color: #fff; }
.legal h3 { margin: 1.5em 0 .3em; font: 700 1.02em/1.4 var(--f-body); color: #fff; }
.legal p + p, .legal ul + p { margin-top: .8em; }
.legal ul { list-style: disc; margin: .6em 0 0; padding-left: 1.3em; }
.legal li + li { margin-top: .4em; }
.legal strong { color: #fff; }
.legal a { color: #6fc6ff; text-decoration: underline; text-underline-offset: 3px; }
.legal code { padding: .1em .4em; border-radius: 6px; background: rgba(255, 255, 255, .08); font-size: .9em; }
.legal__list { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px 24px; margin-top: .4em; }
.legal__list dt { color: var(--c-muted); }
.legal__list dd { margin: 0; color: #fff; }
.legal__links { margin-top: 3em !important; padding-top: 1.4em; border-top: 1px solid var(--c-line); }
@media (max-width: 600px) { .legal__list { grid-template-columns: 1fr; gap: 2px; } .legal__list dd { margin-bottom: 12px; } }
