/* justindepascale.com — dark Swiss / Archivo
   Monotone by design: the headshot is the only color on the page. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-400.woff2") format("woff2");
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-700.woff2") format("woff2");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: #0A0A0A;
  color: #A6ACB3;
  font-family: 'Archivo', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 28px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #FFF;
  color: #0A0A0A;
  padding: 10px 18px;
  font-size: 14px;
  z-index: 10;
}
.skip-link:focus { left: 0; }
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.hero-links a, .contact-links a {
  display: inline-block;
  padding: 11px 22px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
a.primary { background: #FFF; color: #0A0A0A; }
a.ghost { border: 1px solid #606060; color: #E8E8E8; }
a.primary:hover { background: #E8E8E8; }
a.ghost:hover { border-color: #8B9198; }
.hero-links a:focus-visible, .contact-links a:focus-visible,
.band-cta:focus-visible, .kit-link:focus-visible, .proj-link:focus-visible,
.proj p a:focus-visible, .skip-link:focus-visible {
  outline: 2px solid #FFF;
  outline-offset: 2px;
}

/* ---------- Hero: pure typography over texture ---------- */
.hero { padding: 104px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/texture.svg");
  background-size: 1200px 800px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 55%, transparent 96%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 55%, transparent 96%);
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: stretch;
}
.hero-portrait {
  position: relative;
  border: 1px solid #2E2E2E;
  overflow: hidden;
  margin-top: 34px; /* top of photo aligns with the top of the h1, not the eyebrow */
}
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero .eyebrow {
  color: #8B9198;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.03;
  margin: 0 0 20px;
  color: #FFF;
  text-wrap: balance;
}
.roles {
  font-size: 16px;
  color: #E8E8E8;
  margin: 0 0 16px;
  line-height: 1.9;
  max-width: 62ch;
}
.roles .sep { color: #4A4A4A; padding: 0 6px; }
.roles .role-line { display: block; }
.intro-line {
  color: #A6ACB3;
  max-width: 62ch;
  margin: 0 0 36px;
}
.hero-links {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 12px;
  justify-content: start;
}
.hero-links a { width: 100%; text-align: center; }
.hero-links .hlid { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-links .vcard { grid-column: 1 / -1; }

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid #1E1E1E; border-bottom: 1px solid #1E1E1E; }
.facts-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.fact .num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFF;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}
.fact .lbl {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B9198;
  margin-top: 4px;
  white-space: nowrap;
}

/* ---------- Sections ---------- */
section { padding: 72px 0 0; }
.eyebrow2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B9198;
  margin: 0 0 14px;
}
.eyebrow2::after { content: ""; height: 1px; flex: 1; background: #1E1E1E; }
h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #FFF;
  margin: 0 0 24px;
  text-wrap: balance;
}
.prose { max-width: 65ch; }
.prose p { margin: 0 0 1.2em; }
.prose strong, .speaking-band strong, .offclock strong { color: #DDE1E5; font-weight: 700; }

/* ---------- About ---------- */
#about .prose { max-width: 72ch; }
.warmth { color: #DDE1E5; }

/* ---------- What I do ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pillar {
  border: 1px solid #222;
  border-top: 2px solid #565C63;
  background: #0E0E0E;
  padding: 26px 28px 24px;
}
.pillar:hover { border-top-color: #FFF; }
.pillar h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFF;
  margin: 0 0 10px;
}
.pillar p { margin: 0; font-size: 15.5px; }
.pillar .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pillar .tags span {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8B9198;
  border: 1px solid #2A2A2A;
  padding: 3px 10px;
}

/* ---------- Projects ---------- */
.projects { border-top: 1px solid #1E1E1E; list-style: none; margin: 0; padding: 0; }
.proj {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 26px 0;
  border-bottom: 1px solid #1E1E1E;
}
.proj h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFF;
  margin: 0;
  line-height: 1.3;
}
.proj .proj-link {
  display: inline-block;
  font-size: 13.5px;
  color: #8B9198;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0;
  padding: 4px 0;
}
.proj .proj-link:hover { color: #DDE1E5; }
.proj p { margin: 0; font-size: 15.5px; max-width: 58ch; }
.proj p a {
  color: #DDE1E5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.proj p a:hover { color: #FFF; }

/* ---------- Career timeline ---------- */
.timeline {
  border-left: 2px solid #222;
  margin: 0 0 0 6px;
  padding: 0 0 0 32px;
  list-style: none;
}
.entry { position: relative; padding-bottom: 34px; }
.entry:last-child { padding-bottom: 8px; }
.entry::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #0A0A0A;
  border: 2px solid #C9CDD2;
}
.entry .when {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8B9198;
  font-variant-numeric: tabular-nums;
}
.entry h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFF;
  margin: 4px 0 2px;
}
.entry .org { font-size: 15px; color: #8B9198; margin-bottom: 6px; }
.entry p { margin: 6px 0 0; max-width: 62ch; font-size: 15.5px; }
.edu {
  margin: 30px 0 0 6px;
  padding-top: 18px;
  border-top: 1px solid #1E1E1E;
  font-size: 14px;
  color: #8B9198;
  max-width: 66ch;
}

/* ---------- Off the clock ---------- */
.offclock {
  border: 1px solid #222;
  background: #0E0E0E;
  padding: 26px 32px;
  max-width: 72ch;
}
.offclock p { margin: 0; font-size: 15.5px; }

/* ---------- Speaking ---------- */
.speaking-band {
  background: #0E0E0E;
  border: 1px solid #222;
  padding: 30px 32px;
  max-width: 72ch;
}
.speaking-band p { margin: 0; font-size: 15.5px; }
.speaking-band p + p { margin-top: 10px; }
.band-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 22px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid #606060;
  color: #E8E8E8;
}
.band-cta:hover { border-color: #8B9198; }

.kit {
  border: 1px solid #222;
  border-left: 2px solid #565C63;
  padding: 22px 26px;
  margin-top: 20px;
  max-width: 72ch;
}
.kit-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B9198;
  margin: 0 0 10px;
}
.kit-bio { margin: 0 0 16px; font-size: 15.5px; }
.kit-row { display: flex; align-items: center; gap: 14px; }
.kit-thumb {
  width: 56px;
  height: 56px;
  flex: none;
  border: 1px solid #2E2E2E;
  overflow: hidden;
}
.kit-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.kit-link { color: #FFF; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.kit-link:hover { color: #DDE1E5; }

/* ---------- Contact / footer ---------- */
.contact { margin-top: 76px; border-top: 1px solid #1E1E1E; position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/texture.svg");
  background-size: 1200px 800px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 96%);
  mask-image: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 96%);
}
.contact .wrap { position: relative; }
.contact-inner { padding-top: 58px; padding-bottom: 62px; }
.contact h2 { color: #FFF; }
.contact p { max-width: 60ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fineprint {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #1E1E1E;
  font-size: 13px;
  color: #8B9198;
}

/* ---------- Mailto toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  background: #FFF;
  color: #0A0A0A;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 11px 22px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: 20;
}
.toast-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .toast, .toast-visible { transition: none; }
}

@media (max-width: 1040px) {
  .facts-grid { flex-direction: column; gap: 18px; }
  .fact .num, .fact .lbl { white-space: normal; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait { max-width: 320px; aspect-ratio: 4 / 5; margin-top: 0; }
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 52px; }
  .pillars { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 520px) {
  .hero-links { grid-template-columns: 1fr; }
}
