/* Company pages on the v8 product page template (round 2026-11-19): Our story, For buildings, Contact.
   Each page is its Mockup-v7 page (Mockup-v7/wire/our-story.html, buildings.html, contact.html; layouts already sourced
   from Design Gallery studies, named in each page's HTML comments) redrawn in design system v3
   (design-system/project/README.md): Montserrat, paper ground, ink/ink-2/ink-3, ember only for dots, focus, progress
   and eyebrows, square pictures, v1's dotted rules and heat line, hs-meta labels, CTA rule pills, hs-round arrows.
   Loaded after css/leica.css and scoped to main.lc, so the nav, final CTA and footer stay as they are. */

/* ---------- Shared ---------- */
/* A left-aligned section head (v7's Apple-style heads on Buildings and Contact), in v8-title type */
.pc-head { width: var(--lc-wide); margin: 0 auto clamp(32px, 3.5vw, 48px); }
.pc-head .v8-title { white-space: normal; text-wrap: balance; }
.pc-head .v8-lead { margin-top: 16px; }
/* v1's dotted rule at the wide width, between sections (v7's hairlines) */
.pc-rule { width: var(--lc-wide); margin: 0 auto; }
/* Type over pictures: hero size and section size, white, 400 with tight tracking (DS "Type") */
.pc-hero-type { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; font-weight: 400; letter-spacing: -0.035em; }
.pc-on-pic { color: var(--on-night); }
.pc-on-pic .hs-meta { color: var(--on-night); }
/* Linked tiles and cards: v1's round arrow and the 1.035 zoom (DS "Button feedback") */
.pc-link { text-decoration: none; display: block; }
.pc-link img { transition: transform 0.6s var(--ease-out); }
@media (hover: hover) {
  .pc-link:hover img { transform: scale(1.035); }
  .pc-link:hover .hs-round { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}
.pc-link .hs-round { color: var(--ink); flex: none; }
.pc-link .hs-round svg { width: 14px; height: 14px; }
.pc-link figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }

/* ---------- Our story ---------- */
/* 1 Hero (rivian-01 / rivian-product d-04, d-01): the picture fills the screen less the foot, the name huge over it,
   the H1 and one button in the foot under a dotted rule. Ours: hero type, dark wash at the text's side and the top
   (for the nav), the main CTA on paper. */
.os-hero__pic { position: relative; height: max(460px, calc(100svh - 150px)); max-height: 900px; overflow: hidden; background: var(--night); }
.os-hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.os-hero__pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(12, 14, 17, 0.55) 0, rgba(12, 14, 17, 0) 40%),
    linear-gradient(180deg, rgba(12, 14, 17, 0.45) 0, rgba(12, 14, 17, 0) 170px);
}
.os-hero__name { position: absolute; z-index: 1; left: var(--hs-edge); bottom: 28px; color: var(--on-night);
  font-size: clamp(56px, 7vw, 88px); line-height: 1; font-weight: 400; letter-spacing: -0.04em; }
.os-hero__foot { width: var(--lc-wide); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 0 40px; }
.os-hero__foot h1 { max-width: 22em; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; font-weight: 400; letter-spacing: -0.03em; text-wrap: balance; }
.os-hero__foot .hs-pill { flex: none; }

/* 2 The idea (rivian-product d-04, d-05): a huge headline over a full-bleed photo, then two short columns */
.os-big { position: relative; height: min(80vh, 780px); min-height: 420px; overflow: hidden; }
.os-big img { width: 100%; height: 100%; object-fit: cover; }
.os-big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 14, 17, 0.55), rgba(12, 14, 17, 0) 45%); pointer-events: none; }
.os-big h2 { position: absolute; z-index: 1; left: var(--hs-edge); right: var(--hs-edge); bottom: 32px; }
.os-two { width: var(--lc-wide); margin: clamp(40px, 4vw, 56px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.os-two p { max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.os-two p b { display: block; margin-bottom: 6px; font-weight: 500; color: var(--ink); }

/* 3 The journey (about-story.md row 7, sonos-company d-03): dated cards in one row, picture, year, one line, a line
   through the year markers. Ours: v1's heat line is the line through the markers (its one use on the page), the
   markers are ember dots, the years in 24px 400, square pictures. Phone: a vertical timeline, all shown. */
.os-tl-wrap { position: relative; width: var(--lc-wide); margin: 0 auto; container-type: inline-size; }
.os-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; }
.os-tl-wrap > .hs-heatline { position: absolute; left: 0; right: 0; top: calc((100cqw - 96px) / 5 * 0.75 + 33px); }
.os-tl li { position: relative; min-width: 0; }
.os-tl__pic { aspect-ratio: 4 / 3; overflow: hidden; background: #ecebe8; }
.os-tl__pic img { width: 100%; height: 100%; object-fit: cover; }
.os-tl__pic--doc img { object-fit: contain; background: #fff; }
.os-yr { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding-right: 12px; background: var(--paper);
  font-size: 24px; line-height: 28px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
.os-yr::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); }
.os-tl p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.os-tl p a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }
.os-tl p a:hover { text-decoration-color: var(--ember); }

/* 4 What we make (sonos-04): a big phrase and one line beside a picture, alternating. Ours: the template's slide
   (leica d-08/09, .lc-exp) standing still: 4:3 picture, 32-48px title, a line, one main CTA. */
.os-proof { width: var(--lc-wide); margin: 0 auto; display: grid; gap: clamp(64px, 7vw, 112px); }
.os-pp { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.os-pp:nth-child(even) { grid-template-columns: 7fr 5fr; }
.os-pp:nth-child(even) > .os-pp__pic { order: -1; }
.os-pp__pic { aspect-ratio: 4 / 3; overflow: hidden; background: #ecebe8; }
.os-pp__pic img { width: 100%; height: 100%; object-fit: cover; }
.os-pp h2 { margin-top: 10px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; font-weight: 400; letter-spacing: -0.035em; }
.os-pp h2 + p { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 30ch; }
.os-pp .hs-pill { margin-top: 28px; }

/* 5 Closing band (flos.md §14, flos d-01, d-05): a full-bleed photo, a small label over a huge headline bottom left,
   one button. Ours: hs-meta label, hero type, hs-pill--light with the dot, the wash at the text's side only. */
.os-band { position: relative; height: min(86vh, 820px); min-height: 480px; overflow: hidden; }
.os-band img { width: 100%; height: 100%; object-fit: cover; }
.os-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(12, 14, 17, 0.6), rgba(12, 14, 17, 0) 55%), linear-gradient(90deg, rgba(12, 14, 17, 0.35), rgba(12, 14, 17, 0) 55%); }
.os-band__in { position: absolute; z-index: 1; left: var(--hs-edge); right: var(--hs-edge); bottom: clamp(48px, 9vh, 96px); }
.os-band__in h2 { margin-top: 12px; max-width: 12em; }
.os-band__in .hs-pill { margin-top: 28px; }

/* ---------- Light Revolution (round 2026-11-20g; For buildings left the site) ---------- */
/* 1 Hero: the Flos band (.os-band) as the first screen, under the nav over the picture (data-nav="over") */
.lr-hero { height: max(560px, 100svh); max-height: none; }
.lr-hero .pc-hero-type { margin-top: 12px; max-width: 13em; text-wrap: balance; }
.lr-hero__line { margin-top: 18px; max-width: 32em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--on-night); }
/* 2 Three generations: Our story's journey (.os-tl) with three steps; the heat line sits at the markers */
@media (min-width: 901px) {
  .lr-gen .os-tl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
  .lr-gen > .hs-heatline { top: calc((100cqw - 64px) / 3 * 0.75 + 33px); }
}
/* 3 + 4: two buttons under the how-it-works text */
.lr-acts { margin-top: 28px; }
.lr-acts .hs-pill { margin-top: 0; }
.os-pp p a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }

/* ---------- Contact ---------- */
/* Title (apple-contact d-full: a centred title) with the isotherm behind it (its one use on the page) */
.ct-title { padding-bottom: 0 !important; }
.ct-title .lc-head { margin-bottom: 0; }
.ct-title__iso { left: 0; right: 0; top: 0; height: 100%; opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 45% 70% at 50% 55%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 45% 70% at 50% 55%, #000 15%, transparent 72%); }
/* Sections split by v1's dotted rule (apple-contact's hairlines) */
.ct-sec { padding-top: clamp(48px, 5vw, 72px) !important; padding-bottom: clamp(48px, 5vw, 72px); }
/* the rule sits in the gap between two sections */
/* Linked tiles: the template's tiles (leica d-04/05) with v1's round arrow */
.ct-tiles .lc-tile b { font-size: 17px; }
/* Company address: the template's slide (leica d-08/09, .lc-exp) standing still */
.ct-addr { width: var(--lc-wide); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.ct-addr__pic { aspect-ratio: 4 / 3; overflow: hidden; background: #ecebe8; }
.ct-addr__pic img { width: 100%; height: 100%; object-fit: cover; }
.ct-addr h2 { margin-top: 10px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; font-weight: 400; letter-spacing: -0.035em; }
.ct-addr address { margin-top: 16px; font-style: normal; font-size: 17px; line-height: 1.55; color: var(--ink); }
.ct-addr address + p, .ct-addr p + p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.ct-addr .hs-pill { margin-top: 28px; }
/* Often asked for: the template's small cards (leica d-11), three to a row */
.ct-often .lc-world__cards { margin-top: 0; row-gap: clamp(32px, 3.5vw, 48px); }
.ct-press { display: grid; place-items: center; background: #ecebe8; }
.ct-press img { width: 46%; height: auto; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  /* Journey: a vertical timeline, read top to bottom (about-story.md §5): the heat line runs down the left */
  .os-tl-wrap > .hs-heatline { display: none; }
  .os-tl { grid-template-columns: 1fr; gap: 0; position: relative; }
  .os-tl::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px;
    background: linear-gradient(180deg, var(--thermal-2, #a8306f), var(--thermal-3, #ef6a3a), var(--thermal-4, #fdd681)); }
  .os-tl li { display: flex; flex-direction: column; padding: 0 0 40px 32px; }
  .os-tl li:last-child { padding-bottom: 0; }
  .os-yr { order: -2; margin: 0; padding: 0; background: none; position: static; }
  .os-yr::before { position: absolute; left: 1px; top: 9px; }
  .os-tl p { order: -1; margin: 6px 0 16px; }
  .os-tl__pic { width: min(60%, 320px); }
  .os-pp, .os-pp:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .os-pp > .os-pp__pic, .os-pp:nth-child(even) > .os-pp__pic { order: -1; }
  .ct-addr { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .os-hero__pic { height: max(360px, calc(100svh - 260px)); }
  .os-hero__name { bottom: 20px; }
  .os-hero__foot { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 0 28px; }
  .os-big { height: 70vh; }
  .os-big h2 { bottom: 24px; }
  .os-two { grid-template-columns: 1fr; gap: 28px; }
  .os-band { height: calc(100svh - 60px); }
  .os-band__in { bottom: 48px; }
  .ct-often .lc-world__cards { grid-template-columns: 1fr 1fr; }
  .ct-often .lc-world__cards > :last-child { grid-column: auto; }
  .ct-often .lc-world__cards > :last-child .lc-wcard__pic { aspect-ratio: 3 / 2; }
}

/* Linked tiles: keep the caption text and the round arrow as they are inside .lc-tile (its span rule is for the line) */
.pc-link .lc-tile figcaption > span:first-child { margin-top: 0; color: inherit; }
.pc-link .lc-tile .hs-round { display: inline-flex; margin-top: 0; }
