@font-face { font-family: "Space Grotesk"; font-weight: 300; font-display: swap; src: url("/fonts/space-grotesk-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
/* Concept: one coast, one light. Each product has its own place on the same shore: the rack in
   the workshop (Operations), the quay at the base (ERP), the cairn that marks the way (AI). */
:root {
  --deep: #0B2B34; --deep-2: #0F3038; --deep-3: #16414B; --deep-line: #1F4A55;
  --page: #F6F8F8; --card: #FFFFFF; --line: #D8DEDE; --soft: #EBEFEF;
  --muted: #5F6A6A; --text: #3D4747; --ink: #1A2224;
  --glacier: #C3DCE3; --glacier-soft: rgba(195, 220, 227, .45);
  --on-deep: #FFFFFF; --on-deep-2: rgba(255, 255, 255, .76); --on-deep-3: rgba(255, 255, 255, .56);
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #08222A; --card: #0F3038; --line: #1F4A55; --soft: #16414B; --muted: #A7B8BB; --text: #D5E0E2; --ink: #FFFFFF; --glacier-soft: rgba(195, 220, 227, .16); color-scheme: dark; }
}
:root[data-theme="dark"] { --page: #08222A; --card: #0F3038; --line: #1F4A55; --soft: #16414B; --muted: #A7B8BB; --text: #D5E0E2; --ink: #FFFFFF; --glacier-soft: rgba(195, 220, 227, .16); color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--body); font-size: 1rem; line-height: 1.6; }
.wrap { max-width: 76rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; line-height: 1.25; }
/* Brand architecture (2026-11-26): "Wellplanner" in Medium, the product area in Light. */
.area { font-weight: 300; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #35708F; outline-offset: 2px; border-radius: 4px; }
.kicker { font-family: var(--mono); font-size: .875rem; color: var(--muted); letter-spacing: .02em; }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 40rem; }
.dark { background: var(--deep); color: var(--on-deep-2); }
.dark h2, .dark h3 { color: var(--on-deep); }
.dark .kicker { color: var(--on-deep-3); }
.dark .lede { color: var(--on-deep-2); }
.dark a:focus-visible { outline-color: var(--glacier); }
section.block > .wrap { padding-block: clamp(4.5rem, 10vw, 8rem); }
.btn { display: inline-flex; align-items: center; font: 500 1rem/1 var(--body); padding: .95rem 1.3rem; border-radius: 6px; text-decoration: none; border: 1px solid transparent; }
.btn-light { background: var(--glacier); color: var(--deep); }
.btn-light:hover { background: #D6E8ED; }
.btn-line { color: var(--on-deep); border-color: rgba(255, 255, 255, .35); }
.btn-line:hover { border-color: #FFFFFF; }

/* Header: one row over the hero */
header.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; color: #FFFFFF; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; flex-wrap: wrap; }
.brand { --mark: clamp(52px, 5vw, 68px); display: flex; align-items: center; gap: calc(var(--mark) / 6); text-decoration: none; }
.brand img { width: var(--mark); height: var(--mark); display: block; }
/* Lockup rule: wordmark = 22/48 of the mark, gap = half the disc. The wordmark is the drawn file. */
.brand img.word { width: calc(var(--mark) * 22 / 48 * 120.65 / 22); height: calc(var(--mark) * 22 / 48 * 24 / 22); }
nav.links { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .9375rem; }
nav.links a { color: rgba(255, 255, 255, .78); text-decoration: none; }
nav.links a:hover { color: #FFFFFF; }
/* Phone and tablet: a Menu button opens the links as a panel under the header row (never a side menu). */
.menu-btn { display: none; align-items: center; gap: .55rem; background: none; border: 1px solid rgba(255, 255, 255, .35); color: #FFFFFF; border-radius: 6px; padding: .55rem .85rem; font: 500 1rem/1 var(--body); cursor: pointer; }
.menu-btn:hover { border-color: #FFFFFF; }
.menu-btn:focus-visible { outline: 3px solid var(--glacier); outline-offset: 2px; }
.menu-btn svg { width: 18px; height: 18px; display: block; }
.menu-btn .x { display: none; }
header.top.open .menu-btn .bars { display: none; }
header.top.open .menu-btn .x { display: block; }

/* 1. Hero: the coast, with the motion drawn by the page */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--deep); }
.scene { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 34, 42, .9) 0%, rgba(8, 34, 42, .72) 30%, rgba(8, 34, 42, .2) 52%, rgba(8, 34, 42, 0) 64%), linear-gradient(0deg, rgba(11, 43, 52, .85) 0%, rgba(11, 43, 52, 0) 24%); }
.hero > .wrap { width: 100%; position: relative; z-index: 2; }
.hero-in { padding-block: 7rem 6rem; display: grid; gap: 1.5rem; max-width: 44rem; }
.hero-in > :not(h1) { max-width: 38rem; } /* the slogan sits on two lines at full size; the rest keeps its measure */
.hero h1 { color: #FFFFFF; font-size: clamp(2.7rem, 5.2vw, 4.5rem); line-height: 1; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--glacier); }
.hero h1 .nw { white-space: nowrap; } /* never break inside "know-how" or "Purpose-built" */
.hero h1 em.nw { display: block; }
.hero .kicker { color: var(--on-deep-3); }
.hero .lede { color: var(--on-deep-2); }
.ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 1.4rem; width: 1.6rem; height: 2.5rem; margin-left: -.8rem; border: 2px solid rgba(255, 255, 255, .45); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: .45rem; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #FFFFFF; }

/* 2. Three products */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.three.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 901px) and (max-width: 1240px) { .three.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .three.four { grid-template-columns: minmax(0, 1fr); } }
.prod { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; transition: border-color .2s ease; }
.prod:hover { border-color: var(--deep); }
.prod .ph { aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.prod .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.prod:hover .ph img { transform: scale(1.03); }
.prod .in { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .6rem; align-content: start; }
.prod .n { font-family: var(--mono); font-size: .875rem; color: var(--muted); }
.prod p { color: var(--muted); }
/* The Varde mark on the AI card: North Sea Deep on light, white on dark (currentColor), 32 px and up. */
.prod .n-mark { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.prod .vmark { width: 36px; height: 36px; flex: none; color: var(--ink); margin: -8px -4px -8px 0; }
.prod .marks2 { display: inline-flex; gap: 2px; }
.prod .go { margin-top: .4rem; font-weight: 500; color: var(--ink); }
.record { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.5rem; background: var(--card); }
.record span { font-family: var(--mono); font-size: .875rem; color: var(--text); text-align: center; position: relative; padding-top: 1.1rem; }
.record span::before { content: ""; position: absolute; top: 0; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--deep); }
.dark .record span::before, :root[data-theme="dark"] .record span::before { background: var(--glacier); }
.record span:not(:last-child)::after { content: ""; position: absolute; top: 3px; left: calc(50% + 10px); right: calc(-50% + 10px); height: 1px; background: var(--line); }
.record-cap { margin-top: .9rem; color: var(--muted); font-size: .9375rem; }

/* Chapters */
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.chapter .head { display: grid; gap: 1.2rem; }
ul.marks { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
ul.marks li { padding: .85rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
ul.marks b { font-family: var(--display); font-weight: 500; color: var(--ink); font-size: 1.0625rem; }
ul.marks span { color: var(--muted); font-size: .9375rem; }
.dark ul.marks { border-color: var(--deep-line); }
.dark ul.marks li { border-color: var(--deep-line); }
.dark ul.marks b { color: var(--on-deep); }
.dark ul.marks span { color: var(--on-deep-2); }
.note { margin-top: 1.4rem; background: var(--glacier-soft); border-radius: 12px; padding: 1.1rem 1.3rem; color: var(--ink); }
.dark .note { background: var(--deep-2); border: 1px solid var(--deep-line); color: var(--on-deep); }
.pill { justify-self: start; display: inline-flex; font-family: var(--mono); font-size: .8125rem; border-radius: 999px; padding: .2rem .7rem; border: 1px solid var(--line); color: var(--muted); }
.dark .pill { border-color: rgba(255, 255, 255, .28); color: var(--on-deep-2); }

/* AI: two sections. Varde reads a datasheet (dark), Lodd checks the plan (light). Both are animated by the
   script at the end; without script, or with reduced motion, the state in the markup's data-p stays. */
.ai-head { display: grid; gap: 1.2rem; max-width: 48rem; }
.ai-lockup { display: block; width: auto; height: clamp(2.6rem, 3.6vw, 3.2rem); margin-bottom: .2rem; }
.ai-three { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid var(--line); }
.ai-three.ai-four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.ai-three li { padding: 1rem 0 0; display: grid; gap: .25rem; align-content: start; }
.ai-three b { font-family: var(--display); font-weight: 500; font-size: 1.0625rem; color: var(--ink); }
.ai-three span { font-size: .9375rem; color: var(--muted); }
.dark .ai-three { border-color: var(--deep-line); }
.dark .ai-three b { color: var(--on-deep); }
.dark .ai-three span { color: var(--on-deep-2); }
.ai-more { margin-top: 1.6rem; font-size: .9375rem; color: var(--muted); }
.dark .ai-more { color: var(--on-deep-2); }
.dark .ai-more a { color: var(--on-deep); }

/* Wellplanner AI's two parts, Lodd and Varde, side by side (the home page's AI section and /ai/), 2026-12-02.
   Full borders, no edge bars. On a dark section the cards are deep teal and the lockups white. */
.parts { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.part { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.6rem 1.7rem; display: grid; gap: .85rem; align-content: start; }
.part .lockup { display: block; width: auto; height: 2.6rem; }
.part .means { font-size: .9375rem; color: var(--muted); }
.part h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.part > p:not(.means) { color: var(--text); }
.part ul.marks { margin-top: .3rem; }
.part .go { justify-self: start; margin-top: .5rem; }
.dark .part { background: var(--deep-2); border-color: var(--deep-line); }
.dark .part > p:not(.means) { color: var(--on-deep-2); }
.dark .part .means { color: var(--on-deep-3); }
.parts-foot { margin-top: 1.4rem; max-width: 60rem; color: var(--muted); }
.dark .parts-foot { color: var(--on-deep-2); }
@media (max-width: 900px) { .parts { grid-template-columns: minmax(0, 1fr); } }

/* Varde: a datasheet is uploaded, scanned and marked. Recreated from varde.wellplanner.com, on deep teal. */
.scan { --flight: #35708F; margin-top: 2.6rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.scan-left { position: relative; background: var(--deep-2); border: 1px solid var(--deep-line); border-radius: 14px; padding: 1.4rem; display: grid; gap: .9rem; }
.file { justify-self: start; display: inline-flex; align-items: center; gap: .55rem; font-size: .9375rem; color: var(--on-deep); background: var(--deep-3); border: 1px solid var(--deep-line); border-radius: 999px; padding: .4rem .9rem .4rem .7rem; transition: opacity .5s ease, transform .5s ease; }
.file svg { width: 16px; height: 16px; flex: none; }
.file b { font-weight: 500; }
.file span { font-size: .875rem; color: var(--on-deep-3); }
.sheet { position: relative; background: #FFFFFF; color: #1A2224; border-radius: 4px; padding: 1.4rem 1.5rem 1.6rem; font-size: .9375rem; overflow: hidden; transition: opacity .6s ease; }
.sheet .from { font-size: .875rem; color: #5F6A6A; }
.sheet .title { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1.3; padding-bottom: .5rem; border-bottom: 2px solid #3D4747; margin-bottom: .7rem; }
.sheet .desc { font-size: .875rem; color: #3D4747; margin-bottom: .6rem; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.sheet td { padding: .38rem .3rem; border-bottom: 1px solid #D8DEDE; }
.sheet td:first-child { font-weight: 600; width: 46%; }
.mk { position: relative; border-radius: 3px; padding: 0 .2rem; margin-right: .7rem; -webkit-box-decoration-break: clone; box-decoration-break: clone; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .35s ease, background .35s ease; }
.mk i { position: absolute; top: -.75rem; right: -.85rem; min-width: 1.35rem; height: 1.35rem; border-radius: .7rem; background: var(--flight); color: #FFFFFF; font: 500 .75rem/1.35rem var(--mono); font-style: normal; text-align: center; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .3s ease; }
.beam { position: absolute; left: 0; right: 0; top: 0; height: 3.2rem; background: linear-gradient(180deg, rgba(53, 112, 143, 0) 0%, rgba(53, 112, 143, .18) 80%, rgba(53, 112, 143, .55) 100%); opacity: 0; pointer-events: none; }
.scan-right { display: grid; gap: .7rem; }
.vals { background: var(--deep-2); border: 1px solid var(--deep-line); border-radius: 14px; padding: 1.2rem 1.3rem; display: grid; gap: .2rem; }
.vals-h { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .4rem; }
.vals-h b { font-family: var(--display); font-weight: 500; font-size: 1.125rem; color: var(--on-deep); }
.vals-h span { font-size: .875rem; color: var(--on-deep-3); }
.val { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto 1.4rem; gap: .7rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--deep-line); opacity: .12; transition: opacity .4s ease; }
.vals-h + .val { border-top: 0; }
.val .no { width: 1.5rem; height: 1.5rem; border-radius: .75rem; background: rgba(111, 166, 196, .2); color: var(--on-deep); font: 500 .75rem/1.5rem var(--mono); text-align: center; }
.val .lb { color: var(--on-deep); font-size: .9375rem; }
.val .lb small { display: block; font-size: .8125rem; color: var(--on-deep-3); }
.val .v { font-family: var(--mono); font-size: .9375rem; color: var(--on-deep); text-align: right; font-variant-numeric: tabular-nums; }
.val .v.t { font-family: var(--body); }
.val .keep { width: 1.2rem; height: 1.2rem; border-radius: 4px; border: 2px solid #6FA6C4; display: grid; place-items: center; transition: background .3s ease, border-color .3s ease; }
.val .keep svg { width: .8rem; height: .8rem; opacity: 0; transition: opacity .3s ease; }
.kept { font-size: .9375rem; color: var(--on-deep-2); opacity: 0; transition: opacity .4s ease; }
.kept b { color: var(--on-deep); font-weight: 600; }
.scan-foot { font-size: .875rem; color: var(--on-deep-3); }
/* Phases: 0 empty, 1 file, 2 page, 3 scanning, 4 values, 5 decided */
.scan[data-p="0"] .file { opacity: 0; transform: translateY(-.6rem); }
.scan[data-p="0"] .sheet { opacity: .2; }
.scan[data-p="1"] .sheet { opacity: .35; }
.scan[data-p="3"] .beam { opacity: 1; top: calc(100% - 3.2rem); transition: top 2.6s linear, opacity .3s ease; }
.scan[data-p="3"] .mk, .scan[data-p="4"] .mk, .scan[data-p="5"] .mk { box-shadow: inset 0 0 0 2px var(--flight); background: rgba(53, 112, 143, .08); transition-delay: var(--d, 0s); }
.scan[data-p="3"] .mk i, .scan[data-p="4"] .mk i, .scan[data-p="5"] .mk i { opacity: 1; transform: none; transition-delay: var(--d, 0s); }
.scan[data-p="4"] .val, .scan[data-p="5"] .val { opacity: 1; transition-delay: var(--d, 0s); }
.scan[data-p="5"] .val .keep { background: var(--flight); border-color: var(--flight); transition-delay: var(--d, 0s); }
.scan[data-p="5"] .val .keep svg { opacity: 1; transition-delay: var(--d, 0s); }
.scan[data-p="5"] .kept { opacity: 1; }
.scan[data-p="5"] .val.wrong .keep { background: transparent; border-color: #6FA6C4; }
.scan[data-p="5"] .val.wrong .keep svg { opacity: 0; }
.scan[data-p="5"] .val.wrong { opacity: .6; }
.scan[data-p="5"] .val.wrong .lb small { color: #F2B8B0; }
.scan[data-p="5"] .mk.wrong { box-shadow: inset 0 0 0 2px #A3ADAD; background: transparent; }
.scan[data-p="5"] .mk.wrong i { background: #5F6A6A; }

/* Lodd: the plan is read, two findings appear, Lodd drafts the swap, a person applies it.
   Status hues are the fixed families: red = bad, gold = waiting on a person, green = settled. */
.lstage { margin-top: 2.6rem; display: grid; gap: 1.2rem; }
.lstage { --red: #B23B2E; --red-bg: #F6E7E5; --red-ink: #6A2019; --gold: #A8863A; --gold-bg: #F6F2E9; --gold-ink: #5C4920; --green: #2E7D6B; --green-bg: #E6F1EE; --green-ink: #1D4F45; }
@media (prefers-color-scheme: dark) { .lstage { --red-bg: rgba(178, 59, 46, .2); --red-ink: #FFFFFF; --gold-bg: rgba(168, 134, 58, .2); --gold-ink: #FFFFFF; --green-bg: rgba(46, 125, 107, .24); --green-ink: #FFFFFF; } }
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
ol.steps li { position: relative; padding-top: 1.4rem; font-size: .9375rem; color: var(--muted); transition: color .3s ease; }
ol.steps li b { font-family: var(--mono); font-weight: 400; font-size: .8125rem; display: block; }
ol.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--page); box-sizing: border-box; transition: background .3s ease, border-color .3s ease; }
ol.steps li:not(:last-child)::after { content: ""; position: absolute; top: 4px; left: 18px; right: 10px; height: 1px; background: var(--line); }
.lstage[data-p="0"] .steps li:nth-child(1), .lstage[data-p="1"] .steps li:nth-child(1),
.lstage[data-p="2"] .steps li:nth-child(2), .lstage[data-p="3"] .steps li:nth-child(3), .lstage[data-p="4"] .steps li:nth-child(4) { color: var(--ink); font-weight: 500; }
.lstage[data-p="0"] .steps li:nth-child(1)::before, .lstage[data-p="1"] .steps li:nth-child(1)::before,
.lstage[data-p="2"] .steps li:nth-child(-n+2)::before, .lstage[data-p="3"] .steps li:nth-child(-n+3)::before, .lstage[data-p="4"] .steps li::before { background: var(--ink); border-color: var(--ink); }

.plan { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; display: grid; gap: 1rem; }
.pcard-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.pcard-h b { font-family: var(--display); font-weight: 500; font-size: 1.125rem; color: var(--ink); }
.pcard-h .mono { font-family: var(--mono); font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.st { display: none; }
.lstage[data-p="0"] .st0, .lstage[data-p="1"] .st0, .lstage[data-p="2"] .st2, .lstage[data-p="3"] .st2, .lstage[data-p="4"] .st4 { display: inline; }

.tl { display: grid; gap: .55rem; }
.tl-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .8rem; align-items: center; }
.tl-row .job { display: grid; line-height: 1.3; }
.tl-row .job b { font-family: var(--mono); font-weight: 500; font-size: .875rem; color: var(--ink); }
.tl-row .job span { font-size: .8125rem; color: var(--muted); }
.track { position: relative; height: 2.5rem; border-radius: 6px; background: var(--page); }
.track::after { content: ""; position: absolute; top: -.3rem; bottom: -.3rem; left: 0; width: 2px; background: var(--ink); opacity: 0; }
.lstage[data-p="1"] .track::after { left: 100%; opacity: .8; transition: left 2.4s linear, opacity .2s ease; }
.axis .track { height: 1.3rem; background: none; }
.axis .track span { position: absolute; top: 0; font-family: var(--mono); font-size: .75rem; color: var(--muted); transform: translateX(-50%); }
.axis .track span:first-child { transform: none; }
.bar { position: absolute; top: .3rem; bottom: .3rem; border-radius: 4px; background: var(--soft); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 .55rem; overflow: hidden; }
.sn { position: relative; z-index: 1; font-family: var(--mono); font-size: .8125rem; color: var(--ink); display: inline-grid; justify-items: start; white-space: nowrap; }
.tl-row .job .sn { font-size: .8125rem; color: var(--text); }
.lstage[data-p="4"] .tl-row .job .sn .new { color: var(--green-ink); }
.sn i { font-style: normal; grid-area: 1 / 1; transition: opacity .4s ease; }
.sn .new { opacity: 0; }
.lstage[data-p="4"] .sn .old { opacity: 0; }
.lstage[data-p="4"] .sn .new { opacity: 1; }
.lstage[data-p="4"] .bar.swapped { border-color: var(--green); transition: border-color .4s ease; }
.ovl { position: absolute; top: .3rem; bottom: .3rem; border-radius: 4px; background: repeating-linear-gradient(135deg, rgba(178, 59, 46, .2) 0 6px, rgba(178, 59, 46, .08) 6px 12px); box-shadow: inset 0 0 0 2px var(--red); opacity: 0; transition: opacity .4s ease; }
.cert { position: absolute; top: -.15rem; bottom: -.15rem; width: 2px; margin-left: -1px; background: var(--gold); opacity: 0; transition: opacity .4s ease; }
.cert::before { content: ""; position: absolute; top: -.2rem; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.lstage[data-p="2"] .ovl, .lstage[data-p="3"] .ovl, .lstage[data-p="2"] .cert, .lstage[data-p="3"] .cert, .lstage[data-p="4"] .cert { opacity: 1; }

.finds { display: grid; border-top: 1px solid var(--line); }
.find { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .8rem; align-items: start; padding: .7rem 0 0; font-size: .9375rem; color: var(--text); opacity: .15; transition: opacity .4s ease; }
.find .mono, .draft .mono { font-family: var(--mono); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lstage[data-p="2"] .find, .lstage[data-p="3"] .find, .lstage[data-p="4"] .find { opacity: 1; }
.lstage[data-p="2"] .find:nth-child(2), .lstage[data-p="3"] .find:nth-child(2) { transition-delay: .3s; }
.spill { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; min-height: 1.75rem; padding: 0 .65rem 0 .55rem; border-radius: 999px; font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.spill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
.spill i { font-style: normal; display: none; }
.spill.red { --dot: var(--red); background: var(--red-bg); color: var(--red-ink); }
.spill.gold { --dot: var(--gold); background: var(--gold-bg); color: var(--gold-ink); }
.spill.green { --dot: var(--green); background: var(--green-bg); color: var(--green-ink); }
.spill .s-now { display: inline; }
.lstage[data-p="4"] .find.fixed .spill { --dot: var(--green); background: var(--green-bg); color: var(--green-ink); }
.lstage[data-p="4"] .find.fixed .spill .s-now { display: none; }
.lstage[data-p="4"] .find.fixed .spill .s-done { display: inline; }
.lstage[data-p="4"] .find.fixed p { color: var(--muted); }

.draft { transition: opacity .5s ease, transform .5s ease; }
.lstage[data-p="0"] .draft, .lstage[data-p="1"] .draft, .lstage[data-p="2"] .draft { opacity: .25; transform: translateY(.6rem); }
.draft .d-label { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.draft h3 { font-size: 1.1875rem; line-height: 1.35; }
.draft h3 .mono { font-size: 1.0625rem; }
.change { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px; font-size: .9375rem; }
.change span { color: var(--muted); font-size: .8125rem; }
.change b { font-family: var(--mono); font-weight: 500; font-size: .9375rem; color: var(--ink); text-align: right; }
ul.why { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .9375rem; color: var(--text); }
ul.why li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: .5rem; }
ul.why li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-top: .6rem; }
.acts { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.fbtn { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 8px; font: 500 .9375rem/1 var(--body); border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.fbtn.primary { background: var(--deep); border-color: var(--deep); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .fbtn.primary { background: #FFFFFF; border-color: #FFFFFF; color: var(--deep); } }
.applied { display: none; font-size: .9375rem; color: var(--text); }
/* Late in the draft phase the planner presses Apply: a short press, timed to the 3,4 s phase. */
.lstage[data-p="3"] .fbtn.primary { animation: press 3.4s ease both; }
@keyframes press { 0%, 78% { transform: none; box-shadow: 0 0 0 0 rgba(11, 43, 52, 0); } 86% { transform: scale(.95); box-shadow: 0 0 0 5px rgba(11, 43, 52, .18); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(11, 43, 52, 0); } }
.d-now { display: inline-flex; }
.d-done { display: none; }
.lstage[data-p="4"] .d-now { display: none; }
.lstage[data-p="4"] .d-done { display: inline-flex; }
.lstage[data-p="4"] .acts { display: none; }
.lstage[data-p="4"] .applied { display: block; animation: rise .5s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }
.plan-foot { font-size: .875rem; color: var(--muted); max-width: 60rem; }

@media (max-width: 900px) {
  .scan, .plan { grid-template-columns: minmax(0, 1fr); }
  .ai-three { grid-template-columns: minmax(0, 1fr); }
  .ai-three li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .dark .ai-three li { border-color: var(--deep-line); }
}
@media (max-width: 560px) {
  .scan-left { padding: 1rem; }
  .sheet { padding: 1.1rem 1rem 1.2rem; }
  .val { grid-template-columns: 1.6rem minmax(0, 1fr) 1.4rem; }
  .val .v { grid-column: 2; grid-row: 2; text-align: left; }
  .val .keep { grid-column: 3; grid-row: 1 / span 2; }
  ol.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  ol.steps li:nth-child(2)::after { display: none; }
  .tl-row { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .tl-row .job { display: flex; gap: .5rem; align-items: baseline; }
  .axis .job { display: none; }
  .axis .track span:nth-child(even) { display: none; }
  .find { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
}

/* Your data */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 3rem; border-top: 1px solid var(--line); }
.facts div { padding: 1.4rem 1.2rem 0 0; display: grid; gap: .4rem; align-content: start; }
.facts .k { font-family: var(--mono); font-size: .875rem; color: var(--muted); }
.facts .v { font-family: var(--display); font-size: 1.25rem; line-height: 1.25; color: var(--ink); }
.facts p { color: var(--muted); font-size: .9375rem; }

/* Photo bands: the same coast. Decorative, so empty alt and aria-hidden. */
.band { position: relative; height: clamp(14rem, 36vw, 30rem); overflow: hidden; background: var(--deep); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.band.fade-top::before, .band.fade-bottom::after { content: ""; position: absolute; left: 0; right: 0; height: 45%; z-index: 1; pointer-events: none; }
.band.fade-top::before { top: 0; background: linear-gradient(180deg, var(--deep), rgba(11, 43, 52, 0)); }
.band.fade-bottom::after { bottom: 0; background: linear-gradient(0deg, var(--deep), rgba(11, 43, 52, 0)); }

/* Close */
.close { position: relative; overflow: hidden; }
.close-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 55%; }
.close::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 34, 42, .92) 0%, rgba(8, 34, 42, .66) 42%, rgba(8, 34, 42, 0) 72%), linear-gradient(180deg, rgba(11, 43, 52, .5) 0%, rgba(11, 43, 52, 0) 40%, rgba(11, 43, 52, .6) 100%); }
.close .wrap { position: relative; z-index: 2; padding-block: clamp(6rem, 14vw, 11rem); display: grid; gap: 1.4rem; justify-items: start; }
.close .wrap > * { max-width: 34rem; }
.free { border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; padding: 1rem 1.2rem; color: var(--on-deep-2); }
.free b { font-family: var(--mono); font-weight: 400; font-size: .8125rem; color: var(--on-deep-3); display: block; margin-bottom: .2rem; }
footer { background: var(--deep); color: var(--on-deep-3); border-top: 1px solid var(--deep-line); }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 2rem; font-size: .9375rem; }
footer a { color: #FFFFFF; }

/* Floating guide: after the hero, a pill at the bottom offers the next section and the top. */
.guide { position: fixed; z-index: 20; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  display: flex; align-items: stretch; background: rgba(11, 43, 52, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(195, 220, 227, .28); border-radius: 999px; box-shadow: 0 8px 24px rgba(8, 34, 42, .28); transition: opacity .3s ease, transform .3s ease; max-width: calc(100vw - 32px); }
.guide.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.guide a { display: inline-flex; align-items: center; gap: .5rem; color: #FFFFFF; text-decoration: none; font: 500 .9375rem/1 var(--body); padding: .8rem 1.1rem; white-space: nowrap; }
.guide a:hover { background: rgba(255, 255, 255, .08); }
.guide a:first-child { border-radius: 999px 0 0 999px; }
.guide a.next { border-radius: 0 999px 999px 0; }
.guide:has(.next[hidden]) a.top { border-radius: 999px; }
.guide .sep { width: 1px; margin: .55rem 0; background: rgba(195, 220, 227, .28); flex: none; }
.guide .next[hidden] + .sep, .guide .sep:has(+ .next[hidden]) { display: none; }
.guide a:focus-visible { outline: 3px solid var(--glacier); outline-offset: 2px; }
.guide svg { width: 14px; height: 14px; flex: none; }
.guide .next span { overflow: hidden; text-overflow: ellipsis; }
.guide[hidden] { display: none; }
@media (max-width: 560px) { .guide a { padding: .75rem .95rem; font-size: .875rem; } .guide .top span { display: none; } }
@media print { .guide { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: settle .9s ease-out .3s both; }
  .scroll-cue span { animation: cue 1.8s ease-in-out 2.4s infinite both; }
}
@keyframes settle { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .scroll-cue { display: none; }
  .menu-btn { display: inline-flex; }
  nav.links { display: none; }
  header.top.open { background: var(--deep); box-shadow: 0 1px 0 var(--deep-line); }
  header.top.open nav.links { display: grid; gap: 0; width: 100%; padding: .25rem 0 1rem; font-size: 1.125rem; }
  header.top.open nav.links a { color: #FFFFFF; padding: .9rem 0; border-top: 1px solid var(--deep-line); }
  /* Phone and tablet: the hero is exactly one screen. The tall photo fills it, and the text sits at the
     bottom on a gradient into deep teal. svh is the screen with the browser's bars showing, so nothing
     runs under them. */
  .hero { height: 100vh; height: 100svh; min-height: 0; align-items: flex-end; }
    .hero::after { background: linear-gradient(0deg, rgba(11, 43, 52, 1) 0%, rgba(11, 43, 52, .96) 38%, rgba(11, 43, 52, .55) 58%, rgba(11, 43, 52, 0) 78%); }
  .hero-in { padding-block: 0 max(1.5rem, env(safe-area-inset-bottom, 0px)); gap: 1.1rem; }
  .hero h1 { font-size: clamp(2.2rem, 9.5vw, 3.4rem); }
  .hero .lede { font-size: 1.0625rem; }
  .three, .chapter { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
  .close::before { background: rgba(8, 34, 42, .74); }
}
@media (max-width: 900px) and (max-height: 700px) {
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero .lede { font-size: 1rem; line-height: 1.5; }
  .hero-in { gap: .8rem; }
  .btn { padding: .8rem 1.1rem; }
}
@media (max-width: 900px) and (max-height: 520px) {
  .hero .lede { display: none; }
}
@media (max-width: 560px) {
  .record { grid-template-columns: minmax(0, 1fr); padding: 1rem 1.2rem; }
  .record span { text-align: left; padding: .35rem 0 .35rem 1.3rem; }
  .record span::before { top: .85rem; left: 0; margin-left: 0; }
  .record span:not(:last-child)::after { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}

/* Hero: the still is pinned at the vessel (65.8% 46.4% of coast.jpg) so the light sits at fixed
   percentages; JS sets --s (rendered scale). The frame pushes in very slowly; two mist layers drift at
   different speeds across the horizon. Only transforms and opacity animate. */
.frame { position: absolute; inset: 0; transform-origin: 65.8% 46.4%; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65.8% 46.4%; display: block; }
.frame span { position: absolute; left: 65.8%; top: 46.4%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: screen; }
.frame .halo { width: calc(var(--s, 1) * 360px); height: calc(var(--s, 1) * 150px); background: radial-gradient(ellipse at center, rgba(195, 220, 227, .22) 0%, rgba(195, 220, 227, .07) 42%, rgba(195, 220, 227, 0) 70%); }
.frame .beacon { width: calc(var(--s, 1) * 110px); height: calc(var(--s, 1) * 44px); background: radial-gradient(ellipse at center, rgba(232, 244, 247, .55) 0%, rgba(195, 220, 227, .3) 32%, rgba(195, 220, 227, 0) 70%); }
.mist { position: absolute; left: 0; top: 30%; height: 42%; pointer-events: none; background-repeat: repeat-x; background-size: auto 100%; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 62%, transparent 100%); }
.mist.m1 { width: calc(100% + 1400px); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1400' height='420'><filter id='f' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.0035 0.016' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.84 0 0 0 0 0.92 0 0 0 0 0.95 0 0 0 1.25 -0.5'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>"); }
.mist.m2 { width: calc(100% + 2000px); top: 34%; height: 46%; opacity: .32; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='2000' height='560'><filter id='f' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.0022 0.011' numOctaves='3' seed='23' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.84 0 0 0 0 0.92 0 0 0 0 0.95 0 0 0 1.15 -0.48'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>"); }
@media (prefers-reduced-motion: no-preference) {
  .frame { animation: push 48s ease-in-out infinite alternate; }
  .mist.m1 { animation: drift1 90s linear infinite; }
  .mist.m2 { animation: drift2 150s linear infinite; }
  .frame .beacon, .frame .halo { animation: glow 7s ease-in-out infinite both; }
}
@keyframes push { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes drift1 { from { transform: translateX(0); } to { transform: translateX(-1400px); } }
@keyframes drift2 { from { transform: translateX(0); } to { transform: translateX(-2000px); } }
@keyframes glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (max-width: 900px) {
  .frame, .frame img { transform-origin: 76.1% 49.6%; object-position: 76.1% 49.6%; }
  .frame span { display: none; }
  .mist { top: 24%; height: 38%; } .mist.m2 { top: 28%; height: 40%; }
}

/* ---------------------------------------------------------------------------------------------
   Subpages (/varde/, /lodd/), 2026-11-27. Same coast, same type, same rules as the home page.
   Section rhythm: dark hero, light, dark, light, dark close. */
.brand-sub { color: #FFFFFF; }
nav.links a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.hero.sub { min-height: 86svh; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* The plumb bob hangs at 40 % of the photo: mirrored, it hangs right of the headline on desktop and right of the logo on a phone. */
.hero-img.plumb { transform: scaleX(-1); object-position: 100% 50%; }
@media (max-width: 900px) { .hero-img.plumb { object-position: 50% 50%; } }
.hero-img.cairn { object-position: 72% 45%; }
@media (max-width: 900px) { .hero-img.cairn { object-position: 78% 40%; } }
.hero-img.aicairn { object-position: 58% 50%; } /* keeps the installation clear of the headline */
@media (max-width: 900px) { .hero-img.aicairn { object-position: 40% 35%; } }
.hero .pill { border-color: rgba(255, 255, 255, .32); color: var(--on-deep-2); }
.hero .sub-lockup { display: block; height: clamp(3.4rem, 5vw, 4.4rem); width: auto; margin-bottom: .3rem; }
.btn-deep { background: var(--deep); color: #FFFFFF; }
.btn-deep:hover { background: #12414D; }
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .btn-deep { background: #FFFFFF; color: var(--deep); } .btn-deep:hover { background: var(--glacier); } }
.sec-head { display: grid; gap: 1.1rem; max-width: 48rem; }
.sec-foot { margin-top: 1.4rem; font-size: .875rem; color: var(--muted); max-width: 60rem; }
.dark .sec-foot { color: var(--on-deep-3); }
.next-links { margin-top: 2.4rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* Three cards: where the agent works, or the three jobs it does */
.cards3 { margin-top: 2.8rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: .8rem; align-content: start; }
.card .place { font-family: var(--mono); font-size: .875rem; color: var(--muted); }
.card h3 { font-size: 1.3rem; }
.card > p { color: var(--muted); }
.card dl { margin: .2rem 0 0; display: grid; gap: .8rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.card dt { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.card dd { margin: .15rem 0 0; font-size: .9375rem; color: var(--text); }
.card .for { font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; }

/* Varde reads a note: comment, marks, answer, code check, a person keeps it. Phases 0-5 in data-p. */
.nd { --flight: #35708F; margin-top: 2.6rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: start; }
.nd-card { background: var(--deep-2); border: 1px solid var(--deep-line); border-radius: 14px; padding: 1.3rem 1.4rem; display: grid; gap: .8rem; align-content: start; }
.nd-label { font-family: var(--mono); font-size: .8125rem; color: var(--on-deep-3); }
.nd-text { font-size: 1.1875rem; line-height: 1.75; color: var(--on-deep); transition: opacity .5s ease; }
.nd-text.other { font-size: 1rem; color: var(--on-deep-2); }
.nd .w { border-radius: 3px; padding: .05rem .2rem; -webkit-box-decoration-break: clone; box-decoration-break: clone; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .35s ease, background .35s ease; }
.nd-other { display: grid; gap: .5rem; border-top: 1px solid var(--deep-line); padding-top: .9rem; transition: opacity .5s ease; }
.nd-mode { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; font-size: .9375rem; color: var(--on-deep-2); }
.nd-mode b, .nd-row .v { font-family: var(--mono); font-weight: 500; color: var(--on-deep); font-variant-numeric: tabular-nums; }
.nd-rows { display: grid; }
.nd-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: .2rem .9rem; align-items: baseline; padding: .6rem 0; border-top: 1px solid var(--deep-line); opacity: .12; transition: opacity .4s ease; }
.nd-row:first-child { border-top: 0; }
.nd-row .lb { font-size: .9375rem; color: var(--on-deep-2); }
.nd-row .v { font-size: .9375rem; }
.nd-row .q { font-size: .875rem; color: var(--on-deep-3); text-align: right; }
.nd-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; color: var(--on-deep); border-top: 1px solid var(--deep-line); padding-top: .9rem; opacity: 0; transition: opacity .4s ease; }
.nd-check::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: .45rem; background: var(--dot); }
.nd-check.checked { --dot: #6FA6C4; }
.nd-check.kept { --dot: #2E7D6B; }
.nd-check .mono, .nd-text .mono { font-family: var(--mono); font-size: .9em; white-space: nowrap; }
.nd[data-p="0"] .nd-text, .nd[data-p="0"] .nd-other { opacity: .2; }
.nd[data-p="2"] .w, .nd[data-p="3"] .w, .nd[data-p="4"] .w, .nd[data-p="5"] .w { box-shadow: inset 0 0 0 2px var(--flight); background: rgba(111, 166, 196, .14); transition-delay: var(--d, 0s); }
.nd[data-p="3"] .nd-row, .nd[data-p="4"] .nd-row, .nd[data-p="5"] .nd-row { opacity: 1; transition-delay: var(--d, 0s); }
.nd[data-p="4"] .nd-check.checked, .nd[data-p="5"] .nd-check.checked, .nd[data-p="5"] .nd-check.kept { opacity: 1; }
.nd[data-p="5"] .nd-check.kept { transition-delay: .3s; }
.nd-steps { margin-top: 2.4rem; }
.nd-steps li .n { font-family: var(--mono); font-size: .8125rem; color: var(--on-deep-3); }

/* Lodd answers a question: steps appear one by one, then the answer and the proposal. Phases 0-5. */
.ask { --gold: #A8863A; --green: #2E7D6B; margin-top: 2.6rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ask-card { background: var(--deep-2); border: 1px solid var(--deep-line); border-radius: 14px; padding: 1.3rem 1.4rem; display: grid; gap: .8rem; align-content: start; }
.ask-q { font-family: var(--display); font-size: 1.25rem; line-height: 1.35; color: var(--on-deep); }
ol.as { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
ol.as li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--deep-line); opacity: .1; transform: translateY(.3rem); transition: opacity .4s ease, transform .4s ease; }
ol.as .no { width: 1.5rem; height: 1.5rem; border-radius: .75rem; background: rgba(111, 166, 196, .2); color: var(--on-deep); font: 500 .75rem/1.5rem var(--mono); text-align: center; }
ol.as .h { display: block; color: var(--on-deep); font-weight: 500; font-size: .9375rem; }
ol.as .call { display: block; font-family: var(--mono); font-size: .8125rem; color: #9CC3D6; overflow-wrap: anywhere; }
ol.as pre { margin: .3rem 0 0; font-family: var(--mono); font-size: .8125rem; line-height: 1.55; color: var(--on-deep-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ask[data-p="1"] ol.as li:nth-child(-n+1), .ask[data-p="2"] ol.as li:nth-child(-n+2),
.ask[data-p="3"] ol.as li, .ask[data-p="4"] ol.as li, .ask[data-p="5"] ol.as li { opacity: 1; transform: none; }
.ask-ans { font-size: 1rem; color: var(--on-deep); line-height: 1.65; transition: opacity .5s ease; }
.nw { white-space: nowrap; }
.ref { display: inline-block; font-family: var(--mono); font-size: .75rem; line-height: 1.3; padding: 0 .35rem; border-radius: 4px; background: rgba(111, 166, 196, .22); color: var(--on-deep); vertical-align: .1em; }
.prop { display: grid; gap: .75rem; border: 1px solid var(--deep-line); border-radius: 10px; padding: 1rem 1.1rem; background: var(--deep-3); transition: opacity .5s ease, transform .5s ease; }
.prop-h { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.prop-h .lbl { font-family: var(--mono); font-size: .8125rem; color: var(--on-deep-3); }
.prop h3 { font-size: 1.0625rem; line-height: 1.4; }
.prop dl { margin: 0; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .35rem .8rem; font-size: .9375rem; }
.prop dt { font-family: var(--mono); font-size: .8125rem; color: var(--on-deep-3); padding-top: .1rem; }
.prop dd { margin: 0; color: var(--on-deep-2); }
.prop dd.mono { font-family: var(--mono); color: var(--on-deep); }
.dstat { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 500; color: #FFFFFF; }
.dstat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.dstat.gold { --dot: var(--gold); } .dstat.green { --dot: var(--green); }
.ask .dbtn { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0 1rem; border-radius: 8px; font: 500 .9375rem/1 var(--body); border: 1px solid rgba(255, 255, 255, .3); color: #FFFFFF; }
.ask .dbtn.primary { background: #FFFFFF; border-color: #FFFFFF; color: var(--deep); }
.ask .acts2 { display: flex; gap: .6rem; flex-wrap: wrap; }
.ask .done-line { display: none; font-size: .9375rem; color: var(--on-deep-2); }
.ask .s-done { display: none; }
.ask[data-p="0"] .ask-ans, .ask[data-p="1"] .ask-ans, .ask[data-p="2"] .ask-ans, .ask[data-p="3"] .ask-ans { opacity: .12; }
.ask[data-p="0"] .prop, .ask[data-p="1"] .prop, .ask[data-p="2"] .prop, .ask[data-p="3"] .prop { opacity: .12; transform: translateY(.5rem); }
ol.as.as-static li { opacity: 1; transform: none; }
ol.as .omit { display: block; margin-top: .3rem; font-size: .8125rem; font-style: italic; color: var(--on-deep-3); }
@keyframes press2 { 0%, 76% { transform: none; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } 86% { transform: scale(.95); box-shadow: 0 0 0 5px rgba(255, 255, 255, .22); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.ask[data-p="5"] .acts2, .ask[data-p="5"] .s-now { display: none; }
.ask[data-p="5"] .s-done { display: inline-flex; }
.ask[data-p="5"] .done-line { display: block; animation: rise .5s ease-out both; }
.ask-foot { margin-top: 1rem; font-size: .875rem; color: var(--on-deep-3); }

/* Lodd's rules: one cell per rule, with the date it is counted from */
.rules { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rule { padding: 1.2rem 1.3rem 1.3rem; display: grid; gap: .45rem; align-content: start; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule:nth-child(3n) { border-right: 0; }
.rule:nth-last-child(-n+3) { border-bottom: 0; }
.rule b { font-family: var(--display); font-weight: 500; font-size: 1.125rem; color: var(--ink); }
.rule p { font-size: .9375rem; color: var(--text); }
.rule .from { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero.sub { height: auto; min-height: 92svh; }
  .cards3, .nd, .ask { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .rule { border-right: 0; }
  .rule:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .rule:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .nd-row { grid-template-columns: minmax(0, 1fr) auto; }
  .nd-row .q { grid-column: 1 / -1; text-align: left; }
  .nd-text { font-size: 1.0625rem; }
  .prop dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .prop dd { margin-bottom: .45rem; }
}

/* The contact form (2026-11-30): a dialog over the page, opened by every Contact and Write to us link. The form is the
   same as the Varde and Lodd pages' forms (their .apply-form styles), posted by /site.js. */
.contact-dialog { width: min(40rem, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); box-shadow: 0 16px 48px rgba(8, 34, 42, .32); overflow: auto; }
.contact-dialog::backdrop { background: rgba(8, 34, 42, .64); }
.contact-dialog .cd-in { padding: 1.6rem 1.6rem 1.8rem; display: grid; gap: 1rem; }
.contact-dialog .cd-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.contact-dialog h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.contact-dialog .cd-lede { color: var(--muted); }
.cd-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.cd-close svg { width: 18px; height: 18px; }
.cd-close:hover { border-color: var(--ink); }
.cd-close:focus-visible, .contact-dialog button:focus-visible { outline: 3px solid #35708F; outline-offset: 2px; }
.apply-form { display: grid; gap: 1.1rem; position: relative; }
.apply-form .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.apply-form label, .apply-form legend { display: block; font-size: .9375rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.apply-form label small, .apply-form legend small { font-weight: 400; color: var(--muted); }
.apply-form input[type="text"], .apply-form input[type="email"], .apply-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; min-height: 44px; }
.apply-form textarea { min-height: 6rem; resize: vertical; }
.apply-form input:focus, .apply-form textarea:focus { outline: 2px solid #35708F; outline-offset: 1px; border-color: #35708F; }
.apply-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.apply-form .checks { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.apply-form .check { display: flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--text); margin: 0; min-height: 44px; }
.apply-form .check input { width: 1.15rem; height: 1.15rem; accent-color: var(--deep); flex: none; }
.apply-form .consent { align-items: flex-start; min-height: 0; font-size: .9375rem; }
.apply-form .consent input { margin-top: .2rem; }
.apply-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply-form button, .apply-done .btn-close { justify-self: start; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--deep); color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer; }
.apply-form button:disabled { opacity: .6; cursor: default; }
.apply-msg { font-size: .9375rem; margin: 0; }
.apply-msg.err { color: #8E2F25; }
.apply-done { display: grid; gap: .6rem; }
.apply-done h3 { font-size: 1.3rem; }
.apply-form[hidden], .apply-done[hidden] { display: none; }
:root[data-theme="dark"] .apply-form button, :root[data-theme="dark"] .apply-done .btn-close { background: var(--glacier); color: var(--deep); }
:root[data-theme="dark"] .apply-msg.err { color: #F2B8B0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .apply-form button, :root:not([data-theme="light"]) .apply-done .btn-close { background: var(--glacier); color: var(--deep); }
  :root:not([data-theme="light"]) .apply-msg.err { color: #F2B8B0; }
}
@media (max-width: 560px) { .apply-form .row2 { grid-template-columns: minmax(0, 1fr); } .contact-dialog .cd-in { padding: 1.2rem 1.1rem 1.4rem; } }
