/* about.html only. Loads after summit.css and site.css: the hero title, the story with
   Rick's photo pulled up into the hero, the career timeline drawn as a climbing trail
   (about.js draws the brass line and lights each waypoint), and the values cards. */

/* ---------------------------------------------------------------- hero */
.about-title { font-size: clamp(2.8rem, 7.4vw, 7.6rem); max-width: none; }
.about-hero .page-sub { max-width: 54ch; }
.btn:hover .btn-arrow-down { transform: translateY(3px); }

/* ---------------------------------------------------------------- story + photo */
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.story-copy { grid-column: 1; grid-row: 1; }
.about-photo { grid-column: 2; grid-row: 1; justify-self: end; width: 100%; max-width: 460px; }
.about-photo img { object-position: 50% 30%; }
.story-copy .display { font-size: clamp(2.4rem, 5vw, 4.6rem); max-width: 18ch; margin-bottom: 30px; }
.story-copy > p:not(.eyebrow):not(.rltw) { color: var(--text-2); font-size: clamp(1.04rem, 1.3vw, 1.15rem); max-width: 60ch; }
.story-copy > p + p { margin-top: 18px; }
.story-copy strong { color: var(--text); font-weight: 700; }

/* the SDVOSB tag: a white card pinned to the photo's corner, straightens on hover */
.sdvosb-tag {
  position: absolute; top: -22px; right: -26px; z-index: 2; padding: 10px; background: #FFFFFF; border-radius: var(--radius);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(12, 31, 63, .08);
  transform: translateZ(60px) rotate(5deg); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sdvosb-tag img { width: 52px; height: auto; }
.about-photo:hover .sdvosb-tag { transform: translateZ(70px) rotate(0deg) scale(1.06); box-shadow: 0 26px 46px -16px rgba(0, 0, 0, .6), 0 0 0 1px rgba(12, 31, 63, .08); }
:root[data-theme="light"] .sdvosb-tag { box-shadow: 0 18px 36px -16px rgba(12, 31, 63, .45), 0 0 0 1px rgba(12, 31, 63, .1); }

/* the one place the site carries the Ranger line */
.rltw {
  position: relative; margin-top: 40px; padding: 22px 0 4px 26px; display: flex; flex-direction: column; gap: 6px;
  border-left: 3px solid var(--brass);
}
.rltw::before {
  content: ''; position: absolute; left: -3px; top: 0; width: 3px; height: 0; background: linear-gradient(180deg, #E8CC80, #C2A14D);
  transition: height 1.2s var(--ease) .2s;
}
.rltw:hover::before { height: 100%; }
.rltw strong {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: .95;
  font-size: clamp(2rem, 3.4vw, 3.1rem); color: var(--accent);
}
.rltw span { color: var(--text-3); font-size: .98rem; }

@media (min-width: 1181px) {
  /* the photo rises into the hero and stays in view while the story reads */
  .story { padding-top: 72px; }
  .about-photo { margin-top: -268px; position: sticky; top: 112px; }
}

/* ---------------------------------------------------------------- timeline: the trail */
.timeline { background: var(--bg-2); overflow: hidden; isolation: isolate; transition: background-color .5s; }
.timeline-topo {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .22; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.trail { --amp: 34; --axis: 96px; --dot: 20px; position: relative; max-width: 1100px; margin-inline: auto; }
.trail-list { list-style: none; position: relative; z-index: 1; }
.wp { display: grid; grid-template-columns: 1fr var(--axis) 1fr; align-items: start; }
.wp + .wp { margin-top: -64px; }
.wp-card, .wp-dot { grid-row: 1; }
.wp:nth-child(odd) .wp-card { grid-column: 1; }
.wp:nth-child(even) .wp-card { grid-column: 3; }
.wp-dot { grid-column: 2; justify-self: center; margin-top: 38px; }

/* no script: a plain dotted line down the axis, everything lit */
.trail::before {
  content: ''; position: absolute; top: 48px; bottom: 48px; left: 50%; width: 0; border-left: 2px dashed var(--brass); opacity: .6; transform: translateX(-1px);
}
.trail.is-live::before { display: none; }
.trail-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.trail.is-live .trail-svg { display: block; }
.trail-base { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.trail-done { fill: none; stroke: #D9B65C; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(217, 182, 92, .55)); }
:root[data-theme="light"] .trail-done { stroke: #C2A14D; filter: none; }
.trail-tip { fill: #F5E3B0; filter: drop-shadow(0 0 10px rgba(217, 182, 92, .95)); opacity: 0; transition: opacity .3s; }
.trail.is-moving .trail-tip { opacity: 1; }
:root[data-theme="light"] .trail-tip { fill: #C2A14D; filter: drop-shadow(0 0 8px rgba(194, 161, 77, .7)); }

/* waypoints */
.wp-dot {
  position: relative; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--bg-2);
  border: 2px solid var(--line-2); transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.wp-dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid #D9B65C; opacity: 0; pointer-events: none; }
.wp.is-reached .wp-dot { background: var(--brass); border-color: var(--brass); transform: scale(1.1); }
.trail.is-live .wp.is-reached .wp-dot::after { animation: wp-ping 1.4s var(--ease) 1; }
@keyframes wp-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }

.wp-summit .wp-dot { --s: 44px; width: var(--s); height: var(--s); margin-top: 26px; display: grid; place-items: center; }
.wp-summit .wp-dot svg { width: 22px; height: 22px; overflow: visible; }
.wp-summit .wp-dot svg path { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s, fill .4s; }
.wp-summit .wp-dot .flag { transform-box: fill-box; transform-origin: 0 50%; }
.wp-summit.is-reached .wp-dot svg path { stroke: #071225; }
.wp-summit.is-reached .wp-dot .flag { fill: #071225; animation: flag-wave 2.2s ease-in-out infinite; }

/* cards */
.wp-card { position: relative; padding: 26px 28px 28px; max-width: 470px; width: 100%; }
.wp:nth-child(odd) .wp-card { justify-self: end; }
.wp-card::before {   /* the spur from the card to its waypoint */
  content: ''; position: absolute; top: 47px; width: calc(var(--axis) / 2 - var(--dot) / 2 - 2px); height: 1.5px; background: var(--line-2);
  transition: background-color .5s var(--ease);
}
.wp:nth-child(odd) .wp-card::before { left: 100%; }
.wp:nth-child(even) .wp-card::before { right: 100%; }
.wp-summit .wp-card::before { width: calc(var(--axis) / 2 - 22px - 2px); }
.wp.is-reached .wp-card::before { background: var(--brass); }
.wp-card:hover { transform: translateY(-5px); border-color: var(--brass); box-shadow: var(--shadow); }
.wp-year {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 14px; transition: color .6s var(--ease);
}
.wp-year-word { text-transform: uppercase; font-size: clamp(2.2rem, 3vw, 2.8rem); }
.wp.is-reached .wp-year, .wp-card:hover .wp-year { color: var(--accent); }
.wp-card h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.05; margin-bottom: 10px; }
.wp-card p:not(.wp-year) { color: var(--text-2); }
.wp-summit .wp-card { border-color: color-mix(in srgb, var(--brass) 55%, transparent); background: linear-gradient(160deg, rgba(194, 161, 77, .12), transparent 60%), var(--surface); }
.wp-summit .wp-card h3 { color: var(--accent); }

/* with the script: waypoints ahead of the line wait, a little dimmed and off to the side */
.js .trail.is-live .wp-card { transition: opacity .7s var(--ease), translate .7s var(--ease), transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); }
.js .trail.is-live .wp:not(.is-reached) .wp-card { opacity: .5; }
.js .trail.is-live .wp:nth-child(odd):not(.is-reached) .wp-card { translate: -18px 0; }
.js .trail.is-live .wp:nth-child(even):not(.is-reached) .wp-card { translate: 18px 0; }

/* ---------------------------------------------------------------- values */
/* four big plates, each with its numeral standing behind the copy */
.values { padding-bottom: clamp(72px, 9vw, 120px); }
.values-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.value { padding: clamp(104px, 11vw, 150px) clamp(28px, 3.6vw, 48px) clamp(30px, 3.6vw, 44px); }
.value .feature-n {
  position: absolute; top: 14px; right: 22px; margin: 0; font-size: clamp(5.4rem, 8.4vw, 8rem); line-height: .8;
  -webkit-text-stroke: 1.5px var(--line-2); transition: color .5s var(--ease), -webkit-text-stroke-color .5s, transform .6s var(--ease);
}
.value:hover .feature-n { color: transparent; -webkit-text-stroke-color: var(--brass); transform: translateY(-6px); }
.value h3 { position: relative; font-size: clamp(2rem, 3vw, 2.7rem); margin-bottom: 14px; }
.value p { position: relative; max-width: 46ch; font-size: 1.05rem; }
.value::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #C2A14D, #D9B65C);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.value:hover::before { transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .about-photo { justify-self: start; }
}
@media (max-width: 860px) {
  .values-grid { grid-template-columns: 1fr; }
  .value { padding-top: 104px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-copy, .about-photo { grid-column: 1; grid-row: auto; }
  .about-photo { max-width: 420px; margin-bottom: 18px; }
  .story { padding-top: 64px; }

  .trail { --amp: 7; --axis: 44px; }
  .trail::before { left: 22px; }
  .wp { grid-template-columns: var(--axis) 1fr; column-gap: 14px; }
  .wp + .wp { margin-top: 22px; }
  .wp-dot { grid-column: 1; }
  .wp:nth-child(odd) .wp-card, .wp:nth-child(even) .wp-card { grid-column: 2; justify-self: stretch; max-width: none; }
  .wp:nth-child(odd) .wp-card::before, .wp:nth-child(even) .wp-card::before { left: auto; right: 100%; width: calc(14px + var(--axis) / 2 - var(--dot) / 2 - 2px); }
  .wp-summit .wp-card::before { width: calc(14px + var(--axis) / 2 - 22px - 2px) !important; }
  .js .trail.is-live .wp:nth-child(odd):not(.is-reached) .wp-card { translate: 18px 0; }
}
@media (max-width: 640px) {
  .sdvosb-tag { top: 12px; right: 12px; transform: translateZ(40px) rotate(4deg); }
  .sdvosb-tag img { width: 44px; }
  .wp-card { padding: 22px 20px 24px; }
  .wp-card::before { top: 43px; }
  .wp-dot { margin-top: 34px; }
  .wp-summit .wp-dot { --s: 40px; margin-top: 24px; }
  .rltw { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-summit .wp-dot .flag { animation: none !important; }
  .js .trail.is-live .wp-card { opacity: 1 !important; translate: none !important; }
  .about-photo { position: relative !important; }
}
