/* ============================================================================
   Sea Cross V2: About
   A documentary company story in six movements: the place, the experience,
   the founding, the company today, how it works, the head office.
   Type is set at plain width here (the homepage speaks in the expanded cut),
   photographs carry the scale, and only two things move: the photographs of
   the work at their own depths, and the change of state at 2021.
   ========================================================================== */

.page-about { background: var(--sx-paper); }
.ab-crumbs { font-size: .84rem; color: var(--sx-steel); }
.ab-crumbs ol { display: flex; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.ab-crumbs li + li::before { content: "/"; margin-right: .5rem; color: rgba(21, 27, 33, .35); }
.ab-crumbs a { text-decoration: none; }
.ab-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ab-link {
  justify-self: start; font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--sx-signal); text-decoration-thickness: 2px; text-underline-offset: .38em;
}
.ab-link:hover { text-decoration-thickness: 3px; }
.page-about figcaption { font-size: .84rem; line-height: 1.45; color: var(--sx-steel); }
.page-about :is(.ab-exp__img, .ab-detail__img) picture { height: 100%; }
.page-about :is(.ab-exp__img, .ab-plate, .ab-detail__img) img { width: 100%; height: 100%; object-fit: cover; filter: var(--sx-grade); }

/* ------------------------------------------------------------ A. origin */
.ab-origin { position: relative; }
.ab-origin__place { position: relative; height: 84vh; height: 84svh; min-height: 32rem; overflow: hidden; background: var(--sx-night); margin: 0; }
.ab-origin__place picture, .ab-origin__place img { width: 100%; height: 100%; }
.ab-origin__place img { object-fit: cover; object-position: 74% 58%; transform: scale(1.45); transform-origin: 74% 58%; filter: saturate(.82) contrast(1.06) brightness(1.12); }
.ab-origin__place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 27, 33, .6) 0%, rgba(21, 27, 33, 0) 26%); }
.ab-origin__grid {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sx-gap); align-items: end;
  margin-top: calc(-1 * clamp(8rem, 22vh, 13rem));
}
.ab-origin__panel {
  grid-column: 1 / span 8; display: grid; gap: clamp(1.25rem, 3vh, 2rem);
  margin-left: calc(-1 * clamp(1.5rem, 3vw, 3rem)); padding: clamp(1.75rem, 3.5vw, 3.25rem) clamp(1.5rem, 3vw, 3rem) 0;
  background: var(--sx-paper);
}
.ab-origin__title { font-size: clamp(2.4rem, 1.15rem + 3.5vw, 4.7rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; text-wrap: balance; max-width: 20ch; }
.ab-origin__caption { grid-column: 10 / -1; padding-bottom: .4rem; font-size: .82rem; line-height: 1.5; color: var(--sx-steel); }
.ab-origin__caption .sx-meta { display: block; margin-block: .2rem; color: var(--sx-ink); }

/* -------------------------------------------------------- B. experience */
.ab-exp { padding-block: clamp(5rem, 10vw, 9rem) clamp(10rem, 18vw, 16rem); overflow: clip; }
.ab-exp__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sx-gap); }
.ab-exp__far { grid-column: 1 / span 6; grid-row: 1 / span 2; margin: 0; }
.ab-exp__far .ab-exp__img { aspect-ratio: 4 / 5; overflow: hidden; }
.ab-exp__line {
  grid-column: 7 / -1; grid-row: 1; align-self: start; margin-top: clamp(2rem, 6vw, 5rem);
  font-size: clamp(1.75rem, 1rem + 2.2vw, 3.15rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.16; text-wrap: pretty;
}
/* The near photograph overlaps the far one's lower edge: the depth is visible, not only animated. */
.ab-exp__near { position: relative; z-index: 1; grid-column: 6 / span 5; grid-row: 2; align-self: end; margin: 0 0 clamp(-9rem, -10vw, -4rem); }
.ab-exp__near .ab-exp__img { aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(21, 27, 33, .5); }
.ab-exp__near img { object-position: 55% 40%; }
.ab-exp figcaption { margin-top: .7rem; }

/* ----------------------------------------------------------- C. 2021
   Base: the two states one after the other. With scroll timelines, one held
   screen where the ground turns from harbour ink to daylight paper. */
.ab-found { background: var(--sx-paper); overflow-x: clip; }
.ab-found__stage { padding-block: clamp(5rem, 10vw, 9rem); }
.ab-found__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sx-gap); align-items: center; }
.ab-found__year {
  grid-column: 1 / span 5; grid-row: 1 / span 2;
  font-size: clamp(5.5rem, 2.5rem + 10vw, 12.5rem); font-weight: 600; letter-spacing: -.05em; line-height: .82;
  font-variant-numeric: tabular-nums; color: var(--sx-rust);
}
.ab-found__before, .ab-found__after { grid-column: 7 / -1; display: grid; gap: 1.1rem; max-width: 34rem; }
.ab-found__before { margin-bottom: 3rem; }
.ab-found__when { font-size: .9rem; font-weight: 600; color: var(--sx-rust); }
.ab-found__state { font-size: clamp(1.6rem, 1.05rem + 1.6vw, 2.5rem); font-weight: 500; letter-spacing: -.022em; line-height: 1.16; text-wrap: balance; }
.ab-found__after p { max-width: 46ch; font-size: 1.06rem; line-height: 1.6; color: var(--sx-steel); }

@property --ab-k { syntax: "<number>"; inherits: true; initial-value: 1; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ab-found { height: 210vh; height: 210svh; background: var(--sx-night); view-timeline: --found block; view-timeline-inset: 0px; }
    .ab-found__stage {
      position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; display: grid; align-items: center;
      background: rgb(calc(21 + 215 * var(--ab-k)) calc(27 + 205 * var(--ab-k)) calc(33 + 190 * var(--ab-k)));
      animation: ab-state linear both; animation-timeline: --found; animation-range: contain 48% contain 53%;
    }
    @keyframes ab-state { from { --ab-k: 0; } to { --ab-k: 1; } }
    .ab-found__grid { grid-template-rows: 1fr; }
    .ab-found__year {
      grid-row: 1; color: rgb(calc(200 - 42 * var(--ab-k)) calc(203 - 129 * var(--ab-k)) calc(198 - 154 * var(--ab-k)));
      animation: ab-year linear both; animation-timeline: --found; animation-range: contain 0% contain 70%;
    }
    @keyframes ab-year { from { transform: translate3d(5vw, 0, 0); } to { transform: none; } }
    .ab-found__before, .ab-found__after { grid-row: 1; margin: 0; }
    .ab-found__before { color: rgb(calc(200 - 179 * var(--ab-k)) calc(203 - 176 * var(--ab-k)) calc(198 - 165 * var(--ab-k))); animation: ab-out linear both; animation-timeline: --found; animation-range: contain 30% contain 46%; }
    .ab-found__before .ab-found__when { color: rgb(calc(217 - 59 * var(--ab-k)) calc(148 - 74 * var(--ab-k)) calc(107 - 63 * var(--ab-k))); }
    .ab-found__after { animation: ab-in linear both; animation-timeline: --found; animation-range: contain 53% contain 68%; }
    @keyframes ab-out { to { opacity: 0; transform: translate3d(0, -18px, 0); } }
    @keyframes ab-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
  }
}

/* -------------------------------------------------------------- D. today */
/* Generic context plate between 2021 and today: located and credited, then a ruled break before any Sea Cross claim. */
.ab-plate { margin: 0; }
.ab-plate picture { display: block; aspect-ratio: 2000 / 914; max-height: 78vh; overflow: hidden; }
.ab-plate img { object-position: 50% 55%; }
.ab-plate figcaption { margin-top: .8rem; font-size: .82rem; line-height: 1.5; color: var(--sx-steel); }
.ab-plate figcaption span { white-space: nowrap; }

.ab-today { margin-top: clamp(4rem, 8vw, 7rem); padding-block: clamp(4rem, 8vw, 7rem) clamp(5rem, 10vw, 9rem); border-top: 1px solid var(--sx-line); }
.ab-today__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sx-gap); row-gap: 2.5rem; }
.ab-today__lead { grid-column: 1 / span 6; font-size: clamp(1.75rem, 1rem + 2.1vw, 3rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.16; text-wrap: balance; }
.ab-today__evidence { grid-column: 8 / -1; display: grid; gap: 1.4rem; align-content: start; padding-top: .5rem; font-size: .96rem; line-height: 1.55; }
.ab-today__ports { display: grid; gap: .45rem; color: var(--sx-steel); }
.ab-today__ports span { font-weight: 600; color: var(--sx-ink); }
.ab-today__work, .ab-today__std { color: var(--sx-steel); max-width: 44ch; }
.ab-today__marks { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.ab-today__marks img { width: 52px; height: 42px; object-fit: contain; mix-blend-mode: multiply; }

/* --------------------------------------------------------- E. how we work */
.ab-work { padding-block: clamp(5rem, 10vw, 9rem); border-top: 1px solid var(--sx-line); }
.ab-work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sx-gap); row-gap: clamp(3rem, 7vw, 6rem); }
.ab-say { margin: 0; display: grid; gap: 1rem; align-content: start; }
.ab-say blockquote { margin: 0; font-size: clamp(1.6rem, 1rem + 1.9vw, 2.85rem); font-weight: 500; letter-spacing: -.024em; line-height: 1.18; text-wrap: pretty; max-width: 23ch; }
.ab-say--mission { grid-column: 1 / span 7; grid-row: 1; }
.ab-detail { margin: 0; }
.ab-detail--a { grid-column: 9 / span 3; grid-row: 1 / span 2; align-self: start; margin-top: clamp(3rem, 7vw, 6rem); }
.ab-detail--a .ab-detail__img { aspect-ratio: 3 / 4; overflow: hidden; }
.ab-detail--a img { object-position: 52% 35%; }
.ab-detail--b { grid-column: 1 / span 4; grid-row: 3; }
.ab-detail--b .ab-detail__img { aspect-ratio: 4 / 3; overflow: hidden; }
.ab-detail--b img { object-position: 62% 72%; }
.ab-say--vision { grid-column: 6 / span 7; grid-row: 3; align-self: end; }

/* --------------------------------------------------------- F. head office */
/* One spread, about one viewport: the place at ~42% bleeding off the left edge, the location and contacts beside it.
   The text sits low so the quote link shares a baseline band with the coordinates on the image. */
.ab-office {
  display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  min-height: clamp(30rem, 70svh, 42rem); background: var(--sx-paper-2);
  --ab-office-inset: clamp(2.75rem, 7svh, 4.5rem);
}
.ab-office__place { position: relative; margin: 0; overflow: hidden; background: var(--sx-night); }
.ab-office__place picture, .ab-office__place img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-office__place img { object-fit: cover; object-position: 72% 62%; transform: scale(1.75); transform-origin: 72% 62%; filter: saturate(.8) contrast(1.05) brightness(1.12); }
.ab-office__place figcaption {
  position: absolute; right: clamp(1rem, 2vw, 1.75rem); bottom: var(--ab-office-inset);
  color: var(--sx-paper); font-size: .84rem; text-shadow: 0 1px 2px rgba(21, 27, 33, .6);
}
.ab-office__text {
  align-self: end; display: grid; justify-items: start;
  padding: var(--ab-office-inset) var(--sx-gutter) var(--ab-office-inset) clamp(2.5rem, 6vw, 6.5rem);
}
/* The rule under the address runs out to the gutter, tying the column to the page edge; the text keeps its own measure. */
.ab-office__title { max-width: 16ch; font-size: clamp(2.1rem, 1.2rem + 2.2vw, 3.5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.ab-office__addr { margin-top: .9rem; font-size: clamp(1.05rem, .95rem + .3vw, 1.25rem); line-height: 1.4; color: var(--sx-ink); }
.ab-office__lines {
  display: grid; gap: .45rem; width: 100%; margin-top: clamp(1.75rem, 4svh, 2.5rem); padding-top: clamp(1.25rem, 3svh, 1.75rem);
  border-top: 1px solid var(--sx-line); font-style: normal;
}
.ab-office__lines p { display: flex; gap: 1rem; align-items: baseline; color: var(--sx-steel); font-size: .95rem; }
.ab-office__lines p span { min-width: 7.5rem; }
.ab-office__lines a { color: var(--sx-ink); text-decoration: none; }
.ab-office__lines a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ab-office__mail {
  justify-self: start; margin-bottom: .55rem; font-size: clamp(1.15rem, 1rem + .45vw, 1.4rem); font-weight: 600; letter-spacing: -.015em;
  text-decoration: underline !important; text-decoration-color: var(--sx-teal) !important; text-decoration-thickness: 2px !important; text-underline-offset: .22em;
}
.ab-office .ab-link { margin-top: clamp(1.75rem, 4svh, 2.5rem); }

/* --------------------------------------------- motion: depth of the work
   The two photographs travel at different rates past the sentence, so the
   experience reads as something seen from inside the work, not a caption. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ab-exp__far { animation: ab-far linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .ab-exp__near { animation: ab-near linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes ab-far { from { transform: translate3d(0, 40px, 0); } to { transform: translate3d(0, -40px, 0); } }
    @keyframes ab-near { from { transform: translate3d(0, 150px, 0); } to { transform: translate3d(0, -150px, 0); } }
  }
}

/* -------------------------------------------------------------- tablet */
@media (max-width: 1080px) {
  .ab-origin__panel { grid-column: 1 / span 10; }
  .ab-origin__caption { grid-column: 1 / span 8; grid-row: 2; padding-top: 1rem; }
  .ab-exp__far { grid-column: 1 / span 7; }
  .ab-exp__line { grid-column: 1 / -1; grid-row: auto; margin-top: 3rem; }
  .ab-exp__near { grid-column: 7 / -1; grid-row: auto; margin-bottom: 0; }
  .ab-today__lead, .ab-today__evidence { grid-column: 1 / -1; }
  .ab-office { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
}

/* --------------------------------------------------------------- phone */
@media (max-width: 760px) {
  .ab-origin__place { height: 64svh; min-height: 0; }
  .ab-origin__place img { transform: scale(1.3); }
  .ab-origin__grid { grid-template-columns: minmax(0, 1fr); margin-top: -5.5rem; }
  .ab-origin__panel { grid-column: 1; margin-left: calc(-1 * var(--sx-gutter)); margin-right: 2.5rem; padding: 1.5rem var(--sx-gutter) 0; }
  .ab-origin__title { font-size: clamp(2.05rem, 8.8vw, 2.6rem); }
  .ab-origin__caption { grid-column: 1; }
  .ab-exp__grid, .ab-found__grid, .ab-today__grid, .ab-work__grid { grid-template-columns: minmax(0, 1fr); }
  .ab-exp__far, .ab-exp__line, .ab-exp__near, .ab-today__lead, .ab-today__evidence,
  .ab-say--mission, .ab-say--vision, .ab-detail--a, .ab-detail--b { grid-column: 1; grid-row: auto; }
  .ab-exp__far { margin-right: 2.5rem; }
  .ab-exp__line { margin-top: 2.5rem; font-size: 1.6rem; }
  .ab-exp__near { width: 72%; justify-self: end; margin: -3rem 0 0; }
  .ab-exp__line { order: -1; }
  .ab-exp { padding-bottom: 5rem; }
  .ab-found__year { grid-column: 1; grid-row: auto; font-size: clamp(5rem, 28vw, 7.5rem); margin-bottom: 1.5rem; }
  .ab-found__before, .ab-found__after { grid-column: 1; }
  .ab-plate picture { aspect-ratio: 4 / 3; }
  .ab-detail--a { width: 62%; justify-self: end; margin-top: 0; }
  .ab-detail--b { width: 74%; }
  /* Phone: the place as a band, then heading, contacts and the link in one run. */
  .ab-office { grid-template-columns: minmax(0, 1fr); min-height: 0; --ab-office-inset: 1rem; }
  .ab-office__place { aspect-ratio: 16 / 10; }
  .ab-office__text { padding: 2rem var(--sx-gutter) 3.5rem; }
  .ab-office__title { max-width: none; }
  .ab-office__lines p span { min-width: 6.75rem; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  @supports (animation-timeline: view()) {
    .ab-found__grid { grid-template-rows: auto 1fr; align-content: center; }
    .ab-found__year { grid-row: 1; }
    .ab-found__before, .ab-found__after { grid-row: 2; align-self: start; }
    @keyframes ab-near { from { transform: translate3d(0, 70px, 0); } to { transform: translate3d(0, -70px, 0); } }
  }
}
