/* Pantheon, Dec 3. Her notes: "do the alexandr wang thing based on the deck that is a much better visual rep", "the
   timeline looks fradulent it doesn't encompass the whole wideness of the page", "add thumbnails to the specific
   websites", "the website hyperlinks for pantheon look weird". Markup and sources: the comments above .pw and .pa-flow
   in index.html. Motion: features/pantheon-wang.js. */

/* ---------- Find the next Alexandr Wang (slide 6 of her deck) ---------- */
#pantheon .pw { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: center;
  margin-top: clamp(48px, 5.5vw, 88px); }
#pantheon .pw-h { margin: 0; font: 400 clamp(38px, 4vw, 60px)/1.02 var(--serif); letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
#pantheon .pw-h em { display: block; font-style: italic; color: #56628A; }
#pantheon .pw-p { margin: clamp(14px, 1.4vw, 20px) 0 0; max-width: 40ch; font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.55; color: var(--ink-2); }

#pantheon .pw-demo { position: relative; }
#pantheon .pw-card { padding: clamp(18px, 1.8vw, 26px); border-radius: 16px; color: #EEF0F6;
  background: radial-gradient(120% 90% at 30% 0%, #2A3350 0%, #1D2434 55%, #171C29 100%);
  box-shadow: 0 30px 60px -30px rgba(20, 26, 44, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
#pantheon .pw-k { margin: 0 0 12px; font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #9AA3BC; }
#pantheon .pw-role { display: flex; align-items: center; gap: 14px; margin: 0; padding: 11px 14px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.06); font-size: clamp(16px, 1.3vw, 19px); }
#pantheon .pw-role span { font-size: 13.5px; color: #9AA3BC; }
#pantheon .pw-role b { font-weight: 500; color: #FFFFFF; min-height: 1.2em; }
#pantheon .pw-type.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: #C9D2EE; animation: pwCaret 0.8s steps(1) infinite; }
@keyframes pwCaret { 50% { opacity: 0; } }
#pantheon .pw-hit { display: flex; align-items: center; gap: 16px; margin: clamp(16px, 1.6vw, 22px) 0 clamp(10px, 1vw, 14px); }
#pantheon .pw-av { flex: none; display: grid; place-items: center; width: clamp(54px, 4.6vw, 68px); aspect-ratio: 1; border-radius: 50%;
  font: 600 clamp(17px, 1.4vw, 21px)/1 var(--sans); letter-spacing: 0.02em; color: #1D2434;
  background: linear-gradient(145deg, #E8ECF8, #B9C3E0); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
#pantheon .pw-hit p { margin: 0; }
#pantheon .pw-hit b { display: block; font: 650 clamp(20px, 1.8vw, 27px)/1.15 var(--sans); color: #FFFFFF; }
#pantheon .pw-hit p span { display: block; margin-top: 3px; font-size: clamp(14px, 1.05vw, 15.5px); color: #A9B1C8; }
#pantheon .pw-rows { margin: 0; padding: 0; list-style: none; }
#pantheon .pw-rows li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 4px; font-size: clamp(15.5px, 1.25vw, 18px); }
#pantheon .pw-rows li + li { background: none; }
#pantheon .pw-rows li:nth-child(odd) { background: rgba(255, 255, 255, 0.035); border-radius: 8px; }
#pantheon .pw-y { font-variant-numeric: tabular-nums; color: #A9B1C8; padding-left: 8px; }
#pantheon .pw-c { color: #FFFFFF; }
#pantheon .pw-pill { padding: 5px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #DDE3F4; background: rgba(255, 255, 255, 0.1); }

#pantheon .pw-out { margin: clamp(18px, 2vw, 28px) 0 0 clamp(36px, 16%, 150px); }
#pantheon .pw-out p { margin: 0; }
#pantheon .pw-yr { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
#pantheon .pw-big b { display: block; margin-top: 4px; font: 700 clamp(44px, 4.4vw, 68px)/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
#pantheon .pw-what { margin-top: 8px !important; font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
#pantheon .pw-src { margin: clamp(16px, 1.8vw, 24px) 0 0; font-size: 12.5px; color: var(--muted); }
[data-theme="dark"] #pantheon .pw-h em { color: #A7B3D8; }
[data-theme="dark"] #pantheon .pw-card { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }

/* its once-through motion (features/pantheon-wang.js adds .pw-pre, then .pw-play) */
#pantheon .pw.pw-pre .pw-hit, #pantheon .pw.pw-pre .pw-rows li, #pantheon .pw.pw-pre .pw-out { opacity: 0; translate: 0 14px; }
#pantheon .pw.pw-pre .pw-pill { opacity: 0; scale: 0.7; }
#pantheon .pw.pw-pre.pw-play .pw-hit, #pantheon .pw.pw-pre.pw-play .pw-rows li, #pantheon .pw.pw-pre.pw-play .pw-out { opacity: 1; translate: 0 0;
  transition: opacity 0.6s ease, translate 0.8s var(--e-out, ease); }
#pantheon .pw.pw-pre.pw-play .pw-pill { opacity: 1; scale: 1; transition: opacity 0.4s ease, scale 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
#pantheon .pw.pw-pre.pw-play .pw-hit { transition-delay: 1.15s; }
#pantheon .pw.pw-pre.pw-play .pw-rows li:nth-child(1) { transition-delay: 1.45s; }
#pantheon .pw.pw-pre.pw-play .pw-rows li:nth-child(2) { transition-delay: 1.65s; }
#pantheon .pw.pw-pre.pw-play .pw-rows li:nth-child(1) .pw-pill { transition-delay: 1.85s; }
#pantheon .pw.pw-pre.pw-play .pw-rows li:nth-child(2) .pw-pill { transition-delay: 2.05s; }
#pantheon .pw.pw-pre.pw-play .pw-out { transition-delay: 2.35s; }

/* ---------- From first competition to first job: one rail across the page, a site under each step ---------- */
#pantheon .pa-flow { margin-top: clamp(56px, 6vw, 96px); }
#pantheon .pa-k { margin-bottom: clamp(18px, 1.8vw, 26px); }
#pantheon .pa-steps { position: relative; gap: clamp(18px, 2.2vw, 36px); }
#pantheon .pa-steps li { display: flex; flex-direction: column; padding-top: 50px; }
#pantheon .pa-steps li::before, #pantheon .pa-steps li::after { content: none; display: none; }
/* the rail, edge to edge, filling in from the left when it arrives */
#pantheon .pa-steps::before, #pantheon .pa-steps::after { content: ""; position: absolute; left: 15px; right: 0; top: 14px; height: 2px; border-radius: 2px; }
#pantheon .pa-steps::before { background: color-mix(in srgb, var(--ink) 13%, transparent); }
#pantheon .pa-steps::after { background: var(--ink); transform-origin: 0 50%; transform: scaleX(1); }
#pantheon .pa-node { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font: 700 13px/1 var(--sans); color: var(--page); background: var(--ink); box-shadow: 0 0 0 6px var(--page); }
#pantheon .pa-steps h4 { order: 2; margin-top: 16px; font-size: clamp(17px, 1.35vw, 19.5px); }
#pantheon .pa-steps p { order: 3; max-width: 34ch; font-size: clamp(15px, 1.1vw, 16.5px); }
/* the site: a small browser frame with the address in its bar; the whole frame is the link */
#pantheon .pa-steps a.pa-site { order: 1; display: block; margin: 0; padding: 0; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit;
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(26, 24, 22, 0.08), 0 18px 36px -22px rgba(26, 24, 22, 0.45);
  transition: translate 0.45s var(--e-out, ease), box-shadow 0.45s ease; }
#pantheon .pa-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #ECE7DE; }
#pantheon .pa-bar i { width: 7px; height: 7px; border-radius: 50%; background: #CFC7BA; }
#pantheon .pa-bar span { margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; font-weight: 600; color: #6F675D; }
#pantheon .pa-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
#pantheon .pa-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: scale 0.9s var(--e-out, ease); }
#pantheon .pa-go { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; font-size: 14.5px; font-weight: 650; color: var(--acc); }
#pantheon .pa-steps a.pa-site:hover, #pantheon .pa-steps a.pa-site:focus-visible { text-decoration: none; }
@media (hover: hover) {
  #pantheon .pa-steps a.pa-site:hover { translate: 0 -5px; box-shadow: 0 1px 2px rgba(26, 24, 22, 0.08), 0 28px 48px -24px rgba(26, 24, 22, 0.55); }
  #pantheon .pa-steps a.pa-site:hover .pa-shot img { scale: 1.04; }
}
#pantheon .pa-steps a.pa-site:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
[data-theme="dark"] #pantheon .pa-steps a.pa-site { background: #1B1A18; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
[data-theme="dark"] #pantheon .pa-bar { background: #26241F; }
[data-theme="dark"] #pantheon .pa-bar i { background: #48443D; }
[data-theme="dark"] #pantheon .pa-bar span { color: #B3AA9C; }

/* the rail fills in, the steps rise in after it (features/pantheon-wang.js adds .pa-pre, then .pa-on) */
#pantheon .pa-flow.pa-pre .pa-steps::after { transform: scaleX(0); }
#pantheon .pa-flow.pa-pre .pa-node { scale: 0.4; opacity: 0; }
#pantheon .pa-flow.pa-pre .pa-steps li > :not(.pa-node) { opacity: 0; translate: 0 18px; }
#pantheon .pa-flow.pa-pre.pa-on .pa-steps::after { transform: scaleX(1); transition: transform 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.1s; }
#pantheon .pa-flow.pa-pre.pa-on .pa-node { scale: 1; opacity: 1; transition: scale 0.5s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.3s ease; }
#pantheon .pa-flow.pa-pre.pa-on .pa-steps li > :not(.pa-node) { opacity: 1; translate: 0 0; transition: opacity 0.6s ease, translate 0.8s var(--e-out, ease); }
#pantheon .pa-flow.pa-pre.pa-on .pa-steps li:nth-child(1) > * { transition-delay: 0.15s; }
#pantheon .pa-flow.pa-pre.pa-on .pa-steps li:nth-child(2) > * { transition-delay: 0.55s; }
#pantheon .pa-flow.pa-pre.pa-on .pa-steps li:nth-child(3) > * { transition-delay: 0.95s; }
#pantheon .pa-flow.pa-pre.pa-on .pa-steps li:nth-child(4) > * { transition-delay: 1.35s; }

/* two across on tablets, one on phones: the rail steps aside and each number sits on its thumbnail's corner */
@media (max-width: 899px) {
  #pantheon .pw { grid-template-columns: minmax(0, 1fr); }
  #pantheon .pa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  #pantheon .pa-steps::before, #pantheon .pa-steps::after { display: none; }
  #pantheon .pa-steps li { position: relative; padding: 0; }
  #pantheon .pa-node { left: 10px; top: 36px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7); }
}
@media (max-width: 560px) {
  #pantheon .pa-steps { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  #pantheon .pa-steps li { padding: 0; }
  #pantheon .pw-out { margin-left: 18px; }
  #pantheon .pw-rows li { grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 8px; }
}

/* Dec 3, her next notes: "the actual description of the stages need to be above the thumbnails", "the descriptions need
   to be CLEARER", "the thumbnails for the websites need to be cuter". Each step reads top to bottom: number, name, what
   happens, then its site. The rows line up across the four steps (subgrid), so every thumbnail starts on one line.
   The thumbnails are little windows: a soft cream frame with round corners, pastel window buttons, a slight tilt that
   straightens and lifts with a spring when pointed at, and the link as a round pill inside the frame. */
#pantheon .pa-steps { grid-template-rows: auto auto auto; row-gap: 0; }
#pantheon .pa-steps li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
#pantheon .pa-steps h4 { order: 0; margin-top: 0; }
#pantheon .pa-steps p { order: 0; margin: 8px 0 18px; max-width: 36ch; font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.5; color: var(--ink-2); }
#pantheon .pa-steps a.pa-site { order: 0; align-self: start; padding: 7px; border-radius: 18px; background: #FFFDF8;
  box-shadow: 0 0 0 1px rgba(26, 24, 22, 0.06), 0 14px 30px -18px rgba(26, 24, 22, 0.4);
  rotate: -1.2deg; transition: rotate 0.6s cubic-bezier(0.3, 1.5, 0.5, 1), translate 0.6s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.4s ease; }
#pantheon .pa-steps li:nth-child(even) a.pa-site { rotate: 1.1deg; }
#pantheon .pa-bar { height: 22px; padding: 0 6px 4px; background: none; }
#pantheon .pa-bar i { width: 8px; height: 8px; }
#pantheon .pa-bar i:nth-child(1) { background: #F2A9A0; }
#pantheon .pa-bar i:nth-child(2) { background: #F3D38E; }
#pantheon .pa-bar i:nth-child(3) { background: #A9D4A3; }
#pantheon .pa-bar span { margin: 0 auto; padding: 2px 10px; border-radius: 999px; background: #F1ECE3; font-size: 11px; color: #7A7166; }
#pantheon .pa-shot { border-radius: 12px; }
#pantheon .pa-go { justify-content: center; margin: 8px 2px 2px; padding: 9px 14px; border-radius: 999px; font-size: 14px;
  background: color-mix(in srgb, var(--acc) 9%, transparent); transition: background 0.3s ease; }
@media (hover: hover) {
  #pantheon .pa-steps li a.pa-site:hover { rotate: 0deg; translate: 0 -7px; box-shadow: 0 0 0 1px rgba(26, 24, 22, 0.06), 0 26px 44px -20px rgba(26, 24, 22, 0.5); }
  #pantheon .pa-steps a.pa-site:hover .pa-go { background: color-mix(in srgb, var(--acc) 16%, transparent); }
}
[data-theme="dark"] #pantheon .pa-steps a.pa-site { background: #1E1C1A; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
[data-theme="dark"] #pantheon .pa-bar { background: none; }
[data-theme="dark"] #pantheon .pa-bar span { background: #2A2724; color: #B3AA9C; }
@media (prefers-reduced-motion: reduce) { #pantheon .pa-steps a.pa-site, #pantheon .pa-steps li:nth-child(even) a.pa-site { rotate: 0deg; } }
/* tablets and phones: no subgrid rows needed; the number sits before the name */
@media (max-width: 899px) {
  #pantheon .pa-steps { grid-template-rows: none; }
  #pantheon .pa-steps li { display: flex; flex-direction: column; grid-row: auto; padding-left: 40px; }
  #pantheon .pa-node { left: 0; top: -3px; box-shadow: none; }
}

/* Dec 3 (her note: "the thumbnails shouldn't be tilted like that"): the site windows sit straight. Pointing at one
   still lifts it a little. */
#pantheon .pa-steps a.pa-site, #pantheon .pa-steps li:nth-child(even) a.pa-site { rotate: 0deg; }

/* Dec 3, her note: "pantheon now too tall ... it looks weird". On computers the Wang search reads across in one row
   (the words, the search, then what happened), and the timeline's thumbnails are shorter, with tighter gaps. */
@media (min-width: 1100px) {
  html #pantheon .pw { grid-template-columns: minmax(0, 4.3fr) minmax(0, 5fr) minmax(0, 2.7fr); gap: clamp(28px, 3.2vw, 56px);
    margin-top: clamp(40px, 4vw, 64px); }
  html #pantheon .pw-demo { display: contents; }
  html #pantheon .pw-h { font-size: clamp(36px, 3.3vw, 52px); }
  html #pantheon .pw-out { grid-column: 3; grid-row: 1; align-self: center; margin: 0; }
  html #pantheon .pw-src { grid-column: 3; grid-row: 1; align-self: end; margin: 0; }
  html #pantheon .pw-what { max-width: 22ch; }
}
html #pantheon .pa-flow { margin-top: clamp(40px, 4.2vw, 68px); }
html #pantheon .pa-shot { aspect-ratio: 16 / 8.5; }
html #pantheon .pa-steps h4 { margin-top: 12px; }

/* Dec 3, her notes: "i don't like the top trim of the thumbnail things" (the little browser bar is gone, the site's own
   picture is the thumbnail), and "say the contrast between hiring wang later and now" (Now on the search, Later on the deal). */
html #pantheon .pa-bar { display: none; }
html #pantheon .pa-steps a.pa-site { padding-top: 0; }
html #pantheon .pw-tag { display: inline-block; margin-right: 8px; padding: 4px 9px 3px; border-radius: 999px; font: 700 11px/1 var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase; vertical-align: 1px; }
html #pantheon .pw-k .pw-tag { color: #1D2434; background: #E8ECF7; }
html #pantheon .pw-yr .pw-tag { color: var(--paper, #FCFAF6); background: var(--ink); }

/* Dec 3, her note: "the text on pantheon section look weird" (the Wang part). The outcome was squeezed into a narrow third
   column, so its sentence broke every few words, and the big number shouted over the heading. Now two columns: the words
   on the left, the search card on the right with the outcome as one calm row under it ("Later 2025", the number, the
   sentence beside it), then the sources. The heading's italic is ink, like the rest of the site's serif lines, and the
   paragraph no longer repeats "in high school". */
#pantheon .pw-h em, [data-theme="dark"] #pantheon .pw-h em { color: inherit; }
@media (min-width: 1100px) {
  html #pantheon .pw { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
  html #pantheon .pw-demo { display: block; max-width: 640px; }
  html #pantheon .pw-out, html #pantheon .pw-src { grid-column: auto; grid-row: auto; align-self: auto; }
}
html #pantheon .pw-out { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(18px, 2vw, 28px); align-items: center;
  margin: clamp(18px, 2vw, 26px) 0 0; padding: 0 4px; }
html #pantheon .pw-yr { grid-column: 1 / -1; margin-bottom: 4px; }
html #pantheon .pw-big b { margin-top: 0; font-size: clamp(36px, 3.2vw, 48px); font-weight: 650; }
html #pantheon .pw-what { margin-top: 0 !important; max-width: 36ch; font-size: clamp(15.5px, 1.15vw, 17px); }
html #pantheon .pw-src { margin: 12px 0 0; padding: 0 4px; font-size: 13px; }
@media (max-width: 640px) {
  html #pantheon .pw-out { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
  html #pantheon .pw-what { margin-top: 6px !important; }
}
@media (min-width: 1100px) { html #pantheon .pw-demo { justify-self: end; width: 100%; } }
