/* Portfolio page (index.html) styles, on top of style.css and css/site.css. */
/* Hero: text beside the full, uncropped photo */
.hero { padding-bottom: 0; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; text-align: left; }
.hero-text { padding-bottom: 80px; }
.hero-split h1, .hero-split p.lead { margin-left: 0; margin-right: 0; }
.hero-split .hero-cta { justify-content: flex-start; }
.hero-photo { position: relative; margin: 0; display: flex; justify-content: center; }
.hero-photo::before { /* soft backdrop behind the cut-out photo */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; top: 12%;
  border-radius: 200px 200px 24px 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-solid) 16%, var(--surface)), color-mix(in srgb, var(--brand-solid) 6%, var(--surface)));
  border: 1px solid var(--border);
}
.hero-photo img { position: relative; display: block; width: 100%; max-width: 380px; height: auto; }

/* Contact callout: full photo, not cropped */
.expert-callout img.callout-photo {
  width: 96px; height: auto; border-radius: 14px; object-fit: contain; box-shadow: none;
  background: color-mix(in srgb, var(--brand-solid) 10%, var(--surface));
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-text { padding-bottom: 0; order: 2; }
  .hero-split h1, .hero-split p.lead { margin-left: auto; margin-right: auto; }
  .hero-split .hero-cta { justify-content: center; }
  .hero-photo { order: 1; }
  .hero-photo img { max-width: 240px; }
  .hero { padding-bottom: 56px; }
}

/* Summary */
.target-role {
  padding: 14px 18px; border-radius: 10px; color: var(--text) !important;
  background: color-mix(in srgb, var(--brand-solid) 8%, var(--surface));
  border-left: 3px solid var(--brand-solid);
}

/* Experience */
.timeline { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
.job:hover, .job:focus-within { transform: none; }
.job-head { display: flex; justify-content: space-between; gap: 16px; }
.job h3 { font-size: 1.2rem; margin-bottom: .15em; }
.job .tag { margin-bottom: 10px; color: var(--accent); }
.job .org { margin: 0; color: var(--muted); font-weight: 500; }
.when { margin: 0; text-align: right; font-weight: 700; font-size: .9rem; white-space: nowrap; color: var(--text); }
.when span { display: block; color: var(--muted); font-weight: 500; }
.scale { margin: 14px 0 12px; font-size: .88rem; font-weight: 600; color: var(--accent) !important; }
.job .feat { margin: 0; }

/* Skills */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.chips .tag { margin: 0; }

/* Projects: inline icon for apps without a logo */
.app-ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.app-ico svg { width: 22px; height: 22px; }

/* Education */
.edu { list-style: none; margin: 0; padding: 0; }
.edu li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.edu li:last-child { border-bottom: 0; padding-bottom: 0; }
.edu b { display: block; font-weight: 600; line-height: 1.4; }
.edu span { color: var(--muted); font-size: .88rem; }

/* Contact */
.contact-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.contact-links a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-links a:hover { text-decoration: underline; }
.site-footer .fineprint a { color: #cbd5e1; }

@media (max-width: 760px) {
  .job-head { flex-direction: column; gap: 6px; }
  .when { text-align: left; }
  .when span { display: inline; }
  .when span::before { content: " · "; }
  .contact-links { justify-content: center; }
}

/* Print: a clean resume */
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --bg-elev: #fff; --surface: #fff; --text: #000; --muted: #333; --border: #ccc; --shadow: none; color-scheme: light; }
  body { font-size: 10pt; line-height: 1.45; }
  .site-nav, .hero-cta, .site-footer, .hero-photo, .expert-callout img, .expert-callout .btn, .tile-actions, .why-ico, .app-ico, .tile-top img { display: none !important; }
  .hero, .section { padding: 12pt 0 !important; background: none !important; border: 0 !important; }
  .hero::before { display: none; }
  .card, .panel { box-shadow: none; border: 0; padding: 0; break-inside: avoid; }
  .card::before { display: none; }
  .section-head { margin-bottom: 10pt; text-align: left; max-width: none; }
  .section-head p { display: none; }
  .app-grid, .values { gap: 8pt; }
}

