/* ==========================================================================
   Bio Link — styles
   Premium developer identity · dark cyber-tech. Vanilla CSS, no frameworks.
   ========================================================================== */

:root {
  /* Base */
  --bg: #050812;
  --surface: #0b1220;
  --surface-rgb: 11, 18, 32;

  /* Text */
  --text: #f5f7fa;
  --text-muted: #aab4c5;
  --text-subtle: #6b7891;

  /* Accents */
  --blue: #1677ff;
  --blue-rgb: 22, 119, 255;
  --cyan: #00d4ff;
  --cyan-rgb: 0, 212, 255;
  --gold-rgb: 227, 189, 111;
  --gold-light: #f6dfa6;

  /* Lines */
  --line: rgba(140, 170, 220, 0.14);
  --line-strong: rgba(140, 170, 220, 0.28);

  --online: #34d399;
  --watermark-opacity: 0.03;   /* background logo strength: 0.02–0.06 */

  /* Shape + motion */
  --radius-card: 16px;
  --radius-icon: 14px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-lift: cubic-bezier(0.34, 1.36, 0.64, 1);
  --dur: 320ms;

  /* Layout */
  --content-width: 720px;
  --gutter: 16px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  color-scheme: dark;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(var(--blue-rgb), 0.4);
  color: #fff;
}

/* ==========================================================================
   Ambient background
   ========================================================================== */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient > * {
  position: absolute;
}

/* Blueprint grid, strongest around the content */
.ambient__grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--blue-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--blue-rgb), 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 0%, transparent 75%);
  opacity: 0;
  animation: fade-in 2.4s var(--ease-out) 0.2s forwards;
}

/* Soft lights — radial gradients only (no blur filter, so they're cheap) */
.ambient__glow {
  border-radius: 50%;
  will-change: transform;
}

.ambient__glow--top {
  width: 900px;
  height: 600px;
  top: 120px;
  left: 50%;
  margin-left: -450px;
  background: radial-gradient(closest-side, rgba(var(--blue-rgb), 0.16), rgba(var(--blue-rgb), 0.04) 55%, transparent);
  animation: breathe 9s ease-in-out infinite alternate;
}

.ambient__glow--low {
  width: 680px;
  height: 680px;
  bottom: -340px;
  left: -280px;
  background: radial-gradient(closest-side, rgba(var(--cyan-rgb), 0.09), transparent);
  animation: drift-low 26s ease-in-out infinite alternate;
}

.ambient__glow--side {
  width: 600px;
  height: 600px;
  top: 40%;
  right: -340px;
  background: radial-gradient(closest-side, rgba(var(--blue-rgb), 0.12), transparent);
  animation: drift-side 32s ease-in-out infinite alternate;
}

/* SA watermarks — barely visible, partly off-canvas */
.ambient__watermark {
  aspect-ratio: 1 / 1;              /* the logo file is square */
  background: url("assets/sm-logo-1024.jpg") center / contain no-repeat;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent);
  mask-image: radial-gradient(closest-side, #000 70%, transparent);
  opacity: 0;
  animation: watermark-in 2s var(--ease-out) 0.4s forwards;
}

.ambient__watermark--right {
  top: 26%;
  right: -16%;
  width: min(720px, 95vw);
}

.ambient__watermark--left {
  bottom: -14%;
  left: -16%;
  width: min(520px, 80vw);
  --watermark-opacity: 0.02;
}

/* Angled neon panel rails down both sides */
.ambient__rail {
  top: 0;
  height: 100%;
  width: 18vh;
  min-width: 120px;
  display: none;
  overflow: visible;
}

.ambient__rail--left { left: 0; }
.ambient__rail--right { right: 0; transform: scaleX(-1); }

.rail__panel {
  fill: rgba(var(--surface-rgb), 0.55);
}

.rail__line {
  fill: none;
  stroke: rgba(var(--blue-rgb), 0.55);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(var(--blue-rgb), 0.8));
}

.rail__line--dim {
  stroke: rgba(var(--blue-rgb), 0.22);
  filter: none;
}

/* A short pulse of light travelling along the rail */
.rail__flow {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 50 950;
  filter: drop-shadow(0 0 5px var(--cyan));
  animation: rail-flow 7s linear infinite;
}

.ambient__rail--right .rail__flow { animation-delay: -3.5s; }

.rail__node {
  fill: var(--cyan);
  filter: drop-shadow(0 0 4px var(--cyan));
}

@keyframes rail-flow {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

@media (min-width: 1100px) {
  .ambient__rail { display: block; }
}

/* Floating "data" particles (drawn by script.js) */
.ambient__particles {
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Soft light that trails the cursor on desktop (moved by script.js) */
.ambient__cursor {
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--blue-rgb), 0.08), rgba(var(--blue-rgb), 0.02) 50%, transparent);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  will-change: transform;
}

.ambient__cursor.is-active {
  opacity: 1;
}

/* Fine film grain so the gradients don't band */
.ambient__grain {
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Vignette — keeps edges dark and the content readable */
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes watermark-in {
  to { opacity: var(--watermark-opacity, 0.045); }
}

@keyframes breathe {
  from { transform: scale(1);    opacity: 0.8; }
  to   { transform: scale(1.08); opacity: 1; }
}

@keyframes drift-low {
  to { transform: translate3d(90px, -60px, 0) scale(1.1); }
}

@keyframes drift-side {
  to { transform: translate3d(-90px, 50px, 0) scale(1.12); }
}

/* ==========================================================================
   Hero banner
   --------------------------------------------------------------------------
   The banner's bottom edge steps up in the middle (a "tab" the profile sits
   in). The frame is filled with the neon gradient and the inner layer is the
   same shape 2px shorter, so a thin glowing line traces the edge.
   ========================================================================== */

.hero {
  --hero-h: clamp(360px, 32vw, 470px);
  --hero-x: max(calc(var(--gutter) + 8px), calc(50% - 600px));  /* left/right inset of bar + copy */
  --tab-w: min(300px, 30vw);   /* half-width of the raised centre */
  --tab-h: 30px;
  --tab-slope: 36px;
  --shape: polygon(
    0 0, 100% 0, 100% 100%,
    calc(50% + var(--tab-w) + var(--tab-slope)) 100%,
    calc(50% + var(--tab-w)) calc(100% - var(--tab-h)),
    calc(50% - var(--tab-w)) calc(100% - var(--tab-h)),
    calc(50% - var(--tab-w) - var(--tab-slope)) 100%,
    0 100%
  );

  position: relative;
  z-index: 1;
  height: var(--hero-h);
}

.hero__frame {
  position: absolute;
  inset: 0;
  -webkit-clip-path: var(--shape);
  clip-path: var(--shape);
  background: linear-gradient(90deg,
    rgba(var(--blue-rgb), 0) 0%,
    rgba(var(--blue-rgb), 0.9) 22%,
    var(--cyan) 50%,
    rgba(var(--blue-rgb), 0.9) 78%,
    rgba(var(--blue-rgb), 0) 100%);
}

.hero__inner {
  position: absolute;
  inset: 0 0 2px;
  overflow: hidden;
  -webkit-clip-path: var(--shape);
  clip-path: var(--shape);
  background:
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(var(--blue-rgb), 0.18), transparent 70%),
    linear-gradient(180deg, #050913, #091226);
}

/* Angled neon panel lines on the far left of the banner */
.hero__inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 280px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 430' preserveAspectRatio='xMinYMin slice'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M0 40 L70 110 L70 300 L150 380 L280 380' stroke='%231677ff' stroke-opacity='.55' stroke-width='1.5'/%3E%3Cpath d='M0 160 L30 190 L30 330 L0 360' stroke='%231677ff' stroke-opacity='.25'/%3E%3Cpath d='M0 40 L70 110' stroke='%2300d4ff' stroke-width='2.5'/%3E%3C/g%3E%3C/svg%3E") left top / auto 100% no-repeat;
  opacity: 0.9;
}

.hero__scene {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  opacity: 0;
  animation: fade-in 1.4s var(--ease-out) 0.1s forwards;
}

/* Darkens behind the text, and fades the bottom so the avatar stands out */
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.9) 0%, rgba(5, 8, 18, 0.62) 30%, rgba(5, 8, 18, 0) 58%),
    linear-gradient(0deg, rgba(5, 8, 18, 0.75) 0%, rgba(5, 8, 18, 0) 34%);
}

/* Top bar: brand on the left, motto on the right */
.hero__bar {
  position: absolute;
  top: 22px;
  left: var(--hero-x);
  right: var(--hero-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(var(--blue-rgb), 0.6), 0 0 16px rgba(var(--blue-rgb), 0.45);
}

.hero__brand-sep {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(var(--blue-rgb), 0.9), transparent);
}

.hero__brand-name,
.hero__motto-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}

.hero__motto {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.hero__motto-text {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero__motto-text .dot-sep { margin: 0 0.85em 0 0.6em; }

/* "////" stripe motif */
.stripes {
  display: inline-block;
  width: 58px;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 9px, transparent 9px 15px);
  transform: skewX(-28deg);
  filter: drop-shadow(0 0 6px rgba(var(--blue-rgb), 0.7));
}

.hero__copy {
  position: absolute;
  left: var(--hero-x);
  top: 56px;
  bottom: calc(var(--tab-h) + 16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

.hero__statement {
  position: relative;
  max-width: 8.6em;
  padding-left: 0.62em;
  font-size: clamp(1.75rem, 3.1vw, 2.875rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

/* Glowing vertical accent bar */
.hero__statement::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 14px rgba(var(--blue-rgb), 0.9);
}

.hero__statement em {
  font-style: italic;
  font-weight: 800;
  padding-right: 0.06em;   /* room for the italic overhang */
  background: linear-gradient(90deg, #2b8cff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(var(--blue-rgb), 0.45));
}

.hero__tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Small cyan dots between items */
.dot-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 0.95em;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  vertical-align: middle;
}

/* letter-spacing leaves trailing space after each word, so the left margin is smaller */
.hero__tagline .dot-sep { margin: 0 0.85em 0 0.6em; }

/* Glow spilling below the banner edge */
.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -70px;
  width: min(980px, 110%);
  height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(var(--blue-rgb), 0.28), transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   Page
   ========================================================================== */

.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding:
    0
    max(var(--gutter), env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* ==========================================================================
   Profile
   ========================================================================== */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  --size: 136px;

  position: relative;
  isolation: isolate;
  width: var(--size);
  height: var(--size);
  margin-top: calc(var(--size) * -0.66);   /* overlaps the banner edge */
  margin-bottom: 22px;
}

/* Blue glow behind the frame */
.avatar__halo {
  position: absolute;
  inset: -50%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--blue-rgb), 0.42), rgba(var(--blue-rgb), 0.1) 55%, transparent);
  animation: halo 4.5s ease-in-out infinite alternate;
}

@keyframes halo {
  from { transform: scale(0.9);  opacity: 0.7; }
  to   { transform: scale(1.05); opacity: 1; }
}

/* Thin outer orbit with two small travelling lights */
.avatar__orbit {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
  animation: spin 22s linear infinite;
}

.avatar__orbit::before,
.avatar__orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  border-radius: 50%;
}

.avatar__orbit::before {
  top: -3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: #bdf3ff;
  box-shadow: 0 0 10px 2px rgba(var(--cyan-rgb), 0.7);
}

.avatar__orbit::after {
  bottom: -2px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  background: rgba(var(--cyan-rgb), 0.7);
}

/* Main frame: a slowly turning electric-blue gradient ring */
.avatar__ring {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 50%;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.95),
    0 0 46px -6px rgba(var(--blue-rgb), 0.7);
}

.avatar__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--cyan),
    var(--blue) 25%,
    rgba(var(--blue-rgb), 0.35) 50%,
    var(--blue) 75%,
    var(--cyan)
  );
  animation: spin 10s linear infinite;
}

.avatar__img,
.avatar__fallback {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--bg);
  object-fit: cover;
  background: radial-gradient(circle at 50% 28%, #12203d, #060a14 72%);
}

.avatar__fallback {
  display: none;
  place-items: center;
  font-size: 38px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #7fd8ff;
}

/* Logo mode (avatarFit: 'contain'): whole logo visible, centred, padded */
.avatar--logo .avatar__img {
  object-fit: contain;
  padding: 15%;
  filter: drop-shadow(0 0 10px rgba(var(--blue-rgb), 0.35));
}

/* Shown by script.js if the profile image fails to load */
.avatar.is-fallback .avatar__img { display: none; }
.avatar.is-fallback .avatar__fallback { display: grid; }

/* Verified badge */
.verified {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 4%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3.5px solid var(--bg);
  background: linear-gradient(160deg, #3d9bff, var(--blue));
  color: #fff;
  box-shadow: 0 0 16px rgba(var(--blue-rgb), 0.75);
}

.verified svg {
  width: 17px;
  height: 17px;
}

/* Online dot (alternative to the verified badge) */
.status {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 5%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--online);
  border: 3.5px solid var(--bg);
}

.status::after {
  content: "";
  position: absolute;
  inset: -3.5px;
  border-radius: 50%;
  border: 2px solid var(--online);
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%,
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.profile__name {
  font-size: clamp(1.875rem, 4vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 30%, #c9dcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile__sep {
  margin: 0 0.12em;
  font-weight: 300;
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
}

.profile__handle {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #8fe3ff;
  background: rgba(var(--cyan-rgb), 0.06);
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
}

.profile__title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 2px;
  margin-top: 14px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #d3dae6;
}

/* Bio flanked by thin rules */
.profile__bio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin-top: 14px;
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: #dfe5ef;
  text-wrap: balance;
}

.profile__bio::before,
.profile__bio::after {
  content: "";
  flex: 0 1 80px;
  min-width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--blue-rgb), 0.7));
}

.profile__bio::after {
  background: linear-gradient(90deg, rgba(var(--blue-rgb), 0.7), transparent);
}

/* ==========================================================================
   Section headings
   ========================================================================== */

.section-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #2fb4ff;
  text-shadow: 0 0 18px rgba(var(--blue-rgb), 0.55);
  white-space: nowrap;
}

.section-heading::before,
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--blue-rgb), 0.6));
}

.section-heading::after {
  background: linear-gradient(90deg, rgba(var(--blue-rgb), 0.6), transparent);
}

/* ==========================================================================
   Links
   ========================================================================== */

.links__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links__noscript {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---------- Card ---------- */

.link {
  --accent-rgb: var(--blue-rgb);
  --slant: 64px;     /* width of the diagonal edge on the artwork panel */
  --x: 50%;
  --y: 50%;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 84px;
  padding: 0 18px;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, rgba(var(--surface-rgb), 0.95), rgba(var(--surface-rgb), 0.8));
  border: 1px solid rgba(var(--blue-rgb), 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 26px rgba(var(--blue-rgb), 0.06),
    0 16px 40px -28px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.5s var(--ease-lift),
    opacity var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

/* Inner light that follows the cursor (position set by script.js) */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--x) var(--y), rgba(var(--blue-rgb), 0.14), transparent 65%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

/* Neon border highlight that follows the cursor */
.link::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--x) var(--y), rgba(var(--cyan-rgb), 1), rgba(var(--blue-rgb), 0.35) 45%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

/* ---------- Artwork panel (right side, diagonal left edge) ---------- */

.link__art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  width: 52%;
  color: rgba(var(--accent-rgb), 0.6);
  -webkit-clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  background: var(--art, linear-gradient(90deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0.1)));
  transition: filter var(--dur) var(--ease-out);
}

/* Bright line along the diagonal edge. In a box exactly --slant wide, the
   50% line of a "to bottom right" gradient runs corner to corner — the edge. */
.link__art::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--slant);
  background: linear-gradient(to bottom right,
    transparent 49.5%,
    rgba(var(--accent-rgb), 0.95) 50.5%,
    rgba(var(--accent-rgb), 0) 56%);
}

.link__art-glyph {
  position: absolute;
  top: 50%;
  right: 18%;
  width: 92px;
  height: 92px;
  color: #fff;
  opacity: 0.2;
  transform: translateY(-50%) rotate(-10deg);
  transition:
    opacity var(--dur) var(--ease-out),
    transform 0.6s var(--ease-lift);
}

.link__art-glyph svg {
  width: 100%;
  height: 100%;
}

.link__chart,
.link__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Per-platform textures */
.link[data-brand="tiktok"] {
  --art:
    radial-gradient(60% 130% at 78% 70%, rgba(254, 44, 85, 0.24), transparent 70%),
    linear-gradient(90deg, rgba(37, 244, 238, 0.3), rgba(var(--blue-rgb), 0.16) 35%, rgba(var(--blue-rgb), 0.04) 75%);
}

.link[data-brand="tiktok"] .link__art-glyph {
  opacity: 0.32;
  filter: drop-shadow(-4px -3px 0 #25f4ee) drop-shadow(4px 3px 0 #fe2c55);
}

.link[data-brand="instagram"] {
  --art: linear-gradient(90deg,
    rgba(253, 89, 73, 0.18) 0%,
    rgba(253, 89, 73, 0.5) 22%,
    rgba(214, 36, 159, 0.5) 52%,
    rgba(129, 52, 175, 0.48) 78%,
    rgba(64, 93, 230, 0.4) 100%);
}

.link[data-brand="instagram"] .link__art-glyph { opacity: 0.28; }

.link[data-brand="threads"] {
  --art:
    repeating-radial-gradient(circle at 80% 125%, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 15px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.link[data-brand="threads"] .link__art-glyph { opacity: 0.14; }

.link[data-brand="facebook"] {
  --art:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px),
    linear-gradient(90deg, rgba(8, 102, 255, 0.55), rgba(8, 102, 255, 0.16) 45%, rgba(8, 102, 255, 0.34));
}

.link[data-brand="facebook"] .link__art-glyph { opacity: 0.24; }

.link[data-brand="telegram"] {
  --art: linear-gradient(90deg, rgba(42, 171, 238, 0.42), rgba(var(--blue-rgb), 0.14) 45%, rgba(42, 171, 238, 0.28));
}

.link[data-brand="telegram"] .link__art { color: rgba(170, 225, 255, 0.5); }
.link[data-brand="telegram"] .link__art-glyph { opacity: 0.26; }

.link[data-brand="whatsapp"] {
  --art: linear-gradient(90deg, rgba(37, 211, 102, 0.26), rgba(var(--blue-rgb), 0.14) 45%, rgba(37, 211, 102, 0.16));
}

.link[data-brand="whatsapp"] .link__art-glyph { opacity: 0.2; }

/* ---------- Icon (official marks) ---------- */

.link__icon {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-icon);
  color: #fff;
  transition: transform 0.5s var(--ease-lift), box-shadow var(--dur) var(--ease-out);
}

.link__icon svg {
  width: 30px;
  height: 30px;
}

/* App-icon style tiles */
.link[data-brand="instagram"] .link__icon {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px -10px rgba(214, 36, 159, 0.8);
}

.link[data-brand="threads"] .link__icon {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px -12px rgba(0, 0, 0, 0.9);
}

.link[data-brand="threads"] .link__icon svg { width: 28px; height: 28px; }

.link[data-brand="whatsapp"] .link__icon {
  background: #25d366;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px -10px rgba(37, 211, 102, 0.8);
}

/* Bare marks */
.link[data-brand="tiktok"] .link__icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(-2px -1.5px 0 #25f4ee) drop-shadow(2px 1.5px 0 #fe2c55);
}

.link[data-brand="facebook"] .link__icon svg,
.link[data-brand="telegram"] .link__icon svg {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 8px 16px rgba(var(--accent-rgb), 0.45));
}

/* ---------- Text ---------- */

.link__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.link__label {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.link__sub {
  margin-top: 5px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #d3dae6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron in a circle */
.link__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 247, 250, 0.75);
  background: rgba(5, 8, 18, 0.5);
  color: var(--text);
  transition:
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}

.link__go svg {
  width: 17px;
  height: 17px;
  transition: transform 0.45s var(--ease-lift);
}

/* ---------- Hover (real pointers only — no sticky states on touch) ---------- */

@media (hover: hover) and (pointer: fine) {
  .link:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--cyan-rgb), 0.65);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 0 1px rgba(var(--blue-rgb), 0.3),
      0 0 28px -4px rgba(var(--blue-rgb), 0.45),
      0 22px 44px -22px rgba(0, 0, 0, 0.95);
  }

  .link:hover::before,
  .link:hover::after {
    opacity: 1;
  }

  /* Focus the hovered card by quietly dimming the others */
  .links__list:has(.link:hover) .link:not(:hover) {
    opacity: 0.62;
  }

  .link:hover .link__art {
    filter: saturate(1.25) brightness(1.2);
  }

  .link:hover .link__art-glyph {
    opacity: 0.38;
    transform: translateY(-50%) rotate(-4deg) scale(1.08);
  }

  .link[data-brand="threads"]:hover .link__art-glyph { opacity: 0.22; }

  .link:hover .link__icon {
    transform: scale(1.07) rotate(-4deg);
  }

  .link:hover .link__go {
    color: #fff;
    border-color: var(--cyan);
    background: rgba(var(--blue-rgb), 0.22);
    box-shadow: 0 0 16px rgba(var(--cyan-rgb), 0.55);
  }

  .link:hover .link__go svg {
    transform: translateX(2px);
  }
}

/* Touch feedback */
.link:active {
  transform: scale(0.985);
  transition-duration: 120ms;
}

.link:active::after {
  opacity: 1;
}

.link:focus-visible,
.partner__card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ==========================================================================
   Featured link card (optional: set `featured: true` on any link)
   ========================================================================== */

.link--featured {
  --accent-rgb: var(--gold-rgb);
  --art: radial-gradient(60% 140% at 90% 60%, rgba(var(--gold-rgb), 0.22), transparent 70%);
  background: linear-gradient(90deg, rgba(18, 14, 7, 0.96), rgba(26, 19, 7, 0.75));
  border-color: transparent;
}

.link__border {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    rgba(var(--gold-rgb), 0.3) 0%,
    rgba(246, 223, 166, 0.95) 10%,
    rgba(var(--gold-rgb), 0.3) 24%,
    rgba(var(--gold-rgb), 0.3) 52%,
    rgba(var(--gold-rgb), 0.65) 63%,
    rgba(var(--gold-rgb), 0.3) 76%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-travel 7s linear infinite;
  pointer-events: none;
}

@keyframes border-travel {
  to { --angle: 360deg; }
}

.link__chart line,
.partner__chart line { stroke: rgba(var(--gold-rgb), 0.5); }
.link__chart .up,
.partner__chart .up { fill: rgba(var(--gold-rgb), 0.75); }
.link__chart .down,
.partner__chart .down { fill: rgba(var(--gold-rgb), 0.24); }

.link__badge {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(14, 11, 5, 0.75);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
}

/* Image logo cropped from a larger file without altering it.
   The crop box in the 375×87 source is x 24–68, y 15–71 (44×56 px):
   size     = 375 / 44             → 852.27%
   position = 24 / (375 − 44)      → 7.25%
              15 / (87 − 56)       → 48.39%                                  */
.link__logo--m4y {
  width: 22px;
  aspect-ratio: 44 / 56;
  background: url("assets/markets4you-logo.png") no-repeat;
  background-size: 852.27% auto;
  background-position: 7.25% 48.39%;
}

/* ==========================================================================
   Partner banner — Markets4You broker registration (black & gold)
   ========================================================================== */

.partner {
  align-self: center;
  width: min(940px, calc(100vw - var(--gutter) * 2));
  margin-top: 4px;
}

.partner__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 26px;
  min-height: 104px;
  padding: 18px 26px;
  border-radius: 18px;
  background: linear-gradient(100deg, #0b0905 0%, #130f08 45%, #1c1508 100%);
  box-shadow:
    0 0 0 1px rgba(var(--gold-rgb), 0.12),
    0 0 44px -12px rgba(var(--gold-rgb), 0.35),
    0 26px 60px -32px rgba(0, 0, 0, 0.95);
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.5s var(--ease-lift),
    box-shadow var(--dur) var(--ease-out);
}

/* Gold corner wedges */
.partner__card::before,
.partner__card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 64px;
  height: 64px;
  pointer-events: none;
}

.partner__card::before {
  top: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.55) 0 14px, transparent 15px);
}

.partner__card::after {
  right: 0;
  bottom: 0;
  background: linear-gradient(315deg, #f3c25a 0 22px, transparent 23px);
  filter: drop-shadow(0 0 10px rgba(243, 194, 90, 0.6));
}

.partner__border {
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    rgba(var(--gold-rgb), 0.35) 0%,
    rgba(255, 226, 150, 1) 10%,
    rgba(var(--gold-rgb), 0.35) 24%,
    rgba(var(--gold-rgb), 0.35) 52%,
    rgba(var(--gold-rgb), 0.75) 63%,
    rgba(var(--gold-rgb), 0.35) 76%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-travel 7s linear infinite;
  pointer-events: none;
}

.partner__art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 40%;
  background: radial-gradient(60% 120% at 85% 70%, rgba(var(--gold-rgb), 0.2), transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}

.partner__chart {
  position: absolute;
  inset: 8px 0;
  width: 100%;
  height: calc(100% - 16px);
}

.partner__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.partner__mark {
  width: 30px;
  filter: drop-shadow(0 0 10px rgba(0, 187, 68, 0.45));
}

.partner__wordmark {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

.partner__wordmark-accent { color: #22d35f; }

/* Complete logo file (Harmovest Capital), sized by height so it never distorts */
.partner__logo {
  display: block;
  width: auto;
  height: 56px;
  margin-right: 0.3px; /* with the height, exactly as wide as the Markets4You brand: the dividers line up */
}

/* This title is 0.832em shorter than the Markets4You one. Reserving the
   difference makes both wrap at the same width, so the pair stays equal height. */
#partner-harmovest .partner__title { padding-right: 0.832em; }

.partner__divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(var(--gold-rgb), 0.85), transparent);
}

.partner__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.partner__badge {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--gold-rgb), 0.8);
}

.partner__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.partner__dash,
.partner__highlight { color: #f3c25a; }

.partner__desc {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.partner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px 12px 20px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 800;
  white-space: nowrap;
  color: #1a1204;
  background: linear-gradient(180deg, #ffd978, #f0b429);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 26px -10px rgba(240, 180, 41, 0.75);
  transition: box-shadow var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
}

.partner__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--ease-lift);
}

@media (hover: hover) and (pointer: fine) {
  .partner__card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 0 0 1px rgba(var(--gold-rgb), 0.3),
      0 0 60px -10px rgba(var(--gold-rgb), 0.5),
      0 26px 60px -30px rgba(0, 0, 0, 0.95);
  }

  .partner__card:hover .partner__cta {
    filter: brightness(1.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      0 12px 32px -8px rgba(240, 180, 41, 0.9);
  }

  .partner__card:hover .partner__cta svg { transform: translateX(3px); }
}

.partner__card:active {
  transform: scale(0.99);
  transition-duration: 120ms;
}

/* ==========================================================================
   Tech stack
   ========================================================================== */

.stack {
  align-self: center;
  width: min(980px, calc(100vw - var(--gutter) * 2));
}

/* Wrapping flex row (same column widths as an even grid) so a short last row centres. */
.stack__list {
  --cols: 11;
  --col-gap: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px var(--col-gap);
}

.stack__item {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--col-gap)) / var(--cols));
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-radius: 14px;
  transition:
    transform 0.45s var(--ease-lift),
    background-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.stack__item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: filter var(--dur) var(--ease-out);
}

.stack__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #cfd6e2;
  text-align: center;
  white-space: nowrap;
}

.stack__detail {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
}

@media (hover: hover) and (pointer: fine) {
  .stack__item:hover {
    transform: translateY(-4px);
    background: rgba(var(--surface-rgb), 0.9);
    box-shadow:
      inset 0 0 0 1px rgba(var(--blue-rgb), 0.45),
      0 10px 26px -10px rgba(var(--blue-rgb), 0.7);
  }

  .stack__item:hover img {
    filter: drop-shadow(0 0 8px rgba(var(--cyan-rgb), 0.45));
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  text-align: center;
}

.footer__motto {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #e6ebf3;
}

.footer__motto::before,
.footer__motto::after {
  content: "";
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170, 180, 197, 0.6));
}

.footer__motto::after {
  background: linear-gradient(90deg, rgba(170, 180, 197, 0.6), transparent);
}

.footer__note {
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer__copy {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
}

/* ==========================================================================
   Entrance animation
   ========================================================================== */

.reveal {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

.avatar.reveal {
  animation-name: avatar-in;
  animation-duration: 1.1s;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none;             filter: none; }
}

@keyframes avatar-in {
  from { opacity: 0; transform: scale(0.86); filter: blur(8px); }
  to   { opacity: 1; transform: none;        filter: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .stack__list { --cols: 6; }
}

@media (max-width: 720px) {
  .hero {
    --hero-h: 392px;
    --hero-x: calc(var(--gutter) + 4px);
    --tab-w: min(110px, 28vw);
    --tab-h: 22px;
    --tab-slope: 26px;
  }

  .hero__scene { right: -16px; }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(5, 8, 18, 0.92) 0%, rgba(5, 8, 18, 0.7) 45%, rgba(5, 8, 18, 0.15) 80%),
      linear-gradient(180deg, rgba(5, 8, 18, 0.7) 0%, rgba(5, 8, 18, 0) 20%),
      linear-gradient(0deg, rgba(5, 8, 18, 0.85) 0%, rgba(5, 8, 18, 0) 40%);
  }

  .hero__bar { top: 18px; }
  .hero__logo { width: 34px; height: 34px; }
  .hero__brand { gap: 11px; }
  .hero__brand-name { font-size: 0.6875rem; letter-spacing: 0.22em; }
  .hero__motto-text { display: none; }
  .stripes { width: 44px; height: 8px; }

  .hero__copy {
    right: var(--gutter);
    top: 82px;
    bottom: auto;
    justify-content: flex-start;
  }

  .hero__statement { font-size: 2rem; }

  .avatar {
    --size: 118px;
    margin-bottom: 18px;
  }

  .page { gap: 28px; }

  .profile__title { font-size: 0.9375rem; }
  .profile__title .dot-sep { margin: 0 0.7em; }

  .profile__bio {
    gap: 12px;
    font-size: 1rem;
  }

  .links__list { gap: 10px; }

  .link {
    --slant: 46px;
    gap: 14px;
    height: 76px;
    padding: 0 14px 0 12px;
  }

  .link__icon { width: 46px; height: 46px; border-radius: 13px; }
  .link__icon svg { width: 26px; height: 26px; }
  .link[data-brand="tiktok"] .link__icon svg { width: 32px; height: 32px; }
  .link[data-brand="threads"] .link__icon svg { width: 25px; height: 25px; }
  .link[data-brand="facebook"] .link__icon svg,
  .link[data-brand="telegram"] .link__icon svg { width: 42px; height: 42px; }

  .link__label { font-size: 1rem; }
  .link__sub { margin-top: 4px; font-size: 0.8125rem; }
  .link__go { width: 34px; height: 34px; }

  .link__art { width: 42%; }
  .link__art-glyph { width: 62px; height: 62px; right: 36%; }

  /* Partner banner stacks vertically */
  .partner__card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 14px;
    padding: 20px 20px 22px;
  }

  .partner__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.8), transparent);
  }

  .partner__wordmark { font-size: 1.5rem; }
  .partner__mark { width: 26px; }
  .partner__logo { height: 46px; margin-block: -5px; } /* takes up 36px, like the Markets4You brand */
  .partner__title { font-size: 1.0625rem; }
  .partner__cta { justify-self: stretch; padding: 13px 18px; }
  .partner__art { width: 60%; height: 46%; bottom: auto; opacity: 0.55; }

  .footer__motto { gap: 14px; font-size: 0.875rem; letter-spacing: 0.3em; }
  .footer__motto::before,
  .footer__motto::after { width: 40px; }
}

@media (max-width: 560px) {
  .stack__list { --cols: 4; }
}

@media (max-width: 359px) {
  .hero__statement { font-size: 1.75rem; }
  .avatar { --size: 104px; }
  .profile__name { font-size: 1.5rem; }
  .link { gap: 12px; padding: 0 10px; }
  .link__badge { display: none; }
  .partner__wordmark { font-size: 1.3rem; }
  .partner__logo { height: 43px; } /* takes up 33px, like the Markets4You brand here */
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .status::after,
  .rail__flow,
  .ambient__particles,
  .ambient__cursor { display: none; }
}
