/* Foreglow: the hour before sunrise. Tokens, type, layout, components. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #08090b;
  --ink: #15171b;
  --paper: #efe9dd;
  --glow: #e39a52;
  --ember: #b8642c;
  --p84: rgba(239, 233, 221, 0.84);
  --p78: rgba(239, 233, 221, 0.78);
  --p74: rgba(239, 233, 221, 0.74);
  --line: rgba(239, 233, 221, 0.16);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --g: clamp(16px, 4.2vw, 72px);
  --gap: 24px;
  --bar: 76px;
  --hz: 62svh;               /* the horizon at rest; main.js sets the exact pixel value */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
  accent-color: var(--glow);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: rgba(239, 233, 221, 0.28) var(--night); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 17px/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, canvas { display: block; }
a { color: inherit; }
::selection { background: rgba(227, 154, 82, 0.42); color: var(--paper); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The dawn: one fixed canvas behind everything (sky, ground, sun, the lit g) */
.dawn, .dawn-still {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}
.dawn-still { display: none; background: var(--night) center / cover no-repeat; }
.no-gl .dawn { display: none; }
.no-gl .dawn-still { display: block; }

.skip {
  position: fixed; left: var(--g); top: 12px; z-index: 30;
  padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-weight: 500; text-decoration: none; transform: translateY(-160%); transition: transform 0.2s var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* Top bar: transparent over the first screen at rest; once the page moves, content fades under an edge effect */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--bar);
  display: flex; align-items: center; gap: 34px;
  padding: 0 var(--g);
  padding-top: env(safe-area-inset-top);
}
.bar::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 9, 11, 0.82), rgba(8, 9, 11, 0.5) 62%, rgba(8, 9, 11, 0));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.is-scrolled .bar::before { opacity: 1; }
.brand { margin-right: auto; display: block; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; gap: 34px; }
.nav a {
  color: var(--p84); text-decoration: none; font-size: 15px; letter-spacing: 0.005em;
  padding: 12px 0; transition: color 0.15s;
}
.nav a:hover { color: var(--paper); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font: 500 16px/1 var(--sans); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  transition: transform 0.1s, background-color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.975); }
/* Glass: for controls only (the bar and its buttons), its lower edge lit by the horizon */
.btn--glass {
  color: var(--paper);
  background: linear-gradient(to bottom, rgba(239, 233, 221, 0.24), rgba(239, 233, 221, 0.1));
  border: 1px solid rgba(239, 233, 221, 0.26);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(227, 154, 82, 0.55), 0 6px 24px rgba(0, 0, 0, 0.25);
}
.btn--glass:hover { background: linear-gradient(to bottom, rgba(239, 233, 221, 0.3), rgba(239, 233, 221, 0.14)); border-color: rgba(239, 233, 221, 0.36); }
.btn--small { min-height: 40px; padding: 0 20px; font-size: 15px; }
.link {
  font: 500 16px/1.2 var(--sans); color: var(--paper);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: rgba(239, 233, 221, 0.5);
  display: inline-block; padding: 12px 0;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.link:hover { text-decoration-color: var(--glow); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .btn--glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: #2a2c31; }
  .bar::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--night); -webkit-mask-image: none; mask-image: none; }
}

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 280; letter-spacing: -0.018em; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.55; color: var(--p84); max-width: 30em; }

main { position: relative; z-index: 1; }

/* 1. First screen: the headline stands on the horizon, the g beside it */
.hero { position: relative; height: 100svh; min-height: 600px; }
.hero__title {
  position: absolute; left: var(--g); top: var(--h1-top, calc(var(--hz) - 1.9em));
  font-size: clamp(52px, 6.3vw, 96px); line-height: 0.98;
}
.baseline { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero__under { position: absolute; left: var(--g); top: calc(var(--hz) + 38px); max-width: 540px; }
.actions { display: flex; align-items: center; gap: 28px; margin-top: 30px; }

.g-handle {
  position: fixed; z-index: 2; left: 0; top: 0; width: 0; height: 0;
  cursor: grab; touch-action: pan-y; border-radius: 40% / 30%;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.g-handle.is-dragging { cursor: grabbing; }
.g-handle[hidden] { display: none; }
.g-hint {
  position: fixed; z-index: 2; left: 0; top: 0; width: 160px; margin-left: -80px;
  text-align: center; font-size: 13px; color: var(--p78); pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.g-hint.is-off { opacity: 0; }

/* 2. Work: each project is a lit window that plays while you scroll, then makes room for its words */
.work { position: relative; margin-top: 30svh; }
.case { position: relative; height: 280svh; }
.case + .case { margin-top: 12svh; }
.case__stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-content: center; padding: var(--bar) var(--g) 0;
}
.case__win {
  grid-column: 5 / 13; grid-row: 1; align-self: start;
  position: relative; display: block; aspect-ratio: 16 / 10; max-height: calc(100svh - var(--bar) - 96px);
  justify-self: end; width: 100%;
  border-radius: 2px; overflow: hidden; background: #050608;
  box-shadow: 0 0 140px rgba(226, 190, 150, 0.1);
  transition: transform 0.6s var(--ease-io), box-shadow 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}
.js .case:not(.is-settled) .case__win { transform: translateX(var(--play-dx, 0px)); }
/* the window is a link to the live demo: it brightens when pointed at, or when its button is */
.case__win:hover, .case:has(.case__cta:hover) .case__win { box-shadow: 0 0 170px rgba(226, 190, 150, 0.17); filter: brightness(1.06); }
.case__win:focus-visible { outline-offset: 6px; }
.case__win::after {
  content: ""; position: absolute; inset: 0; background: #050608; opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.js .case:not(.is-lit) .case__win::after { opacity: 0.62; }   /* scripts light the window as it arrives */
.case__canvas, .case__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__canvas { z-index: 1; opacity: 0; }
.case__still { z-index: 0; }
/* without scripts the window shows its last frame (the noscript still) and the words are simply there */

/* the words stand the window's full height: the label on its top edge, the button on its bottom edge */
.case__copy {
  grid-column: 1 / 5; grid-row: 1; align-self: stretch;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: opacity 0.4s var(--ease-out) 0.25s, visibility 0s;
}
.js .case:not(.is-settled) .case__copy { opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s; }
.meta { font-size: 14px; color: var(--p78); letter-spacing: 0.005em; }
.case__copy .meta { line-height: 1; margin-top: -2px; }
.case__copy h2 { font-size: clamp(34px, 3.15vw, 48px); line-height: 1.04; margin: 18px 0 20px; }
.case__copy .body { font-size: 17px; line-height: 1.6; color: var(--p84); max-width: 30em; }
.case__cta { margin-top: auto; }

/* 3. What we build, 4. How it works, 5. Before you book a call: a screen each, words on the dawn */
.sec { position: relative; min-height: 100svh; padding: calc(var(--bar) + 64px) var(--g) 88px; }
.sec__title { font-size: clamp(40px, 3.95vw, 58px); line-height: 1.02; }
.sec h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.012em; }

/* the offers: a short list, not cards (name and time, then one line) */
.offers { display: grid; gap: 40px; margin-top: 58px; max-width: 560px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 8px; align-items: baseline; }
.offer h3 { font-size: 42px; line-height: 1.05; }
.offer__time { font: 400 14px/1 var(--mono); color: var(--paper); }
.offer p:last-child { grid-column: 1 / -1; font-size: 17px; line-height: 1.5; color: var(--p84); }

/* the four steps, in order, side by side */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 120px; }
.step__n { display: block; font: 300 22px/1 var(--serif); color: var(--p74); }
.step h3 { font-size: 36px; line-height: 1.1; margin: 12px 0; }
.step p { font-size: 17px; line-height: 1.5; color: var(--p84); max-width: 15em; }

/* questions: the browser's own open and close (keyboard and screen readers included) */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-content: start; }
.faq .sec__title { grid-column: 1 / 5; }
.faq__list { grid-column: 6 / 13; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 18px 0; font: 300 24px/1.25 var(--serif); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--p78); transition: transform 0.25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--p84); max-width: 40em; }

/* 6. Contact: the sun rises and the ground turns to daybreak paper. The sky canvas draws the paper; without
   it (no WebGL, no scripts) the section has its own paper. */
.contact { position: relative; min-height: 100svh; padding-top: var(--hz-contact, 20svh); display: flex; flex-direction: column; }
.contact__paper {
  flex: 1; color: var(--ink); background: var(--paper); padding: 34px var(--g) 24px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--gap);
}
.js:not(.no-gl) .contact__paper, .js:not(.no-gl) .foot { background: transparent; }
.contact__head { grid-column: 1 / 7; grid-row: 1; }
.contact__more { grid-column: 1 / 7; grid-row: 2; }
.contact h2 { font-size: clamp(48px, 5.2vw, 76px); line-height: 1; letter-spacing: -0.02em; }
.contact .lede { color: rgba(21, 23, 27, 0.8); margin-top: 22px; max-width: 31em; }
.oncall { margin-top: 26px; display: grid; gap: 8px; font-size: 16px; color: rgba(21, 23, 27, 0.84); }
.oncall li { display: flex; align-items: baseline; gap: 12px; }
.oncall li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); transform: translateY(-2px); }
.founder { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.founder { gap: 18px; }
.founder img { width: 88px; height: 88px; border-radius: 50%; flex: none; }
.founder p { font-size: 15px; line-height: 1.5; color: rgba(21, 23, 27, 0.8); }
.founder b { display: block; font-weight: 500; color: var(--ink); }
.mail { margin-top: 24px; font-size: 15px; color: rgba(21, 23, 27, 0.72); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail a { color: var(--ink); text-decoration-color: rgba(184, 100, 44, 0.85); text-underline-offset: 5px; }
.mail button {
  font: 500 13px/1 var(--sans); color: var(--ink); background: none; cursor: pointer;
  border: 1px solid rgba(21, 23, 27, 0.32); border-radius: 2px; padding: 8px 10px; min-height: 32px;
}
.cal { grid-column: 7 / 13; grid-row: 1 / span 2; }
.cal iframe { display: block; width: 100%; height: 560px; border: 1px solid rgba(21, 23, 27, 0.12); background: #f8f6f1; }
.cal__alt { margin-top: 10px; font-size: 13px; color: rgba(21, 23, 27, 0.7); }
.cal__alt a { color: var(--ink); text-underline-offset: 4px; }
.contact :focus-visible, .foot :focus-visible { outline-color: var(--ember); }

/* Footer: the wordmark, large and drawn in outline (as on Solenne), then the small print */
.foot { position: relative; z-index: 1; padding: 10svh var(--g) env(safe-area-inset-bottom); background: var(--paper); color: rgba(21, 23, 27, 0.7); font-size: 13px; }
.foot__mark { display: block; width: 100%; height: auto; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin-top: 6svh; padding: 10px 0 18px; border-top: 1px solid rgba(21, 23, 27, 0.14); }
.foot__row p { margin-right: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 26px; }
.foot a, .foot__btn { color: inherit; text-underline-offset: 4px; padding: 12px 0; }
.foot__btn { font: inherit; background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(21, 23, 27, 0.35); }

/* the top bar over daybreak paper (the footer): ink instead of light */
.brand__ink { display: none; }
.is-paper-bar .brand img { display: none; }
.is-paper-bar .brand .brand__ink { display: block; }
.is-paper-bar .bar::before { background: linear-gradient(to bottom, rgba(239, 233, 221, 0.94), rgba(239, 233, 221, 0.6) 62%, rgba(239, 233, 221, 0)); }
.is-paper-bar .nav a { color: rgba(21, 23, 27, 0.78); }
.is-paper-bar .nav a:hover { color: var(--ink); }
.is-paper-bar .bar .btn--glass { color: var(--ink); background: rgba(21, 23, 27, 0.05); border-color: rgba(21, 23, 27, 0.28); box-shadow: inset 0 -1px 0 rgba(184, 100, 44, 0.55); }

/* Cookie choice (js/site.js): small, bottom left; Accept and Decline look and weigh the same */
.consent {
  position: fixed; z-index: 40; left: var(--g); bottom: calc(18px + env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 2 * var(--g)));
  padding: 18px 18px 16px; border-radius: 14px; background: rgba(13, 14, 18, 0.95); color: var(--paper);
  border: 1px solid rgba(239, 233, 221, 0.14); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45); font-size: 14px; line-height: 1.5;
}
.consent__title { font: 500 15px/1.3 var(--sans); margin-bottom: 6px; }
.consent p { color: var(--p84); }
.consent a { color: var(--paper); text-underline-offset: 3px; }
.consent__choose { display: grid; gap: 10px; margin-top: 14px; }
.consent [hidden] { display: none; }
.consent__choose label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.consent__choose input { width: 18px; height: 18px; margin: 0; }
.consent__actions { display: flex; gap: 8px; margin-top: 16px; }
.consent button {
  flex: 1; min-height: 42px; border-radius: 999px; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--paper);
  background: rgba(239, 233, 221, 0.1); border: 1px solid rgba(239, 233, 221, 0.3);
}
.consent button:hover { background: rgba(239, 233, 221, 0.18); }

/* Policy pages: plain reading pages under the night sky */
.legal-page .bar::before { opacity: 1; }
.legal { max-width: 46em; padding: calc(var(--bar) + 72px) var(--g) 12svh; }
.legal h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; }
.legal__date { margin-top: 12px; font-size: 14px; color: var(--p78); }
.legal .lead { margin-top: 28px; font-size: 19px; line-height: 1.55; }
.legal h2 { margin-top: 44px; font: 300 28px/1.15 var(--serif); letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--p84); max-width: 40em; }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 12px; padding-left: 1.2em; list-style: disc; display: grid; gap: 8px; }
.legal b, .legal th { color: var(--paper); font-weight: 500; }
.legal a { color: var(--paper); text-decoration-color: rgba(227, 154, 82, 0.7); text-underline-offset: 4px; }
.legal .scroll { overflow-x: auto; margin-top: 16px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); color: var(--p84); }
.legal .btn { margin-top: 20px; }

/* 404: the horizon, the words standing on it, and the way back */
body.nf { min-height: 100svh; background: linear-gradient(to bottom, #0b0d1a 0%, #23284a 40%, #5d4a63 53%, #b67d5c 61.6%, var(--night) 62%) no-repeat; }
body.nf main { position: static; }   /* the words are placed against the screen, not the empty main */
.nf__brand { position: absolute; left: var(--g); top: 22px; }
.nf__brand img { width: 132px; height: auto; }
.nf h1 { position: absolute; left: var(--g); right: var(--g); bottom: 38svh; font-size: clamp(42px, 6vw, 88px); line-height: 1; transform: translateY(0.2em); }
.nf__under { position: absolute; left: var(--g); right: var(--g); top: calc(62svh + 34px); }
.nf__under p { color: var(--p84); max-width: 32em; }

/* Phones and narrow portrait screens: words above and below the g; windows above their words */
@media (max-width: 759px), (max-aspect-ratio: 9/10) {
  :root { --bar: 62px; --hz: 52svh; }
  .bar { gap: 0; }
  .brand img { width: 112px; }
  .nav { display: none; }
  .btn--small { min-height: 36px; padding: 0 16px; font-size: 14px; }
  /* phones: all the words above the g, so scrolling only ever moves them apart */
  .hero { padding: calc(var(--bar) + 22px) var(--g) 0; }
  .hero__title { position: static; font-size: clamp(40px, 13.3vw, 64px); line-height: 1; }
  .hero__under { position: static; margin-top: 18px; max-width: 34em; }
  .lede { font-size: 16.5px; }
  .actions { gap: 22px; margin-top: 22px; }
  .g-hint { display: none; }

  .case { height: 250svh; }
  .case__stage { grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: calc(var(--bar) + 12px); row-gap: 20px; }
  .case__win {
    grid-column: 1; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--bar) - 250px); justify-self: center;
  }
  .js .case:not(.is-settled) .case__win { transform: translateY(var(--play-dy, 0px)); }
  .case__copy { grid-column: 1; grid-row: 2; align-self: start; }
  .case__copy .meta { margin-top: 0; }
  .case__copy h2 { font-size: 30px; margin: 10px 0 10px; }
  .case__copy .body { font-size: 15px; line-height: 1.55; }
  .case__cta { margin-top: 16px; }
  .meta { font-size: 13px; }

  .sec { padding: calc(var(--bar) + 34px) var(--g) 64px; }
  .sec__title { font-size: clamp(34px, 10.2vw, 46px); }
  .offers { gap: 30px; margin-top: 34px; max-width: none; }
  .offer h3 { font-size: 30px; }
  .offer__time { font-size: 13px; }
  .offer p:last-child { font-size: 15.5px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 26px; margin-top: 34px; }
  .step__n { font-size: 17px; }
  .step h3 { font-size: 28px; margin: 4px 0 6px; }
  .step p { font-size: 15.5px; max-width: none; }
  .faq .sec__title, .faq__list { grid-column: 1 / -1; }
  .faq__list { margin-top: 28px; }
  .faq summary { font-size: 20px; padding: 16px 0; }
  .faq details p { font-size: 15px; }
  /* phones: the calendar fills the width between the heading and the details */
  .contact { padding-top: var(--hz-contact, 20svh); }
  .contact__paper { padding: 28px var(--g) 28px; grid-template-rows: none; }
  .contact__head, .cal, .contact__more { grid-column: 1 / -1; grid-row: auto; }
  .contact h2 { font-size: 40px; }
  .contact .lede { font-size: 16px; margin-top: 14px; }
  .cal { margin-top: 24px; }
  .cal iframe { height: 640px; }
  .contact__more { margin-top: 26px; }
  .foot__links { gap: 0 18px; }
  .consent { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .legal { padding-top: calc(var(--bar) + 40px); }
}

/* The cursor (js/cursor.js; laptops and desktops only): a point of light, and a ring that answers what is
   under it. The ring's position and its look live on separate elements, so pressing can scale the look. */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; transition: opacity 0.2s; }
.cursor.is-hidden { opacity: 0; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.cursor__halo {
  --s: 34px;
  position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s);
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(239, 233, 221, 0.42);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), left 0.3s var(--ease-out), top 0.3s var(--ease-out),
    background-color 0.3s, border-color 0.3s, transform 0.12s;
}
.cursor__dot::before {
  --d: 8px;
  content: ""; position: absolute; left: calc(var(--d) / -2); top: calc(var(--d) / -2); width: var(--d); height: var(--d);
  border-radius: 50%; background: #f6c27e; box-shadow: 0 0 12px 3px rgba(227, 154, 82, 0.5);
  transition: width 0.2s, height 0.2s, left 0.2s, top 0.2s, opacity 0.2s;
}
.cursor__label { font: 500 12px/1 var(--sans); letter-spacing: 0.02em; color: var(--paper); opacity: 0; transition: opacity 0.2s; }
.cursor[data-mode="link"] .cursor__halo { --s: 54px; background: rgba(239, 233, 221, 0.07); border-color: rgba(239, 233, 221, 0.62); }
.cursor[data-mode="link"] .cursor__dot::before { --d: 5px; }
.cursor[data-mode="drag"] .cursor__halo, .cursor[data-mode="open"] .cursor__halo {
  --s: 76px; background: rgba(8, 9, 11, 0.52); border-color: rgba(239, 233, 221, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cursor[data-mode="drag"] .cursor__label, .cursor[data-mode="open"] .cursor__label { opacity: 1; }
.cursor[data-mode="drag"] .cursor__dot::before, .cursor[data-mode="open"] .cursor__dot::before { opacity: 0; }
.cursor.is-down .cursor__halo { transform: scale(0.86); }
/* on daybreak paper (Contact) the light turns to ink */
.cursor.is-paper .cursor__halo { border-color: rgba(21, 23, 27, 0.42); }
.cursor.is-paper[data-mode="link"] .cursor__halo { background: rgba(21, 23, 27, 0.06); border-color: rgba(21, 23, 27, 0.6); }
.cursor.is-paper .cursor__dot::before { background: var(--ember); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .cursor__halo, .cursor__dot::before, .cursor__label { transition: none; }
  html { scroll-behavior: auto; }
  .case__win, .case__copy, .case__win::after, .g-hint, .bar::before { transition: none !important; }
}
