/* Additional editorial chapters. Kept separate so the original film and section system remain untouched. */

.founder,
.team,
.portfolio {
  overflow: hidden;
}

.founder h2,
.team h2,
.portfolio h2 {
  margin: 0;
  font-size: clamp(52px, 7.5vw, 124px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.85;
  text-transform: uppercase;
}

.founder h2 span,
.team h2 span,
.portfolio h2 span {
  color: var(--gold-light);
}

/* Founder */

.founder {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 58px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 22%, rgba(215, 184, 66, 0.09), transparent 30%),
    var(--ink-soft);
}

.founder::before {
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: min(280px, 28vw);
  height: 4px;
  background: var(--gold);
  content: "";
}

.founder__header {
  z-index: 2;
  grid-column: 1 / -1;
  margin-bottom: clamp(24px, 3vw, 52px);
}

.founder__header .section-code,
.team__header .section-code,
.portfolio__header .section-code {
  margin-bottom: 28px;
}

.founder__portrait {
  position: relative;
  grid-column: 1 / span 5;
  align-self: start;
  aspect-ratio: 531 / 716;
  margin: 0;
  overflow: hidden;
  background: var(--ink-raised);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.founder__portrait::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 56%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 8, 2, 0.12), transparent 55%);
  content: "";
  pointer-events: none;
}

.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) sepia(0.08) contrast(1.08);
  transition: filter 700ms ease, transform 1.1s var(--ease-slow);
}

.founder__portrait:hover img {
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.025);
}

.founder__portrait figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  left: 22px;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.founder__story {
  grid-column: 7 / -1;
  align-self: center;
  max-width: 720px;
}

.founder__eyebrow {
  margin: 0 0 24px;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.founder__statement {
  margin: 0 0 clamp(28px, 4vw, 50px);
  padding: 0 0 0 clamp(22px, 2.5vw, 38px);
  border-left: 1px solid var(--gold);
}

.founder__statement p {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 38px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.27;
}

.founder__story > p:not(.founder__eyebrow) {
  max-width: 650px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.8;
}

.founder__facts {
  display: grid;
  grid-column: 7 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: end;
  margin-top: clamp(18px, 3vw, 44px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.founder__facts > div {
  display: grid;
  min-height: 132px;
  align-content: center;
  gap: 8px;
  padding: 20px clamp(12px, 1.6vw, 24px);
  border-right: 1px solid var(--line);
}

.founder__facts > div:first-child { padding-left: 0; }
.founder__facts > div:last-child { border-right: 0; }

.founder__facts strong {
  color: var(--gold-light);
  font-size: clamp(28px, 3.2vw, 52px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.founder__facts span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Team */

.team {
  background: var(--paper);
  color: var(--ink);
}

.team__header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.55fr);
  align-items: end;
  gap: clamp(30px, 5vw, 90px);
  margin-bottom: clamp(64px, 8vw, 118px);
}

.team h2 span {
  color: var(--gold-dark);
}

.team__header > p {
  max-width: 410px;
  margin: 0 0 7px auto;
  color: #5f5a50;
  font-size: 14px;
  line-height: 1.8;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(42px, 6vw, 96px) clamp(18px, 2.6vw, 42px);
}

.barber-card {
  min-width: 0;
}

.barber-card:nth-child(3n + 2) {
  transform: translateY(clamp(34px, 5vw, 76px));
}

.barber-card:nth-child(3n + 2).is-visible {
  transform: translateY(clamp(34px, 5vw, 76px));
}

.barber-card figure {
  position: relative;
  aspect-ratio: 2 / 3;
  margin: 0 0 22px;
  overflow: hidden;
  background: #d4d0c8;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.barber-card figure::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 36%;
  height: 4px;
  background: var(--gold-dark);
  content: "";
}

.barber-card figure::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(5, 5, 5, 0.08);
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.18));
  content: "";
  pointer-events: none;
}

.barber-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.05);
  transition: filter 600ms ease, transform 850ms var(--ease-slow);
}

.barber-card:hover img {
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.03);
}

.barber-card > p {
  margin: 0 0 5px;
  color: var(--gold-dark);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.barber-card h3 {
  margin: 0;
  font-size: clamp(27px, 3vw, 46px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.barber-card > span {
  color: #6a655c;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.team__culture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 34px;
  margin-top: clamp(104px, 13vw, 190px);
  padding: clamp(28px, 4vw, 58px) 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.team__culture > p {
  max-width: 880px;
  margin: 0;
  font-size: clamp(22px, 3vw, 44px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.team__culture .text-action {
  min-height: 52px;
  margin: 0;
  white-space: nowrap;
}

.team__culture .text-action i {
  border-color: rgba(5, 5, 5, 0.35);
}

.team__culture .text-action i::before,
.team__culture .text-action i::after {
  background: var(--gold-dark);
}

.team__culture .text-action:focus-visible {
  outline-color: var(--gold-dark);
}

/* Portfolio */

.portfolio {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 45%, rgba(215, 184, 66, 0.06), transparent 31%),
    var(--ink);
}

.portfolio__header {
  margin-bottom: clamp(64px, 8vw, 124px);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(28px, 4vw, 70px);
}

.portfolio-card {
  position: relative;
  margin: 0;
}

.portfolio-card--primary {
  grid-column: 1 / span 7;
}

.portfolio-card--secondary {
  grid-column: 9 / -1;
  margin-top: clamp(90px, 15vw, 220px);
}

.portfolio-card--tertiary {
  grid-column: 5 / span 6;
  margin-top: clamp(30px, 5vw, 78px);
}

.portfolio-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ink-raised);
  filter: saturate(0.76) contrast(1.08);
  transition: filter 700ms ease, transform 1s var(--ease-slow);
}

.portfolio-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 35%;
  background: var(--gold);
  content: "";
}

.portfolio-card:hover > img {
  filter: saturate(0.96) contrast(1.04);
  transform: scale(1.012);
}

.portfolio-card figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.portfolio-card figcaption span {
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.portfolio-card figcaption h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 29px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-transform: uppercase;
}

.portfolio__copy {
  grid-column: 1 / span 3;
  align-self: end;
  margin-top: clamp(34px, 6vw, 92px);
  padding-top: 24px;
  border-top: 1px solid var(--gold-dark);
}

.portfolio__copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.85;
}

@media (max-width: 920px) {
  .founder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder__header { grid-column: 1 / -1; }
  .founder__portrait { grid-column: 1; }
  .founder__story { grid-column: 2; align-self: start; }
  .founder__facts { grid-column: 1 / -1; }

  .team__header {
    grid-template-columns: 1fr;
  }

  .team__header > p {
    max-width: 620px;
    margin: 0;
  }

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

  .barber-card:nth-child(3n + 2),
  .barber-card:nth-child(3n + 2).is-visible {
    transform: none;
  }

  .barber-card:nth-child(even),
  .barber-card:nth-child(even).is-visible {
    transform: translateY(42px);
  }

  .team__culture {
    grid-template-columns: 1fr;
  }

  .team__culture .text-action {
    justify-self: start;
  }

  .portfolio-card--primary { grid-column: 1 / span 7; }
  .portfolio-card--secondary { grid-column: 8 / -1; }
  .portfolio__copy { grid-column: 1 / span 4; }
  .portfolio-card--tertiary { grid-column: 5 / -1; }
}

@media (max-width: 767px) {
  .founder h2,
  .team h2,
  .portfolio h2 {
    font-size: clamp(45px, 14vw, 68px);
  }

  .founder {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .founder__header,
  .founder__portrait,
  .founder__story,
  .founder__facts {
    grid-column: 1;
  }

  .founder__header {
    margin-bottom: 10px;
  }

  .founder__portrait {
    width: min(100%, 510px);
  }

  .founder__story {
    margin-top: 12px;
  }

  .founder__facts {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .founder__facts > div,
  .founder__facts > div:first-child {
    min-height: 92px;
    grid-template-columns: 96px 1fr;
    align-items: center;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .founder__facts > div:last-child { border-bottom: 0; }

  .team__header {
    margin-bottom: 54px;
  }

  .team__grid {
    gap: 54px 12px;
  }

  .barber-card:nth-child(even),
  .barber-card:nth-child(even).is-visible {
    transform: translateY(26px);
  }

  .barber-card figure {
    margin-bottom: 16px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  }

  .barber-card h3 {
    font-size: clamp(23px, 7vw, 32px);
  }

  .barber-card > p,
  .barber-card > span {
    font-size: 7px;
    letter-spacing: 0.11em;
  }

  .team__culture {
    margin-top: 96px;
    gap: 24px;
  }

  .team__culture .text-action {
    width: 100%;
    white-space: normal;
  }

  .portfolio__header {
    margin-bottom: 54px;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .portfolio-card--primary,
  .portfolio-card--secondary,
  .portfolio-card--tertiary,
  .portfolio__copy {
    grid-column: 1;
    margin-top: 0;
  }

  .portfolio-card--secondary {
    width: 78%;
    justify-self: end;
  }

  .portfolio-card--tertiary {
    width: 88%;
  }

  .portfolio__copy {
    width: min(100%, 540px);
    margin: -6px 0 2px;
  }

  .portfolio-card figcaption {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 767px) and (max-height: 520px) and (orientation: landscape) {
  .founder,
  .team,
  .portfolio {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .founder {
    grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1fr);
  }

  .founder__header,
  .founder__facts { grid-column: 1 / -1; }
  .founder__portrait { grid-column: 1; }
  .founder__story { grid-column: 2; margin-top: 0; }

  .founder__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .founder__facts > div,
  .founder__facts > div:first-child {
    min-height: 88px;
    grid-template-columns: 1fr;
    padding: 14px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .founder__statement { margin-bottom: 22px; }

  .team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .barber-card:nth-child(even),
  .barber-card:nth-child(even).is-visible {
    transform: none;
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .portfolio-card--primary,
  .portfolio-card--secondary,
  .portfolio-card--tertiary {
    grid-column: auto;
    width: auto;
  }

  .portfolio__copy {
    grid-column: 1 / -1;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .barber-card:nth-child(3n + 2),
  .barber-card:nth-child(even),
  .barber-card:nth-child(3n + 2).is-visible,
  .barber-card:nth-child(even).is-visible {
    transform: none;
  }
}
