/* Vernal: what every page shares. Brand tokens, header with the progress strip and section pill,
   headline and reveal motion, buttons, the editorial type, labels and the footer. Pages add their own CSS after it. */
:root {
  --p-bg: #ffffff; --p-surface: #f2f2f2; --p-ink: #1f1f1f; --p-muted: #666666;
  --p-accent: #d7263d; --p-accent-ink: #ffffff; --p-action: #d7263d; --p-action-ink: #ffffff;
  --p-inv-bg: #1f1f1f; --p-inv-surface: #2c2c2c; --p-inv-ink: #FAF7F2; --p-inv-muted: #a2a2a2;
  --p-inv-accent: #d7263d; --p-inv-accent-ink: #ffffff; --p-inv-action: #d7263d; --p-inv-action-ink: #ffffff;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-text: "Libre Franklin", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --display-tracking-xl: -0.026em;
}

.nav__logo img { height: 32px; width: auto; }
.footer .nav__logo img { height: 40px; }

/* ---------------------------------------------------------------- scroll motion
   Reveals play once: the page script splits headlines and adds .is-in as things enter view; they hide
   only under html.sv (JS on, motion allowed). Scroll-linked parts (progress line, the renew wipe, the
   step stack, parallax) are CSS scroll-driven animations; the progress line and the wipe get a JS
   fallback where those are missing, the stack and parallax simply stay still there. */
:root { --sv-ease: cubic-bezier(.22, 1, .36, 1); }
/* a strip above the header holds the progress line and the section pill: --nav includes it, so every offset follows */
:root { --strip: 24px; --nav: 96px; }
@media (max-width: 639px) { :root { --strip: 20px; --nav: 76px; } }
.nav { padding-top: var(--strip); }
.scroll-progress { position: fixed; top: calc(var(--strip) / 2 - 1px); left: 0; right: 0; z-index: 70; height: 2px; background: #D7263D; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none; }
@supports (animation-timeline: scroll()) { .scroll-progress { animation: sv-grow linear both; animation-timeline: scroll(root); animation-range: 0% 95%; } }
@keyframes sv-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* the section pill rides the bar's leading end; the script places it and swaps its word */
.sec-pill { position: fixed; top: calc(var(--strip) / 2); translate: 0 -50%; left: 0; z-index: 70; padding: 3px 8px; border-radius: 6px; background: #D7263D; color: #FFFFFF; font: 600 10px/1.3 var(--font-text); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.sec-pill > span { display: block; transition: opacity 75ms ease-out, transform 75ms ease-out; }
.sec-pill.is-swap > span { opacity: 0; transform: translateY(-4px); }
@media (max-width: 639px) { .sec-pill { padding: 2px 6px; border-radius: 5px; font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .sec-pill.is-swap > span { transform: none; } }
/* nav: red on hover, focus and for the section in view; it grows only where there is a pointer that hovers */
.nav__link { transition: color 180ms ease-out, transform 180ms ease-out; }
.nav__link:is(:hover, :focus-visible), .nav__link.is-current { color: #D7263D; }
/* room for a word grown 10% (its box grows ~5px a side); 1024-1279 keeps the kit's tight row, where the 16px of padding between words is room enough */
@media (min-width: 1280px) { .nav__links { gap: 12px; } }
@media (hover: hover) { .nav__link:is(:hover, :focus-visible) { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .nav__link:is(:hover, :focus-visible) { transform: none; } }

/* headlines: each word in a mask, staggered by its line (80ms a line) */
.sv .sv-split .sv-w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em .16em; margin-block: -.1em -.16em; }
.sv .sv-split .sv-w > span { display: inline-block; transform: translateY(110%); transition: transform 700ms var(--sv-ease) calc(120ms + var(--l, 0) * 80ms); }
.sv .sv-split.is-in .sv-w > span { transform: none; }
/* labels fade, cards rise (100ms apart), photographs wipe in from the left and settle from 1.06 */
.sv [data-sv="fade"] { opacity: 0; transition: opacity 600ms var(--sv-ease); }
.sv [data-sv="rise"] { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--sv-ease) calc(var(--i, 0) * 100ms + var(--dl, 0ms)), transform 600ms var(--sv-ease) calc(var(--i, 0) * 100ms + var(--dl, 0ms)), translate 180ms ease-out; }
.sv [data-sv="img"] { clip-path: inset(0 100% 0 0); transition: clip-path 800ms var(--sv-ease); }
.sv [data-sv="img"] :is(img, .ed-ph) { scale: 1.06; transition: scale 800ms var(--sv-ease); }
.sv [data-sv].is-in { opacity: 1; transform: none; clip-path: inset(0); }
.sv [data-sv="img"].is-in :is(img, .ed-ph) { scale: 1; }

/* buttons: 180ms, a press, and the kit's focus ring kept clear of the button */
.btn { transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms var(--sv-ease); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn--primary:focus-visible { outline-color: #D7263D; }
.ground-inverse .btn--primary:focus-visible { outline-color: #FAF7F2; }
@media (prefers-reduced-motion: reduce) { .rot__track, .scroll-progress { animation: none; } .btn:active { transform: none; } }

/* ---------------------------------------------------------------- editorial sections (below the hero)
   Inter Tight light headlines with one Instrument Serif italic word in red, Inter body, 12px gray labels,
   hairlines (#E9E4DC) instead of boxes and shadows, sections at their natural height. */
:root { --font-text: "Inter", system-ui, sans-serif; --font-head: "Inter Tight", "Inter", system-ui, sans-serif; --hair: #E9E4DC; --gray: #5E5953; }
.sunrise { --font-text: "Libre Franklin", system-ui, sans-serif; }   /* the intro keeps its face */
main > section.ed { height: auto; min-height: 0; padding: clamp(5rem, 12vw, 10rem) 0; border-top: 1px solid var(--hair); font-size: clamp(17px, .25vw + 15.5px, 18px); line-height: 1.6; }
main > section.ed > .wrap { height: auto; display: block; }
.ed p { max-width: 62ch; }
.ed-label { margin: 0 0 1.5rem; font: 500 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.ed-h, .renew h2 { margin: 0; font: 300 clamp(2.6rem, 6.4vw, 6.75rem)/1.02 var(--font-head); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.renew h2 { font-size: clamp(2.4rem, 4.6vw, 4.75rem); }
.ed-accent { font: italic 400 1.06em/1 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; color: #D7263D; }
.ed-h .muted { color: var(--gray); }
.ed-head { margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.ed-lede { margin: 1.75rem 0 0; font-size: 1.12em; color: #3F3B37; }
.ed-t { margin: 0 0 .75rem; font: 300 clamp(1.6rem, 2.3vw, 2.25rem)/1.15 var(--font-head); letter-spacing: -.02em; color: var(--ink); }
.ed-t--s { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 400; }
.ed-meta { margin: .9rem 0 0; font: 500 13px/1.4 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.ed ul, .ed ol { list-style: none; margin: 0; padding: 0; }
.ed .grid { row-gap: 3.5rem; }
/* photo placeholders: swapped for real photographs in Round 4 */
.ed-ph { display: grid; place-items: center; margin: 0; background: var(--hair); color: var(--gray); font: 500 12px/1.4 var(--font-text); letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.ed-ph--45 { aspect-ratio: 4 / 5; } .ed-ph--169 { aspect-ratio: 16 / 9; }

/* line icons and the big email link */
.ed-icon { display: block; width: 28px; height: 28px; margin-bottom: 1.5rem; fill: none; stroke: #D7263D; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ed-mail { display: inline-block; margin-top: 2.5rem; font: 300 clamp(1.6rem, 3.2vw, 3rem)/1.1 var(--font-head); letter-spacing: -.02em; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: #C9C1B5; overflow-wrap: anywhere; transition: color 180ms ease-out, text-decoration-color 180ms ease-out; }
.ed-mail:hover { color: #D7263D; text-decoration-color: currentColor; }

/* prices and their lists */
.ed-tier__name { margin: 0; font: 300 clamp(1.75rem, 2.4vw, 2.25rem)/1.1 var(--font-head); letter-spacing: -.02em; }
.ed-price { margin: 1.5rem 0 0; font: 300 clamp(2.5rem, 4vw, 3.75rem)/1 var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ed-price small { font: 400 14px/1 var(--font-text); letter-spacing: 0; color: var(--gray); }
.ed-price small:first-child { margin-right: .4em; }
.ed-bul { display: grid; gap: .55rem; margin-top: 1.5rem !important; font-size: 16px; line-height: 1.5; }
.ed-bul li { position: relative; padding-left: 1.1rem; }
.ed-bul li::before { content: ""; position: absolute; left: 0; top: .75em; width: .5rem; height: 1px; background: #D7263D; }

/* red labels: "Recommended", "Founding clients" */
.ed-flag { position: absolute; top: .75rem; margin: 0; font: 600 11px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: #D7263D; }
.ed-flag { padding: 4px 7px; border-radius: 4px; background: #D7263D; color: #FFFFFF; top: .6rem; }

.ed-callout { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--hair); border-radius: 8px; }
.ed-callout > p:last-child { margin: 0; }
.ed-callout .ed-flag { position: static; display: inline-block; margin-bottom: .85rem; }

/* header: logo left, words right, the button last */
.nav__links { justify-content: flex-end; }
.nav__logo img { height: 30px; }

/* footer */
.ed-foot { padding: clamp(4rem, 8vw, 6rem) 0 2.5rem; background: #1F1F1F; color: #FAF7F2; font-size: 15px; }
.ed-foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(250, 247, 242, .16); }
.ed-foot__brand p { margin: .9rem 0 0; color: rgba(250, 247, 242, .78); }
.ed-foot__brand img { height: 36px; width: auto; }
.ed-foot ul { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; padding: 0; list-style: none; }
.ed-foot a { color: #FAF7F2; text-decoration: none; }
.ed-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ed-foot a:focus-visible { outline: 2px solid #FAF7F2; outline-offset: 3px; }
.ed-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.5rem; color: rgba(250, 247, 242, .78); }
@media (max-width: 639px) { .ed-foot__top { flex-direction: column; } }
.ed-v { font-variant-numeric: tabular-nums; }


/* page to page: a 250ms cross-fade where the browser supports cross-document view transitions; the header holds still */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 250ms; }
::view-transition-group(site-nav), ::view-transition-old(site-nav), ::view-transition-new(site-nav) { animation: none; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* grounds: off-white and ink (#1F1F1F) with off-white words and light hairlines */
:root { --off: #FAF7F2; }
.is-ink { --ink: #FAF7F2; --gray: rgba(250, 247, 242, .74); --hair: rgba(255, 255, 255, .18); background: #1F1F1F !important; color: #FAF7F2; }
.is-ink .ed-lede { color: rgba(250, 247, 242, .86); }
.is-ink .link { color: #FAF7F2; }

/* a soft red light that follows the pointer inside a .spot panel (site.js moves it; hover devices only) */
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(215, 38, 61, .32), rgba(215, 38, 61, 0)); opacity: 0; transform: translate(var(--x, 50%), var(--y, 50%)); transition: opacity 250ms ease-out; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .spot:hover::before { opacity: 1; } }

/* the closing call: a big headline, the glowing button, the email */
main > section.close { overflow-x: clip; }   /* the glow may reach past a phone's edge */
.close .ed-h { font-size: clamp(2.8rem, 7.5vw, 7.5rem); max-width: 14ch; }
.close .btn-row { position: relative; isolation: isolate; display: flex; width: fit-content; margin-top: 2.5rem; }
.close .btn-row::before { content: ""; position: absolute; inset: -18px -28px; z-index: -1; border-radius: 999px; background: radial-gradient(closest-side, rgba(215, 38, 61, .35), transparent); opacity: .75; transition: opacity 180ms ease-out; pointer-events: none; }
.close .btn-row:has(.btn:hover)::before { opacity: 1; }
.close .ed-mail { display: block; width: fit-content; }

/* four steps (home and about): numbers, then a red line across the tops (down the left when stacked) that site.js draws */
.ed-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
.ed-steps > li { padding-top: 2rem; border-top: 1px solid var(--hair); }
.ed-steps p { margin: 0; }
.ed-num { display: block; margin-bottom: 1.5rem; font: 300 clamp(3.5rem, 6vw, 5.5rem)/1 var(--font-head); letter-spacing: -.04em; color: #D7263D; }
@media (max-width: 1023px) {
  .ed-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}
@media (max-width: 639px) { .ed-steps { grid-template-columns: 1fr; } }
.ed-steps { position: relative; }
.ed-steps::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: -1px; height: 2px; background: #D7263D; transform-origin: 0 50%; transform: scaleX(var(--line, 1)); }
.sv .ed-steps { --line: 0; }
.sv .ed-steps > li { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--sv-ease), transform 600ms var(--sv-ease); }
.sv .ed-steps > li.is-in { opacity: 1; transform: none; }
@media (max-width: 1023px) {
  .ed .ed-steps { padding-left: 28px; }
  .ed-steps::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--hair); }
  .ed-steps::before { right: auto; bottom: 0; left: 0; width: 2px; height: auto; top: 0; transform-origin: 50% 0; transform: scaleY(var(--line, 1)); }
}
