/* ==========================================================================
   Kristyn Dingman - Portfolio
   Design system. Palette preserved from original brand (blush #DECFCC),
   typography elevated: Fraunces (display) + Inter (text).
   ========================================================================== */

:root {
  /* --- Color: warm editorial, built from her original blush --- */
  --sand:      #F8F3F0;   /* primary canvas */
  --sand-2:    #F0E8E4;   /* alt sections */
  --blush:     #DECFCC;   /* signature brand tone */
  --blush-deep:#CBB4AE;
  --ink:       #26221F;   /* warm near-black */
  --ink-soft:  #5B534D;   /* body text */
  --muted:     #6E645D;   /* captions / meta (AA on sand) */
  --plum:      #7C5E6E;   /* accent (nod to her favorite: purple) */
  --plum-deep: #574050;
  --line:      #E7DCD6;
  --white:     #FFFFFF;

  /* --- Type --- */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Space + motion --- */
  --wrap: 1200px;
  --wrap-narrow: 780px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --shadow: 0 18px 50px -22px rgba(38, 34, 31, .35);
  --shadow-sm: 0 6px 22px -12px rgba(38, 34, 31, .30);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- Reset --- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--plum); color: #fff; }

/* --- Type scale --- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
.display { font-size: clamp(2.7rem, 6.5vw, 5.4rem); font-weight: 400; letter-spacing: -.025em; line-height: .98; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--plum);
  display: inline-block;
}
.serif-italic { font-style: italic; }

/* --- Layout --- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--wrap-narrow); }
section { padding-block: clamp(56px, 9vw, 130px); }
.section-sand2 { background: var(--sand-2); }
.section-blush { background: var(--blush); }
.section-ink { background: var(--ink); color: #EDE6E1; }
.section-ink h1,.section-ink h2,.section-ink h3 { color: #fff; }
.section-ink p { color: #C9BEB6; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .95em 1.7em; border-radius: 100px; border: 1.5px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--plum-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: var(--ink); padding-inline: 0; border-radius: 0; }
.btn-ghost .arrow { transition: transform .3s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(6px); }
.btn-lg { padding: 1.05em 2em; font-size: 1rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--sand) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.01em; display: flex; align-items: baseline; gap: .5ch; }
.brand b { font-weight: 500; }
.brand span { font-size: .68rem; font-family: var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); list-style: none; }
.nav-links a { font-size: .93rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: 6px; transition: color .25s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--plum); transition: width .3s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { padding: .6em 1.25em !important; font-size: .88rem; background: var(--blush); color: var(--ink); border-color: var(--blush); }
.nav-cta:hover { background: var(--blush-deep); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; color: var(--ink); }
.nav-toggle svg { margin-inline: auto; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px;
    background: var(--sand); border-bottom: 1px solid var(--line);
    padding: 18px var(--gutter) 30px; align-items: stretch;
    transform: translateY(-120%); transition: transform .38s var(--ease); z-index: 55;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; background: var(--blush); color: var(--ink); border: 1.5px solid var(--blush-deep); border-radius: 100px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(50px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.hero-copy { align-self: center; }
.hero-copy .display { margin: .28em 0 .05em; }
.hero-copy .roles { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--plum); margin-bottom: .9rem; }
.hero-copy .lead { margin-bottom: 2rem; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* image is taken out of flow so the TEXT block alone sets the row height; the photo fills it exactly */
.hero-photo { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo .tag {
  position: absolute; bottom: 18px; left: -18px; background: var(--white);
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.hero-photo .tag small { display: block; color: var(--muted); font-weight: 500; }

/* Stat / capability strip */
.caps { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.caps span { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .5ch; }
.caps span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--plum); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-photo { order: -1; max-width: 380px; min-height: 0; }
  .hero-photo img { position: static; aspect-ratio: 4/5; height: auto; min-height: 0; }
  .hero-photo .tag { left: 12px; }
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: .35em 0 .5em; }
.section-head p { font-size: 1.08rem; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(30px,4vw,52px); }
.head-row .section-head { margin-bottom: 0; }

/* ==========================================================================
   Featured work cards
   ========================================================================== */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.work-card {
  position: relative; display: block; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card .thumb { aspect-ratio: 16/11; overflow: hidden; background: var(--sand-2); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
/* portrait creatives (flyers, book covers): show the whole piece, matted, never cropped */
.work-card .thumb.contain { display: grid; place-items: center; padding: 22px; background: var(--sand-2); }
.work-card .thumb.contain img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.work-card:hover .thumb img { transform: scale(1.045); }
.work-card .body { padding: 26px 28px 30px; }
.work-card .kicker { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); }
.work-card h3 { margin: .5em 0 .35em; }
.work-card p { font-size: .98rem; }
.work-card .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .74rem; font-weight: 600; color: var(--ink-soft); background: var(--sand-2); border: 1px solid var(--line); padding: 4px 11px; border-radius: 100px; }
.work-card.wide { grid-column: 1 / -1; }
.work-card.wide { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; }
.work-card.wide .thumb { aspect-ratio: auto; height: 100%; min-height: 300px; }
.work-card.wide .body { align-self: center; padding: clamp(28px,4vw,48px); }
.work-card.wide h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

@media (max-width: 780px) {
  .featured { grid-template-columns: 1fr; }
  .work-card.wide { grid-template-columns: 1fr; }
  .work-card.wide .thumb { min-height: 240px; }
}

/* ==========================================================================
   Gallery (masonry-ish) + filters
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  font-size: .86rem; font-weight: 600; padding: .55em 1.25em; border-radius: 100px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery { columns: 3; column-gap: clamp(14px, 2vw, 24px); }
.gallery .item { break-inside: avoid; margin-bottom: clamp(14px, 2vw, 24px); border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--line); cursor: zoom-in; position: relative; }
.gallery .item img { width: 100%; height: auto; transition: transform .6s var(--ease), filter .3s; }
.gallery .item:hover img { transform: scale(1.03); }
.gallery .item figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(38,34,31,.82)); color: #fff; font-size: .82rem; font-weight: 600; opacity: 0; transition: opacity .3s var(--ease); }
.gallery .item:hover figcaption { opacity: 1; }
.gallery .item.hide { display: none; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

/* even grid variant (photography) */
.grid-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 18px); }
.grid-photos .item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--sand-2); }
.grid-photos .item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.grid-photos .item:hover img { transform: scale(1.05); }
.grid-photos .item.tall { grid-row: span 2; aspect-ratio: 1/2; }
@media (max-width: 640px) { .grid-photos { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Case study pages
   ========================================================================== */
.cs-hero { padding-top: clamp(30px,5vw,60px); }
.cs-hero .eyebrow { margin-bottom: 1rem; }
.cs-hero h1 { max-width: 14ch; margin-bottom: .5em; }
.cs-hero .lead { max-width: 40ch; }
.cs-cover { margin-top: clamp(30px,4vw,50px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand-2); }
.cs-cover img { width: 100%; }

.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: clamp(30px,4vw,48px) 0; border-block: 1px solid var(--line); margin-block: clamp(40px,6vw,70px); }
.cs-meta .m label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin-bottom: .6em; }
.cs-meta .m p { font-size: .98rem; color: var(--ink); font-weight: 500; }
@media (max-width: 720px){ .cs-meta { grid-template-columns: 1fr 1fr; gap: 22px; } }

.cs-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; margin-block: clamp(40px,7vw,90px); }
.cs-block.reverse .cs-block-text { order: 2; }
.cs-block-text h2 { margin-bottom: .6em; }
.cs-block-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--sand-2); }
.cs-block-media.stack { display: grid; gap: 16px; }
@media (max-width: 780px){ .cs-block { grid-template-columns: 1fr; } .cs-block.reverse .cs-block-text { order: 0; } }

.cs-wide { margin-block: clamp(40px,6vw,80px); }
.cs-wide img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose { max-width: 44ch; }
.prose.center { margin-inline: auto; text-align: center; max-width: 60ch; }

/* Results / impact stats */
.impact { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.impact .stat { text-align: center; padding: 10px; }
.impact .stat b { display: block; font-family: var(--serif); font-size: clamp(2.4rem,5vw,3.6rem); line-height: 1; color: var(--ink); }
.section-ink .impact .stat b { color: #fff; }
.impact .stat span { font-size: .9rem; color: var(--muted); margin-top: .6em; display: block; }
.section-ink .impact .stat span { color: #C9BEB6; }
@media (max-width: 720px){ .impact { grid-template-columns: 1fr 1fr; gap: 30px 16px; } }

/* Process steps */
.process { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.4vw,30px); counter-reset: step; }
.process .step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.process .step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 1.6rem; color: var(--blush-deep); display: block; margin-bottom: .5em; }
.process .step h3 { font-size: 1.15rem; margin-bottom: .4em; }
.process .step p { font-size: .94rem; }
@media (max-width: 780px){ .process { grid-template-columns: 1fr; } }

/* placeholder tiles for assets to be added */
.placeholder {
  border: 1.5px dashed var(--blush-deep); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--sand-2), var(--sand-2) 12px, var(--sand) 12px, var(--sand) 24px);
  display: grid; place-items: center; text-align: center; padding: 40px 24px; min-height: 200px; color: var(--muted);
}
.placeholder span { font-size: .82rem; font-weight: 600; letter-spacing: .04em; max-width: 32ch; }
.placeholder .ic { font-size: 1.6rem; margin-bottom: .5em; display:block; opacity:.6; }

/* ==========================================================================
   About
   ========================================================================== */
.about-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.about-hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.about-hero .display { font-size: clamp(2.2rem,4.5vw,3.4rem); margin-bottom: .4em; }
@media (max-width: 780px){ .about-hero { grid-template-columns: 1fr; } .about-hero img { max-width: 340px; } }

.values { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.4vw,32px); }
.value h3 { font-size: 1.2rem; margin-bottom: .4em; }
.value p { font-size: .96rem; }
.value .num { font-family: var(--serif); color: var(--blush-deep); font-size: 1.4rem; }
@media (max-width: 780px){ .values { grid-template-columns: 1fr; } }

/* ==========================================================================
   Resume timeline
   ========================================================================== */
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); }
@media (max-width: 820px){ .resume-grid { grid-template-columns: 1fr; } }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content:""; position:absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before { content:""; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--sand); border: 3px solid var(--plum); }
.tl-item .when { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.tl-item h3 { font-size: 1.2rem; margin: .3em 0 .1em; }
.tl-item .org { font-weight: 600; color: var(--ink); font-size: .95rem; }
.tl-item p { font-size: .95rem; margin-top: .5em; }
.skill-group { margin-bottom: 26px; }
.skill-group h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin-bottom: .9em; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span { font-size: .86rem; font-weight: 500; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 6px 13px; border-radius: 100px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.4vw,30px); }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow-sm); }
.quote p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.quote .who { margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: .88rem; font-weight: 600; color: var(--ink); }
.quote .who small { display: block; color: var(--muted); font-weight: 500; }
@media (max-width: 820px){ .quotes { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact / CTA
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem,4.5vw,3.4rem); margin-bottom: .4em; max-width: 16ch; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; max-width: 34em; margin-bottom: 2rem; color: #C9BEB6; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); margin-bottom: .5em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: .8em 1em;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px color-mix(in srgb, var(--plum) 18%, transparent); }
.field textarea { min-height: 150px; resize: vertical; }
.contact-detail { margin-bottom: 22px; }
.contact-detail label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); }
.contact-detail a, .contact-detail p { font-size: 1.15rem; color: var(--ink); font-family: var(--serif); margin-top: .2em; }
.contact-detail a:hover { color: var(--plum); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #C9BEB6; padding-block: clamp(50px,7vw,80px) 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { max-width: 30ch; }
.footer-brand .brand { color: #fff; margin-bottom: .8em; }
.footer-brand p { color: #A99E96; font-size: .95rem; }
.footer-nav { display: flex; gap: clamp(30px,5vw,70px); flex-wrap: wrap; }
.footer-col h5 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1em; }
.footer-col a { display: block; color: #B9AEA6; font-size: .95rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; font-size: .84rem; color: #A99E96; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(26,22,20,.94); display: none; place-items: center; padding: 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lightbox .lb-close { position: fixed; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox .lb-close:hover { background: rgba(255,255,255,.24); }
.lightbox .lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 1.6rem; display: grid; place-items: center; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }
@media (max-width: 640px){ .lightbox .lb-nav { display:none; } }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* utility */
.mt-sm{margin-top:1rem}.mt{margin-top:2rem}.mb{margin-bottom:2rem}
.text-center{text-align:center}
.divider{height:1px;background:var(--line);border:0;margin-block:clamp(40px,6vw,70px)}

/* ==========================================================================
   Accessibility: skip link + focus-visible + zoomable affordance
   ========================================================================== */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: .9rem; font-weight: 600; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; outline: 2px solid var(--plum); outline-offset: 2px; }

a:focus-visible, button:focus-visible, .btn:focus-visible,
.filter-btn:focus-visible, [data-zoom]:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--plum); outline-offset: 3px; border-radius: 4px;
}
[data-zoom] { cursor: zoom-in; }

/* ==========================================================================
   Print (résumé "Download PDF" → browser print)
   ========================================================================== */
@media print {
  .site-header, .site-footer, .no-print, .nav-toggle { display: none !important; }
  body { font-size: 12px; background: #fff; color: #000; }
  section { padding-block: 14px !important; }
  .hero { padding: 0 !important; }
  .resume-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .timeline::before { background: #999; }
  .tl-item::before { border-color: #000; background: #fff; }
  .skill-tags span { border-color: #bbb; }
  .display { font-size: 26px !important; }
  a { color: #000; text-decoration: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
