/* ============================================================
   LOUAY KHADDAJ — PORTFOLIO V3
   ------------------------------------------------------------
   TABLE OF CONTENTS
   01. Design tokens & reset
   02. Shared layout & typography
   03. Navigation
   04. Hero
   05. About
   06. Experience accordion
   07. Expertise filters & cards
   08. Education
   09. Contact
   10. Footer
   11. Scroll reveal
   12. Responsive design
   13. Reduced-motion accessibility
   ============================================================ */

/* 01. DESIGN TOKENS & RESET
   Central variables make the visual system easy to change. */
:root {
  --bg: #0b1120;
  --bg-soft: #0e1728;
  --surface: #142238;
  --surface-hover: #182a45;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, .10);
  --border: rgba(148, 163, 184, .18);
  --shadow: 0 24px 70px rgba(0, 0, 0, .25);
  --radius: 22px;
  --container: 1400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* 02. SHARED LAYOUT & TYPOGRAPHY */
.container { width: min(var(--container), calc(100% - 96px)); margin-inline: auto; }
.section { padding: 120px 0; }
.section-tinted { background: linear-gradient(180deg, rgba(20,34,56,.48), rgba(14,23,40,.35)); border-block: 1px solid rgba(148,163,184,.08); }
.section-label { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; margin-bottom: 18px; }
.section-heading h2 { max-width: 720px; font-size: clamp(36px, 4vw, 62px); line-height: 1.08; letter-spacing: -.04em; }
.section-heading h2 span { color: var(--accent); }
.section-heading > p:not(.section-label), .split-heading > p { max-width: 580px; color: var(--muted); }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 58px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 750; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.button:hover { transform: translateY(-3px); }
.button-solid { background: var(--accent); color: #06101d; }
.button-solid:hover { background: #7dd3fc; }
.button-outline { border-color: rgba(56,189,248,.55); color: var(--accent); background: rgba(56,189,248,.03); }
.button-outline:hover { background: var(--accent-soft); border-color: var(--accent); }

/* 03. NAVIGATION
   Fixed glass-like bar. JavaScript adds .scrolled after the user
   moves down the page, slightly increasing its visual separation. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.site-header.scrolled { background: rgba(11,17,32,.88); backdrop-filter: blur(18px); border-color: var(--border); box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.logo { font-size: 29px; font-weight: 900; letter-spacing: -.06em; }
.logo span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav-menu a { position: relative; color: var(--muted); font-size: 13px; font-weight: 650; transition: color .2s ease; }
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 0; height: 2px; background: var(--accent); transition: width .2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 19px; height: 2px; margin: 5px auto; background: var(--text); transition: transform .2s ease; }

/* 04. HERO
   Wide two-column layout uses more of large displays. The portrait
   uses rounded corners rather than a circle to preserve the full pose. */
.hero { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 100px; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent); pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-orb-one { width: 520px; height: 520px; right: 2%; top: 16%; background: rgba(56,189,248,.10); }
.hero-orb-two { width: 360px; height: 360px; left: -10%; bottom: -10%; background: rgba(14,165,233,.06); }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .75fr); align-items: center; gap: clamp(70px, 9vw, 150px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; margin-bottom: 25px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(56,189,248,.09); }
.hero-kicker { color: var(--muted); font-size: clamp(18px, 1.4vw, 22px); font-weight: 650; margin-bottom: 12px; }
.hero h1 { max-width: 850px; font-size: clamp(58px, 6.1vw, 94px); line-height: .99; letter-spacing: -.055em; }
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-summary { max-width: 700px; margin: 30px 0 34px; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-signals { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-signals div { padding-right: 22px; }
.hero-signals div + div { padding-left: 22px; border-left: 1px solid var(--border); }
.hero-signals strong, .hero-signals span { display: block; }
.hero-signals strong { font-size: 13px; margin-bottom: 3px; }
.hero-signals span { color: var(--muted); font-size: 11px; }
.hero-portrait-wrap { position: relative; width: min(100%, 480px); margin-left: auto; }
.portrait-accent { position: absolute; inset: 8% -8% -6% 12%; border: 1px solid rgba(56,189,248,.22); border-radius: 46px; transform: rotate(4deg); }
.hero-portrait { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid rgba(56,189,248,.5); border-radius: 40px; background: var(--surface); box-shadow: var(--shadow); }
.hero-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform .55s ease; }
.hero-portrait:hover img { transform: scale(1.025); }
.location-card { position: absolute; left: -36px; bottom: 34px; display: flex; align-items: center; gap: 12px; min-width: 210px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(11,17,32,.88); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.location-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.location-card small, .location-card strong { display: block; }
.location-card small { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.location-card strong { font-size: 12px; }

/* 05. ABOUT */
.about-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(70px, 9vw, 150px); align-items: start; }
.about-content > p { max-width: 760px; color: var(--muted); font-size: 17px; }
.about-content .lead { color: #d8e1ec; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.55; margin-bottom: 18px; }
.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 42px; }
.focus-card { min-height: 190px; padding: 25px; border: 1px solid var(--border); border-radius: 18px; background: rgba(20,34,56,.58); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.focus-card:hover { transform: translateY(-5px); border-color: rgba(56,189,248,.5); background: var(--surface-hover); }
.focus-card > span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.focus-card h3 { margin: 22px 0 8px; font-size: 18px; }
.focus-card p { color: var(--muted); font-size: 14px; }

/* 06. EXPERIENCE ACCORDION */
.timeline { position: relative; max-width: 1200px; margin-left: auto; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 28px; bottom: 28px; width: 1px; background: linear-gradient(var(--accent), var(--border)); }
.experience-card { position: relative; margin-left: 42px; border-bottom: 1px solid var(--border); }
.experience-trigger { width: 100%; display: grid; grid-template-columns: 150px minmax(0,1fr) 40px; align-items: center; gap: 28px; padding: 28px 8px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.timeline-marker { position: absolute; left: -38px; width: 13px; height: 13px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); transition: background .2s ease, box-shadow .2s ease; }
.experience-card.is-open .timeline-marker { background: var(--accent); box-shadow: 0 0 0 6px rgba(56,189,248,.08); }
.experience-date { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.experience-title strong, .experience-title small { display: block; }
.experience-title strong { font-size: clamp(20px, 2vw, 28px); }
.experience-title small { color: var(--muted); margin-top: 4px; font-size: 13px; }
.experience-toggle { justify-self: end; color: var(--accent); font-size: 27px; font-weight: 300; }
.experience-panel { padding: 0 76px 30px 178px; }
.experience-panel p { max-width: 780px; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-list span { padding: 6px 10px; border: 1px solid rgba(56,189,248,.2); border-radius: 999px; background: rgba(56,189,248,.05); color: #b9ddf0; font-size: 10px; font-weight: 700; }

/* 07. EXPERTISE */
.skill-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filter-button { padding: 9px 15px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.filter-button:hover, .filter-button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card { min-height: 210px; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: opacity .25s ease, transform .25s ease, border-color .25s ease; }
.skill-card:hover { transform: translateY(-6px); border-color: rgba(56,189,248,.55); }
.skill-card.is-hidden { display: none; }
.skill-number { color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.skill-card h3 { color: var(--accent); font-size: 19px; margin: 45px 0 10px; }
.skill-card p { color: var(--muted); font-size: 14px; }

/* 08. EDUCATION */
.education-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(70px, 9vw, 150px); align-items: start; }
.education-layout .section-heading > p:not(.section-label) { margin-top: 24px; }
.education-cards { display: grid; gap: 16px; }
.education-card { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 34px; border: 1px solid var(--border); border-radius: 20px; background: rgba(20,34,56,.45); transition: transform .25s ease, border-color .25s ease; }
.education-card:hover { transform: translateX(5px); border-color: rgba(56,189,248,.45); }
.education-year { color: var(--accent); font-size: 12px; font-weight: 800; }
.credential-type { color: #64748b; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.education-card h3 { margin: 8px 0; font-size: 22px; }
.education-card p { color: var(--muted); }

/* 09. CONTACT */
.contact-section { background: radial-gradient(circle at 50% 100%, rgba(56,189,248,.09), transparent 40%); }
.contact-intro { max-width: 800px; margin: 0 auto 50px; text-align: center; }
.contact-intro h2 { font-size: clamp(44px, 5vw, 70px); letter-spacing: -.045em; }
.contact-intro > p:not(.section-label) { max-width: 650px; margin: 20px auto 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { position: relative; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: rgba(20,34,56,.52); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.contact-card:hover { transform: translateY(-7px); border-color: var(--accent); background: var(--surface); }
.contact-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(56,189,248,.3); border-radius: 12px; color: var(--accent); font-size: 12px; font-weight: 900; }
.contact-card small { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.contact-card h3 { margin: 5px 0 6px; font-size: 20px; }
.contact-card p { color: var(--muted); font-size: 13px; }
.contact-arrow { position: absolute; top: 28px; right: 28px; color: var(--accent); font-size: 18px; transition: transform .2s ease; }
.contact-card:hover .contact-arrow { transform: translate(3px,-3px); }

/* 10. FOOTER */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 12px; }
.footer-inner .logo { color: var(--text); }
.footer-inner > a:last-child { color: var(--accent); font-weight: 700; }

/* 11. SCROLL REVEAL
   JS adds .visible when an element enters the viewport. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 12. RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container { width: min(var(--container), calc(100% - 56px)); }
  .hero-layout { grid-template-columns: 1fr 360px; gap: 55px; }
  .hero-signals { grid-template-columns: 1fr; gap: 12px; }
  .hero-signals div, .hero-signals div + div { padding: 0; border: 0; }
  .about-layout, .education-layout { grid-template-columns: 1fr; gap: 50px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 36px, var(--container)); }
  .section { padding: 88px 0; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-menu { position: fixed; top: 70px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: rgba(11,17,32,.98); box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px; }
  .nav-menu a::after { display: none; }
  .hero { min-height: auto; padding: 120px 0 90px; }
  .hero-layout { grid-template-columns: 1fr; gap: 60px; }
  .hero h1 { font-size: clamp(48px, 13vw, 68px); }
  .hero-portrait-wrap { width: min(88%, 420px); margin: 0 auto; }
  .location-card { left: -12px; }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 22px; }
  .focus-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr; }
  .experience-trigger { grid-template-columns: 1fr 34px; gap: 8px 20px; }
  .experience-date { grid-column: 1; }
  .experience-title { grid-column: 1; }
  .experience-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .experience-panel { padding: 0 8px 28px; }
  .education-card { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { padding: 30px 0; flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-signals { margin-top: 38px; }
  .focus-grid { grid-template-columns: 1fr; }
  .location-card { position: relative; left: auto; bottom: auto; margin: -20px 14px 0; }
}

/* 13. REDUCED-MOTION ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   V4 ADDITIONS — documented by component
   14. Experience detail bullets
   15. Workflow tabs
   16. Operations expanders
   17. Selected work
   18. Responsive V4 rules
   ============================================================ */
/* 14. EXPERIENCE: scannable verified responsibilities. */
.experience-highlights { color: var(--muted); padding-left: 20px; margin: 15px 0; max-width: 860px; }
.experience-highlights li { margin: 8px 0; line-height: 1.65; }

/* 15. WORKFLOW: tabs remain keyboard-operable; the detail panel
   is updated by JS and announces its content to screen readers. */
.workflow-layout { display: grid; grid-template-columns: minmax(300px,.9fr) minmax(0,1.1fr); gap: 22px; margin-top: 44px; }
.workflow-steps { display: grid; gap: 10px; }
.workflow-step { display: grid; grid-template-columns: 50px 1fr 20px; align-items: center; gap: 17px; padding: 20px 22px; text-align: left; border: 1px solid var(--border); border-radius: 16px; background: rgba(20,34,56,.5); color: var(--text); cursor: pointer; transition: background .2s,border-color .2s,transform .2s; }
.workflow-step:hover { border-color: rgba(56,189,248,.5); transform: translateX(3px); }
.workflow-step.active { background: linear-gradient(110deg,rgba(56,189,248,.14),rgba(20,34,56,.65)); border-color: rgba(56,189,248,.75); }
.step-index { font-size: 22px; color: var(--accent); font-weight: 800; letter-spacing: -.04em; }
.workflow-step strong,.workflow-step small { display: block; }
.workflow-step strong { font-size: 16px; }
.workflow-step small { color: var(--muted); margin-top: 3px; font-size: 12px; }
.step-arrow { color: var(--accent); }
.workflow-detail { min-height: 100%; padding: clamp(30px,4vw,60px); border: 1px solid rgba(56,189,248,.25); border-radius: 24px; background: radial-gradient(circle at 90% 10%,rgba(56,189,248,.13),transparent 45%),var(--surface); display: flex; flex-direction: column; }
.detail-eyebrow { font-size: 11px; color: var(--accent); font-weight: 800; letter-spacing: .16em; }
.detail-glyph { font-size: clamp(85px,11vw,160px); font-weight: 800; line-height: 1.25; letter-spacing: -.1em; color: rgba(56,189,248,.14); }
.detail-glyph span { font-size: 17px; color: var(--accent); letter-spacing: 0; }
.workflow-detail h3 { font-size: clamp(28px,3vw,43px); letter-spacing: -.04em; margin-bottom: 16px; }
.workflow-detail > p:not(.detail-eyebrow) { color: var(--muted); font-size: 16px; max-width: 570px; }
.workflow-detail .tag-list { margin-top: 24px; }
.workflow-progress { height: 3px; margin-top: auto; padding-top: 45px; box-sizing: content-box; background-clip: content-box; }
.workflow-progress::before { content: ''; display: block; height: 3px; background: rgba(148,163,184,.16); margin-bottom: -3px; }
.workflow-progress span { position: relative; display: block; height: 3px; width: 20%; background: var(--accent); transition: width .3s ease; }

/* 16. OPERATIONS: equal cards, with inline expandable descriptions. */
.operations-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-top: 44px; align-items: start; }
.operation-card { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); overflow: hidden; transition: border-color .2s,transform .2s; }
.operation-card:hover,.operation-card.is-open { border-color: rgba(56,189,248,.6); }
.operation-card:hover { transform: translateY(-3px); }
.operation-trigger { display: flex; width: 100%; flex-direction: column; align-items: flex-start; gap: 13px; padding: 30px; color: var(--text); border: 0; background: transparent; text-align: left; cursor: pointer; }
.operation-icon { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 27px; }
.operation-number { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; margin-top: 10px; }
.operation-trigger strong { font-size: 22px; line-height: 1.3; }
.operation-summary,.operation-panel p { color: var(--muted); font-size: 14px; }
.operation-more { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-top: 18px; margin-top: 12px; border-top: 1px solid var(--border); color: var(--accent); font-size: 12px; font-weight: 800; }
.operation-more span { font-size: 23px; line-height: 1; }
.operation-panel { padding: 0 30px 28px; }

/* 17. SELECTED WORK: restrained abstract visuals, no client data. */
.case-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 44px; }
.case-card { display: flex; flex-direction: column; padding: 27px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); transition: border-color .2s,transform .2s; }
.case-card:hover { border-color: rgba(56,189,248,.55); transform: translateY(-5px); }
.case-id { font-size: 10px; letter-spacing: .14em; font-weight: 800; color: var(--accent); }
.case-visual { height: 150px; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 25px 0; border: 1px solid rgba(56,189,248,.13); border-radius: 14px; background: radial-gradient(circle at 50% 50%,rgba(56,189,248,.12),rgba(11,17,32,.6)); color: #b9ddf0; }
.case-visual-batch span { width: 14px; border-radius: 5px; background: rgba(56,189,248,.55); }
.case-visual-batch span:nth-child(1) { height: 27px; }.case-visual-batch span:nth-child(2) { height: 54px; }.case-visual-batch span:nth-child(3) { height: 89px; background: var(--accent); }.case-visual-batch span:nth-child(4) { height: 44px; }.case-visual-batch span:nth-child(5) { height: 65px; }
.case-visual-release { gap: 6px; }.case-visual-release span { padding: 10px 9px; border: 1px solid rgba(56,189,248,.35); border-radius: 8px; font-size: 10px; font-weight: 800; }.case-visual-release i { font-style: normal; color: var(--accent); }
.case-visual-dr span:not(.dr-link) { padding: 14px 12px; border: 1px solid rgba(56,189,248,.35); border-radius: 10px; font-size: 11px; font-weight: 800; }.dr-link { font-size: 28px; color: var(--accent); }
.case-card h3 { font-size: 23px; line-height: 1.3; margin-bottom: 12px; }.case-card > p { color: var(--muted); font-size: 14px; }.case-card .tag-list { margin-top: auto; padding-top: 23px; }
.case-note { color: var(--muted); font-size: 12px; margin-top: 20px; }
/* Strong visible focus for all new keyboard interactions. */
.workflow-step:focus-visible,.operation-trigger:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* 18. RESPONSIVE: stack interactive layouts before narrow screens. */
@media (max-width: 1100px) { .operations-grid,.case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .workflow-layout { grid-template-columns: .9fr 1.1fr; } }
@media (max-width: 760px) { .workflow-layout { grid-template-columns: 1fr; } .workflow-detail { min-height: 440px; } .operations-grid,.case-grid { grid-template-columns: 1fr; } .nav-menu { max-height: calc(100vh - 90px); overflow-y: auto; } }
@media (max-width: 480px) { .workflow-step { grid-template-columns: 38px 1fr 14px; gap: 10px; padding: 16px; } .operation-trigger { padding: 24px; } .case-card { padding: 23px; } }

@media (min-width: 761px) { .nav-menu { gap: clamp(12px,1.7vw,28px); } .nav-menu a { font-size: 12px; white-space: nowrap; } }

/* Optional analytics consent: visible only until a visitor chooses. */
.analytics-consent[hidden] { display:none !important; }
.analytics-consent { position:fixed; z-index:9999; bottom:1rem; left:1rem; right:1rem; max-width:760px; margin:auto; background:#10243c; color:#fff; border:1px solid #38bdf8; box-shadow:0 12px 40px #0008; border-radius:16px; padding:1.15rem 1.4rem; display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap; }
.analytics-consent p { margin:.45rem 0 0; font-size:.88rem; line-height:1.55; color:#d5e3f2; }
.analytics-consent > div:first-child { flex:1 1 350px; }
.analytics-consent-actions { display:flex; gap:.65rem; flex-wrap:wrap; }
.analytics-consent-actions button, .privacy-settings { cursor:pointer; border-radius:9px; border:1px solid #38bdf8; background:transparent; color:inherit; padding:.65rem .9rem; font:inherit; }
.analytics-consent-actions #analyticsAccept { background:#38bdf8; color:#071829; font-weight:700; }
.privacy-settings { font-size:.8rem; padding:.4rem .6rem; }
.analytics-consent button:focus-visible, .privacy-settings:focus-visible { outline:3px solid #38bdf8; outline-offset:3px; }
