:root {
  --ink: #08090a;
  --ink-soft: #101312;
  --paper: #f1ede4;
  --paper-deep: #ddd7cb;
  --lime: #d8ff4f;
  --cyan: #72dfff;
  --violet: #796cff;
  --oxide: #c63825;
  --gunmetal: #879097;
  --white: #fbfaf6;
  --line-dark: rgba(255, 255, 255, 0.15);
  --line-light: rgba(8, 9, 10, 0.18);
  --display: "Unbounded", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --sans: "Noto Sans TC", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "DM Mono", Consolas, monospace;
  --page-pad: clamp(1.25rem, 3.2vw, 4.5rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 5.25rem;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--ink);
  scroll-behavior: smooth;
  scrollbar-color: var(--lime) var(--ink);
  scrollbar-width: thin;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: clamp(.95rem, .85rem + .22vw, 1.12rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img,
canvas {
  display: block;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--lime);
  font-family: var(--mono);
  font-size: .76rem;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.boot-screen {
  display: none;
}

.js .boot-screen {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  pointer-events: none;
  transition: opacity .65s var(--ease-out), visibility .65s;
}

.js .boot-screen.is-complete {
  opacity: 0;
  visibility: hidden;
}

.boot-mark {
  display: grid;
  gap: .9rem;
  width: min(18rem, 70vw);
  color: var(--paper);
}

.boot-mark strong {
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -.05em;
}

.boot-line {
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .2);
}

.boot-line::after {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  content: "";
  transform: translateX(-100%);
  animation: boot-line .62s var(--ease-out) forwards;
}

@keyframes boot-line {
  to { transform: translateX(0); }
}

.ambient-grain {
  position: fixed;
  z-index: 80;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .05;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.cursor-aura {
  position: fixed;
  z-index: 79;
  top: 0;
  left: 0;
  width: 13rem;
  height: 13rem;
  margin: -6.5rem 0 0 -6.5rem;
  border: 1px solid rgba(216, 255, 79, .14);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out);
  will-change: transform;
}

.cursor-aura.is-visible {
  opacity: 1;
}

.cursor-aura.is-active {
  width: 5rem;
  height: 5rem;
  margin: -2.5rem 0 0 -2.5rem;
  border-color: rgba(216, 255, 79, .42);
}

.site-header {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 var(--page-pad);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(8, 9, 10, .8), rgba(8, 9, 10, .24));
  backdrop-filter: blur(16px) saturate(125%);
  transition: min-height .35s ease, background .35s ease, transform .45s var(--ease-out);
}

.site-header.is-compact {
  min-height: 4rem;
  background: rgba(8, 9, 10, .88);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  gap: .18rem;
  font-family: var(--display);
  font-size: clamp(.92rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: 1;
}

.brand sup {
  margin-top: -.05rem;
  color: var(--lime);
  font-family: var(--mono);
  font-size: .43em;
  letter-spacing: .04em;
}

.header-status {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255, 255, 255, .62);
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.status-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 .25rem rgba(216, 255, 79, .08), 0 0 1.2rem rgba(216, 255, 79, .5);
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.5rem);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -.45rem;
  left: 0;
  height: 1px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a[aria-current="true"] {
  color: var(--lime);
}

.menu-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: .75rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 1px;
  margin: .3rem 0;
  background: currentColor;
  transition: transform .3s ease;
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  opacity: .9;
  pointer-events: none;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: max(47rem, 100svh);
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(2rem, 6vh, 5rem)) var(--page-pad) clamp(2rem, 5vh, 4rem);
  background: var(--ink);
}

.hero-media,
.hero-media::after,
.hero-shader,
.hero-grid,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -5;
  margin: 0;
  background: var(--ink);
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: .97;
  filter: saturate(.92) contrast(1.08);
  animation: image-arrival 1.7s var(--ease-out) both;
}

.hero-media::after {
  background:
    linear-gradient(90deg, rgba(8, 9, 10, .98) 0%, rgba(8, 9, 10, .87) 27%, rgba(8, 9, 10, .18) 64%, rgba(8, 9, 10, .32) 100%),
    linear-gradient(0deg, rgba(8, 9, 10, .9) 0%, transparent 42%, rgba(8, 9, 10, .32) 100%);
  content: "";
}

@keyframes image-arrival {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: .97; transform: scale(1); }
}

.hero-shader {
  z-index: -4;
  width: 100%;
  height: 100%;
  opacity: .35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-grid {
  z-index: -3;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: clamp(3.5rem, 7vw, 8rem) clamp(3.5rem, 7vw, 8rem);
  mask-image: linear-gradient(90deg, #000, transparent 44%, #000);
}

.hero-vignette {
  z-index: -2;
  box-shadow: inset 0 0 12rem rgba(0, 0, 0, .48);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(11rem, .65fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 7rem);
  width: 100%;
}

.hero-copy {
  max-width: 68rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 clamp(1.25rem, 3vh, 2.4rem);
  color: rgba(255, 255, 255, .66);
  font-family: var(--mono);
  font-size: clamp(.62rem, .58rem + .13vw, .73rem);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.8rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 11.5ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.45rem, 8.8vw, 9.5rem);
  font-weight: 500;
  letter-spacing: -.095em;
  line-height: .78;
  text-wrap: balance;
}

.hero h1 > span,
.hero h1 > em {
  display: block;
  overflow: hidden;
  padding: .06em .07em .1em 0;
}

.hero h1 > span:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .62);
}

.hero h1 em {
  color: var(--lime);
  font-family: var(--serif);
  font-size: .76em;
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .86;
}

.hero h1 [data-reveal] {
  transform: translateY(112%) rotate(2deg);
  transition: transform 1.1s var(--ease-out);
}

.is-ready .hero h1 [data-reveal] {
  transform: translateY(0) rotate(0);
}

.hero h1 > :nth-child(2) [data-reveal] {
  transition-delay: .08s;
}

.hero h1 > :nth-child(3) [data-reveal] {
  transition-delay: .16s;
}

.hero-deck {
  display: grid;
  grid-template-columns: minmax(12rem, 28rem) auto;
  align-items: end;
  gap: clamp(1.5rem, 3vw, 3.75rem);
  max-width: 55rem;
  margin: clamp(1.8rem, 4vh, 3.6rem) 0 0;
}

.hero-deck p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(.98rem, .85rem + .35vw, 1.28rem);
  font-weight: 300;
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-deck strong {
  color: var(--white);
  font-weight: 700;
}

.scroll-mark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: .7rem;
  padding-bottom: .35rem;
  color: rgba(255, 255, 255, .58);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scroll-mark::after {
  width: clamp(2rem, 4vw, 4rem);
  height: 1px;
  background: var(--lime);
  content: "";
  transform-origin: left;
  animation: pulse-line 1.8s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { transform: scaleX(.25); opacity: .45; }
  50% { transform: scaleX(1); opacity: 1; }
}

.hero-portals {
  display: grid;
  align-self: end;
  border-top: 1px solid var(--line-dark);
}

.hero-link {
  --accent: var(--lime);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 6.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}

.hero-link:nth-child(2) {
  --accent: var(--cyan);
}

.hero-link:nth-child(3) {
  --accent: var(--oxide);
}

.hero-link::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 14%, transparent));
  content: "";
  transform: translateX(-105%);
  transition: transform .55s var(--ease-out);
}

.hero-link:hover::before,
.hero-link:focus-visible::before {
  transform: translateX(0);
}

.hero-link > * {
  position: relative;
}

.hero-link .index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: .67rem;
}

.hero-link .label {
  display: grid;
  gap: .12rem;
}

.hero-link .label strong {
  font-size: clamp(.94rem, 1.2vw, 1.12rem);
  line-height: 1.35;
}

.hero-link .label span {
  color: rgba(255, 255, 255, .56);
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.arrow {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  transition: color .35s ease, background .35s ease, transform .35s var(--ease-out);
}

a:hover .arrow,
a:focus-visible .arrow {
  color: var(--ink);
  background: var(--accent);
  transform: rotate(45deg);
}

.hero-coordinates {
  position: absolute;
  right: var(--page-pad);
  bottom: 1.1rem;
  display: flex;
  gap: .8rem;
  color: rgba(255, 255, 255, .28);
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.statement {
  position: relative;
  color: var(--ink);
  background: var(--paper);
}

.statement-inner {
  display: grid;
  grid-template-columns: minmax(11rem, .6fr) minmax(0, 2fr);
  gap: clamp(2rem, 7vw, 10rem);
  min-height: 90svh;
  padding: clamp(6rem, 11vw, 12rem) var(--page-pad);
}

.section-label {
  margin: .45rem 0 0;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.55;
  text-transform: uppercase;
}

.section-label span {
  display: block;
  color: color-mix(in srgb, currentColor 62%, transparent);
}

.statement-copy {
  align-self: center;
  min-width: 0;
}

.statement h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 8.7vw, 10rem);
  font-weight: 500;
  letter-spacing: -.09em;
  line-height: .86;
}

.statement h2 span {
  display: block;
}

.statement h2 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.statement h2 em {
  color: var(--oxide);
  font-family: var(--serif);
  font-size: .72em;
  font-weight: 400;
  letter-spacing: -.04em;
}

.statement-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 5rem);
  max-width: 52rem;
  margin-top: clamp(2.7rem, 6vw, 6rem);
  padding-top: clamp(1.4rem, 2.6vw, 2.6rem);
  border-top: 1px solid var(--line-light);
}

.statement-note p {
  margin: 0;
  font-size: clamp(1rem, .93rem + .25vw, 1.22rem);
  text-wrap: pretty;
}

.statement-note p:last-child {
  color: rgba(8, 9, 10, .58);
  font-size: .82em;
}

.word-rail {
  overflow: hidden;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: var(--lime);
}

.word-rail-track {
  display: flex;
  width: max-content;
  padding: .35rem 0 .65rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: 1;
  text-transform: uppercase;
  animation: rail 24s linear infinite;
}

.word-rail-track span {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding-right: .45em;
}

.word-rail-track span::after {
  color: var(--oxide);
  content: "✦";
  font-size: .45em;
}

@keyframes rail {
  to { transform: translateX(-50%); }
}

.portals {
  padding: clamp(7rem, 10vw, 11rem) var(--page-pad);
  background:
    radial-gradient(circle at 74% 8%, rgba(121, 108, 255, .16), transparent 27rem),
    var(--ink);
}

.portals-head {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: clamp(2rem, 7vw, 9rem);
  align-items: end;
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

.portals-head h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.4vw, 7rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .9;
}

.portals-head h2 em {
  color: var(--lime);
  font-family: var(--serif);
  font-weight: 400;
}

.portals-head p {
  max-width: 36rem;
  margin: 1.8rem 0 0;
  color: rgba(255, 255, 255, .62);
  text-wrap: pretty;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .97fr) minmax(0, .97fr);
  gap: clamp(1rem, 2.2vw, 2rem);
  perspective: 1200px;
}

/* Three narrow columns crush the card copy well before the 980px breakpoint,
   and two-up would leave a lone orphan, so drop straight to one column. */
@media (max-width: 1240px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card,
  .portal-card.quote,
  .portal-card.fee {
    min-height: 42rem;
    margin-top: 0;
  }
}

.portal-card {
  --accent: var(--oxide);
  --rx: 0deg;
  --ry: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(35rem, 66vw, 55rem);
  overflow: hidden;
  padding: clamp(1.4rem, 2.6vw, 2.8rem);
  border: 1px solid rgba(255, 255, 255, .18);
  background: var(--paper);
  color: var(--ink);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), border-color .35s ease, box-shadow .5s var(--ease-out);
}

.portal-card:hover {
  will-change: transform;
}

.portal-card.quote {
  --accent: var(--lime);
  min-height: clamp(32rem, 59vw, 50rem);
  margin-top: clamp(4rem, 9vw, 9rem);
  background: #0e1110;
  color: var(--white);
}

.portal-card.fee {
  --accent: var(--cyan);
  min-height: clamp(30rem, 55vw, 47rem);
  margin-top: clamp(7rem, 15vw, 15rem);
  background: #0b1014;
  color: var(--white);
}

.portal-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), color-mix(in srgb, var(--accent) 20%, transparent), transparent 32%);
  content: "";
  opacity: .45;
  transition: opacity .35s ease;
}

.portal-card::after {
  position: absolute;
  z-index: 4;
  inset: .65rem;
  border: 1px solid color-mix(in srgb, currentColor 13%, transparent);
  content: "";
  pointer-events: none;
}

.portal-card:hover,
.portal-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, .34);
}

.portal-card:hover::before,
.portal-card:focus-visible::before {
  opacity: .95;
}

.portal-meta {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-meta .index {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}

.portal-meta .index::before {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 1rem color-mix(in srgb, var(--accent) 60%, transparent);
  content: "";
}

.portal-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
}

.portal-art canvas {
  width: 100%;
  height: 100%;
  opacity: .7;
}

.profile .portal-art canvas {
  mix-blend-mode: multiply;
}

.quote .portal-art canvas {
  mix-blend-mode: screen;
}

.portal-body {
  position: relative;
  z-index: 5;
  align-self: end;
  max-width: 40rem;
  padding-top: clamp(12rem, 26vw, 22rem);
  transform: translateZ(26px);
}

.portal-kicker {
  display: block;
  margin-bottom: 1.1rem;
  color: color-mix(in srgb, currentColor 65%, transparent);
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.portal-card h3 {
  max-width: 9ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.55rem, 5.2vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .94;
}

.portal-card h3 em {
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
}

.portal-card .description {
  max-width: 34rem;
  margin: clamp(1.2rem, 2.3vw, 2rem) 0 0;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: clamp(.93rem, .86rem + .25vw, 1.16rem);
  text-wrap: pretty;
}

.portal-foot {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  transform: translateZ(18px);
}

.portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  margin: 0;
  padding: 0;
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .06em;
  list-style: none;
  text-transform: uppercase;
}

.portal-action {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  white-space: nowrap;
}

.portal-action .arrow {
  --accent: inherit;
  border-color: color-mix(in srgb, currentColor 45%, transparent);
  color: currentColor;
}

.method {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}

.method-top {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: clamp(2rem, 7vw, 9rem);
  padding: clamp(7rem, 11vw, 12rem) var(--page-pad) clamp(4rem, 8vw, 8rem);
}

.method-title h2 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 7rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .9;
}

.portals-head > *,
.method-title {
  min-width: 0;
}

.method-title h2 em {
  color: var(--oxide);
  font-family: var(--serif);
  font-weight: 400;
}

.method-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
  counter-reset: method;
}

.method-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr minmax(12rem, .8fr);
  align-items: baseline;
  gap: 1.25rem;
  padding: clamp(1.3rem, 2.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line-light);
  counter-increment: method;
}

.method-list li::before {
  color: var(--oxide);
  font-family: var(--mono);
  font-size: .65rem;
  content: "0" counter(method);
}

.method-list strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1;
}

.method-list span {
  color: rgba(8, 9, 10, .58);
  font-size: .86em;
}

.instrument-strip {
  position: relative;
  height: clamp(18rem, 34vw, 34rem);
  overflow: hidden;
  border-top: 1px solid var(--line-light);
  background: #d9d3c6;
}

.instrument-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74vw, 72rem);
  aspect-ratio: 1;
  border: 1px solid rgba(8, 9, 10, .35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.instrument-ring::before,
.instrument-ring::after {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(8, 9, 10, .2);
  border-radius: 50%;
  content: "";
}

.instrument-ring::after {
  inset: 31%;
  border-color: var(--oxide);
  box-shadow: 0 0 5rem rgba(255, 91, 67, .18);
}

.instrument-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 1px;
  background: rgba(8, 9, 10, .3);
  transform: translate(-50%, -50%) rotate(-12deg);
}

.instrument-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
  text-align: center;
}

.instrument-copy strong {
  max-width: 13ch;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 7rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .9;
}

.instrument-copy strong span {
  color: var(--oxide);
  font-family: var(--serif);
  font-weight: 400;
}

.x1x-section {
  position: relative;
  min-height: 85svh;
  overflow: hidden;
  background: var(--ink);
}

.x1x-link {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad) clamp(2rem, 4vw, 4rem);
}

.x1x-link::before,
.x1x-link::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(1px);
  transition: transform 1s var(--ease-out), opacity .6s ease;
}

.x1x-link::before {
  top: 7%;
  right: -6%;
  width: min(55vw, 46rem);
  aspect-ratio: 1;
  border: 1px solid rgba(114, 223, 255, .35);
  box-shadow: inset 0 0 8rem rgba(114, 223, 255, .07), 0 0 10rem rgba(121, 108, 255, .09);
}

.x1x-link::after {
  right: 18%;
  bottom: -18%;
  width: min(30vw, 26rem);
  aspect-ratio: 1;
  border: 1px solid rgba(216, 255, 79, .32);
  box-shadow: 0 0 7rem rgba(216, 255, 79, .08);
}

.x1x-link:hover::before,
.x1x-link:focus-visible::before {
  opacity: .7;
  transform: scale(1.08) translate(-3%, 2%);
}

.x1x-link:hover::after,
.x1x-link:focus-visible::after {
  transform: scale(.86) translate(-8%, -5%);
}

.x1x-kicker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, .55);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.x1x-main {
  position: relative;
  z-index: 2;
  align-self: center;
}

.x1x-main span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--lime);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 3.4rem);
  font-style: italic;
}

.x1x-main strong {
  display: block;
  max-width: 11ch;
  font-family: var(--display);
  font-size: clamp(4rem, 12.4vw, 14rem);
  font-weight: 500;
  letter-spacing: -.1em;
  line-height: .76;
}

.x1x-main strong em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .65);
}

.x1x-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}

.x1x-foot p {
  max-width: 30rem;
  margin: 0;
  color: rgba(255, 255, 255, .54);
  font-size: .76em;
}

.x1x-foot .arrow {
  --accent: var(--lime);
  width: 3.2rem;
  height: 3.2rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .6);
  background: var(--ink);
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.site-footer .credit {
  justify-self: center;
  color: rgba(255, 255, 255, .7);
}

.site-footer .credit strong {
  color: var(--lime);
  font-weight: 500;
}

.site-footer .top-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portal-card.reveal {
  transform: translateY(2.5rem) rotateX(var(--rx)) rotateY(var(--ry));
}

.portal-card.reveal.is-visible {
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}

@media (max-width: 980px) {
  :root { --header-h: 4.5rem; }

  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .header-status {
    justify-self: end;
    margin-right: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    display: grid;
    gap: 0;
    width: min(22rem, 100vw);
    padding: .45rem var(--page-pad) .9rem;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(8, 9, 10, .96);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity .3s ease, visibility .3s, transform .3s ease;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 3.35rem;
    padding: .85rem 0;
    border-top: 1px solid var(--line-dark);
  }

  .site-nav a::after {
    display: none;
  }

  .site-header.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header.menu-open .menu-toggle span:first-child {
    transform: translateY(.2rem) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:last-child {
    transform: translateY(-.2rem) rotate(-45deg);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-portals {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    border-top: 0;
  }

  .hero-link {
    min-height: 5.5rem;
    border-top: 1px solid var(--line-dark);
  }

  .statement-inner,
  .portals-head,
  .method-top {
    grid-template-columns: 1fr;
  }

  .statement-inner {
    min-height: auto;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card,
  .portal-card.quote,
  .portal-card.fee {
    min-height: 42rem;
    margin-top: 0;
  }

  .portal-body {
    padding-top: 14rem;
  }
}

@media (max-width: 700px) {
  :root { --page-pad: 1.15rem; }

  .header-status {
    font-size: .55rem;
  }

  .header-status .optional {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 1.5rem;
  }

  .hero-media img {
    object-position: center;
    opacity: .78;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(8, 9, 10, .98) 0%, rgba(8, 9, 10, .58) 55%, rgba(8, 9, 10, .4) 100%),
      linear-gradient(90deg, rgba(8, 9, 10, .8), transparent);
  }

  .hero h1 {
    font-size: clamp(3.25rem, 17vw, 5.4rem);
    line-height: .82;
  }

  .hero-deck {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .scroll-mark {
    display: none;
  }

  .hero-portals {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-link {
    min-height: 4.85rem;
  }

  .hero-link + .hero-link {
    border-top: 0;
  }

  .hero-coordinates,
  .cursor-aura {
    display: none;
  }

  .statement-inner {
    gap: 3rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .statement h2 {
    font-size: clamp(2.8rem, 12.5vw, 5.2rem);
    letter-spacing: -.1em;
  }

  .statement-note {
    grid-template-columns: 1fr;
  }

  .portals {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .portal-card,
  .portal-card.quote,
  .portal-card.fee {
    min-height: 39rem;
    padding: 1.25rem;
  }

  .portal-card::after {
    inset: .45rem;
  }

  .portal-body {
    padding-top: 12rem;
  }

  .portal-card h3 {
    font-size: clamp(2.6rem, 13vw, 4.5rem);
  }

  .portal-foot {
    align-items: center;
  }

  .portal-tags {
    display: none;
  }

  .method-top {
    padding-top: 6rem;
  }

  .method-list li {
    grid-template-columns: 2.4rem 1fr;
  }

  .method-list li span {
    grid-column: 2;
  }

  .x1x-section {
    min-height: 72svh;
  }

  .x1x-main strong {
    font-size: clamp(3.5rem, 20vw, 7rem);
  }

  .x1x-foot p {
    max-width: 18rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer .credit {
    justify-self: start;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .site-footer .copyright {
    grid-row: 2;
  }

  .site-footer .top-link {
    grid-row: 2;
  }
}

@media (max-height: 720px) and (min-width: 701px) {
  .hero {
    min-height: 49rem;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 8vw, 7rem);
  }
}

@media (hover: none), (pointer: coarse) {
  .portal-card {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .15s !important;
  }

  .hero-media img,
  .portal-card,
  .reveal,
  .hero h1 [data-reveal] {
    transform: none !important;
  }

  .hero-shader,
  .ambient-grain,
  .cursor-aura {
    display: none;
  }

  .word-rail-track {
    animation: none !important;
    transform: translateX(0) !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line-dark: rgba(255, 255, 255, .34);
    --line-light: rgba(8, 9, 10, .36);
  }

  .header-status,
  .eyebrow,
  .scroll-mark,
  .x1x-kicker,
  .site-footer {
    color: rgba(255, 255, 255, .88);
  }

  .hero-deck p,
  .hero-link .label span,
  .portals-head p,
  .x1x-foot p {
    color: rgba(255, 255, 255, .84);
  }

  .method-list span,
  .statement-note p:last-child {
    color: rgba(8, 9, 10, .84);
  }

  .portal-kicker,
  .portal-tags,
  .portal-card .description {
    color: color-mix(in srgb, currentColor 88%, transparent);
  }

  .hero h1 > span:nth-child(2) {
    -webkit-text-stroke-color: rgba(255, 255, 255, .9);
  }

  .hero-media img {
    opacity: .5;
  }

  .site-header {
    background: rgba(8, 9, 10, .95);
  }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .hero-link::before,
  .portal-card::before {
    background: transparent;
  }

  .portal-card .description,
  .portal-kicker {
    color: rgba(8, 9, 10, .62);
  }

  .portal-card.quote .description,
  .portal-card.quote .portal-kicker,
  .portal-card.fee .description,
  .portal-card.fee .portal-kicker {
    color: rgba(255, 255, 255, .62);
  }
}
