@font-face {
  font-family: 'Anton';
  src: url('../fonts/Anton-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FamiljenGrotesk';
  src: url('../fonts/FamiljenGrotesk-Medium.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --sidebar-width: 240px;
  --bg:            #faf8f4;
  --surface:       #ffffff;
  --sidebar-bg:    #2e3a35;
  --sidebar-text:  #c8d4c0;
  --sidebar-muted: #7a9080;
  --text:          #3a3530;
  --muted:         #8a8278;
  --accent:        #6b8c6e;
  --accent-light:  #d4e2d0;
  --border:        #e2ddd4;
  --card-bg:       #ffffff;
  --tag-bg:        rgba(107,140,110,0.1);
  --tag-color:     #4a6e4d;
  --shadow:        rgba(42,46,44,0.08);
  --referral-card-fade: #36413d;
  --referral-card-fade-hover: #3c4743;
}

[data-theme="dark"] {
  --bg:            #1c2220;
  --surface:       #242c28;
  --sidebar-bg:    #151c18;
  --sidebar-text:  #a8bcb0;
  --sidebar-muted: #5a7060;
  --text:          #e8e4dc;
  --muted:         #7a8c84;
  --accent:        #8aaa8c;
  --accent-light:  #2a3c2e;
  --border:        #2e3a34;
  --card-bg:       #242c28;
  --tag-bg:        rgba(138,170,140,0.12);
  --tag-color:     #8aaa8c;
  --shadow:        rgba(0,0,0,0.25);
  --referral-card-fade: #1e2521;
  --referral-card-fade-hover: #252b28;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
  animation: page-fade-in 0.5s ease both;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 44px 30px;
  z-index: 100;
  transition: background 0.3s;
}

.sidebar-logo { margin-bottom: 52px; }

.sidebar-monogram {
  /* font-family: 'FamiljenGrotesk', serif;
  font-size: 38px; */
  height: 40px;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}

.sidebar-monogram span { color: var(--accent); }

.sidebar-tagline {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  margin-top: 7px;
}

nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 5px;
  color: var(--sidebar-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.nav-link::before {
  content: '';
  width: 3px; height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.25s;
  flex-shrink: 0;
}

.nav-link:hover { color: var(--sidebar-text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--accent); background: rgba(138,170,140,0.08); }
.nav-link.active::before, .nav-link:hover::before { height: 14px; }

.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--sidebar-muted);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
  margin-bottom: 18px;
  width: fit-content;
}

.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.sidebar-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.clearance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(138,170,140,0.18);
  border: 1px solid rgba(138,170,140,0.55);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a8cca8;
  margin-bottom: 14px;
  font-weight: 500;
}


.sidebar-social { display: flex; gap: 14px; }

.sidebar-social a {
  color: var(--sidebar-muted);
  font-size: 10px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.sidebar-social a:hover { color: #fff; }

/* MAIN */
.main { margin-left: var(--sidebar-width); flex: 1; min-width: 0; max-width: 100%; }

section {
  min-height: 100vh;
  padding: 48px 72px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

section:last-child { border-bottom: none; }

.section-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-family: 'Noto', serif;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: var(--text);
}

/* HERO */
#about {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: image-set(url("../images/top-bg.webp") type("image/webp"), url("../images/top-bg.png") type("image/png")) center center / cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

#about > * { position: relative; z-index: 1; }

#about::after {
  content: "";
  position: absolute;
  background: url("../images/shlogo1.png") 0 0 no-repeat;
  right: -10px; bottom: -40px;
  /* font-family: "Material Symbols Outlined";
  font-size: 340px; */
  color: var(--accent-light);
  opacity: 0.4;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s, opacity 0.3s;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-name {
  font-family: 'FamiljenGrotesk', 'Cormorant Garamond', serif;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 6px;
}

.hero-name em { font-style: italic; color: var(--accent); }
.hero-name .accent { color: var(--accent); }

.hero-title {
  font-family: 'Noto', serif;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 36px;
  letter-spacing: 0.5px;
}

.hero-summary {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-ctas .btn { padding-top: 20px; padding-bottom: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Jost', sans-serif;
}

.btn-primary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* WORK */
#work { background: var(--surface); }

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  margin-top: 6px;
}

.resume-download:hover { background: var(--accent); color: #fff; }

.resume-download svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-meta { padding-top: 3px; }

.timeline-content { min-width: 0; }

.timeline-dates {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.7;
}

.timeline-location { font-size: 13px; color: var(--muted); font-weight: 300; }

.timeline-company {
  font-family: 'Noto', serif;
  font-size: 25px;
  margin-bottom: 2px;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.timeline-role {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.timeline-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 300;
}

.timeline-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.timeline-bullets li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 14px;
  position: relative;
  font-weight: 300;
}

.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}


/* ── REFERRALS ── */
#referrals {
  background: var(--sidebar-bg);
  position: relative;
  overflow: hidden;
}

#referrals::before {
  content: '\201C';
  position: absolute;
  top: -60px; right: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 500px;
  color: rgba(138,170,140,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

#referrals .section-label { color: var(--accent); }
#referrals .section-title { color: #fff; }



.referrals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 52px;
}

.referral-card:first-child { grid-column: 1 / -1; }

.referral-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 40px 44px 36px;
  position: relative;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.referral-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(138,170,140,0.3);
  transform: translateY(-3px);
}

.referral-card:hover .referral-body.collapsible::after {
  background: linear-gradient(to bottom, transparent 0%, var(--referral-card-fade-hover) 100%);
}

.referral-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 96px;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.5;
  display: block;
}

.referral-body { position: relative; margin-bottom: 16px; }

/* Collapsed state — clip the whole body, show gradient fade */
.referral-body.collapsible {
  max-height: 290px;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.referral-body.collapsible::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, var(--referral-card-fade) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Expanded state — full height, fade out gradient */
.referral-body.collapsible.expanded {
  max-height: 2000px;
}

.referral-body.collapsible.expanded::after {
  opacity: 0;
}

/* Overflow paragraph always visible — height clip does the truncation */
.referral-body.collapsible .referral-overflow {
  display: block;
}



.referral-text {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  font-style: italic;
}

.referral-card:first-child .referral-text { font-size: 20px; line-height: 1.8; }

.referral-expand-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0 20px;
  transition: gap 0.2s, color 0.2s;
}

.referral-expand-btn:hover { color: #fff; gap: 10px; }

.referral-expand-btn .material-icons {
  font-size: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.referral-body.collapsible.expanded ~ .referral-expand-btn .material-icons {
  transform: rotate(180deg);
}

.referral-attribution {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 4px;
}

.referral-name {
  font-family: 'Noto', serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.2px;
}

.referral-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}


/* PORTFOLIO */
#portfolio { background: var(--bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.portfolio-card {
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px var(--shadow);
}

.card-thumb {
  height: auto;
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-style: italic;
}

.card-thumb-1 { background: #2e3a35; color: #8aaa8c; }
.card-thumb-2 { background: #2e3a35; color: #c8a87a; }
.card-thumb-3 { background: #2e3a35; color: #8a9cb8; }
.card-thumb-4 { background: #2e3a35; color: #b8987a; }

/* Light-mode: remove background from any card-thumb variation */
:not([data-theme="dark"]) [class*="card-thumb-"] {
  background: transparent;
}

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 18px 0; }

.tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 500;
  background: var(--tag-bg);
  color: var(--tag-color);
}

.card-body { padding: 12px 18px 20px; }

.card-title {
  font-family: 'Noto', serif;
  font-weight: 220;
  font-size: 19px;
  margin-bottom: 5px;
  color: var(--text);
}

.card-desc { font-size: 14px; color: var(--muted); line-height: 1.65; font-weight: 300; }

/* CONTACT */
#contact {
  background: var(--sidebar-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#contact .section-label { color: var(--accent); }
#contact .section-title { color: #fff; margin-bottom: 12px; }

.contact-sub {
  font-size: 17px;
  color: var(--sidebar-muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 28px;
  font-weight: 300;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  max-width: 740px;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 11px 14px;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { height: 110px; }

.contact-info { display: flex; flex-direction: column; gap: 26px; padding-top: 6px; }

.contact-item-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  margin-bottom: 5px;
}

.contact-item-value { font-size: 16px; color: #e8e4dc; font-weight: 300; }
.contact-item-value a { color: var(--accent); text-decoration: none; }
.contact-item-value a:hover { text-decoration: underline; }

/* MOBILE */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--sidebar-bg);
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.mobile-logo { height: 30px; width: auto; display: block; }
.mobile-logo span { color: var(--accent); }

.mobile-controls { display: flex; align-items: center; gap: 12px; }

.mobile-theme-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--sidebar-bg);
  z-index: 199;
  padding: 10px 0;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { border-radius: 0; padding: 11px 24px; }

@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-header { display: flex; }
  .main { margin-left: 0; padding-top: 56px; width: 100%; }
  section { padding: 56px 24px; min-height: auto; width: 100%; box-sizing: border-box; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; margin-bottom: 20px; }
  #about::after { font-size: 150px; }
  .referrals-grid { grid-template-columns: 1fr; }
  .referral-card:first-child { grid-column: 1; }
  .referral-title {font-size: 8px; word-wrap: break-word; }
  .referral-card { padding: 28px 10px; min-width: 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-width: 0; }
}

/* ── SKIP NAV ── */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus { top: 16px; }

/* ── SCROLL-DRIVEN ANIMATIONS ── */

/* Fallback: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto !important; }
}

/* Hero elements stagger in on load */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fade-up 0.6s linear both; animation-delay: 0.05s; }
.hero-name    { animation: fade-up 0.7s linear both; animation-delay: 0.15s; }
.hero-title   { animation: fade-up 0.7s linear both; animation-delay: 0.25s; }
.hero-summary { animation: fade-up 0.7s linear both; animation-delay: 0.35s; }
.hero-ctas    { animation: fade-up 0.7s linear both; animation-delay: 0.45s; }

/* Timeline items: slide in from left as they scroll into view */
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

.timeline-item {
  animation: slide-in-left linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Portfolio cards: fade up as they enter */
@keyframes card-rise {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.portfolio-card {
  animation: card-rise linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

/* Section titles: fade in with a slight clip reveal */
@keyframes title-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-title, .section-label {
  animation: title-reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

/* Resume download button pulses softly on entry */
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.resume-download {
  animation: pop-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Contact section items slide up in sequence */
.contact-item {
  animation: fade-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}

/* Sidebar nav active state driven by scroll */
@supports (animation-timeline: scroll()) {
  /* highlight nav links as their section scrolls into view */
  .main { scroll-timeline: --page-scroll block; }
}

/* LIGHTBOX */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay.visible {
  opacity: 1;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* ── PRINT ── */
@media print {
  /* Hide UI chrome */
  .sidebar, .mobile-header, .mobile-nav, .skip-nav,
  .lightbox-overlay, .resume-download, .referral-expand-btn,
  .section-label { display: none !important; }

  /* Full width layout */
  body { background: #fff !important; color: #000 !important; }
  .main { margin-left: 0 !important; padding-top: 0 !important; }
  section { padding: 32px 0 !important; min-height: auto !important; break-inside: avoid; }

  /* Reset colors for print */
  * { color: #000 !important; background: transparent !important;
      box-shadow: none !important; text-shadow: none !important; }

  /* Keep accent color readable on white */
  .timeline-role, .section-title { color: #2d5a30 !important; }

  /* Typography */
  body { font-size: 11pt; line-height: 1.5; }
  .timeline-company { font-size: 16pt; }
  .timeline-desc, .timeline-bullets li { font-size: 11pt; }

  /* Show full URLs for external links */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555 !important; }

  /* Page breaks */
  .timeline-item { break-inside: avoid; }
  #work, #referrals, #portfolio, #contact { break-before: page; }

  /* Kill all animations */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
