/* ================================================================
   DESIGN TOKENS: COLORS, TYPE, WIDTHS, AND GLOBAL SPACING
   ================================================================ */
:root {
  --color-navy: #151c36;
  --color-navy-deep: #07172d;
  --color-navy-dark: #041225;
  --color-green: #80ee98;
  --color-green-dark: #2e6147;
  --color-white: #ffffff;
  --color-text-muted: #c9d1dd;
  --color-border: rgba(128, 238, 152, 0.48);
  --color-border-soft: rgba(255, 255, 255, 0.14);

  --font-primary: "Aileron", "Helvetica Neue", Arial, sans-serif;
  --container-width: 1296px;
  --page-gutter: clamp(1.5rem, 4.5vw, 4.25rem);
  --section-space: clamp(3rem, 5vw, 5rem);
}

/* ================================================================
   GLOBAL RESET AND BASE PAGE STYLES
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--color-white);
  background:
    radial-gradient(circle at 68% 33%, rgba(16, 47, 81, 0.3), transparent 35%),
    linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-deep) 52%, #06162b 100%);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

/* SHARED CONTENT CONTAINER */
.container {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--container-width));
  margin-inline: auto;
}

/* ================================================================
   SITE HEADER AND SHARED BRAND LOGO
   ================================================================ */
.site-header {
  min-height: 95px;
  border-bottom: 1px solid var(--color-border-soft);
}

.site-header__inner {
  display: grid;
  place-items: center;
  min-height: 95px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand__logo {
  width: clamp(180px, 16vw, 220px);
  height: auto;
}

/* ================================================================
   HERO SECTION: TEXT LAYOUT AND TYPOGRAPHY
   ================================================================ */
.hero {
  padding-block: clamp(2.25rem, 4vw, 4rem) clamp(2.5rem, 4vw, 3.75rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.96fr);
  align-items: center;
  gap: clamp(2.75rem, 5.5vw, 5.25rem);
}

.hero__content {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--color-green);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3rem, 4.45vw, 4.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__description {
  max-width: 640px;
  margin: 2rem 0 0;
  color: #f1f4f8;
  font-size: clamp(1rem, 1.32vw, 1.22rem);
  line-height: 1.65;
}

/* ================================================================
   HERO IMAGE: SIZE, FRAME, GLOW, AND POINTER EFFECT
   ================================================================ */
.hero__media {
  position: relative;
  isolation: isolate;
  width: min(100%, 545px, 52vh);
  justify-self: end;
  margin: 0;
  overflow: hidden;
  aspect-ratio: auto;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.hero__media::before,
.hero__media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero__media::before {
  z-index: 1;
  background: linear-gradient(135deg, rgba(4, 18, 37, 0.22), transparent 52%);
}

.hero__media::after {
  z-index: 2;
  opacity: var(--hero-glow-opacity, 0);
  background: radial-gradient(
    circle at var(--hero-glow-x, 50%) var(--hero-glow-y, 50%),
    rgba(128, 238, 152, 0.18),
    transparent 34%
  );
  transition: opacity 320ms ease;
}

.hero__media:hover::after {
  --hero-glow-opacity: 1;
}

.hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

/* ================================================================
   CONTACT SECTION: HEADING AND FOUR-COLUMN INFORMATION GRID
   ================================================================ */
.contact {
  padding-block: clamp(2.25rem, 3.5vw, 3.5rem) clamp(3rem, 5vw, 5rem);
}

.contact .container {
  padding-top: 2.2rem;
  border-top: 1px solid var(--color-border);
}

.section-heading {
  margin-bottom: clamp(2.25rem, 3vw, 3.25rem);
}

.section-heading .eyebrow {
  margin-bottom: 0.65rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.35rem, 3vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  font-style: normal;
}

.contact-item {
  min-width: 0;
  padding-inline: clamp(1.5rem, 3vw, 3rem);
}

.contact-item:first-child {
  padding-left: 0;
}

.contact-item:last-child {
  padding-right: 0;
}

.contact-item + .contact-item {
  border-left: 1px solid var(--color-border);
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  overflow: visible;
  fill: none;
  stroke: var(--color-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item__icon--linkedin {
  fill: var(--color-green);
  stroke: none;
}

.contact-item h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 400;
  line-height: 1.25;
}

.contact-item p {
  min-height: 3em;
  margin: 0.55rem 0 0.7rem;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* CONTACT LINKS, HOVER STATES, AND KEYBOARD FOCUS */
.contact-item a,
.site-footer__links a {
  display: inline-block;
  color: var(--color-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease,
    transform 180ms ease;
}

.contact-item a {
  font-size: 0.93rem;
}

.contact-item a:hover,
.site-footer__links a:hover {
  color: var(--color-white);
  text-decoration-color: var(--color-green);
  transform: translateX(3px);
}

.contact-item__icon {
  transition:
    transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1),
    filter 280ms ease;
}

.contact-item:hover .contact-item__icon {
  filter: drop-shadow(0 0 8px rgba(128, 238, 152, 0.28));
  transform: translateY(-3px);
}

.contact-item a:focus-visible,
.site-footer__links a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 5px;
  border-radius: 2px;
}

/* ================================================================
   SITE FOOTER: LOGO, OPTIONAL LINKS AREA, AND COPYRIGHT
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--color-border-soft);
  padding-block: 1.75rem 2.25rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.1vh, 0.8rem);
}

.site-footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}

.site-footer .brand__logo {
  width: clamp(165px, 12vw, 190px);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}

.site-footer__copyright {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

/* ================================================================
   JAVASCRIPT-ENHANCED REVEAL ANIMATIONS
   Content stays visible if JavaScript is unavailable.
   ================================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal="media"] {
  clip-path: inset(0 100% 0 0 round 7px);
  opacity: 1;
  transform: none;
  transition:
    clip-path 950ms cubic-bezier(0.65, 0, 0.15, 1),
    box-shadow 700ms ease;
}

.js [data-reveal="media"] img {
  opacity: 0;
  transform: none;
  transition:
    opacity 700ms ease 180ms,
    transform 1200ms cubic-bezier(0.2, 0.7, 0.2, 1) 100ms;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.js [data-reveal="media"].is-visible {
  clip-path: inset(0 0 0 0 round 7px);
}

.js [data-reveal="media"].is-visible img {
  opacity: 1;
  transform: none;
}

.js [data-reveal="media"].is-settled img {
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ================================================================
   LARGE DESKTOP: SINGLE-SCREEN TEMPORARY CONTACT PAGE (1101PX+)
   ================================================================ */
@media (min-width: 1101px) {
  html,
  body {
    height: 100%;
  }

  body {
    display: grid;
    grid-template-rows:
      clamp(64px, 6.25vh, 76px)
      minmax(0, 1fr)
      clamp(108px, 11.75vh, 140px);
    overflow: hidden;
  }

  .site-header,
  .site-header__inner {
    min-height: 100%;
  }

  .brand__logo {
    width: clamp(175px, 14vw, 205px);
  }

  main {
    display: grid;
    grid-template-rows: minmax(0, 58%) minmax(0, 42%);
    min-height: 0;
  }

  .hero {
    display: flex;
    min-height: 0;
    align-items: center;
    padding-block: clamp(0.75rem, 1.7vh, 1.25rem);
  }

  .hero__inner {
    gap: clamp(2.75rem, 5vw, 4.75rem);
  }

  .hero__description {
    margin-top: clamp(1rem, 2vh, 1.4rem);
  }

  .hero__media {
    height: auto;
    aspect-ratio: auto;
  }

  .contact {
    min-height: 0;
    padding: 0 0 clamp(1.5rem, 3vh, 2.25rem);
  }

  .contact .container {
    height: 100%;
    padding-top: clamp(1rem, 2vh, 1.4rem);
  }

  .section-heading {
    margin-bottom: clamp(1rem, 2.1vh, 1.4rem);
  }

  .section-heading .eyebrow {
    margin-bottom: 0.35rem;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 2.5vw, 2.6rem);
  }

  .contact-item {
    padding-inline: clamp(1.25rem, 2.5vw, 2.5rem);
  }

  .contact-item__icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.55rem;
  }

  .contact-item h3 {
    font-size: clamp(1.15rem, 1.35vw, 1.35rem);
  }

  .contact-item p {
    min-height: 2.7em;
    margin: 0.3rem 0 0.45rem;
    font-size: 0.87rem;
    line-height: 1.4;
  }

  .contact-item a {
    font-size: 0.86rem;
  }

  .site-footer {
    min-height: 0;
    padding-block: clamp(0.75rem, 1.35vh, 1rem);
  }

  .site-footer__inner {
    height: 100%;
    gap: clamp(0.45rem, 0.9vh, 0.65rem);
  }

  .site-footer__links {
    gap: 1.5rem;
  }

  .site-footer__copyright {
    font-size: 0.8rem;
  }
}

/* SHORT DESKTOP/LAPTOP HEIGHT ADJUSTMENTS */
@media (min-width: 1101px) and (max-height: 850px) {
  body {
    grid-template-rows: 64px minmax(0, 1fr) 112px;
  }

  main {
    grid-template-rows: minmax(0, 56%) minmax(0, 44%);
  }

  .hero__media {
    height: auto;
  }

  .eyebrow {
    margin-bottom: 0.75rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 4vw, 3.75rem);
  }

  .hero__description {
    margin-top: 0.85rem;
    line-height: 1.5;
  }

  .contact {
    padding-bottom: 0.85rem;
  }

  .contact .container {
    padding-top: 0.7rem;
  }

  .section-heading {
    margin-bottom: 0.7rem;
  }

  .section-heading h2 {
    font-size: 1.9rem;
  }

  .contact-item__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0.35rem;
  }

  .contact-item p {
    min-height: 2.5em;
    margin-block: 0.2rem 0.35rem;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .site-footer {
    padding-block: 0.6rem;
  }

  .site-footer__content {
    gap: 0.25rem;
  }

  .site-footer .brand__logo {
    width: 165px;
  }
}

/* ================================================================
   TABLET AND SMALL DESKTOP LAYOUT (1100PX AND BELOW)
   ================================================================ */
@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .contact-item {
    padding-inline: 2rem;
  }

  .contact-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .contact-item:nth-child(even) {
    padding-right: 0;
    border-left: 1px solid var(--color-border);
  }

  .contact-item p {
    min-height: auto;
  }
}

/* ================================================================
   TABLET PORTRAIT LAYOUT (800PX AND BELOW)
   Hero changes to one column.
   ================================================================ */
@media (max-width: 800px) {
  :root {
    --page-gutter: clamp(1.25rem, 5vw, 2.5rem);
  }

  .site-header,
  .site-header__inner {
    min-height: 82px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero__content {
    max-width: 680px;
  }

  .hero h1 {
    max-width: 620px;
  }

  .hero__description {
    margin-top: 1.5rem;
  }

  .hero__media {
    width: 100%;
    justify-self: stretch;
    aspect-ratio: auto;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.75rem;
  }
}

/* ================================================================
   MOBILE LAYOUT (580PX AND BELOW)
   Contact cards change to one column.
   ================================================================ */
@media (max-width: 580px) {
  .brand__logo {
    width: 175px;
  }

  .hero {
    padding-block: 2.25rem 2.75rem;
  }

  .eyebrow {
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.35rem);
    line-height: 1.08;
  }

  .hero__description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .contact {
    padding-bottom: 3.25rem;
  }

  .contact .container {
    padding-top: 2rem;
  }

  .section-heading {
    margin-bottom: 2.25rem;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .contact-item,
  .contact-item:first-child,
  .contact-item:last-child,
  .contact-item:nth-child(even),
  .contact-item:nth-child(odd) {
    padding: 1.75rem 0;
    border-left: 0;
  }

  .contact-item:first-child {
    padding-top: 0;
  }

  .contact-item + .contact-item {
    border-top: 1px solid var(--color-border-soft);
  }

  .contact-item__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.8rem;
  }

  .site-footer__content,
  .site-footer__links {
    align-items: center;
  }

  .site-footer__content,
  .site-footer__links {
    flex-direction: column;
  }

  .site-footer__links {
    gap: 0.8rem;
  }
}

/* ================================================================
   ACCESSIBILITY: REDUCED-MOTION OVERRIDES
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal],
  .js [data-reveal="media"],
  .js [data-reveal="media"] img {
    clip-path: none;
    opacity: 1;
    transform: none;
  }
}