/* Cambium concept page. One warm light theme, system fonts, no external requests. */
:root {
  --paper: #f6f1e8;
  --panel: #fffaf1;
  --ink: #221c16;
  --muted: #5c5045;
  --rule: #d9cdbb;
  --walnut: #6b3f22;
  --walnut-dark: #4f2d17;
  --ok: #24552f;
  --error: #8c2318;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --night: #0a0f0b;
  --night-ink: #f3ecdf;
  --night-muted: #b9b3a4;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--walnut-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--walnut); outline-offset: 3px; border-radius: 2px; }
/* Tracking and leading are set per size: large type is tightened, small type is left open. */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.05; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.12; letter-spacing: -0.014em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.004em; }
p { margin: 0; text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; }
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }

main > section, .foot { width: min(100% - 2 * var(--gutter), 70rem); margin-inline: auto; }
.top { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; justify-content: space-between;
  padding: 0.9rem max(var(--gutter), (100% - 70rem) / 2); }
.brand { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.4rem; }
.brand-logo { display: block; height: 2rem; width: auto; }
.brand-note { font: 0.75rem var(--sans); color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0.1rem 0.55rem; margin-left: 0.4rem; vertical-align: middle; }
.top nav { display: none; gap: 0.25rem 1.5rem; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; padding: 0.55rem 0; transition: opacity 100ms ease-out; }
.top nav a:active { opacity: 0.55; }
.top nav a:hover { text-decoration: underline; }

main > section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); }
main > section.hero { border-top: 0; padding-top: clamp(1rem, 3vw, 2.5rem); }
.eyebrow { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--walnut-dark); margin-bottom: 0.9rem; }

/* Hero. On a phone the picture is a wide banner above the text, so the watch and the email field share the first screen. */
.hero { display: grid; gap: 1.25rem; align-items: center; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 45% 30%; border-radius: 10px; background: #060907; }
figcaption { color: var(--muted); font-size: 0.8rem; line-height: 1.4; margin-top: 0.4rem; }
.lede { font-size: 1.1rem; max-width: 34rem; margin-top: 0.8rem; }
.fine { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }

/* One-field sign-up. The concept line sits inside the form so it travels with it. */
form.join { display: grid; gap: 0.6rem; margin-top: 1.1rem; max-width: 32rem; }
.join-row { display: grid; gap: 0.6rem; align-items: end; }
.concept { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

.button {
  display: inline-block; font: 600 1.05rem var(--sans); color: #fffaf1; background: var(--walnut);
  border: 0; border-radius: 6px; padding: 0.85rem 1.4rem; min-height: 2.75rem; text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, transform 100ms ease-out;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* Feedback on press, before release. */
.button:active { transform: scale(0.97); background: var(--walnut-dark); }
.button:hover { background: var(--walnut-dark); color: #fffaf1; }
.button:disabled { opacity: 0.6; cursor: progress; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Dial viewer: a still that zooms to a chosen part, with a canvas of turntable frames over it. Script sets --s, --tx, --ty on the layer. */
main > section.closer { width: 100%; padding: clamp(3rem, 8vw, 6rem) var(--gutter); border-top: 0; background: var(--night); color: var(--night-ink); }
.closer-inner { width: min(100%, 70rem); margin-inline: auto; display: grid; gap: 2rem; }
.closer-stage { display: grid; gap: 0.75rem; justify-items: center; }
.closer-lede { color: var(--night-muted); margin-top: 0.75rem; max-width: 34rem; }
.closer:not(.is-live) .closer-hint { display: none; }
.closer :focus-visible { outline-color: var(--night-ink); }

.closer-view { position: relative; overflow: hidden; aspect-ratio: 1; width: min(100%, 78svh, 44rem); justify-self: center;
  border-radius: 14px; background: #060907; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.closer.is-live .closer-view { cursor: ew-resize; }
.closer.is-live .closer-view.is-zoomed { touch-action: none; cursor: grab; }
.closer.is-live .closer-view.is-dragging { cursor: grabbing; }
.closer-layer { --s: 1; --tx: 0%; --ty: 0%; position: absolute; inset: 0; transform-origin: 0 0;
  transform: translate(var(--tx), var(--ty)) scale(var(--s)); transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.closer-view.is-dragging .closer-layer { transition: none; }
.closer-layer img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }

.closer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.closer-canvas.is-on { opacity: 1; }
.closer-view.is-turned .closer-dot { visibility: hidden; }

/* A dot is a 44 px target with a small ring drawn inside it. It keeps its size while the layer scales. */
.closer-dot { position: absolute; left: var(--x); top: var(--y); width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem;
  padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; transform: scale(calc(1 / var(--s)));
  -webkit-tap-highlight-color: transparent; }
.closer-dot::before { content: ""; position: absolute; inset: 0.9rem; border-radius: 50%; background: #fffaf1;
  box-shadow: 0 0 0 0.4rem rgb(255 250 241 / 0.28), 0 1px 6px rgb(0 0 0 / 0.5); transition: transform 160ms ease-out, box-shadow 160ms ease-out; }
.closer-dot:hover::before, .closer-dot[aria-pressed=true]::before { transform: scale(1.25); box-shadow: 0 0 0 0.55rem rgb(255 250 241 / 0.4), 0 1px 6px rgb(0 0 0 / 0.5); }
.closer-dot:active::before { transform: scale(0.9); }
.closer-reset { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); font: 600 0.9rem var(--sans);
  color: var(--night-ink); background: rgb(10 15 11 / 0.66); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgb(243 236 223 / 0.3); border-radius: 999px; padding: 0.55rem 1.1rem; min-height: 2.75rem; cursor: pointer; }
.closer-reset[hidden] { display: none; }

/* The slider is the keyboard and no-drag way to turn the watch. */
.turn { display: grid; gap: 0.2rem; width: min(100%, 22rem); font-size: 0.85rem; color: var(--night-muted); text-align: center; }
.turn[hidden] { display: none; }
.turn input { width: 100%; min-height: 2.75rem; margin: 0; accent-color: var(--night-ink); cursor: pointer; }

/* Three dials, each described once. With script on, each name is a button that changes the picture. */
.dial-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; }
.dial-list li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: center; padding: 0.9rem 0 0.9rem 1rem;
  border-left: 2px solid rgb(243 236 223 / 0.16); transition: border-color 200ms ease; }
.dial-list li.is-active { border-left-color: var(--night-ink); }
.dial-list img { border-radius: 50%; }
.dial-list h3 { font-size: 1.35rem; }
.dial-list h3 + p { color: var(--night-muted); margin-top: 0.2rem; max-width: 30rem; }
.dial-wood, .parts-h { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-muted); }
.parts-h { margin-top: 2.25rem; }
/* Ideas under test: plain text, no picture, because nothing of them is drawn yet. */
.ideas p:not(.parts-h) { color: var(--night-muted); margin-top: 0.6rem; max-width: 34rem; }
.dial-pick { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0.35rem 0; margin: -0.35rem 0;
  min-height: 2.75rem; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dial-pick:hover, .dial-pick[aria-pressed=true] { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.closer-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; align-content: start; }
.closer-list li { padding: 0.55rem 0 0.55rem 1rem; border-left: 2px solid rgb(243 236 223 / 0.16); transition: border-color 200ms ease; }
.closer-list li.is-active { border-left-color: var(--night-ink); }
.closer-list h3 { font-size: 1.1rem; }
.closer-list p { color: var(--night-muted); margin-top: 0.3rem; max-width: 34rem; }
.closer-pick { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0.35rem 0; margin: -0.35rem 0;
  min-height: 2.75rem; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.closer-pick:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* With script on, an entry's text opens only when it is the chosen one, so the list reads as a set of controls. */
.closer.is-live .closer-list p { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0; transition: grid-template-rows 320ms ease, opacity 320ms ease, margin-top 320ms ease; }
.closer.is-live .closer-list p > span { overflow: hidden; }
.closer.is-live .closer-list li.is-active p { grid-template-rows: 1fr; margin-top: 0.3rem; opacity: 1; }
.closer-note { color: var(--night-muted); font-size: 0.8rem; line-height: 1.45; max-width: 34rem; text-align: center; }

/* The name: the mark drawn large beside two short paragraphs. */
.name { display: grid; gap: 1.5rem; align-items: center; }
.name-mark { width: clamp(6rem, 22vw, 10rem); }
.name-text p { margin-top: 0.9rem; max-width: 36rem; }

/* Plan: the steps are the wide column, the specification is a smaller panel beside them. */
.plan, .last { display: grid; gap: 2.5rem; align-items: start; }
.plan-spec, .join-panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(1.1rem, 3vw, 1.75rem); }
.spec-lede, .join-lede { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }
.join-panel h2 { font-size: 1.5rem; }
.join-panel form.join { margin-top: 1rem; }
.spec { margin: 0.75rem 0 0; font-size: 0.95rem; }
.spec div { display: grid; gap: 0.1rem 1rem; padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.spec dt { font-weight: 600; }
.spec dd { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 3rem; position: relative; max-width: var(--measure); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--walnut); color: var(--walnut-dark); font: 600 1rem/2rem var(--serif); text-align: center;
}
.steps p { color: var(--muted); margin-top: 0.35rem; }

details { border-bottom: 1px solid var(--rule); max-width: 46rem; }
details:first-of-type { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; padding: 0.9rem 0; transition: opacity 100ms ease-out; }
summary:active { opacity: 0.55; }
details p { color: var(--muted); padding: 0 0 1rem; max-width: var(--measure); }

.field { display: grid; gap: 0.4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, legend { font-weight: 600; padding: 0; }
legend { margin-bottom: 0.4rem; }
input[type=email], input[type=text], select {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid #8a7b69; border-radius: 6px;
  padding: 0.7rem 0.8rem; min-height: 2.75rem; width: 100%;
}
input[aria-invalid=true] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-note { color: var(--error); font-size: 0.95rem; min-height: 0; }
.field-note:empty { display: none; }
.choice { display: flex; gap: 0.6rem; align-items: center; min-height: 2.75rem; font-weight: 400; cursor: pointer; }
.choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--walnut); flex: none; }
.consent { align-items: flex-start; padding: 0.3rem 0; font-size: 0.95rem; }
.consent input { margin-top: 0.2rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-kind=ok] { color: var(--ok); }
.form-status[data-kind=error] { color: var(--error); }

.foot { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; display: grid; gap: 0.5rem; }

.notice-page { display: grid; min-height: 100vh; place-items: start center; }
.notice { width: min(100% - 2rem, 38rem); padding: clamp(2.5rem, 10vh, 6rem) 0 3rem; display: grid; gap: 1rem; }
.notice h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.notice h2 { font-size: 1.3rem; margin-top: 0.75rem; }
.notice form { margin: 0.5rem 0; display: grid; gap: 1.25rem; }
.notice fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

@media (min-width: 46rem) {
  /* The header floats over the page as a thin material. The fade under it replaces a hard rule. */
  .top { position: sticky; top: 0; z-index: 5; background: rgb(246 241 232 / 0.9);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
  .top::after { content: ""; position: absolute; inset: 100% 0 auto; height: 0.75rem; pointer-events: none;
    background: linear-gradient(rgb(34 28 22 / 0.06), rgb(34 28 22 / 0)); }
  html { scroll-padding-top: 5rem; }
  .top nav { display: flex; }
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .hero-figure { order: 2; }
  .hero-figure img { aspect-ratio: 1; }
  .lede { font-size: 1.2rem; margin-top: 1.1rem; }
  form.join { margin-top: 1.5rem; }
  .join-row { grid-template-columns: 1fr auto; }
  .closer-inner { grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr); column-gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
  .closer-stage { position: sticky; top: 5rem; }
  .closer-view { width: min(100%, 100svh - 13.5rem); }
  .name { grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 5rem); }
  .plan { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .last { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .spec div { grid-template-columns: 8.5rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: background-color 120ms ease; }
  .button:active { transform: none; }
  .closer-layer, .closer-dot::before, .closer.is-live .closer-list p, .closer-list li, .dial-list li { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .closer-reset { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .top { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #3d342c; --rule: #6f6252; }
  .top { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--ink); }
  .top::after { display: none; }
}
