/* ------------------------------------------------------------------
   Mandy Hayes portfolio — additions on top of the Brilio theme
------------------------------------------------------------------- */
:root {
  --primary-color: #7C1646;          /* signature berry (white text passes AA) */
  --mh-accent-soft: #E8EFFF;
  --mh-ink: #121117;
}
.odd { --mh-accent-soft: #2A1522; }

/* accessibility */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10000; background: var(--primary-color); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* nav theme switch */
.navbar-nav.items { gap: 0; }
.theme-switch i { font-size: 1.05rem; }

/* brand marquee as text */
.marquee ul .item .marquee-item .marquee-content.marquee-text {
  width: auto; height: auto; padding: 0 18px; text-align: center;
  font-family: var(--primary-font); font-weight: 700; font-size: 1.55rem; letter-spacing: -.01em;
  color: var(--primary-t-color);
}
.odd .marquee ul .item .marquee-item .marquee-content.marquee-text { color: var(--secondary-t-color); }

/* impact slides (replace testimonials) */
.impact-metric { font-family: var(--primary-font); font-weight: 700; font-size: clamp(3.2rem, 7vw, 5.5rem); line-height: 1; color: var(--primary-color); letter-spacing: -.03em; }
.testimonial .client-name { text-transform: none; }

/* cards */
.card-kicker { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.card-summary { font-size: 1rem; line-height: 1.55; margin: 0 0 1rem; color: var(--primary-p-color); }
.odd .card-summary { color: var(--secondary-p-color); }
.portfolio-item .card-overlay .card-kicker { color: #fff; }
.work-intro { max-width: 760px; }

/* case study */
.case-study { padding-top: 160px; }
.case-crumbs { font-size: .95rem; margin-bottom: 28px; opacity: .85; }
.case-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.case-study .heading p { font-size: 1.15rem; line-height: 1.7; }
.case-study h1 { margin-top: 18px; }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-color); }
.odd .eyebrow { color: #F09BBF; }
.case-section { margin-top: 90px; }
.case-lede { max-width: 760px; font-size: 1.1rem; }
.case-list { list-style: none; padding: 0; margin: 0; counter-reset: did; }
.case-list li { position: relative; padding: 18px 0 18px 58px; border-bottom: 1px solid var(--primary-l-color); font-size: 1.1rem; line-height: 1.65; counter-increment: did; }
.case-list li::before { content: counter(did, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-weight: 700; color: var(--primary-color); font-size: 1rem; letter-spacing: .06em; }
.odd .case-list li { border-color: #2b2a2f; }
.case-outcome { background: var(--mh-accent-soft); border-radius: 22px; padding: 34px; position: sticky; top: 120px; }
.case-outcome p { font-size: 1.2rem; line-height: 1.6; color: var(--primary-t-color); margin-bottom: 0; }
.odd .case-outcome p { color: var(--secondary-t-color); }
.case-metrics { margin-top: 50px; }
.case-metric { border-top: 2px solid var(--primary-color); padding-top: 18px; }
.case-metric .num { display: block; font-family: var(--primary-font); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; line-height: 1; color: var(--primary-t-color); letter-spacing: -.02em; }
.odd .case-metric .num { color: var(--secondary-t-color); }
.case-metric .lbl { display: block; margin-top: 8px; font-size: 1rem; }
.case-note { font-size: .95rem; opacity: .8; margin-top: 14px; font-style: italic; }
.case-figure { margin: 0 0 56px; }
.case-figure img { width: 100%; height: auto; border-radius: 18px; display: block; box-shadow: 0 18px 50px rgba(10, 20, 30, .12); }
.case-figure figcaption { margin-top: 14px; font-size: 1rem; opacity: .85; }
.case-gallery { display: block; }
.case-next { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--primary-l-color); }
.odd .case-next { border-color: #2b2a2f; }
.case-nav { display: inline-flex; flex-direction: column; gap: 4px; }
.case-nav span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.case-nav strong { font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-family: var(--primary-font); }
.case-nav:hover strong { color: var(--primary-color); }

/* before / after slider */
.ba-slider { position: relative; margin-top: 26px; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(10, 20, 30, .16); user-select: none; aspect-ratio: 4 / 3; background: #ddd; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; max-width: none; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ba-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba-slider input[type=range]:focus-visible + .ba-handle, .ba-slider:focus-within .ba-handle i { outline: 3px solid var(--primary-color); }
.ba-label { position: absolute; top: 18px; z-index: 2; padding: 7px 16px; border-radius: 100px; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.ba-label-before { left: 18px; background: #fff; color: #111; }
.ba-label-after { right: 18px; background: var(--primary-color); color: #fff; }
.ba-frame { margin: 0 0 24px; }
.ba-frame figcaption { margin-bottom: 12px; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.ba-tag { display: inline-block; padding: 4px 12px; border-radius: 100px; background: #fff; color: #111; border: 1px solid #ccc; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ba-tag.after { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.ba-scroll { height: 78vh; max-height: 900px; overflow-y: auto; border-radius: 18px; border: 1px solid var(--primary-l-color); background: #fff; box-shadow: 0 18px 50px rgba(10, 20, 30, .10); overscroll-behavior: contain; }
.odd .ba-scroll { border-color: #2b2a2f; }
.ba-scroll img { width: 100%; height: auto; display: block; border-radius: 0; box-shadow: none; }
.case-figure.tall .ba-scroll { height: 82vh; }

/* about */
.breadcrumb-section .heading .title img { width: 120px; height: 120px; object-fit: cover; border-radius: 100px; vertical-align: middle; }
.about-bio p { margin-bottom: 1rem; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chip { display: inline-block; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--primary-b-color); font-size: .95rem; }
.cred-title { margin: 0 0 10px; }

/* notes */
.blog-single .lead-summary { font-size: 1.3rem; line-height: 1.6; font-weight: 500; }
.blog-single .author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.blog-item .card-overlay .logo img { border-radius: 50%; object-fit: cover; }

@media (max-width: 767px) {
  .case-study { padding-top: 120px; }
  .case-section { margin-top: 60px; }
  .ba-scroll { height: 70vh; }
  .breadcrumb-section .heading .title img { width: 70px; height: 70px; }
  .case-outcome { position: static; margin-top: 30px; }
}
.portfolio-terms { display: inline-flex; flex-wrap: wrap; gap: .35em .9em; }
.portfolio-meta .portfolio-terms { margin-right: 1rem; }
.case-crumbs a, .case-nav, .case-nav:hover { color: inherit; }
.case-nav strong { color: var(--primary-t-color); }
.odd .case-nav strong { color: var(--secondary-t-color); }
.case-nav:hover strong { color: var(--primary-color); }

/* Executive case-study summary: concise Goal / What I Did / Outcome */
.case-summary { margin-top: 64px; }
.case-summary-item { height: 100%; padding: 28px 0; border-top: 1px solid var(--primary-l-color); }
.case-summary-item p { margin-bottom: 0; font-size: 1.08rem; line-height: 1.6; color: var(--primary-p-color); }
.odd .case-summary-item { border-color: #2b2a2f; }
.odd .case-summary-item p { color: var(--secondary-p-color); }
.live-site-frame { width: 100%; height: min(78vh, 900px); min-height: 620px; overflow: hidden; border-radius: 18px; border: 1px solid var(--primary-l-color); background: #fff; box-shadow: 0 18px 50px rgba(10,20,30,.10); }
.live-site-frame iframe { display:block; width:100%; height:100%; border:0; background:#fff; }
.odd .live-site-frame { border-color:#2b2a2f; }
@media (max-width: 767px) { .case-summary { margin-top: 42px; } .case-summary-item { padding: 22px 0; } .live-site-frame { min-height: 560px; height: 72vh; } }

/* 2026 executive portfolio simplification */
@media (min-width: 992px) {
  .portfolio-filter .filter-items > .filter-item { width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important; }
}
.card-terms { display:flex; flex-wrap:wrap; gap:.35rem 1rem; align-items:center; }
.card-terms .terms.badge,
.card-terms .terms.badge.outlined {
  border:0 !important; border-radius:0 !important; padding:0 !important; background:transparent !important;
  box-shadow:none !important; font-size:.72rem; line-height:1.4; letter-spacing:.08em; text-transform:uppercase;
  opacity:.68; font-weight:600;
}
.card-terms .terms + .terms::before { content:"·"; margin-right:1rem; opacity:.6; }
.case-study .heading { max-width: 920px; }
.case-study .case-summary { margin-top: 2.5rem; }
.case-study .case-summary-item p { max-width: 34rem; }
.work-intro { max-width: 760px; }

/* Measurable impact — evidence, not testimonials */
.impact-proof { padding: 100px 0 110px; }
.impact-proof-head { max-width: 820px; margin-bottom: 52px; }
.impact-proof-head .title { margin: 10px 0 16px; }
.impact-proof-head p { max-width: 720px; margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--primary-p-color); }
.odd .impact-proof-head p { color: var(--secondary-p-color); }
.impact-proof-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--primary-l-color); border-left:1px solid var(--primary-l-color); }
.odd .impact-proof-grid { border-color:#2b2a2f; }
.impact-proof-item { min-width:0; padding:32px 28px 34px; border-right:1px solid var(--primary-l-color); border-bottom:1px solid var(--primary-l-color); }
.odd .impact-proof-item { border-color:#2b2a2f; }
.impact-proof-item strong { display:block; font-family:var(--primary-font); font-size:clamp(3rem,6vw,5.2rem); line-height:.95; letter-spacing:-.045em; color:var(--primary-color); }
.impact-proof-item span { display:block; margin-top:18px; font-family:var(--primary-font); font-size:1.12rem; font-weight:650; color:var(--primary-t-color); }
.odd .impact-proof-item span { color:var(--secondary-t-color); }
.impact-proof-item small { display:block; margin-top:7px; font-size:.86rem; letter-spacing:.02em; color:var(--primary-p-color); opacity:.8; }
.odd .impact-proof-item small { color:var(--secondary-p-color); }
@media (max-width:991px){.impact-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:575px){.impact-proof{padding:70px 0 80px}.impact-proof-head{margin-bottom:34px}.impact-proof-grid{grid-template-columns:1fr}.impact-proof-item{padding:26px 20px}.impact-proof-item strong{font-size:3.5rem}}


/* 2026 portfolio polish: readable hierarchy, normal cursor, balanced copy */
.navbar-brand .brand-role { font-weight: 400; opacity: .68; font-size: .78em; }
.impact-proof .eyebrow { font-size: 1rem; font-weight: 700; letter-spacing: .12em; }
.impact-proof-head .title { font-size: clamp(2.5rem, 4.8vw, 4.75rem); }
.impact-proof-head p { font-size: clamp(1.2rem, 1.55vw, 1.42rem); line-height: 1.55; max-width: 780px; }
.hero-content .sub-title, .about-bio p, .work-intro, .contact-info > p { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.6; }
h1,h2,h3,h4,h5,h6,.title,.sub-title,.about-bio p,.impact-proof-head p,.contact-info p { text-wrap: pretty; }
h1,h2,h3,.title { text-wrap: balance; }
html, body, a, button, input, textarea, select, label { cursor: auto !important; }
a, button, [role="button"], input[type="submit"], input[type="button"], label[for] { cursor: pointer !important; }
@media (max-width: 575px) { .navbar-brand .brand-role { display:none; } }

/* Career-scale highlight */
.triad-career-highlight{padding:clamp(3.5rem,7vw,7rem) 0;border-top:1px solid rgba(127,127,127,.18);}
.triad-career-highlight .section-eyebrow{font-size:clamp(.85rem,1vw,1rem);font-weight:700;letter-spacing:.12em;color:#7C1646;}
.triad-career-highlight .h2{max-width:760px;text-wrap:balance;}
.triad-career-highlight p{font-size:clamp(1.05rem,1.3vw,1.3rem);line-height:1.55;}

/* added: multi-image galleries & logo tiles */
.case-section h2.h3 { margin-top: .5rem; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.case-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-grid .case-figure.span-2 { grid-column: 1 / -1; }
.case-figure.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.case-figure.logo .logo-tile { background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(10,20,30,.10); padding: clamp(28px, 6vw, 72px); display: grid; place-items: center; }
.case-figure.logo .logo-tile img { box-shadow: none; border-radius: 0; max-width: min(100%, 560px); }
.case-figure.half-logo .logo-tile { aspect-ratio: 16 / 11; }
.case-figure.half-logo .logo-tile img { max-height: 100%; width: auto; max-width: 100%; }
@media (max-width: 767px) { .case-grid, .case-grid.three { grid-template-columns: 1fr; } }

/* homepage: selected-work intro + range grid */
.works .intro-sub { max-width: 640px; margin: 10px 0 0; font-size: 1.08rem; line-height: 1.6; color: var(--primary-p-color); }
.odd .works .intro-sub { color: var(--secondary-p-color); }
.range-section { padding: 110px 0 40px; }
.range-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.range-head .title { margin: 10px 0 0; }
.range-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.range-tile { display: block; color: inherit; text-decoration: none; }
.range-tile .thumb { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--mh-accent-soft); box-shadow: 0 14px 40px rgba(10,20,30,.10); }
.range-tile .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .6s ease; }
.range-tile:hover .thumb img, .range-tile:focus-visible .thumb img { transform: scale(1.04); }
.range-tile .label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.range-tile .label strong { font-family: var(--primary-font); font-size: 1.15rem; color: var(--primary-t-color); }
.odd .range-tile .label strong { color: var(--secondary-t-color); }
.range-tile .label span { font-size: .9rem; opacity: .75; text-align: right; }
.range-tile:hover .label strong { color: var(--primary-color); }
@media (max-width: 991px) { .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .range-grid { grid-template-columns: 1fr; gap: 22px; } .range-section { padding-top: 80px; } }

/* visible FAQ (mirrors FAQPage schema) */
.faq-section { padding: 100px 0; }
.faq-list { border-top: 1px solid var(--primary-l-color); }
.odd .faq-list, .odd .faq-item { border-color: #2b2a2f; }
.faq-item { border-bottom: 1px solid var(--primary-l-color); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--primary-font); font-size: 1.2rem; font-weight: 600; color: var(--primary-t-color); }
.odd .faq-item summary { color: var(--secondary-t-color); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 1.6rem; color: var(--primary-color); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 24px; max-width: 760px; font-size: 1.05rem; line-height: 1.65; }
.triad-link { color: var(--primary-color); display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.odd .triad-link { color: #F09BBF; }

/* Accessible neutral typography — preserve the editorial palette. */
:root { --primary-t-color-2: #656B75; }
body:not(.odd) { --secondary-p-color: #555B65; }
body:not(.odd) .portfolio-item .card-caption,
body:not(.odd) .portfolio-item .card-meta,
body:not(.odd) .portfolio-item .card-description,
body:not(.odd) .card-subtitle,
body:not(.odd) .case-note,
body:not(.odd) .case-figure figcaption,
body:not(.odd) .case-nav span,
body:not(.odd) .case-crumbs,
body:not(.odd) .text-muted { color: #555B65 !important; opacity: 1; }
body.odd { --secondary-p-color: #C2C7D0; --primary-t-color-2: #C2C7D0; }
body.odd .text-muted, body.odd .case-note, body.odd .case-figure figcaption,
body.odd .case-nav span, body.odd .case-crumbs { color: #C2C7D0 !important; opacity: 1; }

/* Selected editorial statement words only — signature berry. */
body:not(.odd) .hero-section .section-title > span { color: #7C1646 !important; }
body:not(.odd) .cta:not(.layout-2) .cta-text .line-item { color: #7C1646 !important; }
body.odd .hero-section .section-title > span,
body.odd .cta:not(.layout-2) .cta-text .line-item { color: #F09BBF !important; }

/* dark mode: pink accent focus ring */
.odd :focus-visible, body.odd :focus-visible { outline-color: #F09BBF; }
