/* Taarifa Muhimu — see design-system/taarifa-muhimu/MASTER.md */

/* IBM Plex © IBM Corp., SIL Open Font License 1.1 — latin subset, self-hosted */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(../assets/fonts/ibm-plex-sans-var-latin.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(../assets/fonts/ibm-plex-mono-400-latin.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../assets/fonts/ibm-plex-mono-500-latin.woff2) format('woff2')}

:root{
  --color-primary:#0F172A;
  --color-on-primary:#FFFFFF;
  --color-secondary:#334155;
  --color-accent:#0369A1;
  --color-accent-hover:#075985;
  --color-on-accent:#FFFFFF;
  --color-background:#F8FAFC;
  --color-card:#FFFFFF;
  --color-foreground:#020617;
  --color-muted:#F1F5F9;
  --color-muted-foreground:#475569;
  --color-border:#E2E8F0;
  --color-ring:#0369A1;
  --conf-confirmed:#15803D;
  --conf-probable:#B45309;
  --conf-unverified:#B91C1C;

  --font-sans:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-mono:'IBM Plex Mono',ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;

  --space-xs:4px;--space-sm:8px;--space-md:16px;--space-lg:24px;--space-xl:32px;--space-2xl:48px;--space-3xl:64px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.05);
  --shadow-md:0 4px 12px rgba(15,23,42,.08);
  --shadow-lg:0 12px 28px rgba(15,23,42,.12);
  --radius:8px;

  --header-h:72px;
  --header-h-compact:56px;
  --ease-out:cubic-bezier(.22,1,.36,1);

}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h-compact) + 16px);-webkit-text-size-adjust:100%}
body{font-family:var(--font-sans);font-size:16px;line-height:1.5;color:var(--color-foreground);background:var(--color-background);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a,button{cursor:pointer}
:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px;border-radius:2px}
main:focus{outline:none}

/* Language: only the active language is shown */
html[lang="fr"] [data-lang="en"],
html[lang="en"] [data-lang="fr"]{display:none !important}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.skip-link{position:fixed;left:16px;top:8px;z-index:300;background:var(--color-primary);color:#fff;padding:10px 16px;border-radius:6px;text-decoration:none;font-weight:600;transform:translateY(-200%);transition:transform .2s var(--ease-out)}
.skip-link:focus{transform:none}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 22px;border-radius:6px;font:600 16px/1.2 var(--font-sans);text-decoration:none;border:1.5px solid transparent;transition:background-color .2s ease,border-color .2s ease,color .2s ease;white-space:nowrap}
.btn.btn-primary{display:inline-flex;padding:10px 22px;background:var(--color-accent);color:var(--color-on-accent)}
.btn.btn-primary:hover{background:var(--color-accent-hover)}
.btn:active{opacity:.88}
footer :focus-visible{outline-color:#fff}
.btn.btn-sm{padding:8px 16px}
.btn.btn-lg{min-height:52px;padding:14px 28px;font-size:17px}
.btn.btn-outline{background:transparent;color:var(--color-primary);border-color:var(--color-primary)}
.btn.btn-outline:hover{background:var(--color-muted)}

/* ---------- Reading progress ---------- */
.read-progress{position:fixed;inset:0 0 auto 0;height:3px;z-index:210;pointer-events:none}
.read-progress-bar{height:100%;background:var(--color-primary);transform-origin:0 50%;transform:scaleX(0)}

/* ---------- Header ---------- */
.site-header{position:fixed;inset:0 0 auto 0;height:var(--header-h);z-index:200;pointer-events:none}
.header-bg{position:absolute;inset:0;background:rgba(255,255,255,.96);border-bottom:1px solid var(--color-border);transform-origin:50% 0;transition:transform .3s var(--ease-out),box-shadow .3s ease;pointer-events:auto}
.header-inner{position:relative;height:var(--header-h);max-width:1200px;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:24px;transition:transform .3s var(--ease-out)}
.header-inner>*{pointer-events:auto}
.brand{display:flex;align-items:center;min-height:44px;flex-shrink:0;margin-right:auto}
.brand img{height:40px;width:auto;transform-origin:0 50%;transition:transform .3s var(--ease-out)}

.is-scrolled .header-bg{transform:scaleY(calc(56 / 72));box-shadow:var(--shadow-md)}
.is-scrolled .header-inner{transform:translateY(-8px)}
.is-scrolled .brand img{transform:scale(.85)}

.primary-nav{position:relative;display:none}
.nav-links{list-style:none;display:flex;gap:4px}
.nav-links a{display:flex;align-items:center;min-height:44px;padding:0 12px;color:var(--color-secondary);text-decoration:none;font-size:16px;font-weight:500;transition:color .2s ease}
.nav-links a:hover,.nav-links a[aria-current]{color:var(--color-foreground)}
.nav-indicator{position:absolute;left:0;bottom:6px;width:100px;height:2px;background:var(--color-primary);transform-origin:0 50%;transform:scaleX(0);opacity:0;pointer-events:none}

.header-actions{display:flex;align-items:center;gap:12px}

.lang-pill{position:relative;display:flex;padding:2px;border:1px solid var(--color-border);border-radius:999px;background:var(--color-muted)}
.lang-pill button{position:relative;z-index:1;width:44px;height:40px;border:0;background:none;border-radius:999px;font:500 14px/1 var(--font-mono);letter-spacing:.04em;color:var(--color-muted-foreground);transition:color .3s ease}
.lang-pill button::before{content:"";position:absolute;inset:-2px 0}
.lang-pill button[aria-pressed="true"]{color:var(--color-on-primary)}
.lang-pill button:hover:not([aria-pressed="true"]){color:var(--color-foreground)}
.lang-thumb{position:absolute;top:2px;left:2px;width:44px;height:40px;border-radius:999px;background:var(--color-primary);transition:transform .3s var(--ease-out)}
html[lang="en"] .lang-thumb{transform:translateX(44px)}

.header-actions .header-cta{display:none}

.menu-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-card);color:var(--color-primary)}
.menu-line{transition:transform .3s var(--ease-out),opacity .2s ease;transform-box:fill-box;transform-origin:center}
.menu-toggle[aria-expanded="true"] .menu-line-top{transform:translateY(5px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] .menu-line-mid{opacity:0}
.menu-toggle[aria-expanded="true"] .menu-line-bot{transform:translateY(-5px) rotate(-45deg)}

.mobile-menu{position:absolute;top:var(--header-h);left:0;right:0;background:var(--color-card);border-bottom:1px solid var(--color-border);box-shadow:var(--shadow-lg);padding:8px 24px 24px;pointer-events:auto}
.is-scrolled .mobile-menu{top:var(--header-h-compact)}
.js .mobile-menu:not(.is-open){display:none}
.mobile-menu ul{list-style:none}
.mobile-menu li+li{border-top:1px solid var(--color-border)}
.mobile-menu ul a{display:flex;align-items:center;min-height:52px;color:var(--color-foreground);text-decoration:none;font-size:17px;font-weight:500}
.mobile-menu ul a[aria-current]{color:var(--color-accent)}
.mobile-menu-cta{width:100%;margin-top:16px}

/* Without JS the header is static and the menu is a plain list */
html:not(.js) .site-header{position:relative;height:auto;pointer-events:auto}
html:not(.js) .header-bg{border:0}
html:not(.js) .menu-toggle,html:not(.js) .lang-pill,html:not(.js) .mobile-menu .mobile-menu-cta{display:none}
html:not(.js) .mobile-menu{position:relative;top:auto;box-shadow:none;padding-top:0;border-bottom:0}
html:not(.js) .mobile-menu ul{display:flex;flex-wrap:wrap;gap:0 20px}
html:not(.js) .mobile-menu li+li{border:0}
.js main{padding-top:var(--header-h)}

@media (min-width:560px){
  .header-actions .header-cta{display:inline-flex}
  .mobile-menu .mobile-menu-cta{display:none}
}
@media (min-width:1024px){
  .primary-nav{display:block}
  .menu-toggle,.mobile-menu{display:none !important}
  .header-actions{gap:16px}
}

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

/* ---------- Hero ---------- */
.hero{padding:clamp(56px,10vw,120px) 24px clamp(56px,8vw,104px);border-bottom:1px solid var(--color-border)}
.hero-inner{max-width:1100px;margin:0 auto}
.hero-eyebrow{font:500 14px/1.4 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--color-muted-foreground);margin-bottom:24px}
.hero-title{font-size:clamp(40px,7.2vw,80px);font-weight:700;line-height:1.04;letter-spacing:-.025em;color:var(--color-primary);max-width:15ch;margin-bottom:28px}
.hero-word{display:inline-block}
.hero-verified{white-space:nowrap}
.hero-check{display:inline-block;width:.72em;height:.72em;margin-left:.16em;vertical-align:-.02em;color:var(--conf-confirmed)}
.hero-lead{font-size:clamp(20px,2.4vw,26px);font-weight:500;line-height:1.35;color:var(--color-secondary);max-width:32ch;margin-bottom:16px}
.hero-sub{font-size:17px;line-height:1.6;color:var(--color-muted-foreground);max-width:62ch;margin-bottom:40px}
.hero-cta-row{display:flex;gap:12px;flex-wrap:wrap}

/* Word-by-word entrance: hidden only when JS may animate, revealed by CSS if Motion never arrives */
@keyframes hero-fallback{to{opacity:1;transform:none}}
.js .hero-word{opacity:0;transform:translateY(12px);animation:hero-fallback .4s ease-out 2.5s forwards}
.js .hero-title.is-animating .hero-word{animation:none}
@media (prefers-reduced-motion:reduce){
  .js .hero-word{opacity:1;transform:none;animation:none}
}
@media (max-width:480px){
  .hero-cta-row .btn{width:100%}
}


/* ---------- Key figures ---------- */
section.stats{padding:clamp(40px,6vw,72px) 24px}
.stats-grid{list-style:none;max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--color-border);border:1px solid var(--color-border);border-radius:var(--radius);overflow:hidden}
.stat{display:flex;flex-direction:column;gap:8px;padding:24px 20px;background:var(--color-card)}
.stat:last-child{grid-column:1/-1}
.stat-num{display:flex;align-items:baseline;font:500 clamp(32px,4vw,44px)/1.1 var(--font-mono);font-variant-numeric:tabular-nums;color:var(--color-primary);letter-spacing:-.02em}
.stat-count{display:inline-block}
.stat-unit{margin-left:.05em}
.stat-levels-visual{display:inline-flex;align-items:center;gap:.12em}
.stat-arrow{width:.8em;height:.4em;flex-shrink:0;overflow:visible}
.stat-label{font-size:16px;line-height:1.4;color:var(--color-muted-foreground)}
@media (min-width:768px){
  .stats-grid{grid-template-columns:repeat(5,1fr)}
  .stat:last-child{grid-column:auto}
}

section{padding:clamp(64px,9vw,112px) 24px}
.container{max-width:1100px;margin:0 auto}

/* ---------- Section headings (shared) ---------- */
.section-head{max-width:720px;margin-bottom:clamp(32px,5vw,56px)}
.section-eyebrow{font:500 14px/1.4 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--color-muted-foreground);margin-bottom:12px}
.section-title{font-size:clamp(28px,3.6vw,44px);font-weight:700;line-height:1.15;letter-spacing:-.02em;color:var(--color-primary);margin-bottom:16px}
.section-subtitle{font-size:18px;line-height:1.55;color:var(--color-muted-foreground);max-width:62ch;margin-bottom:48px}
.section-head .section-subtitle{margin-bottom:0}

/* ---------- Services ---------- */
.services .container{max-width:1240px}
.services-grid{list-style:none;display:grid;grid-template-columns:1fr;gap:20px}
.services-grid>li{display:contents}
.service-card{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:12px;align-content:start;padding:24px;background:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius);box-shadow:var(--shadow-sm);transition:translate .3s var(--ease-out),box-shadow .3s ease,border-color .3s ease}
.service-name{font-size:19px;font-weight:600;line-height:1.3;color:var(--color-primary)}
.service-price{font:500 18px/1.3 var(--font-mono);font-variant-numeric:tabular-nums;color:var(--color-primary);padding-bottom:12px;border-bottom:1px solid var(--color-border)}
.service-specs{display:grid;gap:10px;align-content:start}
.service-specs dt{font:500 14px/1.3 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--color-muted-foreground)}
.service-specs dd{font-size:16px;color:var(--color-secondary)}
.service-desc{font-size:16px;line-height:1.5;color:var(--color-muted-foreground)}
.service-link{align-self:end;justify-self:start;display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--color-primary);font-weight:600;text-decoration:underline;text-decoration-color:var(--color-border);text-underline-offset:4px;transition:text-decoration-color .2s ease}
.service-link svg{transition:translate .3s var(--ease-out)}
.service-link:hover{text-decoration-color:currentColor}
.service-link:hover svg{translate:3px 0}
@media (hover:hover){
  .service-card:hover{translate:0 -4px;box-shadow:var(--shadow-md);border-color:#CBD5E1}
}
.service-card:focus-within{border-color:#CBD5E1;box-shadow:var(--shadow-md)}
@media (min-width:640px){.services-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.services-grid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1280px){.services-grid{grid-template-columns:repeat(5,1fr);gap:16px}.service-card{padding:20px}}

/* ---------- Methodology ---------- */
.mono{font-family:var(--font-mono);font-size:.92em;letter-spacing:0}
.method-section{background:var(--color-muted)}
.method-grid{display:grid;gap:48px;align-items:start}

.timeline{position:relative}
.tl-list{list-style:none}
.tl-item{position:relative;display:grid;grid-template-columns:40px 1fr;column-gap:20px;padding-bottom:32px}
.tl-item:last-child{padding-bottom:0}
/* Masks the track below the last marker */
.tl-item:last-child::before{content:"";position:absolute;left:0;top:40px;bottom:0;width:40px;background:var(--color-muted)}
.tl-marker{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--color-card);border:2px solid var(--color-primary);font:500 16px/1 var(--font-mono);color:var(--color-primary)}
.tl-body{padding-top:7px}
.tl-body h3{font-size:18px;font-weight:600;line-height:1.4;color:var(--color-primary);margin-bottom:6px}
.tl-body p{font-size:16px;line-height:1.55;color:var(--color-muted-foreground)}
.tl-track{position:absolute;left:19px;top:20px;bottom:0;width:2px;background:var(--color-border)}
.tl-progress{position:absolute;inset:0;background:var(--color-primary);transform-origin:50% 0}

.confidence-card{background:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:clamp(20px,3vw,32px)}
.confidence-title{font-size:20px;font-weight:600;color:var(--color-primary);margin-bottom:6px}
.confidence-intro{font-size:16px;color:var(--color-muted-foreground);margin-bottom:8px}
.conf-levels{list-style:none}
.conf-level{padding:20px 0;border-bottom:1px solid var(--color-border)}
.conf-confirmed{--c:var(--conf-confirmed);--c-bg:#F0FDF4}
.conf-probable{--c:var(--conf-probable);--c-bg:#FFFBEB}
.conf-unverified{--c:var(--conf-unverified);--c-bg:#FEF2F2}
.conf-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.conf-tag{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 8px;border:1px solid currentColor;border-radius:999px;background:var(--c-bg);color:var(--c);font:500 15px/1.2 var(--font-mono)}
.conf-tag svg{flex-shrink:0}
.conf-gauge{display:flex;gap:4px}
.conf-seg{width:22px;height:6px;border-radius:3px;background:var(--color-border);overflow:hidden;position:relative}
.conf-fill{position:absolute;inset:0;background:var(--c);transform-origin:0 50%}
.conf-def{font-size:16px;line-height:1.5;color:var(--color-secondary);margin-bottom:8px}
.conf-example{font-size:16px;line-height:1.5;color:var(--color-muted-foreground);padding-left:12px;border-left:2px solid var(--color-border)}
.conf-example-label{display:block;font:500 13px/1.6 var(--font-mono);letter-spacing:.08em;text-transform:uppercase}
.conf-note{font-size:15px;color:var(--color-muted-foreground);margin-top:16px;font-style:italic}

@media (min-width:1024px){
  .method-grid{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:64px}
  .confidence-card{position:sticky;top:calc(var(--header-h-compact) + 24px)}
}

/* ---------- Coverage ---------- */
.coverage-grid{list-style:none;display:grid;grid-template-columns:1fr;gap:16px}
.coverage-grid>li{display:flex}
.country-card{flex:1;display:flex;flex-direction:column;gap:12px;padding:24px;background:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius);box-shadow:var(--shadow-sm);transition:border-color .3s ease,box-shadow .3s ease}
.country-head{display:flex;align-items:center;gap:12px}
.country-flag{width:36px;height:24px;border-radius:2px;box-shadow:0 0 0 1px rgba(15,23,42,.12);flex-shrink:0}
.country-code{font:500 14px/1 var(--font-mono);letter-spacing:.08em;color:var(--color-muted-foreground)}
.country-name{font-size:19px;font-weight:600;line-height:1.3;color:var(--color-primary)}
.country-sectors{display:grid;gap:12px;margin-top:auto}
.sector-row dt{font:500 13px/1.4 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--color-muted-foreground);margin-bottom:6px}
.sector-tags{list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.sector-tags li{padding:4px 10px;border:1px solid var(--color-border);border-radius:4px;background:var(--color-background);font-size:15px;line-height:1.4;color:var(--color-secondary);transition:background-color .3s ease,border-color .3s ease,color .3s ease}
.country-card:hover,.country-card:focus-within{border-color:#CBD5E1;box-shadow:var(--shadow-md)}
@media (hover:hover){
  .country-card:hover .sector-tags li{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-on-primary)}
  .country-card:hover .sector-tags li:nth-child(2){transition-delay:40ms}
  .country-card:hover .sector-tags li:nth-child(3){transition-delay:80ms}
  .country-card:hover .sector-tags li:nth-child(4){transition-delay:120ms}
}
@media (min-width:640px){
  .coverage-grid{grid-template-columns:repeat(2,1fr)}
  .coverage-grid>li:first-child{grid-column:1/-1}
}
@media (min-width:1024px){
  .coverage-grid{grid-template-columns:repeat(3,1fr)}
  .coverage-grid>li:first-child{grid-column:span 2}
}

/* ---------- Flagship report ---------- */
.report-section{background:var(--color-primary);color:var(--color-on-primary)}
.report-section .section-eyebrow,.report-section .section-subtitle{color:#CBD5E1}
.report-section .section-title{color:#fff}
.report-card{display:grid;background:var(--color-card);color:var(--color-foreground);border-radius:12px;box-shadow:var(--shadow-lg);overflow:hidden;transition:translate .3s var(--ease-out),box-shadow .3s ease}
@media (hover:hover){
  .report-card:hover{translate:0 -4px;box-shadow:0 20px 40px rgba(2,6,23,.35)}
}
.report-main{padding:clamp(24px,4vw,48px)}
.report-kicker{font:500 14px/1.4 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--color-muted-foreground);margin-bottom:12px}
.report-title{font-size:clamp(22px,2.6vw,30px);font-weight:700;line-height:1.25;letter-spacing:-.01em;color:var(--color-primary);margin-bottom:20px;max-width:30ch}
.report-meta{display:flex;flex-wrap:wrap;gap:8px 28px;padding:14px 0;border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border);margin-bottom:20px}
.report-meta dt{font:500 13px/1.4 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--color-muted-foreground)}
.report-meta dd{font:500 16px/1.4 var(--font-mono);color:var(--color-primary)}
.report-abstract{font-size:17px;line-height:1.6;color:var(--color-secondary);max-width:62ch;margin-bottom:28px}
.report-cta{position:relative}
.report-cta-ring{position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 6px rgba(3,105,161,.35);opacity:0;pointer-events:none}
.report-figures{padding:clamp(24px,4vw,40px);background:var(--color-muted);border-top:1px solid var(--color-border)}
.report-figures-title{font:500 14px/1.4 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--color-muted-foreground);margin-bottom:16px}
.report-figures dl{display:grid;gap:20px}
.report-figures dl>div{display:flex;flex-direction:column-reverse;gap:4px}
.report-figures dt{font-size:16px;line-height:1.45;color:var(--color-muted-foreground)}
.report-figures dd{font:500 clamp(26px,3vw,34px)/1.1 var(--font-mono);font-variant-numeric:tabular-nums;color:var(--color-primary)}
@media (min-width:1024px){
  .report-card{grid-template-columns:minmax(0,1fr) 320px}
  .report-figures{border-top:0;border-left:1px solid var(--color-border)}
}
@media (max-width:480px){
  .report-cta{width:100%}
}

/* ---------- Contact ---------- */
.contact-section{background:var(--color-muted)}
.contact-grid{display:grid;gap:40px;align-items:start}
.contact-info .section-head{margin-bottom:28px}
.contact-details dt{font:500 13px/1.4 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--color-muted-foreground);margin-bottom:4px}
.contact-details dd a{display:inline-flex;align-items:center;min-height:44px;font:500 18px/1.3 var(--font-mono);color:var(--color-primary);text-decoration:underline;text-decoration-color:#94A3B8;text-underline-offset:4px;word-break:break-all}
.contact-details dd a:hover{text-decoration-color:currentColor}
.contact-note{margin-top:20px;font-size:16px;color:var(--color-muted-foreground)}

.contact-card{background:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:clamp(20px,3vw,32px)}
.contact-form{display:grid;gap:20px}
.contact-form[hidden]{display:none}
.field-row{display:grid;gap:20px}
.field{display:grid;gap:6px;align-content:start}
.field label{font-size:16px;font-weight:600;color:var(--color-primary)}
.field-optional{font-weight:400;color:var(--color-muted-foreground)}
.field input,.field select,.field textarea{width:100%;min-height:48px;padding:12px 14px;border:1px solid #64748B;border-radius:6px;background:var(--color-card);font:400 16px/1.4 var(--font-sans);color:var(--color-foreground);transition:border-color .2s ease,box-shadow .2s ease}
.field textarea{min-height:140px;resize:vertical}
.field select{appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23334155' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;cursor:pointer}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--color-ring);box-shadow:0 0 0 3px rgba(3,105,161,.2)}
.field [aria-invalid="true"]{border-color:var(--conf-unverified)}
.field [aria-invalid="true"]:focus{box-shadow:0 0 0 3px rgba(185,28,28,.18)}
.field-hint{font-size:15px;color:var(--color-muted-foreground)}
.field-error{display:flex;gap:6px;align-items:flex-start;font-size:15px;color:var(--conf-unverified)}
.field-error:empty{display:none}
.field-error::before{content:"";flex-shrink:0;width:16px;height:16px;margin-top:2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B91C1C' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") no-repeat center/contain}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.form-status{font-size:16px;color:var(--color-secondary)}
.form-status:empty{display:none}
.form-status.is-error{padding:12px 14px;border:1px solid #FECACA;border-left:3px solid var(--conf-unverified);border-radius:6px;background:#FEF2F2;color:#991B1B}
.form-status.is-error a{color:inherit;font-weight:600}
.form-submit{justify-self:start}
.form-submit .spinner,.form-submit .label-sending{display:none}
.form-submit[aria-busy="true"]{opacity:.85;cursor:progress}
.form-submit[aria-busy="true"] .spinner{display:block;animation:spin .8s linear infinite}
.form-submit[aria-busy="true"] .label-sending{display:inline}
.form-submit[aria-busy="true"] .label-idle{display:none}
@keyframes spin{to{transform:rotate(360deg)}}

.form-success{display:grid;justify-items:start;gap:10px;padding:8px 0;color:var(--conf-confirmed)}
.form-success[hidden]{display:none}
.form-success:focus{outline:none}
.form-success h3{font-size:22px;font-weight:600;color:var(--color-primary)}
.form-success p{font-size:16px;color:var(--color-secondary)}

@media (min-width:640px){
  .field-row{grid-template-columns:1fr 1fr}
}
@media (min-width:1024px){
  .contact-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:64px}
}
@media (max-width:480px){
  .form-submit{width:100%}
}

footer{background:var(--color-primary);padding:40px 24px;text-align:center}
.footer-logo img{height:40px;width:auto;margin:0 auto 16px}
.footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:0 24px;margin-bottom:12px}
.footer-links a{display:inline-flex;align-items:center;min-height:44px;color:#CBD5E1;font-size:16px;text-decoration:none}
.footer-links a:hover{color:#fff}
.footer-copy{font-size:14px;color:#94A3B8}

