:root {
  color-scheme: dark;
  color: #f4f3f0;
  background: #08090d;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, ul, dl, dd { margin: 0; }

.directory {
  position: relative;
  isolation: isolate;
  min-block-size: 100vh;
  min-block-size: 100svh;
  overflow: clip;
  background:
    radial-gradient(900px 720px at 75% 46%, rgb(88 151 255 / .24), transparent 70%),
    linear-gradient(145deg, #08090d, #101b31 62%, #08090d);
}
.directory::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 84px 84px;
  background-position: center top;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.star-field {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 -7vw auto 12vw;
  height: clamp(600px, 107svh, 1010px);
  opacity: .91;
  filter: saturate(1.12) drop-shadow(0 0 70px rgb(116 170 255 / .12));
  mask-image: linear-gradient(transparent, #000 12%, #000 78%, transparent);
}
.star-field canvas { display: block; inline-size: 100%; block-size: 100%; }

.shell {
  width: min(1120px, calc(100% - clamp(36px, 8vw, 120px)));
  margin-inline: auto;
  padding-block: clamp(22px, 3.25vh, 50px) clamp(42px, 7vh, 86px);
}
.brand {
  padding-block-end: clamp(17px, 2.7vh, 28px);
  border-block-end: 1px solid rgb(180 208 250 / .23);
}
.brand img { display: block; width: clamp(142px, 15vw, 184px); height: auto; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-block: clamp(32px, 5.3vh, 68px) clamp(22px, 4vh, 44px);
}
.intro h1 {
  max-width: 14ch;
  font-size: clamp(46px, 6vw, 89px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .98;
  text-wrap: balance;
}
.intro p {
  max-width: 34ch;
  padding-block-end: 2px;
  color: #c2cfe2;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  text-wrap: pretty;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.9vh, 20px) clamp(12px, 1.6vw, 22px);
  padding: 0;
  list-style: none;
}
.cards + .cards { margin-block-start: clamp(36px, 5.8vh, 64px); }
.cards-main { grid-column: 1 / -1; }
.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-content: center;
  align-items: baseline;
  gap: 7px clamp(12px, 1.6vw, 20px);
  min-height: clamp(77px, 10vh, 100px);
  height: 100%;
  padding: 14px clamp(16px, 2vw, 28px);
  color: inherit;
  text-decoration: none;
  background: linear-gradient(117deg, rgb(18 34 57 / .91), rgb(13 24 43 / .82));
  border: 1px solid rgb(172 205 252 / .24);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgb(225 242 255 / .035);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}
.card h2 {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.043em;
  text-wrap: pretty;
}
.cards-main .card {
  min-height: clamp(142px, 15vh, 156px);
  background-image: linear-gradient(117deg, rgb(10 21 37 / .97), rgb(7 16 30 / .94));
  border-color: rgb(172 205 252 / .35);
}
.cards-main .card h2 { font-size: clamp(24px, 2.5vw, 34px); }
.card-mark {
  display: grid;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  place-items: center;
  width: clamp(39px, 4.25vw, 49px);
  aspect-ratio: 1;
  border: 1px solid rgb(171 201 249 / .15);
  border-radius: 12px;
  background: linear-gradient(150deg, rgb(139 185 253 / .12), rgb(103 154 239 / .025));
  color: #f2f7ff;
}
.cards-main .card-mark { width: clamp(53px, 6vw, 68px); border-radius: 15px; }
.card-mark :is(img, svg) { display: block; width: 62%; height: 62%; object-fit: contain; }
.card-mark--pyramid img { transform: scale(1.8); }
.card-mark--guide { color: #fff; }
.card-mark--guide svg { width: 78%; height: 78%; }
.card .domain {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  color: #aac6eb;
  font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .025em;
}
.card p {
  grid-column: 2 / -1;
  grid-row: 2;
  color: #c7d2e3;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.42;
  text-wrap: pretty;
}
.card:focus-visible, .contact-panel :is(summary, a):focus-visible {
  outline: 2px solid #addbff;
  outline-offset: 3px;
  border-color: #8bb8f2;
}
.contact-panel {
  --contact-pad: clamp(16px, 2vw, 28px);
  margin-block-start: clamp(42px, 6.7vh, 72px);
  scroll-margin-block-start: 20px;
  background: linear-gradient(110deg, rgb(32 49 75 / .94), rgb(38 46 75 / .9));
  border: 1px solid rgb(172 205 252 / .26);
  border-radius: 15px;
}
.contact-panel summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: clamp(62px, 8.6vh, 82px);
  padding: 14px var(--contact-pad);
  border-radius: inherit;
  color: #eef2fb;
  font-size: clamp(19px, 2.1vw, 24px);
  letter-spacing: -.03em;
  list-style: none;
  cursor: pointer;
}
.contact-panel summary::-webkit-details-marker { display: none; }
.contact-toggle {
  position: relative;
  display: grid;
  flex: 0 0 18px;
  height: 18px;
  place-items: center;
  color: #bec3ff;
}
.contact-toggle::before, .contact-toggle::after {
  content: "";
  grid-area: 1 / 1;
  width: 13px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}
.contact-toggle::after { transform: rotate(90deg); }
.contact-panel[open] .contact-toggle::after { visibility: hidden; }
.contact-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 22px 30px;
  padding: 22px var(--contact-pad) 25px;
  border-block-start: 1px solid rgb(172 205 252 / .17);
}
.contact-content dt { margin-block-end: 6px; color: #b5c9e5; font-size: 13px; }
.contact-content dd { color: #f4f7ff; font-size: 1rem; line-height: 1.4; }
.contact-content a {
  color: inherit;
  text-decoration-color: rgb(188 208 245 / .55);
  text-underline-offset: .22em;
  overflow-wrap: anywhere;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: rgb(151 200 255 / .69);
    background-color: #24446c;
    box-shadow: 0 12px 32px rgb(4 11 25 / .44), inset 0 0 28px rgb(123 179 255 / .08);
  }
  .card:hover .domain { color: #e2f1ff; }
  .contact-panel summary:hover { background-color: rgb(133 168 249 / .07); }
  .contact-content a:hover { text-decoration-color: currentColor; }
}
@media (max-width: 740px) {
  .intro { grid-template-columns: 1fr; gap: 13px; }
  .intro h1 { max-width: none; }
  .card { grid-template-columns: auto minmax(0, 1fr); gap: 5px 13px; min-height: 104px; }
  .card-mark { grid-row: 1 / 4; }
  .card .domain { justify-self: start; grid-column: 2; grid-row: 3; margin-block-start: 3px; }
  .contact-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .star-field { inset: 0 -24vw auto -24vw; opacity: .78; }
  .card { min-height: 96px; }
  .contact-content { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

.forge-canvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .star-field { transition: opacity 2.65s cubic-bezier(.26, .02, .35, 1); }
  .forge-stars-muted .star-field { opacity: 0; transition: none; }
  .forge-pending :is(.cards > li, .contact-panel):not(:focus-within) { opacity: 0; }
  .forge-active:not(:focus-within) {
    transform: var(--forge-pose, none);
    mask-image: linear-gradient(104deg,
      #000 calc(var(--forge-surface, -15%) - 12%),
      transparent calc(var(--forge-surface, -15%) + 5%));
    will-change: transform, mask-image;
  }
  .forge-active:not(:focus-within) .card > * { opacity: var(--forge-ink, 0); }
}
