/* BB Technology Holdings — site styles */

:root {
  --navy: #0f1b2d;
  --ivory: #f4f1ea;
  --muted: #5a6472;         /* secondary text on ivory (AA) */
  --muted-on-navy: #a9b0ba; /* secondary text on navy (AA) */
  --rule: #d8d3c7;          /* 1px dividers on ivory */
  --rule-on-navy: rgba(244, 241, 234, 0.2);
  --field-border: #767c86;  /* form controls, 3:1 on ivory */

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(88px, 13vw, 184px);
  --header-h: 88px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);      /* long, soft settle */
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);    /* deliberate in-out */
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 900px) {
  body {
    font-size: 1.125rem; /* 18px */
  }
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: var(--navy);
  color: var(--ivory);
}

.section--navy ::selection {
  background: var(--ivory);
  color: var(--navy);
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.375rem, 6.1vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(2.125rem, 4.4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
}

h3 {
  font-size: 1.3125rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.6;
}

.prose {
  max-width: 58ch;
}

.prose p + p {
  margin-top: 1.25em;
}

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.text-link__arrow {
  transition: transform 0.5s var(--ease);
}

.text-link:hover .text-link__arrow {
  transform: translateX(6px);
}

/* Clearly marked placeholder content — remove the class once real copy is in */
.placeholder {
  padding: 0.75em 1em;
  border: 1px dashed var(--field-border);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ivory);
  color: var(--navy);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section--ruled > .container {
  position: relative;
}

.section--ruled > .container::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--section-pad));
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--rule);
}

.section--navy {
  background: var(--navy);
  color: var(--ivory);
}

.section--navy .eyebrow {
  color: var(--muted-on-navy);
}

.section__eyebrow {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section__grid {
  display: grid;
  gap: 56px;
}

.section__note {
  margin-top: 28px;
  color: var(--muted);
}

.section__head .placeholder {
  display: inline-block;
  margin-top: 20px;
}

.section__head .text-link {
  margin-top: 20px;
}

.section__head--wide {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section__count {
  margin-bottom: 0.9em;
}

@media (min-width: 900px) {
  .section__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }

  .section__grid > .section__head {
    grid-column: 1 / span 5;
  }

  .section__grid > .section__body {
    grid-column: 7 / -1;
  }
}

/* Hairline that draws itself when its parent reveals */
.rule {
  height: 1px;
  background: currentColor;
  opacity: 0.22;
  transform-origin: left;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: transform 0.6s var(--ease), background-color 0.4s ease,
    border-color 0.4s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--navy);
  border-bottom-color: var(--rule-on-navy);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.6s var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  height: 68px;
}

.site-header__logo {
  display: block;
  flex: none;
}

.site-header__logo img {
  width: auto;
  height: 40px;
}

.site-nav ul {
  display: flex;
  gap: 44px;
}

.site-nav a {
  position: relative;
  display: block;
  padding-block: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.18em;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before {
  display: block;
  width: 26px;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}

.nav-toggle__bars {
  transform: translateY(-4px);
}

.nav-toggle__bars::before {
  content: "";
  transform: translateY(8px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(-90deg);
}

@media (max-width: 759px) {
  :root {
    --header-h: 68px;
  }

  .site-header__logo img {
    height: 32px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--rule-on-navy);
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s var(--ease), opacity 0.3s ease,
      visibility 0s linear 0.6s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0);
    transition: clip-path 0.6s var(--ease), opacity 0.3s ease;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 28px;
  }

  .site-nav li + li {
    border-top: 1px solid var(--rule-on-navy);
  }

  .site-nav a {
    padding-block: 20px;
    font-size: 0.9375rem;
  }

  .site-nav a::after {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
}

.hero__grid span {
  border-left: 1px solid rgba(244, 241, 234, 0.07);
  transform-origin: top;
}

.hero__grid span:last-child {
  border-right: 1px solid rgba(244, 241, 234, 0.07);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.hero__eyebrow {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.hero__main {
  display: grid;
  gap: 40px;
}

.hero__mark {
  width: 84px;
  order: -1;
  margin-bottom: 8px;
  color: var(--ivory);
}

.hero__rule {
  height: 1px;
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--rule-on-navy);
  transform-origin: left;
}

.hero__foot {
  display: grid;
  gap: 32px;
  padding-top: clamp(24px, 3vw, 36px);
}

.hero .lead {
  max-width: 46ch;
  color: var(--muted-on-navy);
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
}

@media (min-width: 900px) {
  .hero__main {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    align-items: end;
  }

  .hero__main h1 {
    grid-column: 1 / span 9;
  }

  .hero__mark {
    grid-column: 10 / -1;
    justify-self: end;
    order: 0;
    width: min(100%, 290px);
    margin-bottom: 0.9vw;
    will-change: transform;
  }

  .hero__foot {
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 32px;
  }
}

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

.statement {
  max-width: 24em;
  font-size: clamp(1.75rem, 3.7vw, 3.25rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.006em;
}

.about {
  display: grid;
  gap: 64px;
  margin-top: clamp(72px, 10vw, 144px);
}

.merge svg {
  width: min(100%, 300px);
  overflow: visible;
}

.merge figcaption {
  margin-top: 32px;
}

.founders {
  display: grid;
  gap: 40px;
  margin-top: 64px;
}

.founder .rule {
  margin-bottom: 28px;
}

.founder h3 {
  margin: 10px 0 18px;
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: 0;
}

@media (min-width: 600px) {
  .founders {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }

  .merge {
    grid-column: 1 / span 4;
  }

  .about__body {
    grid-column: 6 / -1;
  }
}

/* ---------- Portfolio ---------- */

.brands {
  border-top: 1px solid var(--navy);
}

.brand {
  border-bottom: 1px solid var(--rule);
}

.brand__link {
  position: relative;
  display: grid;
  gap: 12px;
  padding-block: clamp(32px, 4.5vw, 60px);
  color: var(--navy);
  text-decoration: none;
  transition: color 0.5s var(--ease), padding 0.7s var(--ease);
}

.brand__link::before {
  content: "";
  position: absolute;
  inset: -1px calc(-1 * var(--gutter)) -1px;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s var(--ease);
}

.brand__link > * {
  position: relative;
}

.brand__index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--muted);
  transition: color 0.5s var(--ease);
}

.brand__name {
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

.brand__desc {
  max-width: 40ch;
  margin-top: 14px;
  color: var(--muted);
  transition: color 0.5s var(--ease);
}

.brand__tag {
  transition: color 0.5s var(--ease);
}

.brand__cta {
  margin-top: 12px;
}

.brand__arrow {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.375rem;
  line-height: 1;
}

.brand__arrow span {
  transform: rotate(-45deg);
  transition: transform 0.7s var(--ease);
}

.brand__cta .placeholder {
  display: inline-block;
  white-space: nowrap;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}

@media (min-width: 900px) {
  .brand__link {
    grid-template-columns: 88px minmax(0, 1fr) 220px 180px;
    column-gap: 32px;
    align-items: center;
  }

  .brand__index {
    align-self: start;
    padding-top: 1.4em;
  }

  .brand__tag {
    align-self: start;
    padding-top: 1.4em;
  }

  .brand__cta {
    margin-top: 0;
    justify-self: end;
  }
}

@media (hover: hover) {
  .brand__link:hover,
  .brand__link:focus-visible {
    color: var(--ivory);
  }

  .brand__link:hover::before,
  .brand__link:focus-visible::before {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  .brand__link:hover .brand__index,
  .brand__link:hover .brand__desc,
  .brand__link:hover .brand__tag,
  .brand__link:hover .placeholder {
    color: var(--muted-on-navy);
  }

  .brand__link:hover .placeholder {
    border-color: var(--muted-on-navy);
  }

  .brand__link:hover .brand__arrow span {
    transform: rotate(0deg);
  }
}

/* ---------- Approach ---------- */

.principles {
  display: grid;
  gap: 48px 32px;
}

.principle .rule {
  margin-bottom: 28px;
  opacity: 0.3;
}

.principle__num {
  display: block;
  margin-bottom: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--muted-on-navy);
}

.principle p {
  max-width: 38ch;
  margin-top: 12px;
  color: var(--muted-on-navy);
}

@media (min-width: 600px) {
  .principles {
    grid-template-columns: 1fr 1fr;
    row-gap: 72px;
  }
}

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

.form {
  display: grid;
  gap: 36px;
}

.form__row {
  display: grid;
  gap: 36px;
}

@media (min-width: 600px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

.field {
  position: relative;
}

.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.field:focus-within::after {
  transform: scaleX(1);
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

.field:focus-within label {
  color: var(--navy);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--field-border);
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 1.125rem;
}

.field textarea {
  min-height: 8em;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 0;
}

.form__trap {
  position: absolute;
  left: -9999px;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px 40px;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: var(--navy);
  color: var(--ivory);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.5s var(--ease);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ivory);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease);
}

.button:hover:not(:disabled) {
  color: var(--navy);
}

.button:hover:not(:disabled)::before {
  transform: scaleY(1);
  transform-origin: bottom;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form__status {
  flex: 1 1 240px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.form__status[data-state="success"],
.form__status[data-state="error"] {
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(28px, 4vw, 56px);
  overflow: hidden;
}

.site-footer__top {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-bottom: clamp(56px, 8vw, 112px);
}

.site-footer__mark {
  display: block;
  width: 48px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.site-footer__links a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-footer__legal {
  font-size: 0.875rem;
  color: var(--muted-on-navy);
}

.site-footer__wordmark {
  padding-top: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--rule-on-navy);
}

.site-footer__wordmark img {
  width: 100%;
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: auto 1fr auto;
    column-gap: 56px;
  }
}

/* ---------- 404 ---------- */

.notfound {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 80px;
}

.notfound .hero__links {
  margin-top: 48px;
}

/* ---------- Motion ----------
   Everything below only applies when JavaScript is running and the
   visitor has not asked for reduced motion. Without either, the page
   is simply static and fully visible. */

@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveals */
  .js [data-reveal]:not([data-reveal="trigger"]) {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1.1s var(--ease) calc(var(--i, 0) * 110ms),
      transform 1.3s var(--ease) calc(var(--i, 0) * 110ms);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal] .rule {
    transform: scaleX(0);
    transition: transform 1.5s var(--ease-io) calc(var(--i, 0) * 110ms);
  }

  .js [data-reveal].is-visible .rule {
    transform: scaleX(1);
  }

  /* Masked word-by-word heading reveal */
  .js .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.16em;
    margin-bottom: -0.16em;
  }

  .js .w > span {
    display: inline-block;
    transform: translateY(112%);
    transition: transform 1.2s var(--ease) calc(var(--w) * 45ms + var(--d, 0ms));
  }

  .js .is-visible .w > span,
  .js.is-loaded .hero .w > span {
    transform: none;
  }

  /* Hero load sequence */
  .js .hero {
    --d: 250ms;
  }

  .js .site-header__inner,
  .js .hero__eyebrow,
  .js .hero__foot > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1.1s var(--ease), transform 1.3s var(--ease),
      height 0.6s var(--ease);
  }

  .js .site-header__inner {
    transform: translateY(-12px);
    transition-delay: 0.1s, 0.1s, 0s;
  }

  .js .hero__eyebrow {
    transition-delay: 0.2s;
  }

  .js .hero__foot > :nth-child(1) {
    transition-delay: 1.15s;
  }

  .js .hero__foot > :nth-child(2) {
    transition-delay: 1.3s;
  }

  .js.is-loaded .site-header__inner,
  .js.is-loaded .hero__eyebrow,
  .js.is-loaded .hero__foot > * {
    opacity: 1;
    transform: none;
  }

  .js .hero__rule {
    transform: scaleX(0);
    transition: transform 1.6s var(--ease-io) 0.8s;
  }

  .js.is-loaded .hero__rule {
    transform: scaleX(1);
  }

  .js .hero__grid span {
    transform: scaleY(0);
    transition: transform 1.8s var(--ease-io);
  }

  .js .hero__grid span:nth-child(2) { transition-delay: 0.12s; }
  .js .hero__grid span:nth-child(3) { transition-delay: 0.24s; }
  .js .hero__grid span:nth-child(4) { transition-delay: 0.36s; }

  .js.is-loaded .hero__grid span {
    transform: scaleY(1);
  }

  /* The monogram draws itself: spine first, then the four bowls */
  .js .hero__mark path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .js .mark__spine {
    transition: stroke-dashoffset 1.1s var(--ease-io) 0.45s;
  }

  .js .mark__bowl {
    transition: stroke-dashoffset 1.3s var(--ease-io) calc(1s + var(--b) * 130ms);
  }

  .js.is-loaded .hero__mark path {
    stroke-dashoffset: 0;
  }

  /* About: sentence lights up word by word as it scrolls through */
  .js .statement .sw {
    opacity: 0.16;
    transition: opacity 0.6s ease;
  }

  .js .statement .sw.is-lit {
    opacity: 1;
  }

  /* About: two B's slide together into the monogram */
  .js .merge__left,
  .js .merge__right {
    transition: transform 2s var(--ease-io) 0.25s;
  }

  .js .merge__left {
    transform: translateX(-18px);
  }

  .js .merge__right {
    transform: translateX(18px);
  }

  .js .merge.is-visible .merge__left,
  .js .merge.is-visible .merge__right {
    transform: none;
  }

  .js .merge figcaption {
    opacity: 0;
    transition: opacity 1.2s ease 1.6s;
  }

  .js .merge.is-visible figcaption {
    opacity: 1;
  }

  /* Footer wordmark rises out of its baseline */
  .js .site-footer__wordmark {
    overflow: hidden;
  }

  .js .site-footer__wordmark img {
    transform: translateY(105%);
    transition: transform 1.6s var(--ease);
  }

  .js .site-footer__wordmark.is-visible img {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Without JavaScript the mobile nav stays visible under the logo */
@media (max-width: 759px) {
  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .site-header {
    position: relative;
    background: var(--navy);
  }

  html:not(.js) .site-header__inner {
    height: auto;
    flex-wrap: wrap;
    padding-block: 14px;
  }

  html:not(.js) .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    clip-path: none;
    border: 0;
    flex-basis: 100%;
  }
}

.founder__bio {
  max-width: 44ch;
  color: var(--muted);
  white-space: pre-line;
}

/* ---------- Private bios gate ---------- */

.gate {
  margin-top: 64px;
}

.gate[hidden] {
  display: none;
}

.gate .rule {
  margin-bottom: 28px;
}

.gate__text {
  max-width: 40ch;
  margin: 12px 0 28px;
  color: var(--muted);
}

.gate__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 32px;
}

.gate__row .field {
  flex: 1 1 220px;
  max-width: 340px;
}

.gate .form__status {
  margin-top: 16px;
  min-height: 1.5em;
}

.founders[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .founder {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  }

  .js .founder:nth-child(2) {
    transition-delay: 0.12s;
  }

  .js .founder .rule {
    transform: scaleX(0);
    transition: transform 1.5s var(--ease-io);
  }

  .js .founders.is-unlocked .founder {
    opacity: 1;
    transform: none;
  }

  .js .founders.is-unlocked .rule {
    transform: scaleX(1);
  }
}

/* ---------- Investments row ---------- */

.holding {
  display: grid;
  gap: 16px;
  margin-top: clamp(56px, 7vw, 96px);
}

.holding__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.holding__text {
  max-width: 52ch;
  margin-top: 14px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .holding {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }

  .holding > .eyebrow {
    grid-column: 1 / span 4;
    padding-top: 0.9em;
  }

  .holding > div {
    grid-column: 6 / -1;
  }
}

/* Keep founder names level when one role line wraps */
@media (min-width: 600px) {
  .founder .eyebrow {
    min-height: 3em;
  }
}
