/* Ennius — ennius.io
 *
 * The palette is not invented: every value below was sampled off the master
 * logo artwork (tools/build-assets.py documents the measurement). The page is
 * light because the logo is, and because the artwork then sits on it without
 * a plate, a knockout, or a fight.
 */

:root {
  --navy:        #0c2440;
  --navy-2:      #17395c;
  --terracotta:  #c06a3c;
  --terracotta-2:#a85a30;
  --sky:         #7baecd;

  --plate-hi:    #c9d7de;
  --plate-lo:    #a8b8c6;
  --paper:       #f5f8fa;
  --card:        #ffffff;

  --ink:         #0c2440;
  --muted:       #55677a;
  --hairline:    rgba(12, 36, 64, .12);
  --hairline-2:  rgba(12, 36, 64, .07);

  --wrap: 1080px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Liberation Sans", sans-serif;

  --shadow: 0 1px 2px rgba(12, 36, 64, .04),
            0 8px 24px rgba(12, 36, 64, .06);
  --shadow-lift: 0 2px 4px rgba(12, 36, 64, .05),
                 0 18px 40px rgba(12, 36, 64, .11);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.021em;
  font-weight: 650;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-2); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.measure { max-width: 720px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- kicker */

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::after {
  content: "";
  flex: 0 0 40px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-solid {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  box-shadow: 0 1px 2px rgba(12, 36, 64, .12);
}
.btn-solid:hover {
  background: var(--terracotta-2);
  border-color: var(--terracotta-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(168, 90, 48, .28);
}

.btn-ghost {
  border-color: rgba(12, 36, 64, .22);
  color: var(--navy);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(12, 36, 64, .04);
  transform: translateY(-1px);
}

.btn-quiet {
  padding: 9px 18px;
  font-size: 14px;
  border-color: rgba(12, 36, 64, .2);
  color: var(--navy);
}
.btn-quiet:hover { border-color: var(--navy); background: rgba(255, 255, 255, .55); }

/* -------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  background: rgba(201, 215, 222, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 36, 64, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark { width: 30px; height: auto; }
.brand-word { width: 104px; height: auto; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: clamp(64px, 11vw, 128px) 0 clamp(72px, 12vw, 140px);
  background:
    radial-gradient(120% 90% at 50% 12%, #d2dee4 0%, var(--plate-hi) 42%, var(--plate-lo) 100%);
  border-bottom: 1px solid rgba(12, 36, 64, .09);
  overflow: hidden;
}

.hero-inner { text-align: center; }

/* The mark and the wordmark are one lockup: keep them near the proportion and
 * spacing they have in the master artwork, or the mark reads as an
 * afterthought floating above the name. */
.hero-mark {
  width: clamp(132px, 20vw, 212px);
  margin: 0 auto clamp(18px, 2.4vw, 26px);
}

.hero-word { margin: 0; }
.hero-word img {
  width: clamp(232px, 43vw, 384px);
  margin: 0 auto;
}

.hero-tagline {
  margin: clamp(20px, 3vw, 26px) 0 0;
  font-size: clamp(11px, 1.9vw, 13px);
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-lead {
  max-width: 34ch;
  margin: clamp(30px, 4.5vw, 44px) auto 0;
  font-size: clamp(19px, 2.7vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--navy-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: clamp(32px, 4.5vw, 44px) 0 0;
}

/* ------------------------------------------------------------------- why */

.why { padding: clamp(72px, 11vw, 128px) 0; }

.why h2 {
  font-size: clamp(26px, 4.1vw, 40px);
  margin-bottom: 32px;
}

.why p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

/* --------------------------------------------------------------- pillars */

.pillars {
  padding: clamp(72px, 11vw, 128px) 0;
  background: linear-gradient(180deg, #eef3f6 0%, #e6edf1 100%);
  border-block: 1px solid var(--hairline-2);
}

.pillars-title {
  font-size: clamp(24px, 3.6vw, 35px);
  max-width: 22ch;
  margin-bottom: clamp(40px, 5vw, 56px);
}

/* Two by two, deliberately. There are four commitments, and auto-fit at this
 * container width lays them 3 + 1, which orphans the last one. */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(26px, 3.2vw, 34px);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(12, 36, 64, .18);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: rgba(123, 174, 205, .17);
  color: var(--navy-2);
}
.card-icon svg { width: 27px; height: 27px; }

.card:nth-child(2) .card-icon,
.card:nth-child(4) .card-icon {
  background: rgba(192, 106, 60, .13);
  color: var(--terracotta-2);
}

.card h3 {
  font-size: 19px;
  margin-bottom: 11px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
}

/* ----------------------------------------------------------------- close */

.close {
  padding: clamp(76px, 11vw, 132px) 0;
  background:
    radial-gradient(110% 100% at 50% 0%, #d2dee4 0%, var(--plate-hi) 55%, var(--plate-lo) 100%);
  border-top: 1px solid var(--hairline-2);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 6px 15px 6px 12px;
  border: 1px solid rgba(12, 36, 64, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 106, 60, .22);
}

.close h2 {
  font-size: clamp(25px, 3.9vw, 38px);
  max-width: 27ch;
  margin-bottom: 26px;
}

.close-lead {
  color: var(--navy-2);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 56ch;
  margin-bottom: 34px;
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding: 40px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-mark { width: 26px; height: auto; opacity: .95; }

.footer p { margin: 0; }
.footer p:nth-of-type(1) { margin-right: auto; }

.footer a { color: rgba(255, 255, 255, .82); text-decoration-thickness: 1px; }
.footer a:hover { color: #fff; }

/* --------------------------------------------------------------- motion  */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .btn:hover, .card:hover { transform: none; }
}

@media (max-width: 560px) {
  .masthead-cta { display: none; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
}
