/* ============================================================
   Adams Fork Energy
   ============================================================ */

:root {
  /* Palette */
  --navy:        #1d2549;
  --navy-deep:   #161c3a;
  --navy-edge:   #131a35;
  --lime:        #c9ef6f;
  --lime-soft:   #d9f599;
  --white:       #ffffff;
  --off-white:   #f5f5f0;
  --muted:       #aab0c6;

  /* Type */
  --font-sans:   'Outfit', system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container:        1240px;
  --container-text:   760px;
  --container-narrow: 680px;
  --gutter:           clamp(1.25rem, 4vw, 2.5rem);
  --radius-pill:      999px;
  --radius-lg:        24px;
  --radius-md:        18px;
  --radius-sm:        8px;

  /* Motion */
  --ease-out:    cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 1rem; font-weight: 700; line-height: 1.05; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--lime); color: var(--navy); }


/* ============ Layout primitives ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--text   { max-width: var(--container-text); }
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
}
.section--narrow         { padding: clamp(3rem, 6vw, 5rem) 0 clamp(1rem, 2vw, 1.5rem); }
.section--presentations  { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.section--closer         { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--navy-deep); }


/* ============ Permit badge bar ============ */
.permit-badge {
  background: var(--off-white);
  color: var(--navy);
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  letter-spacing: 0.14em;
  padding: 0.7rem var(--gutter);
}


/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 920px);
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: polygon(0 0, 58% 0, 34% 100%, 0 100%);
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Reframe: focus on the sharper upper-right plant cluster, away from the watermark in the
     bottom-left corner of the source PNG. */
  object-position: 78% 18%;
  transform: scale(1.06);
  transform-origin: center;
}
/* Mask the baked-in italic "Illustrative diagram" caption at bottom-left of source */
.hero__mask {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36%;
  height: 110px;
  background: linear-gradient(
    to top right,
    rgba(29,37,73,0.95) 0%,
    rgba(29,37,73,0.6) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}
.hero__caption {
  position: absolute;
  bottom: 22px;
  left: 26px;
  color: rgba(255,255,255,0.78);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(29,37,73,0) 0%,
    rgba(29,37,73,0.35) 100%
  );
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  min-height: inherit;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero__text {
  justify-self: end;
  text-align: right;
  max-width: 720px;
}
.hero__kicker {
  display: inline-block;
  color: var(--lime);
  font-size: clamp(0.8rem, 1.15vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1.5px solid var(--lime);
}
.hero__title {
  font-size: clamp(4.25rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.hero__title-line             { display: block; }
.hero__title-line--accent     { color: var(--lime); }
.hero__title-line--white      { color: var(--white); }
.hero__tagline {
  color: var(--white);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 2.25rem;
  opacity: 0.92;
}


/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  letter-spacing: 0.02em;
  padding: 1rem 2.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 220ms var(--ease-out),
    background 220ms var(--ease-out),
    color 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
  text-decoration: none;
  will-change: transform;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--lg {
  padding: 1.15rem 2.5rem;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

.btn--primary {
  background: var(--lime);
  color: var(--navy);
  box-shadow: 0 10px 28px -12px rgba(201,239,111,0.6);
}
.btn--primary:hover {
  background: var(--lime-soft);
  box-shadow: 0 14px 34px -12px rgba(201,239,111,0.75);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}


/* ============ Type utilities ============ */
.eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin: 0 0 0.875rem;
}
.section__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section__title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.section__sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  margin: 0.75rem 0 0;
}
.lede {
  font-size: clamp(1.125rem, 1.55vw, 1.375rem);
  line-height: 1.55;
  color: var(--white);
  margin: 0 0 1.5rem;
  text-align: center;
}
.section p {
  margin: 0 0 1.25rem;
  color: var(--off-white);
}
.section p strong { color: var(--white); font-weight: 700; }


/* ============ Presentations grid ============ */
.presentations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 1080px;
  margin: 0 auto;
}
.presentation-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition:
    transform 280ms var(--ease-out),
    border-color 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out);
  text-decoration: none;
  color: var(--white);
}
.presentation-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7);
}
.presentation-card__media {
  position: relative;
  overflow: hidden;
  background: #0a0e22;
  aspect-ratio: 4 / 5;
}
.presentation-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 600ms var(--ease-out);
}
.presentation-card:hover .presentation-card__media img {
  transform: scale(1.02);
}
.presentation-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--navy-deep);
}
.presentation-card__label {
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  letter-spacing: 0.01em;
}
.presentation-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--lime);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.presentation-card__cta .arrow {
  width: 18px;
  height: 18px;
  transition: transform 220ms var(--ease-out);
}
.presentation-card:hover .presentation-card__cta .arrow {
  transform: translateX(4px);
}


/* ============ Site video ============ */
.site-video {
  margin: clamp(2rem, 4vw, 2.75rem) auto;
  max-width: 640px;
}
.video-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 30px 60px -25px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06);
  background: #000;
}
.video-frame__player {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.site-video__caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  font-style: italic;
}


/* ============ CTA row ============ */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.cta-row--centered { margin-top: clamp(2rem, 4vw, 3rem); }


/* ============ Closing tagline ============ */
.closer {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
  max-width: 18ch;
}
.closer .accent { color: var(--lime); }


/* ============ Footer ============ */
.footer {
  background: var(--navy-edge);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.footer__eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin: 0 0 1.25rem;
}
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 1rem;
  transition: all 220ms var(--ease-out);
}
.contact-pill__icon { width: 18px; height: 18px; }
.contact-pill--primary {
  background: var(--lime);
  color: var(--navy);
}
.contact-pill--primary:hover {
  background: var(--lime-soft);
  transform: translateY(-1px);
}
.contact-pill--secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.contact-pill--secondary:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.footer__legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}


/* ============ Responsive tweaks ============ */
@media (max-width: 880px) {
  .presentations-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .presentation-card__media { aspect-ratio: 4 / 3; }
  .site-video { max-width: 100%; }
}

@media (max-width: 720px) {
  .hero__media {
    clip-path: polygon(0 0, 100% 0, 100% 48%, 0 62%);
  }
  .hero__text {
    justify-self: stretch;
    text-align: left;
    margin-top: 52vw;
  }
  .hero__title {
    align-items: flex-start;
  }
  .hero__kicker {
    align-self: flex-start;
  }
  .lede { text-align: left; }
  .contact-pills { flex-direction: column; align-items: flex-start; }
  .contact-pill { width: 100%; justify-content: center; }
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .contact-pill:hover, .presentation-card:hover { transform: none; }
  .presentation-card:hover .presentation-card__media img { transform: none; }
  .presentation-card:hover .presentation-card__cta .arrow { transform: none; }
  * { animation: none !important; transition: none !important; }
}
