:root {
  color-scheme: dark;
  --red: #ff131a;
  --background: #080808;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: #f4f3ef;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

.hero {
  --hero-edge: clamp(16px, 2cqw, 40px);
  --hero-text-size: 6.1cqw;
  position: relative;
  inline-size: 100%;
  block-size: 100svh;
  min-block-size: 540px;
  container-type: size;
  isolation: isolate;
  background: #bfc0c3;
}

.hero-photo {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 20% center;
  z-index: -1;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: var(--hero-edge);
  transform: translateY(-50%);
  margin: 0;
  color: var(--red);
  font-size: var(--hero-text-size);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  inline-size: 10%;
  aspect-ratio: 2058 / 1545;
}

.brand span {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  background: var(--red);
  mask: url("assets/nutribyme-logo.svg") center / contain no-repeat;
  -webkit-mask: url("assets/nutribyme-logo.svg") center / contain no-repeat;
}

.hero-nav {
  position: absolute;
  top: 50%;
  right: var(--hero-edge);
  transform: translateY(-50%);
  block-size: 49cqh;
  inline-size: max-content;
  max-inline-size: 36%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  color: var(--red);
  font-size: var(--hero-text-size);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.hero-nav a {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding-block: 0.35cqw;
  text-decoration: none;
  -webkit-tap-highlight-color: rgb(255 19 26 / 20%);
}

.hero-nav span {
  display: block;
  transition: transform 180ms ease, opacity 180ms ease;
}

@media (hover: hover) {
  .hero-nav a:hover span { transform: translateX(0.35cqw); opacity: 0.74; }
}

.hero-nav a[aria-current="location"] span { text-decoration: underline; text-underline-offset: 0.12em; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.compatibility-strip {
  --ticker-gap: clamp(40px, 5vw, 96px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: clamp(16px, 2.4vw, 48px);
  block-size: 96px;
  padding-inline: clamp(16px, 2vw, 40px);
  background: #080808;
  color: #f4f3ef;
}

.compatibility-strip h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.compatibility-window {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.compatibility-track { display: flex; gap: var(--ticker-gap); }

.compatibility-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-around;
  gap: var(--ticker-gap);
  min-inline-size: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: compatibility-drift 52s linear infinite;
}

.compatibility-group li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(18px, 1.45vw, 26px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.4;
  white-space: nowrap;
}

.compatibility-group small { color: #aaa; font-size: 14px; font-weight: 400; letter-spacing: 0; }

.compatibility-toggle {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}

.compatibility-toggle:hover { color: #fff; background: #202020; }
.compatibility-toggle:focus-visible { outline: 2px solid #f4f3ef; outline-offset: 2px; }
.compatibility-toggle svg { inline-size: 24px; block-size: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.compatibility-toggle .play-icon { display: none; }
.is-paused .compatibility-group { animation-play-state: paused; }
.is-paused .pause-icon { display: none; }
.is-paused .play-icon { display: block; }

@keyframes compatibility-drift {
  to { transform: translateX(calc(-100% - var(--ticker-gap))); }
}

@media (max-width: 600px) {
  .compatibility-strip { block-size: 80px; gap: 12px; }
  .compatibility-strip h2 { max-inline-size: 56px; white-space: normal; }
  .compatibility-group li { flex-direction: column; align-items: flex-start; gap: 0; }
}

.statement {
  position: relative;
  inline-size: 100%;
  block-size: 100svh;
  min-block-size: 540px;
  container-type: size;
  isolation: isolate;
  background: #bfc0c3;
}

.statement-photo {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.statement-title {
  position: absolute;
  top: 50%;
  left: clamp(16px, 2cqw, 40px);
  right: clamp(16px, 2cqw, 40px);
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(4px, 1cqw, 24px);
  margin: 0;
  color: var(--red);
  font-size: clamp(14px, 2.65cqw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.statement-title span { white-space: nowrap; }

.topics { max-inline-size: 1122px; margin-inline: auto; }
.topic { min-block-size: 65svh; padding: clamp(40px, 8vw, 100px) clamp(24px, 8vw, 100px); }
.topic-category { margin: 0 0 28px; font-size: 15px; font-weight: 700; color: var(--red); }
.topic h2 { max-inline-size: 800px; margin: 0 0 30px; font-size: clamp(40px, 7vw, 76px); line-height: 0.98; letter-spacing: -0.055em; }
.topic h2:focus { outline: none; }
.topic > p:not(.topic-category) { max-inline-size: 560px; margin: 0 0 48px; color: #b9b9b9; font-size: clamp(18px, 2.5vw, 24px); line-height: 1.5; }
.back-link { font-size: 15px; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.back-link span { margin-left: 12px; color: var(--red); }

.section-label {
  margin: 0;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mission, .founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-block-size: 100svh;
  background: var(--background);
}

.mission-visual { position: relative; min-inline-size: 0; margin: 0; background: #f64b30; }
.mission-visual img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center; }

.founder-visual { position: relative; min-inline-size: 0; margin: 0; overflow: hidden; background: #c6c6c6; }
.founder-photo { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.12); transform-origin: 50% 35%; }

.mission-copy, .founder-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-inline-size: 0;
  padding: clamp(48px, 5vw, 96px);
}

.mission h2, .founder h2 {
  margin: 0 0 32px;
  font-size: clamp(3.25rem, 5.6vw, 6.5rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.mission h2 span, .founder h2 span { display: block; white-space: nowrap; }
.mission-lede, .founder-lede { margin: 0 0 24px; font-size: clamp(1.25rem, 1.7vw, 1.75rem); line-height: 1.3; letter-spacing: -0.025em; }
.mission-body, .founder-body { max-inline-size: 34rem; color: #b9b9b9; font-size: clamp(1.125rem, 1.3vw, 1.375rem); line-height: 1.55; }
.mission-body p, .founder-body p { margin: 0; }
.mission-body p + p, .founder-body p + p { margin-block-start: 20px; }
.founder-contact { display: inline-flex; align-items: center; min-block-size: 44px; margin-block-start: 28px; font-size: 1rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.founder-contact:hover { color: var(--red); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(32px, 5vw, 96px);
  padding: clamp(64px, 6vw, 112px) clamp(24px, 5vw, 96px) 24px;
  background: var(--background);
  border-block-start: 1px solid #282828;
}

.contact .section-label { margin-block-end: 28px; }
.contact h2 { max-inline-size: 8ch; margin: 0; font-size: clamp(4rem, 8.5vw, 9.5rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.06em; }
.contact-details { min-inline-size: 0; padding-block-start: 44px; }
.contact-details p { margin: 0 0 32px; color: #b9b9b9; font-size: clamp(1.125rem, 1.5vw, 1.5rem); line-height: 1.5; }
.contact-email { display: inline-block; max-inline-size: 100%; padding-block: 8px; font-size: clamp(1.125rem, 2.1vw, 2rem); font-weight: 600; letter-spacing: -0.03em; text-decoration-thickness: 1px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--red); }
.contact-footer { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 24px; margin-block-start: clamp(64px, 6vw, 112px); padding-block-start: 20px; border-block-start: 1px solid #282828; color: #aaa; font-size: 0.875rem; line-height: 1.4; }
.contact-footer a { display: flex; align-items: center; min-block-size: 44px; text-underline-offset: 4px; }
.footer-brand { flex: 0 0 auto; }
.footer-brand img { display: block; inline-size: 48px; block-size: auto; filter: invert(1); }

@media (max-width: 899px) {
  .mission, .founder { grid-template-columns: minmax(0, 1fr); min-block-size: 0; }
  .mission-visual, .founder-visual { aspect-ratio: 4 / 5; }
  .founder-visual { grid-row: 1; }
  .founder-copy { grid-row: 2; }
  .mission-copy, .founder-copy { padding: clamp(48px, 8vw, 72px) 24px; }
  .mission h2, .founder h2 { font-size: clamp(2.5rem, 10.6vw, 4.5rem); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact h2 { font-size: clamp(4rem, 12vw, 7rem); }
  .contact-details { padding-block-start: 40px; }
  .contact-footer { margin-block-start: 64px; }
}

.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

html[data-export="poster"] { scroll-behavior: auto; }
html[data-export="poster"] body { inline-size: 1920px; }
html[data-export="poster"] .hero {
  --hero-edge: clamp(16px, 2cqw, 40px);
  --hero-text-size: min(5.2cqw, 7cqh);
  inline-size: 1920px;
  block-size: 1080px;
  min-block-size: 0;
}
html[data-export="poster"] .hero-photo { object-position: 30% center; }
html[data-export="poster"] .brand { inline-size: clamp(54px, 10.8cqh, 140px); }
html[data-export="poster"] .hero-nav { max-inline-size: 34%; }
html[data-export="poster"] .hero-nav a { min-block-size: max(28px, 1.05em); padding-block: 0; }
html[data-export="poster"] .statement { inline-size: 1920px; block-size: 1080px; min-block-size: 0; }
html[data-export="poster"] .compatibility-group { animation: none; }
html[data-export="poster"] .mission, html[data-export="poster"] .founder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-block-size: 1080px; }
html[data-export="poster"] .mission-visual, html[data-export="poster"] .founder-visual { aspect-ratio: auto; grid-row: auto; }
html[data-export="poster"] .mission-copy, html[data-export="poster"] .founder-copy { padding: 96px; grid-row: auto; }
html[data-export="poster"] .mission h2, html[data-export="poster"] .founder h2 { font-size: 104px; }
html[data-export="poster"] .mission-lede, html[data-export="poster"] .founder-lede { font-size: 28px; }
html[data-export="poster"] .mission-body, html[data-export="poster"] .founder-body { font-size: 22px; }
html[data-export="poster"] .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 96px; padding: 112px 96px 24px; }
html[data-export="poster"] .contact h2 { font-size: 152px; }
html[data-export="poster"] .contact-details { padding-block-start: 44px; }
html[data-export="poster"] .contact-details p { font-size: 24px; }
html[data-export="poster"] .contact-email { font-size: 32px; }
html[data-export="poster"] .contact-footer { margin-block-start: 112px; }

@media (min-aspect-ratio: 1/1) {
  .statement { min-block-size: 0; }
  .hero { --hero-text-size: min(5.2cqw, 7cqh); min-block-size: 0; }
  .hero-photo { object-position: 30% center; }
  .brand { inline-size: clamp(54px, 10.8cqh, 140px); }
  .hero-nav {
    max-inline-size: 34%;
  }
  .hero-nav a { min-block-size: max(28px, 1.05em); padding-block: 0; }
}

@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 3/2) {
  .hero { --hero-edge: clamp(16px, 1.5cqw, 32px); }
  .hero-photo { object-position: 28% center; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .hero-nav span { transition: none; }
  .compatibility-strip { grid-template-columns: auto minmax(0, 1fr); }
  .compatibility-window { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .compatibility-group { justify-content: flex-start; animation: none; }
  .compatibility-group[aria-hidden="true"], .compatibility-toggle { display: none; }
}
