/* SE3 — article pages (/articles). Builds on site.css: same type, grid, nav and footer.
   Layout follows the long-form pattern of openai.com/index: a centred title over a full-bleed
   image, one reading column, wide figures that break out of it, and "Keep reading" cards. */

:root { --col: 680px; }

/* ---------- Hero ---------- */
.a-hero { padding: 0 var(--bleed) var(--bleed); background: var(--bg-dark); }
.a-hero-frame {
  position: relative;
  height: clamp(560px, calc(100svh - 104px), 860px);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 64px;
}
.a-hero-media { position: absolute; inset: 0; overflow: hidden; }
.a-hero-img {
  position: absolute; left: 0; top: -6%;
  width: 100%; height: 112%; max-width: none;
  object-fit: cover; object-position: 50% 50%;
  will-change: transform;
}
.a-hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 75%),
    rgba(0, 0, 0, 0.38);
}
/* For an already dark, low-key photo: barely any overall darkening, a soft pool behind the centred title only */
.a-hero-scrim--low-key {
  background: radial-gradient(ellipse 50% 42% at 50% 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 80%), rgba(0, 0, 0, 0.08);
}
.a-hero-title {
  position: relative;
  max-width: 1040px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
}
.a-hero-title h1 { text-wrap: balance; }
.a-hero-title .t-heading { max-width: 640px; text-wrap: balance; }
.a-meta { display: flex; gap: 16px; color: var(--on-dark-2); }

/* ---------- Reading column ---------- */
.a-body { padding: 0 var(--gutter) 160px; }
.a-col { width: 100%; max-width: var(--col); margin-inline: auto; }

.a-share {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 80px;
}
.a-share-links { display: flex; gap: 8px; }
.a-chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-light); background: none; color: inherit;
  font: inherit; letter-spacing: inherit; cursor: pointer;
  transition: border-color .4s var(--ease-out);
}
.a-chip:hover { border-color: var(--on-light); }

.a-prose { display: flex; flex-direction: column; gap: 24px; }
.a-prose + .a-prose, .a-quote + .a-prose, .a-figure + .a-prose { margin-top: 96px; }
.a-prose p, .a-list li { font-size: 18px; line-height: 30px; letter-spacing: -0.3px; }
/* Body text set justified (Blocksatz), hyphenated so the spacing stays even */
.a-prose p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.a-prose h2 { margin-bottom: 4px; }
.a-prose strong { font-weight: 500; }
.a-lede { font-size: 22px !important; line-height: 32px !important; letter-spacing: -0.5px !important; }

.a-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.a-list li { padding: 16px 0; border-bottom: 1px solid var(--line-light); }

.a-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.a-link:hover { text-decoration-color: var(--on-light-2); }

.btn-dark { background: var(--bg-dark); color: var(--on-dark); }


/* ---------- Wide figure ---------- */
/* Wider than the reading column, narrower than the page */
.a-figure { width: 100%; max-width: 1088px; margin: 96px auto 0; display: flex; flex-direction: column; gap: 16px; }
.a-figure-media { position: relative; aspect-ratio: 2048 / 900; overflow: hidden; background: var(--light-grey); }
.a-figure-media img, .a-figure-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.a-figure-video { aspect-ratio: 16 / 9; background: #000; }
.a-figure figcaption { padding-inline: 0; }

/* ---------- Quotes ---------- */
.a-quote { margin-top: 96px; margin-bottom: 0; display: flex; flex-direction: column; gap: 24px; }
.a-quote p { text-indent: -0.4em; }
.a-quote footer { display: flex; flex-direction: column; gap: 2px; }

/* ---------- About ---------- */
.a-about {
  margin-top: 120px; padding-top: 32px;
  border-top: 1px solid var(--line-light);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gap);
}
.a-about > div { display: flex; flex-direction: column; gap: 8px; }
.a-about > div:first-child { grid-column: 1 / -1; }
.a-about h2 { font-size: 16px; }

/* ---------- Keep reading ---------- */
.a-more { padding: 120px var(--gutter) 160px; border-top: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 56px; }
.a-more-all { text-align: right; align-self: end; }
.a-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.a-card { display: flex; flex-direction: column; gap: 12px; }
.a-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--light-grey); margin-bottom: 8px; }
.a-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
a.a-card:hover .a-card-media img { transform: scale(1.04); }
.a-card .dim { display: flex; gap: 12px; }
.a-card .t-body:last-child { max-width: 400px; }

/* ---------- Narrower screens ---------- */
@media (max-width: 900px) {
  .a-hero-frame { padding: 32px 24px; height: calc(100svh - 88px); min-height: 520px; }
  .a-hero-title h1 { font-size: 46px; line-height: 52px; letter-spacing: -2px; }   /* one step under the 52 px mobile figure */
  .a-hero-img { object-position: 68% 50%; }   /* portrait crop: keep the drone and its scan grid (right of centre in the image) in frame */
  /* Phone: a darker fade under the subtitle, where the scan grid and vehicles sit */
  .a-hero-scrim--low-key {
    background:
      linear-gradient(180deg, rgba(0,0,0,0) 48%, rgba(0,0,0,.6) 64%, rgba(0,0,0,.6) 74%, rgba(0,0,0,0) 92%),
      radial-gradient(ellipse 60% 42% at 50% 50%, rgba(0,0,0,.45), rgba(0,0,0,0) 80%),
      rgba(0,0,0,.08);
  }
  .a-body { padding-bottom: 96px; }
  .a-share { flex-wrap: wrap; margin-bottom: 56px; }
  .a-prose + .a-prose, .a-quote + .a-prose, .a-figure + .a-prose, .a-quote, .a-figure { margin-top: 72px; }
  .a-prose p, .a-list li { font-size: 17px; line-height: 28px; }
  .a-lede { font-size: 20px !important; line-height: 30px !important; }
  .a-prose .a-lede { text-align: left; } /* the larger lede leaves gaps when justified this narrow */
  .a-figure-media:not(.a-figure-video) { aspect-ratio: 4 / 3; }
  .a-about { grid-template-columns: 1fr; }
  .a-more { padding-block: 96px; gap: 48px; }
  .a-more-all { text-align: left; }
  .a-more-grid { grid-template-columns: 1fr; row-gap: 48px; }
}

/* ---------- Legal pages (/privacy, /impressum): the article column, no hero image ---------- */
.doc-head { padding: 120px var(--gutter) 96px; }
.doc-head .a-col { display: flex; flex-direction: column; gap: 24px; }
.doc-head h1 { text-wrap: balance; }
.doc { padding-top: 96px; }
.doc h2 { margin-top: 24px; font-size: 22px; line-height: 32px; letter-spacing: -0.5px; }
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-list li { position: relative; padding-left: 28px; font-size: 18px; line-height: 30px; letter-spacing: -0.3px; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 1px; background: currentColor; }
.doc-facts { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.doc-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gap); padding: 20px 0; border-bottom: 1px solid var(--line-light); font-size: 18px; line-height: 28px; letter-spacing: -0.3px; }
.doc-facts dd { margin: 0; }
@media (max-width: 900px) {
  .doc-head { padding: 72px var(--gutter) 56px; }
  .doc { padding-top: 56px; }
  .doc-facts > div { grid-template-columns: 1fr; gap: 4px; }
}
