:root {
  /* Palette: forest, lake and mist. Names kept from the first draft. */
  --cream: #F3F7F4;          /* morning mist (page background) */
  --cream-2: #E3EDE6;        /* pale moss (soft panels) */
  --terracotta: #2F7A5B;     /* forest green (primary accent) */
  --terracotta-dark: #1E5641;/* deep forest (links, numbers) */
  --sage: #3E7D99;           /* lake blue (secondary accent) */
  --charcoal: #1C2B2D;       /* river stone (text) */
  --charcoal-soft: #4D5F61;
  --rose: #9CCBDB;           /* sky blue */
  --line: #D3E1D8;
  --sky-2: #E1EEF3;          /* pale sky (blue panels) */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--charcoal);
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 247, 244, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
nav .logo { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.1rem; letter-spacing: 0.01em; }
nav ul { display: flex; gap: 26px; list-style: none; }
nav ul li a {
  font-size: 0.88rem; color: var(--charcoal-soft); font-weight: 500;
  letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.75rem;
  transition: color 0.2s;
}
nav ul li a:hover { color: var(--terracotta-dark); }
.nav-toggle { display: none; }

/* Hero */
header.hero {
  padding: 110px 0 80px;
  position: relative;
  overflow: hidden;
}
header.hero .blob {
  position: absolute; top: -80px; right: -100px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--rose), var(--sage) 45%, var(--terracotta) 80%);
  opacity: 0.35; filter: blur(10px);
  z-index: 0;
}
header.hero .inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.avatar {
  width: 128px; height: 128px; min-width: 128px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--sage));
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 500;
  box-shadow: 0 10px 30px rgba(30, 86, 65, 0.25);
}
header.hero h1 {
  font-size: 2.6rem; line-height: 1.15; margin-bottom: 14px;
}
header.hero .tagline {
  font-size: 1.1rem; color: var(--charcoal-soft); max-width: 560px; margin-bottom: 20px;
}
.eyebrow {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terracotta-dark); font-weight: 600; margin-bottom: 14px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--terracotta); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(30,86,65,0.28); }
.btn-ghost { border: 1px solid var(--line); color: var(--charcoal); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }

section { padding: 70px 0; border-top: 1px solid var(--line); }
section .section-head { margin-bottom: 40px; }
section .eyebrow { margin-bottom: 8px; }
section h2 { font-size: 1.9rem; }
section .lede { color: var(--charcoal-soft); max-width: 620px; margin-top: 10px; }

/* Values / About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.about-grid p { color: var(--charcoal-soft); margin-bottom: 16px; }
.values-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.values-list li {
  background: var(--cream-2); border-radius: 14px; padding: 16px 18px;
  font-size: 0.92rem; border-left: 3px solid var(--terracotta);
}
.values-list li strong { display: block; font-family: 'Fraunces', serif; font-weight: 500; margin-bottom: 2px; color: var(--charcoal); }

/* Highlights */
.highlights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.highlight-card {
  background: white; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px;
}
.highlight-card .num {
  font-family: 'Fraunces', serif; font-size: 2rem; color: var(--terracotta-dark); margin-bottom: 10px; display: block;
}
.highlight-card p { font-size: 0.92rem; color: var(--charcoal-soft); }

/* Case studies */
.case-study {
  background: white; border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 34px; margin-bottom: 26px;
}
.case-study .tag {
  display: inline-block; background: var(--cream-2); color: var(--terracotta-dark);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.case-study h3 { font-size: 1.35rem; margin-bottom: 6px; }
.case-study .role-line { color: var(--sage); font-weight: 600; font-size: 0.85rem; margin-bottom: 18px; }
.case-study .cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 20px; }
.case-study .cs-grid h4 {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--charcoal-soft); margin-bottom: 8px; font-weight: 700;
}
.case-study .cs-grid p { font-size: 0.92rem; color: var(--charcoal-soft); }
.impact-row { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 18px; border-top: 1px dashed var(--line); }
.impact-stat { }
.impact-stat .stat-num { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--terracotta-dark); display: block; }
.impact-stat .stat-label { font-size: 0.78rem; color: var(--charcoal-soft); }

/* Skills */
.skills-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.skills-cloud span {
  background: var(--cream-2); padding: 9px 16px; border-radius: 999px;
  font-size: 0.85rem; color: var(--charcoal); border: 1px solid var(--line);
}

/* Personal */
.personal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.personal-card {
  background: var(--cream-2); border-radius: 16px; padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 14px;
}
.personal-card .icon {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  background: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.personal-card p { font-size: 0.88rem; color: var(--charcoal-soft); }
.personal-card strong { font-family: 'Fraunces', serif; font-weight: 500; color: var(--charcoal); display: block; margin-bottom: 2px; }

/* Contact */
.contact-box {
  background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta) 55%, var(--sage));
  border-radius: 24px; padding: 50px 40px; color: white; text-align: center;
}
.contact-box h2 { color: white; margin-bottom: 12px; }
.contact-box p { color: rgba(255,255,255,0.88); max-width: 480px; margin: 0 auto 26px; }
.contact-box .btn-primary { background: white; color: var(--terracotta-dark); }
.contact-box .contact-links { margin-top: 22px; font-size: 0.85rem; color: rgba(255,255,255,0.85); }

footer { text-align: center; padding: 34px 0; color: var(--charcoal-soft); font-size: 0.8rem; }

.placeholder-note {
  font-size: 0.72rem; color: var(--sage); font-style: italic; margin-top: 4px;
}

@media (max-width: 760px) {
  .about-grid, .highlights-grid, .case-study .cs-grid, .personal-grid { grid-template-columns: 1fr; }
  header.hero h1 { font-size: 2rem; }
  nav ul { gap: 16px; }
  .case-study { padding: 26px 22px; }
}

/* Nav: logo is a link, and links scroll sideways on small screens */
nav .logo a { color: inherit; }
nav ul li a.active { color: var(--terracotta-dark); }

section, header.hero { scroll-margin-top: 64px; }

/* Writing (homepage) */
.writing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.writing-grid h3 { font-size: 1.2rem; margin-bottom: 4px; }
.writing-grid .col-note { font-size: 0.88rem; color: var(--charcoal-soft); margin-bottom: 16px; }
.post-list { list-style: none; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 2px; transition: color 0.2s; }
.post-list a:hover { color: var(--terracotta-dark); }
.post-list .post-title { font-family: 'Fraunces', serif; font-weight: 500; }
.post-list .post-sub { font-size: 0.82rem; color: var(--charcoal-soft); text-align: right; }

/* Single post */
.post { padding: 80px 0 60px; }
.post .wrap { max-width: 680px; }
.post h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 10px; }
.post .post-meta { color: var(--charcoal-soft); font-size: 0.95rem; margin-bottom: 40px; }
.post .body p { margin-bottom: 1.1em; font-size: 1.05rem; }
.post .body.verse p { font-family: 'Fraunces', serif; font-size: 1.15rem; line-height: 1.75; }
.post .body ul, .post .body ol { margin: 0 0 1.1em 1.4em; }
.post .body a { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 3px; }
.post .body h2, .post .body h3, .post .body h4 { margin: 1.4em 0 0.5em; font-size: 1.3rem; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 40px; font-size: 0.9rem; }
.post-nav a { color: var(--charcoal-soft); }
.post-nav a:hover { color: var(--terracotta-dark); }
.post-nav .next { text-align: right; margin-left: auto; }
.post-nav small { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.post-nav strong { font-family: 'Fraunces', serif; font-weight: 500; color: var(--charcoal); }

@media (max-width: 760px) {
  .writing-grid { grid-template-columns: 1fr; }
  nav .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  nav ul { overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
  nav ul li a { white-space: nowrap; }
  .post h1 { font-size: 1.9rem; }
}

/* Collapsible homepage sections */
section.fold { padding: 0; }
.fold-head { margin: 0; font-size: inherit; }
.fold-toggle {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 1fr auto; column-gap: 20px;
  padding: 34px 0;
}
.fold-toggle:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; border-radius: 6px; }
.fold-toggle .eyebrow { grid-column: 1; margin-bottom: 6px; font-family: 'Inter', sans-serif; }
.fold-title { grid-column: 1; font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.9rem; line-height: 1.2; color: var(--charcoal); transition: color 0.2s; }
.fold-toggle:hover .fold-title { color: var(--terracotta-dark); }
.fold-summary { grid-column: 1; font-family: 'Inter', sans-serif; font-size: 0.92rem; color: var(--charcoal-soft); margin-top: 6px; transition: opacity 0.2s; }
.fold.open .fold-summary { display: none; }
.fold-icon {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative;
  transition: background 0.2s, border-color 0.2s, transform 0.3s;
}
.fold-icon::before, .fold-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px;
  background: var(--charcoal); transform: translate(-50%, -50%);
}
.fold-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s; }
.fold-toggle:hover .fold-icon { border-color: var(--terracotta); }
.fold.open .fold-icon { background: var(--cream-2); }
.fold.open .fold-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.fold-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.4s ease; }
.js .fold:not(.open) .fold-body { grid-template-rows: 0fr; }
.fold-inner { overflow: hidden; min-height: 0; }
.fold-inner > .lede { margin: 0 0 34px; }
.fold-content { padding-bottom: 60px; }
.fold-content.about-grid { padding-top: 4px; }

/* Case study write-up */
.cs-more { margin-top: 18px; }
.cs-more summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--terracotta-dark);
}
.cs-more summary::-webkit-details-marker { display: none; }
.cs-more summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.cs-more[open] summary::after { content: "–"; }
.cs-more[open] summary { margin-bottom: 20px; }
.case-study .impact-row { border-top: 1px dashed var(--line); }

/* Posts that open in place */
.post-item summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 2px; cursor: pointer; list-style: none; transition: color 0.2s;
}
.post-item summary::-webkit-details-marker { display: none; }
.post-item summary:hover, .post-item[open] summary { color: var(--terracotta-dark); }
.post-inline { padding: 4px 2px 22px; }
.post-inline .body p { margin-bottom: 0.9em; font-size: 0.95rem; color: var(--charcoal-soft); }
.post-inline .body.verse p { font-family: 'Fraunces', serif; font-size: 1rem; line-height: 1.7; color: var(--charcoal); }
.post-link { font-size: 0.82rem; font-weight: 600; color: var(--terracotta-dark); }

@media (max-width: 760px) {
  .fold-title { font-size: 1.5rem; }
  .fold-toggle { padding: 26px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fold-body, .fold-icon, .fold-icon::after { transition: none; }
}

/* Experience */
.timeline { list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tl-when { font-size: 0.82rem; color: var(--terracotta-dark); font-weight: 600; padding-top: 2px; }
.timeline strong { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.05rem; }
.tl-sector { display: inline-block; margin-left: 6px; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.timeline p { font-size: 0.9rem; color: var(--charcoal-soft); margin-top: 4px; }
.extras-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.extras-grid > div { background: var(--cream-2); border-radius: 16px; padding: 18px 20px; }
.extras-grid h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--charcoal-soft); margin-bottom: 6px; }
.extras-grid p { font-size: 0.88rem; color: var(--charcoal); }
.extras-grid a { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .extras-grid { grid-template-columns: 1fr; }
}

/* Keep the longer menu on one line */
nav .logo { white-space: nowrap; margin-right: 24px; }
nav ul { gap: 18px; }
nav ul li a { white-space: nowrap; }
@media (max-width: 900px) {
  nav .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  nav ul { overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
}

/* Work timeline with case studies */
.tl-head { line-height: 1.5; }
.timeline .impact-row { margin-top: 14px; padding-top: 14px; gap: 28px; }
.timeline .impact-stat .stat-num { font-size: 1.3rem; }
.timeline .cs-more { margin-top: 12px; }
.timeline .cs-more[open] summary { margin-bottom: 14px; }
.cs-detail { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 6px; }
.cs-detail .tag {
  display: inline-block; background: var(--cream-2); color: var(--terracotta-dark);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.cs-detail h3 { font-size: 1.25rem; margin-bottom: 18px; }
.cs-detail .cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 20px; }
.cs-detail .cs-grid h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--charcoal-soft); margin-bottom: 8px; font-weight: 700; }
.cs-detail .cs-grid p { font-size: 0.9rem; margin-top: 0; }
.timeline li { padding: 22px 0; }
@media (max-width: 760px) {
  .cs-detail .cs-grid { grid-template-columns: 1fr; }
  .cs-detail { padding: 20px 18px 4px; }
}
.timeline .impact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
@media (max-width: 760px) {
  .timeline .impact-row { gap: 14px; }
  .timeline .impact-stat .stat-num { font-size: 1.1rem; }
  .timeline .impact-stat .stat-label { font-size: 0.72rem; line-height: 1.35; display: block; }
}

/* Company logos and role tags */
.tl-head { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.tl-logo {
  width: 44px; height: 44px; border-radius: 12px; background: white; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.95rem; color: var(--terracotta-dark);
}
.tl-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.tl-role strong { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.05rem; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mini-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--cream-2); color: var(--charcoal-soft);
}
.mini-tag.stage { background: var(--sky-2); color: #2C6680; }
.mini-tag.scope { background: #DCEEE3; color: var(--terracotta-dark); }
.tl-head + p { margin-top: 10px; }

/* Giving back */
.giving-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.giving-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; border-top: 3px solid var(--sage); }
.giving-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.giving-card p { font-size: 0.9rem; color: var(--charcoal-soft); }
.extras-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .giving-grid, .extras-grid { grid-template-columns: 1fr; }
}


/* Nature touches */
/* Contour lines, like a topographic map, drifting behind the hero */
header.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320' viewBox='0 0 600 320' fill='none' stroke='%232F7A5B' stroke-opacity='0.13' stroke-width='1.2'%3E%3Cpath d='M0 260 C120 200 200 300 320 240 S520 180 600 230'/%3E%3Cpath d='M0 230 C130 170 210 270 330 210 S520 150 600 200'/%3E%3Cpath d='M0 200 C140 140 220 240 340 180 S520 120 600 170'/%3E%3Cpath d='M0 170 C150 110 230 210 350 150 S520 90 600 140'/%3E%3Cpath d='M0 140 C160 80 240 180 360 120 S520 60 600 110'/%3E%3Cpath d='M0 110 C170 50 250 150 370 90 S520 30 600 80'/%3E%3C/svg%3E") bottom left / 900px auto repeat-x;
}
header.hero .blob { opacity: 0.32; }
/* A second, smaller pool of light low on the left */
header.hero::before {
  content: ""; position: absolute; left: -120px; bottom: -140px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--rose), transparent 70%); opacity: 0.35; z-index: 0;
}

/* Leaf mark before each section label */
.fold-toggle .eyebrow::before {
  content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 8px; vertical-align: -1px;
  background: var(--terracotta); border-radius: 0 70% 0 70%;
}
.fold.open .fold-icon { background: var(--sky-2); }

/* Soft blue panels alternate with green ones */
.highlight-card:nth-child(even) { background: linear-gradient(180deg, white, var(--sky-2)); }
.highlight-card:nth-child(odd) { background: linear-gradient(180deg, white, var(--cream-2)); }
.giving-card { border-top-color: var(--sage); }
.giving-card:nth-child(2) { border-top-color: var(--terracotta); }
.extras-grid > div:nth-child(even), .personal-card:nth-child(even) { background: var(--sky-2); }
.values-list li:nth-child(2) { border-left-color: var(--sage); }

/* Contact: a horizon of rolling hills at the foot of the card */
.contact-box { position: relative; overflow: hidden; }
.contact-box > * { position: relative; z-index: 1; }
.contact-box::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 90' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q120 20 240 50 T480 45 T800 40 V90 H0Z' fill='%23ffffff' fill-opacity='0.08'/%3E%3Cpath d='M0 75 Q160 45 320 70 T640 62 T800 66 V90 H0Z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.contact-box .btn-primary { color: var(--terracotta-dark); }

/* Footer leaf */
footer::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 10px; background: var(--sage); border-radius: 0 70% 0 70%; opacity: 0.7; }

/* Writing images */
.post-main { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.post-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--cream-2); border: 1px solid var(--line); }
.post-list a, .post-item summary { align-items: center; }
.post-figure { margin: 0 0 22px; }
.post-figure img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; background: var(--cream-2); }
.post-figure figcaption { font-size: 0.78rem; color: var(--charcoal-soft); margin-top: 8px; }
.post-figure figcaption a { color: var(--terracotta-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.post .post-figure { margin: -10px 0 36px; }
.post .post-figure img { max-height: 520px; }
.post-inline .post-figure img { max-height: 300px; }

/* Way of Life list spans the full width */
.post-list-wide { columns: 2; column-gap: 40px; border-top: none; }
.post-list-wide li { break-inside: avoid; border-top: 1px solid var(--line); border-bottom: none; }
.post-list-wide li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .post-list-wide { columns: 1; } }

/* Nine menu items: tighter spacing, stack earlier */
nav ul { gap: 16px; }
nav .logo { white-space: nowrap; margin-right: 20px; }
nav ul li a { white-space: nowrap; }
@media (max-width: 1100px) {
  nav .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  nav ul { overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
}

/* ============ Multi-page layout ============ */
/* Homepage previews */
section.teaser { padding: 64px 0; border-top: 1px solid var(--line); }
.teaser-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.teaser-head h2 { font-size: 1.9rem; line-height: 1.2; }
.teaser-head h2 a:hover { color: var(--terracotta-dark); }
.teaser-head .eyebrow::before, .page-hero .eyebrow::before, .sub-block > .eyebrow::before {
  content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 8px; vertical-align: -1px;
  background: var(--terracotta); border-radius: 0 70% 0 70%;
}
.teaser-head .lede { margin-top: 10px; }
.see-more {
  flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 0.85rem; font-weight: 600; color: var(--terracotta-dark);
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: white;
  transition: border-color 0.2s, background 0.2s;
}
.see-more:hover { border-color: var(--terracotta); background: var(--cream-2); }
.see-more span { transition: transform 0.2s; }
.see-more:hover span { transform: translateX(3px); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--cream-2); border: 1px solid var(--line); padding: 8px 15px; border-radius: 999px; font-size: 0.88rem; }
.chip:nth-child(even) { background: var(--sky-2); }

/* Numbers band */
.stats-band { background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta) 60%, var(--sage)); padding: 40px 0; border-top: none; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { color: white; display: block; }
.stat-big { display: block; font-family: 'Fraunces', serif; font-size: 1.9rem; line-height: 1.1; }
.stat-small { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.82); margin-top: 6px; }
.stat:hover .stat-big { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Compact role list */
.role-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.role-list a { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.role-list .tl-logo { grid-row: 1 / span 2; }
.role-line-sm { font-size: 0.95rem; }
.role-line-sm strong { font-family: 'Fraunces', serif; font-weight: 500; }
.role-meta { font-size: 0.78rem; color: var(--charcoal-soft); }
.role-list a:hover .role-line-sm strong { color: var(--terracotta-dark); }

/* Two previews side by side */
.teaser-pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.teaser-pair section.teaser { border-top: none; }
.teaser-pair section.teaser + section.teaser { border-left: 1px solid var(--line); }
.teaser-pair .wrap { max-width: none; padding: 0 40px; }
.teaser-pair .teaser-head { flex-direction: column; align-items: flex-start; }
.teaser-pair .teaser-head h2 { font-size: 1.5rem; }
.teaser.half .see-more { order: 2; }
.tile-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { display: block; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); transition: transform 0.25s; }
.tile:hover img { transform: translateY(-3px); }
.tile span { display: block; font-family: 'Fraunces', serif; font-size: 0.85rem; line-height: 1.3; margin-top: 8px; }
.tile:hover span { color: var(--terracotta-dark); }

/* Section pages */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero .blob { position: absolute; top: -120px; right: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--rose), var(--sage) 45%, var(--terracotta) 80%); opacity: 0.28; filter: blur(10px); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.12; margin: 6px 0 12px; }
.page-hero .tagline { font-size: 1.05rem; color: var(--charcoal-soft); max-width: 620px; }
.back-link { display: block; width: fit-content; font-size: 0.82rem; font-weight: 600; color: var(--charcoal-soft); margin-bottom: 22px; }
.back-link:hover { color: var(--terracotta-dark); }
.post .back-link { margin-bottom: 26px; }
.page-body { padding: 50px 0 70px; }
.sub-block + .sub-block { margin-top: 64px; padding-top: 50px; border-top: 1px solid var(--line); }
.sub-block > h2 { font-size: 1.6rem; margin: 4px 0 26px; }
footer .footer-links { margin-bottom: 8px; }
footer .footer-links a { color: var(--terracotta-dark); }

@media (max-width: 900px) {
  .teaser-pair { grid-template-columns: 1fr; }
  .teaser-pair section.teaser + section.teaser { border-left: none; border-top: 1px solid var(--line); }
  .teaser-pair .wrap { padding: 0 28px; max-width: 880px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
}
@media (max-width: 760px) {
  .teaser-head { flex-direction: column; align-items: flex-start; }
  .role-list { grid-template-columns: 1fr; }
  section.teaser { padding: 48px 0; }
  .teaser-pair .wrap { padding: 0 28px; }
  .tile-row { grid-template-columns: repeat(2, 1fr); }
}
/* Keep the paired previews on the same grid as the rest of the page */
.teaser-pair { max-width: 936px; margin: 0 auto; }
.teaser-pair .wrap { padding: 0 28px; }
.teaser-pair section.teaser + section.teaser .wrap { padding-left: 36px; }
@media (max-width: 900px) { .teaser-pair section.teaser + section.teaser .wrap { padding-left: 28px; } }

/* Way of Life page: picture index and full notes */
.wol-index { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; margin-bottom: 20px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.wol-index a { display: block; text-align: center; }
.wol-index img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; }
.wol-index a:hover img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(30, 86, 65, 0.18); }
.wol-index span { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--charcoal-soft); margin-top: 8px; line-height: 1.3; }
.wol-index a:hover span { color: var(--terracotta-dark); }
.wol-entry { max-width: 680px; margin: 0 auto; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.wol-entry:last-child { border-bottom: none; }
.wol-entry h2 { font-size: 1.8rem; margin: 2px 0 20px; }
.wol-entry .body p { margin-bottom: 1em; font-size: 1.02rem; }
.wol-entry .post-figure img { max-height: 380px; }
.back-top { display: inline-block; margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: var(--charcoal-soft); }
.back-top:hover { color: var(--terracotta-dark); }
@media (max-width: 900px) { .wol-index { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 520px) { .wol-index { grid-template-columns: repeat(3, 1fr); } }
/* Fixed image height so jumping to a practice lands in the right place while images load */
.wol-entry .post-figure img { height: 360px; max-height: none; object-fit: cover; }
@media (max-width: 760px) { .wol-entry .post-figure img { height: 240px; } }

/* ---------- Homepage photo band (pictures from the old writing pieces) ---------- */
.teaser.wide .tile-row { grid-template-columns: repeat(6, 1fr); }
.photo-band { padding: 56px 0 72px; overflow: hidden; }
.photo-row { display: grid; grid-template-columns: 1.15fr 0.9fr 1fr 0.9fr; gap: 16px; align-items: center; }
.photo { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 28px rgba(30, 86, 65, 0.14); background: var(--cream-2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.p1 { height: 300px; }
.photo.p2 { height: 360px; transform: translateY(-18px); }
.photo.p3 { height: 280px; transform: translateY(22px); }
.photo.p4 { height: 340px; }
@media (max-width: 900px) {
  .teaser.wide .tile-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .photo-band { padding: 0 0 40px; }
  .photo-row { display: block; columns: 2; column-gap: 12px; }
  .photo { break-inside: avoid; margin-bottom: 12px; }
  .photo.p1, .photo.p4 { height: 200px; transform: none; }
  .photo.p2, .photo.p3 { height: 250px; transform: none; }
}

/* ---------- Speaker & Public Engagements ---------- */
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.event-group { margin-bottom: 36px; }
.event-group h3 { font-size: 1.25rem; margin-bottom: 14px; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 90px 1fr; gap: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.event-when { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--terracotta); padding-top: 2px; }
.event strong { display: block; font-size: 1.02rem; }
.event-meta { display: block; font-size: 0.82rem; color: var(--sage); margin: 2px 0 6px; letter-spacing: 0.02em; }
.event p { font-size: 0.92rem; color: var(--charcoal-soft); margin: 0; }
.event.placeholder { background: transparent; border-style: dashed; border-color: #B9CFC1; }
.event.placeholder strong, .event.placeholder p, .event.placeholder .event-when { color: #8AA294; }
.invite-box { background: var(--sky-2); border-radius: 20px; padding: 28px; margin-top: 12px; }
.invite-box h3 { font-size: 1.3rem; margin-bottom: 6px; }
.invite-box p { color: var(--charcoal-soft); margin-bottom: 16px; }
@media (max-width: 640px) {
  .event { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
}

/* Giving Back page reuses the Way of Life layout with three larger pictures */
.gv-index { grid-template-columns: repeat(3, 1fr); max-width: 680px; margin-left: auto; margin-right: auto; }
.gv-index img { aspect-ratio: 3 / 2; }
.gv-index span { font-size: 0.8rem; }
@media (max-width: 900px) { .gv-index { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .gv-index { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Standard page layout: picture index + topics in full ---------- */
.topic-index { grid-template-columns: repeat(var(--n), 1fr); }
.topic-index.few { max-width: 680px; margin-left: auto; margin-right: auto; }
.topic-index.few img { aspect-ratio: 3 / 2; }
.topic-index.few span { font-size: 0.8rem; }
.topic-index:not(.few) img { aspect-ratio: 1; }
@media (max-width: 900px) { .topic-index:not(.few) { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 520px) {
  .topic-index:not(.few) { grid-template-columns: repeat(3, 1fr); }
  .topic-index.few { grid-template-columns: repeat(var(--n), 1fr); gap: 8px; }
}
.topic-row.centered { justify-content: center; max-width: 680px; margin: 0 auto 28px; }
.invite-box.narrow { max-width: 680px; margin: 24px auto 0; }
.wol-entry .event-list { margin-top: 4px; }
.wol-entry .tl-tags { margin-bottom: 14px; }
.wol-entry .cs-grid { grid-template-columns: 1fr; gap: 14px; }
.wol-entry .cs-open { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.wol-entry .cs-detail h3 { font-size: 1.25rem; margin: 8px 0 14px; }
.wol-entry .impact-row { margin: 18px 0 0; }
.wol-entry .highlights-grid { grid-template-columns: 1fr 1fr; }
.wol-entry .extras-grid { grid-template-columns: 1fr; gap: 16px; }
.wol-entry .values-list { margin: 0; }
@media (max-width: 640px) { .wol-entry .highlights-grid { grid-template-columns: 1fr; } }

/* Company logos in the Work picture index */
.wol-index img.logo-img { object-fit: contain; background: white; padding: 10%; }
.tl-logo.has-img { background: white; padding: 4px; overflow: hidden; }
.tl-logo.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tl-logo.has-img img[src*="malaica"] { padding: 0; object-fit: cover; }
.tl-logo.has-img:has(img[src*="malaica"]) { padding: 0; }
.tl-logo.has-img img[src*="iog"] { padding: 0; object-fit: cover; }
.tl-logo.has-img:has(img[src*="iog"]) { padding: 0; background: #000; }
.wol-index img.logo-img[src*="iog"], .wol-index img.logo-img[src*="malaica"] { padding: 0; object-fit: cover; }

/* Core skills on the Work page: three calm grouped lists */
.skill-groups { display: grid; gap: 14px; }
.skill-group { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; border-top: 3px solid var(--sage); }
.skill-group:nth-child(2) { border-top-color: var(--terracotta); }
.skill-group:nth-child(3) { border-top-color: var(--rose); }
.skill-group h3 { font-size: 1.1rem; margin-bottom: 10px; }
.skill-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.skill-group li { position: relative; padding-left: 18px; font-size: 0.95rem; color: var(--charcoal-soft); line-height: 1.45; }
.skill-group li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 0 60% 0 60%; background: var(--terracotta); }
@media (max-width: 640px) { .skill-group ul { grid-template-columns: 1fr; } }

/* Portrait in the homepage hero */
.avatar.has-photo { padding: 0; overflow: hidden; background: var(--cream-2); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
img[src*="speaking-panel"] { object-position: center 25%; }

/* Hero: larger arch-shaped portrait beside the text */
header.hero .inner { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; flex-wrap: nowrap; }
header.hero .avatar.has-photo { width: 300px; height: 375px; min-width: 0; border-radius: 150px 150px 28px 28px; box-shadow: 0 18px 40px rgba(30, 86, 65, 0.22); border: 6px solid #fff; }
header.hero .avatar.has-photo img { object-position: center 20%; }
@media (max-width: 820px) {
  header.hero .inner { grid-template-columns: 1fr; gap: 28px; }
  header.hero .avatar.has-photo { width: 220px; height: 275px; border-radius: 110px 110px 22px 22px; }
}

/* Hero background: no contour lines, just a soft green-to-blue fade */
header.hero::after { display: none; }
header.hero .blob, header.hero::before { display: none; }
header.hero {
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(156, 203, 219, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(47, 122, 91, 0.14), transparent 70%),
    linear-gradient(180deg, #EAF3EE 0%, var(--cream) 100%);
}

/* Optional photo beside a page title (Work Portfolio) */
.page-hero.has-photo .wrap { padding-right: 290px; }
.page-hero .page-photo { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); right: max(28px, calc((100vw - 880px) / 2 + 28px)); width: 210px; height: 262px; border-radius: 105px 105px 22px 22px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 14px 32px rgba(30, 86, 65, 0.2); }
.page-hero .page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero.has-photo .blob { display: none; }
@media (max-width: 820px) {
  .page-hero.has-photo .wrap { padding-right: 0; }
  .page-hero .page-photo { position: relative; top: auto; right: auto; transform: none; margin: 24px 0 0 28px; width: 160px; height: 200px; border-radius: 80px 80px 18px 18px; }
  .page-hero.has-photo { display: flex; flex-direction: column-reverse; }
}

/* Speaking photo gallery */
.sp-gallery-wrap { margin: 8px 0 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.sp-gallery-wrap h2 { font-size: 1.6rem; margin: 6px 0 18px; }
.sp-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sp-gallery figure { margin: 0; grid-column: span 2; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(30, 86, 65, 0.12); background: var(--cream-2); }
.sp-gallery figure:nth-child(n+4) { grid-column: span 3; aspect-ratio: 3 / 2; }
.sp-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .sp-gallery { gap: 10px; } .sp-gallery figure { grid-column: span 3; } .sp-gallery figure:nth-child(3) { grid-column: span 6; aspect-ratio: 3 / 2; } .sp-gallery figure:nth-child(3) img { object-position: center 20%; } .sp-gallery figure:nth-child(n+4) { grid-column: span 6; } }

/* Speaking: a photo beside each event */
.event.has-photo { grid-template-columns: 190px 70px 1fr; align-items: center; padding: 14px 22px 14px 14px; }
.event-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; background: var(--cream-2); }
@media (max-width: 640px) {
  .event.has-photo { grid-template-columns: 70px 1fr; padding: 14px 16px; align-items: start; row-gap: 14px; }
  .event.has-photo .event-photo { grid-column: 1 / -1; }
}

/* Beyond Work: activity tiles in the Speaking format */
.activity-wrap { border-bottom: none; }
.event.has-photo.activity { grid-template-columns: 190px 1fr; gap: 22px; }
.activity strong { font-size: 1.08rem; margin-bottom: 4px; }
.activity .event-meta { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 600; margin: 0 0 4px; }
@media (max-width: 640px) { .event.has-photo.activity { grid-template-columns: 1fr; } }
/* Beyond Work: alternate the picture side on wider screens */
@media (min-width: 641px) {
  .event.has-photo.activity:nth-child(even) { grid-template-columns: 1fr 190px; padding: 14px 14px 14px 22px; }
  .event.has-photo.activity:nth-child(even) .event-photo { order: 2; }
}

/* Skills: Learning and Recognition side by side */
.entry-pair { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; border-bottom: none; }
.entry-pair .wol-entry { max-width: none; margin: 0; border-bottom: none; }
.entry-pair .wol-entry h2 { font-size: 1.45rem; }
.entry-pair .post-figure img { max-height: 240px; }
@media (max-width: 720px) { .entry-pair { grid-template-columns: 1fr; gap: 0; } .entry-pair .wol-entry:first-child { border-bottom: 1px solid var(--line); } }

/* About: small icon beside each value */
.wol-entry .values-list li { display: flex; gap: 14px; align-items: flex-start; }
.v-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: white; color: var(--terracotta); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(30, 86, 65, 0.08); }

/* About: smaller photo beside each section's text */
article.wol-entry[id^="about-"] { max-width: 860px; display: grid; grid-template-columns: 240px 1fr; column-gap: 32px; align-items: start; }
article.wol-entry[id^="about-"] > .eyebrow, article.wol-entry[id^="about-"] > h2 { grid-column: 1 / -1; }
article.wol-entry[id^="about-"] > .post-figure { grid-column: 1; margin: 4px 0 0; position: sticky; top: 90px; }
article.wol-entry[id^="about-"] > .post-figure img { aspect-ratio: 4 / 5; height: auto; max-height: none; object-fit: cover; object-position: center 30%; }
article.wol-entry[id^="about-"] > .body { grid-column: 2; }
#about-care > .post-figure img { object-position: center; }
@media (max-width: 720px) {
  article.wol-entry[id^="about-"] { display: block; }
  article.wol-entry[id^="about-"] > .post-figure { position: static; max-width: 260px; margin: 0 0 20px; }
}
#about-values > .post-figure img { aspect-ratio: 1 / 1; height: auto; object-position: center; }

/* Skills: Core Skills uses the About layout (smaller picture beside the text) */
article.wol-entry#core-skills { max-width: 860px; display: grid; grid-template-columns: 240px 1fr; column-gap: 32px; align-items: start; }
#core-skills > .eyebrow, #core-skills > h2 { grid-column: 1 / -1; }
#core-skills > .post-figure { grid-column: 1; margin: 4px 0 0; position: sticky; top: 90px; }
#core-skills > .post-figure img { aspect-ratio: 1 / 1; height: auto; max-height: none; object-fit: cover; object-position: center; }
#core-skills > .body { grid-column: 2; }
@media (max-width: 720px) {
  article.wol-entry#core-skills { display: block; }
  #core-skills > .post-figure { position: static; max-width: 260px; margin: 0 0 20px; }
}

/* Core skills v2: one card, a row per group, skills as tidy pills */
.skill-groups { gap: 0; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 6px 26px; }
.skill-group, .skill-group:nth-child(2), .skill-group:nth-child(3) { background: none; border: 0; border-radius: 0; padding: 20px 0; display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: start; }
.skill-group + .skill-group { border-top: 1px solid var(--line); }
.skill-group h3 { margin: 6px 0 0; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.skill-group h3::before { content: ""; width: 10px; height: 10px; border-radius: 0 60% 0 60%; background: var(--sage); flex: none; }
.skill-group:nth-child(2) h3::before { background: var(--terracotta); }
.skill-group:nth-child(3) h3::before { background: var(--rose); }
.skill-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-group li { padding: 7px 14px; border-radius: 999px; background: var(--mist, #EEF4F1); border: 1px solid var(--line); font-size: 0.88rem; line-height: 1.3; color: var(--charcoal); }
.skill-group li::before { display: none; }
@media (max-width: 640px) { .skill-groups { padding: 4px 18px; } .skill-group, .skill-group:nth-child(2), .skill-group:nth-child(3) { grid-template-columns: 1fr; gap: 10px; } }

/* Core skills v3: three side-by-side columns, one per group */
article.wol-entry#core-skills { max-width: 1100px; grid-template-columns: 200px 1fr; }
.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: none; border: 0; border-radius: 0; padding: 0; }
.skill-group, .skill-group:nth-child(2), .skill-group:nth-child(3) { display: block; background: white; border: 1px solid var(--line); border-top: 4px solid var(--sage); border-radius: 18px; padding: 20px 20px 10px; }
.skill-group:nth-child(2) { border-top-color: var(--terracotta); }
.skill-group:nth-child(3) { border-top-color: var(--rose); }
.skill-group + .skill-group { border-top-width: 4px; border-top-style: solid; }
.skill-group h3 { margin: 0 0 8px; }
.skill-group ul { display: block; }
.skill-group li { background: none; border: 0; border-radius: 0; padding: 10px 0; font-size: 0.92rem; line-height: 1.4; color: var(--charcoal-soft); }
.skill-group li + li { border-top: 1px dashed var(--line); }
@media (max-width: 960px) { article.wol-entry#core-skills { display: block; } #core-skills > .post-figure { position: static; max-width: 220px; margin: 0 0 20px; } }
@media (max-width: 720px) { .skill-groups { grid-template-columns: 1fr; } }
/* v3b: small picture beside the heading, three columns full width below */
article.wol-entry#core-skills { max-width: 1000px; display: grid; grid-template-columns: 150px 1fr; column-gap: 28px; align-items: center; }
#core-skills > .post-figure { grid-column: 1; grid-row: 1 / span 2; position: static; margin: 0 0 24px; max-width: none; }
#core-skills > .eyebrow, #core-skills > h2 { grid-column: 2; }
#core-skills > .eyebrow { align-self: end; }
#core-skills > h2 { align-self: start; }
#core-skills > .body { grid-column: 1 / -1; }
@media (max-width: 960px) { article.wol-entry#core-skills { display: grid; } }
@media (max-width: 560px) { article.wol-entry#core-skills { grid-template-columns: 96px 1fr; column-gap: 16px; } }

/* Work Portfolio: company logo beside each role heading */
article.wol-entry.has-logo { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; }
.has-logo > .role-logo { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: white; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(20,50,40,.08); }
.has-logo > .role-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.has-logo > .eyebrow, .has-logo > h2 { grid-column: 2; }
.has-logo > .eyebrow { align-self: end; }
.has-logo > h2 { align-self: start; margin-top: 4px; }
.has-logo > :not(.role-logo):not(.eyebrow):not(h2) { grid-column: 1 / -1; }
@media (max-width: 560px) { article.wol-entry.has-logo { grid-template-columns: 56px 1fr; column-gap: 14px; } .has-logo > .role-logo { width: 56px; height: 56px; border-radius: 12px; } }

/* Work Portfolio: slim strip of headline numbers (replaces the Highlights cards) */
.work-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 36px; background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ws-stat { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px; text-decoration: none; color: inherit; transition: background .2s; }
.ws-stat + .ws-stat { border-left: 1px solid var(--line); }
.ws-stat:hover { background: var(--mist, #EEF4F1); }
.ws-num { font-family: 'Fraunces', serif; font-size: 1.9rem; line-height: 1.1; color: var(--sage-dark, #1E5641); }
.ws-label { font-size: 0.85rem; line-height: 1.4; color: var(--charcoal-soft); }
@media (max-width: 820px) { .work-strip { grid-template-columns: 1fr 1fr; } .ws-stat:nth-child(3) { border-left: 0; } .ws-stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Work Portfolio: "The range" — founder to Big Tech journey (replaces the number strip) */
.range { margin: 8px 0 40px; background: white; border: 1px solid var(--line); border-radius: 24px; padding: 32px 32px 28px; }
.range-head { max-width: 640px; margin-bottom: 26px; }
.range-head h2 { margin: 6px 0 8px; font-size: 1.6rem; }
.range-head p { color: var(--charcoal-soft); margin: 0; }
.range-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.range-steps::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: linear-gradient(90deg, var(--sage), var(--terracotta), var(--rose)); opacity: .5; }
.range-steps li { position: relative; padding-top: 28px; }
.rg-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: white; border: 3px solid var(--sage); }
.range-steps li:nth-child(2) .rg-dot { border-color: var(--terracotta); }
.range-steps li:nth-child(3) .rg-dot { border-color: var(--rose); }
.range-steps li:nth-child(4) .rg-dot { border-color: var(--sage-dark, #1E5641); }
.rg-stage { display: block; font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.rg-logos { display: flex; gap: 8px; margin-bottom: 8px; }
.rg-logo { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: white; display: block; transition: transform .2s; }
.rg-logo:hover { transform: translateY(-2px); }
.rg-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-where { display: block; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-dark, #1E5641); font-weight: 600; margin-bottom: 6px; }
.range-steps p { font-size: 0.92rem; line-height: 1.5; color: var(--charcoal-soft); margin: 0; }
@media (max-width: 860px) {
  .range { padding: 24px 20px; }
  .range-steps { grid-template-columns: 1fr; gap: 22px; }
  .range-steps::before { left: 7px; right: auto; top: 7px; bottom: 7px; width: 2px; height: auto; background: linear-gradient(180deg, var(--sage), var(--terracotta), var(--rose)); }
  .range-steps li { padding: 0 0 0 32px; }
}

/* Beyond Work hero: a taller arch so the whole full-length photo shows, less zoomed in */
.page-hero .page-photo:has(img[src$="beyond-hero.jpg"]) { width: 236px; height: 290px; border-radius: 118px 118px 22px 22px; }
.page-hero .page-photo img[src$="beyond-hero.jpg"] { object-position: center 78%; }
@media (max-width: 720px) { .page-hero .page-photo:has(img[src$="beyond-hero.jpg"]) { width: 170px; height: 262px; border-radius: 85px 85px 18px 18px; } }
/* Skills hero: laptop + latte photo, keep the cup and screen in the arch */
.page-hero .page-photo img[src$="skills-latte.jpg"] { object-position: 55% 60%; }

/* Case study screenshots */
.cs-shots { display: flex; gap: 14px; justify-content: center; align-items: flex-start; flex-wrap: wrap; margin: 6px 0 22px; padding: 22px 12px 8px; background: linear-gradient(160deg, var(--mist, #EEF4F1), #fff); border-radius: 18px; }
.shot { margin: 0; text-align: center; }
.shot img { display: block; }
.shot.phone img { height: 300px; width: auto; border-radius: 22px; border: 6px solid #1d2a26; box-shadow: 0 14px 28px rgba(20,50,40,.16); background: #fff; }
.shot.browser { width: 100%; max-width: 620px; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 28px rgba(20,50,40,.16); background: #fff; border: 1px solid var(--line); }
.shot.browser img { width: 100%; height: auto; }
.browser-bar { display: flex; gap: 6px; padding: 9px 12px; background: #eef1f0; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dad7; }
.shot figcaption { font-size: 0.78rem; color: var(--charcoal-soft); margin-top: 10px; letter-spacing: .02em; }
.shot.browser figcaption { padding: 0 12px 12px; }
@media (max-width: 720px) {
  .cs-shots { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding: 18px 14px 6px; }
  .shot.phone { flex: none; scroll-snap-align: center; }
  .shot.phone img { height: 300px; }
}
.shots-note { flex-basis: 100%; text-align: center; margin: 2px 0 6px; font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--sage-dark, #1E5641); }
.shots-note::before { content: "📱 "; }
@media (max-width: 720px) { .shots-note { display: none; } }
.shot.browser.half { max-width: 620px; }
@media (max-width: 720px) { .cs-shots:has(.half) { flex-direction: column; flex-wrap: wrap; overflow: visible; } .shot.browser.half { max-width: 100%; } }

/* Skills: smaller pictures for Learning and Recognition (light text beside them) */
#learning > .post-figure, #recognition > .post-figure { max-width: 220px; margin-left: 0; margin-right: auto; }
#learning > .post-figure img, #recognition > .post-figure img { height: auto; max-height: 150px; object-fit: contain; }

/* Homepage About teaser: picture from the About page beside a short excerpt */
.about-teaser { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.about-teaser figure { margin: 0; }
.about-teaser img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 100px 100px 18px 18px; border: 5px solid #fff; box-shadow: 0 12px 26px rgba(30,86,65,.16); display: block; }
.about-teaser .lede { margin: 0 0 16px; }
@media (max-width: 640px) { .about-teaser { grid-template-columns: 1fr; } .about-teaser figure { max-width: 170px; } }

/* "See more": original button style, placed at the bottom of each homepage section */
.see-more-row { margin-top: 22px; text-align: center; }
.teaser.half .see-more { order: 0; }

/* Homepage Speaking teaser: event cards with photos */
.sp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sp-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.sp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(30,86,65,.12); }
.sp-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sp-card .sp-meta { display: block; padding: 12px 14px 0; font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--sage-dark, #1E5641); }
.sp-card strong { display: block; padding: 4px 14px 14px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1rem; line-height: 1.3; }
@media (max-width: 860px) { .sp-cards { grid-template-columns: 1fr 1fr; } }
.sp-card img { object-position: center 25%; }

/* Work Portfolio: skills preview at the bottom (moved from the homepage) */
.work-skills { max-width: 1000px; margin: 48px auto 8px; padding-top: 40px; border-top: 1px solid var(--line); }
.work-skills h2 { margin: 6px 0 22px; }

/* Homepage Giving Back / Beyond Work: page photo beside a short summary */
.half-intro { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.half-intro img { width: 110px; height: 138px; object-fit: cover; border-radius: 55px 55px 14px 14px; border: 4px solid #fff; box-shadow: 0 10px 22px rgba(30,86,65,.15); display: block; }
.half-intro img[src$="beyond-hero.jpg"] { object-position: center 75%; }
.half-intro .lede { margin: 0; }
.emoji-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; font-size: 1.9rem; line-height: 1; margin: 6px 0 0; }
.emoji-row span { cursor: default; transition: transform .2s; }
.emoji-row span:hover { transform: translateY(-3px) scale(1.1); }
/* Homepage section labels link to their page */
a.eyebrow-link { text-decoration: none; }
a.eyebrow-link:hover { text-decoration: underline; text-underline-offset: 3px; }
article.wol-entry[id^="role-"] { scroll-margin-top: 90px; }

/* Homepage: My Basics (from the old site) */
.basics .basics-title { text-align: center; font-size: 2.2rem; margin: 0 0 36px; }
.basics-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.basics-grid li { display: flex; align-items: center; gap: 16px; }
.b-icon { flex: none; width: 56px; height: 56px; }
.b-icon svg { width: 100%; height: 100%; transition: transform .25s; }
.basics-grid li:hover .b-icon svg { transform: rotate(-8deg) scale(1.08); }
.b-text { display: flex; flex-direction: column; gap: 4px; }
.b-verb { font-size: 0.95rem; color: var(--charcoal-soft); }
.b-word { font-size: 0.95rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); }
@media (max-width: 860px) { .basics-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .b-icon { width: 44px; height: 44px; } }
@media (max-width: 860px) {
  .basics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 14px; }
  .basics-grid li { gap: 10px; min-width: 0; }
  .b-icon { flex: none; }
  .b-text { min-width: 0; }
  .b-word { font-size: 0.82rem; letter-spacing: .04em; overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .b-icon { width: 36px; height: 36px; }
  .b-word { font-size: 0.76rem; letter-spacing: .03em; overflow-wrap: normal; }
}

/* Way of Life pop-up (homepage) */
.wol-tiles { flex-wrap: wrap; }
.wol-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 22px; background: var(--paper, #fff); color: inherit; box-shadow: 0 30px 80px rgba(0,0,0,.25); overflow: auto; }
.wol-dialog::backdrop { background: rgba(20,35,30,.55); backdrop-filter: blur(3px); }
.wol-dialog-body { padding: 40px 40px 8px; }
.wol-dialog-body .eyebrow { display: block; margin-bottom: 6px; }
.wol-dialog-body h2 { margin: 0 0 18px; }
.wol-dialog-body .post-figure { margin: 0 0 20px; }
.wol-dialog-body .post-figure img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; }
.wol-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.06); font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; z-index: 2; }
.wol-close:hover { background: rgba(0,0,0,.12); }
.wol-dialog-nav { display: flex; justify-content: space-between; gap: 12px; padding: 16px 40px 32px; border-top: 1px solid rgba(0,0,0,.08); margin-top: 16px; }
.wol-dialog-nav button { border: 1px solid rgba(0,0,0,.15); background: transparent; border-radius: 999px; padding: 10px 18px; font: inherit; font-size: .9rem; cursor: pointer; color: inherit; }
.wol-dialog-nav button:hover { background: rgba(0,0,0,.05); }
@media (max-width: 600px) { .wol-dialog-body { padding: 28px 22px 4px; } .wol-dialog-nav { padding: 14px 22px 24px; } }
.teaser .tile-row.wol-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.wol-tiles .tile { flex: 0 0 calc((100% - 48px) / 5); }
@media (max-width: 860px) { .wol-tiles .tile { flex-basis: calc((100% - 24px) / 3); } }
.wol-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; }
/* Photo band now sits after Contact; Wira asked for slightly smaller pictures (2026-11-05) */
.photo-row { max-width: 860px; margin: 0 auto; }
.photo.p1 { height: 230px; } .photo.p2 { height: 275px; } .photo.p3 { height: 215px; } .photo.p4 { height: 260px; }
@media (max-width: 860px) { .photo.p1, .photo.p4 { height: 160px; } .photo.p2, .photo.p3 { height: 200px; } .photo-band { padding: 24px 0 40px; } }
.emoji-inline { letter-spacing: .08em; }
.emoji-inline span { cursor: default; }
/* Clickable teaser pictures lift on hover, like the Way of Life tiles (Wira, 2026-11-05) */
.img-link { display: block; flex: none; border-radius: inherit; }
.img-link img { transition: transform .25s, box-shadow .25s, filter .25s; }
.img-link:hover img, .img-link:focus-visible img { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(30,86,65,.24); filter: brightness(1.05); }
.half-text .see-more-inline { margin-top: 14px; }
/* Bigger pictures on Giving Back / Beyond Work previews, closer to the Speaking cards (Wira, 2026-11-05) */
.half-intro { grid-template-columns: 180px 1fr; gap: 22px; }
.half-intro img { width: 180px; height: 225px; border-radius: 90px 90px 18px 18px; }
@media (max-width: 600px) { .half-intro { grid-template-columns: 140px 1fr; gap: 16px; } .half-intro img { width: 140px; height: 180px; border-radius: 70px 70px 14px 14px; } }
/* About preview: bigger picture, See more under the text (Wira, 2026-11-05) */
.about-teaser { grid-template-columns: 270px 1fr; gap: 36px; }
.about-teaser img { border-radius: 135px 135px 20px 20px; }
.about-teaser .see-more-inline { margin-top: 20px; }
@media (max-width: 640px) { .about-teaser { grid-template-columns: 1fr; } .about-teaser figure { max-width: 200px; } .about-teaser img { border-radius: 100px 100px 18px 18px; } }
/* Homepage section headings centred, like "My Basics" (Wira, 2026-11-06) */
.teaser .teaser-head, .teaser-pair .teaser-head { justify-content: center; align-items: center; text-align: center; }
.teaser .teaser-head > div { margin: 0 auto; max-width: 720px; }
.teaser .teaser-head .lede { margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .teaser .teaser-head { align-items: center; } }
/* About preview: value chips centred and clickable (Wira, 2026-11-06) */
.about-teaser .chip-row { justify-content: center; }
.about-teaser .see-more-inline { text-align: center; }
a.chip-link { text-decoration: none; color: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
a.chip-link:hover, a.chip-link:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(30,86,65,.15); background: #fff; }
.values-list li[id^="value-"] { scroll-margin-top: 90px; }
.values-list li:target { box-shadow: 0 0 0 2px var(--sage, #7FA88F); }
/* "Case Study" tag under each role title (Wira, 2026-11-06) */
a.cs-tag { display: inline-block; background: var(--cream-2); color: var(--terracotta-dark); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin: 6px 0 14px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.cs-tag:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(30,86,65,.15); }
.cs-detail[id^="cs-"] { scroll-margin-top: 90px; }
a.cs-tag { justify-self: start; width: fit-content; }
.has-logo > a.cs-tag { grid-column: 2; margin-top: 2px; }
article.wol-entry.has-logo > a.tag.cs-tag { grid-column: 2; }
.cs-detail .tag.cs-tag { margin-right: 6px; background: var(--forest, #1E5641); color: #fff; }
/* Range: five stages, Venture studio added at the end (Wira, 2026-11-06) */
@media (min-width: 861px) { .range-steps { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
.range-steps li:nth-child(5) .rg-dot { border-color: var(--lake, #2F6F8F); }

/* 2026-11-06: Book a call button in the contact card, LinkedIn card on Portfolio, Learning list */
.contact-box .btn-call { border: 1px solid rgba(255,255,255,0.75); color: #fff; background: transparent; }
.contact-box .btn-call:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.linkedin-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 48px 0 8px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper, #fff); }
.linkedin-card h2 { margin: 6px 0 6px; font-size: 1.5rem; }
.linkedin-card p { margin: 0; max-width: 52ch; }
.learn-list { margin: 0; padding-left: 1.1em; }
.learn-list li { margin: 0 0 8px; }
@media (max-width: 600px) { .linkedin-card { padding: 22px 20px; } }
.contact-box .btn { margin: 6px 5px; }

/* Hamburger menu on phones (2026-11-06) */
@media (max-width: 760px) {
  nav .wrap, nav .wrap { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0; padding-top: 12px; padding-bottom: 12px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--charcoal);
  }
  .nav-toggle span { display: block; height: 2px; width: 24px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
  nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav ul, nav ul { display: none; flex-basis: 100%; flex-direction: column; gap: 0; overflow: visible; max-width: none; padding: 8px 0 4px; }
  nav.menu-open ul { display: flex; }
  nav ul li a { display: block; padding: 12px 0; font-size: 0.85rem; border-top: 1px solid var(--line); }
}
