/* Lama Noueiry, one-page site
   Shape rule: interactive controls and chips are full pills; photo and panels use 24px.
   Motion rule: every hidden or pinned state lives under html.motion, which is set
   only when the visitor allows motion and script.js is running. Without it the page
   is a plain, fully visible document. */

:root {
  --bg: #FAF7F2;
  --ink: #1E1A26;
  --plum: #4B2A7B;
  --purple: #7A55B8;
  --lav: #EFE8F8;
  --muted: #5B5468;
  --white: #fff;
  --on-plum: #FAF7F2;
  --on-plum-2: #D8CAEE;
  --rule: rgb(30 26 38 / 0.14);
  --rule-on-plum: rgb(250 247 242 / 0.18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--purple) var(--bg);
}
html.lenis { scroll-behavior: auto; }
html.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p { margin: 0; text-wrap: pretty; }

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

a { color: inherit; }

::selection { background: var(--plum); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 var(--gutter);
}

/* padding-block (not the shorthand) so .wrap keeps its side gutter */
.section { padding-block: clamp(64px, 9vw, 128px); }

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Buttons ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--sm {
  min-height: 44px;
  padding: 8px 20px;
  font-size: 0.93rem;
}

.btn__arrow {
  flex: none;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
}
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }

.btn--ghost {
  background: transparent;
  border-color: var(--plum);
  color: var(--plum);
}
.btn--ghost:hover { background: var(--plum); color: var(--white); }

.btn--light {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--plum);
}
.btn--light:hover { background: var(--lav); border-color: var(--lav); }

.btn--outline {
  background: transparent;
  border-color: var(--bg);
  color: var(--bg);
}
.btn--outline:hover { background: var(--bg); color: var(--plum); }

/* ---------- Top bar ---------- */

.bar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  transition: transform 0.5s var(--ease-out), background-color 0.3s ease, box-shadow 0.3s ease;
}
.bar.is-solid {
  background: rgb(250 247 242 / 0.92);
  box-shadow: 0 1px 0 var(--rule);
}
.bar.is-hidden { transform: translateY(-105%); }

.bar__name {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.bar__name span {
  display: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}
@media (min-width: 560px) {
  .bar__name span { display: inline; }
}

/* ---------- Hero: the question ---------- */

.hero {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(104px, 16vh, 168px) 0 clamp(36px, 6vh, 64px);
  background: var(--lav);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(44px, 9vh, 104px);
  width: 100%;
}

.hero__q {
  max-width: 11.5em;
  font-size: clamp(2.6rem, 7.6vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__q em {
  font-style: italic;
  color: var(--plum);
}

/* The underline is a background so it follows the words across a line break. */
.mark {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 97% / 100% 0.04em;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.hero__a {
  width: 100%;
  max-width: 31rem;
}

/* The visitor's own calendar, as it probably looks today. */
.day {
  width: 100%;
  max-width: 25rem;
  padding: 14px 16px 16px;
  border-radius: 24px;
  background: var(--bg);
  box-shadow: 0 26px 48px -30px rgb(75 42 123 / 0.5);
}
.day__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 2px 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.day__head b {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
}
.day__list {
  display: grid;
  gap: 6px;
}
.ev {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr);
  gap: 10px;
}
.ev time {
  padding-top: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--muted);
}
.ev p {
  min-height: calc(var(--h, 1) * 34px);
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--lav);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: line-through transparent 1.5px;
  transition: opacity 0.3s ease, text-decoration-color 0.3s ease;
}
.ev--you p {
  min-height: 0;
  padding: 5px 12px;
  background: var(--plum);
  color: var(--white);
  font-size: 0.82rem;
}
/* Hovering a meeting that never needed them crosses it off. */
@media (hover: hover) {
  .ev:not(.ev--you):hover p {
    opacity: 0.55;
    text-decoration-color: var(--plum);
  }
}

@media (min-width: 900px) {
  .hero__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
    gap: clamp(32px, 5vw, 72px);
  }
}
@media (max-width: 899px) {
  .day { order: 2; }
}

.hero__answer {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--plum);
}

.hero__who {
  margin-top: 16px;
  font-size: 1.06rem;
  line-height: 1.55;
}

.hero .cta { margin-top: 28px; }

/* ---------- Marquees ---------- */

.marquee__set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.marquee--display {
  padding-block: clamp(22px, 3.2vw, 40px);
  border-bottom: 1px solid var(--rule);
}
.marquee--display .marquee__set {
  gap: 6px 0;
  padding-inline: var(--gutter);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.9rem, 5.4vw, 4.4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--plum);
}
.marquee--display li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.marquee--display li::after {
  content: "";
  flex: none;
  width: 0.2em;
  height: 0.2em;
  margin-inline: 0.5em;
  border-radius: 50%;
  background: var(--purple);
}

.tools { padding-block: 0 clamp(56px, 8vw, 104px); }
.marquee--chips .marquee__set {
  gap: 10px;
  padding-inline: var(--gutter);
}
.marquee--chips li {
  flex: none;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--lav);
  color: var(--plum);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

/* Moving version: script.js wraps the set in a track and clones it. */
.motion .marquee { overflow: hidden; }
.motion .marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.motion .marquee__set {
  flex: none;
  flex-wrap: nowrap;
  padding-inline: 0;
}
.motion .marquee--chips .marquee__set { padding-right: 10px; }

/* ---------- How: the week being put in order ---------- */

.how {
  background: var(--plum);
  color: var(--on-plum);
}
.how ::selection { background: var(--bg); color: var(--plum); }
.how :focus-visible { outline-color: var(--lav); }

.how__pin {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.how h2 { max-width: 12em; }

.steps {
  counter-reset: step;
  margin-top: clamp(24px, 4vh, 44px);
}

.step {
  position: relative;
  padding: 16px 0 16px 48px;
  border-top: 1px solid var(--rule-on-plum);
}
.step:last-child { border-bottom: 1px solid var(--rule-on-plum); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--on-plum-2);
}
.step h3 {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.65rem);
  font-weight: 350;
  line-height: 1.2;
}
.step p {
  max-width: 40ch;
  margin-top: 6px;
  color: var(--on-plum-2);
}

.week {
  position: relative;
  width: 100%;
  padding: clamp(12px, 1.8vw, 22px);
  border-radius: 24px;
  background: rgb(30 26 38 / 0.3);
}

.week__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto repeat(8, minmax(0, 1fr));
  gap: 4px;
  aspect-ratio: 5 / 4;
}

.week__day {
  grid-row: 1;
  grid-column: calc(var(--d) + 1);
  padding: 0 2px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-plum-2);
}

.b {
  grid-column: calc(var(--d) + 1);
  grid-row: calc(var(--s) + 2) / span var(--l);
  min-width: 0;
  min-height: 0;
  padding: 6px 8px;
  border-radius: 8px;
  overflow: hidden;
  font-size: clamp(0.62rem, 0.3rem + 0.6vw, 0.78rem);
  font-weight: 500;
  line-height: 1.2;
  background: rgb(250 247 242 / 0.13);
  color: rgb(250 247 242 / 0.85);
  transition: background-color 0.6s ease, color 0.6s ease, outline-color 0.6s ease,
    opacity 0.6s ease, transform 0.9s var(--ease-out);
}
.b span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Step 2 onward: the work only the executive can do is picked out. */
.how:not([data-step="1"]) .b--you {
  background: var(--bg);
  color: var(--plum);
  font-weight: 600;
}

/* Step 3: everything that never needed them is flagged. */
.b--ops { outline: 1.5px dashed transparent; outline-offset: -1.5px; }
.how[data-step="3"] .b--ops {
  background: transparent;
  outline-color: rgb(239 232 248 / 0.8);
  color: var(--lav);
}

/* Step 4 onward: flagged blocks leave for the tray (--tx/--ty set in script.js). */
.how[data-step="4"] .b--ops,
.how[data-step="5"] .b--ops {
  opacity: 0;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.2);
  transition-delay: calc(var(--n) * 28ms);
}

/* Step 5: the space they leave is open time. */
.b--free {
  background: rgb(239 232 248 / 0.07);
  outline: 1.5px dashed rgb(239 232 248 / 0.45);
  outline-offset: -1.5px;
  color: var(--on-plum-2);
  opacity: 0;
  transform: scale(0.92);
}
.how[data-step="5"] .b--free {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s + var(--n) * 40ms);
}

.week__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.week__captions {
  display: grid;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.02rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.25;
}
.week__captions p {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}
.how[data-step="1"] .week__captions p:nth-child(1),
.how[data-step="2"] .week__captions p:nth-child(2),
.how[data-step="3"] .week__captions p:nth-child(3),
.how[data-step="4"] .week__captions p:nth-child(4),
.how[data-step="5"] .week__captions p:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.week__tray {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 14px;
  border: 1px solid rgb(239 232 248 / 0.45);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.4;
  transition: opacity 0.5s ease, border-color 0.5s ease;
}
.week__tray b {
  min-width: 2.1em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--plum);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.how[data-step="4"] .week__tray,
.how[data-step="5"] .week__tray {
  opacity: 1;
  border-color: var(--lav);
}

.week__note {
  position: absolute;
  right: 6px;
  bottom: calc(100% + 8px);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--on-plum-2);
}

.how__progress { display: none; }

@media (max-width: 899px) {
  /* Phone order: heading, the week, then the steps. */
  .how__copy { display: contents; }
  .how h2 { order: 1; }
  .week { order: 2; margin-top: 12px; }
  .steps { order: 3; margin-top: 0; }
  .week__grid { aspect-ratio: 5 / 3.5; gap: 3px; }
  .b { padding: 0; border-radius: 5px; }
  .b span { display: none; }
}

@media (min-width: 900px) {
  .how__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

/* Pinned mode: the section holds still while scroll steps the week forward.
   .is-pinned is added by script.js once it has measured that the pin fits. */
.motion .how.is-pinned { height: 520vh; }
.motion .how.is-pinned .how__pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-block: 84px 36px;
  overflow: hidden;
}
.motion .how.is-pinned .how__grid { width: 100%; }
.motion .how.is-pinned .how__progress {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--rule-on-plum);
}
.motion .how.is-pinned .how__progress i {
  display: block;
  height: 100%;
  background: var(--lav);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.motion .how.is-pinned .step {
  opacity: 0.45;
  transition: opacity 0.5s ease;
}
.motion .how.is-pinned .step.is-active { opacity: 1; }

@media (min-width: 900px) {
  .motion .how.is-pinned .week {
    justify-self: end;
    max-width: calc((100vh - 250px) * 1.25);
  }
  .motion .how.is-pinned .step p {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.7s var(--ease-out), margin-top 0.7s var(--ease-out), opacity 0.4s ease;
  }
  .motion .how.is-pinned .step.is-active p {
    max-height: 7em;
    margin-top: 6px;
    opacity: 1;
  }
}

@media (max-width: 899px) {
  .motion .how.is-pinned .how__grid { gap: 18px; }
  .motion .how.is-pinned h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  /* One step at a time, cross-fading in place. */
  .motion .how.is-pinned .steps { display: grid; }
  .motion .how.is-pinned .step {
    grid-area: 1 / 1;
    padding-block: 4px 0;
    border: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
  }
  .motion .how.is-pinned .step::before { top: 10px; }
  .motion .how.is-pinned .step.is-active {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Proof strip ---------- */

.proof { padding-top: clamp(56px, 8vw, 104px); }

.proof__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Rules are drawn elements so they can be ruled in on scroll. */
.proof__list::before,
.proof__list::after,
.industries::before,
.industries::after,
.roles li::before,
.roles li:last-child::after,
.traits > div::before,
.traits > div:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
  pointer-events: none;
}
.proof__list::before,
.industries::before,
.roles li::before,
.traits > div::before { top: 0; }
.proof__list::after,
.industries::after,
.roles li:last-child::after,
.traits > div:last-child::after { bottom: 0; }

.proof__list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
}
.proof__list li:first-child { padding-left: 0; }
.proof__list li + li { border-left: 1px solid var(--rule); }

.proof__list strong {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  font-weight: 300;
  font-variation-settings: "SOFT" 100;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--plum);
}

.proof__list li > span {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 20ch;
}

@media (max-width: 699px) {
  .proof__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__list li { padding: 22px 14px; }
  .proof__list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .proof__list li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

/* ---------- Where I've done it ---------- */

.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 48px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.head__note {
  max-width: 42ch;
  color: var(--muted);
}
.head__note span { display: block; }

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

.industries {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.industry { padding: 32px 24px 34px; }
.industry:first-child { padding-left: 0; }
.industry + .industry { border-left: 1px solid var(--rule); }
.industry h3 {
  margin-top: 22px;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.55rem);
  font-weight: 350;
}
.industry p {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 24ch;
}

@media (max-width: 799px) {
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry { padding: 24px 14px 26px; }
  .industry:nth-child(odd) { padding-left: 0; border-left: 0; }
  .industry:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

/* Drawn icons: one stroke weight, plum structure, purple for the part that moves. */
.ico {
  display: block;
  width: clamp(80px, 9vw, 108px);
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
  fill: none;
  stroke: var(--plum);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico__bar {
  stroke: none;
  fill: var(--purple);
  opacity: 0.3;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.ico__line,
.ico__tip {
  stroke: var(--purple);
  stroke-width: 2.6;
}
.ico__line { stroke-dasharray: 1; }
.ico__horn {
  transform-box: fill-box;
  transform-origin: 20% 60%;
}
.ico__wave {
  stroke: var(--purple);
  stroke-width: 2.2;
}
.ico__win {
  stroke: none;
  fill: var(--purple);
  opacity: 0.3;
}
.ico__route {
  stroke: var(--purple);
  stroke-width: 2;
  stroke-dasharray: 3 5;
}
.ico__pin {
  fill: var(--bg);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.ico__car {
  offset-path: path("M10 50C10 30 30 42 32 28S54 26 52 16");
  offset-distance: 50%;
  offset-rotate: auto;
}
.ico__car rect {
  stroke: none;
  fill: var(--plum);
}

@keyframes ico-draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  45%, 86% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes ico-tip {
  0%, 36% { opacity: 0; transform: translate(-4px, 4px); }
  50%, 86% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes ico-bar {
  0%, 100% { transform: scaleY(0.12); }
  32%, 86% { transform: scaleY(1); }
}
@keyframes ico-shout {
  0%, 46%, 100% { transform: none; }
  16% { transform: rotate(-10deg) scale(1.05); }
  30% { transform: rotate(2deg); }
}
@keyframes ico-emit {
  0% { opacity: 0; transform: translateX(-6px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(6px); }
}
@keyframes ico-lit {
  0%, 100% { opacity: 0.14; }
  18%, 52% { opacity: 1; }
}
@keyframes ico-drive {
  0% { offset-distance: 0%; opacity: 0; }
  8%, 86% { opacity: 1; }
  92%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes ico-pin {
  0%, 80%, 100% { transform: none; }
  88% { transform: translateY(-6px) scale(1.08); }
}
@keyframes ico-flow { to { stroke-dashoffset: -16; } }

/* Loops run only while the tile is on screen (.is-live, toggled in script.js). */
.motion .is-live .ico__bar { animation: ico-bar 3.2s var(--ease-out) infinite; }
.motion .is-live .ico__bar:nth-of-type(2) { animation-delay: 0.14s; }
.motion .is-live .ico__bar:nth-of-type(3) { animation-delay: 0.28s; }
.motion .is-live .ico__line { animation: ico-draw 3.2s var(--ease-out) infinite; }
.motion .is-live .ico__tip { animation: ico-tip 3.2s var(--ease-out) infinite; }
.motion .is-live .ico__horn { animation: ico-shout 1.7s ease-in-out infinite; }
.motion .is-live .ico__wave { animation: ico-emit 1.7s ease-out infinite backwards; }
.motion .is-live .ico__wave:nth-of-type(1) { animation-delay: 0.12s; }
.motion .is-live .ico__wave:nth-of-type(2) { animation-delay: 0.3s; }
.motion .is-live .ico__wave:nth-of-type(3) { animation-delay: 0.48s; }
.motion .is-live .ico__win { animation: ico-lit 2.8s ease-in-out infinite; }
.motion .is-live .ico__win:nth-of-type(2) { animation-delay: 0.6s; }
.motion .is-live .ico__win:nth-of-type(3) { animation-delay: 1.2s; }
.motion .is-live .ico__win:nth-of-type(4) { animation-delay: 0.3s; }
.motion .is-live .ico__win:nth-of-type(5) { animation-delay: 1.7s; }
.motion .is-live .ico__win:nth-of-type(6) { animation-delay: 0.9s; }
.motion .is-live .ico__car { animation: ico-drive 3.6s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.motion .is-live .ico__pin { animation: ico-pin 3.6s var(--ease-out) infinite; }
.motion .is-live .ico__route { animation: ico-flow 1.6s linear infinite; }

/* Entrance: the structure of each icon draws itself, then the moving parts join. */
.motion .industries .ico__base {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.motion .industries .ico > :not(.ico__base):not(.ico__horn) {
  opacity: 0;
}
.motion .industries.in .ico__base {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 130ms + 0.25s);
}
.motion .industries.in .ico > :not(.ico__base):not(.ico__horn) {
  opacity: 1;
  transition: opacity 0.6s ease;
  transition-delay: calc(var(--i, 0) * 130ms + 1s);
}
.motion .industries.in .ico > .ico__bar,
.motion .industries.in .ico > .ico__win { opacity: 0.3; }

/* Roles on the left, the CV on a ruled rail to the right. */
.exp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 clamp(32px, 5vw, 72px);
  margin-top: clamp(48px, 7vw, 88px);
}

.cv {
  position: relative;
  padding-top: 32px;
}
.cv__lead {
  max-width: 16em;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.3rem;
  font-weight: 350;
  line-height: 1.3;
}
.cv .btn { margin-top: 20px; }
.cv__meta {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.btn__dl {
  flex: none;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .btn__dl,
.btn:focus-visible .btn__dl { transform: translateY(2px); }

@media (min-width: 900px) {
  .exp { grid-template-columns: minmax(0, 1fr) 16.5rem; }
  .cv { padding: 0 0 0 clamp(24px, 3vw, 40px); }
  .cv::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--rule);
    transform-origin: top;
  }
  .cv__in {
    position: sticky;
    top: 120px;
    padding-block: 26px;
  }
}

.roles li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  padding: 26px 0;
}

.roles h3 {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.45rem);
  line-height: 1.3;
}

.roles h3 span {
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  margin-left: 0.2em;
}

.roles p {
  margin-top: 6px;
  color: var(--muted);
  max-width: 60ch;
}

@media (max-width: 699px) {
  .roles li { padding: 22px 0; }
}

/* ---------- About ---------- */

.about {
  padding-block: clamp(72px, 10vw, 136px);
  background: var(--lav);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.about__photo {
  display: block;
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--plum);
}
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .about__photo {
    position: sticky;
    top: 104px;
  }
}

.about h2 { max-width: 12em; }

.traits { margin-top: clamp(28px, 4vw, 48px); }
.traits > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 32px;
  padding: 22px 0;
}
.traits dt {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 350;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--plum);
  overflow-wrap: normal;
}
.traits dd {
  max-width: 40ch;
  font-size: 1.08rem;
}

/* Side by side only where the longest trait ("Overcommunicator") fits on one line. */
@media (min-width: 1160px) {
  .traits > div {
    grid-template-columns: 17rem minmax(0, 1fr);
    align-items: baseline;
  }
}

.about__off {
  max-width: 30em;
  margin-top: clamp(32px, 4vw, 48px);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.4;
}
.about__off span { display: block; }

.facts { margin-top: clamp(32px, 4vw, 48px); }

.facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.97rem;
}

.facts dt {
  font-weight: 600;
  color: var(--plum);
}

@media (min-width: 640px) {
  .facts div {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 32px;
  }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--plum);
  color: var(--bg);
  text-align: center;
  padding: clamp(88px, 13vw, 176px) 0 clamp(36px, 5vw, 56px);
}
.contact ::selection { background: var(--bg); color: var(--plum); }

.contact h2 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.contact p {
  font-size: 1.15rem;
  color: var(--on-plum-2);
  max-width: 40ch;
  margin: 0 auto;
}

.contact .cta {
  justify-content: center;
  margin-top: 36px;
}

.contact .btn { max-width: 100%; }

.contact :focus-visible { outline-color: var(--lav); }

.contact .contact__meta {
  margin-top: clamp(72px, 10vw, 128px);
  font-size: 0.9rem;
}

/* ---------- Motion ----------
   Grammar: a week being put in order. Words set into place, rules draw, lists
   arrive in sequence, and the pinned week is the one authored set piece. */

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-12px); } }

/* Split headlines: script.js wraps each word; --l is its line, --k its index. */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.1em 0.08em 0.24em;
  margin: -0.1em -0.08em -0.24em;
}
.w__i { display: inline-block; }

.motion [data-split] { visibility: hidden; }
.motion [data-split].is-split { visibility: visible; }
.motion .is-split .w__i { transform: translateY(118%); }
.motion .is-split.in .w__i {
  transform: none;
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(var(--l, 0) * 110ms + var(--k, 0) * 16ms);
}
.motion .mark { background-size: 0% 0.04em; }
.motion .in .mark {
  background-size: 100% 0.04em;
  transition: background-size 1.1s var(--ease-out) 0.75s;
}

/* backwards, not both: a held end state would override .is-hidden's transform */
.motion .bar { animation: drop-in 0.8s var(--ease-out) 0.2s backwards; }
.motion .hero__answer { animation: rise-in 0.9s var(--ease-out) 0.8s both; }
.motion .hero__who { animation: rise-in 0.9s var(--ease-out) 0.92s both; }
.motion .hero .cta { animation: rise-in 0.9s var(--ease-out) 1.04s both; }

/* The hero calendar fills up: three meetings land, then the real work is squeezed in.
   --hy is a small scroll drift set in script.js. */
@keyframes ev-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes ev-squeeze { from { opacity: 0; transform: scaleY(0.2); } }
.motion .day {
  transform: translate3d(0, var(--hy, 0px), 0);
  animation: rise-in 0.9s var(--ease-out) 0.7s backwards;
}
.motion .ev {
  animation: ev-in 0.7s var(--ease-out) backwards;
  animation-delay: calc(1s + var(--n) * 0.16s);
}
.motion .ev--you { animation-name: ev-squeeze; }

.motion .cv::before { transform: scaleY(0); }
.motion .cv.in::before {
  transform: none;
  transition: transform 1.5s var(--ease-out);
}

/* Scroll reveals. Children take their turn through --i (set in script.js).
   The wipe lives on an inner span: clipping the observed element to nothing
   would hide it from the IntersectionObserver that triggers it. */
.reveal--title > span { display: block; }
.motion .reveal--title > span {
  transform: translateY(100%);
  clip-path: inset(0 0 100% 0);
}
.motion .reveal--title.in > span {
  transform: none;
  clip-path: inset(-0.1em -0.1em -0.3em -0.1em);
  transition: transform 1s var(--ease-out), clip-path 1s var(--ease-out);
}

.motion .reveal--list > *,
.motion .reveal--rows > * > * {
  opacity: 0;
  transform: translateY(18px);
}
.motion .reveal--list.in > *,
.motion .reveal--rows.in > * > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.motion .proof__list::before,
.motion .proof__list::after,
.motion .industries::before,
.motion .industries::after,
.motion .reveal--rows > *::before,
.motion .reveal--rows > *::after { transform: scaleX(0); }
.motion .proof__list.in::before,
.motion .proof__list.in::after,
.motion .industries.in::before,
.motion .industries.in::after,
.motion .reveal--rows.in > *::before,
.motion .reveal--rows.in > *::after {
  transform: none;
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.motion .proof__list.in::after,
.motion .industries.in::after { transition-delay: 0.2s; }

/* Portrait: the image wipes up inside its frame (the frame keeps its size). */
.motion .about__photo img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.08);
}
.motion .about__photo.in img {
  clip-path: inset(0 0 0 0);
  transform: none;
  transition: clip-path 1.2s var(--ease-out), transform 1.9s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn__arrow, .bar { transition: none; }
  .btn:active,
  .btn:hover .btn__arrow,
  .btn:focus-visible .btn__arrow { transform: none; }
  .b, .week__captions p, .week__tray { transition: none; }
}

@media print {
  .bar, .skip, .how__progress { display: none; }
  .hero { min-height: 0; }
}
