/* ============================================================================
 * foreground.css — DEPTH WITHOUT CONTAINERS
 * ---------------------------------------------------------------------------
 * The Mediterranean world is scenery. Content stays in front through stacking,
 * crisp light ink and controlled shadows — never through cards behind the nav,
 * identity, carousel, record, ventures or contact content.
 * ========================================================================== */

/* Move the painted world one quiet tonal step back while leaving the whole
   image visible. This is a single scene-wide atmosphere, not a content box. */
html[data-world]:not([data-world="blank"]) #scenery.pixel-worlds::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(4, 6, 7, 0.17) 0%,
      rgba(4, 6, 7, 0.08) 22%,
      rgba(4, 6, 7, 0.08) 72%,
      rgba(4, 6, 7, 0.18) 100%
    );
}

.stage > main,
.chapters,
.chapter-block {
  position: relative;
  z-index: 2;
}

.scene--hero,
.chapter-block {
  isolation: isolate;
}

/* Navigation floats as type only. */
.chrome__nav {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-world]:not([data-world="blank"])
  .chrome__nav a:not(:hover):not(:focus-visible):not([aria-current="true"]),
html[data-world]:not([data-world="blank"]) .chrome__nav a[aria-current="true"] {
  color: #fffaf0;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 3px 8px rgba(0, 0, 0, 0.72);
}

/* No plate behind the ASCII drawing. The light glyphs carry a tight dark edge
   and a deeper cast shadow, which puts the mark in front without boxing it. */
.hero__mark-stage {
  z-index: 3;
}

.hero__mark-stage::before {
  display: none !important;
}

.hero__mark-stage .hero__wordmark:not(.hero__wordmark--echo) {
  position: relative;
  z-index: 2;
  color: #fffaf0 !important;
  /* THE THIRD LAYER WAS THE THING DARKENING THE SCENE.
   *
   * `0 8px 20px rgba(0,0,0,0.76)` is a 20px-deep black cast around EVERY
   * glyph, and the mark is ~6,000 characters spread across 792px — so those
   * casts overlap into one continuous dark cloud sitting on the pixel
   * painting. It was doing more to flatten the artwork than the scrim behind
   * it ever did, and it was doing it for legibility the two tight layers
   * already provide.
   *
   * Kept: the 1px core, which is what stops a bright pixel bleeding through a
   * thin stroke, and the 2px seat that gives the mark contact. Both hug the
   * letterform. Replaced: the wide cast, by a much shallower and far more
   * transparent one — enough to keep the mark from shimmering over
   * high-detail areas, not enough to be seen as shading. */
  text-shadow:
    0 0 1px rgba(0, 0, 0, 1),
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.34) !important;
}

/* Topics and stat buttons remain open to the scenery. */
.hero__details {
  width: auto;
  padding: 0;
}

.hero__details::before {
  display: none !important;
}

.scene--hero .hero__pills {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: clamp(18px, 2.5vw, 32px);
  width: max-content;
  max-width: calc(100vw - 48px);
  margin: clamp(10px, 1.8vh, 18px) auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  translate: clamp(-90px, -6vw, -50px) -18px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.scene--hero .hero__pill,
.scene--hero .hero__pill.glass,
html[data-world] .scene--hero .hero__pill,
html[data-world] .scene--hero .hero__pill.glass {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  cursor: help;
}

.scene--hero .hero__pill b,
html[data-world] .scene--hero .hero__pill b {
  font-family: var(--mono);
  font-size: clamp(10px, 0.82vw, 13px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scene--hero .hero__pill i,
html[data-world] .scene--hero .hero__pill i {
  font-family: var(--mono);
  font-size: clamp(7px, 0.5vw, 8px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.2em;
}

.scene--hero .hero__pill-wrap:hover .hero__pill,
.scene--hero .hero__pill:focus-visible,
html[data-world] .scene--hero .hero__pill-wrap:hover .hero__pill,
html[data-world] .scene--hero .hero__pill:focus-visible {
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
  opacity: 0.72;
}

.scene--hero .hero__pill-info,
html[data-world] .scene--hero .hero__pill-info {
  right: auto;
  bottom: auto;
  left: 0;
  top: calc(100% + 3px);
  width: min(220px, 75vw);
  max-width: none;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  color: #fffaf0;
  font-family: var(--mono);
  font-size: clamp(8px, 0.64vw, 10px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 4px 12px rgba(0, 0, 0, 0.78);
}

html[data-world]:not([data-world="blank"]) .hero__disciplines,
html[data-world]:not([data-world="blank"]) .hero__pill b,
html[data-world]:not([data-world="blank"]) .hero__pill i {
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 4px 12px rgba(0, 0, 0, 0.72);
}

/* Ventures are large floating titles again: no panel, no row boxes. */
.venture-index {
  padding:
    clamp(34px, 5vh, 58px)
    0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.venture + .venture {
  border-top: 0;
}

.venture,
a.venture:hover,
a.venture:focus-visible {
  background: none;
}

.venture__name {
  color: #fffaf0;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 4px 14px rgba(0, 0, 0, 0.78),
    0 12px 28px rgba(0, 0, 0, 0.42);
}

/* Building With belongs to the same editorial foreground as Ventures. The
   logos remain open to the scenery; scale, type and edge fades create the
   hierarchy instead of a panel behind them. */
#building,
#building .stack-carousel,
#building .stack-track,
#building .stack-grid,
#building .stack-grid > li {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#building {
  margin-top: clamp(90px, 13vh, 150px);
  margin-bottom: clamp(90px, 13vh, 150px);
  padding: 0;
}

#building .section-title {
  width: min(calc(100% - 32px), 64rem);
  margin: 0 auto;
  padding: 0;
  border-bottom: 0;
  color: #fffaf0;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.018em;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 4px 14px rgba(0, 0, 0, 0.78),
    0 12px 28px rgba(0, 0, 0, 0.42);
}

#building .stack-count {
  margin: 14px 0 0;
  color: #fffaf0;
  font-family: var(--mono);
  font-size: clamp(8px, 0.62vw, 10px);
  font-weight: 500;
  letter-spacing: 0.2em;
  opacity: 0.78;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 4px 12px rgba(0, 0, 0, 0.72);
}

#building .stack-carousel {
  margin-top: clamp(34px, 5vh, 58px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

#building .stack-carousel::-webkit-scrollbar {
  display: none;
}

#building .stack-carousel.is-dragging {
  cursor: grabbing;
}

#building .stack-track {
  width: max-content;
  min-width: 100%;
}

#building .stack-grid {
  animation: building-grid-drift var(--stack-duration, 48s) linear infinite !important;
}

#building .stack-grid > li:nth-child(4n + 2),
#building .stack-grid > li:nth-child(4n + 4) {
  translate: 50% 0;
}

@keyframes building-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--stack-loop, -100vw), 0, 0); }
}

#building .stack-grid > li img {
  opacity: 1;
  filter: saturate(1) brightness(1.04)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.92))
    drop-shadow(0 5px 12px rgba(0, 0, 0, 0.42));
  transition:
    opacity 220ms linear,
    filter 260ms linear,
    transform 420ms var(--ease-out);
}

#building .stack-grid > li[data-ink="mono"] img {
  filter: brightness(0) invert(1)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.92))
    drop-shadow(0 5px 12px rgba(0, 0, 0, 0.42));
}

@media (hover: hover) {
  #building .stack-grid > li:hover img {
    opacity: 1;
    filter: saturate(1) brightness(1.08)
      drop-shadow(0 1px 1px rgba(0, 0, 0, 0.94))
      drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
    transform: translateY(-4px) scale(1.08);
  }

  #building .stack-grid > li[data-ink="mono"]:hover img {
    filter: brightness(0) invert(1)
      drop-shadow(0 1px 1px rgba(0, 0, 0, 0.94))
      drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
  }
}

/* Selling On is one clean, tactile ribbon of marketplace marks. */
.selling-section,
#connect > .selling-section {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding: clamp(96px, 14vh, 158px) 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: hidden;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.selling-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: min(calc(100% - clamp(32px, 7vw, 96px)), 76rem);
  margin: 0 auto clamp(52px, 7vh, 76px);
}

.selling-section .section-title {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: rgba(255, 250, 240, 0.78);
  font-family: var(--mono);
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.24em;
  text-align: left;
  text-transform: uppercase;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 3px 10px rgba(0, 0, 0, 0.72);
}

.selling-hint {
  flex: none;
  margin: 0 0 0.5em;
  color: rgba(255, 250, 240, 0.72);
  font: 600 clamp(10px, 0.8vw, 12px) / 1 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85);
}

.selling-flow {
  display: grid;
  gap: 0;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.selling-flow:focus-visible {
  outline: 1px solid rgba(255, 250, 240, 0.72);
  outline-offset: 12px;
}

.selling-flow.is-dragging {
  cursor: grabbing;
}

.selling-lane {
  --selling-gap: clamp(48px, 6vw, 88px);
  --selling-shift: 0px;
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.selling-lane--left {
  animation: selling-lane-left 72s linear infinite !important;
}

.selling-run {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--selling-gap);
  padding-right: var(--selling-gap);
}

.selling-item {
  display: grid;
  flex: 0 0 clamp(210px, 18vw, 290px);
  grid-template-rows: 1fr;
  place-items: center;
  gap: 0;
  min-height: clamp(150px, 14vw, 210px);
  color: #fffaf0;
  text-decoration: none;
  transition: opacity 240ms linear, transform 520ms var(--ease-out);
}

.selling-logo {
  display: grid;
  place-items: center;
  width: clamp(112px, 10vw, 156px);
  height: clamp(112px, 10vw, 156px);
}

.selling-logo--wide {
  width: clamp(198px, 18vw, 286px);
}

.selling-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter:
    drop-shadow(0 1px 1px rgba(255, 250, 240, 0.42))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8));
  transition:
    filter 240ms linear,
    transform 520ms var(--ease-out);
}

.selling-name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: hover) {
  a.selling-item:hover .selling-logo img,
  a.selling-item:focus-visible .selling-logo img,
  .selling-item:hover .selling-logo img {
    filter:
      drop-shadow(0 1px 1px rgba(255, 250, 240, 0.5))
      drop-shadow(0 8px 18px rgba(0, 0, 0, 0.52));
    transform: translateY(-6px) scale(1.09);
  }
}

.selling-flow.is-dragging .selling-logo img {
  transform: scale(0.96);
}

@keyframes selling-lane-left {
  from { transform: translate3d(var(--selling-shift), 0, 0); }
  to { transform: translate3d(calc(-50% + var(--selling-shift)), 0, 0); }
}

/* Connect returns to an open composition. The form fields keep their own
   functional input surfaces, but the section and message block have no card. */
#connect > .section-title--chapter,
#connect > .connect__block:not(.selling-section),
#connect > .connect__block--open:not(.selling-section) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.connect__title,
.connect__address,
.account__handle,
.account__desc,
.markets__name,
.field__label,
.section-title {
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 4px 12px rgba(0, 0, 0, 0.68);
}

@media (max-width: 720px) {

  .venture-index {
    padding: 22px 0;
  }

  #building {
    margin-top: 76px;
    margin-bottom: 82px;
  }

  #building .section-title {
    width: calc(100% - 28px);
    font-size: clamp(42px, 12vw, 58px);
  }

  #building .stack-carousel {
    margin-top: 28px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  }

  .selling-section,
  #connect > .selling-section {
    padding: 82px 0 102px;
  }

  .selling-intro {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    width: calc(100% - 32px);
    margin-bottom: 44px;
  }

  .selling-section .section-title {
    font-size: 11px;
  }

  .selling-hint {
    margin: 0;
    font-size: 10px;
  }

  .selling-flow {
    gap: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  }

  .selling-lane {
    --selling-gap: 34px;
  }

  .selling-item {
    flex-basis: 190px;
    grid-template-rows: 1fr;
    min-height: 146px;
  }

  .selling-logo {
    width: 104px;
    height: 104px;
  }

  .selling-logo--wide {
    width: 184px;
  }
}

/* ============================================================================
 * PAGE CHOREOGRAPHY
 * The content moves once as it enters. The background continues moving slowly
 * behind it, so the two planes never feel mechanically locked together.
 * ========================================================================== */

.scroll-meter {
  position: fixed;
  top: 50%;
  left: clamp(8px, 1vw, 14px);
  z-index: 29;
  width: 1px;
  height: clamp(84px, 17vh, 132px);
  overflow: visible;
  background: rgba(255, 250, 240, 0.20);
  pointer-events: none;
  translate: 0 -50%;
}

.scroll-meter i {
  position: absolute;
  inset: 0;
  display: block;
  background: #fffaf0;
  box-shadow: 0 0 10px rgba(255, 250, 240, 0.42);
  scale: 1 var(--page-progress, 0);
  transform-origin: 50% 0;
  will-change: scale;
}

.motion-ready [data-reveal] {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 42px, 0) scale(0.985);
  transform-origin: 50% 35%;
  transition:
    opacity 760ms var(--ease-out),
    filter 900ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
  will-change: opacity, filter, transform;
}

.motion-ready [data-reveal].is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.motion-ready [data-reveal].is-settled {
  will-change: auto;
}

/* The plate makes one very slow camera push over the length of the page. It is
   only 2.4%, safely inside the artwork's existing overscan. */
.scene-photo {
  transform:
    translate3d(
      calc(var(--pan-x, 0) * 0.7%),
      calc(var(--pan-y, 0) * 0.4% + var(--pan-s, 0) * 2%),
      0
    )
    scale(var(--scene-scale, 1));
}

/* Fixed navigation: calm at rest, decisive once a chapter owns it. */
.chrome__nav a {
  transition:
    color 220ms linear,
    opacity 220ms linear,
    text-shadow 220ms linear,
    transform 360ms var(--ease-out),
    letter-spacing 360ms var(--ease-out);
}

.chrome__nav a:hover,
.chrome__nav a:focus-visible {
  transform: translateY(-2px);
}

.chrome__nav a[aria-current="page"] {
  opacity: 1;
  letter-spacing: 0.2em;
}

/* Ventures behave as one editorial index. The selected line approaches while
   its neighbours recede; no cards or backgrounds are introduced. */
.venture {
  transform-origin: 50% 50%;
  transition:
    opacity 300ms linear,
    transform 520ms var(--ease-out),
    filter 420ms var(--ease-out);
}

@media (hover: hover) {
  .venture-index:has(.venture:hover) .venture:not(:hover) {
    opacity: 0.42;
    filter: blur(0.4px);
    transform: scale(0.985);
  }

  .venture:hover,
  a.venture:hover,
  a.venture:focus-visible {
    transform: translateX(10px) scale(1.018);
  }

  .account,
  .markets li {
    transition:
      opacity 240ms linear,
      transform 420ms var(--ease-out);
  }

  .account:hover,
  .markets li:hover {
    transform: translateX(8px);
  }

  .account__links a img,
  .markets__logo img {
    transition: transform 420ms var(--ease-out), filter 240ms linear;
  }

  .account__links a:hover img,
  .markets a:hover .markets__logo img {
    transform: translateY(-2px) rotate(-4deg) scale(1.08);
  }
}

.field__input {
  transition:
    border-color 220ms linear,
    background-color 220ms linear,
    box-shadow 360ms var(--ease-out),
    transform 360ms var(--ease-out);
}

.field__input:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
}

.button {
  transition:
    color 200ms linear,
    border-color 200ms linear,
    transform 380ms var(--ease-out),
    box-shadow 380ms var(--ease-out);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

/* Socials is an oversized editorial directory. It stays completely open to
   the scenery: scale, rhythm and motion create structure instead of boxes or
   rules. */
.socials-section {
  width: min(calc(100% - clamp(28px, 6vw, 80px)), 76rem);
  max-width: none;
  padding-block: clamp(92px, 15vh, 180px);
  overflow: visible;
}

.socials-section > .section-title {
  width: auto;
  margin: 0 0 clamp(58px, 9vh, 96px);
  padding: 0;
  border: 0;
  color: rgba(255, 250, 240, 0.76);
  font-family: var(--mono);
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.24em;
  text-align: left;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.82);
}

.socials-section .accounts {
  counter-reset: social-account;
  gap: clamp(66px, 12vh, 132px);
}

.socials-section .account {
  counter-increment: social-account;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "handle handle"
    "description links";
  align-items: end;
  justify-items: start;
  gap: 14px clamp(24px, 5vw, 76px);
  width: min(92%, 69rem);
  padding: 0;
  border: 0 !important;
  text-align: left;
  transform: none;
}

.socials-section .account:nth-child(even) {
  justify-self: end;
  justify-items: end;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "handle handle"
    "links description";
  text-align: right;
}

.socials-section .account::before {
  content: "0" counter(social-account);
  position: absolute;
  top: 0.16em;
  right: calc(100% + clamp(10px, 2vw, 28px));
  color: rgba(255, 250, 240, 0.58);
  font: 600 clamp(10px, 0.8vw, 12px) / 1 var(--mono);
  letter-spacing: 0.16em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85);
}

.socials-section .account:nth-child(even)::before {
  right: auto;
  left: calc(100% + clamp(10px, 2vw, 28px));
}

.socials-section .account__handle {
  grid-area: handle;
  color: #fffaf0;
  font-size: clamp(66px, 8.8vw, 126px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  white-space: nowrap;
  transition:
    letter-spacing 520ms var(--ease-out),
    transform 520ms var(--ease-out),
    color 220ms linear;
}

.socials-section .account__desc {
  grid-area: description;
  padding-bottom: 9px;
  color: rgba(255, 250, 240, 0.72);
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.18em;
}

.socials-section .account__links {
  grid-area: links;
  justify-content: inherit;
  gap: 10px clamp(18px, 2.4vw, 34px);
  margin: 0;
}

.socials-section .account__links a {
  gap: 9px;
  min-height: 44px;
  color: #fffaf0;
  font-size: clamp(15px, 1.2vw, 19px);
  letter-spacing: 0.015em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.82);
}

.socials-section .account__links a::after {
  content: "\2197";
  margin-left: 1px;
  font-size: 0.78em;
  opacity: 0.7;
  transition: transform 360ms var(--ease-out), opacity 220ms linear;
}

.socials-section .account__links img {
  width: 27px;
  height: 27px;
  opacity: 1;
}

@media (hover: hover) {
  .socials-section .accounts:has(.account:hover) .account:not(:hover) {
    opacity: 0.3;
    filter: blur(0.45px);
  }

  .socials-section .account:hover {
    transform: none;
  }

  .socials-section .account:hover .account__handle {
    color: #ffffff;
    letter-spacing: -0.075em;
    transform: translateX(12px);
  }

  .socials-section .account:nth-child(even):hover .account__handle {
    transform: translateX(-12px);
  }

  .socials-section .account__links a:hover::after,
  .socials-section .account__links a:focus-visible::after {
    opacity: 1;
    transform: translate(3px, -3px);
  }
}

@media (max-width: 720px) {
  .socials-section {
    width: calc(100% - 32px);
    padding-block: 82px 104px;
  }

  .socials-section > .section-title {
    width: 100%;
    margin-bottom: 58px;
    font-size: 11px;
    text-align: center;
  }

  .socials-section .accounts {
    gap: 76px;
  }

  .socials-section .account,
  .socials-section .account:nth-child(even) {
    justify-self: center;
    justify-items: center;
    grid-template-columns: 1fr;
    grid-template-areas:
      "handle"
      "description"
      "links";
    width: 100%;
    gap: 9px;
    text-align: center;
  }

  .socials-section .account::before,
  .socials-section .account:nth-child(even)::before {
    top: -24px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .socials-section .account__handle {
    max-width: 100%;
    font-size: clamp(36px, 10.8vw, 50px);
    line-height: 0.9;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .socials-section .account__desc {
    padding-bottom: 2px;
    font-size: clamp(14px, 4vw, 17px);
    letter-spacing: 0.1em;
    text-shadow: none;
  }

  .socials-section .account__links {
    justify-content: center;
    margin-top: 8px;
  }

  .socials-section .account__links a {
    min-height: 48px;
    font-size: clamp(17px, 4.8vw, 20px);
  }

  .socials-section .account__links img {
    width: 34px;
    height: 34px;
  }
}

/* ============================================================================
 * COHESION PASS
 * A shared rhythm now governs every chapter. Display-led sections use one
 * scale, directory labels use another, and all content aligns to the same two
 * widths while remaining completely open to the moving scenery.
 * ========================================================================== */
:root {
  --section-space: clamp(88px, 12vh, 142px);
  --section-wide: min(calc(100% - clamp(28px, 6vw, 80px)), 64rem);
  --section-reading: min(calc(100% - clamp(28px, 6vw, 80px)), 46rem);
  --section-display: clamp(46px, 6.2vw, 82px);
}

#about,
#ventures,
.socials-section,
#connect {
  padding-block: var(--section-space);
}

#about,
#connect {
  width: var(--section-reading);
}

#ventures,
.socials-section {
  width: var(--section-wide);
  max-width: none;
}

#building,
.selling-section,
#connect > .selling-section {
  margin-top: 0;
  margin-bottom: 0;
  padding-block: var(--section-space);
}

#building .section-title,
.selling-section .section-title {
  width: var(--section-wide);
  margin: 0 auto;
  padding: 0;
  border: 0;
  color: #fffaf0;
  font-family: var(--prose);
  font-size: var(--section-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.018em;
  text-align: left;
  text-transform: none;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 4px 14px rgba(0, 0, 0, 0.78),
    0 12px 28px rgba(0, 0, 0, 0.42);
}

#about .chapter__label {
  position: static;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}

#about .chapter__label {
  width: auto;
  margin: 0 0 clamp(42px, 6vh, 68px);
  padding: 0;
  border: 0;
  color: rgba(255, 250, 240, 0.76);
  font: 600 clamp(11px, 0.9vw, 14px) / 1 var(--mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.82);
}

#ventures .venture-index {
  width: 100%;
  padding: 0;
}

/* Selling On follows Building With's open logo language, but uses two broad
   wordmark rows so twelve marketplaces feel deliberate instead of sparse. */
.selling-intro {
  display: block;
  width: var(--section-wide);
  margin-bottom: clamp(34px, 5vh, 58px);
}

#building {
  padding-bottom: clamp(28px, 4vh, 48px);
}

.selling-section,
#connect > .selling-section {
  padding-top: clamp(28px, 4vh, 48px);
}

.selling-section .section-title {
  width: 100%;
  text-align: left;
}

.selling-flow {
  display: block;
  gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.selling-lane {
  --selling-cell-x: clamp(168px, 15vw, 228px);
  --selling-cell-y: clamp(122px, 11vw, 154px);
  --selling-gap-x: clamp(24px, 3vw, 44px);
  --selling-gap-y: clamp(18px, 2.2vh, 26px);
}

.selling-lane--left {
  animation: selling-lane-left 54s linear infinite !important;
}

.selling-run {
  display: grid;
  grid-template-rows: repeat(2, var(--selling-cell-y));
  grid-auto-flow: column;
  grid-auto-columns: var(--selling-cell-x);
  column-gap: var(--selling-gap-x);
  row-gap: var(--selling-gap-y);
  padding-right: var(--selling-gap-x);
}

.selling-item {
  width: var(--selling-cell-x);
  height: var(--selling-cell-y);
  min-height: 0;
  transform: none;
}

.selling-run .selling-item:nth-child(2n + 2) {
  translate: 50% 0;
}

.selling-logo {
  width: clamp(98px, 9vw, 128px);
  height: clamp(98px, 9vw, 128px);
}

.selling-logo--wide {
  width: clamp(164px, 15vw, 218px);
}

.selling-logo img[src$="/amazon.svg"],
.selling-logo img[src$="/whatnot.svg"] {
  filter:
    brightness(0) invert(1)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.94))
    drop-shadow(0 5px 12px rgba(0, 0, 0, 0.42));
}

/* Socials keeps its intentionally quiet label; the handles remain the display
   layer. Its outer spacing now matches every other chapter. */
.socials-section > .section-title {
  margin-bottom: clamp(58px, 9vh, 96px);
}

/* Contact follows the same display/utility hierarchy as the rest of the page. */
#connect > .connect__block {
  margin: 0;
}

#connect > .connect__block + .connect__block {
  margin-top: clamp(112px, 16vh, 176px);
}

#email-title {
  margin-bottom: 14px;
  font-size: var(--section-display);
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.connect__address {
  border-bottom: 0;
}

/* A conventional information footer, kept transparent so it still belongs to
   the foreground rather than becoming a dark panel over the scenery. */
.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(72px, 10vh, 112px) 0 28px;
  border-top: 1px solid rgba(255, 250, 240, 0.16);
  background-color: #050505;
  box-shadow: inset 0 18px 50px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fffaf0;
}

.site-footer__inner,
.site-footer__bottom {
  width: min(calc(100% - clamp(32px, 7vw, 96px)), 76rem);
  margin-inline: auto;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1.35fr 0.8fr 1fr;
  align-items: start;
  gap: clamp(34px, 4vw, 66px);
}

.site-footer__name {
  margin: 0;
  font-family: var(--prose);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 1), 0 4px 12px rgba(0, 0, 0, 0.68);
}

.site-footer__tagline {
  max-width: 18rem;
  margin: 16px 0 0;
  color: rgba(255, 250, 240, 0.68);
  font: 500 11px / 1.65 var(--mono);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.82);
}

.site-footer__heading {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  color: rgba(255, 250, 240, 0.62);
  font: 600 10px / 1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.82);
}

.footer-links,
.site-footer .markets.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.site-footer .markets.footer-links a {
  display: inline-flex;
  grid-auto-flow: unset;
  align-items: center;
  justify-content: flex-start;
  justify-items: start;
  gap: 8px;
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  color: #fffaf0;
  font: 500 clamp(12px, 0.9vw, 14px) / 1.35 var(--mono);
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration: none;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.82);
  transition: opacity 180ms linear, transform 320ms var(--ease-out);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 0.7;
  transform: translateX(4px);
}

.site-footer .markets__logo {
  width: 20px;
  height: 20px;
}

.site-footer .markets__logo--none {
  display: none;
}

.site-footer .markets a > i {
  font-size: 0.8em;
  color: rgba(255, 250, 240, 0.56);
}

.site-footer__column a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(64px, 9vh, 96px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 240, 0.18);
  color: rgba(255, 250, 240, 0.54);
  font: 500 9px / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.82);
}

.site-footer__bottom p {
  margin: 0;
}

@media (max-width: 720px) {
  :root {
    --section-space: clamp(72px, 10vh, 100px);
    --section-wide: calc(100% - 32px);
    --section-reading: calc(100% - 32px);
    --section-display: clamp(42px, 12vw, 58px);
  }

  #building,
  .selling-section,
  #connect > .selling-section {
    padding-block: var(--section-space);
  }

  #building .section-title,
  .selling-section .section-title {
    width: var(--section-wide);
    font-size: var(--section-display);
  }

  .selling-intro {
    display: block;
    width: var(--section-wide);
    margin-bottom: 36px;
  }

  .selling-flow {
    gap: 0;
  }

  .selling-lane {
    --selling-cell-x: 146px;
    --selling-cell-y: 108px;
    --selling-gap-x: 20px;
    --selling-gap-y: 16px;
  }

  .selling-item {
    width: var(--selling-cell-x);
    height: var(--selling-cell-y);
    min-height: 0;
  }

  .selling-logo {
    width: 86px;
    height: 86px;
  }

  .selling-logo--wide {
    width: 138px;
  }

  .site-footer {
    padding-top: 64px;
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 28px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__tagline {
    max-width: 24rem;
  }

  .site-footer__bottom {
    margin-top: 64px;
  }
}

@media (max-width: 520px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* ============================================================================
 * PROFESSIONAL FINISH
 * Preserve the site's character while removing the effects that made the
 * foreground feel noisy: stacked glows, neighbour blur and exaggerated hover
 * travel. Contrast now comes from clean color and the scene-wide atmosphere.
 * ========================================================================== */
#building .section-title,
.selling-section .section-title,
.venture__name,
#email-title,
.connect__address {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.68),
    0 3px 10px rgba(0, 0, 0, 0.22);
}

.socials-section .account__handle,
.socials-section .account__desc,
.socials-section .account__links a {
  text-shadow: none;
}

.socials-section .account__handle {
  color: #171411;
}

.site-footer__name,
.site-footer__tagline,
.site-footer__heading,
.site-footer .footer-links a,
.site-footer__bottom {
  text-shadow: none;
}

.motion-ready [data-reveal] {
  filter: blur(3px);
  transform: translate3d(0, 28px, 0) scale(0.992);
}

.field__input:focus {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

@media (hover: hover) {
  .venture-index:has(.venture:hover) .venture:not(:hover) {
    opacity: 0.58;
    filter: none;
    transform: none;
  }

  .venture:hover,
  a.venture:hover,
  a.venture:focus-visible {
    transform: translateX(6px);
  }

  .socials-section .accounts:has(.account:hover) .account:not(:hover) {
    opacity: 0.58;
    filter: none;
  }

  .socials-section .account:hover,
  .markets li:hover {
    transform: none;
  }

  .socials-section .account:hover .account__handle,
  .socials-section .account:nth-child(even):hover .account__handle {
    color: #171411;
    letter-spacing: -0.055em;
    transform: none;
  }

  .account__links a:hover img,
  .markets a:hover .markets__logo img {
    transform: translateY(-2px) scale(1.05);
  }
}

/* Socials switches to a true centered stack across the full narrow-screen
   range. This sits after every desktop and chapter rule so the old alternating
   grid cannot leak back into mobile layouts. */
@media (max-width: 900px) {
  .scroll-meter {
    display: none !important;
  }

  .socials-section,
  .socials-section > .section-title {
    text-align: center;
  }

  .socials-section {
    overflow-x: clip;
  }

  .socials-section > .section-title {
    width: 100%;
    color: #4f4a43;
    text-shadow: none !important;
  }

  .socials-section .accounts {
    gap: 64px;
    justify-items: center;
  }

  .socials-section .account,
  .socials-section .account:nth-child(even) {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  .socials-section .account::before,
  .socials-section .account:nth-child(even)::before {
    display: none;
  }

  .socials-section .account__handle {
    max-width: 100%;
    margin-inline: auto;
    color: #171411 !important;
    font-size: clamp(30px, 10.2vw, 44px);
    line-height: 0.94;
    text-align: center;
    text-shadow: none !important;
    filter: none !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .socials-section .account__desc {
    margin-inline: auto;
    padding: 0;
    color: #4f4a43;
    font: 600 clamp(12px, 3.8vw, 14px) / 1.2 var(--mono) !important;
    letter-spacing: 0.1em;
    text-align: center;
    text-shadow: none !important;
    filter: none !important;
    box-shadow: none !important;
  }

  .socials-section .account__links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-items: center;
    justify-content: center !important;
    justify-items: center;
    place-content: center;
    width: 100%;
    gap: 10px 18px;
    max-width: 100%;
    margin: 10px auto 0;
  }

  .socials-section .account__links a {
    gap: 7px;
    justify-content: center;
    min-height: 44px;
    color: #171411;
    font: 500 clamp(14px, 4.2vw, 17px) / 1 var(--mono) !important;
    text-shadow: none !important;
    filter: none !important;
    box-shadow: none !important;
  }

  .socials-section .account__links img {
    width: 22px;
    height: 22px;
    opacity: 1;
    filter: none !important;
    box-shadow: none !important;
  }

  .socials-section .account__links a:nth-child(1) img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(49%) saturate(2877%) hue-rotate(298deg) brightness(88%) contrast(89%) !important;
  }

  .socials-section .account__links a:nth-child(2) img {
    filter: brightness(0) saturate(100%) invert(40%) sepia(90%) saturate(790%) hue-rotate(139deg) brightness(89%) contrast(101%) !important;
  }

  .socials-section .account__links a::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .scroll-meter {
    left: 5px;
    height: 72px;
    opacity: 0.72;
  }

  .motion-ready [data-reveal] {
    filter: blur(4px);
    transform: translate3d(0, 28px, 0) scale(0.99);
  }
}
