/* Cantum OnePay: a product page that stands on its own. Layout follows the reference: a white app card on a grey
   page, a dotted hero panel with tilted cards, pill labels, centred headings, a grid of feature cards.
   Craft notes: system font with size-specific tracking, springs that re-target from the live value, press feedback on
   pointer-down, translucent material with a bright top edge, and full reduced-motion / transparency / contrast paths. */
:root {
  --bg: #fff; --fg: #0b0b0b; --muted: #8a8a8a; --line: #e6e6e6; --soft: #eeeeee; --page: #e9e9e9; --panel: #f4f4f4;
  --spring: cubic-bezier(.2, .9, .25, 1); --ease: var(--spring);
  --r: 28px; --pad: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
html.is-loading { overflow: hidden; }
body {
  background: var(--page); color: var(--fg); min-height: 100vh; min-height: 100dvh;
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  letter-spacing: -.011em; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 500; font-size: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* ---------- loading screen: the table fills with dither while 1 counts up to 100 (3 s) ---------- */
.cd-load { display: none; }
.js .cd-load {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template: "brand brand" auto "tbl tbl" 1fr "count label" auto / 1fr auto;
  padding: clamp(20px, 4vw, 48px); background: var(--bg); transition: transform .95s var(--ease), opacity .4s .55s;
}
.cd-load.is-out { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.cd-load[hidden] { display: none; }
.cd-load-brand { grid-area: brand; font-size: 14px; letter-spacing: -.01em; }
.cd-load-table { grid-area: tbl; place-self: center; position: relative; width: clamp(180px, 34vw, 340px); aspect-ratio: 480 / 378; }
.cd-load-table canvas, .cd-load-table img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cd-load-table canvas { image-rendering: pixelated; }
.cd-load-count { grid-area: count; align-self: end; font-size: clamp(72px, 16vw, 200px); line-height: .85; font-weight: 500; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.cd-load-count small { font-size: .28em; letter-spacing: 0; margin-left: .08em; color: var(--muted); }
.cd-load-label { grid-area: label; align-self: end; color: var(--muted); font-size: 14px; }

/* ---------- app card ---------- */
.cd-app { width: 100%; overflow-x: clip; }
main { background: var(--bg); }
.cd-nav {
  position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 68px; padding: 0 var(--pad);
  background: rgba(255,255,255,.76); border-bottom: 1px solid rgba(0,0,0,.07);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
.cd-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; letter-spacing: -.03em; justify-self: start; }
.cd-logo img { width: 38px; height: auto; }
.cd-links { display: flex; gap: 28px; font-size: 15px; }
.cd-links a, .cd-quiet { transition: opacity .2s; }
.cd-links a:hover, .cd-quiet:hover { opacity: .5; }
.cd-nav-end { display: flex; align-items: center; gap: 18px; justify-self: end; font-size: 15px; }
.cd-outline {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 12px; background: #fff;
  border: 1px solid #cfcfcf; font-size: 15px; transition: transform .5s var(--ease), border-color .2s; -webkit-tap-highlight-color: transparent;
}
.cd-outline:hover { border-color: var(--fg); }
.cd-outline:active { transform: scale(.96); transition-duration: .08s; }

/* ---------- buttons ---------- */
.cd-btn {
  display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 14px; background: var(--fg); color: #fff; font-size: 16px;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); transition: transform .5s var(--ease), opacity .2s; -webkit-tap-highlight-color: transparent;
}
.cd-btn:hover { opacity: .85; }
.cd-btn:active { transform: scale(.96); transition-duration: .08s; }
.cd-btn--light { background: #fff; color: var(--fg); box-shadow: none; }
.cd-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; transition: opacity .2s; }
.cd-link:hover { opacity: .6; }
.cd-link svg { width: 16px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.cd-link:hover svg { transform: translateX(3px); }
.cd-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; }

/* ---------- hero ---------- */
.cd-hero {
  position: relative; overflow: hidden; display: grid; place-items: center; min-height: clamp(640px, calc(100vh - 68px), 860px); padding: 80px var(--pad);
  background: #f6f6f6 radial-gradient(rgba(0,0,0,.07) 1px, transparent 1.3px) 0 0 / 7px 7px; border-bottom: 1px solid var(--line);
}
.cd-hero-in { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 0; }
.cd-tile {
  display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 36px; border-radius: 28px; background: #fff;
  box-shadow: 0 1px 0 #fff inset, 0 22px 44px -16px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.06);
}
.cd-tile img { width: 76px; height: auto; }
.cd-h1 { text-wrap: balance; font-size: clamp(2.05rem, 7.2vw, 6.1rem); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.cd-h1 span { color: #a3a3a3; }
.cd-lead { text-wrap: pretty; max-width: 30em; margin: 28px 0 36px; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.45; letter-spacing: -.015em; }

/* entrance, once the loading screen has left */
.js .cd-hero [data-in] { opacity: 0; transform: translateY(18px); filter: blur(8px); }
.js.is-ready .cd-hero [data-in] { animation: cd-in 1s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes cd-in { to { opacity: 1; transform: none; filter: none; } }

/* ---------- sections ---------- */
.cd-sec { padding: clamp(72px, 12vh, 128px) var(--pad) 0; }
.cd-head { display: grid; justify-items: center; text-align: center; gap: 20px; margin-bottom: clamp(32px, 5vh, 56px); }
.cd-head h2 { text-wrap: balance; max-width: 16ch; font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.04; letter-spacing: -.045em; }
.cd-head p { color: var(--muted); font-size: 1.1rem; }
.cd-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: #fff; font-size: 14px;
  border: 1px solid var(--line); box-shadow: 0 6px 14px -10px rgba(0,0,0,.3); }

.cd-sol { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 0 auto clamp(32px, 6vh, 64px); border-top: 1px solid var(--line); }
.cd-sol div { position: relative; padding: 28px 28px 8px 0; }
.cd-sol div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.cd-sol svg { width: 30px; height: 30px; margin-bottom: 18px; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cd-sol p { max-width: 20em; font-size: 15px; line-height: 1.4; }

/* dashboard panel: the interactive stage lives here */
.cd-panel {
  position: relative; margin-inline: calc(var(--pad) * -1); padding: clamp(18px, 4vw, 56px) var(--pad); overflow: hidden;
  background: linear-gradient(180deg, #dcdcdc 0%, #ececec 55%, #f6f6f6 100%);
}
.cd-badge { position: absolute; z-index: 3; display: grid; place-items: center; border-radius: 22px; background: #fff; box-shadow: 0 22px 40px -18px rgba(0,0,0,.35), 0 1px 0 #fff inset; }
.cd-badge--ok { right: 3%; top: 36%; width: 72px; height: 72px; transform: rotate(8deg); }
.cd-badge--ok svg { width: 34px; height: 34px; fill: none; stroke: var(--fg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cd-badge--no { left: 2.5%; top: 7%; padding: 16px 22px; font-size: 30px; letter-spacing: -.05em; font-weight: 500; transform: rotate(-6deg); }

/* the table speaks: a small speech bubble with a tail, three typing dots, then one short line */
.cd-say { position: absolute; z-index: 6; left: 0; top: 0; width: 0; height: 0; pointer-events: none; visibility: hidden; }
.cd-say.is-on { visibility: visible; }
.cd-say .bubble {
  position: absolute; left: 0; bottom: 14px; transform: translateX(-28px); transform-origin: 28px 100%; opacity: 0; white-space: nowrap; text-align: left;
  display: flex; align-items: center; min-height: 38px; padding: 10px 16px 11px; border: 2px solid #0b0b0b; border-radius: 16px; background: #fff;
  font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; box-shadow: 0 14px 24px -14px rgba(0,0,0,.35);
}
.cd-say .bubble::after {                          /* tail, pointing down at the table */
  content: ""; position: absolute; left: var(--tail, 22px); bottom: -8px; width: 12px; height: 12px; background: #fff;
  border-right: 2px solid #0b0b0b; border-bottom: 2px solid #0b0b0b; transform: rotate(45deg); border-bottom-right-radius: 3px;
}
.cd-say .say b { display: block; font-weight: 600; }
.cd-say .say ul { margin-top: 5px; font-weight: 400; }
.cd-say .say li { padding: 1px 0; }
.cd-say .dots { display: none; gap: 4px; padding: 4px 0; }
.cd-say .dots i { width: 6px; height: 6px; border-radius: 50%; background: #0b0b0b; animation: cd-dot 1s var(--ease) infinite; }
.cd-say .dots i:nth-child(2) { animation-delay: .15s; } .cd-say .dots i:nth-child(3) { animation-delay: .3s; }
.cd-say.is-typing .dots { display: flex; } .cd-say.is-typing .say { display: none; }
@keyframes cd-dot { 0%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.cd-say.is-on .bubble { animation: cd-say .5s cubic-bezier(.2, 1.25, .3, 1) forwards; }
.cd-say.is-out .bubble { animation: cd-say-out .24s ease-in forwards; }
@keyframes cd-say { from { opacity: 0; transform: translateX(-28px) translateY(8px) scale(.6); } to { opacity: 1; transform: translateX(-28px) scale(1); } }
@keyframes cd-say-out { to { opacity: 0; transform: translateX(-28px) translateY(-4px) scale(.9); } }

/* ---------- how it works ---------- */
.cd-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); }
.cd-flow li { padding: 20px 24px 8px 0; }
.cd-flow li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.cd-num { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cd-flow h3 { margin: 40px 0 10px; font-size: 1.9rem; letter-spacing: -.04em; line-height: 1.05; }
.cd-flow p { max-width: 22em; font-size: 15px; line-height: 1.45; }

/* ---------- features ---------- */
.cd-sec--panel { margin: clamp(72px, 12vh, 128px) 0 0; padding: clamp(40px, 7vw, 88px) var(--pad) clamp(32px, 5vw, 56px); background: var(--panel); }
.cd-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1280px; margin: 0 auto; }
.cd-card { display: flex; flex-direction: column; padding: 22px 22px 26px; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(0,0,0,.04); }
.cd-card h3 { margin: 22px 0 8px; font-size: 1.3rem; letter-spacing: -.03em; }
.cd-card p { color: #555; font-size: 15px; line-height: 1.45; }
.cd-more { margin-top: 28px; text-align: center; color: var(--muted); font-size: 15px; }

/* small drawn previews inside the cards */
.cd-art { position: relative; display: grid; place-items: center; height: 190px; border-radius: 16px; background: #f4f4f4; overflow: hidden; }
.a-phone { width: 104px; height: 156px; padding: 14px 10px; border-radius: 18px; background: #fff; border: 1px solid #ddd; display: grid; gap: 8px; align-content: start; box-shadow: 0 14px 24px -14px rgba(0,0,0,.3); }
.a-phone i { height: 8px; border-radius: 4px; background: #e4e4e4; } .a-phone i:nth-child(2) { width: 70%; } .a-phone i:nth-child(3) { width: 85%; }
.a-phone b { align-self: end; height: 22px; margin-top: 30px; border-radius: 11px; background: var(--fg); }
.a-floor { display: grid; grid-template-columns: repeat(3, 44px); gap: 10px; transform: rotateX(58deg) rotateZ(40deg); }
.a-floor i { height: 44px; border-radius: 10px; background: #fff; border: 1px solid #cfcfcf; box-shadow: 4px 5px 0 #d8d8d8; }
.a-floor i.hot { background: var(--fg); border-color: var(--fg); animation: cd-hot 2s var(--ease) infinite; }
@keyframes cd-hot { 50% { transform: translateY(-5px); box-shadow: 4px 12px 0 #cfcfcf; } }
.a-kds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 78%; }
.a-kds div { padding: 12px; border-radius: 12px; background: #fff; display: grid; gap: 7px; align-content: start; min-height: 110px; border: 1px solid #e0e0e0; }
.a-kds small { font-size: 12px; color: var(--muted); } .a-kds i { height: 20px; border-radius: 6px; background: #ececec; } .a-kds div:first-child i:first-of-type { background: var(--fg); }
.a-ticket { position: relative; padding: 24px 34px; border: 2px dashed #b9b9b9; border-radius: 14px; background: #fff; text-align: center; transform: rotate(-4deg); }
.a-ticket small { display: block; font-size: 13px; color: var(--muted); } .a-ticket b { font-size: 42px; letter-spacing: -.05em; line-height: 1.1; font-weight: 500; }
.a-branch { display: grid; gap: 10px; justify-items: center; }
.a-branch span { padding: 9px 22px; border-radius: 999px; background: #fff; border: 1px solid #ddd; font-size: 14px; box-shadow: 0 8px 14px -10px rgba(0,0,0,.4); }
.a-branch span:first-child { background: var(--fg); color: #fff; border-color: var(--fg); }
.a-bars { display: flex; align-items: flex-end; gap: 12px; width: 62%; height: 100px; }
.a-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: #cfcfcf; } .a-bars i:nth-child(3) { background: var(--fg); }

/* ---------- ownership ---------- */
.cd-model { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--line); }
.cd-model div { padding: 24px 28px 8px 0; } .cd-model div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.cd-model h3 { font-size: 1.6rem; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 10px; }
.cd-model p { max-width: 22em; font-size: 15px; line-height: 1.45; color: #555; }

/* ---------- closing card ---------- */
.cd-end { display: grid; justify-items: center; text-align: center; margin: clamp(72px, 12vh, 128px) 0 0; padding: clamp(48px, 8vw, 96px) var(--pad); background: var(--fg); color: #fff; }
.cd-end img { width: 120px; height: auto; margin-bottom: 28px; filter: invert(1); }
.cd-end h2 { text-wrap: balance; max-width: 14ch; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; letter-spacing: -.05em; }
.cd-end p:not(.cd-actions) { margin: 18px 0 32px; max-width: 30em; color: #bdbdbd; font-size: 1.1rem; }

.cd-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 20px var(--pad) 24px; color: #6f6f6f; font-size: 14px; }
.cd-foot a:hover { color: var(--fg); }

/* scroll reveal: content stays visible without JS */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- interactive stage: phone + isometric floor ---------- */
/* stage: phone + floor plan */
.cd-stage {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: calc(var(--gutter) * 2); align-items: stretch;
  padding: clamp(18px, 4vw, 56px); background: var(--soft); border-radius: 18px;
}
.cd-phone {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-self: center; width: 100%; height: 440px;
  background: var(--bg); border-radius: 30px; border: 1px solid var(--line); padding: 20px 16px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 48px -24px rgba(0,0,0,.25);
}
.cd-phone-top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 11px; }
.cd-phone-top strong { font-weight: 500; letter-spacing: -.02em; }
.cd-phone-top span { color: var(--muted); }
.cd-phone-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.cd-phone-list li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-phone-bar {
  position: absolute; inset: auto 8px 8px 8px; display: flex; justify-content: space-between; align-items: center;
  padding: 8px 8px 8px 16px; border-radius: 22px; font-size: 11px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .6); border-top-color: #fff;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.3);
}
.cd-phone-bar b { font-weight: 400; background: var(--fg); color: var(--bg); border-radius: 999px; padding: 9px 18px; }

.cd-board { display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.cd-board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.cd-board-title { color: var(--muted); }
/* isometric floor: the grid is a flat plane tilted 60° and turned 45° (orthographic, no perspective);
   each table is a box standing on it, with a lit top and two shaded sides */
.cd-iso { --s: clamp(48px, 6vw, 84px); --g: calc(var(--s) * .5); --h: calc(var(--s) * .3);
  display: flex; justify-content: center; align-items: center; height: calc(var(--s) * 5); }
.cd-tables {
  display: grid; grid-template-columns: repeat(4, var(--s)); grid-auto-rows: var(--s); gap: var(--g); padding: calc(var(--s) * .3);
  transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(45deg);
  background: #f6f6f6 repeating-linear-gradient(0deg, transparent 0 calc(var(--s) * .5 - 1px), rgba(0,0,0,.05) 0 calc(var(--s) * .5));
  border: 1px solid #d8d8d8; border-radius: calc(var(--s) * .2);
  box-shadow: 0 0 0 calc(var(--h) * .5) #e9e9e9, calc(var(--h) * .5) calc(var(--h) * .5) calc(var(--h) * 1.5) rgba(0,0,0,.15);
}
/* a table: a flat tile on the floor (carries the status) with the drawing standing on it, facing the viewer */
.cd-tbl {
  --pad: #fff; --pad-line: #d6d6d6; --lift: 0px; --ar: 1.27;
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: var(--fg);
  font: inherit; cursor: pointer; transform-style: preserve-3d; -webkit-tap-highlight-color: transparent;
}
.cd-tbl:focus-visible { outline: none; }
.cd-tbl:focus-visible .cd-pad { outline: 2px solid var(--fg); outline-offset: 2px; }
.cd-pad { position: absolute; inset: 4%; border-radius: 16%; background: var(--pad); border: 1px solid var(--pad-line); transition: background-color .3s, border-color .3s; }
.cd-shadow { position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,.2); filter: blur(5px); transform: translate(-50%, -50%) translateZ(1px); }
.cd-sprite {
  position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 1.1); aspect-ratio: var(--ar);
  margin-left: calc(var(--s) * -.55); margin-top: calc(var(--s) * -1.1 / var(--ar));       /* bottom-centre sits on the tile centre */
  transform-origin: 50% 100%; transform: translateZ(var(--lift)) rotateZ(-45deg) rotateX(-60deg);   /* undo the floor's tilt: faces the viewer */
  transition: transform .55s var(--ease);                                                  /* spring from the live value, so a re-target never jumps */
}
.cd-fill, .cd-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.cd-fill { image-rendering: pixelated; }
.cd-lines { transition: filter .3s; }
.cd-tbl-no {
  position: absolute; left: 52%; top: 22%; transform: translate(-50%, -50%); padding: .1em .5em; border-radius: 999px;
  background: #fff; color: #0a0a0a; border: 1px solid #0a0a0a; font-weight: 500; font-size: calc(var(--s) * .24); letter-spacing: -.02em; line-height: 1.2;
}

.cd-tbl.is-free   { --pad: #fff; }
.cd-tbl.is-making .cd-pad { border: 1px dashed var(--fg); }
.cd-tbl.is-served { --pad: #e4e4e4; --pad-line: #e4e4e4; }
.cd-tbl.is-new    { --pad: #0a0a0a; --pad-line: #0a0a0a; }
.cd-tbl.is-new .cd-lines { filter: invert(1); }                  /* ink turns white over the dark dither */
.cd-tbl.is-new .cd-pad::after {                                  /* "new order" ping on the floor tile */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--fg);
  animation: cd-ping 2.4s var(--ease) infinite; pointer-events: none;
}
@keyframes cd-ping { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.cd-tbl.is-on { --lift: calc(var(--s) * .22); }                  /* selected table lifts */
.cd-tbl:active { --lift: calc(var(--s) * -.04); }                /* pressed: sinks, instantly */
.cd-tbl:active .cd-sprite { transition-duration: .08s; }
.cd-tbl.is-drop .cd-sprite { animation: cd-drop .9s var(--ease) backwards; }       /* a new order lands on its table */
.cd-tbl.is-drop .cd-shadow { animation: cd-land .9s var(--ease) backwards; }
@keyframes cd-drop { from { transform: translateZ(calc(var(--s) * 2.4)) rotateZ(-45deg) rotateX(-60deg); opacity: 0; } 55% { opacity: 1; } }
@keyframes cd-land { from { transform: translate(-50%, -50%) translateZ(1px) scale(.3); opacity: 0; } }
.cd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cd-detail { background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.6); border-top-color: #fff; border-radius: 16px; padding: 16px 18px; min-height: 118px; font-size: 11px;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); transition: opacity .2s; }
.cd-detail.is-swap { opacity: 0; }
.cd-detail-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.cd-detail-head strong { font-weight: 500; letter-spacing: -.02em; }
.cd-detail-head span { color: var(--muted); }
.cd-detail li { padding: 2px 0; }


/* the stage sits straight on the panel now */
.cd-stage { padding: 0; background: none; border-radius: 0; margin: 130px auto 0; max-width: 1240px; gap: 40px; }   /* room for the speech bubble above the back row */
.cd-phone { border-radius: 32px; }
.cd-phone-top, .cd-phone-list li, .cd-phone-bar, .cd-detail { font-size: 14px; }
.cd-board-title { font-size: 14px; }
.cd-detail li { padding: 3px 0; }

@media (max-width: 1100px) {
}
@media (max-width: 960px) {
  .cd-links { display: none; }
  .cd-nav { grid-template-columns: 1fr auto; }
  .cd-stage { grid-template-columns: 1fr; margin-top: 84px; row-gap: 150px; }   /* room for the speech bubble between phone and floor */
  .cd-phone { height: 400px; max-width: 320px; justify-self: center; }
  .cd-feat { grid-template-columns: repeat(2, 1fr); }
  .cd-flow { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .cd-flow li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .cd-nav { height: 60px; } .cd-quiet { display: none; } .cd-logo span { font-size: 17px; }
  .cd-hero { min-height: 640px; padding: 150px 16px 56px; }
  .cd-tile { width: 88px; height: 88px; margin-bottom: 26px; } .cd-tile img { width: 62px; }
  .cd-sol, .cd-model { grid-template-columns: 1fr; } .cd-sol div + div, .cd-model div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 24px; }
  .cd-feat, .cd-flow { grid-template-columns: 1fr; } .cd-flow li + li { padding-left: 0; border-left: 0; }
  .cd-badge { display: none; }
  .cd-board-head { display: none; }
  .cd-iso { --s: min(60px, calc((100vw - 32px) / 8.9)); }   /* the turned floor is ~8.6 tables wide: keep it inside the screen */
  .cd-panel { padding: 16px 16px 24px; } .cd-stage { margin-top: 120px; row-gap: 130px; }
  .cd-phone { height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .cd-hero [data-in] { opacity: 1; transform: none; filter: none; animation: none !important; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .cd-tbl.is-new .cd-pad::after { animation: none; display: none; }
  .cd-tbl.is-drop .cd-sprite, .cd-tbl.is-drop .cd-shadow, .a-floor i.hot { animation: none; }
  .cd-say.is-on .bubble, .cd-say.is-out .bubble { animation: none; opacity: 1; }
  .cd-say .dots i { animation: none; }
  .cd-say.is-out .bubble { opacity: 0; }
  .cd-btn, .cd-outline, .cd-sprite, .cd-pad, .cd-link svg, .cd-detail { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .cd-nav, .cd-phone-bar, .cd-detail { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .cd-pad, .cd-phone, .cd-card, .cd-pill, .cd-outline { border-color: var(--fg); }
  .cd-board-title, .cd-num, .cd-head p, .cd-more, .cd-foot { color: var(--fg); }
  .cd-h1 span { color: #555; }
}


/* =====================================================================================================
   Restyle after diabrowser.com: neutral off-white, grayscale tints, serif display headings,
   mono labels, pill buttons, floating pill nav and big rounded cards. Overrides only; behaviour is above.
   ===================================================================================================== */
:root {
  --bg: #fafafa; --page: #fafafa; --panel: #f8f8f8; --soft: #ebebeb; --line: rgba(0,0,0,.1); --muted: #77777a;
  --yellow: #0b0b0b; --lime: #ececec; --fg: #0b0b0b;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: var(--mono); --sans: var(--mono);
  --card: 2.4rem;
}
body { font-family: var(--sans); font-size: 15px; letter-spacing: -.02em; }
h1, h2, h3 { font-weight: 400; }
.cd-h1, .cd-head h2, .cd-end h2, .cd-flow h3, .cd-model h3, .cd-load-count, .cd-card h3 { font-family: var(--serif); font-weight: 400; }
.cd-h1 { font-size: clamp(2rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.06em; }
.cd-h1 span { color: var(--fg); font-style: italic; }
.cd-head h2 { font-size: clamp(1.8rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.06em; max-width: 18ch; }
.cd-flow h3 { font-size: 1.7rem; letter-spacing: -.05em; } .cd-model h3 { font-size: 1.5rem; letter-spacing: -.05em; }
.cd-card h3 { font-size: 1.3rem; letter-spacing: -.05em; line-height: 1.05; }
.cd-end h2 { font-size: clamp(2rem, 5.6vw, 4.6rem); letter-spacing: -.06em; line-height: 1; max-width: 16ch; }
.cd-lead { color: #3d3c38; }

/* mono labels */
.cd-pill, .cd-num, .cd-load-brand, .cd-load-label, .cd-board-title, .cd-more, .cd-foot, .cd-quiet {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; font-weight: 400;
}
.cd-pill { height: 32px; padding: 0 14px; border: 0; background: var(--lime); box-shadow: none; }
.cd-num { color: var(--fg); }
.cd-load-count { letter-spacing: -.04em; font-weight: 400; }

/* floating pill nav */
.cd-nav {
  top: 14px; height: 60px; width: min(1120px, calc(100% - 28px)); margin: 14px auto 0; padding: 0 10px 0 20px; border-radius: 999px;
  background: rgba(248,248,248,.72); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.04);
}
.cd-logo { font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: -.06em; }
.cd-logo img { width: 32px; }
.cd-links { gap: 6px; font-size: 14px; } .cd-links a { padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.cd-links a:hover { opacity: 1; background: rgba(0,0,0,.06); }
.cd-outline { height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--fg); color: #fff; font-size: 14px; }
.cd-outline:hover { background: #262626; }
.cd-nav-end { gap: 12px; }
.cd-nav + main .cd-hero { margin-top: -74px; padding-top: 150px; }
html { scroll-padding-top: 100px; }

/* buttons */
.cd-btn { height: 56px; padding: 0 30px; border-radius: 999px; background: var(--fg); box-shadow: none; font-weight: 500; }
.cd-btn:hover { opacity: 1; background: #262626; }
.cd-btn--light { background: #fff; color: var(--fg); } .cd-btn--light:hover { background: #e6e6e6; }

/* hero: warm tinted wash, like Dia's leaf-shadow backdrop */
.cd-hero {
  background:
    radial-gradient(60% 55% at 15% 12%, rgba(0,0,0,.09), transparent 70%),
    radial-gradient(55% 60% at 88% 20%, rgba(255,255,255,.95), transparent 70%),
    radial-gradient(70% 50% at 50% 105%, rgba(0,0,0,.07), transparent 70%),
    #f4f4f4;
  border-bottom: 0;
}
.cd-tile { border-radius: 32px; background: #fff; box-shadow: 0 30px 50px -24px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.05); }

/* sections */
.cd-sol, .cd-flow, .cd-model { border-top-color: rgba(0,0,0,.14); }
.cd-sol div + div, .cd-flow li + li, .cd-model div + div { border-left-color: rgba(0,0,0,.1); }
.cd-panel { border-radius: var(--card); margin-inline: 0; margin-top: 8px; max-width: 1360px; margin-left: auto; margin-right: auto;
  background: radial-gradient(70% 70% at 80% 0%, rgba(255,255,255,.9), transparent 70%), radial-gradient(60% 70% at 0% 100%, rgba(0,0,0,.08), transparent 70%), #eaeaea; }
.cd-badge { border-radius: 26px; }
.cd-sec--panel { margin-top: clamp(72px, 12vh, 128px); background: var(--panel); border-radius: 4rem 4rem 0 0; }
.cd-card { border-radius: var(--card); padding: 18px 18px 28px; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.cd-card h3, .cd-card p { padding-inline: 8px; }
.cd-art { border-radius: calc(var(--card) - 12px); }
.cd-card:nth-child(3n+1) .cd-art { background: #ececec; }
.cd-card:nth-child(3n+2) .cd-art { background: #f4f4f4; }
.cd-card:nth-child(3n) .cd-art { background: #e4e4e4; }
.cd-phone { border-radius: 38px; } .cd-detail { border-radius: 22px; }

/* closing card: yellow, like Dia's call to action */
.cd-end { background: var(--fg); color: #fff; border-radius: 4rem; margin: clamp(72px, 12vh, 128px) 14px 0; }
.cd-end img { filter: invert(1); }
.cd-end p:not(.cd-actions) { color: #bdbdbd; }
.cd-end .cd-btn--light { background: #fff; color: var(--fg); } .cd-end .cd-btn--light:hover { background: #e6e6e6; }
.cd-foot { color: var(--muted); padding-top: 32px; }

@media (max-width: 960px) { .cd-nav { padding-left: 16px; } }
@media (max-width: 640px) {
  .cd-nav { height: 54px; top: 8px; margin-top: 8px; } .cd-logo { font-size: 21px; }
  .cd-nav + main .cd-hero { margin-top: -62px; padding-top: 150px; }
  .cd-sec--panel { border-radius: 2.4rem 2.4rem 0 0; } .cd-end { border-radius: 2.4rem; margin-inline: 8px; }
  .cd-panel { border-radius: 1.6rem; }
}
@media (prefers-contrast: more) { .cd-h1 span { color: var(--fg); } .cd-pill { border: 1px solid var(--fg); } }

/* ---------- solutions page: one section per kind of business ---------- */
.cd-allsol { display: flex; justify-content: center; margin: -8px 0 28px; }
.cs-hero { display: grid; justify-items: center; text-align: center; gap: 22px; padding: 150px var(--pad) 56px;
  background: radial-gradient(60% 55% at 15% 0%, rgba(0,0,0,.08), transparent 70%), radial-gradient(55% 60% at 90% 10%, #fff, transparent 70%), #f4f4f4; }
.cs-hero .cd-h1 { max-width: 16ch; }
.cs-hero .cd-lead { margin: 0; }
.cs-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; max-width: 760px; }
.cs-chips a { padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); font-size: 13px; transition: background .2s, color .2s, transform .5s var(--ease); }
.cs-chips a:hover { background: var(--fg); color: #fff; }
.cs-chips a:active { transform: scale(.96); transition-duration: .08s; }
.cd-links a[aria-current="page"] { background: rgba(0,0,0,.08); }

.cs-cat { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1180px; margin: 0 auto;
  padding: clamp(56px, 10vh, 104px) var(--pad); border-top: 1px solid rgba(0,0,0,.1); scroll-margin-top: 90px; }
.cs-cat:first-of-type { border-top: 0; }
.cs-cat:nth-of-type(even) .cs-card { order: -1; }
.cs-copy { display: grid; gap: 14px; justify-items: start; }
.cs-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.06em; }
.cs-tag { color: var(--muted); font-size: 1.05rem; }
.cs-copy p { max-width: 34em; line-height: 1.5; }
.cs-points { display: grid; gap: 8px; margin: 6px 0 10px; }
.cs-points li { position: relative; padding-left: 22px; font-size: 14px; }
.cs-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); }
.cs-card { padding: 22px; border-radius: var(--card); background: #ececec; box-shadow: 0 0 0 1px rgba(0,0,0,.05) inset; }
.cs-card > * { background: #fff; }
.cs-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 20px 14px; border-radius: 22px 22px 0 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cs-card-top span { color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.cs-card ul { padding: 4px 20px 12px; border-radius: 0 0 22px 22px; }
.cs-card li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cs-card li:last-child { border-bottom: 0; }
.cs-card li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 860px) {
  .cs-cat { grid-template-columns: 1fr; } .cs-cat:nth-of-type(even) .cs-card { order: 0; }
  .cs-hero { padding-top: 130px; }
}
@media (prefers-reduced-motion: reduce) { .cs-chips a { transition: none; } }

/* ---------- nav: Solutions dropdown ---------- */
.cd-drop { position: relative; }
.cd-drop-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; transition: background .2s; -webkit-tap-highlight-color: transparent; }
.cd-drop-btn:hover, .cd-drop.is-open .cd-drop-btn, .cd-drop-btn[aria-current] { background: rgba(0,0,0,.06); }
.cd-drop-btn svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.cd-drop.is-open .cd-drop-btn svg { transform: rotate(180deg); }
.cd-drop-panel {
  position: absolute; top: calc(100% + 18px); left: 50%; width: min(340px, calc(100vw - 32px)); padding: 8px; border-radius: 28px;
  background: rgba(250,250,250,.82); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 30px 60px -24px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.05);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.96); transform-origin: 50% 0; filter: blur(6px);
  transition: opacity .22s ease, transform .45s var(--ease), filter .3s ease;
}
.cd-drop.is-open .cd-drop-panel { opacity: 1; transform: translateX(-50%); filter: none; }
.cd-drop-panel a { display: grid; gap: 2px; padding: 12px 16px; border-radius: 20px; transition: background .2s; }
.cd-drop-panel a:hover, .cd-drop-panel a:focus-visible { background: rgba(0,0,0,.06); opacity: 1; }
.cd-drop-panel strong { font-weight: 500; font-size: 14px; }
.cd-drop-panel span { color: var(--muted); font-size: 12px; line-height: 1.35; }
@media (max-width: 960px) {
  .cd-links { display: flex; } .cd-links > a { display: none; }
  .cd-drop-panel { left: 0; transform: translateY(-6px) scale(.96); transform-origin: 20% 0; }
  .cd-drop.is-open .cd-drop-panel { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .cd-drop-panel { transform: translateX(-50%); filter: none; transition: opacity .15s; } .cd-drop-btn svg { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .cd-drop-panel { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .cd-drop-panel { border-color: var(--fg); } .cd-drop-panel span { color: var(--fg); } }

/* services: a string hangs from the hero logo and fans out to each service icon (drawn by cantumdine.js) */
.cd-sol { padding-top: 40px; border-top: 0; }
.cd-sol div, .cd-sol div + div { padding: 0 20px; border-left: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cd-sol-ic { position: relative; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 8px 18px -10px rgba(0,0,0,.3); }
.cd-sol-ic svg { width: 28px; height: 28px; margin: 0; }
.cd-sol p { max-width: 17em; }
main { position: relative; }
.cd-string { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(0,0,0,.28); stroke-width: 1.5; pointer-events: none; }
.cd-string path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.cd-string.is-on path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.5, 0, .2, 1) calc(var(--k) * .18s + .25s); }
.cd-string .knot { fill: var(--fg); stroke: none; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.cd-string.is-on .knot { transform: none; transition: transform .6s cubic-bezier(.2, 1.4, .3, 1); }
.cd-string .pulse { fill: var(--fg); stroke: none; opacity: 0; }
.cd-string.is-on .pulse { opacity: .85; transition: opacity .6s 2.4s; }
.cd-sol-ic { transition: transform .5s cubic-bezier(.2, 1.4, .3, 1) , box-shadow .3s; }
.cd-sol div:hover .cd-sol-ic { transform: translateY(-4px) scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .cd-string path { stroke-dashoffset: 0 !important; transition: none !important; }
  .cd-string .knot { transform: none; transition: none; }
}
.cd-head, .cd-allsol { position: relative; z-index: 2; }
@media (max-width: 760px) {
  .cd-sol div, .cd-sol div + div { margin-top: 28px; padding: 0; border-top: 0; }
  .cd-sol div:first-child { margin-top: 0; }
}

/* ---------- mobile fixes ---------- */
@media (max-width: 960px) { .cd-nav { grid-template-columns: 1fr auto auto; gap: 6px; } }
@media (max-width: 640px) {
  .cd-nav { padding: 0 8px 0 14px; }
  .cd-logo { gap: 8px; } .cd-logo img { width: 28px; } .cd-logo span { font-size: 15px; white-space: nowrap; }
  .cd-drop-btn { padding: 8px 10px; font-size: 13px; }
  .cd-outline { height: 36px; padding: 0 14px; font-size: 13px; }
  .cd-drop { position: static; }                                     /* the menu opens under the whole bar, never off-screen */
  .cd-drop-panel { left: 0; right: 0; width: auto; top: calc(100% + 10px); }

  /* floor: the turned plane is ~7.4 tables wide whatever the column count, so size the tables from the screen width */
  .cd-iso { --s: min(60px, calc((100vw - 24px) / 7.4)); height: calc(var(--s) * 5); }
  .cd-phone { height: 340px; }
  .cd-stage { row-gap: 110px; }
}

/* ---------- mobile layout pass: shorter page, swipeable features, compact steps ---------- */
@media (max-width: 640px) {
  .cd-sec { padding-top: 64px; }
  .cd-head { gap: 14px; margin-bottom: 28px; }
  .cd-head h2 { font-size: clamp(1.8rem, 8.4vw, 2.3rem); }

  /* how it works: number on the left, text on the right, one hairline per step */
  .cd-flow { border-top: 0; row-gap: 0; }
  .cd-flow li, .cd-flow li + li, .cd-flow li:nth-child(3) { display: grid; grid-template-columns: 44px 1fr; padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .cd-flow .cd-num { grid-row: 1 / span 2; padding-top: 6px; }
  .cd-flow h3 { margin: 0 0 6px; font-size: 1.55rem; }
  .cd-flow p { max-width: none; font-size: 14.5px; }

  /* features: swipe sideways instead of six tall cards */
  .cd-sec--panel { padding-inline: 0; }
  .cd-sec--panel .cd-head { padding-inline: var(--pad); }
  .cd-feat { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 18px; scroll-padding-inline: var(--pad);
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cd-feat::-webkit-scrollbar { display: none; }
  .cd-feat .cd-card { flex: 0 0 80%; scroll-snap-align: start; }
  .cd-feat .rv { opacity: 1; transform: none; filter: none; }       /* cards sit off-screen sideways: never wait for a scroll reveal */
  .cd-art { height: 176px; }
  .cd-more { padding-inline: var(--pad); }

  .cd-sol { margin-bottom: 40px; }
  .cd-sol p { font-size: 14.5px; }
  .cd-model div, .cd-model div + div { margin-top: 0; padding: 20px 0; }
  .cd-phone { height: 300px; }
  .cd-end { padding-block: 44px; }
}

/* ---------- mobile, Apple-style: touch feedback, 44pt targets, sheet that grows from its button, optical type ---------- */
.cd-feat-dots { display: none; }
@media (max-width: 640px) {
  /* response: every touchable answers on press-down, instantly, and springs back */
  .cd-btn, .cd-outline, .cd-drop-btn, .cd-card, .cd-sol div, .cd-link, .cd-drop-panel a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .cd-btn:active, .cd-outline:active { transform: scale(.96); transition: transform .1s ease-out; }
  .cd-card:active { transform: scale(.985); transition: transform .1s ease-out; }
  .cd-btn, .cd-outline, .cd-card { transition: transform .45s cubic-bezier(.2, 1.1, .3, 1), background .2s; }   /* release: a soft spring back */
  .cd-drop-panel a:active { background: rgba(0,0,0,.1); }

  /* targets: at least 44 points */
  .cd-drop-btn { min-height: 44px; }
  .cd-outline { height: 44px; }
  .cd-nav { height: 58px; }
  .cd-drop-panel a { padding: 14px 16px; min-height: 52px; }
  .cd-link { display: inline-flex; align-items: center; min-height: 44px; }

  /* spatial consistency: the menu opens out of the button that opened it */
  .cd-drop-panel { transform-origin: 56% 0; }

  /* optical sizing: big type tight, small type a touch open, comfortable leading */
  .cd-h1 { letter-spacing: -.06em; line-height: .98; }
  .cd-lead { letter-spacing: 0; line-height: 1.5; font-size: 1.02rem; }
  .cd-flow p, .cd-sol p, .cd-model p, .cd-card p { letter-spacing: .003em; line-height: 1.5; }
  .cd-pill, .cd-num, .cd-board-title, .cd-more { letter-spacing: .02em; }

  /* the swipe row tells you where you are */
  .cd-feat { scroll-snap-stop: always; overscroll-behavior-x: contain; }
  .cd-feat-dots { display: flex; justify-content: center; gap: 7px; margin-top: 2px; }
  .cd-feat-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(0,0,0,.2); cursor: pointer;
    transition: width .45s cubic-bezier(.2, 1.1, .3, 1), background .25s; position: relative; }
  .cd-feat-dots button::after { content: ""; position: absolute; inset: -18px -6px; }      /* big invisible hit area */
  .cd-feat-dots button.is-on { width: 22px; background: var(--fg); }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .cd-btn, .cd-outline, .cd-card, .cd-feat-dots button { transition: none; }
}

/* hero background: topographic contour lines (assets/js/cantumdine-topo.js) */
.cd-topo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; color: #0b0b0b; --topo-alpha: .32; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.cd-topo.is-on { opacity: 1; }
@media (max-width: 640px) { .cd-topo { --topo-alpha: .26; } }
@media (prefers-reduced-motion: reduce) { .cd-topo { transition: none; } }
