/* ========================================
   SECTIONS — All Page Sections
   ======================================== */

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 68% 60% at center,
    rgba(8, 8, 12, 0.9) 0%,
    rgba(8, 8, 12, 0.65) 38%,
    rgba(8, 8, 12, 0.25) 68%,
    transparent 92%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
}

.hero__graph {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  /* Not `grab`: a native cursor here renders on top of the custom one, so the
     graph showed two pointers at once. The state moves to .cursor.is-grab. */
  cursor: none;
}

.hero__graph:active {
  cursor: none;
}

.hero__graph canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__graph-labels {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__graph-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 237, 237, 0.72);
  padding: 3px 7px;
  background: rgba(10, 10, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.hero__graph-label.is-active {
  color: var(--white);
  border-color: rgba(120, 155, 255, 0.55);
  background: rgba(15, 25, 55, 0.75);
}

/* Desktop: top-left kicker+name align with top-right nav links (shared top strip) */
@media (min-width: 900px) {
  .hero {
    justify-content: flex-start;
    padding-top: var(--space-5);
  }
  .hero__name-link {
    margin-right: var(--space-6);
    vertical-align: baseline;
  }
  .hero__label {
    margin-top: 0;
    margin-bottom: var(--space-2);
    margin-left: var(--space-5);
    vertical-align: baseline;
  }
  .hero__divider {
    margin: var(--space-6) 0;
  }
  /* Graph sits between the top block (name+kicker+divider) and the info row */
  .hero__graph,
  .hero__graph-labels {
    left: 0;
    right: 0;
    top: 140px;
    bottom: 180px;
    width: auto;
    height: auto;
    min-height: 380px;
  }
  /* Description + CTA pulled below graph, centered above scroll indicator */
  .hero__info {
    position: absolute;
    bottom: clamp(80px, 10vh, 120px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max);
    padding-inline: var(--container-pad);
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    z-index: 5;
  }
  .hero .hero__title {
    font-size: 0.95rem;
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
    text-align: center;
    line-height: 1.55;
  }
  .hero__cta-group {
    justify-content: center;
  }
  .hero__subscribe {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-5);
  }
  .hero::after { display: none; }
}

/* Mobile: graph stays full-bleed behind text; disable interaction */
@media (max-width: 899px) {
  .hero__graph {
    pointer-events: none;
    cursor: default;
  }
}

.hero__label {
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
  transition:
    background      var(--duration-normal) ease,
    border-color    var(--duration-normal) ease,
    padding         var(--duration-normal) ease,
    margin          var(--duration-normal) ease,
    backdrop-filter var(--duration-normal) ease,
    -webkit-backdrop-filter var(--duration-normal) ease;
}

/* Mobile: kicker + text sit over the graph — give them backdrop + shadow */
@media (max-width: 899px) {
  /* Hide the big hero H1 — the nav logo now carries "WALID ADRA" on mobile. Keep it in DOM for SEO/screen readers. */
  .hero__name-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
  }
  .hero__content { text-align: center; }
  .hero__label {
    display: inline-block;
    padding: 4px 10px;
    margin: var(--space-3) auto;
    background: rgba(8, 8, 12, 0.55);
    border: 1px solid rgba(77, 148, 255, 0.32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-shadow: 0 0 12px rgba(8, 8, 12, 0.9);
  }
  [data-theme="light"] .hero__label {
    background: rgba(250, 250, 250, 0.72);
    border-color: rgba(77, 148, 255, 0.45);
    text-shadow: none;
  }
  /* Mobile + tablet: hero info as a centered glass card over the constellation */
  .hero__info {
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    width: auto;
    max-width: min(560px, calc(100% - 2 * var(--space-4)));
    margin: var(--space-3) auto var(--space-8);
    padding: var(--space-5);
    border-radius: 14px;
    background: rgba(10, 10, 14, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    text-align: left;
  }
  [data-theme="light"] .hero__info {
    background: rgba(250, 250, 250, 0.72);
    border-color: rgba(0, 0, 0, 0.08);
  }
  .hero__title br { display: none; }
  .hero .hero__title {
    font-size: 0.9rem;
    max-width: none;
    line-height: 1.55;
  }
  .hero__cta-group {
    width: 100%;
    justify-content: center;
  }
  .hero__subscribe {
    width: 100%;
    justify-content: center;
  }
}

.hero__name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
  text-transform: uppercase;
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
}

.hero__name-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  cursor: none;
}

/* Desktop: cap name size so WALID ADRA fits; pull text up so it integrates with nav */
@media (min-width: 900px) {
  .hero {
    justify-content: flex-start;
    padding-top: clamp(5.5rem, 9vh, 7rem);
  }
  .hero .hero__name {
    font-size: clamp(1.85rem, 1.4vw + 1.1rem, 3rem);
  }
}

.hero__name .char {
  display: inline-block;
}

.hero__divider {
  width: 100%;
  height: 2px;
  background: var(--white);
  margin: var(--space-8) 0;
  transform-origin: left;
}

.hero__info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  transition:
    background      var(--duration-normal) var(--ease-out-expo),
    border-color    var(--duration-normal) ease,
    border-radius   var(--duration-normal) ease,
    padding         var(--duration-normal) var(--ease-out-expo),
    margin          var(--duration-normal) var(--ease-out-expo),
    max-width       var(--duration-normal) var(--ease-out-expo),
    gap             var(--duration-normal) ease,
    backdrop-filter var(--duration-normal) ease,
    -webkit-backdrop-filter var(--duration-normal) ease,
    box-shadow      var(--duration-normal) ease;
}

.hero__title {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--text-dim);
  transition:
    font-size   var(--duration-normal) ease,
    max-width   var(--duration-normal) var(--ease-out-expo),
    line-height var(--duration-normal) ease;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__subscribe {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: var(--space-3) var(--space-6);
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hero__subscribe:hover {
  background: var(--accent-hover);
  box-shadow: var(--glow);
  color: #fff;
}

/* Mobile: the CTA holds a lit state while the hero graph plays out before the
   jump to the work, so the wait reads as intentional rather than as a dead tap. */
.hero__subscribe.is-playing {
  background: var(--accent-hover);
  box-shadow: var(--glow);
  animation: heroCtaPulse 0.9s ease-in-out infinite;
}

@keyframes heroCtaPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.62; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__subscribe.is-playing { animation: none; }
}

.hero__agency {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 3;
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 80px 80px;
}


/* === ABOUT === */
.about {
  border-top: var(--border-hair);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 0.45fr 0.55fr;
    gap: var(--space-20);
  }
}

.about__photo-wrap {
  position: relative;
  max-width: 420px;
}

.about__photo {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(30%) contrast(1.1);
  position: relative;
  z-index: 2;
}

.about__photo-frame {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--accent);
  transform: translate(12px, 12px);
  z-index: 1;
  transition: border-color 0.4s ease;
}

.about__text h2 {
  font-size: var(--text-3xl);
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.about__text p {
  font-size: var(--text-lg);
  font-weight: 300;
  margin-bottom: var(--space-6);
  max-width: 560px;
}

.about__text p:last-of-type {
  margin-bottom: var(--space-10);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: var(--border-subtle);
}


/* === PROJECTS ("What I've Built") === */
/* === WHAT I BUILD (capabilities) === */
.section--caps {
  border-top: var(--border-hair);
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}

.caps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: var(--space-10);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .caps__grid {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Hairline gaps let the cards read as one block rather than four floating boxes. */
@media (min-width: 720px) {
  .caps__grid { grid-template-columns: 1fr 1fr; }
}

.cap-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg-card);
  transition: background 400ms ease;
}

.cap-card:hover {
  background: hsla(var(--accent-hue), 100%, 55%, 0.04);
}

.cap-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.cap-card__body {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-dim);
  opacity: 0.85;
}

.projects {
  border-top: var(--border-hair);
}

/* Sits under the work grid as a closing line, so give it room. */
.projects__note {
  margin-top: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.projects__note a {
  color: var(--accent-text);
  /* underlined, so a link inside the sentence isn't told apart by colour alone (WCAG 1.4.1) */
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.projects__note a:hover { text-decoration-thickness: 2px; }

/* State chip — says what the thing actually is before the title makes a claim. */
.project-card__state {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.5rem;
  color: var(--accent-text);
  border: 1px solid hsla(var(--accent-hue), 100%, 55%, 0.35);
  background: hsla(var(--accent-hue), 100%, 55%, 0.07);
}

.projects__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Selected Work stacks: each card pins below the nav and the next slides up
   over it, matching webrift.dev. It needs an opaque card background (there is
   one), no gap so a covered card shows no seam, and no ancestor carrying a
   transform — a transform would become the containing block and strand the
   sticky.

   Gated on height as well as width: a pinned card whose bottom falls below the
   viewport has that bottom stranded, since the page is pinned and there is no
   scroll left to reach it. Cards measure 364-388px here, so 560px of viewport
   is a comfortable floor.

   Applies at every width. Selected Work is not a swipe deck — the stack is its
   one treatment, so the two can never both claim the same cards. Only the pin
   offset differs, because the nav is shorter on a phone. Where the viewport is
   too short for a card to fit, the query simply does not match and the section
   scrolls normally, which is the correct degradation. */
@media (min-width: 901px) and (min-height: 560px) {
  .projects__grid { gap: 0; }
  .project-card { position: sticky; top: 5.5rem; }
  /* collapse the doubled hairline where two card borders meet */
  .project-card + .project-card { margin-top: -1px; }
}

/* The phone gate was min-height: 800px, which no phone reaches — an iPhone 15
   has 664px of visible viewport and a Pixel 7 has 732 — so the stack silently
   never engaged on the device most people read this on. The floor was set that
   high because the cards were 664px tall at 390px wide, taller than the room
   left under a pinned nav, and a pinned card whose bottom is off-screen has no
   scroll left to reach it.

   So the cards are trimmed to fit rather than the gate being lowered to let a
   broken layout through. The trims live in responsive.css, which loads
   after this file and so actually wins. */
@media (max-width: 900px) and (min-height: 620px) {
  .projects__grid { gap: 0; }
  .project-card { position: sticky; top: 3.9rem; }
  .project-card + .project-card { margin-top: -1px; }
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-card);
  border: var(--border-subtle);
  overflow: hidden;
  cursor: none;
  text-decoration: none;
  transition: border-color 400ms ease, box-shadow 400ms ease;
}

@media (min-width: 900px) {
  .project-card { grid-template-columns: 0.45fr 0.55fr; }
}

.project-card:hover,
.project-card.is-active {
  border-color: hsla(var(--accent-hue), 100%, 55%, 0.3);
  box-shadow: 0 0 40px hsla(var(--accent-hue), 100%, 55%, 0.06);
}

.project-card__img {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.project-card__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The <picture> wrapper (AVIF/WebP sources) must not become the flex item,
   or the img's height: 100% has nothing to resolve against. */
.project-card__img-placeholder picture {
  display: contents;
}

.project-card__coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.project-card__coming-soon-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.project-card__coming-soon-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.project-card__img-label {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  user-select: none;
}

.project-card__body {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.project-card__sep { color: var(--gray-700); }

.project-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  line-height: var(--leading-snug);
}

.project-card__desc {
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.65;
}

.project-card__role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.project-card__tags li {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-top: var(--space-2);
  transition: gap 300ms var(--ease-out-expo);
}

.project-card:hover .project-card__link,
.project-card.is-active .project-card__link { gap: 0.85rem; }

.project-card__arrow {
  transition: transform 300ms var(--ease-out-expo);
}

.project-card:hover .project-card__arrow,
.project-card.is-active .project-card__arrow { transform: translateX(4px); }


/* === CONNECT === */
.connect {
  border-top: var(--border-hair);
}

.connect__heading {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  text-transform: uppercase;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-16);
}

.connect__heading .word {
  display: inline-block;
  overflow: hidden;
}

.connect__heading .word-inner {
  display: inline-block;
}

.connect__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

@media (min-width: 900px) {
  .connect__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.connect__email-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.connect__email-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-muted);
}

.connect__email-desc {
  font-size: var(--text-lg);
  color: var(--text-dim);
  max-width: 400px;
}

.connect__email-input {
  display: flex;
  gap: 0;
  max-width: 400px;
}

.connect__email-input input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: var(--border-subtle);
  border-right: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.connect__email-input input::placeholder {
  color: var(--text-muted);
}

.connect__email-input button {
  padding: var(--space-3) var(--space-6);
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: none;
  transition: background 0.2s ease;
}

.connect__email-input button:hover {
  background: var(--accent-hover);
}

.connect__socials {
  display: flex;
  flex-direction: column;
}

.connect__social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  border-bottom: var(--border-hair);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-dim);
  cursor: none;
  transition: color var(--duration-fast) ease,
              padding-left var(--duration-normal) var(--ease-out-expo);
}

.connect__social-link:hover {
  color: var(--white);
  padding-left: var(--space-4);
}

.connect__social-arrow {
  font-size: var(--text-lg);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.connect__social-link:hover .connect__social-arrow {
  transform: translateX(8px);
}

.connect__social-link.is-soon {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.connect__social-link.is-soon:hover {
  color: inherit;
  padding-left: 0;
}

.connect__social-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  opacity: 0.7;
}

.connect__webrift {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: var(--border-subtle);
}

.connect__webrift p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.connect__webrift a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-text);
}


/* === FOOTER === */
.footer {
  border-top: var(--border-hair);
  padding: var(--space-10) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
}

.footer__copy span {
  color: var(--accent-text);
}

.footer__top {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  cursor: none;
  transition: color var(--duration-fast) ease;
}

.footer__top:hover {
  color: var(--white);
}


/* === SUBSCRIBE SUCCESS / ERROR === */
.connect__subscribe-success,
.connect__subscribe-error {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 400px;
}

.connect__subscribe-success {
  color: #22C55E;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.connect__subscribe-icon {
  font-size: var(--text-lg);
  line-height: 1;
}

.connect__subscribe-error {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}


/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-elevated, #1a1a1a);
  color: var(--white);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.3);
  color: #22C55E;
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

.toast--info {
  border-color: hsla(var(--accent-hue, 210), 100%, 55%, 0.3);
  color: var(--accent-text);
}

/* ========================================
   STORY (Origin Story Timeline)
   ======================================== */
.section--story {
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}

.story__lede {
  max-width: 68ch;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--white-soft, #D4D4D4);
  margin: 0 0 3.5rem;
  opacity: 0.85;
}

.story__timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: story;
}

.story__timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    hsla(var(--accent-hue, 220), 100%, 55%, 0.35) 8%,
    hsla(var(--accent-hue, 220), 100%, 55%, 0.35) 92%,
    transparent 100%
  );
}

.story__item {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
  counter-increment: story;
}

.story__item:last-child {
  padding-bottom: 0;
}

.story__marker {
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--black-rich, #0A0A0B);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px hsla(var(--accent-hue, 220), 100%, 55%, 0.08),
              0 0 24px -4px var(--accent-glow);
}

.story__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.story__year {
  color: var(--accent-text);
}

.story__place {
  color: var(--white-soft, #D4D4D4);
  opacity: 0.6;
}

.story__title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--white, #EDEDED);
  margin: 0 0 0.6rem;
}

.story__body {
  max-width: 68ch;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white-soft, #D4D4D4);
  opacity: 0.82;
  margin: 0;
}

.story__body code {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.9em;
  padding: 0.05em 0.35em;
  background: hsla(var(--accent-hue, 220), 100%, 55%, 0.1);
  color: var(--accent-hover);
  border-radius: 3px;
}

.story__body a {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid hsla(var(--accent-hue, 220), 100%, 55%, 0.35);
  transition: border-color 150ms ease-out, color 150ms ease-out;
}

.story__body a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

@media (max-width: 600px) {
  .story__item {
    padding-left: 2rem;
  }
  .story__marker {
    width: 0.9rem;
    height: 0.9rem;
  }
  .story__timeline::before {
    left: 0.4rem;
  }
}

/* Secondary hero CTA — outlined, so the primary action stays the loud one. */
.hero__subscribe--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__subscribe--ghost:hover {
  background: transparent;
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: none;
}

[data-theme="light"] .hero__subscribe--ghost {
  border-color: rgba(0, 0, 0, 0.22);
}

/* Inline links inside lede copy */
.story__lede a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-muted);
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.story__lede a:hover,
.story__lede a:focus-visible {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}
