@import url("fonts.css");
/* ============================================================
   victor-saad-site — single stylesheet, no build step, no CDN.
   Tokens live in :root (dark = default) and are re-declared for
   light in BOTH the [data-theme] and prefers-color-scheme blocks.
   ============================================================ */

:root {
  --bg:        #0a0c0f;
  --bg-elev:   #11151a;
  --bg-sunk:   #07090b;
  --border:    #1d242d;
  --border-lit:#2b3542;
  --text:      #e6edf3;
  --text-dim:  #8b98a5;
  --text-faint:#5b6773;
  --accent:    #57d2c8;
  --accent-ink:#0a0c0f;
  --accent-2:  #7aa2f7;
  --glow:      rgba(87, 210, 200, .14);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --wrap: 980px;
  --radius: 10px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

:root[data-theme="light"] {
  --bg:        #fbfbf9;
  --bg-elev:   #ffffff;
  --bg-sunk:   #f2f2ee;
  --border:    #e2e2dd;
  --border-lit:#cfcfc8;
  --text:      #15181c;
  --text-dim:  #5b6570;
  --text-faint:#8b949e;
  --accent:    #0b8f85;
  --accent-ink:#ffffff;
  --accent-2:  #3b5bdb;
  --glow:      rgba(11, 143, 133, .10);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #fbfbf9;
    --bg-elev:   #ffffff;
    --bg-sunk:   #f2f2ee;
    --border:    #e2e2dd;
    --border-lit:#cfcfc8;
    --text:      #15181c;
    --text-dim:  #5b6570;
    --text-faint:#8b949e;
    --accent:    #0b8f85;
    --accent-ink:#ffffff;
    --accent-2:  #3b5bdb;
    --glow:      rgba(11, 143, 133, .10);
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* the page never scrolls sideways; wide children scroll themselves */
body { overflow-x: hidden; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }

p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.05em; }
li { margin: 0 0 .45em; }
li::marker { color: var(--text-faint); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 16px; top: 12px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); /* fallback: browsers without color-mix() */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 60px;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--text); font-weight: 600; font-size: 15px;
  letter-spacing: -.01em; white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
  flex: none;
}

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim);
  font-size: 14px; font-weight: 500;
  padding: 6px 11px; border-radius: 7px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg-elev); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: var(--glow); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: 7px;
  border: 1px solid var(--border-lit);
  background: var(--bg-elev); color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .1s var(--ease);
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.primary:hover { filter: brightness(1.08); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border-radius: 7px; border: 1px solid var(--border-lit);
  background: var(--bg-elev); color: var(--text-dim);
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

.nav-burger { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 52px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(760px 340px at 12% -10%, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.name {
  font-size: clamp(38px, 7vw, 62px);
  letter-spacing: -.035em;
  margin-bottom: 14px;
}

.title-line {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 10px;
  font-size: 15px; color: var(--text-dim);
  margin-bottom: 26px;
}
.title-line .sep { color: var(--text-faint); }

.meta-row {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 14px; color: var(--text-dim);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.meta-row > * { display: inline-flex; align-items: center; gap: 7px; }
.meta-row svg { color: var(--text-faint); flex: none; }
.meta-row a { color: var(--text-dim); }
.meta-row a:hover { color: var(--accent); }

.summary {
  font-size: 16.5px; line-height: 1.75;
  color: var(--text-dim);
  max-width: 72ch; margin: 0;
}
.summary strong { color: var(--text); font-weight: 600; }

/* ---------- section blocks ---------- */

.block { padding: 56px 0; }
.block + .block { border-top: 1px solid var(--border); }

.block-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 34px;
}
.block-head h2 {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500;
  white-space: nowrap;
}
.block-head .rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.lede {
  color: var(--text-dim); max-width: 70ch;
  margin: -18px 0 34px; font-size: 15.5px;
}

/* ---------- experience ---------- */

.company-group { margin-bottom: 40px; }
.company-group:last-child { margin-bottom: 0; }

.company-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.company-head h3 { font-size: 19px; letter-spacing: -.02em; }
.company-span {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-faint); letter-spacing: .04em;
}

.role {
  position: relative;
  padding-left: 22px;
  margin-bottom: 26px;
}
.role:last-child { margin-bottom: 0; }
.role::before {
  content: ""; position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-lit);
}
.role::after {
  content: ""; position: absolute;
  left: 3px; top: 22px; bottom: -22px;
  width: 1px; background: var(--border);
}
.role:last-child::after { display: none; }
.role.current::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.role-top {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 8px 18px; flex-wrap: wrap;
  margin-bottom: 9px;
}
.role-title { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.role-when {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-faint); white-space: nowrap; letter-spacing: .02em;
}
.role ul { font-size: 14.5px; color: var(--text-dim); }
.role .desc { font-size: 14.5px; color: var(--text-dim); margin: 0; }

/* ---------- tags ---------- */

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em;
  color: var(--text-dim);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 5px;
  white-space: nowrap;
}

/* ---------- cards / grids ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}
.skill-card h4 {
  font-size: 13px; color: var(--text);
  margin-bottom: 4px; letter-spacing: -.005em;
}
.skill-card .tag-row { margin-top: 12px; }

/* ---------- project cards (portfolio) ---------- */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.proj {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.proj:hover { border-color: var(--border-lit); transform: translateY(-2px); }

.proj-top {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
}
.proj-icon {
  flex: none;
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--glow);
  color: var(--accent);
  border: 1px solid var(--border);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.proj h3 { font-size: 16px; margin-bottom: 2px; }
.proj .kicker {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-faint);
}

.proj .problem, .proj .build {
  font-size: 14px; color: var(--text-dim); margin: 0 0 10px;
}
.proj .build:last-of-type { margin-bottom: 0; }
.proj .lab {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 3px;
}
.proj .tag-row { margin-top: auto; padding-top: 16px; }

/* ---------- writing ---------- */

.post-list { display: flex; flex-direction: column; gap: 2px; }

.post {
  display: block;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: inherit;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.post:hover { background: var(--bg-elev); border-color: var(--border); text-decoration: none; }
.post-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px 18px; flex-wrap: wrap; margin-bottom: 5px;
}
.post h3 { font-size: 15.5px; }
.post:hover h3 { color: var(--accent); }
.post .when {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-faint);
  white-space: nowrap;
}
.post p { font-size: 14px; color: var(--text-dim); margin: 0; max-width: 72ch; }

/* ---------- education & awards ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
}

.edu-item { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.edu-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.edu-item h4 { font-size: 14.5px; margin-bottom: 3px; }
.edu-item .sub { font-size: 14px; color: var(--text-dim); }
.edu-item .when {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-faint);
  margin-top: 4px; letter-spacing: .02em;
}

.award-item {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 17px;
  margin-bottom: 12px;
}
.award-item:last-child { margin-bottom: 0; }
.award-icon {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--glow); color: var(--accent);
}
.award-item h4 { font-size: 14px; margin-bottom: 2px; }
.award-item .sub { font-size: 13px; color: var(--text-dim); }

/* ---------- callout ---------- */

.note {
  border-left: 2px solid var(--accent);
  background: var(--bg-elev);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 14px; color: var(--text-dim);
  margin: 0 0 30px;
}
.note strong { color: var(--text); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  background: var(--bg-sunk);
}
footer .wrap {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 20px;
  font-size: 13px; color: var(--text-faint);
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 9px 12px; }
  .btn .label { display: none; }
  .btn { padding: 7px 9px; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 48px 0 40px; }
  .block { padding: 44px 0; }
  .role-top { flex-direction: column; gap: 2px; }
}

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

/* ============================================================
   PRINT — this is what the "Résumé PDF" button produces via the
   browser's Save-as-PDF. Deliberately not a separate PDF file:
   one source of truth, never out of sync with the page.
   ============================================================ */

@media print {
  :root {
    --bg: #fff; --bg-elev: #fff; --bg-sunk: #fff;
    --border: #d8d8d4; --border-lit: #bbb;
    --text: #000; --text-dim: #333; --text-faint: #666;
    --accent: #0a6f68; --glow: transparent;
  }
  @page { size: A4; margin: 13mm 12mm; }

  .nav, footer, .no-print, .hero::before { display: none !important; }

  body { font-size: 10.5pt; line-height: 1.45; background: #fff; }
  .wrap { max-width: none; padding: 0; }

  .hero { padding: 0 0 12pt; border-bottom: 1px solid var(--border); }
  .name { font-size: 24pt; margin-bottom: 6pt; }
  .eyebrow { font-size: 8pt; margin-bottom: 8pt; }
  .title-line { font-size: 9.5pt; margin-bottom: 10pt; }
  .meta-row { font-size: 9pt; padding-bottom: 10pt; margin-bottom: 10pt; gap: 4pt 16pt; }
  .summary { font-size: 10pt; line-height: 1.5; max-width: none; }

  .block { padding: 14pt 0 0; border-top: 0 !important; }
  .block-head { margin-bottom: 12pt; }
  .block-head h2 { font-size: 9pt; }

  .company-group, .role, .skill-card, .edu-item, .award-item, .proj {
    break-inside: avoid; page-break-inside: avoid;
  }
  .company-group { margin-bottom: 16pt; }
  .company-head { margin-bottom: 10pt; padding-bottom: 6pt; }
  .company-head h3 { font-size: 13pt; }
  .role { margin-bottom: 12pt; padding-left: 12pt; }
  .role ul, .role .desc { font-size: 9.5pt; }
  .role::after { display: none; }

  .tag { border-color: #ccc; font-size: 8pt; padding: 1pt 5pt; }
  .skill-card { border-color: #ddd; padding: 8pt 10pt; }
  .skills-grid { gap: 8pt; grid-template-columns: repeat(2, 1fr); }
  .two-col { gap: 20pt; }
  .award-item { padding: 8pt 10pt; }
  .award-icon { display: none; }

  a { color: #000; text-decoration: none; }
  #experience { page-break-before: auto; }
}

/* ============================================================
   Awards — shown inline on the role they belong to, because at
   the bottom of the page nobody reaches them. Click opens a
   dialog with the citation and the photo.
   ============================================================ */

.award-chip {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  color: var(--accent);
  background: var(--glow);
  border: 1px solid var(--border);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.award-chip:hover { border-color: var(--accent); background: transparent; }
.award-chip svg { flex: none; }
.award-chip .chev { opacity: .6; }

/* content for the dialog lives in the page as hidden HTML, so it
   stays indexable and editable without touching JS */
.award-source { display: none; }

dialog.award-modal {
  width: min(620px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  padding: 0;
  border: 1px solid var(--border-lit);
  border-radius: 14px;
  background: var(--bg-elev);
  color: var(--text);
  overflow: hidden;
}
dialog.award-modal::backdrop {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(3px);
}
.award-modal-inner { overflow-y: auto; max-height: min(86vh, 760px); }

.award-modal figure { margin: 0; background: var(--bg-sunk); }
.award-modal figure img {
  display: block; width: 100%; height: auto;
  max-height: 46vh; object-fit: contain;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--border);
}
.award-modal figcaption {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint);
  padding: 9px 24px; border-bottom: 1px solid var(--border);
}

.award-body { padding: 24px 26px 28px; }
.award-body .eyebrow { margin-bottom: 10px; }
.award-body h3 { font-size: 21px; margin-bottom: 6px; letter-spacing: -.02em; }
.award-body .issuer { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.award-body p { font-size: 14.5px; color: var(--text-dim); line-height: 1.7; }
.award-body p:last-child { margin-bottom: 0; }

.award-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-elev); color: var(--text-dim);
  border: 1px solid var(--border-lit);
  cursor: pointer;
}
.award-close:hover { color: var(--text); border-color: var(--accent); }

@media print {
  .award-chip {
    background: transparent; border: 1px solid #bbb; color: #000;
    padding: 2pt 6pt; font-size: 9pt; margin-top: 6pt;
  }
  .award-chip .chev { display: none; }
  dialog.award-modal { display: none !important; }
  /* the citation is worth having on paper even though the dialog isn't */
  .award-source { display: block; font-size: 9pt; color: #333; margin-top: 4pt; }
  .award-source figure, .award-source .eyebrow { display: none; }
  .award-source h3 { font-size: 11pt; margin-bottom: 2pt; display: block; }
  .award-source .issuer { font-size: 9pt; color: #555; margin-bottom: 4pt; }
  .award-source .award-body { padding: 0; }
}

/* ============================================================
   Build detail pages
   ============================================================ */

.backlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.backlink:hover { color: var(--accent); text-decoration: none; }

.build-title { font-size: clamp(30px, 5.2vw, 46px); }

/* `.wrap.prose` would otherwise shrink the wrap itself and centre it, leaving
   the body text indented relative to the hero. Keep the wrap's width and
   constrain the children instead, so every left edge on the page lines up. */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 74ch; }
.prose h2 {
  font-size: 18px; letter-spacing: -.02em;
  margin: 38px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { font-size: 15.5px; line-height: 1.75; color: var(--text-dim); }
.prose p strong, .prose p em { color: var(--text); }
.prose p em { font-style: italic; }
.prose code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-elev); border: 1px solid var(--border);
  padding: 1px 5px; border-radius: 4px; color: var(--text);
}
.prose .note { margin: 26px 0 0; }

/* key/value block for stacks and structures */
.spec {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 4px 0 18px;
}
.spec-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 0; padding-top: 2px;
}
.spec-row dd { margin: 0; font-size: 14px; color: var(--text-dim); }

figure.shot { margin: 22px 0; }
figure.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-sunk);
}
figure.shot figcaption {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-faint); margin-top: 9px;
  letter-spacing: .03em;
}

.pager {
  display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.pager .btn { max-width: 48%; }

/* ---- project cards become links ---- */

a.proj { color: inherit; }
a.proj:hover { text-decoration: none; border-color: var(--accent); }
a.proj:hover h3 { color: var(--accent); }
.proj .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin-top: 14px;
}
a.proj:hover .more svg { transform: translateX(3px); }
.proj .more svg { transition: transform .18s var(--ease); }

@media (max-width: 560px) {
  .spec-row { grid-template-columns: 1fr; gap: 3px; }
  .pager .btn { max-width: 100%; flex: 1; justify-content: center; }
}

@media print {
  .backlink, .pager, .proj .more { display: none !important; }
  .prose { max-width: none; }
  .prose h2 { font-size: 12pt; margin: 14pt 0 6pt; padding-top: 8pt; }
  .prose p { font-size: 10pt; }
  .spec-row { background: transparent; }
  figure.shot { break-inside: avoid; }
}

/* Screen: citations are dialog content only. Print: they become a real
   "Awards" section, since a reader on paper can't click a chip. */
.print-only { display: none; }
.award-citations { display: contents; }

@media print {
  .print-only { display: flex; }
  .award-citations { display: block; break-before: auto; }
  .award-citations .wrap { padding: 0; }
  #education .note { display: none; }
  .award-source + .award-source { margin-top: 10pt; }
}

/* ============================================================
   Identidade nova (18/10/2026): mesma paleta e fontes da home
   (home.css). Só troca os tokens e os títulos; o resto do layout
   das páginas de currículo e builds continua igual.
   ============================================================ */
:root {
  --bg: #0d0d0b; --bg-elev: #151512; --bg-sunk: #0a0a08;
  --border: #2a2924; --border-lit: #3a3830;
  --text: #f1ede4; --text-dim: #a29d92; --text-faint: #6c685f;
  --accent: #ff6b35; --accent-ink: #120a06; --accent-2: #ffb08f;
  --glow: rgba(255, 107, 53, .12);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root[data-theme="light"] {
  --bg: #f4f0e8; --bg-elev: #fbf8f2; --bg-sunk: #ebe6db;
  --border: #d6cfc1; --border-lit: #c4bcac;
  --text: #15140f; --text-dim: #5d584e; --text-faint: #8f897d;
  --accent: #d9480f; --accent-ink: #fff8f2; --accent-2: #9c3408;
  --glow: rgba(217, 72, 15, .08);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f0e8; --bg-elev: #fbf8f2; --bg-sunk: #ebe6db;
    --border: #d6cfc1; --border-lit: #c4bcac;
    --text: #15140f; --text-dim: #5d584e; --text-faint: #8f897d;
    --accent: #d9480f; --accent-ink: #fff8f2; --accent-2: #9c3408;
    --glow: rgba(217, 72, 15, .08);
  }
}
h1, .brand { font-family: "Instrument Serif", Georgia, serif !important; font-weight: 400 !important; letter-spacing: -.02em !important; }
h1 { font-size: clamp(48px, 7vw, 92px) !important; line-height: .98 !important; }
.brand { font-size: 24px !important; }
.brand .dot { background: var(--accent) !important; }
@media print { h1 { font-size: 34px !important; } }
