:root {
  --paper: #ffffff;
  --ink: #333366;
  --ink-soft: #4d5487;
  --navy: #1b2352;
  --navy-2: #2c3772;
  --peri: #8f9bd9;
  --peri-pale: #eceffb;
  --tab-ink: #c9d0f4;
  --rule: #d5daf2;
  --photo: none;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171c40;
    --ink: #dfe3f8;
    --ink-soft: #b3bbe4;
    --navy: #0d1130;
    --navy-2: #1a2150;
    --peri: #a9b4ee;
    --peri-pale: #212852;
    --tab-ink: #aab3e0;
    --rule: #2f3767;
    --photo: brightness(0.85);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #171c40;
  --ink: #dfe3f8;
  --ink-soft: #b3bbe4;
  --navy: #0d1130;
  --navy-2: #1a2150;
  --peri: #a9b4ee;
  --peri-pale: #212852;
  --tab-ink: #aab3e0;
  --rule: #2f3767;
  --photo: brightness(0.85);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

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

a {
  color: inherit;
  text-decoration-color: var(--peri);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--paper);
  z-index: 2;
}

.skip:focus {
  top: 0.5rem;
}

.band {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: clamp(28px, 5vw, 56px) var(--gutter) 0;
}

.wordmark,
.tabs {
  max-width: var(--max);
  margin-inline: auto;
}

.wordmark {
  display: block;
  width: fit-content;
  margin-left: max(0px, (100% - var(--max)) / 2);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 300;
  font-variation-settings: "wdth" 125;
  letter-spacing: 0.5em;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}

.tabs {
  list-style: none;
  display: flex;
  gap: 2px;
  margin-top: clamp(28px, 4vw, 44px);
  margin-bottom: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs a {
  display: block;
  padding: 0.6rem 1.15rem 0.7rem;
  border-radius: 4px 4px 0 0;
  color: var(--tab-ink);
  font-size: 0.9375rem;
  font-variation-settings: "wdth" 112;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.tabs a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.tabs a[aria-current] {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.tabs a:focus-visible {
  outline-offset: -3px;
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 104px);
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  font-variation-settings: "wdth" 112;
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
  margin: 1.1rem 0 2rem;
  text-wrap: pretty;
}

.ask {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}

.ask a {
  color: var(--ink);
  font-weight: 600;
}

/* home */

.intro h1 {
  max-width: 14ch;
}

.intro .lede {
  max-width: 42ch;
}

.strip ul {
  list-style: none;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 180px));
  gap: clamp(8px, 1.2vw, 16px);
}

.strip a {
  display: block;
  text-decoration: none;
}

.strip img {
  width: 100%;
  aspect-ratio: 180 / 475;
  object-fit: cover;
  filter: var(--photo) saturate(0.8);
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}

.strip span {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-variation-settings: "wdth" 118;
  letter-spacing: 0.08em;
}

.strip a:hover img,
.strip a:focus-visible img {
  filter: var(--photo) saturate(1.2) brightness(1.05);
  transform: translateY(-6px);
}

.strip a:hover span {
  text-decoration: underline;
  text-decoration-color: var(--peri);
  text-underline-offset: 0.25em;
}

@media (prefers-reduced-motion: no-preference) {
  .strip li {
    animation: reveal 1.1s var(--ease) calc(var(--i) * 80ms + 150ms) backwards;
  }
}

@keyframes reveal {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0.3;
  }
}

.facts {
  margin-top: clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem clamp(24px, 5vw, 80px);
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.facts li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

.facts li:last-child {
  border-bottom: 1px solid var(--rule);
}

.facts .ask {
  grid-column: 2;
  border: 0;
  padding: 0;
  margin-top: 0.5rem;
}

/* inner pages */

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.rail {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  position: sticky;
  top: 24px;
}

.rail img {
  filter: var(--photo);
}

.copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 62ch;
}

.copy > p:not(.lede, .ask, .hero-mail) {
  max-width: 60ch;
  color: var(--ink-soft);
}

.ticks {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ticks li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--peri-pale);
  font-size: 0.9375rem;
}

.services {
  margin: 0;
}

.services div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.services div:last-child {
  border-bottom: 1px solid var(--rule);
}

.services + .ask {
  border-top: 0;
  padding-top: 0;
}

.services dt {
  font-weight: 600;
}

.services dd {
  margin: 0;
  color: var(--ink-soft);
}

.button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.8rem 1.4rem;
  border-radius: 4px;
  background: var(--navy-2);
  color: #fff;
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s;
}

.button:hover {
  background: var(--navy);
}

.also {
  margin-top: clamp(40px, 6vw, 72px);
}

.also h2 {
  margin-bottom: 1.25rem;
}

.also dt a {
  text-decoration-thickness: 2px;
}

.also dd a {
  color: var(--ink);
}

.also + .ask {
  border-top: 0;
  padding-top: 0;
}

.hero-mail {
  margin: clamp(24px, 4vw, 48px) 0 clamp(20px, 3vw, 36px);
  width: max-content;
  font-size: clamp(1.75rem, 6.2vw, 4.5rem);
  font-weight: 300;
  font-variation-settings: "wdth" 125;
  letter-spacing: 0.02em;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-mail a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

.hero-mail a:hover {
  color: var(--peri);
}

.foot {
  border-top: 1px solid var(--rule);
  padding: 1.5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  max-width: calc(var(--max) + 2 * var(--gutter));
  width: 100%;
  margin-inline: auto;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.foot p {
  margin: 0;
}

@media (max-width: 760px) {
  .page {
    display: block;
  }

  .rail {
    position: static;
    float: right;
    width: 92px;
    margin: 0.25rem 0 1rem 1.25rem;
  }

  .copy {
    max-width: none;
  }

  .strip ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.5rem;
  }

  .strip img {
    aspect-ratio: 180 / 280;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts .ask {
    grid-column: 1;
  }

  .services {
    clear: both;
  }

  .services div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hk {
  display: flow-root;
}

.hk .mark {
  float: left;
  width: 64px;
  height: 64px;
  margin: 0.25rem 1.1rem 0.5rem 0;
  border-radius: 10px;
}

.copy > h2 {
  margin: 2.25rem 0 0.6rem;
}
