:root {
  --paper: #F7F3EC;
  --river-deep: #143C56;
  --river-deepest: #0C2E46;
  --sun: #E0742B;
  --muted: #C4D4DF;
  --rule: rgba(247, 243, 236, .34);
  --footer: #10222F;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--river-deep);
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--river-deep);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hub-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: clamp(22px, 4vw, 56px);
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  background: transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 140px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 31, 58, .92), rgba(11, 31, 58, 0));
}

.site-header .site-shell {
  max-width: none;
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-logo {
  width: 196px;
  height: auto;
  display: block;
}

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

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.site-nav a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -17px;
  width: 1px;
  height: 22px;
  background: rgba(247, 243, 236, .42);
  transform: translateY(-50%);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(247, 243, 236, .08);
}

.menu-toggle:focus-visible,
.site-nav a:focus-visible,
.tool-button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.menu-icon {
  width: 27px;
  display: grid;
  gap: 5px;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: currentColor;
}

.site-header.is-open .menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-icon span {
  transition: opacity .18s ease, transform .18s ease;
}

.hub-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hub-intro.site-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 360px;
  max-width: none;
  padding-top: 152px;
  padding-bottom: clamp(34px, 3vw, 48px);
  background: var(--river-deep);
  color: var(--paper);
}

.hub-intro.site-shell::before,
.hub-intro.site-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hub-intro.site-shell::before {
  z-index: 0;
  background: linear-gradient(100deg, rgba(20, 60, 86, .84) 0%, rgba(20, 60, 86, .5) 40%, rgba(20, 60, 86, .1) 70%, rgba(224, 116, 43, .08) 100%), url('/assets/hero-poster.jpg') center / cover;
}

.hub-intro.site-shell::after {
  z-index: 1;
  background: linear-gradient(to top, var(--river-deep) 0%, rgba(20, 60, 86, 0) 50%);
}

.hub-intro.site-shell > * {
  position: relative;
  z-index: 2;
}

.hub-intro h1,
.tool-copy h2 {
  margin: 0;
  color: #fff;
  font-family: 'Saira Condensed', 'Arial Narrow', sans-serif;
  font-weight: 800;
  line-height: .93;
  letter-spacing: .005em;
  text-transform: none;
}

.hub-intro h1 {
  font-size: clamp(60px, 9vw, 112px);
  line-height: 1.02;
  white-space: nowrap;
}

.hub-intro p {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.5;
}

.tool-list {
  flex: 1;
  padding-bottom: clamp(76px, 9vw, 132px);
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(26px, 5vw, 76px);
  padding: 42px 0 44px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.tool-copy {
  max-width: 760px;
}

.tool-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.02;
  text-transform: uppercase;
}

.tool-copy p {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.45;
}

.tool-action {
  padding-top: 19px;
}

.tool-button {
  display: inline-flex;
  min-width: 154px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px 12px 20px;
  border: 2px solid transparent;
  border-radius: 3px;
  color: #fff;
  background: var(--sun);
  box-shadow: 0 10px 22px -12px rgba(224, 116, 43, .8);
  font-family: 'Saira Condensed', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .03em;
  transition: background .18s ease, transform .18s ease;
}

.tool-button:hover {
  color: #fff;
  background: #C9621F;
  transform: translateY(-2px);
}

.tool-button svg {
  flex: 0 0 auto;
  transition: transform .18s ease;
}

.tool-button:hover svg,
.tool-button:focus-visible svg {
  transform: translateX(3px);
}

.site-footer {
  padding: 26px 0;
  background: var(--footer);
  color: #7F97A5;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
}

.foot-bottom .mono {
  letter-spacing: .04em;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 84px;
  }

  .brand-logo {
    width: 164px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px clamp(22px, 4vw, 56px) 20px;
    border-top: 1px solid rgba(247, 243, 236, .14);
    background: var(--river-deep);
    box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .55);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(247, 243, 236, .14);
  }

  .site-nav a + a::before,
  .site-nav a::after {
    display: none;
  }

  .hub-intro.site-shell {
    min-height: 300px;
    padding-top: 116px;
    padding-bottom: 50px;
  }

  .hub-intro h1 {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hub-intro p {
    margin-top: 18px;
    font-size: 18px;
  }

  .tool-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 34px 0 38px;
  }

  .tool-copy h2 {
    font-size: clamp(30px, 8.7vw, 42px);
  }

  .tool-copy p {
    margin-top: 16px;
    font-size: 17px;
  }

  .tool-action {
    align-self: flex-end;
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .hub-intro h1 {
    font-size: clamp(58px, 17vw, 86px);
  }

  .hub-intro p {
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .tool-button {
    min-width: 142px;
    min-height: 50px;
    padding-inline: 17px;
  }

  .site-footer {
    padding: 24px 0 28px;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 10px;
    font-size: 11.5px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a::after,
  .menu-icon span,
  .tool-button,
  .tool-button svg {
    transition: none;
  }

  .site-header.is-open .menu-icon span:nth-child(1),
  .site-header.is-open .menu-icon span:nth-child(3),
  .tool-button:hover {
    transform: none;
  }

  .tool-button:hover svg,
  .tool-button:focus-visible svg {
    transform: none;
  }
}
