@font-face {
  font-family: "Portal Hans";
  src: url("/portal-assets/portal-hans.woff2") format("woff2");
  font-weight: 400 650;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: "Portal Hans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  line-break: strict;
  background: #0b1217;
  color: #eff4f3;
  --inset: clamp(1.75rem, 7vw, 8rem);
  --content: min(calc(100% - 2 * var(--inset)), 77rem);
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
::selection { background: #c2efda; color: #10261b; }
.masthead {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(19rem, 36vw, 36rem);
}
.masthead picture { position: absolute; inset: 0; z-index: -1; }
.doorway { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.masthead picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0b1217, transparent 15%);
}
.hero-title, nav { width: var(--content); margin-inline: auto; }
.hero-title { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(.75rem, 1.5vw, 1.55rem); }
h1 {
  font-size: clamp(3.7rem, 7.2vw, 7rem);
  line-height: 1.15;
  font-weight: 550;
  letter-spacing: -.055em;
}
.wordmark { display: block; width: clamp(16rem, 38.5vw, 35.5rem); max-width: 100%; height: auto; }
.signature {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #c5d8d8;
  font-size: clamp(.875rem, 1.14vw, 1.0625rem);
  font-weight: 450;
  letter-spacing: .12em;
  line-height: 1.5;
}
.signature img { display: block; width: 1.6em; height: 1.6em; border-radius: .28rem; }
nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.8rem, 1.65vw, 1.65rem);
  margin-block: clamp(1rem, 2.35vw, 2.75rem) 2rem;
}
.entry {
  --tint: 144 247 196;
  --lip: #8ea89a;
  --key-top: #e4f2e7;
  --key-bottom: #b6d3c0;
  --key-edge: #708a78;
  --ink: #15382a;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "optic heading heading" "copy copy action";
  align-items: center;
  align-content: space-between;
  gap: 1.55rem .9rem;
  min-height: clamp(11.6rem, 16.3vw, 15.3rem);
  padding: clamp(1.4rem, 2.35vw, 2.35rem);
  border: 1px solid #34434a;
  border-top-color: #60716d;
  border-radius: 1.05rem;
  background: linear-gradient(147deg, #243431 0%, #172424 42%, #111b20 100%);
  box-shadow: inset 0 1px rgb(255 255 255 / .055), inset 0 -2px rgb(0 0 0 / .22), 0 .8rem 2rem -.9rem #030a0d;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.entry + .entry {
  --tint: 146 225 251;
  --lip: #92aab7;
  --key-top: #e4f0f4;
  --key-bottom: #b7d0de;
  --key-edge: #7593a2;
  --ink: #1a3340;
  border-top-color: #63737c;
  background: linear-gradient(147deg, #28353d 0%, #1a252e 42%, #121c25 100%);
}
.entry::before, .entry::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
}
.entry::before {
  inset: 0;
  background: radial-gradient(15rem circle at var(--light-x, 82%) var(--light-y, 88%), rgb(var(--tint) / .16), transparent 95%);
}
.entry::after {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(14rem circle at var(--light-x, 82%) var(--light-y, 88%), rgb(var(--tint)) 2%, rgb(var(--tint) / .6) 35%, transparent 95%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.optic {
  grid-area: optic;
  display: grid;
  place-items: center;
  width: clamp(2.55rem, 3.2vw, 3.15rem);
  aspect-ratio: 1;
  border: 1px solid #ccddd3;
  border-radius: .75rem;
  background: linear-gradient(143deg, #f1f6f2, #c0d6ca 75%, #a2b8ae);
  box-shadow: inset 0 1px 1px #fff, 0 2px var(--lip), 0 3px 6px #07131388;
}
.entry + .entry .optic { background: linear-gradient(143deg, #edf4f4, #c4d6d9 76%, #a6bbbf); border-color: #d1e1e3; }
.center-icon { display: block; width: 68%; height: auto; }
h2 { grid-area: heading; font-size: clamp(1.6rem, 2.2vw, 2.15rem); line-height: 1.34; font-weight: 580; letter-spacing: .015em; }
.entry p {
  grid-area: copy;
  color: #c2cfce;
  font-size: clamp(.9rem, 1.03vw, 1rem);
  font-weight: 410;
  line-height: 1.8;
}
.entry p span { display: inline-block; }
.enter {
  grid-area: action;
  justify-self: end;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .72em;
  min-height: 2.7rem;
  min-width: 5.7em;
  padding: .45em .82em .45em 1.02em;
  border: 1px solid var(--key-top);
  border-radius: .55rem;
  background: linear-gradient(170deg, var(--key-top), var(--key-bottom));
  box-shadow: inset 0 1px #ffffffd9, inset 0 -1px #ffffff40, 0 2px var(--key-edge), 0 4px 8px #050d0f9c;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 560;
  line-height: 1.4;
  letter-spacing: .025em;
  white-space: nowrap;
}
.enter i {
  width: 1.6em;
  height: 1.15em;
  position: relative;
  border-inline-start: 1px solid rgb(25 52 58 / .21);
}
.enter i::before, .enter i::after { position: absolute; content: ""; top: 50%; right: .08em; }
.enter i::before { width: .82em; border-top: 1.5px solid; }
.enter i::after { width: .39em; height: .39em; border: solid; border-width: 1.5px 1.5px 0 0; transform: translateY(-43%) rotate(45deg); }
.entry:focus-visible { outline: 2px solid rgb(var(--tint)); outline-offset: 4px; }
.entry:focus-visible::after, .entry:focus-visible::before, .entry:active::after, .entry:active::before { opacity: 1; }
@media (hover: hover) {
  .entry:hover::after, .entry:hover::before { opacity: 1; }
  .entry:hover .enter { filter: brightness(1.065); }
  .entry:hover .enter i::before, .entry:hover .enter i::after { right: -.12em; }
}
.entry:active .enter {
  transform: translateY(2px) scale(.975);
  box-shadow: inset 0 1px 2px #34404333, 0 1px var(--key-edge), 0 1px 3px #050d0f;
}
@media (prefers-reduced-motion: no-preference) {
  .entry::before, .entry::after { transition: opacity 150ms ease-out; }
  .enter { transition: transform 100ms ease-out, box-shadow 100ms ease-out, filter 150ms ease-out; }
  .enter i::before, .enter i::after { transition: right 140ms ease-out; }
}
@media (min-width: 39rem) and (max-width: 66rem) {
  .entry { grid-template-areas: "optic heading" "copy copy" "action action"; grid-template-columns: auto 1fr; gap: .85rem; }
  .enter { justify-self: start; }
}
@media (max-width: 38.99rem) {
  :root { --inset: clamp(.85rem, 4.8vw, 1.8rem); }
  .masthead { min-height: clamp(14rem, 37svh, 21.5rem); align-items: end; }
  .masthead picture { bottom: 3.2rem; }
  .doorway { object-position: 75% 53%; }
  .masthead picture::after { background: linear-gradient(to top, #0b1217, rgb(11 18 23 / .8) 10%, transparent 48%); }
  .hero-title { gap: .46rem; }
  h1 { font-size: clamp(2.7rem, 11.5vw, 3.85rem); line-height: 1.16; }
  .wordmark { width: clamp(13.7rem, 72vw, 23rem); }
  .signature { font-size: .8125rem; gap: .48rem; letter-spacing: .065em; }
  nav { grid-template-columns: 1fr; gap: .75rem; margin-block: 1.25rem 1.5rem; }
  .entry {
    grid-template-areas: "optic heading action" "copy copy copy";
    gap: .7rem .6rem;
    padding: 1rem;
    min-height: auto;
    border-radius: .8rem;
  }
  .optic { width: 2.1rem; border-radius: .55rem; }
  h2 { font-size: clamp(1.19rem, 5.3vw, 1.55rem); }
  .entry p { font-size: .875rem; line-height: 1.68; }
  .enter { min-height: 2.15rem; padding: .42em .7em; gap: .46em; font-size: .78rem; }
}
@media (max-width: 22rem) {
  .entry { padding: .8rem; gap: .6rem .46rem; }
  .optic { width: 1.85rem; }
}
@media (min-width: 22.01rem) and (max-width: 38.99rem) and (min-height: 43rem) {
  .entry {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "optic heading" "copy copy" "action action";
    gap: .7rem .75rem;
    padding: 1.15rem 1.25rem;
  }
  .optic { width: 2.4rem; }
  h2 { font-size: 1.48rem; }
  .entry p { font-size: .9375rem; }
  .enter { justify-self: start; min-height: 2.4rem; margin-top: .25rem; padding-inline: .82em; font-size: .875rem; }
}
@media (max-width: 18rem) {
  .entry { grid-template-columns: auto 1fr; grid-template-areas: "optic heading" "copy copy" "action action"; }
  .enter { justify-self: start; }
}
@media (forced-colors: active) {
  .entry, .enter { border-color: ButtonText; }
  .entry:focus-visible { outline-color: Highlight; }
}
