@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/inter-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #0b53ab;
  background-color: #f3f0e5;
  --paper: #f3f0e5;
  --cobalt: #0b53ab;
  --cobalt-muted: #34639c;
  --rule: #799ac3;
}

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

body {
  margin: 0;
  min-block-size: 100svh;
  background-color: var(--paper);
  overflow-x: clip;
}

.hero {
  position: relative;
  min-block-size: 100svh;
  inline-size: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
  inline-size: min(100%, 41rem);
  min-block-size: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: clamp(2rem, 4.4vw, 3.75rem) clamp(1.75rem, 5vw, 4.75rem);
  pointer-events: none;
}

.brand,
.hero-main {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  align-self: start;
  justify-self: start;
}

.brand-mark {
  display: block;
  flex: none;
  inline-size: clamp(1.75rem, 2.2vw, 2.1rem);
  block-size: auto;
}

.brand-name {
  font-family: "Inter", "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  font-weight: 650;
  font-optical-sizing: auto;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cobalt);
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.65rem, 2.6vw, 2.35rem);
  padding-block: clamp(2rem, 3.5vw, 3rem);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.6vw, 1.4rem);
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.85rem, 5.4vw, 5.15rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

.subtitle {
  margin: 0;
  max-inline-size: 35ch;
  font-size: clamp(0.975rem, 1.15vw, 1.08rem);
  font-weight: 400;
  line-height: 1.54;
  letter-spacing: -0.01em;
  color: var(--cobalt-muted);
}

.contact {
  min-block-size: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 0.7rem 1.35rem;
  border-radius: 3px;
  color: var(--paper);
  background-color: var(--cobalt);
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.contact[href]:hover {
  background-color: #083f84;
}

.contact svg {
  flex: none;
}

.mosaic {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  inline-size: clamp(58%, 68vw, 74%);
  block-size: 100%;
  isolation: isolate;
  background-color: var(--paper);
}

.mosaic-fallback,
.mosaic-canvas,
.mosaic-control {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.mosaic-fallback {
  object-fit: cover;
  object-position: right center;
  mask-image: linear-gradient(to right, transparent 0%, black 34%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 34%);
}

.mosaic-control {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.arcade-bar {
  position: absolute;
  right: clamp(1rem, 2.2vw, 1.75rem);
  bottom: clamp(1rem, 2.2vw, 1.75rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.35rem 0.3rem 0.7rem;
  border-radius: 4px;
  background: rgba(8, 52, 114, 0.88);
  border: 1px solid rgba(243, 240, 229, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 0.78rem;
  line-height: 1;
}

.arcade-bar[hidden] {
  display: none;
}

.arcade-label {
  font-weight: 600;
  color: var(--paper);
  white-space: nowrap;
}

.arcade-close {
  appearance: none;
  border: 0;
  border-radius: 3px;
  padding: 0.45rem 0.55rem;
  background: transparent;
  color: rgba(243, 240, 229, 0.78);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.arcade-close:hover {
  color: var(--paper);
  background: rgba(243, 240, 229, 0.14);
}

.arcade-status {
  padding-inline: 0.45rem;
  font-variant-numeric: tabular-nums;
  color: #b4cce3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.contact:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 4px;
}

.mosaic-control:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: -6px;
}

.arcade-close:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

@media (max-width: 58rem) {
  .hero {
    min-block-size: 100svh;
    grid-template-rows: auto minmax(22rem, 1fr);
  }

  .hero-copy {
    inline-size: 100%;
    min-block-size: auto;
    grid-template-rows: auto auto auto;
    gap: 1.75rem;
    padding: clamp(1.5rem, 6vw, 2.75rem) clamp(1.25rem, 6vw, 2.75rem) clamp(1rem, 4vw, 1.75rem);
  }

  .hero-main {
    padding-block: 0.5rem 0.25rem;
  }

  h1 {
    font-size: clamp(2.5rem, 10.5vw, 4.25rem);
    line-height: 1.03;
  }

  .mosaic {
    position: relative;
    inset: auto;
    inline-size: 100%;
    block-size: auto;
    min-block-size: min(92vw, 34rem);
  }

  .mosaic-fallback {
    mask-image: linear-gradient(to bottom, transparent 0%, black 28%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 28%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact {
    transition: none;
  }
}
