/* ==================================================================
   VeyoraStudio — site.css
   One design system for every page. Sections switch "surface"
   (graphite, void, light, paper, accent) and every component reads the
   surface tokens, so a card or a button looks right wherever it lands.

   Type is Overused Grotesk (SIL OFL, licence in assets/fonts/), set at
   one weight with tight tracking. Headings are written as two clipped
   sentences: the second one drops to --ink-soft.
   ================================================================== */

@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --font: "Overused Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --brand-ink: #111111;
  --brand-ink-soft: #686868;
  --brand-paper: #f5f5f5;
  --brand-white: #ffffff;
  --brand-void: #141414;
  --brand-graphite: #6a6a6a;
  --brand-graphite-panel: #3f3f3f;
  --brand-accent: #0022ff;
  --brand-accent-deep: #0019c2;
  --brand-accent-soft: #5a6eff;
  --dot-accent: #ff6b00;
  --brand-live: #4ade80;
  --brand-error: #e91923;
  --brand-error-soft: #fedfe0;

  /* read by hero-particles.js for any canvas without its own --dot-color */
  --color-accent: var(--dot-accent);

  --gutter: clamp(1.5rem, 1.0628rem + 1.7937vw, 3rem);
  --space-3xs: calc(var(--gutter) / 6);
  --space-2xs: calc(var(--gutter) / 4);
  --space-xs: calc(var(--gutter) / 3);
  --space-sm: calc(var(--gutter) / 2);
  --space-md: var(--gutter);
  --space-lg: clamp(2.25rem, 1.7399rem + 2.0927vw, 4rem);
  --space-xl: clamp(3rem, 2.417rem + 2.3916vw, 5rem);
  --space-2xl: clamp(4rem, 3.1256rem + 3.5874vw, 7rem);
  --space-3xl: clamp(5rem, 3.8341rem + 4.7833vw, 9rem);

  --tracking-copy: -0.02em;
  --tracking-heading: -0.05em;
  --text-mega: clamp(3.5rem, 1.6rem + 5.8vw, 7.5rem);
  --text-display: clamp(3rem, 1.5rem + 3.3vw, 5.0625rem);
  --text-narrative: clamp(1.75rem, 1.4rem + 1.1vw, 2.5rem);
  --text-title: clamp(1.5rem, 1.35rem + 0.55vw, 1.875rem);
  --text-heading: 1.25rem;
  --text-body: 1rem;
  --text-button: 1.0625rem;
  --text-caption: 0.75rem;

  --radius-card: var(--gutter);
  --radius-well: calc(var(--radius-card) - var(--space-xs));
  --radius-media: 0.75rem;
  --radius-pill: 9999px;

  --container: 1720px;
  --header-control: 3rem;
  --header-h: calc(var(--gutter) * 2 + var(--header-control));

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-swift: cubic-bezier(.32, .72, 0, 1);
  --ease-button: cubic-bezier(.2, 1, .25, 1);
  --dur-fast: .14s;
  --dur-base: .24s;
  --dur-reveal: .9s;

  --grain: 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='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ── Surfaces ───────────────────────────────────────────────────── */
:root,
[data-surface="paper"] {
  --canvas: var(--brand-paper);
  --ink: var(--brand-ink);
  --ink-soft: var(--brand-ink-soft);
  --rule: #0000001f;
  --panel: var(--brand-white);
  --panel-ink: var(--brand-ink);
  --field: #1111110d;
  --btn-border: #0000002e;
  --ring: #11111142;
}
[data-surface="light"] {
  --canvas: var(--brand-white);
  --ink: var(--brand-ink);
  --ink-soft: var(--brand-ink-soft);
  --rule: #0000001f;
  --panel: var(--brand-paper);
  --panel-ink: var(--brand-ink);
  --field: #1111110d;
  --btn-border: #0000002e;
  --ring: #11111142;
}
[data-surface="graphite"] {
  color-scheme: dark;
  --canvas: var(--brand-graphite);
  --ink: var(--brand-white);
  --ink-soft: #e6e6e6;
  --rule: #ffffff40;
  --panel: var(--brand-graphite-panel);
  --panel-ink: var(--brand-white);
  --field: #ffffff1a;
  --btn-border: #ffffff59;
  --ring: #ffffff73;
}
[data-surface="void"] {
  color-scheme: dark;
  --canvas: var(--brand-void);
  --ink: var(--brand-white);
  --ink-soft: #a3a3a3;
  --rule: #ffffff2e;
  --panel: #1f1f1f;
  --panel-ink: var(--brand-white);
  --field: #ffffff0d;
  --btn-border: #ffffff47;
  --ring: #ffffff52;
}
[data-surface="accent"] {
  color-scheme: dark;
  --canvas: var(--brand-accent);
  --ink: var(--brand-white);
  --ink-soft: #ffffffc7;
  --rule: #ffffff40;
  --panel: var(--brand-white);
  --panel-ink: var(--brand-ink);
  --field: #ffffff24;
  --btn-border: #ffffff59;
  --ring: #ffffff8c;
}
/* Every surface carries a subtle architectural + crosshair field on a 28px
   typography grid, ink on light surfaces and white on dark ones. */
[data-surface] {
  --dots:
    conic-gradient(at 1px 5px, #0000 75%, var(--dot-field) 0) 14px 12px / 28px 28px,
    conic-gradient(at 5px 1px, #0000 75%, var(--dot-field) 0) 12px 14px / 28px 28px;
  background: var(--dots), var(--canvas);
  color: var(--ink);
}
:root, [data-surface="paper"], [data-surface="light"] { --dot-field: rgb(17 17 17 / .12); }
[data-surface="graphite"] { --dot-field: rgb(255 255 255 / .1); }
[data-surface="void"] { --dot-field: rgb(255 255 255 / .07); }
[data-surface="accent"] { --dot-field: rgb(255 255 255 / .14); }

/* ── Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: var(--tracking-copy);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on;
  overflow-x: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
button { cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 500; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); }
::selection { background: var(--brand-accent); color: var(--brand-white); }

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
[data-surface="accent"] :focus-visible { outline-color: var(--brand-white); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: var(--space-sm); left: var(--space-sm);
  z-index: 200;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--brand-accent);
  color: var(--brand-white);
  transform: translateY(-200%);
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ── Type scale ─────────────────────────────────────────────────── */
.t-mega, .t-display, .t-narrative, .t-title, .t-heading {
  letter-spacing: var(--tracking-heading);
  line-height: 1;
  font-weight: 500;
}
.t-mega { font-size: var(--text-mega); line-height: .92; }
.t-display { font-size: var(--text-display); line-height: .95; }
.t-narrative { font-size: var(--text-narrative); }
.t-title { font-size: var(--text-title); line-height: 1.02; }
.t-heading { font-size: var(--text-heading); line-height: 1.1; }
.t-body { font-size: var(--text-body); }
.t-caption { font-size: var(--text-caption); line-height: 1.25; }
.soft { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* small label above a heading: "● Work" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--text-caption);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: .4375rem; height: .4375rem;
  border-radius: 50%;
  background: var(--brand-accent);
}
[data-surface="accent"] .eyebrow::before { background: var(--brand-white); }

/* "01 / 03" */
.counter {
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.counter b { color: var(--ink); font-weight: 500; }

/* ── Layout ─────────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid-page {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  column-gap: var(--gutter);
}
@media (min-width: 48rem) { .grid-page { --cols: 8; } }
@media (min-width: 64rem) { .grid-page { --cols: 12; } }

.section {
  position: relative;
  overflow: clip;
  padding-block: var(--space-2xl);
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.section__head .t-display { max-width: 14ch; }
.section__intro { display: grid; gap: var(--space-sm); }
.section__aside {
  max-width: 26rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 160px;
  opacity: var(--grain-opacity, .09);
  mix-blend-mode: overlay;
  z-index: 0;
}
[data-surface="void"] .grain { --grain-opacity: .07; mix-blend-mode: normal; }

/* the "* * *" break */
.asterism {
  display: flex;
  justify-content: center;
  gap: 1.25em;
  color: var(--ink-soft);
  font-size: var(--text-heading);
  letter-spacing: 0;
  user-select: none;
}

/* ── Buttons ────────────────────────────────────────────────────────
   The disc at the right end IS the hover fill, clipped to a circle.
   On hover the clip grows past the button and takes the colours with it.
   Markup:
     <a class="btn" data-variant="primary">
       <span class="btn__copy"><span class="btn__label">…</span><span class="btn__caption">…</span></span>
       <span class="btn__reveal" aria-hidden="true">(same copy)</span>
       <span class="btn__arrow" aria-hidden="true"><svg/></span>
     </a>
   ──────────────────────────────────────────────────────────────── */
.btn {
  --h: 3.25rem;
  --inset: 3px;
  --disc: calc(var(--h) - var(--inset) * 2);
  --base: var(--dot-accent);
  --copy: var(--brand-white);
  --fill: var(--brand-white);
  --fill-copy: var(--dot-accent);
  --stroke: 0px;
  --border: transparent;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: var(--h);
  padding: .5rem calc(var(--disc) + var(--inset) + 1rem) .5rem 1.375rem;
  border-radius: var(--radius-pill);
  background: var(--base);
  color: var(--copy);
  font-size: var(--text-button);
  line-height: 1.15;
  white-space: nowrap;
  overflow: clip;
  transition: scale .14s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--stroke) var(--border);
  pointer-events: none;
  z-index: 3;
}
.btn:active { scale: .97; transition-duration: .1s; }
.btn[data-variant="secondary"] {
  --base: transparent;
  --copy: var(--ink);
  --fill: var(--ink);
  --fill-copy: var(--canvas);
  --stroke: 1px;
  --border: var(--btn-border);
}
.btn[data-variant="ink"] {
  --base: var(--ink);
  --copy: var(--canvas);
  --fill: var(--dot-accent);
  --fill-copy: var(--brand-white);
}
/* grey like the small plan's tile, with a black disc and white arrow */
.btn[data-variant="grey"] {
  --base: var(--brand-graphite);
  --copy: var(--brand-white);
  --fill: var(--brand-ink);
  --fill-copy: var(--brand-white);
}
[data-surface="accent"] .btn[data-variant="primary"],
.btn[data-variant="white"] {
  --base: var(--brand-white);
  --copy: var(--dot-accent);
  --fill: var(--brand-ink);
  --fill-copy: var(--brand-white);
}
.btn--block { width: 100%; }
.btn--compact { --h: 2.75rem; font-size: var(--text-body); }

.btn__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .125rem;
  text-align: left;
}
.btn__caption {
  font-size: var(--text-caption);
  opacity: .78;
}
.btn__reveal {
  position: absolute;
  inset: var(--inset);
  z-index: 2;
  display: flex;
  align-items: center;
  padding-left: calc(1.375rem - var(--inset));
  border-radius: inherit;
  background: var(--fill);
  color: var(--fill-copy);
  /* at rest the fill is clipped down to the disc at the right end; on hover
     the clip's left edge runs out to 0 and the disc becomes the button */
  clip-path: inset(0 0 0 calc(100% - var(--disc)) round calc(var(--disc) / 2));
  transition: clip-path .42s var(--ease-button);
  pointer-events: none;
}
.btn__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: var(--inset);
  width: var(--disc);
  height: var(--disc);
  display: grid;
  place-items: center;
  translate: 0 -50%;
  color: var(--fill-copy);
  transition: color .3s var(--ease-out);
}
.btn__arrow svg {
  width: 1rem; height: 1rem;
  transition: translate .45s var(--ease-button);
}
@media (hover: hover) {
  .btn:hover .btn__reveal { clip-path: inset(0 0 0 0 round calc(var(--disc) / 2)); }
  .btn:hover .btn__arrow svg { animation: arrow-swap .55s var(--ease-button); }
}
.btn:focus-visible .btn__reveal,
.btn:active .btn__reveal { clip-path: inset(0 0 0 0 round calc(var(--disc) / 2)); transition-duration: .2s; }
/* the arrow leaves to the right and a fresh one slides in from the left */
@keyframes arrow-swap {
  0% { translate: 0 0; opacity: 1; }
  45% { translate: 130% 0; opacity: 0; }
  46% { translate: -130% 0; opacity: 0; }
  100% { translate: 0 0; opacity: 1; }
}
.btn-pair {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* plain text link with an arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: .25rem;
  transition: border-color var(--dur-base) var(--ease-out), gap var(--dur-base) var(--ease-out);
}
.link-arrow:hover { border-color: var(--ink); gap: .75rem; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  height: var(--header-control);
  padding: .3125rem 1rem .3125rem .3125rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--brand-void) 62%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  color: var(--brand-white);
}
.brand img {
  width: calc(var(--header-control) - .625rem);
  height: calc(var(--header-control) - .625rem);
  border-radius: 50%;
  object-fit: cover;
}
.brand__word {
  font-size: var(--text-body);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .3125rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--brand-void) 62%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  color: var(--brand-white);
}
.header-control {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: calc(var(--header-control) - .625rem);
  padding: 0 .875rem;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.header-control svg { width: 1.125rem; height: 1.125rem; flex: none; }
.header-control:hover { background: #ffffff1f; }
.header-control--cta { background: var(--dot-accent); }
.header-control--cta:hover { background: #d95600; }
.header-control--icon { padding: 0; width: calc(var(--header-control) - .625rem); justify-content: center; }
@media (max-width: 47.99rem) {
  .header-control__label--desktop { display: none; }
  .header-control--hide-sm { display: none; }
  .brand__word { display: none; }
  .brand { padding-right: .3125rem; }
}

/* sound bars — an equalizer: frozen at uneven heights while the music is
   off (or not playing yet), each bar bouncing to its own beat while it is
   really playing (.is-sounding, set by sound-toggle.js from the audio) */
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 1.125rem;
  height: .875rem;
}
.sound-bars i {
  flex: 1;
  height: var(--rest);
  border-radius: 1px;
  background: currentColor;
  transition: height .3s var(--ease-out);
}
.sound-bars i:nth-child(1) { --rest: 45%; --beat: .82s; }
.sound-bars i:nth-child(2) { --rest: 85%; --beat: 1.07s; }
.sound-bars i:nth-child(3) { --rest: 60%; --beat: .69s; }
.sound-bars i:nth-child(4) { --rest: 30%; --beat: .94s; }
.is-sounding .sound-bars i { animation: eq var(--beat) ease-in-out infinite alternate; }
.is-sounding .sound-bars i:nth-child(2) { animation-delay: -.4s; }
.is-sounding .sound-bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq {
  0% { height: 20%; }
  35% { height: 90%; }
  60% { height: 45%; }
  100% { height: 100%; }
}

/* ── Menu dialog ────────────────────────────────────────────────── */
.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: var(--gutter);
  background: transparent;
  color: var(--brand-white);
  overflow: hidden;
}
.menu::backdrop {
  background: #0000;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background .4s var(--ease-out), backdrop-filter .4s var(--ease-out), display .4s allow-discrete, overlay .4s allow-discrete;
}
.menu[open]::backdrop {
  background: #0000004d;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@starting-style { .menu[open]::backdrop { background: #0000; backdrop-filter: blur(0); } }

.menu__panel {
  margin-left: auto;
  width: min(100%, 30rem);
  max-height: 100%;
  overflow-y: auto;
  padding: var(--space-sm);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--brand-void) 88%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  transform-origin: top right;
  animation: panel-in .5s var(--ease-swift) both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-.75rem) scale(.96); }
}
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .5rem 1rem 1rem;
}
.menu__title { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0; color: #a3a3a3; }
.menu__close {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: #ffffff1a;
  transition: background var(--dur-fast) var(--ease-out), rotate .4s var(--ease-out);
}
.menu__close:hover { background: #ffffff33; rotate: 90deg; }
.menu__close svg { width: 1rem; height: 1rem; }
.menu__links { display: grid; }
.menu__links a {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: baseline;
  padding: .875rem 1rem;
  border-radius: var(--radius-well);
  font-size: var(--text-title);
  letter-spacing: var(--tracking-heading);
  line-height: 1;
  opacity: 0;
  animation: link-in .6s var(--ease-out) forwards;
  animation-delay: calc(80ms + var(--i, 0) * 45ms);
  transition: background var(--dur-fast) var(--ease-out);
}
@keyframes link-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
.menu__links { position: relative; isolation: isolate; }
.menu__highlight {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0;
  border-radius: var(--radius-well);
  background: #ffffff17;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: transform .24s cubic-bezier(.165,.84,.44,1), height .24s cubic-bezier(.165,.84,.44,1), opacity .12s ease-out;
}
.menu__links a > span:not(.menu__index) { transition: translate .3s var(--ease-out); }
.menu__links a:hover > span:not(.menu__index),
.menu__links a:focus-visible > span:not(.menu__index) { translate: .375rem 0; }
.menu__links a:focus-visible { outline-offset: -2px; }
.menu__index {
  font-size: var(--text-caption);
  letter-spacing: 0;
  color: #a3a3a3;
  font-variant-numeric: tabular-nums;
  align-self: center;
}
.menu__links a[aria-current="page"]::after,
.menu__links a.is-here::after {
  content: "";
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--brand-accent);
  align-self: center;
}
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding: var(--space-sm) 1rem .5rem;
  border-top: 1px solid #ffffff1f;
  font-size: .875rem;
  color: #a3a3a3;
}
.menu__foot a:hover { color: var(--brand-white); }
.menu__social { display: flex; gap: 1rem; }

/* ── Status dot ─────────────────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.status::before {
  content: "";
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--brand-live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-live) 60%, transparent);
  animation: breathe 3.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-live) 55%, transparent); }
  50% { box-shadow: 0 0 0 .375rem color-mix(in srgb, var(--brand-live) 0%, transparent); }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: clip;
  padding-top: var(--header-h);
  /* plain white with the dot field (from its surface); the dotted seam
     below carries it into the next section */
}
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  --dot-color: var(--dot-accent);
}
/* on a tablet the mark sits behind the copy, so it steps back; on a phone
   there is no mark at all (hero-particles.js skips a hidden canvas) */
@media (min-width: 48rem) and (max-width: 63.99rem) { .hero__particles { opacity: .35; } }
@media (max-width: 47.99rem) { .hero__particles { display: none; } }
.hero__grid {
  position: relative;
  z-index: 1;
  flex: 1;
  grid-template-rows: auto 1fr auto;
  row-gap: var(--space-md);
  padding-block: var(--space-sm) var(--space-md);
}
.hero__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .875rem;
  color: var(--ink-soft);
}
/* on a phone the three facts stack, one per line */
@media (max-width: 47.99rem) { .hero__meta { flex-direction: column; gap: .375rem; } }
.hero__title {
  /* one block with the buttons below it, anchored at the foot of the hero,
     big enough to hold its own against the mark and the wordmark */
  grid-column: 1 / -1;
  align-self: end;
  /* sized by the screen's width AND height, so a short laptop screen gets a
     smaller line and the hero still fits in one view */
  font-size: clamp(1.875rem, min(1.2rem + 1.8vw, 4.8svh), 3.25rem);
  line-height: 1.02;
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}
@media (min-width: 48rem) { .hero__title { grid-column: 1 / span 6; } }
/* from tablet up the meta line, the tagline and the buttons stack as one
   group at the foot of the hero, the empty first row taking up the rest; on
   a phone the meta line stays at the top */
@media (min-width: 48rem) {
  .hero__grid { grid-template-rows: 1fr auto auto; }
  .hero__meta { align-self: end; margin-bottom: calc(var(--space-sm) - var(--space-md)); }
}
.hero__offer {
  grid-column: 1 / -1;
  align-self: end;
  display: grid;
  gap: var(--space-md);
}

.wordmark {
  position: relative;
  z-index: 1;
  container-type: inline-size;
  padding-bottom: var(--space-sm);
}
.wordmark__inner {
  overflow: clip;
  padding-block: var(--space-sm);
}
.wordmark__word {
  display: flex;
  justify-content: space-between;
  /* "VeyoraStudio" spans edge to edge via justify-content: space-between;
     keep the divisor slightly above its ~5.4em glyph sum so it never clips */
  font-size: calc((100cqw - 2 * var(--gutter)) / 5.65);
  line-height: .74;
  letter-spacing: var(--tracking-heading);
  font-weight: 500;
  white-space: nowrap;
  padding-top: .04em;
}
.wordmark__inner { display: grid; }
.wordmark__inner > .wordmark__word { grid-area: 1 / 1; }
.wordmark__word span {
  display: inline-block;
  will-change: transform;
}
/* The negative tracking pulls each letter's box in from its right edge.
   Between letters the next one covers that, but the last letter's box ends
   at the row's edge and the row clips, so the right of the "O" was cut off.
   Give the last letter its overhang back as padding. */
.wordmark__word span:last-child { padding-right: calc(-1 * var(--tracking-heading)); }
.wordmark__word[data-turn="out"] span {
  transform: translateY(calc(var(--t, 0) * -150%));
  animation: rise 1.6s var(--ease-out) both;
  animation-delay: calc(var(--intro-delay, 0ms) + 300ms + var(--i, 0) * 75ms);
}
.wordmark__word[data-turn="in"] span { transform: translateY(calc((1 - var(--t, 0)) * 150%)); }
@keyframes rise { from { translate: 0 150%; } }

/* ── Bento (approach) ───────────────────────────────────────────── */
.bento {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 48rem) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento__lead { grid-column: span 2; grid-row: span 2; }
  .bento__wide { grid-column: span 2; }
}
.card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
  padding: var(--space-md);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--panel-ink);
}
.card p { color: var(--ink-soft); text-wrap: pretty; }
.card__num {
  font-size: var(--text-caption);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.card__art {
  margin-top: auto;
  width: 3rem; height: 3rem;
  color: var(--brand-accent-soft);
}
.bento__lead { justify-content: space-between; gap: var(--space-lg); min-height: 22rem; }
.bento__lead .t-narrative { max-width: 18ch; }
.bento__lead p { max-width: 34rem; }
.bento__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }

.avatars { display: flex; }
.avatar {
  --size: 4rem;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  overflow: clip;
  box-shadow: 0 0 0 2px var(--panel);
  background: #3a3a3a;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--logo { background: var(--brand-accent); margin-left: calc(var(--size) * -.22); }

.bento__full { grid-column: 1 / -1; }
.bento__full .section__head { margin: 0; }

/* tool marquee */
.marquee {
  display: flex;
  overflow: clip;
  margin-inline: calc(var(--space-md) * -1);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  gap: .5rem;
  padding-right: .5rem;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 2.25rem;
  padding: 0 .875rem;
  border-radius: var(--radius-pill);
  background: var(--field);
  border: 1px solid var(--rule);
  white-space: nowrap;
  font-size: .9375rem;
}

/* ── Process ────────────────────────────────────────────────────── */
.process {
  --progress: 0;
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 48rem) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .process { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.process__rail {
  grid-column: 1 / -1;
  position: relative;
  height: 1px;
  margin-bottom: var(--space-sm);
  background: var(--rule);
}
.process__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-accent);
  transform-origin: left;
  transform: scaleX(var(--progress));
}
@media (max-width: 79.99rem) { .process__rail { display: none; } }
.step { min-height: 20rem; }
.step__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: var(--text-caption);
  letter-spacing: 0;
}
.step__dot {
  width: .625rem; height: .625rem;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out);
}
.step.is-passed .step__dot { background: var(--brand-accent); border-color: var(--brand-accent); }
.step .t-title { margin-top: var(--space-lg); }
.pills { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: auto; }
.pill {
  padding: .375rem .75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  font-size: .8125rem;
  color: var(--ink-soft);
}
.step .link-arrow { font-size: .9375rem; }

/* ── Work ───────────────────────────────────────────────────────── */
.work-grid {
  display: grid;
  gap: var(--space-lg) var(--gutter);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 48rem) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work {
  display: grid;
  gap: var(--space-xs);
  align-content: start;
}
.work__media {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 10);
  border-radius: var(--radius-media);
  overflow: clip;
  background: var(--panel);
}
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.12;
  translate: 0 var(--py, 0%);
  transition: scale 1.1s var(--ease-out);
}
.work__go {
  position: absolute;
  right: var(--space-sm);
  bottom: var(--space-sm);
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--dot-accent);
  color: var(--brand-white);
  transform: scale(0) rotate(-45deg);
  transition: transform .5s var(--ease-button);
}
.work__go svg { width: 1.125rem; height: 1.125rem; }
@media (hover: hover) {
  .work:hover .work__media img { scale: 1.17; }
  .work:hover .work__go { transform: none; }
}
.work:focus-visible .work__go { transform: none; }
.work__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
}
.work__title { font-size: var(--text-heading); letter-spacing: var(--tracking-heading); }
.work__tag { color: var(--ink-soft); font-size: .875rem; white-space: nowrap; }

.work--slot .work__media {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  text-align: center;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.work--slot:hover .work__media { background: var(--panel); border-color: var(--brand-accent); }
.work__plus {
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--dot-accent);
  color: var(--brand-white);
  transition: rotate .5s var(--ease-button);
}
.work--slot:hover .work__plus { rotate: 90deg; }
.work__plus svg { width: 1.25rem; height: 1.25rem; }

/* ── Process dial ───────────────────────────────────────────────────
   Without JS: a heading and the steps as a list. With process-dial.js
   (.is-dial) the section is a tall scroll track with a pinned stage: the
   dial turns on the left, steps rise through the middle, dots reform into
   each step's icon on the right. */
.pdial { position: relative; }
.pdial__stage { position: relative; overflow: clip; padding-block: var(--space-2xl); }
.pdial__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 1.5rem;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 3;
}
.pdial__heading { font-size: var(--text-heading); letter-spacing: var(--tracking-heading); color: var(--ink-soft); }
.pdial__counter { margin-left: auto; display: none; }
.pdial__dial, .pdial__particles { display: none; }
.pdial__steps {
  display: grid;
  gap: var(--space-xl);
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
}
.pdial__step { display: grid; gap: var(--space-sm); align-content: start; max-width: 38rem; }
.pdial__step p { color: var(--ink-soft); max-width: 32rem; text-wrap: pretty; }
.pdial__step .pills { margin-top: .25rem; }
.pdial__step .link-arrow { justify-self: start; margin-top: .25rem; }
.pdial__label {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--brand-accent-soft);
}

.pdial.is-dial { height: 520svh; }
.is-dial .pdial__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
  /* the dot field rides on the pinned stage, so it holds still while the
     steps scroll through, instead of sliding past on the section behind */
  background: var(--dots), var(--canvas);
}
.is-dial .pdial__top {
  position: absolute;
  top: calc(var(--header-h) + var(--space-xs));
  left: 0; right: 0;
  margin: 0 auto;
}
.is-dial .pdial__counter { display: inline; }
.is-dial .pdial__steps {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  max-width: none;
  margin: 0;
  z-index: 2;
}
.is-dial .pdial__step {
  position: absolute;
  top: 50%;
  left: var(--steps-left, 27%);
  width: var(--steps-width, min(33rem, 32vw));
  will-change: transform, filter, opacity;
}
.is-dial .pdial__step .t-display { font-size: clamp(2.75rem, 1.4rem + 3.6vw, 5.5rem); }
.is-dial .pdial__particles {
  display: block;
  position: absolute;
  top: 0; right: 0;
  width: 56%;
  height: 100%;
  z-index: 1;
  --dot-color: var(--dot-accent);
}

/* the dial: a ring mostly off the left edge with the step numbers on it.
   The wheel turns by --step-angle per step (process-dial.js), so the
   active number always sits at 3 o'clock, level with the step. */
.is-dial .pdial__dial {
  --r: clamp(15rem, 26vw, 27rem);
  --cx: calc(var(--r) * -.42);
  --step-angle: 28deg;
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.pdial__ring {
  position: absolute;
  left: calc(var(--cx) - var(--r));
  top: 50%;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  margin-top: calc(var(--r) * -1);
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.pdial__wheel {
  position: absolute;
  left: var(--cx);
  top: 50%;
  width: 0;
  height: 0;
}
.pdial__num {
  position: absolute;
  left: 0; top: 0;
  transform-origin: 0 0;
  transform: rotate(calc(var(--i) * var(--step-angle))) translateX(var(--r));
}
.pdial__num > span {
  display: flex;
  align-items: center;
  gap: .875rem;
  transform: translate(-.3125rem, -50%);
  font-size: var(--text-title);
  letter-spacing: var(--tracking-heading);
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ink) 30%, transparent);
  white-space: nowrap;
  transition: color .4s var(--ease-out), font-size .4s var(--ease-out);
}
.pdial__num i {
  width: .625rem; height: .625rem;
  border-radius: 50%;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), scale .4s var(--ease-button);
}
.pdial__num.is-active > span { color: var(--ink); }
.pdial__num.is-active i { background: var(--dot-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot-accent) 30%, transparent); scale: 1.2; }

/* Narrower screens, like the old site: the dial is a wide arc across the
   top (its centre far above the screen), the active number at its lowest
   point and the next ones coming in from the right. --dial-dir flips the
   way process-dial.js turns the wheel. Below it the dots, then the step. */
@media (max-width: 63.99rem) {
  /* on the stage, so the dial and the dots below it both read it */
  .is-dial .pdial__stage { --arc-y: calc(var(--header-h) + 3.5rem); }
  .is-dial .pdial__dial {
    --r: 120vw;
    --step-angle: 17deg;
    --dial-dir: -1;
  }
  .is-dial .pdial__ring {
    left: calc(50% - var(--r));
    top: calc(var(--arc-y) - var(--r) * 2);
    margin-top: 0;
  }
  .is-dial .pdial__wheel { left: 50%; top: calc(var(--arc-y) - var(--r)); }
  .is-dial .pdial__num { transform: rotate(calc(90deg - var(--i) * var(--step-angle))) translateX(var(--r)); }
  /* upright again, dot on the ring and the number hanging below it */
  .is-dial .pdial__num > span {
    flex-direction: column;
    gap: .5rem;
    transform-origin: 0 0;
    transform: rotate(-90deg) translate(-50%, -.3125rem);
    font-size: var(--text-heading);
  }
  /* the arc does the labelling here */
  .is-dial .pdial__top {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .is-dial .pdial__particles { top: calc(var(--arc-y) + 3.5rem); width: 100%; height: 39%; }
  .is-dial .pdial__step { --steps-left: var(--gutter); --steps-width: calc(100% - var(--gutter) * 2); top: 79%; }
  .is-dial .pdial__step .t-display { font-size: clamp(2.5rem, 1.5rem + 5vw, 3.5rem); }
}

/* ── Work orbit ─────────────────────────────────────────────────────
   Without WebGL: the heading, then the grid. With it (.is-orbit, set by
   work-orbit.js) the section becomes a tall scroll track with a pinned
   stage, and scrolling through it turns the ring of screens. */
.work-orbit { position: relative; }
.work-orbit__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: var(--space-2xl) var(--space-lg);
  overflow: clip;
  outline: none;
  background:
    var(--dots),
    radial-gradient(70% 55% at 50% 45%, #ffffff 0%, transparent 70%),
    radial-gradient(120% 80% at 50% 110%, #d9d9d9 0%, transparent 60%),
    #e9e9e9;
}
.work-orbit__stage .grain { --grain-opacity: .22; mix-blend-mode: multiply; }
.work-orbit__top {
  position: absolute;
  top: calc(var(--header-h) + var(--space-xs));
  left: 0; right: 0;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}
.work-orbit__title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: clamp(3rem, 1rem + 7vw, 9rem);
  line-height: .9;
  max-width: 12ch;
}
.work-orbit__title > span { justify-content: center; }

/* Accent blobs drifting through the letters (port of the React
   GradientText). The colour layers are clipped to the glyphs, so the
   section background is never tinted. */
.gradient-text { display: inline-block; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .gradient-text {
    color: transparent;
    background-color: var(--brand-accent-deep);
    background-image:
      radial-gradient(closest-side, var(--brand-accent), transparent),
      radial-gradient(closest-side, color-mix(in srgb, var(--brand-accent-soft) 55%, var(--brand-white)), transparent),
      radial-gradient(closest-side, var(--brand-ink), transparent),
      radial-gradient(closest-side, var(--brand-accent-soft), transparent);
    background-repeat: no-repeat;
    background-size: 60% 160%, 45% 130%, 55% 150%, 50% 140%;
    background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-text-drift 10s ease-in-out infinite alternate;
  }
}
@keyframes gradient-text-drift {
  20%  { background-position: 60% 110%, 30% -10%, 110% 40%, -10% 70%;
         background-size: 75% 130%, 35% 170%, 45% 140%, 65% 160%; }
  40%  { background-position: 110% 20%, -10% 80%, 40% -10%, 70% 110%;
         background-size: 45% 180%, 60% 120%, 70% 170%, 40% 130%; }
  60%  { background-position: 30% 60%, 90% 110%, -10% 90%, 110% 10%;
         background-size: 80% 150%, 40% 150%, 50% 120%, 70% 180%; }
  80%  { background-position: -10% 10%, 110% 30%, 80% 110%, 20% -10%;
         background-size: 55% 170%, 65% 140%, 60% 160%, 45% 140%; }
  100% { background-position: 100% 100%, 0% 100%, 100% 0%, 0% 0%; }
}
.work-orbit__canvas,
.work-orbit__cursor,
.work-orbit__caption { display: none; }
.work-orbit__list { padding-block: var(--space-lg) var(--space-2xl); }
.work-orbit__counter { display: none; }

.work-orbit.is-orbit { height: 720svh; }
.is-orbit .work-orbit__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
}
.is-orbit .work-orbit__counter { display: inline; }
.is-orbit .work-orbit__canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: pan-y;
  cursor: grab;
  --dot-color: var(--dot-accent);
}
.is-orbit .is-dragging .work-orbit__canvas { cursor: grabbing; }
.is-orbit .is-pointing .work-orbit__canvas { cursor: none; }
.is-orbit .work-orbit__list { display: none; }

.is-orbit .work-orbit__caption {
  position: absolute;
  bottom: var(--space-md);
  left: 0; right: 0;
  margin-inline: auto;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  pointer-events: none;
}
.work-orbit__caption > * { pointer-events: auto; }
.is-orbit .work-orbit__caption,
.is-orbit .work-orbit__counter { transition: opacity .45s var(--ease-out), translate .45s var(--ease-out); }
.is-orbit.is-empty .work-orbit__caption { opacity: 0; translate: 0 .75rem; pointer-events: none; }
.is-orbit.is-empty .work-orbit__caption > * { pointer-events: none; }
.is-orbit.is-empty .work-orbit__counter { opacity: 0; }
.work-orbit__now { display: grid; gap: .25rem; }
.work-orbit__now .work__title { font-size: var(--text-title); }
.is-switch .work-orbit__now > span { animation: caption-in .6s var(--ease-out) both; }
.is-switch .work-orbit__now > span + span { animation-delay: .06s; }
.is-switch .work-orbit__counter b { display: inline-block; animation: caption-in .5s var(--ease-out) both; }
@keyframes caption-in { from { opacity: 0; transform: translateY(.6em); filter: blur(4px); } }
.work-orbit__nav { display: flex; align-items: center; gap: .5rem; }
.work-orbit__arrow {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-white);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), scale .14s var(--ease-out);
}
.work-orbit__arrow svg { width: 1rem; height: 1rem; }
.work-orbit__arrow:hover { background: var(--ink); color: var(--canvas); }
.work-orbit__arrow:active { scale: .92; }

/* the "View" pill that follows the pointer over a screen */
.is-orbit .work-orbit__cursor {
  display: block;
  position: absolute;
  top: 0; left: 0;
  z-index: 4;
  pointer-events: none;
}
.work-orbit__cursor > span {
  display: grid;
  place-items: center;
  width: 4.5rem; height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border-radius: 50%;
  background: var(--dot-accent);
  color: var(--brand-white);
  font-size: .9375rem;
  scale: 0;
  transition: scale .35s var(--ease-button);
}
.work-orbit__cursor.is-on > span { scale: 1; }
@media (hover: none) { .work-orbit__cursor { display: none !important; } }

/* ── Plans ──────────────────────────────────────────────────────── */
.plans {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 64rem) {
  /* the three cards share their rows (subgrid), so the coloured tiles are
     always the same height whatever is in them */
  /* rows: tile · description · checklist · button — every card uses the
     same four, so each part starts at the same height across the cards */
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; }
  .plans > .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--space-md); }
  .plans > .plan > .plan__tile { align-content: space-between; }
  .plans > .plan > .plan__body { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: var(--space-md); }
  .plans > .plan > .plan__body > .btn { align-self: end; }
}
.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xs);
  border-radius: var(--radius-card);
  background: var(--panel);
}
.plan__tile {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-md);
  border-radius: var(--radius-well);
  color: var(--brand-white);
  background:
    radial-gradient(90% 120% at 100% 0%, var(--t1) 0%, transparent 60%),
    radial-gradient(80% 100% at 0% 100%, var(--t4) 0%, transparent 70%),
    linear-gradient(160deg, var(--t3), var(--t2));
}
.plan__tile .grain { --grain-opacity: .12; }
.plan__tile > :not(.grain) { position: relative; z-index: 1; }
.plan--small .plan__tile { --t1: #828282; --t2: #545454; --t3: #767676; --t4: #4a4a4a; }
.plan--large .plan__tile { --t1: #6f80ff; --t2: #0019c2; --t3: #0022ff; --t4: #2f45ff; }
.plan--custom .plan__tile { --t1: #3c3c3c; --t2: #050505; --t3: #1c1c1c; --t4: #2a2a2a; }
.plan__name-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.plan__badge {
  padding: .3125rem .625rem;
  border-radius: var(--radius-pill);
  background: #ffffff2e;
  font-size: var(--text-caption);
  letter-spacing: 0;
}
.plan__price { display: grid; gap: .25rem; }
.plan__from { font-size: .875rem; opacity: .8; }
.plan__amount {
  display: flex;
  align-items: baseline;
  gap: .2em;
  font-size: var(--text-display);
  letter-spacing: var(--tracking-heading);
  line-height: .9;
}
.plan__unit { font-size: var(--text-heading); letter-spacing: var(--tracking-copy); }
.plan__amount--text {
  font-size: var(--text-narrative);
  line-height: 1;
}
.plan__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
  padding: 0 var(--space-sm) var(--space-sm);
}
.plan__desc { color: var(--ink-soft); text-wrap: pretty; }
.checklist { display: grid; gap: .875rem; }
.checklist li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: .5rem;
  align-items: start;
}
.checklist li::before {
  content: "";
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--brand-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.2l2 2L9 4'/%3E%3C/svg%3E") center / .75rem no-repeat;
  margin-top: -.0625rem;
}
/* each plan's checks take its tile's colour */
.plan--small .checklist li::before { background-color: var(--brand-graphite); }
.plan--custom .checklist li::before { background-color: var(--brand-ink); }
.plan .btn { margin-top: auto; }
.plans__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
}

/* ── Journal ────────────────────────────────────────────────────── */
.posts {
  display: grid;
  gap: var(--space-xs);
  grid-auto-flow: column;
  grid-auto-columns: minmax(17rem, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.posts::-webkit-scrollbar { display: none; }
@media (min-width: 64rem) {
  .posts { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
}
.post {
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  padding: var(--space-xs);
  border-radius: var(--radius-card);
  background: var(--panel);
  transition: transform .5s var(--ease-out);
}
.post__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-well);
  overflow: clip;
  background: var(--field);
}
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }

/* A journal cover: one word or number from the post, set in the logo's
   dots on the hero's graphite (hero-particles.js). The plain text is the
   no-JS version and steps aside once the dots are up. */
.dotcover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: clip;
  color: var(--brand-white);
  background:
    radial-gradient(120% 90% at 85% 10%, #828282 0%, transparent 60%),
    radial-gradient(90% 80% at 10% 100%, #4a4a4a 0%, transparent 65%),
    #545454;
  --dot-color: var(--dot-accent);
}
.dotcover__glyph {
  font-size: clamp(4.5rem, 3rem + 6vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  transition: opacity .5s var(--ease-out);
}
.dotcover.is-dotted .dotcover__glyph { opacity: 0; }
.dotcover__dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.dotcover__note {
  position: absolute;
  left: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 1;
  font-size: var(--text-caption);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ffffffb8;
}

/* Seam: where one surface gives way to the next, the one above breaks up
   into dots across the top of the one below (hero-particles.js). */
.seam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--seam-h);
  z-index: 1;
  pointer-events: none;
}
/* the seam gets its own room: the section starts that much lower, so the
   dots never run under its content */
:root { --seam-h: clamp(6rem, 18vh, 10rem); }
@media (max-width: 47.99rem) { :root { --seam-h: clamp(4rem, 10vh, 5.5rem); } }
.section[data-seam] { padding-top: calc(var(--space-2xl) + var(--seam-h)); }
/* the work section's pinned stage starts below the seam; the room above it
   is the stage's own base colour and grain, so the two meet without a line */
.work-orbit[data-seam] { padding-top: var(--seam-h); background-color: #e9e9e9; }
.work-orbit[data-seam]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--seam-h);
  background-image: var(--grain);
  background-size: 160px;
  opacity: .22;
  mix-blend-mode: multiply;
  pointer-events: none;
}
@media (hover: hover) {
  .post:hover .post__media img { transform: scale(1.05); }
}
.post__body { display: grid; gap: var(--space-xs); padding: var(--space-3xs) var(--space-2xs) var(--space-2xs); }
.post__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8125rem;
  color: var(--ink-soft);
}
.post__title { font-size: var(--text-heading); letter-spacing: var(--tracking-heading); line-height: 1.1; text-wrap: balance; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: var(--space-lg) var(--gutter);
}
@media (min-width: 64rem) {
  .faq { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .faq__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--space-sm)); align-self: start; }
  .faq__list { grid-column: 7 / -1; }
}
.faq__head { display: grid; gap: var(--space-md); }
.faq__group + .faq__group { margin-top: var(--space-lg); }
.faq__group-title {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink-soft);
  padding-bottom: var(--space-xs);
}
.qa { border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: 1.25rem 0;
  list-style: none;
  cursor: pointer;
  font-size: var(--text-heading);
  letter-spacing: var(--tracking-heading);
  line-height: 1.15;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon {
  position: relative;
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--panel);
  transition: background var(--dur-base) var(--ease-out), rotate .4s var(--ease-out);
}
.qa__icon::before, .qa__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: .75rem; height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
  border-radius: 1px;
}
.qa__icon::after { rotate: 90deg; transition: rotate .4s var(--ease-out); }
.qa[open] .qa__icon { background: var(--dot-accent); color: var(--brand-white); }
.qa[open] .qa__icon::after { rotate: 0deg; }
.qa summary:hover .qa__icon { background: var(--dot-accent); color: var(--brand-white); }
.qa__answer {
  max-width: 40rem;
  padding: 0 3rem 1.5rem 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.qa__answer strong { color: var(--ink); font-weight: 500; }
.qa::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete;
}
.qa[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ── Contact ────────────────────────────────────────────────────── */
.contact {
  display: grid;
  gap: var(--space-lg) var(--gutter);
}
@media (min-width: 64rem) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--space-sm)); align-self: start; }
  .contact__form { grid-column: 6 / -1; }
}
@media (min-width: 90rem) { .contact__form { grid-column: 7 / -1; } }
.contact__head { display: grid; gap: var(--space-md); align-content: start; }
.contact__facts { display: grid; gap: .5rem; color: var(--ink-soft); }
.contact__form {
  padding: var(--space-md);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.cform { display: grid; gap: var(--space-sm); }
.cform__row { display: grid; gap: var(--space-sm); }
@media (min-width: 40rem) { .cform__row { grid-template-columns: 1fr 1fr; } }
.cfield { display: grid; gap: .375rem; }
.cfield__label { font-size: .875rem; color: var(--ink-soft); }
.cfield input,
.cfield select,
.cfield textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: .875rem 1.125rem;
  border-radius: var(--radius-well);
  background: var(--canvas);
  border: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.cfield textarea { min-height: 8rem; resize: vertical; line-height: 1.4; }
.cfield input::placeholder,
.cfield textarea::placeholder { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.cfield input:hover,
.cfield select:hover,
.cfield textarea:hover { border-color: var(--rule); }
.cfield input:focus,
.cfield select:focus,
.cfield textarea:focus { outline: none; border-color: var(--brand-accent); background: var(--brand-white); }
.cfield__select { position: relative; display: block; }
.cfield__select select { appearance: none; padding-right: 2.75rem; cursor: pointer; }
.cfield__select::after {
  content: "";
  position: absolute;
  right: 1.125rem; top: 50%;
  width: .5rem; height: .5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  translate: 0 -75%;
  rotate: 45deg;
  pointer-events: none;
}
.cfield__error { font-size: .8125rem; color: var(--brand-error); min-height: 0; }
.cfield__error:empty { display: none; }
.cfield.is-invalid input,
.cfield.is-invalid textarea { border-color: var(--brand-error); background: var(--brand-error-soft); }

.cservice { border: 0; display: grid; gap: .625rem; }
.cservice__legend { font-size: .875rem; color: var(--ink-soft); padding: 0; margin-bottom: .625rem; }
.cservice__hint { opacity: .7; }
.cservice__grid { display: grid; gap: .5rem; }
@media (min-width: 40rem) { .cservice__grid { grid-template-columns: repeat(3, 1fr); } }
.cservice__card {
  position: relative;
  display: grid;
  gap: .25rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-well);
  background: var(--canvas);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.cservice__card:hover { border-color: var(--rule); }
.cservice__card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cservice__card:has(input:checked) { border-color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 6%, var(--brand-white)); }
.cservice__card:has(input:focus-visible) { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.cservice__card:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.cservice__card::after {
  content: "";
  position: absolute;
  top: 1rem; right: 1rem;
  width: 1.125rem; height: 1.125rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--brand-white);
}
.cservice__card:has(input:checked)::after {
  border-color: var(--brand-accent);
  background: var(--brand-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.2l2 2L9 4'/%3E%3C/svg%3E") center / .6875rem no-repeat;
}
.cservice__name { padding-right: 1.75rem; }
.cservice__desc { font-size: .8125rem; color: var(--ink-soft); }

.cform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xs);
}
/* ── Send button ──────────────────────────────────────────────────────
   idle → .is-sending → .is-sent → idle (or → .is-error, a shake). The labels
   share one grid cell and roll up through it; the disc swaps arrow →
   spinner → check. */
.cform__submit:disabled { cursor: progress; }
.cform__submit {
  overflow: visible;            /* so the success ring can pulse out past the edge */
  transition: background-color .6s var(--ease-out), scale .14s var(--ease-out);
}
.cform__labels { display: grid; overflow: clip; }
.cform__labels > * {
  grid-area: 1 / 1;
  transition: transform .6s var(--ease-out), opacity .45s var(--ease-out);
}
.cform__state { opacity: 0; transform: translateY(110%); }
.cform__submit.is-sending .cform__submit-label,
.cform__submit.is-sent .cform__submit-label { opacity: 0; transform: translateY(-110%); }
.cform__submit.is-sending .cform__state--sending { opacity: 1; transform: none; }
.cform__submit.is-sent .cform__state--sending { opacity: 0; transform: translateY(-110%); }
.cform__submit.is-sent .cform__state--sent { opacity: 1; transform: none; transition-delay: .1s; }
.cform__state--sending i { font-style: normal; animation: send-dot 1.2s ease-in-out infinite; }
.cform__state--sending i:nth-child(2) { animation-delay: .2s; }
.cform__state--sending i:nth-child(3) { animation-delay: .4s; }
@keyframes send-dot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* while it works, hovering does not wipe the button white */
.cform__submit:is(.is-sending, .is-sent) .btn__reveal {
  clip-path: inset(0 0 0 calc(100% - var(--disc)) round calc(var(--disc) / 2)) !important;
}
.cform__submit .btn__arrow { overflow: visible; }
.cform__icon {
  grid-area: 1 / 1;             /* stacked in the disc's centre */
  width: 1rem; height: 1rem;
  transition: transform .55s var(--ease-button), opacity .35s var(--ease-out);
}
/* the hover arrow-swap is for the idle arrow only */
.cform__submit .btn__arrow .cform__icon:not(.cform__icon--arrow),
.cform__submit:is(.is-sending, .is-sent) .btn__arrow .cform__icon--arrow { animation: none; }
/* the arrow takes off like a paper plane */
.cform__submit:is(.is-sending, .is-sent) .cform__icon--arrow {
  transform: translate(160%, -160%) rotate(-25deg) scale(.6);
  opacity: 0;
  transition-duration: .5s, .3s;
}
.cform__icon--spin { width: 1.25rem; height: 1.25rem; opacity: 0; transform: scale(.4); }
.cform__submit.is-sending .btn__arrow .cform__icon.cform__icon--spin {
  opacity: 1;
  transform: scale(1);
  transition-delay: .2s;
  animation: send-spin .8s linear infinite;
}
@keyframes send-spin { to { rotate: 360deg; } }
.cform__icon--check path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .5s var(--ease-out); }
.cform__icon--check { opacity: 0; }
.cform__submit.is-sent .cform__icon--check { opacity: 1; transition-delay: .15s; }
.cform__submit.is-sent .cform__icon--check path { stroke-dashoffset: 0; transition-delay: .3s; }

/* sent: the button settles into dark ink and a ring pulses off the disc */
.cform__submit.is-sent { --base: var(--brand-ink); --copy: var(--brand-white); }
.cform__submit .btn__arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot-accent) 55%, transparent);
  pointer-events: none;
}
.cform__submit.is-sent .btn__arrow::after { animation: send-ring 1s var(--ease-out) .25s; }
@keyframes send-ring {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot-accent) 55%, transparent); }
  to { box-shadow: 0 0 0 1.25rem color-mix(in srgb, var(--dot-accent) 0%, transparent); }
}
.cform__submit.is-error { animation: send-shake .45s var(--ease-out); }
@keyframes send-shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -6px 0; }
  40% { translate: 5px 0; }
  60% { translate: -3px 0; }
  80% { translate: 2px 0; }
}
.cform__status { font-size: .875rem; color: var(--ink-soft); }
.cform__status.is-success { color: #16803c; }
.cform__status.is-error { color: var(--brand-error); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { position: relative; overflow: clip; padding-top: var(--space-2xl); }
.footer__close {
  display: grid;
  gap: var(--space-md);
  padding-bottom: var(--space-2xl);
}
.footer__close .t-display { max-width: 16ch; }
.footer__grid {
  display: grid;
  gap: var(--space-lg) var(--gutter);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: var(--space-lg);
  border-top: 1px solid var(--rule);
}
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer__brand { grid-column: 1 / -1; display: grid; gap: var(--space-sm); align-content: start; }
@media (min-width: 64rem) { .footer__brand { grid-column: auto; } }
.footer__brand p { color: var(--ink-soft); max-width: 22rem; }
.footer__col { display: grid; gap: .625rem; align-content: start; }
.footer__heading {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-bottom: .375rem;
}
.footer__col a { position: relative; width: fit-content; transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--brand-accent); }
/* a line draws in under the link from the left, and leaves to the right */
.footer__col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.15em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.footer__col a:hover::after,
.footer__col a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.footer__col a .menu__index { margin-right: .5rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem var(--space-md);
  padding-block: var(--space-sm);
  border-top: 1px solid var(--rule);
  font-size: .8125rem;
  color: var(--ink-soft);
}
.footer__bottom a { text-decoration: underline; text-underline-offset: .2em; }
.footer__mark {
  position: relative;
  /* the same proportions as veyoura-wordmark.svg, so the dotted word is never cropped */
  aspect-ratio: 590 / 155;
  margin-top: var(--space-sm);
}
.footer__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --dot-color: var(--dot-accent);
}

/* ── Reveal on scroll ───────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* headline lines that slide up out of a mask */
.lines > span { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.lines > span > span { display: block; }
.js .lines[data-reveal] { opacity: 1; transform: none; }
.js .lines[data-reveal] > span > span {
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.js .lines[data-reveal] > span:nth-child(2) > span { transition-delay: 90ms; }
.js .lines[data-reveal] > span:nth-child(3) > span { transition-delay: 180ms; }
.js .lines[data-reveal].is-in > span > span { transform: none; }

/* hero entrance */
.hero [data-enter] { animation: enter 1s var(--ease-out) both; animation-delay: calc(150ms + var(--d, 0) * 90ms); }
@keyframes enter { from { opacity: 0; transform: translateY(1rem); } }

/* ==================================================================
   Micro-animations
   ================================================================== */

/* Header: on desktop the secondary controls are icon-only and their label
   slides out of the icon on hover or focus */
@media (min-width: 48rem) and (hover: hover) {
  .header-control:has(> .header-control__label--desktop) { gap: 0; }
  .header-control__label--desktop {
    display: inline-block;
    max-width: 0;
    overflow: clip;
    opacity: 0;
    transform: translateX(5px);
    transition: max-width .6s var(--ease-out), margin .6s var(--ease-out), opacity .45s ease-out, transform .6s cubic-bezier(.16, 1, .3, 1);
  }
  .header-control:is(:hover, :focus-visible) .header-control__label--desktop {
    max-width: 6rem;
    margin-left: .5rem;
    opacity: 1;
    transform: none;
    transition-delay: 0s, 0s, 80ms, 0s;
  }
}
.header-control, .brand { transition: background var(--dur-fast) var(--ease-out), scale .14s var(--ease-out); }
.header-control:active, .brand:active { scale: .95; }

/* Light sheen running across the hero's second sentence */
.sheen {
  /* soft grey copy with a dark glint passing through it (on the white hero) */
  background-color: #8c8c8c;
  background-image: linear-gradient(100deg, #8c8c8c 40%, #5a5a5a 46%, #111 50%, #5a5a5a 54%, #8c8c8c 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 3.8s linear infinite;
  animation-delay: calc(var(--intro-delay, 0ms) + 1.2s);
}
@keyframes sheen { 0%, 8% { background-position: 100% 0; } 72%, 100% { background-position: 0% 0; } }

/* First visit: four shutters part from the middle while the hero settles
   in from a zoom. index.html sets html[data-intro] before first paint;
   site.js removes it afterwards. The failsafe hides it whatever happens. */
.intro { display: none; }
html[data-intro] { --intro-delay: 1050ms; }
html[data-intro] .intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: block;
  pointer-events: none;
  contain: strict;
  animation: intro-failsafe 0s 4s forwards;
}
.intro__shutter {
  position: absolute;
  background: var(--brand-void);
  animation: var(--anim) 1s cubic-bezier(.76, 0, .24, 1) forwards;
  animation-delay: var(--at, .45s);
}
.intro__shutter[data-s="top"]    { inset: 0 0 50% 0; --anim: shut-up; }
.intro__shutter[data-s="bottom"] { inset: 50% 0 0 0; --anim: shut-down; }
.intro__shutter[data-s="left"]   { inset: 0 50% 0 0; --anim: shut-left; --at: .55s; }
.intro__shutter[data-s="right"]  { inset: 0 0 0 50%; --anim: shut-right; --at: .55s; }
@keyframes shut-up    { to { transform: translateY(-100%); } }
@keyframes shut-down  { to { transform: translateY(100%); } }
@keyframes shut-left  { to { transform: translateX(-100%); } }
@keyframes shut-right { to { transform: translateX(100%); } }
@keyframes intro-failsafe { to { visibility: hidden; } }

/* While the glass loader runs, the shutters and every hero animation wait
   on their first frame (a paused animation's delay does not count down
   either); site.js flips data-intro to "go" when the loader hands over. */
html[data-intro="loading"] { overflow: hidden; }
html[data-intro="loading"] :is(.intro, .intro *, .hero, .hero *) { animation-play-state: paused !important; }

/* Loading screen — the logo forms out of a drop of glass (glass-reveal.js
   draws it into a canvas in .loader__stage), then Veyoura / STUDIO slides out
   from behind the icon. First visit only. */
.loader { display: none; }
html[data-intro] .loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: block;
  background: var(--brand-void);
  overflow: hidden;
  transition: opacity .45s var(--ease-out);
}
.loader.is-leaving { opacity: 0; }
.loader__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* the plain icon, only when there is no WebGL2 for the glass reveal */
.loader__fallback { width: 260px; max-width: 57vw; height: auto; }
/* Veyoura / STUDIO stacked flush left, sized off the icon's tile (glass-reveal.js
   publishes half of it as --glass-icon-half). The lockup starts at the icon's
   right edge and clips there, so the words slide out from behind it. */
.loader__lockup {
  --tile: calc(var(--glass-icon-half, 90px) * 2);
  position: absolute;
  left: calc(50% + var(--glass-icon-half, 90px));
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  z-index: 1;
  overflow: hidden;
}
.loader__words {
  display: flex;
  flex-direction: column;
  padding-left: calc(var(--tile) * 0.2);
  color: var(--brand-white);
  font-size: calc(var(--tile) * 0.47);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transform: translateX(-100%);
}
/* (the logo's dots fly in on their own, out of the loader's icon) */
html[data-intro] .hero__grid { animation: intro-zoom 1.5s cubic-bezier(.76, 0, .24, 1) both; animation-delay: .35s; }
@keyframes intro-zoom { from { scale: 1.35; } }
html[data-intro] .hero [data-enter] { animation-delay: calc(var(--intro-delay) + var(--d, 0) * 90ms); }

/* Rolling digits ("€1,500" counts up like an odometer). site.js builds the
   columns; the original text stays in the DOM for screen readers. */
.ticker { position: relative; display: inline-flex; white-space: pre; }
.ticker__src { position: absolute; opacity: 0; pointer-events: none; }
/* every character, static or reel, gets the same 1.1em box, so they all
   share one baseline (a clipped inline-block would otherwise sit on its
   bottom edge) */
.ticker__vis { display: inline-flex; align-items: flex-start; }
.ticker__vis > span { display: block; height: 1em; line-height: 1em; }
.ticker__col {
  overflow: clip;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}
.ticker__reel {
  display: flex;
  flex-direction: column;
  line-height: 1em;
  transform: translateY(0);
  transition: transform 1.6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.ticker__reel > span { height: 1em; display: block; text-align: center; }
.ticker.is-rolled .ticker__reel { transform: translateY(calc(var(--n) * -1em)); }

/* Words fill from soft to ink as the paragraph scrolls past */
.statement {
  max-width: 34ch;
  font-size: var(--text-narrative);
  letter-spacing: var(--tracking-heading);
  line-height: 1.12;
  text-wrap: pretty;
}
.statement .w {
  color: color-mix(in srgb, var(--ink) 28%, transparent);
  transition: color .35s var(--ease-out);
}
.statement .w.is-lit { color: var(--ink); }
.statement .w--accent.is-lit { color: var(--brand-accent-soft); }

/* Checklist ticks pop in one after another once the plan is in view */
.plan.is-in .checklist li::before { animation: tick-pop .55s var(--ease-button) both; }
.plan.is-in .checklist li:nth-child(1)::before { animation-delay: .35s; }
.plan.is-in .checklist li:nth-child(2)::before { animation-delay: .42s; }
.plan.is-in .checklist li:nth-child(3)::before { animation-delay: .49s; }
.plan.is-in .checklist li:nth-child(4)::before { animation-delay: .56s; }
.plan.is-in .checklist li:nth-child(5)::before { animation-delay: .63s; }
@keyframes tick-pop { from { scale: 0; rotate: -45deg; } }

/* Bento cards: the line art draws itself in */
.card__art path, .card__art rect, .card__art circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 0;
}
.js .card[data-reveal]:not(.is-in) .card__art :is(path, rect, circle) { stroke-dashoffset: 160; }
.js .card[data-reveal] .card__art :is(path, rect, circle) { transition: stroke-dashoffset 1.6s var(--ease-out) .35s; }

/* Eyebrow dot pings once when its section comes in */
.section__intro:has(.lines.is-in) .eyebrow::before { animation: ping 1.2s var(--ease-out) .2s both; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-accent) 70%, transparent); }
  100% { box-shadow: 0 0 0 .625rem color-mix(in srgb, var(--brand-accent) 0%, transparent); }
}

/* Page transitions between pages of the site (Chrome, Edge, Safari 18.2+):
   the old page shrinks back and slides up, the new one rises from below
   and grows into place. Browsers without support just navigate. */
@view-transition { navigation: auto; }
::view-transition { background: var(--brand-void); }
::view-transition-old(root) { animation: page-leave .9s both; transform-origin: 50% 0; }
::view-transition-new(root) { animation: page-arrive 1.2s both; transform-origin: 50% 0; }
@keyframes page-leave {
  0% { transform: none; border-radius: 0; animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
  50% { transform: scale(.85); border-radius: 1.5rem; animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
  100% { transform: translateY(-110vh) scale(.85); border-radius: 1.5rem; }
}
@keyframes page-arrive {
  0%, 33% { transform: translateY(110vh) scale(.85); border-radius: 1.5rem; animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
  66% { transform: scale(.85); border-radius: 1.5rem; animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
  100% { transform: none; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .lines[data-reveal] > span > span { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  html[data-intro] .intro { display: none; }
  .sheen { animation: none; background-position: 50% 0; }
  .gradient-text { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
