@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/Geist-Regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/Geist-Bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Silkscreen";
  src: url("./assets/fonts/Silkscreen-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: dark;
  --background: #2b2b2b;
  --card: #2b2b2b;
  --text: #f4f1ec;
  --muted: #b8b3aa;
  --border: rgba(244, 241, 236, 0.34);
  --accent: #ff6a2a;
  --pixel: #ff4800ad;
  --radius: 8px;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.pixel-field {
  position: fixed;
  inset: auto 0 0;
  height: 48vh;
  min-height: 320px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.pixel-seed {
  position: absolute;
  bottom: 0;
  left: -18px;
  width: 68px;
  height: 48px;
  background: var(--pixel);
  box-shadow:
    92px 0 var(--pixel),
    184px 0 var(--pixel),
    276px 0 var(--pixel),
    460px 0 var(--pixel),
    552px 0 var(--pixel),
    644px 0 var(--pixel),
    736px 0 var(--pixel),
    828px 0 var(--pixel),
    920px 0 var(--pixel),
    1012px 0 var(--pixel),
    1104px 0 var(--pixel),
    1196px 0 var(--pixel),
    1288px 0 var(--pixel),
    1380px 0 var(--pixel),
    1472px 0 var(--pixel),
    1564px 0 var(--pixel),
    1656px 0 var(--pixel),
    1748px 0 var(--pixel),
    1840px 0 var(--pixel),
    0 -72px var(--pixel),
    460px -72px var(--pixel),
    552px -72px var(--pixel),
    644px -72px var(--pixel),
    736px -72px var(--pixel),
    828px -72px var(--pixel),
    920px -72px var(--pixel),
    1012px -72px var(--pixel),
    1104px -72px var(--pixel),
    1196px -72px var(--pixel),
    1380px -72px var(--pixel),
    1472px -72px var(--pixel),
    1564px -72px var(--pixel),
    1748px -72px var(--pixel),
    1840px -72px var(--pixel),
    0 -144px var(--pixel),
    460px -144px var(--pixel),
    552px -144px var(--pixel),
    644px -144px var(--pixel),
    736px -144px var(--pixel),
    828px -144px var(--pixel),
    920px -144px var(--pixel),
    1012px -144px var(--pixel),
    1104px -144px var(--pixel),
    1196px -144px var(--pixel),
    1380px -144px var(--pixel),
    1472px -144px var(--pixel),
    1564px -144px var(--pixel),
    1656px -144px var(--pixel),
    1748px -144px var(--pixel),
    1840px -144px var(--pixel),
    552px -216px var(--pixel),
    644px -216px var(--pixel),
    736px -216px var(--pixel),
    828px -216px var(--pixel),
    920px -216px var(--pixel),
    1012px -216px var(--pixel),
    1472px -216px var(--pixel),
    1564px -216px var(--pixel),
    1840px -216px var(--pixel),
    552px -288px var(--pixel),
    644px -288px var(--pixel),
    1472px -288px var(--pixel),
    1564px -288px var(--pixel),
    644px -360px var(--pixel),
    1472px -360px var(--pixel);
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 20px 22px;
  align-content: center;
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(43, 43, 43, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.profile-header {
  padding: 44px 56px 48px;
}

.brand-lockup {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.brand-logo {
  display: block;
  width: min(220px, 56vw);
  height: auto;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
  text-align: center;
}

.eyebrow,
h2 {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted,
.role,
.badge,
.link-copy small,
footer {
  color: var(--muted);
}

.muted {
  margin: 3px 0 0;
  font-size: 0.86rem;
}

h1 {
  margin: 0;
  font-family: "Silkscreen", "Geist", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-align: center;
}

h1 span + span::before {
  content: " ";
}

.role {
  margin: 24px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.social-link {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--card);
  text-decoration: none;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.social-link:focus-visible,
.social-link:hover {
  outline: 0;
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.social-break {
  display: none;
}

.save-contact {
  display: flex;
  width: min(100%, 220px);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--card);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  justify-self: center;
  transition:
    background 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

.save-contact:focus-visible,
.save-contact:hover {
  filter: brightness(1.08);
  outline: 0;
  transform: translateY(-1px);
}

.save-contact-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.save-contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.card-divider {
  height: 1px;
  background: var(--border);
}

.card-body {
  display: grid;
  gap: 28px;
  padding: 40px 56px 56px;
}

.link-section {
  display: grid;
  gap: 12px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  font-size: 0.8rem;
}

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

.link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 84px;
  gap: 16px;
  padding: 18px 22px 18px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.link-card:focus-visible,
.link-card:hover {
  background: rgba(255, 106, 42, 0.1);
  outline: 0;
  transform: translateY(-1px);
}

.company-section {
  padding: 0;
}

.company-section .link-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.company-section .link-card {
  min-height: 64px;
  grid-template-columns: 26px minmax(0, 1fr);
  padding: 13px 16px;
  border: 0;
  background: rgba(244, 241, 236, 0.1);
}

.company-section .link-card:focus-visible,
.company-section .link-card:hover {
  background: rgba(255, 106, 42, 0.1);
}

.company-section .link-copy {
  gap: 0;
}

.company-section .link-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.96rem;
}

.company-section .link-copy small {
  display: none;
}

.company-section .icon {
  grid-row: 1;
  grid-column: 1;
  color: var(--accent);
}

.company-section .link-copy {
  grid-row: 1;
  grid-column: 2;
}

.icon {
  display: grid;
  place-items: center;
  color: currentColor;
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon svg.brand-icon {
  fill: currentColor;
  stroke: none;
}

.icon svg.heavy-line-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
}

.social-link .icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.9;
}

.link-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.link-copy strong,
.link-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-copy strong {
  font-size: 1rem;
}

.link-copy small {
  font-size: 0.84rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 2px 0;
  font-size: 0.78rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 390px);
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.modal-panel h2 {
  font-size: 1rem;
}

.modal-copy,
.copy-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.wechat-qr {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: #ffffff;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#wechat-id {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--card);
  cursor: pointer;
  font: inherit;
}

@media (max-width: 680px) {
  .shell {
    padding: 20px 14px 16px;
    align-content: start;
  }

  .pixel-field {
    height: 36vh;
    min-height: 250px;
  }

  .pixel-seed {
    left: -40px;
    transform: scale(0.68);
    transform-origin: bottom left;
  }

  .profile-header {
    padding: 28px 26px 34px;
  }

  .role {
    margin-top: 18px;
  }

  h1 span {
    display: block;
  }

  h1 span + span::before {
    content: "";
  }

  .social-links {
    gap: 10px;
    margin-top: 28px;
  }

  .social-link {
    width: 48px;
    height: 48px;
  }

  .social-break {
    display: block;
    flex-basis: 100%;
    width: 0;
    height: 0;
  }

  .card-body {
    gap: 24px;
    padding: 28px 26px 34px;
  }

  .link-card {
    min-height: 72px;
    padding: 15px 16px 15px 20px;
  }

  .company-section {
    padding: 0;
  }

  .company-section .link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .company-section .link-card {
    min-height: 58px;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .company-section .link-copy strong {
    font-size: 0.86rem;
  }
}
