/* /work/: the main site (../styles.css) with the about-me sections out and the company-facing ones in.
   Everything here is only the new parts: hero proof, ticker, skills with the matcher, at a glance, How I work, the link to /uni/. */

/* ---------- Hero additions: the "Prepared for" tag and three proof points ---------- */
.w-for { display: inline-block; margin: 0 0 18px; padding: 6px 14px; background: var(--gold); color: var(--ink-green); font-weight: 700; font-size: var(--step-small); }
.w-for[hidden] { display: none; }
.w-proof { margin-top: 26px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 30px; }
.w-proof li { display: grid; gap: 2px; padding-left: 16px; position: relative; }
.w-proof li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.w-proof li:first-child::before { background: var(--signal); } /* the first point (what I am building now) gets the live red-orange dot */
.w-proof b { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.125rem; color: var(--gold); }
.w-proof span { font-size: 0.9375rem; color: var(--board-soft); max-width: 15em; }
@media (prefers-reduced-motion: no-preference) {
  .w-proof li:first-child::before { animation: w-live 1.8s ease-in-out infinite; }
  @keyframes w-live { 50% { opacity: 0.35; } }
}

/* ---------- Ticker ---------- */
.w-ticker { overflow: hidden; background: var(--gold); color: var(--ink-green); padding: 14px 0; margin-top: var(--m); }
.w-ticker-track { display: flex; width: max-content; }
.w-ticker ul { display: flex; flex: none; }
.w-ticker li { display: flex; align-items: center; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.375rem); white-space: nowrap; padding-right: 28px; }
.w-ticker li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-green); margin-left: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .w-ticker-track.go { animation: w-tick 48s linear infinite; }
  .w-ticker:hover .w-ticker-track { animation-play-state: paused; }
  @keyframes w-tick { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .w-ticker ul { flex-wrap: wrap; row-gap: 8px; } .w-ticker-track { width: auto; padding-inline: var(--m); } }

/* ---------- Section headings: a deeper gold on the light page so it passes contrast ---------- */
.w-skills h2 > span, .w-glance h2 > span { color: #8a6810; }
[data-theme="dark"] .w-skills h2 > span, [data-theme="dark"] .w-glance h2 > span { color: var(--gold); }
.w-intro { margin-top: 14px; font-size: var(--step-lead); color: var(--muted); max-width: 32em; line-height: 1.35; }

/* ---------- Skills, with the matcher beside them ---------- */
.w-skills { padding-block: clamp(80px, 10vw, 150px) clamp(48px, 6vw, 90px); }
.w-skills-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(24px, 4vw, 56px); row-gap: 40px; align-items: start; }
.w-strands { margin-top: clamp(28px, 3.5vw, 48px); display: grid; }
.w-strands li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 8px; padding: 24px 0 24px 22px; position: relative; transition: background-color 300ms ease; }
.w-strands li + li { box-shadow: 0 -2px 0 var(--surface); } /* taste-skill-ignore: a 2px divider between rows of a list */
.w-strands li::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 6px; background: var(--surface); transition: background-color 300ms ease; }
.w-strands h3 { grid-row: span 2; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem); font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.12; }
.w-strands li > p:not(.w-by) { max-width: 34em; }
.w-by { display: flex; flex-wrap: wrap; gap: 6px; }
.w-by a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 0.9375rem; transition: background-color 180ms ease, color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .w-by a:hover { background: var(--ink); color: var(--bg); } }
.w-strands li.hit::before { background: var(--gold); }
.w-strands li.hit { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.w-strands li.hit h3::after { content: attr(data-for); display: block; margin-top: 8px; font-family: var(--text); font-stretch: 100%; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: #7a5c0e; }
[data-theme="dark"] .w-strands li.hit h3::after { color: var(--gold); }

.w-match { --focus: var(--gold); position: sticky; top: calc(var(--top-h) + 24px); background: var(--board); color: var(--board-ink); padding: clamp(20px, 2.4vw, 30px); }
.w-match h3 { font-size: var(--step-lead); font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.15; }
.w-match-note { margin-top: 8px; font-size: 1rem; color: var(--board-soft); }
.w-companies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.w-companies button { min-height: 44px; padding: 0 13px; background: var(--board-well); color: var(--board-ink); font-weight: 600; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.w-companies button:active { transform: scale(0.96); }
.w-companies button[aria-pressed="true"] { background: var(--gold); color: var(--ink-green); }
@media (hover: hover) and (pointer: fine) { .w-companies button:not([aria-pressed="true"]):hover { background: var(--bone); color: var(--ink-green); } }
.w-result { margin-top: 18px; }
.w-result-line { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--gold); }
.w-hits { margin-top: 12px; display: grid; gap: 12px; }
.w-hits li { display: grid; gap: 2px; padding-left: 24px; position: relative; }
.w-hits li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--gold); }
.w-hits b { font-weight: 600; }
.w-hits span { font-size: 0.9375rem; color: var(--board-soft); }
.w-hits a { color: var(--gold); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .w-hits li { animation: w-in 450ms var(--ease-out) both; }
  .w-hits li:nth-child(2) { animation-delay: 90ms; } .w-hits li:nth-child(3) { animation-delay: 180ms; }
  @keyframes w-in { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------- At a glance: one line per project, with its stack ---------- */
.w-glance { padding-block: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 32px); }
.w-glance-list { margin-top: clamp(24px, 3vw, 40px); display: grid; }
.w-glance-list li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 32px; row-gap: 10px; align-items: center; padding: 18px 0 18px 22px; position: relative; transition: background-color 300ms ease; }
.w-glance-list li + li { box-shadow: 0 -2px 0 var(--surface); } /* taste-skill-ignore: a 2px divider between rows of a list */
.w-glance-list li::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 6px; background: var(--surface); transition: background-color 300ms ease; }
.w-glance-list li.hit::before { background: var(--gold); }
.w-glance-list li.hit { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.w-glance-list a { display: grid; gap: 2px; text-decoration: none; }
.w-glance-list a b { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.1; }
.w-glance-list a span { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .w-glance-list a:hover b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.15em; } }
.w-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.w-stack > span:not(.ph) { padding: 3px 10px; background: var(--surface); font-size: 0.875rem; font-weight: 600; }
.also-list .w-stack { margin-top: 4px; }
.also-list li.hit b { box-shadow: inset 0 -0.35em 0 color-mix(in srgb, var(--gold) 45%, transparent); }

/* ---------- How I work: on the board ---------- */
.w-how { --focus: var(--gold); position: relative; overflow: hidden; background: var(--board); color: var(--board-ink); padding-block: clamp(80px, 10vw, 150px); margin-top: clamp(80px, 10vw, 150px); }
.w-how-inner { position: relative; }
.w-how h2 > span { color: var(--gold); }
.w-big { margin-top: 18px; max-width: 22em; font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--gold); }
.w-stories { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.w-stories li { padding-top: 18px; position: relative; }
.w-stories li::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 6px; background: var(--gold); }
.w-stories h3 { font-size: var(--step-lead); font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.2; }
.w-stories p { margin-top: 10px; color: var(--board-soft); }
.w-grit { margin-top: clamp(36px, 4vw, 56px); max-width: 40em; font-size: var(--step-lead); line-height: 1.35; font-weight: 500; }

/* ---------- The door to /uni/ ---------- */
.w-person { padding-block: clamp(64px, 8vw, 120px) 0; }
/* Centred, so the button sits right under the question where people are already looking. */
.w-person-inner { display: grid; justify-items: center; text-align: center; gap: 18px; }
.w-person h2 { font-size: var(--step-head); text-wrap: balance; }
.w-person p { font-size: var(--step-lead); color: var(--muted); max-width: 30em; line-height: 1.35; text-wrap: balance; }
.w-person .btn { margin-top: 6px; min-height: 54px; padding: 0 30px; font-size: 1.0625rem; }
.contact .coupon h2 > span { color: var(--ink-green); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1023px) {
  .w-skills-grid { grid-template-columns: 1fr; }
  .w-match { position: static; max-width: 640px; }
  .w-stories { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .w-proof { grid-template-columns: 1fr; }
  .w-strands li, .w-glance-list li { grid-template-columns: 1fr; padding-left: 18px; }
  .w-strands h3 { grid-row: auto; }
}
