/* ════════════════════════════════════════════════════════════════
   JUSTIN ZHAO · PERSONAL SITE
   Aesthetic: engineering blueprint × motorsport telemetry
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Surface */
  --bg:           #0a0b0d;
  --bg-grid:      rgba(255, 255, 255, 0.022);
  --bg-elev:      #14161a;
  --bg-card:      #15171c;

  /* Lines */
  --line:         #2a2f37;
  --line-dim:     #1c2027;
  --line-strong:  #3c424c;

  /* Ink */
  --ink:          #ede7d9;
  --ink-soft:     #cfc8b8;
  --ink-dim:      #8d8b85;
  --ink-faint:    #4a4e57;

  /* Signal */
  --accent:       #ffc63b;
  --accent-warm:  #ffb000;
  --accent-deep:  #b88a1f;
  --accent-glow:  rgba(255, 198, 59, 0.16);

  /* Auxiliary */
  --cyan:         #6db3d9;
  --green:        #6ee7a1;
  --red:          #ff5645;

  /* Layout */
  --max:          1400px;
  --pad-x:        clamp(20px, 4vw, 56px);

  /* Type */
  --f-display:    "Anton", "Archivo Black", "Helvetica Neue", sans-serif;
  --f-heading:    "Archivo", system-ui, sans-serif;
  --f-body:       "IBM Plex Sans", system-ui, sans-serif;
  --f-mono:       "JetBrains Mono", "Courier New", monospace;
}

/* ─── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

/* ─── REGISTRATION MARKS (corners) ──────────────────────────────── */
.reg {
  position: fixed;
  width: 16px;
  height: 16px;
  border-color: var(--ink-faint);
  border-style: solid;
  border-width: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.85;
}
.reg--tl { top: 14px;    left: 14px;   border-top-width: 1px;    border-left-width: 1px;   }
.reg--tr { top: 14px;    right: 14px;  border-top-width: 1px;    border-right-width: 1px;  }
.reg--bl { bottom: 14px; left: 14px;   border-bottom-width: 1px; border-left-width: 1px;   }
.reg--br { bottom: 14px; right: 14px;  border-bottom-width: 1px; border-right-width: 1px;  }

/* ─── TOPBAR ────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(24px, 4vw, 56px);
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
}
.brand__mark {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand__sep {
  color: var(--accent);
  font-size: 16px;
  transform: translateY(-2px);
}
.brand__sub {
  color: var(--ink-dim);
  font-size: 11px;
}

.topbar__nav {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
}
.topbar__nav a {
  color: var(--ink-dim);
  transition: color 0.18s ease;
  position: relative;
  padding-bottom: 2px;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a:hover::after { transform: scaleX(1); }

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  color: var(--ink-soft);
}

/* ─── DOT / STATUS ─────────────────────────────────────────────── */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
  display: inline-block;
  position: relative;
}
.dot--live {
  background: var(--green);
  box-shadow: 0 0 8px rgba(110, 231, 161, 0.5);
}
.dot--live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  opacity: 0.6;
  animation: pulse 2.2s ease-out infinite;
}
.dot--lg { width: 14px; height: 14px; }

@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.75; }
  100% { transform: scale(2.4); opacity: 0;    }
}

/* ─── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px var(--pad-x) 40px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 110px;
  right: -40px;
  width: clamp(360px, 48vw, 640px);
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.hero__svg { width: 100%; height: auto; }

.hero__metastrip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
}
.meta-cell {
  padding: 10px 14px;
  border-right: 1px solid var(--line-dim);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-cell:last-child { border-right: none; }
.meta-label {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.meta-value {
  font-size: 11.5px;
  color: var(--ink);
  font-weight: 500;
}

.hero__name {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 8vh, 96px) 0 clamp(24px, 4vh, 48px);
  display: flex;
  flex-direction: column;
}

.hero__annot {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.annot-top {
  margin-bottom: 12px;
  padding-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.annot-top::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.annot-side {
  position: absolute;
  right: 6px;
  bottom: 24px;
  color: var(--ink-dim);
  white-space: nowrap;
}

.hero__line {
  font-family: var(--f-display);
  font-size: clamp(88px, 17vw, 248px);
  line-height: 0.84;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-block;
  position: relative;
}
.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
}
.hero__line-pin {
  position: absolute;
  top: 16%;
  right: -32px;
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
  -webkit-text-stroke: 0;
}

.hero__sub {
  position: relative;
  z-index: 1;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.hero__role {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.hero__role-dash {
  width: 36px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.hero__role-sub {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.hero__footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(36px, 6vh, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hero__coords { display: inline-flex; gap: 10px; align-items: center; }
.hero__coords .dim { color: var(--ink-faint); }
.hero__inst {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}
.hero__scroll-line {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.hero__scroll-arrow {
  color: var(--accent);
  animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ─── SECTION SCAFFOLD ─────────────────────────────────────────── */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 144px) var(--pad-x);
}
.section + .section { padding-top: 0; }

.section__head {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: end;
  gap: 16px;
  padding-bottom: 36px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.section__num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  align-self: end;
  padding-bottom: 6px;
}
.section__title {
  font-family: var(--f-display);
  font-size: clamp(34px, 5.4vw, 64px);
  letter-spacing: 0.005em;
  line-height: 0.95;
  color: var(--ink);
  text-transform: uppercase;
}
.section__rule {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  align-self: end;
  margin-bottom: 14px;
}
.section__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  align-self: end;
  padding-bottom: 10px;
  white-space: nowrap;
}

/* ─── ABOUT ─────────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.about__portrait { position: sticky; top: 96px; }
.drawing-frame {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0;
  position: relative;
}
.drawing-frame::before,
.drawing-frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  border-style: solid;
}
.drawing-frame::before {
  top: -1px; left: -1px;
  border-width: 1px 0 0 1px;
}
.drawing-frame::after {
  bottom: -1px; right: -1px;
  border-width: 0 1px 1px 0;
}
.drawing-frame__inner {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.portrait-placeholder svg { width: 100%; height: auto; color: var(--ink-soft); }
.drawing-frame__titleblock {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  font-family: var(--f-mono);
}
.tb-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.tb-mini:nth-child(2n) { border-right: none; }
.tb-mini:nth-child(n+3) { border-bottom: none; }
.tb-mini span {
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  font-size: 9px;
}
.tb-mini strong {
  color: var(--ink);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.about__caption {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.about__body { padding-top: 6px; }
.about__lede {
  font-family: var(--f-heading);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
}
.about__lede em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
.about__para {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 64ch;
}
.about__para mark {
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding: 0 2px;
}
.about__para mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.callouts {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}
.callout {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 198, 59, 0.025));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.callout:hover {
  border-color: var(--accent-deep);
  transform: translateX(4px);
}
.callout__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
}
.callout > div { display: flex; flex-direction: column; gap: 2px; }
.callout__lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.callout__text {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

/* ─── EXPERIENCE / POSITION ─────────────────────────────────────── */
.position {
  border: 1px solid var(--line);
  background: var(--bg-card);
  position: relative;
}
.position::before {
  /* Left accent stripe */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.position__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 14px 28px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.position__id { color: var(--accent); }
.position__meta { display: inline-flex; align-items: center; gap: 18px; color: var(--ink-dim); }
.position__tenure { color: var(--ink-soft); }
.position__status { display: inline-flex; gap: 8px; align-items: center; color: var(--green); }

.position__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
}
.position__left {
  padding: 32px 28px 32px 28px;
  border-right: 1px solid var(--line);
}
.position__right {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(circle at 60% 50%, rgba(255, 198, 59, 0.04), transparent 60%),
    var(--bg-card);
}
.position__diagram { width: 100%; height: auto; color: var(--ink-soft); }
.position__diagram-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-align: center;
}
.position__org-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.position__bracket {
  font-family: var(--f-mono);
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
}
.position__org {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
}
.position__role {
  font-family: var(--f-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.position__bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.position__bullets li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}
.position__bullets li:last-child { border-bottom: 1px dashed var(--line); }
.bullet-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 2px;
}

/* ─── BILL OF MATERIALS (Skills) ────────────────────────────────── */
.bom {
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.bom__head,
.bom__row {
  display: grid;
  grid-template-columns: 80px 1.4fr 1fr 180px;
  gap: 0;
  align-items: center;
}
.bom__head {
  padding: 12px 20px;
  background: rgba(255, 198, 59, 0.04);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.bom__head .bom__right { text-align: right; }
.bom__row {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-dim);
  transition: background 0.2s ease;
}
.bom__row:last-of-type { border-bottom: none; }
.bom__row:hover { background: rgba(255, 198, 59, 0.03); }

.bom__item {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.bom__desc {
  font-family: var(--f-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.bom__cat {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.bom__status { text-align: right; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--green);
  padding: 6px 10px;
  border: 1px solid rgba(110, 231, 161, 0.3);
  border-radius: 2px;
  background: rgba(110, 231, 161, 0.05);
  text-transform: uppercase;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(110, 231, 161, 0.6);
}

.bom__foot {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

/* ─── EDUCATION ─────────────────────────────────────────────────── */
.edu-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  padding: 36px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 198, 59, 0.04), transparent 50%),
    var(--bg-card);
  position: relative;
}
.edu-card::after {
  content: "OFFICIAL · RECORD";
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  padding: 4px 8px;
  border: 1px solid var(--line);
}
.edu-card__seal { color: var(--accent); }
.edu-card__seal svg { width: 100%; height: auto; }
.edu-card__crumb {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.edu-card__name {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
}
.edu-card__loc {
  font-family: var(--f-heading);
  color: var(--ink-soft);
  font-size: 16px;
  margin-top: 8px;
  margin-bottom: 28px;
}
.edu-card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.edu-spec { display: flex; flex-direction: column; gap: 4px; }
.edu-spec__lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.edu-spec__val {
  font-family: var(--f-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

/* ─── CONTACT ───────────────────────────────────────────────────── */
.contact {
  display: grid;
  gap: 28px;
}
.contact__banner {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--accent);
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 12px,
      rgba(255, 198, 59, 0.04) 12px 14px
    ),
    var(--bg-card);
  position: relative;
}
.contact__beacon {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.dot__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0%   { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.contact__banner-main {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1;
}
.contact__banner-sub {
  display: block;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.contact__lines { display: grid; gap: 0; }
.contact-line {
  display: grid;
  grid-template-columns: 180px 1fr 40px;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-top-width: 0;
  background: var(--bg-card);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.contact__lines li:first-child .contact-line { border-top-width: 1px; }
.contact-line__key {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.contact-line__val {
  font-family: var(--f-heading);
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}
.contact-line__arrow {
  text-align: right;
  font-family: var(--f-mono);
  color: var(--ink-faint);
  font-size: 18px;
  transition: transform 0.2s ease, color 0.2s ease;
}
a.contact-line:hover {
  background: rgba(255, 198, 59, 0.04);
  border-color: var(--accent);
}
a.contact-line:hover .contact-line__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ─── FOOTER · TITLE BLOCK ──────────────────────────────────────── */
.title-block {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--pad-x);
}
.tb {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr 0.8fr 2.4fr 1.4fr;
  border: 1px solid var(--line);
  border-bottom: none;
  margin-bottom: 0;
  background: var(--bg-card);
}
.tb__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  min-height: 64px;
  justify-content: center;
}
.tb__cell:last-child { border-right: none; }
.tb__cell--brand {
  background: rgba(255, 198, 59, 0.05);
}
.tb__cell--brand .tb__value { color: var(--accent); }
.tb__cell--copy {
  background: rgba(0, 0, 0, 0.2);
}
.tb__label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.tb__value {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ─── ENTRANCE ANIMATIONS ───────────────────────────────────────── */
.hero__line,
.hero__annot,
.hero__role,
.hero__role-sub,
.hero__metastrip,
.hero__footer {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero__metastrip { animation-delay: 0.05s; }
.annot-top       { animation-delay: 0.15s; }
.hero__line:nth-child(2) { animation-delay: 0.22s; }
.hero__line:nth-child(3) { animation-delay: 0.30s; }
.annot-side      { animation-delay: 0.45s; }
.hero__role      { animation-delay: 0.40s; }
.hero__role-sub  { animation-delay: 0.48s; }
.hero__footer    { animation-delay: 0.6s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section__head,
.section > :not(.section__head) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.is-visible .section__head,
.section.is-visible > :not(.section__head) {
  opacity: 1;
  transform: translateY(0);
}
.section.is-visible > :not(.section__head) { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero__line, .hero__annot, .hero__role,
  .hero__role-sub, .hero__metastrip, .hero__footer,
  .section__head, .section > :not(.section__head) {
    opacity: 1; transform: none;
  }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: 16px; }
  .topbar__nav { justify-self: end; gap: 14px; }
  .topbar__status { display: none; }

  .hero__metastrip { grid-template-columns: repeat(3, 1fr); }
  .meta-cell:nth-child(3n) { border-right: none; }
  .meta-cell:nth-child(n+4) { border-top: 1px solid var(--line-dim); }

  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 380px; }

  .position__body { grid-template-columns: 1fr; }
  .position__left { border-right: none; border-bottom: 1px solid var(--line); }

  .bom__head, .bom__row { grid-template-columns: 56px 1fr 140px; }
  .bom__cat { display: none; }
  .bom__head > div:nth-child(3) { display: none; }

  .edu-card { grid-template-columns: 1fr; gap: 24px; }
  .edu-card__seal { max-width: 140px; }

  .tb { grid-template-columns: 1fr 1fr 1fr; }
  .tb__cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .tb__cell:nth-child(3n) { border-right: none; }
  .tb__cell--wide { grid-column: 1 / -1; }
  .tb__cell--copy { grid-column: 1 / -1; border-bottom: none; }
}

@media (max-width: 640px) {
  .topbar__nav a { font-size: 10px; letter-spacing: 0.08em; }
  .hero__bg { opacity: 0.08; right: -60px; top: 80px; }
  .hero__line { font-size: 22vw; }
  .hero__line-pin { right: -16px; }
  .annot-side { display: none; }
  .hero__footer { flex-direction: column; align-items: flex-start; gap: 8px; }

  .section__head {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .section__rule { display: none; }
  .section__tag { grid-column: 1 / -1; padding-bottom: 0; }

  .bom__head, .bom__row { grid-template-columns: 44px 1fr 110px; padding: 14px 14px; }
  .bom__desc { font-size: 15px; }
  .status { padding: 4px 8px; font-size: 9.5px; }

  .position__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .position__left { padding: 22px 18px; }
  .contact-line { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .contact-line__arrow { display: none; }
  .contact__banner { grid-template-columns: 1fr; text-align: left; }
  .contact__beacon { width: 64px; height: 64px; }
}
