/* =========================================================================
   Calea — Coming soon
   Figma: Calea_UI › Coming-soon_Page_L (node 19798:3151)
   Custom properties below mirror the Figma variables 1:1; the fluid
   clamp() values resolve to the exact Figma px at the 1512px artboard.
   ========================================================================= */

:root {
  /* --- Colour ---------------------------------------------------------- */
  --color-surface: #fcfcfc;
  --color-background: #f2f6f8;

  /* --- Type families --------------------------------------------------- */
  --font-primary: 'Asterone', 'Futura', 'Century Gothic', sans-serif;
  --font-editorial: 'Optima', Candara, 'Gill Sans', 'Gill Sans MT', sans-serif;
  --font-ui: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- H1 (72 / 86) ---------------------------------------------------- */
  --h1-font-size: clamp(2.25rem, 4.7619vw, 4.5rem);
  --h1-line-height: 1.1944;
  --h1-letter-spacing: 0;
  --h1-font-weight: 400;

  /* --- H5 (28 / 32) ---------------------------------------------------- */
  --h5-font-size: clamp(1.0625rem, 1.8519vw, 1.75rem);
  --h5-line-height: 1.1429;
  --h5-letter-spacing: 0;
  --h5-font-weight: 400;

  /* --- Eyebrow (14 / 14) ----------------------------------------------- */
  --eyebrow-font-size: 0.875rem;
  --eyebrow-line-height: 1;
  --eyebrow-letter-spacing: 0.0625rem;
  --eyebrow-font-weight: 800;

  /* --- Input (16 / 18) -------------------------------------------------- */
  --input-font-size: 1rem;
  --input-line-height: 1.125;
  --input-letter-spacing: 0;
  --input-font-weight: 300;
  --input-horizontal-padding: 1.375rem;
  --input-vertical-padding: 0.75rem;
  --input-border-radius: 2px;

  /* --- Button / caption (14 / 20) --------------------------------------- */
  --button-font-size: 0.875rem;
  --button-line-height: 1.4286;
  --button-letter-spacing: 0.0625rem;
  --button-font-weight: 400;

  /* --- Spacing ---------------------------------------------------------- */
  --gap-xs: 4px;
  --gap-md: 24px;
  --gap-lg: 32px;
  --section-horizontal-padding: clamp(20px, 2.7778vw, 42px);
  --section-vertical-padding: clamp(40px, 5.4233vw, 82px);
  --menu-horizontal-padding: 24px;
  --header-vertical-padding: clamp(24px, 3.0423vw, 46px);

  /* --- Glass -----------------------------------------------------------
     Sampled off the Figma render of the contact field: the frosted panel
     reads as rgb(84,158,168). It is the hero photo's own water colour, so
     re-sample it if the photograph is ever replaced. */
  --glass-tint: 84, 158, 168;
  --glass-opacity: 0.82;
  --glass-opacity-hover: 0.9;
  --glass-blur: 16px;

  /* --- Layout widths ---------------------------------------------------- */
  --content-max-width: 1174px;
  --hero-text-max-width: 1000px;
  --contact-max-width: 800px;
  --logo-width: clamp(180px, 17.2687vw, 261.103px);
}

/* =========================================================================
   Reset
   ========================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-surface);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--section-horizontal-padding) var(--section-vertical-padding);
  overflow: clip;
}

/* Background photograph — Figma crops it to the bottom edge and zooms
   ~10.5% past `cover`, which reproduces exactly at the 1512 × 982 artboard. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-background);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  transform: scale(1.105);
  transform-origin: 50% 100%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Readability veil over the copy. Not in the Figma frame: the design's own
   scrim is still only ~6% black where the H1 sits, which leaves white type on
   sunlit pool water. This ramps in above the headline and tops out gently. */
.hero__veil {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.1) 56%,
    rgba(0, 0, 0, 0.18) 78%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: var(--header-vertical-padding) var(--menu-horizontal-padding);
}

.site-header__logo {
  display: block;
  width: var(--logo-width);
}

.site-header__logo img {
  width: 100%;
  height: auto;
}

/* =========================================================================
   Hero content
   ========================================================================= */

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-lg);
  width: 100%;
  max-width: var(--content-max-width);
  margin-top: auto;
  text-align: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  width: 100%;
  max-width: var(--hero-text-max-width);
}

.display {
  font-family: var(--font-primary);
  font-size: var(--h1-font-size);
  font-weight: var(--h1-font-weight);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  font-family: var(--font-editorial);
  font-size: var(--h5-font-size);
  font-weight: var(--h5-font-weight);
  line-height: var(--h5-line-height);
  letter-spacing: var(--h5-letter-spacing);
  text-wrap: pretty;
}

/* =========================================================================
   Contact
   ========================================================================= */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
  width: 100%;
  max-width: var(--contact-max-width);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--eyebrow-font-size);
  font-weight: var(--eyebrow-font-weight);
  line-height: var(--eyebrow-line-height);
  letter-spacing: var(--eyebrow-letter-spacing);
  text-transform: uppercase;
}

/* Figma puts a Glass effect (radius 29) on this field, and its render is a
   flat frosted panel — the water behind it is gone, not merely softened
   (mean rgb(84,158,168) at 2.0 stddev, against 31.6 for the bare photo).
   Chromium's backdrop blur cannot get there on its own: it downsamples, which
   leaves a mottled texture no radius removes. So the panel is carried by a
   mostly opaque tint, with the blur handling what shows through. Measured on
   the same strip: 0.82 lands on rgb(82,153,163) at ~2.0 stddev. */
.contact__field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  max-width: 100%;
  height: 44px;
  padding: var(--input-vertical-padding) var(--input-horizontal-padding);
  border: 1px solid var(--color-surface);
  border-radius: var(--input-border-radius);
  background-color: rgba(var(--glass-tint), var(--glass-opacity));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  color: var(--color-surface);
  text-decoration: none;
  transition: background-color 0.25s ease;
}

/* The tint already carries the panel, so without backdrop-filter it only has
   to close the remaining gap. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .contact__field {
    background-color: rgba(var(--glass-tint), 0.92);
  }
}

.contact__icon {
  flex: none;
  width: 24px;
  height: 24px;
}

.contact__value {
  font-family: var(--font-ui);
  font-size: var(--input-font-size);
  font-weight: var(--input-font-weight);
  line-height: var(--input-line-height);
  letter-spacing: var(--input-letter-spacing);
  text-decoration: underline;
  text-underline-position: from-font;
  white-space: nowrap;
}

.contact__field:hover {
  background-color: rgba(var(--glass-tint), var(--glass-opacity-hover));
}

.contact__field:hover .contact__value {
  text-decoration-thickness: 2px;
}

.contact__field:focus-visible {
  outline: 2px solid var(--color-surface);
  outline-offset: 3px;
}

/* =========================================================================
   Copyright
   ========================================================================= */

.copyright {
  width: 100%;
  font-family: var(--font-ui);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  line-height: var(--button-line-height);
  letter-spacing: var(--button-letter-spacing);
  text-transform: uppercase;
}

/* =========================================================================
   Narrow viewports
   ========================================================================= */

@media (max-width: 480px) {
  :root {
    --input-horizontal-padding: 0.875rem;
    --input-font-size: 0.9375rem;
    --button-font-size: 0.75rem;
    --eyebrow-font-size: 0.8125rem;
  }

  .hero__media img {
    object-position: 50% 78%;
    transform: none;
  }
}
