/* ============================================================
   Karim Masmoudi — E-Portfolio
   A journey through space. Stations, not sections.
   ============================================================ */

:root {
  --bg: #05070f;
  --ink: #e8ecf6;
  --muted: rgba(232, 236, 246, 0.62);
  --faint: rgba(232, 236, 246, 0.36);
  --line: rgba(232, 236, 246, 0.16);
  --star: #9db4ff;
  --nebula: #b19cff;
  --cyan: #6fe3d2;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(157, 180, 255, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--star); }

/* ------------------------------------------------------------
   Canvas — the world
   ------------------------------------------------------------ */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(180deg, #070a14, #04060d);
}

/* ------------------------------------------------------------
   Preloader
   ------------------------------------------------------------ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__count {
  font-weight: 300;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.preloader__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.6rem;
}

/* ------------------------------------------------------------
   Cursor
   ------------------------------------------------------------ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button { cursor: none; }
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; }
  .cursor__dot {
    position: fixed;
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: var(--ink);
  }
  .cursor__ring {
    position: fixed;
    width: 30px; height: 30px;
    margin: -15px 0 0 -15px;
    border: 1px solid rgba(233, 236, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.4s var(--ease), height 0.4s var(--ease),
                margin 0.4s var(--ease), background-color 0.4s,
                border-color 0.4s;
  }
  .cursor__label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .cursor.is-active .cursor__ring {
    width: 76px; height: 76px;
    margin: -38px 0 0 -38px;
    background: rgba(157, 180, 255, 0.12);
    border-color: rgba(157, 180, 255, 0.4);
    backdrop-filter: blur(2px);
  }
  .cursor.is-active .cursor__label { opacity: 1; }
}

/* ------------------------------------------------------------
   Liquid glass — shared surface treatment for floating chrome
   (navbar pills, nav arrows, buttons, modal close): a soft
   frosted pane with a diagonal light sheen and a bright top
   edge, like a curved sliver of the same ice the stones are cut
   from. backdrop-filter carries the real work; the gradient and
   inset highlight are what read as "glass" instead of "blur".
   ------------------------------------------------------------ */
.hud__logo, .hud__menu, .objnav, .btn, .cbtn, .station__enter-ring, .inside__close {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 55%, rgba(157, 180, 255, 0.08));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 10px rgba(3, 5, 12, 0.2), 0 6px 20px rgba(3, 5, 12, 0.35);
}

/* ------------------------------------------------------------
   HUD — the only fixed chrome
   ------------------------------------------------------------ */
.hud {
  position: fixed;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.4rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  pointer-events: none;
}
.hud--top { top: 2rem; }
.hud--bottom { bottom: 2rem; color: var(--muted); }
.hud a { pointer-events: auto; }
.hud__logo {
  color: var(--ink);
  padding: 0.85em 1.4em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.4s, background 0.4s;
}
.hud__logo:hover { border-color: rgba(157, 180, 255, 0.5); }
.hud__menu {
  display: flex;
  gap: 2.2rem;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: auto;
}
.hud__menu a {
  color: var(--muted);
  position: relative;
  transition: color 0.4s;
}
.hud__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--star);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.hud__menu a:hover { color: var(--ink); }
.hud__menu a:hover::after { transform: scaleX(1); }
.hud__zone, .hud__meter { font-variant-numeric: tabular-nums; }

/* object HUD — bracketed label centered low, nav arrows on the sides */
.objlabel {
  position: fixed;
  left: 50%; bottom: 8.5vh;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  gap: 0.7em;
  align-items: center;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.objlabel span { color: rgba(157, 180, 255, 0.6); }
.objlabel b {
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.3em;
}
body.has-detail .objlabel, body.has-detail .objnav { opacity: 0; pointer-events: none; }

.objnav {
  position: fixed;
  top: 50%;
  z-index: 45;
  transform: translateY(-50%) translate3d(var(--mx, 0px), var(--my, 0px), 0);
  width: 54px; height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.35s, border-color 0.35s, background 0.35s;
}
.objnav:hover { color: var(--ink); border-color: rgba(157, 180, 255, 0.6); background: rgba(157, 180, 255, 0.08); }
.objnav--prev { left: 3vw; }
.objnav--next { right: 3vw; }
@media (max-width: 900px) { .objnav { display: none; } .objlabel { bottom: 6vh; } }

/* journey rail — right edge */
.rail {
  position: fixed;
  right: 2.4rem;
  top: 50%;
  transform: translateY(-50%);
  height: 34vh;
  z-index: 50;
  pointer-events: none;
}
.rail__line { width: 1px; height: 100%; background: var(--line); }
.rail__dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--star);
  box-shadow: 0 0 8px rgba(157, 180, 255, 0.8);
}

/* ------------------------------------------------------------
   Stations — text passing by on the journey
   ------------------------------------------------------------ */
.stations { position: fixed; inset: 0; z-index: 10; }

.station {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* asymmetry — content steps aside for the worlds outside */
@media (min-width: 901px) {
  .station--left { align-items: flex-start; text-align: left; padding-left: 12vw; padding-right: 46vw; }
  .station--right { align-items: flex-end; text-align: right; padding-right: 12vw; padding-left: 46vw; }
}

/* keep light words readable in front of the bright ice — dark halo now */
.station__label, .station__meta, .station__body, .station__title, .station__project,
.station__name, .station__row, .station__facts li {
  text-shadow: 0 0 22px rgba(4, 5, 13, 0.85), 0 2px 30px rgba(4, 5, 13, 0.7);
}

.station__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.62rem;
  margin-bottom: 2.2rem;
}
.station__name {
  font-weight: 300;
  font-size: clamp(2.8rem, 9.5vw, 8.5rem);
  line-height: 1.04;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-indent: 0.1em;
}
.station__title {
  font-weight: 300;
  font-size: clamp(1.7rem, 3.8vw, 3.2rem);
  line-height: 1.3;
  max-width: 24ch;
  text-wrap: balance;
}
.station__project {
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.station__project a {
  background: linear-gradient(90deg, var(--star), var(--nebula), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--ink);
  transition: color 0.5s;
}
.station__project a:hover { color: transparent; }
.station__meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.6rem;
  margin-bottom: 1.6rem;
}
.station__body {
  color: var(--ink);
  opacity: 0.82;
  max-width: 30rem;
  font-size: clamp(0.9rem, 1.25vw, 1.02rem);
}
.station__body + .station__body { margin-top: 1rem; }
.station__body--dim { color: var(--faint); font-size: 0.85rem; }
.station__tags {
  margin-top: 1.6rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.58rem;
}
/* awards stone — hero-centered title with the enter button beneath */
.station__name--stone { margin-bottom: 2.6rem; }
.station__facts { list-style: none; width: min(30rem, 100%); text-align: left; }
.station__facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.station__facts li:first-child { border-top: 1px solid var(--line); }
.station__facts li span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.56rem;
}

.station__big {
  font-weight: 300;
  font-size: clamp(2.6rem, 10vw, 8.5rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  background: linear-gradient(90deg, var(--star), var(--nebula), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--ink);
  transition: color 0.5s;
}
.station__big:hover { color: transparent; }
.station__links {
  display: flex;
  gap: 2.6rem;
  margin-top: 3.4rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
.station__links a { color: var(--muted); transition: color 0.4s; }
.station__links a:hover { color: var(--ink); }
.station__copy {
  margin-top: 3.4rem;
  color: var(--faint);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Enter hotspot — the door into a work */
.station__enter {
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  color: rgba(233, 236, 255, 0.85);
  font-family: inherit;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  cursor: pointer;
  text-shadow: 0 0 16px rgba(4, 5, 13, 0.95);
  transition: color 0.4s;
}
.station__enter:hover { color: var(--ink); }
.station__enter-ring {
  position: relative;
  width: 36px; height: 36px;
  border: 1px solid rgba(157, 180, 255, 0.75);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.station__enter:hover .station__enter-ring {
  border-color: rgba(157, 180, 255, 0.9);
  transform: scale(1.12);
}
.station__enter-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(157, 180, 255, 0.5);
  animation: enterPulse 2.4s ease-out infinite;
}
.station__enter-ring::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--star);
  font-size: 1rem;
  font-weight: 300;
}
@keyframes enterPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}
.station__detail { display: none; }

/* ------------------------------------------------------------
   Inside view — you are within the sculpture
   ------------------------------------------------------------ */
.inside {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  visibility: hidden;
  pointer-events: none;
}
.inside.is-open { visibility: visible; pointer-events: auto; }
.inside::before {
  content: "";
  position: absolute;
  inset: 0;
  /* deep-ice night: dark base with slow aurora drifts */
  background:
    radial-gradient(55% 70% at 22% 28%, rgba(88, 108, 168, 0.22), transparent 70%),
    radial-gradient(48% 60% at 78% 72%, rgba(120, 92, 176, 0.16), transparent 70%),
    radial-gradient(70% 90% at 50% 115%, rgba(52, 74, 110, 0.3), transparent 65%),
    radial-gradient(80% 80% at 50% 45%, rgba(13, 16, 26, 0.82), rgba(9, 11, 18, 0.74));
  background-size: 160% 160%, 170% 170%, 150% 150%, 100% 100%;
  animation: insideDrift 16s ease-in-out infinite alternate;
  backdrop-filter: blur(14px);   /* the interior objects float in this blur */
  opacity: 0;
  transition: opacity 0.9s var(--ease) 0.35s;
  pointer-events: none;
}
.inside.is-open::before { opacity: 1; }
@keyframes insideDrift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 100%, 50% 50%; }
  50%  { background-position: 80% 40%, 20% 60%, 40% 80%, 50% 50%; }
  100% { background-position: 30% 100%, 70% 0%, 60% 100%, 50% 50%; }
}

/* inside the dark, the words turn white */
.inside .detail__title { color: #f2f5fb; }
.inside .detail__label { color: rgba(214, 224, 244, 0.65); }
.inside .inside__content p { color: rgba(226, 233, 246, 0.78); }
.inside .detail__list li { color: rgba(226, 233, 246, 0.72); border-color: rgba(190, 205, 235, 0.16); }
.inside .detail__list li:last-child { border-bottom-color: rgba(190, 205, 235, 0.16); }
.inside .detail__tags { color: rgba(198, 210, 236, 0.45); }
.inside .btn { color: #eef2fa; border-color: rgba(157, 180, 255, 0.4); }
.inside .btn:hover { background: rgba(157, 180, 255, 0.18); border-color: rgba(157, 180, 255, 0.85); }
.inside .inside__close { color: rgba(214, 224, 244, 0.7); }
.inside .inside__close:hover { color: #fff; }

/* while inside, the outside text yields */
body.has-detail .stations { opacity: 0; }
.stations { transition: opacity 0.5s var(--ease); }

.inside__content {
  position: relative;
  max-width: 44rem;
  text-align: center;
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.inside.is-open .inside__content {
  opacity: 1;
  transform: none;
  transition-delay: 0.55s; /* arrive first, then the words condense */
}
.inside__close {
  position: absolute;
  top: 2rem; right: 2.4rem;
  width: 44px; height: 44px;
  border: 1px solid rgba(157, 180, 255, 0.35);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: color 0.3s, border-color 0.3s, transform 0.5s var(--ease), opacity 0.6s var(--ease) 0.7s;
}
.inside.is-open .inside__close { opacity: 1; }
.inside__close:hover {
  color: var(--ink);
  border-color: rgba(157, 180, 255, 0.8);
  transform: rotate(90deg) translate3d(var(--mx, 0px), var(--my, 0px), 0);
}
.inside .detail__list { text-align: center; }
.inside .detail__links { justify-content: center; }
.inside .detail__label { margin-bottom: 2rem; }
.inside .detail__label:not(:first-child) { margin-top: 2.8rem; }   /* stacked sections (awards) */
.inside .detail__title { font-size: clamp(2.4rem, 6vw, 4.5rem); }

/* sand-text — characters scatter from the cursor and settle */
.ch {
  display: inline-block;
  will-change: transform;
  transition: transform 0.55s var(--ease), color 0.35s, opacity 0.35s;
}
.ch.is-hit {
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg));
  color: #fff;
  transition-duration: 0.1s;
}
.detail__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.6rem;
  margin-bottom: 1.8rem;
}
.detail__title {
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.inside__content p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.detail__list {
  list-style: none;
  margin: 1.4rem 0;
}
.detail__list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.detail__list li:last-child { border-bottom: 1px solid var(--line); }
.detail__tags {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.58rem;
  margin: 1.8rem 0 2.2rem;
}
.detail__links { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  border: 1px solid rgba(157, 180, 255, 0.35);
  border-radius: 999px;
  padding: 0.75em 1.6em;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: background 0.3s, border-color 0.3s;
}
.btn:hover {
  background: rgba(157, 180, 255, 0.15);
  border-color: rgba(157, 180, 255, 0.75);
}

.station__scroll {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--muted);
}
.station__scroll-line {
  width: 1px; height: 52px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.station__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%; height: 100%;
  background: var(--star);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* hero name reveal after preloader */
.line { display: block; overflow: hidden; }
.line__inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.4s var(--ease);
}
.is-loaded .line__inner { transform: translateY(0); }
.is-loaded .line:nth-child(2) .line__inner { transition-delay: 0.15s; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hud { padding: 0 1.3rem; letter-spacing: 0.2em; }
  .hud--top { top: 1.3rem; }
  .hud--bottom { bottom: 1.3rem; }
  .hud__logo { display: none; }
  .hud__menu { gap: 1.3rem; }
  .rail { right: 1rem; }
  .station { padding: 5rem 1.4rem; }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .line__inner { transform: none !important; }
}

/* ------------------------------------------------------------
   Contact — the sand creature switcher
   ------------------------------------------------------------ */
.station--contact { justify-content: flex-end; padding-bottom: 12vh; }
.contact__h { margin-bottom: 2.2rem; }
.cbtns { display: flex; gap: 0.8rem; margin-bottom: 1.6rem; }
.cbtn {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  cursor: pointer;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.cbtn:hover { color: var(--ink); border-color: rgba(157, 180, 255, 0.5); }
.cbtn.is-on { color: #05060d; background: var(--star); border-color: var(--star); }
.cinfo { font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: 0.02em; min-height: 2em; }
.cinfo a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 0.3s; }
.cinfo a:hover { border-color: var(--star); }

/* ------------------------------------------------------------
   Specimen annotation — measurement frame around the focused stone
   ------------------------------------------------------------ */
.anno {
  position: fixed;
  top: 50%; left: 50%;
  width: min(46vmin, 460px); height: min(46vmin, 460px);
  transform: translate(calc(-50% + var(--sx, 0px)), -50%);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.3, 1);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}
.anno.is-on { opacity: 1; }
.anno__tick { position: absolute; width: 14px; height: 14px; }
.anno__tick::before, .anno__tick::after { content: ""; position: absolute; background: var(--line); }
.anno__tick::before { width: 100%; height: 1px; }
.anno__tick::after { width: 1px; height: 100%; }
.anno__tick--tl { top: 0; left: 0; }
.anno__tick--tr { top: 0; right: 0; transform: scaleX(-1); }
.anno__tick--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.anno__tick--br { bottom: 0; right: 0; transform: scale(-1); }
.anno__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anno__lines path { stroke: var(--line); stroke-width: 0.35; fill: none; vector-effect: non-scaling-stroke; }
.anno__id { position: absolute; top: -1.7em; left: 0; color: var(--ink); }
.anno__tel { position: absolute; top: 14%; right: -2%; transform: translateX(100%); line-height: 1.9; text-align: left; }
.anno__date { position: absolute; bottom: 26%; right: -2%; transform: translateX(100%); }
.anno__cta {
  position: absolute; bottom: -2em; right: 0;
  color: var(--ink);
  animation: annoBlink 2.6s ease-in-out infinite;
}
@keyframes annoBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (max-width: 720px) {
  .anno__tel, .anno__date { display: none; }
}

/* HUD typography — instrument mono, like a scientific readout */
.hud, .objlabel, .anno, .station__meta, .station__label, .station__scroll,
.cbtn, .detail__label, .detail__tags, .preloader__label, .preloader__count,
.hud__zone, .hud__meter { font-family: var(--mono); }

/* film grain — a breathing layer of noise over the whole frame */
.grain {
  position: fixed; inset: -60px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-18px, 12px); }
  50% { transform: translate(14px, -16px); }
  75% { transform: translate(-10px, -8px); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }
