@font-face {
  font-family: "Chrono Narrow";
  src: url("assets/fonts/LiberationSansNarrow-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* Animatable dial position, in degrees from straight up */
@property --dial { syntax: "<number>"; inherits: true; initial-value: 24; }
@property --lean { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --level { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --paper: #f6f2e7;
  --ink: #12120e;
  --green: #00b300; /* exact ring color from Green Test.svg. Too light for text on paper. */
  --narrow: "Chrono Narrow", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --header: 68px;
  --dial-rest: 24;
  --snap: cubic-bezier(.2, .85, .2, 1);
  --sweep: cubic-bezier(.7, 0, .15, 1);
  --left-edge: max(var(--gutter), calc((100vw - 1560px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, fieldset, legend { margin: 0; padding: 0; border: 0; }
h1, h2, h3, th, .price, .btn, .view-tabs label { font-family: var(--narrow); font-weight: 700; }
h1, h2, h3 { line-height: .94; text-wrap: balance; }
h2 { font-size: clamp(4rem, 11vw, 11rem); letter-spacing: -.012em; line-height: .86; }
a { color: inherit; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.work :focus-visible { outline-color: var(--paper); }

.wrap { width: min(100% - 2 * var(--gutter), 1560px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: .75rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: var(--paper); transform: translateY(-5rem); }
.skip:focus { transform: none; }

/* Buttons: an angled plate, cut like the logo's arm, wipes across on hover */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: .7rem 1.7rem;
  overflow: hidden;
  background: var(--green);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  transition: color .16s linear, transform .12s var(--snap), box-shadow .22s linear;
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -25%;
  background: var(--ink);
  transform: translateX(-102%) skewX(-28deg);
  transition: transform .26s var(--snap);
}
.btn { border: 0; cursor: pointer; }
.btn span { text-wrap: balance; }
.btn::after { /* sheen */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20% auto -20% 0;
  width: 34%;
  background: rgb(255 255 255 / .42);
  transform: translateX(-180%) skewX(-28deg);
}
.btn:hover { color: var(--paper); box-shadow: 0 10px 28px rgb(0 179 0 / .35); }
.hero .btn:not(.btn-quiet)::after, .project-form .btn::after { animation: sheen 4.5s var(--sweep) 1.6s infinite; }
@keyframes sheen { 0% { transform: translateX(-180%) skewX(-28deg); } 26%, 100% { transform: translateX(420%) skewX(-28deg); } }
.btn:hover::before { transform: skewX(-28deg); }
.btn:active { transform: translateY(2px); }
.btn-quiet { background: none; box-shadow: inset 0 0 0 3px var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 3px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: calc(var(--header) - 3px); }
.brand { display: grid; flex: none; width: 54px; }
.brand img { grid-area: 1 / 1; width: 100%; }
.brand-rotor { transform-origin: 47.93% 45.63%; transition: transform .8s var(--snap); } /* turns on the logo's hub */
.brand:hover .brand-rotor, .brand:focus-visible .brand-rotor { transform: rotate(360deg); }
.site-header ul { display: flex; gap: clamp(.25rem, 2.5vw, 2rem); }
.site-header li a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .4rem;
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 1.4rem;
  white-space: nowrap;
  text-decoration: none;
}
.site-header li a::after {
  content: "";
  position: absolute;
  inset: auto .4rem 5px;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--snap);
}
.site-header li a:hover::after, .site-header li a:focus-visible::after, .site-header li a[aria-current]::after { transform: none; }

@supports (animation-timeline: scroll()) {
  .site-header::after { /* page progress */
    content: "";
    position: absolute;
    inset: auto 0 -3px;
    height: 3px;
    background: var(--green);
    transform-origin: left;
    animation: grow linear both;
    animation-timeline: scroll(root);
  }
  .track::before, .pricing-head::after { animation: ruler-run linear both; animation-timeline: scroll(root); }
  .how h2, .pricing h2 { animation: heading-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ruler-run { to { background-position-x: 440px; } }
@keyframes heading-in { from { transform: translateX(-7vw); } to { transform: none; } }

/* Hero: copy on paper, instrument set into a black panel running to the page edge */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  min-height: calc(100svh - var(--header));
}
.hero-copy { align-self: center; padding: clamp(1.5rem, 3vh, 3rem) clamp(1.5rem, 3vw, 3.5rem) clamp(1.5rem, 3vh, 3rem) var(--left-edge); }
h1 { font-size: clamp(3.4rem, min(8vw, 13svh, (43vw - var(--left-edge) - 3.5rem) / 4.5), 8.4rem); letter-spacing: -.012em; line-height: .9; }
.hero-copy p { max-width: 31em; margin-block: clamp(1.25rem, 2.5vh, 2rem) clamp(1.5rem, 3vh, 2.25rem); font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.42; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-graphic {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  padding: clamp(.75rem, 2vh, 1.75rem);
  background: var(--ink);
  animation: panel-in .85s var(--sweep) backwards;
}
.hero-graphic::before { /* soft light that follows the pointer */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 26rem at var(--mx, 72%) var(--my, 24%), rgb(0 179 0 / .3), transparent 72%);
}
.hero-graphic::after { /* green light sweeping around the dial */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(122%, calc((100svh - var(--header)) * 1.22));
  aspect-ratio: 1;
  margin: calc(min(122%, calc((100svh - var(--header)) * 1.22)) / -2) 0 0 calc(min(122%, calc((100svh - var(--header)) * 1.22)) / -2);
  border-radius: 50%;
  background: conic-gradient(transparent 0 62%, rgb(0 179 0 / .08) 74%, rgb(0 179 0 / .75) 99%, transparent 100%);
  animation: spin 9s linear infinite;
}
.dial {
  position: relative;
  z-index: 1;
  width: min(100%, calc(100svh - var(--header) - 2rem));
  height: auto;
  color: var(--ink);
  transform: perspective(1500px) rotateX(calc(var(--tilt-x, 0) * 1deg)) rotateY(calc(var(--tilt-y, 0) * 1deg));
  animation: dial-in 1s var(--snap) .08s backwards;
}
.dial-knurl { fill: none; stroke: var(--paper); stroke-width: 24; stroke-dasharray: 1 4; animation: spin 70s linear infinite; }
.dial-glow { fill: none; stroke: var(--green); stroke-width: 30; opacity: .24; }
.dial-rim { fill: none; stroke: var(--green); stroke-width: 7; }
.dial-comet { fill: none; stroke: var(--paper); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 16 344; animation: spin 6s linear infinite; }
.dial-face { fill: var(--paper); }
.hero.is-away *, .hero.is-away *::after { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes panel-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes dial-in { from { scale: .86; } to { scale: 1; } }

/* Dial parts, shared by the hero and the closing section */
.dial-track { stroke-width: 2.5; }
.dial-minor { stroke-width: 4; }
.dial-major { stroke-width: 9; }
.dial-live { --dial: var(--dial-rest); --lean: 0; }
.dial-arc {
  fill: none;
  stroke: var(--green);
  stroke-width: 18;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - (var(--dial) + var(--lean) + 120) / 156);
}
.contact .dial-needle { filter: drop-shadow(0 0 16px rgb(0 179 0 / .75)); }
.dial-needle { fill: var(--green); transform: rotate(calc((var(--dial) + var(--lean)) * 1deg)); }

/* One event: the needle and the end of the arc both read --dial */
@keyframes dial-settle {
  0% { --dial: -120; animation-timing-function: cubic-bezier(.65, 0, .2, 1); }
  66% { --dial: 31; animation-timing-function: cubic-bezier(.35, 0, .4, 1); }
  84% { --dial: 22; animation-timing-function: cubic-bezier(.35, 0, .4, 1); }
  100% { --dial: var(--dial-rest); }
}
.hero-reading { animation: dial-settle 1.3s .1s both; }

/* How it works: four stations on one long scale */
.how { padding-block: clamp(4.5rem, 8vw, 8rem); border-bottom: 3px solid var(--ink); }
.how h2 { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3.5rem); margin: 0; padding: 4.5rem 0 0; list-style: none; counter-reset: step; }
.track::before { /* the scale */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 26px;
  border-top: 5px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 22px);
}
.track::after { /* green reading that runs along the scale */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: var(--green);
  transform-origin: left;
  transition: transform 1.3s var(--sweep);
}
.track.is-waiting::after { transform: scaleX(0); }
.track li { position: relative; counter-increment: step; }
.track li::before { /* indicator cut like the logo's arm */
  content: "";
  position: absolute;
  left: -4px;
  top: -2.65rem;
  width: 38px;
  height: 38px;
  background: var(--ink);
  -webkit-mask: url("assets/chronoworks-rotor.svg") center / contain no-repeat;
  mask: url("assets/chronoworks-rotor.svg") center / contain no-repeat;
  transform-origin: 47.93% 45.63%;
}
.track li::after {
  content: counter(step);
  display: block;
  order: -1;
  font-family: var(--narrow);
  font-weight: 700;
  font-size: clamp(5rem, 9vw, 9.5rem);
  line-height: .86;
  color: transparent;
  background: linear-gradient(var(--green) 50%, var(--ink) 50%) 0 100% / 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position .42s var(--snap);
}
.track li:hover::after { background-position: 0 0; }
.track li::before { transition: transform .7s var(--snap), background-color .16s linear; }
.track li:hover::before { background: var(--green); transform: rotate(360deg); }
.track li { display: flex; flex-direction: column; gap: .75rem; transition: opacity .5s linear, transform .7s var(--snap); }
.track li:nth-child(2) { transition-delay: .12s; }
.track li:nth-child(3) { transition-delay: .24s; }
.track li:nth-child(4) { transition-delay: .36s; }
.track.is-waiting li { opacity: 0; transform: translateY(26px); }
.track h3 { margin-top: .6rem; font-size: clamp(2rem, 2.9vw, 3rem); line-height: 1; }
.track p { max-width: 24em; font-size: 1.08rem; line-height: 1.42; }

/* Work page */
.work { min-height: calc(100svh - var(--header)); background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 7rem) clamp(3.5rem, 6vw, 6rem); }
.work-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 1.75rem clamp(1.5rem, 3vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.work-head h1 { font-size: clamp(3.4rem, 6.6vw, 7.5rem); line-height: .9; }
.work-head > p { max-width: 36em; font-size: clamp(1.1rem, 1.4vw, 1.3rem); }
.back { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; margin-bottom: clamp(1rem, 2vw, 1.75rem); font-weight: 700; text-decoration: none; }
.back::before { content: ""; width: 24px; height: 18px; background: var(--green); clip-path: polygon(100% 12%, 38% 0, 0 50%, 38% 100%, 100% 88%); transition: transform .2s var(--snap); }
.back:hover::before { transform: translateX(-5px); }

/* Client list */
.rotor-page { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 100% 100%, rgb(0 179 0 / .24), transparent 46%), var(--ink); }
.rotor-page::after, .upkeep::after { /* the logo's rotor, tinted through a mask */
  content: "";
  position: absolute;
  z-index: -1;
  right: -9vw;
  bottom: -17vw;
  width: min(62vw, 980px);
  aspect-ratio: 1;
  background: rgb(0 179 0 / .2);
  -webkit-mask: url("assets/chronoworks-rotor.svg") center / contain no-repeat;
  mask: url("assets/chronoworks-rotor.svg") center / contain no-repeat;
  transform-origin: 47.93% 45.63%;
  animation: spin 80s linear infinite;
}
.project-page { background: radial-gradient(circle at 100% 0, rgb(0 179 0 / .22), transparent 42%), var(--ink); }
.project-page::after { top: -15vw; right: -11vw; bottom: auto; width: min(46vw, 760px); }
.about { background: radial-gradient(circle at 0 100%, rgb(0 179 0 / .24), transparent 46%), var(--ink); }
.about::after { right: auto; left: -17vw; bottom: -20vw; width: min(58vw, 920px); }
.upkeep { position: relative; isolation: isolate; overflow: hidden; }
.upkeep::after { right: 2vw; bottom: auto; top: 50%; width: clamp(180px, 22vw, 340px); margin-top: calc(clamp(180px, 22vw, 340px) / -2); background: rgb(0 179 0 / .34); }

/* About page */
.about-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem clamp(2.5rem, 7vw, 8rem); align-items: center; }
.about h1 { font-size: clamp(5rem, 12vw, 12rem); line-height: .84; padding-bottom: clamp(1.5rem, 3vw, 2.75rem); }
.about-copy p { max-width: 31em; font-size: clamp(1.1rem, 1.4vw, 1.3rem); }
.about-copy .about-lead { max-width: 21em; margin-bottom: 1.25rem; font-family: var(--narrow); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: 1.02; }
.about-plate { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 620px); justify-self: end; padding: 11%; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 7px var(--green), 0 0 90px rgb(0 179 0 / .42); }
.about-plate::before { /* knurled edge */
  content: "";
  position: absolute;
  inset: -7.5%;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--paper) 0 1deg, transparent 1deg 5deg);
  -webkit-mask: radial-gradient(closest-side, transparent 94%, #000 94.5%);
  mask: radial-gradient(closest-side, transparent 94%, #000 94.5%);
  animation: spin 70s linear infinite;
}
.about-plate img { grid-area: 1 / 1; width: 100%; }
.about-rotor { transform-origin: 47.93% 45.63%; animation: rotor-settle 1.5s var(--snap) .15s backwards; transition: transform .9s var(--snap); }
.about-plate:hover .about-rotor { transform: rotate(360deg); }
@keyframes rotor-settle { from { transform: rotate(-300deg); } }
.about-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3.5rem); margin-top: clamp(3.5rem, 7vw, 7rem); border-top: 5px solid var(--paper); }
.about-points li { padding-block: 1.5rem; }
.about-points h2 { margin-bottom: .6rem; font-size: clamp(2.3rem, 3.6vw, 3.75rem); letter-spacing: 0; line-height: 1; }
.about-points p { max-width: 24em; }
.about-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.about .btn-quiet { box-shadow: inset 0 0 0 3px var(--paper); color: var(--paper); }
.about .btn-quiet:hover { color: var(--ink); }
.client-index h1 { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); font-size: clamp(5rem, 12vw, 12rem); line-height: .84; }
.client-list { margin: 0; padding: 0; list-style: none; border-top: 5px solid var(--paper); }
.client-list li { border-bottom: 1px solid rgb(246 242 231 / .45); }
.client-list a {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 3rem;
  align-items: end;
  padding-block: clamp(1.75rem, 4vw, 3.5rem);
  overflow: hidden;
  text-decoration: none;
  transition: color .14s linear .06s;
}
.client-list a::before { content: ""; position: absolute; z-index: -1; inset: 0 -30%; background: var(--green); transform: translateX(-150%) skewX(-28deg); transition: transform .38s var(--sweep); }
.client-list h2 { font-size: clamp(3rem, 7.4vw, 8rem); letter-spacing: 0; line-height: .94; transition: transform .32s var(--snap); }
.client-meta { display: grid; gap: .3rem; font-size: 1.1rem; line-height: 1.25; text-align: right; transition: transform .32s var(--snap); }
.client-meta strong { font-family: var(--narrow); font-size: 1.55rem; line-height: 1.1; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: .18em; }
.client-list a:hover { color: var(--ink); }
.client-list a:hover::before { transform: skewX(-28deg); }
.client-list a:hover h2 { transform: translateX(1.25rem); }
.client-list a:hover .client-meta { transform: translateX(-1.25rem); }
.client-list a:hover strong { text-decoration-color: var(--ink); }
.work-intro h2 { font-size: clamp(2.3rem, 4vw, 4.25rem); line-height: .96; letter-spacing: 0; margin-bottom: 1rem; }
.work-intro p { max-width: 36em; font-size: clamp(1.1rem, 1.4vw, 1.3rem); }

.viewer { width: min(100% - clamp(1rem, 2.4vw, 2.5rem), 1840px); min-width: 0; margin-inline: auto; }
.view-tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; border-top: 2px solid rgb(246 242 231 / .4); }
.view-tabs label {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-inline: .15rem;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1;
  cursor: pointer;
  opacity: .68;
  transition: opacity .16s linear;
}
.view-tabs label:hover { opacity: 1; }
.view-marker { position: absolute; top: -2px; left: 0; width: calc(100% / 3); height: 6px; background: var(--green); transition: transform .42s var(--sweep); }

#view-home:checked ~ .view-tabs label[for="view-home"],
#view-guests:checked ~ .view-tabs label[for="view-guests"],
#view-volunteer:checked ~ .view-tabs label[for="view-volunteer"] { opacity: 1; }
#view-guests:checked ~ .view-tabs .view-marker { transform: translateX(100%); }
#view-volunteer:checked ~ .view-tabs .view-marker { transform: translateX(200%); }
#view-home:focus-visible ~ .view-tabs label[for="view-home"],
#view-guests:focus-visible ~ .view-tabs label[for="view-guests"],
#view-volunteer:focus-visible ~ .view-tabs label[for="view-volunteer"] { opacity: 1; outline: 3px solid var(--paper); outline-offset: -3px; }

.stage { display: grid; }
.view { position: relative; grid-area: 1 / 1; min-width: 0; visibility: hidden; transition: visibility 0s .62s; }
.view-frame { aspect-ratio: 1903 / 796; overflow: hidden; box-shadow: 0 0 0 2px var(--paper), 0 0 90px rgb(0 179 0 / .22); margin: 2px; transition: box-shadow .3s linear; }
.view:hover .view-frame { box-shadow: 0 0 0 2px var(--green), 0 0 110px rgb(0 179 0 / .42); }
.view-wipe, .view-clip, .view picture { display: block; height: 100%; }
/* Wipe uses transforms only: the layer slides in while its image counter-slides */
.view-wipe { position: relative; transform: translateX(-100%); transition: transform 0s .62s; }
.view-wipe::after { content: ""; position: absolute; inset: 0 auto 0 100%; width: 6px; background: var(--green); }
.view-clip { overflow: hidden; }
.view picture { transform: translateX(100%); transition: transform 0s .62s; }
.view img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--snap); }
.view:hover img { transform: scale(1.018); }
.view figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 2rem;
  padding: .85rem clamp(.25rem, 1.6vw, 1.25rem) 0;
  font-size: 1.05rem;
  opacity: 0;
  transition: opacity .12s linear;
}
.full { display: inline-flex; align-items: center; min-height: 44px; margin-block: -.6rem; font-weight: 700; }
.full::after { content: ""; position: absolute; inset: 0; cursor: zoom-in; }

#view-home:checked ~ .stage .view-home,
#view-guests:checked ~ .stage .view-guests,
#view-volunteer:checked ~ .stage .view-volunteer { z-index: 1; visibility: visible; transition: none; }
#view-home:checked ~ .stage .view-home :is(.view-wipe, picture),
#view-guests:checked ~ .stage .view-guests :is(.view-wipe, picture),
#view-volunteer:checked ~ .stage .view-volunteer :is(.view-wipe, picture) { transform: none; transition: transform .62s var(--sweep); }
#view-home:checked ~ .stage .view-home figcaption,
#view-guests:checked ~ .stage .view-guests figcaption,
#view-volunteer:checked ~ .stage .view-volunteer figcaption { opacity: 1; transition: opacity .24s linear .3s; }

.work-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-top: clamp(2rem, 3.5vw, 3.25rem); }
.work-end p { max-width: 38em; font-size: 1.05rem; }
.work .btn::before { background: var(--paper); }
.work .btn:hover { color: var(--ink); }

/* Rate sheet */
.pricing { padding-block: clamp(4.5rem, 9vw, 9rem); }
.pricing-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 12px solid var(--ink); position: relative; }
.pricing-head::after { content: ""; position: absolute; inset: auto 0 -30px; height: 18px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 22px); }
.pricing-head p { max-width: 20em; font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 700; line-height: 1.25; }
.rates { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rates th, .rates td { padding: clamp(1.5rem, 2.8vw, 2.5rem) clamp(1rem, 3vw, 3rem) clamp(1.5rem, 2.8vw, 2.5rem) 0; text-align: left; vertical-align: top; }
.rates thead th { width: 30%; padding-block: 2.5rem .7rem; border-bottom: 1px solid var(--ink); font-size: 1.2rem; line-height: 1.1; }
.rates thead th:nth-child(2) { width: 25%; }
.rates thead th:last-child { width: 45%; }
.rates tbody tr { border-bottom: 3px solid var(--ink); }
.rates tbody th { font-size: clamp(2rem, 3.1vw, 3.25rem); line-height: .98; }
.rates td:last-child { padding-right: 0; }
@media (hover: hover) and (min-width: 761px) {
  .rates tbody tr { position: relative; isolation: isolate; transition: color .14s linear .08s; }
  .rates tbody th::before { /* ink plate wipes across the whole row */
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 -1.25rem;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .36s var(--sweep);
  }
  .rates tbody tr:hover { color: var(--paper); }
  .rates tbody tr:hover th::before { transform: none; }
  .rates tbody tr:hover .mini { animation: gauge-sweep .75s var(--snap); }
}
@keyframes gauge-sweep { from { --level: 0; } }
.mini { --level: var(--to); display: block; width: clamp(72px, 6vw, 92px); height: auto; margin-bottom: .7rem; color: currentColor; fill: currentColor; transition: --level 1s var(--snap); }
.rates tbody tr:nth-child(2) .mini { transition-delay: .12s; }
.rates tbody tr:nth-child(3) .mini { transition-delay: .24s; }
.rates.is-waiting .mini { --level: 0; }
.mini-track { fill: none; stroke: currentColor; stroke-width: 2.5; }
.mini-arc { fill: none; stroke: var(--green); stroke-width: 9; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--level)); }
.mini-needle { transform: rotate(calc((var(--level) * 220 - 110) * 1deg)); }
.rates td strong { display: block; margin-bottom: .3rem; font-size: 1.2em; line-height: 1.2; }
.price { font-size: clamp(3rem, 5vw, 5.25rem); line-height: .95; white-space: nowrap; }
.price small { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1.05rem; font-weight: 400; }
.upkeep {
  display: grid;
  grid-template-columns: 30% 25% minmax(0, 1fr);
  align-items: center;
  margin: clamp(1.75rem, 3vw, 2.5rem) calc(50% - 50vw) clamp(2rem, 4vw, 3rem);
  padding: 1.25rem calc(50vw - 50%);
  background: var(--ink);
  color: var(--paper);
}
.upkeep h3 { font-size: clamp(1.8rem, 2.6vw, 2.75rem); padding-right: 1rem; }
.upkeep .price { font-size: clamp(2.4rem, 3.4vw, 3.5rem); }

/* Closing section */
.contact { position: relative; overflow: hidden; color: var(--paper); background: radial-gradient(circle at 0 100%, rgb(0 179 0 / .26), transparent 46%), var(--ink); }
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem clamp(2.5rem, 6vw, 7rem);
  align-items: start;
  padding-block: clamp(5rem, 8vw, 8rem);
}
.contact h2 { font-size: clamp(4rem, 7.7vw, 8.5rem); }
.contact-copy > p { max-width: 26em; margin-top: clamp(1.25rem, 2vw, 2rem); font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.35; }

/* The dial rises from the lower left, its needle aimed at the form's button */
.contact-dial { position: absolute; left: -42vw; bottom: -38vw; width: 72vw; max-width: none; height: auto; color: rgb(246 242 231 / .62); pointer-events: none; }
.contact-turn { transform: rotate(49deg); }
.end-reading.is-waiting { --dial: -120; }
.end-reading.is-playing { animation: dial-settle 1.3s both; }

.project-form { box-shadow: 0 0 70px rgb(0 179 0 / .2); display: grid; gap: 1.05rem; padding: clamp(1.25rem, 2.6vw, 2.5rem); background: var(--paper); color: var(--ink); border-top: 10px solid var(--green); }
.project-form :focus-visible { outline-color: var(--ink); }
.project-form h3 { font-size: clamp(2.2rem, 3.2vw, 3.25rem); }
.field { display: grid; gap: .3rem; min-width: 0; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field label { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: .65rem .75rem; border: 2px solid var(--ink); border-radius: 0; background: #fffdf7; color: var(--ink); font: inherit; transition: box-shadow .18s var(--snap), transform .18s var(--snap); }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 4px var(--green); transform: translateY(-1px); }
.field textarea { display: block; resize: vertical; }
.field input:user-invalid, .field textarea:user-invalid { box-shadow: inset 6px 0 0 var(--ink); }
.hint { margin-top: .05rem; font-size: .98rem; line-height: 1.35; }
.trap { position: absolute; left: -200vw; }
.form-notice { padding: .7rem .9rem; border: 3px dashed var(--ink); font-size: 1rem; line-height: 1.35; }
.project-form button { width: 100%; border: 0; cursor: pointer; }
.project-form button[disabled] { cursor: progress; opacity: .85; }
.project-form button[disabled] span { display: inline-flex; align-items: center; gap: .55rem; }
.project-form button[disabled] span::before { /* logo rotor as the sending indicator */
  content: "";
  width: 1.35em;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url("assets/chronoworks-rotor.svg") center / contain no-repeat;
  mask: url("assets/chronoworks-rotor.svg") center / contain no-repeat;
  transform-origin: 47.93% 45.63%;
  animation: spin .9s linear infinite;
}
.form-status { padding: .8rem 1rem; font-weight: 700; line-height: 1.35; background: var(--ink); color: var(--paper); }
.form-status.is-sent { background: var(--green); color: var(--ink); }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: clamp(2rem, 5vw, 3.25rem) var(--gutter) 2.75rem; }
  h1 { font-size: min(14vw, 7.25rem); }
  .hero-copy p { font-size: 1.2rem; max-width: 30em; }
  .hero-graphic { padding: clamp(1rem, 4vw, 2.5rem) 0; }
  .dial { width: min(104%, 680px); max-width: none; }
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 5rem; }
  .work-head { grid-template-columns: minmax(0, 1fr); }
  .about h1 { font-size: min(24vw, 10rem); }
  .about-top, .about-points { grid-template-columns: minmax(0, 1fr); }
  .about-plate { justify-self: center; width: min(82%, 420px); }
  .work-head h1 { font-size: min(14vw, 7.25rem); }
  .client-index h1 { font-size: min(24vw, 10rem); }
  .contact-dial { left: auto; right: -58vw; width: 130vw; bottom: -46vw; }
  .contact-turn { transform: rotate(-66deg); }
  .contact-inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 76vw; }
  .contact h2 { font-size: min(14vw, 7.25rem); }
  .rates thead th { width: 24%; }
  .rates thead th:nth-child(2) { width: 31%; }
  .upkeep { grid-template-columns: 24% 31% minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .view-frame { aspect-ratio: 780 / 720; }
}
@media (max-width: 760px) {
  :root { --header: 60px; }
  .brand { width: 48px; }
  .site-header ul { gap: 0; }
  .site-header li a { padding-inline: .2rem; font-size: clamp(.94rem, 4.6vw, 1.3rem); }
  .btn { width: 100%; }
  .field-pair { grid-template-columns: minmax(0, 1fr); }
  .work-end .btn { order: -1; }
  .rotor-page::after { right: -32vw; bottom: -18vw; width: 118vw; }
  .project-page::after { top: -24vw; right: -34vw; bottom: auto; width: 96vw; }
  .about::after { left: -46vw; right: auto; bottom: -22vw; width: 118vw; }
  .upkeep::after { right: -8vw; width: 170px; margin-top: -85px; }
  .about-actions .btn { width: 100%; }
  .client-list a { grid-template-columns: minmax(0, 1fr); }
  .client-list h2 { font-size: min(14vw, 4.5rem); }
  .client-meta { text-align: left; }
  .track { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; padding: 0 0 0 3.25rem; }
  .track::before { inset: 0 auto 0 0; width: 26px; height: auto; border-top: 0; border-left: 5px solid var(--ink); background: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 22px); }
  .track::after { inset: 0 auto 0 0; width: 9px; height: auto; transform-origin: top; }
  .track.is-waiting::after { transform: scaleY(0); }
  .track li::before { left: -1.9rem; top: 0; width: 28px; height: 28px; }
  .rates tbody tr { position: relative; }
  .mini { position: absolute; right: 0; top: 1.5rem; width: 66px; margin: 0; }
  .view-tabs { max-width: none; margin-inline: .35rem; }
  .view-tabs label { font-size: clamp(.98rem, 4.6vw, 1.5rem); white-space: nowrap; }
  .view figcaption { flex-direction: column; padding-inline: .35rem; }
  .full { margin-block: 0; }
  .rates, .rates tbody, .rates tr, .rates th, .rates td { display: block; }
  .rates thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rates tbody tr { padding-block: 1.6rem; }
  .rates tbody th, .rates td { padding: 0; }
  .rates tbody th { font-size: 2.35rem; }
  .rates .price { margin-block: .55rem .75rem; font-size: 3.6rem; }
  .upkeep { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding-block: 1.25rem; }
  .upkeep p:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
