/* Detailed pages: about, experience, work, services, contact.
   Builds on styles.css (tokens, nav, glass, contact footer, chips of the homepage). */

/* ---------- Page hero: title + lead | page-specific aside, meta strip on the floor ---------- */
.hero.page-hero {
  height: auto;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 17vh 6vw 0;
}
.page-hero__inner {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  align-items: end;
  gap: 5vw;
  width: 100%;
  padding-bottom: 7vh;
}
.page-hero__title {
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(88px, 12.5vw, 240px);
  line-height: .82;
  text-wrap: balance;
}
.page-hero__lead {
  max-width: 30ch;
  font-size: clamp(21px, 2vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-wrap: balance;
  color: var(--soft);
}
:is(.page-hero__lead, .story__lead) em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--accent);
}

/* the floor: page position, a short note, and the scroll cue */
.page-hero__meta {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 0 24px;
  border-top: 1px solid rgb(var(--ink-rgb) / .16);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero__idx { color: var(--ink); font-variant-numeric: tabular-nums; }
.page-hero__idx span { color: var(--muted); }
.page-hero__note { text-align: center; }
.page-hero__down { justify-self: end; display: inline-flex; align-items: center; gap: 12px; transition: color .3s; }
.page-hero__down:hover { color: var(--ink); }
.page-hero__scroll {
  position: relative;
  width: 22px; height: 36px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .35);
}
.page-hero__scroll span {
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  border-radius: 3px;
  translate: -50% 0;
  background: var(--ink);
  animation: scroll-cue 1.8s var(--ease) infinite;
}
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Hero asides ---------- */
.ph-aside { position: relative; align-self: end; }
.ph-aside__title { margin-bottom: 18px; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }

/* hairline definition rows */
.ph-list { display: grid; }
.ph-list > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgb(var(--ink-rgb) / .14);
}
.ph-list dt { padding-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ph-list dd { font-size: 15.5px; line-height: 1.5; }

/* about: who + quick facts */
.ph-who { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ph-who__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent-2), 0 8px 24px rgb(20 30 90 / .35);
}
.ph-who strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 600; }
.ph-who .status { font-size: 13px; color: var(--soft); }

/* experience: current role */
.ph-role { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.ph-role .job__logo { width: 50px; height: 50px; border-radius: 14px; font-size: 26px; }
.ph-role strong { display: block; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; }
.ph-role span { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.ph-text { margin-bottom: 18px; font-size: 15.5px; line-height: 1.6; color: var(--soft); }

/* work: three real covers fanned out; they spread on hover */
.ph-fan { display: block; height: clamp(280px, 30vw, 440px); }
.ph-fan__card {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: 64%;
  aspect-ratio: 808 / 632;
  border-radius: 16px;
  overflow: hidden;
  background: #11162a;
  box-shadow: 0 24px 50px rgb(5 8 25 / .45), inset 0 0 0 1px rgb(255 255 255 / .08);
  transform: translateX(calc(-50% + var(--x))) rotate(var(--r));
  transition: transform .9s cubic-bezier(.3, 1.3, .4, 1);
}
.ph-fan__card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-fan__card--top { z-index: 2; }
.ph-fan:hover .ph-fan__card { transform: translateX(calc(-50% + var(--x) * 1.45)) rotate(calc(var(--r) * 1.5)) translateY(-8px); }
.ph-fan:hover .ph-fan__card--top { transform: translateX(-50%) translateY(-18px) scale(1.04); }
.ph-fan__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soft);
}
[data-theme="light"] .ph-fan__card { box-shadow: 0 24px 50px rgb(30 40 100 / .2), inset 0 0 0 1px rgb(18 20 31 / .06); }

/* services: an index that jumps to each service */
.ph-index ol { list-style: none; }
.ph-index a {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  padding: 15px 0;
  font-size: 17px;
  border-top: 1px solid rgb(var(--ink-rgb) / .14);
  transition: color .3s, padding .5s var(--ease);
}
.ph-index li:last-child a { border-bottom: 1px solid rgb(var(--ink-rgb) / .14); }
.ph-index__num { font-family: var(--display); font-size: 19px; color: var(--muted); }
.ph-index svg { justify-self: end; opacity: .45; transition: opacity .3s, transform .5s var(--ease); }
.ph-index a:hover { color: var(--accent); padding-left: 8px; }
.ph-index a:hover svg { opacity: 1; transform: translateY(3px); }

/* contact: what happens next */
.ph-steps { list-style: none; counter-reset: step; margin-bottom: 20px; }
.ph-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgb(var(--ink-rgb) / .14);
}
.ph-steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .2);
}
.ph-steps strong { font-size: 16px; font-weight: 600; }
.ph-steps span { margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.ph-aside .status { font-size: 14px; }

/* ---------- Generic blocks ---------- */
.block { position: relative; padding: 14vh 6vw; }
.page-hero + main > :first-child { padding-top: 9vh; }
.block--tight { padding-top: 10vh; padding-bottom: 4vh; }
.block__head { margin-bottom: 6vh; }

/* ---------- About: story ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) 1.45fr;
  gap: 6vw;
  align-items: start;
  padding: 14vh 6vw 10vh;
}
.story__lead {
  margin-bottom: 5vh;
  font-size: clamp(28px, 3vw, 54px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.story__text p {
  max-width: 660px;
  margin-bottom: 1.2em;
  font-size: 18px;
  line-height: 1.7;
  color: var(--soft);
}

/* ---------- Cards (principles, credentials, engagements) ---------- */
.cards { display: grid; gap: 16px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 30px;
  border-radius: 22px;
  overflow: hidden;
  background: rgb(var(--hi-rgb) / .035);
  box-shadow: inset 0 0 0 1px rgb(var(--hi-rgb) / .08);
  transition: transform .6s var(--ease), box-shadow .4s;
}
.card::before,
.tl__card::before,
.channel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(80, 120, 255, .2), transparent 62%);
  opacity: 0;
  transition: opacity .4s;
}
:is(.card, .tl__card, .channel):hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(140, 170, 255, .35); }
.card__num { font-family: var(--display); font-size: 20px; color: var(--muted); }
.card h3 {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 2.3vw, 42px);
  line-height: 1;
}
.card p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--soft); }
.card--cred { min-height: 230px; }
.card__badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--chip-ink);
  background: rgba(90, 130, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(140, 170, 255, .28);
}
.block .section-more { margin-top: 7vh; }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  background: rgb(var(--hi-rgb) / .05);
  box-shadow: inset 0 0 0 1px rgb(var(--hi-rgb) / .1);
  transition: background .3s, box-shadow .3s;
}
.chips li:hover { background: rgba(80, 120, 255, .18); box-shadow: inset 0 0 0 1px rgba(140, 170, 255, .35); }
.chips--ghost li { background: none; }

/* ---------- About: skills ---------- */
.skills { display: grid; gap: 4vh; }
.skills__group {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding-top: 4vh;
  border-top: 1px solid rgb(var(--ink-rgb) / .12);
}
.skills__group h3 { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; }

/* ---------- Experience: career path + timeline ---------- */
.path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgb(var(--ink-rgb) / .18);
}
.path__step { position: relative; padding: 26px 18px 0 0; font-size: 16px; color: var(--soft); }
.path__step::before {
  content: "";
  position: absolute;
  left: 0; top: -5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(127, 155, 255, .18), 0 0 14px rgba(127, 155, 255, .6);
}
.path__step span { display: block; margin-bottom: 6px; font-family: var(--display); font-size: 46px; line-height: 1; color: var(--ink); }
.stats--page { margin-top: 9vh; }

.tl-wrap { position: relative; }
.tl__rail {
  position: absolute;
  left: calc(22% + 2vw);
  top: 0; bottom: 0;
  width: 1px;
  background: rgb(var(--ink-rgb) / .14);
}
.tl__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--accent-2), var(--ink));
  transform-origin: top;
  transform: scaleY(0);
}
.tl { list-style: none; }
.tl__item {
  position: relative;
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 4vw;
  padding: 5vh 0;
}
/* node on the rail */
.tl__item::before {
  content: "";
  position: absolute;
  left: calc(22% + 2vw - 5px);
  top: calc(5vh + 34px);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .4);
  transition: background .5s, box-shadow .5s;
}
.tl__item.is-active::before { background: var(--accent-2); box-shadow: 0 0 0 5px rgba(127, 155, 255, .2), 0 0 20px rgba(127, 155, 255, .7); }
.tl__when { position: sticky; top: 18vh; align-self: start; }
.tl__year {
  display: block;
  font-family: var(--display);
  font-size: clamp(64px, 7vw, 130px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--ink-rgb) / .45);
  transition: color .6s, -webkit-text-stroke-color .6s;
}
.tl__item.is-active .tl__year { color: var(--ink); -webkit-text-stroke-color: transparent; }
.tl__range { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.tl__card {
  position: relative;
  isolation: isolate;
  padding: 34px;
  border-radius: 24px;
  overflow: hidden;
  background: rgb(var(--hi-rgb) / .035);
  box-shadow: inset 0 0 0 1px rgb(var(--hi-rgb) / .08);
}
.is-current .tl__card { box-shadow: inset 0 0 0 1px rgba(140, 170, 255, .35), 0 30px 80px rgba(20, 40, 140, .25); }
.tl__head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.tl__head .job__logo { width: 50px; height: 50px; border-radius: 14px; font-size: 26px; }
.tl__role { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3vw, 56px); line-height: 1; }
.tl__company { margin-top: 4px; font-size: 15px; color: var(--muted); }
.tl__points { list-style: none; display: grid; gap: 12px; }
.tl__points li { position: relative; padding-left: 24px; font-size: 16.5px; line-height: 1.6; color: var(--soft); }
.tl__points li::before { content: "✦"; position: absolute; left: 0; top: .1em; font-size: 12px; color: var(--accent-2); }
.tl__tags { padding: 22px 0 0; }
.tl__tags li { opacity: 1; transform: none; } /* the homepage accordion hides these until opened */

/* ---------- Work grid ---------- */
.block--work { padding-top: 8vh; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6vh; }
.filters button {
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: rgb(var(--hi-rgb) / .05);
  box-shadow: inset 0 0 0 1px rgb(var(--hi-rgb) / .12);
  transition: background .3s, color .3s;
}
.filters button:hover { background: rgb(var(--hi-rgb) / .1); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filters sup { font-size: 10px; opacity: .6; }

.wgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5vw 3vw; }
/* editorial stagger: every second visible card sits lower */
.wgrid > .wcard:nth-child(even of :not([hidden])) { margin-top: 14vh; }
.wcard { display: block; }
.wcard[hidden] { display: none; }
.wcard__media {
  display: block;
  aspect-ratio: 808 / 632;
  border-radius: 22px;
  overflow: hidden;
  background: #11162a;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35), inset 0 0 0 1px rgb(var(--hi-rgb) / .06);
  will-change: transform;
}
.wcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wcard:hover .wcard__media img { transform: scale(1.06); }
.wcard__meta {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 22px 4px 0;
}
.wcard__num { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.wcard__text { display: grid; gap: 4px; }
.wcard__title { font-family: var(--display); font-size: clamp(28px, 2.4vw, 46px); line-height: 1; text-transform: uppercase; }
.wcard__kind { font-size: 14px; color: var(--muted); }
.wcard__chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--chip-ink);
  background: rgba(90, 130, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(140, 170, 255, .25);
}
.wcard__arrow {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .25);
  transition: transform .6s var(--ease), background .35s, color .35s;
}
.wcard:hover .wcard__arrow { transform: rotate(45deg); background: var(--ink); color: var(--bg); }

/* ---------- Services ---------- */
.svc {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 5vw;
  padding: 9vh 0;
  border-top: 1px solid rgb(var(--ink-rgb) / .12);
}
.svc:first-child { border-top: 0; padding-top: 0; }
.svc__side { position: sticky; top: 16vh; align-self: start; }
.svc__num {
  display: block;
  font-family: var(--display);
  font-size: 96px;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--ink-rgb) / .4);
}
.svc__title { margin-top: 10px; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 4.4vw, 84px); line-height: .95; }
.svc__intro { margin-bottom: 5vh; font-size: clamp(20px, 1.7vw, 28px); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.svc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; }
.svc__cols h4 { margin-bottom: 14px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.svc__cols .chips + h4 { margin-top: 30px; }
.svc__list { list-style: none; }
.svc__list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid rgb(var(--ink-rgb) / .1);
}
.svc__list li::before { content: "✦"; font-size: 12px; color: var(--accent-2); padding-top: 3px; }

/* FAQ reuses the experience accordion */
.faq .job__row { grid-template-columns: 1fr 48px; }
.faq__q { font-family: var(--body); font-size: clamp(20px, 1.8vw, 30px); font-weight: 500; text-transform: none; letter-spacing: -.01em; }
.faq .job__panel-inner { grid-template-columns: 1fr; }
.faq .job__panel-inner > * { grid-column: 1; }
.faq .job__panel p { max-width: 760px; padding-bottom: 4vh; }

/* ---------- Contact page ---------- */
.contact-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5vw; align-items: start; }
.contact__email--block { display: flex; width: 100%; justify-content: space-between; margin-bottom: 16px; }
.channels { list-style: none; display: grid; gap: 10px; }
.channel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  overflow: hidden;
  background: rgb(var(--hi-rgb) / .035);
  box-shadow: inset 0 0 0 1px rgb(var(--hi-rgb) / .08);
  transition: transform .6s var(--ease), box-shadow .4s;
}
.channel:hover { transform: translateX(6px); box-shadow: inset 0 0 0 1px rgba(140, 170, 255, .35); }
.channel__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgb(var(--hi-rgb) / .07); }
.channel__text { display: grid; gap: 2px; }
.channel__name { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.channel__value { font-size: 17px; }
.channel__arrow { transition: transform .5s var(--ease); }
.channel:hover .channel__arrow { transform: rotate(45deg); }
.avail {
  margin-top: 18px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(74, 222, 128, .08), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .2);
}
.avail p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.glass-card {
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgb(var(--hi-rgb) / .07), rgb(var(--hi-rgb) / .02));
  box-shadow: inset 1px 1px 1px rgb(var(--hi-rgb) / .18), inset 0 0 0 1px rgb(var(--hi-rgb) / .07), 0 40px 100px rgba(10, 20, 70, .4);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}
.form__title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 3.4vw, 60px); line-height: 1; }
.form__note { margin: 10px 0 30px; font-size: 15px; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field > span, .field legend { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .7; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.field legend { margin-bottom: 10px; }
.field :is(input, select, textarea) {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: rgb(var(--hi-rgb) / .05);
  box-shadow: inset 0 0 0 1px rgb(var(--hi-rgb) / .12);
  transition: box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select option { color: #111; }
.field :is(input, select, textarea):focus {
  outline: none;
  background: rgb(var(--hi-rgb) / .07);
  box-shadow: inset 0 0 0 1.5px var(--accent-2), 0 0 0 4px rgba(127, 155, 255, .15);
}
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
/* visually hidden, still focusable; beats the full-width rule for text fields */
.field .pick input { position: absolute; inset: 0; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.pick span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  background: rgb(var(--hi-rgb) / .05);
  box-shadow: inset 0 0 0 1px rgb(var(--hi-rgb) / .12);
  transition: background .3s, color .3s, box-shadow .3s;
}
.pick span:hover { background: rgb(var(--hi-rgb) / .1); }
.pick input:checked + span { background: var(--ink); color: var(--bg); }
.pick input:focus-visible + span { box-shadow: 0 0 0 2px var(--accent-2); }
.form__submit { margin-top: 8px; border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 600; }
.form__sent { display: none; margin-top: 16px; font-size: 14px; line-height: 1.5; color: #8ef0b0; }
.form__sent a { text-decoration: underline; }
.form.is-sent .form__sent { display: block; }

/* ---------- Phone / tablet ---------- */
@media (max-width: 900px) {
  .hero.page-hero { min-height: 0; padding: 17vh 16px 0; justify-content: flex-end; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 36px; padding-bottom: 5vh; }
  .page-hero__title { font-size: clamp(64px, 19vw, 120px); white-space: normal; }
  .page-hero__meta { grid-template-columns: auto 1fr; }
  .page-hero__note { display: none; }
  .ph-fan { height: 56vw; }
  .ph-fan__card { width: 54%; }
  .block { padding: 10vh 16px; }
  .story { grid-template-columns: 1fr; gap: 40px; padding: 10vh 16px 6vh; }
  .story__portrait { position: relative; top: auto; max-width: 420px; }
  .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .card { min-height: 200px; }
  .skills__group { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .tl__rail { left: 5px; }
  .tl__item { grid-template-columns: 1fr; gap: 16px; padding: 4vh 0 4vh 30px; }
  .tl__item::before { left: 0; top: calc(4vh + 14px); }
  .tl__when { position: relative; top: auto; }
  .tl__year { font-size: 56px; }
  .tl__card { padding: 24px; }
  .wgrid { grid-template-columns: 1fr; gap: 8vh; }
  .wgrid > .wcard:nth-child(even of :not([hidden])) { margin-top: 0; }
  .wcard__meta { grid-template-columns: auto 1fr auto; }
  .wcard__chip { display: none; }
  .svc { grid-template-columns: 1fr; gap: 24px; padding: 7vh 0; }
  .svc__side { position: relative; top: auto; }
  .svc__num { font-size: 64px; }
  .svc__cols { grid-template-columns: 1fr; gap: 30px; }
  .contact-page { grid-template-columns: 1fr; gap: 40px; }
  .glass-card { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Light theme tweaks for the detailed pages ---------- */
[data-theme="light"] :is(.card, .tl__card, .channel)::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(58, 79, 214, .1), transparent 62%); }
[data-theme="light"] .wcard__media { background: #e6e9f4; box-shadow: 0 30px 70px rgba(30, 40, 90, .16), inset 0 0 0 1px rgba(18, 20, 31, .06); }
[data-theme="light"] .is-current .tl__card { box-shadow: inset 0 0 0 1px rgba(58, 79, 214, .3), 0 30px 80px rgba(58, 79, 214, .12); }
[data-theme="light"] .avail { background: linear-gradient(160deg, rgba(22, 163, 74, .08), transparent 70%); box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .25); }
[data-theme="light"] .form__sent { color: #15803d; }
[data-theme="light"] .field :is(input, select, textarea) { background: rgba(255, 255, 255, .7); }
[data-theme="light"] .field :is(input, select, textarea):focus { background: #fff; }

/* ---------- Inquiry form states ---------- */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form.is-sending .form__submit { opacity: .7; pointer-events: none; }
.form__error { display: none; margin-top: 16px; font-size: 14px; line-height: 1.5; color: #ff9b9b; }
.form__error a { text-decoration: underline; }
.form.is-error .form__error { display: block; }
.form.is-sent .form__sent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(74, 222, 128, .08);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .25);
}
.form.is-sent .form__sent::before { content: "✓"; font-weight: 700; }
[data-theme="light"] .form__error { color: #b42318; }

/* the meta strip arrives with the page, after the title */
.page-hero__meta { animation: meta-in 1s var(--ease) .5s both; }
@keyframes meta-in { from { opacity: 0; transform: translateY(12px); } }

/* about hero: resume download under the quick facts */
.ph-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 20px 13px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b63ff, #6a4bd6);
  box-shadow: 0 12px 30px rgb(59 99 255 / .35);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.ph-download em { font-style: normal; font-size: 11px; letter-spacing: .1em; opacity: .75; }
.ph-download:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgb(59 99 255 / .45); }
