/* ============================================================================
   Issued for Interns — Hero "05A" (Cursor-reactive Grid + Button Hover)
   Dependency-free. All rules scoped under .ifi-hero and prefixed `ifi-`
   so they won't collide with the rest of your site.

   Fonts used: Space Grotesk (display/body) + Space Mono (technical labels).
   Load them in your <head>:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
   ========================================================================== */

.ifi-hero {
  /* palette */
  --ifi-bg: #2d3d24;
  --ifi-bg-dark: #1a2613;
  --ifi-gold: #c19a2e;
  --ifi-gold-bright: #d4a82e;
  --ifi-cream: #f0ebe0;
  --ifi-cream-dim: rgba(240, 235, 224, 0.62);
  --ifi-cream-faint: rgba(240, 235, 224, 0.18);
  --ifi-gold-tint: rgba(212, 168, 46, 0.12);
  --ifi-frame: rgba(240, 235, 224, 0.55);
  --ifi-frame-tick: rgba(240, 235, 224, 0.65);

  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 760px;
  height: 100vh;
  max-height: 920px;
  background: var(--ifi-bg);
  color: var(--ifi-cream);
  overflow: hidden;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

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

/* The cursor-reactive dot grid fills the whole hero, behind content. */
.ifi-hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Navigation ---------------------------------------------------------- */
.ifi-nav {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: 64px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ifi-cream-faint);
  font-size: 14px;
  font-weight: 500;
}
.ifi-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ifi-nav__brand-name {
  font-weight: 500;
}
.ifi-nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* text links — gold hairline grows from the left on hover */
.ifi-nav__link {
  position: relative;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 180ms ease;
}
.ifi-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ifi-gold);
  transition: width 220ms ease;
}
.ifi-nav__link:hover {
  color: var(--ifi-gold-bright);
}
.ifi-nav__link:hover::after {
  width: 100%;
}

/* Login pill (outline, square) */
.ifi-nav__login {
  padding: 8px 16px;
  border: 1px solid var(--ifi-cream);
  color: var(--ifi-cream);
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}
.ifi-nav__login:hover {
  color: var(--ifi-gold-bright);
  border-color: var(--ifi-gold-bright);
  background: var(--ifi-gold-tint);
}

/* Gold CTA pill (square) with a tolerance frame on hover */
.ifi-nav__cta-wrap {
  position: relative;
  display: inline-block;
}
.ifi-nav__cta {
  display: inline-block;
  padding: 9px 18px;
  background: var(--ifi-gold);
  color: var(--ifi-bg-dark);
  border: none;
  border-radius: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.ifi-nav__cta-wrap:hover .ifi-nav__cta {
  background: var(--ifi-gold-bright);
}

.ifi-nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  pointer-events: auto;
}

/* ---- Main content -------------------------------------------------------- */
.ifi-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 80px 56px;
  pointer-events: none; /* let the grid receive the mouse; re-enable on controls */
}
.ifi-main a,
.ifi-main button,
.ifi-main .ifi-sub {
  pointer-events: auto;
}

.ifi-eyebrow {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ifi-gold);
  margin-bottom: 22px;
}

.ifi-headline {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 202px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.ifi-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--ifi-gold-bright);
}

.ifi-sub {
  margin-top: 22px;
  max-width: 600px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 300;
}
.ifi-sub b {
  font-weight: 300;
  color: var(--ifi-gold-bright);
}

/* Bullets — reticule marker + mono index + label */
.ifi-bullets {
  margin-top: 30px;
  display: grid;
  gap: 13px;
  max-width: 760px;
}
.ifi-bullet {
  display: flex;
  gap: 14px;
  align-items: center;
}
.ifi-bullet__index {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ifi-cream-dim);
  min-width: 22px;
  text-align: right;
}
.ifi-bullet__label {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--ifi-cream);
  line-height: 1.4;
}
.ifi-reticule {
  flex: 0 0 auto;
  display: block;
}

/* ---- CTAs with architectural dimension lines ----------------------------- */
.ifi-ctas {
  display: flex;
  gap: 28px;
  align-items: stretch;
}
.ifi-cta-col {
  display: inline-flex;
  flex-direction: column;
  position: relative;
}
.ifi-cta-col--primary {
  width: 268px;
}
.ifi-cta-col--secondary {
  width: 244px;
}

.ifi-btn {
  border-radius: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  height: 48px;
  position: relative;
}
.ifi-btn--primary {
  width: 268px;
  background: var(--ifi-gold);
  color: var(--ifi-bg-dark);
  border: none;
  font-weight: 600;
  padding: 15px 24px;
  transition: background-color 180ms ease;
}
.ifi-cta-col--primary:hover .ifi-btn--primary {
  background: var(--ifi-gold-bright);
}

.ifi-btn--secondary {
  width: 244px;
  background: transparent;
  color: var(--ifi-cream);
  border: 1px solid var(--ifi-cream);
  font-weight: 500;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}
.ifi-cta-col--secondary:hover .ifi-btn--secondary {
  background: var(--ifi-gold-tint);
  color: var(--ifi-gold-bright);
  border-color: var(--ifi-gold-bright);
}
.ifi-btn--secondary .ifi-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}
.ifi-cta-col--secondary:hover .ifi-arrow {
  transform: translateX(4px);
}

/* tolerance frame (primary only) — appears on hover, 4px outside the button */
.ifi-tol-frame {
  position: absolute;
  left: -4px;
  right: -4px;
  top: -4px;
  height: 56px;
  border: 1px solid transparent;
  transition: border-color 180ms ease;
  pointer-events: none;
}
.ifi-cta-col--primary:hover .ifi-tol-frame {
  border-color: var(--ifi-frame);
}
/* corner cross-ticks on the frame */
.ifi-tol-frame i {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}
.ifi-cta-col--primary:hover .ifi-tol-frame i {
  opacity: 1;
}
.ifi-tol-frame i::before,
.ifi-tol-frame i::after {
  content: "";
  position: absolute;
  background: var(--ifi-frame-tick);
}
.ifi-tol-frame i::before {
  left: -3px;
  top: 0;
  width: 7px;
  height: 1px;
} /* horizontal */
.ifi-tol-frame i::after {
  left: 0;
  top: -3px;
  width: 1px;
  height: 7px;
} /* vertical   */
.ifi-tol-frame .tl {
  left: 0;
  top: 0;
}
.ifi-tol-frame .tr {
  right: 0;
  top: 0;
}
.ifi-tol-frame .bl {
  left: 0;
  bottom: 0;
}
.ifi-tol-frame .br {
  right: 0;
  bottom: 0;
}

/* horizontal dimension line below each button */
.ifi-dim-h {
  position: relative;
  width: 100%;
  height: 18px;
  margin-top: 10px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ifi-cream-dim);
  text-transform: uppercase;
  transition: color 180ms ease;
}
.ifi-dim-h__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 1px;
  background: rgba(240, 235, 224, 0.32);
  transition: background-color 180ms ease;
}
.ifi-dim-h__cap {
  position: absolute;
  top: 1px;
  width: 1px;
  height: 16px;
  background: var(--ifi-cream);
}
.ifi-dim-h__cap--l {
  left: 0;
}
.ifi-dim-h__cap--r {
  right: 0;
}
.ifi-dim-h__cap::after {
  /* the perpendicular tick of the "+" */
  content: "";
  position: absolute;
  top: 8px;
  left: -3px;
  width: 7px;
  height: 1px;
  background: var(--ifi-cream);
}
.ifi-dim-h__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ifi-bg);
  padding: 0 10px;
  white-space: nowrap;
}
/* brighten on hover of the owning column */
.ifi-cta-col--primary:hover .ifi-dim-h,
.ifi-cta-col--secondary:hover .ifi-dim-h {
  color: var(--ifi-cream);
}
.ifi-cta-col--primary:hover .ifi-dim-h__line,
.ifi-cta-col--secondary:hover .ifi-dim-h__line {
  background: rgba(240, 235, 224, 0.65);
}
.ifi-cta-col--secondary:hover .ifi-dim-h {
  color: var(--ifi-gold-bright);
}

/* vertical dimension line — flush to the right of the secondary button */
.ifi-dim-v {
  position: relative;
  width: 30px;
  height: 48px;
  align-self: flex-start;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ifi-cream-dim);
  text-transform: uppercase;
  transition: color 180ms ease;
}
.ifi-dim-v__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1px;
  width: 1px;
  background: rgba(240, 235, 224, 0.32);
  transition: background-color 180ms ease;
}
.ifi-dim-v__cap {
  position: absolute;
  left: -1px;
  width: 6px;
  height: 1px;
  background: var(--ifi-cream);
}
.ifi-dim-v__cap--t {
  top: 0;
}
.ifi-dim-v__cap--b {
  bottom: 0;
}
.ifi-dim-v__cap::after {
  content: "";
  position: absolute;
  left: 2px;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--ifi-cream);
}
.ifi-dim-v__label {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  background: var(--ifi-bg);
  padding: 2px 6px;
  white-space: nowrap;
}
.ifi-ctas:hover .ifi-dim-v {
  color: var(--ifi-cream);
}
.ifi-ctas:hover .ifi-dim-v__line {
  background: rgba(240, 235, 224, 0.65);
}
.ifi-ctas:has(.ifi-btn--secondary:hover) .ifi-dim-v {
  color: var(--ifi-gold-bright);
}

/* ---- Floating chrome: readout (top-right) + hint (bottom-right) ---------- */
.ifi-readout {
  position: absolute;
  z-index: 1;
  top: 84px;
  right: 32px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ifi-cream-dim);
  text-align: right;
  line-height: 1.7;
  pointer-events: none;
}
.ifi-readout b {
  font-weight: 400;
  color: var(--ifi-gold-bright);
}
.ifi-readout__status {
  margin-top: 6px;
  color: var(--ifi-gold);
}

.ifi-hint {
  position: absolute;
  z-index: 1;
  bottom: 78px;
  right: 32px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ifi-cream-dim);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.6;
  pointer-events: none;
}
.ifi-hint span {
  color: rgba(240, 235, 224, 0.35);
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .ifi-nav {
    padding: 0 24px;
  }
  .ifi-nav__menu {
    gap: 18px;
  }
  .ifi-nav__link {
    display: none;
  }
  .ifi-nav__cta-wrap {
    display: none;
  }
  .ifi-nav__hamburger {
    display: flex;
  }
  .ifi-main {
    padding: 32px 24px 40px;
  }
  .ifi-readout {
    display: none;
  }
  .ifi-hint {
    display: none;
  }
  .ifi-sub {
    font-size: 18px;
  }
  .ifi-bullets {
    gap: 11px;
  }
  .ifi-ctas {
    flex-wrap: wrap;
    gap: 18px 28px;
  }
}

@media (max-width: 560px) {
  .ifi-hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .ifi-main {
    gap: 40px;
  }
  .ifi-cta-col--primary,
  .ifi-btn--primary {
    width: 100%;
  }
  .ifi-cta-col--secondary,
  .ifi-btn--secondary {
    width: 100%;
  }
  .ifi-ctas {
    flex-direction: column;
  }
  .ifi-dim-v {
    display: none;
  }
}

/* Respect users who prefer reduced motion: the grid script also checks this. */
@media (prefers-reduced-motion: reduce) {
  .ifi-nav__link::after,
  .ifi-btn,
  .ifi-arrow,
  .ifi-dim-h,
  .ifi-dim-v {
    transition: none;
  }
}
