:root {
  --surface: #ffffff;
  --surface-warm: #faf6f2;
  --surface-blush: #f6e8e6;
  --navy: #1b2a41;
  --navy-hover: #2b3f5c;
  --ink-muted: #4d5968;
  --accent: #9e4f2e;
  --terracotta: #c87b5d;
  --rose: #a94f55;
  --blush: #d9aeaf;
  --sage: #8a9172;
  --sage-strong: #5a6147;
  --dusty-blue: #8ba3b5;
  --line: #e4ddd6;
  --line-strong: #8a8178;
  --focus: #9e4f2e;
  --focus-on-dark: #f2c4a8;
  --on-dark: #ffffff;
  --on-accent: #ffffff;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-24: 96px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(27,42,65,0.06), 0 8px 24px rgba(27,42,65,0.08);
  --shadow-card-hover: 0 2px 4px rgba(27,42,65,0.08), 0 16px 40px rgba(27,42,65,0.12);
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); }

/* ---------- Base ---------- */
.ec-root { font-family: var(--font-sans); font-size: 17px; line-height: 27px; color: var(--navy); background: var(--surface); -webkit-font-smoothing: antialiased; }
.ec-root *, .ec-root *::before, .ec-root *::after { box-sizing: border-box; }
.ec-root h1, .ec-root h2, .ec-root h3, .ec-root h4, .ec-root p, .ec-root ul { margin: 0; }
.ec-root a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ec-root a:hover { text-decoration-thickness: 2px; }
.ec-root :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.ec-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ec-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--on-dark) !important; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none !important; }
.ec-skip:focus { top: 12px; }
.ec-wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--space-8); }
@media (max-width: 640px) { .ec-wrap { padding: 0 var(--space-4); } }

/* ---------- Type helpers ---------- */
.ec-eyebrow { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ec-h2 { font-family: var(--font-serif); font-size: 38px; line-height: 44px; font-weight: 600; color: var(--navy); }
.ec-h3 { font-family: var(--font-serif); font-size: 24px; line-height: 30px; font-weight: 600; color: var(--navy); }
.ec-h4 { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.ec-lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); }
.ec-muted { color: var(--ink-muted); }
@media (max-width: 640px) { .ec-h2 { font-size: 30px; line-height: 36px; } }

/* ---------- Button ---------- */
.ec-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) 22px; border-radius: var(--radius-sm); border: 2px solid transparent; font: 600 16px/20px var(--font-sans); text-decoration: none !important; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ec-btn-primary { background: var(--navy); color: var(--on-dark) !important; }
.ec-btn-primary:hover { background: var(--navy-hover); }
.ec-btn-accent { background: var(--accent); color: var(--on-accent) !important; }
.ec-btn-accent:hover { background: var(--navy); }
.ec-btn-secondary { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.ec-btn-secondary:hover { background: var(--navy); color: var(--on-dark) !important; }
.ec-btn-quiet { background: transparent; color: var(--navy) !important; border-color: var(--line-strong); min-height: 44px; padding: 10px 18px; font-size: 15px; }
.ec-btn-quiet:hover { border-color: var(--navy); }
.ec-btn-ondark { background: var(--on-dark); color: var(--navy) !important; }
.ec-btn-ondark:hover { background: var(--focus-on-dark); }
.ec-btn .ec-chev { width: 16px; height: 16px; transition: transform .2s; flex: none; }
.ec-btn[aria-expanded="true"] .ec-chev { transform: rotate(180deg); }

/* ---------- Placeholder (bracketed, dashed: never color alone) ---------- */
.ec-ph { display: inline-block; padding: 1px 8px; border: 1.5px dashed var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink-muted); font-size: .92em; font-weight: 500; font-style: normal; }
.ec-ph-block { display: block; padding: var(--space-3) var(--space-4); }

/* ---------- Badge / tags ---------- */
.ec-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; }
.ec-badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: 8px 16px 8px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1.5px solid var(--navy); color: var(--navy); font-size: 15px; line-height: 20px; font-weight: 600; }
.ec-badge svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.ec-tag { display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--surface-blush); color: var(--navy); font-size: 14px; line-height: 20px; font-weight: 500; }

/* ---------- Nav ---------- */
.ec-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.ec-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 68px; }
.ec-brand { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--navy) !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 10px; }
.ec-brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); box-shadow: 14px 0 0 var(--sage); margin-right: 14px; }
.ec-nav ul { display: flex; gap: var(--space-1); list-style: none; padding: 0; }
.ec-nav ul a { display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--navy); font-weight: 600; font-size: 16px; text-decoration: none; }
.ec-nav ul a:hover { background: var(--surface-warm); text-decoration: underline; }
.ec-nav ul a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
@media (max-width: 640px) {
  .ec-nav-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; min-height: 0; }
  .ec-nav ul { margin-left: -14px; }
  .ec-nav ul a { padding: 10px 12px; font-size: 15px; }
}

/* ---------- Sections ---------- */
.ec-section { padding: var(--space-24) 0; scroll-margin-top: 68px; }
.ec-section-warm { background: var(--surface-warm); }
.ec-section-head { max-width: 680px; margin-bottom: var(--space-12); display: grid; gap: var(--space-3); }
@media (max-width: 640px) { .ec-section { padding: 64px 0; scroll-margin-top: 96px; } .ec-section-head { margin-bottom: 32px; } }

/* ---------- Hero ---------- */
.ec-hero { background: var(--surface-warm); padding: 88px 0 96px; overflow: hidden; }
.ec-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.ec-hero-copy { display: grid; gap: 20px; }
.ec-hero h1 { font-family: var(--font-serif); font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -.01em; color: var(--navy); }
.ec-hero .ec-lead { max-width: 34ch; color: var(--navy); }
.ec-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 8px; }
.ec-hero-art { width: 100%; max-width: 420px; justify-self: end; }
.ec-hero-art .b1 { fill: var(--rose); } .ec-hero-art .b2 { fill: var(--blush); } .ec-hero-art .b3 { fill: var(--terracotta); } .ec-hero-art .b4 { fill: var(--sage); } .ec-hero-art .b5 { fill: var(--dusty-blue); } .ec-hero-art .b6 { fill: var(--navy); }
@media (max-width: 860px) { .ec-hero-grid { grid-template-columns: 1fr; } .ec-hero-art { max-width: 300px; justify-self: start; order: -1; } }
@media (max-width: 640px) { .ec-hero { padding: 48px 0 64px; } .ec-hero h1 { font-size: 40px; line-height: 44px; } .ec-hero-art { max-width: 220px; } }

/* ---------- Project cards ---------- */
.ec-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); list-style: none; padding: 0; }
.ec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.ec-card:hover, .ec-card.is-open { box-shadow: var(--shadow-card-hover); }
.ec-card.is-open { grid-column: 1 / -1; }
.ec-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-blush); display: grid; place-items: center; padding: var(--space-6); text-align: center; border-bottom: 1px solid var(--line); }
.ec-card-media .ec-num { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 16px/1 var(--font-serif); color: var(--on-dark); background: var(--navy); }
.ec-card-media .ec-shape { position: absolute; right: -24px; bottom: -24px; width: 120px; height: 120px; border-radius: 50%; opacity: .9; }
.ec-card:nth-child(1) .ec-shape { background: var(--terracotta); }
.ec-card:nth-child(2) .ec-shape { background: var(--dusty-blue); }
.ec-card:nth-child(3) .ec-shape { background: var(--sage); }
.ec-card:nth-child(4) .ec-shape { background: var(--rose); }
.ec-card.is-open .ec-card-media { aspect-ratio: 21 / 8; }
.ec-card-body { padding: var(--space-6) 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ec-card-kicker { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sage-strong); }
.ec-card-body > p { color: var(--ink-muted); }
.ec-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: auto; padding-top: 8px; align-items: center; }
.ec-case { border-top: 1px solid var(--line); padding: 28px; background: var(--surface); }
.ec-case[hidden] { display: none; }
.ec-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.ec-case-item { display: grid; gap: 8px; align-content: start; }
.ec-case-item .ec-h4::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--terracotta); margin-right: 10px; vertical-align: 1px; }
.ec-case-item ul { padding-left: 20px; display: grid; gap: 6px; }
.ec-case-item p, .ec-case-item li { color: var(--navy); }
.ec-case-wide { grid-column: 1 / -1; }
.ec-case-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
@media (max-width: 860px) { .ec-projects { grid-template-columns: 1fr; gap: var(--space-6); } .ec-case-grid { grid-template-columns: 1fr; } .ec-card.is-open .ec-card-media { aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .ec-card-body, .ec-case { padding: 20px; } }

/* ---------- About ---------- */
.ec-about { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.ec-headshot { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--surface-blush); display: grid; place-items: center; padding: var(--space-6); text-align: center; position: relative; overflow: hidden; }
.ec-headshot::after { content: ""; position: absolute; left: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--blush); }
.ec-headshot .ec-ph { position: relative; z-index: 1; }
.ec-about-copy { display: grid; gap: 20px; max-width: 640px; }
.ec-about-copy p { font-size: 18px; line-height: 30px; }
@media (max-width: 860px) { .ec-about { grid-template-columns: 1fr; gap: 32px; } .ec-headshot { max-width: 240px; } }

/* ---------- Skills ---------- */
.ec-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.ec-skill { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px 24px 26px; display: grid; gap: 14px; align-content: start; background: var(--surface); }
.ec-skill-head { display: flex; align-items: center; gap: 12px; }
.ec-skill-head span { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.ec-skill:nth-child(1) .ec-skill-head span { background: var(--terracotta); }
.ec-skill:nth-child(2) .ec-skill-head span { background: var(--dusty-blue); }
.ec-skill:nth-child(3) .ec-skill-head span { background: var(--sage); }
.ec-skill:nth-child(4) .ec-skill-head span { background: var(--rose); }
.ec-skill .ec-badges { gap: 8px; }
@media (max-width: 640px) { .ec-skills { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.ec-contact { background: var(--navy); color: var(--on-dark); }
.ec-contact .ec-h2, .ec-contact .ec-eyebrow { color: var(--on-dark); }
.ec-contact .ec-eyebrow { color: var(--focus-on-dark); }
.ec-contact a:not(.ec-btn) { color: var(--focus-on-dark); }
.ec-contact :focus-visible { outline-color: var(--focus-on-dark); }
.ec-contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.ec-contact-lead { font-size: 22px; line-height: 32px; max-width: 30ch; margin-top: 16px; }
.ec-contact-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.ec-contact-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.22); }
.ec-contact-list .lbl { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--focus-on-dark); }
.ec-contact-list a { font-size: 19px; font-weight: 600; }
.ec-contact .ec-ph { background: transparent; color: var(--on-dark); border-color: var(--focus-on-dark); }
.ec-footer { background: var(--navy); color: var(--on-dark); border-top: 1px solid rgba(255,255,255,.22); padding: 24px 0; font-size: 14px; }
@media (max-width: 860px) { .ec-contact-grid { grid-template-columns: 1fr; gap: 24px; } }

@media (prefers-reduced-motion: reduce) { .ec-root *, .ec-root *::before, .ec-root *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Case study page ---------- */
.ec-card-link-title a { color: inherit; text-decoration: none; }
.ec-card-link-title a:hover { text-decoration: underline; }
.ec-proj-hero { background: var(--surface-warm); padding: 40px 0 64px; }
.ec-crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-bottom: 32px; }
.ec-crumb svg { width: 16px; height: 16px; }
.ec-proj-head { display: grid; gap: 16px; max-width: 820px; }
.ec-proj-head h1 { font-family: var(--font-serif); font-size: 48px; line-height: 54px; font-weight: 600; letter-spacing: -.01em; color: var(--navy); }
.ec-proj-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line-strong); }
.ec-proj-meta div { display: grid; gap: 4px; align-content: start; }
.ec-proj-meta dt { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ec-proj-meta dd { margin: 0; color: var(--navy); }
.ec-proj-cover { margin-top: 48px; position: relative; aspect-ratio: 16 / 8; border-radius: var(--radius-lg); background: var(--surface-blush); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.ec-proj-cover .ec-shape { position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; border-radius: 50%; }
.ec-proj-cover .ec-ph { position: relative; z-index: 1; }
.ec-cs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 80px 0 32px; }
.ec-toc { position: sticky; top: 96px; align-self: start; }
.ec-toc p { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.ec-toc ol { list-style: none; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.ec-toc a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; }
.ec-toc a:hover { border-left-color: var(--accent); text-decoration: underline; }
.ec-cs-body { display: grid; gap: 56px; max-width: 760px; }
.ec-cs-sec { display: grid; gap: 14px; scroll-margin-top: 96px; }
.ec-cs-sec h2 { font-family: var(--font-serif); font-size: 30px; line-height: 36px; font-weight: 600; color: var(--navy); display: flex; align-items: baseline; gap: 14px; }
.ec-cs-sec h2 .n { font: 700 14px/1 var(--font-sans); letter-spacing: .06em; color: var(--accent); }
.ec-cs-sec ul { padding-left: 22px; display: grid; gap: 8px; }
.ec-cs-sec p, .ec-cs-sec li { font-size: 18px; line-height: 30px; }
.ec-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0 !important; }
.ec-gallery figure { margin: 0; display: grid; gap: 10px; }
.ec-gallery .ec-shot { aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: var(--surface-blush); border: 1px solid var(--line); display: grid; place-items: center; padding: 12px; text-align: center; }
.ec-gallery figcaption { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.ec-cs-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: var(--surface-warm); }
.ec-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 32px 0 96px; }
.ec-pager a { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); text-decoration: none; color: var(--navy); }
.ec-pager a:hover { border-color: var(--navy); background: var(--surface-warm); }
.ec-pager a:hover .t { text-decoration: underline; }
.ec-pager .d { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ec-pager .t { font-family: var(--font-serif); font-size: 20px; line-height: 26px; font-weight: 600; }
.ec-pager .next { text-align: right; }
@media (max-width: 960px) { .ec-cs { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; } .ec-toc { position: static; } .ec-toc ol { display: flex; flex-wrap: wrap; border-left: 0; gap: 4px; } .ec-toc a { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); margin: 0; padding: 6px 12px; } }
@media (max-width: 760px) { .ec-proj-meta { grid-template-columns: 1fr; gap: 16px; } .ec-gallery { grid-template-columns: 1fr; } .ec-pager { grid-template-columns: 1fr; } .ec-pager .next { text-align: left; } }
@media (max-width: 640px) { .ec-proj-head h1 { font-size: 34px; line-height: 40px; } .ec-proj-cover { aspect-ratio: 4 / 3; margin-top: 32px; } .ec-cs-sec h2 { font-size: 26px; line-height: 32px; } .ec-cs-sec p, .ec-cs-sec li { font-size: 17px; line-height: 28px; } }

/* ---------- Real project images ---------- */
.ec-card-media.has-img, .ec-proj-cover.has-img { background: #ffffff; padding: 0; }
.ec-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.ec-card-media .ec-num { z-index: 1; }
.ec-btn .ec-ext { width: 16px; height: 16px; flex: none; }

/* ---------- Case study: context, highlights, credit ---------- */
.ec-note { display: grid; gap: 10px; padding: 24px 28px; border-radius: var(--radius-md); background: var(--surface-warm); border: 1px solid var(--line); scroll-margin-top: 96px; }
.ec-note h2, .ec-credit h2 { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ec-note p { font-size: 18px; line-height: 30px; color: var(--navy); }
.ec-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ec-hl { display: grid; gap: 8px; align-content: start; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.ec-hl h3 { font-family: var(--font-serif); font-size: 20px; line-height: 26px; font-weight: 600; color: var(--navy); }
.ec-hl h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--terracotta); margin-bottom: 12px; }
.ec-cs-sec .ec-hl p { font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.ec-credit { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.ec-credit p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
@media (max-width: 760px) { .ec-highlights { grid-template-columns: 1fr; } .ec-note { padding: 20px; } }

/* ---------- Screenshot thumbnails + larger view ---------- */
.ec-gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ec-gallery-thumbs figure { gap: 10px; align-content: start; }
.ec-thumb { display: flex; flex-direction: column; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: #ffffff; overflow: hidden; cursor: zoom-in; text-align: left; }
.ec-thumb-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; }
.ec-thumb-frame img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; display: block; }
.ec-thumb-hint { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface-warm); color: var(--navy); font: 600 14px/18px var(--font-sans); }
.ec-thumb-hint svg { width: 12px; height: 12px; flex: none; }
.ec-thumb:hover .ec-thumb-hint { text-decoration: underline; }
.ec-thumb:hover { border-color: var(--navy); }
.ec-gallery-thumbs figcaption { font-size: 15px; line-height: 22px; }
.ec-lightbox { width: min(1200px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--navy); overflow: auto; }
.ec-lightbox::backdrop { background: rgba(27,42,65,.8); }
.ec-lightbox-bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ec-lightbox-cap { font: 500 15px/22px var(--font-sans); color: var(--navy); margin: 0; }
.ec-lightbox img { display: block; width: 100%; height: auto; }
.ec-lightbox :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 760px) { .ec-gallery-thumbs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ec-gallery-thumbs { grid-template-columns: 1fr; } }

/* ---------- Wide figure (e.g. feedback visual): full width, natural proportions ---------- */
.ec-figure { margin: 8px 0 0; display: grid; gap: 10px; }
.ec-figure figcaption { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.ec-thumb-wide .ec-thumb-frame { aspect-ratio: auto; }
.ec-thumb-wide .ec-thumb-frame img { position: static; width: 100%; height: auto; }
.ec-method { font-size: 15px !important; line-height: 24px !important; color: var(--ink-muted); border-left: 0; padding-top: 4px; }

/* ---------- Nav: allow wrap with more links ---------- */
.ec-nav ul { flex-wrap: wrap; }

/* ---------- Homepage: Additional Work preview ---------- */
.ec-section#work { padding-bottom: 48px; }
.ec-aw-preview { padding: 0 0 96px; }
.ec-aw-preview-box { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 28px 32px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-warm); }
.ec-aw-preview-text { display: grid; gap: 8px; max-width: 640px; }
.ec-aw-preview-text p { color: var(--ink-muted); }
@media (max-width: 760px) { .ec-aw-preview-box { flex-direction: column; align-items: flex-start; padding: 24px 20px; } .ec-aw-preview { padding-bottom: 64px; } }

/* ---------- Additional Work page ---------- */
.ec-aw-hero { padding-bottom: 48px; }
.ec-aw-jump { margin-top: 32px; }
.ec-aw-jump ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ec-aw-jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.ec-aw-jump a:hover { border-color: var(--navy); text-decoration: underline; }
.ec-aw-list { display: grid; gap: 0; padding-top: 24px; }
.ec-aw-item { display: grid; gap: 24px; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.ec-aw-item:last-of-type { border-bottom: 0; }
.ec-aw-text { display: grid; gap: 12px; max-width: 760px; align-content: start; }
.ec-aw-text h2 { font-family: var(--font-serif); font-size: 32px; line-height: 38px; font-weight: 600; color: var(--navy); }
.ec-aw-text > p { font-size: 18px; line-height: 29px; }
.ec-aw-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-aw-cat { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding-top: 5px; }
.ec-aw-label { display: inline-block; padding: 3px 10px; border: 1.5px solid var(--navy); border-radius: var(--radius-pill); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--navy); }
.ec-aw-focus { color: var(--navy); }
.ec-aw-meta { font-size: 15px !important; line-height: 22px !important; color: var(--ink-muted); }
.ec-aw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ec-aw-sub { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-top: 8px !important; }
.ec-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: #000; box-shadow: var(--shadow-card); }
.ec-aw-media { max-width: 960px; }
.ec-aw-split { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); column-gap: 56px; align-items: start; }
.ec-aw-fig { margin: 0; display: grid; gap: 10px; align-content: start; }
.ec-aw-fig figcaption { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.ec-aw-excerpts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; max-width: 1000px; }
.ec-aw-excerpts .ec-aw-fig:first-child { grid-column: 1 / -1; }
.ec-nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.ec-details { border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); margin-top: 4px; }
.ec-details summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--navy); list-style: none; display: flex; align-items: center; gap: 10px; border-radius: var(--radius-md); }
.ec-details summary::-webkit-details-marker { display: none; }
.ec-details summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; }
.ec-details[open] summary::before { transform: rotate(45deg); }
.ec-details summary:hover { text-decoration: underline; }
.ec-details[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.ec-details-body { padding: 18px; }
.ec-details-body .ec-aw-fig { max-width: 640px; }
.ec-aw-dl { margin: 0; padding: 6px 18px 18px; display: grid; gap: 0; }
.ec-aw-dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ec-aw-dl > div:last-child { border-bottom: 0; }
.ec-aw-dl dt { font-weight: 700; color: var(--navy); }
.ec-aw-dl dd { margin: 0; color: var(--navy); }
.ec-aw-status { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: var(--radius-pill); font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--navy); color: var(--on-dark); }
.ec-aw-status-plan { background: transparent; color: var(--navy); border: 1.5px dashed var(--navy); }
.ec-align { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; counter-reset: al; }
.ec-align li { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px 22px; background: var(--surface); counter-increment: al; }
.ec-align li + li { border-left: 1px solid var(--line); }
.ec-align li:nth-child(1) { background: var(--surface-warm); }
.ec-align li + li::before { content: ""; position: absolute; left: -9px; top: 26px; width: 16px; height: 16px; background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); }
.ec-align-k { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ec-align-k::before { content: counter(al) ". "; }
.ec-align p { font-size: 16px; line-height: 26px; color: var(--navy); }
.ec-aw-back { padding: 16px 0 96px; }
.ec-aw-back .ec-chev { width: 16px; height: 16px; }
@media (max-width: 960px) { .ec-aw-split { grid-template-columns: 1fr; } .ec-aw-split .ec-aw-media { max-width: 420px; } }
@media (max-width: 760px) {
  .ec-aw-excerpts { grid-template-columns: 1fr; }
  .ec-align { grid-template-columns: 1fr; }
  .ec-align li + li { border-left: 0; border-top: 1px solid var(--line); }
  .ec-align li + li::before { left: 26px; top: -9px; transform: rotate(135deg); }
  .ec-aw-dl > div { grid-template-columns: 1fr; gap: 4px; }
  .ec-aw-text h2 { font-size: 26px; line-height: 32px; }
  .ec-aw-item { padding: 40px 0; }
}
.ec-aw-excerpts .ec-aw-fig:first-child { max-width: 760px; }
@media (max-width: 640px) {
  .ec-nav ul { margin-left: -8px; gap: 0; }
  .ec-nav ul a { padding: 10px 8px; font-size: 14px; }
}

/* ---------- Headshot photo ---------- */
.ec-headshot.has-img { aspect-ratio: 1 / 1; border-radius: 50%; padding: 0; background: var(--surface-blush); box-shadow: 0 0 0 8px var(--surface), 0 0 0 9px var(--line); }
.ec-headshot.has-img::after { display: none; }
.ec-headshot.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ec-contact-list a { overflow-wrap: anywhere; }

/* ---------- About page ---------- */
.ec-ab-hero { background: var(--surface-warm); padding: 72px 0 88px; }
.ec-ab-intro { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 72px; align-items: center; }
.ec-ab-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 35%; border-radius: 50%; box-shadow: 0 0 0 10px var(--surface), 0 0 0 11px var(--line); }
.ec-ab-copy { display: grid; gap: 18px; max-width: 640px; }
.ec-ab-copy h1 { font-family: var(--font-serif); font-size: 48px; line-height: 54px; font-weight: 600; letter-spacing: -.01em; color: var(--navy); margin-bottom: 4px; }
.ec-ab-copy p:not(.ec-eyebrow) { font-size: 18px; line-height: 30px; color: var(--navy); }
.ec-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ec-step { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.ec-step-n { font: 600 28px/1 var(--font-serif); color: var(--accent); }
.ec-step h3, .ec-bring h3 { font-family: var(--font-serif); font-size: 21px; line-height: 27px; font-weight: 600; color: var(--navy); }
.ec-step p, .ec-bring p { font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.ec-bring-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ec-bring { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.ec-bring h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--terracotta); margin-bottom: 14px; }
.ec-skills-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-skill:nth-child(5) .ec-skill-head span { background: var(--blush); }
.ec-ai-note { font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.ec-ab-two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.ec-ab-two > div { display: grid; gap: 14px; align-content: start; }
.ec-h2-sm { font-size: 28px; line-height: 34px; }
.ec-role { margin-top: 12px; padding: 24px 26px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.ec-role h3 { font-family: var(--font-serif); font-size: 22px; line-height: 28px; font-weight: 600; color: var(--navy); }
.ec-role-org { font-weight: 600; color: var(--sage-strong); }
.ec-role p:last-child { color: var(--navy); margin-top: 6px; }
.ec-cred-h { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-top: 10px !important; }
.ec-cred { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.ec-cred li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ec-cred strong { color: var(--navy); font-weight: 600; }
.ec-cred span { color: var(--ink-muted); font-size: 15px; }
.ec-ab-close { display: grid; gap: 16px; max-width: 760px; }
.ec-ab-close .ec-contact-lead { max-width: 52ch; margin: 0; }
.ec-btn-outline-dark { background: transparent; color: var(--on-dark) !important; border-color: var(--on-dark); }
.ec-btn-outline-dark:hover { background: var(--navy-hover); }
.ec-ab-links a { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ec-ab-links .ec-ext { width: 14px; height: 14px; }
.ec-about-copy > div { margin-top: 4px; }
@media (max-width: 1000px) { .ec-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ec-skills-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ec-ab-intro { grid-template-columns: 1fr; gap: 36px; }
  .ec-ab-photo { max-width: 260px; }
  .ec-bring-grid, .ec-ab-two { grid-template-columns: 1fr; }
  .ec-ab-two { gap: 48px; }
}
@media (max-width: 640px) {
  .ec-ab-hero { padding: 40px 0 56px; }
  .ec-ab-copy h1 { font-size: 34px; line-height: 40px; }
  .ec-ab-copy p:not(.ec-eyebrow) { font-size: 17px; line-height: 28px; }
  .ec-steps, .ec-skills-3 { grid-template-columns: 1fr; }
  .ec-ab-photo { max-width: 200px; }
}
