/* ==========================================================================
   Aurelia Textile — Section Layouts
   ========================================================================== */

section {
  position: relative;
}

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

/* ---- Hero ------------------------------------------------------------------- */
.section--hero {
  position: relative;
  background: var(--bg-hero);
  /* Full viewport while pinned, so the backgrounds read full-bleed. The
     content is centred vertically, so no section padding here — the old
     padding-top stacked on top of .section-inner's own padding and pushed
     the buttons off the bottom of the screen. */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section--hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Just enough to clear the floating pill nav, not a full section's worth. */
.section--hero .section-inner {
  padding-block: clamp(5rem, 10vh, 6.5rem) clamp(1.5rem, 4vh, 3rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-10);
  align-items: center;
}


/* The backgrounds run unveiled now, so legibility comes from a soft halo on
   the type itself rather than from dimming the photography. */
.hero__text .eyebrow,
.hero__title,
.hero__subtext,
.hero__scroll-hint,
.hero__caption {
  text-shadow:
    0 1px 2px rgba(240, 235, 216, 0.85),
    0 2px 10px rgba(240, 235, 216, 0.95),
    0 6px 30px rgba(240, 235, 216, 0.8);
}

.hero__eyebrow {
  margin-bottom: var(--space-5);
}

/* The "Material Futures" line is hidden rather than deleted: the hero
   centres its content vertically, so removing the element outright pulled
   every line below it out of position. Hiding it keeps its box — and so
   every other line stays exactly where it was. */
.hero__eyebrow {
  visibility: hidden;
}

.hero__title {
  font-size: var(--fs-display);
}

.hero__title span {
  display: block;
}

.hero__subtext {
  margin-top: var(--space-6);
  max-width: 42ch;
  font-size: var(--fs-body);
  /* Full-strength heading colour, not the muted body grey — the muted tone
     washed out against the unveiled photography. */
  color: var(--color-aubergine-900);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

/* Three equal buttons on one line need ~780px of row. That only exists once
   the viewport is wide enough, so the single-line treatment is scoped to
   that — below it they keep their natural widths and wrap, rather than
   forcing the grid column wider than the screen.
     - 1.5fr/0.5fr: the right column now holds only the caption and ticks,
       so the text column can take the room.
     - min-width: 0 lets the zero basis actually win; without it each button
       floors at its own text width and they come out unequal. */
@media (min-width: 1320px) {
  .hero__grid {
    grid-template-columns: 1.5fr 0.5fr;
  }

  .hero__actions {
    flex-wrap: nowrap;
  }

  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }
}

.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-label);
}

.hero__scroll-hint::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--text-label);
}

.hero__art {
  position: relative;
}

.hero__art .blob {
  width: clamp(280px, 32vw, 460px);
  aspect-ratio: 1 / 1.05;
  margin-inline: auto;
}

.hero__caption {
  position: absolute;
  right: 0;
  bottom: -12%;
  text-align: right;
  max-width: 220px;
}

.hero__caption-index {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-label);
  margin-bottom: var(--space-1);
}

.hero__caption-text {
  font-size: 0.8rem;
  color: var(--text-body-muted);
}

/* ---- Marquee sits full-bleed between hero and collection ---------------------- */
.section--marquee {
  margin-top: var(--space-10);
}

/* ---- Collection ----------------------------------------------------------------- */
.section--collection {
  background: var(--bg-collection);
}

.collection__header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-8);
}

.collection__title {
  font-size: var(--fs-h2);
}

.collection__desc {
  font-size: var(--fs-body);
  color: var(--text-body-muted);
  text-align: right;
  max-width: 40ch;
  margin-left: auto;
}

.collection__tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--divider);
  margin-bottom: var(--space-8);
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.collection__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--divider);
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-nav);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
}

.collection__footer-note {
  color: var(--text-label);
}

.collection__footer-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-heading);
  font-weight: 700;
  background: none;
  border: none;
}

/* ---- The Lab ---------------------------------------------------------------------- */
.section--lab {
  background: var(--bg-lab);
  overflow: hidden;
}

.lab__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.lab__title {
  font-size: var(--fs-h2);
}

.lab__subtext {
  margin-top: var(--space-6);
  max-width: 44ch;
  color: var(--text-body-muted-inverse);
}

.lab__actions {
  margin-top: var(--space-7);
}

.lab__art {
  position: relative;
  height: clamp(320px, 34vw, 460px);
}

.lab__art .blob {
  position: absolute;
}

.lab__art .blob--a {
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 1.3 / 1;
  top: 6%;
  left: 6%;
  border-radius: 60% 40% 45% 55% / 55% 60% 40% 45%;
}

.lab__art .blob--b {
  width: clamp(200px, 22vw, 320px);
  aspect-ratio: 1.15 / 1;
  bottom: 2%;
  right: 4%;
  border-radius: 45% 55% 55% 45% / 40% 45% 55% 60%;
  animation-delay: -3s;
}

.lab__badge {
  position: absolute;
  top: 0;
  right: 8%;
  width: 44px;
  height: 44px;
  border: 1px solid var(--divider-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-lime-600);
}

.lab__badge svg {
  width: 18px;
  height: 18px;
}

.lab__caption {
  position: absolute;
  bottom: -10%;
  right: 0;
  text-align: right;
  color: var(--text-body-muted-inverse);
  font-size: 0.85rem;
}

.lab__caption-code {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-lime-600);
  margin-top: var(--space-1);
}

/* ---- Measured Wonder (Impact) ------------------------------------------------------- */
.section--impact {
  background: var(--bg-impact);
}

.impact__header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-10);
}

.impact__title {
  font-size: var(--fs-h2);
}

.impact__desc {
  text-align: right;
  max-width: 40ch;
  margin-left: auto;
  color: var(--text-body-muted);
}

.impact__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--divider);
}

.stat {
  border-left: 1px solid var(--divider);
  padding-block: var(--space-6);
}

.stat:first-child {
  border-left: none;
  padding-left: 0;
}

.impact__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--divider);
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-nav);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
}

.impact__footer-link {
  font-weight: 700;
  color: var(--text-heading);
}

/* ---- Material Builder --------------------------------------------------------------- */
.section--builder {
  background: var(--bg-builder);
}

.builder__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-10);
}

.builder__module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  background: var(--color-cream);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.builder__specimen {
  position: relative;
  padding: var(--space-6);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  color: var(--color-aubergine-900);
  overflow: hidden;
}

.builder__specimen .blob {
  position: absolute;
  inset: -10%;
  border-radius: 0;
  filter: none;
  animation: none;
  z-index: -1;
}

.builder__specimen-top {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder__specimen-heading {
  margin-top: auto;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.builder__specimen-desc {
  margin-top: var(--space-3);
  max-width: 32ch;
  font-size: var(--fs-body-sm);
}

.builder__specimen-hint {
  margin-top: var(--space-5);
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.builder__controls {
  padding: var(--space-8) var(--space-8) var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.builder__control-group-label {
  margin-bottom: var(--space-4);
  display: block;
}

.builder__tones {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.builder__finishes {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.builder__cta-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.builder__cta-row .btn {
  width: 100%;
  justify-content: center;
}

.builder__cta-caption {
  font-size: 0.8rem;
  color: var(--text-label);
  text-align: center;
}

/* ---- Footer / Newsletter --------------------------------------------------------------- */
.section--footer {
  background: var(--bg-footer);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
}

.footer__title {
  font-size: var(--fs-h2);
}

.footer__subtext {
  margin-top: var(--space-5);
  max-width: 40ch;
  color: var(--text-body-muted-inverse);
}

.footer__caption {
  margin-top: var(--space-3);
  font-size: 0.8rem;
  color: var(--text-body-muted-inverse);
}

.footer__contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--divider-inverse);
}

.footer__contact dt {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-lime-600);
  margin-bottom: var(--space-2);
}

.footer__contact dd {
  margin: 0;
  color: var(--color-cream-text);
  font-size: 0.9rem;
  line-height: var(--lh-snug);
}

.utility-bar {
  background: var(--bg-utility-bar);
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-block: var(--space-5);
}

.utility-bar__logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-lime-600);
  position: relative;
  border: none;
  flex: none;
  transition: transform var(--dur-fast) var(--ease-out);
}

.utility-bar__logo::after {
  content: '';
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--color-aubergine-900);
}

.utility-bar__logo:hover {
  transform: scale(1.1) rotate(-8deg);
}

.utility-bar__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-body-muted-inverse);
}

.utility-bar__links button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.utility-bar__links a:hover,
.utility-bar__links button:hover {
  color: var(--color-cream-text);
}
