:root {
  --ink: #101018;
  --ink-soft: #252431;
  --paper: #f7f5fb;
  --surface: #ffffff;
  --purple: #4f16c7;
  --purple-dark: #321071;
  --purple-soft: #eee8fb;
  --orange: #d88718;
  --text: #4e4b59;
  --muted: #76727f;
  --line: #ddd8e6;
  --white-line: rgba(255,255,255,.13);
  --shadow: 0 24px 70px rgba(46, 22, 93, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Inter", Arial, sans-serif; line-height: 1.6; overflow-x: hidden; }
body, button, input, select, textarea, a { -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Inter", Arial, sans-serif; line-height: 1.08; letter-spacing: -.035em; }
[id] { scroll-margin-top: 108px; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; padding: .8rem 1rem; border-radius: 10px; background: var(--ink); color: white; text-decoration: none; transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; min-height: 86px; padding: 12px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: rgba(247,245,251,.92); border-bottom: 1px solid rgba(79,22,199,.1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; width: 132px; min-height: 50px; text-decoration: none; }
.brand img { width: 132px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.desktop-nav a { color: var(--ink-soft); font-size: .9rem; font-weight: 600; text-decoration: none; }
.desktop-nav a:not(.nav-button):hover { color: var(--purple); }
.nav-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1.25rem; background: var(--purple); border-radius: 999px; color: white !important; transition: transform .2s ease, background .2s ease; }
.nav-button:hover { background: var(--purple-dark); transform: translateY(-2px); }
.mobile-nav { display: none; }

.hero { position: relative; min-height: 760px; padding: 150px 5vw 80px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr); align-items: center; gap: clamp(3rem, 6vw, 7rem); background: radial-gradient(circle at 76% 17%, rgba(79,22,199,.13), transparent 27%), radial-gradient(circle at 8% 85%, rgba(216,135,24,.08), transparent 28%), var(--paper); }
.hero::after { content: ""; position: absolute; right: -7rem; top: 7rem; width: 24rem; height: 24rem; border: 1px solid rgba(79,22,199,.1); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(79,22,199,.025), 0 0 0 8rem rgba(79,22,199,.02); pointer-events: none; }
.hero-copy, .portfolio-panel { position: relative; z-index: 1; }
.eyebrow { margin-bottom: 1.15rem; display: flex; align-items: center; gap: .75rem; color: var(--purple); font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: currentColor; }
.hero h1 { max-width: 760px; margin-bottom: 1.5rem; font-size: clamp(3.25rem, 6.7vw, 6.9rem); font-weight: 800; }
.hero h1 em { color: var(--purple); font-style: normal; }
.hero-lead { max-width: 660px; margin-bottom: 2rem; color: var(--text); font-size: clamp(1.02rem, 1.35vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { min-height: 50px; padding: .85rem 1.5rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; font-size: .92rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--purple); color: white; }
.button-primary:hover { background: var(--purple-dark); }
.button-secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--purple); color: var(--purple); }
.button-quiet { padding-inline: .75rem; color: var(--purple); }
.button-quiet:hover { color: var(--purple-dark); }
.hero-assurances { margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; color: var(--muted); font-size: .82rem; }
.hero-assurances li { position: relative; padding-left: 1.05rem; }
.hero-assurances li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.portfolio-panel { padding: 1.2rem; border: 1px solid rgba(79,22,199,.12); border-radius: 30px; background: rgba(255,255,255,.66); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.portfolio-heading { padding: .65rem .7rem 1.2rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.portfolio-heading p { margin: 0; font-family: "Inter", sans-serif; font-size: 1.3rem; font-weight: 700; }
.portfolio-heading span { color: var(--muted); font-size: .75rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; }
.portfolio-card { min-height: 142px; padding: 1.25rem; display: flex; flex-direction: column; justify-content: end; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.portfolio-card:hover { transform: translateY(-4px); border-color: rgba(79,22,199,.45); box-shadow: 0 16px 35px rgba(46,22,93,.1); }
.portfolio-icon { width: 35px; height: 35px; margin-bottom: auto; display: grid; place-items: center; border-radius: 10px; background: var(--purple-soft); color: var(--purple); }
.portfolio-icon svg { width: 20px; height: 20px; }
.portfolio-card strong { font-family: "Inter", sans-serif; font-size: .92rem; }
.portfolio-card small { margin-top: .15rem; color: var(--muted); font-size: .72rem; }

.trust-strip { min-height: 76px; padding: 1.2rem 5vw; display: flex; align-items: center; justify-content: center; gap: clamp(1.2rem, 3vw, 3rem); background: var(--purple); color: white; }
.trust-strip p { margin: 0; font-family: "Inter", sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.trust-strip span { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }

.section { padding: clamp(5rem, 8vw, 8rem) 5vw; }
.section-intro { max-width: 760px; margin-bottom: 3.5rem; }
.section-intro h2, .why-copy h2 { margin-bottom: 1.25rem; font-size: clamp(2.25rem, 4.5vw, 4.6rem); font-weight: 800; }
.section-intro > p:last-child { max-width: 650px; color: var(--text); }
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 7rem); }
.about .section-intro { margin-bottom: 0; }
.about-copy { padding-top: 2.2rem; }
.about-copy p { color: var(--text); }
.about-copy .large-copy { color: var(--ink); font-family: "Inter", sans-serif; font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.45; }
.values-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.values-grid article { min-height: 250px; padding: 1.7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-grid span { color: var(--purple); font-size: .74rem; font-weight: 700; }
.values-grid h3 { margin: 3rem 0 .75rem; font-size: 1.1rem; }
.values-grid p { color: var(--muted); font-size: .86rem; }

.work-stories { background: var(--surface); }
.story-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: 1rem; }
.story-card { position: relative; min-height: 290px; margin: 0; overflow: hidden; border-radius: 22px; background: var(--ink); }
.story-card-wide { min-height: 620px; grid-row: span 2; }
.story-card::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(12,10,18,.9)); pointer-events: none; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.story-card:hover img { transform: scale(1.025); }
.story-card figcaption { position: absolute; inset: auto 0 0; z-index: 1; padding: clamp(1.4rem, 3vw, 2.3rem); color: white; }
.story-card figcaption span { display: block; margin-bottom: .55rem; color: #d1bbff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.story-card figcaption strong { max-width: 520px; display: block; font-family: "Inter", sans-serif; font-size: clamp(1.15rem, 2.2vw, 2rem); line-height: 1.25; }
.photo-note { margin: 1rem 0 0; color: var(--muted); font-size: .74rem; }
.photo-note a { color: var(--purple); }

.companies { background: var(--ink); color: white; }
.section-intro-light > p:last-child { color: #bbb; }
.companies .eyebrow { color: #b89aff; }
.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--white-line); border: 1px solid var(--white-line); }
.company-card { min-height: 490px; padding: clamp(2rem, 4vw, 3.25rem); background: var(--ink); display: flex; flex-direction: column; }
.company-card:hover { background: #171621; }
.company-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.company-card-top span { color: #b89aff; font-size: .75rem; font-weight: 700; }
.company-card-top p { margin: 0; color: #9995a4; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.company-card h3 { margin: 4rem 0 1rem; font-size: clamp(1.8rem, 3vw, 3rem); }
.company-card > p { max-width: 620px; color: #b8b5c0; }
.company-card ul { margin: 1.2rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem 1.2rem; list-style: none; }
.company-card li { position: relative; padding-left: 1rem; color: #d6d3dc; font-size: .83rem; }
.company-card li::before { content: ""; position: absolute; left: 0; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: #b89aff; }
.company-card > a { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--white-line); display: flex; justify-content: space-between; color: white; font-size: .87rem; font-weight: 700; text-decoration: none; }
.company-card > a span { color: #b89aff; font-size: 1.1rem; transition: transform .2s ease; }
.company-card > a:hover span { transform: translateX(5px); }
.company-card-accent { background: var(--purple-dark); }
.company-card-accent:hover { background: #3a1282; }

.why-mivek { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(3rem, 8vw, 9rem); }
.why-copy { position: sticky; top: 130px; }
.why-copy > p:not(.eyebrow) { max-width: 560px; color: var(--text); }
.text-link { display: inline-flex; gap: .8rem; color: var(--purple); font-weight: 700; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.reason-list { border-top: 1px solid var(--line); }
.reason-list article { min-height: 170px; padding: 2rem 0; display: grid; grid-template-columns: 60px 1fr; gap: 1.2rem; border-bottom: 1px solid var(--line); }
.reason-list article > span { color: var(--purple); font-size: .74rem; font-weight: 700; }
.reason-list h3 { margin-bottom: .65rem; font-size: 1.35rem; }
.reason-list p { margin: 0; color: var(--text); }

.experience { background: var(--surface); }
.process-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border: 1px solid var(--line); }
.process-grid li { min-height: 280px; padding: 1.8rem; border-right: 1px solid var(--line); }
.process-grid li:last-child { border-right: 0; }
.process-grid span { display: inline-grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--purple-soft); color: var(--purple); font-size: .72rem; font-weight: 700; }
.process-grid h3 { margin: 4rem 0 .8rem; font-size: 1.35rem; }
.process-grid p { color: var(--text); font-size: .88rem; }
.sectors-panel { margin-top: 1.5rem; padding: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: end; background: var(--purple-soft); }
.sectors-panel h3 { max-width: 450px; margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.sectors-panel ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; list-style: none; }
.sectors-panel li { padding: .65rem 1rem; border: 1px solid rgba(79,22,199,.2); border-radius: 999px; background: rgba(255,255,255,.55); color: var(--purple-dark); font-size: .82rem; font-weight: 600; }

.opportunities { display: grid; grid-template-columns: repeat(2, 1fr); padding-top: 0; }
.opportunities article { min-height: 430px; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); }
.opportunities article + article { border-left: 0; }
.opportunities h2 { margin: 3.5rem 0 1rem; font-size: clamp(2rem, 3.6vw, 3.6rem); }
.opportunities article > p:not(.eyebrow) { max-width: 520px; color: var(--text); }
.opportunities .button { margin-top: 1rem; }

.contact { padding: clamp(5rem, 8vw, 8rem) 5vw; background: var(--purple-dark); color: white; }
.contact-intro { max-width: 880px; margin-bottom: 3rem; }
.eyebrow-light { color: #c8adff; }
.contact h2 { margin-bottom: 1.2rem; font-size: clamp(2.4rem, 5.5vw, 5.5rem); }
.contact-intro > p:last-child { max-width: 700px; color: #c5bdcf; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.25rem; align-items: stretch; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--white-line); border: 1px solid var(--white-line); }
.contact-grid > * { min-width: 0; min-height: 190px; padding: 1.7rem; display: flex; flex-direction: column; background: var(--purple-dark); color: white; text-decoration: none; font-style: normal; transition: background .2s ease; }
.contact-grid a:hover { background: #3a1282; }
.contact-grid span { color: #c8adff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-grid strong { margin: 2rem 0 .5rem; overflow-wrap: anywhere; font-family: "Inter", sans-serif; font-size: clamp(1.05rem, 1.6vw, 1.55rem); line-height: 1.3; }
.contact-grid em { margin-top: auto; color: #c5bdcf; font-size: .8rem; font-style: normal; }
.enquiry-form { padding: clamp(1.7rem, 3vw, 2.8rem); border: 1px solid var(--white-line); background: #3a1282; }
.form-heading h3 { margin-bottom: .7rem; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.form-heading > p:last-child { max-width: 620px; color: #d0c8d9; font-size: .9rem; }
.form-grid { margin-top: 1.8rem; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.form-grid label { min-width: 0; display: grid; gap: .45rem; }
.form-grid label > span { color: #d7c8f5; font-size: .74rem; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 48px; padding: .75rem .85rem; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: rgba(16,16,24,.3); color: white; }
.form-grid textarea { min-height: 130px; resize: vertical; }
.form-grid select { color-scheme: dark; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #b7adbf; }
.form-full { grid-column: 1 / -1; }
.form-actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.form-actions button { cursor: pointer; }
.form-button-email { background: white; color: var(--purple-dark); }
.form-button-email:hover { background: #f1ecfa; }
.form-button-whatsapp { border-color: rgba(255,255,255,.35); background: transparent; color: white; }
.form-button-whatsapp:hover { border-color: white; }
.form-note { margin: 1rem 0 0; color: #bdb2c7; font-size: .72rem; }
.whatsapp-float { position: fixed; right: max(1rem, 2vw); bottom: max(1rem, 2vw); z-index: 90; min-height: 50px; padding: .75rem 1rem; display: inline-flex; align-items: center; gap: .6rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: #147d69; box-shadow: 0 12px 30px rgba(16,16,24,.24); color: white; font-size: .82rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.whatsapp-float:hover { background: #0f6656; transform: translateY(-2px); }
.whatsapp-float svg { width: 22px; height: 22px; flex: 0 0 auto; stroke-width: 1.6; }

.site-footer { padding: 4rem 5vw 1.5rem; background: var(--ink); color: white; }
.footer-top { padding-bottom: 3rem; display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 3rem; border-bottom: 1px solid var(--white-line); }
.footer-brand { width: 145px; padding: .4rem; border-radius: 12px; background: white; }
.footer-brand img { width: 100%; }
.footer-top p { max-width: 500px; margin: 0; color: #aaa6b1; }
.footer-columns { padding: 3.5rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.footer-columns h2 { margin-bottom: 1.2rem; color: #8d8996; font-family: "Inter", sans-serif; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-columns a { width: fit-content; max-width: 100%; margin-bottom: .65rem; display: block; overflow-wrap: anywhere; color: #d7d4dc; font-size: .84rem; text-decoration: none; }
.footer-columns a:hover { color: #c8adff; }
.footer-bottom { padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; border-top: 1px solid var(--white-line); }
.footer-bottom p { margin: 0; color: #827e8b; font-size: .75rem; }

/* Legal pages */
.legal-main { padding: 150px 5vw 7rem; }
.legal-hero { max-width: 900px; margin-bottom: 4rem; }
.legal-hero h1 { margin-bottom: 1.2rem; font-size: clamp(2.8rem, 6vw, 5.8rem); }
.legal-hero > p:last-child { max-width: 720px; color: var(--text); }
.legal-content { max-width: 900px; padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid var(--line); background: white; }
.legal-content h2 { margin: 3rem 0 1rem; font-size: 1.4rem; letter-spacing: -.015em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 2rem 0 .7rem; font-size: 1.05rem; letter-spacing: -.01em; }
.legal-content p, .legal-content li { color: var(--text); }
.legal-content li { margin-bottom: .45rem; }
.legal-meta { padding: 1rem 1.2rem; border-left: 3px solid var(--purple); background: var(--purple-soft); }
.legal-meta p { margin: 0; }

/* Company pages */
.division-hero { min-height: 760px; padding: 150px 5vw 80px; display: grid; grid-template-columns: 1.05fr .65fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; background: radial-gradient(circle at 78% 18%, rgba(79,22,199,.15), transparent 30%), var(--paper); }
.division-hero h1 { margin-bottom: 1.5rem; font-size: clamp(3.8rem, 8vw, 8.5rem); font-weight: 800; }
.division-hero h1 em { color: var(--purple); font-style: normal; }
.division-hero > div > p:not(.eyebrow) { max-width: 680px; color: var(--text); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.division-hero aside { padding: clamp(2rem, 4vw, 3rem); border-radius: 26px; background: var(--purple-dark); color: white; box-shadow: var(--shadow); }
.division-hero aside > p { margin-bottom: 2rem; color: #c8adff; font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.division-hero aside ul { margin: 0; padding: 0; list-style: none; }
.division-hero aside li { padding: 1rem 0; border-bottom: 1px solid var(--white-line); font-family: "Inter", sans-serif; font-size: 1.05rem; font-weight: 600; }
.division-hero aside li:last-child { border-bottom: 0; }
.division-services { background: white; }
.division-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.division-service-grid article { min-height: 290px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.division-service-grid span { color: var(--purple); font-size: .72rem; font-weight: 700; }
.division-service-grid h3 { margin: 4rem 0 .8rem; font-size: 1.25rem; }
.division-service-grid p { color: var(--text); font-size: .88rem; }
.division-audience { padding: clamp(4rem, 7vw, 7rem) 5vw; display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: end; background: var(--purple-dark); color: white; }
.division-audience h2 { max-width: 650px; margin-bottom: 0; font-size: clamp(2rem, 4.4vw, 4.5rem); }
.division-audience ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; border-top: 1px solid var(--white-line); border-left: 1px solid var(--white-line); }
.division-audience li { min-height: 105px; padding: 1.3rem; display: flex; align-items: end; border-right: 1px solid var(--white-line); border-bottom: 1px solid var(--white-line); color: #e3ddea; font-family: "Inter", sans-serif; font-size: .92rem; font-weight: 600; }
.division-cta { padding: clamp(5rem, 8vw, 8rem) 5vw; background: var(--purple-soft); }
.division-cta h2 { max-width: 900px; margin-bottom: 1rem; font-size: clamp(2.4rem, 5vw, 5.2rem); }
.division-cta > p:not(.eyebrow) { max-width: 650px; color: var(--text); }
.division-cta .hero-actions { margin-top: 2rem; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 440px; gap: 3rem; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid li:nth-child(2) { border-right: 0; }
  .process-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .site-header { min-height: 76px; padding: 10px 4vw; }
  .brand, .brand img { width: 112px; }
  .desktop-nav { display: none; }
  .mobile-nav { position: relative; display: block; }
  .mobile-nav summary { width: 46px; height: 46px; display: grid; align-content: center; gap: 5px; justify-items: center; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { width: 18px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .mobile-nav[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-nav[open] summary span:nth-child(2) { opacity: 0; }
  .mobile-nav[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav nav { position: fixed; inset: 76px 0 auto; padding: 1rem 4vw 1.5rem; display: grid; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(16,16,24,.1); }
  .mobile-nav nav a { min-height: 48px; padding: .75rem 0; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
  .mobile-nav nav .nav-button { width: 100%; margin-top: .8rem; border-bottom: 0; }
  .hero { min-height: auto; padding: 125px 5vw 70px; grid-template-columns: 1fr; }
  .portfolio-panel { max-width: 660px; }
  .trust-strip { flex-wrap: wrap; }
  .about, .why-mivek { grid-template-columns: 1fr; }
  .about-copy { padding-top: 0; }
  .why-copy { position: static; }
  .story-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .story-card-wide { min-height: 500px; grid-column: 1 / -1; grid-row: auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .company-card { min-height: 460px; }
  .sectors-panel { grid-template-columns: 1fr; }
  .sectors-panel ul { justify-content: flex-start; }
  .footer-top { grid-template-columns: 150px 1fr; }
  .footer-top .button { grid-column: 1 / -1; width: fit-content; }
  .division-hero { min-height: auto; padding-top: 125px; grid-template-columns: 1fr; }
  .division-hero aside { max-width: 620px; }
  .division-service-grid { grid-template-columns: repeat(2, 1fr); }
  .division-audience { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  [id] { scroll-margin-top: 86px; }
  .hero { padding-inline: 4vw; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-actions .button { width: 100%; }
  .hero-assurances { display: grid; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: 120px; }
  .trust-strip { justify-content: flex-start; gap: .7rem 1.2rem; padding-inline: 4vw; }
  .trust-strip span { display: none; }
  .trust-strip p { width: calc(50% - .6rem); }
  .section { padding-inline: 4vw; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid article { min-height: 190px; }
  .values-grid h3 { margin-top: 2rem; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card, .story-card-wide { min-height: 360px; grid-column: auto; }
  .company-grid { grid-template-columns: 1fr; }
  .company-card { min-height: 480px; }
  .company-card ul { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li, .process-grid li:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .process-grid li:last-child { border-bottom: 0; }
  .opportunities { grid-template-columns: 1fr; }
  .opportunities article + article { border-left: 1px solid var(--line); border-top: 0; }
  .contact { padding-inline: 4vw; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > * { min-height: 190px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .form-actions .button { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top p { max-width: none; }
  .footer-top .button { grid-column: auto; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; }
  .legal-main { padding: 125px 4vw 5rem; }
  .legal-content { padding: 1.5rem; }
  .division-service-grid { grid-template-columns: 1fr; }
  .division-service-grid article { min-height: 240px; }
  .division-audience { padding-inline: 4vw; }
  .division-audience ul { grid-template-columns: 1fr; }
  .division-audience li { min-height: 82px; }
  .division-cta { padding-inline: 4vw; }
}

@media (max-width: 430px) {
  .portfolio-heading { align-items: flex-start; flex-direction: column; }
  .trust-strip p { width: 100%; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-bottom p { max-width: 100%; overflow-wrap: anywhere; }
  .whatsapp-float { width: 50px; padding: 0; justify-content: center; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Appearance control: Light / Dark / Auto */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body { transition: background-color .22s ease, color .22s ease; }

.theme-switcher {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 6px 20px rgba(16,16,24,.06);
}
.theme-option {
  min-height: 34px;
  padding: .45rem .62rem;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.theme-option:hover { color: var(--ink); transform: translateY(-1px); }
.theme-option.active { background: var(--purple); color: white; }
.theme-option:focus-visible { outline-offset: 2px; }

html[data-theme="dark"] {
  --ink: #f5f2fb;
  --ink-soft: #e1dcea;
  --paper: #0f0d14;
  --surface: #17141e;
  --purple: #a77aff;
  --purple-dark: #261052;
  --purple-soft: #241a36;
  --orange: #e8a94f;
  --text: #c8c1d0;
  --muted: #aaa2b3;
  --line: #373141;
  --white-line: rgba(255,255,255,.14);
  --shadow: 0 24px 70px rgba(0,0,0,.34);
}
html[data-theme="dark"] .site-header {
  background: rgba(15,13,20,.9);
  border-bottom-color: rgba(167,122,255,.18);
}
html[data-theme="dark"] .portfolio-panel { background: rgba(23,20,30,.76); border-color: rgba(167,122,255,.2); }
html[data-theme="dark"] .portfolio-card,
html[data-theme="dark"] .division-services,
html[data-theme="dark"] .work-stories,
html[data-theme="dark"] .experience,
html[data-theme="dark"] .legal-content { background: var(--surface); }
html[data-theme="dark"] .sectors-panel li { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .footer-brand { background: white; }
html[data-theme="dark"] .mobile-nav nav { background: var(--paper); box-shadow: 0 20px 30px rgba(0,0,0,.35); }
html[data-theme="dark"] .mobile-nav summary span { background: var(--ink); }
html[data-theme="dark"] .division-hero {
  background: radial-gradient(circle at 78% 18%, rgba(167,122,255,.16), transparent 30%), var(--paper);
}
html[data-theme="dark"] .hero {
  background: radial-gradient(circle at 76% 17%, rgba(167,122,255,.14), transparent 27%), radial-gradient(circle at 8% 85%, rgba(232,169,79,.07), transparent 28%), var(--paper);
}

@media (max-width: 1160px) {
  .site-header { gap: 1rem; }
  .desktop-nav { gap: clamp(.75rem, 1.3vw, 1.25rem); }
  .theme-label { display: none; }
  .theme-option { width: 34px; padding-inline: 0; justify-content: center; }
}

@media (max-width: 900px) {
  .site-header { justify-content: flex-start; }
  .brand { margin-right: auto; }
  .theme-switcher { margin-left: auto; }
  .mobile-nav { margin-left: .5rem; }
  .theme-label { display: none; }
}

@media (max-width: 420px) {
  .theme-switcher { gap: 1px; padding: 3px; }
  .theme-option { width: 30px; min-height: 30px; font-size: .68rem; }
  .mobile-nav { margin-left: .3rem; }
}

/* Dark-mode contrast fixes: keep dark surfaces dark while text becomes light */
html[data-theme="dark"] {
  --dark-surface: #100d16;
  --dark-surface-2: #17131f;
  --dark-surface-hover: #201a2a;
  --on-dark: #f7f3fb;
  --on-dark-muted: #c9c1d1;
}

html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .companies,
html[data-theme="dark"] .company-card,
html[data-theme="dark"] .site-footer {
  background: var(--dark-surface);
  color: var(--on-dark);
}

html[data-theme="dark"] .company-card:hover {
  background: var(--dark-surface-hover);
}

html[data-theme="dark"] .companies .section-intro-light > p:last-child,
html[data-theme="dark"] .company-card p,
html[data-theme="dark"] .company-card li,
html[data-theme="dark"] .footer-top p,
html[data-theme="dark"] .footer-columns a,
html[data-theme="dark"] .footer-bottom p {
  color: var(--on-dark-muted);
}

html[data-theme="dark"] .company-card h2,
html[data-theme="dark"] .company-card h3,
html[data-theme="dark"] .company-card strong,
html[data-theme="dark"] .companies h2,
html[data-theme="dark"] .site-footer h2,
html[data-theme="dark"] .site-footer strong {
  color: var(--on-dark);
}

html[data-theme="dark"] .footer-columns h2 {
  color: #b8afc2;
}

html[data-theme="dark"] .footer-columns a:hover {
  color: #d4bfff;
}

html[data-theme="dark"] .legal-meta {
  background: #2a1f3b;
}

html[data-theme="dark"] .legal-meta p,
html[data-theme="dark"] .legal-content p,
html[data-theme="dark"] .legal-content li,
html[data-theme="dark"] .division-service-grid p,
html[data-theme="dark"] .division-cta > p:not(.eyebrow),
html[data-theme="dark"] .about-copy p,
html[data-theme="dark"] .section-intro > p:last-child,
html[data-theme="dark"] .hero-lead,
html[data-theme="dark"] .division-hero > div > p:not(.eyebrow) {
  color: var(--text);
}

html[data-theme="dark"] .division-cta {
  background: #20172d;
}

html[data-theme="dark"] .button-secondary {
  color: var(--ink);
  border-color: #51485d;
}

html[data-theme="dark"] .button-secondary:hover {
  color: #c6a7ff;
  border-color: #a77aff;
}

html[data-theme="dark"] .theme-switcher {
  background: rgba(23,20,30,.92);
  border-color: #453c50;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}

html[data-theme="dark"] .theme-option {
  color: #c7bfce;
}

html[data-theme="dark"] .theme-option:hover {
  color: #ffffff;
}

html[data-theme="dark"] .theme-option.active {
  background: #7445d8;
  color: #ffffff;
}

/* Dark-mode visibility fix: Sectors We Support */
html[data-theme="dark"] .sectors-panel {
  background: #241a36;
  border: 1px solid rgba(167,122,255,.22);
}
html[data-theme="dark"] .sectors-panel .eyebrow {
  color: #c8adff;
}
html[data-theme="dark"] .sectors-panel h3 {
  color: #f5f2fb;
}
html[data-theme="dark"] .sectors-panel li {
  background: rgba(167,122,255,.12);
  border-color: rgba(200,173,255,.34);
  color: #f5f2fb;
}

/* ===== Mivek Group balanced refinement =====
   Keeps the original visual language while improving polish, rhythm and contrast. */
:root {
  --content-max: 1480px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --shadow-soft: 0 14px 40px rgba(36, 20, 68, .07);
  --shadow-hover: 0 20px 50px rgba(36, 20, 68, .11);
}

::selection { background: var(--purple); color: #fff; }

/* Header: same structure, cleaner interaction */
.site-header {
  min-height: 82px;
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 1px 0 rgba(79,22,199,.03);
}
.desktop-nav a:not(.nav-button) { position: relative; }
.desktop-nav a:not(.nav-button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--purple);
  transition: right .2s ease;
}
.desktop-nav a:not(.nav-button):hover::after { right: 0; }
.nav-button,
.button { box-shadow: 0 8px 22px rgba(79,22,199,.10); }
.button-secondary,
.button-quiet { box-shadow: none; }

/* Hero: preserve the layout, reduce visual heaviness */
.hero {
  min-height: 730px;
  gap: clamp(2.5rem, 5vw, 6rem);
}
.hero h1 { font-size: clamp(3.2rem, 6.1vw, 6.35rem); }
.hero-lead { max-width: 700px; }
.portfolio-panel {
  padding: 1.05rem;
  border-radius: var(--radius-lg);
  border-color: color-mix(in srgb, var(--purple) 15%, var(--line));
  box-shadow: 0 24px 65px rgba(46,22,93,.10);
}
.portfolio-card {
  border-radius: 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.portfolio-icon { transition: transform .2s ease; }
.portfolio-card:hover .portfolio-icon { transform: translateY(-2px); }

/* General section rhythm */
.section { padding-top: clamp(4.8rem, 7.4vw, 7.2rem); padding-bottom: clamp(4.8rem, 7.4vw, 7.2rem); }
.section-intro { max-width: 800px; margin-bottom: 3.1rem; }
.section-intro h2,
.why-copy h2 { letter-spacing: -.04em; }
.eyebrow { letter-spacing: .14em; }

/* Values: stay as the original five-column layout, just make it feel intentional */
.values-grid {
  gap: 10px;
  border: 0;
  background: transparent;
}
.values-grid article {
  min-height: 235px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 74%, var(--paper));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.values-grid article:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--purple) 32%, var(--line));
  box-shadow: var(--shadow-soft);
}
.values-grid h3 { margin-top: 2.7rem; }

/* Work imagery */
.story-grid { gap: 1.1rem; }
.story-card {
  border-radius: var(--radius-md);
  box-shadow: 0 12px 34px rgba(16,16,24,.07);
}
.story-card::after { inset: 32% 0 0; }
.story-card img { transition-duration: .6s; }
.story-card:hover img { transform: scale(1.035); }

/* Companies: preserve the dark corporate block, soften the harsh grid */
.company-grid {
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.company-card {
  min-height: 470px;
  transition: background-color .2s ease;
}
.company-card h3 { margin-top: 3.5rem; }
.company-card > a { transition: color .2s ease; }
.company-card > a:hover { color: #dccbff; }

/* Why Mivek + process */
.reason-list article {
  transition: padding-left .2s ease, background-color .2s ease;
}
.reason-list article:hover {
  padding-left: .7rem;
  background: color-mix(in srgb, var(--purple-soft) 38%, transparent);
}
.process-grid {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 32px rgba(36,20,68,.04);
}
.process-grid li { min-height: 260px; background: color-mix(in srgb, var(--surface) 78%, var(--paper)); }
.process-grid h3 { margin-top: 3.4rem; }

/* Sectors: keep the pill treatment the user already preferred */
.sectors-panel {
  margin-top: 1.8rem;
  border: 1px solid color-mix(in srgb, var(--purple) 18%, var(--line));
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple-soft), color-mix(in srgb, var(--purple-soft) 68%, var(--surface)));
}
.sectors-panel li {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-color: color-mix(in srgb, var(--purple) 24%, var(--line));
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 0 4px 14px rgba(46,22,93,.04);
}

/* Careers / updates: cleaner cards without changing content */
.opportunities {
  gap: 1rem;
  background: var(--paper);
}
.opportunities article {
  min-height: 400px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 82%, var(--paper));
}
.opportunities article + article { border-left: 1px solid var(--line); }
.opportunities h2 { margin-top: 3rem; }

/* Contact: preserve the strong purple section, improve form quality */
.contact-layout { gap: 1rem; }
.contact-grid,
.enquiry-form {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.contact-grid > * { min-height: 180px; }
.enquiry-form { box-shadow: 0 24px 60px rgba(20,7,46,.16); }
.form-grid input,
.form-grid select,
.form-grid textarea {
  border-radius: var(--radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 0;
  border-color: #d7c2ff;
  background: rgba(16,16,24,.4);
  box-shadow: 0 0 0 3px rgba(215,194,255,.14);
}
.whatsapp-float { box-shadow: 0 14px 34px rgba(16,16,24,.22); }

/* Footer */
.footer-brand { border-radius: 10px; }
.footer-columns a { transition: color .18s ease, transform .18s ease; }
.footer-columns a:hover { transform: translateX(2px); }

/* Company pages: shared polish, no redesign */
.division-hero { min-height: 720px; }
.division-hero h1 { font-size: clamp(3.5rem, 7.4vw, 7.7rem); }
.division-hero aside { border-radius: var(--radius-lg); }
.division-service-grid {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.division-service-grid article { transition: background-color .2s ease; }
.division-service-grid article:hover { background: color-mix(in srgb, var(--purple-soft) 35%, var(--surface)); }
.division-audience ul { overflow: hidden; border-radius: 16px; }
.division-cta .button { box-shadow: none; }
.legal-content { border-radius: var(--radius-md); }

/* Dark mode: ensure refined surfaces keep readable contrast */
html[data-theme="dark"] .values-grid article,
html[data-theme="dark"] .process-grid li,
html[data-theme="dark"] .opportunities article {
  background: #17141e;
  border-color: #393242;
}
html[data-theme="dark"] .reason-list article:hover {
  background: rgba(167,122,255,.07);
}
html[data-theme="dark"] .sectors-panel {
  background: linear-gradient(135deg, #241a36, #17141e);
  border-color: rgba(167,122,255,.24);
}
html[data-theme="dark"] .sectors-panel li {
  background: rgba(167,122,255,.10);
  border-color: rgba(200,173,255,.30);
  color: #f5f2fb;
}
html[data-theme="dark"] .division-service-grid article:hover { background: #211a2c; }
html[data-theme="dark"] .legal-content { background: #17141e; }
html[data-theme="dark"] .nav-button,
html[data-theme="dark"] .button-primary { box-shadow: 0 8px 24px rgba(0,0,0,.22); }

@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .company-grid { border-radius: 20px; }
  .opportunities { gap: .8rem; }
}
@media (max-width: 700px) {
  .site-header { min-height: 76px; }
  .hero h1 { font-size: clamp(2.85rem, 14vw, 4.8rem); }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid article { min-height: 175px; }
  .company-grid { border-radius: 16px; }
  .company-card { min-height: 440px; }
  .opportunities article { min-height: 330px; }
  .sectors-panel { border-radius: 20px; }
  .division-service-grid { border-radius: 16px; }
}
html[data-theme="dark"] .button-quiet:hover { color: #ceb7ff; }

/* ======================================================================
   Mivek refinement pass — preserve the existing visual language, improve
   hierarchy, responsiveness, interaction quality and long-screen comfort.
   ====================================================================== */
:root {
  --page-gutter: max(5vw, calc((100vw - 1440px) / 2));
  --header-height: 86px;
}

/* Keep content comfortably framed on very wide screens. */
.site-header,
.hero,
.section,
.contact,
.site-footer,
.legal-main,
.division-hero,
.division-audience,
.division-cta {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Header: same layout, calmer and clearer as the page scrolls. */
.site-header {
  transition: min-height .22s ease, padding .22s ease, background-color .22s ease,
              border-color .22s ease, box-shadow .22s ease;
}
.site-header.is-scrolled {
  min-height: 74px;
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 10px 30px rgba(33, 17, 66, .08);
}
html[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.desktop-nav a:not(.nav-button) {
  position: relative;
  padding: .55rem 0;
  transition: color .18s ease;
}
.desktop-nav a:not(.nav-button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: .18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transition: right .2s ease;
}
.desktop-nav a:not(.nav-button):hover::after,
.desktop-nav a:not(.nav-button).is-active::after { right: 0; }
.desktop-nav a.is-active { color: var(--purple); }

/* Typography polish without changing font choices. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.section-intro h2,
.why-copy h2 { max-width: 980px; }
.section-intro > p:last-child,
.about-copy p,
.why-copy > p:not(.eyebrow) { line-height: 1.72; }

/* Buttons feel more deliberate while keeping their existing shape. */
.button,
.nav-button {
  letter-spacing: -.01em;
}
.button-primary,
.nav-button {
  box-shadow: 0 8px 22px rgba(79,22,199,.18);
}
.button-primary:hover,
.nav-button:hover {
  box-shadow: 0 12px 28px rgba(79,22,199,.24);
}
.button-secondary:hover { background: color-mix(in srgb, var(--purple-soft) 45%, transparent); }

/* Portfolio cards: a small interaction cue, not a redesign. */
.portfolio-card { isolation: isolate; }
.portfolio-icon { transition: transform .22s ease, background-color .22s ease, color .22s ease; }
.portfolio-card:hover .portfolio-icon {
  transform: translateY(-2px) rotate(-2deg);
  background: var(--purple);
  color: white;
}
.portfolio-card strong { letter-spacing: -.015em; }

/* Give photography text overlays a little more safety on varied images. */
.story-card::after {
  background: linear-gradient(to top, rgba(13,10,20,.86) 0%, rgba(13,10,20,.46) 50%, transparent 100%);
}
.story-card h3,
.story-card p { text-shadow: 0 2px 16px rgba(0,0,0,.25); }

/* Company cards: clearer focus and hover without changing the dark grid. */
.company-card { position: relative; }
.company-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #b89aff;
  transition: width .25s ease;
}
.company-card:hover::before,
.company-card:focus-within::before { width: 100%; }
.company-card > a:focus-visible { border-radius: 4px; }

/* Process cards: make the sequence easier to scan. */
.process-grid li > span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
}
html[data-theme="dark"] .process-grid li > span { background: rgba(167,122,255,.12); }

/* Sector pills stay as pills, with clearer interaction and contrast. */
.sectors-panel li {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.sectors-panel li:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--purple) 48%, var(--line));
  background: color-mix(in srgb, var(--surface) 92%, var(--purple-soft));
}
html[data-theme="dark"] .sectors-panel li:hover {
  background: rgba(167,122,255,.16);
  border-color: rgba(200,173,255,.48);
}

/* Contact form: stronger input affordance, including browser autofill. */
.form-grid input,
.form-grid select,
.form-grid textarea { caret-color: #ffffff; }
.form-grid input:-webkit-autofill,
.form-grid input:-webkit-autofill:hover,
.form-grid input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px #2d1857 inset;
  transition: background-color 9999s ease-in-out 0s;
}
.contact-grid > *:focus-visible { outline-offset: -4px; }

/* Footer spacing and link readability. */
.footer-columns { row-gap: 2.5rem; }
.site-footer a { text-underline-offset: 3px; }
.footer-bottom a { color: #bcb5c5; }
.footer-bottom a:hover { color: #d9c8ff; }

/* Company pages: slightly stronger service-card hierarchy. */
.division-service-grid article { position: relative; }
.division-service-grid article::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 0;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.division-service-grid article:hover::after { transform: scaleX(1); }
.division-audience li { transition: background-color .18s ease, color .18s ease; }
.division-audience li:hover { background: rgba(255,255,255,.055); color: white; }

/* Theme selector should not compete with the primary navigation. */
.theme-switcher { transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.theme-option { min-width: 34px; justify-content: center; }

@media (max-width: 1260px) {
  .desktop-nav { gap: clamp(.72rem, 1.25vw, 1.2rem); }
  .desktop-nav a { font-size: .84rem; }
  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .desktop-nav a[href="#careers"] { display: none; }
  .desktop-nav { gap: .8rem; }
  .brand, .brand img { width: 118px; }
}

@media (max-width: 900px) {
  :root { --page-gutter: 4vw; --header-height: 76px; }
  .site-header.is-scrolled { min-height: 70px; }
  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .theme-switcher { margin-left: auto; }
  .mobile-nav nav a { border-radius: 8px; padding-left: .55rem; padding-right: .55rem; }
  .mobile-nav nav a:hover { background: color-mix(in srgb, var(--purple-soft) 46%, transparent); }
}

@media (max-width: 700px) {
  .hero { padding-top: 118px; }
  .hero-lead { font-size: 1rem; }
  .portfolio-panel { padding: .9rem; border-radius: 22px; }
  .section-intro { margin-bottom: 2.6rem; }
  .section-intro h2, .why-copy h2 { font-size: clamp(2.1rem, 10.5vw, 3.4rem); }
  .company-card h3 { margin-top: 2.8rem; }
  .sectors-panel { padding: 1.5rem; }
  .whatsapp-float { bottom: 1rem; right: 1rem; }
}

@media (max-width: 380px) {
  .site-header { gap: .55rem; }
  .brand, .brand img { width: 102px; }
  .theme-switcher { padding: 3px; }
  .theme-option { min-width: 30px; min-height: 32px; padding: .4rem; }
  .mobile-nav summary { width: 42px; height: 42px; }
}

@media (forced-colors: active) {
  .button, .nav-button, .theme-switcher, .theme-option, .portfolio-card,
  .company-card, .sectors-panel li { border: 1px solid CanvasText; }
}

/* ============================================================
   COMPANY PAGE REFINEMENT — restrained specialist-page polish
   Keeps the original page structure and Mivek visual identity.
   ============================================================ */
.division-page .division-hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  padding-top: 138px;
  padding-bottom: clamp(4.5rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .58fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  overflow: hidden;
}
.division-page .division-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  right: -14rem;
  top: 7rem;
  border: 1px solid rgba(79,22,199,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(79,22,199,.025), 0 0 0 10rem rgba(79,22,199,.018);
  pointer-events: none;
}
.division-page .division-hero > div { max-width: 820px; }
.division-page .division-hero h1 {
  max-width: 780px;
  margin: .5rem 0 1.35rem;
  font-size: clamp(3.6rem, 7vw, 7.15rem);
  line-height: .9;
  letter-spacing: -.055em;
}
.division-page .division-hero > div > p:not(.eyebrow) {
  max-width: 660px;
  line-height: 1.75;
}
.division-page .division-hero .hero-actions { margin-top: 2.15rem; }
.division-page .division-hero aside {
  position: relative;
  padding: clamp(1.7rem, 3vw, 2.45rem);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(30,15,60,.16);
  overflow: hidden;
}
.division-page .division-hero aside::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #b993ff, var(--orange));
}
.division-page .division-hero aside > p { margin-bottom: 1.25rem; }
.division-page .division-hero aside li {
  position: relative;
  padding: 1rem 1.6rem 1rem 0;
  font-size: 1rem;
}
.division-page .division-hero aside li::after {
  content: "↗";
  position: absolute;
  right: 0;
  top: 1rem;
  color: #bfa5f4;
  font-family: "Inter", sans-serif;
  font-size: .9rem;
}

.division-page .division-services {
  padding-top: clamp(5rem, 8vw, 8rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
}
.division-page .division-services .section-intro {
  max-width: 820px;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}
.division-page .division-services .section-intro h2 {
  max-width: 780px;
}
.division-page .division-service-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.division-page .division-service-grid article {
  min-height: 270px;
  padding: clamp(1.65rem, 2.5vw, 2.15rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface, #fff);
  box-shadow: 0 12px 34px rgba(38,25,55,.045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
.division-page .division-service-grid article:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--purple) 35%, var(--line));
  box-shadow: 0 20px 44px rgba(38,25,55,.09);
}
.division-page .division-service-grid span {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: .68rem;
  letter-spacing: .02em;
}
.division-page .division-service-grid h3 {
  margin: 3.25rem 0 .8rem;
  font-size: clamp(1.13rem, 1.7vw, 1.34rem);
  line-height: 1.2;
}
.division-page .division-service-grid p {
  margin: 0;
  line-height: 1.72;
}

.division-page .division-audience {
  padding-top: clamp(4.7rem, 7vw, 7rem);
  padding-bottom: clamp(4.7rem, 7vw, 7rem);
  grid-template-columns: minmax(0,.9fr) minmax(380px,1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.division-page .division-audience h2 {
  max-width: 650px;
  line-height: 1.02;
}
.division-page .division-audience ul {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.division-page .division-audience li {
  min-height: auto;
  padding: .9rem 1.1rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #f0ebf8;
  font-family: "Inter", sans-serif;
  font-size: .86rem;
  font-weight: 600;
}

.division-page .division-cta {
  position: relative;
  padding-top: clamp(5.5rem, 8vw, 8rem);
  padding-bottom: clamp(5.5rem, 8vw, 8rem);
  overflow: hidden;
}
.division-page .division-cta::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -9rem;
  bottom: -12rem;
  border-radius: 50%;
  background: rgba(79,22,199,.055);
  pointer-events: none;
}
.division-page .division-cta h2 {
  max-width: 820px;
  font-size: clamp(2.5rem, 4.8vw, 4.85rem);
  line-height: 1;
}
.division-page .division-cta > p:not(.eyebrow) {
  max-width: 640px;
  line-height: 1.75;
}
.division-page .division-cta .hero-actions { position: relative; z-index: 1; }

/* Dark mode: keep the refined surfaces readable without changing brand identity. */
html[data-theme="dark"] .division-page .division-hero::before {
  border-color: rgba(185,147,255,.11);
  box-shadow: 0 0 0 5rem rgba(185,147,255,.02), 0 0 0 10rem rgba(185,147,255,.012);
}
html[data-theme="dark"] .division-page .division-service-grid article {
  background: #17131f;
  border-color: #31283d;
  box-shadow: 0 12px 34px rgba(0,0,0,.14);
}
html[data-theme="dark"] .division-page .division-service-grid article:hover {
  background: #1d1727;
  border-color: #4d3c65;
  box-shadow: 0 20px 44px rgba(0,0,0,.24);
}
html[data-theme="dark"] .division-page .division-service-grid span {
  background: rgba(146,98,234,.16);
  color: #c7aaff;
}
html[data-theme="dark"] .division-page .division-cta::after { background: rgba(185,147,255,.04); }

@media (max-width: 980px) {
  .division-page .division-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }
  .division-page .division-hero aside { max-width: 640px; }
  .division-page .division-service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .division-page .division-audience { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .division-page .division-hero { padding-top: 118px; }
  .division-page .division-hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .division-page .division-service-grid { grid-template-columns: 1fr; gap: .8rem; }
  .division-page .division-service-grid article { min-height: 225px; }
  .division-page .division-audience ul { gap: .6rem; }
  .division-page .division-audience li { width: 100%; border-radius: 14px; }
  .division-page .division-cta .hero-actions { width: 100%; }
}

/* Company pages — tighter text rhythm */
.division-page .division-hero > div > p:not(.eyebrow),
.division-page .division-services .section-intro > p:last-child,
.division-page .division-service-grid p,
.division-page .division-cta > p:not(.eyebrow) {
  line-height: 1.5;
}
.division-page .division-hero aside,
.division-page .division-hero aside li {
  line-height: 1.45;
}
.division-page .division-audience li {
  line-height: 1.35;
}

/* ============================================================
   CREDIBILITY CONTENT
   Verified corporate facts, operating standards and documents.
   ============================================================ */
.credibility { background: var(--surface); }
.credibility-intro { max-width: 880px; }
.credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.credibility-grid article {
  min-height: 260px;
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 74%, var(--paper));
  box-shadow: 0 12px 34px rgba(36,20,68,.045);
}
.credibility-grid article > span {
  color: var(--purple);
  font-size: .74rem;
  font-weight: 700;
}
.credibility-grid strong {
  margin: auto 0 .75rem;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  line-height: 1.2;
}
.credibility-grid p {
  margin: 0;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.65;
}
.credibility-commitment {
  margin-top: 1rem;
  padding: clamp(2rem, 4vw, 3.6rem);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  border-radius: var(--radius-lg);
  background: #101018;
  color: #fff;
}
.credibility-commitment .eyebrow { color: #c8adff; }
.credibility-commitment h3 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 3.2rem);
}
.credibility-commitment ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.13);
  list-style: none;
}
.credibility-commitment li {
  min-height: 150px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  background: #101018;
}
.credibility-commitment li strong {
  margin-bottom: .55rem;
  font-family: "Inter", sans-serif;
  font-size: .95rem;
}
.credibility-commitment li span {
  color: #c9c4d0;
  font-size: .82rem;
  line-height: 1.6;
}
.work-stories .photo-note {
  max-width: 720px;
  margin-top: 1rem;
  font-style: italic;
}

.corporate-information { background: var(--paper); }
.corporate-information-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: 1rem;
  align-items: stretch;
}
.corporate-details {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}
.corporate-details > div {
  min-height: 150px;
  padding: 1.5rem;
  background: var(--surface);
}
.corporate-details .corporate-hours { grid-column: 1 / -1; }
.corporate-details dt {
  margin-bottom: 1.7rem;
  color: var(--purple);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.corporate-details dd {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.corporate-details a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--purple) 45%, transparent);
  text-underline-offset: 4px;
}
.profile-card {
  min-height: 100%;
  padding: clamp(2rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--purple-dark), #1b0a3b);
  color: #fff;
  box-shadow: 0 24px 60px rgba(32,10,74,.16);
}
.profile-card .eyebrow { color: #d5c1ff; }
.profile-card h3 {
  margin: auto 0 1rem;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
}
.profile-card > p:not(.eyebrow) {
  color: #d1c8db;
  line-height: 1.7;
}
.profile-card .button {
  width: fit-content;
  margin-top: 1rem;
  background: #fff;
  color: #321071;
}
.profile-card .button:hover { background: #f1ebfb; }
.profile-card small {
  margin-top: 1rem;
  color: #bcb0c8;
}
.contact-grid .contact-hours { grid-column: 1 / -1; }

html[data-theme="dark"] .credibility-grid article,
html[data-theme="dark"] .corporate-details > div {
  background: #17141e;
  border-color: #393242;
}
html[data-theme="dark"] .credibility-commitment { background: #100d16; }
html[data-theme="dark"] .credibility-commitment li { background: #100d16; }
html[data-theme="dark"] .corporate-details { background: #393242; border-color: #393242; }

@media (max-width: 1100px) {
  .credibility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .corporate-information-layout { grid-template-columns: 1fr; }
  .profile-card { min-height: 480px; }
}
@media (max-width: 800px) {
  .credibility-commitment { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .credibility-grid,
  .credibility-commitment ul,
  .corporate-details { grid-template-columns: 1fr; }
  .credibility-grid article { min-height: 210px; }
  .credibility-commitment li { min-height: 125px; }
  .corporate-details > div { min-height: 130px; }
  .profile-card { min-height: 420px; }
}

.division-assurance {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
  background: var(--paper);
}
.division-assurance-copy {
  position: sticky;
  top: 120px;
}
.division-assurance-copy h2 {
  max-width: 620px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}
.division-assurance-copy > p:not(.eyebrow) {
  max-width: 580px;
  color: var(--text);
  line-height: 1.7;
}
.division-assurance-copy .text-link { margin-top: 1rem; }
.division-assurance-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.division-assurance-list li {
  min-height: 160px;
  padding: 1.8rem 0;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.division-assurance-list li > span {
  color: var(--purple);
  font-size: .74rem;
  font-weight: 700;
}
.division-assurance-list h3 {
  margin-bottom: .55rem;
  font-size: 1.3rem;
}
.division-assurance-list p {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}
html[data-theme="dark"] .division-assurance { background: var(--paper); }

@media (max-width: 900px) {
  .division-assurance { grid-template-columns: 1fr; gap: 2.5rem; }
  .division-assurance-copy { position: static; }
}
@media (max-width: 640px) {
  .division-assurance-list li { min-height: 140px; grid-template-columns: 42px minmax(0, 1fr); }
}

/* ============================================================
   MOBILE SCALE FIX
   Compact typography, spacing and cards while retaining 44px targets.
   ============================================================ */
@media (max-width: 700px) {
  :root {
    --page-gutter: max(16px, 4.5vw);
    --header-height: 70px;
  }

  [id] { scroll-margin-top: 78px; }
  body { line-height: 1.52; }

  .site-header,
  .site-header.is-scrolled {
    min-height: 70px;
    padding-top: 7px;
    padding-bottom: 7px;
    gap: .65rem;
  }
  .brand,
  .brand img { width: 100px; }
  .theme-switcher { gap: 1px; padding: 3px; }
  .theme-option {
    min-width: 30px;
    width: 30px;
    min-height: 32px;
    padding: .35rem;
    font-size: .68rem;
  }
  .mobile-nav { margin-left: .15rem; }
  .mobile-nav summary { width: 44px; height: 44px; }
  .mobile-nav nav { inset-block-start: 70px; padding-top: .65rem; padding-bottom: 1rem; }
  .mobile-nav nav a { min-height: 44px; padding-top: .6rem; padding-bottom: .6rem; }

  .hero {
    padding-top: 102px;
    padding-bottom: 48px;
    gap: 2rem;
  }
  .hero h1 { font-size: clamp(2.35rem, 11.8vw, 3.25rem); }
  .hero-lead { margin-bottom: 1.5rem; font-size: .96rem; line-height: 1.6; }
  .hero-actions { gap: .6rem; }
  .button {
    min-height: 46px;
    padding: .72rem 1.1rem;
    font-size: .86rem;
  }
  .hero-assurances { margin-top: 1.25rem; gap: .4rem; }
  .portfolio-panel { padding: .72rem; border-radius: 18px; }
  .portfolio-heading { padding: .45rem .45rem .85rem; }
  .portfolio-heading p { font-size: 1.08rem; }
  .portfolio-card { min-height: 104px; padding: 1rem; border-radius: 14px; }
  .portfolio-icon { width: 31px; height: 31px; }

  .trust-strip { min-height: 0; padding-top: .9rem; padding-bottom: .9rem; }
  .trust-strip p { font-size: .68rem; }

  .section,
  .contact,
  .division-audience,
  .division-cta {
    padding-top: 3.6rem;
    padding-bottom: 3.6rem;
  }
  .section-intro { margin-bottom: 2rem; }
  .section-intro h2,
  .why-copy h2,
  .division-assurance-copy h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  }
  .eyebrow { margin-bottom: .85rem; gap: .55rem; font-size: .68rem; }
  .eyebrow span { width: 22px; }

  .about { gap: 1.6rem; }
  .about-copy .large-copy { font-size: 1.2rem; line-height: 1.45; }
  .values-grid { gap: .65rem; }
  .values-grid article { min-height: 150px; padding: 1.25rem; }
  .values-grid h3 { margin-top: 1.45rem; }

  .credibility-grid { gap: .65rem; }
  .credibility-grid article { min-height: 170px; padding: 1.25rem; }
  .credibility-grid strong { margin-top: 1.6rem; }
  .credibility-commitment { padding: 1.4rem; gap: 1.5rem; border-radius: 18px; }
  .credibility-commitment h3 { font-size: 1.7rem; }
  .credibility-commitment li { min-height: 0; padding: 1.05rem; }

  .story-grid { gap: .7rem; }
  .story-card,
  .story-card-wide { min-height: 280px; border-radius: 16px; }
  .story-card figcaption { padding: 1.25rem; }
  .story-card figcaption strong { font-size: 1.08rem; }

  .company-grid { border-radius: 14px; }
  .company-card { min-height: 390px; padding: 1.5rem; }
  .company-card h3 { margin: 2rem 0 .8rem; font-size: 1.75rem; }
  .company-card ul { margin: .9rem 0 1.4rem; gap: .45rem; }

  .why-mivek { gap: 2rem; }
  .reason-list article { min-height: 0; padding: 1.4rem 0; grid-template-columns: 42px 1fr; }
  .reason-list h3 { font-size: 1.15rem; }

  .process-grid li { min-height: 205px; padding: 1.3rem; }
  .process-grid h3 { margin-top: 2.15rem; font-size: 1.2rem; }
  .sectors-panel { margin-top: 1rem; padding: 1.25rem; border-radius: 16px; }
  .sectors-panel h3 { font-size: 1.65rem; }
  .sectors-panel li { min-height: 38px; padding: .55rem .8rem; }

  .corporate-information-layout { gap: .7rem; }
  .corporate-details > div { min-height: 105px; padding: 1.15rem; }
  .corporate-details dt { margin-bottom: .9rem; }
  .corporate-details dd { font-size: 1rem; }
  .profile-card { min-height: 340px; padding: 1.5rem; border-radius: 16px; }
  .profile-card h3 { font-size: 1.85rem; }

  .contact-intro { margin-bottom: 2rem; }
  .contact h2 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .contact-layout { gap: .7rem; }
  .contact-grid > * { min-height: 145px; padding: 1.25rem; }
  .contact-grid strong { margin-top: 1.25rem; font-size: 1.05rem; }
  .enquiry-form { padding: 1.3rem; }
  .form-heading h3 { font-size: 1.7rem; }
  .form-grid { margin-top: 1.25rem; gap: .75rem; }
  .form-grid input,
  .form-grid select { min-height: 46px; }
  .form-grid textarea { min-height: 110px; }

  .site-footer { padding-top: 3rem; padding-bottom: 1.2rem; }
  .footer-top { padding-bottom: 2rem; gap: 1.4rem; }
  .footer-brand { width: 118px; }
  .footer-columns { padding: 2.2rem 0; gap: 1.7rem; row-gap: 1.8rem; }

  .division-page .division-hero {
    padding-top: 102px;
    padding-bottom: 48px;
    gap: 2rem;
  }
  .division-page .division-hero h1 { font-size: clamp(2.65rem, 13vw, 3.65rem); }
  .division-page .division-hero aside { padding: 1.35rem; border-radius: 16px; }
  .division-page .division-service-grid { gap: .65rem; }
  .division-page .division-service-grid article { min-height: 185px; padding: 1.35rem; }
  .division-page .division-service-grid h3 { margin-top: 1.65rem; font-size: 1.15rem; }
  .division-page .division-audience { gap: 1.8rem; }
  .division-page .division-audience li { min-height: 58px; padding: .75rem 1rem; }
  .division-page .division-cta h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .division-assurance { gap: 2rem; }
  .division-assurance-list li {
    min-height: 0;
    padding: 1.25rem 0;
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .division-assurance-list h3 { font-size: 1.15rem; }

  .legal-main { padding-top: 102px; padding-bottom: 3.5rem; }
  .legal-hero { margin-bottom: 2.2rem; }
  .legal-hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .legal-content { padding: 1.25rem; border-radius: 14px; }
  .legal-content h2 { margin-top: 2rem; font-size: 1.25rem; }
}

@media (max-width: 390px) {
  .site-header,
  .site-header.is-scrolled { gap: .45rem; }
  .brand,
  .brand img { width: 90px; }
  .theme-option { min-width: 29px; width: 29px; }
  .mobile-nav summary { width: 42px; height: 42px; }
  .hero h1 { font-size: clamp(2.2rem, 11.4vw, 2.8rem); }
  .footer-columns { grid-template-columns: 1fr; }
}

/* === MIVEK FINAL TYPOGRAPHY SYSTEM === */
/* Unified Inter typography across homepage, company pages and legal pages. */
/* This block intentionally changes typography only, not the existing layout. */
:root {
  --font-primary: "Inter", Arial, sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  font-synthesis: none;
}

/* Primary heading hierarchy */
h1,
h2,
h3 {
  font-family: var(--font-primary);
  text-wrap: balance;
}

h1 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

/* Body and supporting copy */
p,
li,
dd,
input,
textarea,
select,
button {
  font-family: var(--font-primary);
}

p,
li,
dd {
  font-weight: 400;
}

.hero-lead,
.hero > div > p:not(.eyebrow),
.division-hero > div > p:not(.eyebrow),
.about-copy .large-copy,
.form-heading > p:last-child {
  font-weight: 500;
  line-height: 1.65;
}

/* Navigation and interactive controls */
.desktop-nav a,
.mobile-nav nav a {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.button,
.nav-button,
.text-link,
.company-card > a {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Labels, eyebrows and metadata */
.eyebrow,
.company-card-top p,
.trust-strip p,
.contact-grid span,
.form-grid label > span,
.division-hero aside > p,
.footer-columns h2 {
  font-weight: 700;
  letter-spacing: 0.11em;
}

/* Card and section headings */
.portfolio-heading p,
.company-card h3,
.reason-list h3,
.process-grid h3,
.sectors-panel h3,
.form-heading h3,
.division-service-grid h3,
.division-assurance-list h3,
.legal-content h2,
.legal-content h3 {
  font-family: var(--font-primary);
}

.portfolio-heading p,
.company-card h3,
.reason-list h3,
.process-grid h3,
.sectors-panel h3,
.form-heading h3,
.division-service-grid h3,
.division-assurance-list h3 {
  font-weight: 700;
}

/* Emphasis */
strong,
b {
  font-weight: 700;
}

/* Keep large statement copy strong without becoming visually heavy */
.about-copy .large-copy,
.story-card figcaption strong,
.contact-grid strong {
  letter-spacing: -0.018em;
}

/* Small text remains readable on compact screens */
@media (max-width: 640px) {
  body {
    line-height: 1.62;
  }

  h1 {
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  h2 {
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  h3 {
    line-height: 1.22;
  }

  .hero-lead,
  .division-hero > div > p:not(.eyebrow) {
    line-height: 1.6;
  }
}
/* === END MIVEK FINAL TYPOGRAPHY SYSTEM === */

/* === MIVEK TRUE FULL-SCREEN MOBILE FIX === */
/*
   Ensures the website always uses the phone's full CSS viewport width.
   Also removes hidden horizontal overflow caused by decorative pseudo-elements
   and the mobile menu living inside a backdrop-filtered fixed header.
*/
html {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
}

@media (max-width: 900px) {
  :root {
    --page-gutter: clamp(14px, 4vw, 20px);
  }

  html,
  body {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
  }

  body {
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* The fixed header itself must span the exact viewport. */
  .site-header,
  .site-header.is-scrolled {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: max(var(--page-gutter), env(safe-area-inset-left)) !important;
    padding-right: max(var(--page-gutter), env(safe-area-inset-right)) !important;

    /* backdrop-filter creates a containing block for the nested fixed menu
       on some mobile browsers, which previously pushed the menu off-screen. */
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
  }

  /* Every outer page region is truly edge-to-edge. Internal content keeps
     only a small responsive gutter for readability. */
  main,
  footer,
  .hero,
  .trust-strip,
  .section,
  .contact,
  .site-footer,
  .legal-main,
  .division-hero,
  .division-audience,
  .division-cta,
  .division-services,
  .division-assurance {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  main {
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
  }

  main > *,
  footer,
  .site-footer {
    min-width: 0 !important;
  }

  /* Keep readable content padding while the section background fills screen. */
  .hero,
  .section,
  .contact,
  .site-footer,
  .legal-main,
  .division-hero,
  .division-audience,
  .division-cta,
  .division-assurance {
    padding-left: max(var(--page-gutter), env(safe-area-inset-left)) !important;
    padding-right: max(var(--page-gutter), env(safe-area-inset-right)) !important;
  }

  .trust-strip {
    padding-left: max(var(--page-gutter), env(safe-area-inset-left)) !important;
    padding-right: max(var(--page-gutter), env(safe-area-inset-right)) !important;
  }

  /* Do not let grid/flex children impose desktop intrinsic widths. */
  .hero > *,
  .about > *,
  .why-mivek > *,
  .contact-layout > *,
  .corporate-information-layout > *,
  .credibility-commitment > *,
  .division-hero > *,
  .division-audience > *,
  .division-assurance > *,
  .footer-top > *,
  .footer-columns > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  img,
  picture,
  video,
  iframe,
  canvas,
  svg {
    max-width: 100%;
  }

  /* Closed details menus must contribute zero layout width. */
  .mobile-nav:not([open]) nav {
    display: none !important;
  }

  /* Open mobile menu is anchored to the viewport, not the menu button. */
  .mobile-nav[open] nav {
    display: grid !important;
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    padding-left: max(var(--page-gutter), env(safe-area-inset-left)) !important;
    padding-right: max(var(--page-gutter), env(safe-area-inset-right)) !important;
  }

  .mobile-nav[open] nav a,
  .mobile-nav[open] nav .nav-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Decorative circles used to increase document scrollWidth beyond the
     physical phone width. Their section now clips them safely. */
  .hero,
  .division-page .division-hero {
    overflow-x: hidden !important;
    overflow-x: clip !important;
  }

  .hero::after,
  .division-page .division-hero::before {
    max-width: 72vw;
    max-height: 72vw;
  }

  /* Full-width forms/cards without accidental overflow. */
  .portfolio-panel,
  .company-grid,
  .story-grid,
  .values-grid,
  .credibility-grid,
  .corporate-details,
  .process-grid,
  .sectors-panel,
  .opportunities,
  .contact-layout,
  .contact-grid,
  .enquiry-form,
  .form-grid,
  .legal-content,
  .division-page .division-service-grid,
  .division-assurance-list {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  :root { --page-gutter: 14px; }
}

@media (max-width: 360px) {
  :root { --page-gutter: 12px; }
}
/* === END MIVEK TRUE FULL-SCREEN MOBILE FIX === */
