/* =========================================================================
   Mohamed Badusha - portfolio
   Palette meaning: indigo = a request in transit, coral = the response coming back.
   ========================================================================= */

:root {
  --void:      #07090F;
  --surface:   #0B0F17;
  --raise:     #111827;
  --line:      #1E2635;
  --line-soft: #151C28;
  --text:      #E7EAF1;
  --muted:     #828D9F;
  --dim:       #5A6475;
  --signal:    #8B7CFF;
  --seal:      #FF9E64;

  --display: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:    "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --rule: 1px solid var(--line);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* one quiet atmospheric wash, anchored where the flow begins */
body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 70vh;
  background:
    radial-gradient(60% 60% at 30% 0%, rgba(139, 124, 255, .10), transparent 70%),
    radial-gradient(50% 50% at 92% 38%, rgba(255, 158, 100, .045), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; margin: 0; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--signal); color: var(--void); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--signal);
  color: var(--void);
  font: 500 .72rem/1 var(--mono);
  z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================== NAV ============================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 15, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--rule);
}

.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
}

.nav__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--signal), var(--seal));
  box-shadow: 0 0 8px rgba(139, 124, 255, .55);
  transition: width .12s linear;
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 .68rem/1 var(--mono);
  letter-spacing: .04em;
  text-decoration: none;
}

.nav__logo {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 6px rgba(139, 124, 255, .45));
}

.nav__links { display: flex; gap: clamp(14px, 3vw, 30px); }

.nav__links a {
  font: 400 .58rem/1 var(--mono);
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); border-bottom-color: var(--signal); }

/* ============================== HERO ============================== */

.hero { padding: clamp(64px, 12vw, 132px) 0 clamp(34px, 5vw, 56px); }

.hero__grid { display: grid; gap: clamp(26px, 5vw, 56px); }

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    align-items: end;
  }
}

.hero__eyebrow {
  /* wraps to two lines on a phone, so it needs real leading */
  font: 500 .62rem/1.7 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--signal);
  text-wrap: balance;
  margin-bottom: 26px;
}

.hero__name {
  font-size: clamp(3.4rem, 12vw, 7.6rem);
  line-height: .88;
  letter-spacing: -.045em;
  margin-bottom: 30px;
}

/* In two columns the name has to fit its own column, not the viewport. */
@media (min-width: 960px) {
  .hero__name { font-size: clamp(2.9rem, 6.6vw, 6.6rem); }
}


@supports (-webkit-text-stroke: 1px currentColor) {
  .hero__outline {
    color: transparent;
    -webkit-text-stroke: clamp(1.5px, .3vw, 3px) var(--text);
  }
}

.hero__thesis {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 1.28;
  letter-spacing: -.02em;
  max-width: 24ch;
  text-wrap: balance;
  margin-bottom: 18px;
}

.mark {
  /* A real underline, so it skips the descender of "path" instead of
     slicing through it the way a background gradient does. */
  text-decoration: underline;
  text-decoration-color: rgba(139, 124, 255, .85);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  text-decoration-skip-ink: auto;
}

.hero__sub {
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.02rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 16px;
  border: var(--rule);
  border-radius: 999px;
  font: 500 .7rem/1 var(--mono);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease;
}
.btn:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-1px); }

.btn--primary { background: var(--signal); border-color: var(--signal); color: var(--void); }
.btn--primary:hover { background: #A79BFF; border-color: #A79BFF; color: var(--void); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero__eyebrow,
.hero__name,
.hero__thesis,
.hero__sub,
.hero__actions,
.portrait,
.hero .flow { animation: riseIn .7s cubic-bezier(.2, .7, .3, 1) both; }

.hero__eyebrow { animation-delay: .05s; }
.hero__name    { animation-delay: .11s; }
.hero__thesis  { animation-delay: .19s; }
.portrait      { animation-delay: .22s; }
.hero__sub     { animation-delay: .25s; }
.hero__actions { animation-delay: .31s; }
.hero .flow    { animation-delay: .39s; }

/* The studio backdrop has its own light falloff, so blending it into the page
   never reads as clean. It is framed instead, matching the panels elsewhere. */
.portrait {
  position: relative;
  margin: 0;
  /* On a phone the photo leads, above the name, rather than trailing the
     buttons where it read as an afterthought. */
  order: -1;
  max-width: 176px;
  border: var(--rule);
  border-radius: clamp(20px, 2.4vw, 32px);
  overflow: hidden;
  background: #000;
  line-height: 0;
  box-shadow: 0 30px 70px -40px rgba(139, 124, 255, .5);
}

@media (min-width: 960px) {
  .portrait { order: 0; max-width: none; }
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  filter: contrast(1.1) saturate(1.02);
}

/* ====================== SIGNATURE: THE ROUND TRIP ====================== */

.flow {
  position: relative;
  margin-top: clamp(52px, 8vw, 88px);
  padding: 26px clamp(18px, 3vw, 30px);
  border: var(--rule);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, .55), rgba(11, 15, 23, .25));
}

.flow__track {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.flow__node {
  flex: 0 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--void);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.flow__k {
  display: block;
  font: 500 .66rem/1.4 var(--mono);
  letter-spacing: .01em;
  color: var(--text);
  white-space: nowrap;
}

.flow__v {
  display: block;
  margin-top: 4px;
  font: 400 .58rem/1.4 var(--mono);
  color: var(--dim);
  white-space: nowrap;
}

.flow__wire {
  position: relative;
  flex: 1 1 auto;
  min-width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* the wire itself */
.flow__wire::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 10px);
}

.flow__label {
  position: relative;
  z-index: 2;
  transform: translateY(-16px);
  padding: 0 8px;
  background: var(--surface);
  font: 400 .56rem/1 var(--mono);
  letter-spacing: .06em;
  color: var(--dim);
  white-space: nowrap;
}

/* travelling pulses: cyan goes out, amber comes back signed */
.flow__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  opacity: 0;
  z-index: 3;
}

.flow__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.flow__status {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 400 .62rem/1.5 var(--mono);
  letter-spacing: .04em;
  color: var(--dim);
  opacity: 0;
  transition: opacity .5s ease, color .5s ease;
}

.flow__seal {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color .5s ease, box-shadow .5s ease;
}

.flow__replay {
  flex: 0 0 auto;
  padding: 6px 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font: 400 .58rem/1 var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.flow__replay:hover { color: var(--signal); border-color: var(--signal); }

/* --- played state ------------------------------------------------------ */

.flow.is-playing .flow__node { animation: nodeLight .45s ease forwards; animation-delay: var(--d); }
.flow.is-playing .flow__pulse--out  { animation: travelOut .55s ease-in-out forwards; animation-delay: var(--out); }
.flow.is-playing .flow__pulse--back { animation: travelBack .55s ease-in-out forwards; animation-delay: var(--back); }
.flow.is-sealed .flow__status { opacity: 1; color: var(--seal); }
.flow.is-sealed .flow__seal { background: var(--seal); box-shadow: 0 0 10px rgba(255, 158, 100, .8); }

@keyframes nodeLight {
  from { border-color: var(--line); box-shadow: none; }
  60%  { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(139, 124, 255, .12); }
  to   { border-color: #2C3A50; box-shadow: none; }
}

@keyframes travelOut {
  0%   { left: 0;    opacity: 0; background: var(--signal); box-shadow: 0 0 12px rgba(139, 124, 255, .95); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; background: var(--signal); box-shadow: 0 0 12px rgba(139, 124, 255, .95); }
}

@keyframes travelBack {
  0%   { left: 100%; opacity: 0; background: var(--seal); box-shadow: 0 0 12px rgba(255, 158, 100, .95); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 0;    opacity: 0; background: var(--seal); box-shadow: 0 0 12px rgba(255, 158, 100, .95); }
}

/* ============================== SECTIONS ============================== */

.band { padding: clamp(52px, 7.5vw, 88px) 0; }

section[id], footer[id] { scroll-margin-top: 68px; }

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: var(--rule);
  margin-bottom: clamp(34px, 5vw, 56px);
}

.head__label {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--text);
}

.head__note {
  font: 400 .6rem/1 var(--mono);
  letter-spacing: .06em;
  color: var(--dim);
  text-align: right;
}

/* ------------------------------ about ------------------------------ */

.about { display: grid; gap: 22px; }

.about__lead { max-width: 30ch; }

.about__cols {
  display: grid;
  /* min() keeps the nested grid from claiming a 300px track on a narrow screen */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  min-width: 0;
  gap: 22px clamp(28px, 5vw, 64px);
  max-width: 1000px;
}

.about__lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--text);
}

.about__cols p { color: var(--muted); }

/* ---------------------------- expertise ---------------------------- */

.domain {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 300px) 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .25s ease;
}

.domain::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--signal);
  opacity: 0;
  transition: opacity .25s ease;
}

.domain:hover { background-color: rgba(139, 124, 255, .028); }
.domain:hover::before { opacity: .75; }

.domain:hover .domain__name h3 { color: var(--text); }
.domain:first-of-type { border-top: 1px solid var(--line-soft); }

.domain__name h3 {
  font-size: 1.16rem;
  letter-spacing: -.02em;
  margin-bottom: 7px;
}

.domain__name p {
  font-size: .88rem;
  color: var(--dim);
  line-height: 1.5;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }

.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: 500 .84rem/1.35 var(--body);
  letter-spacing: -.005em;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(28, 38, 56, .55), rgba(13, 17, 25, .55));
  transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.chips li:hover {
  color: var(--text);
  border-color: rgba(139, 124, 255, .55);
  box-shadow: 0 0 0 3px rgba(139, 124, 255, .07);
  transform: translateY(-1px);
}

.chips--sm li { font-size: .76rem; padding: 4px 10px; }

/* ---------------------------- experience ---------------------------- */

.timeline { display: grid; }

.timeline > li { border-top: 1px solid var(--line-soft); }
.timeline > li:last-child { border-bottom: 1px solid var(--line-soft); }

.role {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 1fr;
  gap: clamp(18px, 4vw, 48px);
  padding: 30px 0;
}

.role__when {
  font: 400 .64rem/1.6 var(--mono);
  letter-spacing: .04em;
  color: var(--signal);
}

.role__span {
  display: block;
  margin-top: 4px;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--dim);
}

.role__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1.24rem;
  letter-spacing: -.02em;
}

/* A white chip carries the mark, since these logos are drawn for light
   backgrounds. Anything without a supplied logo gets a monogram instead,
   so the row shape stays the same either way. */
.org {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  border-radius: 6px;
}

/* Small enough that the mark supports the company name instead of
   shouting over it. Wide lockups are capped by width, not height. */
.org--img {
  max-width: 84px;
  padding: 4px 6px;
  background: #fff;
}

.org--img img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.org--mono {
  width: 26px;
  background: var(--raise);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--muted);
}

.role__at { font-family: var(--body); font-weight: 400; color: var(--dim); }

.role__where {
  margin-top: 5px;
  font: 400 .64rem/1.6 var(--mono);
  color: var(--dim);
}

.role__points { margin-top: 15px; display: grid; gap: 8px; }

.role__points li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: .95rem;
}

.role__points li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 1px;
  background: var(--dim);
}

/* one company, three titles; the nesting is the promotion path */

.stints {
  position: relative;
  margin-top: 20px;
  padding-left: 24px;
}

.stints::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 26px;
  width: 1px;
  background: var(--line);
}

.stint { position: relative; padding: 11px 0; }

.stint::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--void);
  border: 1px solid var(--line);
}

.stint:first-child::before {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 10px rgba(139, 124, 255, .55);
}

.stint__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.015em;
}

.stint__kind {
  margin-left: 9px;
  font: 400 .58rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

.stint__what {
  margin-top: 8px;
  color: var(--muted);
  font-size: .93rem;
}

.stint__when {
  margin-top: 4px;
  font: 400 .64rem/1.6 var(--mono);
  color: var(--dim);
}

.stint .chips { margin-top: 11px; }

/* --------------------------- recognition --------------------------- */

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  column-gap: clamp(28px, 5vw, 64px);
}

.notes li {
  display: flex;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.notes__when {
  flex: 0 0 auto;
  width: 44px;
  font: 400 .62rem/1.7 var(--mono);
  color: var(--signal);
}

.notes__what { color: var(--muted); font-size: .93rem; }

.notes__what b {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.certs__label {
  margin: 34px 0 14px;
  font: 500 .6rem/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ------------------------------ contact ------------------------------ */

.contact { border-top: none; }

.contact__line {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.4vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -.025em;
  max-width: 20ch;
  text-wrap: balance;
  margin-bottom: clamp(30px, 5vw, 46px);
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--line-soft);
}

.links li { border-bottom: 1px solid var(--line-soft); }

.links a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 19px 34px 19px 4px;
  text-decoration: none;
  transition: padding-left .2s ease;
}
.links a:hover { padding-left: 12px; }

.links a::after {
  content: "↗";
  position: absolute;
  right: 12px;
  top: 19px;
  font: 400 .82rem/1 var(--mono);
  color: var(--signal);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .2s ease, transform .2s ease;
}

.links a:hover::after { opacity: 1; transform: none; }

.links__k {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 .6rem/1 var(--mono);
  letter-spacing: .04em;
  color: var(--text);
}

.links__k .ico {
  width: 15px;
  height: 15px;
  opacity: .92;
  transition: opacity .2s ease, transform .2s ease;
}

.links a:hover .links__k .ico { opacity: 1; transform: scale(1.08); }

.links__v {
  /* lines up under the label, clear of the mark */
  padding-left: 25px;
  font: 400 .64rem/1.4 var(--mono);
  color: var(--dim);
  overflow-wrap: anywhere;
  transition: color .18s ease;
}
.links a:hover .links__v { color: var(--signal); }

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 46px;
  font: 400 .6rem/1.6 var(--mono);
  color: var(--dim);
}

/* ============================== REVEAL ============================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================== RESPONSIVE ============================== */

@media (max-width: 860px) {
  .domain { grid-template-columns: 1fr; gap: 16px; }
  .role   { grid-template-columns: 1fr; gap: 10px; }
  .nav__links a:not([href="#contact"]) { display: none; }

  .nav__links a[href="#contact"] {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-bottom-color: var(--line);
    border-radius: 999px;
    color: var(--text);
  }
  .nav__links a[href="#contact"]:hover { border-color: var(--signal); }
}

@media (max-width: 720px) {
  .flow__track { flex-direction: column; align-items: stretch; }

  .flow__node { text-align: left; }

  .flow__wire { min-height: 52px; min-width: 0; }

  .flow__wire { justify-content: flex-start; }

  .flow__wire::after {
    left: 20px; right: auto; top: 0; bottom: 0;
    width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 5px, transparent 5px 10px);
  }

  .flow__label { transform: none; margin-left: 34px; }

  .flow__pulse { left: 20px; top: 0; margin: 0 0 0 -3.5px; }

  .flow.is-playing .flow__pulse--out  { animation-name: travelOutV; }
  .flow.is-playing .flow__pulse--back { animation-name: travelBackV; }

  .flow__foot { flex-wrap: wrap; gap: 12px; }

  .colophon { flex-direction: column; }
}

@keyframes travelOutV {
  0%   { top: 0;    opacity: 0; background: var(--signal); box-shadow: 0 0 12px rgba(139, 124, 255, .95); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; background: var(--signal); box-shadow: 0 0 12px rgba(139, 124, 255, .95); }
}

@keyframes travelBackV {
  0%   { top: 100%; opacity: 0; background: var(--seal); box-shadow: 0 0 12px rgba(255, 158, 100, .95); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 0;    opacity: 0; background: var(--seal); box-shadow: 0 0 12px rgba(255, 158, 100, .95); }
}

/* ============================== MOTION OFF ============================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }

  .hero__eyebrow, .hero__name, .hero__thesis,
  .hero__sub, .hero__actions, .portrait,
  .hero .flow { animation: none; opacity: 1; transform: none; }

  .flow__status { opacity: 1; color: var(--seal); }
  .flow__seal { background: var(--seal); box-shadow: 0 0 10px rgba(255, 158, 100, .8); }
  .flow__replay { display: none; }
}
