/* =============================================================================
   FONTS
   ============================================================================= */

@font-face {
  font-family: "ABC Favorit";
  src:
    url("../fonts/ABCFavorit-Light.woff2") format("woff2"),
    url("../fonts/ABCFavorit-Light.woff") format("woff");
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Favorit";
  src:
    url("../fonts/ABCFavorit-Regular.woff2") format("woff2"),
    url("../fonts/ABCFavorit-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =============================================================================
   TOKENS
   ============================================================================= */

:root {
  /* Font weights */
  --font-weight-regular: 300;
  --font-weight-medium:  300;

  /* Type scale */
   --font-size-headline:    56px;
  --line-height-headline:  60px;
  --font-size-large:    40px;
  --line-height-large:  44px;
  --font-size-medium:   30px;
  --line-height-medium: 34px;
  --font-size-small:    20px;
  --line-height-small:  32px;
  --font-size-xsmall:   16px;
  --line-height-xsmall: 20px;

  /* Display sizes (hero + cta — outside the body type scale) */
  --font-size-hero:   110px;
  --line-height-hero: 110px;
  --font-size-cta:    80px;
  --line-height-cta:  82px;

  /* Colors */
  --foreground-primary:   #212121;
  --foreground-secondary: #5c5c5c;
  --foreground-tertiary:  #78747B;
  --border-primary:       #e7e5ff;
  --background-primary:   white;
  --brand-red:            #ff0000;
  --brand-purple-primary: #bdb6ff;
  --brand-gradient: linear-gradient(
    94deg,
    #ffd26b -132.91%,
    #ff9d00 -100.99%,
    #ffb3cb -59.05%,
    var(--brand-red) -18.69%,
    var(--brand-purple-primary) 13.86%,
    var(--brand-purple-primary) 38.45%,
    var(--brand-red) 55.64%
  );
  --subdued-gradient: linear-gradient(
    94deg,
    #ffd26b -132.91%,
    #ff9d00 -100.99%,
    #ffb3cb -59.05%,
    #212121 -18.69%,
    #949494 13.86%,
    #949494 38.45%,
    #212121 55.64%
  );

  /* Spacing */
  --space-16: 16px;
  --space-24:  24px;
  --space-40:  40px;
  --space-48:  48px;
  --space-56:  56px;
  --space-72:  72px;
  --space-96:  96px;
  --space-124: 124px;
  --space-160: 160px;
}


/* =============================================================================
   BASE
   ============================================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: "ABC Favorit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss04" 1;
  color: var(--foreground-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

body {
  background: radial-gradient(50% 5.57% at 50% 100%, var(--border-primary) 0%, var(--background-primary) 100%) no-repeat;
  background-color: var(--background-primary);
}

::selection {
  background: var(--brand-purple-primary);
  color: var(--foreground-primary);
}

::-moz-selection {
  background: var(--brand-purple-primary);
  color: var(--foreground-primary);
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Cursor-tracked radial text hover */
.hero,
.body-copy,
.offering-meta h3,
.offering > p,
.cta-line {
  position: relative;
  background: radial-gradient(
    circle var(--radial-size, 80px) at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--foreground-tertiary),
    var(--foreground-primary)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: currentColor;
  transition: color 0.3s ease, -webkit-text-fill-color 0.3s ease;
}

.body-copy:hover {
  color: var(--foreground-primary);
}

.hero:hover,
.body-copy:hover,
.offering-meta h3:hover,
.offering > p:hover,
.cta-line:hover {
  -webkit-text-fill-color: rgba(33, 33, 33, 0);
}

@media (hover: none) {
  .hero:hover,
  .body-copy:hover,
  .offering-meta h3:hover,
  .offering > p:hover,
  .cta-line:hover {
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
  }

  .lia-link::after,
  .lia-link:hover::after,
  .lia-link:focus-visible::after {
    content: none;
  }
}


/* =============================================================================
   LAYOUT
   ============================================================================= */

.page {
  width: min(1192px, calc(100vw - (2 * var(--space-124))));
  margin: var(--space-40) auto 100px;
}

section {
  margin-top: var(--space-96);
}

/* Section spacing overrides */
.what-we-do {
  margin-top: var(--space-72);
  --what-copy-max-width: clamp(420px, 62vw, 717px);
}

.section-label {
  margin: 0 0 44px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-primary);
  color: var(--foreground-tertiary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-regular);
}

.what-we-do .section-label {
  width: min(100%, clamp(420px, 62vw, 717px));
  color: var(--foreground-tertiary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
}

.how-we-work .section-label {
  margin-bottom: var(--space-56);
}


/* =============================================================================
   INTRO
   ============================================================================= */

.intro {
  min-height: 550px;
  margin-top: var(--space-40);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-160);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.brand-floating {
  position: fixed;
  top: var(--space-24);
  left: 0;
  margin: 0;
  padding: 10px 12px;
  margin-left: -12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 28px rgba(33, 33, 33, 0.12);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transform: translateY(calc(-100% - var(--space-24)));
  opacity: 0;
  pointer-events: none;
  transition: transform 360ms ease, opacity 260ms ease;
  z-index: 60;
}

.brand-floating .brand-name {
  display: none;
}

.brand-floating.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.brand:link,
.brand:visited,
.brand:hover,
.brand:active {
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 21px;
  height: 21px;
  display: block;
  transform-origin: 50% 50%;
}

@keyframes logo-wiggle {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  65% {
    transform: rotate(8deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.brand-logo.is-wiggling {
  animation: logo-wiggle 360ms ease-in-out;
}

.brand-name {
  display: inline-block;
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-regular);
  color: transparent;
  letter-spacing: 0.01em;
  background: var(--brand-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (hover: none) {
  .brand-name {
    animation: shimmer 3s linear infinite;
  }
}

.hero {
  margin: 0;
  font-size: var(--font-size-hero);
  line-height: var(--line-height-hero);
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-regular);
  padding-bottom: 0.15em;
  margin-bottom: var(--space-124);
  overflow: visible;
  widows: 2;
}

.nowrap-desktop {
  white-space: nowrap;
}


/* =============================================================================
   WHAT WE DO
   ============================================================================= */

.what-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-24);
}

.body-copy {
  margin: 0;
  min-width: clamp(0px, calc(100vw - 620px), 400px);
  max-width: var(--what-copy-max-width);
  color: var(--foreground-secondary);
  font-size: var(--font-size-large);
  line-height: var(--line-height-large);
  font-weight: var(--font-weight-regular);
  position: relative;
  z-index: 2;
}

.body-copy.is-scroll-active {
  color: var(--foreground-primary);
}

.body-copy .cycling-gradient-text {
  background: var(--brand-gradient);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
}

.accent-red   { color: var(--brand-red); }
.accent-lilac { color: var(--brand-purple-primary); }

.cycling-gradient-text {
  display: inline;
  color: transparent;
  background: var(--brand-gradient);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  will-change: background-position;
  -webkit-font-smoothing: antialiased;
}

.venn-wrap {
  width:  clamp(380px, calc(380px + (100vw - 777px) * 0.649), 706px);
  height: clamp(252px, calc(252px + (100vw - 777px) * 0.434), 470px);
  margin: clamp(-38px,  calc(-10px  - (100vw - 777px) * 0.056),  -10px)
          clamp(-220px, calc(-220px + (100vw - 777px) * 0.139), -150px)
          0 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  overflow: hidden;
}

.venn {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.venn-interactive {
  display: block;
  overflow: visible;
}

.venn-wrap.has-live-venn {
  position: relative;
  cursor: default;
  overflow: visible;
}

.venn-wrap.has-live-venn .venn-interactive {
  position: absolute;
  top: -13.793%;
  left: -13.793%;
  width: 127.586%;
  height: 127.586%;
}


/* =============================================================================
   HOW WE WORK
   ============================================================================= */

.offering {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: var(--space-56);
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border-primary);
}

.offering:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.offering-meta h3 {
  margin: 0;
  font-size: var(--font-size-medium);
  line-height: var(--line-height-medium);
  font-weight: var(--font-weight-medium);
}

.duration {
  margin: 8px 0 0;
  color: var(--foreground-tertiary);
  font-size: var(--font-size-xsmall);
  line-height: var(--line-height-xsmall);
  font-weight: var(--font-weight-regular);
}

.offering > p {
  margin: 0;
  max-width: 650px;
  color: var(--foreground-secondary);
  font-size: var(--font-size-medium);
  line-height: var(--line-height-medium);
  font-weight: var(--font-weight-regular);
}

@media (hover: hover) and (pointer: fine) {
  .offering {
    transition: opacity 260ms ease;
  }

  .how-we-work.is-scroll-mode .offering {
    opacity: 0.5;
  }

  .how-we-work.is-scroll-mode .offering.is-scroll-active {
    opacity: 1;
  }

  .how-we-work:has(.offering:hover) .offering:not(:hover),
  .how-we-work:has(.offering:focus-within) .offering:not(:focus-within) {
    opacity: 0.5;
  }

  .how-we-work:has(.offering:hover) .offering:hover,
  .how-we-work:has(.offering:focus-within) .offering:focus-within {
    opacity: 1;
  }
}

/* Lock How we work typography to medium scale. */
.how-we-work .offering-meta h3,
.how-we-work .offering > p {
  font-size: var(--font-size-medium);
  line-height: var(--line-height-medium);
}


/* =============================================================================
   ABOUT
   ============================================================================= */

.about-media {
  width: 100vw;
  height: 306px;
  overflow: visible;
  margin-left: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
}

.about-media img {
  width: 1530px;
  max-width: none;
  height: 306px;
  object-fit: cover;
  object-position: left center;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-56);
  margin-top: var(--space-40);
}

.about-columns p {
  margin: 0;
  color: var(--foreground-secondary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-regular);
}

.lia-link:link,
.lia-link:visited {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.lia-link::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: var(--brand-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  animation: shimmer 3s linear infinite;
  will-change: opacity;
}

.lia-link:hover,
.lia-link:focus-visible {
  color: inherit;
}

.lia-link:hover::after,
.lia-link:focus-visible::after {
  opacity: 1;
}


/* =============================================================================
   OUTREACH
   ============================================================================= */

.outreach {
  margin-top: var(--space-72);
  text-align: center;
}

.outreach .section-label {
  text-align: left;
  margin-bottom: var(--space-72);
}

.cta-line {
  max-width: 18ch;
  margin: 0 auto;
  color: var(--foreground-primary);
  font-size: var(--font-size-cta);
  line-height: var(--line-height-cta);
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-regular);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 60px;
  padding-top: 2px;
  margin-top: var(--space-48);
  font-family: inherit;
  border: none;
  border-radius: 60px;
  background: var(--foreground-primary);
  color: var(--background-primary);
  text-decoration: none;
  font-size: var(--font-size-small);
  line-height: 1;
  font-weight: var(--font-weight-regular);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 2px 8px rgba(221, 202, 202, 0.5);
  transition: box-shadow 2s ease-in-out;
  transform: translateZ(0);
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 200px at var(--gradient-x, 50%) var(--gradient-y, 50%),
    #a69cff 0%,
    #ff568a 40%,
    var(--brand-red) 70%,
    var(--brand-red) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
  will-change: opacity;
  z-index: -1;
}

.cta-button:hover {
  box-shadow: 0 4px 20px 0 #ddcaca;
}

.cta-button:hover::before,
.cta-button.hovering::before {
  opacity: 1;
}

.booking {
  margin: var(--space-24) auto 0;
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  font-weight: var(--font-weight-regular);
  display: block;
  width: max-content;
  cursor: pointer;
  background: var(--subdued-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* =============================================================================
   BREAKPOINT: MACBOOK AIR  ≤ 1279px
   ============================================================================= */

@media (max-width: 1279px) {

  /* — Layout — */
  .page { width: min(1032px, calc(100vw - (2 * var(--space-124)))); }

  /* — Intro — */
  .brand { margin-bottom: 192px; }
  .hero  { font-size: var(--font-size-cta); line-height: var(--line-height-cta); widows: 2; min-width: 563px; margin-bottom:var(--space-40);}

  /* — What we do — */
  .what-we-do {
    --what-copy-max-width: 620px;
  }

  .body-copy {
    margin-top: 0;
    max-width: var(--what-copy-max-width);
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
  }

  /* — How we work — */
  .offering     { gap: var(--space-40); }

  /* — About — */
  .about-columns { gap: 44px; }

  /* — Outreach — */
  .cta-line   { font-size: var(--font-size-cta); line-height: var(--line-height-cta); }
  .cta-button { margin-top: var(--space-40); }

}


/* =============================================================================
   BREAKPOINT: MOBILE  ≤ 776px
   ============================================================================= */

@media (max-width: 776px) {

  /* — Layout — */
  .page {
    width: calc(100vw - (2 * var(--space-24)));
    margin-bottom: var(--space-72);
  }

  section {
    margin-top: var(--space-56);
  }

  /* — Intro — */
  .intro {
    min-height: auto;
  }

  .brand {
    margin-bottom: var(--space-72);
  }

  .hero {
    font-size: var(--font-size-headline);
    line-height: var(--line-height-headline);
    letter-spacing: -0.02em;
    min-width: 0;
    margin-bottom:var(--space-56);
  }

  .nowrap-desktop {
    white-space: normal;
  }

  /* — What we do — */
  .what-we-do {
    margin-top: var(--space-56);
  }

  .what-we-do .section-label {
    display: none;
  }

  .what-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-56);
    width: 100%;
    overflow: visible;
  }

  .venn-wrap {
    order: -1;
    width: calc(100% + var(--space-160));
    height: auto;
    max-height: 358px;
    aspect-ratio: 537 / 358;
    margin: 0;
    align-self: flex-start;
  }

  .body-copy {
    min-width: 0;
    width: 100%;
    max-width: none;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
  }

  /* — How we work — */
  .section-label {
    margin-bottom: var(--space-24);
  }

  .how-we-work .section-label {
    margin-bottom: var(--space-40);
  }

  .about .section-label {
    margin-bottom: var(--space-40);
  }

  .offering {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: var(--space-40);
    padding-bottom: var(--space-40);
  }
  .offering > p  { max-width: 100%; font-size: var(--font-size-small); line-height: var(--line-height-small); }
  .duration      { font-size: var(--font-size-small); line-height: var(--line-height-small); }

  /* — About — */
  .about-columns {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: var(--space-40);
  }

  .about-columns p {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }

  .lia-link {
    text-decoration: none;
  }

  /* — Outreach — */
  .outreach {
    margin-top: var(--space-24);
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
  }

  .outreach .section-label {
    margin-bottom: var(--space-56);
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .cta-line {
    max-width: none;
    font-size: var(--font-size-headline);
    line-height: var(--line-height-headline);
    text-align: left;
  }

  .cta-button {
    width: 300px;
    max-width: 100%;
    margin-top: var(--space-56);
  }

  .booking {
    margin-top: var(--space-24);
    text-align: center;
    margin-bottom: var(--space-48);
  }

}


/* =============================================================================
   PROPOSAL TEMPLATE SYSTEM (BRAIN&CO)
   ============================================================================= */

:root {
  --proposal-bg-surround: #f7f8fc;
  --proposal-canvas: #ffffff;
  --proposal-ink: #212121;
  --proposal-muted: #414141;
  --proposal-subtle: #828282;
  --proposal-rule: #dadbe2;
  --proposal-accent: #bdb6ff;

  --proposal-text-display: 30px;
  --proposal-leading-display: 34px;
  --proposal-text-title: 14px;
  --proposal-leading-title: 24px;
  --proposal-text-body-sm: 14px;
  --proposal-leading-body-sm: 24px;
  --proposal-text-caption: 10px;
  --proposal-leading-caption: 24px;

  --proposal-weight-book: 300;
  --proposal-weight-regular: 400;
  --proposal-weight-medium: 400;

  --proposal-space-8: 8px;
  --proposal-space-16: 16px;
  --proposal-space-24: 24px;
  --proposal-space-50: 50px;
  --proposal-space-separator: 24px;

  --proposal-page-max: 612px;
}

body.proposal-doc-bg {
  background: var(--proposal-bg-surround) !important;
  color: var(--proposal-ink);
}

/* Keep proposal text shaping extraction-safe in all modes (screen + print). */
body.proposal-doc-bg .proposal-page,
body.proposal-doc-bg .proposal-page * {
  font-feature-settings: "ss04" 0, "calt" 0, "liga" 0, "clig" 0;
  font-variant-ligatures: none;
}

.proposal-page {
  width: min(var(--proposal-page-max), calc(100vw - 32px));
  margin: 24px auto;
  padding: var(--proposal-space-50);
  background: var(--proposal-canvas);
  color: var(--proposal-ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Prevent global section spacing rules from inflating proposal layout rhythm. */
.proposal-page > section,
.proposal-page > header,
.proposal-page > footer {
  margin: 0;
}

/* Object-oriented auto-layout primitives */
.o-stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-space, var(--proposal-space-24));
}

.o-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--cluster-row-gap, var(--proposal-space-8)) var(--cluster-col-gap, var(--proposal-space-24));
}

.o-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--split-gap, var(--proposal-space-8));
}

.s-8 { --stack-space: var(--proposal-space-8); }
.s-16 { --stack-space: var(--proposal-space-16); }
.s-24 { --stack-space: var(--proposal-space-24); }

/* Proposal text styles */
.proposal-overline {
  margin: 0;
  font-size: var(--proposal-text-caption);
  line-height: var(--proposal-leading-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--proposal-subtle);
}

.proposal-page > header h1 {
  margin: 0;
  font-size: var(--font-size-medium);
  line-height: var(--line-height-medium);
  letter-spacing: -0.02em;
  font-weight: var(--proposal-weight-regular);
  color: var(--proposal-ink);
}

.proposal-subtitle {
  margin: 0;
  font-size: var(--proposal-text-body-sm);
  line-height: var(--proposal-leading-body-sm);
  color: var(--proposal-subtle);
  font-weight: var(--proposal-weight-book);
}

.proposal-body {
  margin: 0;
  font-size: var(--proposal-text-body-sm);
  line-height: var(--proposal-leading-body-sm);
  color: var(--proposal-ink);
  font-weight: var(--proposal-weight-book);
}

.proposal-caption {
  margin: 0;
  font-size: var(--proposal-text-body-sm);
  line-height: var(--proposal-leading-body-sm);
  color: var(--proposal-muted);
  font-weight: var(--proposal-weight-book);
}

.proposal-accent {
  color: var(--proposal-ink);
  font-weight: var(--proposal-weight-medium);
}

/* Proposal components */
.proposal-rule {
  border: 0;
  border-top: 1px solid var(--proposal-rule);
  margin: calc(var(--proposal-space-separator) - var(--proposal-space-16)) 0;
}

.proposal-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--proposal-space-8);
}

.proposal-brand-logo-wrap {
  position: relative;
  width: 16px;
  height: 20px;
  display: block;
  overflow: hidden;
  isolation: isolate;
}

.proposal-brand-logo {
  width: 100%;
  height: 100%;
  display: block;
}

.proposal-brand-logo-wrap::after {
  content: "";
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: -170%;
  width: 70%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.92) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
}

.proposal-brand-logo-wrap:hover::after {
  opacity: 1;
  animation: proposal-logo-shimmer 900ms cubic-bezier(0.2, 0.65, 0.2, 1) 1;
}

.proposal-brand-logo-wrap.is-shining::after {
  opacity: 1;
  animation: proposal-logo-shimmer 900ms cubic-bezier(0.2, 0.65, 0.2, 1) 1;
}

@keyframes proposal-logo-shimmer {
  from {
    left: -170%;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  to {
    left: 210%;
    opacity: 0;
  }
}

.proposal-brand-name {
  margin: 0;
  font-size: var(--proposal-text-caption);
  line-height: var(--proposal-leading-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: transparent;
  background: var(--brand-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (hover: none) {
  .proposal-brand-name {
    animation: shimmer 3s linear infinite;
  }
}

.proposal-details {
  display: flex;
  align-items: flex-start;
  gap: var(--proposal-space-24);
  width: 100%;
}

.proposal-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.proposal-page > section[aria-label="What we'll provide"] > p:first-child,
.proposal-page > section[aria-label="What we'll discuss"] > p:first-child {
  margin: 0;
  font-size: var(--proposal-text-caption);
  line-height: var(--proposal-leading-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--proposal-subtle);
  font-weight: var(--proposal-weight-regular);
}

/* Shared label styling for all small-caps labels */
.proposal-details > article > p:first-child,
.proposal-pair-row > p:first-child,
.proposal-list-item > p:first-child {
  margin: 0;
  font-size: var(--proposal-text-caption);
  line-height: var(--proposal-leading-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--proposal-subtle);
  font-weight: var(--proposal-weight-regular);
}

/* Shared value styling */
.proposal-details > article > p:last-child {
  margin: 0;
  font-size: var(--proposal-text-body-sm);
  line-height: var(--proposal-leading-body-sm);
  color: var(--proposal-ink);
  font-weight: var(--proposal-weight-medium);
}

.proposal-pair-row > p:last-child,
.proposal-pair-row > div > p,
.proposal-list-item > div > p,
.proposal-note > p {
  margin: 0;
  font-size: var(--proposal-text-body-sm);
  line-height: var(--proposal-leading-body-sm);
}

.proposal-pair-row > p:last-child,
.proposal-pair-row > div > p,
.proposal-list-item > div > p {
  color: var(--proposal-ink);
  font-weight: var(--proposal-weight-book);
}

.proposal-note > p {
  color: var(--proposal-muted);
  font-weight: var(--proposal-weight-book);
}

/* Two-column grid layouts */
.proposal-pair-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: var(--proposal-space-8);
  align-items: start;
}

.proposal-list-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--proposal-space-8);
  align-items: start;
}

.proposal-list-item.proposal-list-item-full {
  grid-template-columns: minmax(0, 1fr);
}

.proposal-discuss > p:first-child {
  margin: 0;
  font-size: var(--proposal-text-caption);
  line-height: var(--proposal-leading-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--proposal-subtle);
  font-weight: var(--proposal-weight-regular);
}

.proposal-discuss .proposal-list-item.proposal-list-item-full {
  display: block;
  width: 100%;
}

.proposal-discuss .proposal-list-item.proposal-list-item-full > div {
  width: 100%;
  max-width: none;
}

.proposal-discuss .proposal-list-item.proposal-list-item-full > div > p {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.proposal-list-item h2 {
  margin: 0;
  font-size: var(--proposal-text-title);
  line-height: var(--proposal-leading-title);
  letter-spacing: 0;
  font-weight: var(--proposal-weight-medium);
}

.proposal-note {
  padding-left: var(--proposal-space-24);
  border-left: 2px solid var(--proposal-accent);
}

/* Footer and links */
.proposal-footer {
  align-items: center;
}

/* Name link with grey shimmer overlay on hover */
.proposal-name-link:link,
.proposal-name-link:visited {
  position: relative;
  display: inline-block;
  color: var(--proposal-subtle);
  text-decoration: none;
}

.proposal-name-link::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--subdued-gradient);
  background-clip: text;
  background-position: 0% 50%;
  background-size: 200% 200%;
  color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proposal-name-link:hover::after,
.proposal-name-link:focus-visible::after {
  opacity: 1;
}

/* Website link with brand gradient */
.proposal-footer-link {
  margin: 0;
  font-size: var(--proposal-text-body-sm);
  line-height: var(--proposal-leading-body-sm);
  background: var(--brand-gradient);
  background-clip: text;
  background-position: 0% 50%;
  background-size: 200% 200%;
  color: transparent;
  text-decoration: none;
  animation: shimmer 3s linear infinite;
  will-change: background-position;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 680px) {
  .proposal-page {
    width: min(var(--proposal-page-max), calc(100vw - 24px));
    margin: 24px auto;
    padding: 28px 20px 32px;
  }

  .proposal-page > header h1 {
    font-size: 26px;
    line-height: 30px;
  }

  .proposal-details,
  .proposal-pair-row {
    grid-template-columns: 1fr;
    display: grid;
    gap: var(--proposal-space-8);
  }

  .proposal-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--proposal-space-8);
  }
}

@media print {
  body.proposal-doc-bg {
    background: #ffffff !important;
    color: var(--proposal-ink);
  }

  /* Keep text extraction stable in exported PDFs by disabling stylistic/contextual substitutions. */
  .proposal-page,
  .proposal-page * {
    font-feature-settings: "ss04" 0, "calt" 0, "liga" 0, "clig" 0 !important;
    font-variant-ligatures: none !important;
  }

  .proposal-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Improve pagination: avoid splitting key blocks and paragraph lines. */
  .proposal-page section,
  .proposal-page article,
  .proposal-pair-row,
  .proposal-list-item,
  .proposal-note,
  .proposal-details > article {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .proposal-page p,
  .proposal-page h1,
  .proposal-page h2 {
    orphans: 3;
    widows: 3;
  }

  .proposal-rule {
    break-after: avoid-page;
    page-break-after: avoid;
  }

  /* Raise tertiary contrast for PDF output by default. */
  .proposal-subtitle,
  .proposal-overline,
  .proposal-details > article > p:first-child,
  .proposal-pair-row > p:first-child,
  .proposal-list-item > p:first-child {
    color: #5f5f5f;
  }

  .proposal-brand-name {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #ff0000;
  }

  .proposal-name-link,
  .proposal-name-link:visited,
  .proposal-footer-link,
  .proposal-footer-link:visited {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #bdb6ff;
  }

  .proposal-name-link::after {
    content: none;
  }

  /* Optional print modes for stronger brand emphasis. */
  body.proposal-print-red .proposal-subtitle,
  body.proposal-print-red .proposal-overline,
  body.proposal-print-red .proposal-details > article > p:first-child,
  body.proposal-print-red .proposal-pair-row > p:first-child,
  body.proposal-print-red .proposal-list-item > p:first-child {
    color: #ff0000;
  }

  body.proposal-print-purple .proposal-subtitle,
  body.proposal-print-purple .proposal-overline,
  body.proposal-print-purple .proposal-details > article > p:first-child,
  body.proposal-print-purple .proposal-pair-row > p:first-child,
  body.proposal-print-purple .proposal-list-item > p:first-child {
    color: #bdb6ff;
  }
}
