/* TeX Gyre Heros (GUST Font License, free to redistribute): a Helvetica-shaped fallback for devices without Helvetica */
@font-face { font-family: "TeX Gyre Heros"; src: url("../fonts/texgyreheros-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("../fonts/texgyreheros-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Layout: quiet hero; a pinned section lit like a glass studio (pearl blush to ice blue) where cast-glass panes travel a
   wide arc off the right of the page; each audience pane lifts out of the arc to be read; the black AI pane trails
   alone; then the glass resolves into the exact logo lockup on white. Single light look on purpose: the logo lives on
   white and tinted glass only mixes correctly over a light ground. */
:root {
  --bg: #ffffff;
  --paper: #f4f6f5;
  --fg: #111111;
  --muted: #4f585b;
  --line: #dfe4e2;
  --magenta: #ff7ff6;
  --cyan: #7fe4f6;
  --yellow: #fdff7f;
  --green: #bff27b;
  --k: #0d0d0d;
  --chip: rgba(255,255,255,.72);
  --chip-on: rgba(255,255,255,.92);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
/* every ampersand on the page is set in Times New Roman */
.amp { font-family: "Times New Roman", Tinos, Times, serif; font-style: normal; letter-spacing: 0; }
/* the "ai" in the split name, set like the logo: serif italic */
.brand-ai { font-family: "Times New Roman", Tinos, Times, serif; font-style: italic; font-weight: 400; font-size: 1.08em; margin: 0 .04em 0 .02em; }
.eyebrow .amp, .tag .amp { margin-left: -0.1em; margin-right: 0.04em; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
.wrap { width: 100%; max-width: clamp(1192px, 78vw, 1640px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.top { padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: block; line-height: 0; }
.logo svg { height: clamp(56px, 3.2vw, 76px); width: auto; display: block; overflow: visible; }
.logo .tile { transform-box: fill-box; transform-origin: center; will-change: transform; }
#hdrLogo > :not(.tile), header.top nav { opacity: var(--fade, 1); }
body:not(.inner) header.top { position: fixed; }
nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: clamp(15px, 0.85vw, 17px); }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--fg); }
/* phones: the links move into a full-screen sheet behind a Menu button; the button stays when the header fades on the homepage */
.menu-btn { display: none; }
@media (max-width: 820px) {
  .top { flex-wrap: nowrap; padding-block: 16px; }
  .menu-btn { display: inline-flex; position: relative; z-index: 7; flex: none; font: 600 15px var(--body); color: var(--fg); padding: .55em 1.15em;
    border: 1.5px solid var(--fg); border-radius: 999px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; }
  header.top nav { position: fixed; inset: 0; z-index: 6; flex-direction: column; flex-wrap: nowrap; justify-content: center; gap: 18px;
    padding: 0 max(28px, env(safe-area-inset-left, 0px)); background: #f6f4ef; font: 800 34px/1.15 var(--display); letter-spacing: -.01em;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
  header.top nav a { color: var(--fg); }
  header.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
  header.top.open nav { opacity: 1; visibility: visible; transition: opacity .25s ease; }
  header.top.open .menu-btn { background: var(--fg); color: var(--bg); }
}

.eyebrow { display: inline-flex; align-items: center; flex-wrap: wrap; font-size: clamp(15px, 0.95vw, 18px); font-weight: 600; color: #2a2f31; }
/* small labels: sentence case, each led by a logo tile in full cyan, magenta or yellow */
:root { --hx-c: rgb(0,201,237); --hx-m: rgb(255,0,237); --hx-y: rgb(251,230,0); }
.eyebrow:not(.multi)::before, .eyebrow .it::before { content: ""; flex: none; width: 11px; height: 15px; margin-right: 8px; background: var(--hx, var(--hx-c));
  clip-path: polygon(58.3% 0, 100% 0, 100% 75.1%, 41.7% 100%, 0 100%, 0 24.9%); }
.eyebrow.multi { gap: 6px 18px; }
.eyebrow .it { display: inline-flex; align-items: center; }
.hx-c { --hx: var(--hx-c); } .hx-m { --hx: var(--hx-m); } .hx-y { --hx: var(--hx-y); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3vw, 60px); line-height: 1.06; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-weight: 500; font-style: italic; letter-spacing: -0.01em; }

.hero { padding-block: 64px 96px; display: grid; gap: 28px; }
.hero > * { max-width: 880px; }
.lede { font-size: clamp(18px, 1.35vw, 26px); color: var(--muted); max-width: 40ch; margin: 0; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; font: 600 clamp(16px, 0.95vw, 19px) var(--body); padding: 0.85em 1.4em; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--fg); color: var(--fg); }
.btn.primary { background: var(--fg); color: var(--bg); }

.band, .deck { background: transparent; color: var(--fg); }

/* ---------- The wallpaper: Monet, Nymphéas (1908), at about 10% on charcoal-style paper. Static. ---------- */
#monet { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; display: block; }
main, footer { position: relative; z-index: 1; }
/* the header floats over the glass section, so the glass can reach the top of the window */
header.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.deck-intro { display: grid; gap: 12px; }
.deck-intro > * { max-width: 660px; }

/* ---------- The glass ---------- */
.deck { position: relative; height: 940vh; }
.pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#glass { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback { position: absolute; left: 50%; top: 50%; width: min(86%, 900px); transform: translate(-50%, -50%); display: none; }
.deck.no-gl #glass { display: none; }
.deck.no-gl .fallback { display: block; left: auto; right: 4%; width: min(40%, 520px); transform: translateY(-50%); }
.pin-inner { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; padding-top: 64px; pointer-events: none; }
/* on wide windows the text and glass sit further right than the header, using the spare width; laptops are unaffected */
:root { --content-shift: max(0px, calc((100vw - 1440px) * 0.17)); }
.deck .pin-inner { padding-left: calc(max(16px, env(safe-area-inset-left, 0px)) + var(--content-shift)); }
/* the hero and the audience cards share one spot on the left; scrolling hands over from one to the other */
.stage { display: grid; width: min(100%, clamp(560px, 40vw, 900px)); }
.stage > * { grid-area: 1 / 1; align-self: center; }
.stage .hero { display: grid; gap: 26px; padding: 0; pointer-events: auto; transition: opacity .5s ease, transform .5s ease; }
.stage .hero h1 { font-size: clamp(40px, 4.6vw, 96px); }
.stage .hero.gone { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.info { width: min(100%, clamp(490px, 33vw, 720px)); display: grid; gap: 22px; pointer-events: auto; transition: opacity .5s ease, transform .5s ease; }
.info.pre { opacity: 0; transform: translateY(18px); pointer-events: none; }
.info .deck-intro { gap: 10px; padding-bottom: 8px; transition: opacity .4s ease; }
.info .deck-intro h2 { font-size: clamp(30px, 2.9vw, 60px); }
/* the audience heading hands over to the AI pane's own heading in the same spot */
.info .deck-intro > div { grid-area: 1 / 1; display: grid; gap: 10px; align-content: end; transition: opacity .4s ease; }
.info .intro-ai { opacity: 0; }
.info.late .intro-aud { opacity: 0; }
.info.late .intro-ai { opacity: 1; }
.info.fold { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.cards { position: relative; min-height: clamp(360px, 20vw, 430px); }
.card { position: absolute; inset: 0 0 auto 0; display: grid; gap: 14px; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.card.on { opacity: 1; transform: none; pointer-events: auto; }
.card .tag { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(15px, 0.95vw, 18px); font-weight: 600; color: #2a2f31; }
.card .tag i { width: 13px; height: 17.6px; background: var(--c); clip-path: polygon(58.3% 0, 100% 0, 100% 75.1%, 41.7% 100%, 0 100%, 0 24.9%); }
.card h3 { font-size: clamp(22px, 1.8vw, 36px); line-height: 1.15; }
.card p { margin: 0; color: var(--muted); max-width: 46ch; font-size: clamp(17px, 1.05vw, 21px); }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.card li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--fg); }
.card li b { font-weight: 600; }
.card li span { color: var(--muted); font-size: 15px; }
.card .start { font-size: clamp(15px, 0.9vw, 18px); padding-top: 12px; border-top: 1px solid var(--line); }
.card .start b { font-weight: 600; }
.card a { color: var(--fg); font-weight: 600; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.steps button { font: 500 clamp(13px, 0.75vw, 15px) var(--body); color: var(--muted); background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.steps button[aria-current="true"] { color: var(--fg); border-color: var(--fg); background: var(--chip-on); }

/* ---------- M&A detail ---------- */
.ma { margin-block: 40px 0; padding-block: 72px; padding-inline: clamp(20px, 5vw, 64px); background: color-mix(in srgb, var(--paper) 88%, transparent); border-radius: 6px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ma > div { display: grid; gap: 16px; min-width: 0; }
.ma p { margin: 0; color: var(--muted); }
.phase { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase .when { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: 3px; }
.phase b { display: block; font-weight: 600; }
.phase span { color: var(--muted); font-size: 15px; }

.close { padding-block: 104px 72px; display: grid; gap: 18px; }
.close > * { max-width: 660px; }
.close p { margin: 0; color: var(--muted); }
footer { padding-block: 28px 40px; font-size: 13px; color: var(--muted); }
footer .row { border-top: 1px solid var(--line); padding-top: 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .logo svg { height: 46px; }
  .deck { height: 980vh; }
  /* full-screen glass that dissolves into the painting above the text, so there's no box edge */
  .pin { height: 100svh; }
  /* fades just above the text; opens fully as the glass becomes the logo so the logo is never greyed */
  #glass { --m: linear-gradient(#000 calc(var(--mask-a, 44vh) + var(--open, 0) * 100vh), transparent calc(var(--mask-b, 56vh) + var(--open, 0) * 100vh));
    -webkit-mask-image: var(--m); mask-image: var(--m); }
  .fallback { top: 24%; }
  .pin-inner { align-items: flex-end; padding-bottom: 20px; }
  .stage { width: 100%; }
  .stage > * { align-self: end; }
  /* the hero starts right under the glass; the stage is as tall as the cards, so end-aligning it left a gap */
  .stage .hero { align-self: start; padding-top: 8px; margin-top: calc(-1 * var(--hero-lift, 0px)); }   /* lifted to sit just under the resting glass */
  .stage .hero { gap: 18px; }
  .stage .hero h1 { font-size: 36px; }
  .info { width: 100%; gap: 14px; }
  .info .deck-intro h2 { display: none; }
  .deck.no-gl .fallback { top: 24%; right: 8%; width: 84%; }
  .cards { min-height: 310px; }
  .card { gap: 10px; }
  .card h3 { font-size: 23px; }
  .card p, .card li span, .card .start { font-size: 14.5px; }
  .steps { display: none; }
  .ma { grid-template-columns: minmax(0, 1fr); padding-block: 48px; }
  .phase { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero { padding-block: 32px 64px; }
}

/* Reduced motion: nothing pins or turns; the logo sits beside the full list */
@media (prefers-reduced-motion: reduce) {
  .deck { height: auto; }
  .pin { position: relative; height: auto; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #glass { position: sticky; top: 0; height: 100vh; order: 2; }
  .pin-inner { order: 1; height: auto; padding-block: 48px; }
  .info { width: 100%; }
  .stage { display: grid; gap: 64px; width: 100%; }
  .stage > * { grid-area: auto; }
  .cards { min-height: 0; display: grid; gap: 40px; }
  .card { position: static; opacity: 1; transform: none; pointer-events: auto; transition: none; }
  .steps { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 820px) {
  .pin { grid-template-columns: minmax(0, 1fr); }
  #glass { position: relative; height: 40vh; order: 1; }
  .pin-inner { order: 2; }
}

/* ---------- Inner pages (Services, Approach, About, Contact): same paper, painting and type; no glass dial ---------- */
body.inner header.top { position: relative; }
.page-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center;
  padding-block: clamp(48px, 7vw, 120px) clamp(40px, 5vw, 80px); }
.page-hero > div { display: grid; gap: 22px; max-width: 760px; }
.page-hero h1 { font-size: clamp(40px, 4.6vw, 88px); }
/* a small stack of the logo's glass tiles beside the title: cyan, magenta, yellow, half-transparent like the mark */
/* the stacked logo turned vertical: tiles in the logo's own blend (cyan back, magenta, yellow front, each 50%), fading into the painting */
.glass-stack { position: relative; width: clamp(130px, 11vw, 210px); aspect-ratio: 247 / 558; margin-right: clamp(0px, 4vw, 80px);
  -webkit-mask: linear-gradient(#000 60%, transparent 98%); mask: linear-gradient(#000 60%, transparent 98%); }
.glass-stack i { position: absolute; left: 0; width: 100%; height: 59.9%; opacity: .5;
  clip-path: polygon(58.3% 0, 100% 0, 100% 75.1%, 41.7% 100%, 0 100%, 0 24.9%); }
.glass-stack i:nth-child(1) { top: 0; background: rgb(255, 0, 237); z-index: 2; }
.glass-stack i:nth-child(2) { top: 20.05%; background: rgb(0, 201, 237); z-index: 1; }
.glass-stack i:nth-child(3) { top: 40.1%; background: rgb(251, 230, 0); z-index: 3; }

.svc { padding-block: clamp(40px, 5vw, 80px); display: grid; gap: 28px; border-top: 1px solid var(--line); }
.svc-head { display: grid; gap: 10px; max-width: 760px; }
.svc-head p { margin: 0; color: var(--muted); }
.svc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.svc-card { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2vw, 32px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--line); border-radius: 6px; }
.svc-card .tag { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(15px, 0.95vw, 17px); font-weight: 600; color: #2a2f31; }
.svc-card .tag i { width: 13px; height: 17.6px; background: var(--c); clip-path: polygon(58.3% 0, 100% 0, 100% 75.1%, 41.7% 100%, 0 100%, 0 24.9%); }
.svc-card h3 { font-size: clamp(22px, 1.7vw, 32px); line-height: 1.15; }
.svc-card p { margin: 0; color: var(--muted); }
.svc-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc-card li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--fg); }
.svc-card li span { color: var(--muted); font-size: 15px; }
.svc-card .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.svc-card .meta b { font-weight: 600; }
.svc-card .meta .ask a { color: var(--fg); font-weight: 600; }
.svc-card.wide { grid-column: 1 / -1; }
/* prices: one switch on <html data-prices="show|hide">; hidden prices read "Contact us for pricing" */
html[data-prices="hide"] .price { display: none; }
html:not([data-prices="hide"]) .price-alt { display: none; }
.svc-note { margin: 0; color: var(--muted); font-size: 15px; }
.svc-note a { color: var(--fg); font-weight: 600; }
@media (max-width: 820px) {
  .page-hero { grid-template-columns: minmax(0, 1fr); }
  .glass-stack { display: none; }
}

/* Contact */
.cal-frame { min-height: 640px; background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cal-frame > * { width: 100%; }
a.mail { color: var(--fg); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Approach: engagement path and red lines */
.path { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.path li { counter-increment: step; display: grid; grid-template-columns: 64px 160px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding-block: 18px; border-bottom: 1px solid var(--line); }
.path li::before { content: counter(step, decimal-leading-zero); font-size: 13px; letter-spacing: .12em; font-weight: 600; color: var(--muted); }
.path b { font-weight: 800; font-size: clamp(18px, 1.3vw, 24px); letter-spacing: -0.02em; }
.path span { color: var(--muted); }
.wont { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 760px; }
.wont li { padding-left: 28px; position: relative; font-size: clamp(17px, 1.1vw, 21px); }
.wont li::before { content: ""; position: absolute; left: 0; top: .7em; width: 14px; height: 2px; background: var(--fg); }
/* About: bio and headshot spot, cut in the logo's hexagon */
.svc-head.bio { max-width: 820px; gap: 14px; }
.headshot { margin: 0 clamp(0px, 4vw, 80px) 0 0; width: clamp(180px, 16vw, 280px); aspect-ratio: 247 / 334; display: grid; place-items: center;
  clip-path: polygon(58.3% 0, 100% 0, 100% 75.1%, 41.7% 100%, 0 100%, 0 24.9%);
  background: linear-gradient(150deg, rgba(255,255,255,.7), rgba(255,255,255,.2)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  outline: 1px dashed var(--line); }
.headshot span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.headshot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .path li { grid-template-columns: 40px minmax(0, 1fr); }
  .path li span { grid-column: 2; }
  .headshot { display: none; }
}
@media (prefers-reduced-motion: reduce) { body:not(.inner) header.top { position: absolute; } }
