/* ==========================================================================
   Takszu — home page (Figma node 3:6, "takszu-home")
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   Full-bleed photograph, wordmark set on the bottom-left. The header nav sits
   over it, which is why the header is absolutely positioned on this page.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: var(--hero-height);
  padding-block-end: var(--space-80);
  overflow: hidden;
  color: var(--color-text-inverse);
}

/* Keeps the wordmark on the same gutter as the header logo above it. */
.hero__inner {
  position: relative;
  width: 100%;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-24);
  width: 100%;
  max-width: 760px;
  overflow-wrap: break-word;
}

.hero__wordmark {
  font-size: var(--fs-hero);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-hero);
  line-height: var(--lh-flush);
  /* Letter-spacing adds a trailing gap after the final glyph; pull it back so
     the wordmark optically aligns with the copy beneath it. */
  margin-inline-end: calc(-1 * var(--tracking-hero));
}

.hero__kicker {
  font-size: var(--fs-body-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-kicker);
  line-height: normal;
}

.hero__lede {
  max-width: 580px;
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  opacity: var(--opacity-hero-body);
}

/* --------------------------------------------------------------------------
   Materials showcase
   -------------------------------------------------------------------------- */

.materials {
  background-color: var(--color-surface);
  padding-block: var(--space-120);
}

.materials__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-96);
}

.materials__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.materials__title {
  max-width: 680px;
  font-size: var(--fs-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-snug);  /* Figma renders this at ~1.2 */
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Discipline spread
   An image and a text column side by side. The modifier flips the order; the
   markup order stays image-then-text so the reading order is stable.
   -------------------------------------------------------------------------- */

.discipline {
  display: flex;
  align-items: center;
  gap: var(--space-80);
  padding-block: var(--space-48);
}

.discipline--text-first .discipline__figure { order: 2; }

.discipline__figure {
  position: relative;
  flex: 0 0 auto;
  width: 640px;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

/* The glass spread is set smaller than the other two in the design. */
.discipline__figure--glass { width: 598px; }

.discipline__image {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.discipline__figure--glass .discipline__image { height: 342px; }

/* Ember wash over the furnace photograph. */
.discipline__figure--ember::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-ember);
  opacity: var(--opacity-ember);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.discipline__body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-24);
  min-width: 0;
}

.discipline__title {
  font-size: var(--fs-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-tight);
  overflow-wrap: break-word;
}

.discipline__text {
  font-size: var(--fs-body-lg);
  font-weight: var(--weight-medium);
  line-height: var(--lh-normal);
  opacity: var(--opacity-body);
  overflow-wrap: break-word;
}

@media (max-width: 1024px) {
  /* The hero photograph is cropped by the viewport, and below the desktop
     frame width that crop lands on the bright half of the image, where the
     bone-coloured type stops being legible — at both ends, since the header
     overlays the top and the wordmark sits at the bottom. The 1440 frame
     needs no scrim; this one is ours, and applies only under 1024px so the
     approved desktop rendering is untouched. */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
      to bottom,
      rgb(30 28 26 / 0.45) 0%,
      rgb(30 28 26 / 0)    28%,
      rgb(30 28 26 / 0.22) 62%,
      rgb(30 28 26 / 0.62) 100%
    );
    pointer-events: none;
  }

  .hero__inner { z-index: 1; }

  /* Lift the header above the scrim too — it overlays the same photograph. */
  .site-header { z-index: 11; }

  .materials__inner { gap: var(--space-64); }

  .discipline {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-32);
    padding-block: 0;
  }

  /* Image above text on every spread once they stack. */
  .discipline--text-first .discipline__figure { order: 0; }

  .discipline__figure,
  .discipline__figure--glass { width: 100%; }

  .discipline__image,
  .discipline__figure--glass .discipline__image {
    height: auto;
    aspect-ratio: 16 / 11;
  }
}

/* --------------------------------------------------------------------------
   Philosophy statement
   -------------------------------------------------------------------------- */

.philosophy {
  padding-block: var(--space-160);
  background-color: var(--color-surface-inverse);
  color: var(--color-text-inverse);
}

.philosophy__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-48);
  text-align: center;
}

.philosophy__quote {
  max-width: 960px;
  font-size: var(--fs-quote);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-quote);
  line-height: var(--lh-quote);
  overflow-wrap: break-word;
}

.philosophy__credit {
  font-size: var(--fs-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-credit);
  line-height: normal;
  opacity: var(--opacity-credit);
}

@media (max-width: 1024px) {
  .philosophy { padding-block: var(--space-96); }
  .philosophy__inner { gap: var(--space-32); }
}
