:root {
  --navy: #2c2018;
  --navy-light: #46352a;
  --ink: #241c16;
  --muted: #7a7167;
  --border: #e7ded2;
  --bg: #faf6ef;
  --bg-soft: #f2ece1;
  --accent: #7d3428;
  --accent-soft: #f1e0d6;
  --radius: 6px;
  --max-width: 1280px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--accent); }
.muted { color: var(--muted); }
ul.plain { list-style: none; margin: 0; padding: 0; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand {
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
  color: var(--navy); letter-spacing: 0.01em;
}
.brand:hover { color: var(--navy); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink); font-size: 0.95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); border-bottom-color: var(--accent); }
.main-nav a.nav-cta {
  background: var(--navy); color: #fff; padding: 8px 18px; border-radius: var(--radius);
  border-bottom: none;
}
.main-nav a.nav-cta:hover { background: var(--navy-light); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); display: block; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding: 84px 0 64px; max-width: 720px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem;
  color: var(--accent); font-weight: 600; margin-bottom: 14px; display: block;
}
.hero p.lede { font-size: 1.15rem; color: var(--muted); }
.button-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); color: #fff; }
.btn-secondary { border-color: var(--border); color: var(--ink); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { margin: 0; }

/* Focus / skills grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--accent-soft); color: var(--navy); font-size: 0.82rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding-left: 26px; position: relative; margin-bottom: 12px; }
.check-list li::before {
  content: "\2013"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.check-list--2col { column-count: 2; column-gap: 32px; }
.check-list--2col li { break-inside: avoid; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  background: #fff; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 8px 24px rgba(44, 32, 24,0.08); transform: translateY(-2px); }
.card .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--navy); }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* Client Profile & Sector */
.client-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.client-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px;
  background: #fff; text-align: center; transition: box-shadow .15s, transform .15s;
}
.client-card:hover { box-shadow: 0 8px 24px rgba(44, 32, 24,0.08); transform: translateY(-2px); }
.client-logo-wrap { height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.client-logo { max-height: 56px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.client-name { font-size: 0.95rem; line-height: 1.35; margin-bottom: 12px; color: var(--navy); }
.client-sector { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 0.8rem; }
.client-icon { flex-shrink: 0; width: 15px; height: 15px; color: var(--accent); }

/* Sectors ("Where I Work") — asymmetric 5-column bento grid. Card types: "feature" (2 cols,
   text + photo), "dashboard" (3 cols, text + decorative mini dashboard mockup), "spotlight"
   (1 col, 2 rows, centered with a 3-step process list), "standard" (1 col, optional thumbnail).
   List order in content.py's INDUSTRY_SECTORS drives grid-auto-flow: dense packing — feature +
   dashboard fill row 1 exactly (2+3=5), spotlight + the 8 standard cards fill rows 2-3. */
.section-head-group--center { text-align: center; }
.section-head-group--center .section-number { text-transform: uppercase; letter-spacing: 0.14em; }
.section-head-group--center h2 { margin-left: auto; margin-right: auto; }
.section-subtitle { color: var(--muted); font-size: 1.02rem; max-width: 560px; margin: 0 auto; }

.sector-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-flow: dense; gap: 20px;
}
.sector-card {
  border: 1px solid var(--border); border-radius: 20px; background: #fff;
  box-shadow: 0 1px 2px rgba(44, 32, 24, 0.04);
  transition: box-shadow .18s ease-out, transform .18s ease-out;
  overflow: hidden; grid-column: span 1;
}
.sector-card:hover { box-shadow: 0 14px 32px rgba(44, 32, 24, 0.1); transform: translateY(-3px); }
.sector-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sector-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; height: 100%; }
.sector-icon-wrap {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 18px;
}
.sector-icon { width: 24px; height: 24px; color: var(--accent); }
.sector-label { font-weight: 600; color: var(--navy); font-size: 1.05rem; line-height: 1.3; margin-bottom: 8px; }
.sector-tagline { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin-bottom: 0; flex-grow: 1; }
.sector-link {
  font-size: 0.85rem; font-weight: 600; color: var(--accent); white-space: nowrap;
  margin-top: 16px; display: inline-flex; align-items: center; gap: 4px;
  transition: gap .15s ease-out;
}
.sector-link:hover { color: var(--navy); gap: 7px; }

/* Standard card — optional thumbnail between the tagline and the footer link */
.sector-thumb { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; margin-top: 16px; }
.sector-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sector-card--standard .sector-tagline { flex-grow: 0; }
.sector-card--standard .sector-link { margin-top: auto; padding-top: 16px; }

/* Feature card — span 2, text left / photo right */
.sector-card--feature { grid-column: span 2; display: flex; flex-direction: row; align-items: stretch; }
.sector-card--feature .sector-card-body { flex: 1 1 50%; justify-content: center; }
.sector-card--feature .sector-media { flex: 1 1 50%; min-height: 200px; }
.sector-card--feature .sector-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Dashboard card — span 3, text left / decorative mockup right (no real figures — see content.py) */
.sector-card--dashboard { grid-column: span 3; display: flex; flex-direction: row; align-items: stretch; }
.sector-card--dashboard .sector-card-body { flex: 1 1 44%; justify-content: center; }
.dash-mock {
  flex: 1 1 56%; background: var(--bg-soft); padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.dash-mock-head { display: flex; gap: 6px; }
.dash-mock-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(44, 32, 24, 0.14); }
.dash-mock-body { display: flex; gap: 16px; align-items: flex-end; }
.dash-mock-bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; height: 64px; }
.dash-mock-bars span { flex: 1; border-radius: 4px 4px 0 0; background: rgba(125, 52, 40, 0.18); }
.dash-mock-bars span.is-accent { background: var(--accent); }
.dash-mock-ring {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--accent) 0deg 230deg, rgba(125, 52, 40, 0.16) 230deg 360deg);
  display: flex; align-items: center; justify-content: center;
}
.dash-mock-ring::after { content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); }
.dash-mock-rows { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dash-mock-rows span { display: block; height: 6px; border-radius: 3px; background: rgba(44, 32, 24, 0.1); }
.dash-mock-rows span:nth-child(1) { width: 80%; }
.dash-mock-rows span:nth-child(2) { width: 55%; }

/* Spotlight card — 1 col, single row (matches the height of the card beside it), centered,
   3-step process instead of fabricated dates. Was row-span 2 (twice the height); shortened to
   sit flush with its row and let Pharmaceuticals & Healthcare (now a plain standard card, no
   dashboard mockup) fall directly underneath it in the same column. */
.sector-card--spotlight { grid-column: span 1; background: var(--navy); }
.sector-card--spotlight .sector-card-body { align-items: center; text-align: center; padding: 24px; }
.sector-card--spotlight .sector-icon-wrap { background: rgba(250, 246, 239, 0.12); }
.sector-card--spotlight .sector-icon { color: var(--bg); }
.sector-card--spotlight .sector-label { color: var(--bg); }
.sector-card--spotlight .sector-tagline { color: rgba(250, 246, 239, 0.72); flex-grow: 0; }
.sector-card--spotlight .sector-link { color: var(--bg); margin-top: auto; padding-top: 4px; }
.sector-card--spotlight .sector-link:hover { color: var(--accent-soft); }
.sector-steps { display: flex; flex-direction: column; margin: 14px 0 18px; width: 100%; }
.sector-step { display: flex; align-items: center; gap: 12px; padding: 5px 0; position: relative; }
.sector-step:not(:last-child)::after {
  content: ""; position: absolute; left: 5px; top: 18px; width: 1px; height: calc(100% - 4px);
  background: rgba(250, 246, 239, 0.2);
}
.sector-step-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent-soft); flex-shrink: 0; z-index: 1; }
.sector-step-label { color: rgba(250, 246, 239, 0.9); font-size: 0.85rem; font-weight: 600; text-align: left; }

@media (max-width: 960px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-card--feature, .sector-card--dashboard { grid-column: span 2; }
}
@media (max-width: 760px) {
  .sector-grid { grid-template-columns: 1fr; }
  .sector-card--feature, .sector-card--dashboard { grid-column: span 1; flex-direction: column; }
  .sector-card--feature .sector-media { min-height: 160px; }
  .dash-mock { padding: 20px; }
}

/* Timeline (employment & education) — flat bordered rows with brand logos */
.timeline { border-top: 1px solid var(--border); }
.timeline-item {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 6px 20px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.timeline-item--with-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-logo-wrap {
  height: 58px;
  min-width: 58px;
  max-width: 100px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.timeline-item--with-logo:hover .timeline-logo-wrap {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.timeline-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
}
.timeline-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.timeline-item .timeline-main { 
  font-weight: 700; 
  color: var(--navy); 
  font-size: 1.15rem; 
  line-height: 1.35;
}
.timeline-item .timeline-sub,
.timeline-item .timeline-meta { 
  font-size: 1.02rem; 
  font-weight: 500;
  color: var(--muted); 
  line-height: 1.4;
}

/* ==========================================================================
   REDESIGNED PROJECT / EXPERIENCE DETAIL PAGE
   ========================================================================== */
.project-hero {
  background: linear-gradient(180deg, rgba(242, 236, 225, 0.95) 0%, rgba(250, 246, 239, 0.9) 100%);
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 40px 0 32px 0;
}

.back-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent, #0284c7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-3px);
  text-decoration: underline;
}

.project-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-badge {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--navy, #0f172a);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
}

.project-location-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-icon {
  width: 16px;
  height: 16px;
  color: var(--accent, #0284c7);
}

.project-hero-title {
  font-family: var(--font-head, serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy, #0f172a);
  margin: 0 0 16px 0;
}

.project-hero-summary {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #334155;
  max-width: 800px;
  margin: 0 0 28px 0;
}

.project-hero-banner {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  margin-top: 10px;
}

@media (max-width: 768px) {
  .project-hero-banner {
    height: 200px;
  }
}

.project-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.project-grid-details {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.detail-section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-section-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy, #0f172a);
  margin: 0 0 4px 0;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted, #64748b);
  margin: 0;
}

.section-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.section-icon--execution {
  background: #e0f2fe;
  color: #0284c7;
}

.section-icon--impact {
  background: #dcfce7;
  color: #15803d;
}

/* Execution Cards Grid */
.execution-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.execution-card {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.execution-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.card-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-step-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}

/* Impact Cards Grid */
.impact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.impact-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s ease;
}

.impact-card:hover {
  transform: translateY(-2px);
}

.impact-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.impact-card-icon svg {
  width: 16px;
  height: 16px;
}

.impact-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #14532d;
  font-weight: 500;
}

.project-footer-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border, #e2e8f0);
  flex-wrap: wrap;
}

/* Blog */
.category-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.category-filters a {
  font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--ink);
}
.category-filters a.active, .category-filters a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.post-body { max-width: 720px; font-size: 1.05rem; }
.post-body h2 { margin-top: 1.5em; }
.post-body pre { background: var(--bg-soft); padding: 16px; border-radius: var(--radius); overflow-x: auto; }
.post-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.post-body img { max-width: 100%; border-radius: var(--radius); }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }

/* Contact */
.contact-grid { display: flex; flex-direction: column; max-width: 460px; margin-top: 24px; }
.contact-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 4px;
  border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none;
}
.contact-grid > *:first-child { border-top: 1px solid var(--border); }
.contact-icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); }
.contact-row span {
  font-size: 1.05rem; font-weight: 600; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.contact-row--static span { text-decoration: none; }
a.contact-row:hover span { color: var(--accent); text-decoration-color: var(--accent); }
a.contact-row:hover .contact-icon { color: var(--navy); }

/* Forms (admin) */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-field input[type=text], .form-field input[type=password], .form-field textarea, .form-field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field input { width: auto; }
.form-errors { color: #b3261e; font-size: 0.85rem; margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.live { background: #2e7d32; }
.status-dot.draft { background: var(--muted); }
.admin-actions a, .admin-actions button {
  font-size: 0.85rem; margin-right: 12px; background: none; border: none; padding: 0; cursor: pointer; color: var(--navy-light);
}
.admin-actions button:hover, .admin-actions a:hover { color: var(--accent); }
.admin-bar { background: var(--navy); color: #fff; padding: 10px 0; font-size: 0.85rem; }
.admin-bar .container { display: flex; justify-content: space-between; }
.admin-bar a { color: #fff; opacity: 0.85; }
.admin-bar a:hover { opacity: 1; color: #fff; text-decoration: underline; }

/* Flash */
.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px; font-size: 0.9rem; }
.flash-success { background: #e6f4ea; color: #1e4620; }
.flash-error { background: #fdecea; color: #7a1712; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 64px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 32px 0; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink); font-size: 0.9rem; }

/* Empty state */
.empty-state { padding: 48px 0; text-align: center; color: var(--muted); }

@media (max-width: 760px) {
  .grid-2, .detail-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px 24px; gap: 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-cta { display: inline-block; width: fit-content; }
}

/* Scrolling one-page layout */
section[id] { scroll-margin-top: 76px; }

/* Experience section — redesigned project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  color: var(--ink);
  transition: box-shadow .18s ease, transform .18s ease, border-left-color .18s ease;
}
.project-card:hover {
  box-shadow: 0 12px 30px rgba(44, 32, 24, 0.12);
  transform: translateY(-4px);
  border-left-color: var(--navy);
  color: var(--ink);
}
.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.project-client {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.project-location {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.project-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
}
.project-role {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-light);
}
.project-summary {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  flex-grow: 1;
}
.project-readmore {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-light);
}
.project-card:hover .project-readmore { color: var(--accent); }

/* Project detail — single-column, anonymized layout */
.detail-single { max-width: 760px; }

/* ============================================================
   Redesign pass: editorial hero type, scroll reveal, stat strip,
   numbered section eyebrows, refined focus states.
   ============================================================ */

/* Hero — larger, lighter, tighter editorial heading */
.hero h1 {
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  letter-spacing: -0.01em;
}
.hero-inner {
  padding: 100px 24px 56px;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.hero-text { max-width: 620px; order: 2; }

/* Photo card: framed like a raised plate, with a thin accent frame
   peeking out behind it for a considered, editorial feel. */
.hero-photo {
  order: 1;
  justify-self: start;
  align-self: center;
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(44, 32, 24, 0.05),
    0 12px 20px -10px rgba(44, 32, 24, 0.18),
    0 32px 54px -20px rgba(44, 32, 24, 0.3);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  z-index: -1;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 40px; text-align: left; }
  .hero-photo { justify-self: start; max-width: 220px; }
  .hero-photo::before { inset: 12px -12px -12px 12px; }
}

/* Numbered section eyebrows */
.section-head-group { margin-bottom: 28px; }
.section-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head-group .section-head { margin-bottom: 0; }

/* Stat strip */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 40px 0;
  text-align: center;
}
.stat-tile .stat-number {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--navy);
  display: block;
  line-height: 1;
}
.stat-tile .stat-label {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scroll reveal — hidden-by-default state only applies once JS has
   confirmed it can run (html.js, set by an inline script in <head>) and
   the user hasn't asked for reduced motion. No JS or reduced motion means
   content is simply visible, never permanently hidden. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Focus states for keyboard users */
a:focus-visible, button:focus-visible, .project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
}

/* Scene imagery: subtle, strategically placed backgrounds (hero + contact bookend
   with the abstract pattern; experience carries the industrial photograph). Layered
   as a wash + image so the light theme is preserved and text contrast is unaffected. */
#home, #contact, #experience { position: relative; overflow: hidden; }
#home > .hero-inner, #contact > .container, #experience > .container {
  position: relative;
  z-index: 1;
}
#home::before, #contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(242, 236, 225, 0.93) 0%, rgba(250, 246, 239, 0.9) 100%),
    url("../img/bg-pattern.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}
#contact::before { background-position: center 30%; }
#experience::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(242, 236, 225, 0.94) 0%, rgba(242, 236, 225, 0.8) 45%, rgba(242, 236, 225, 0.94) 100%),
    url("../img/bg-industrial.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 760px) {
  #experience::before { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  #experience::before { background-attachment: scroll; }
}

/* ==========================================================================
   2-COLUMN EDITORIAL PORTFOLIO LAYOUT & COMPONENTS
   ========================================================================== */
.editorial-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 920px) {
  .editorial-layout {
    grid-template-columns: 1fr;
  }
}

/* Feed Column & Tabs */
.feed-column {
  min-width: 0;
}

.feed-tabs-header {
  position: relative;
  border-bottom: 2px solid var(--border, #e2e8f0);
  margin-bottom: 28px;
}

.feed-tabs {
  display: flex;
  gap: 12px;
}

.feed-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-head, sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  padding: 12px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 8px 8px 0 0;
}

.feed-tab-btn:hover {
  color: var(--navy, #0f172a);
}

.feed-tab-btn.active {
  color: var(--accent, #0284c7);
  background: rgba(2, 132, 199, 0.08);
}

.feed-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, #0284c7);
  border-radius: 3px 3px 0 0;
}

.tab-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 12px;
}

.feed-tab-btn.active .tab-badge {
  background: var(--accent, #0284c7);
  color: #ffffff;
}

/* Tab Panes */
.feed-pane {
  display: none;
}

.feed-pane.active {
  display: block;
}

/* Feed Cards */
.feed-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-card {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
  border-color: var(--accent, #0284c7);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-badge--insight {
  background: #e0f2fe;
  color: #0369a1;
}

.card-location, .card-date {
  font-size: 0.8rem;
  color: var(--muted, #64748b);
  font-weight: 500;
}

.card-title {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.card-title a {
  color: var(--navy, #0f172a);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--accent, #0284c7);
}

.card-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 16px 0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent, #0284c7);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.card-link:hover {
  text-decoration: underline;
}

.feed-archive-cta {
  margin-top: 28px;
  text-align: center;
}

.empty-state-box {
  background: #ffffff;
  border: 1px dashed var(--border, #cbd5e1);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* Sidebar Styling */
.sidebar-column {
  position: relative;
}

.sidebar-inner {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.sidebar-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy, #0f172a);
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-card-subtitle {
  font-size: 0.775rem;
  color: var(--muted, #64748b);
  margin: 0 0 14px 0;
}

/* Bio Card */
.bio-card {
  text-align: center;
}

.bio-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px auto;
  border: 3px solid var(--accent, #0284c7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bio-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.bio-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--navy, #0f172a);
}

.bio-title {
  font-size: 0.8rem;
  color: var(--muted, #64748b);
  line-height: 1.4;
  margin: 0 0 14px 0;
}

.bio-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.bio-tag {
  font-size: 0.725rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  font-size: 0.75rem;
  font-weight: 500;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-pill.active {
  background: var(--navy, #0f172a);
  color: #ffffff;
  border-color: var(--navy, #0f172a);
}

/* Client Mini Grid */
.client-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
}

.client-mini-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  transition: transform 0.2s ease;
}

.client-mini-item:hover {
  transform: scale(1.05);
}

.client-mini-item img {
  max-width: 100%;
  max-height: 30px;
  object-fit: contain;
}

/* ==========================================================================
   CLEAN 2-COLUMN CONTACT SECTION (NO WHITE CARD BOXES)
   ========================================================================== */
.contact-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 850px) {
  .contact-grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-col-left {
  display: flex;
  flex-direction: column;
}

.contact-heading {
  font-family: var(--font-head, serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--navy, #0f172a);
  margin: 6px 0 12px 0;
}

.contact-lede {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 24px 0;
}

.contact-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.05);
  color: #334155;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.feed-load-more-wrap {
  text-align: center;
  margin-top: 28px;
  padding: 12px 0;
}

.feed-load-more-btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
}


.contact-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-clean-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a.contact-clean-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(2, 132, 199, 0.2);
}

.contact-clean-row--static {
  cursor: default;
}

.contact-clean-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-clean-icon svg {
  width: 20px;
  height: 20px;
}

.contact-clean-icon--linkedin {
  background: #e0e7ff;
  color: #4338ca;
}

.contact-clean-icon--location {
  background: #fef3c7;
  color: #d97706;
}

.contact-clean-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-clean-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #64748b);
  margin-bottom: 2px;
}

.contact-clean-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy, #0f172a);
}

.contact-clean-action {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent, #0284c7);
  margin-left: auto;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

a.contact-clean-row:hover .contact-clean-action {
  transform: translateX(4px);
  opacity: 1;
}


