:root {
  color-scheme: light;
  --ink: #14212f;
  --muted: #5d6b78;
  --paper: #fbfaf7;
  --navy: #10243e;
  --gold: #b98231;
  --content-max: 1840px;
  --page-pad: clamp(1.25rem, 4.9vw, 6.25rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

main {
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto;
  min-height: 0;
}

.hero {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 12, 18, 0.18), rgba(4, 12, 18, 0.08)),
    linear-gradient(0deg, rgba(4, 12, 18, 0.1), rgba(4, 12, 18, 0.08)),
    url("/assets/iispl-hero.jpg") center center / cover no-repeat;
}

.hero-content {
  position: absolute;
  inset: 0;
  color: #fff;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-brand {
  position: absolute;
  top: clamp(1.7rem, 2.4vw, 2.6rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  position: absolute;
  top: 56%;
  left: 50%;
  width: min(1240px, calc(100% - 2rem));
  transform: translate(-50%, -50%);
  max-width: none;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.2vw, 5.3rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.32);
}

h2 {
  margin: 0;
  max-width: 780px;
  color: var(--navy);
  font-size: clamp(1.75rem, 2.8vw, 2.8rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.contact {
  padding: clamp(1.8rem, 4vh, 3rem) var(--page-pad);
  display: grid;
  background: #f2eee7;
  border-top: 1px solid rgba(16, 36, 62, 0.1);
  color: var(--ink);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, min(58vw, 900px)) auto;
  column-gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.contact h2 {
  color: var(--navy);
}

.contact p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
}

.contact-actions {
  display: grid;
  grid-template-columns: 225px 46px;
  align-items: center;
  justify-self: start;
  gap: 0.45rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 225px;
  padding: 0.78rem 1rem;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 18px rgba(16, 36, 62, 0.1);
}

.copy-email {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(16, 36, 62, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.copy-email:hover,
.copy-email:focus-visible {
  background: #fff;
}

.copy-email:active {
  color: rgba(16, 36, 62, 0.48);
}

.copy-email.is-copied {
  color: rgba(16, 36, 62, 0.54);
  background: rgba(255, 255, 255, 0.68);
}

.copy-email svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: opacity 160ms ease;
}

.copy-email.is-copied svg {
  opacity: 0.45;
}

.copy-feedback {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translate(-50%, 0.25rem);
  padding: 0.24rem 0.44rem;
  border-radius: 5px;
  background: rgba(16, 36, 62, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.copy-email.is-copied .copy-feedback {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-footer {
  padding: 0.68rem var(--page-pad);
  background: #0a1727;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.footer-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 900px) {
  main {
    grid-template-rows: minmax(320px, 1fr) auto;
  }

  .contact {
    padding-inline: var(--page-pad);
  }

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

  .contact-actions {
    justify-self: start;
  }
}

@media (max-height: 700px) and (min-width: 700px) {
  main {
    grid-template-rows: minmax(240px, 1fr) auto;
  }

  .hero-brand {
    top: 1.35rem;
    font-size: 1.15rem;
  }

  .hero h1 {
    top: 55%;
    font-size: clamp(2.5rem, 4.6vw, 4.3rem);
  }

  .contact {
    padding-block: 1.25rem;
  }

  h2 {
    font-size: clamp(1.65rem, 2.35vw, 2.25rem);
  }

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

@media (max-width: 620px) {
  main {
    grid-template-rows: minmax(270px, 1fr) auto;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    background:
      linear-gradient(0deg, rgba(8, 19, 31, 0.34), rgba(8, 19, 31, 0.12)),
      url("/assets/iispl-hero.jpg") 58% center / cover no-repeat;
  }

  .hero-brand {
    top: 1.4rem;
    font-size: 1.05rem;
  }

  .hero h1 {
    top: 54%;
    width: min(380px, calc(100% - 1.4rem));
    font-size: clamp(2.1rem, 10.4vw, 3.5rem);
  }

  .contact {
    padding: 1.35rem 1rem;
  }

  .contact-inner {
    row-gap: 0.9rem;
  }

  .eyebrow {
    margin-bottom: 0.45rem;
  }

  h2 {
    font-size: clamp(1.5rem, 7.4vw, 2.05rem);
  }

  .contact p:not(.eyebrow) {
    margin-top: 0.45rem;
    font-size: 0.94rem;
  }

  .contact-actions {
    flex-wrap: wrap;
    display: flex;
  }

  .contact-link {
    min-height: 46px;
    width: auto;
    min-width: 0;
    padding: 0.65rem 0.8rem;
    font-size: 0.95rem;
  }

  .copy-email {
    width: 40px;
    height: 40px;
  }

  .site-footer {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
  }
}
