/* Layout: dark stage with one big rounded hero panel, a light "paper" band for the five pillars, then dark editorial sections closing on a periwinkle call-to-action. */
:root {
  --ink: #0d0e13;          /* page ground, blue-black from the brochure navy */
  --panel: #16171f;        /* raised dark surfaces */
  --panel-2: #1e2029;
  --line: #2b2d3a;
  --text: #f2f0eb;
  --muted: #9c9eac;
  --brand: #9898c2;        /* logo circle periwinkle */
  --brand-deep: #6a6aa6;   /* darker periwinkle for light backgrounds */
  --brand-tint: #c9c9e6;
  --gold: #ebbb4e;         /* logo beak, used sparingly */
  --on-brand: #14152a;
  --paper: #eeeef2;
  --paper-card: #ffffff;
  --on-paper: #14151c;
  --on-paper-muted: #5d5f6e;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --wrap: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(52px, 9vw, 120px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); }
.lead { color: var(--muted); font-size: 17px; max-width: 58ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: #adadd6; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-dark { background: var(--ink); color: var(--text); }
.btn svg { width: 16px; height: 16px; }

/* Announcement */
.announce {
  background: var(--brand); color: var(--on-brand); text-align: center;
  font-size: 14px; font-weight: 600; padding-block: 9px;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* Nav: Creatix pill */
.nav-shell { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-block: 14px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(22,23,31,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-mark img { width: 34px; transform: translate(-1px, 2px); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .04em; line-height: 1; }
.brand-name small { display: block; white-space: nowrap; font: 500 10px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav .btn { padding: 12px 18px; font-size: 14px; white-space: nowrap; }
.menu-btn { display: none; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav .btn { display: none; }
  .nav.open { border-radius: 26px; flex-wrap: wrap; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; padding: 8px 0 6px; }
  .nav.open .btn { display: inline-flex; margin: 0 6px 6px; }
}

/* Hero: Novacraft headline + Creatix portrait panel */
.hero { padding-top: 12px; }
.hero-panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 78% 40%, rgba(152,152,194,.20), transparent 60%),
    radial-gradient(40% 50% at 10% 100%, rgba(235,187,78,.10), transparent 70%),
    #0a0a0e;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 24px;
  min-height: 600px;
}
.hero-copy { padding: clamp(32px, 5vw, 64px); padding-right: 0; align-self: center; display: grid; gap: 26px; position: relative; z-index: 2; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.tags-track { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-tags .dup { display: none; }
.show-sm { display: none; }
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55; }
.hero h1 { font-size: clamp(30px, 7vw + 8px, 82px); font-variation-settings: "wdth" 88; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--brand); white-space: nowrap; }
.hero-quote { font-size: 18px; color: var(--muted); max-width: 46ch; border-left: 2px solid var(--brand); padding-left: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; align-self: stretch; min-height: 420px; }
/* The ring is drawn twice: a full copy behind the cutout portrait, and a copy in front clipped
   below a line tilted at the ring's -18deg angle, so the arc passes behind his head and over his chest. */
.ring-box {
  position: absolute; width: min(520px, 90%); aspect-ratio: 1; max-width: 100%;
  left: 50%; top: 46%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.ring-box.back { z-index: 1; }
.ring-box.front { z-index: 2; clip-path: polygon(0 66%, 100% 34%, 100% 100%, 0 100%); }
.ring {
  position: absolute; inset: 0;
  border-radius: 50%; transform: rotate(-18deg);
  background: conic-gradient(from 200deg, transparent 0 18%, var(--brand) 34%, #d9d9f0 42%, var(--brand-deep) 52%, transparent 70%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 26px), #000 calc(100% - 25px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 26px), #000 calc(100% - 25px));
  filter: drop-shadow(0 0 40px rgba(152,152,194,.35));
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(342deg); } }
.hero-visual img.portrait {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  width: auto; height: 96%; max-width: none;
  -webkit-mask: linear-gradient(to bottom, #000 82%, transparent);
          mask: linear-gradient(to bottom, #000 82%, transparent);
}
.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: rgba(22,23,31,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px;
  font-size: 13px; color: var(--muted); line-height: 1.3;
}
.chip strong { display: block; font-family: var(--display); font-size: 24px; color: var(--text); font-weight: 700; }
.chip-years { top: 14%; right: 6%; }
.chip-name { bottom: 8%; left: 4%; }
.chip-name strong { font-size: 16px; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(235,187,78,.2); flex: none; }

@media (max-width: 900px) {
  .hero-panel { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-right: clamp(32px, 5vw, 64px); }
  .hero-visual { min-height: 440px; }
}
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } .btn:hover { transform: none; } html { scroll-behavior: auto; } }

/* Certifications strip: Novacraft "trusted by" */
.certs {
  margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel);
  display: grid; grid-template-columns: auto 1fr 1fr 1fr; align-items: center;
}
.certs > * { padding: 20px 24px; }
.certs-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; max-width: 18ch; line-height: 1.4; }
.cert { border-left: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.cert b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.cert span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .certs { grid-template-columns: 1fr; }
  .cert { border-left: 0; border-top: 1px solid var(--line); }
}

/* Stats: Creatix band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel), var(--ink)); }
.stat { padding: 34px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; white-space: nowrap; font-family: var(--display); font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; color: var(--brand); }
.stat span { color: var(--muted); font-size: 14px; display: block; margin-top: 10px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Thesis: rowing image */
.thesis { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.thesis-copy { display: grid; gap: 22px; min-width: 0; }
.thesis-copy p { color: var(--muted); max-width: 54ch; }
.thesis-media { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; max-width: 100%; }
.thesis-media img { width: 100%; height: 100%; object-fit: cover; }
.thesis-media figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: var(--brand); color: var(--on-brand); border-radius: 14px; padding: 14px 18px;
  font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.25; max-width: 340px;
}
@media (max-width: 860px) { .thesis { grid-template-columns: 1fr; } }

/* Pillars: Novacraft light band */
.paper { background: var(--paper); color: var(--on-paper); }
.paper .lead { color: var(--on-paper-muted); }
.pillars-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; }
.pillars-head .eyebrow { color: var(--brand-deep); }
.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pillar { grid-column: span 2; background: var(--paper-card); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 14px; border: 1px solid #e1e1e8; min-width: 0; }
.pillar:nth-child(4), .pillar:nth-child(5) { grid-column: span 3; }
.pillar.feature { background: var(--on-paper); color: var(--text); border-color: var(--on-paper); }
.pillar .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #e9e9f5; color: var(--brand-deep); }
.pillar.feature .ico { background: rgba(152,152,194,.16); color: var(--brand); }
.pillar .ico svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 24px; }
.pillar.feature h3 { color: var(--brand); }
.pillar > p { color: var(--on-paper-muted); font-size: 15px; }
.pillar.feature > p { color: var(--muted); }
.cases { margin-top: auto; padding-top: 16px; border-top: 1px dashed #d6d6de; display: grid; gap: 8px; }
.pillar.feature .cases { border-top-color: var(--line); }
.cases small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep); }
.pillar.feature .cases small { color: var(--brand); }
.cases ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.cases li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.cases li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; margin-top: 8px; }
.cases b { font-weight: 600; }
@media (max-width: 1000px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar:nth-child(4), .pillar:nth-child(5) { grid-column: span 1; }
  .pillar:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .pillars-head { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(5) { grid-column: span 1; }
}

/* Marquee: Creatix outline type */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 26px; }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee-track span {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75;
  font-size: clamp(48px, 8vw, 104px); line-height: 1; text-transform: uppercase; letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 1.5px #565a6c; padding-inline: 28px; white-space: nowrap;
}
.marquee-track span.fill { color: var(--text); -webkit-text-stroke: 0; }
.marquee-track span.star { color: var(--gold); -webkit-text-stroke: 0; padding-inline: 0; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Method */
.method-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; display: grid; gap: 12px; align-content: start; position: relative; min-width: 0; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--brand); }
.step h3 { font-size: 20px; }
.step p { font-size: 14px; color: var(--muted); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -15px; width: 16px; height: 1px; background: var(--brand); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Team: Creatix */
.team-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.team-intro { display: grid; gap: 20px; align-content: start; min-width: 0; }
.team-intro p { color: var(--muted); }
.team-intro .h2 { font-size: clamp(30px, 3.2vw, 42px); }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.person-photo { aspect-ratio: 1 / 1; max-width: 100%; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 70%, rgba(152,152,194,.25), transparent 65%), #0a0a0e; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1) contrast(1.05); transition: filter .4s ease; }
@media (hover: hover) { .person:hover .person-photo img { filter: grayscale(0); } }
.person-tag { position: absolute; left: 14px; bottom: 14px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 8px; }
.person-body { padding: 24px; display: grid; gap: 10px; }
.person-body h3 { font-size: 26px; }
.person-role { font-size: 14px; color: var(--brand-tint); font-weight: 500; }
.person-body p { font-size: 15px; color: var(--muted); }
.person-body a { font-size: 14px; color: var(--brand); font-weight: 600; text-decoration: none; }
@media (max-width: 960px) { .team-grid { grid-template-columns: 1fr 1fr; } .team-intro { grid-column: 1 / -1; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* Formations catalogue */
.catalog { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.catalog-side { display: grid; gap: 20px; position: sticky; top: 110px; min-width: 0; }
.catalog-side .note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.catalog-side .note b { color: var(--text); font-family: var(--display); font-size: 22px; font-weight: 600; }
.qualiopi { background: #fff; border-radius: 14px; padding: 10px 14px; width: fit-content; }
.qualiopi img { height: 54px; width: auto; }
.groups { display: grid; gap: 14px; min-width: 0; }
.group { border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 24px 16px; background: var(--panel); }
.group h3 { font-size: 13px; line-height: 1.4; font-family: var(--body); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); padding-block: 16px 6px; }
.course { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); align-items: baseline; }
.course:first-of-type { border-top: 0; }
a.course { text-decoration: none; color: inherit; transition: color .2s; }
a.course code { transition: border-color .2s, color .2s; }
@media (hover: hover) { a.course:hover { color: var(--brand); } a.course:hover code { border-color: var(--brand); color: var(--brand); } }
.fiche-hint { font-size: 13px; color: var(--muted); padding-left: 4px; }
a.qualiopi { display: block; }
.course span { font-size: 16px; }
.course code { font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; flex: none; }
@media (max-width: 860px) { .catalog { grid-template-columns: 1fr; } .catalog-side { position: static; } }

/* Testimonials */
.testi-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.testi-nav { display: flex; gap: 8px; }
.testi-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .2s; }
.testi-nav button:hover { border-color: var(--brand); }
.testi-nav svg { width: 18px; height: 18px; }
.testis { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 400px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.testi { scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.testi:first-child { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.testi .q { font-family: var(--display); font-size: 48px; line-height: .6; color: var(--brand); height: 22px; }
.testi:first-child .q { color: var(--on-brand); }
.testi blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.testi footer { margin-top: auto; display: grid; gap: 2px; font-size: 14px; }
.testi footer b { font-weight: 600; }
.testi footer span { color: var(--muted); }
.testi:first-child footer span { color: #2c2d4d; }

/* CTA: Novacraft-style brand block */
.cta {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%); color: var(--on-brand);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: clamp(32px, 5vw, 64px); align-items: center;
}
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 28px solid rgba(255,255,255,.18); pointer-events: none; }
.cta h2 { font-size: clamp(34px, 4.6vw, 58px); }
.cta p { margin-top: 16px; font-size: 17px; max-width: 46ch; color: #23243f; }
.cta-actions { display: grid; gap: 12px; position: relative; z-index: 1; }
.contact-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: rgba(255,255,255,.22); border-radius: 14px; padding: 14px 18px; font-weight: 600; text-decoration: none; flex-wrap: wrap; }
.contact-line small { font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.cta .btn-dark { justify-content: center; padding-block: 18px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* Newsletter */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); background: radial-gradient(60% 120% at 100% 0%, rgba(152,152,194,.16), transparent 60%), var(--panel); }
.news h2 { font-size: clamp(28px, 3.4vw, 40px); }
.news p { color: var(--muted); margin-top: 12px; max-width: 48ch; font-size: 15px; }
.news-form { display: flex; gap: 8px; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.news-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 500 16px var(--body); padding: 0 16px; }
.news-form input::placeholder { color: #6d6f7e; }
.news-form input:focus { outline: none; }
.news-form:focus-within { border-color: var(--brand); }
.news-status { font-size: 14px; color: var(--muted); margin-top: 12px; padding-left: 18px; min-height: 22px; }
.news-status.ok { color: var(--brand); }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .news-form { flex-direction: column; border-radius: 20px; } .news-form input { padding: 12px 14px; } .news-form .btn { justify-content: center; } }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 120px); padding-block: 56px 32px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--text); font: 600 13px var(--body); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--brand); }
.foot-brand p { margin-top: 16px; max-width: 34ch; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Responsive refinements: tablets, phones, small phones, landscape phones */
.hide-sm { display: inline; }
@media (max-width: 1100px) and (min-width: 761px) {
  .certs { grid-template-columns: repeat(3, 1fr); }
  .certs-label { grid-column: 1 / -1; max-width: none; border-bottom: 1px solid var(--line); padding-block: 14px; }
  .cert:nth-child(2) { border-left: 0; }
}
@media (max-width: 860px) {
  .certs-label { max-width: none; padding-block: 16px; }
}
@media (max-width: 900px) {
  .hero-visual { min-height: clamp(340px, 82vw, 480px); }
  .ring-box { width: min(440px, 86%); }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .announce { font-size: 13px; }
  .hero-panel { border-radius: 22px; }
  .hero-copy { padding: 30px 22px 8px; gap: 20px; }
  .hero-tags { font-size: 11px; gap: 6px 12px; letter-spacing: .12em; }
  .hero-quote { font-size: 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; width: 100%; }
  .chip { padding: 10px 12px; font-size: 12px; border-radius: 14px; }
  .chip strong { font-size: 20px; }
  .chip-name strong { font-size: 14px; }
  .chip-years { top: 8%; right: 4%; }
  .chip-name { bottom: 5%; left: 4%; right: auto; }
  .certs > * { padding: 16px 20px; }
  .stat { padding: 24px 12px; }
  .stat span { font-size: 13px; }
  .h2 { font-size: clamp(28px, 7.4vw, 40px); }
  .lead { font-size: 16px; }
  .pillar { padding: 22px; }
  .pillars-head { margin-bottom: 32px; }
  .thesis-media figcaption { font-size: 16px; padding: 12px 14px; left: 12px; right: 12px; bottom: 12px; }
  .person-photo { aspect-ratio: 4 / 3; }
  .person-photo img { object-position: 50% 12%; }
  .group { padding: 4px 18px 12px; }
  .course { gap: 12px; }
  .course span { font-size: 15px; }
  .testi { padding: 22px; }
  .cta { border-radius: 22px; padding: 30px 22px; }
  .cta::after { width: 240px; height: 240px; right: -90px; top: -90px; border-width: 20px; }
  .contact-line { padding: 12px 14px; font-size: 15px; }
  .news { border-radius: 22px; padding: 26px 20px; }
  .marquee { padding-block: 18px; }
}
@media (max-width: 400px) {
  .brand-name small { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark img { width: 30px; }
  .nav { padding: 6px 6px 6px 8px; }
  .menu-btn { width: 40px; height: 40px; }
  .hero-copy { padding-inline: 18px; }
  .chip-years { right: 3%; }
  .hero-cta .btn { padding-inline: 16px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-grid > div:nth-child(3) { grid-column: 1 / -1; order: 3; }
}
/* Landscape phones: keep the hero short enough to see the portrait */
@media (max-height: 520px) and (orientation: landscape) {
  .nav-shell { position: static; }
  .hero-visual { min-height: 360px; }
}

/* Mobile hero: tags become one auto-scrolling line, compact CTAs side by side, portrait pulled up */
@media (max-width: 600px) {
  .show-sm { display: inline; }
  .hero-tags {
    overflow: hidden; margin-inline: -22px;
    -webkit-mask: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
            mask: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  }
  .tags-track { flex-wrap: nowrap; gap: 0; width: max-content; animation: tags 18s linear infinite; }
  .hero-tags span { padding-right: 18px; white-space: nowrap; }
  .hero-tags span:first-child { padding-left: 22px; }
  .hero-tags .dup { display: inline-flex; }
  .hero-tags .dup:nth-child(6) { padding-left: 4px; }
  .hero-copy { padding-bottom: 0; gap: 18px; }
  .hero-panel { gap: 0; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .hero-cta .btn { width: auto; flex: 0 0 auto; padding: 11px 16px; font-size: 13.5px; gap: 8px; white-space: nowrap; }
  .hero-cta .btn svg { width: 14px; height: 14px; }
  .hero-visual { min-height: clamp(320px, 86vw, 430px); }
}
@media (max-width: 400px) {
  .hero-tags { margin-inline: -18px; }
  .hero-tags span:first-child { padding-left: 18px; }
  .hero-cta { gap: 6px; }
  .hero-cta .btn { padding: 10px 12px; font-size: 12.5px; }
  .hero-cta .btn svg { display: none; }
}
@keyframes tags { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tags-track { animation: none; flex-wrap: wrap; width: auto; gap: 6px 0; }
  .hero-tags .dup { display: none; }
  .hero-tags { -webkit-mask: none; mask: none; margin-inline: 0; }
  .hero-tags span:first-child { padding-left: 0; }
}

/* Tablets: stacked hero keeps the portrait close to the buttons; compact nav on small laptops */
@media (max-width: 900px) and (min-width: 601px) {
  .hero-panel { gap: 0; }
  .hero-copy { padding-bottom: 0; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .nav-links a { padding: 10px 10px; font-size: 13.5px; }
  .nav .btn { padding: 11px 15px; font-size: 13.5px; }
  .brand-name small { display: none; }
}

/* ===== Autodiagnostic: hero visual, questionnaire, results ===== */
:root { --ok: #8fd1a6; --warn: var(--gold); --crit: #ef8f7d; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 52ch; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; color: var(--muted); }
.hero-facts li { display: grid; gap: 1px; padding-left: 14px; border-left: 2px solid var(--line); }
.hero-facts b { color: var(--text); font-size: 15px; font-weight: 600; }

.hv-diag { display: grid; place-items: center; }
.hv-diag .ring-box { top: 44%; }
.mock-gauge {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 2;
  width: min(300px, 62%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #232436, #12131a 70%);
  border: 1px solid var(--line); display: grid; place-items: center; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.mock-gauge b { font-family: var(--display); font-size: clamp(56px, 7vw, 88px); line-height: 1; font-weight: 700; }
.mock-gauge span { font-size: 18px; color: var(--muted); }
.mock-gauge small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-top: 8px; }
.mock-card {
  position: absolute; z-index: 3; left: 6%; bottom: 7%; width: min(300px, 70%);
  background: rgba(22,23,31,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 9px;
}
.mock-row { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.mock-row i { display: block; height: 6px; border-radius: 6px; background: var(--panel-2); position: relative; overflow: hidden; }
.mock-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--brand); }
.mock-row i.lv-ok::after { background: var(--ok); }
.mock-row i.lv-warn::after { background: var(--warn); }
.mock-row i.lv-crit::after { background: var(--crit); }
@media (max-width: 900px) { .hv-diag { min-height: clamp(340px, 90vw, 460px); } }
@media (max-width: 600px) {
  .hero-sub { font-size: 16px; }
  .hero-facts { gap: 8px 18px; }
  .hero-facts b { font-size: 14px; }
  .mock-card { display: none; }
  .hv-diag { min-height: clamp(260px, 72vw, 340px); }
  .hv-diag .ring-box, .mock-gauge { top: 50%; }
  .hv-diag .ring-box { width: min(300px, 78%); }
  .hv-diag .chip-years { top: 6%; }
}

.diag-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.diag-aside { display: grid; gap: 18px; position: sticky; top: 110px; min-width: 0; }
.diag-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.diag-why li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 14px; color: var(--muted); }
.diag-why b { color: var(--text); font-weight: 600; }
.diag-disclaimer { font-size: 13px; color: var(--muted); }
.diag-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); min-width: 0; scroll-margin-top: 100px; }
.diag-head { display: grid; gap: 10px; margin-bottom: 22px; }
.diag-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.diag-meta span:first-child { color: var(--brand); font-weight: 600; }
.diag-bar { height: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.diag-bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; transition: width .4s ease; }
.diag-step { display: grid; gap: 14px; }
.diag-step h3 { font-size: clamp(22px, 2.6vw, 28px); }
.diag-intro { color: var(--muted); font-size: 15px; margin-top: -6px !important; }
.diag-q { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; background: var(--ink); transition: border-color .2s; }
.diag-q.done { border-color: rgba(152,152,194,.45); }
.diag-qtext { font-weight: 500; font-size: 16px; line-height: 1.45; }
.diag-hint { font-size: 13px; color: var(--gold); }
.diag-options { display: flex; flex-wrap: wrap; gap: 8px; }
.diag-opt { font: 500 14px/1 var(--body); color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
@media (hover: hover) { .diag-opt:hover { border-color: var(--brand); } }
.diag-opt[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.diag-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.diag-left { font-size: 13px; color: var(--muted); flex: 1; text-align: center; min-width: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.diag-summary { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-bottom: 26px; }
.diag-gauge { --c: var(--brand); width: 150px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--panel-2) 0); position: relative; }
.diag-gauge::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--panel); }
.diag-gauge > div { position: relative; text-align: center; }
.diag-gauge b { font-family: var(--display); font-size: 46px; line-height: 1; }
.diag-gauge span { color: var(--muted); font-size: 15px; }
.diag-gauge.lv-ok { --c: var(--ok); } .diag-gauge.lv-warn { --c: var(--warn); } .diag-gauge.lv-crit { --c: var(--crit); }
.diag-verdict { display: grid; gap: 8px; min-width: 0; }
.diag-verdict h3 { font-size: clamp(22px, 2.6vw, 30px); }
.diag-verdict p { color: var(--muted); font-size: 14px; }
.diag-chip { display: inline-block; width: fit-content; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.diag-chip.lv-ok { background: rgba(143,209,166,.15); color: var(--ok); }
.diag-chip.lv-warn { background: rgba(235,187,78,.15); color: var(--warn); }
.diag-chip.lv-crit { background: rgba(239,143,125,.15); color: var(--crit); }
.diag-results { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.diag-results h4 { margin: 0 0 14px; font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.diag-rubrics { display: grid; gap: 14px; }
.diag-rb { display: grid; gap: 6px; }
.diag-rb-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; align-items: center; }
.diag-rb-bar { height: 8px; border-radius: 8px; background: var(--panel-2); overflow: hidden; }
.diag-rb-bar i { display: block; height: 100%; border-radius: 8px; }
.diag-rb-bar.lv-ok i { background: var(--ok); } .diag-rb-bar.lv-warn i { background: var(--warn); } .diag-rb-bar.lv-crit i { background: var(--crit); }
.diag-pri { margin: 0; padding: 0; list-style: none; counter-reset: pri; display: grid; gap: 10px; }
.diag-pri li { counter-increment: pri; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; }
.diag-pri li::before { content: counter(pri); width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--brand); }
.diag-pri li > div { display: grid; gap: 2px; }
.diag-pri li span { font-size: 12px; color: var(--muted); }
.diag-pri li em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--brand); font-weight: 600; margin-top: -4px; }
.diag-form { margin-top: 26px; padding: clamp(18px, 3vw, 26px); border-radius: 20px; background: linear-gradient(135deg, rgba(152,152,194,.16), rgba(152,152,194,.04)); border: 1px solid rgba(152,152,194,.35); display: grid; gap: 14px; }
.diag-form h3 { font-size: 22px; }
.diag-form > p { color: var(--muted); font-size: 14px; }
.diag-form a { color: var(--brand); }
.diag-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diag-fields label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.diag-fields input { font: 500 16px var(--body); color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.diag-fields input:focus { outline: none; border-color: var(--brand); }
.diag-check, .news-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.diag-check input, .news-consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.news-consent { margin-top: 12px; padding-left: 4px; }
.diag-submit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.diag-status { font-size: 14px; color: var(--muted); }
.diag-status.err { color: var(--crit); }
.diag-legal { font-size: 12px; color: var(--muted); }
.diag-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.diag-again { margin-top: 18px; display: flex; justify-content: center; }
@media (max-width: 960px) { .diag-layout { grid-template-columns: 1fr; } .diag-aside { position: static; } }
@media (max-width: 640px) {
  .diag-summary { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
  .diag-gauge { width: 120px; }
  .diag-gauge b { font-size: 38px; }
  .diag-results { grid-template-columns: 1fr; }
  .diag-fields { grid-template-columns: 1fr; }
  .diag-q { padding: 14px; }
  .diag-opt { padding: 10px 13px; font-size: 13.5px; }
  .diag-left { order: 3; flex-basis: 100%; }
}

/* ===== About page ===== */
@media (min-width: 901px) { .about-hero .hero-panel { grid-template-columns: 1.1fr .9fr; } }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.about-intro p { color: var(--muted); }
.about-intro .lead { color: var(--text); font-size: 19px; }
.bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.bio + .bio { margin-top: clamp(48px, 7vw, 88px); }
.bio.reverse { grid-template-columns: 1.2fr .8fr; }
.bio.reverse .bio-photo { order: 2; }
.bio-photo { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; max-width: 100%; background: radial-gradient(circle at 50% 70%, rgba(152,152,194,.25), transparent 65%), #0a0a0e; }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.bio-body { display: grid; gap: 16px; min-width: 0; }
.bio-body h2 { font-size: clamp(30px, 4vw, 44px); }
.bio-role { color: var(--brand); font-weight: 600; }
.bio-body p { color: var(--muted); }
.bio-creds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bio-creds li { font-size: 13px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { background: var(--paper-card); color: var(--on-paper); border: 1px solid #e1e1e8; border-radius: var(--r-md); padding: 26px; display: grid; gap: 10px; align-content: start; }
.value h3 { font-size: 22px; }
.value p { color: var(--on-paper-muted); font-size: 15px; }
.value.feature { background: var(--on-paper); border-color: var(--on-paper); color: var(--text); }
.value.feature h3 { color: var(--brand); }
.value.feature p { color: var(--muted); }
.territories { display: flex; flex-wrap: wrap; gap: 10px; }
.territories span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; }
@media (max-width: 860px) {
  .about-intro, .bio, .bio.reverse { grid-template-columns: 1fr; }
  .bio.reverse .bio-photo { order: 0; }
  .bio-photo { aspect-ratio: 4 / 3; }
  .values { grid-template-columns: 1fr; }
}
