/* About page compositions. Shared navigation, footer and typefaces come from the design system. */
.pg-about main {
  --paper: #faf7f1;
  --sand: #f3ebdd;
  --about-edge: max(var(--inset), calc((100% - 1200px) / 2 + var(--inset)), 7vw);
}
.abx > .container, .abx-cta-sec > .container {
  width: auto; max-width: none; margin-inline: var(--about-edge); padding-inline: 0;
}
.abx-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 10px;
  font: 700 14px/1.4 var(--font-body); letter-spacing: .17em; text-transform: uppercase;
}
.abx-hero .abx-eyebrow::after, .abx-story .abx-eyebrow::after {
  content: ""; width: 36px; height: 2px; background: var(--brass);
}
.abx-story .abx-eyebrow { color: #846226; }
.abx h1, .abx h2, .abx-cta h2 { margin: 0; line-height: 1.08; text-wrap: balance; }
.abx h2 { font-size: clamp(32px, 3.45vw, 46px); }

.main-content > .abx-hero {
  position: relative; isolation: isolate; overflow: hidden; color: white;
  display: grid; align-content: center; min-height: 35.55vw;
  padding-block: clamp(28px, 3vw, 44px);
  background: linear-gradient(90deg, rgb(32 30 24 / 46%), transparent 56%),
    #171612 var(--autosouq-page-hero, url('../images/about-hero-berlin.webp')) 60% center / cover no-repeat;
}
.abx-hero::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; pointer-events: none;
  clip-path: polygon(92% 0, 100% 0, 0 86%, 0 77%); background: var(--brass);
}
.abx-hero > .container { margin-inline-start: calc(var(--about-edge) + clamp(12px, 4vw, 58px)); }
.abx-crumb { display: flex; align-items: center; gap: 9px; list-style: none; margin: 0 0 clamp(16px, 2vw, 28px); padding: 0; }
.abx-crumb .ico { margin-right: 6px; }
.abx-crumb .ico, .abx-crumb .sep, .abx-hero .abx-eyebrow, .abx-trust i, .abx-why .abx-eyebrow { color: var(--brass); }
.abx-hero h1 { color: white; max-width: none; font-size: clamp(36px, 3.55vw, 52px); }
.abx-hero p { max-width: 46ch; margin: 14px 0 22px; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.45; }
.abx-trust { display: flex; }
.abx-trust-item { display: flex; align-items: center; gap: 12px; padding-inline: clamp(12px, 2.4vw, 32px); }
.abx-trust-item:first-child { padding-left: 0; }
.abx-trust-item + .abx-trust-item { border-left: 1px solid rgb(239 233 220 / 36%); }
.abx-trust i { font-size: 24px; }
.abx-trust-item span { max-width: 8.5ch; color: var(--ivory); font-weight: 600; line-height: 1.25; }
@media (min-width: 900px) and (max-width: 1199px) {
  .main-content > .abx-hero { padding-block: 24px; }
  .abx-crumb { margin-bottom: 16px; }
  .abx-hero p { max-width: 49ch; margin-block: 12px 18px; }
}

.main-content > .abx-story { position: relative; overflow-x: clip; background: var(--paper); padding-block: clamp(42px, 4.5vw, 68px) clamp(50px, 5vw, 76px); }
.abx-story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.05fr); align-items: center; gap: clamp(44px, 7vw, 98px); }
.abx-story .abx-media { position: relative; isolation: isolate; }
.abx-story .abx-media::before, .abx-story .abx-media::after {
  content: ""; position: absolute; z-index: -1; width: 46%; border-radius: 14px;
  background: linear-gradient(125deg, var(--brass), #e4bd76); transform: skewX(-12deg);
}
.abx-story .abx-media::before { inset: -5% -3% 9% auto; }
.abx-story .abx-media::after { inset: 53% auto -5% -6%; }
.abx-media img {
  display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover;
  border-radius: 14px; clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
}
.abx-story-copy p { max-width: 54ch; margin: 14px 0 0; line-height: 1.5; }
.abx-wave { position: absolute; inset: auto 0 -1px; width: 100%; height: clamp(16px, 2vw, 30px); pointer-events: none; }

.main-content > .abx-mv { padding-block: clamp(24px, 3vw, 44px); background: radial-gradient(ellipse at 72% 20%, #ebdfcc, transparent 48%), linear-gradient(135deg, var(--sand), #f8f3e9); }
.abx-mv .abx-eyebrow { color: #846226; }
.abx-mv-wrap {
  width: auto; max-width: none; margin: 0 0 0 var(--about-edge); padding: 0;
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: stretch; gap: 16px;
}
.abx-mv-head { margin: 0 0 18px; }
.abx-mv-rule { display: block; margin-top: 12px; width: 56px; height: 2px; background: var(--brass); }
.abx-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.abx-card { padding: clamp(16px, 1.8vw, 26px); background: var(--paper); border: 1px solid #e5d8c2; border-radius: 14px; box-shadow: none; }
.abx-card { display: flex; flex-direction: column; }
.abx-card-head { display: flex; align-items: center; gap: 12px; }
.abx-card-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--brass); border-radius: 11px; color: var(--dark-brass); font-size: 23px; }
.abx-card h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); }
.abx-card p { margin: 10px 0 16px; line-height: 1.45; }
.abx-list { list-style: none; padding: 0; margin: auto 0 0; }
.abx-list li { position: relative; padding-left: 26px; margin-top: 6px; line-height: 1.4; }
.abx-list li::before { content: "\f00c"; position: absolute; left: 0; color: var(--brass); font-family: FontAwesome; }
.abx-mv-media, .abx-cta-media { position: relative; overflow: hidden; background: var(--brass); }
.abx-mv-media { margin: 26px 0 -16px; background: transparent; }
.abx-mv-media::before {
  content: ""; position: absolute; inset: 12% 0 0; background: var(--brass);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}
.abx-mv-media img, .abx-cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abx-mv-media img { object-position: right 65%; clip-path: polygon(34% 0, 100% 0, 100% 100%, 8px 100%); }

.main-content > .abx-why {
  padding-block: clamp(22px, 2vw, 30px); color: white;
  background: linear-gradient(105deg, rgb(29 28 26 / 95%), rgb(16 15 13 / 97%)), url('../images/about-hero-berlin.webp') center 62% / cover;
}
.abx-why .container { display: grid; grid-template-columns: minmax(0, .53fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.abx-why .container::before, .abx-why .container::after { content: none; }
.abx-why-title h2, .abx-cta h2 { font-size: clamp(28px, 2.9vw, 40px); }
.abx-why-title h2 { font-size: clamp(26px, 2.4vw, 33px); }
.abx-why-title .abx-eyebrow { font-size: 12px; }
.abx-why-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.abx-why-item { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-items: start; justify-items: center; gap: 6px; padding-inline: 8px; margin: 0; border-left: 1px solid rgb(239 233 220 / 28%); text-align: center; }
.abx-why-item h3 { color: var(--white); font: 600 16px/1.3 var(--font-body); letter-spacing: normal; margin: 0; text-wrap: balance; }
.abx-why-item p { color: var(--ivory); font: 400 15px/1.4 var(--font-body); margin: 0; text-wrap: pretty; }
.abx-why-icon { display: inline-flex; align-items: center; gap: 6px; color: var(--brass); font-size: 13px; font-weight: 600; }
.abx-why-item i { font-size: 25px; color: var(--brass); }

.main-content > .abx-cta-sec { padding-block: clamp(24px, 2.5vw, 40px); background: var(--paper); }
.abx-cta { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e5d8c2; border-radius: 16px; overflow: hidden; background: var(--sand); }
.abx-cta-copy { align-self: center; padding: clamp(22px, 2.5vw, 40px) clamp(24px, 4vw, 58px); }
.abx-cta-copy p { max-width: 46ch; margin: 10px 0 16px; line-height: 1.45; }
.abx-cta-media { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.abx-cta-media img { clip-path: polygon(calc(18% + 6px) 0, 100% 0, 100% 100%, 6px 100%); }
@media (min-width: 900px) {
  .abx-cta-sec > .container { margin-inline: max(var(--inset), calc(var(--about-edge) - 16px)); }
  .abx-cta { grid-template-columns: 51% 49%; }
  .abx-cta-copy { padding: clamp(16px, 1.5vw, 24px) 16px clamp(16px, 1.5vw, 24px) clamp(24px, 4vw, 58px); }
  .abx-cta-copy p { max-width: 52ch; margin-block: 8px 12px; }
}

@media (max-width: 899px) {
  .pg-about main { --about-edge: var(--inset); }
  .abx-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgb(22 21 18 / 75%), rgb(22 21 18 / 55%) 48%, transparent 76%);
  }
  .abx-hero::after { width: 5.5%; }
  .abx-story-grid { gap: 40px; }
  .abx-mv-wrap { margin-inline: var(--about-edge); grid-template-columns: 1fr; }
  .abx-mv-media { margin: 0; height: clamp(200px, 32vw, 290px); clip-path: none; }
  .abx-mv-media img { clip-path: none; object-position: center 69%; }
  .abx-why .container { grid-template-columns: 1fr; gap: 22px; }
  .abx-why-item:first-child { border-left: 0; }
}
@media (min-width: 740px) and (max-width: 1199px) {
  .abx-card p, .abx-list li { font-size: 15px; }
  .abx-list li { padding-left: 22px; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .abx-mv-media { height: auto; aspect-ratio: 2.15; }
  .abx-mv-media img { object-position: center 77%; }
}
@media (min-width: 640px) and (max-width: 767px) {
  .main-content > .abx-hero { background-position: 80% center; }
  .abx-hero h1 br { display: initial; }
  .abx-hero p { max-width: min(46ch, 62%); }
  .abx-hero::before {
    background: linear-gradient(90deg, rgb(22 21 18 / 90%), rgb(22 21 18 / 76%) 51%, transparent 82%);
  }
}
@media (max-width: 639px) {
  .main-content > .abx-hero {
    --hero-photo-height: clamp(165px, 46vw, 230px);
    padding: 26px 0 calc(var(--hero-photo-height) + 10px); background: var(--onyx);
  }
  .abx-hero::before {
    inset: auto 0 0; height: var(--hero-photo-height);
    background: linear-gradient(var(--onyx), transparent 36%),
      var(--autosouq-page-hero, url('../images/about-hero-berlin.webp')) right center / cover;
  }
  .abx-hero::after { display: none; }
  .abx-hero > .container { margin-inline: var(--about-edge); }
  .abx-hero h1 { font-size: 34px; max-width: 20ch; }
  .abx-hero h1 br { display: none; }
  .abx-trust-item { padding-inline: 10px; gap: 6px; }
  .abx-trust i { font-size: 19px; }
  .abx-trust-item span { font-size: 14px; }
  .abx-story-grid, .abx-cards, .abx-cta { grid-template-columns: 1fr; }
  .abx-story-grid { gap: 30px; }
  .abx-story .abx-media { margin-inline: 12px; }
  .abx-why-list { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 18px; }
  .abx-why-item:nth-child(odd) { border-left: 0; }
  .abx-cta-media { height: auto; aspect-ratio: 2.5; clip-path: polygon(0 14%,100% 0,100% 100%,0 100%); }
  .abx-cta-media img { clip-path: polygon(0 calc(14% + 4px),100% 4px,100% 100%,0 100%); }
}
