/* Shared by the inner pages (contact, about): tokens, base, buttons, header, drawer, reveals. Mirrors index.html. */
/* ============ Tokens (same as the homepage) ============ */
:root {
  --blue: #15209f;
  --cream: #f0ede5;
  --display: "meno-display-condensed", Georgia, serif;
  --text: "host-grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "ibm-plex-mono", "SFMono-Regular", Menlo, monospace;
  --gb: clamp(16px, 1.25vw, 24px);
  --g: clamp(20px, 1.54vw, 30px);
  --s1: calc(var(--gb) * 0.5);
  --s2: var(--gb);
  --s3: calc(var(--gb) * 2);
  --s4: calc(var(--gb) * 4);
  --s5: calc(var(--gb) * 6);
  --header: 64px;
  --t-label: clamp(12px, 0.8vw, 13px);
  --t-body: clamp(15px, 1.05vw, 18px);
  --t-sans-h: clamp(28px, 3.9vw, 80px);
  --lh-text: 1.2;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.on-blue { --blue: #f0ede5; --cream: #15209f; background: var(--cream); color: var(--blue); }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #f0ede5; }
body {
  margin: 0;
  background: #f0ede5;
  color: var(--blue);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
::selection { background: var(--blue); color: var(--cream); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.label { font-size: var(--t-label); font-weight: 500; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 0.88; }
.wrap { padding-left: var(--g); padding-right: var(--g); }
h1, h2, p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.br-m, .only-m { display: none; }

/* ============ Buttons & links ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--s2);
  font-size: var(--t-label); letter-spacing: 0.02em; text-transform: uppercase;
  --btn-bg: var(--blue); --btn-fg: var(--cream);
  background: var(--btn-bg); color: var(--btn-fg);
  overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease);
}
.btn__label { display: block; line-height: 1.3; }
.btn__icon { display: none; }
.btn__arrow { display: inline-block; transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(0.5em); }
.btn:active { transform: scale(0.98); transition-duration: 0.1s; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 359px) { .header__cta .btn__arrow { display: none; } }
.link { position: relative; display: inline-block; }
.link:active { opacity: 0.6; }
.link--plain:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ============ Header (same as the homepage) ============ */
.header {
  position: fixed; z-index: 50; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--g) var(--g) 0;
  padding-top: calc(var(--g) + env(safe-area-inset-top, 0px));
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header__logo { display: inline-flex; align-items: center; height: 52px; padding: 0 18px; background: #15209f; transition: transform 0.4s var(--ease); }
.header__logo img { height: 30px; width: auto; }
.header__logo:active { transform: scale(0.98); }
.header__logo:focus-visible { outline: 2px solid #f0ede5; outline-offset: 3px; }
.header .header__cta { height: 52px; min-height: 0; --btn-bg: #15209f; --btn-fg: #f0ede5; }
.header .header__cta:focus-visible { outline-color: #f0ede5; }
.header__menu { display: none; }
.header__right { display: flex; gap: 6px; }
.header__burger {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 52px; height: 52px; padding: 0; border: 1px solid #15209f; cursor: pointer;
  background: #f0ede5; transition: transform 0.35s var(--ease);
}
.header__burger span { display: block; width: 20px; height: 2px; background: #15209f; transition: transform 0.35s var(--ease); }
.header__burger:hover span:nth-child(1) { transform: translateX(-3px); }
.header__burger:hover span:nth-child(3) { transform: translateX(3px); }
.header__burger:active { transform: scale(0.95); }
.header__burger:focus-visible { outline: 2px solid #f0ede5; outline-offset: 3px; }
.header__menu a:active, .header .header__cta:active { opacity: 0.7; }
.header__menu a:focus-visible { outline: 2px solid #f0ede5; outline-offset: 4px; }
.header__menu a[aria-current="page"] { opacity: 0.55; }
@media (pointer: coarse) {
  .header .header__menu { display: none !important; }
  .header .header__burger { display: inline-flex !important; }
}

/* drawer: slides in from the right */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; transition: visibility 0s linear 0.6s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__veil { position: absolute; inset: 0; background: rgba(21, 32, 159, 0.55); opacity: 0; transition: opacity 0.5s var(--ease); }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column;
  width: min(100%, 720px);
  padding: var(--g) var(--g) var(--s3);
  padding-top: calc(var(--g) + env(safe-area-inset-top, 0px));
  background: #f0ede5; color: #15209f; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.6s var(--ease);
}
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; justify-content: flex-end; align-items: center; min-height: 52px; }
.drawer__close { min-height: 44px; padding: 0 var(--s2); border: 1px solid #15209f; background: transparent; color: #15209f; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.drawer__close:hover { background: #15209f; color: #f0ede5; }
.drawer__close:active { opacity: 0.7; }
.drawer__close:focus-visible { outline: 2px solid #15209f; outline-offset: 3px; }
.drawer__nav { display: grid; margin: var(--s4) 0 var(--s4); }
.drawer__nav a { justify-self: start; font-size: clamp(28px, 2.8vw, 46px); font-weight: 400; line-height: 1.2; letter-spacing: -0.03em; transition: transform 0.45s var(--ease), opacity 0.3s var(--ease); }
.drawer__nav a:hover { transform: translateX(-10px); }
.drawer__nav a:active { opacity: 0.6; }
.drawer__nav a:focus-visible { outline: 2px solid #15209f; outline-offset: 4px; }
.drawer__info { display: grid; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid #15209f; }
.drawer__label { font-family: var(--mono); font-weight: 400; }
.drawer__contacts { display: grid; justify-items: start; gap: var(--s1); font-size: clamp(17px, 1.4vw, 22px); line-height: var(--lh-text); }
.drawer__contacts > * { display: inline-flex; align-items: center; min-height: 32px; }
.drawer__contacts a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: opacity 0.3s var(--ease); } /* plain underlined links, no letter scramble (as on Contact) */
.drawer__contacts a:hover { opacity: 0.7; }
.drawer__contacts a:active { opacity: 0.5; }
.btn, .header__menu, .drawer__close { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }
.btn { -webkit-text-stroke: 0.4px currentColor; }
html.drawer-open { overflow: hidden; }
@media (min-width: 600px) { .drawer__info { grid-template-columns: 1fr 1fr; align-items: baseline; } }
@media (prefers-reduced-motion: reduce) { .drawer__panel, .drawer__veil, .btn, .btn__arrow { transition: none; } }

/* letter-scramble hover */
.dc-word { white-space: nowrap; }
.dc-cell { position: relative; display: inline-block; }
.dc-cell.is-scrambled > .dc-char { visibility: hidden; }
.dc-glyph { position: absolute; top: 0; left: 50%; transform: translateX(-50%) scaleX(var(--sq, 1)); opacity: 0.55; }
.dc-cell:not(.is-scrambled) > .dc-glyph { display: none; }

/* ============ Reveal (transform + opacity only) ============ */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-d="1"] { transition-delay: 0.15s; }
.js [data-reveal][data-d="2"] { transition-delay: 0.3s; }
.js [data-reveal][data-fog] { opacity: 1; transform: none; transition: none; }
.fog-w { display: inline-block; }
.fog-g { white-space: nowrap; }
.js [data-fog] .fog-w { opacity: 0; filter: blur(14px); transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.95s cubic-bezier(0.25, 0.1, 0.25, 1); transition-delay: calc(var(--i) * 45ms); }
.js [data-fog].is-in .fog-w { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-fog] .fog-w { opacity: 1; filter: none; transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}


/* header: phones and desktop (same as the homepage) */
@media (max-width: 899px) {
  .header .header__cta { width: 52px; padding: 0; justify-content: center; }
  .header .header__burger { width: 52px; }
  .header .header__cta .btn__label { display: none; }
  .header .header__cta .btn__icon { display: block; width: 25px; height: 25px; }
  .header__logo { padding: 0 13px; }
  .header__logo img { height: 26px; }
  .br-m, .only-m { display: inline; }
  .br-d, .only-d { display: none; }
}
@media (max-width: 379px) {
  .header__right { gap: 4px; }
  .header .header__logo { padding: 0 15px; }
  .header .header__logo img { height: 22px; }
}
@media (min-width: 900px) {
  :root { --header: 72px; --g: clamp(24px, 1.85vw, 36px); }
  .header__logo, .header .header__cta { height: 60px; }
  .header__logo img { height: 34px; }
  .header__burger { width: 60px; height: 60px; }
  .header__menu { display: flex; align-items: center; position: absolute; top: var(--g); left: 50%; height: 60px; color: #f0ede5; font-size: clamp(13px, 0.9vw, 14.5px); }
  .header__menu ul { display: flex; align-items: center; column-gap: var(--s3); margin: 0; padding: 0; list-style: none; white-space: nowrap; }
  .header__menu a { display: inline-flex; align-items: center; min-height: 22px; }
}
@media (min-width: 900px) and (max-width: 1279px) { .header__menu { display: none !important; } }
/* wide screens: menu links over the top band; once the page scrolls they fade out and the burger takes over (as on the homepage) */
@media (min-width: 1280px) and (pointer: fine) {
  .header__burger { display: none; }
  .header.is-scrolled .header__burger { display: inline-flex; animation: burger-in 0.4s var(--ease) both; }
  .header__menu { transition: opacity 0.3s var(--ease), visibility 0s; }
  .header.is-scrolled .header__menu { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s; }
}
@keyframes burger-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@media (min-width: 1280px) and (max-width: 1439px) { .header .header__menu ul { column-gap: var(--s2); } }

/* closing call block (contact and about): the same heading + button as the homepage footer
   ('They are ready to listen...' / 'Book a free brand audit'): size, weight, button width and gap */
:root { --t-lead: clamp(24px, 3.3vw, 68px); }
@media (max-width: 899px) { :root { --t-lead: clamp(26px, 7.4vw, 30px); } }
.cta-pitch { display: flex; flex-direction: column; align-items: flex-start; }
.cta-pitch__lead { font-family: var(--text); font-weight: 500; font-size: var(--t-lead); line-height: 1.08; letter-spacing: -0.03em; }
.cta-pitch__btn { margin-top: 17px; min-width: min(100%, 420px); min-height: clamp(56px, 4.4vw, 76px); font-size: clamp(14px, 1vw, 16px); }
@media (min-width: 900px) { .cta-pitch__btn { margin-top: calc(var(--s3) * 0.9); } } /* 10% closer to the heading */
/* Blue opening band, identical on every inner page: the title stands on the bottom of the band.
   Title = the homepage first-screen slogan: same size and line spacing. */
.page-band { position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 50vh; min-height: 50svh;
  padding-top: calc(var(--g) + env(safe-area-inset-top, 0px) + 52px + var(--s4) - var(--label-h, 0px)); padding-bottom: var(--s3); }
/* optional label right above the title (minimal step); the band's top padding gives back its height, so every band stays the same size */
.page-band__label { margin-bottom: var(--s1); font-family: var(--mono); font-weight: 400; line-height: 1.5; }
.page-band:has(> .page-band__label) { --label-h: calc(var(--t-label) * 1.5 + var(--s1)); }
.page-title { font-size: calc((100vw - 2 * var(--g)) / 6.75); line-height: 1.04; letter-spacing: -0.02em; white-space: nowrap; } /* fixed line breaks; a little more air than the display default so letters and lines never touch */
/* Each word is its own layer while it blurs in, and a layer is cut to the word's box. Display-face ascenders, i-dots and
   descenders reach outside that box (line-height 0.98), so the box gets a safe margin on every side, cancelled by negative margins:
   the layout does not move, but nothing is clipped (Safari also kept the cut after the animation). */
.page-title .fog-w { padding: 0.28em 0.3em 0.32em; margin: -0.28em -0.3em -0.32em; } /* room for the y tail reaching left, f hook reaching right */
.ls0 { letter-spacing: 0; } /* the 'r' in 'brand' stops touching the 'a' */
.f-i { letter-spacing: 0.06em; } /* 'first': f and i stay separate (no ligature), so the i keeps its dot clear of the f hook */
.page-title { font-variant-ligatures: no-common-ligatures; }
@media (min-width: 900px) {
  /* gap between the header and the title is 20% larger than the plain half-screen band gives:
     band = 50svh + 0.2 x (50svh - header - two title lines - bottom padding) */
  .page-band { --pt-fs: min(8vw, 158px);
    padding-top: calc(var(--g) + 60px + var(--s4) * 1.2 - var(--label-h, 0px));
    min-height: calc(60svh - 0.2 * (var(--g) + 60px + 1.96 * var(--pt-fs) + var(--s3))); }
  .page-title { font-size: min(8vw, 158px); } /* = homepage first-screen slogan */
}

/* ============ Phones (inner pages) ============ */
@media (max-width: 899px) {
  /* content guide = right edge of the header logo box, as on the homepage */
  :root { --logo-box: calc(26px * 600 / 256 + 26px); }
  .cta-pitch__lead { white-space: nowrap; } /* exactly two lines: newer Safari re-breaks short headings (text-wrap: pretty) */
  .page-title { line-height: 1.1; } /* four short lines: the 'g' of 'game' clears the 'b' of 'blind' */
  .drawer__nav a { line-height: 1.38; } /* as the homepage drawer: bigger tap targets */
}
@media (max-width: 379px) { :root { --logo-box: calc(22px * 600 / 256 + 30px); } }
/* phones held sideways: the title takes its two desktop lines, sized to the width, and nothing hides under the notch */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  .wrap, .header { padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
  .page-title { font-size: calc((100vw - 2 * var(--g)) / 12.6); line-height: 1.04; }
  .page-title .br-m { display: none; }
  .page-title .br-d { display: inline; }
  .page-band { min-height: 0; padding-top: calc(var(--g) + 52px + var(--s2)); padding-bottom: var(--s2); }
}
