:root {
  --navy: #224870;
  --steel: #33658a;
  --orange: #e67a22;
  --ink: #13202c;
  --muted: #5c6d7c;
  --cream: #faf8f3;
  --white: #ffffff;
  --line: #d8dee6;
  --wrap: 1400px;
  --pad: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.55s var(--ease);
  --header: 52px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: calc(var(--header) + var(--safe-top));
  padding-top: var(--safe-top);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(19, 32, 44, 0.04);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 16px;
  width: auto;
}

.logo-mark {
  display: none;
  height: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--orange);
  position: relative;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
}

body.nav-open .menu-toggle span {
  transform: translateY(3px) rotate(45deg);
}

body.nav-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-90deg);
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 120px) 0;
}

.hero-copy {
  max-width: 820px;
  container-type: inline-size;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero h1,
.page-hero h1 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--navy);
}

.hero h1 {
  font-size: clamp(22px, 8.1cqi, 68px);
  white-space: nowrap;
}

.lede {
  margin-top: 28px;
  max-width: 42ch;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34, 72, 112, 0.18);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  transition: gap 0.35s var(--ease), color 0.35s var(--ease);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover {
  color: var(--navy);
  gap: 12px;
}

/* Holdings */

.holding {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  column-gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.holding:first-child {
  border-top: 0;
  padding-top: 0;
}

.holding img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin: 6px 0 0;
}

.holding img.holding-logo-hantry {
  height: 25px;
}

.holding h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 10px;
}

.holding p {
  color: var(--muted);
  margin-bottom: 16px;
}

/* Partner */

.partner-block {
  display: grid;
  grid-template-columns: minmax(160px, 230px) 1fr;
  column-gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.partner-photo {
  margin: 0;
}

.partner-photo img {
  width: 100%;
  height: auto;
}

.partner-copy h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.1;
}

.role {
  margin: 10px 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.partner-copy .bio {
  color: var(--muted);
}

.partner-copy .bio + .bio {
  margin-top: 16px;
}

/* Pages */

.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 24px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.page-hero .lede {
  margin-top: 20px;
}

.page-section {
  padding: 48px 0 120px;
}

.legal {
  max-width: 68ch;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal p + p {
  margin-top: 16px;
}

/* Contact */

.contact-row {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  column-gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

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

.contact-row h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.contact-row p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-row a {
  color: var(--navy);
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-row a:hover {
  color: var(--steel);
}

/* Footer */

.site-footer {
  background: var(--cream);
  color: #9aa6b0;
  padding: 16px 0 calc(16px + var(--safe-bottom));
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  line-height: 1.45;
}

.footer-brand p {
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #9aa6b0;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--navy);
}

/* Motion */

.header-inner {
  animation: rise-in 0.7s var(--ease) both;
}

.hero-copy > *,
.page-hero .wrap > * {
  animation: rise-in 0.85s var(--ease) both;
}

.hero-copy > *:nth-child(1),
.page-hero .wrap > *:nth-child(1) {
  animation-delay: 0.12s;
}

.hero-copy > *:nth-child(2),
.page-hero .wrap > *:nth-child(2) {
  animation-delay: 0.24s;
}

.hero-copy > *:nth-child(3),
.page-hero .wrap > *:nth-child(3) {
  animation-delay: 0.36s;
}

.site-footer {
  animation: rise-in 0.7s var(--ease) 0.5s both;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: calc(var(--header) + var(--safe-top));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: none;
    grid-template-columns: max-content;
    justify-content: center;
    justify-items: start;
    align-items: start;
    align-content: start;
    gap: 28px;
    width: 100%;
    height: calc(100dvh - var(--header) - var(--safe-top));
    padding: 48px var(--pad) calc(40px + var(--safe-bottom));
    background: var(--cream);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav {
    display: grid;
  }

  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  body.home main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  body.home .hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 32px 0;
  }

  .partner-block {
    grid-template-columns: 1fr;
  }

  .logo-full {
    display: none;
  }

  .logo-mark {
    display: block;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: clamp(40px, 8vw, 64px) 0 16px;
  }

  .page-section {
    padding: 32px 0 72px;
  }

  .holding,
  .contact-row {
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding: 32px 0;
  }

  .holding img {
    margin-top: 0;
  }

  .partner-photo {
    max-width: 220px;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .footer-links a {
    padding: 2px 0;
  }

  .footer-brand p {
    white-space: normal;
  }
}

@media (min-width: 981px) {
  body.home {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  body.home main {
    flex: 1;
    display: flex;
    min-height: 0;
  }

  body.home .hero {
    flex: 1;
    width: 100%;
    padding: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body,
  .header-inner,
  .hero-copy > *,
  .page-hero .wrap > *,
  .site-footer,
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
