:root {
  color-scheme: dark;
  --forest-950: #081612;
  --forest-900: #0b1f19;
  --paper: #eef9f2;
  --muted: #b9d1c2;
  --scarlet: #ee586d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--forest-950);
  color: var(--paper);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--forest-950);
  isolation: isolate;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--forest-950) url("/assets/scarlet-background-optimized.jpg") 76% 50% / cover no-repeat;
  filter: saturate(0.82) contrast(1.03);
  transform: scale(1.01);
}

.backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgb(5 18 14 / 34%);
}

.shell {
  position: relative;
  display: grid;
  align-content: center;
  width: min(44vw, 650px);
  min-height: 100svh;
  margin: 0 auto 0 clamp(24px, 8vw, 152px);
  padding: clamp(44px, 8vh, 84px) clamp(28px, 4vw, 56px);
  background: rgb(6 24 19 / 76%);
  border-inline: 1px solid rgb(223 255 235 / 16%);
  box-shadow: 18px 0 55px rgb(0 0 0 / 18%), -18px 0 55px rgb(0 0 0 / 12%);
  backdrop-filter: blur(8px);
}

.shell::before {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 34px;
  height: 1px;
  content: "";
  background: var(--scarlet);
  box-shadow: 0 7px 0 rgb(238 88 109 / 30%);
}

.identity {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgb(223 255 235 / 18%);
}

.identity__mark {
  width: 6px;
  height: 108px;
  background: var(--scarlet);
  box-shadow: 0 0 0 1px rgb(238 88 109 / 22%);
}

.identity__copy {
  min-width: 0;
}

.identity__eyebrow,
.identity__subtitle {
  margin: 0;
}

.identity__eyebrow {
  margin-bottom: 8px;
  color: #f5b3bd;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
}

h1 {
  margin: 0;
  color: #fbfffc;
  font-size: clamp(44px, 5vw, 62px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.identity__subtitle {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

.identity__index {
  align-self: end;
  margin-bottom: 1px;
  color: rgb(224 255 235 / 23%);
  font-size: 62px;
  font-weight: 820;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.service-list {
  display: grid;
  gap: 10px;
}

.service {
  --accent: var(--scarlet);
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  grid-template-areas:
    "number name arrow"
    "number domain arrow";
  align-items: center;
  min-height: 96px;
  padding: 16px 16px 16px 18px;
  color: var(--paper);
  text-decoration: none;
  background: rgb(235 255 243 / 8%);
  border: 1px solid rgb(223 255 235 / 21%);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 10px 24px rgb(0 0 0 / 16%);
  backdrop-filter: blur(3px);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service:hover {
  background: rgb(235 255 243 / 15%);
  border-color: rgb(235 255 243 / 40%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 14px 28px rgb(0 0 0 / 24%);
  transform: translateX(4px);
}

.service:focus-visible {
  outline: 2px solid #fbfffc;
  outline-offset: 4px;
}

.service__number {
  grid-area: number;
  align-self: start;
  padding-top: 2px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.1em;
}

.service__name {
  grid-area: name;
  min-width: 0;
  color: #f5fff8;
  font-size: 20px;
  font-weight: 720;
  line-height: 1.15;
}

.service__domain {
  grid-area: domain;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service__arrow {
  grid-area: arrow;
  padding-left: 12px;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}

.service--bot {
  --accent: #f06478;
}

.service--luma {
  --accent: #67d4be;
}

.service--tavern {
  --accent: #f1bd72;
}

.service--materials {
  --accent: #c7a6ed;
}

@media (max-width: 900px) {
  .shell {
    width: min(58vw, 620px);
    margin-left: clamp(18px, 5vw, 64px);
  }
}

@media (max-width: 640px) {
  .backdrop {
    background-position: 74% 50%;
  }

  .backdrop::after {
    background: rgb(5 18 14 / 44%);
  }

  .shell {
    width: 100%;
    min-height: 100svh;
    margin: 0;
    padding: 40px 20px 32px;
    background: rgb(6 24 19 / 82%);
    border-inline: 0;
    box-shadow: none;
    backdrop-filter: blur(6px);
  }

  .shell::before {
    top: 18px;
    left: 20px;
  }

  .identity {
    margin-bottom: 32px;
    padding-bottom: 22px;
  }

  .identity__mark {
    height: 90px;
  }

  .identity__index {
    font-size: 48px;
  }

  .service {
    min-height: 92px;
    padding: 15px 14px 15px 16px;
  }
}

@media (max-width: 420px) {
  .identity {
    gap: 12px;
  }

  h1 {
    font-size: 44px;
  }

  .identity__index {
    font-size: 42px;
  }

  .service__name {
    font-size: 19px;
  }
}

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