:root {
  --primary: #0c388d;
  --deep: #082a6e;
  --soft: #9fb2d8;
  --white: #fff;
  --light-gray: #f6f6f6;
  --warm-gray: #e6e5dd;
  --border: #dcdbd7;
  --muted: #6f6c67;
  --ink: #252320;
  --edge-h: 8rem;
  font-family: Geist, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 5; background: var(--white); padding: .6rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
/* Fixed header, always visible: full size at the top of the page, compact (logo
   blocks only, frosted background) once the page scrolls. The opening reserves
   its full height (--header-h, measured in site.js); jumps to a section leave
   room for the compact bar with scroll-margin-top. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--white); transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, background-color .3s ease; }
.site-header.is-stuck { background: rgba(255, 255, 255, .9); box-shadow: 0 1px 0 var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--border); transition: padding .3s ease; }
.is-stuck .header { padding-block: .65rem; border-bottom-color: transparent; }
.is-stuck .logo { --logo-block: 1.6rem; }
.is-stuck .logo-name { display: none; }
nav a { position: relative; }
nav a[aria-current="true"]::before { content: ""; position: absolute; left: 50%; bottom: -.55rem; width: 6px; height: 6px; margin-left: -3px; background: var(--primary); }
/* Logo in HTML/CSS: on load W slides in from the right, C from above or below
   (picked at random by the inline script in the header) and D from the left, using
   CSS `translate`. On hover they draw together with `transform`, so the two never
   fight. The 1px overlap hides the anti-aliased seam at fractional pixel edges. */
.logo { --logo-block: 2.2rem; --logo-gap: .14rem; display: inline-grid; justify-items: center; gap: .35rem; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.logo-mark { display: flex; gap: var(--logo-gap); transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.logo-block { display: grid; place-items: center; width: var(--logo-block); aspect-ratio: 1; background: var(--primary); color: var(--white); font-size: calc(var(--logo-block) * .66); font-weight: 800; letter-spacing: -.02em; line-height: 1; animation: logo-in 1.4s cubic-bezier(.16, 1, .3, 1) both; transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.logo-block:nth-child(1) { --from: 2.6rem 0; animation-delay: var(--replay, 0s); }
.logo-block:nth-child(2) { --from: 0 calc(var(--c-from, -1) * 2.6rem); animation-delay: calc(var(--replay, 0s) + .16s); }
.logo-block:nth-child(3) { --from: -2.6rem 0; animation-delay: calc(var(--replay, 0s) + .32s); }
.logo-d { background: var(--soft); color: var(--deep); }
.logo-name { font-size: .68rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; animation: logo-fade 1.2s ease both; animation-delay: calc(var(--replay, 0s) + .55s); }
.logo:is(:hover, :focus-visible) .logo-mark { transform: scale(.98); }
.logo:is(:hover, :focus-visible) .logo-block:first-child { transform: translateX(calc(var(--logo-gap) + 1px)); }
.logo:is(:hover, :focus-visible) .logo-block:last-child { transform: translateX(calc(var(--logo-gap) * -1 - 1px)); }
@keyframes logo-in { from { opacity: 0; translate: var(--from); } }
@keyframes logo-fade { from { opacity: 0; } }
nav, .actions { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; }
nav a { font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; align-items: center; width: 100%; padding: clamp(1.5rem, 6vh, 5rem) clamp(1rem, 5vw, 6rem); }
.hero-copy { min-width: 0; container-type: inline-size; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -.055em; }
h1 { font-size: min(10.5vw, 23vh); font-size: min(11.5cqi, 23svh); font-weight: 700; }
h1 span { display: block; white-space: nowrap; }
h2 { font-size: clamp(2.5rem, 6vw, 5.3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.label { font-size: .83rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); margin-bottom: 1.1rem; }
.intro { font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 40ch; color: var(--muted); margin-top: 1.1rem; }
.actions { margin-top: 1.65rem; }
.button { display: inline-flex; padding: .8rem 1.15rem; border: 1px solid var(--primary); background: var(--primary); color: var(--white); font: inherit; font-weight: 650; text-decoration: none; border-radius: .2rem; cursor: pointer; }
.button:hover { background: var(--deep); }
.text-link { color: var(--primary); font-weight: 650; }
img { display: block; width: 100%; height: auto; }
.section { margin-block: auto; padding-block: clamp(2.1rem, 5vh, 4rem); }
.blue, .light { position: relative; isolation: isolate; background: var(--section); }
.blue { --section: var(--deep); color: var(--white); }
.light { --section: var(--white); }
main > section { scroll-margin-top: 3rem; }
.opening { min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--header-h, 6.5rem); }
.opening .hero { flex: 1; }
.opening, main > section:has(+ section > .pixel-edge) { padding-bottom: var(--edge-h); }
.blue .label { color: var(--soft); }
.blue .intro { color: var(--soft); }
.pixel-edge { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--edge-h); pointer-events: none; }
.pixel-edge canvas { display: block; width: 100%; height: 100%; }
@media (min-width: 48rem) { :root { --edge-h: 10rem; } }
@media (min-width: 80rem) { :root { --edge-h: 12rem; } }
/* Examples deck: overlapping tilted cards in a zig-zag that drift, follow the
   wheel and can be dragged (see site.js). Without JS it falls back to a row. */
.deck { --card-w: 280px; --zig: 28px; position: relative; height: 440px; margin-top: 1rem; overflow: hidden; isolation: isolate; cursor: grab; touch-action: pan-y; user-select: none; }
.deck[data-dragging] { cursor: grabbing; }
.deck:not([data-ready]) { display: flex; gap: 1rem; height: auto; padding: 2rem 1.5rem; overflow-x: auto; }
.deck-card { --card-bg: var(--white); --card-ink: var(--ink); --card-quiet: var(--muted); display: block; width: var(--card-w); flex: none; color: var(--card-ink); text-decoration: none; -webkit-user-drag: none; }
.deck-inner { display: flex; flex-direction: column; gap: 1.1rem; padding: 14px 14px 22px; background: var(--card-bg); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--delay, 0s); }
.deck[data-ready] .deck-card { position: absolute; top: 50%; left: 0; translate: 0 calc(-50% - var(--zig)); will-change: transform; }
.deck[data-ready] .deck-card:nth-child(even) { translate: 0 calc(-50% + var(--zig)); }
.deck-card.is-soft { --card-bg: var(--soft); --card-ink: var(--deep); --card-quiet: var(--deep); }
.deck-card img { aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; }
.deck-text { display: grid; justify-items: center; gap: .3rem; text-align: center; padding-inline: .5rem; }
.deck-text strong { font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -.03em; line-height: 1.15; }
.deck-text span { font-size: .875rem; color: var(--card-quiet); }
.deck-text .deck-open { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; font-weight: 650; color: var(--card-ink); }
.deck-open::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.deck-card:hover .deck-open, .deck-card:focus-visible .deck-open { text-decoration: underline; text-underline-offset: .22em; }
.deck-card:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.deck[data-ready]:not([data-seen]) .deck-inner { opacity: 0; transform: translateY(64px); }
@media (min-width: 48rem) { .deck { --card-w: 340px; --zig: 40px; height: 600px; } }
@media (min-width: 80rem) { .deck { --card-w: 400px; --zig: 56px; height: 700px; } }
.section-head { display: grid; justify-items: center; gap: 1.5rem; }
.tag { display: flex; align-items: center; gap: .6rem; font-size: .83rem; line-height: 1.3; }
.tag::before { content: ""; flex: none; width: 7px; height: 7px; background: currentColor; }
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; margin-top: clamp(3rem, 6vw, 4rem); }
.pricing-aside { display: grid; align-content: start; gap: 2rem; padding: 2rem 2.5rem 0 0; }
.numbered { list-style: none; margin: -1rem 0 0; padding: 0; counter-reset: item; border-top: 1px solid var(--line); }
.numbered li { counter-increment: item; display: flex; gap: 1rem; padding-block: .875rem; border-bottom: 1px solid var(--line); font-size: .875rem; }
.numbered li::before { content: counter(item, decimal-leading-zero); width: 1.5rem; flex: none; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--quiet); padding-top: .1rem; }
.pricing-note { max-width: 20rem; font-size: .875rem; color: var(--quiet); }
.pricing-aside .text-link { width: max-content; font-size: .875rem; color: inherit; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; row-gap: 2rem; }
/* Subgrid keeps the price, description and list aligned across both cards. */
@supports (grid-template-rows: subgrid) {
  .plans .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 2rem; }
}
.plan { --line: var(--border); --quiet: var(--muted); display: flex; flex-direction: column; gap: 2rem; padding: 2rem; border-radius: 2px; }
.plan-light { background: var(--white); color: var(--ink); }
.plan-blue { --line: rgba(159, 178, 216, .3); --quiet: var(--soft); background: var(--primary); color: var(--white); box-shadow: inset 0 0 0 1px rgba(159, 178, 216, .35); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.plan-head h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -.03em; line-height: 1.2; }
.caps { font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.plan-price { display: flex; align-items: baseline; gap: .65rem; }
.plan-price strong { font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.plan-price span, .plan-desc { color: var(--quiet); }
.plan-price span { font-size: .875rem; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; display: flex; align-items: center; gap: .75rem; padding-block: .7rem; border-bottom: 1px solid var(--line); font-size: .875rem; transition: opacity .6s ease; }
.ticks li::before { content: ""; flex: none; width: 5px; height: 5px; background: currentColor; }
.ticks li::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.87, 0, .13, 1); }
@media (hover: hover) {
  .ticks:hover li { opacity: .35; }
  .ticks li:hover { opacity: 1; }
  .ticks li:hover::after { transform: scaleX(1); }
}
.plan .button { align-self: flex-start; justify-self: start; margin-top: auto; }
.plan-blue .button { background: var(--white); border-color: var(--white); color: var(--ink); }
.plan-blue .button:hover { background: var(--light-gray); }
/* Contact form (same pattern as the reference): bare fields with an underline
   that fills on focus, chip toggles with a growing square, rolling submit label. */
.contact-top { padding-top: 1.75rem; border-top: 1px solid var(--border); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(3rem, 6vw, 6rem); margin-top: 3rem; align-items: start; }
.contact-intro h2 { max-width: 14ch; font-size: clamp(2.4rem, 4.6vw, 4.2rem); text-wrap: balance; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
.cf-full { grid-column: 1 / -1; }
.cf-field { position: relative; display: flex; flex-direction: column; gap: .6rem; }
.cf-label { display: flex; justify-content: space-between; font-size: .8rem; letter-spacing: .01em; color: var(--muted); }
.cf-label i { font-style: normal; color: var(--primary); opacity: 0; transform: translateY(4px); transition: opacity .4s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.cf-field.err .cf-label i { opacity: 1; transform: none; }
.cf-input { all: unset; box-sizing: border-box; width: 100%; padding: 6px 0 14px; font: 400 1.375rem/1.3 Geist, system-ui, sans-serif; letter-spacing: -.015em; color: var(--ink); caret-color: var(--primary); }
.cf-input::placeholder { color: var(--muted); opacity: .45; }
textarea.cf-input { display: block; resize: none; overflow: hidden; white-space: pre-wrap; }
.cf-line { position: absolute; inset: auto 0 0; height: 1px; background: var(--border); }
.cf-line::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.76, 0, .24, 1); }
.cf-field:focus-within .cf-line::after, .cf-field.err .cf-line::after { transform: scaleX(1); }
.cf-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.cf-chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .6rem; padding: 13px 18px; border: 1px solid var(--border); font: 400 .95rem/1 Geist, system-ui, sans-serif; color: var(--ink); cursor: pointer; transition: background-color .5s cubic-bezier(.16, 1, .3, 1), color .5s cubic-bezier(.16, 1, .3, 1), border-color .5s cubic-bezier(.16, 1, .3, 1); }
.cf-chip::before { content: ""; width: 0; height: 6px; margin-right: -.6rem; background: currentColor; transform: scale(0); transition: transform .5s cubic-bezier(.16, 1, .3, 1), width .5s cubic-bezier(.16, 1, .3, 1), margin .5s cubic-bezier(.16, 1, .3, 1); }
.cf-chip:hover { border-color: var(--ink); }
.cf-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.cf-chip[aria-pressed="true"]::before { width: 6px; margin-right: 0; transform: scale(1); }
.cf-chip:focus-visible, .cf-submit:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.cf-foot { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: .5rem; }
.cf-note { max-width: 19rem; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.cf-note.is-error { color: var(--primary); font-weight: 600; }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-submit[aria-busy="true"] { opacity: .6; cursor: progress; pointer-events: none; }
.cf-submit { all: unset; box-sizing: border-box; position: relative; display: inline-flex; align-items: center; gap: .9rem; padding: 18px 26px; overflow: hidden; background: var(--primary); color: var(--white); font: 500 1rem/1 Geist, system-ui, sans-serif; letter-spacing: -.01em; cursor: pointer; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); transition: transform .6s cubic-bezier(.16, 1, .3, 1), background-color .3s ease; }
.cf-submit:hover { transform: translateY(-2px); background: var(--deep); }
.cf-roll { position: relative; display: inline-block; height: 1em; overflow: hidden; }
.cf-roll span { display: block; transition: transform .7s cubic-bezier(.76, 0, .24, 1); }
.cf-roll span + span { position: absolute; top: 100%; left: 0; }
.cf-submit:hover .cf-roll span { transform: translateY(-100%); }
.cf-arrow { display: inline-block; transition: transform .7s cubic-bezier(.76, 0, .24, 1); }
.cf-submit:hover .cf-arrow { transform: translateX(4px); }
.cf-done { display: flex; flex-direction: column; gap: 1.1rem; padding-block: 1.5rem; }
.cf-done[hidden] { display: none; }
.cf-check { display: grid; place-items: center; width: 56px; height: 56px; background: var(--primary); color: var(--white); }
.cf-check path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .8s cubic-bezier(.16, 1, .3, 1) .3s; }
.cf-done.is-in .cf-check path { stroke-dashoffset: 0; }
.cf-done-title { font-size: 2.5rem; line-height: 1.05; letter-spacing: -.04em; }
.cf-done-text { max-width: 26rem; font-size: 1.05rem; color: var(--muted); }
@media (max-width: 50rem) {
  .contact { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2rem; }
  .cf-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cf-input { font-size: 1.2rem; }
  .cf-foot { flex-direction: column-reverse; align-items: flex-start; }
}
.split-title { text-align: center; }
.split-title span { display: block; }
.split-title span + span { color: var(--primary); }
.blue .split-title span + span { color: var(--soft); }
.blue { --line: rgba(159, 178, 216, .3); --quiet: var(--soft); }
.steps { position: relative; margin-top: clamp(3rem, 8vw, 6rem); }
.steps ol { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 8.75rem; }
.step { display: flex; gap: 1rem; width: min(100%, 28.75rem); margin-left: var(--x); }
.step:nth-child(1) { --x: 53%; }
.step:nth-child(2) { --x: 22%; }
.step:nth-child(3) { --x: 42%; }
.step:nth-child(4) { --x: 22%; }
.step-mark { flex: none; width: 8px; height: 8px; margin-top: .3rem; background: var(--soft); }
.step .label { margin-bottom: .6rem; }
.step h3 { margin-bottom: .6rem; }
.step p:last-child { color: var(--muted); max-width: 36ch; }
.has-trail .step-mark { visibility: hidden; }
.process-trail { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.process-trail canvas { display: block; width: 100%; height: 100%; }
.js .step { opacity: 0; translate: 0 40px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.js .step.is-in { opacity: 1; translate: 0 0; }
@media (max-width: 80rem) {
  .steps ol { gap: 6.9rem; }
  .step { width: min(100%, 25rem); }
  .step:nth-child(1) { --x: 34%; }
  .step:nth-child(2) { --x: 8%; }
  .step:nth-child(3) { --x: 24%; }
  .step:nth-child(4) { --x: 8%; }
}
@media (max-width: 50rem) {
  .steps ol { gap: 3.5rem; }
  .step, .step:nth-child(n) { --x: 1.5rem; width: auto; }
}
@media (max-width: 64rem) {
  .pricing { grid-template-columns: 1fr; gap: 1.5rem; }
  .pricing-aside { padding: 0; order: 1; }
  .pricing-aside > .tag, .numbered { display: none; }
}
/* Menu curtain (same as the reference's page transition): a full-screen panel
   rises from the bottom, the page jumps to the section behind it, and it leaves
   through the top. Its color is the opposite of the destination section. */
[tabindex="-1"]:focus { outline: none; }
.curtain { --curtain-bg: var(--deep); --curtain-ink: var(--white); --curtain-block: var(--white); position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--curtain-bg); color: var(--curtain-ink); pointer-events: none; transform: translateY(100%); visibility: hidden; }
.curtain.is-light { --curtain-bg: var(--white); --curtain-ink: var(--ink); --curtain-block: var(--primary); }
.curtain.is-cover, .curtain.is-leave { visibility: visible; }
.curtain.is-cover { transform: none; transition: transform .38s cubic-bezier(.76, 0, .24, 1); pointer-events: auto; }
.curtain.is-leave { transform: translateY(-100%); transition: transform .6s cubic-bezier(.76, 0, .24, 1); }
.curtain-inner { display: grid; justify-items: center; gap: 18px; opacity: 0; transform: translateY(24px); transition: opacity .3s ease, transform .6s cubic-bezier(.76, 0, .24, 1); }
.curtain.is-cover .curtain-inner { opacity: 1; transform: none; transition-delay: 50ms; }
.curtain-mark { display: flex; gap: 2px; }
.curtain-mark span { width: 14px; height: 14px; background: var(--curtain-block); }
.curtain-mark span:last-child { background: var(--soft); }
.curtain-label { display: flex; align-items: center; gap: .5rem; font-size: .83rem; font-weight: 500; letter-spacing: .02em; }
.curtain-label::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.footer { display: grid; justify-items: center; gap: .4rem; padding-block: 1.5rem; border-top: 1px solid var(--border); text-align: center; }
.made { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); }
.made strong { color: var(--ink); }
.heart { fill: var(--primary); transform-origin: center; }
.footer:hover .heart { animation: heart-beat 1s ease-in-out infinite; }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.footer a { font-size: .85rem; }
@media (max-width: 44rem) {
  .logo { --logo-block: 1.9rem; }
  .wrap { width: min(100% - 2rem, 76rem); }
  .plans { grid-template-columns: 1fr; }
  .plans { row-gap: 1rem; }
  .plans .plan { display: flex; padding: 1.5rem; gap: 1.5rem; }
  .header { flex-wrap: wrap; }
  .is-stuck .header { flex-wrap: nowrap; }
  .is-stuck nav { flex-wrap: nowrap; gap: 1rem; overflow-x: auto; scrollbar-width: none; font-size: .9rem; padding-bottom: .6rem; margin-bottom: -.6rem; }
  .is-stuck nav a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .footer:hover .heart { animation: none; }
  .logo-block, .logo-name { animation: none; }
  .logo-mark, .logo-block { transition-duration: 0s; }
  .deck-inner { transition: none; }
  .pixel-edge { display: none; }
  .js .step { opacity: 1; translate: none; transition: none; }
}
