/* =========================================================
   TARA DESIGNS & CREATIVE — STYLESHEET
   Identity: architecture + graphic design studio.
   The visual system borrows from both disciplines —
   blueprint annotation (mono labels, coordinate marks)
   and print production (registration crosses, fig. numbers)
   — instead of decorating either one arbitrarily.
   ========================================================= */

/* --- Design tokens: change the whole site from here --- */
:root {
  /* surfaces */
  --ink: #0b0b0b;            /* main background */
  --ink-raised: #1a1a1a;     /* cards, alt sections */
  --ink-raised-2: #141414;   /* nested surfaces (testimonials on alt bg) */

  /* text */
  --paper: #f5f2ed;          /* primary text — off white */
  --paper-dim: #b3aca3;      /* secondary text */
  --paper-faint: #6f6a63;    /* tertiary / disabled */

  /* accents — single crimson accent, used at full and dim strength */
  --crimson: #8b0d1a;
  --crimson-dim: #6b0a14;
  --brass: var(--crimson);       /* kept as an alias so the rest of the sheet needs no changes */
  --brass-dim: #3a3a3a;          /* neutral, used only for hairline marks/borders */

  --line: #2a2a2a;           /* hairline borders */
  --line-bright: #3a3a3a;

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-body: 'Inter', Arial, sans-serif;

  --radius: 3px;

  /* ---- luxury AI layer: glass, glow & motion tokens ----
     Added on top of the original system without changing any
     of the values above, so nothing already using --ink,
     --crimson or --paper needs to change. */
  --crimson-rgb: 139, 13, 26;
  --paper-rgb: 245, 242, 237;
  --glass-bg: rgba(255, 255, 255, 0.035);
  --glass-bg-alt: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(245, 242, 237, 0.09);
  --glow-strong: rgba(139, 13, 26, 0.55);
  --glow-soft: rgba(139, 13, 26, 0.16);
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--ink);
  color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

::selection {
  background-color: var(--crimson);
  color: var(--paper);
}

/* visible focus state for keyboard users — never remove outline without replacing it */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   EYEBROWS & FIG LABELS
   Small mono annotations used the way a drafting sheet or a
   print proof would — a coordinate, a figure number, a spec.
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.4em;
  height: 1px;
  background-color: var(--brass-dim);
}

.section > .eyebrow,
.section-alt > .eyebrow {
  display: flex;
  justify-content: center;
}

/* =========================================================
   REGISTRATION MARKS
   The recurring signature motif: a small crosshair at two
   opposite corners of a frame, half drafting survey-mark,
   half print registration cross. Applied at section edges
   and around the hero, not scattered on every element.
   ========================================================= */
.marks {
  position: relative;
}

.marks::before,
.marks::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brass-dim);
  line-height: 1;
  pointer-events: none;
}

.marks::before {
  top: 0.4rem;
  left: 0.6rem;
}

.marks::after {
  bottom: 0.4rem;
  right: 0.6rem;
}

/* =========================================================
   LOADING SCREEN
   ========================================================= */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 999;
  transition: opacity 0.5s ease;
}

.loader.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 4rem;
  letter-spacing: 0.4rem;
}

.letter {
  display: inline-block;
  opacity: 0;
}

.letter-t {
  animation: slideInLeft 0.7s ease forwards;
}

.letter-d {
  animation: slideInRight 0.7s ease forwards;
  color: var(--crimson);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.loader-line {
  width: 0;
  height: 2px;
  background-color: var(--crimson);
  margin-top: 0.75rem;
  animation: drawLine 0.5s ease forwards;
  animation-delay: 0.7s;
}

@keyframes drawLine {
  to { width: 80px; }
}

.loader-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 1s;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background-color: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo .logo-amp {
  color: var(--crimson);
  font-style: italic;
}

.logo-img {
  display: block;
  height: 30px;
  width: auto;
}

.hero-logo-img {
  width: min(480px, 90%);
  height: auto;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--paper-dim);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background-color: var(--brass);
  transition: right 0.25s ease;
}

.nav-links a:hover {
  color: var(--paper);
}

.nav-links a:hover::after {
  right: 0;
}

.hamburger {
  display: none;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
}

@media (max-width: 700px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--ink);
    padding: 1.25rem 2rem 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.show {
    display: flex;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  text-align: center;
  padding: 7rem 2rem 4.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}

.hero p {
  font-size: 1.15rem;
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
}

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  text-align: center;
  padding: 0 2rem 4.5rem;
  color: var(--paper-dim);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.stars {
  color: var(--brass);
  letter-spacing: 2px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--crimson);
  color: var(--paper);
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--crimson);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn::after {
  content: "→";
  font-family: var(--font-body);
  transition: transform 0.2s ease;
}

.btn:hover {
  background-color: var(--crimson-dim);
  border-color: var(--brass);
  transform: translateY(-2px);
}

.btn:hover::after {
  transform: translateX(3px);
}

.center-btn {
  text-align: center;
  margin-top: 2.75rem;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-alt {
  max-width: 100%;
  background-color: var(--ink-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-alt > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section h1,
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  text-align: center;
}

.section h1 {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
}

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
}

.section > p {
  margin-bottom: 1rem;
}

.section-lead {
  text-align: center;
  color: var(--paper-dim);
  margin-bottom: 2.5rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   CARDS
   ========================================================= */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  flex: 1 1 250px;
  background-color: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.section-alt .card {
  background-color: var(--ink-raised-2);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--brass-dim);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--brass);
}

.card p {
  color: var(--paper-dim);
}

/* =========================================================
   ABOUT PAGE — OWNER PHOTO
   ========================================================= */
.about-intro {
  display: flex;
  gap: 2.75rem;
  align-items: center;
}

.about-photo {
  flex: 0 0 260px;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.about-photo-placeholder {
  width: 260px;
  height: 260px;
  border-radius: var(--radius);
  background-color: var(--ink-raised);
  background-image:
    linear-gradient(45deg, var(--line) 1px, transparent 1px),
    linear-gradient(-45deg, var(--line) 1px, transparent 1px);
  background-size: 14px 14px;
  background-position: 0 0;
  border: 1px dashed var(--line-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 1rem;
}

.about-text {
  flex: 1 1 300px;
}

.about-text h1 {
  text-align: left;
}

@media (max-width: 700px) {
  .about-intro {
    flex-direction: column;
    text-align: center;
  }

  .about-text h1 {
    text-align: center;
  }
}

/* =========================================================
   ABOUT PAGE LIST
   ========================================================= */
.list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
}

.list li::before {
  content: "— ";
  color: var(--brass-dim);
  font-family: var(--font-mono);
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--crimson);
}

.stat-label {
  font-family: var(--font-mono);
  color: var(--paper-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================
   PROCESS STEPS
   ========================================================= */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.step {
  flex: 1 1 220px;
  background-color: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--paper-dim);
  font-size: 0.95rem;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.testimonial {
  flex: 1 1 250px;
  background-color: var(--ink-raised-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.testimonial p {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
}

.testimonial p.stars {
  font-family: var(--font-body);
  font-style: normal;
}

.testimonial-name {
  color: var(--paper-dim) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  font-style: normal !important;
  letter-spacing: 0.03em;
}

/* =========================================================
   WORKS PAGE — FILTERS
   ========================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-bright);
  background-color: transparent;
  color: var(--paper-dim);
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--brass-dim);
  color: var(--paper);
}

.filter-btn.active {
  background-color: var(--crimson);
  border-color: var(--crimson);
  color: var(--paper);
}

/* =========================================================
   WORKS PAGE — GALLERY
   ========================================================= */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gallery-item {
  flex: 1 1 220px;
  text-align: center;
}

.gallery-item.hide {
  display: none;
}

.gallery-item p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--paper-dim);
}

.gallery-box {
  background-color: var(--ink-raised);
  background-image:
    linear-gradient(45deg, var(--line) 1px, transparent 1px),
    linear-gradient(-45deg, var(--line) 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1px solid var(--line);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  margin-bottom: 0.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.gallery-box::before,
.gallery-box::after {
  content: "+";
  position: absolute;
  font-size: 0.8rem;
  color: var(--brass-dim);
}

.gallery-box::before { top: 0.5rem; left: 0.6rem; }
.gallery-box::after { bottom: 0.5rem; right: 0.6rem; }

.gallery-box:hover {
  border-color: var(--brass-dim);
  transform: translateY(-5px);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 12, 10, 0.9);
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  background-color: var(--ink-raised);
  border: 1px solid var(--line-bright);
  padding: 1.75rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.lightbox-content p:not(.stars) {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper-dim);
}

.lightbox-box {
  height: 250px;
  margin-bottom: 1rem;
}

.close-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.7rem;
  font-size: 1.7rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--paper-dim);
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--paper);
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form label {
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  background-color: var(--ink-raised);
  color: var(--paper);
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brass);
  outline: none;
}

.contact-form .btn {
  margin-top: 1.6rem;
  align-self: flex-start;
}

#formMessage {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: var(--ink-raised-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.35rem;
  background: none;
  border: none;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.35rem;
}

.faq-answer p {
  color: var(--paper-dim);
  padding-bottom: 1.1rem;
}

.faq-item.open .faq-answer {
  padding: 0 1.35rem;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.card.fade-in:nth-child(1) { animation-delay: 0.1s; }
.card.fade-in:nth-child(2) { animation-delay: 0.25s; }
.card.fade-in:nth-child(3) { animation-delay: 0.4s; }

.gallery-item.fade-in:nth-child(1) { animation-delay: 0.05s; }
.gallery-item.fade-in:nth-child(2) { animation-delay: 0.1s; }
.gallery-item.fade-in:nth-child(3) { animation-delay: 0.15s; }
.gallery-item.fade-in:nth-child(4) { animation-delay: 0.2s; }
.gallery-item.fade-in:nth-child(5) { animation-delay: 0.25s; }
.gallery-item.fade-in:nth-child(6) { animation-delay: 0.3s; }
.gallery-item.fade-in:nth-child(7) { animation-delay: 0.35s; }
.gallery-item.fade-in:nth-child(8) { animation-delay: 0.4s; }
.gallery-item.fade-in:nth-child(9) { animation-delay: 0.45s; }
.gallery-item.fade-in:nth-child(10) { animation-delay: 0.5s; }

/* =========================================================
   CUSTOM CURSOR
   A small drafting crosshair that follows the pointer,
   in place of the arrow — desktop/mouse only.
   ========================================================= */
@media (pointer: fine) {

  * {
    cursor: none;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    background-color: var(--crimson);
    color: var(--paper);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }

}

@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--ink);
  border-top: 1px solid var(--line);
  color: var(--paper-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* =========================================================
   =========================================================
   FUTURISTIC LUXURY AI LAYER
   Everything below is additive: it overrides a handful of
   properties on the existing classes (same selectors, so the
   cascade lets these win) and adds new elements — the
   cursor-reactive canvas, glass edge-lighting, magnetic
   buttons, the floating nav pill, and cinematic hero depth.
   No existing class names were removed, so nothing above
   this line needs to change for the site to keep working.
   ========================================================= */

/* ---------------------------------------------------------
   0. Reduced motion — belt and suspenders.
   The global rule near the top already collapses animation/
   transition durations to ~0. This adds the same intent for
   the few effects driven by inline styles / JS (transform on
   the cursor glow, hero parallax, canvas), which JS itself
   also checks for before running.
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bg-canvas,
  .cursor-glow,
  .custom-cursor { display: none !important; }
  .hero-field { transform: none !important; }
}

/* ---------------------------------------------------------
   1. CURSOR-REACTIVE BACKGROUND CANVAS
   A fixed, full-viewport canvas sitting behind all page
   content (negative z-index) and in front of the plain black
   body background. script.js draws a slow network of nodes
   and connecting "energy" lines on it, nudged gently by the
   cursor. Decorative only — aria-hidden, no pointer events.
   --------------------------------------------------------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 700px) {
  .bg-canvas { opacity: 0.4; }
}

/* soft crimson glow that trails the pointer, layered behind
   the small "TD" cursor badge that already existed */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: transform 0.55s var(--ease-luxury), opacity 0.4s ease;
}

.cursor-glow.is-active { opacity: 1; }

@media (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------------------------------------------------------
   2. SCROLL REVEALS (replaces the old load-only fade-in)
   Same .fade-in class, same markup — now driven by an
   IntersectionObserver in script.js that adds .in-view the
   first time an element enters the viewport, so things reveal
   as you scroll instead of all firing once on page load.
   --------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  animation: none; /* cancels the original fadeInUp keyframe animation */
  transition: opacity 0.9s var(--ease-luxury), transform 0.9s var(--ease-luxury), filter 0.9s var(--ease-luxury);
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.card.fade-in:nth-child(1),
.step.fade-in:nth-child(1),
.testimonial.fade-in:nth-child(1) { transition-delay: 0.02s; }
.card.fade-in:nth-child(2),
.step.fade-in:nth-child(2),
.testimonial.fade-in:nth-child(2) { transition-delay: 0.12s; }
.card.fade-in:nth-child(3),
.step.fade-in:nth-child(3),
.testimonial.fade-in:nth-child(3) { transition-delay: 0.22s; }
.step.fade-in:nth-child(4) { transition-delay: 0.32s; }
.step.fade-in:nth-child(5) { transition-delay: 0.42s; }

.gallery-item.fade-in:nth-child(1) { transition-delay: 0.02s; }
.gallery-item.fade-in:nth-child(2) { transition-delay: 0.06s; }
.gallery-item.fade-in:nth-child(3) { transition-delay: 0.1s; }
.gallery-item.fade-in:nth-child(4) { transition-delay: 0.14s; }
.gallery-item.fade-in:nth-child(5) { transition-delay: 0.18s; }
.gallery-item.fade-in:nth-child(6) { transition-delay: 0.22s; }
.gallery-item.fade-in:nth-child(7) { transition-delay: 0.26s; }
.gallery-item.fade-in:nth-child(8) { transition-delay: 0.3s; }
.gallery-item.fade-in:nth-child(9) { transition-delay: 0.34s; }
.gallery-item.fade-in:nth-child(10) { transition-delay: 0.38s; }

/* ---------------------------------------------------------
   3. FLOATING NAVBAR + SLIDING ACTIVE INDICATOR
   ---------------------------------------------------------
   Header becomes a slim sticky shell; the navbar itself is a
   glass pill, centered and inset from the edges, so it reads
   as "floating" above the page as you scroll. A single pill
   element (li.nav-indicator, added in the HTML) glides under
   whichever link is active/hovered/focused. */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 1.1rem 1.25rem 0;
  background: transparent;
}

.navbar {
  position: static; /* stickiness now lives on <header> */
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(11, 11, 11, 0.66);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(var(--crimson-rgb), 0.07);
  padding: 0.8rem 0.6rem 0.8rem 1.5rem;
  transition: box-shadow 0.4s var(--ease-luxury), border-color 0.4s var(--ease-luxury);
}

.navbar:hover {
  border-color: rgba(var(--crimson-rgb), 0.28);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), 0 0 40px -12px var(--glow-soft), inset 0 0 0 1px rgba(var(--crimson-rgb), 0.12);
}

.nav-links {
  position: relative;
  padding-right: 0.5rem;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
}

.nav-links a::after {
  left: 0.95rem;
  right: calc(100% - 0.95rem);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0.95rem;
}

.nav-links a.active { color: var(--paper); }

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--crimson-rgb), 0.22), rgba(var(--crimson-rgb), 0.08));
  box-shadow: inset 0 0 0 1px rgba(var(--crimson-rgb), 0.3);
  z-index: -1;
  pointer-events: none;
  transform: translateX(0);
  transition: transform 0.5s var(--ease-luxury), width 0.5s var(--ease-luxury), opacity 0.3s ease;
  opacity: 0;
}

.nav-indicator.is-ready { opacity: 1; }

@media (max-width: 700px) {
  header { padding: 0.9rem 1rem 0; }

  .navbar {
    border-radius: 22px;
    padding: 0.75rem 1.1rem;
  }

  .nav-indicator { display: none; }

  .nav-links {
    background-color: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    top: calc(100% + 0.6rem);
  }
}

/* ---------------------------------------------------------
   4. CINEMATIC HERO
   .hero already has position:relative (via .marks). A
   decorative field (grid + glow, parallax-shifted by JS) sits
   behind an explicitly-elevated .hero-content wrapper so the
   copy always stays legible on top of it. */
.hero {
  overflow: hidden;
  padding: 9.5rem 2rem 6.5rem;
}

.hero-field {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
  transition: transform 0.7s var(--ease-luxury);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--glass-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 38%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 50% at 50% 38%, black 0%, transparent 75%);
  opacity: 0.6;
}

.hero-glow {
  position: absolute;
  width: min(70vw, 900px);
  height: min(70vw, 900px);
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow-strong) 0%, transparent 65%);
  filter: blur(70px);
  opacity: 0.45;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 .accent { position: relative; }

/* ---------------------------------------------------------
   4b. HERO TWO-COLUMN LAYOUT
   Desktop: copy on the left, the logo display chamber on the
   right. Mobile: stacks, display first so the mark is still
   the first thing seen, copy follows. */
.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hero {
    max-width: none;
  }

  .hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
  }

  .hero-content {
    flex: 0 1 480px;
    text-align: left;
  }

  .hero-content .eyebrow,
  .hero-content .hero-cta-row {
    justify-content: flex-start;
  }

  .hero p {
    margin: 0 0 2.25rem;
  }

  .hero-display {
    flex: 0 1 420px;
  }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------------------------------------------------------
   4c. LOGO DISPLAY CHAMBER
   A small stack of layers, back to front:
   .display-ring(-alt)  — two slow-rotating conic rings
   .display-circuits    — a faint lattice, brightens near the
                           cursor via the same --mx/--my pattern
                           used on the glass cards below
   .display-chamber      — the glass "case" the mark levitates in
   script.js adds --tilt-x/--tilt-y (pointer tilt), --scroll-rot
   (slow rotation as the page scrolls) and spawns .ripple bursts
   on click. Every one of those is optional — with JS off, or
   motion reduced, this is just a framed, floating mark. */
.hero-display {
  position: relative;
  width: min(78vw, 380px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  perspective: 1400px;
}

.display-ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(var(--crimson-rgb), 0.5) 40deg,
    transparent 110deg,
    transparent 250deg,
    rgba(var(--crimson-rgb), 0.35) 300deg,
    transparent 360deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 62%, black 63%, black 66%, transparent 67%);
  mask-image: radial-gradient(circle, transparent 62%, black 63%, black 66%, transparent 67%);
  filter: blur(0.5px);
  animation: ring-spin 18s linear infinite;
  opacity: 0.85;
}

.display-ring-alt {
  inset: 2%;
  animation-duration: 26s;
  animation-direction: reverse;
  opacity: 0.5;
}

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

.display-circuits {
  position: absolute;
  inset: 8%;
  border-radius: var(--radius);
  background-image:
    linear-gradient(rgba(var(--crimson-rgb), 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--crimson-rgb), 0.4) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle 160px at var(--mx, 50%) var(--my, 50%), black 0%, transparent 75%);
  mask-image: radial-gradient(circle 160px at var(--mx, 50%) var(--my, 50%), black 0%, transparent 75%);
  opacity: 0.9;
  pointer-events: none;
}

.display-chamber {
  position: absolute;
  inset: 4%;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(var(--crimson-rgb), 0.16), transparent 55%),
    linear-gradient(160deg, rgba(var(--paper-rgb), 0.06), rgba(var(--paper-rgb), 0.015));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(var(--paper-rgb), 0.08),
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 30px 60px -22px rgba(0, 0, 0, 0.8),
    0 0 60px -18px var(--glow-strong);
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--tilt-y, 0) * 1deg)) rotateY(calc(var(--tilt-x, 0) * 1deg)) rotateZ(calc(var(--scroll-rot, 0) * 1deg));
  transition: transform 0.5s var(--ease-luxury), box-shadow 0.5s var(--ease-luxury);
  animation: chamber-levitate 7s ease-in-out infinite;
  overflow: hidden;
}

@keyframes chamber-levitate {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

.display-logo {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
  transform: translateZ(30px);
  pointer-events: none;
}

/* soft spotlight sweeping down from above the chamber */
.display-chamber::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 140%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(var(--paper-rgb), 0.14), transparent 65%);
  pointer-events: none;
}

/* a faint reflection at the base of the chamber floor */
.display-chamber::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 30%;
  background: radial-gradient(ellipse at center, rgba(var(--crimson-rgb), 0.28), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* click-triggered energy ripple, spawned by script.js */
.ripple {
  position: absolute;
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(var(--crimson-rgb), 0.65);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple-expand 1.1s var(--ease-luxury) forwards;
}

@keyframes ripple-expand {
  to {
    width: 340px;
    height: 340px;
    opacity: 0;
    border-color: rgba(var(--crimson-rgb), 0);
  }
}

@media (max-width: 899px) {
  .hero-display { width: min(70vw, 320px); }
}

/* ---------------------------------------------------------
   5. GLASSMORPHISM CARDS WITH CRIMSON EDGE LIGHTING
   Applies to every "card-like" surface already in the site.
   Edge lighting + the cursor-follow spotlight are both done
   with box-shadow / extra background-image layers rather than
   ::before/::after, since some of these elements (gallery-box,
   about-photo-placeholder) already use those pseudo-elements
   for the "+" registration marks and shouldn't lose them. */
.card,
.step,
.testimonial,
.faq-item,
.stat,
.lightbox-content {
  position: relative;
  background-color: var(--glass-bg);
  background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--glow-soft), transparent 45%);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow:
    inset 0 0 0 1px rgba(var(--crimson-rgb), 0.14),
    0 1px 0 rgba(var(--paper-rgb), 0.04),
    0 16px 34px -20px rgba(0, 0, 0, 0.7);
  transition: transform 0.5s var(--ease-luxury), box-shadow 0.5s var(--ease-luxury), border-color 0.4s ease;
  will-change: transform;
}

.stat {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.card:hover,
.step:hover,
.testimonial:hover,
.stat:hover {
  transform: translateY(-7px);
  box-shadow:
    inset 0 0 0 1px rgba(var(--crimson-rgb), 0.32),
    0 0 44px -14px var(--glow-strong),
    0 24px 46px -22px rgba(0, 0, 0, 0.75);
}

.faq-item { transition: box-shadow 0.5s var(--ease-luxury), border-color 0.4s ease; }

.faq-item.open,
.faq-item:focus-within {
  box-shadow:
    inset 0 0 0 1px rgba(var(--crimson-rgb), 0.32),
    0 0 34px -16px var(--glow-strong);
}

.gallery-box,
.about-photo-placeholder {
  background-image:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--glow-soft), transparent 45%),
    linear-gradient(45deg, var(--line) 1px, transparent 1px),
    linear-gradient(-45deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 14px 14px, 14px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.5s var(--ease-luxury), box-shadow 0.5s var(--ease-luxury), border-color 0.25s ease;
}

.gallery-box:hover {
  box-shadow: inset 0 0 0 1px rgba(var(--crimson-rgb), 0.3), 0 0 30px -14px var(--glow-strong);
}

.lightbox-content { border-radius: var(--radius); }

/* the real owner photo (once added) gets the same crimson
   edge-lighting treatment as the rest of the glass surfaces */
.about-photo img {
  box-shadow:
    inset 0 0 0 1px rgba(var(--crimson-rgb), 0.16),
    0 20px 44px -20px rgba(0, 0, 0, 0.75);
  transition: box-shadow 0.5s var(--ease-luxury), transform 0.5s var(--ease-luxury);
}

.about-photo img:hover {
  box-shadow:
    inset 0 0 0 1px rgba(var(--crimson-rgb), 0.34),
    0 0 46px -16px var(--glow-strong),
    0 26px 50px -22px rgba(0, 0, 0, 0.8);
  transform: translateY(-4px);
}

@media (max-width: 700px), (max-width: 1024px) and (pointer: coarse) {
  .card, .step, .testimonial, .faq-item, .stat, .lightbox-content,
  .gallery-box, .about-photo-placeholder, .navbar {
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
  }
}

/* ---------------------------------------------------------
   6. FUTURISTIC BUTTONS
   A static crimson glow ring on ::before (no more spinning —
   ::after is still the "→" arrow, untouched) plus a light
   energy sweep driven by background-position on hover/focus. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: linear-gradient(115deg, transparent 30%, rgba(var(--paper-rgb), 0.22) 45%, transparent 60%);
  background-repeat: no-repeat;
  background-size: 220% 100%;
  background-position: 150% 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, background-position 0.9s var(--ease-luxury);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--crimson-rgb), 0.9), rgba(var(--paper-rgb), 0.35));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn:hover,
.btn:focus-visible {
  background-position: -50% 0;
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1;
}

/* secondary CTA — outline only, fills with the same crimson on hover */
.btn-ghost {
  background-color: transparent;
  border-color: rgba(var(--crimson-rgb), 0.55);
  color: var(--paper);
}

.btn-ghost::after {
  color: var(--paper);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: var(--crimson);
  border-color: var(--crimson);
}

.filter-btn {
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease, transform 0.2s var(--ease-luxury);
}

.filter-btn:hover {
  box-shadow: 0 0 18px -6px var(--glow-strong);
  transform: translateY(-2px);
}

.filter-btn.active {
  box-shadow: 0 0 22px -8px var(--glow-strong);
}

/* ---------------------------------------------------------
   7. MAGNETIC / SPOTLIGHT HOVER (JS-driven)
   script.js sets --mx / --my (for the spotlight gradients
   above) and a small inline transform on pointer move for
   cards, steps and buttons; this just gives that transform a
   smooth spring back to rest on mouseleave. */
.magnetic-ready { transition: transform 0.6s var(--ease-luxury); }

/* ---------------------------------------------------------
   8. CUSTOM CURSOR — luxury refinement
   Same element/behaviour as the original (crimson circle,
   "TD" mark, difference blend, desktop/mouse only) with a
   touch more polish: soft glow ring + hover scale-up over
   interactive elements. */
.custom-cursor {
  transition: transform 0.15s var(--ease-luxury);
  box-shadow: 0 0 18px 2px var(--glow-soft);
}

.custom-cursor.is-hovering {
  transform: translate(-50%, -50%) scale(1.6);
}

/* ---------------------------------------------------------
   9. CONNECT TERMINAL
   Three "channel" cards replacing plain social links. Same
   glass/spotlight language as the rest of the site, plus two
   things unique to this section: a slow rotating gradient
   ring standing in for an "animated border", and a per-card
   3D tilt (script.js) on top of the usual magnetic pull. */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.terminal-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin: 0 0 1.25rem;
}

.terminal-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 10px 1px var(--glow-strong);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
  text-align: left;
}

.connect-card {
  position: relative;
  display: block;
  border-radius: 16px;
  padding: 1.5px;
  color: inherit;
  text-decoration: none;
  perspective: 900px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0deg,
    rgba(var(--crimson-rgb), 0.9) 35deg,
    transparent 100deg,
    transparent 260deg,
    rgba(var(--paper-rgb), 0.3) 300deg,
    transparent 360deg
  );
  animation: border-spin 7s linear infinite;
}

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

.connect-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  border-radius: 14.5px;
  padding: 2rem 1.75rem;
  background-image:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--glow-soft), transparent 45%),
    linear-gradient(rgba(11, 11, 11, 0.94), rgba(11, 11, 11, 0.94));
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.5s var(--ease-luxury), transform 0.4s var(--ease-luxury);
  transform-style: preserve-3d;
  will-change: transform;
}

.connect-card:hover .connect-card-inner,
.connect-card:focus-visible .connect-card-inner {
  box-shadow: 0 0 44px -14px var(--glow-strong), 0 24px 46px -22px rgba(0, 0, 0, 0.75);
}

.connect-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--crimson);
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.connect-icon svg {
  width: 22px;
  height: 22px;
}

.connect-card:hover .connect-icon,
.connect-card:focus-visible .connect-icon {
  color: var(--paper);
  border-color: var(--crimson);
  box-shadow: 0 0 20px -4px var(--glow-strong);
}

.connect-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.connect-handle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--paper);
}

.connect-arrow {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--crimson);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.connect-card:hover .connect-arrow,
.connect-card:focus-visible .connect-arrow {
  opacity: 1;
  transform: translateX(0);
}

.connect-card.fade-in:nth-child(1) { animation-delay: 0.1s; }
.connect-card.fade-in:nth-child(2) { animation-delay: 0.25s; }
.connect-card.fade-in:nth-child(3) { animation-delay: 0.4s; }

@media (max-width: 640px) {
  .connect-grid { grid-template-columns: 1fr; }
  /* Safety net: decorative background layers should never
   block real clicks on actual content underneath them. */
.bg-grid,
.bg-energy,
#fx-canvas,
.scan-line,
.custom-cursor {
  pointer-events: none !important;
}
}
.signal-badge {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.7);
  border: 1px solid rgba(245, 242, 237, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  overflow: hidden;
  max-width: 34px;
  transition: max-width 0.5s ease, background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.signal-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 10px 1px rgba(139, 13, 26, 0.5);
  animation: signal-pulse 2.4s ease-in-out infinite;
}

@keyframes signal-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

.signal-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  font-family: var(--font-mono);
  line-height: 1.3;
}

.signal-line1 {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.signal-line2 {
  font-size: 0.72rem;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}

.signal-badge:hover,
.signal-badge:focus-visible,
.signal-badge.is-open {
  max-width: 420px;
  background: rgba(11, 11, 11, 0.9);
  border-color: rgba(139, 13, 26, 0.45);
}

.signal-badge:hover .signal-line2,
.signal-badge:focus-visible .signal-line2,
.signal-badge.is-open .signal-line2 {
  opacity: 1;
}

@media (max-width: 640px) {
  .signal-badge { left: 12px; bottom: 12px; }
}