/* Layout (BOS-0406, 2026-10-16): one short page. Photo + name + one plain line on top, then the four sites as
   logo keys side by side (2 x 2 on a phone, 4 across from 760px); a tap opens that site's short story below.
   Then the contact panel (a quotes row is ready to paste in; see the comment in the page). Every corner is square. Buttons are mechanical keys
   in sockets. Dark only, on purpose. Type: Montserrat is the voice (black italic for big words, plain for
   reading); Michroma is the machine (section heads, key legends and the footer only). */
:root {
  --ink: #0a0a0a;        /* page */
  --chalk: #f1f1ee;      /* text, key faces */
  --ash: #9a9a96;        /* quiet text */
  --seam: #2d2d2b;       /* panel edges */
  --keyside: #8b8b87;    /* side of a key */
  --travel: 6px;         /* how far a key moves when pressed */
  --ta: #f2704e; --cpd: #2f7fd6; --ycl: #3b63ff; --cc: #74d3a2;
  --bad: #ff9a85;        /* error line in the form */
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* type roles */
  --name-font: "Montserrat", "Arial Black", sans-serif; --name-weight: 900; --name-style: italic; --name-case: uppercase; --name-size: clamp(2.6rem, 8.5vw, 5.4rem); --name-track: -.03em; --name-lh: .92;
  --head-font: "Michroma", "Eurostile", sans-serif; --head-weight: 400; --head-style: normal; --head-case: uppercase; --head-track: .14em; --head-size: .9rem;
  --title-font: "Montserrat", sans-serif; --title-weight: 900; --title-style: italic; --title-track: -.02em; --title-ratio: 15;
  --label-font: "Michroma", "Eurostile", sans-serif; --label-weight: 400; --label-style: normal; --label-size: .62rem; --label-track: .14em;
  --key-font: "Michroma", "Eurostile", sans-serif; --key-weight: 400; --key-style: normal; --key-case: uppercase; --key-size: .7rem; --key-track: .06em;
  --free-style: italic; --free-weight: 800;
  color-scheme: dark;
}

* { box-sizing: border-box; border-radius: 0; }
html, body { background: var(--ink); color: var(--chalk); }
body { font-family: var(--body); font-size: 17px; line-height: 1.55; margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- texture: acid wash + fine grain ---------- */
.texture {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='a' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.0035 .011' numOctaves='5' seed='11' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  3.2 0 0 0 -1.45'/></filter><rect width='100%' height='100%' filter='url(%23a)'/></svg>");
  background-size: 900px 900px;
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.page { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding-inline: 16px; padding-block: 32px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 760px) { .page { padding-block: 48px 64px; gap: 64px; } }

/* ---------- hi-fi panel: flat machined plate with a bevel ---------- */
.box { background: linear-gradient(180deg, #181817 0%, #111110 100%); border: 2px solid var(--seam);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -2px 0 rgba(0,0,0,.55), 0 2px 0 #000; }

/* ---------- hero: phones put a small photo beside the name, so the top line and the logos show early ---------- */
.hero { display: grid; gap: 20px 16px; grid-template-columns: minmax(0, 1fr) 108px; grid-template-areas: "name photo" "text text"; align-items: center; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "photo name" "photo text"; gap: 20px 48px; align-items: end; }
  .hero-text { align-self: start; }
}
.name { grid-area: name; margin: 0; text-wrap: balance;
  font-family: var(--name-font); font-weight: var(--name-weight); font-style: var(--name-style); text-transform: var(--name-case);
  font-size: var(--name-size); letter-spacing: var(--name-track); line-height: var(--name-lh); }
.photo-wrap { grid-area: photo; align-self: start; width: 100%; max-width: 240px; padding: 6px; }
@media (min-width: 760px) { .photo-wrap { padding: 10px; } }
.photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; }
.hero-text { grid-area: text; display: grid; gap: 20px; }
.lede { margin: 0; max-width: 24ch; text-wrap: balance; font-weight: 800; font-size: clamp(1.45rem, 5.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; }
.lede span { display: block; margin-top: 10px; font-weight: 400; color: var(--ash); font-size: 1.05rem; line-height: 1.45; letter-spacing: 0; }
/* Signature: stays hidden until /assets/signature.svg loads (the file is added later). */
.signature { display: none; }
.signature.is-loaded { display: block; width: 220px; max-width: 100%; height: auto; }
.links { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- black and white until hover, until picked, or mid-screen on phones (photo) ---------- */
.mono-img, .mono-logo { filter: grayscale(1) contrast(1.08); transition: filter .35s ease; }
.photo-wrap.is-live .mono-img { filter: none; }
@media (hover: hover) { .photo-wrap:hover .mono-img { filter: none; } }

.section-title { margin: 0 0 20px; line-height: 1.15;
  font-family: var(--head-font); font-weight: var(--head-weight); font-style: var(--head-style); text-transform: var(--head-case);
  letter-spacing: var(--head-track); font-size: var(--head-size); }

/* ---------- the four sites: logo keys (tabs) ---------- */
.hint { margin: -8px 0 20px; color: var(--ash); }
.sites { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .sites { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.sites .key { display: block; }
.site-key {
  width: 100%; min-height: 132px; display: grid; grid-template-rows: 56px auto; align-content: center; justify-items: center; gap: 12px;
  padding: 16px 10px; position: relative; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  background: #1e1e1c; color: var(--chalk); border: 0; font: inherit; text-align: center;
  box-shadow: 0 var(--travel) 0 0 #000, inset 0 2px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.4);
  transition: transform 150ms cubic-bezier(.2, 1.6, .4, 1), box-shadow 150ms cubic-bezier(.2, 1.6, .4, 1), background .2s ease;
}
/* Hover only where there is a real pointer, so a tap on a phone never leaves a key half lit. */
@media (hover: hover) {
  .site-key:hover { box-shadow: 0 var(--travel) 0 0 var(--brand), inset 0 2px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.4); }
  .site-key:hover .site-line { color: var(--chalk); }
  .site-key:hover .site-logo { opacity: 1; }
  .site-key:hover .mono-logo:not(.keep-mono) { filter: none; }
  .site-key:hover .ycl-mark { background: var(--ycl); }
  .site-key:hover .cpd-logo .cpd-base { filter: grayscale(1) brightness(.75); }
}
/* Picked: the key stays down in its socket, its logo takes color, and the other three logos dim. */
.site-key[aria-selected="true"], .site-key:active, .site-key.is-down {
  transform: translateY(var(--travel)); transition-duration: 40ms; transition-timing-function: ease-in;
  background: #262624; box-shadow: 0 0 0 0 var(--brand), inset 0 3px 0 rgba(0,0,0,.5), inset 0 -1px 0 rgba(255,255,255,.08);
}
.site-key:focus-visible { outline: 3px solid var(--chalk); outline-offset: 6px; }
.site-logo { height: 56px; width: 100%; display: flex; align-items: center; justify-content: center; opacity: .6; transition: opacity .2s ease; }
.site-logo img { width: auto; max-width: 100%; }
.site-logo .logo-ta { max-height: 54px; }
.site-logo .logo-cpd { max-height: 44px; }
.site-logo .logo-cc { max-height: 34px; }
@media (min-width: 960px) {
  .site-key { min-height: 156px; grid-template-rows: 68px auto; }
  .site-logo { height: 68px; }
  .site-logo .logo-ta { max-height: 66px; }
  .site-logo .logo-cpd { max-height: 54px; }
  .site-logo .logo-cc { max-height: 42px; }
  .site-logo .ycl-mark { height: 54px; }
}
.site-line { font-weight: 700; font-size: .95rem; line-height: 1.25; color: var(--ash); text-wrap: balance; transition: color .2s ease; }
.site-key[aria-selected="true"] .site-logo { opacity: 1; }
.site-key[aria-selected="true"] .site-line { color: var(--chalk); }
.site-key[aria-selected="true"] .mono-logo:not(.keep-mono) { filter: none; }
/* YCL: white logo takes YCL blue. */
.ycl-mark { display: block; height: 44px; max-width: 100%; aspect-ratio: 900 / 351; background: var(--chalk); transition: background .35s ease;
  -webkit-mask: url(/assets/ycl.png) center / contain no-repeat; mask: url(/assets/ycl.png) center / contain no-repeat; }
.site-key[aria-selected="true"] .ycl-mark { background: var(--ycl); }
/* CPD: stays black and white; only the triangle drops in exposure.
   A second copy of the logo, clipped to the words, sits on top so the words never change. */
.cpd-logo { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.cpd-logo .cpd-base { transition: filter .35s ease; }
.site-key[aria-selected="true"] .cpd-logo .cpd-base { filter: grayscale(1) brightness(.75); }
.cpd-logo .cpd-words { position: absolute; inset: 0; height: 100%; width: 100%; max-height: none; clip-path: inset(0 0 0 31.25%); }

/* ---------- story panel under the keys ---------- */
.panels { margin-top: 20px; }
.panel { container-type: inline-size; display: grid; gap: 14px; padding: 22px; min-width: 0; }
.panel:focus { outline: none; }
.panel:focus-visible { outline: 3px solid var(--chalk); outline-offset: 4px; }
/* Names never wrap: sized to the panel so the longest fits on one line. */
.panel h3 { margin: 0; white-space: nowrap; line-height: 1.15;
  font-family: var(--title-font); font-weight: var(--title-weight); font-style: var(--title-style); letter-spacing: var(--title-track);
  font-size: min(2.2rem, calc(100cqi / var(--title-ratio))); }
.story { margin: 0; max-width: 60ch; display: grid; gap: 10px; }
.story p { margin: 0; }
.story strong { font-weight: 700; }
.story .why { color: var(--ash); }
.free { margin: 0; padding-top: 14px; border-top: 2px solid var(--seam); font-weight: var(--free-weight, 700); font-style: var(--free-style, normal); font-size: 1.1rem; }

/* ---------- how it fits together: four steps joined by arrows (down on a phone, across from 960px) ---------- */
.flow-intro { margin: -8px 0 24px; color: var(--ash); max-width: 52ch; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; } }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; min-width: 0; }
.step .learn { margin-top: auto; align-self: flex-start; }
.ctas.brand .btn:not(.dark) { --keyside: var(--brand); }
/* Phones: the three buttons on a Learn more page stack full width so long labels stay on one line. */
@media (max-width: 559px) { .ctas.brand { display: grid; } .ctas.brand .key, .ctas.brand .btn { display: flex; width: 100%; } .ctas.brand .btn { padding-inline: 10px; letter-spacing: .03em; font-size: .64rem; } }
/* The arrow sits in the gap after every step but the last: a chevron pointing down, or right on a laptop. */
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -30px; width: 14px; height: 14px; margin-left: -7px;
  border-right: 3px solid var(--chalk); border-bottom: 3px solid var(--chalk); transform: rotate(45deg);
}
@media (min-width: 960px) {
  .step:not(:last-child)::after { left: auto; right: -30px; bottom: auto; top: 50%; margin: -7px 0 0; transform: rotate(-45deg); }
}
.step-logo { height: 44px; display: flex; align-items: center; }
.step-logo img { width: auto; max-width: 100%; max-height: 40px; }
.step-logo .logo-ta { max-height: 44px; }
.step-logo .logo-cc { max-height: 30px; }
.step-logo .ycl-mark { height: 38px; }
.step-who { display: block; margin: 0 0 8px; font-family: var(--title-font); font-weight: var(--title-weight); font-style: var(--title-style); letter-spacing: var(--title-track); font-size: 1.35rem; line-height: 1.15; }
.step-line { margin: 0; }
.step.is-live .mono-logo:not(.keep-mono) { filter: none; }
.step.is-live .ycl-mark { background: var(--ycl); }
.step.is-live .cpd-logo .cpd-base { filter: grayscale(1) brightness(.75); }
@media (hover: hover) {
  .step:hover .mono-logo:not(.keep-mono) { filter: none; }
  .step:hover .ycl-mark { background: var(--ycl); }
  .step:hover .cpd-logo .cpd-base { filter: grayscale(1) brightness(.75); }
}

/* ---------- quotes row: not on the page yet; paste the block from the comment above Get in touch ---------- */
.quote-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.quote { margin: 0; padding: 22px; display: grid; gap: 16px; align-content: space-between; }
.quote blockquote { margin: 0; font-weight: 700; font-style: italic; font-size: 1.15rem; line-height: 1.4; }
.quote blockquote p { margin: 0; }
.quote figcaption { color: var(--ash); line-height: 1.4; }
.quote figcaption strong { display: block; color: var(--chalk); font-weight: 700; }

/* ---------- keys: a face that drops into its socket on press, then springs back ---------- */
.key { display: inline-block; padding: 4px 4px calc(4px + var(--travel)); background: #050505; border: 2px solid #232321; box-shadow: inset 0 3px 0 rgba(0,0,0,.9); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; text-decoration: none; cursor: pointer; user-select: none;
  min-height: 46px; padding: 10px 20px; background: var(--chalk); color: var(--ink); border: 0;
  font-family: var(--key-font); font-weight: var(--key-weight); font-style: var(--key-style); text-transform: var(--key-case);
  font-size: var(--key-size); letter-spacing: var(--key-track);
  box-shadow: 0 var(--travel) 0 0 var(--keyside), inset 0 -2px 0 rgba(0,0,0,.12), inset 0 2px 0 rgba(255,255,255,.6);
  transition: transform 150ms cubic-bezier(.2, 1.6, .4, 1), box-shadow 150ms cubic-bezier(.2, 1.6, .4, 1);
}
.panel .btn { --keyside: var(--brand); }
.btn:hover { --keyside: var(--brand, #b5b5b0); }
.btn:active, .btn.is-down {
  transform: translateY(var(--travel)); transition-duration: 40ms; transition-timing-function: ease-in;
  box-shadow: 0 0 0 0 var(--keyside), inset 0 3px 0 rgba(0,0,0,.22), inset 0 -1px 0 rgba(255,255,255,.4);
}
.btn:focus-visible { outline: 3px solid var(--chalk); outline-offset: 6px; }
.btn.dark { background: #1e1e1c; color: var(--chalk); box-shadow: 0 var(--travel) 0 0 #000, inset 0 2px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.4); }
.btn.dark:active, .btn.dark.is-down { box-shadow: 0 0 0 0 #000, inset 0 3px 0 rgba(0,0,0,.5); }
.btn.is-soon, .btn.is-soon:active { cursor: default; background: #2a2a28; color: var(--ash); transform: translateY(var(--travel)); box-shadow: inset 0 2px 0 rgba(0,0,0,.4); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: calc(var(--key-size) * .9); }
.btn[disabled] { cursor: progress; opacity: .7; }

/* ---------- contact panel ---------- */
.contact { padding: 22px; display: grid; gap: 8px; width: 100%; max-width: 780px; justify-self: center; }
.contact .section-title { margin-bottom: 4px; }
.contact-lead { margin: 0 0 12px; color: var(--ash); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 500; }
input, textarea, select {
  font: inherit; color: var(--chalk); background: #070707; width: 100%;
  border: 2px solid #4a4a47; padding: 12px 14px; border-radius: 0; box-shadow: inset 0 3px 0 rgba(0,0,0,.6);
}
input:focus, textarea:focus, select:focus { border-color: var(--chalk); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--chalk) 50%), linear-gradient(135deg, var(--chalk) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; }
form .key { justify-self: start; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.sent { font-weight: 700; margin: 0; }
.sent.is-error { color: var(--bad); }
.done { display: grid; gap: 6px; }
.done p { margin: 0; }
.done .done-line { font-weight: 700; font-size: 1.15em; }
.done:focus { outline: none; }

footer { color: var(--ash); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between;
  font-family: var(--label-font); font-weight: var(--label-weight); font-style: var(--label-style); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: uppercase; }

.footer-keys { display: inline-flex; flex-wrap: wrap; gap: 12px; }
/* The Stim key: rapid taps must not zoom the page on a phone. */
.stim, .photo-wrap { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Learn more pages (/ta/, /cpd/, /channelcareers/, /ycl/) ---------- */
a.site-key { text-decoration: none; }
.site-key[aria-current="page"] {
  transform: translateY(var(--travel)); background: #262624;
  box-shadow: 0 0 0 0 var(--brand), inset 0 3px 0 rgba(0,0,0,.5), inset 0 -1px 0 rgba(255,255,255,.08);
}
.site-key[aria-current="page"] .site-logo { opacity: 1; }
.site-key[aria-current="page"] .site-line { color: var(--chalk); }
.site-key[aria-current="page"] .mono-logo:not(.keep-mono) { filter: none; }
.site-key[aria-current="page"] .ycl-mark { background: var(--ycl); }
.site-key[aria-current="page"] .cpd-logo .cpd-base { filter: grayscale(1) brightness(.75); }
.learn { margin-top: 4px; }
.sub-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.sub-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.sub-logo { height: 72px; display: flex; align-items: center; }
.sub-logo img { width: auto; max-width: 100%; max-height: 72px; }
.sub-logo .ycl-mark { height: 64px; background: var(--ycl); }
.sub-name { margin: 0; line-height: 1.05; text-wrap: balance;
  font-family: var(--title-font); font-weight: var(--title-weight); font-style: var(--title-style); letter-spacing: var(--title-track);
  font-size: clamp(2rem, 9vw, 3.4rem); overflow-wrap: anywhere; }
/* The line under a Learn more page name sits one step below the name. */
.sub-hero .lede { font-size: clamp(1.2rem, 4.6vw, 1.7rem); }
.who-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.who-grid .box { padding: 20px; display: grid; gap: 8px; align-content: start; }
.who-grid p { margin: 0; }
@media (min-width: 960px) { .flow.flow-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why-box { padding: 22px; display: grid; gap: 12px; }
.why-box .section-title { margin: 0; }
.why-box p { margin: 0; max-width: 60ch; font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.next-line { margin: 0; max-width: 40ch; font-weight: 700; font-size: 1.15rem; }
