/* Dream Tuesday. Visual language borrowed from Avori's marketing site:
   pure black/white anchors, untinted grays, light display type with tight tracking,
   hairlines instead of boxes, and the photos as the only color. */

@font-face {
  font-family: "Neue Haas DT";
  src: url("/assets/fonts/NeueHaasDisplayLight.woff") format("woff");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas DT";
  src: url("/assets/fonts/NeueHaasDisplayBold.woff") format("woff");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas DT";
  src: url("/assets/fonts/NeueHaasDisplayBlack.woff") format("woff");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Neue Haas DT", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --black: #000;
  --dark: #111;
  --dark-raised: #1d1d1d;
  --white: #fff;
  --light: #f5f5f5;
  --ink: #111;
  --muted-dark: #b9b9b9;
  --faint-dark: #7a7a7a;
  --muted-light: #5e5e5e;
  --line-dark: rgba(255, 255, 255, .18);
  --line-light: rgba(0, 0, 0, .14);
  --max: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --radius: 12px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.dark { background: var(--black); color: var(--white); }
.light { background: var(--white); color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--white);
  transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.header-grid { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.header-grid > .pill { justify-self: end; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.header-nav { display: flex; gap: 34px; }
.header-nav a { text-decoration: none; font-size: 15px; color: var(--muted-dark); transition: color .18s ease; }
.header-nav a:hover { color: var(--white); }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 23px; border-radius: 999px;
  font-size: 15px; font-weight: 400; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill--small { min-height: 42px; padding: 0 19px; }
.pill--light { background: var(--white); color: var(--black); }
.pill--ghost { border: 1px solid rgba(255, 255, 255, .42); color: var(--white); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pill--ghost:hover { border-color: rgba(255, 255, 255, .8); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- week strip (the one Dream Tuesday detail) ---------- */
.week { display: flex; justify-content: center; gap: clamp(12px, 2.4vw, 26px); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint-dark); }
.week li { position: relative; padding-bottom: 12px; }
.week .is-today { color: var(--white); }
.week .is-today::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--white);
}

/* ---------- hero ---------- */
.hero { padding-block: calc(var(--header-h) + 72px) 0; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title {
  margin-top: 40px;
  font-size: clamp(44px, 11.4vw, 118px); font-weight: 900; letter-spacing: -.045em; line-height: .94;
  max-width: 11ch;
}
.hero-lead { margin-top: 28px; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--muted-dark); font-weight: 300; }
.hero .actions { margin-top: 34px; }
.hero-media { margin-top: 72px; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--dark-raised); }
.hero-media img { width: 100%; aspect-ratio: 1452 / 817; object-fit: cover; }

/* ---------- sections ---------- */
.section { padding-block: clamp(100px, 12vw, 160px); }
.hero + .section { margin-top: 0; }
.h2 { font-size: clamp(42px, 5.4vw, 72px); letter-spacing: -.03em; line-height: 1.02; }
.lead { margin-top: 22px; font-size: clamp(18px, 1.5vw, 21px); font-weight: 300; line-height: 1.45; max-width: 32em; }
.light .lead { color: var(--muted-light); }
.dark .lead { color: var(--muted-dark); }
.lead--center { margin-inline: auto; text-align: center; }
.section-head { max-width: 760px; margin-bottom: clamp(52px, 6vw, 84px); }

/* hero sits on black and flows into white; give the hero a black runway under the photo */
.hero { padding-bottom: clamp(100px, 11vw, 150px); }

/* ---------- companies ---------- */
.companies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.company { display: flex; flex-direction: column; }
.company-media {
  display: block; border-radius: var(--radius); overflow: hidden; background: var(--light);
  aspect-ratio: 4 / 5;
}
.company-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.company-media:hover img { transform: scale(1.025); }
.company-media--dark { background: #0b0b0b; display: grid; place-items: center; }
.company-media--dark img { width: 92%; height: auto; object-fit: contain; border-radius: 6px; }
.company-media--dark:hover img { transform: scale(1.02); }
.company-body { padding-top: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.company-logo { height: 30px; width: auto; align-self: flex-start; filter: brightness(0); }
.company-logo--mariah { height: 17px; margin-block: 6px 7px; }
.company-logo--bamboo { height: 28px; margin-block: 1px; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); margin-top: 6px; }
.company-body > p:not(.tag) { font-size: 17px; line-height: 1.5; color: #333; font-weight: 400; }
.text-link {
  margin-top: auto; padding-top: 8px; align-self: flex-start;
  font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { opacity: .6; }

/* ---------- statement ---------- */
.statement { text-align: center; }
.week--center { margin-bottom: 44px; }
.h2--wide { max-width: 19em; margin-inline: auto; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.06; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.story-head { position: sticky; top: calc(var(--header-h) + 32px); }
.rows { border-top: 1px solid var(--line-light); }
.rows li {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px;
  padding-block: 28px; border-bottom: 1px solid var(--line-light);
}
.row-label { font-size: 15px; font-weight: 700; letter-spacing: -.01em; padding-top: 3px; }
.rows p { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; font-weight: 300; letter-spacing: -.01em; }

/* ---------- about ---------- */
.about { padding-top: 0; }
.about-media { border-radius: var(--radius); overflow: hidden; background: var(--light); }
.about-media img { width: 100%; aspect-ratio: 1564 / 880; object-fit: cover; }
.bios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 44px; }
.bio { border-top: 1px solid var(--line-light); padding-top: 24px; }
.bio h3 { font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -.02em; line-height: 1.1; font-weight: 700; }
.bio p { margin-top: 14px; font-size: 18px; line-height: 1.5; color: #333; }
.socials { display: flex; gap: 20px; }
.bio .socials { margin-top: 18px; font-size: 15px; }
.socials a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.socials a:hover { opacity: .6; }

/* ---------- proof ---------- */
.quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(52px, 6vw, 84px); border-top: 1px solid var(--line-dark); }
.quotes figure { padding: 30px 26px 8px 0; display: flex; flex-direction: column; gap: 22px; }
.quotes figure + figure { border-left: 1px solid var(--line-dark); padding-left: 26px; }
.quotes blockquote { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 300; letter-spacing: -.005em; }
.quotes figcaption { margin-top: auto; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------- close ---------- */
.close { text-align: center; padding-top: 0; }
.h2--final { font-size: clamp(42px, 10vw, 104px); font-weight: 900; letter-spacing: -.045em; line-height: .96; }
.close .actions { margin-top: 34px; }

/* ---------- footer ---------- */
.site-footer { padding-block: 72px 36px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:not(.wordmark) { text-decoration: none; color: var(--muted-dark); font-size: 15px; }
.footer-grid a:not(.wordmark):hover { color: var(--white); }
.footer-note { color: var(--faint-dark); font-size: 15px; margin-top: 4px; }
.footer-label { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint-dark); margin-bottom: 4px; }
.footer-base { margin-top: 64px; font-size: 13px; color: var(--faint-dark); }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pill, .company-media img { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .companies { grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 560px; }
  .company-media { aspect-ratio: 5 / 4; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .story-head { position: static; }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes figure:nth-child(3) { border-left: 0; padding-left: 0; }
  .quotes figure:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; --header-h: 66px; }
  body { font-size: 16px; }
  .header-grid { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-media { margin-top: 48px; }
  .hero-media img { aspect-ratio: 4 / 5; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 22px; }
  .bios { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quotes figure, .quotes figure + figure { border-left: 0; padding: 26px 0 8px; }
  .quotes figure + figure { border-top: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .actions .pill { flex: 1 1 auto; }
}
