/* ============================================================
   lucassocci.com · COMPONENTS
   Vanilla CSS, no framework, no build step. The Ativa Eventos
   landing page runs on the Tailwind CDN; that script alone is
   larger than this site's entire JS budget, so the same utilities
   are expressed here as named components against tokens.css.
   The visual grammar is identical.
   ============================================================ */

/* ------------------------------------------------------------
   1. BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ink-900);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 0; height: 0; }
:where(html) { scrollbar-width: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--s-1);
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: var(--s-4); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   2. LAYOUT SHELL AND SECTION GRAMMAR
   ------------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 62rem; }

.section { padding-block: var(--section-y); }
.section--band     { background: var(--ink-850); }
.section--deep     { background: var(--ink-1000); }
.section--raised   { background: var(--ink-800); }
.section--hairline { border-top: 1px solid var(--line-soft); }

/* Eyebrow + display headline + supporting copy: Ativa's section grammar */
.eyebrow {
  display: block;
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head--center {
  align-items: center;
  text-align: center;
}
.section-head p {
  color: var(--ink-400);
  font-size: var(--t-lede);
  font-weight: 300;
  line-height: 1.55;
  max-width: 46rem;
}

.display {
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--cream);
}
.display strong,
.display em {
  font-style: normal;
  font-weight: 300;
  color: var(--accent);
}

.title-3 {
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.prose {
  color: var(--ink-400);
  font-size: var(--t-body);
  line-height: 1.7;
  max-width: var(--measure);
}
.prose--lg {
  font-size: var(--t-lede);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-300);
}
.prose + .prose { margin-top: var(--s-4); }

.meta {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ------------------------------------------------------------
   3. BUTTONS AND LINKS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-8);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-size: var(--t-xs);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease);
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.96); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-deep); }

.btn--ghost { border-color: var(--line-strong); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(255, 255, 255, 0.08); }

.btn--sm { padding: var(--s-3) var(--s-6); font-size: var(--t-util); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}

/* Inline arrow link, used for live URLs */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--cream);
  border-bottom: 1px solid var(--accent-35);
  padding-bottom: 2px;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.arrow-link svg {
  width: 14px; height: 14px;
  color: var(--accent);
  transition: transform var(--dur-2) var(--ease);
}
.arrow-link:hover { color: var(--accent); border-color: var(--accent); }
.arrow-link:hover svg { transform: translate(2px, -2px); }

/* ------------------------------------------------------------
   4. HEADER
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  background: rgba(5, 5, 6, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.wordmark {
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: none;
}
.wordmark span {
  display: none;
  margin-left: var(--s-2);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--t-util);
  color: var(--ink-400);
}

/* Right-hand cluster: language, email, and the mobile toggle, read as one
   group so the switcher sits against the call to action. */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
}
.header-email { white-space: nowrap; }

.site-nav {
  display: none;
  gap: var(--s-8);
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.7);
}
.site-nav a {
  padding: var(--s-2) 0;
  white-space: nowrap;
  transition: color var(--dur-2) var(--ease);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* Language switcher: three links, the current one inert. No disclosure, so
   the active language is always legible and switching costs one click. Sized
   to the email button beside it rather than to its own two characters. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(250, 249, 246, 0.05);
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.08em;
  flex: none;
}
.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.125rem;
  padding: 0 var(--s-2);
  border-radius: var(--r-full);
  color: rgba(250, 249, 246, 0.6);
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
a.lang-switch__item:hover { color: var(--cream); background: rgba(250, 249, 246, 0.1); }
a.lang-switch__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-switch__item.is-current {
  color: var(--accent-ink);
  background: var(--accent);
  cursor: default;
}

/* Mobile menu toggle. Hidden once the nav fits in the bar. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(250, 249, 246, 0.05);
  color: var(--cream);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-2) var(--ease);
}
.nav-toggle:hover { background: rgba(250, 249, 246, 0.12); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bars span { transition: none; }
}

/* Four bands, because centring is not free: a 1fr auto 1fr grid reserves
   twice the wider side, so whichever side cluster is wider sets the width the
   whole header needs. Widest nav is Portuguese, which is what every threshold
   here is measured against.

   The Design Systems item took that nav from 567px to 713px. Measured, not
   derived: the bar needs 1024px before the switcher is clipped, and it needs
   1324px to also carry the tagline and the header email at the same time.

   under 1040     toggle, no nav bar
   1040 to 1179   nav bar, but the side columns carry only the wordmark and
                  the switcher; the email lives in the floating button
   1180 to 1339   the header email as well, wordmark still without its tagline
   1340 and up    everything, tagline included */
@media (min-width: 1040px) {
  .site-header {
    padding-inline: var(--s-12);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .site-nav { display: flex; justify-self: center; }
  .header-actions { justify-self: end; }
  .nav-toggle { display: none; }
  .wordmark { font-size: var(--t-body); }
}

/* The side columns are equal, so whichever side is wider sets both. The
   tagline makes the wordmark side wide and the email makes the actions side
   wide, and with six nav items Portuguese only has room for one of them
   below 1340. The email is a call to action and the tagline is not, so the
   tagline is the one that waits. */
@media (min-width: 1340px) {
  .wordmark span { display: inline; }
}

/* The header email appears only once the header can hold it on one line. */
.header-email { display: none; }
@media (min-width: 1180px) {
  .header-email { display: inline-flex; }
}

/* Panel the nav collapses into below 1040px. */
@media (max-width: 1039px) {
  .site-nav {
    position: fixed;
    top: var(--header-h, 4.6875rem);
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-6);
    padding-bottom: max(var(--s-6), env(safe-area-inset-bottom));
    /* Solid, not translucent: at 0.96 the hero bled through and made the
       menu look muddy over the video. */
    background: var(--ink-1000);
    border-bottom: 1px solid var(--line-soft);
    overscroll-behavior: contain;
    max-height: calc(100dvh - var(--header-h, 4.6875rem));
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--cream);
  }
  .site-nav a:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 0 5rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media .ph {
  height: 100%; width: 100%;
  border-radius: 0;
  aspect-ratio: auto;
  align-items: flex-end;
  justify-content: flex-start;
}
/* In the hero the placeholder label sits in a corner chip so it never
   competes with the headline, and stays readable under the scrim. */
.hero__media .ph__body {
  align-items: flex-start;
  text-align: left;
  margin: var(--gutter);
  padding: var(--s-4);
  max-width: 26rem;
  z-index: 3; /* above .hero__scrim, which is a sibling of the figure */
  border: 1px solid var(--accent-35);
  border-radius: var(--r-md);
  background: rgba(5, 5, 6, 0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  gap: var(--s-2);
}
.hero__media .ph__play { width: 2rem; height: 2rem; }
.hero__media .ph__play svg { width: 12px; height: 12px; }
@media (max-width: 700px) {
  .hero__media .ph__body { display: none; }
  .hero__media .ph::after {
    content: "[ASSET-01] hero reel · 16:9 MP4";
    position: absolute;
    left: 50%; top: 4.5rem; /* clear of the header, the cue and the float CTA */
    transform: translateX(-50%);
    font-size: var(--t-util);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(5, 5, 6, 0.86);
    border: 1px solid var(--accent-35);
    border-radius: var(--r-full);
    padding: 0.35rem var(--s-3);
    white-space: nowrap;
  }
  .hero__media .ph.is-loaded::after { content: none; }
}
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(205, 255, 87, 0.14), transparent 55%),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.82), rgba(5, 5, 6, 0.6) 45%, rgba(5, 5, 6, 0.9));
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-6);
}

.hero__title {
  font-size: var(--t-hero);
  font-weight: 900;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--cream);
  max-width: 18ch;
}
/* Each sentence gets its own line: the claim, then the proof of it. */
.hero__title .accent { color: var(--accent); display: block; }

.hero__subline {
  max-width: 52rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.375rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-300);
  text-wrap: balance;
}

.proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(5, 5, 6, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.proof__label {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.proof__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-3) var(--s-4);
}
.proof__row .sep { color: var(--ink-500); }

@media (max-width: 700px) {
  .hero { padding: 6rem 0 6rem; }
  .hero__inner { gap: var(--s-4); }
  .proof { padding: var(--s-3) var(--s-4); width: 100%; }
  .proof__row { flex-direction: column; gap: var(--s-2); }
  .proof__row .sep { display: none; }
  .proof__row .arrow-link { font-size: var(--t-xs); }
}

.scroll-cue {
  position: absolute;
  bottom: var(--s-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  pointer-events: none;
}
.scroll-cue span {
  font-size: var(--t-util);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.4);
}
.scroll-cue i {
  display: block;
  width: 1px; height: 2rem;
  background: var(--line-strong);
}

/* ------------------------------------------------------------
   6. MARQUEE / TRUST BAR
   ------------------------------------------------------------ */
.trust {
  padding-block: var(--s-8);
  border-block: 1px solid var(--line);
  background: var(--ink-1000);
  overflow: hidden;
}
.trust__label {
  display: block;
  text-align: center;
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--s-6);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  padding-right: var(--s-8);
  white-space: nowrap;
}
.marquee__group span {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  color: rgba(250, 249, 246, 0.32);
}
.marquee__group i {
  display: block;
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--accent-35);
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   7. WORK CARDS
   ------------------------------------------------------------ */
.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
}

.case-card {
  display: block;
  border-radius: var(--r-lg);
}
.case-card__media { margin-bottom: var(--s-8); }
.case-card__index {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
  display: block;
}
.case-card__title {
  font-size: var(--t-section);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 26ch;
}
.case-card__proof {
  margin-top: var(--s-4);
  color: var(--ink-400);
  font-size: var(--t-body);
  line-height: 1.65;
  max-width: 46rem;
}
.case-card__foot {
  margin-top: var(--s-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-6);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
}
.tag {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 0.4rem var(--s-3);
}

/* Quieter "more work" row */
.more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-top: clamp(4rem, 7vw, 6rem);
}
@media (min-width: 780px) {
  .more-grid { grid-template-columns: 1fr 1fr; }
}
.more-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: rgba(24, 24, 27, 0.5);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.more-card:hover {
  border-color: var(--accent-35);
  transform: translateY(-3px);
}
.more-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.more-card p { color: var(--ink-400); font-size: var(--t-sm); line-height: 1.6; }
.more-card .arrow-link { margin-top: var(--s-2); align-self: flex-start; }

/* ------------------------------------------------------------
   8. PROCESS (numbered 01 / 02 / 03)
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: rgba(24, 24, 27, 0.5);
  min-height: 18rem;
  transition: border-color var(--dur-2) var(--ease);
}
.step:hover { border-color: var(--accent-35); }
.step__num {
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.step p { color: var(--ink-400); font-size: var(--t-sm); line-height: 1.65; }

.closing-line {
  margin-top: clamp(3rem, 5vw, 4rem);
  font-size: var(--t-lede);
  font-weight: 300;
  color: var(--ink-300);
  text-wrap: balance;
}
.closing-line em { font-style: normal; color: var(--accent); }

/* ------------------------------------------------------------
   9. STATS
   ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.stat__value {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--cream);
  white-space: nowrap;
}
.stat__label {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: 22ch;
  line-height: 1.8;
}
.stat__note {
  font-size: var(--t-xs);
  color: var(--ink-500);
  line-height: 1.5;
  max-width: 24ch;
  margin-top: calc(var(--s-1) * -1);
}

/* ------------------------------------------------------------
   10. ABOUT
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
}

/* ------------------------------------------------------------
   11. EXPERIENCE TIMELINE
   ------------------------------------------------------------ */
.timeline { border-top: 1px solid var(--line-soft); }
.timeline li {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-1) var(--s-6);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color var(--dur-2) var(--ease);
}
.timeline li:hover { background: rgba(255, 255, 255, 0.02); }
@media (min-width: 780px) {
  .timeline li {
    grid-template-columns: 10rem minmax(0, 1fr) auto;
    align-items: baseline;
  }
}
.timeline__years {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline__org {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.timeline__role { color: var(--ink-400); font-size: var(--t-sm); }

/* ------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background: var(--ink-1000);
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  justify-content: space-between;
}
@media (min-width: 900px) {
  .footer-top { flex-direction: row; align-items: flex-end; }
}
.footer-cta { display: flex; flex-direction: column; gap: var(--s-6); max-width: 34rem; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8) var(--s-12);
  color: var(--ink-500);
}
.footer-links h5 {
  color: var(--cream);
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer-links a,
.footer-links span { display: block; font-size: var(--t-sm); margin-bottom: var(--s-3); }
.footer-links a { transition: color var(--dur-2) var(--ease); }
.footer-links a:hover { color: var(--accent); }

.footer-base {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: var(--s-8);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  justify-content: space-between;
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #52525B;
}
@media (min-width: 780px) { .footer-base { flex-direction: row; align-items: center; } }
.footer-base .live-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.footer-base .live-dot i {
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Persistent email CTA, mirrors Ativa's floating WhatsApp button */
.float-cta {
  position: fixed;
  right: var(--s-6);
  bottom: var(--s-6);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--t-util);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-lg);
  transition: background-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.float-cta:hover { background: var(--accent-deep); transform: scale(1.06); }
.float-cta:active { transform: scale(0.95); }
.float-cta svg { width: 16px; height: 16px; }
/* Paired with .header-email, which hides below 1180px: exactly one Email me is
   reachable at any width, the floating one only while the header cannot hold
   it. Same breakpoint on both so neither doubles up nor leaves a gap. */
@media (min-width: 1180px) {
  .float-cta { display: none; }
}

/* ------------------------------------------------------------
   13. MEDIA PLACEHOLDER (Section 8 protocol)
   Occupies the exact space the final asset will occupy.
   Swaps itself out automatically once the real file lands in
   /assets, see assets/js/main.js.
   ------------------------------------------------------------ */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--ar, 16 / 9);
  width: 100%;
  border: 2px dashed var(--accent-55);
  border-radius: var(--r-lg);
  background-color: rgba(205, 255, 87, 0.035);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 11px,
    rgba(205, 255, 87, 0.07) 11px 12px
  );
  overflow: hidden;
}
.ph__real {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.ph.is-loaded {
  /* border-width, not border-color: a transparent border still paints the
     background through it (background-clip is border-box), which drew a 2px
     ink-800 ring around every loaded image. */
  border-width: 0;
  background-image: none;
  background-color: var(--ink-800);
}
.ph.is-loaded .ph__real { opacity: 1; }
.ph.is-loaded .ph__body { display: none; }

.ph__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  text-align: center;
  padding: var(--s-6);
  max-width: 40rem;
}
.ph__id {
  font-size: var(--t-util);
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.ph__desc {
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--ink-300);
  text-wrap: balance;
}
.ph__spec {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.ph__play {
  width: 3rem; height: 3rem;
  border-radius: var(--r-full);
  border: 1px solid var(--accent-35);
  background: rgba(205, 255, 87, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ph__play svg { width: 18px; height: 18px; margin-left: 3px; color: var(--accent); }

@media (max-width: 480px) {
  .ph__desc { font-size: 0.6875rem; }
  .ph__play { width: 2.25rem; height: 2.25rem; }
  .ph__play svg { width: 14px; height: 14px; }
}

/* A source shot vertically gets a reel-shaped slot, centred and narrow,
   rather than being cropped into a landscape one. */
.figure--reel { align-items: center; }
.figure--reel .ph { max-width: 23rem; margin-inline: auto; }
.figure--reel .copy-ph { max-width: 34rem; margin-inline: auto; width: 100%; }

/* Caption under any figure */
.figure { display: flex; flex-direction: column; gap: var(--s-3); }
.caption {
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 52rem;
}
.caption b { color: var(--ink-300); font-weight: 500; }

/* ------------------------------------------------------------
   14. COPY PLACEHOLDER (Section 8 protocol, Phase 1 only)
   Real typographic sizing so the measure and rhythm are true.
   ------------------------------------------------------------ */
.copy-ph {
  border: 1px dashed rgba(205, 255, 87, 0.4);
  border-radius: var(--r-md);
  background: rgba(205, 255, 87, 0.035);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.copy-ph__label {
  font-size: var(--t-util);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.7;
}
.copy-ph__filler {
  opacity: 0.32;
  font-style: italic;
}
.copy-ph--lg .copy-ph__filler {
  font-size: var(--t-lede);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-300);
  max-width: var(--measure);
}
.copy-ph--body .copy-ph__filler {
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--ink-400);
  max-width: var(--measure);
}
.copy-ph--caption .copy-ph__filler {
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 52rem;
}
.copy-ph--quote .copy-ph__filler {
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 22ch;
}

/* ------------------------------------------------------------
   15. CASE PAGE
   ------------------------------------------------------------ */
.case-hero {
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: var(--section-y);
  border-bottom: 1px solid var(--line-soft);
}
.case-hero__title {
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 24ch;
  margin-top: var(--s-4);
}
.case-hero__outcome {
  margin-top: var(--s-6);
  font-size: var(--t-lede);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-300);
  max-width: 48rem;
}
.case-hero__foot {
  margin-top: var(--s-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  align-items: center;
}

.case-block { padding-block: var(--section-y); }
.case-block + .case-block { border-top: 1px solid var(--line-soft); }
.case-block__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
}
.case-block__num {
  font-size: var(--t-util);
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.case-block__title {
  font-size: var(--t-section);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Full-bleed media inside a case page.
   Margin-based rather than transform-based on purpose: .bleed is often
   also a .reveal, and .reveal.is-visible sets transform:none, which
   would cancel a translate here. */
.bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: 0;
}
.bleed .ph { border-radius: 0; border-left: 0; border-right: 0; }

/* My role block: the first thing hiring managers scan for */
.role-card {
  border: 1px solid var(--accent-35);
  border-radius: var(--r-lg);
  background: rgba(205, 255, 87, 0.05);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 780px) {
  .role-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.role-card dt {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.role-card dd { margin: 0; color: var(--ink-300); font-size: var(--t-sm); line-height: 1.65; }

/* Decision callouts: highest-signal content on the page */
.decisions { display: flex; flex-direction: column; gap: var(--s-6); }
.decision {
  position: relative;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: rgba(24, 24, 27, 0.6);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.decision__tag {
  font-size: var(--t-util);
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s-4);
}

/* Type-only moment */
.pullquote {
  padding-block: clamp(3rem, 7vw, 5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
}
.pullquote .serif-mark {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.25;
}

/* Insight table, subheads and the sources list: only used by the phew case
   so far, built from existing tokens so the case inherits the system rather
   than introducing a second one. */
.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(24, 24, 27, 0.6);
}
.insight-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  font-size: var(--t-sm);
  line-height: 1.6;
  text-align: left;
}
.insight-table th,
.insight-table td {
  padding: var(--s-4);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.insight-table tr:last-child th,
.insight-table tr:last-child td { border-bottom: 0; }
.insight-table thead th {
  font-size: var(--t-util);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom-color: var(--line);
}
/* Row headers carry the insight, so they sit one step up from the cells. */
.insight-table tbody th {
  font-weight: 500;
  color: var(--ink-300);
  width: 32%;
}
.insight-table td { color: var(--ink-400); }

.case-subhead {
  font-size: var(--t-lede);
  font-weight: 500;
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: var(--s-4);
}

.case-sources { border-top: 1px solid var(--line-soft); padding-top: var(--s-8); }
.case-sources ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.case-sources li { padding-left: 0.25rem; }

/* Results */
.result-live {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
  border: 1px solid var(--accent-35);
  border-radius: var(--r-lg);
  background: rgba(205, 255, 87, 0.06);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.result-live__label {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.result-live__url {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--cream);
  word-break: break-word;
  transition: color var(--dur-2) var(--ease);
}
a.result-live__url:hover { color: var(--accent); }

/* Execution gallery */
.exec-stack { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4rem); }
.exec-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 780px) { .exec-pair { grid-template-columns: 1fr 1fr; } }

/* Prev / next */
.case-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  padding-block: var(--section-y);
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 780px) { .case-nav { grid-template-columns: 1fr 1fr; } }
.case-nav a {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.case-nav a:hover { border-color: var(--accent-35); transform: translateY(-3px); }
.case-nav a.is-next { text-align: right; align-items: flex-end; }
.case-nav strong { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }

/* ------------------------------------------------------------
   15b. NARRATIVE TYPESETTING (Phase 2)
   The real case copy, replacing the Phase 1 copy placeholders.
   ------------------------------------------------------------ */
.narrative { display: flex; flex-direction: column; gap: var(--s-6); }
.narrative p {
  color: var(--ink-400);
  font-size: var(--t-body);
  line-height: 1.75;
  max-width: var(--measure);
}
/* Scenario and Learnings sit one step up: they are read, not scanned. */
.narrative--lead p {
  font-size: var(--t-lede);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-300);
  max-width: 48rem;
}

/* My role: the narrative carries it, the meta strip stays scannable. */
.role-card--split { grid-template-columns: 1fr; gap: var(--s-8); }
@media (min-width: 900px) {
  .role-card--split {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: var(--s-12);
  }
}
.role-card--split .narrative p { color: var(--ink-300); max-width: 46rem; }
.role-meta { border-top: 1px solid var(--accent-35); padding-top: var(--s-4); }
@media (min-width: 900px) {
  .role-meta { border-top: 0; border-left: 1px solid var(--accent-35); border-top: 0; padding: 0 0 0 var(--s-6); }
}

/* Decision callouts. The "Decision N:" opener is part of the supplied
   sentence, so it is styled in place rather than lifted into a label. */
.decision p {
  color: var(--ink-300);
  font-size: var(--t-body);
  line-height: 1.75;
  max-width: 48rem;
}
.decision__lead {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* Type-only moment */
.pullquote__text {
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
  max-width: 20ch;
}

/* Learnings that open on a display-size sentence (Ativa Eventos) */
.learn-lead {
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
  max-width: 30ch;
  margin-bottom: var(--s-8);
}

/* Results statement where there is no live URL to point at */
.result-live__statement {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--cream);
  max-width: 44rem;
}

/* ------------------------------------------------------------
   16. MOTION
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease) var(--d, 0s),
              transform var(--dur) var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   16. DESIGN SYSTEMS PAGE
   Three components, all assembled from the tokens above: the
   token map, the live/system swap, and the systems timeline.
   No new colours, no new type scale, no new font.
   ------------------------------------------------------------ */

/* 16.1 Token map: primitive value, semantic name, component that reads it */
.token-map {
  display: grid;
  gap: var(--s-4);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.token-map__head { display: none; }
.token-map__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  align-items: center;
}
@media (min-width: 820px) {
  .token-map__head,
  .token-map__row {
    grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr) 2rem minmax(0, 1fr);
    gap: var(--s-4);
  }
  .token-map__head { display: grid; }
}
.token-map__label {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.token-map__label--pivot { color: var(--accent); }
.token-map__arrow {
  color: var(--accent);
  font-size: 1.125rem;
  line-height: 1;
  text-align: center;
  /* Stacked on a phone, so the arrow points down the column instead. */
  transform: rotate(90deg);
}
@media (min-width: 820px) {
  .token-map__arrow { transform: none; }
}
.token-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.25rem;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(24, 24, 27, 0.5);
  color: var(--ink-300);
  font-size: var(--t-sm);
  line-height: 1.4;
}
/* The semantic layer is the one that moves, so it is the one that is lit. */
.token-chip--pivot {
  border-color: var(--accent-35);
  background: var(--accent-8);
  color: var(--cream);
  font-weight: 500;
}

/* 16.2 The two prints: picker on the left, device on the right */

/* Two named prints, both valid, neither an "off" state, so this is a choice
   and not a switch. As a toggle it left the second print unnamed as a state,
   and its dimmed label sat at 4.12:1 against the page, under the 4.5:1 that
   1.4.3 asks of body text. Built the way the language switcher in the header
   is built, which is the same decision in the same house. */
.print-picker {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(250, 249, 246, 0.05);
}
.print-picker__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-full);
  background: none;
  /* Sentence case, not the uppercase of the two-letter language codes: these
     are two-word product names, and caps slow them down to read. */
  font-family: inherit;
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1;
  color: rgba(250, 249, 246, 0.62);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.print-picker__item:hover { color: var(--cream); background: rgba(250, 249, 246, 0.1); }
.print-picker__item[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent);
  cursor: default;
}

/* Title and control on one side, the page they describe on the other, so the
   reader never has to hold one in memory while looking at the other. */
.prints { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) {
  .prints {
    /* The media column takes the device's own width, so the gap absorbs
       what is left over instead of leaving dead space beside the phone. */
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
  }
}
.prints__copy,
.prints__media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-6);
  margin: 0;
}
.prints__media { gap: var(--s-3); }

/* Both states share one cell, so the frame never changes height and nothing
   around it moves. The crossfade is a plain opacity transition, which the
   reduced-motion block at the end of this file collapses to an instant swap. */
.swap { display: grid; justify-items: start; }
.swap__pane {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.swap__pane.is-active {
  opacity: 1;
  pointer-events: auto;
}
/* The prints are phone mockups with the corners cut away. Capped by height
   rather than width, because the whole device has to be on screen at the same
   time as the control that changes it: a change you have to scroll to see is
   a change you cannot compare. svh where it is understood, since on a phone
   vh is the tallest the viewport ever gets, not the one the reader has. */
.swap--device .ph {
  width: auto;
  max-width: 100%;
  height: min(68vh, 38rem);
  height: min(68svh, 38rem);
}
/* A frame that keeps the page behind it, instead of the raised surface every
   other .ph takes, which would draw a lighter rectangle around the cutout. */
.swap--device .ph.is-loaded { background-color: transparent; }

/* 16.3 Systems timeline */
.ds-timeline {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.ds-entry {
  position: relative;
  display: grid;
  gap: var(--s-4);
  padding-left: var(--s-8);
  border-left: 1px solid var(--line);
}
.ds-entry::before {
  content: "";
  position: absolute;
  left: -0.3125rem;
  top: 0.45rem;
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: var(--r-full);
  background: var(--accent);
}
@media (min-width: 900px) {
  .ds-entry {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: var(--s-4) var(--s-8);
    align-items: start;
  }
  .ds-entry__meta { grid-row: span 5; }
}
.ds-entry__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.ds-entry__year {
  font-size: var(--t-util);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.ds-entry__org {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.ds-entry__title {
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--cream);
}
.ds-entry__body {
  color: var(--ink-400);
  font-size: var(--t-body);
  line-height: 1.7;
  max-width: var(--measure);
}
.ds-entry .tags { margin-top: 0; }
.ds-entry__media { margin-top: var(--s-2); }
.ds-entry__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-6);
}

/* 16.4 Closing line above the footer */
.ds-closing {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  align-items: flex-start;
}
.ds-closing__text {
  font-size: var(--t-section);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--cream);
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .footer-base .live-dot i { animation: none; }
  .btn:hover, .float-cta:hover, .more-card:hover,
  .case-nav a:hover { transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
