/* About page (layout modelled on rapideyachtgroup.com/about) */

/* ---- Page hero ---- */
.phero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; background: var(--color-dark); color: #fff; padding: calc(var(--header-height) + 6rem) 0 clamp(3rem, 6vw, 6rem); }
.phero__bg { position: absolute; left: 0; right: 0; top: -10%; height: 120%; will-change: transform; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,22,.55) 0%, rgba(20,20,22,.25) 35%, rgba(20,20,22,.88) 100%); }
.phero .hero__lines { z-index: 1; opacity: 1; }
.phero__inner { position: relative; z-index: 2; }
.crumbs { display: flex; gap: .7rem; margin-bottom: 1.4rem; font: 500 .9rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.crumbs a { color: var(--color-accent); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: rgba(255,255,255,.65); }
.phero__title { font-size: clamp(3.2rem, 9vw, 9.5rem); line-height: .95; }
.phero__text { margin-top: 1.6rem; max-width: 34rem; font-size: clamp(1rem, 1.2vw, 1.25rem); line-height: 1.45; color: rgba(255,255,255,.88); }

/* ---- Shared section head: label left, big title right ---- */
.ahead { display: grid; grid-template-columns: 26% 1fr; align-items: start; gap: 2rem; margin-bottom: clamp(2.5rem, 6vw, 6rem); }
.ahead .eyebrow { font-size: 1.15rem; letter-spacing: 0; margin: .6rem 0 0; max-width: 16rem; line-height: 1.2; }
.ahead__title { font-size: clamp(2.6rem, 6.5vw, 7rem); line-height: .98; }

/* ---- Story timeline: big image + year left, text right ---- */
.story { padding-bottom: 0; }
.story__list { border-top: 1px solid var(--color-border); }
.chapter { display: grid; grid-template-columns: 49.5% 1fr; border-bottom: 1px solid var(--color-border); }
.chapter__media { position: relative; min-height: clamp(380px, 46vw, 760px); overflow: hidden; background: var(--color-dark); }
.chapter__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.chapter:hover .chapter__media img { transform: scale(1); }
.chapter__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,20,22,.7)); }
.chapter__year { position: absolute; z-index: 1; left: var(--container-padding); bottom: clamp(1rem, 2.5vw, 2.5rem); font-family: var(--font-display); font-weight: var(--display-weight); font-style: italic; font-size: clamp(4rem, 10vw, 11rem); line-height: .9; color: #fff; letter-spacing: -.02em; }
.chapter__body { align-self: center; padding: clamp(2.5rem, 5vw, 6rem) var(--container-padding) clamp(2.5rem, 5vw, 6rem) clamp(2rem, 4.5vw, 6rem); max-width: 46rem; }
.chapter__body h3 { font-size: clamp(1.6rem, 2.6vw, 2.8rem); margin-bottom: 1.6rem; }
.chapter__body p { color: var(--color-text-muted); font-size: clamp(1rem, 1.1vw, 1.15rem); }
.chapter__body p + p { margin-top: 1rem; }
.chapter:nth-child(even) .chapter__media { order: 2; }
.chapter:nth-child(even) .chapter__body { justify-self: end; padding-left: var(--container-padding); padding-right: clamp(2rem, 4.5vw, 6rem); }

/* ---- Mission ---- */
.mission { overflow: hidden; }
.mission .hero__lines { opacity: 1; }
.mission__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 26% 1fr; gap: 2rem 0; }
.mission__inner .eyebrow { font-size: 1.15rem; letter-spacing: 0; margin: .5rem 0 0; }
.mission__quote { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-style: italic; text-transform: uppercase; font-size: clamp(1.6rem, 3.2vw, 3.6rem); line-height: 1.08; max-width: 62rem; }
.mission__who { grid-column: 2; display: flex; align-items: center; gap: 1.2rem; margin: clamp(1rem, 2vw, 2rem) 0 0; }
.mission__who img { width: 72px; height: 72px; object-fit: cover; filter: grayscale(1); }
.mission__who b { display: block; font-size: 1.2rem; text-transform: uppercase; }
.mission__who span { color: var(--color-accent); font: 500 .85rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }

/* ---- Team ---- */
.team__lead { margin: calc(clamp(2.5rem, 6vw, 6rem) * -.5) 0 clamp(2.5rem, 5vw, 5rem) 26%; max-width: 40rem; font-weight: 600; text-transform: uppercase; font-size: clamp(1rem, 1.3vw, 1.35rem); line-height: 1.25; color: var(--color-text-muted); }
.team__list { border-top: 1px solid var(--color-border); }
.member { display: grid; grid-template-columns: 26% minmax(0, 23.5%) 1fr; gap: 0; align-items: start; padding: clamp(1.5rem, 3vw, 3rem) var(--container-padding); border-bottom: 1px solid var(--color-border); transition: background .5s var(--ease-out); }
.member:hover { background: #f4f4f4; }
.member__photo { width: clamp(150px, 16vw, 300px); aspect-ratio: 4 / 5; overflow: hidden; background: #e2e2e2; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform 1s var(--ease-out); }
.member:hover .member__photo img { filter: none; transform: scale(1.04); }
.member__name h3 { font-size: clamp(1.4rem, 2.2vw, 2.4rem); }
.member__name span { display: block; margin-top: .6rem; color: var(--color-accent); font: 500 .9rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.member__bio { color: var(--color-text-muted); max-width: 40rem; font-size: clamp(1rem, 1.05vw, 1.1rem); }
.member__bio .link-arrow { margin-top: 1rem; color: var(--color-text); }

/* ---- Contacts ---- */
.acontacts .ahead__title { font-size: clamp(1.8rem, 3.6vw, 3.8rem); max-width: 50rem; }
.acontacts__grid { display: grid; grid-template-columns: 26% repeat(3, 1fr); margin: 0; border-top: 1px solid var(--color-border); }
.acontacts__grid div { padding: 2rem 2rem 2rem 0; }
.acontacts__grid div:first-child { grid-column: 2; }
.acontacts__grid dt { color: var(--color-accent); font: 500 .85rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.acontacts__grid dd { margin: 0; font-size: clamp(1.05rem, 1.3vw, 1.4rem); line-height: 1.35; }
.acontacts__grid a:hover { color: var(--color-accent); }
.acontacts__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-left: 26%; margin-top: 2rem; }

/* header on this page: start small (no giant hero logo) */
.page-about { --logo-width: clamp(220px, 30vw, 560px); }

@media (max-width: 960px) {
  .ahead, .mission__inner { grid-template-columns: 1fr; gap: 1rem; }
  .mission__who { grid-column: 1; }
  .team__lead, .acontacts__cta { margin-left: 0; }
  .team__lead { margin-top: 0; }
  .chapter { grid-template-columns: 1fr; }
  .chapter:nth-child(even) .chapter__media { order: 0; }
  .chapter__body, .chapter:nth-child(even) .chapter__body { padding: 2.5rem var(--container-padding); justify-self: start; }
  .chapter__media { min-height: 62vw; }
  .member { grid-template-columns: auto 1fr; column-gap: 1.5rem; row-gap: 1rem; }
  .member__photo { grid-row: span 2; width: clamp(110px, 28vw, 180px); }
  .acontacts__grid { grid-template-columns: 1fr; }
  .acontacts__grid div:first-child { grid-column: 1; }
  .acontacts__grid div { border-bottom: 1px solid var(--color-border); padding: 1.4rem 0; }
}
@media (max-width: 540px) {
  .member { grid-template-columns: 1fr; }
  .member__photo { grid-row: auto; width: 100%; max-width: 280px; }
}

/* About: long hero heading and intro text */
.phero__title--long { font-size: clamp(2.6rem, 6.6vw, 7.2rem); max-width: 16ch; line-height: .98; }
.aintro { padding-bottom: clamp(2rem, 4vw, 4rem); }


/* ---- Our story like rapideyachtgroup.com/about: year | photo | text on one row, thin lines between rows ---- */
.story__list { border-top: 1px solid #e3e1de; }
.chapter { grid-template-columns: 26% 30% 1fr; border-bottom: 1px solid #e3e1de; align-items: stretch; }
.chapter__year { position: static; align-self: center; padding-left: var(--container-padding); font-size: clamp(4rem, 9vw, 9.5rem); line-height: .9; color: var(--color-text); }
.chapter__media { min-height: clamp(340px, 30vw, 560px); }
.chapter__media::after { display: none; }
.chapter__body, .chapter:nth-child(even) .chapter__body { align-self: center; justify-self: start; max-width: 40rem; padding: clamp(2rem, 4vw, 4rem) var(--container-padding) clamp(2rem, 4vw, 4rem) clamp(2rem, 4.5vw, 5.5rem); }
.chapter:nth-child(even) .chapter__media { order: 0; }
.chapter__body h3 { font-size: clamp(1.4rem, 2.2vw, 2.4rem); }
@media (max-width: 960px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter__year { padding: 2rem var(--container-padding) 1rem; font-size: clamp(3.5rem, 18vw, 6rem); }
  .chapter__media { min-height: 62vw; }
  .chapter__body, .chapter:nth-child(even) .chapter__body { padding: 2rem var(--container-padding) 2.5rem; }
}

/* Our story: the photo is revealed when you hover the row (always visible on touch screens) */
@media (hover: hover) and (min-width: 961px) {
  .chapter__media { background: transparent; }
  .chapter__media img { clip-path: inset(0 100% 0 0); transform: scale(1.08); transition: clip-path .8s var(--ease-in-out), transform 1.4s var(--ease-out); }
  .chapter:hover .chapter__media img, .chapter:focus-within .chapter__media img { clip-path: inset(0 0 0 0); transform: scale(1); }
  .chapter { transition: background .5s var(--ease-out); }
  .chapter:hover { background: #f7f7f7; }
}

/* hidden sections stay hidden even if a layout rule sets display */
.team[hidden] { display: none !important; }

/* Our mission: light version */
.mission--light { background: #f7f7f7; color: var(--color-text); }
.mission--light .mission__who b { color: var(--color-text); }
.mission--light .eyebrow, .mission--light .mission__who span { color: #b8860b; }
.mission--light .mission__who img { filter: grayscale(1); }

/* Our mission: quote in the same regular, sentence-case style as the review quotes; no picture */
.mission--light .mission__quote { font-family: var(--font-main); font-style: normal; font-weight: 400; text-transform: none; font-size: clamp(1.6rem, 2.9vw, 3.4rem); line-height: 1.2; letter-spacing: -.025em; max-width: 52rem; }
