/* ============================================================
 * Homepage — The Gate Review
 * One law: every section hangs from a hairline gate line.
 * ============================================================ */

.page-gate { background: var(--gr-paper); color: var(--gr-ink); font-family: var(--gr-sans); }
.page-gate main { overflow-x: clip; }

/* ============ Gate hero ============ */
.gate-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gr-navy);
  color: var(--gr-on-navy);
  padding: clamp(2.75rem, 7vh, 5.5rem) var(--gr-gutter) clamp(3rem, 6vh, 4.5rem);
}
/* the floating header sits over the hero, so the hero starts under it */
.js .gate-hero { padding-top: calc(77px + clamp(2.75rem, 7vh, 5.5rem)); }
/* The swirl: the brand mark at landscape scale, cropped by the hero's edge */
.gate-hero__swirl {
  position: absolute;
  z-index: -1;
  top: clamp(-40px, -1vw, 0px);
  right: clamp(-150px, -6vw, -40px);
  width: clamp(500px, 50vw, 760px);
  aspect-ratio: 1;
  background: linear-gradient(225deg, var(--gr-sky) 0%, var(--gr-navy-3) 42%, var(--gr-navy-2) 82%);
  -webkit-mask: url("../images/brand/bor-swirl-white.svg") center / contain no-repeat;
          mask: url("../images/brand/bor-swirl-white.svg") center / contain no-repeat;
  pointer-events: none;
}
.gate-hero__inner { max-width: var(--gr-max); margin: 0 auto; }

.gate-hero__copy {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.gate-hero__eyebrow {
  margin-bottom: 1.25rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gr-aqua);
}
.gate-hero__title {
  font-family: var(--gr-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-size: clamp(3.1rem, 7vw, 6rem);
  line-height: 0.94;
  color: var(--gr-on-navy);
  text-wrap: balance;
  max-width: 11ch;
}
.gate-hero__lede {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--gr-on-navy-2);
  max-width: 46ch;
}

/* Legend row */
.gates {
  position: relative;
  padding-top: 2.25rem;
}
.gates::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: calc(clamp(3rem, 6vh, 4.5rem) * -1);
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: var(--gr-navy);
  border-top: 1px solid var(--gr-line);
}
.gates__legend {
  display: inline;
  font-family: var(--gr-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--gr-on-navy);
  margin-right: 1rem;
}
.gates__hint {
  display: inline;
  font-size: 0.88rem;
  color: var(--gr-on-navy-2);
}

/* The track: one line, six posts, one marker */
.gates__track { position: relative; margin-top: 1.5rem; }
.gates__line {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--gr-line);
}

.gate { display: contents; }

.gate__post {
  grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  min-height: 9.5rem;
  padding: 1.6rem 1.25rem 1.5rem 1.1rem;
  background-color: transparent;
  background-image: linear-gradient(var(--gr-aqua), var(--gr-aqua));
  background-repeat: no-repeat;
  background-position: 3px 0;
  background-size: 1px 30px;
  border: 0;
  color: var(--gr-on-navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 260ms var(--gr-ease);
}
/* the post: a capped tick standing on the line */
.gate__post::before {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 7px; height: 7px;
  background: var(--gr-aqua);
}
.gate__post:hover { background-color: rgba(176, 242, 250, 0.05); }
.gate__post:focus-visible { outline: 2px solid var(--gr-aqua); outline-offset: -2px; }

.gate__num {
  font-family: var(--gr-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  line-height: 1;
  color: var(--gr-on-navy-2);
  font-variant-numeric: lining-nums tabular-nums;
  transition: color 260ms var(--gr-ease);
}
.gate__name {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--gr-on-navy);
}
.gate__who {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gr-on-navy-2);
  max-width: 22ch;
}
.gate__flag {
  display: none;
  margin-top: auto;
  padding: 0.18rem 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gr-navy);
  background: var(--gr-aqua);
}
.gate.is-remembered .gate__flag { display: inline-block; }

.gate.is-open .gate__num,
.gate__post:hover .gate__num { color: var(--gr-aqua); }
.gate.is-open .gate__post { background-color: rgba(176, 242, 250, 0.07); }

/* Marker: rides the line to the chosen post, then drops to the panel */
.gates__marker {
  position: absolute;
  top: -1px;
  left: 0;
  height: 3px;
  width: var(--marker-w, 0px);
  transform: translateX(var(--marker-x, 0px));
  background: var(--gr-aqua);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: transform 520ms var(--gr-ease), opacity 200ms linear;
}
.gates__marker::after {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 1px;
  height: var(--marker-h, 0px);
  background: var(--gr-aqua);
}
.gates__track[data-active] .gates__marker { opacity: 1; }

/* The panel: a review sheet dropped under the line */
.gate__panel { grid-column: 1 / -1; }
.js .gate__panel { display: none; grid-row: 2; }
.js .gate.is-open .gate__panel {
  display: block;
  animation: gate-sheet 560ms var(--gr-ease) both;
}
@keyframes gate-sheet {
  from { clip-path: inset(0 var(--clip-r, 0px) 100% var(--clip-l, 0px)); }
  to   { clip-path: inset(0 0 0 0); }
}
.gate__panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  background: var(--gr-paper);
  color: var(--gr-ink);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 3.5vw, 2.75rem);
}
.gate__question {
  font-family: var(--gr-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  line-height: 1.18;
  color: var(--gr-navy);
  text-wrap: balance;
  max-width: 24ch;
}
.gate__why {
  align-self: start;
  padding-top: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--gr-ink);
  max-width: 44ch;
}
.gate__actions {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.gate__action,
.close__action {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 52px;
  padding: 0 1.5rem;
  background: var(--gr-navy-2);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 220ms var(--gr-ease);
}
.gate__action svg,
.close__action svg { transition: transform 320ms var(--gr-ease); }
.gate__action:hover,
.close__action:hover { background: var(--gr-navy); }
.gate__action:hover svg,
.close__action:hover svg { transform: translateX(4px); }
.gate__second-line { flex-basis: 100%; font-size: 0.9rem; color: var(--gr-ink-2); }
.gate__second {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gr-navy-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.gate__second:hover { color: var(--gr-navy); text-decoration-color: var(--gr-navy); }

.gate__calls {
  grid-column: 2;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gr-rule);
}
.gate__calls-label { flex-basis: 100%; font-size: 0.78rem; color: var(--gr-ink-2); margin-bottom: 0.35rem; }
.gate__calls-items { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.gate.is-open .gate__flag { display: none; }
.verdict {
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--gr-navy-2);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gr-navy-2);
}
.gate__calls-note { flex-basis: 100%; font-size: 0.74rem; color: var(--gr-ink-2); }

.gates__unsure {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--gr-on-navy-2);
}
.gates__unsure a,
.gate-hero a:not(.gate__action):not(.gate__second) {
  color: var(--gr-aqua);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.gates__unsure a:hover { color: #fff; }

/* ============ Stage tiles ============
 * Each stage is a filled tile on one gradient from deep to bright blue,
 * so the six read as distinct, clickable steps on the navy field. */
.gate:nth-child(1) { --tile: #0A3F66; }
.gate:nth-child(2) { --tile: #0A4973; }
.gate:nth-child(3) { --tile: #0A5280; }
.gate:nth-child(4) { --tile: #0A5C8E; }
.gate:nth-child(5) { --tile: #0A659B; }
.gate:nth-child(6) { --tile: #0A6FA8; }

.gates__line { gap: 6px; border-top: 0; }
.gates .gate .gate__post,
.gates .gate .gate__post:hover,
.gates .gate.is-open .gate__post {
  background-color: var(--tile);
  background-image: none;
}
.gates .gate__post {
  transition: transform 260ms var(--gr-ease), filter 260ms var(--gr-ease), box-shadow 260ms var(--gr-ease);
}
.gates .gate__post::before { display: none; }
.gates .gate__post:hover { filter: brightness(1.14); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); }
.gates .gate.is-open .gate__post { box-shadow: inset 0 0 0 2px var(--gr-aqua); }
.gates .gate__num { color: rgba(255, 255, 255, 0.78); }
.gates .gate__who { color: #E6F1F7; }
.gates__marker { top: 0; }

@media (min-width: 901px) {
  /* the open/close sign: a plus, which becomes a filled minus when the stage is open */
  .gates .gate__post::after {
    content: "";
    position: absolute;
    top: 1.1rem; right: 1rem;
    width: 26px; height: 26px;
    border: 1px solid rgba(176, 242, 250, 0.55);
    background:
      linear-gradient(var(--gr-aqua), var(--gr-aqua)) center / 11px 1.5px no-repeat,
      linear-gradient(var(--gr-aqua), var(--gr-aqua)) center / 1.5px 11px no-repeat;
    transition: background-color 220ms var(--gr-ease);
  }
  .gates .gate__post:hover::after { background-color: rgba(176, 242, 250, 0.14); }
  .gates .gate.is-open .gate__post::after {
    border-color: var(--gr-aqua);
    background: linear-gradient(var(--gr-navy), var(--gr-navy)) center / 11px 1.5px no-repeat, var(--gr-aqua);
  }
}

@media (max-width: 900px) {
  .gates__line { display: grid; gap: 6px; border-top: 0; }
  .gate { border-bottom: 0; }
  .gates .gate__post { padding: 0.9rem 1rem; }
  .gates .gate__post:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gates .gate__post:hover { transform: none; }
}

/* ============ Credit band ============ */
.credits {
  background: var(--gr-aqua);
  color: var(--gr-navy);
  padding: 1.05rem var(--gr-gutter);
}
.credits__inner { max-width: var(--gr-max); margin: 0 auto; }
.credits__run {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}
.credits__run span { padding: 0 0.9rem; border-left: 1px solid rgba(3, 47, 79, 0.28); }
.credits__run span:first-child { padding-left: 0; border-left: 0; }
.credits__run b { font-weight: 800; }
.credits__run a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.credits__run a:hover { text-decoration-thickness: 2px; }

/* ============ Areas of specialty ============ */
.judgment {
  background: var(--gr-paper);
  padding: clamp(5rem, 11vw, 8.5rem) var(--gr-gutter) clamp(4rem, 8vw, 6rem);
}
.judgment__inner { max-width: var(--gr-max); margin: 0 auto; }
.judgment__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.judgment__head h2 {
  font-family: var(--gr-display);
  font-weight: 650;
  letter-spacing: -0.035em;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.02;
  color: var(--gr-navy);
  text-wrap: balance;
  max-width: 15ch;
}
.judgment__head p { font-size: 1.02rem; line-height: 1.7; color: var(--gr-ink); max-width: 44ch; }
.judgment__head em { font-style: normal; font-weight: 700; }

.specialties { border-top: 1px solid var(--gr-navy); }
.specialty {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(2rem, 5vw, 5rem);
  align-items: baseline;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--gr-rule);
}
.specialty h3 {
  font-family: var(--gr-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
  color: var(--gr-navy);
  text-wrap: balance;
}
.specialty p { font-size: 0.98rem; line-height: 1.7; color: var(--gr-ink); max-width: 60ch; }

/* ============ Two doors ============ */
.doors { background: #fff; padding: 0 var(--gr-gutter); }
.doors__inner {
  max-width: var(--gr-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.door {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 4.5vw, 4rem) clamp(4rem, 8vw, 6rem) 0;
}
.door--scale {
  padding-left: clamp(1.5rem, 4.5vw, 4rem);
  padding-right: 0;
  border-left: 1px solid var(--gr-rule);
}
.door__title {
  font-family: var(--gr-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.05;
  color: var(--gr-navy);
  max-width: 14ch;
  margin-bottom: 1rem;
}
.door__lede { font-size: 1rem; line-height: 1.65; color: var(--gr-ink); max-width: 40ch; margin-bottom: 2.25rem; }
.door__list { list-style: none; border-top: 1px solid var(--gr-navy); margin-bottom: 2rem; }
.door__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.15rem 1.25rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--gr-rule);
  text-decoration: none;
  color: var(--gr-navy);
}
.door__list a span {
  font-family: var(--gr-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  line-height: 1.3;
  transition: transform 320ms var(--gr-ease);
}
.door__list a small { grid-column: 1; font-size: 0.82rem; color: var(--gr-ink-2); }
.door__list a::after {
  content: "";
  grid-row: 1 / span 2;
  grid-column: 3;
  align-self: center;
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9h11M10 4.5 14.5 9 10 13.5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9h11M10 4.5 14.5 9 10 13.5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.35;
  transition: opacity 220ms var(--gr-ease), transform 320ms var(--gr-ease);
}
.door__list a:hover span { transform: translateX(6px); }
.door__list a:hover::after { opacity: 1; transform: translateX(4px); }
.door__more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gr-navy-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.door__more:hover { color: var(--gr-navy); }

/* ============ The team ============
 * Three equal portraits: Brian oversees, the team does the work. */
.reviewer {
  background: var(--gr-navy-2);
  color: var(--gr-on-navy);
  padding: clamp(4.5rem, 9vw, 7rem) var(--gr-gutter);
}
.reviewer__inner {
  max-width: var(--gr-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.reviewer__eyebrow {
  margin-bottom: 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gr-aqua);
}
.reviewer__name {
  font-family: var(--gr-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  color: var(--gr-on-navy);
  text-wrap: balance;
  max-width: 18ch;
}
.reviewer__lede {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gr-on-navy-2);
  max-width: 52ch;
}
.reviewer__quote { margin: 0; }
.reviewer__quote p {
  font-family: var(--gr-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.35;
  color: var(--gr-on-navy);
  text-wrap: pretty;
}
.reviewer__quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.84rem;
  color: var(--gr-on-navy-2);
}
.reviewer__more {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gr-aqua);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.reviewer__more:hover { color: #fff; }
.reviewer a:focus-visible { outline-color: var(--gr-aqua); }

.reviewer__team {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 2.25rem;
  border-top: 1px solid var(--gr-line);
}
.reviewer__team li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.2rem 1.1rem;
  align-items: center;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--gr-on-navy-2);
}
.reviewer__team img {
  grid-row: span 2;
  width: 80px;
  height: 80px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.reviewer__team b {
  align-self: end;
  font-family: var(--gr-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gr-on-navy);
}
.reviewer__team span { align-self: start; }

/* ============ Close ============ */
.close { background: var(--gr-paper); padding: clamp(5rem, 10vw, 8rem) var(--gr-gutter); }
.close__inner {
  max-width: var(--gr-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gr-navy);
  position: relative;
}
.close__inner::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--gr-navy); }
.close h2 {
  align-self: start;
  font-family: var(--gr-display);
  font-weight: 650;
  letter-spacing: -0.035em;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1;
  color: var(--gr-navy);
  grid-row: span 2;
}
.close p { font-size: 1rem; line-height: 1.7; max-width: 42ch; }
.close__action { justify-self: start; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .gate__post { min-height: 7.5rem; }
}

@media (max-width: 900px) {
  .gate-hero__copy,
  .judgment__head,
  .close__inner,
  .gate__panel-inner { grid-template-columns: 1fr; }
  .close h2 { grid-row: auto; }
  .gate__calls { grid-column: 1; }

  /* Gates ship flat: rule + numeral, unfolding in place */
  .gates__line { display: block; border-top: 1px solid var(--gr-line); }
  .gate { display: block; border-bottom: 1px solid var(--gr-line); }
  .gate__post {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 0.75rem;
    min-height: 64px;
    padding: 0.9rem 0;
    border: 0;
  }
  .gate__post::before { display: none; }
  .gate__num { font-size: 1.7rem; }
  .gate__num { grid-row: span 2; }
  .gate__name { font-size: 1rem; }
  .gate__who { grid-column: 2; max-width: none; }
  .gate__flag { margin: 0; grid-column: 3; grid-row: 1 / span 2; }
  .gate__post::after {
    content: "";
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    width: 12px; height: 12px;
    border-right: 1px solid var(--gr-aqua);
    border-bottom: 1px solid var(--gr-aqua);
    transform: rotate(45deg) translateY(-3px);
    transition: transform 320ms var(--gr-ease);
  }
  .gate.is-remembered .gate__post::after { display: none; }
  .gate.is-open .gate__post::after { transform: rotate(-135deg) translateY(-3px); }
  .gate.is-open .gate__post { background-color: transparent; }
  .gates__marker { display: none; }
  .js .gate.is-open .gate__panel { animation-name: gate-unfold; }
  .gate__panel-inner { margin-bottom: 1rem; }

  .doors__inner { grid-template-columns: 1fr; }
  .door { padding: 3.5rem 0; }
  .door--scale { padding: 3.5rem 0; border-left: 0; border-top: 1px solid var(--gr-rule); }

  .reviewer__inner { grid-template-columns: 1fr; }
  .reviewer__team { grid-template-columns: 1fr; }

  .specialty { grid-template-columns: 1fr; gap: 0.6rem; }
}
@keyframes gate-unfold {
  from { clip-path: inset(0 0 100% 0); opacity: 0; }
  to   { clip-path: inset(0 0 0 0); opacity: 1; }
}

@media (max-width: 520px) {
  .gates__legend { display: block; margin: 0 0 0.35rem; }
  .gates__hint { display: block; }
  .gate__calls-label { flex-basis: 100%; margin: 0 0 0.2rem; }
  .credits { padding-block: 1.25rem; }
  .credits__run { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; font-size: 0.76rem; }
  .credits__run span,
  .credits__run span:first-child { padding: 0; border-left: 0; }
  .credits__run span:last-child { grid-column: 1 / -1; margin-left: 0; padding-top: 0.5rem; border-top: 1px solid rgba(3, 47, 79, 0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .gates__marker { transition: none; }
  .js .gate.is-open .gate__panel { animation: none; }
}

/* ============ The gate line, carried through the page ============ */
.spine { position: relative; }
.spine::before {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 7px; height: 7px;
  background: var(--gr-navy);
  z-index: 1;
}
.judgment__inner.spine { padding-top: 2.5rem; border-top: 1px solid var(--gr-rule); }
.doors__inner.spine { border-top: 1px solid var(--gr-rule); }

.gate-tag {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-family: var(--gr-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-style: normal;
  font-size: 1.05rem;
  color: var(--gr-ink-2);
  white-space: nowrap;
}

/* Header on the gate page: the gate line is the primary action */
.page-gate .site-header .nav-cta {
  background: transparent;
  color: var(--gr-aqua);
  border-color: rgba(176, 242, 250, 0.5);
}
.page-gate .site-header .nav-cta:hover { background: var(--gr-aqua); color: var(--gr-navy); border-color: var(--gr-aqua); }

@media (max-width: 900px) {
  .gate__post::before { display: none; }
  .gate__post { background-image: none; }
  .gate__why { padding-top: 0; }
}
@media (max-width: 520px) {
  .reviewer__team li { grid-template-columns: 64px minmax(0, 1fr); }
  .reviewer__team img { width: 64px; height: 64px; }
  .door__list a { grid-template-columns: minmax(0, 1fr) auto; }
  .gate-tag { grid-column: 2; grid-row: 1; font-size: 0.95rem; }
  .door__list a::after { display: none; }
}

/* Swirl on small screens: deeper tones only, so the headline over it stays legible */
@media (max-width: 900px) {
  .gate-hero__swirl {
    top: -60px;
    right: -42vw;
    width: 118vw;
    background: linear-gradient(225deg, var(--gr-navy-3) 0%, var(--gr-navy-2) 70%);
  }
  .gate-hero__copy { margin-bottom: 3.5rem; }
}
