/* Dialworks. Colours are the materials of the first face: graphite case, gunmetal panels,
   machined steel edges, bronze gears, amber backlit readouts, warm lume white. */
:root {
  --graphite: #111213;
  --gunmetal: #1a1c1e;
  --steel: #34383c;
  --bronze: #b8743a;
  --amber: #ffb547;
  --lume: #ece6da;
  --dim: #8f8a82;
  --display: Bahnschrift, "DIN Alternate", "DIN Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", sans-serif;
  --body: "Segoe UI", Roboto, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; } /* the watch in the box grows into the face page */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--graphite); color: var(--lume); font: 17px/1.6 var(--body); overflow-x: hidden; }
body::after { /* film grain over everything */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: var(--amber); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3, .brand, .key, .when, .btn, .seg button, .readout { font-family: var(--display); }
h1, h2, h3 { margin: 0; font-weight: 700; text-transform: uppercase; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.key { color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.glow { color: var(--amber); text-shadow: 0 0 22px rgba(255, 181, 71, .4); }

/* amber hazard stripes, as on the dial */
.stripe { display: inline-block; width: 32px; height: 11px; flex: none;
  background: repeating-linear-gradient(-60deg, var(--amber) 0 3px, transparent 3px 7px); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--lume); text-decoration: none;
  font-size: 22px; font-weight: 700; letter-spacing: .16em; }
.top nav { display: flex; gap: 28px; }
.top nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--lume); }

/* hero */
.intro { display: grid; grid-template-columns: minmax(0, 640px) auto; justify-content: space-between; align-items: end;
  gap: 28px 48px; padding: 32px 0 0; }
h1 { grid-column: 1 / -1; font-size: clamp(42px, 6.6vw, 96px); font-stretch: condensed; line-height: .9; letter-spacing: -.005em; }
h1 span { display: block; }
.intro p { margin: 0; color: var(--dim); font-size: 18px; }
.intro p strong { color: var(--lume); font-weight: 600; }
.intro .crumb { grid-column: 1 / -1; margin-bottom: -12px; font-size: 13px; }
.crumb a { color: var(--dim); }
.crumb a:hover { color: var(--lume); }

/* the collection: a watch box with one compartment per face */
.faces { padding-top: 40px; }
.box { padding: 12px; border-radius: 28px; background: linear-gradient(160deg, #222427, #141517 60%);
  box-shadow: 0 0 0 1px #2a2d31, inset 0 1px 0 rgba(255, 255, 255, .06), 0 50px 100px rgba(0, 0, 0, .55); }
.lid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 6px 10px 14px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slot { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100%;
  border-radius: 18px; color: inherit; text-decoration: none; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 38%, #201c18, #0d0d0e 75%);
  box-shadow: inset 0 16px 30px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .035); }
.slot.on::before { content: ""; position: absolute; left: 22%; right: 22%; top: 18%; height: 50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 160, 60, .22), transparent); filter: blur(30px); transition: opacity .4s; opacity: .7; }
.piece { position: relative; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.slot.on:hover::before, .slot.on:focus-visible::before { opacity: 1; }
.slot.on:hover .piece, .slot.on:focus-visible .piece { transform: translateY(-8px) scale(1.03); }
.slot.on:focus-visible { outline-offset: -3px; }
.plate { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px 18px; border-top: 1px solid rgba(255, 255, 255, .05); }
.plate b { display: block; font: 700 22px/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.plate .key { display: block; margin-top: 4px; }
.slot:not(.on) b { color: var(--dim); }
.go { color: var(--amber); font-size: 26px; transition: transform .3s; }
.slot.on:hover .go { transform: translateX(6px); }
.draft { width: 62%; margin: auto; fill: none; stroke: var(--steel); stroke-width: 1.2; }
.draft .dash { stroke: #4a4f54; stroke-dasharray: 4 5; }
.draft .axis { stroke-dasharray: 12 4 2 4; }
.draft text { fill: var(--dim); stroke: none; font: 600 11px var(--display); letter-spacing: .1em; text-anchor: middle; }
.pill { display: inline-flex; justify-self: end; align-items: center; gap: 10px; padding: 8px 16px; white-space: nowrap;
  border: 1px solid var(--steel); border-radius: 99px; font-size: 15px; color: var(--lume); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 10px var(--amber); animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* the annotated live watch */
.rig { position: relative; margin: 8px 0 0; }
.rig-in { position: relative; aspect-ratio: 1200 / 760; }
.rig-in::before { content: ""; position: absolute; left: 30%; right: 30%; top: 12%; bottom: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 160, 60, .22), transparent); filter: blur(40px); }
.watch { position: absolute; left: 18.333%; top: 0; width: 63.333%; height: 100%; }
.case { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .25s; }
.case.swap { opacity: .4; }
.notes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity .6s; }
.rig:has(.aod) .notes { opacity: .15; } /* always-on hides what the callouts point at */
.notes polyline { fill: none; stroke: var(--amber); stroke-opacity: .55; stroke-width: 1.4; }
.notes .ring { fill: rgba(17, 18, 19, .7); stroke: var(--amber); stroke-width: 1.4; }
.notes .dot { fill: var(--amber); }
.notes .n { display: none; fill: var(--lume); font: 700 20px var(--display); text-anchor: middle; dominant-baseline: central; }
.notes .k { fill: var(--dim); font: 600 13px var(--display); letter-spacing: .2em; }
.notes .v { fill: var(--lume); font: 600 30px var(--display); font-variant-numeric: tabular-nums; }
.notes .v.glow { fill: var(--amber); }
.notes .l .k, .notes .l .v { text-anchor: end; }
.legend { display: none; }

/* the face itself: coordinates are the 450-unit grid of watchface.xml */
.face { position: absolute; left: 20.255%; top: 18.74%; width: 59.011%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; background: #000; container-type: inline-size; --u: calc(100cqw / 450);
  font-family: Roboto, "Segoe UI", Arial, sans-serif; font-weight: 700; color: #f2f2f2; }
.p { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); }
.t { display: flex; align-items: center; font-size: calc(var(--fs) * var(--u)); line-height: 1; white-space: nowrap; }
.t.end { justify-content: flex-end; }
.t.mid { justify-content: center; }
.t.up { text-transform: uppercase; }
.amber { color: #ffb547; }
.gear, .hand { transform-origin: calc(var(--px) * 100%) calc(var(--py) * 100%); }
.ticking .gear { transition: transform .16s cubic-bezier(.3, 1.9, .6, 1); }
.live, .amb { position: absolute; inset: 0; transition: opacity .6s; }
.amb { opacity: 0; }
.face.aod .live { opacity: 0; }
.face.aod .amb { opacity: 1; }

/* controls under the watch */
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; margin: 8px 0 0; }
.ctl { display: flex; align-items: center; gap: 14px; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 30px; height: 30px; padding: 0; border: 2px solid var(--graphite); border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 1px var(--steel); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--amber); }
.seg { display: flex; padding: 3px; border: 1px solid var(--steel); border-radius: 99px; }
.seg button { padding: 6px 14px; border: 0; border-radius: 99px; background: none; color: var(--dim);
  font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--amber); color: #1a1206; }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-block: 1px solid var(--steel); }
.facts div { padding: 22px 20px; border-left: 1px solid var(--steel); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; margin-top: 4px; font: 600 22px/1.2 var(--display); }

section { padding: 112px 0 0; }
h2 { font-size: clamp(36px, 5.4vw, 72px); font-stretch: condensed; line-height: .92; }

/* what's next */
.next { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.next h2 { margin-bottom: 40px; }
.road { position: relative; margin: 0; padding: 0; list-style: none; }
.road::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--amber) 0 22%, var(--steel) 22%); }
.road li { position: relative; padding: 0 0 30px 44px; }
.road li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--steel); background: var(--graphite); }
.road .now::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.road .soon::before { border-color: var(--amber); }
.when { color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.now .when, .soon .when { color: var(--amber); }
.road h3 { margin: 4px 0 6px; font-size: 26px; line-height: 1.1; letter-spacing: .02em; }
.road p { margin: 0; color: var(--dim); }

.phone-wrap { display: grid; justify-items: center; gap: 18px; }
.phone { position: relative; width: 250px; aspect-ratio: 9 / 19; overflow: hidden; border-radius: 40px;
  border: 9px solid #0a0a0b; box-shadow: 0 0 0 1px var(--steel), 0 40px 80px rgba(0, 0, 0, .6);
  background: radial-gradient(120% 70% at 80% 100%, #3a2512, transparent 60%), linear-gradient(#1c1d1f, #0e0e0f); }
.phone .clock { position: absolute; left: 0; right: 0; top: 64px; text-align: center; font-size: 72px; font-weight: 600;
  font-stretch: condensed; line-height: 1; }
.phone .day { position: absolute; left: 0; right: 0; top: 40px; text-align: center; color: var(--dim); font-size: 14px; }
.phone .band { position: absolute; left: 24px; right: 24px; top: 160px; height: 10px;
  background: repeating-linear-gradient(-60deg, rgba(255, 181, 71, .7) 0 3px, transparent 3px 8px); }
.phone svg { position: absolute; }
.cog { fill: url(#bronze); }
.cog-a { width: 260px; right: -90px; bottom: -70px; }
.cog-b { width: 130px; left: 10px; bottom: 120px; opacity: .8; }
.cog g { transform-box: fill-box; transform-origin: center; }
.ticking .cog g { transition: transform .16s cubic-bezier(.3, 1.9, .6, 1); }

/* statement and contact */
.quiet { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 28px 48px; align-items: end; }
.quiet h2 span { display: block; }
.quiet h2 span:last-child { color: var(--amber); }
.quiet p { margin: 0; color: var(--dim); font-size: 18px; }
.contact .big { display: inline-block; margin-top: 14px; font: 600 clamp(26px, 5vw, 64px)/1.1 var(--display);
  font-stretch: condensed; text-decoration: none; }
.contact .big:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.contact p { margin: 10px 0 0; color: var(--dim); }

.foot { margin-top: 112px; padding-bottom: 32px; }
.mark { margin: 0; font: 700 clamp(64px, 19.5vw, 250px)/.8 var(--display); font-stretch: condensed;
  letter-spacing: -.01em; color: #1c1e20; text-shadow: 0 -1px 0 rgba(255, 255, 255, .05); text-align: center; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px;
  border-top: 1px solid var(--steel); color: var(--dim); font-size: 14px; }
.foot-row a { color: var(--dim); }

/* privacy page */
.doc { max-width: 760px; padding: 48px 0 0; }
.doc h1 { font-size: clamp(44px, 7vw, 88px); }
.doc h2 { margin: 40px 0 8px; font-size: 24px; font-stretch: normal; }
.doc p, .doc li { color: #d4cfc5; }
.doc .key { display: block; margin: 18px 0 28px; }

/* entrance: the callouts draw out of the dial, then their labels appear */
@media (prefers-reduced-motion: no-preference) {
  .notes polyline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s calc(.5s + var(--i) * .09s) ease-out forwards; }
  .notes .lbl, .notes .pin { opacity: 0; animation: show .5s calc(.9s + var(--i) * .09s) forwards; }
  .face { animation: show 1s .1s both; }
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

@media (max-width: 860px) {
  .top nav { display: none; }
  .intro, .next, .quiet { grid-template-columns: 1fr; }
  .intro .pill { justify-self: start; }
  .box { margin: 0 -8px; padding: 8px; border-radius: 22px; }
  .slots { grid-template-columns: 1fr 1fr; gap: 8px; }
  .slot.on { grid-column: 1 / -1; }
  .slot:not(.on) .plate { padding: 12px 14px 14px; }
  .slot:not(.on) b { font-size: 17px; }
  .rig { overflow: hidden; margin: 0 -16px; }
  .rig-in { width: 200%; margin-left: -50%; }
  .notes polyline, .notes .lbl, .notes .dot { display: none; }
  .notes .n { display: block; }
  .notes .ring { r: 13px; }
  .notes .n { font-size: 17px; }
  .legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: c; }
  .legend li { display: flex; gap: 10px; font-size: 15px; color: var(--dim); counter-increment: c; }
  .legend li::before { content: counter(c); flex: none; width: 24px; height: 24px; border: 1.4px solid var(--amber);
    border-radius: 50%; color: var(--lume); font: 700 13px/21px var(--display); text-align: center; }
  .legend b { display: block; color: var(--lume); font-weight: 600; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--steel); }
  section { padding-top: 88px; }
}
