/* ==========================================================================
   AR PERSONAL SPACE — style.css
   Neo-brutalist experimental · editorial grid · lime on black
   Sections: 1 fonts · 2 tokens · 3 base · 4 utilities · 5 nav · 6 hero
             7 marquee · 8 universe · 9 notes · 10 closing · 11 footer
             12 dialog · 13 motion · 14 responsive
   ========================================================================== */

/* 1. FONTS ---------------------------------------------------------------- */
@font-face {
  font-family: 'Anton';
  src: url('../assets/fonts/anton.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-400.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-500.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-600.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-700.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-800.woff') format('woff');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('../assets/fonts/caveat-500.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}

/* 2. TOKENS --------------------------------------------------------------- */
:root {
  --bg: #080808;
  --bg-soft: #0c0c0c;
  --lime: #dfff00;
  --paper: #f1f0e9;
  --muted: #a5a5a5;
  --line: rgba(241, 240, 233, 0.16);
  --line-soft: rgba(241, 240, 233, 0.09);
  --ink: #080808;

  --display: 'Anton', 'Haettenschweiler', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Caveat', 'Segoe Script', cursive;

  --pad: clamp(16px, 2.6vw, 44px);
  --nav-h: clamp(58px, 5.6vw, 78px);
  --gap: clamp(10px, 1.1vw, 16px);
  --section-y: clamp(46px, 6.4vw, 100px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  --paper-grad: linear-gradient(148deg, #f6f4ec 0%, #e7e4d9 42%, #d5d1c3 100%);
}

/* 3. BASE ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(to right, rgba(241, 240, 233, 0.045) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(to bottom, rgba(241, 240, 233, 0.045) 0 1px, transparent 1px 100%);
  background-size: 92px 92px, 92px 92px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3, p, ul, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--noise);
  opacity: 0.05;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}
.skip:focus {
  top: 12px;
}

/* 4. UTILITIES ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--line-soft);
}

.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.display span {
  display: block;
}
.display__light {
  color: var(--paper);
}
.display__lime {
  color: var(--lime);
}

.lede {
  max-width: 27ch;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border: 1px solid transparent;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.btn svg {
  width: 13px;
  height: 13px;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--paper);
}
.btn--ghost {
  background: transparent;
  color: var(--lime);
  border-color: var(--lime);
}
.btn--ghost:hover {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(241, 240, 233, 0.28);
}
.btn__icon {
  display: grid;
  place-items: center;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 7px;
  background: var(--lime);
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.3;
}

.slashes {
  display: inline-flex;
  gap: 3px;
  height: 18px;
  flex-shrink: 0;
}
.slashes i {
  width: 4px;
  height: 100%;
  background: var(--lime);
  transform: skewX(-24deg);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 5. NAVIGATION ----------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 8, 8, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(130%);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 8, 8, 0.94);
  border-bottom-color: rgba(223, 255, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: var(--pad);
  gap: clamp(14px, 2vw, 30px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.nav__logo {
  display: grid;
  place-items: center;
  width: clamp(30px, 2.7vw, 38px);
  aspect-ratio: 1;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1;
}
.nav__name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}
.nav__name strong {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.nav__name sup {
  font-size: 7px;
  top: -0.5em;
}
.nav__sep,
.nav__space {
  color: var(--muted);
}

.nav__menu {
  margin-left: clamp(18px, 5vw, 110px);
  margin-right: auto;
}
.nav__menu ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 44px);
}
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--lime);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  margin-right: calc(var(--pad) * -1);
  padding-inline: clamp(12px, 1.6vw, 22px);
  background: var(--lime);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover {
  background: var(--paper);
}
.nav__cta-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}
.nav__cta:hover .nav__cta-icon svg {
  transform: translate(3px, -3px);
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 36px;
  margin-left: auto;
  padding-inline: 11px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__toggle-bars {
  display: grid;
  gap: 4px;
  width: 15px;
}
.nav__toggle-bars i {
  display: block;
  height: 1.5px;
  background: var(--lime);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded='true'] .nav__toggle-bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav__toggle[aria-expanded='true'] .nav__toggle-bars i:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100svh - var(--nav-h));
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 5vw, 40px) var(--pad) clamp(24px, 6vw, 44px);
  background: var(--bg);
  background-image:
    repeating-linear-gradient(to right, rgba(241, 240, 233, 0.05) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(to bottom, rgba(241, 240, 233, 0.05) 0 1px, transparent 1px 100%);
  background-size: 70px 70px;
  overflow-y: auto;
  animation: panelIn 0.4s var(--ease) both;
}
.nav__panel[hidden] {
  display: none;
}
.nav__panel-list li + li {
  border-top: 1px solid var(--line-soft);
}
.nav__panel-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: clamp(12px, 2.2vw, 20px);
  border-bottom: 0;
}
.nav__panel-num {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--lime);
  width: 22px;
}
.nav__panel-label {
  font-family: var(--display);
  font-size: clamp(30px, 9vw, 54px);
  line-height: 0.95;
  text-transform: uppercase;
}
.nav__panel-arrow {
  margin-left: auto;
  color: var(--muted);
}
.nav__panel-arrow svg {
  width: 20px;
  height: 20px;
}
.nav__panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
}
.nav__panel-foot p {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 6. HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  max-width: 1720px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 46px) var(--pad) clamp(30px, 4vw, 58px);
  min-height: calc(100svh - var(--nav-h) - 76px);
  display: flex;
  align-items: flex-start;
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: min(64%, 940px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1.3vw, 18px);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: clamp(10px, 0.82vw, 12px);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  line-height: 1.55;
  color: var(--paper);
}
.hero__eyebrow span:last-child {
  max-width: none;
}

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.8;
  margin-top: clamp(2px, 0.6vw, 8px);
}
.hero__line {
  display: block;
}
.hero__line--top {
  font-size: clamp(56px, 15.4vw, 224px);
  color: var(--paper);
  text-shadow: 5px 6px 0 rgba(0, 0, 0, 0.4);
}
.hero__line--block {
  display: inline-block;
  margin-top: 0.02em;
  padding: 0.02em 0.055em 0.04em;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(44px, 11.3vw, 162px);
  letter-spacing: -0.045em;
  line-height: 0.84;
}

.hero__roles {
  display: flex;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  font-size: clamp(8px, 0.72vw, 10px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__roles li {
  padding: 7px clamp(9px, 1vw, 15px);
  color: var(--muted);
}
.hero__roles li:first-child {
  color: var(--paper);
}
.hero__roles li + li {
  border-left: 1px solid var(--line);
}

.hero__tagline {
  position: relative;
  margin-top: clamp(4px, 0.8vw, 10px);
  font-family: var(--display);
  font-size: clamp(19px, 2.6vw, 38px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--paper);
}
.hero__tagline span {
  display: block;
}
.hero__tagline-accent {
  color: var(--lime);
}
.hero__scribble {
  position: absolute;
  left: 1%;
  bottom: clamp(-16px, -1.1vw, -8px);
  width: min(92%, 430px);
  height: clamp(9px, 1vw, 15px);
  color: var(--lime);
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  flex-wrap: wrap;
  margin-top: clamp(10px, 1.4vw, 20px);
}
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.mouse {
  position: relative;
  width: 15px;
  height: 24px;
  border: 1px solid var(--muted);
  border-radius: 9px;
}
.mouse::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 5px;
  width: 1.5px;
  height: 5px;
  background: var(--muted);
  transform: translateX(-50%);
  animation: wheel 1.9s ease-in-out infinite;
}

.hero__figure {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(52%, 730px);
  height: 94%;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero__paper {
  position: absolute;
  left: 16%;
  right: 11%;
  top: 3%;
  bottom: 12%;
  z-index: 0;
  background: linear-gradient(148deg, #eceadf 0%, #dbd7c9 45%, #c9c5b6 100%);
  transform: rotate(-3deg);
  clip-path: polygon(
    1% 7%, 13% 2%, 27% 6%, 41% 1%, 56% 5%, 71% 0%, 85% 4%, 97% 2%, 100% 15%,
    97% 30%, 100% 45%, 96% 60%, 100% 74%, 95% 88%, 99% 97%, 84% 100%, 68% 96%,
    52% 100%, 36% 96%, 20% 100%, 6% 96%, 0% 86%, 3% 70%, 0% 54%, 4% 38%, 1% 22%
  );
  opacity: 0.92;
}
.hero__paper::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: grayscale(1) contrast(1.06) drop-shadow(-16px 12px 0 rgba(0, 0, 0, 0.5));
}

.hero__badge {
  position: absolute;
  z-index: 4;
  right: 1%;
  top: 4%;
  display: grid;
  place-items: center;
  width: clamp(88px, 10.5vw, 148px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(13px, 1.35vw, 19px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
  box-shadow: 0 0 0 1px rgba(8, 8, 8, 0.55), 0 0 0 9px rgba(223, 255, 0, 0.14);
}

.hero__spark {
  position: absolute;
  z-index: 4;
  right: 2%;
  bottom: 18%;
  width: clamp(18px, 2vw, 30px);
  color: var(--lime);
}
.hero__spark svg {
  width: 100%;
  height: 100%;
}

.hero__crown {
  position: absolute;
  z-index: 4;
  left: 39%;
  top: clamp(10px, 2.2vw, 34px);
  width: clamp(34px, 3.8vw, 62px);
  color: var(--lime);
  transform: rotate(-6deg);
}
.hero__crown svg {
  width: 100%;
  height: 100%;
}

.hero__torn {
  position: absolute;
  z-index: 2;
  left: 52%;
  top: 2%;
  width: clamp(58px, 8vw, 120px);
  height: clamp(66px, 9vw, 136px);
  background: var(--paper-grad);
  opacity: 0.85;
  transform: rotate(-6deg);
  clip-path: polygon(
    2% 8%, 20% 0, 46% 7%, 72% 0, 100% 10%, 93% 33%, 100% 60%, 90% 88%,
    64% 100%, 38% 91%, 13% 100%, 0 76%, 6% 45%
  );
}
.hero__torn::after {
  content: '';
  position: absolute;
  inset: 26% 24%;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M8 6h10v10' fill='none' stroke='%23080808' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0.85;
}

.hero__grid-mark {
  position: absolute;
  pointer-events: none;
  width: 1px;
  background: var(--paper);
  opacity: 0.16;
}
.hero__grid-mark--a {
  left: 31%;
  top: -10%;
  height: 42%;
  transform: rotate(16deg);
}
.hero__grid-mark--b {
  right: 3%;
  top: 32%;
  height: 16%;
  background: var(--lime);
  opacity: 0.4;
  transform: rotate(-24deg);
}

/* 7. MARQUEE -------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 4;
  padding-block: clamp(20px, 2.8vw, 38px);
  overflow: hidden;
}
.marquee__band {
  width: 112%;
  margin-left: -6%;
  background: var(--lime);
  color: var(--ink);
  border-block: 2px solid var(--ink);
  transform: rotate(-2.4deg);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 32s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__item {
  font-family: var(--display);
  font-size: clamp(15px, 1.9vw, 28px);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  padding-inline: clamp(9px, 1.3vw, 20px);
  line-height: 1.35;
  white-space: nowrap;
}
.marquee__dash {
  font-size: clamp(13px, 1.6vw, 24px);
  opacity: 0.7;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* 8. MY UNIVERSE ---------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(230px, 0.66fr) minmax(0, 2.2fr);
  gap: clamp(22px, 3.2vw, 54px);
  align-items: start;
}
.split__aside {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.3vw, 18px);
  padding-top: 4px;
}
.split__aside .btn {
  margin-top: 6px;
}

.universe__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.ucard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: clamp(148px, 14.5vw, 214px);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.ucard--lime {
  background: var(--lime);
}
.ucard__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: clamp(11px, 1.25vw, 19px);
  background: inherit;
}
.ucard__num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.ucard__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 2vw, 30px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  max-width: 9ch;
}
.ucard__desc {
  margin-top: 2px;
  font-size: clamp(10.5px, 0.92vw, 12.5px);
  line-height: 1.45;
  font-weight: 500;
  max-width: 15ch;
  color: rgba(8, 8, 8, 0.82);
}
.ucard__arrow {
  display: grid;
  place-items: center;
  align-self: flex-end;
  margin-top: auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(8, 8, 8, 0.4);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.ucard__arrow svg {
  width: 13px;
  height: 13px;
}
.ucard__media {
  position: relative;
  overflow: hidden;
}
.ucard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.98);
  transition: transform 0.8s var(--ease);
}
.ucard:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--lime);
}
.ucard:hover .ucard__media img {
  transform: scale(1.07);
}
.ucard:hover .ucard__arrow {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
  transform: translate(2px, -2px);
}
.ucard--lime:hover {
  box-shadow: 7px 7px 0 var(--paper);
}

/* 9. THE THINKING SPACE --------------------------------------------------- */
.notes {
  padding-bottom: clamp(36px, 4.2vw, 68px);
}
.notes__area {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
}
.notes__viewport {
  overflow: hidden;
}
.notes__track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.notes__track > li {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  min-width: 0;
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: clamp(30px, 2.6vw, 38px);
  aspect-ratio: 1;
  border: 1px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.carousel__btn svg {
  width: 15px;
  height: 15px;
}
.carousel__btn:hover:not(:disabled) {
  background: var(--lime);
  color: var(--ink);
  transform: scale(1.06);
}
.carousel__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ncard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  background: #0b0b0b;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.ncard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #111;
}
.ncard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.ncard__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  padding: 12px 13px 13px;
}
.ncard__title {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.005em;
}
.ncard__title a {
  transition: color 0.3s var(--ease);
}
.ncard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ncard__arrow svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s var(--ease);
}
.ncard:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}
.ncard:hover .ncard__media img {
  transform: scale(1.05);
}
.ncard:hover .ncard__title a {
  color: var(--lime);
}
.ncard:hover .ncard__arrow svg {
  transform: translate(3px, -3px);
  color: var(--lime);
}

/* 10. CLOSING ------------------------------------------------------------- */
.closing {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 132px) clamp(56px, 7vw, 112px);
  border-top: 1px solid var(--line-soft);
}
.closing__inner {
  position: relative;
  z-index: 2;
}
.closing__title {
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.86;
  max-width: 100%;
}
.closing__line {
  display: block;
  font-size: clamp(27px, 7vw, 108px);
  color: var(--paper);
}
.closing__line--lime {
  color: var(--lime);
  font-size: clamp(41px, 9.4vw, 148px);
  margin-top: 0.03em;
}
.closing__scribble {
  position: absolute;
  left: 6%;
  bottom: clamp(-30px, -2.4vw, -14px);
  width: min(58%, 620px);
  height: clamp(20px, 2.4vw, 40px);
  color: var(--lime);
}

.closing__note {
  position: absolute;
  right: var(--pad);
  top: clamp(86px, 8.2vw, 130px);
  width: clamp(168px, 16vw, 236px);
  transform: rotate(-2.5deg);
  z-index: 3;
}
.closing__note p {
  padding: clamp(11px, 1.1vw, 16px) clamp(12px, 1.2vw, 18px);
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(13px, 1.45vw, 21px);
  line-height: 0.98;
  text-transform: uppercase;
  box-shadow: 5px 6px 0 rgba(241, 240, 233, 0.16);
}
.closing__signature {
  display: block;
  margin-top: clamp(8px, 1.2vw, 16px);
  padding-right: 6px;
  font-family: var(--script);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1;
  color: var(--paper);
  text-align: right;
  transform: rotate(-4deg);
}

.closing__strip {
  position: absolute;
  z-index: 0;
  background-image: url('../assets/img/architecture.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.42;
  pointer-events: none;
}
.closing__strip--a {
  top: -8%;
  right: -7%;
  width: 34%;
  height: 56%;
  transform: rotate(7deg);
  clip-path: polygon(4% 0, 100% 2%, 96% 30%, 100% 62%, 94% 100%, 46% 96%, 8% 99%, 0 68%, 5% 34%);
}
.closing__strip--b {
  bottom: -10%;
  left: -6%;
  width: 24%;
  height: 38%;
  transform: rotate(-8deg);
  clip-path: polygon(0 6%, 52% 0, 100% 8%, 94% 44%, 100% 82%, 88% 100%, 30% 95%, 4% 100%, 0 52%);
}
.closing__slash {
  position: absolute;
  z-index: 1;
  right: 18%;
  top: 12%;
  width: 1px;
  height: 78%;
  background: var(--lime);
  opacity: 0.5;
  transform: rotate(34deg);
}

/* 11. FOOTER -------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 2;
  padding-block: clamp(18px, 2.2vw, 30px);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}
.footer__brand sup {
  font-size: 6px;
  top: -0.6em;
}
.footer__sep,
.footer__dash {
  color: var(--muted);
}
.footer__line {
  flex: 1;
  min-width: 30px;
  height: 1px;
  background: var(--line);
}
.footer__social {
  display: flex;
  gap: clamp(12px, 1.8vw, 26px);
  flex-wrap: wrap;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.social svg {
  width: 11px;
  height: 11px;
}
a.social:hover {
  color: var(--lime);
}
.social--pending {
  opacity: 0.55;
  cursor: default;
}
.footer__top {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.footer__top:hover {
  color: var(--lime);
}

/* 12. NOTE DIALOG --------------------------------------------------------- */
.note-modal {
  width: min(640px, calc(100% - 32px));
  max-height: min(82vh, 720px);
  padding: 0;
  border: 1px solid var(--lime);
  background: var(--bg-soft);
  color: var(--paper);
  overflow: auto;
}
.note-modal::backdrop {
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(4px);
}
.note-modal__inner {
  position: relative;
  padding: clamp(20px, 3.4vw, 34px);
}
.note-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 12px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.note-modal__close:hover {
  background: var(--lime);
  color: var(--ink);
}
.note-modal__cat {
  display: inline-block;
  padding: 3px 7px;
  background: var(--lime);
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.note-modal__title {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  text-transform: uppercase;
}
.note-modal__date {
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-modal__body {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #d8d6cd;
}

@media (min-width: 1024px) {
  .closing__line {
    white-space: nowrap;
  }
}

/* 13. MOTION -------------------------------------------------------------- */
@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
@keyframes wheel {
  0%, 100% {
    opacity: 0.2;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 6px);
  }
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}
@keyframes blockIn {
  from {
    opacity: 0;
    transform: scaleX(0.9);
    transform-origin: left;
  }
}

.hero__eyebrow,
.hero__title,
.hero__roles,
.hero__tagline,
.hero__actions,
.hero__figure,
.hero__crown {
  animation: rise 0.9s var(--ease) both;
}
.hero__eyebrow { animation-delay: 0.05s; }
.hero__title { animation-delay: 0.12s; }
.hero__roles { animation-delay: 0.24s; }
.hero__tagline { animation-delay: 0.3s; }
.hero__actions { animation-delay: 0.38s; }
.hero__figure { animation-delay: 0.18s; }
.hero__crown { animation-delay: 0.45s; }

/* 14. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1366px) {
  .hero__copy {
    width: min(66%, 860px);
  }
}

@media (max-width: 1180px) {
  .nav__menu {
    margin-left: clamp(14px, 2vw, 40px);
  }
  .nav__menu ul {
    gap: 20px;
  }
  .split {
    grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.9fr);
  }
  .ucard {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 1023px) {
  :root {
    --nav-h: 62px;
  }
  .nav__menu,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__panel {
    display: flex;
  }
  .split {
    grid-template-columns: 1fr;
    gap: clamp(22px, 3.4vw, 34px);
  }
  .split__aside {
    position: static;
  }
  .split__aside .display {
    max-width: 14ch;
  }

  .hero__inner {
    display: block;
    padding-bottom: clamp(26px, 4vw, 44px);
    min-height: 0;
  }
  .hero__copy {
    width: 100%;
  }
  .hero__figure {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(66%, 470px);
    height: clamp(300px, 62vw, 470px);
    margin-left: auto;
    margin-top: clamp(14px, 2vw, 30px);
    z-index: 3;
  }
  .hero__line--block {
    position: relative;
    z-index: 4;
  }
  .hero__crown {
    left: auto;
    right: 44%;
    top: clamp(14px, 3vw, 30px);
  }
  .hero__torn {
    display: none;
  }
  .hero__badge {
    right: 4%;
    top: 0;
  }
  .hero__grid-mark--a {
    display: none;
  }

  .closing__title {
    max-width: 100%;
  }
  .closing__note {
    position: relative;
    top: auto;
    right: auto;
    margin-top: clamp(24px, 4vw, 36px);
    margin-left: auto;
  }
  .closing__scribble {
    bottom: clamp(-16px, -1.4vw, -8px);
  }
  .closing__strip--a {
    width: 44%;
    opacity: 0.26;
  }
}

@media (max-width: 767px) {
  :root {
    --section-y: 44px;
  }
  .hero__line--top {
    font-size: clamp(58px, 22vw, 150px);
  }
  .hero__line--block {
    font-size: clamp(46px, 18.5vw, 128px);
  }
  .hero__eyebrow span:last-child {
    max-width: none;
  }
  .hero__figure {
    width: 84%;
    height: clamp(280px, 78vw, 380px);
    margin-top: 10px;
  }
  .hero__eyebrow br {
    display: none;
  }
  .hero__badge {
    width: 84px;
    font-size: 12px;
    right: 2%;
    top: 2%;
    box-shadow: 0 0 0 1px rgba(8, 8, 8, 0.5), 0 0 0 6px rgba(223, 255, 0, 0.14);
  }
  .hero__crown {
    right: 6%;
    left: auto;
    top: 10px;
    width: 30px;
  }
  .hero__photo {
    filter: grayscale(1) contrast(1.06) drop-shadow(-9px 8px 0 rgba(0, 0, 0, 0.45));
  }
  .hero__tagline {
    font-size: clamp(18px, 5.6vw, 30px);
  }
  .hero__eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.13em;
  }
  .hero__scribble {
    width: 88%;
  }
  .hero__roles {
    font-size: 8px;
  }
  .hero__roles li {
    padding: 6px 8px;
  }
  .hero__actions {
    gap: 14px;
  }

  .marquee {
    padding-block: 24px;
  }
  .marquee__item {
    font-size: 15px;
  }
  .marquee__dash {
    font-size: 12px;
  }

  .split__aside .display {
    font-size: clamp(34px, 11vw, 52px);
  }
  .universe__grid {
    grid-template-columns: 1fr;
  }
  .ucard {
    min-height: 150px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .ucard__title {
    font-size: 24px;
    max-width: 100%;
  }
  .ucard__desc {
    max-width: 18ch;
  }

  .notes__track > li {
    flex-basis: 100%;
  }
  .notes__area {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .carousel__btn {
    position: relative;
    width: 36px;
  }
  .notes__area .carousel__btn:first-child {
    order: 2;
    justify-self: start;
  }
  .notes__area .carousel__btn:last-child {
    order: 3;
    justify-self: end;
    margin-top: -48px;
  }

  .closing__line {
    font-size: clamp(25px, 8.4vw, 52px);
  }
  .closing__line--lime {
    font-size: clamp(34px, 12.4vw, 74px);
  }
  .closing__scribble {
    bottom: -13px;
  }
  .closing__note {
    width: 66%;
  }
  .closing__note p {
    font-size: 15px;
  }
  .closing__strip--b {
    display: none;
  }
  .footer__inner {
    gap: 10px;
  }
  .footer__line {
    display: none;
  }
  .footer__social {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  .nav__space,
  .nav__sep {
    display: none;
  }
  .hero__roles {
    letter-spacing: 0.12em;
  }
  .ucard__body {
    padding: 12px;
  }
  .ucard__title {
    font-size: 21px;
  }
  .ucard__desc {
    font-size: 10px;
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .marquee__track {
    animation: none;
  }
  .mouse::after {
    animation: none;
  }
}

/* 15. CMS INTEGRATION ADDITIONS ------------------------------------------ */
/* Kartu My Universe dapat berupa tautan ke halaman detail proyek. */
a.ucard {
  color: var(--ink);
  text-decoration: none;
}

/* Catatan penutup: setiap baris dikelola dari dashboard. */
.closing__note p span {
  display: block;
}

/* Tautan "baca selengkapnya" di dalam dialog catatan. */
.note-modal__more {
  display: inline-block;
  margin-top: 16px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  border-bottom: 1px solid rgba(223, 255, 0, 0.5);
  transition: border-color 0.3s var(--ease);
}
.note-modal__more:hover {
  border-bottom-color: var(--lime);
}
