/* ==========================================================================
   Business Motivation Daily — Coming Soon
   Editorial, cinematic, understated.
   ========================================================================== */

:root {
  --color-bg: #0c0c0c;
  --color-bg-elevated: #141414;
  --color-surface: #1a1a1a;
  --color-text: #f2ede6;
  --color-text-muted: rgba(242, 237, 230, 0.68);
  --color-text-faint: rgba(242, 237, 230, 0.42);
  --color-accent: #b8956c;
  --color-accent-soft: rgba(184, 149, 108, 0.18);
  --color-rule: rgba(242, 237, 230, 0.12);
  --color-rule-strong: rgba(242, 237, 230, 0.22);

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --content-max: 72rem;
  --measure: 38rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 900ms;

  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 200ms ease, opacity 200ms ease;
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.875rem;
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-sm);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease,
    backdrop-filter 300ms ease;
}

.site-header.is-scrolled {
  background: rgba(12, 12, 12, 0.82);
  border-bottom-color: var(--color-rule);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.site-header__brand {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-header__status {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* --------------------------------------------------------------------------
   Typography primitives
   -------------------------------------------------------------------------- */

.eyebrow,
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-body {
  max-width: var(--measure);
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Hero — full-bleed first viewport
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(4rem, 8vw, 5.75rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06) translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 12, 0.55) 0%,
      rgba(12, 12, 12, 0.35) 35%,
      rgba(12, 12, 12, 0.72) 70%,
      rgba(12, 12, 12, 0.94) 100%
    ),
    linear-gradient(
      90deg,
      rgba(12, 12, 12, 0.55) 0%,
      rgba(12, 12, 12, 0.15) 55%,
      rgba(12, 12, 12, 0.35) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero__title {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__lede {
  max-width: 28rem;
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: var(--space-lg);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
}

.status-pill__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 var(--color-accent-soft);
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--color-accent-soft);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 8px transparent;
    opacity: 0.85;
  }
}

.scroll-indicator {
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(1.75rem, 4vw, 2.75rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text-faint);
}

.scroll-indicator:hover {
  color: var(--color-text-muted);
}

.scroll-indicator__line {
  width: 1px;
  height: 3.25rem;
  background: linear-gradient(
    180deg,
    transparent,
    var(--color-text-faint) 30%,
    var(--color-text-muted)
  );
  transform-origin: top center;
  animation: scroll-line 2.4s var(--ease-out) infinite;
}

.scroll-indicator__label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0.35);
    opacity: 0.35;
  }
  45% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.35);
    opacity: 0.35;
  }
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.intro {
  padding: clamp(4.5rem, 9vw, 6.75rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(4rem, 8vw, 6rem);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  max-width: var(--content-max);
  margin: 0 auto;
  align-items: end;
}

@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

.intro__copy .section-title {
  margin-top: var(--space-sm);
  max-width: 12ch;
}

.intro__figure {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 28rem;
  background: var(--color-surface);
}

@media (min-width: 900px) {
  .intro__figure {
    aspect-ratio: 5 / 6;
    max-height: 34rem;
  }
}

.intro__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 1.2s var(--ease-out);
}

.intro__figure picture {
  display: block;
  width: 100%;
  height: 100%;
}

.intro__figure:hover img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Themes — editorial list, not cards
   -------------------------------------------------------------------------- */

.themes {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(4.5rem, 9vw, 7rem);
}

.themes__header {
  max-width: var(--content-max);
  margin: 0 auto var(--space-lg);
}

.themes__list {
  max-width: var(--content-max);
  margin: 0 auto;
  border-top: 1px solid var(--color-rule);
}

.theme {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--color-rule);
  transition: padding-left 400ms var(--ease-out);
}

@media (min-width: 700px) {
  .theme {
    grid-template-columns: 4.5rem 1fr;
    align-items: baseline;
  }

  .theme:hover {
    padding-left: 0.75rem;
  }
}

.theme__index {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-text-faint);
  padding-top: 0.55rem;
}

.theme__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 250ms ease;
}

.theme:hover .theme__title {
  color: var(--color-accent);
}

.theme__copy {
  max-width: 28rem;
  margin-top: 0.65rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Editorial statement — full-bleed photo + quote
   -------------------------------------------------------------------------- */

.statement {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(85svh, 44rem);
  padding: var(--space-2xl) clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
}

.statement__media {
  position: absolute;
  inset: 0;
}

.statement__media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.statement__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08) translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.statement__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 12, 0.55) 0%,
      rgba(12, 12, 12, 0.68) 50%,
      rgba(12, 12, 12, 0.78) 100%
    );
}

.statement__quote {
  position: relative;
  z-index: 1;
  max-width: min(26ch, 90vw);
  text-align: center;
}

.statement__quote p {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.8vw, 4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  background: var(--color-bg-elevated);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 110s linear infinite;
}

.marquee__text {
  flex-shrink: 0;
  padding-right: 0.35em;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text-faint);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* With 4 identical segments, -50% loops cleanly on the first half */

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

.site-footer {
  padding: clamp(3.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 700px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-md);
  }
}

.site-footer__primary {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__brand {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer__status {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-style: italic;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (min-width: 700px) {
  .site-footer__meta {
    align-items: flex-end;
    text-align: right;
  }
}

.site-footer__copy,
.site-footer__contact {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
}

.site-footer__contact a {
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Reveal + entrance animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger hero children via nth-child delays when visible */
.hero__content .reveal:nth-child(1) {
  transition-delay: 80ms;
}
.hero__content .reveal:nth-child(2) {
  transition-delay: 200ms;
}
.hero__content .reveal:nth-child(3) {
  transition-delay: 340ms;
}
.hero__content .reveal:nth-child(4) {
  transition-delay: 460ms;
}

.theme:nth-child(1) {
  transition-delay: 0ms;
}
.theme:nth-child(2) {
  transition-delay: 100ms;
}
.theme:nth-child(3) {
  transition-delay: 200ms;
}

/* Hero image entrance — parallax Y is layered via --parallax-y */
.hero__image {
  animation: hero-zoom 8s var(--ease-out) both;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.14) translate3d(0, var(--parallax-y, 0px), 0);
  }
  to {
    transform: scale(1.06) translate3d(0, var(--parallax-y, 0px), 0);
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__image,
  .statement__image {
    animation: none !important;
    transform: scale(1) !important;
    will-change: auto;
  }

  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1rem;
  }

  .marquee__text:not(:first-child) {
    display: none;
  }

  .marquee__text {
    white-space: normal;
    text-align: center;
    padding: 0 1rem;
  }

  .status-pill__dot,
  .scroll-indicator__line {
    animation: none;
  }

  .intro__figure img {
    transition: none;
  }

  .theme {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Small screens / 375px mobile
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 5.25rem;
  }

  .hero__title {
    font-size: clamp(2.65rem, 12vw, 3.25rem);
    max-width: 11ch;
  }

  .hero__title br {
    display: none;
  }

  .hero__lede {
    max-width: 28rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }

  .intro__copy .section-title {
    max-width: 11ch;
  }

  .intro__figure {
    aspect-ratio: 5 / 6;
    max-height: 24rem;
  }

  .theme {
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .theme__title {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }

  .theme__copy {
    font-size: 1rem;
  }

  .statement {
    min-height: min(78svh, 36rem);
    padding: var(--space-xl) 1.25rem;
  }

  .statement__quote {
    max-width: min(22ch, 92vw);
  }

  .statement__quote p {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
  }

  .marquee__text {
    font-size: 1.55rem;
    letter-spacing: 0.06em;
  }

  .scroll-indicator {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 0.5rem;
  }

  .scroll-indicator__line {
    width: 2rem;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--color-text-muted)
    );
    animation: none;
  }
}

@media (min-width: 481px) and (max-width: 899px) {
  .hero__title {
    max-width: 12ch;
  }

  .statement__quote {
    max-width: min(24ch, 86vw);
  }

  .intro__figure {
    max-height: 26rem;
  }
}
