/* Effects layer for Claude alternative — GSAP-enhanced motion */

.site-header { gap: 18px; }
.site-header .header-cta { order: 4; }
.site-nav { gap: 20px; }

/* Taller hero in enhanced mode */
.hero-photo { height: 500px; }

/* Codex development section; styles are scoped to preserve the Claude layout. */
.development-heading {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 32px;
}
.development-heading h2 { max-width: 550px; margin-bottom: 0; }
.development-heading > p { max-width: 420px; margin: 0; }
.development-journey {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0 88px;
  margin: 48px 0;
}
.journey-rail {
  position: sticky;
  top: 128px;
  align-self: start;
  padding: 0 0 32px;
}
.journey-counter {
  display: none;
  height: 96px;
  overflow: hidden;
  margin-bottom: 28px;
  color: var(--navy);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
html[data-motion='on'] .journey-counter { display: block; }
.journey-counter-reel > span { display: block; height: 96px; }
.journey-rail ol { list-style: none; margin: 0; padding: 0; }
.journey-rail li + li { margin-top: 4px; }
.journey-rail a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 200ms;
}
.journey-rail a > span { color: var(--amber-text); font-size: 14px; font-variant-numeric: tabular-nums; }
.journey-rail a:hover, .journey-rail a[aria-current] { color: var(--navy); }
.journey-rail a[aria-current] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.journey-track { height: 3px; background: var(--line); margin-top: 32px; }
.journey-track > span { display: block; height: 100%; background: var(--amber-text); transform-origin: left; }
.journey-chapters { min-width: 0; }
.journey-chapter {
  position: relative;
  min-height: 370px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 128px;
}
.journey-chapter::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--amber);
  transform: scaleX(var(--chapter-fill, 1));
  transform-origin: left;
}
.chapter-number { display: none; }
.journey-chapter h3 { font-size: 34px; margin-bottom: 18px; }
.journey-chapter p { max-width: 58ch; font-size: 17px; margin-bottom: 24px; }
.journey-chapter ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.journey-chapter li { font-size: 15px; padding-left: 20px; position: relative; }
.journey-chapter li::before { content: ''; width: 6px; height: 6px; background: var(--amber-text); position: absolute; left: 0; top: 10px; }
.journey-chapter:focus-visible { outline: 3px solid #006c91; outline-offset: 8px; }
.development-journey .pathway-note { grid-column: 1 / -1; margin-top: 8px; }

/* Enhanced growth story nodes and connector lines */
.growth-band { border-left: none; border-top: 3px solid var(--amber); }
.growth-story li { border-left: 0; padding: 0 0 40px 54px; margin-left: 0; }
.growth-story li::before { display: none; }

.growth-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--amber-text);
  background: var(--amber);
  color: var(--navy-dark);
  font-size: 14px;
  line-height: 1;
  font-style: normal;
  font-weight: 700;
}

.growth-link {
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--amber-text);
  transform-origin: top;
}

/* Off state */
html[data-motion='off'] { scroll-behavior: auto; }
html[data-motion='off'] *,
html[data-motion='off'] ::before,
html[data-motion='off'] ::after {
  transition: none !important;
  animation: none !important;
}

@media (min-width: 1700px) {
  .hero-photo { height: 560px; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .site-header { gap: 12px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
  .brand { gap: 8px; }
  .brand img { width: 48px; }
  .brand span { font-size: 12px; }
  .header-cta { font-size: 12px; padding-inline: 10px; }
}

@media (max-width: 900px) {
  .development-heading { gap: 30px; }
  .development-journey { grid-template-columns: 0.75fr 1.25fr; column-gap: 40px; }
  .journey-rail a { font-size: 18px; gap: 12px; }
  .journey-counter { font-size: 80px; }
  .journey-chapter h3 { font-size: 30px; }
  .site-header { gap: 14px; }
  .hero-photo { height: 420px; }
  .hero h1 { font-size: 44px; }
}

@media (max-width: 600px) {
  .development-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 26px; }
  .development-heading > p { font-size: 15px; }
  .development-journey { display: block; margin: 32px 0; }
  .journey-rail { position: static; padding: 0 0 28px; }
  html[data-motion='on'] .journey-counter { display: none; }
  .journey-rail ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .journey-rail li + li { margin-top: 0; }
  .journey-rail a { display: block; font-size: 14px; min-height: 88px; padding: 8px 0; }
  .journey-rail a > span { display: block; margin-bottom: 8px; }
  .journey-rail a[aria-current] { text-underline-offset: 4px; }
  .journey-track { margin-top: 10px; }
  .journey-chapter { min-height: 0; padding: 28px 0 36px; }
  .chapter-number { display: block; color: var(--amber-text); font-size: 18px; line-height: 1; margin-bottom: 14px; }
  .journey-chapter h3 { font-size: 28px; }
  .journey-chapter p { font-size: 16px; }
  .journey-chapter li { font-size: 14px; }
  .site-header { gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 44px; }
  .brand span { font-size: 12px; }
  /* Mobile hero: static block, no gradient */
  .hero-photo { height: auto; aspect-ratio: 960 / 422; object-fit: contain; filter: none; }
  .hero-content { position: static; background: var(--navy-dark); padding-block: 22px; }
  .hero h1 { font-size: 30px; max-width: 340px; }
  .hero-content p { font-size: 17px; max-width: 320px; }
  .hero-intro { padding-block: 22px; }
  .growth-band { border-left: 0; }
  .growth-story li { padding-left: 48px; }
}
