/* Process page: Why Choose Forge catalogue. Linked from process/index.html only.
   One continuous mill-grain canvas. The two showcase stages (sample sites, Our
   Standards) share a header grammar, square controls, and an accent glow that
   follows the active item. Colour comes only from the site theme and the active
   item's accent; everything else stays quiet. */

body.page-process {
  background-color: var(--color-bg, #18181b);
  background-image:
    var(--forge-mill-grain),
    radial-gradient(90% 48% at 50% 108%, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 58%);
  background-repeat: repeat, no-repeat;
  background-size: 160px 160px, auto;
}

body.page-process .section,
body.page-process #process-work,
body.page-process #why-choose-forge,
body.page-process #intake-tips {
  background: transparent;
}

body.page-process .page-scene__content > .why-choose-forge {
  min-height: 0;
  background: transparent;
}

body.page-process .page-scene__content > .why-choose-forge::after {
  display: none;
}

body.page-process #why-choose-forge {
  margin-bottom: 0;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

body.page-process #intake-tips {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}

/* Hairline seams instead of colour bands between the page's chapters. */
body.page-process #why-choose-forge > .site-shell,
body.page-process #intake-tips > .site-shell {
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
}

/* ---------------------------------------------------------------------------
   Shared: section headers sit left, controls sit right.
   --------------------------------------------------------------------------- */

/* Centred like every other section heading on the site (.section-heading). */
#process-work .section-heading,
#why-choose-forge .why-choose-forge__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  justify-items: center;
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#process-work .section-heading > div {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

#process-work .section-heading .eyebrow,
#why-choose-forge .why-choose-forge__intro p.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--color-primary);
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

#process-work .section-heading h1,
#why-choose-forge .page-intro.why-choose-forge__intro h2 {
  margin: 0;
  color: var(--color-fg);
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}

#process-work .section-heading > p,
#why-choose-forge .why-choose-forge__intro > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 0.55rem auto 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  text-align: center;
  text-wrap: pretty;
}

/* Square controls (same on both stages). */
#process-work .work-shelf-nav,
#why-choose-forge .std__btn {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--color-primary) 38%, var(--color-border));
  border-radius: 0;
  background: color-mix(in srgb, #0b0b0d 70%, transparent);
  color: var(--color-primary);
  box-shadow: none;
  cursor: pointer;
  transform: none;
}

#process-work .work-shelf-nav:hover,
#process-work .work-shelf-nav:focus-visible,
#why-choose-forge .std__btn:hover,
#why-choose-forge .std__btn:focus-visible {
  background: color-mix(in srgb, var(--color-primary) 16%, #0b0b0d);
  border-color: var(--color-primary);
  box-shadow: 0 0 16px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

#process-work .work-shelf-nav:focus-visible,
#why-choose-forge .std__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

#process-work .work-shelf-nav[hidden] {
  display: none;
}

#process-work .work-shelf-nav svg,
#why-choose-forge .std__btn-icon svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

#why-choose-forge .std__btn-icon {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  line-height: 0;
}

#process-work .work-shelf-count,
#why-choose-forge .std__count {
  min-width: 4.6ch;
  color: color-mix(in srgb, var(--color-fg) 62%, var(--color-muted));
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Sample sites: one large frame at content width, neighbours peeking in.
   --------------------------------------------------------------------------- */

#process-work {
  position: relative;
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

body.page-process #process-work > .site-shell {
  width: min(calc(100% - (2 * var(--page-gutter, 1rem))), var(--content-width, 74rem));
  max-width: none;
  margin-inline: auto;
}

/* Registered so the stage glow can cross-fade between sample accents. */
@property --shelf-glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #e0a04a;
}

#process-work .work-gallery {
  --shelf-glow: #e0a04a;
  --work-card-w: min(
    64rem,
    calc(100vw - (2 * var(--page-gutter, 1rem))),
    calc((100svh - 13rem) * 16 / 9)
  );
  --work-shelf-gap: 1rem;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  transition: --shelf-glow 460ms ease;
}

#process-work .work-gallery:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 6px;
}

/* Control bar: filters left, arrows + counter right. */
#process-work .work-shelf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 1.25rem 0 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
}

#process-work .work-shelf-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

#process-work .work-filters {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}

#process-work .work-filter {
  flex: 0 0 auto;
  margin: 0;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--color-fg) 10%, transparent);
  background: transparent;
  color: color-mix(in srgb, var(--color-fg) 58%, var(--color-muted));
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.36rem 0.62rem;
  white-space: nowrap;
  cursor: pointer;
}

#process-work .work-filter:hover,
#process-work .work-filter:focus-visible {
  border-color: color-mix(in srgb, var(--color-primary) 42%, transparent);
  color: var(--color-fg);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

#process-work .work-filter:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

#process-work .work-filter.is-active,
#process-work .work-filter[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--color-primary) 72%, var(--color-border));
  background: color-mix(in srgb, var(--color-primary) 16%, transparent);
  color: var(--color-fg);
  box-shadow: 0 0 14px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

#process-work .work-filter-launch {
  display: none;
}

/* Full-bleed stage. The frame is placed by transform from the centre; the
   neighbours show at the viewport edges. */
#process-work .work-shelf-track {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-block: 0.5rem 0.9rem;
  overflow: hidden;
  background:
    radial-gradient(
      min(62rem, 70vw) 78% at 50% 52%,
      color-mix(in srgb, var(--shelf-glow) 18%, transparent),
      transparent 72%
    );
  transition: --shelf-glow 460ms ease;
}

#process-work .work-grid,
#process-work .work-grid--compact {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  place-items: center;
  gap: 0;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

#process-work .work-grid.is-dragging {
  cursor: grabbing;
}

#process-work a.work-card[href*="/green-country-lawn/"] { --work-accent: #438a2d; }
#process-work a.work-card[href*="/iron-star-smokehouse/"] { --work-accent: #c94c28; }
#process-work a.work-card[href*="/redbud-cpa/"] { --work-accent: #a9235c; }
#process-work a.work-card[href*="/anchor-auto-tire/"] { --work-accent: #d71920; }
#process-work a.work-card[href*="/willow-sage-spa/"] { --work-accent: #c4b48a; }
#process-work a.work-card[href*="/marigold-and-main/"] { --work-accent: #e39a2c; }
#process-work a.work-card[href*="/redland-family-farm/"] { --work-accent: #d4a24a; }
#process-work a.work-card[href*="/the-bramble-venue/"] { --work-accent: #c4964a; }
#process-work a.work-card[href*="/okie-route-rides/"] { --work-accent: #dd5d12; }
#process-work a.work-card[href*="/green-country-prints/"] { --work-accent: #43bd26; }

#process-work .work-card,
#process-work a.work-card {
  --dim: 0;
  --focus: 1;
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: var(--work-card-w);
  max-width: none;
  min-width: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--work-accent, var(--color-primary)) 58%, var(--color-border));
  border-radius: 0.3rem;
  background: #0b0b0d;
  color: var(--color-fg);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  touch-action: pan-y;
  /* transform / visibility / z-index and the --dim / --focus vars are written
     per frame by the shelf script. */
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  z-index: 1;
  transition: none;
}

/* Accent glow behind the frame, strongest when centred. */
#process-work .work-card::before,
#process-work a.work-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.1rem;
  border-radius: inherit;
  background: var(--work-accent, var(--color-primary));
  opacity: calc(0.1 + 0.56 * var(--focus));
  filter: blur(28px);
  pointer-events: none;
}

/* Side frames are dimmed; the script tweens --dim from 0 (front) to .62. */
#process-work .work-card::after,
#process-work a.work-card::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  background: #06060a;
  opacity: var(--dim);
  pointer-events: none;
}

#process-work .work-card.is-focused,
#process-work a.work-card.is-focused {
  border-color: color-mix(in srgb, var(--work-accent, var(--color-primary)) 82%, #fff);
}

#process-work .work-card:focus-visible,
#process-work a.work-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Slim browser chrome above the shot. */
#process-work .work-card__chrome {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  height: 1.7rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid color-mix(in srgb, var(--work-accent, var(--color-primary)) 22%, #1c1c20);
  background: #101013;
  color: color-mix(in srgb, var(--color-fg) 44%, var(--color-muted));
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

#process-work .work-card__dots {
  display: inline-flex;
  gap: 0.32rem;
}

#process-work .work-card__dots i {
  display: block;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--work-accent, var(--color-primary)) 55%, #2a2a30);
}

#process-work .work-card__url {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  padding-right: 3rem;
}

#process-work .work-card__visual,
#process-work.work-section--compact .work-card__visual,
#process-work .work-card__visual--image {
  flex: 0 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: #0b0b0d;
}

#process-work .work-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: none;
}

#process-work .work-card:hover .work-card__image,
#process-work .work-card.is-focused .work-card__image {
  transform: none;
}

#process-work .work-card__sample-label {
  /* The caption already says "Sample"; keep the shot clean. */
  display: none;
}

/* Caption bar under the shot: logo, name + kind, benefit, open hint. */
#process-work .work-gallery--shelf .work-card__body,
#process-work .work-card__caption {
  position: static;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 1rem;
  width: auto;
  height: auto;
  min-height: 4.1rem;
  margin: 0;
  padding: 0.65rem 0.95rem 0.7rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--work-accent, var(--color-primary)) 26%, #1c1c20);
  background: linear-gradient(180deg, #0d0d10 0%, #09090b 100%);
  text-align: left;
}

#process-work .work-card__logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: block;
  width: auto;
  height: 2.6rem;
  max-width: 6.5rem;
  object-fit: contain;
  object-position: left center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

#process-work .work-card__caption-text {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

#process-work .work-card__caption-text > span {
  order: 2;
  margin: 0;
  color: color-mix(in srgb, var(--work-accent, var(--color-primary)) 78%, #fff);
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#process-work .work-card__caption-text > h3 {
  order: 1;
  margin: 0;
  color: var(--color-fg);
  font-family: var(--font-head);
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

#process-work .work-card__caption-text > p {
  order: 3;
  margin: 0.1rem 0 0;
  color: color-mix(in srgb, var(--color-fg) 62%, var(--color-muted));
  font-size: 0.8rem;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

#process-work .work-card__open {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--work-accent, var(--color-primary)) 52%, var(--color-border));
  color: var(--color-fg);
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease;
}

#process-work .work-card__open svg {
  width: 0.85rem;
  height: 0.85rem;
}

#process-work a.work-card.is-focused:hover .work-card__open,
#process-work a.work-card.is-focused:focus-visible .work-card__open {
  background: color-mix(in srgb, var(--work-accent, var(--color-primary)) 22%, transparent);
  border-color: var(--work-accent, var(--color-primary));
}

/* Progress rule: one segment per visible sample; the active one carries the accent. */
#process-work .work-shelf-progress {
  display: flex;
  gap: 0.3rem;
  width: 100%;
  margin: 0.35rem 0 0;
  padding: 0;
}

#process-work .work-shelf-progress[hidden] {
  display: none;
}

#process-work .work-shelf-progress__seg {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#process-work .work-shelf-progress__seg::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 3px;
  translate: 0 -50%;
  background: color-mix(in srgb, var(--color-fg) 12%, transparent);
  transition: background-color 300ms ease, box-shadow 300ms ease;
}

#process-work .work-shelf-progress__seg:hover::before {
  background: color-mix(in srgb, var(--color-fg) 28%, transparent);
}

#process-work .work-shelf-progress__seg.is-active::before {
  background: var(--shelf-glow);
  box-shadow: 0 0 10px color-mix(in srgb, var(--shelf-glow) 60%, transparent);
}

#process-work .work-shelf-progress__seg:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

#process-work .work-gallery__more {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  #process-work a.work-card:not(.is-focused):hover {
    --dim: 0.4 !important;
  }
}

/* Phones and small tablets: the frame nearly fills the screen, neighbours peek
   ~1rem at each edge. Filters move into the modal launcher. */
@media (width <= 767px) {
  #process-work .work-gallery {
    --work-card-w: calc(100vw - 2.6rem);
    --work-shelf-gap: 0.7rem;
  }

  #process-work .work-shelf-bar {
    flex-wrap: nowrap;
    margin: 1rem 0 0.9rem;
  }

  #process-work .work-filters {
    display: none !important;
  }

  #process-work .work-filter-launch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
    height: 2.6rem;
    margin: 0;
    padding: 0 0.85rem 0 0.7rem;
    border: 1px solid color-mix(in srgb, var(--color-primary) 38%, var(--color-border));
    border-radius: 0;
    background: color-mix(in srgb, #0b0b0d 70%, transparent);
    color: var(--color-fg);
    font-family: var(--font-head);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }

  #process-work .work-filter-launch.is-filtered {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 16%, #0b0b0d);
  }

  #process-work .work-filter-launch__icon {
    display: block;
    width: 1rem;
    height: 1rem;
    background: var(--color-primary);
    -webkit-mask: url("/icons/funnel-simple.svg") center / contain no-repeat;
    mask: url("/icons/funnel-simple.svg") center / contain no-repeat;
  }

  #process-work .work-shelf-track {
    padding-block: 0.35rem 0.7rem;
  }

  #process-work .work-card__chrome {
    height: 1.45rem;
    padding: 0 0.6rem;
    font-size: 0.52rem;
  }

  #process-work .work-card__url {
    padding-right: 1.6rem;
  }

  #process-work .work-card__visual,
  #process-work.work-section--compact .work-card__visual,
  #process-work .work-card__visual--image {
    aspect-ratio: 4 / 3;
  }

  #process-work .work-card__sample-label {
    display: none;
  }

  #process-work .work-gallery--shelf .work-card__body,
  #process-work .work-card__caption {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 3.4rem;
    padding: 0.55rem 0.7rem 0.6rem;
    gap: 0.15rem 0.7rem;
  }

  #process-work .work-card__logo {
    height: 2.1rem;
    max-width: 4.5rem;
  }

  #process-work .work-card__caption-text > p,
  #process-work .work-card__open {
    display: none;
  }

  #process-work .work-card__caption-text > h3 {
    font-size: 0.92rem;
  }

  #process-work .work-shelf-progress {
    gap: 0.2rem;
  }
}

@media (width <= 359px) {
  #process-work .work-filter-launch__label {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Our Standards: tab rail + one panel in view.
   --------------------------------------------------------------------------- */

/* Registered so the stage glow can cross-fade between pillar accents. */
@property --std-glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #e0a04a;
}

#why-choose-forge .std {
  --std-glow: #e0a04a;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  transition: --std-glow 420ms ease;
}

#why-choose-forge .std:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 6px;
}

#why-choose-forge .std__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: 1.1rem;
  margin: 0 0 1.1rem;
}

/* Arrows sit in a toolbar row under the centred heading, mirroring the
   Sample Sites shelf bar (controls on the right). */
#why-choose-forge .std__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
}

#why-choose-forge .std__body {
  display: grid;
  grid-template-columns: minmax(12.5rem, 15.5rem) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

/* Tab rail. */
#why-choose-forge .std__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
}

#why-choose-forge .std__tab {
  --tab-accent: var(--color-primary);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.85rem 0.62rem 0.75rem;
  border: 1px solid transparent;
  border-left: 2px solid color-mix(in srgb, var(--color-fg) 10%, transparent);
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--color-fg) 62%, var(--color-muted));
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

#why-choose-forge .std__tab--gold { --tab-accent: #e0a04a; }
#why-choose-forge .std__tab--blue { --tab-accent: #4ea1ff; }
#why-choose-forge .std__tab--green { --tab-accent: #3ecf8e; }
#why-choose-forge .std__tab--teal { --tab-accent: #4ac7b2; }
#why-choose-forge .std__tab--violet { --tab-accent: #a78bfa; }

#why-choose-forge .std__tab:hover {
  color: var(--color-fg);
  background: color-mix(in srgb, var(--color-fg) 4%, transparent);
  border-left-color: color-mix(in srgb, var(--tab-accent) 55%, transparent);
}

#why-choose-forge .std__tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

#why-choose-forge .std__tab.is-active,
#why-choose-forge .std__tab[aria-selected="true"] {
  color: var(--color-fg);
  background: color-mix(in srgb, var(--tab-accent) 9%, transparent);
  border-color: color-mix(in srgb, var(--tab-accent) 22%, transparent);
  border-left-color: var(--tab-accent);
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--tab-accent) 8%, transparent);
}

#why-choose-forge .std__tab .why-choose-forge__icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.3rem;
}

#why-choose-forge .std__tab .why-choose-forge__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  max-width: 1.1rem;
  max-height: 1.1rem;
}

#why-choose-forge .std__tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stage: one glowing panel. */
#why-choose-forge .std__stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--std-glow) 36%, var(--color-border));
  border-radius: 0.3rem;
  background:
    radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--std-glow) 13%, transparent), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, color-mix(in srgb, var(--std-glow) 7%, transparent), transparent 62%),
    color-mix(in srgb, #0b0b0d 78%, transparent);
  box-shadow:
    0 0 38px color-mix(in srgb, var(--std-glow) 16%, transparent),
    0 24px 60px rgba(0, 0, 0, 0.45);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  transition: --std-glow 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

#why-choose-forge .std__stage.is-dragging {
  cursor: grabbing;
}

#why-choose-forge .std__track {
  position: relative;
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#why-choose-forge .std__panel {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  transition: none;
}

/* Panel content. */
#why-choose-forge .why-choose-forge__card {
  --card-accent: var(--color-primary);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: clamp(1.15rem, 2.4vw, 1.9rem) clamp(1.15rem, 2.6vw, 2.1rem) clamp(1.25rem, 2.6vw, 2rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-fg);
  text-align: left;
  transform: none;
  transition: none;
}

#why-choose-forge .why-choose-forge__card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

#why-choose-forge .why-choose-forge__card--gold { --card-accent: #e0a04a; }
#why-choose-forge .why-choose-forge__card--blue { --card-accent: #4ea1ff; }
#why-choose-forge .why-choose-forge__card--green { --card-accent: #3ecf8e; }
#why-choose-forge .why-choose-forge__card--teal { --card-accent: #4ac7b2; }
#why-choose-forge .why-choose-forge__card--violet { --card-accent: #a78bfa; }

#why-choose-forge .why-choose-forge__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  padding: 0 0 0.95rem;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
  background: transparent;
}

#why-choose-forge .why-choose-forge__head .why-choose-forge__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-basis: 2.75rem;
  border-radius: 0.35rem;
  box-shadow: 0 0 22px color-mix(in srgb, var(--card-accent) 26%, transparent);
}

#why-choose-forge .why-choose-forge__head .why-choose-forge__icon svg {
  width: 1.4rem;
  height: 1.4rem;
  min-width: 1.4rem;
  min-height: 1.4rem;
  max-width: 1.4rem;
  max-height: 1.4rem;
}

#why-choose-forge .why-choose-forge__card h3 {
  display: block;
  margin: 0;
  color: var(--color-fg);
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: left;
}

#why-choose-forge .why-choose-forge__card ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem 2.25rem;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  color: color-mix(in srgb, var(--color-fg) 78%, var(--color-muted));
  font-size: var(--text-sm);
  line-height: 1.6;
}

#why-choose-forge .why-choose-forge__card li {
  position: relative;
  margin: 0;
  padding-left: 1.25rem;
  text-wrap: pretty;
}

#why-choose-forge .why-choose-forge__card li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 0.65rem;
  height: 1px;
  border-radius: 0;
  background: var(--card-accent);
  box-shadow: 0 0 6px color-mix(in srgb, var(--card-accent) 70%, transparent);
}

#why-choose-forge .why-choose-forge__card li:last-child {
  margin-bottom: 0;
}

@media (width >= 1100px) {
  #why-choose-forge .why-choose-forge__card ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow screens: tabs become a scrollable chip row above the panel. */
@media (width <= 899px) {
  #why-choose-forge .std__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  #why-choose-forge .std__nav {
    flex-direction: row;
    gap: 0.3rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
    margin-inline: calc(-1 * var(--page-gutter, 1rem));
    padding-inline: var(--page-gutter, 1rem);
    scroll-padding-inline: var(--page-gutter, 1rem);
  }

  #why-choose-forge .std__nav::-webkit-scrollbar {
    display: none;
  }

  #why-choose-forge .std__tab {
    flex: 0 0 auto;
    width: auto;
    gap: 0.5rem;
    padding: 0.42rem 0.75rem 0.42rem 0.55rem;
    border: 1px solid color-mix(in srgb, var(--color-fg) 10%, transparent);
    border-left-width: 1px;
    font-size: 0.64rem;
  }

  #why-choose-forge .std__tab.is-active,
  #why-choose-forge .std__tab[aria-selected="true"] {
    border-color: color-mix(in srgb, var(--tab-accent) 70%, transparent);
    border-left-color: color-mix(in srgb, var(--tab-accent) 70%, transparent);
  }

  #why-choose-forge .std__tab .why-choose-forge__icon {
    width: 1.55rem;
    height: 1.55rem;
  }

  #why-choose-forge .std__tab .why-choose-forge__icon svg {
    width: 0.9rem;
    height: 0.9rem;
    min-width: 0.9rem;
    min-height: 0.9rem;
    max-width: 0.9rem;
    max-height: 0.9rem;
  }
}

@media (width <= 639px) {
  #why-choose-forge .std__head {
    gap: 0.85rem;
  }

  #why-choose-forge .std__controls {
    justify-content: center;
  }

  #why-choose-forge .why-choose-forge__head .why-choose-forge__icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-basis: 2.25rem;
  }
}

/* ---------------------------------------------------------------------------
   Intake strip: two quiet columns on the page canvas, one hairline between.
   --------------------------------------------------------------------------- */

#intake-tips .process-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 0;
}

#intake-tips .process-details article {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transform: none;
  transition: none;
}

/* Symmetric inline padding so centred headings sit on each column's true axis. */
#intake-tips .process-details article {
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

#intake-tips .process-details article + article {
  border-left: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
}

#intake-tips .process-details article:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
  box-shadow: none;
}

#intake-tips .process-details .eyebrow {
  margin: 0 auto 0.45rem;
  color: var(--color-primary);
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

#intake-tips .process-details h2 {
  margin: 0 auto;
  color: var(--color-fg);
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

#intake-tips .check-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

#intake-tips .check-list li {
  position: relative;
  display: block;
  padding-left: 1.25rem;
  color: color-mix(in srgb, var(--color-fg) 74%, var(--color-muted));
  font-size: var(--text-sm);
  line-height: 1.55;
}

#intake-tips .check-list li span {
  display: none;
}

#intake-tips .check-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 0.65rem;
  height: 1px;
  background: var(--color-primary);
  box-shadow: 0 0 6px color-mix(in srgb, var(--color-primary) 70%, transparent);
}

#intake-tips .revision-list {
  display: grid;
  margin: 1.25rem 0 0;
}

#intake-tips .revision-list div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-fg) 9%, transparent);
}

#intake-tips .revision-list div:first-child {
  border-top: 1px solid color-mix(in srgb, var(--color-fg) 9%, transparent);
}

#intake-tips .revision-list dt {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

#intake-tips .revision-list dd {
  margin: 0;
  text-align: left;
  color: color-mix(in srgb, var(--color-fg) 74%, var(--color-muted));
  font-size: var(--text-sm);
  line-height: 1.55;
}

#intake-tips .revision-list div:nth-child(1) dt { color: #f5d76e; }
#intake-tips .revision-list div:nth-child(2) dt { color: #4ea1ff; }
#intake-tips .revision-list div:nth-child(3) dt { color: #3ecf8e; }
#intake-tips .revision-list div:nth-child(4) dt { color: #e0a04a; }
#intake-tips .revision-list div:nth-child(5) dt { color: #c5cdd8; }

@media (width <= 767px) {
  #intake-tips .process-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  #intake-tips .process-details article {
    padding-inline: 0;
  }

  #intake-tips .process-details article + article {
    padding-top: 2rem;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
  }

  #intake-tips .revision-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}

/* ---------------------------------------------------------------------------
   Sample filter modal (phones).
   --------------------------------------------------------------------------- */

#sample-filter-modal[open] {
  z-index: 9000;
  place-items: center;
  align-items: center;
  justify-items: center;
  padding: 0.7rem;
}

#sample-filter-modal .work-filter-modal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(24.75rem, calc(100vw - 1.4rem));
  max-height: min(86dvh, 40rem);
  gap: 0.55rem;
  padding: 1rem 0.9rem 0.95rem;
  overflow: auto;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--color-primary) 38%, var(--color-border));
  background: color-mix(in srgb, var(--color-bg) 92%, #000);
}

#sample-filter-modal .site-modal__dismiss {
  z-index: 2;
  position: sticky;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  top: 0;
  margin-bottom: calc(-1 * var(--touch-target, 2.75rem));
  width: var(--touch-target, 2.75rem);
  height: var(--touch-target, 2.75rem);
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 0.55rem;
  background: var(--color-surface-glass, #222226c7);
  color: var(--color-fg);
  box-shadow: none;
  outline: none;
  font-size: 0;
  line-height: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

#sample-filter-modal .site-modal__dismiss:hover,
#sample-filter-modal .site-modal__dismiss:focus-visible {
  background: var(--color-surface-glass, #222226c7);
  filter: brightness(1.12);
  outline: none;
  box-shadow: none;
}

#sample-filter-modal .site-modal__dismiss > span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.45rem;
  height: 2px;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(45deg);
}

#sample-filter-modal .site-modal__dismiss::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.45rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

#sample-filter-modal #sample-filter-title {
  grid-column: 1 / -1;
  margin: 0;
  padding-right: 2.85rem;
  font-size: 1.22rem;
}

#sample-filter-modal .work-filter-modal__grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

#sample-filter-modal .work-filter-modal__btn {
  min-height: 3.4rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 0.55rem;
  background: var(--color-surface-glass, var(--color-surface));
  color: var(--color-fg);
  font-family: Hack, ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

#sample-filter-modal .work-filter-modal__btn--all {
  grid-column: 1 / -1;
}

#sample-filter-modal .work-filter-modal__btn.is-active,
#sample-filter-modal .work-filter-modal__btn[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--color-primary) 78%, var(--color-border));
  background: color-mix(in srgb, var(--color-primary) 16%, transparent);
  color: var(--color-fg);
  box-shadow: 0 0 18px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

#sample-filter-modal .work-filter-modal__confirm {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 3rem;
  border-radius: 0;
}


/* ---------------------------------------------------------------------------
   Hero (unchanged).
   --------------------------------------------------------------------------- */

/* Process API diagram as the first-screen background hero. */
#process-hero.process-hero {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: calc(100svh - 4.8rem);
  max-height: none;
  min-height: 0;
  margin: 0;
  padding: 0.5rem 0 0;
  overflow: hidden;
  background-color: var(--hero-bg, #000b1b);
  background-image: none;
  border-bottom: 2px solid var(--color-primary);
  box-shadow: none;
}

@media (width <= 767px) {
  #process-hero.process-hero {
    height: calc(var(--forge-vvh, 100svh) - var(--forge-nav-h, 4.25rem));
    min-height: calc(var(--forge-vvh, 100svh) - var(--forge-nav-h, 4.25rem));
    max-height: calc(var(--forge-vvh, 100svh) - var(--forge-nav-h, 4.25rem));
    padding-top: 0.45rem;
  }

  @supports (-webkit-touch-callout: none) {
    #process-hero.process-hero {
      height: -webkit-fill-available;
      height: calc(100lvh - var(--forge-nav-h, 4.25rem));
      min-height: -webkit-fill-available;
      min-height: calc(100lvh - var(--forge-nav-h, 4.25rem));
      max-height: none;
    }
  }
}

#process-hero .process-hero__title {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: clamp(0.45rem, 1vw, 0.72rem) 1rem 0;
  color: #f4f4f5;
  font-family: Hack, ui-monospace, monospace;
  font-size: clamp(1.45rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
}

#process-hero .process-hero__title-copy {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

#process-hero .process-hero__title-why {
  display: block;
  font-family: Hack, ui-monospace, monospace;
  font-weight: 700;
  white-space: nowrap;
}

#process-hero .process-hero__title-seam {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 100%) 4.75rem;
  column-gap: 0.7rem;
  align-items: center;
  width: calc(100% + 2 * 4.75rem + 2 * 0.7rem);
  height: 0.72rem;
  pointer-events: none;
}

#process-hero .process-hero__title-rule {
  display: block;
  width: 4.75rem;
  max-width: 4.75rem;
  min-width: 2.5rem;
  height: 1px;
  background: #fff;
}

#process-hero .process-hero__title-rule:first-child {
  grid-column: 1;
}

#process-hero .process-hero__title-rule:last-child {
  grid-column: 3;
}

#process-hero .process-hero__title-mark {
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  height: 0.92em;
  width: calc(0.92em * 555.141 / 119.158);
  aspect-ratio: 555.141 / 119.158;
}

#process-hero .process-hero__title-lockup {
  display: block;
  width: 125.219%;
  max-width: none;
  height: auto;
  transform: translateX(-20.139%);
}

@media (width <= 639px) {
  #process-hero .process-hero__title {
    padding-top: 0.55rem;
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  #process-hero .process-hero__title-mark {
    height: 1.12em;
    width: calc(1.12em * 555.141 / 119.158);
  }
}

@media (width >= 768px) {
  #process-hero.process-hero {
    padding-top: 0;
  }

  #process-hero .process-hero__title {
    position: absolute;
    top: 0.28rem;
    left: 0;
    right: 0;
    z-index: 2;
    padding-top: 0.1rem;
    padding-bottom: 0;
    font-size: clamp(2.05rem, 4.4vw, 3.2rem);
  }

  #process-hero .process-hero__visualization-stage {
    transform: translateX(-1%);
  }

  #process-hero .process-hero__title-rule {
    width: 5rem;
    max-width: 5rem;
  }

  #process-hero .process-hero__title-seam {
    grid-template-columns: 5rem minmax(0, 100%) 5rem;
    column-gap: 0.85rem;
    width: calc(100% + 2 * 5rem + 2 * 0.85rem);
  }

  #process-hero .process-hero__title-mark {
    height: 1.12em;
    width: calc(1.12em * 555.141 / 119.158);
  }

  #process-hero .process-hero__visualization-shell::after {
    background: none;
  }
}

#process-hero .hero-glow__media {
  z-index: 0;
}

#process-hero .process-hero__visualization-shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: block;
  width: 100%;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

@media (width <= 767px) {
  #process-hero .process-hero__visualization-shell {
    height: auto;
    min-height: 0;
  }
}

#process-hero .process-hero__visualization-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Wide desktops (Firefox at 1920×863 and up): match the Cursor pane
   (measured ~1236×977, diagram 1221px, hub ~269px, title 3.2rem). */
@media (width >= 1880px) and (height >= 850px) {
  #process-hero .process-hero__visualization-stage {
    top: 0;
    right: auto;
    bottom: 0;
    left: 50%;
    width: min(1220px, 64vw);
    transform: translateX(-51%);
  }
}

#process-hero .process-hero__visualization {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  pointer-events: none;
}

#process-hero .process-hero__visualization-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none;
}

#process-hero .process-hero__scroll-arrow {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 42%, var(--color-border));
  border-radius: 0;
  color: color-mix(in srgb, var(--color-fg) 82%, var(--color-muted));
  background: color-mix(in srgb, #0b0b0d 82%, transparent);
  transform: translateX(-50%);
  text-decoration: none;
  pointer-events: auto;
}

#process-hero .process-hero__scroll-arrow:hover,
#process-hero .process-hero__scroll-arrow:focus-visible {
  border-color: color-mix(in srgb, var(--color-primary) 78%, var(--color-border));
  color: var(--color-fg);
  outline: none;
}

@media (width <= 767px) {
  #process-hero .process-hero__scroll-arrow {
    bottom: calc(3.35rem + env(safe-area-inset-bottom, 0px));
    width: 2.5rem;
    height: 2.5rem;
  }
}

#sample-sites,
#the-details {
  scroll-margin-top: 5.1rem;
}
