/* datum.tools: the landing page. The page's own styles live here, not in the page: the site's security policy blocks
   inline styles. No colour, typeface or radius is written here: they are all named in the brand file
   (site/brand/datum.css, served as /datum.css and loaded by the page before this one). */
:root { --ink: var(--d-graphite); --paper: var(--d-porcelain); --muted-dark: var(--d-titanium); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--d-stone); color: var(--ink); font-family: var(--d-sans); font-weight: var(--d-w-body);
  -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.mono, .nh { font-family: var(--d-mono); }

.wrap { max-width: 1252px; margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
.col { display: flex; flex-direction: column; gap: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.start { align-items: flex-start; gap: 24px; }
h1, h2, h3 { font-weight: var(--d-w-display); margin: 0; text-wrap: balance; }
h2 { max-width: 16em; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
h2.light { color: var(--d-porcelain); }
h2.big { font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.035em; max-width: 14em; }

.btn { display: inline-flex; align-items: center; background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 12px 20px; border-radius: var(--d-r-pill); font-weight: var(--d-w-button); }
.btn.big { padding: 16px 26px; font-size: 16px; }
.btn:hover { background: var(--d-black); color: var(--d-porcelain); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--d-sky-warm); color: var(--ink); padding-top: 28px; }
/* the atmosphere behind the hero and the closing call: the hillside on the first panel of the guidelines' board. A sky
   that runs from warm on the left to a cool blue-grey at the top right and brightens towards the ridge; a hill lit at
   its foot and in shade at its crest; no line between them (guidelines 04: colour made by the way light meets the
   object). Drawn in the page; coloured here from the brand file. */
.atmos { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.atmos ~ .wrap { position: relative; }
.s-sky-warm { stop-color: var(--d-sky-warm); } .s-sky-mid { stop-color: var(--d-sky-mid); } .s-sky-dim { stop-color: var(--d-sky-dim); } .s-sky-cool { stop-color: var(--d-sky-cool); }
.s-light { stop-color: var(--d-ridge-light); } .s-bright { stop-color: var(--d-porcelain); }
.s-hill-lit { stop-color: var(--d-hill-lit); } .s-hill-mid { stop-color: var(--d-hill-mid); }
.s-hill-shade { stop-color: var(--d-hill-shade); } .s-hill-foot { stop-color: var(--d-hill-foot); }
.s-most { stop-opacity: 0.75; } .s-half { stop-opacity: 0.5; } .s-faint { stop-opacity: 0.3; } .s-trace { stop-opacity: 0.22; } .s-clear { stop-opacity: 0; }
/* the picture's surface, over the whole section: a slow mottle and a fine grain, laid on softly */
.grain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: soft-light; }
.g-mottle { opacity: 0; } .g-fine { opacity: 0.012; }   /* a matte, even gradient: the slow mottle read as blotches; a trace of grain kept against banding */
.hero .wrap { display: flex; flex-direction: column; gap: 24px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.word { font-size: 20px; font-weight: var(--d-w-button); letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: var(--d-w-label); }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; padding: 12px 0; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.hero-body { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 48px 0 72px; }
.hero h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.04em; }
.hero p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--d-graphite-3); max-width: 30em; }
.hero-pic { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero-pic { position: relative; padding: 24px 0 64px; }
/* a note on the picture, over its lower left corner */
.callout { position: absolute; left: 0; bottom: 40px; max-width: 290px; display: flex; flex-direction: column; gap: 6px;
  background: var(--d-veil); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--d-veil); border-radius: var(--d-r-control); padding: 14px 16px; color: var(--ink);
  box-shadow: 0 12px 32px var(--d-shadow); }
.callout-tag { font-family: var(--d-mono); font-size: 11px; letter-spacing: var(--d-track-mono); text-transform: uppercase; color: var(--d-alloy-text); }
.callout-text { font-size: 15px; line-height: 1.4; color: var(--d-alloy-text); }
.callout-text b { font-weight: var(--d-w-button); color: var(--ink); }
.hero-pic img { position: relative; width: 100%; max-width: 640px; height: auto; }   /* cut out of its backdrop: it sits in the hero's own light */
/* a soft contact shadow under the product, so it rests in the scene and doesn't float on it */
.hero-pic::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 44px; height: 56px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--d-shadow-cube), transparent); filter: blur(10px); }

/* how it works */
/* the one dark section: the technical content (guidelines 04, Graphite fade) */
.how { background: radial-gradient(70% 34% at 14% 0%, var(--d-warm-glow), transparent 72%), radial-gradient(60% 30% at 92% 100%, var(--d-warm-glow), transparent 70%),
  linear-gradient(180deg, var(--d-graphite-2), var(--d-graphite)); color: var(--paper); padding: 96px 0; }
.graph-scroll { overflow-x: auto; border: 1px solid var(--d-line-dark); border-radius: var(--d-r-panel); background-color: var(--d-graphite);
  background-image: radial-gradient(var(--d-line-dark) 1px, transparent 1.2px); background-size: 24px 24px; }
.graph { position: relative; width: 1186px; height: 640px; }
.graph-lines { position: absolute; left: 0; top: 0; }
.flow { animation: datumFlow 1.1s linear infinite; }
@keyframes datumFlow { to { stroke-dashoffset: -20; } }
.nodes { list-style: none; margin: 0; padding: 0; }
.nodes li { position: absolute; width: 220px; background: var(--d-graphite-2); border: 1px solid var(--d-line-dark); border-radius: var(--d-r-control); overflow: hidden; }
.nodes li.last { border-color: var(--d-titanium); }
/* the graph's lines: datum lines, fine and in one colour */
.gl-base { stroke: var(--d-alloy); } .gl-flow { stroke: var(--d-porcelain); } .gl-dots { fill: var(--d-graphite); stroke: var(--d-stone); }
.arc-rest { stroke: var(--d-titanium); } .arc-done { stroke: var(--d-graphite); }
.nh { height: 34px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; font-size: 11px;
  letter-spacing: var(--d-track-mono); text-transform: uppercase; color: var(--d-stone); }
.nh b { font-weight: var(--d-w-body); color: var(--d-titanium); }
/* the pictures sit on warm Porcelain, not on their own white: each is blended into its ground */
.np { display: block; background: var(--d-porcelain-warm); isolation: isolate; }
.nodes img { width: 218px; height: 165px; object-fit: cover; mix-blend-mode: multiply; }
.nc { height: 50px; padding: 0 12px; display: flex; align-items: center; font-size: 13px; line-height: 1.35; color: var(--muted-dark); }

.out { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.out-pic { flex: 1 1 380px; min-width: 0; border-radius: var(--d-r-panel); overflow: hidden; background: var(--d-porcelain-warm); display: flex; align-items: center; isolation: isolate; }
.out-pic img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; mix-blend-mode: multiply; }
.bom { flex: 1 1 460px; min-width: 0; background: var(--d-porcelain-warm); color: var(--ink); border-radius: var(--d-r-panel); padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.bom-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 24px; }
.t { font-size: 15px; line-height: 1.3; font-weight: var(--d-w-label); }
.s { font-size: 15px; line-height: 1.3; color: var(--d-alloy-text); }
.bom .mono { font-size: 12px; color: var(--d-alloy-text); }
.bom-scroll { overflow-x: auto; }
.bom table { width: 100%; min-width: 400px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.bom tr { border-top: 1px solid var(--d-line); }
.bom td { padding: 9px 12px 9px 0; }
.bom td.n { text-align: right; color: var(--d-alloy-text); }
.bom td.m { padding-left: 12px; color: var(--d-alloy-text); }
.bom td.v { padding-right: 0; text-align: right; font-family: var(--d-mono); }

/* the second product */
/* the light sections: Stone is the ground */
.second { background: radial-gradient(60% 38% at 78% 8%, var(--d-warm-wash), transparent 72%), linear-gradient(180deg, var(--d-porcelain-warm), var(--d-stone)); padding: 96px 0; }
.second-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.second-head p { margin: 0; max-width: 26em; font-size: 16px; line-height: 1.55; color: var(--d-alloy-text); }
.bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.bento figure { position: relative; margin: 0; border-radius: var(--d-r-panel); overflow: hidden; background: var(--d-stone); min-height: 0; }
.bento img, .bento video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento .b-hero { grid-row: span 2; aspect-ratio: 5 / 6; }
.bento .b-wide { grid-column: span 2; }
.bento .b-wide img, .bento .b-wide video { object-position: 50% 52%; }

/* who it's for */
.field { background: radial-gradient(56% 46% at 24% 46%, var(--d-warm-wash), transparent 72%), var(--d-stone); padding: 0 0 96px; }
.field + .field { background: radial-gradient(56% 46% at 76% 50%, var(--d-warm-wash), transparent 72%), var(--d-stone); }
.card { flex: 1 1 420px; min-width: 0; border-radius: var(--d-r-panel); padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.025em; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; }
.c-dark { background: var(--d-graphite); color: var(--paper); }
.c-dark .s, .c-dark p { color: var(--muted-dark); }
.c-stone { background: var(--d-porcelain); color: var(--ink); }
.c-stone .s, .c-stone p { color: var(--d-alloy-text); }

/* checks */
.tiles { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink); }
.tile { flex: 1 1 240px; min-width: 0; min-height: 270px; border-radius: var(--d-r-panel); padding: 24px 26px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 20px; }
.num { font-weight: var(--d-w-display); font-size: 64px; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.num span { font-size: 26px; letter-spacing: 0; }
.num.small { font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.t-light { background: var(--d-porcelain); }
.t-ambient { background: linear-gradient(160deg, var(--d-fade-ambient)); }   /* the one warm-to-cool moment on the page */
.t-ambient .s { color: var(--ink); }
.t-dark { background: var(--d-graphite-2); color: var(--paper); }
.t-dark .s { color: var(--muted-dark); }
.t-stone { background: linear-gradient(200deg, var(--d-fade-titanium)); gap: 12px; }
.t-stone .s { color: var(--ink); }
.arc { width: 100%; max-width: 150px; height: auto; }
/* the fifth check runs the full width: its words on the left, the part on the right with what was found marked on it */
.t-mould { flex: 1 1 100%; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 24px 48px; background: var(--d-porcelain-warm); }
.mould-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.mould-pic { flex: 2 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mould-pic img { width: 100%; max-width: 640px; height: auto; }
.mould-pic figcaption { font-size: 11px; letter-spacing: var(--d-track-mono); text-transform: uppercase; color: var(--d-alloy-text); line-height: 1.8; text-align: center; }
.key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--d-graphite); margin: 0 6px 0 14px; }
.key.mid { background: var(--d-alloy); }
.kp { display: inline-block; white-space: nowrap; }

/* closing call */
.close { position: relative; overflow: hidden; background: var(--d-sky-warm); padding-top: 112px; }
.close p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--d-graphite-3); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mail { font-family: var(--d-mono); font-size: 14px; color: var(--ink); background: var(--d-veil);
  padding: 8px 14px; border-radius: var(--d-r-pill); text-decoration: none; }
.foot { margin-top: 88px; padding-top: 24px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 12px 32px; font-size: 14px; color: var(--ink); border-top: 1px solid var(--d-line-strong); }

/* A narrower screen (a tablet, a small laptop): the graph's eight steps as a plain grid in their order, since its
   drawn lines need the full width. */
@media (max-width: 1240px) {
  .graph { width: auto; height: auto; }
  .graph-lines { display: none; }
  .nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px; }
  .nodes li, .nodes .n1, .nodes .n2, .nodes .n3, .nodes .n4, .nodes .n5, .nodes .n6, .nodes .n7, .nodes .n8 { position: static; width: auto; }
  .nodes img { width: 100%; height: auto; aspect-ratio: 218 / 165; }
  .nc { height: auto; min-height: 50px; padding: 8px 12px; }
}

/* A phone: one column, the same identity. A one-line header, the headline first, full-width pictures, and nothing
   that scrolls sideways or hides a column. */
@media (max-width: 760px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .col { gap: 28px; }
  .wide-only { display: none; }                 /* the header keeps the wordmark and Sign in; the pilot button is in the hero */
  .hero { padding-top: 12px; }
  .nav { flex-wrap: nowrap; }
  .hero-text { padding: 28px 0 8px; gap: 20px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.04; }
  .hero p { font-size: 17px; }
  .hero-text .btn { align-self: flex-start; }
  .hero-pic { flex-direction: column; align-items: center; padding: 44px 0 40px; }
  .callout { position: static; margin-top: 8px; max-width: none; align-self: stretch; }
  .how { padding: 64px 0; }
  .nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
  .nh { padding: 0 10px; font-size: 10px; }
  .nc { padding: 8px 10px; font-size: 12px; min-height: 48px; }
  /* the parts list: each part on two lines (name, count and volume; then what it's made of), so no column is cut off */
  .bom { padding: 20px; }
  .bom table, .bom tbody { display: block; min-width: 0; }
  .bom tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 14px; row-gap: 2px; padding: 10px 0; }
  .bom td, .bom td.m, .bom td.v { padding: 0; }
  .bom td:first-child { grid-area: 1 / 1; font-weight: var(--d-w-label); }
  .bom td.n { grid-area: 1 / 2; }
  .bom td.v { grid-area: 1 / 3; font-size: 13px; }
  .bom td.m { grid-area: 2 / 1 / 3 / 4; font-size: 13px; }
  .second { padding: 64px 0; }
  .field { padding-bottom: 64px; }
  /* the hillside on a tall screen, composed for it and not squeezed from the wide one: the words sit in a clear bright
     sky, the ridge runs its S between them and the product, and the product rests on the hill. The sky is drawn
     here; the hill's box is measured up from the foot of the section, so the ridge stays just above the picture. */
  .hero, .close { background: radial-gradient(120% 40% at 20% 64%, var(--d-ridge-light), transparent 70%),
    linear-gradient(62deg, var(--d-sky-warm) 30%, var(--d-sky-mid) 64%, var(--d-sky-dim) 84%, var(--d-sky-cool) 100%); }
  .at-sky { display: none; }
  .atmos { top: auto; bottom: 0; height: calc(75vw + 250px); }
  .close .atmos { height: 132px; }
  .dune { transform: translate(-1086px, 14px) scale(1.679, 0.271); }
  .at-glow { stroke-width: 320; filter: url(#at-soft-tall); }
  .at-core { stroke-width: 150; }
  .at-foot { display: none; }
  .s-hill-shade { stop-color: var(--d-hill-mid); }   /* the product stands on the hill here, so the hill stays light enough to show it */
  .hero-pic::before { bottom: auto; top: calc(44px + 66vw); height: 40px; }
  .second-head p { font-size: 15px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 8px; }
  .bento figure:not(.b-hero) { aspect-ratio: 1 / 1; }
  .bento figure.b-wide { aspect-ratio: 16 / 9; }
  .bento .b-hero { grid-column: span 2; grid-row: auto; }
  .bento .b-wide { grid-column: span 2; }
  .row { gap: 8px; }
  .card { padding: 22px 22px 24px; gap: 14px; }
  /* the checks: each a short band, its label on the left and its figure on the right */
  .tiles { gap: 8px; }
  .tile { flex: 1 1 100%; min-height: 0; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 22px; }
  .tile .lbl { flex: 1 1 0; min-width: 0; }
  .tile .s { font-size: 14px; }
  .num { font-size: 40px; white-space: nowrap; }
  .num span { font-size: 18px; }
  .num.small { font-size: 22px; }
  .arc { display: none; }
  .tile.t-mould { flex-direction: column; align-items: stretch; gap: 18px; }
  .mould-text, .mould-pic { flex: 0 0 auto; }
  .mould-text { gap: 14px; }
  .mould-pic figcaption { font-size: 10px; }
  .close { padding-top: 72px; }
  .close p { font-size: 17px; }
  .foot { margin-top: 64px; padding-bottom: max(28px, env(safe-area-inset-bottom)); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .flow { animation: none; } }

/* the graph's step boxes, placed on the lines */
.nodes .n1 { left: 942px; top: 352px; }
.nodes .n2 { left: 24px; top: 36px; }
.nodes .n3 { left: 330px; top: 36px; }
.nodes .n4 { left: 636px; top: 36px; }
.nodes .n5 { left: 942px; top: 36px; }
.nodes .n6 { left: 24px; top: 352px; }
.nodes .n7 { left: 330px; top: 352px; }
.nodes .n8 { left: 636px; top: 352px; }
@media (min-width: 761px) { .keep { white-space: nowrap; } }   /* on a phone the headline wraps wherever it must: held together it ran off the side of the wider phones */
