/* =========================================================
   HUD PANEL — the site's one shared "instrument reading"
   surface language. Every bordered panel on the page (about
   dossier, orbit systems, signal transcripts) uses this same
   corner-bracket + hairline-seam treatment instead of each
   inventing its own glass-card-with-glow, so the whole site
   reads as one instrument rather than a set of components.

   Corners are drawn with eight 1px background gradients (no
   extra DOM, no clashing with the ::before spotlight layer
   some panels also use) — 18px is the bracket length, chosen
   to match the hairline weight used everywhere else (--rim
   borders, 1px underlines) at a size legible against panel
   padding of 1.6–2.4rem.
========================================================= */
.hud-panel{
  --hud-len: 18px;
  --hud-c: var(--gold-rim);
  --hud-corners:
    linear-gradient(var(--hud-c), var(--hud-c)), linear-gradient(var(--hud-c), var(--hud-c)),
    linear-gradient(var(--hud-c), var(--hud-c)), linear-gradient(var(--hud-c), var(--hud-c)),
    linear-gradient(90deg, var(--hud-c), var(--hud-c)), linear-gradient(90deg, var(--hud-c), var(--hud-c)),
    linear-gradient(90deg, var(--hud-c), var(--hud-c)), linear-gradient(90deg, var(--hud-c), var(--hud-c));
  --hud-corners-size:
    var(--hud-len) 1px, var(--hud-len) 1px, var(--hud-len) 1px, var(--hud-len) 1px,
    1px var(--hud-len), 1px var(--hud-len), 1px var(--hud-len), 1px var(--hud-len);
  --hud-corners-pos: 0 0, 0 100%, 100% 0, 100% 100%, 0 0, 0 100%, 100% 0, 100% 100%;
  position: relative;
  background-color: var(--void2);
  background-image: var(--hud-corners);
  background-repeat: no-repeat;
  background-size: var(--hud-corners-size);
  background-position: var(--hud-corners-pos);
  transition: background-image .35s var(--ease);
}
/* Panels that need their own tone under the brackets (rather than flat
   --void2) layer that tone as an extra background-image plus the shared
   --hud-corners token — composing via custom properties instead of
   letting two classes fight over the `background` shorthand, which
   silently drops whichever layer loses the cascade. A single
   background-repeat: no-repeat still applies to every layer here: the
   spec cycles a shorter value list to match the layer count. */
.ts-card.hud-panel, .orbit-panel.hud-panel{
  background-color: transparent;
  background-image: linear-gradient(180deg, #050508, #08080d), var(--hud-corners);
  background-size: auto, var(--hud-corners-size);
  background-position: 0 0, var(--hud-corners-pos);
}
.hud-panel-tag{
  position: absolute; top: -.6rem; left: 1.4rem; padding: 0 .6rem; background: var(--void);
  font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold3);
}
@media (prefers-reduced-motion: reduce){ .hud-panel{ transition: none; } }

/* =========================================================
   SHARED BUTTONS
========================================================= */
.btn-primary{
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 2px; color: var(--void);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 8px 30px rgba(201,165,90,.22);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary::before{
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .7s var(--ease2);
}
.btn-primary:hover::before{ transform: translateX(120%); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,165,90,.34); }
@media (prefers-reduced-motion: reduce){ .btn-primary::before{ display: none; } }

.btn-secondary{
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 2px; color: var(--ivory2); border: 1px solid var(--rim2);
  transition: all .3s var(--ease);
}
.btn-secondary:hover{ border-color: var(--gold-rim); color: var(--gold2); }

/* =========================================================
   HERO
========================================================= */
#hero{ min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); position: relative; }
.hero-inner{ max-width: 1260px; margin: 0 auto; width: 100%; }
.hero-eyebrow{
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.6rem; display: flex; align-items: center; gap: .9rem;
}
.hero-eyebrow .line{ width: 36px; height: 1px; background: var(--gold3); }
.tcursor{
  display: inline-block; width: 7px; height: 1em; background: var(--gold2); margin-left: .15em; vertical-align: -2px;
  animation: tcursor-blink 1.1s step-end infinite;
}
@media (prefers-reduced-motion: reduce){ .tcursor{ animation: none; opacity: .7; } }

.hero-title{
  font-family: var(--ff-ser); font-weight: 300; line-height: .98; letter-spacing: -.01em;
  font-size: clamp(3rem, 9vw, 7.2rem); margin-bottom: 1.8rem;
}
.hero-title .l1{ display: block; color: var(--ivory); }
.hero-title .l2{
  display: block; font-style: italic;
  background: linear-gradient(120deg, var(--gold2), var(--ivory) 45%, var(--cosmic2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub{ max-width: 560px; font-size: clamp(.98rem, 1.4vw, 1.12rem); line-height: 1.75; color: var(--muted); font-weight: 300; margin-bottom: 2.6rem; }
.hero-sub strong{ color: var(--ivory2); font-weight: 500; }
.hero-ctas{ display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 5rem; }

.hero-coords{
  display: flex; gap: clamp(1.6rem, 4vw, 3.4rem); flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .08em; color: var(--muted2); text-transform: uppercase;
  padding-top: 1.6rem; border-top: 1px solid var(--rim);
}
.hero-coords span b{ display: block; color: var(--ivory3); font-size: .72rem; margin-top: .3rem; letter-spacing: .03em; }

.scroll-cue{
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted2);
}
.scroll-cue .stem{ width: 1px; height: 40px; background: linear-gradient(var(--gold3), transparent); position: relative; overflow: hidden; }
.scroll-cue .stem::after{
  content: ''; position: absolute; top: -40px; left: 0; width: 100%; height: 40px;
  background: linear-gradient(var(--gold2), transparent); animation: cue-fall 2.4s ease-in-out infinite;
}

/* =========================================================
   ABOUT
========================================================= */
#about{ padding-top: 6rem; }
.ab-grid{ display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.ab-head{ font-family: var(--ff-ser); font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.1; margin-bottom: 1.8rem; }
.ab-head .gold{ font-style: italic; color: var(--gold2); }
.ab-body p{ font-size: 1rem; line-height: 1.85; color: var(--muted); font-weight: 300; margin-bottom: 1.2rem; max-width: 560px; }
.ab-body strong{ color: var(--ivory2); font-weight: 500; }
.ab-vals{ display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 2.6rem; background: var(--rim); border: 1px solid var(--rim); }
.av{ background: var(--void); padding: 1.4rem 1rem; }
.av-l{ font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .06em; color: var(--ivory2); line-height: 1.5; }

.ab-card{
  border: 1px solid var(--rim); padding: 2.2rem 2rem 1.4rem;
  --mx: 30%; --my: 20%; --hud-c: var(--gold-rim); transition: border-color .4s var(--ease);
}
.ab-card::before{
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(201,165,90,.09), transparent 62%);
  transition: background .1s linear;
}
.ab-card:hover{ border-color: var(--gold-rim); --hud-c: var(--gold2); }
.ab-card-row{
  display: flex; justify-content: space-between; align-items: baseline; padding: .85rem 0;
  border-bottom: 1px solid var(--rim); font-family: var(--ff-mono); font-size: .72rem; position: relative; z-index: 1;
}
.ab-card-row:last-child{ border-bottom: none; }
.ab-card-row .k{ color: var(--muted2); text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; }
.ab-card-row .v{ color: var(--ivory2); }

@media (max-width: 860px){ .ab-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   SKILLS / ORBIT SYSTEMS
========================================================= */
#skills{ padding-top: 8rem; }
.sk-hrow{ display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.sk-head{ font-family: var(--ff-ser); font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; }
.sk-head .it{ font-style: italic; color: var(--gold2); }
.sk-sub{ max-width: 380px; color: var(--muted); font-size: .92rem; line-height: 1.7; font-weight: 300; }

.orbit-systems{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.orbit-panel{
  border: 1px solid var(--rim); overflow: hidden; --hud-c: var(--gold-rim);
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 3vw, 1.6rem) clamp(2rem, 4vw, 3rem);
}
.orbit-panel:hover{ --hud-c: var(--gold2); }
.orbit-panel-head{
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem;
}
.orbit-panel-head i{ width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.op-web i{ background: var(--cosmic2); box-shadow: 0 0 8px var(--cosmic2); }
.op-redm i{ background: var(--nebula2); box-shadow: 0 0 8px var(--nebula2); }

.orbit-stage{ position: relative; width: 100%; max-width: 420px; aspect-ratio: 1/1; margin: 0 auto; }
.orbit-ring{
  position: absolute; top: 50%; left: 50%; width: 76%; height: 76%; border-radius: 50%;
  transform: translate(-50%,-50%); border: 1px dashed var(--rim2);
}
.orbit-ring.web{ border-color: rgba(92,127,216,.3); }
.orbit-ring.redm{ border-color: rgba(138,95,201,.3); }
.orbit-marker-wrap{
  position: absolute; top: 50%; left: 50%; width: 76%; height: 76%;
  transform: translate(-50%,-50%) rotate(0deg); animation: orbit-spin-ring 22s linear infinite;
}
.orbit-marker-wrap.redm{ animation-duration: 28s; animation-direction: reverse; }
.orbit-marker{ position: absolute; top: -3px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; }
.orbit-marker.web{ background: var(--cosmic2); box-shadow: 0 0 8px var(--cosmic2); }
.orbit-marker.redm{ background: var(--nebula2); box-shadow: 0 0 8px var(--nebula2); }

.orbit-core{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 26%; aspect-ratio: 1/1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 5; text-align: center;
}
.orbit-core span{ font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--void); font-weight: 600; }
.orbit-core.web{
  background: radial-gradient(circle at 34% 28%, #dfe6ff, var(--cosmic) 55%, #1a2547 100%);
  box-shadow: 0 0 50px rgba(92,127,216,.35), inset -10px -10px 24px rgba(0,0,0,.4);
}
.orbit-core.redm{
  background: radial-gradient(circle at 34% 28%, #ead9ff, var(--nebula) 55%, #2b1a47 100%);
  box-shadow: 0 0 50px rgba(138,95,201,.35), inset -10px -10px 24px rgba(0,0,0,.4);
}

.orbit-node{
  position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: .4rem;
  text-align: center; width: 96px;
}
.orbit-node .dot{ width: 11px; height: 11px; border-radius: 50%; background: var(--ivory); position: relative; }
.orbit-node .dot::after{ content: ''; position: absolute; inset: -7px; border-radius: 50%; opacity: .3; }
.orbit-node.web .dot::after{ background: var(--cosmic); }
.orbit-node.redm .dot::after{ background: var(--nebula); }
.orbit-node .lbl{ font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ivory2); }
.orbit-node .sub{ font-family: var(--ff-mono); font-size: .56rem; color: var(--muted2); line-height: 1.3; }

.sk-tools-label{ font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 2.6rem 0 1rem; }
.sk-tools{ display: flex; flex-wrap: wrap; gap: .7rem; }
.sk-tool{
  font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--rim); padding: .5rem 1rem; border-radius: 100px; transition: all .3s var(--ease);
}
.sk-tool:hover{ color: var(--gold2); border-color: var(--gold-rim); }

@media (max-width: 760px){ .orbit-systems{ grid-template-columns: 1fr; } }

/* =========================================================
   TESTIMONIALS / SIGNALS RECEIVED
========================================================= */
#testimonials{ padding-top: 8rem; }
.ts-hrow{ display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.ts-head{ font-family: var(--ff-ser); font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; }
.ts-head .it{ font-style: italic; color: var(--gold2); }
.ts-sub{ max-width: 380px; color: var(--muted); font-size: .92rem; line-height: 1.7; font-weight: 300; }
.ts-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }

.ts-card{
  position: relative; border: 1px solid var(--rim); padding: clamp(1.8rem, 3vw, 2.4rem);
  --mx: 88%; --my: -6%; --hud-c: var(--gold-rim);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ts-card::before{
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(201,165,90,.11), transparent 55%);
  transition: background .1s linear;
}
.ts-card::after{
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold3), transparent 70%); opacity: .4;
}
.ts-card:hover{ border-color: var(--gold-rim); --hud-c: var(--gold2); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.ts-quote-mark{ font-family: var(--ff-ser); font-style: italic; font-size: 3rem; line-height: 1; color: var(--gold3); opacity: .6; margin-bottom: .4rem; display: block; }
.ts-text{ font-family: var(--ff-ser); font-size: 1.04rem; font-weight: 300; font-style: italic; line-height: 1.75; color: var(--ivory2); margin-bottom: 1.8rem; }
.ts-foot{ display: flex; align-items: center; justify-content: space-between; gap: .9rem; padding-top: 1.2rem; border-top: 1px solid var(--rim); }
.ts-id{ display: flex; align-items: center; gap: .9rem; }
.ts-avatar{
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: .8rem; font-weight: 600; color: var(--void);
  background: linear-gradient(135deg, var(--gold3), var(--gold2)); box-shadow: 0 0 14px rgba(201,165,90,.28);
}
.ts-name{ font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .03em; color: var(--ivory); }
.ts-role{ font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2); margin-top: .2rem; }

/* signal-strength bars replace the plain "status dot" — each testimonial
   is a received transmission, so its indicator should read as reception
   strength rather than a generic online/pulse dot. */
.ts-signal{ display: flex; align-items: flex-end; gap: 2px; height: 13px; flex-shrink: 0; }
.ts-signal i{ display: block; width: 3px; border-radius: 1px; background: var(--gold2); animation: sig-pulse 2.2s ease-in-out infinite; transform-origin: bottom; }
.ts-signal i:nth-child(1){ height: 5px; animation-delay: 0s; }
.ts-signal i:nth-child(2){ height: 8px; animation-delay: .18s; }
.ts-signal i:nth-child(3){ height: 11px; animation-delay: .36s; }
.ts-signal i:nth-child(4){ height: 13px; animation-delay: .54s; }
@media (prefers-reduced-motion: reduce){ .ts-signal i{ animation: none; opacity: .85; } }

.ts-more{
  border: 1px dashed var(--rim2); padding: clamp(1.8rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .6rem; min-height: 180px;
}
.ts-more-mark{ font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted2); }
.ts-more-txt{ font-family: var(--ff-ser); font-style: italic; font-size: 1.15rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 600px){ .ts-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   WORK / PLANETS
========================================================= */
#work{ padding-top: 8rem; }
.wk-hrow{ display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 4.5rem; }
.wk-head{ font-family: var(--ff-ser); font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; }
.wk-head .it{ font-style: italic; color: var(--gold2); }
.wk-sub{ max-width: 360px; color: var(--muted); font-size: .92rem; line-height: 1.7; font-weight: 300; }
.planet-list{ display: flex; flex-direction: column; gap: 0; }
.planet{
  display: grid; grid-template-columns: 180px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(2.4rem, 5vw, 4rem) 0; border-top: 1px solid var(--rim); position: relative;
}
.planet:last-child{ border-bottom: 1px solid var(--rim); }
.p-orb{ width: 150px; height: 150px; min-width: 150px; aspect-ratio: 1/1; border-radius: 50%; position: relative; justify-self: center; flex-shrink: 0; perspective: 600px; }
.p-orb .ring{ position: absolute; inset: -26px; border: 1px solid var(--rim2); border-radius: 50%; transform: rotate(-18deg); }
.p-orb .ring::before{
  content: ''; position: absolute; top: -3px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold2); box-shadow: 0 0 10px var(--gold2); animation: orbit-spin 14s linear infinite;
}
.p-orb .sphere{
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50% !important; -webkit-border-radius: 50% !important; overflow: hidden;
  box-shadow: 0 0 50px -8px var(--sphere-glow, rgba(201,165,90,.5)), inset -18px -18px 40px rgba(0,0,0,.55);
  transition: transform .5s var(--ease); transform: scale(1) rotateX(0deg) rotateY(0deg); transform-style: preserve-3d;
}
.planet:hover .p-orb .sphere{ transform: scale(1.06) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); }
.p-num{ position: absolute; top: -2px; left: 0; font-family: var(--ff-mono); font-size: .62rem; color: var(--muted2); letter-spacing: .1em; }
.p-tag{ font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold3); margin-bottom: .7rem; }
.p-title{ font-family: var(--ff-ser); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .8rem; transition: color .3s; }
.planet:hover .p-title{ color: var(--gold2); }
.p-desc{ font-size: .9rem; line-height: 1.75; color: var(--muted); font-weight: 300; max-width: 600px; margin-bottom: 1rem; }
.p-tech{ font-family: var(--ff-mono); font-size: .62rem; color: var(--muted2); letter-spacing: .05em; }
.p-link{
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory2);
  transition: gap .3s var(--ease), color .3s;
}
.planet:hover .p-link{ gap: .85rem; color: var(--gold2); }

@media (max-width: 700px){ .planet{ grid-template-columns: 1fr; } .p-orb{ width: 110px; height: 110px; } }

/* =========================================================
   CONTACT / TRANSMISSION
========================================================= */
#contact{ padding-top: 8rem; padding-bottom: 6rem; }
.ct-wrap{
  border: 1px solid var(--rim); border-radius: 6px; background: var(--glass);
  padding: clamp(2.5rem, 6vw, 5rem); position: relative; overflow: hidden; text-align: center;
}
.ct-wrap::before{ content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(138,95,201,.14), transparent 60%); }
.ct-eyebrow{ font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold3); margin-bottom: 1.4rem; position: relative; }
.ct-head{ font-family: var(--ff-ser); font-weight: 300; font-size: clamp(2.1rem, 5.6vw, 4.4rem); line-height: 1.05; margin-bottom: 1.4rem; position: relative; }
.ct-head .it{
  font-style: italic; background: linear-gradient(120deg, var(--gold2), var(--nebula2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ct-sub{ max-width: 520px; margin: 0 auto 2.6rem; color: var(--muted); font-size: .98rem; line-height: 1.75; font-weight: 300; position: relative; }
.ct-ctas{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; margin-bottom: 2.6rem; }
.ct-meta{
  display: flex; justify-content: center; gap: clamp(1.6rem, 4vw, 3rem); flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .08em; color: var(--muted2); text-transform: uppercase;
  position: relative; padding-top: 2rem; border-top: 1px solid var(--rim);
}
.ct-meta em{ font-style: normal; color: var(--muted2); }

footer{
  position: relative; z-index: 5; padding: 2.2rem clamp(1.5rem, 5vw, 4.5rem);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .08em; color: var(--muted2); text-transform: uppercase;
  flex-wrap: wrap; gap: 1rem;
}

/* =========================================================
   BACK TO TOP — progress ring mirrors #spb's scroll percentage
========================================================= */
#toTop{
  position: fixed; right: clamp(1.2rem, 3vw, 2.4rem); bottom: clamp(1.2rem, 3vw, 2.4rem); z-index: 400;
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(5,5,9,.72); backdrop-filter: blur(14px); border: 1px solid var(--rim2);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, border-color .3s;
}
#toTop.show{ opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover{ border-color: var(--gold-rim); }
#toTop svg{ position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); }
#toTop svg circle{ fill: none; stroke-width: 2; }
#toTop svg .track{ stroke: var(--rim2); }
#toTop svg .fill{ stroke: var(--gold2); stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: 126; transition: stroke-dashoffset .1s linear; }
#toTop .arrow{ position: relative; color: var(--ivory2); font-size: 1rem; line-height: 1; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce){ #toTop{ transition: opacity .2s, visibility .2s; } }
