/* ==========================================================================
   Kevin-Koudbi Lapierre — Portfolio
   White, one typeface (Plus Jakarta Sans), one accent (orange).
   Big rounded images, bold headlines, generous space.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --soft: #f5f5f3;
  --ink: #111111;
  --ink-2: #3b3b3b;
  --muted: #73716d;
  --line: #ebebe8;
  --accent: #111111;
  --accent-ink: #333333;
  --chip: #efefec;
  --dark: #121212;

  --radius-xl: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(17,17,17,.3); }
a:hover { text-decoration-color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.1em; }
li { margin-bottom: .45em; }
li::marker { color: #a5a29c; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
h4 { font-size: .98rem; font-weight: 700; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: #9a978f; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; }
.section.soft { background: var(--soft); }
.muted { color: var(--muted); }
.label, .eyebrow { display: block; font-size: .92rem; font-weight: 500; color: var(--muted); margin-bottom: 12px; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 600px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--muted); }
.nav-links a.nav-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 7px 7px 7px 18px; border-radius: 999px; }
.nav-links a.nav-cta::after { content: "↗"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ink); font-size: .8rem; }
.nav-links a.nav-cta:hover { color: #fff; background: #2a2a2a; }
.lang-toggle { display: inline-flex; gap: 2px; }
.lang-toggle button { border: 0; background: transparent; font: inherit; font-size: .88rem; font-weight: 600; padding: 4px 6px; cursor: pointer; color: #b3b0aa; }
.lang-toggle button[aria-pressed="true"] { color: var(--ink); }
.menu-btn { display: none; background: var(--ink); color: #fff; border: 0; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; padding: 9px 18px; border-radius: 999px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px 24px 28px; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .container { padding: 0 22px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; cursor: pointer; }
.btn-primary { background: var(--ink); color: #fff; padding: 7px 7px 7px 24px; }
.btn-primary::after { content: "→"; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .2s; }
.btn-primary:hover { background: #2a2a2a; color: #fff; }
.btn-primary:hover::after { transform: translateX(2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-outline-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.arrow-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1rem; flex: none; transition: transform .2s, background .2s; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 0; }
.hero-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); white-space: nowrap; margin-bottom: 40px; }
@media (max-width: 900px) { .hero-title { white-space: normal; } }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; }
.hero-grid > div:first-child { padding-top: 8px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 34px; }
.hero-note { margin-top: 26px; font-size: .93rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22a35a; flex: none; box-shadow: 0 0 0 4px rgba(34,163,90,.14); }
.hero-photo { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 5; background: #eeeeec; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line); }
.stats .v { font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 700; letter-spacing: -0.05em; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.stats .v span { color: #9a978f; }
.stats .l { font-size: .92rem; color: var(--muted); line-height: 1.45; max-width: 200px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { max-width: 340px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 48px; }
}

/* ---------- About: lead, chapters, two columns ---------- */
.about-lead { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; color: var(--ink); max-width: 900px; margin: 0 0 48px; }
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chapter { margin: 0; }
.chapter img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #e6e4e0; }
.chapter figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.chapter figcaption span { font-size: .82rem; color: var(--muted); }
.chapter figcaption strong { font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em; }
.chapter figcaption em { font-style: normal; font-size: .92rem; color: var(--ink-2); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 56px; }
.about-cols p { color: var(--ink-2); font-size: 1.02rem; }
@media (max-width: 900px) { .chapters { grid-template-columns: 1fr 1fr; } .about-cols { grid-template-columns: 1fr; margin-top: 36px; } }

/* ---------- Image hero ---------- */
.hero-img { padding: 8px 12px 0; }
.hero-frame { position: relative; max-width: 1416px; margin: 0 auto; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 8.6; max-height: 820px; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; background: #e8e8e8; }
.hero-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero-frame::after { content: none; }
.hero-overlay { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 56px; max-width: 58%; }
.hero-name { color: var(--ink); font-size: clamp(2.2rem, 4.1vw, 4rem); white-space: nowrap; margin: 0 0 14px; letter-spacing: -0.045em; line-height: 1; }
.hero-sub { color: var(--ink-2); font-size: 1.12rem; margin: 0; max-width: 440px; }
.hero-bar { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr) 220px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero-bar > div { padding: 18px 24px; border-right: 1px solid var(--line); min-width: 0; }
.hero-bar span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.hero-bar strong { font-size: .95rem; color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; font-size: 1rem; }
.hero-cta::after { content: "→"; transition: transform .2s; }
.hero-cta:hover { background: #2a2a2a; color: #fff; }
.hero-cta:hover::after { transform: translateX(3px); }
@media (max-width: 900px) {
  .hero-frame { min-height: 0; aspect-ratio: auto; max-height: none; }
  .hero-frame > img { position: relative; order: 2; height: 380px; object-position: 72% 20%; }
  .hero-overlay { order: 1; max-width: none; }
  .hero-bar { order: 3; }
  .hero-overlay { padding: 28px 20px 8px; }
  .hero-name { white-space: normal; }
  .hero-bar { grid-template-columns: 1fr 1fr; }
  .hero-bar > div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .hero-cta { grid-column: 1 / -1; padding: 18px; }
}

.hero-tag { font-size: clamp(1.2rem, 1.9vw, 1.55rem); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 12px; }
.hero-btns { margin-top: 26px; }
.hero-cert { display: flex; flex-direction: column; justify-content: center; padding: 18px 24px; background: var(--ink); color: #fff; }
.hero-cert span { font-size: .78rem; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.hero-cert strong { font-size: .95rem; font-weight: 600; color: #fff; }
@media (max-width: 900px) { .hero-cert { grid-column: 1 / -1; } }

/* ---------- Statement ---------- */
.statement { padding: 96px 0 24px; text-align: center; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row > div { padding: 36px 20px; text-align: center; }
.stat-row > div + div { border-left: 1px solid var(--line); }
.stat-row .v { display: block; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -0.055em; line-height: 1; color: var(--ink); margin-bottom: 12px; }
.stat-row .l { display: block; font-size: .95rem; color: var(--muted); max-width: 220px; margin: 0 auto; line-height: 1.45; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat-row > div:nth-child(3) { border-left: 0; } .stat-row > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.chip { display: inline-flex; gap: 6px; align-items: baseline; font-size: .88rem; color: var(--muted); background: var(--chip); padding: 7px 14px; border-radius: 999px; }
.chip b { color: var(--ink); font-weight: 700; }
.statement-title { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -0.045em; white-space: nowrap; margin: 0; }
@media (max-width: 900px) { .statement-title { white-space: normal; } }

/* ---------- Intro + collage ---------- */
.intro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.intro-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.15; }
.intro-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; max-width: 480px; }
.collage { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; align-items: start; }
.collage figure { margin: 0; }
.collage img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.collage .c1 img { height: 380px; object-position: center 15%; }
.collage .c2 { margin-top: 70px; } .collage .c2 img { height: 280px; }
.collage .c3 { margin-top: 30px; } .collage .c3 img { height: 320px; }
.collage figcaption { font-size: .85rem; font-weight: 600; color: var(--ink); margin-top: 10px; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 36px; } .collage .c1 img { height: 260px; } .collage .c2 img, .collage .c3 img { height: 200px; } .collage .c2, .collage .c3 { margin-top: 30px; } }

/* ---------- Section head ---------- */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; align-items: flex-end; margin-bottom: 48px; }
.head h2 { white-space: nowrap; }
@media (max-width: 700px) { .head h2 { white-space: normal; } }
.head h2 { margin: 0; }
.head p { color: var(--muted); margin: 0; max-width: 400px; }
.head.center { display: block; text-align: center; max-width: 720px; margin: 0 auto 48px; }
.head.center p { margin: 14px auto 0; }


/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 24px; }
.project { display: block; color: inherit; text-decoration: none; }
.project-media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 5 / 4; background: #efefec; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project:hover .project-media img { transform: scale(1.03); }
.project-media.shot { display: flex; align-items: center; justify-content: center; padding: 32px; background: #efeeea; }
.project-media.shot img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 22px 44px -22px rgba(0,0,0,.35); }
.project.featured .project-media.shot { aspect-ratio: auto; padding: 44px; }
.project:hover .project-media.shot img { transform: translateY(-4px); }
@media (max-width: 860px) { .project-media.shot, .project.featured .project-media.shot { padding: 18px; } }
.project-body { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding-top: 20px; align-items: start; }
.project-meta { grid-column: 1; font-size: .88rem; font-weight: 500; color: var(--muted); }
.project-title { grid-column: 1; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); margin: 0; line-height: 1.15; }
.project p { grid-column: 1 / -1; color: var(--muted); margin: 6px 0 0; font-size: .98rem; max-width: 560px; }
.project .more { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.project .more { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0; transition: transform .25s, background .2s; }
.project .more::after { content: "→"; font-size: 1.05rem; }
.project:hover .more { transform: rotate(-45deg); background: #333; }
.project.featured { grid-column: 1 / -1; }
.project.featured .project-media { aspect-ratio: 16 / 8; }
.project.featured .project-title { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.project.featured p { font-size: 1.05rem; max-width: 720px; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } .project.featured .project-media { aspect-ratio: 4 / 3; } }

/* ---------- More projects + concept ---------- */
.more-title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; letter-spacing: -0.03em; margin: 96px 0 28px; }
.work-grid.three { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
.project.small .project-media { aspect-ratio: 4 / 3; }
.project.small .project-title { font-size: 1.3rem; }
.project.small p { font-size: .93rem; }
.project.small .more { width: 38px; height: 38px; }
.concept-line { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.concept-line a { font-weight: 600; color: var(--ink); }
@media (max-width: 960px) { .work-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .work-grid.three { grid-template-columns: 1fr; } }

/* ---------- Constraints (dark band) ---------- */
.constraints { margin-top: 80px; }
.cons-title { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 24px; }
.cons-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.cons { padding: 28px 22px 8px 0; display: flex; flex-direction: column; }
.cons + .cons { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.16); }
.cons-k { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.cons-v { color: #fff; font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 8px; white-space: nowrap; }
.cons p { color: rgba(255,255,255,.66); font-size: .9rem; line-height: 1.45; margin: 0 0 14px; min-height: 2.9em; }
.cons-p { margin-top: auto; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.85); }
@media (max-width: 1000px) { .cons-grid { grid-template-columns: repeat(3, 1fr); } .cons:nth-child(4) { padding-left: 0; border-left: 0; } .cons:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.16); } }

/* ---------- Toolkit on dark ---------- */
.toolkit-title { color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 72px 0 0; }
.skills.on-dark { border-top-color: rgba(255,255,255,.16); margin-top: 20px; }
.skills.on-dark h4 { color: #fff; }
.skills.on-dark p { color: rgba(255,255,255,.62); }
.skills.on-dark a { color: #fff; }

/* ---------- Gallery ---------- */
.gallery { display: flex; gap: 16px; overflow-x: auto; padding: 4px max(40px, calc((100% - 1200px) / 2 + 40px)) 24px; scroll-padding-inline: max(40px, calc((100% - 1200px) / 2 + 40px)); scroll-snap-type: x proximity; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 290px; margin: 0; scroll-snap-align: start; }
.gallery .g-item { flex: 0 0 290px; display: block; color: inherit; text-decoration: none; scroll-snap-align: start; }
.gallery .g-item figure { margin: 0; }
.gallery .g-item img { transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.gallery .g-item:hover img { transform: translateY(-4px); opacity: .92; }
.gallery .g-item figcaption::after { content: " →"; opacity: 0; transition: opacity .2s; }
.gallery .g-item:hover figcaption::after { opacity: 1; }
.gallery img { width: 290px; height: 380px; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: .9rem; font-weight: 600; color: var(--ink); margin-top: 12px; }
.gallery figcaption span { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.gallery-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.gallery-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; color: var(--ink); }
.gallery-nav button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 860px) { .gallery { padding: 4px 22px 20px; } .gallery figure, .gallery .g-item { flex-basis: 240px; } .gallery img { width: 240px; height: 310px; } }

/* ---------- About banner ---------- */
.banner { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; background: var(--dark); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.banner-text { position: relative; z-index: 1; padding: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; width: 100%; flex-wrap: wrap; }
.banner-text h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); margin: 0; }
.banner-text p { color: rgba(255,255,255,.82); margin: 0; max-width: 360px; }
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px 72px; margin-top: 72px; }
.about > div:first-child { grid-column: 1 / -1; }
.about-cols { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
@media (max-width: 860px) { .about-cols { grid-template-columns: 1fr; } }
.about h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; white-space: nowrap; }
@media (max-width: 700px) { .about h3 { white-space: normal; } }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.skills h4 { margin-bottom: 4px; }
.skills p { font-size: .93rem; margin: 0; color: var(--muted); }
@media (max-width: 860px) { .banner { min-height: 420px; } .banner-text { padding: 26px; } .about { grid-template-columns: 1fr; gap: 16px; margin-top: 44px; } .skills { grid-template-columns: 1fr; } }

/* ---------- Process cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.card .step { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); margin-bottom: 32px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Process (dark band) ---------- */
.process { background: var(--dark); color: #fff; border-radius: var(--radius-xl); margin: 0 12px; }
.process h2 { color: #fff; }
.process .head p { color: rgba(255,255,255,.6); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.step-col { padding: 36px 28px 8px 0; display: flex; flex-direction: column; }
.step-col + .step-col { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.16); }
.step-name { color: #fff; font-size: clamp(1.6rem, 2.3vw, 2.1rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 6px; }
.step-title { color: rgba(255,255,255,.55); font-weight: 500; font-size: .98rem; margin: 0 0 14px; }
.step-col p { color: rgba(255,255,255,.62); font-size: .95rem; }
.step-col .step-desc { min-height: 7.2em; }
.step-col .step-tools { margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); font-size: .86rem; line-height: 1.6; }
.step-col .step-seen { font-size: .84rem; color: rgba(255,255,255,.5); margin: 4px 0 0; }
.step-seen a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.step-seen a:hover { text-decoration-color: #fff; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .step-col:nth-child(3) { padding-left: 0; border-left: 0; } .step-col:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); } }
@media (max-width: 560px) { .process { margin: 0 6px; } .steps { grid-template-columns: 1fr; } .step-col + .step-col { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); } }

/* ---------- Experience ---------- */
.xp { border-top: 1px solid var(--line); }
.xp-row { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.xp-date { font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--soft); padding: 6px 12px; border-radius: 999px; white-space: nowrap; order: 3; }
.xp-row h3 { font-size: 1.3rem; margin-bottom: 4px; letter-spacing: -0.03em; }
.xp-row h3 a { text-decoration: none; }
.xp-row h3 a:hover { color: var(--muted); }
.xp-role { color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.xp-row ul { margin: 0; padding-left: 1em; font-size: .96rem; }
@media (max-width: 860px) { .xp-row { grid-template-columns: 1fr; gap: 10px; } .xp-date { order: 0; justify-self: start; } }

.xp-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.xp-links .xp-link { display: inline-flex; align-items: center; font-size: .82rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.xp-links .xp-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.xp-row li .xp-link { font-size: .88rem; font-weight: 600; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; margin-top: 64px; background: var(--soft); border-radius: var(--radius-xl); padding: 40px; }
.quotes-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.quotes-photo img { width: 100%; height: 100%; object-fit: cover; }
.quotes blockquote { margin: 0 0 22px; }
.quotes blockquote p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; line-height: 1.45; color: var(--ink); margin: 0 0 4px; letter-spacing: -0.015em; }
.quotes cite { font-style: normal; font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; padding: 24px; gap: 24px; } .quotes-photo { max-width: 220px; } }

/* ---------- Recommendations ---------- */
.recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rec { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.rec blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.rec figcaption { margin: 0; font-size: .88rem; color: var(--muted); }
.rec figcaption strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.client-strip { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 16px; background: #fff; border-radius: var(--radius); padding: 22px 28px; }
.client-strip .label { margin: 0; }
.g-badge { display: flex; align-items: center; gap: 12px; }
.g-logo { width: 24px; height: 24px; flex: none; }
.g-badge > div { display: flex; flex-direction: row; align-items: baseline; gap: 10px; line-height: 1.25; }
.g-stars { color: var(--ink); letter-spacing: 2px; font-size: .95rem; }
.g-text { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.client-quotes { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 24px; min-width: 0; }
.client-quotes p { margin: 0; font-size: .86rem; color: var(--ink); white-space: nowrap; }
.client-quotes p + p { padding-left: 24px; border-left: 1px solid var(--line); }
.rec-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 400px; }
.rec-side p { color: var(--muted); margin: 0; }
.rec-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; text-align: right; }
.client-quotes cite { font-style: normal; color: var(--muted); font-size: .85rem; margin-left: 4px; }
@media (max-width: 960px) { .recs { grid-template-columns: 1fr 1fr; } .client-strip { grid-template-columns: 1fr; } .client-quotes { flex-direction: column; gap: 10px; } .client-quotes p { white-space: normal; } .client-quotes p + p { padding-left: 0; border-left: 0; } }
@media (max-width: 620px) { .recs { grid-template-columns: 1fr; } }
.skills-3 { grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
@media (max-width: 860px) { .skills-3 { grid-template-columns: 1fr; } }
.intro-text p { color: var(--ink-2); }

/* ---------- Credentials ---------- */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cred { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 6px; align-items: start; }
.cred-logo { grid-column: 1; grid-row: 1; width: 36px; height: 36px; object-fit: contain; border-radius: 8px; margin-bottom: 14px; }
.cred h3, .cred p { grid-column: 1 / -1; }
.cred-status { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; margin-bottom: 14px; }
.cred-status.progress { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.cred-status.planned { background: var(--soft); color: var(--muted); }
.cred h3 { font-size: 1.02rem; margin: 0; }
.cred p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .creds { grid-template-columns: 1fr; } }

/* ---------- Coursework ---------- */
.coursework { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 56px; padding: 40px; background: var(--soft); border-radius: var(--radius-xl); }
.coursework h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -0.03em; }
.cw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
@media (max-width: 1000px) { .cw-grid { grid-template-columns: 1fr 1fr; } }
.cw-grid h4 { margin-bottom: 6px; }
.cw-grid p { font-size: .92rem; color: var(--muted); margin: 0; }
.cw-items { display: flex; flex-direction: column; gap: 5px; }
.cw-item { display: block; position: relative; padding-left: 14px; font-size: .86rem; line-height: 1.4; }
.cw-item::before { content: ""; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: #b8b5ae; }
.cw-grid p.cw-use { margin-top: 8px; font-weight: 600; color: var(--ink); font-size: .85rem; }
@media (max-width: 860px) { .coursework { grid-template-columns: 1fr; padding: 24px; gap: 20px; } .cw-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-panel { background: var(--dark); color: #fff; border-radius: var(--radius-xl); padding: 96px 40px; text-align: center; }
.contact-panel .label { color: rgba(255,255,255,.7); }
.contact-panel h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 auto 18px; }
.contact-panel p { color: rgba(255,255,255,.7); max-width: 640px; margin: 0 auto 32px; }
.contact-panel .btn-row { justify-content: center; }
.contact-panel .btn-primary { background: #fff; color: var(--ink); }
.contact-panel .btn-primary:hover { background: #f1f1f1; color: var(--ink); }
.footer { padding: 32px 0 40px; font-size: .88rem; color: var(--muted); }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Case studies
   ========================================================================== */
.cs-hero { padding: 48px 0 32px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: 40px; text-decoration: none; }
.back:hover { color: var(--muted); }
.cs-hero .eyebrow { margin-bottom: 14px; }
.cs-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); white-space: nowrap; margin-bottom: 24px; }
@media (max-width: 900px) { .cs-hero h1 { white-space: normal; } }
.cs-hero .lead { max-width: 760px; }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 40px 0 0; }
.cs-meta > div { background: var(--soft); border-radius: var(--radius-sm); padding: 16px 18px; }
.cs-meta dt { font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.cs-meta dd { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 600; }
@media (max-width: 760px) { .cs-meta { grid-template-columns: 1fr 1fr; } }

.cs-cover { position: relative; margin: 20px 0 12px; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden; background: #efefec; display: grid; place-items: center; color: var(--muted); }
.cs-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-cover.shot { aspect-ratio: auto; display: block; padding: 48px; background: #efeeea; }
.cs-cover.shot img { position: static; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 24px 48px -24px rgba(0,0,0,.35); }
@media (max-width: 760px) { .cs-cover.shot { padding: 16px; } }

.cs-body { display: grid; grid-template-columns: 190px 1fr; gap: 72px; padding: 64px 0 96px; }
.cs-toc { position: sticky; top: 100px; align-self: start; font-size: .92rem; border-left: 2px solid var(--line); }
.cs-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.cs-toc a:hover { color: var(--ink); }
.cs-toc a.active { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }
.cs-section { padding-bottom: 52px; margin-bottom: 52px; border-bottom: 1px solid var(--line); max-width: 760px; }
.cs-section:last-of-type { border-bottom: 0; }
.cs-num { font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.cs-section h2 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-bottom: 18px; }
.cs-section h3 { font-size: 1.1rem; margin: 34px 0 8px; }
.cs-section h3:first-of-type { margin-top: 8px; }
.cs-section strong { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) { .cs-body { grid-template-columns: 1fr; gap: 0; padding-top: 40px; } .cs-toc { display: none; } }

.callout { background: var(--soft); border-left: 3px solid var(--ink); padding: 22px 26px; border-radius: var(--radius-sm); margin: 22px 0; color: var(--ink); }
.callout p:last-child { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.kpi { background: var(--soft); border-radius: var(--radius); padding: 22px; }
.kpi strong { display: block; font-size: 2.2rem; font-weight: 700; letter-spacing: -0.05em; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.kpi span { font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr; } }

.evidence-grid, .photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.evidence { aspect-ratio: 4 / 3; border: 1.5px dashed #d4d2cc; border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 20px; font-size: .88rem; color: var(--muted); }
.evidence.wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.photo-grid figure { margin: 0; }
.photo-grid img, .photo-grid video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #efefec; }
.photo-grid figure.wide { grid-column: 1 / -1; }
.photo-grid figure.wide img { aspect-ratio: 16 / 9; }
figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 600px) { .evidence-grid, .photo-grid { grid-template-columns: 1fr; } }

table.simple { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 18px 0; }
table.simple th, table.simple td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { font-size: .85rem; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
table.simple td:first-child { color: var(--ink); font-weight: 600; }

.next-cs { display: flex; justify-content: space-between; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.next-cs a { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.next-cs a:hover { color: var(--muted); }

/* Draft notes — visible only while drafting. Remove class "drafting" on <body> to hide all. */
.todo { display: none; }
body.drafting .todo { display: block; background: #fff4d6; color: #5e4500; border-radius: 10px; padding: 10px 14px; font-size: .84rem; margin: 14px 0; }
body.drafting .todo::before { content: "Draft note: "; font-weight: 700; }
body.drafting .todo[hidden] { display: none; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .project-media img, .project .more, .btn-primary::after { transition: none; }
}

/* ---------- Mobile: tighter, less text ---------- */
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .head { margin-bottom: 28px; }
  .process { margin: 0 6px; }
  .process .head p { display: none; }
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; gap: 10px; }
  .step-col, .step-col + .step-col { padding: 18px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; border-left: 1px solid rgba(255,255,255,.14); }
  .step-col:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .step-name { font-size: 1.25rem; margin-bottom: 4px; }
  .step-title { font-size: .85rem; margin-bottom: 0; line-height: 1.35; }
  .step-col .step-desc, .step-col .step-tools, .step-col .step-seen { display: none; }
  .constraints { margin-top: 44px; }
  .cons-title { font-size: 1.35rem; margin-bottom: 8px; }
  .cons-grid { grid-template-columns: 1fr 1fr; }
  .cons, .cons + .cons { padding: 18px 14px 14px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .cons:nth-child(even) { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.16); }
  .cons:last-child { grid-column: 1 / -1; }
  .cons-v { font-size: 1.3rem; }
  .cons p { font-size: .82rem; min-height: 0; margin-bottom: 8px; }
  .toolkit-title { margin-top: 44px; font-size: 1.1rem; }
  .skills.on-dark { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .skills.on-dark h4 { font-size: .88rem; }
  .skills.on-dark p { font-size: .8rem; line-height: 1.45; }
}

/* ==========================================================================
   v6 — premium lower half
   ========================================================================== */

/* Timeline */
.timeline { border-top: 1px solid var(--ink); }
.tl { border-bottom: 1px solid var(--line); }
.tl summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 120px 40px 1.1fr 1fr 24px; gap: 20px; align-items: center; padding: 22px 4px; }
.tl summary::-webkit-details-marker { display: none; }
.tl summary:hover .tl-main strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tl-years { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.tl-logo.mono { display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; border-color: var(--ink); }
.tl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl-main strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.tl-main strong a { color: inherit; text-decoration: none; }
.tl-ext { font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; margin-left: 4px; }
.tl-ext:hover { color: var(--ink); }
.tl-role { font-size: .88rem; color: var(--muted); }
.tl-impact { font-size: .95rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tl-toggle { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); position: relative; justify-self: end; transition: transform .25s, background .2s; }
.tl-toggle::before, .tl-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%,-50%); }
.tl-toggle::after { transform: translate(-50%,-50%) rotate(90deg); transition: opacity .2s; }
details[open] > summary .tl-toggle { background: var(--ink); border-color: var(--ink); }
details[open] > summary .tl-toggle::before { background: #fff; }
details[open] > summary .tl-toggle::after { opacity: 0; }
.tl-body { padding: 0 4px 24px calc(120px + 40px + 40px + 4px); }
.tl-body ul { margin: 0; padding-left: 1.1em; font-size: .95rem; color: var(--ink-2); max-width: 760px; }
.tl-body li { margin-bottom: 6px; }
@media (max-width: 860px) {
  .tl summary { grid-template-columns: 40px 1fr 24px; gap: 6px 14px; padding: 18px 0; }
  .tl-years { grid-column: 2; grid-row: 1; font-size: .8rem; }
  .tl-logo { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .tl-main { grid-column: 2; grid-row: 2; }
  .tl-impact { grid-column: 2; grid-row: 3; font-size: .88rem; }
  .tl-toggle { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
  .tl-body { padding: 0 0 18px 54px; }
}

/* Tools row (dark band) */
.tools { margin-top: 80px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.16); }
.tools .toolkit-title { margin: 0 0 18px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 18px; }
.tool-row span { color: #fff; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; opacity: .9; }
.tool-methods { color: rgba(255,255,255,.55); font-size: .9rem; margin: 0; }
.tool-methods a { color: #fff; }
@media (max-width: 700px) { .tools { margin-top: 44px; } .tool-row { gap: 8px 18px; } .tool-row span { font-size: .92rem; } }

/* Recommendations: featured + quiet row */
.rec-feature { margin: 0 0 56px; max-width: 980px; }
.rec-feature blockquote { margin: 0 0 22px; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; color: var(--ink); }
.rec-feature figcaption strong { display: block; font-size: 1rem; color: var(--ink); }
.rec-feature figcaption span { font-size: .9rem; color: var(--muted); }
.rec-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.rec-small { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.rec-small blockquote { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.rec-small figcaption strong { display: block; font-size: .88rem; color: var(--ink); }
.rec-small figcaption span { font-size: .8rem; color: var(--muted); line-height: 1.4; display: block; }
.client-line { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 40px; padding: 20px 24px; background: var(--soft); border-radius: var(--radius); }
.client-line .client-quotes { min-width: 0; overflow: hidden; }
.rec-note { text-align: left; margin-top: 14px; }
@media (max-width: 1000px) {
  .rec-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; scrollbar-width: none; margin: 0 -22px; padding: 24px 22px 4px; }
  .rec-row::-webkit-scrollbar { display: none; }
  .rec-small { flex: 0 0 75%; scroll-snap-align: start; }
}

/* Education: two columns of compact rows */
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.edu-h { font-size: .92rem; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.edu-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.edu-col .edu-row:last-child { border-bottom: 1px solid var(--line); }
.edu-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.edu-text h3 { font-size: 1rem; margin: 0 0 2px; letter-spacing: -0.015em; }
.edu-text p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.edu-status { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; white-space: nowrap; }
.edu-status.progress { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.edu-status.planned { background: var(--soft); color: var(--muted); }
.cw-toggle { margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cw-toggle summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 4px; font-weight: 600; color: var(--ink); }
.cw-toggle summary::-webkit-details-marker { display: none; }
.cw-from { font-size: .85rem; color: var(--muted); margin: 0 4px 18px; }
.cw-toggle .cw-grid { padding: 0 4px 28px; }
@media (max-width: 860px) { .edu { grid-template-columns: 1fr; gap: 32px; } .edu-row { grid-template-columns: 32px 1fr; } .edu-status { grid-column: 2; justify-self: start; } }

/* Contact + footer */
.contact-panel { display: flex; flex-direction: column; align-items: center; }
.ct-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 26px; border: 3px solid rgba(255,255,255,.12); }
.ct-email { display: inline-flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 6px 6px 20px; margin-bottom: 22px; color: #fff; font-size: .98rem; }
.ct-copy { border: 0; background: #fff; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.ct-copy:hover { background: #eaeaea; }
.foot { display: grid; grid-template-columns: 1fr auto auto; gap: 24px 40px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.foot-brand { display: flex; flex-direction: column; gap: 2px; }
.foot-brand strong { color: var(--ink); font-size: .95rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.foot-nav a:hover { color: var(--muted); }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; } .ct-email { font-size: .85rem; padding-left: 14px; } }

/* Client quotes: three equal columns that wrap instead of clipping */
.client-line .client-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; overflow: visible; }
.client-line .client-quotes p { white-space: normal; font-size: .9rem; line-height: 1.45; }
.client-line .client-quotes p + p { padding-left: 24px; border-left: 1px solid var(--line); }
.client-line .client-quotes cite { display: block; margin: 4px 0 0; }
@media (max-width: 760px) { .client-line .client-quotes { grid-template-columns: 1fr; gap: 12px; } .client-line .client-quotes p + p { padding-left: 0; border-left: 0; padding-top: 12px; border-top: 1px solid var(--line); } }

/* How I work: lighter steps */
.step-col { padding-top: 32px; }
.step-name { font-size: clamp(1.5rem, 2.1vw, 1.9rem); margin-bottom: 4px; }
.step-title { color: #fff; font-weight: 600; font-size: .98rem; letter-spacing: -0.015em; white-space: nowrap; margin: 0 0 12px; opacity: .92; }
.step-col .step-desc { min-height: 0; font-size: .9rem; line-height: 1.55; color: rgba(255,255,255,.58); margin-bottom: 18px; }
.step-col .step-tools { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.62); }
@media (max-width: 700px) { .step-title { white-space: normal; color: rgba(255,255,255,.6); font-weight: 500; } }

/* Experience: LinkedIn-style scope line + sub-roles */
.tl-sum { margin: 0 0 14px; max-width: 760px; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.tl-sub { margin: 16px 0 8px; font-size: .92rem; font-weight: 700; color: var(--ink); }
.tl-dates { font-weight: 500; color: var(--ink-3, #8a8a8a); margin-left: 6px; }
.tl-body ul + .tl-sub { margin-top: 18px; }

/* Case study covers: screenshot fills the frame, no grey mat */
.cs-cover.shot, .cs-cover.shot:is(*) { padding: 0; background: none; }
.cs-cover.shot img { border-radius: 0; box-shadow: none; display: block; }
@media (max-width: 760px) { .cs-cover.shot { padding: 0; } }

/* Case studies: no boxed cards or accent bars — editorial, line-based */
.callout { background: none; border: 0; border-radius: 0; padding: 0; margin: 28px 0; }
.callout p { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.45; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.callout strong { display: block; font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 8px; }

.kpis { gap: 0; margin: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi { background: none; border-radius: 0; padding: 26px 22px 24px; }
.kpi:first-child { padding-left: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi strong { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.055em; }
@media (max-width: 600px) { .kpi, .kpi:first-child { padding: 20px 0; } .kpi + .kpi { border-left: 0; border-top: 1px solid var(--line); } }

.cs-meta { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-meta > div { background: none; border-radius: 0; padding: 18px 20px; }
.cs-meta > div:first-child { padding-left: 0; }
.cs-meta > div + div { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .cs-meta > div { padding: 16px 14px 16px 0; } .cs-meta > div:nth-child(even) { padding-left: 14px; } .cs-meta > div:nth-child(3) { border-left: 0; } .cs-meta > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Mobile: recommendation swipe row keeps the page margin when snapping */
@media (max-width: 760px) { .rec-row { scroll-padding-inline: 22px; } .rec-small { flex-basis: 78%; } }

/* Mobile: slide/graphic images show at their natural shape instead of floating in tall empty frames */
@media (max-width: 760px) {
  .photo-grid img[style*="contain"] { aspect-ratio: auto !important; height: auto; }
}

/* Case studies: quiet external links */
.cs-links { margin: 0 0 22px; font-size: .9rem; color: var(--muted); }
.cs-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.cs-links a:hover { border-bottom-color: var(--ink); }

/* Timeline: city and province under the dates */
.tl-loc { display: block; margin-top: 3px; font-size: .78rem; color: var(--muted); opacity: .8; }
@media (max-width: 760px) { .tl-loc { display: inline; margin: 0 0 0 6px; font-size: inherit; } .tl-loc::before { content: "· "; } }
