:root {
  --navy: #1a2332;
  --orange: #f2762e;
  --white: #ffffff;
  --foreground: #ffffff;
  --muted: #b7c0cb;
  --line: #3b4654;
  --background: #1a2332;
  --page-gutter: clamp(1.5rem, 4.7vw, 4.5rem);
  --content-width: 1440px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--foreground);
  background: var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--navy);
  background: var(--white);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.site-header,
.hero,
.about,
.site-footer {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.site-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
}

.brand img {
  width: 26px;
  height: auto;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  font-size: 0.86rem;
  font-weight: 500;
}

.site-nav a,
.footer-links a {
  position: relative;
  padding-block: 0.45rem;
}

.site-nav a::after,
.footer-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  min-height: min(650px, calc(100svh - 102px));
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding-block: clamp(4.5rem, 8vw, 6.25rem);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(4.25rem, 6.6vw, 6.9rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.84;
}

.hero-copy > p {
  margin: clamp(2rem, 4vw, 3.2rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.hero-mark {
  position: relative;
  display: grid;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  place-items: center;
  justify-self: end;
}

.hero-mark img {
  width: clamp(230px, 21vw, 330px);
  height: auto;
  filter: drop-shadow(0 18px 20px rgb(26 35 50 / 6%));
}

.hero-mark .line {
  position: absolute;
  width: 2px;
  height: 44%;
  background: var(--foreground);
  transform: rotate(32deg) scaleY(0);
  animation: draw-line 900ms 520ms var(--ease-out) forwards;
}

.line-top {
  top: -12%;
  right: 8%;
  transform-origin: top;
}

.line-bottom {
  bottom: -14%;
  left: 4%;
  transform-origin: bottom;
}

.about {
  position: relative;
  display: flex;
  min-height: 235px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.about h2 {
  margin: 0;
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.about p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.75rem);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

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

@keyframes draw-line {
  to {
    transform: rotate(32deg) scaleY(1);
  }
}

@media (max-width: 840px) {
  .site-header {
    min-height: 52px;
  }

  .site-nav {
    gap: 1.3rem;
    font-size: 0.92rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    padding-block: 5rem 2rem;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 16vw, 6.25rem);
  }

  .hero-mark {
    width: min(88vw, 430px);
    margin-top: -1rem;
    margin-right: -12%;
  }

  .hero-mark img {
    width: min(64vw, 300px);
  }

  .about {
    min-height: 310px;
  }

}

@media (max-width: 560px) {
  .site-header {
    min-height: 50px;
  }

  .brand img {
    width: 24px;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .hero-copy {
    padding-top: 4.25rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
    line-height: 0.88;
  }

  .desktop-break {
    display: none;
  }

  .hero-mark {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .about {
    min-height: 285px;
    padding-block: 4.5rem;
  }

  .site-footer {
    min-height: 150px;
    padding-block: 1.8rem;
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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