:root {
  --bg: #f4f5f7;
  --panel: #eef0f3;
  --panel2: #e7eaee;
  --text: #1e232b;
  --muted: #3b4452;
  --faint: #5a6678;
  --border: rgba(30, 35, 43, 0.38);
  --border2: rgba(30, 35, 43, 0.22);
  --accent: #1e232b; /* keep it grey-tech */
  --accentSoft: rgba(30, 35, 43, 0.1);

  --radius: 0px;
  --radiusSm: 0px;
  --shadow: 8px 8px 0 rgba(30, 35, 43, 0.16);
  --ring: 0 0 0 3px rgba(30, 35, 43, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;

  /* Mobile-safe top alignment (prevents “top cut off”) */
  display: grid;
  place-items: start center;
  align-content: start;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px 16px;
}

/* Subtle “modern 8-bit” pixel grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(30, 35, 43, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 35, 43, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.9;
}

.card {
  width: min(980px, 100%);
  position: relative;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;

  /* Pixel corner cutouts */
  clip-path: polygon(
    0 10px,
    10px 10px,
    10px 0,
    calc(100% - 10px) 0,
    calc(100% - 10px) 10px,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    10px calc(100% - 10px),
    0 calc(100% - 10px)
  );
}

/* “Scanline-ish” but very light */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(30, 35, 43, 0.03),
    rgba(30, 35, 43, 0.03) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.25;
}

.header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 6px 4px 18px 4px;
  border-bottom: 2px dashed var(--border2);
}

.mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.markSvg {
  display: block;
}

.headline {
  min-width: 0;
}

.name {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.title {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.intro {
  margin: 10px 0 0 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 62ch;
}

.contact {
  position: relative;
  padding: 16px 4px 18px 4px;
  border-bottom: 2px dashed var(--border2);
}

.contactList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.contactItem {
  display: grid;
  gap: 6px;
  padding: 12px 12px;
  border: 2px solid var(--border2);
  border-radius: var(--radiusSm);
  background: var(--panel2);
  min-height: 62px;
}

.contactTop {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  flex: 0 0 auto;
}

.icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.contactLabel {
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.contactValueRow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.contactValue {
  color: var(--text);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px dotted rgba(30, 35, 43, 0.0);
}

.link:hover {
  border-bottom-color: rgba(30, 35, 43, 0.55);
}

.copyBtn {
  flex: 0 0 auto;
  appearance: none;
  border: 2px solid var(--border2);
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.copyBtn:hover {
  background: var(--accentSoft);
  color: var(--text);
}

.copyBtn:active {
  transform: translateY(1px);
}

.contentGrid {
  position: relative;
  padding: 18px 4px 6px 4px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.panel {
  padding: 14px 14px;
  border: 2px solid var(--border2);
  border-radius: var(--radiusSm);
  background: var(--panel2);
  min-width: 0;
}

.panelHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panelHeaderTight {
  margin-top: 14px;
}

.panelTitle {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.panelHint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--faint);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.timelineItem {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 10px;
  border: 2px solid var(--border2);
  border-radius: 0;
  background: transparent;
}

.period {
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  padding-top: 2px;
  white-space: nowrap;
}

.roleRow {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.role {
  font-size: 0.96rem;
  margin: 0;
  color: var(--text);
}

.org {
  font-size: 0.88rem;
  margin: 0;
  color: var(--muted);
}

.summary {
  font-size: 0.9rem;
  margin: 6px 0 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 10px;
  border-radius: 0;
  border: 2px solid var(--border2);
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
}

.footer {
  position: relative;
  padding: 14px 4px 2px 4px;
}

.footerText {
  margin: 0;
  color: var(--faint);
  font-size: 0.86rem;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

@media (max-width: 900px) {
  .contactList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contentGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    padding: 18px 12px;
  }
  .card {
    padding: 16px;
  }
  .header {
    grid-template-columns: 1fr;
  }
  .mark {
    width: 52px;
    height: 52px;
  }
  .timelineItem {
    grid-template-columns: 1fr;
  }
  .period {
    white-space: normal;
  }
  .contactList {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

