/* ator /dev — one screen, one journey */

:root {
  --bg: #0a0a0a;
  --fg: #f3ece6;
  --green: #4b5653;        /* Kia Adventurous Green, A2G */
  --green-tint: #7e8c88;   /* same hue, lifted for text on black */
  --muted: var(--green-tint);
  --line: rgba(126, 140, 136, 0.3);
  --orange: #cf5d2b;
  --orange-soft: rgba(207, 93, 43, 0.55);
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* how much of the stage the browser's collapsing bar covers right now (large viewport minus the visible one).
     bottom-anchored controls lift by this, so they ride above the bar while the stage itself never resizes */
  --bar: 0px;
}
@supports (height: 100dvh) and (height: 100lvh) { :root { --bar: calc(100lvh - 100dvh); } }

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

::selection { background: var(--orange); color: #0a0a0a; }

/* Scroll runway. Length controls how long the journey feels. */
.track { height: 1620vh; pointer-events: none; }
@media (max-width: 720px) { .track { height: 1900vh; } }   /* a longer runway on phones: a flick should not cover a whole scene */

/* The one 100vh section */
.stage {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;   /* the large viewport: fixed, so the bars collapsing and expanding never resize the stage or shift the scene */
  overflow: hidden;
  isolation: isolate;
}

#sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* film grain is drawn inside the canvas (see drawGrain in main.js) */

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(4, 7, 6, 0.65) 100%);
}

/* Persistent chrome */
.brand {
  position: absolute;
  /* the same box and offset as the menu button, which mirrors the sound button's distance from the bottom */
  top: calc(var(--gutter) * 0.55);
  height: 38px;
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 0;
  /* the same tone as the sound and menu lines: quiet at rest, lifted on hover (the canvas tracks it in main.js) */
  color: rgba(243, 236, 230, 0.5);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.4s var(--ease);
  z-index: 5;
}
.brand.is-on { opacity: 1; transform: none; }
.brand:focus-visible { color: rgba(243, 236, 230, 0.85); outline: none; }
@media (hover: hover) { .brand:hover { color: rgba(243, 236, 230, 0.85); } }
/* the mark is drawn on a small canvas from the artwork's own strands; on hover they unravel into the word (main.js) */
.brand__mark { display: block; }
.brand em { font-style: normal; color: var(--orange); font-weight: 300; }

/* Progress rail: track, chapter ticks, a comet head with tail and a ring that turns as you scroll */
.rail {
  --p: 0;      /* progress 0..1 */
  --v: 0;      /* scroll speed 0..1 */
  --rc: 207, 93, 43;      /* scene colour, rgb triplet */
  --rc2: 126, 140, 136;   /* secondary */
  position: absolute;
  right: calc(var(--gutter) / 2 - 7px);
  top: calc(50% - var(--bar) / 2);
  transform: translateY(-50%);
  height: 38vh;
  width: 15px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.rail.is-on { opacity: 1; }
/* the whole rail scrubs: drag anywhere along it */
.rail { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 3l5 5H9zM14 25l-5-5h10z' fill='%23f3ece6'/%3E%3Ccircle cx='14' cy='14' r='2.2' fill='%23cf5d2b'/%3E%3C/svg%3E") 14 14, ns-resize; touch-action: none; }
.rail::before { content: ''; position: absolute; inset: -14px -16px; }
body.is-scrubbing, body.is-scrubbing * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 3l5 5H9zM14 25l-5-5h10z' fill='%23f3ece6'/%3E%3Ccircle cx='14' cy='14' r='2.2' fill='%23cf5d2b'/%3E%3C/svg%3E") 14 14, ns-resize !important; }
/* the snap: the head pops and the mark it landed on flashes */
.rail.is-snap .rail__dot { animation: snapPop 0.55s var(--ease); }
@keyframes snapPop { 0% { transform: scale(1); } 28% { transform: scale(2.4, 2.4); } 100% { transform: scale(1); } }
.rail__tick.is-snap-hit { background: #fff; }
.rail__tick.is-snap-hit b { color: #fff; }
.rail__track,
.rail__fill {
  position: absolute;
  left: 7px;
  top: 0;
  width: 1px;
}
.rail__track { height: 100%; background: rgba(126, 140, 136, 0.28); }
.rail__fill {
  height: calc(var(--p) * 100%);
  background: linear-gradient(to bottom, rgba(var(--rc), 0.2), rgb(var(--rc)));
  box-shadow: 0 0 6px rgba(var(--rc), 0.4);
  transition: background 0.6s linear, box-shadow 0.6s linear;
}
.rail__tick {
  position: absolute;
  left: 4px;
  top: calc(var(--at) * 100%);
  width: 7px;
  height: 1px;
  background: rgba(126, 140, 136, 0.55);
  transform: translateY(-0.5px);
  transition: background 0.4s var(--ease), width 0.4s var(--ease), left 0.4s var(--ease);
}
.rail__tick--end { width: 9px; left: 3px; }
/* the words within a scene get a shorter mark of their own */
.rail__tick--word { width: 4px; left: 5.5px; }
.rail__tick--word.is-now { width: 6px; left: 4.5px; }
/* a generous hit area, and the stop's name once you have been there */
.rail__tick { cursor: pointer; }
.rail__tick::before { content: ''; position: absolute; inset: -4px -6px; }
.rail__tick b {
  position: absolute;
  right: 16px; top: 50%;
  transform: translate(8px, -50%);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(243, 236, 230, 0.4);
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.4s var(--ease);
  pointer-events: none;
  padding: 4px 0;
}
.rail__tick.is-past b, .rail__tick.is-now b { opacity: 1; transform: translate(0, -50%); pointer-events: auto; cursor: pointer; }
.rail__tick.is-now b { color: rgb(var(--rc)); }
.rail__tick:hover b { color: var(--fg); }
.rail__tick.is-past { background: rgb(var(--rc)); }
.rail__tick.is-now { background: var(--fg); width: 11px; left: 2px; }
.rail__tick.is-now::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 1px solid rgba(243, 236, 230, 0.6);
  animation: tickpulse 2.2s var(--ease) infinite;
}
@keyframes breathe { 0%, 100% { filter: brightness(0.85); } 50% { filter: brightness(1.35); } }
@keyframes tickpulse {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.rail__tail {
  position: absolute;
  left: 7px;
  width: 1px;
  top: calc(var(--p) * 100%);
  height: calc(18px + var(--v) * 140px);
  transform: translateY(-100%);
  background: linear-gradient(to top, rgba(var(--rc), 0.95), rgba(var(--rc), 0));
  opacity: calc(0.35 + var(--v) * 0.65);
}
.rail__head {
  position: absolute;
  left: 50%;
  top: calc(var(--p) * 100%);
  width: 0; height: 0;
}
.rail__dot {
  position: absolute;
  left: -3px; top: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff6ee;
  box-shadow: 0 0 8px 2px rgba(var(--rc), 0.9), 0 0 24px 8px rgba(var(--rc), 0.4);
  transform: scale(calc(1 + var(--v) * 0.4), calc(1 + var(--v) * 2.2));
  animation: breathe 3.2s ease-in-out infinite;
}
.rail__ring {
  position: absolute;
  left: -9px; top: -9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: conic-gradient(from calc(var(--p) * 900deg), rgb(var(--rc)) 0 24%, transparent 24% 50%, rgba(var(--rc2), 0.9) 50% 62%, transparent 62% 100%);
  -webkit-mask: radial-gradient(circle, transparent 7px, #000 7.5px, #000 8.5px, transparent 9px);
  mask: radial-gradient(circle, transparent 7px, #000 7.5px, #000 8.5px, transparent 9px);
  opacity: calc(0.7 + var(--v) * 0.3);
}
@media (max-width: 720px) { .rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .rail__tick.is-now::after { animation: none; opacity: 0.5; transform: none; } }

/* Scenes */
.scene {
  position: absolute;
  inset: 0;
  padding: var(--gutter);
  padding-bottom: calc(var(--gutter) + var(--bar));
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  z-index: 2;
}
.scene.is-active { pointer-events: auto; }
.scene [data-stagger] > * { opacity: 0; will-change: opacity, transform; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
}
.eyebrow--top {
  position: absolute;
  top: calc(var(--gutter) + 3.2rem);
  left: var(--gutter);
  margin: 0;
}

.display {
  font-size: clamp(2.5rem, 6.6vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 13ch;
  text-wrap: balance;
}
.display--sm {
  font-size: clamp(1.9rem, 4.4vw, 4.2rem);
  max-width: 19ch;
  line-height: 1.04;
}
.display--xs {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  max-width: 16ch;
  line-height: 1.05;
}
.body {
  margin-top: 1.6rem;
  max-width: 44ch;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.5;
  color: var(--muted);
}

/* 03 · work list */
.work {
  list-style: none;
  display: grid;
  gap: 0.18em;
  font-size: clamp(1.9rem, 4.2vw, 3.9rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  width: max-content;     /* the list is as wide as its longest word, and every hover spans exactly that */
  max-width: 100%;
}
/* hover a service: the others step back, and its line appears as a caption centred at the foot of the stage */
.svc {
  all: unset;
  display: block;
  cursor: default;
  color: inherit;
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
}
.svc:focus-visible .svc__name { text-decoration: underline; text-decoration-thickness: 0.04em; text-underline-offset: 0.12em; }
.work.is-hovering li:not(.is-hot) .svc { opacity: 0.28; }
.work li.is-hot .svc { transform: translateX(0.04em); }
/* the detail text lives in the button for assistive tech; on screen it is shown in the caption below */
.svc__detail { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svc-caption {
  /* sits on the planet: main.js keeps left, top and width matched to the disc as it is drawn */
  position: absolute;
  left: 68%;
  top: 52%;
  width: min(90%, 36ch);
  transform: translate(-50%, calc(-50% + 14px));   /* the box is the sentence alone, so the sentence is what sits on the disc centre */
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.svc-caption::before {
  content: '';
  position: absolute;
  left: 50%; bottom: calc(100% + 2.35rem);
  width: 34px; height: 1px;
  transform: translateX(-50%) scaleX(0);
  background: rgb(232, 196, 168);
  transition: transform 0.6s var(--ease);
}
.svc-caption__name {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% + 0.8rem);
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgb(232, 196, 168);
}
.svc-caption__text {
  display: block;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.32;
  color: var(--fg);
  text-shadow: 0 0 28px rgba(232, 196, 168, 0.22);
  text-wrap: balance;
}
/* the line arrives a word at a time, each rising out of a soft blur */
.svc-caption__text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(5px);
}
.svc-caption.is-on { opacity: 1; transform: translate(-50%, -50%); }
.svc-caption.is-on::before { transform: translateX(-50%) scaleX(1); }
.svc-caption.is-on .svc-caption__text span { animation: wordIn 0.65s var(--ease) both; animation-delay: calc(90ms + var(--i) * 42ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .svc-caption__text span { opacity: 1; transform: none; filter: none; animation: none !important; } }
@media (max-width: 820px) {
  .s3 { justify-content: flex-start; padding-top: calc(var(--gutter) + 4rem); }
  .work { font-size: clamp(1.7rem, 7.5vw, 2.6rem); }
  .svc-caption__text { font-size: clamp(0.95rem, 4vw, 1.1rem); line-height: 1.3; }
  .svc-caption__name { bottom: calc(100% + 0.55rem); }
  .svc-caption::before { bottom: calc(100% + 1.9rem); }
}

/* 04 · capabilities: rendered into the landscape on the canvas; the DOM copy stays for assistive tech only */
.s4 { padding: 0; justify-content: center; overflow: hidden; }
.s4 .marquee { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marquee {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  font-size: clamp(3rem, 9.5vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-4deg) scale(1.08);
}
.row {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.row span { display: inline-block; padding-right: 0.15em; }
/* the marquee sits over the bright surface sky: dark ink and a pale outline */
.row--solid { color: #1a2422; }
.row--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 250, 240, 0.85);
}

/* 06 · contact */
.contact { justify-content: center; }
.contact__inner { width: min(100%, 520px); }
.contact .display { margin-bottom: 0.9rem; }
.contact__where { margin-bottom: 2.2rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 236, 230, 0.7);
}
.field input,
.field textarea {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 236, 230, 0.32);
  border-radius: 0;
  color: var(--fg);
  font: inherit;
  font-size: 1.05rem;
  padding: 0.55rem 0 0.7rem;
  outline: none;
  transition: border-color 0.3s var(--ease);
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(243, 236, 230, 0.38); }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--orange); }
.field input:user-invalid,
.field textarea:user-invalid { border-bottom-color: #d9463a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__foot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.5rem 0.95rem 1.7rem;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: #0a0a0a;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn i { font-style: normal; transition: transform 0.35s var(--ease); }
.btn:hover { background: transparent; color: var(--fg); border-color: var(--green-tint); }
.btn:hover i { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.form__status {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.2em;
}
.form.is-sent .field,
.form.is-sent .btn,
.contact.is-sent .contact__where { display: none; }
.form.is-sent .form__status { color: var(--fg); font-size: 1.15rem; line-height: 1.5; max-width: 34ch; animation: rise 0.8s var(--ease) both; }
.form__again { display: inline-block; margin-top: 1.2rem; color: var(--orange); text-decoration: none; border-bottom: 1px solid rgba(207, 93, 43, 0.5); font-size: 0.95rem; transition: border-color 0.3s var(--ease); }
.form__again:hover { border-color: var(--orange); }
.form__again i { font-style: normal; display: inline-block; transition: transform 0.35s var(--ease); }
.form__again:hover i { transform: translateY(-3px); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.foot {
  margin-top: 2.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 236, 230, 0.55);
}

@media (max-height: 640px) {
  .contact .display { margin-bottom: 1.2rem; }
  .form { gap: 0.8rem; }
  .foot { margin-top: 1.4rem; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

/* Line buttons: a short line at the foot of the page. on hover it parts and its word sits in the gap. */
.line-btn {
  position: absolute;
  bottom: calc(var(--gutter) * 0.55 + var(--bar));
  display: block;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(243, 236, 230, 0.5);
  font: inherit;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.9s var(--ease), color 0.4s var(--ease), transform 0.9s var(--ease);
}
/* the controls arrive in their own time: sound after a few seconds, the menu once you have left the void */
.line-btn.is-on { opacity: 0.85; pointer-events: auto; transform: none;
}
.line-btn:focus-visible { opacity: 1; color: rgba(243, 236, 230, 0.85); outline: none; }
@media (hover: hover) { .line-btn:hover { opacity: 1; color: rgba(243, 236, 230, 0.85); } }
.sound { right: calc(var(--gutter) - 12px); }
.menu { left: auto; right: calc(var(--gutter) - 12px); top: calc(var(--gutter) * 0.55); bottom: auto; z-index: 8; }   /* as far from the top as the sound line is from the bottom */
.menu[aria-expanded="true"] { color: rgba(243, 236, 230, 0.85); opacity: 1; }
.line-btn__line { width: 170px; height: 22px; display: block; }
/* the label sits in the gap the line opens for it */
.line-btn__label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding-left: 0.3em;   /* balances the trailing letter-spacing */
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  clip-path: inset(0 50% 0 50%);
  transition: opacity 0.4s var(--ease), clip-path 0.5s var(--ease);
}
.line-btn:focus-visible .line-btn__label,
.line-btn.is-intro .line-btn__label,
.menu[aria-expanded="true"] .line-btn__label { opacity: 1; clip-path: inset(0 0 0 0); }
@media (hover: hover) { .line-btn:hover .line-btn__label { opacity: 1; clip-path: inset(0 0 0 0); } }
/* while a control is introducing itself the word is already in place; only the fade-in moves */
.line-btn.is-intro .line-btn__label { transition: opacity 0.4s var(--ease); }
.sound[aria-pressed="true"] { color: rgba(243, 236, 230, 0.75); }
@media (max-width: 720px) { .line-btn { bottom: calc(14px + var(--bar)); } .sound { right: 6px; } .menu { right: 6px; top: 14px; bottom: auto; } .brand { top: 14px; height: 34px; } .line-btn__line { width: 140px; height: 18px; } }

/* The menu: glass over the journey. hovering an entry brings that destination up behind it. */
.menu-panel {
  position: absolute;
  inset: 0;
  padding-bottom: var(--bar);
  z-index: 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(6, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(0.85);
  backdrop-filter: blur(16px) saturate(0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.menu-panel.is-open { opacity: 1; pointer-events: auto; }
.menu-panel ul { list-style: none; display: grid; gap: 0; width: min(100%, 900px); }
.menu-panel li { position: relative; padding: 0.55em 0 0.45em; font-size: clamp(2.8rem, 8.5vw, 7.5rem); }
/* the hairline: drawn across in the destination's colour on hover */
.menu-panel li::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: rgba(243, 236, 230, 0.16);
}
.menu-panel li::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: rgb(var(--tone));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.menu-panel li:hover::after, .menu-panel li:focus-within::after { transform: scaleX(1); }
.menu-panel li a {
  display: flex;
  align-items: center;
  gap: 0.32em;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  opacity: 0;
  transform: translateY(0.25em);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease), clip-path 0.7s var(--ease), color 0.3s var(--ease);
}
.menu-panel li:nth-child(2) a { transition-delay: 0.07s; }
.menu-panel.is-open li a { opacity: 1; transform: none; clip-path: inset(0 0 -12% 0); }
.menu-panel__word { transition: transform 0.6s var(--ease); }
.menu-panel li a:hover .menu-panel__word, .menu-panel li a:focus-visible .menu-panel__word { transform: translateX(0.06em); }
.menu-panel__note {
  margin-left: auto;
  align-self: center;
  font-size: 0.13em;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(var(--tone));
  opacity: 0;
  transform: translateX(-0.8em);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.menu-panel li a i {
  font-style: normal;
  align-self: center;
  line-height: 1;
  font-size: 0.38em;
  color: rgb(var(--tone));
  opacity: 0;
  transform: translateX(-0.6em);
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease);
}
.menu-panel li a:hover, .menu-panel li a:focus-visible { color: #fff; outline: none; }
.menu-panel li a:hover i, .menu-panel li a:focus-visible i,
.menu-panel li a:hover .menu-panel__note, .menu-panel li a:focus-visible .menu-panel__note { opacity: 1; transform: none; }
/* the privacy link, in both footers */
.foot a, .menu-panel__foot a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
.foot a:hover, .menu-panel__foot a:hover { color: var(--fg); }
.menu-panel__foot {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--gutter) * 0.55 + 10px + var(--bar));
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(243, 236, 230, 0.45);
}
@media (max-width: 720px) { .menu-panel__note, .menu-panel li a i { display: none; } }
/* no hover on touch: the arrows and hairline reveal are pointer affordances only */
@media (hover: none) { .menu-panel li a i { display: none; } .menu-panel li::after { display: none; } }
body.menu-open { overflow: hidden; }
