
:root {
  --black: #090a0a;
  --panel: #151616;
  --panel-2: #1d1e1e;
  --paper: #e8e3da;
  --ink: #111212;
  --white: #f3f0ea;
  --muted: #92928d;
  --red: #ff3653;
  --blue: #3897f0;
  --line: rgba(255,255,255,.16);
  --ease: cubic-bezier(.2,.76,.22,1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--white);
  background: var(--black);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: clip;
  padding:
    max(18px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 102% 8%, rgba(255,54,83,.16), transparent 28%),
    radial-gradient(circle at -20% 78%, rgba(86,90,92,.19), transparent 36%),
    linear-gradient(180deg, #0c0d0d 0%, #080909 100%);
}

.page-shell::before {
  content: "";
  position: fixed;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 75% 24%, rgba(255,54,83,.08), transparent 32%),
    #090a0a;
  pointer-events: none;
}

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.page-watermark {
  position: fixed;
  z-index: -2;
  top: 44%;
  left: 50%;
  color: rgba(255,255,255,.022);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 26vw;
  line-height: .8;
  letter-spacing: .018em;
  word-spacing: .12em;
  white-space: nowrap;
  transform: translate(-50%,-50%) rotate(-90deg);
  pointer-events: none;
  user-select: none;
}

.content {
  width: min(100%, 460px);
  margin: 0 auto;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 11px;
  border-top: 1px solid rgba(255,255,255,.33);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: rgba(243,240,234,.56);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: .14em;
}

.mini-mark {
  color: var(--white);
  font-size: 11px;
  letter-spacing: -.04em;
}

.identity-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  aspect-ratio: 85.6 / 53.98;
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px 10px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 20%, rgba(255,54,83,.2), transparent 31%),
    linear-gradient(125deg, rgba(255,255,255,.3), transparent 28%),
    var(--paper);
  box-shadow:
    0 24px 56px rgba(0,0,0,.48),
    0 0 0 1px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.86),
    inset 0 -1px 0 rgba(0,0,0,.14);
  animation: id-in 720ms var(--ease) both;
}

.identity-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .3;
  background-image:
    radial-gradient(rgba(20,20,20,.46) .6px, transparent .7px),
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 47%, transparent 65%);
  background-size: 4px 4px, 180% 100%;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.identity-card::after {
  content: "PERSONAL / DIGITAL / ACCESS";
  position: absolute;
  right: -36px;
  bottom: 59px;
  color: rgba(17,18,18,.16);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .27em;
  transform: rotate(-90deg);
  pointer-events: none;
}

.id-scan {
  position: absolute;
  z-index: 1;
  inset: -70% -35%;
  opacity: .36;
  background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,.82) 47%, rgba(103,221,255,.32) 51%, rgba(255,54,83,.24) 56%, transparent 67%);
  transform: translateX(-35%) rotate(6deg);
  animation: holo-scan 8s ease-in-out infinite;
  pointer-events: none;
}

.id-topline,
.id-main,
.id-bottom { position: relative; z-index: 2; }

.id-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(17,18,18,.28);
  font-size: 6px;
  font-weight: 740;
  letter-spacing: .13em;
}

.id-topline strong {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.id-main {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  gap: 12px;
  align-self: start;
}

.id-photo-wrap {
  align-self: start;
  border: 1px solid rgba(17,18,18,.42);
  background: #bdbbb7;
  box-shadow: 4px 4px 0 rgba(255,54,83,.72);
}

.id-photo {
  width: 100%;
  height: clamp(104px,31vw,142px);
  object-fit: cover;
  object-position: center 34%;
  filter: none;
}

.id-photo-wrap > span {
  display: block;
  padding: 3px 4px 2px;
  color: rgba(17,18,18,.62);
  font-size: 5px;
  font-weight: 800;
  letter-spacing: .16em;
}

.id-person { min-width: 0; }

.id-person > p {
  margin: 0 0 4px;
  color: rgba(17,18,18,.55);
  font-size: 5.8px;
  font-weight: 800;
  letter-spacing: .2em;
}

.id-name {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 6px;
}

h1 {
  margin: 0;
  min-width: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(34px, 10vw, 44px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .76;
  text-transform: uppercase;
}

h1 span { display: block; }
h1 span:last-child { color: var(--red); }

.id-handle {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: .02em;
}

.id-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 8px;
  margin: 6px 0 0;
}

.id-fields div {
  min-width: 0;
  padding-top: 3px;
  border-top: 1px solid rgba(17,18,18,.2);
}

.id-fields dt,
.id-fields dd { margin: 0; }

.id-fields dt {
  color: rgba(17,18,18,.48);
  font-size: 4.7px;
  font-weight: 760;
  letter-spacing: .14em;
}

.id-fields dd {
  margin-top: 1px;
  overflow: hidden;
  font-size: 6.2px;
  font-weight: 850;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id-bottom {
  display: grid;
  grid-template-columns: minmax(0,1fr) 36px;
  align-items: end;
  gap: 9px;
  margin-top: 6px;
  align-self: end;
}

.barcode {
  height: 14px;
  border-top: 1px solid rgba(17,18,18,.34);
  border-bottom: 1px solid rgba(17,18,18,.34);
  background: repeating-linear-gradient(90deg, #111 0 1px, transparent 1px 3px, #111 3px 5px, transparent 5px 7px, #111 7px 8px, transparent 8px 11px);
  opacity: .78;
}

.id-seal {
  position: absolute;
  right: 1px;
  bottom: -5px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  transform: rotate(-9deg);
}

.id-seal span {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 14px;
  line-height: .8;
}

.id-seal small {
  margin-top: -7px;
  font-size: 4px;
  font-weight: 900;
  letter-spacing: .13em;
}

.directory { margin-top: 36px; }

.directory-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.24);
}

.directory-head span {
  color: var(--red);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .19em;
}

.directory-head h2 {
  position: relative;
  z-index: 1;
  margin: 5px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(45px, 13vw, 58px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .79;
  text-transform: uppercase;
}

.directory-head::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 77px;
  bottom: 5px;
  width: 185px;
  height: 47px;
  border: 3px solid var(--red);
  border-radius: 48% 53% 42% 58%;
  opacity: .82;
  transform: rotate(-5deg);
  pointer-events: none;
}

.directory-head > p {
  margin: 0 0 1px 12px;
  color: rgba(243,240,234,.45);
  font-size: 7px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .14em;
  text-align: right;
}

.link-list {
  display: grid;
  gap: 11px;
}

.network-link {
  position: relative;
  display: grid;
  grid-template-columns: 25px 46px minmax(0,1fr) 26px;
  min-height: 82px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 11px 13px 11px 10px;
  border: 1px solid rgba(255,255,255,.18);
  outline: none;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(255,255,255,.035), transparent 52%),
    rgba(25,26,26,.88);
  box-shadow:
    0 14px 28px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
  animation: link-in 620ms var(--ease) both;
  transition: transform 260ms var(--ease), border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.network-link::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.48) .6px, transparent .7px);
  background-size: 4px 4px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  pointer-events: none;
}

.network-link::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 260ms var(--ease);
}

.network-link--1 { margin-right: 14px; border-radius: 4px 27px 4px 4px; animation-delay: 80ms; }
.network-link--2 { margin-left: 14px; border-radius: 27px 4px 4px 4px; animation-delay: 130ms; }
.network-link--3 {
  margin-right: 8px;
  border-color: rgba(255,54,83,.66);
  border-radius: 4px 4px 27px 4px;
  background:
    linear-gradient(125deg, rgba(255,255,255,.1), transparent 55%),
    #bd243b;
  color: #fff;
  animation-delay: 180ms;
}
.network-link--4 { margin-left: 8px; border-radius: 4px 27px 4px 27px; animation-delay: 230ms; }
.network-link--5 { margin-right: 14px; border-radius: 27px 4px 27px 4px; animation-delay: 280ms; }
.network-link--6 {
  margin-left: 14px;
  border-color: rgba(0,0,0,.7);
  border-radius: 4px 4px 4px 27px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 30%, rgba(255,54,83,.2), transparent 32%),
    var(--paper);
  box-shadow: 0 14px 34px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.7);
  animation-delay: 330ms;
}

.link-index,
.network-icon,
.network-copy,
.network-code,
.arrow-icon { position: relative; z-index: 1; }

.link-index {
  align-self: start;
  margin-top: 2px;
  color: rgba(243,240,234,.44);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
}

.network-link--3 .link-index { color: rgba(255,255,255,.62); }
.network-link--6 .link-index { color: rgba(17,18,18,.46); }

.network-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.network-link--3 .network-icon { background: rgba(0,0,0,.12); }
.network-link--6 .network-icon { border-color: rgba(17,18,18,.2); background: rgba(255,255,255,.32); }

.network-icon svg { width: 22px; height: 22px; }
.network-icon--tiktok svg { transform: translate(.5px,-.35px) scale(.96); }

.network-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.network-copy strong {
  overflow: hidden;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: .95;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.network-copy small {
  overflow: hidden;
  margin-top: 5px;
  color: rgba(243,240,234,.5);
  font-size: 9px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-link--3 .network-copy small { color: rgba(255,255,255,.69); }
.network-link--6 .network-copy small { color: rgba(17,18,18,.56); }

.network-code {
  position: absolute;
  z-index: 0;
  right: 43px;
  bottom: -9px;
  color: rgba(255,255,255,.055);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 66px;
  line-height: 1;
  letter-spacing: -.05em;
  pointer-events: none;
}

.network-link--3 .network-code { color: rgba(255,255,255,.09); }
.network-link--6 .network-code { color: rgba(17,18,18,.08); }

.arrow-icon {
  width: 20px;
  height: 20px;
  justify-self: end;
  color: rgba(243,240,234,.62);
  transition: transform 260ms var(--ease);
}

.network-link--6 .arrow-icon { color: rgba(17,18,18,.68); }

.network-link:focus-visible {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,54,83,.22), 0 14px 28px rgba(0,0,0,.3);
}

.network-link:active {
  transform: scale(.982);
  transition-duration: 80ms;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 31px;
  padding: 13px 0 2px;
  border-top: 1px solid rgba(255,255,255,.23);
  color: rgba(243,240,234,.42);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .14em;
}

@media (hover:hover) and (pointer:fine) {
  .identity-card { transition: transform 420ms var(--ease), box-shadow 420ms ease; }
  .identity-card:hover { transform: translateY(-4px) rotateX(1deg) rotateY(-1deg); box-shadow: 0 32px 70px rgba(0,0,0,.56), 0 0 0 1px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.9); }
  .network-link:hover { z-index: 2; border-color: rgba(255,54,83,.74); transform: translateX(4px); }
  .network-link:hover::after { transform: scaleY(1); }
  .network-link:hover .arrow-icon { transform: translate(3px,-3px); }
  .network-link--3:hover { background:#d32943; }
  .network-link--6:hover { color: var(--ink); background:#f4eee4; }
}

@media (min-width:700px) {
  .page-shell { padding-top: 34px; padding-bottom: 42px; }
  .content { width: min(100%, 430px); }
  .page-watermark { font-size: 178px; transform: translate(-50%,-50%); }
  .identity-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 15px 17px 12px;
    border-radius: 20px;
  }
  .identity-card::after { right: -43px; bottom: 72px; font-size: 6.4px; }
  .id-topline { margin-bottom: 10px; padding-bottom: 6px; font-size: 7px; }
  .id-topline strong { font-size: 12px; }
  .id-main { grid-template-columns: 112px minmax(0,1fr); gap: 14px; align-self: start; }
  .id-photo { height: 142px; }
  .id-photo-wrap > span { padding: 4px 5px 3px; font-size: 5.8px; }
  .id-person > p { margin-bottom: 6px; font-size: 6.5px; }
  h1 { font-size: 50px; }
  .id-handle { margin-top: 7px; font-size: 9px; }
  .id-fields { gap: 4px 9px; margin-top: 9px; }
  .id-fields div { padding-top: 4px; }
  .id-fields dt { font-size: 5.2px; }
  .id-fields dd { font-size: 7px; }
  .id-bottom { grid-template-columns: minmax(0,1fr) 42px; gap: 11px; margin-top: 8px; align-self: end; }
  .barcode { height: 18px; }
  .id-seal { width: 42px; height: 42px; bottom: -7px; }
  .id-seal span { font-size: 16px; }
  .id-seal small { margin-top: -8px; font-size: 4.4px; }
}

@media (max-width:500px) {
  .directory-head > p {
    position: absolute;
    top: 1px;
    right: 0;
    margin: 0;
    line-height: 1.35;
  }
}

@media (max-width:360px) {
  .page-shell { padding-right: 10px; padding-left: 10px; }
  .identity-card { padding: 11px 12px 9px; border-radius: 16px; }
  .id-main { grid-template-columns: 86px minmax(0,1fr); gap: 10px; }
  .id-photo { height: 109px; }
  h1 { font-size: 34px; }
  .directory-head::after { left: 62px; width: 170px; }
  .network-link--1,.network-link--2,.network-link--3,.network-link--4,.network-link--5,.network-link--6 { margin-right: 0; margin-left: 0; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@keyframes id-in {
  from { opacity:0; transform:translateY(18px) rotateX(4deg) scale(.98); }
  to { opacity:1; transform:translateY(0) rotateX(0) scale(1); }
}

@keyframes link-in {
  from { opacity:0; transform:translateY(15px); }
  to { opacity:1; transform:translateY(0); }
}

@keyframes holo-scan {
  0%,18% { transform:translateX(-45%) rotate(6deg); opacity:0; }
  32% { opacity:.38; }
  55%,100% { transform:translateX(45%) rotate(6deg); opacity:0; }
}
