/* Personal editorial story: a stationary signature beside three moving chapters.
   All copy is readable without JavaScript, motion, or scroll-timeline support. */
.about-story {
  position: relative;
  padding-top: 66px;
  padding-bottom: 92px;
  /* Meet the 80px sticky header without exposing the preceding service row. */
  scroll-margin-top: -28px;
  view-timeline: --about-story block;
}
.about-story-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.about-story-top > span { color: var(--text); }
.about-story-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 6vw, 104px);
  align-items: start;
  margin-top: 74px;
}
.about-identity { position: sticky; top: 108px; padding-bottom: 24px; }
.about-identity h2 { font-weight: 500; }
.about-greeting { display: block; font-size: clamp(30px, 3vw, 46px); line-height: 1.1; letter-spacing: -.05em; }
.about-name {
  display: block;
  position: relative;
  width: fit-content;
  margin: 12px 0 24px -7px;
  padding-right: .26em;
  font-family: var(--display);
  font-size: clamp(96px, 10.7vw, 176px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.095em;
  transform-origin: 10% 50%;
}
.about-star {
  position: absolute;
  top: .08em;
  right: -.15em;
  color: var(--accent);
  font-size: .32em;
  line-height: 1;
  letter-spacing: 0;
}
.about-motto { font-size: clamp(24px, 2.1vw, 34px); line-height: 1.25; letter-spacing: -.04em; }
.about-story-progress { height: 2px; margin-top: 28px; background: var(--line); max-width: 420px; }
.about-story-progress > span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; }
.story-nav { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 20px; }
.story-nav a { display: flex; align-items: baseline; gap: 7px; padding-block: 8px; color: var(--muted); font-size: 15px; line-height: 1.4; transition: color .25s; }
.story-nav a > span:first-child { font-family: var(--display); font-size: 12px; }
.story-nav a:hover, .story-nav a[aria-current] { color: var(--accent); }
.about-signoff { margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.about-signoff a { color: var(--text); }
.about-signoff a:hover { color: var(--accent); }
.about-narrative { min-width: 0; }
.story-step { padding-bottom: 112px; scroll-margin-top: 40px; }
.story-step + .story-step { padding-top: 48px; }
.story-step:nth-child(2) { padding-left: 7%; }
.story-step:last-child { padding-bottom: 30px; }
.story-kicker { margin: 0 0 32px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.story-kicker > span { color: var(--accent); margin-right: 12px; font-family: var(--display); }
.story-step h3 { font-size: clamp(32px, 3.2vw, 52px); font-weight: 500; line-height: 1.13; letter-spacing: -.055em; }
.story-experience { display: flex; align-items: center; gap: 28px; margin: -12px 0 36px; }
.experience-number { font-family: var(--display); font-size: clamp(90px, 9vw, 138px); line-height: .95; letter-spacing: -.075em; color: var(--accent); }
.story-experience > span:last-child { font-size: 17px; line-height: 1.5; color: var(--muted); }
/* Keep text on a stationary pixel grid: animate colors, never the text layer. */
.about-contact-tab {
  position: absolute;
  z-index: 2;
  top: 106px;
  right: -24px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 160px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  transition: background .25s, color .25s, border-color .25s;
}
.contact-tab-reel { position: relative; flex: 1; height: 24px; overflow: hidden; }
.contact-tab-label, .contact-tab-handle { position: absolute; inset: 0; display: flex; align-items: center; white-space: nowrap; font-size: 16px; line-height: 24px; }
.contact-tab-handle { font-size: 14px; visibility: hidden; }
.contact-tab-arrow { flex: none; color: var(--accent); font-size: 23px; line-height: 1; transition: transform .4s cubic-bezier(.16,1,.3,1), color .25s; }
.about-contact-tab:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--bg); outline-offset: 5px; }
.about-contact-tab:focus-visible .contact-tab-label { visibility: hidden; }
.about-contact-tab:focus-visible .contact-tab-handle { visibility: visible; }
.about-contact-tab:focus-visible .contact-tab-arrow { color: var(--bg); transform: rotate(45deg); }
@media (hover: hover) {
  .about-contact-tab:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
  .about-contact-tab:hover .contact-tab-label { visibility: hidden; }
  .about-contact-tab:hover .contact-tab-handle { visibility: visible; }
  .about-contact-tab:hover .contact-tab-arrow { color: var(--bg); transform: rotate(45deg); }
}
@media (max-height: 820px) and (min-width: 768px) {
  .about-identity { top: 96px; }
  .about-name { font-size: clamp(90px, 8vw, 130px); margin-bottom: 16px; }
  .about-motto { font-size: 25px; }
  .about-story-progress { margin-top: 20px; }
  .story-nav { margin-top: 10px; }
  .about-signoff { margin-top: 14px; }
}
.story-line { display: block; width: fit-content; max-width: 100%; padding-bottom: .04em; color: var(--text); }
.story-line--accent { --story-ink: var(--accent); color: var(--accent); }
.story-copy { max-width: 38ch; margin-top: 30px; color: var(--muted); font-size: 19px; line-height: 1.7; letter-spacing: -.015em; }
.story-next { margin-top: 28px; gap: 32px; }
@media (max-width: 1100px) and (min-width: 768px) {
  .about-story-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; }
  .about-name { font-size: 10.4vw; margin-left: -4px; }
  .story-nav { flex-direction: column; gap: 0; }
  .about-signoff { margin-top: 28px; }
  .story-step h3 { font-size: 3.9vw; }
  .story-step:nth-child(2) { padding-left: 0; }
  .story-copy { font-size: 17px; }
}
@media (max-width: 767px) {
  .about-story { padding-top: 40px; padding-bottom: 48px; scroll-margin-top: -32px; }
  .about-story-top { padding-bottom: 20px; font-size: 14px; }
  .about-story-top > span { display: none; }
  .about-contact-tab { top: 70px; right: -6px; width: 146px; height: 44px; padding-inline: 12px; }
  .contact-tab-label { font-size: 15px; }
  .about-story-layout { display: block; margin-top: 36px; }
  .about-identity { position: static; padding-bottom: 56px; }
  .about-greeting { font-size: 28px; }
  .about-name { font-size: clamp(80px, 24vw, 166px); margin: 8px 0 20px -4px; }
  .about-motto { font-size: 24px; }
  .about-motto br { display: none; }
  .about-story-progress { display: none; }
  .story-nav { margin-top: 24px; gap: 14px; }
  .story-nav a { min-height: 44px; font-size: 14px; gap: 5px; }
  .about-signoff { margin-top: 22px; font-size: 15px; }
  .about-signoff br { display: none; }
  .story-step { padding: 30px 0 50px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
  .story-step + .story-step { padding-top: 30px; }
  .story-step:nth-child(2) { padding-left: 0; }
  .story-step:last-child { padding-bottom: 0; }
  .story-kicker { font-size: 14px; margin-bottom: 24px; }
  .story-step h3 { font-size: clamp(30px, 8.3vw, 50px); line-height: 1.14; }
  .story-copy { font-size: 17px; line-height: 1.65; margin-top: 24px; }
  .story-next { font-size: 15px; gap: 22px; margin-top: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .about-star {
      animation: about-star-turn linear both;
      animation-timeline: --about-story;
      animation-range: entry 60% exit 10%;
    }
    .about-name {
      animation: about-name-drift linear both;
      animation-timeline: --about-story;
      animation-range: entry 70% exit 10%;
    }
    .about-story-progress > span {
      animation: about-reading-progress linear both;
      animation-timeline: --about-story;
      animation-range: contain 0% contain 100%;
    }
    .story-line {
      color: transparent;
      background-image: linear-gradient(90deg, var(--story-ink, var(--text)) 50%, var(--muted) 50%);
      background-size: 200% 100%;
      background-position: 100% 0;
      background-clip: text;
      -webkit-background-clip: text;
      animation: about-line-fill linear both;
      animation-timeline: view();
      animation-range: entry 100% cover 48%;
    }
  }
}
@keyframes about-star-turn { from { transform: rotate(-35deg); } to { transform: rotate(155deg); } }
@keyframes about-name-drift { from { transform: translateX(0) rotate(-3deg); } to { transform: translateX(12px) rotate(1deg); } }
@keyframes about-reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes about-line-fill { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .about-name, .about-star, .about-story-progress > span { animation: none; transform: none; }
  .story-line { animation: none; background: none; color: var(--story-ink, var(--text)); }
  .story-nav a { transition: none; }
}
