/* ===== Design tokens (matched to aleksdrobik.com) ===== */
:root {
  --accent: #A51C30;        /* #A51C30 */
  --accent-soft: #f0bcc4;
  --dark: #2a1216;              /* CTA band */
  --black: #000;
  --white: #fff;
  --grey-100: #f4f5f6;
  --grey-300: #dfe2e5;
  --text-muted: #555;
  --font-heading: "Poppins", "Acumin Pro", system-ui, -apple-system, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --max-width: 1400px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.46rem); }
p  { margin: 0 0 1em; }
.accent { color: var(--accent); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 300; }
.small { font-size: .9rem; color: var(--text-muted); }

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(48px, 7vw, 96px); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .02em;
  padding: .95em 1.9em;
  border: 1.5px solid transparent; /* same height as .btn-ghost */
  cursor: pointer;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .85; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 20px;
}
.logo img, .logo svg { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav a {
  font-size: .85rem; font-weight: 400; color: var(--text-muted);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current] { color: var(--black); border-color: var(--black); }
.nav .icon { display: inline-flex; padding: 0; border: 0; }
.nav .icon svg { width: 18px; height: 18px; fill: var(--dark); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* ===== Hero (two columns) ===== */
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-media { background: var(--grey-100); aspect-ratio: 4 / 5; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero .btn { margin-top: .5rem; }

/* ===== Intro text block ===== */
.intro { padding-block-end: 0; }
.intro p { max-width: 42ch; }

/* ===== Case study grid ===== */
.cases .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px);
}
.case { color: var(--accent); }
.case figure { margin: 0; }
.case img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--grey-100); transition: opacity .2s; }
.case:hover img { opacity: .85; }
.case h3 { margin-top: .9rem; }

/* ===== Testimonials carousel ===== */
.testimonials h2 { margin-bottom: 2.5rem; }
.carousel { position: relative; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 32px) / 3);
  gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 8px;
}
.track::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: start; }
.quote h4 { font-size: 1.15rem; font-weight: 500; margin-bottom: 1rem; }
.quote p { font-size: .95rem; }
.carousel-nav { display: flex; justify-content: center; gap: 16px; margin-top: 2rem; }
.carousel-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent-soft); color: var(--white); font-size: 1.2rem; display: grid; place-items: center;
  transition: background .2s;
}
.carousel-nav button:hover { background: var(--accent); }

/* ===== Dark CTA band ===== */
.cta-band { background: var(--dark); color: var(--white); }
.cta-band p { max-width: 60ch; }
.cta-band .btn { margin-top: 1rem; }

/* ===== Footer ===== */
.site-footer { padding-block: clamp(40px, 5vw, 64px); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer p { max-width: 46ch; font-size: .95rem; margin: 0; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer nav a { font-size: .9rem; border-bottom: 1px solid var(--accent-soft); padding-bottom: 2px; }

/* ===== About page ===== */
.statement .wrap {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
}
.statement h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.prose { max-width: 80ch; }
.prose h3 { margin-top: 2rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { aspect-ratio: 1; object-fit: cover; background: var(--grey-100); }

/* ===== Resources page ===== */
.resource { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.video { aspect-ratio: 16 / 9; background: var(--grey-100); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* ===== Contact page ===== */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .wrap, .statement .wrap, .contact .wrap, .resource { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; }
  .cases .wrap { grid-template-columns: repeat(2, 1fr); }
  .track { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; }
}
@media (max-width: 640px) {
  .cases .wrap, .gallery { grid-template-columns: 1fr; }
  .track { grid-auto-columns: 100%; }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--white);
         flex-direction: column; align-items: flex-start; padding: 16px var(--gutter) 24px; gap: 16px;
         box-shadow: 0 8px 24px rgba(0,0,0,.06); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ===== Placeholders and project tiles (Rebecca's content) ===== */
.placeholder {
  display: grid; place-items: center; text-align: center;
  color: var(--text-muted); font-size: .9rem; border: 1px dashed var(--grey-300);
}
.placeholder small { font-size: .75rem; opacity: .7; }
.tile {
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 20px;
  color: var(--white); font-size: .8rem; font-weight: 500; letter-spacing: .02em;
  transition: opacity .2s;
}
.case:hover .tile { opacity: .88; }
.tile-1 { background: linear-gradient(135deg, #A51C30, #2a1216); }
.tile-2 { background: linear-gradient(135deg, #1b2938, #3a7ca5); }
.tile-3 { background: linear-gradient(135deg, #c23a4b, #eaa3ad); }
.tile-4 { background: linear-gradient(135deg, #2a9d8f, #1b2938); }
.tile-5 { background: linear-gradient(135deg, #6b0f1e, #A51C30); }
.case figcaption p { color: var(--text-muted); margin-top: .5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose h2 { margin-top: 2.5rem; }
.tile-6 { background: linear-gradient(135deg, #A51C30, #d9606f); }

/* ===== v2: scannable layout ===== */
.section-head { max-width: 60ch; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { color: var(--text-muted); margin: 0; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.25rem; }
.btn-ghost { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); opacity: 1; }
.btn-ghost-light { color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--dark); }

.chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .8rem; font-weight: 400; padding: .35em .9em; border-radius: 999px; background: var(--grey-100); color: var(--black); }
.chips-sm li { font-size: .72rem; padding: .3em .75em; }
.skill-h + .chips { margin-top: .4rem; margin-bottom: 1.25rem; }
.story .skill-h { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--text-muted); margin: 0; text-transform: uppercase; letter-spacing: .06em; }

.stats { padding-block: 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--grey-300); border-bottom: 1px solid var(--grey-300); padding-block: 28px; }
.stats strong { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 2rem; color: var(--accent); line-height: 1; }
.stats span { font-size: .85rem; color: var(--text-muted); }

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
.case-grid .tile { aspect-ratio: 16 / 10; }
.cases .wrap { display: block; }
.case { color: var(--black); display: block; }
.case h3 { font-size: 1.15rem; margin: .9rem 0 .35rem; color: var(--black); transition: color .2s; }
.case:hover h3 { color: var(--accent); }
.case p { font-size: .92rem; color: var(--text-muted); margin: 0; }
.case .chips { margin-top: .75rem; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.pillar-grid .num { font-family: var(--font-heading); color: var(--accent); font-weight: 500; font-size: .9rem; letter-spacing: .1em; }
.pillar-grid h3 { font-size: 1.2rem; margin: .5rem 0 .4rem; }
.pillar-grid p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.pillars { background: var(--grey-100); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--grey-300); align-items: baseline; }
.tl-date { font-size: .85rem; color: var(--accent); font-weight: 500; }
.tl-role { font-weight: 500; }
.tl-org { color: var(--text-muted); font-size: .92rem; }

.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--grey-300); font-size: .95rem; }
.facts li span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding-top: .2em; }

.story-row { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 4vw, 64px); padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--grey-300); }
.story-row h2 { font-size: 1.5rem; margin: 0; }
.story-row p:last-child { margin-bottom: 0; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role-grid h3 { font-size: 1.05rem; margin-bottom: .3rem; color: var(--accent); }
.role-grid p { font-size: .92rem; color: var(--text-muted); margin: 0; }

.cv-h2 { font-size: 1.6rem; margin: clamp(32px, 5vw, 56px) 0 .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--black); }
.cv-item { display: grid; grid-template-columns: 180px 56px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--grey-300); align-items: start; }
.cv-item:last-child { border-bottom: 0; }
.cv-meta { display: flex; flex-direction: column; gap: 4px; }
.cv-when { color: var(--accent); font-weight: 500; font-size: .9rem; }
.cv-where { color: var(--text-muted); font-size: .85rem; }
.cv-item h3 { font-size: 1.1rem; margin: 0 0 .15rem; }
.cv-org { color: var(--text-muted); margin: 0 0 .6rem; font-size: .95rem; }
.cv-item li a, .callout a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cv-item ul { margin: 0; padding-left: 1.1rem; }
.cv-item li { margin-bottom: .35rem; font-size: .95rem; }
.cv-item .chips { margin-top: 0; }
.site-footer nav { flex-wrap: wrap; }

@media (max-width: 900px) {
  .case-grid, .pillar-grid, .role-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .story-row { grid-template-columns: 1fr; gap: 12px; }
  .timeline li { grid-template-columns: 110px 1fr; }
  .tl-org { grid-column: 2; }
  .cv-item { grid-template-columns: 56px 1fr; gap: 6px 16px; } .cv-item .cv-meta { grid-column: 1 / -1; }
  .cv-meta { flex-direction: row; gap: 12px; }
}
@media (max-width: 640px) {
  .case-grid, .pillar-grid, .role-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .tl-org { grid-column: 1; }
}

/* ===== Project pages and photo tiles ===== */
.tile-photo { position: relative; padding: 0; overflow: hidden; background: var(--grey-100); }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case:hover .tile-photo img { transform: scale(1.04); }
.tile-photo span { position: absolute; left: 14px; bottom: 12px; background: rgba(27,41,56,.85); color: #fff; padding: .35em .8em; border-radius: 999px; font-size: .72rem; }

.project-hero { padding-block-end: clamp(24px, 3vw, 40px); }
.project-hero .wrap { max-width: 900px; }
.back { display: inline-block; font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.back:hover { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--accent); font-weight: 500; margin-bottom: .6rem; }
.project-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.project-photo { padding-block: 0; }
.project-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.credit { font-size: .72rem; color: #6b6b6b; margin: .5rem 0 0; text-align: right; }
.project-meta { padding-block: clamp(24px, 3vw, 40px); }
.project-meta .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--grey-300); border-bottom: 1px solid var(--grey-300); padding-block: 24px; font-size: .92rem; }
.project-meta span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .35rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.steps .num { font-family: var(--font-heading); color: var(--accent); font-weight: 500; font-size: .9rem; letter-spacing: .1em; padding-top: .3em; }
.steps h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.diagram-wrap { background: var(--grey-100); border-radius: 12px; padding: clamp(12px, 2vw, 24px); overflow-x: auto; }
.diagram { width: 100%; height: auto; min-width: 560px; display: block; }
.project-nav .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--grey-300); padding-top: 32px; }
.project-nav a { display: block; font-weight: 500; }
.project-nav a span { display: block; font-size: .78rem; color: var(--text-muted); font-weight: 400; margin-bottom: .25rem; }
.project-nav a:hover { color: var(--accent); }
.project-nav .next { text-align: right; }
.project .story-row h2 { font-size: 1.35rem; }
@media (max-width: 900px) { .project-meta .wrap { grid-template-columns: repeat(2, 1fr); } .project-photo img { aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .project-meta .wrap { grid-template-columns: 1fr; } }

/* ===== Resume logos ===== */
.cv-logo { width: 56px; height: 56px; border-radius: 12px; background: var(--white); border: 1px solid var(--grey-300); display: grid; place-items: center; overflow: hidden; }
.cv-logo img { width: 40px; height: 40px; object-fit: contain; }
.cv-logo.mono { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: #fff; border: 0; letter-spacing: .02em; }
.mono-pink { background: var(--accent); } .mono-teal { background: #2a9d8f; } .mono-navy { background: var(--dark); }
.cv-logo.empty { visibility: hidden; }

/* ===== Galleries and live demo ===== */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.shots img { width: 100%; border-radius: 18px; box-shadow: 0 10px 30px rgba(15,23,42,.12); }
.slides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.slides img { width: 100%; border: 1px solid var(--grey-300); border-radius: 8px; background: #fff; }
.slides img:first-child { grid-column: 1 / -1; }
.gallery-note { font-size: .82rem; color: var(--text-muted); margin-top: .75rem; }
.demo { background: linear-gradient(135deg,#f6eef5,#e9e7f7); border-radius: 20px; padding: clamp(16px, 3vw, 32px); display: grid; place-items: center; }
.demo iframe { display: block; width: 360px; max-width: 100%; height: auto; aspect-ratio: 390 / 844; border: 0; border-radius: 36px; box-shadow: 0 24px 60px rgba(43,35,70,.25); background: #fff; }
.tile-photo.tile-contain { background: linear-gradient(160deg,#f7e4ec,#e6dcf5 60%,#dbe8f5); }
.tile-photo.tile-contain img { object-fit: contain; padding: 14px 0 0; object-position: bottom; }
.tile-photo.tile-slide { background: #fff; border: 1px solid var(--grey-300); } .tile-photo.tile-slide img { object-fit: contain; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .shots { grid-template-columns: repeat(2, 1fr); } .slides { grid-template-columns: 1fr; } }
.workbook { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.workbook img { width: 100%; border-radius: 16px; box-shadow: 0 14px 40px rgba(15,23,42,.14); }
.workbook h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.workbook p { color: var(--text-muted); }
@media (max-width: 900px) { .workbook { grid-template-columns: 1fr; } }

/* ===== v3: readability + project detail layout ===== */
body { font-weight: 400; }
.lead { font-weight: 400; }
.site-header { border-bottom: 1px solid var(--grey-300); }
.timeline li { grid-template-columns: 170px 1fr 1fr; }
.story-row > div:not(.role-grid) { max-width: 72ch; }

.project-hero { padding-block: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.project-hero .wrap { max-width: var(--max-width); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.hero-grid .lead { max-width: 60ch; }
.meta-card { background: var(--grey-100); border-radius: 16px; padding: 24px; display: grid; gap: 18px; margin-top: 6px; }
.meta-card div { font-size: .95rem; line-height: 1.5; }
.meta-card span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .3rem; }

.project-facts { padding-block: 0; }
.project-facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; border-top: 1px solid var(--grey-300); border-bottom: 1px solid var(--grey-300); padding-block: 28px; margin-top: clamp(28px, 4vw, 48px); }
.project-facts strong { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 2rem; color: var(--accent); line-height: 1; }
.project-facts span { font-size: .85rem; color: var(--text-muted); }

.article { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px); }
.article .wrap { max-width: 1100px; }
.article-body { max-width: 760px; margin-inline: auto; }
.block { margin-bottom: clamp(40px, 6vw, 72px); }
.block h2 { font-size: 1.6rem; margin-bottom: 1.1rem; display: flex; align-items: baseline; gap: 14px; }
.block h2 .idx { font-size: .85rem; color: var(--accent); letter-spacing: .12em; font-weight: 600; font-family: var(--font-heading); }
.block > p { font-size: 1.05rem; line-height: 1.75; margin: 0; }
.block.wide h2 { max-width: 760px; margin-inline: auto; }
.block .steps li { background: var(--grey-100); border-radius: 14px; padding: 18px 20px; align-items: start; }
.block .steps .num { padding-top: .2em; }
.block .steps p { color: var(--text-muted); line-height: 1.6; }
.callout { border-left: 4px solid var(--accent); background: var(--grey-100); padding: 22px 26px; border-radius: 0 14px 14px 0; }
.callout p { margin: 0; font-size: 1.15rem; line-height: 1.6; }
.diagram-wrap { background: var(--grey-100); }
.project-nav { padding-block: 0 clamp(40px, 5vw, 64px); }
.project-nav .wrap { border-top: 0; padding-top: 0; }
.project-nav a { padding: 20px 22px; border: 1px solid var(--grey-300); border-radius: 14px; transition: border-color .2s, color .2s; }
.project-nav a:hover { border-color: var(--accent); }
.project-photo .wrap img:not(.shots img):not(.slides img):not(.workbook img) { border-radius: 16px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 150px 1fr; }
}
.section-head a { white-space: nowrap; }

/* ===================== v4: visual + interaction refresh ===================== */
:root { --font-display: "Fraunces", Georgia, "Times New Roman", serif; --tint: #fdf3f4; --tint-2: #f9dde1; }
html { scroll-padding-top: 96px; }
h1, h2, .cv-h2, .block h2, .stats strong, .project-facts strong { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 3.8rem); line-height: 1.05; }
h2 { line-height: 1.1; }
.block h2 .idx { font-family: var(--font-heading); }

/* Progress bar + header */
.progress-bar { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 100; }
.site-header { transition: box-shadow .25s ease; border-bottom-color: transparent; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .06); border-bottom-color: var(--grey-300); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .rotate span { transition: none !important; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none; }
.hero::before { width: 55vw; height: 55vw; max-width: 720px; max-height: 720px; right: -12vw; top: -20vw; background: radial-gradient(circle, var(--tint-2) 0%, rgba(224,231,255,0) 70%); }
.hero::after { width: 30vw; height: 30vw; max-width: 380px; max-height: 380px; left: -10vw; bottom: -14vw; background: radial-gradient(circle, #fbe9d7 0%, rgba(251,233,215,0) 70%); }
.hero .wrap { position: relative; z-index: 1; }
.rotate { display: inline-block; color: var(--accent); font-weight: 600; }
.rotate span { display: inline-block; transition: opacity .32s ease, transform .32s ease; }
.rotate span.out { opacity: 0; transform: translateY(8px); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 0; transform: translate(18px, 18px); border-radius: 22px; background: var(--accent); opacity: .12; z-index: 0; }
.hero-visual .hero-media { position: relative; z-index: 1; border-radius: 22px; box-shadow: 0 30px 60px rgba(15, 23, 42, .14); }
.badge-float { position: absolute; z-index: 2; left: -18px; bottom: 36px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 16px 40px rgba(15,23,42,.14); display: grid; gap: 2px; animation: floaty 6s ease-in-out infinite; }
.badge-float strong { font-size: .9rem; font-weight: 600; }
.badge-float span { font-size: .75rem; color: var(--text-muted); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .badge-float { animation: none; } }

/* Stats */
.stats .wrap { border: 0; background: var(--tint); border-radius: 20px; padding: 28px clamp(20px, 3vw, 40px); }

/* Work grid */
.case .tile { border-radius: 18px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.case:hover .tile { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(165, 28, 48, .16); }
.case .view { display: inline-block; margin-top: .7rem; font-size: .85rem; font-weight: 500; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.case:hover .view, .case:focus-visible .view { opacity: 1; transform: none; }
@media (hover: none) { .case .view { opacity: 1; transform: none; } }

/* Pillars */
.pillars { background: #fff; }
.pillar-grid > div { background: var(--grey-100); border-radius: 20px; padding: 28px; transition: transform .3s, background .3s; }
.pillar-grid > div:hover { transform: translateY(-4px); background: var(--tint); }
.pillar-grid .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--accent); box-shadow: 0 6px 16px rgba(15,23,42,.06); }
.pillar-grid .ico svg { width: 24px; height: 24px; }
.pillar-grid h3 { margin-top: 1rem; }

/* Experience accordion timeline */
.experience { background: var(--grey-100); }
.xp { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 10px; }
.xp::before { content: ""; position: absolute; left: 27px; top: 24px; bottom: 24px; width: 2px; background: var(--grey-300); }
.xp-item { background: #fff; border-radius: 16px; border: 1px solid var(--grey-300); position: relative; transition: box-shadow .25s, border-color .25s; }
.xp-item:hover, .xp-item.open { border-color: #f0bcc4; box-shadow: 0 12px 30px rgba(165,28,48,.08); }
.xp-head { width: 100%; display: grid; grid-template-columns: 56px 1fr auto 20px; gap: 18px; align-items: center; padding: 16px 20px 16px 0; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.xp-logo { width: 56px; height: 56px; margin-left: -1px; display: grid; place-items: center; }
.xp-logo img, .xp-logo b { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--grey-300); display: grid; place-items: center; font-size: .75rem; font-weight: 600; color: var(--accent); }
.xp-main { display: grid; gap: 2px; }
.xp-role { font-weight: 600; }
.xp-org { font-size: .88rem; color: var(--text-muted); }
.xp-date { font-size: .85rem; color: var(--accent); font-weight: 500; white-space: nowrap; }
.xp-chev { width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform .3s; justify-self: center; }
.xp-item.open .xp-chev { transform: rotate(-135deg); }
.xp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.xp-body > div { overflow: hidden; visibility: hidden; transition: visibility 0s .35s; }
.xp-item.open .xp-body > div { visibility: visible; transition-delay: 0s; }
.xp-item.open .xp-body { grid-template-rows: 1fr; }
.xp-body ul { margin: 0; padding: 0 20px 4px 74px; color: var(--text-muted); font-size: .95rem; }
.xp-body li { margin-bottom: .4rem; }
.xp-body a { display: inline-block; margin: 6px 0 18px 74px; font-size: .88rem; font-weight: 500; color: var(--accent); }
@media (max-width: 640px) {
  .xp::before { display: none; }
  .xp-head { grid-template-columns: 48px 1fr 20px; padding: 14px 16px 14px 8px; gap: 12px; }
  .xp-date { grid-column: 2; grid-row: 2; }
  .xp-body ul { padding-left: 20px; } .xp-body a { margin-left: 20px; }
}

/* CTA band */
.cta-band { background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.12) 0, rgba(255,255,255,0) 40%), linear-gradient(135deg, #5a0c19 0%, #A51C30 60%, #2a1216 100%); }
.cta-band .btn { background: #fff; color: var(--accent); }
.cta-band .btn:hover { opacity: .9; }

/* Beyond work */
.beyond-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; }
.beyond-grid img { width: 100%; height: 440px; object-fit: cover; border-radius: 18px; }
@media (max-width: 700px) { .beyond-grid { grid-template-columns: 1fr; } .beyond-grid img { height: 300px; } }

/* Project detail: toc + process line + nav thumbs */
.article .wrap { max-width: 1300px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.article-main { min-width: 0; }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; }
.toc p { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0 0 10px; }
.toc a { font-size: .9rem; color: var(--text-muted); padding: 7px 0 7px 14px; border-left: 2px solid var(--grey-300); transition: all .2s; }
.toc a:hover, .toc a.on { color: var(--accent); border-left-color: var(--accent); }
.block .steps { position: relative; }
.block .steps::before { content: ""; position: absolute; left: 35px; top: 24px; bottom: 24px; width: 2px; background: var(--grey-300); }
.block .steps li { background: #fff; border: 1px solid var(--grey-300); position: relative; }
.block .steps .num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .72rem; letter-spacing: .04em; padding: 0; }
.project-nav a { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px; }
.project-nav a img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--grey-100); }
.project-nav a.next { grid-template-columns: 1fr 96px; }
.project-nav a.next img { order: 2; }
.project-nav a.next div { text-align: right; }
.project-photo > .wrap > img { border-radius: 18px; }
@media (max-width: 1000px) { .article .wrap { grid-template-columns: 1fr; } .toc { display: none; } }

/* Lightbox */
.zoomable { cursor: zoom-in; }
.lb { position: fixed; inset: 0; background: rgba(15, 23, 42, .88); display: grid; place-items: center; padding: 24px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s; cursor: zoom-out; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 100%; max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-x { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Forms / contact */
.contact .btn-row { margin-top: 1rem; }

/* ===== Serif reading text ===== */
:root { --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif; }
p, .cv-item li, .xp-body li, .steps p, .callout p, .block > p, .lead, .quote p { font-family: var(--font-serif); }
p { font-size: 1.02rem; }
.lead { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.5; }
.block > p { font-size: 1.12rem; line-height: 1.75; }
.callout p { font-size: 1.2rem; }
.case p, .pillar-grid p, .story-row p, .steps p { font-size: 1rem; }
.cv-item li, .xp-body li { font-size: 1rem; }
.eyebrow, .small, .credit, .gallery-note, .toc p, .cv-org, .badge-float, .stats span, .project-facts span, .meta-card, .xp-org, .site-footer p, .now-tag, .now-pill, .text-link, .chips { font-family: var(--font-body); }
.small { font-size: .9rem; }
.section-head p { font-size: 1.05rem; }
.tile-photo.tile-blue { background: linear-gradient(160deg,#fbe3e7,#fdf3f4 60%,#fff7f8); }
.project-nav a img { object-position: top; }

/* ===== Why learning design ===== */
.why { background: var(--tint); }
.why .wrap { max-width: 860px; }
.why .eyebrow { margin-bottom: 1.2rem; }
.pullquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .6rem; color: var(--accent); }
.why .cite { font-family: var(--font-body); font-size: .9rem; color: var(--text-muted); margin: 0 0 2.2rem; }
.why-body p { font-size: 1.1rem; line-height: 1.8; margin: 0 0 1.15rem; }
.why-body p:last-child { margin-bottom: 0; }
.refs { border-top: 1px solid var(--grey-300); margin-top: 2.2rem; padding-top: 1.2rem; }
.refs p { font-family: var(--font-body); font-size: .85rem; color: var(--text-muted); margin: 0 0 .45rem; padding-left: 1.6em; text-indent: -1.6em; line-height: 1.55; }
.refs p:first-child { padding-left: 0; text-indent: 0; color: var(--black); }

/* ===== TLL Reflection ===== */
.refl-hero { padding-block: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 32px); }
.refl-hero .wrap { max-width: 900px; }
.refl-hero .eyebrow { margin-bottom: .8rem; }
.refl-hero .lead { max-width: 60ch; }
.refl-body .wrap { max-width: 1200px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.post-index a { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: baseline; }
.post-index a span { font-family: var(--font-heading); font-size: .75rem; font-weight: 600; color: var(--accent); }
.post { max-width: 760px; }
.post-num { display: inline-block; font-family: var(--font-heading); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--tint); padding: .4em .8em; border-radius: 999px; }
.post-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .9rem 0 .5rem; }
.post-meta { font-family: var(--font-body); font-size: .85rem; color: var(--text-muted); margin: 0 0 1.5rem; }
.post-quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.3; color: var(--accent); margin: 0 0 1.8rem; padding-left: 20px; border-left: 4px solid var(--accent); }
.post-body p { font-size: 1.1rem; line-height: 1.8; margin: 0 0 1.15rem; }
.post-takeaways { margin-top: 2rem; background: var(--grey-100); border-radius: 18px; padding: 24px 26px; }
.post-takeaways h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.post-takeaways ul { margin: 0; padding-left: 1.2rem; }
.post-takeaways li { font-family: var(--font-serif); font-size: 1rem; line-height: 1.6; margin-bottom: .5rem; }
.refl-teaser { background: var(--grey-100); }
.teaser-card { display: block; max-width: 760px; background: #fff; border: 1px solid var(--grey-300); border-radius: 18px; padding: 26px 28px; transition: box-shadow .25s, border-color .25s, transform .25s; }
.teaser-card:hover { border-color: #f0bcc4; box-shadow: 0 16px 40px rgba(165,28,48,.10); transform: translateY(-3px); }
.teaser-card h3 { font-size: 1.35rem; margin: .8rem 0 .5rem; }
.teaser-card p { color: var(--text-muted); margin: 0 0 .5rem; }
.teaser-card .view { opacity: 1; transform: none; }
@media (max-width: 1000px) { .refl-body .wrap { grid-template-columns: 1fr; } .post-index { display: none; } }

/* ===== v5: accessibility, current role, contact ===== */
.skip { position: absolute; left: 12px; top: -64px; z-index: 300; background: var(--accent); color: #fff; padding: .6em 1em; border-radius: 8px; font-size: .9rem; font-weight: 500; transition: top .15s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.case:focus-visible, .teaser-card:focus-visible { border-radius: 18px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgba(31,157,85,.18); flex: none; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(31,157,85,.06); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.now-pill { display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.2rem; padding: .45em 1em .45em .85em; background: #fff; border: 1px solid var(--grey-300); border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--black); box-shadow: 0 4px 14px rgba(15,23,42,.05); transition: border-color .2s, color .2s; }
.now-pill:hover { border-color: var(--accent); color: var(--accent); }
.text-link { align-self: center; font-size: .88rem; font-weight: 500; color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.now-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 22px; align-items: start; background: var(--tint); border: 1px dashed var(--accent-soft); border-radius: 20px; padding: 24px 28px; margin-bottom: clamp(28px, 3vw, 40px); }
.now-logo { width: 72px; height: 72px; border-radius: 16px; background: #fff; border: 1px solid var(--grey-300); display: grid; place-items: center; }
.now-logo img { width: 46px; height: 46px; object-fit: contain; }
.now-tag { display: flex; align-items: center; gap: .6em; margin: 0 0 .45rem; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.now-card h3 { font-size: 1.3rem; margin: 0 0 .35rem; }
.now-card p:not(.now-tag) { color: var(--text-muted); margin: 0; max-width: 70ch; font-size: 1rem; }
.now-card .chips { margin-top: .8rem; }
@media (max-width: 640px) { .now-card { grid-template-columns: 1fr; gap: 14px; padding: 20px; } .now-logo { width: 56px; height: 56px; } .now-logo img { width: 36px; height: 36px; } }

.contact .wrap { align-items: start; }
.contact-card { background: var(--tint); border-radius: 22px; padding: clamp(24px, 3.5vw, 44px); }
.contact-card h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: .6rem; }
.contact-card p { color: var(--text-muted); }
.contact-card .btn-row { margin-top: 1.4rem; }
.contact-card .text-link { display: inline-block; margin-top: 1.2rem; }
.contact .wrap > * { min-width: 0; }
.facts li a { overflow-wrap: anywhere; }

/* ===== Full-screen hero: fit the first screen on laptops and monitors ===== */
@media (min-width: 901px) {
  .hero { padding-block: clamp(32px, 6vh, 72px); }
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  /* Size the portrait by window height as well as column width, so it never runs past the fold */
  .hero-visual { width: 100%; justify-self: center; max-width: max(340px, calc((100vh - 230px) * .8)); max-width: max(340px, calc((100svh - 230px) * .8)); }
}
@media (min-width: 1200px) {
  .hero h1 { font-size: clamp(3.4rem, 4.4vw, 4.6rem); }
  .hero .lead { font-size: clamp(1.35rem, 1.5vw, 1.6rem); max-width: 40ch; }
}
@media (min-width: 901px) {
  .statement { padding-block: clamp(32px, 6vh, 72px); }
  .statement .hero-media { width: 100%; justify-self: center; border-radius: 22px; box-shadow: 0 30px 60px rgba(15, 23, 42, .12); max-width: max(320px, calc((100vh - 230px) * .8)); max-width: max(320px, calc((100svh - 230px) * .8)); }
}

/* ===== Phones ===== */
.project-nav a { min-width: 0; }
@media (max-width: 640px) {
  .project-nav .wrap { grid-template-columns: 1fr; gap: 12px; }
  .project-nav a, .project-nav a.next { grid-template-columns: 72px minmax(0, 1fr); }
  .project-nav a img { width: 72px; height: 56px; }
  .project-nav a.next img { order: 0; }
  .project-nav a.next div { text-align: left; }
}
/* Diagrams: stacked version on phones instead of a sideways-scrolling one */
.diagram-sm { display: none; min-width: 0; max-width: 420px; margin-inline: auto; }
@media (max-width: 640px) {
  .diagram-lg { display: none; }
  .diagram-sm { display: block; }
  .diagram-wrap { overflow-x: visible; }
  /* Home: keep the stats card and hero badge inside the screen */
  .stats .wrap { width: auto; margin-inline: var(--gutter); padding: 22px 20px; }
  .badge-float { left: 12px; bottom: 16px; }
}

/* ===== Reflections as a blog ===== */
.post-cover { margin: 0 0 1.8rem; }
.post-cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 44px rgba(165, 28, 48, .10); }
.teaser-card.has-img { max-width: 980px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px; }
.teaser-card.has-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.teaser-card.has-img > div { padding: 8px 10px 8px 0; }
.teaser-card.has-img h3 { margin-top: .7rem; }
@media (max-width: 640px) { .teaser-card.has-img { grid-template-columns: 1fr; gap: 16px; } .teaser-card.has-img > div { padding: 0 6px 8px; } }
@media (min-width: 1001px) { .refl-hero .wrap { max-width: 1200px; padding-left: calc(var(--gutter) + 288px); } }  /* line up with the post column */
