/* ==========================================================================
   Sections — homepage-specific layouts
   ========================================================================== */

main {
  padding-top: var(--header-height);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  /* Height of the carbon-to-white fade at the bottom of the hero. */
  --hero-fade: clamp(8.5rem, 6.5rem + 12vw, 20rem); /* ~150px phone, ~300px desktop */
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  /* The hero runs slightly past the fold so the start of the fade is visible
     on load; the text always sits on the dark part above the fade. */
  min-height: calc(100svh - var(--header-height) + var(--hero-fade) * 0.45);
  min-height: max(560px + var(--hero-fade), calc(100svh - var(--header-height) + var(--hero-fade) * 0.45));
  padding-block: var(--space-xl) calc(var(--hero-fade) + clamp(1.5rem, 1rem + 2vw, 3rem));
  background: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}

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

.hero__media img,
.hero__media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero surface: a seamless 3K 2x2 twill carbon fiber tile (generated SVG
   graphic, not a photograph) under a very soft broad light falloff. */
.hero__surface {
  position: absolute;
  inset: 0;
  background-color: #0b0b0b;
  background-image:
    radial-gradient(120% 90% at 72% 18%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%),
    url("../images/hero/carbon-twill-3k.svg");
  background-size: auto, clamp(24px, 2.2vw, 36px) clamp(24px, 2.2vw, 36px);
  background-repeat: no-repeat, repeat;
}

/* Scrim and white veil (see the transition note below). */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 0.72) calc(100% - var(--hero-fade)),
    rgba(0, 0, 0, 0.45) calc(100% - var(--hero-fade) * 0.7),
    rgba(0, 0, 0, 0.12) calc(100% - var(--hero-fade) * 0.45),
    rgba(255, 255, 255, 0.3) calc(100% - var(--hero-fade) * 0.28),
    rgba(255, 255, 255, 0.72) calc(100% - var(--hero-fade) * 0.14),
    rgba(255, 255, 255, 0.94) calc(100% - var(--hero-fade) * 0.05),
    #ffffff 100%);
}

/* Carbon-to-white transition, in two layers:
   1. ::before is a capped color-dodge that lifts the weave from black
      through gray, so the carbon stays visible for most of the transition;
   2. ::after (on top) darkens the texture behind the hero text, then eases
      into a white veil over the last part of the fade.
   The texture is fully covered by white before the About section begins.
   No separate band and no hard edge. */
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: calc(var(--hero-fade) + 1px);
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  background: linear-gradient(180deg,
    #000000 0%,
    #1a1a1a 15%,
    #3c3c3c 30%,
    #636363 46%,
    #858585 62%,
    #9e9e9e 78%,
    #aaaaaa 100%);
}

.hero__content {
  display: grid;
  gap: var(--space-m);
}

.hero .eyebrow {
  color: var(--color-on-dark-2);
}

.hero__title {
  max-width: 11ch;
}

.hero__sub {
  font-size: var(--fs-lede);
  line-height: 1.4;
  color: var(--color-on-dark);
  max-width: 30em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-xs);
}

@media (min-width: 900px) {
  .hero__content {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: end;
    column-gap: var(--grid-gap);
  }

  .hero .eyebrow,
  .hero__title {
    grid-column: 1 / -1;
  }

  .hero__sub {
    grid-column: 1;
  }

  .hero__actions {
    grid-column: 2;
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* About ------------------------------------------------------------------ */

/* The hero's carbon fade already provides the transition space above About. */
#about {
  padding-top: var(--space-l);
}

.about__intro {
  display: grid;
  gap: var(--space-m);
  margin-bottom: var(--space-xl);
}

.about__statement {
  max-width: 24em;
}

.about__body {
  display: grid;
  gap: var(--space-l);
  align-items: start;
}

.about__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.about__media .media:nth-child(2) {
  margin-top: 22%;
}

.about__text {
  display: grid;
  gap: var(--space-l);
}

.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.focus-list li {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--color-line);
}

.focus-list h3 {
  margin-bottom: 0.25rem;
}

.focus-list p {
  color: var(--color-ink-2);
}

@media (min-width: 900px) {
  .about__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 5vw, 6rem);
  }

  .about__text {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

/* Products --------------------------------------------------------------- */

.product {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

.product + .product {
  margin-top: var(--space-group);
}

.product__index {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-brand-deep);
  font-variant-numeric: tabular-nums;
}

.product__text {
  display: grid;
  gap: var(--space-m);
  align-content: start;
}

.product__text p {
  font-size: var(--fs-body-l);
  line-height: var(--lh-body);
  color: var(--color-ink-2);
  max-width: 30em;
  text-wrap: pretty;
}

.product__note {
  font-size: var(--fs-small);
  color: var(--color-muted);
}

@media (min-width: 900px) {
  .product {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 5vw, 6rem);
  }

  .product--reverse .product__media {
    order: 2;
  }

  .product--compact {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .product--compact.product--reverse {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
}

/* Paddle disciplines strip — each tile becomes a link to a future page. */
.disciplines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-xl);
  list-style: none;
  padding: 0;
}

.discipline__name {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 0.9rem;
}

@media (min-width: 900px) {
  .disciplines {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Services --------------------------------------------------------------- */

.services__layout {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 900px) {
  .services__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
  }

  .services__head {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

.services__head {
  display: grid;
  gap: var(--space-m);
}

/* Team strip: "We build paddles. We paddle."
   Phones: one wide photo, then two portrait crops side by side.
   768px+: three photos in one row of equal height. The column fractions
   (4 : 2.25 : 4) match the 4:3, 3:4 and 4:3 photos, so nothing is cropped. */
/* Own white section between Contact and the footer. */
.team-section {
  padding-block: var(--space-group);
}

.team__title {
  text-align: center;
  margin-bottom: var(--space-l);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.team__item--boards {
  grid-column: 1 / -1;
  --ratio: 4 / 3;
}

.team__item--water,
.team__item--briefing {
  --ratio: 4 / 5;
}

.team__title span {
  display: inline-block;
}

/* Phone crops: keep the paddlers, and the standing group with the speaker. */
.team__item--water img {
  object-position: 50% 78%;
}

.team__item--briefing img {
  object-position: 62% 50%;
}

@media (min-width: 768px) {
  .team__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2.25fr) minmax(0, 4fr);
  }

  .team__item--boards {
    grid-column: auto;
  }

  .team__item--boards,
  .team__item--briefing {
    --ratio: 4 / 3;
  }

  /* Takes its height from the row, so all three photos align exactly. */
  .team__item--water {
    aspect-ratio: auto;
  }

  .team__item--water img,
  .team__item--briefing img {
    object-position: 50% 50%;
  }
}

/* Contact ---------------------------------------------------------------- */

/* Compact but generous: headline, text and button on the left; company
   details on the right, bottom-aligned with the button. Stacked on phones. */
#contact {
  padding-block: var(--space-group);
}

.contact__layout {
  display: grid;
  gap: var(--space-l);
}

.contact__head {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 900px) {
  .contact__layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    column-gap: var(--grid-gap);
    align-items: end;
  }
}

.contact__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  max-width: 14ch;
  text-wrap: balance;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* Company details: one quiet column, no dividers. */
.contact__info {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-ink-2);
}

.contact__gap {
  margin-top: 0.75rem;
}

.contact__name {
  font-weight: 500;
  color: var(--color-ink);
}

.contact__link {
  color: var(--color-ink);
  text-underline-offset: 0.2em;
  transition: color var(--duration-fast) var(--ease-out);
}

.contact__link:hover {
  color: var(--color-brand-deep);
  text-decoration: underline;
}

.social--compact {
  margin: 0.35rem 0 0 -7px;
}

.social--compact .social__link {
  width: 32px;
  height: 32px;
}


.disciplines + .product {
  margin-top: var(--space-group);
}

/* Carbon Components: number, title and text above a four-photo gallery
   (same grid as the paddle disciplines). */
.product.product--text {
  grid-template-columns: minmax(0, 1fr);
}

.component-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-l);
  list-style: none;
  padding: 0;
}

.component-strip + .product {
  margin-top: var(--space-group);
}

@media (min-width: 900px) {
  .component-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
