/* nucifera landing parts (the landing skill; catalogue in references/parts.md). Load after tokens.css and kit.css.
   The page's own classes keep the lp- prefix. Set per page, in .design/brand.css or on <body>:
     --obj                 the one hue of the hero object and of chosen tiles (the subject's lead colour)
     --obj-ink             text on that hue
     */
:root { --gutter: clamp(20px, 4vw, 40px); --page: 1200px;
  --obj: var(--fg-1); --obj-ink: #111113; }

.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- header and footer ---------- */
.site-head { display: flex; align-items: center; gap: var(--s-8); min-height: 68px; }
.site-head__logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-height: var(--tap);
  font: var(--t-headline); letter-spacing: var(--ls-headline); color: var(--fg-1); text-decoration: none; }
.site-head nav { display: flex; gap: var(--s-8); }
.site-head nav a, .site-foot a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--fg-2); text-decoration: none;
  font: var(--t-small); font-size: 15px; transition: color var(--dur-exit) var(--ease-color); }
@media (hover: hover) { .site-head nav a:hover, .site-foot a:hover { color: var(--fg-1); } }
.site-head nav a[aria-current] { color: var(--fg-1); }
@media (max-width: 760px) { .site-head { min-height: 56px; } .site-head nav { display: none; } }
.site-foot { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: var(--s-8); padding-block: var(--s-12);
  border-top: 1px solid var(--line-1); color: var(--fg-2); font: var(--t-small); }
.site-foot p { max-width: 320px; margin-top: var(--s-2); }
.site-foot nav { display: grid; align-content: start; justify-items: start; }
.site-foot nav b { display: flex; align-items: center; min-height: var(--tap); font-weight: var(--w-medium); color: var(--fg-1); }
@media (max-width: 760px) { .site-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-foot > :first-child { grid-column: 1 / -1; } }

/* ---------- material (references/finish.md): the first screen and its hero objects; app screens stay flat ---------- */
/* the stage: the first screen as a place. It carries no light effect of its own: what stands behind the text is a
   backdrop about the product (.backdrop below), and depth comes from that world and from the objects' material */
.stage { position: relative; isolation: isolate; overflow: clip; }
:where(.stage > *) { position: relative; z-index: 2; }
/* the hero object in type (a figure, a word): one hue from light to dark, a thin top highlight, a dark cast shadow */
.solid { color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(175deg, color-mix(in oklab, var(--obj) 70%, white) 8%, var(--obj) 46%, color-mix(in oklab, var(--obj) 60%, black) 96%);
  filter: drop-shadow(0 2px 0 rgb(255 255 255 / .14)) drop-shadow(0 .08em .09em rgb(0 0 0 / .6)); }
/* the contact shadow under an object standing on the stage */
.cast { position: relative; }
.cast::after { content: ""; position: absolute; left: 2%; right: 14%; bottom: -4px; height: 46px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(0 0 0 / .55), transparent); }
/* small raised surfaces: lighter at the top, a 1px top light, a dark shadow below; the chosen one lifted and filled */
.tile { border-radius: var(--r-md); background: linear-gradient(var(--bg-2), var(--bg-1));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .09), inset 0 0 0 1px var(--line-1), 0 10px 18px -10px rgb(0 0 0 / .8); }
.tile.is-chosen { color: var(--obj-ink); transform: translateY(-6px);
  background: linear-gradient(color-mix(in oklab, var(--obj) 82%, white), color-mix(in oklab, var(--obj) 90%, black));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 18px 26px -12px rgb(0 0 0 / .85); }
/* the main action in the same material; the shadow is dark, never coloured */
.btn--lit { background: linear-gradient(color-mix(in oklab, var(--cta-bg) 82%, white), var(--cta-bg));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 14px 28px -10px rgb(0 0 0 / .7); }
/* an opaque panel for text over a scene, and for a raised product view */
.panel { border-radius: var(--r-xl); background: linear-gradient(var(--bg-2), var(--bg-1));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .09), inset 0 0 0 1px var(--line-2), 0 24px 40px -18px rgb(0 0 0 / .85); }
/* every image and product view: inside the margins, a radius, a hairline */
.frame { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--bg-1); }
.frame::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.frame > img, .frame > video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the label on an example that could pass for real data */
.example { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line-3); font: var(--t-time); color: var(--fg-2); white-space: nowrap; }

/* ---------- scenes (references/world.md, scene.js) ---------- */
.scene { position: relative; }
.scene > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.scene__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene.is-live > .scene__poster { visibility: hidden; }   /* the canvas has drawn: the poster steps back */
/* a backdrop about the product behind a stretch of the page (nuScene.backdrop): its canvas stays in the window while
   the content of .backdrop scrolls over it */
.backdrop { position: relative; }
.backdrop__scene { position: sticky; top: 0; z-index: 0; height: 100svh; pointer-events: none; }
.backdrop__scene + * { margin-top: -100svh; }
.backdrop > :not(.backdrop__scene) { position: relative; z-index: 1; }
.world { position: relative; overflow: hidden; }
.world__layer { position: absolute; inset: 0; background: 50% 100% / cover no-repeat; }
/* Pixel art (references/world.md, Pixel art): one file pixel per art pixel, shown at a whole scale without smoothing.
   <img class="px" width="art width x 3" height="art height x 3">; a pixel world: .world.world--px data-px="3" with --px: 3
   and --art-h (the layers' height in art pixels); its layers lean in whole art pixels. */
.px, .world--px .world__layer, .world--px img, .world--px canvas { image-rendering: pixelated; }
.world--px .world__layer { background-size: auto calc(var(--art-h, 270) * var(--px, 3) * 1px); }
.world__layer[data-drift] { right: auto; width: 200%; background-size: 50% 100%; background-repeat: repeat-x; background-position: 0 100%; will-change: transform; }
@keyframes nu-drift { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- moments (scene.js) and hover ---------- */
/* nuScene.words: each word sits in its own line box and rises out of it */
.nu-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.nu-word > i { display: inline-block; font-style: normal; }
/* .spot: a card that answers the mouse: it lifts, and a soft light follows the pointer over its face and its edge (nuScene.spot) */
.spot { position: relative; isolation: isolate; transition: transform var(--dur-exit) var(--ease-out), box-shadow var(--dur-exit) var(--ease-color); }
.spot::before, .spot::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity var(--dur-enter) var(--ease-out); }
.spot::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .08), transparent 62%); }
.spot::after { padding: 1px; background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .6), transparent 68%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@media (hover: hover) and (pointer: fine) {
  .spot:hover { transform: translateY(-4px); box-shadow: 0 22px 30px -20px rgb(0 0 0 / .9); }
  .spot:hover::before, .spot:hover::after { opacity: 1; }
  /* the main action and links answer quietly: a little more light, the arrow leans forward */
  .btn--primary { transition: transform var(--dur-exit) var(--ease-out), filter var(--dur-exit) var(--ease-color); }
  .btn--primary:hover { filter: brightness(1.07); }
  .btn .arrow { display: inline-block; transition: transform var(--dur-exit) var(--ease-out); }
  .btn:hover .arrow { transform: translateX(3px); }
  .link:hover { text-decoration-thickness: 2px; }
}
/* a site of several pages: pages cross-fade, and the one object marked .travels on both pages moves from its old place to its new one */
@view-transition { navigation: auto; }
.travels { view-transition-name: nu-travel; }
::view-transition-group(nu-travel) { animation-duration: var(--dur-moment); animation-timing-function: var(--ease-move); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 1ms; } }

/* ---------- the first screen: a header, the copy in its zone, the hook growing into the rest ---------- */
.first { display: flex; flex-direction: column; min-height: min(100svh, 940px); }
.first > .wrap { flex: 1; display: flex; flex-direction: column; }
.first__hook { position: relative; flex: 1 0 auto; }   /* it keeps its own height on a short screen and grows on a tall one */
.first--backdrop > .first__hook { position: absolute; inset: 0; z-index: 0; }   /* the hook as a backdrop behind the copy */
.first .btn--primary { width: auto; }

/* ---------- pictures (references/pictures.md): the big thing is most often a picture ---------- */
/* .pic fills its box; --pic-at keeps the subject's centre on every crop */
.pic { position: relative; overflow: hidden; }
.pic > img, .pic > video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pic-at, 50% 50%); }
/* a picture behind the whole first screen; the copy stands on its calm side */
.first--picture { position: relative; isolation: isolate; }
.first--picture > .pic { position: absolute; inset: 0; z-index: -1; }
/* a soft darkening only where the text stands, in the page colour */
.pic[class*="pic--mask"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.pic--mask-left::after { background: linear-gradient(90deg, color-mix(in oklab, var(--bg-0) 82%, transparent) 0, color-mix(in oklab, var(--bg-0) 40%, transparent) 38%, transparent 62%); }
.pic--mask-right::after { background: linear-gradient(270deg, color-mix(in oklab, var(--bg-0) 82%, transparent) 0, color-mix(in oklab, var(--bg-0) 40%, transparent) 38%, transparent 62%); }
.pic--mask-bottom::after { background: linear-gradient(0deg, color-mix(in oklab, var(--bg-0) 85%, transparent) 0, color-mix(in oklab, var(--bg-0) 35%, transparent) 40%, transparent 65%); }
/* the picture breathes: about 6 % over 24 seconds, there and back; still under reduced motion */
.pic--breathe > img, .pic--breathe > video { animation: nu-breathe 24s var(--ease-move, ease-in-out) infinite alternate; transform-origin: var(--pic-at, 50% 50%); will-change: transform; }
@keyframes nu-breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .pic--breathe > img, .pic--breathe > video { animation: none; } }
html[data-perf="low"] .pic--breathe > img, html[data-perf="low"] .pic--breathe > video { animation: none; }
@media (max-width: 640px) { .first .btn--primary { width: 100%; } }

/* ---------- section compositions (references/page.md): neighbours never share one ---------- */
.section-top { max-width: 760px; margin-bottom: var(--s-12); }
.section-top > * + * { margin-top: var(--s-4); }
.section-top--center { margin-inline: auto; text-align: center; }
.caption { margin-top: var(--s-3); color: var(--fg-2); font: var(--t-small); }

/* split, object leads: the object is the first child and takes the larger half; .split--flip puts it on the right */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.split--flip > :first-child { order: 2; }
.split--top { align-items: start; }
.split__text > * + * { margin-top: var(--s-4); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split--flip > :first-child { order: 0; } }

/* stage: a heading above, one wide object at a readable size, one line below */
.show > .frame, .show > .panel { min-height: clamp(300px, 40vw, 520px); }
.show__note { margin-top: var(--s-5); max-width: 640px; color: var(--fg-2); font: var(--t-lead); }

/* close-ups: two to four tiles of unequal size, each a real crop with a one-line caption */
.closeups { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-8) var(--s-4); }
.closeups > * { grid-column: span 6; display: flex; flex-direction: column; margin: 0; }
.closeups > :nth-child(4n + 1), .closeups > :nth-child(4n + 4) { grid-column: span 7; }
.closeups > :nth-child(4n + 2), .closeups > :nth-child(4n + 3) { grid-column: span 5; }
.closeups > :nth-child(odd):last-child { grid-column: 1 / -1; }
.closeups .frame { flex: 1; min-height: clamp(240px, 26vw, 340px); }
@media (max-width: 760px) { .closeups > * { grid-column: 1 / -1 !important; } }

/* statement: one number or sentence set very large, one line of support */
.statement { display: grid; justify-items: center; gap: var(--s-5); text-align: center; }
.statement__big { font: 600 clamp(72px, 15vw, 216px)/1 var(--font-sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.statement__note { max-width: 600px; color: var(--fg-2); font: var(--t-lead); }

/* steps rail: three to five steps along one line, each with its own small object */
.steps { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-8); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.steps > * { position: relative; padding-top: var(--s-12); }
.steps > *::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg-0); box-shadow: inset 0 0 0 1.5px var(--fg-2); }
.steps__object { display: grid; align-items: center; justify-items: start; min-height: 190px; margin-bottom: var(--s-5); }
.steps h3 { font: var(--t-title); letter-spacing: var(--ls-title); }
.steps p { margin-top: var(--s-2); color: var(--fg-2); }
@media (max-width: 760px) {
  .steps { grid-auto-flow: row; gap: var(--s-12); }
  .steps::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps > * { padding: 0 0 0 var(--s-12); }
}

/* comparison: by hand against the product; the heading above it is the takeaway */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.compare > * { padding: var(--s-6); border-radius: var(--r-xl); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.compare > .is-ours { background: linear-gradient(var(--bg-2), var(--bg-1)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .09), inset 0 0 0 1px var(--line-2); }
.compare--rows { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }

/* band: a photo, an illustration or a scene across the content width, the text on its masked side */
.band { position: relative; display: grid; align-items: end; overflow: hidden; min-height: clamp(340px, 38vw, 500px); border-radius: var(--r-xl); background: var(--bg-1); }
.band > img, .band > video, .band > .scene, .band > .world { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg-0) 0%, color-mix(in srgb, var(--bg-0) 86%, transparent) 30%, transparent 58%); }
.band::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.band__text { position: relative; z-index: 2; max-width: 470px; padding: clamp(24px, 4vw, 48px); }
.band__text > * + * { margin-top: var(--s-4); }
@media (max-width: 760px) {
  .band { align-items: start; min-height: 520px; }
  .band::before { background: linear-gradient(180deg, var(--bg-0) 0%, color-mix(in srgb, var(--bg-0) 86%, transparent) 38%, transparent 64%); }
}

/* plans: one table, labels once on the left, a column per plan headed by its situation and price */
.plans { width: 100%; border-collapse: collapse; font: var(--t-body); }
.plans th, .plans td { padding: var(--s-4); text-align: left; vertical-align: baseline; border-top: 1px solid var(--line-1); }
.plans thead th { border-top: 0; padding-bottom: var(--s-6); font-weight: var(--w-regular); color: var(--fg-2); vertical-align: bottom; }
.plans thead b { display: block; margin-bottom: var(--s-2); font: var(--t-title); letter-spacing: var(--ls-title); color: var(--fg-1); }
.plans thead .price { display: block; margin-bottom: var(--s-2); font: 600 clamp(32px, 4vw, 44px)/1 var(--font-sans); letter-spacing: -0.02em; color: var(--fg-1); }
.plans tbody th { width: 34%; padding-left: 0; font-weight: var(--w-regular); color: var(--fg-2); }
.plans .is-main { background: var(--bg-1); box-shadow: inset 1px 0 0 var(--line-1), inset -1px 0 0 var(--line-1); }
.plans thead .is-main { border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: inset 0 1px 0 var(--line-2), inset 1px 0 0 var(--line-1), inset -1px 0 0 var(--line-1); }
.plans tbody tr:last-child .is-main { border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: inset 0 -1px 0 var(--line-1), inset 1px 0 0 var(--line-1), inset -1px 0 0 var(--line-1); }
@media (max-width: 640px) { .plans th, .plans td { padding: var(--s-3) var(--s-2); } .plans tbody th { width: 40%; } }

/* final call: an object, one sentence, one action */
.final { display: grid; justify-items: center; gap: var(--s-6); text-align: center; }
.final.stage { padding: clamp(40px, 7vw, 96px) var(--gutter); border-radius: var(--r-xl); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-1); }   /* as a lit panel inside the page margins */
.final .t-section { max-width: 720px; }
