/* ==========================================================================
   Midwest Maintenance Facility — Construction In Progress
   Fonts: Raleway (headline) · Archivo (eyebrow + body) · IBM Plex Mono (brand)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour */
  --c-ink:        #111111;                    /* page ground behind the image */
  --c-white:      #ffffff;
  --c-body:       rgba(255, 255, 255, 0.78);
  --c-brand:      rgba(255, 255, 255, 0.72);
  --c-accent:     #e4572e;                    /* build-status orange         */
  --c-rule:       rgba(255, 255, 255, 0.09);  /* hairline dividers           */

  /* Type */
  --f-display:    "Raleway", "Helvetica Neue", Arial, sans-serif;
  --f-text:       "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono:       "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo,
                  Consolas, monospace;

  /* Fluid scale — tuned so the desktop comp lands at ~95px / 15px */
  --fs-title:     clamp(2rem, 5.6vw + 0.9rem, 7.5rem);
  --fs-eyebrow:   clamp(0.625rem, 0.78vw, 0.75rem);
  --fs-text:      clamp(0.875rem, 0.97vw, 1rem);
  --fs-brand:     clamp(0.5rem, 0.62vw, 0.5625rem);

  /* Rhythm */
  --gutter:       clamp(1.5rem, 4.5vw, 4.5rem);
  --header-top:   clamp(1.75rem, 3.3vw, 3rem);
  --header-btm:   clamp(1.25rem, 1.7vw, 1.5rem);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--c-ink);
  color: var(--c-body);
  font-family: var(--f-text);
  font-size: var(--fs-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, p { margin: 0; }

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

/* --------------------------------------------------------------------------
   3. Page shell — background image + scrim
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;          /* dodges mobile browser chrome */
  overflow: hidden;
}

/* Photographic ground: blur, tint and construction grid are baked into the
   asset, so it is placed as a single cover layer. */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("background.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Legibility scrim — light on desktop, firmer once the image crops in. */
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    100deg,
    rgba(14, 14, 14, 0.62) 0%,
    rgba(14, 14, 14, 0.28) 48%,
    rgba(14, 14, 14, 0.40) 100%
  );
}

/* --------------------------------------------------------------------------
   4. Header / brand lockup
   -------------------------------------------------------------------------- */

/* Overlaid, not stacked, so the hero copy centres against the full viewport
   exactly as it does in the comp. */
.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  padding: var(--header-top) var(--gutter) var(--header-btm);
  border-bottom: 1px solid var(--c-rule);
}

.brand {
  display: inline-block;
}

/* 3:1 lockup — sized on width so the two-line wordmark stays legible; the
   height follows from the intrinsic ratio. */
.brand__mark {
  --mark-w: clamp(8.5rem, 13vw, 12rem);
  --mark-pad-l: 0.0633;   /* transparent margin baked into the asset's left edge */

  width: var(--mark-w);

  /* Pull the box left by that padding so the visible FHP mark — not the file's
     edge — lines up with the wordmark below. Proportional, so it holds at
     every step of the clamp. */
  margin-left: calc(var(--mark-w) * var(--mark-pad-l) * -1);
}

.brand__name {
  display: block;
  margin-top: 1.4em;
  font-family: var(--f-mono);
  font-size: var(--fs-brand);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-brand);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(3rem, 8vh, 7rem) var(--gutter);
}

.hero__inner {
  width: 100%;
  max-width: 60rem;
}

/* --- Status eyebrow ------------------------------------------------------- */

.eyebrow {
  margin-bottom: clamp(0.75rem, 1.4vw, 1.25rem);
  font-family: var(--f-text);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* --- Display headline ---------------------------------------------------- */

.hero__title {
  font-family: var(--f-display);
  font-size: var(--fs-title);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-white);
  text-wrap: balance;
}

/* Inline by default so narrow screens wrap the phrase naturally; the source
   whitespace between the spans keeps the words apart. */
.hero__line { display: inline; }

@media (min-width: 37.5625em) {
  .hero__line { display: block; }
}

/* --- Supporting copy ----------------------------------------------------- */

.hero__text {
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  max-width: 33.5em;
  font-weight: 400;
  color: var(--c-body);
}

/* --------------------------------------------------------------------------
   6. Responsive adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 37.5em) {
  :root { --fs-text: 0.9375rem; }

  /* Balance the copy under the overlaid header instead of pinning it up top. */
  .hero {
    padding-top: clamp(9rem, 22vh, 11rem);
    padding-bottom: clamp(3rem, 8vh, 5rem);
  }

  .brand__name { letter-spacing: 0.16em; }

  /* The image crops hard in portrait, so deepen the scrim. */
  .page::after {
    background-image: linear-gradient(
      180deg,
      rgba(14, 14, 14, 0.72) 0%,
      rgba(14, 14, 14, 0.42) 45%,
      rgba(14, 14, 14, 0.66) 100%
    );
  }
}

/* Short, wide viewports (landscape phones): tighten the vertical rhythm. */
@media (max-height: 33.75em) and (orientation: landscape) {
  .site-header { padding-block: 1.25rem 1rem; }
  .hero { align-items: flex-end; padding-block: 2rem; }
  :root { --fs-title: clamp(1.75rem, 6vw, 3.5rem); }
}

/* Cap the composition on very large displays. */
@media (min-width: 100em) {
  .hero__inner { max-width: 72rem; }
}

/* --------------------------------------------------------------------------
   7. Entrance motion
   -------------------------------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: none; }
}

.brand,
.eyebrow,
.hero__title,
.hero__text {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.brand        { animation-delay: 0.05s; }
.eyebrow      { animation-delay: 0.15s; }
.hero__title  { animation-delay: 0.25s; }
.hero__text   { animation-delay: 0.4s;  }

@media (prefers-reduced-motion: reduce) {
  .brand,
  .eyebrow,
  .hero__title,
  .hero__text { animation: none; }
}

/* --------------------------------------------------------------------------
   8. Focus visibility
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}
