/* Camera Commune — holding page.
   Header and wordmark rules copied from the MVP (globals.css, Header.module.css):
   Suisse Intl Bold 700, 22px, letter-spacing 0, #111111 on #ffffff,
   top-left in a header with 32px 48px padding (20px at <=900px).
   Hero rules copied from page.module.css. */

@font-face {
  font-family: "Suisse Intl";
  src: url("Fonts/SuisseIntl-Bold.woff2") format("woff2"),
       url("Fonts/SuisseIntl-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("Fonts/SuisseIntl-Light.woff2") format("woff2"),
       url("Fonts/SuisseIntl-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("Fonts/suisse-intl-regular.woff2") format("woff2"),
       url("Fonts/suisse-intl-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #ffffff;
  color: #111111;
  font-family: "Suisse Intl", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* Header sits tight to the top corners: 24px side insets, with the wordmark's
   cap-height ~19px from the top (optically level with the 24px side inset;
   line-height 1 puts caps ~0.1em below the line top, hence 17px). Fixed height keeps the hero exactly where it was. */
.header {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  height: 97px;
  padding: 17px 24px 0;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Proportionate on laptops: 18px at 1280-1380px wide, easing up to 22px by ~1700px. */
@media (min-width: 901px) {
  .logo { font-size: clamp(18px, 1.3vw, 22px); }
}

/* Hero composition: the container is the positioning context. The photo scales
   with the viewport width (capped at 1600px), plus one height cap so photo +
   header + padding fit in the window (193px = header 97 + padding 48 + 48;
   2618/1180 = the photo's aspect ratio, so it never crops or distorts).
   The copy sits over the white area at the photo's bottom-left, left-aligned
   with the wordmark; the bottom-left of the photo is clear of the cameras. */
.hero {
  position: relative;
  padding: 48px 48px 48px;
}

.heroImageWrap {
  width: 100%;
  max-width: min(1600px, max(320px, calc((100vh - 193px) * 2618 / 1180)));
  max-width: min(1600px, max(320px, calc((100svh - 193px) * 2618 / 1180)));
  margin-inline: auto;
}

.heroImage {
  width: 100%;
  height: auto;
  display: block;
}

.intro {
  position: absolute;
  left: 48px;
  bottom: 37.5px; /* keeps the description where it was after adding the launch line */
  width: min(34em, calc((100vw - 96px) * 0.3));
  text-align: left;
}

.intro p { margin: 0; }

.intro .description {
  font-size: 17px;
  line-height: 1.45;
}

.intro .supporting {
  margin-top: 9.6px;
  color: #666666;
}

.intro .launch {
  margin-top: 4px;
}

/* Same treatment as the MVP's .utilityLink: Regular 400, 13.5px, 0.02em. */
.utilityLink {
  position: relative;
  top: -2px; /* optical: lifts the smaller Contact so it reads level with the wordmark */
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: #111111;
}

/* The wordmark is 22px on very large screens, so Contact needs 1px more lift. */
@media (min-width: 1700px) {
  .utilityLink { top: -3px; }
}

/* One fluid composition for laptops and large desktops (windows at least 1100px
   wide and 600px tall; smaller windows stack, below).
   The hero fills the window under the 97px header and the photo is positioned
   inside it, so the photo and the copy never push each other.
   - Photo width: the window width less 48px side margins, capped at 1600px up to
     a 1920px window, then growing 0.875px per extra px of width (2160px at 2560,
     max 2400px). It is also limited by height so it always fits: 48px top and
     bottom on laptops, a little more room as the window gets taller.
     2618/1180 = the photo's aspect ratio, so it is never cropped or distorted.
   - Photo top: 48px on laptops; once the window has more than 200px of spare
     height, the photo takes just over that excess as extra top space, so it
     settles a little below the vertical midpoint on big screens.
   - Copy: stays at the photo's bottom-left. On tall windows it drifts lower
     (about 0.19px per px of height beyond a 1000px window) toward the bottom of the window, and
     its left edge eases from 48px (windows up to 1920px) to 24px (the wordmark's
     inset) at 2560px. Font sizes and spacing never change. */
@media (min-width: 1100px) and (min-height: 600px) {
  .hero {
    --vh: 100vh;
    --a: calc(var(--vh) - 97px);
    --w: min(
      calc(100vw - 96px),
      calc(1600px + max(0px, 100vw - 1920px) * 0.875),
      2400px,
      max(320px, calc((var(--a) - 96px - max(0px, var(--a) - 803px) * 0.43) * 2618 / 1180))
    );
    --h: calc(var(--w) * 1180 / 2618);
    --top: calc(48px + max(0px, var(--a) - var(--h) - 200px) * 1.05);
    --full: max(var(--a), calc(var(--h) + 96px));
    height: var(--full);
    padding: 0;
  }

  @supports (height: 100svh) {
    .hero { --vh: 100svh; }
  }

  .heroImageWrap {
    position: absolute;
    top: var(--top);
    left: calc((100% - var(--w)) / 2);
    width: var(--w);
    max-width: none;
    margin: 0;
  }

  .intro {
    left: clamp(24px, calc(48px - (100vw - 1920px) * 0.0375), 48px);
    bottom: calc(var(--full) - var(--top) - var(--h) - 10.5px - max(0px, var(--a) - 903px) * 0.194);
  }
}

/* Narrow or short windows: the copy no longer fits over the white area without
   touching the cameras, so it stacks under the photo in normal flow. */
@media (max-width: 1099px), (max-height: 599px) {
  .intro {
    position: static;
    width: auto;
    max-width: 34em;
    margin-top: 56px;
  }
}

@media (max-width: 900px) {
  .header { height: 73px; padding: 18px 20px 0; }
  .hero { padding: 40px 20px 40px; }
}
