/* Ascent At Studios: page CSS on top of the design kit (assets/system.css, layout.css, motion.css).
   Brand from the client's brief: accent #00ADEF, cool whites only, Space Grotesk bold headlines, Manrope body. */

:root {
  --p-bg: #ffffff; --p-surface: #f3f8fc; --p-ink: #0b1a2b; --p-muted: #4a5b6e;
  --p-accent: #00adef; --p-accent-ink: #0b1a2b; --p-action: #00adef; --p-action-ink: #0b1a2b;
  --p-inv-bg: #0b1a2b; --p-inv-surface: #13263b; --p-inv-ink: #ffffff; --p-inv-muted: #a9b6c4;
  --p-inv-accent: #00adef; --p-inv-accent-ink: #0b1a2b; --p-inv-action: #00adef; --p-inv-action-ink: #0b1a2b;
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-text: "Manrope", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.035em;
  --ly-scale: 0.97;
  /* small blue text: #00ADEF is 2.6:1 on white, so text links and labels use this darker blue (4.9:1) */
  --blue-text: #0077b6;
  --sky: #00adef;
}
html { scroll-behavior: auto; }
body { background: var(--p-bg); }

/* headlines: Space Grotesk bold (client brief) */
h1, h2, h3, .t-display { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--display-tracking); }
h3 { letter-spacing: -0.015em; }

/* logo: the client's blue-and-white mark beside the name */
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; font-size: 17px; white-space: nowrap; }
.nav__logo img { width: 34px; height: 34px; display: block; flex: none; }
@media (max-width: 639px) { .nav__logo { font-size: 15px; } .nav__logo img { width: 30px; height: 30px; } }
.nav__link[aria-current="page"] { color: var(--ink); }

/* ---------- Home hero: the client's background film in the rounded frame ---------- */
.hero--film .hero__media { position: relative; overflow: hidden; background: #cfeefc; }
.hero__video, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__video { opacity: 0; transition: opacity .6s ease; }
.hero__video.is-playing { opacity: 1; }
/* the words sit in a solid white box (no scrim over the film) */
.hero--film .hero__over > :first-child {
  background: var(--p-bg); color: var(--p-ink); max-width: 640px;
  --bg: var(--p-bg); --ink: var(--p-ink); --muted: var(--p-muted); --action: var(--p-action); --action-ink: var(--p-action-ink);
  --line: color-mix(in oklab, var(--p-ink) 14%, transparent); --line-strong: color-mix(in oklab, var(--p-ink) 30%, transparent);
}
.hero--film .hero__over h1 { max-width: 16ch; }
.hero--film .hero__over .hero__lead { color: var(--p-ink); }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* ---------- shared section pieces ---------- */
.lede { font-size: var(--t-lead); line-height: 1.55; color: var(--ink); max-width: 60ch; }
.prose p { font-size: 18px; line-height: 1.7; color: var(--ink); max-width: 60ch; margin: 0; }
.prose p + p { margin-top: var(--s-5); }
.idx { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: .02em; color: var(--blue-text); }
.ground-inverse .idx { color: var(--sky); }
.kicker { font-size: 15px; font-weight: 500; color: var(--blue-text); margin: 0 0 var(--s-4); }
.ground-inverse .kicker { color: var(--sky); }

/* the underline the promo film draws under a key phrase */
.underline { background: linear-gradient(var(--sky), var(--sky)) 0 100% / 100% 4px no-repeat; padding-bottom: 2px; }

/* numbered blocks: text + icon, rounded (What We Do, beliefs, reasons) */
.blocks { display: grid; gap: var(--s-5); }
.blocks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blocks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blocks--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.block { background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-7); display: flex; flex-direction: column; gap: var(--s-4); }
.ground-surface .block { background: var(--p-bg); }
.ground-inverse .block { background: var(--p-inv-surface); }
.block h3 { font-size: var(--t-card); margin: 0; line-height: 1.25; }
.block p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink); }
.block__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #e0f4fd; color: #00699e; }
.ground-inverse .block__icon { background: rgba(0,173,239,.16); color: var(--sky); }
.block__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.block__num { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--sky); letter-spacing: -0.03em; }
@media (max-width: 1023px) { .blocks--3, .blocks--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .blocks--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 639px) { .blocks--3, .blocks--2, .blocks--4 { grid-template-columns: 1fr; } .block { padding: var(--s-5); } .blocks { gap: var(--s-3); } }

/* rows list inside text columns */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; display: flex; gap: var(--s-4); align-items: baseline; }
.list li:first-child { border-top: 1px solid var(--line); }
.list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex: none; transform: translateY(-2px); }
.list--plain li::before { display: none; }

/* split columns */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.split > .l { grid-column: 1 / span 6; }
.split > .r { grid-column: 7 / span 6; }
.split > .l5 { grid-column: 1 / span 5; }
.split > .r7 { grid-column: 6 / span 7; }
@media (max-width: 1023px) { .split > .l, .split > .r, .split > .l5, .split > .r7 { grid-column: 1 / -1; } }

/* ---------- The Shift: the rising line (from the promo film) ---------- */
.rise { margin: 0; background: var(--p-inv-bg); border-radius: var(--r-lg); color: #fff; padding: var(--s-6); aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.rise svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rise .rise__line { stroke: var(--sky); stroke-width: 3; fill: none; stroke-linecap: round; }
.rise .rise__dot { fill: #fff; }
.rise .rise__dot--end { fill: var(--sky); }
.rise text { font-family: var(--font-text); font-size: 15px; font-weight: 500; fill: #fff; }
.rise text.end { fill: var(--sky); }
.rise .rise__grid { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.rise__label { position: absolute; left: var(--s-6); top: var(--s-6); font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.rise__sub { position: absolute; left: var(--s-6); top: calc(var(--s-6) + 52px); font-size: 14px; color: var(--p-inv-muted); margin: 0; }
html[data-motion] .rise .rise__line { stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900); transition: stroke-dashoffset 1.6s cubic-bezier(.3,.7,.2,1) .2s; }
html[data-motion] .rise.is-in .rise__line { stroke-dashoffset: 0; }
html[data-motion] .rise .rise__pt { opacity: 0; transition: opacity .4s ease; }
html[data-motion] .rise.is-in .rise__pt { opacity: 1; }
html[data-motion] .rise.is-in .rise__pt:nth-of-type(2) { transition-delay: .5s; }
html[data-motion] .rise.is-in .rise__pt:nth-of-type(3) { transition-delay: .9s; }
html[data-motion] .rise.is-in .rise__pt:nth-of-type(4) { transition-delay: 1.3s; }
@media (prefers-reduced-motion: reduce) { html[data-motion] .rise .rise__line { stroke-dashoffset: 0; transition: none; } html[data-motion] .rise .rise__pt { opacity: 1; } }

/* ---------- How We Work: centre-aligned steps on the dark band, every step's text always visible ---------- */
.how { text-align: center; }
.how .section-head { margin-inline: auto; max-width: 760px; text-align: center; }
.how .section-head p { margin-inline: auto; }
.how__steps { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; position: relative; display: grid; gap: var(--s-7); }
.how__track { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; transform: translateX(-50%); background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.how__fill { position: absolute; inset: 0 0 auto 0; height: calc(var(--how-p, 1) * 100%); background: var(--sky); }
.how__step { position: relative; display: grid; gap: var(--s-3); justify-items: center; padding: var(--s-5) var(--s-6); background: var(--p-inv-bg); }
.how__num { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--sky); background: var(--p-inv-bg); border: 1.5px solid var(--sky); border-radius: 999px; min-width: 52px; height: 32px; display: inline-grid; place-items: center; padding: 0 12px; }
.how__step h3 { font-size: 26px; margin: 0; line-height: 1.2; color: #fff; }
.how__step p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--p-inv-muted); max-width: 54ch; }
.how__close { margin: var(--s-8) auto 0; max-width: 46ch; font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.35; color: #fff; letter-spacing: -0.01em; }
/* the steps not yet reached sit a little quieter (still 7:1+), so nothing is ever hidden */
html[data-motion] .how__step { transition: opacity .5s ease; }
html[data-motion] .how__step.is-ahead h3 { color: #c9d4df; }
@media (prefers-reduced-motion: reduce) { .how__fill { height: 100%; } }
@media (max-width: 639px) {
  .how__steps { gap: var(--s-4); }
  .how__step { padding: var(--s-4) var(--s-3); }
  .how__step h3 { font-size: 21px; }
  .how__step p { font-size: 16px; }
  .how__close { font-size: 19px; margin-top: var(--s-6); }
}

/* ---------- the statement that lights up (word-highlight moment) ---------- */
.statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 2.6vw + 14px, 56px); line-height: 1.12; letter-spacing: -0.03em; max-width: 22ch; margin: 0; }

/* ---------- About: video in a rounded frame (milledollars-style) ---------- */
.vframe { position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: #e8f6fd; aspect-ratio: 16 / 9; box-shadow: 0 1px 0 rgba(11,26,43,.04); }
.vframe video, .vframe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vframe video { opacity: 0; transition: opacity .5s ease; }
.vframe video.is-playing { opacity: 1; }
.vframe__btn { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(11,26,43,.72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vframe__btn svg { width: 16px; height: 16px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .vframe video { display: none; } }
@media (max-width: 639px) { .vframe { border-radius: 20px; } }

/* split hero (About, Services, Let's Connect) */
.hero--split .hero-text { align-items: start; }
.hero--page .hero-copy h1 { max-width: 14ch; }

/* Before / After */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.ba__col { border-radius: var(--r-lg); padding: var(--s-7); }
.ba__col--before { background: var(--p-surface); }
.ba__col--after { background: var(--p-inv-bg); color: #fff; --ink: #fff; --line: rgba(255,255,255,.14); }
.ba__col h3 { font-size: 24px; margin: 0 0 var(--s-5); }
.ba__col--after h3 { color: var(--sky); }
.ba__col .list li { font-size: 17px; }
.ba__col--before .list li::before { background: #9fb0c2; }
@media (max-width: 1023px) { .ba { grid-template-columns: 1fr; gap: var(--s-3); } .ba__col { padding: var(--s-5); } }

/* The Monthly Cycle: five stages in a loop */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); position: relative; }
.cycle li { background: var(--p-bg); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); position: relative; }
.cycle h3 { font-size: 21px; margin: 0; }
.cycle p { margin: 0; font-size: 16px; line-height: 1.6; }
.cycle .idx { display: flex; align-items: center; gap: 8px; }
.cycle__back { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); font-size: 15px; color: var(--blue-text); font-weight: 500; }
.cycle__back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1279px) { .cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cycle { grid-template-columns: 1fr; gap: var(--s-3); } .cycle li { padding: var(--s-4); } }

/* Founders */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-6); align-items: start; background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-6); }
.founder__photo { aspect-ratio: 4 / 5; border-radius: var(--r-md); background: repeating-linear-gradient(135deg, #e3eef6 0 10px, #edf5fa 10px 20px); display: grid; place-items: center; text-align: center; padding: var(--s-4); font-size: 13px; color: var(--p-muted); }
.founder h3 { font-size: 28px; margin: 0 0 var(--s-3); }
.founder p { margin: 0 0 var(--s-5); }
.founder__links { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 1023px) { .founder { grid-template-columns: 140px 1fr; } }
@media (max-width: 639px) { .founder { grid-template-columns: 1fr; padding: var(--s-5); } .founder__photo { aspect-ratio: 16 / 9; } }

/* pill links (socials, contact methods) */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.pill:hover { border-color: var(--sky); background: #f0faff; }
.pill svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* placeholder marker (the client fills these) */
.ph { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 600; color: #b42318; background: #fff1f0; border: 1px dashed #f04438; border-radius: 6px; padding: 2px 8px; }

/* Services: the work strip (YouTube facades, thumbnail first) */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); }
.work__short { grid-column: 1 / span 3; grid-row: 1 / span 2; aspect-ratio: 9 / 16; }
.work__wide { aspect-ratio: 16 / 9; grid-column: span 4; }
.work__short, .work__wide { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0b1a2b; }
.yt { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; padding: 0; background: #0b1a2b; cursor: pointer; }
.yt img, .yt__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.yt img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.yt:hover img { transform: scale(1.03); }
.yt__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; transition: transform .2s ease; z-index: 1; }
.yt:hover .yt__play { transform: scale(1.06); }
.yt__play svg { width: 22px; height: 22px; fill: #0b1a2b; margin-left: 3px; }
@media (max-width: 1023px) { .work__short { grid-column: 1 / span 4; } .work__wide { grid-column: span 4; } }
@media (max-width: 639px) { .work { grid-template-columns: 1fr 1fr; gap: var(--s-3); } .work__short { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; } .work__wide { grid-column: span 1; } .yt__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; } }

/* Let's Connect: the contact card */
.contact-card { background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-7); display: grid; gap: var(--s-5); }
.contact-row { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start; }
.contact-row h3 { font-size: 20px; margin: 0 0 4px; }
.contact-row p { margin: 0; font-size: 16px; line-height: 1.55; }
.contact-row a.link { color: var(--blue-text); }
.contact-row + .contact-row { padding-top: var(--s-5); border-top: 1px solid var(--line); }
@media (max-width: 639px) { .contact-card { padding: var(--s-5); } }

/* steps (What happens next) */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); counter-reset: s; }
.steps3 li { border-top: 2px solid var(--sky); padding-top: var(--s-5); }
.steps3 h3 { font-size: 24px; margin: var(--s-3) 0; }
.steps3 p { margin: 0; font-size: 17px; line-height: 1.6; }
@media (max-width: 1023px) { .steps3 { grid-template-columns: 1fr; gap: var(--s-5); } }

/* footer extras */
.footer__meta { display: grid; gap: var(--s-2); font-size: 15px; }
.footer__meta a { color: var(--blue-text); }
.closing .socials { display: flex; gap: var(--s-2); }
.closing .socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s ease, color .2s ease; }
.closing .socials a:hover { border-color: var(--sky); color: #0077b6; }
.closing .socials svg { width: 18px; height: 18px; fill: currentColor; }

/* small blue links in body copy */
main a.link, .footer a.link { color: var(--blue-text); }

/* How We Work list wrapper (the track sits beside the ordered list, never inside it) */
.how__list { position: relative; max-width: 720px; margin: 0 auto; }
.how__list .how__steps { max-width: none; }

/* linked blocks lift 2px on hover (house hover layer) */
a.block { color: inherit; text-decoration: none; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background-color .25s ease; }
a.block:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(11,26,43,.35); }
a.block:hover .block__icon { background: var(--sky); color: #fff; }
.block__icon { transition: background-color .25s ease, color .25s ease; }

/* the opportunity statement (word-highlight); large accent word in a blue that clears 3:1 on white */
.statement-sec .mo-wh__text { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 2.4vw + 16px, 56px); line-height: 1.12; letter-spacing: -0.03em; max-width: 20ch; }
.mo-wh strong .mo-w.is-on, .statement-sec strong { color: #0099d6; }
@media (prefers-reduced-motion: reduce) { .mo-wh strong .mo-w { color: #0099d6; } }

/* credibility rows */
.cred { list-style: none; margin: 0; padding: 0; }
.cred li { padding: var(--s-6) 0; border-top: 1px solid var(--line); }
.cred li:last-child { border-bottom: 1px solid var(--line); }
.cred h3 { font-size: 22px; margin: 0 0 var(--s-3); }
.cred p { margin: 0; font-size: 17px; line-height: 1.65; max-width: 60ch; }
@media (max-width: 639px) { .cred li { padding: var(--s-4) 0; } .cred h3 { font-size: 19px; } .cred p { font-size: 16px; } }

/* Services */
.list-head { font-size: 15px; font-weight: 600; font-family: var(--font-text); letter-spacing: 0; margin: var(--s-7) 0 var(--s-3); color: var(--muted); }
.ground-inverse .list-head { color: var(--p-inv-muted); margin-top: 0; }
.lede + .list { margin-top: var(--s-6); }
.photo-frame { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #eef6fb; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.photo-frame:hover img { transform: scale(1.025); }
.dg-card { background: var(--p-bg); border-radius: var(--r-lg); padding: var(--s-5); min-height: 420px; display: grid; }
.dg-card .dg { width: 100%; height: 100%; min-height: 380px; }
.track { list-style: none; margin: 0; padding: 0; }
.track li { display: flex; align-items: baseline; gap: var(--s-5); padding: var(--s-5) 0; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 1.6vw + 12px, 40px); letter-spacing: -0.025em; line-height: 1.1; }
.track li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.metrics__note { margin: var(--s-6) 0 0; font-size: 18px; line-height: 1.6; color: #fff; max-width: 44ch; }
.work__tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0b1a2b; aspect-ratio: 16 / 9; grid-column: span 6; }
@media (max-width: 639px) { .work { grid-template-columns: 1fr; } .work__tile { grid-column: auto; } .dg-card { min-height: 320px; } .dg-card .dg { min-height: 300px; } }

/* ---------- layout fixes from the checker ---------- */
#problem .mo-wh__text { margin-top: var(--s-9); max-width: 24ch; }
@media (max-width: 1023px) { #problem .mo-wh__text { margin-top: var(--s-8); } }
@media (max-width: 639px) { #problem .mo-wh__text { margin-top: var(--s-7); font-size: 30px; } }

/* cards carry their screen: taller blocks, the words at the foot */
@media (min-width: 1024px) {
  .blocks--3 > .block { min-height: 340px; }
  .blocks--3 > .block > .block__icon, .blocks--3 > .block > .block__num, .blocks--3 > .block > .idx { margin-bottom: auto; }
}
@media (min-width: 1024px) and (min-height: 860px) { .blocks--3 > .block { min-height: 400px; } }
@media (max-width: 639px) {
  .block { gap: var(--s-2); padding: var(--s-4) var(--s-5); }
  .block__icon { width: 40px; height: 40px; border-radius: 12px; }
  .block__icon svg { width: 22px; height: 22px; }
  .block__num { font-size: 30px; }
  .block p { font-size: 16px; line-height: 1.55; }
}

/* the hero headline: a little smaller so a long line holds three lines */
.hero--film .hero__over > :first-child { max-width: 720px; }
.hero--film .hero__over h1 { font-size: clamp(38px, 2.9vw + 16px, 64px); max-width: 19ch; line-height: 1.03; }
@media (max-width: 639px) {
  .hero--film .hero__over > :first-child { padding: var(--s-5) var(--s-4); }
  .hero--film .hero__over h1 { font-size: 32px; max-width: none; }
  .hero--film .hero__over .hero__lead { font-size: 16px; line-height: 1.5; }
}

/* How We Work fits two screens on short windows */
@media (max-height: 820px) and (min-width: 640px) {
  .how__steps { gap: var(--s-4); }
  .how__step { padding: var(--s-3) var(--s-5); }
  .how__step h3 { font-size: 22px; }
  .how__step p { font-size: 16px; line-height: 1.55; }
  .how__close { margin-top: var(--s-6); font-size: 20px; }
}

/* The Shift: two screens on a tablet held upright, the figure shorter on a phone */
@media (min-width: 640px) and (max-width: 1023px) { .rise { margin-top: var(--s-6); aspect-ratio: 16 / 9; } }
@media (max-width: 639px) { .rise { aspect-ratio: 1 / 1; margin-top: var(--s-6); padding: var(--s-4); } .rise__label { font-size: 32px; left: var(--s-4); top: var(--s-4); } .rise__sub { left: var(--s-4); top: calc(var(--s-4) + 38px); } .rise text { font-size: 22px; } #shift { --hm: 2; } }

/* focus ring: the kit's 2px ring, in the darker blue so it clears 3:1 on white */
:focus-visible { outline-color: var(--blue-text); }
.ground-inverse :focus-visible { outline-color: var(--sky); }

/* large blue numerals and accent words: #008CCC clears 3:1 on white and on the cool off-white */
.block__num, .mo-wh strong .mo-w.is-on, .statement-sec strong { color: #008ccc; }
@media (prefers-reduced-motion: reduce) { .mo-wh strong .mo-w { color: #008ccc; } }
.ground-inverse .block__num { color: var(--sky); }

/* PBOS title inside the drawing */
.rise .rise__t { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.03em; fill: #fff; }
.rise .rise__s { font-size: 14px; fill: var(--p-inv-muted); }
@media (max-width: 639px) { .rise .rise__t { font-size: 52px; } .rise .rise__s { font-size: 20px; } }

/* three cards on a tablet: one column, so no card stretches alone across a row */
@media (min-width: 640px) and (max-width: 1023px) {
  .blocks--3 { grid-template-columns: 1fr; gap: var(--s-3); }
  .blocks--3 > :last-child:nth-child(odd) { grid-column: auto; }
  .blocks--3 > .block { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-5); row-gap: var(--s-2); padding: var(--s-5) var(--s-6); align-items: start; }
  .blocks--3 > .block > :first-child { grid-row: 1 / span 2; }
}
/* phone: the long sections take two screens */
@media (max-width: 639px) { #problem { --hm: 2; } }
/* the name never pushes the menu button off a small phone */
@media (max-width: 400px) { .nav__logo { font-size: 13px; letter-spacing: 0; gap: 8px; } .nav__logo img { width: 26px; height: 26px; } }
@media (max-width: 340px) { .nav__logo { font-size: 12px; } }
#credibility .photo-frame { margin-top: var(--s-7); }
@media (max-width: 639px) { #credibility { --hm: 2; } #credibility .photo-frame { margin-top: var(--s-5); } }
@media (max-width: 400px) { .nav:not(.is-open) .nav__actions { display: none; } .nav:not(.is-open) .nav__bar > .nav__actions + .nav__toggle { margin-left: auto; } }
/* phone: Shift's drawing shorter, Credibility's photo stays on larger screens, both fit one screen */
@media (max-width: 639px) {
  #shift { --hm: 1; } .rise { aspect-ratio: 4 / 3; }
  #credibility { --hm: 1; } #credibility .photo-frame { display: none; }
}
/* The Problem: the statement sits a little closer so it ends above the section's padding */
#problem .mo-wh__text { margin-top: var(--s-8); font-size: clamp(30px, 2vw + 16px, 48px); }
#credibility .photo-frame { margin-top: 0; aspect-ratio: 4 / 5; }
@media (max-width: 1023px) { #credibility .photo-frame { aspect-ratio: 16 / 9; margin-top: var(--s-6); } }
/* the statement stays under 40px so it reads as a statement, not a second heading on the screen */
#problem .mo-wh__text { font-size: clamp(28px, 1.2vw + 20px, 38px); max-width: 30ch; }
@media (min-width: 640px) and (max-width: 1023px) { .blocks--3 > .block { padding: var(--s-7); min-height: 200px; align-content: center; } }
/* smallest phones (320): the hero card fits one screen */
@media (max-width: 360px) {
  .hero--film .hero__over > :first-child { padding: var(--s-4) var(--s-3); }
  .hero--film .hero__over h1 { font-size: 27px; }
  .hero--film .hero__over .hero__lead { font-size: 15px; line-height: 1.45; }
}
@media (max-width: 360px) { #shift { --hm: 2; } }
/* the first screen names the place (copy-fact); hidden on the smallest phones, where the card has no room */
.hero--film .hero__place { margin-bottom: var(--s-3); color: var(--blue-text); }
@media (max-width: 360px) { .hero--film .hero__place { display: none; } }
/* Credibility: a squarer photo so it ends inside the section on a 900px screen */
@media (min-width: 1025px) { #credibility .photo-frame { aspect-ratio: 1 / 1; } }
/* phone: How We Work sizes to its steps (no empty screen under them) */
@media (max-width: 639px) { #how { --hm: 1; } }
/* Let's Connect: the long email address wraps instead of widening the card on a phone */
.hero-visual, .contact-card, .contact-row > div { min-width: 0; }
.contact-row a { overflow-wrap: anywhere; }
/* What happens next: the three steps as rounded cards on larger screens, so the section is not half empty */
@media (min-width: 1024px) {
  .steps3 li { background: var(--bg, #fff); border-radius: var(--r-lg, 20px); border-top: 0; box-shadow: inset 0 3px 0 var(--sky); padding: var(--s-7) var(--s-6); min-height: 300px; }
  .steps3 .idx { font-size: 44px; font-family: var(--font-display); color: var(--blue-text); line-height: 1; }
  .steps3 h3 { font-size: 28px; margin-top: var(--s-5); }
}
/* split heroes below desktop: the visual column takes the full width (its film frame has no width of its own) */
@media (max-width: 1023px) { .hero-split > .hero-visual { width: 100%; align-self: stretch; } }
/* Services, Recent work on a tablet: one screen holds the four tiles; the note sits on the column line */

/* framed films: a visible edge, since the films open on white */
.vframe { box-shadow: 0 0 0 1px rgba(0,119,182,.14), 0 28px 56px -32px rgba(11,26,43,.35); }
/* the Services film has rounded corners on black baked in: the frame's corners follow the clip's */
.vframe:has(#services-film) { border-radius: 4.6% / 8.2%; background: #fff; }
.vframe:has(#services-film) > img, #services-film { transform: scale(1.045); }
/* live build: a founder card without its photo is one column */
.founder:not(:has(.founder__photo)) { grid-template-columns: 1fr; }
