@font-face {
  font-family: "Pathway Extreme";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/pathway-extreme-latin.woff2") format("woff2");
  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: "Pathway Extreme";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/pathway-extreme-latin.woff2") format("woff2");
  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;
  --paper: #f8f8f8;
  --mint: #c4f8ca;
  --mint-edge: #c9eddb;
  --blue: #0808b9;
  --ink: #0808b9;
  --rule: #090c9a;
  --titlebar-h: 8.27%;
  font-family: "Pathway Extreme", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: geometricPrecision;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

::selection {
  color: var(--paper);
  background: var(--blue);
}

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  overflow-x: hidden;
  background: var(--paper);
}

button, a { font: inherit; }

a { color: inherit; text-underline-offset: 0.18em; }

button:focus-visible, a:focus-visible {
  outline: 3px dashed var(--mint);
  outline-offset: 4px;
}

.frame {
  position: relative;
  width: min(100%, 1586px);
  aspect-ratio: 1586 / 992;
  margin-inline: auto;
  overflow: hidden;
  background: var(--paper);
}

.titlebar {
  position: absolute;
  inset: 0 0 auto;
  height: var(--titlebar-h);
  background: var(--blue);
  border-bottom: 3px solid var(--rule);
}

.brand {
  position: absolute;
  left: 2.71%;
  top: 17.1%;
  display: inline-flex;
  align-items: center;
  width: 42%;
  height: 64%;
  color: var(--paper);
  font-size: clamp(1.9rem, 3.78vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.window-toggle {
  position: absolute;
  top: 12.2%;
  right: 1.35%;
  display: grid;
  width: 3.59%;
  height: 73.2%;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border: 3px solid var(--mint);
  border-radius: 0;
  color: var(--blue);
  background: var(--mint);
  cursor: pointer;
  transition: transform 160ms steps(3, end), background-color 160ms ease-out;
}

.window-toggle:hover { transform: translateY(-2px); }

.window-glyph {
  position: relative;
  display: block;
  width: 58%;
  height: 58%;
}

.window-glyph::before,
.window-glyph::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: var(--blue);
}

.window-glyph::before { transform: translateY(-50%) rotate(45deg); }
.window-glyph::after { transform: translateY(-50%) rotate(-45deg); }

.is-collapsed .window-glyph::before { transform: translateY(-50%); }
.is-collapsed .window-glyph::after { transform: translateY(-50%) rotate(90deg); }

.hero-window {
  position: absolute;
  left: 0.69%;
  top: 10.48%;
  width: 98.74%;
  height: 53.53%;
  overflow: hidden;
  border: 3px solid var(--blue);
  background: var(--mint);
  transition: height 220ms steps(4, end), opacity 180ms ease-out, transform 220ms steps(4, end);
}

.hero-field {
  position: absolute;
  inset: 0 27.53% 0 0;
  background: var(--mint);
}

.dither-field {
  position: absolute;
  inset: 0 0 0 auto;
  width: 27.53%;
  overflow: hidden;
  border-left: 3px solid var(--blue);
  background: var(--blue);
}

.dither-field svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}

#hero-title {
  position: absolute;
  left: 3.26%;
  right: 2.2%;
  top: 9.04%;
  width: auto;
  height: 37.5%;
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.9rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.025em;
}

#hero-title span { display: block; white-space: nowrap; }

.location {
  position: absolute;
  left: 3.32%;
  top: 51.4%;
  width: max-content;
  max-width: 70%;
  height: 10%;
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.55rem, 3.1vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.primary-action {
  position: absolute;
  left: 2.94%;
  top: 67.8%;
  display: grid;
  width: 45.56%;
  height: 22.8%;
  place-items: center;
  border: 3px solid var(--blue);
  border-radius: 0;
  color: var(--paper);
  background: var(--blue);
  font-size: clamp(1.45rem, 3.3vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  transition: transform 160ms steps(3, end), background-color 160ms ease-out;
}

.primary-action::after {
  position: absolute;
  z-index: -1;
  inset: 5px -7px -7px 5px;
  border: 3px solid var(--blue);
  background: var(--mint-edge);
  content: "";
}

.primary-action:hover {
  transform: translate(2px, 2px);
  background: var(--rule);
}

.primary-action:active { transform: translate(4px, 4px); }

.services {
  position: absolute;
  inset: 0;
}

.service-list {
  position: absolute;
  top: 65.4%;
  left: 1.95%;
  display: grid;
  width: 93.13%;
  height: 23.8%;
  grid-template-rows: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: center;
  min-width: 0;
  border-bottom: 4px solid var(--rule);
}

.service-list h2 {
  margin: 0 0 0 1.05%;
  color: var(--blue);
  font-size: clamp(1.5rem, 3.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact-note {
  position: absolute;
  top: 92.44%;
  left: 1.89%;
  width: 43%;
  margin: 0;
  color: var(--blue);
  font-size: clamp(1rem, 2.9vw, 2.875rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

.frame.is-collapsed .hero-window {
  height: 0;
  opacity: 0;
  transform: translateY(-8px);
  border-width: 0;
}

.frame.is-collapsed .service-list { top: 12%; }
.frame.is-collapsed .contact-note { top: 39%; }

@media (max-width: 640px) {
  :root { scroll-behavior: smooth; }

  .frame {
    display: flex;
    width: 100%;
    min-height: 100svh;
    aspect-ratio: auto;
    flex-direction: column;
    overflow: visible;
  }

  .titlebar {
    position: relative;
    inset: auto;
    display: flex;
    height: 68px;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom-width: 3px;
  }

  .brand {
    position: static;
    width: auto;
    height: auto;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
  }

  .window-toggle {
    position: relative;
    inset: auto;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-width: 2px;
  }

  .hero-window {
    position: relative;
    inset: auto;
    display: grid;
    width: auto;
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 128px;
    margin: 18px 12px 22px;
    border-width: 2px;
    transition: max-height 220ms steps(4, end), opacity 180ms ease-out, margin 220ms steps(4, end);
  }

  .hero-field {
    position: relative;
    inset: auto;
    min-height: 280px;
    padding: 27px 18px 26px;
  }

  #hero-title {
    position: static;
    right: auto;
    width: auto;
    height: auto;
    font-size: clamp(2.15rem, 9vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  #hero-title span { white-space: normal; }

  .location {
    position: static;
    width: auto;
    height: auto;
    margin: 18px 0 24px;
    font-size: 1.35rem;
    line-height: 1.1;
  }

  .primary-action {
    position: relative;
    inset: auto;
    width: min(100%, 330px);
    min-height: 58px;
    height: auto;
    padding: 12px 14px;
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .primary-action::after {
    inset: 4px -5px -5px 4px;
    border-width: 2px;
  }

  .dither-field {
    position: relative;
    inset: auto;
    width: 100%;
    height: 128px;
    border-top: 2px solid var(--blue);
    border-left: 0;
  }

  .services {
    position: relative;
    inset: auto;
    margin: 0 14px;
  }

  .service-list {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    grid-template-rows: repeat(3, minmax(68px, auto));
  }

  .service-list li { border-bottom-width: 2px; }

  .service-list h2 {
    margin-left: 5px;
    font-size: clamp(1.5rem, 7vw, 1.9rem);
    letter-spacing: -0.02em;
  }

  .contact-note {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 20px 14px 34px;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .frame.is-collapsed .hero-window {
    display: none;
  }

  .frame.is-collapsed .service-list { top: auto; }
  .frame.is-collapsed .contact-note { top: auto; }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
