:root {
  --ink: #191d52;
  --blue: #232781;
  --violet: #7d7dcc;
  --teal: #51a3a3;
  --orange: #cb904d;
  --yellow: #dfcc74;
  --lime: #c4e992;
  --pink: #d28bb8;
  --plum: #7e4965;
  --paper: #f4f1ea;
  --surface: #fbfaf6;
  --white: #fff;
  --line: rgba(25, 29, 82, .17);
  --muted: #5b5e77;
  --sidebar: 280px;
  --topbar: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "Atkinson Hyperlegible", Arial, sans-serif; line-height: 1.45; }
button, textarea, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, button, strong, summary { overflow-wrap: normal; word-break: normal; hyphens: none; }
p, li, a { overflow-wrap: break-word; word-break: normal; }
.topbar-title, .view-heading > *, .format-switch > *, .area-card > *, .solution-directory > *, .process-list li > * { min-width: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 11px 16px; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.overline { margin: 0 0 12px; color: var(--blue); font-size: .82rem; font-weight: 700; text-transform: uppercase; }

.app-shell { min-height: 100svh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 18px 16px; overflow-y: auto; background: #ece9e2; border-right: 1px solid var(--line); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; min-height: 50px; }
.brand { width: 165px; flex: 0 0 auto; display: block; color: var(--muted); text-decoration: none; }
.brand img { width: 145px; }
.sidebar-close { display: none; font-size: 1.8rem; }
.new-query { width: 100%; display: flex; align-items: center; gap: 10px; margin: 22px 0 26px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px; color: inherit; background: var(--surface); font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.new-query:hover { border-color: var(--ink); background: var(--white); }
.new-query span { font-size: 1.3rem; line-height: 1; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: 4px; background: transparent; text-align: left; cursor: pointer; }
.nav-item img { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s ease, transform .2s ease; }
.nav-link { color: inherit; text-decoration: none; }
.nav-item:hover, .nav-item.active { background: rgba(125, 125, 204, .18); }
.nav-item.active { font-weight: 700; }
.nav-item:hover img, .nav-item.active img { background: var(--yellow); transform: scale(1.06); }
.sidebar-legal{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:auto;padding:20px 10px 14px;border-bottom:1px solid var(--line)}
.sidebar-legal a{color:var(--muted);font-size:.75rem;text-underline-offset:3px}
.sidebar-legal a:hover{color:var(--ink)}
.sidebar-foot { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 11px; padding-top: 17px; }
.sidebar-foot p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.sidebar-company-data { display: grid; gap: 7px; margin: 16px 0 0; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: .72rem; line-height: 1.35; }
.sidebar-company-data div { display: grid; gap: 1px; }
.sidebar-company-data dt { color: var(--muted); font-weight: 700; text-transform: uppercase; }
.sidebar-company-data dd { margin: 0; color: var(--ink); }
.sidebar-company-data a { color: inherit; text-underline-offset: 3px; overflow-wrap: break-word; }
.specialist-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); border-radius: 50%; }
.specialist-mark img { width: 35px; height: 35px; object-fit: contain; }
.scrim { display: none; }

.main-area { min-width: 0; grid-column: 2; }
.topbar { position: fixed; z-index: 40; top: 0; right: 0; left: var(--sidebar); height: var(--topbar); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; background: rgba(244,241,234,.92); border-bottom: 1px solid transparent; backdrop-filter: blur(12px); }
.topbar-title { display: flex; align-items: baseline; gap: 12px; }
.topbar-title > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; }
.topbar-title i { width: 7px; height: 7px; background: var(--violet); border-radius: 50%; }
.menu-button { display: none; font-size: 1.2rem; }
.language-switcher { display: flex; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.54); }
.language-switcher a { width: 52px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 5px; border-right: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 700; text-decoration: none; }
.language-switcher a:last-child { border-right: 0; }
.language-switcher a:hover { color: var(--ink); background: var(--white); }
.language-switcher a[aria-current="page"] { color: var(--white); background: var(--ink); cursor: default; }
.language-switcher abbr { text-decoration: none; }
.language-switcher a > span { font-size: 1rem; line-height: 1; }
.flag-senyera { width: 18px; height: 12px; flex: 0 0 18px; border: 1px solid rgba(25,29,82,.18); background: repeating-linear-gradient(to bottom,#f6c900 0 2px,#d71920 2px 4px); }

.view { display: block; min-height: 0; scroll-margin-top: var(--topbar); }

.orienta-view { position: relative; min-height: calc(100svh - 32px); padding-top: var(--topbar); padding-bottom: 55px; }
.conversation { width: min(920px, calc(100% - 48px)); margin: 0 auto; }
.welcome { display: grid; justify-items: center; padding: clamp(28px, 5vh, 54px) 0 35px; text-align: center; }
.welcome-visual { position: relative; width: 165px; height: 125px; margin-bottom: 4px; }
.welcome-character { position: relative; z-index: 2; width: 142px; height: 122px; margin: auto; object-fit: contain; animation: welcome-float 5s ease-in-out infinite; }
.welcome-motif { position: absolute; width: 58px; height: 58px; object-fit: contain; }
.motif-a { top: 0; left: -15px; transform: rotate(-11deg); }
.motif-b { right: -5px; bottom: 8px; }
@keyframes welcome-float { 50% { transform: translateY(-8px); } }
.welcome h1 { margin: 0; max-width: 820px; font-size: 4.75rem; line-height: .97; letter-spacing: 0; }
.welcome-copy { max-width: 650px; margin: 21px auto 22px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.hero-actions .primary-action, .hero-actions .secondary-action { min-width: 190px; }
.starter-label { width: min(760px, 100%); margin: 0 0 9px; color: var(--muted); font-size: .78rem; font-weight: 700; text-align: left; text-transform: uppercase; }
.starter-grid { width: min(760px, 100%); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.starter-grid a { position: relative; min-height: 92px; display: grid; align-content: center; gap: 3px; padding: 17px 46px 17px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; background: rgba(255,255,255,.45); text-align: left; text-decoration: none; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.starter-grid a:hover, .starter-grid a:focus-visible { z-index: 2; color: var(--white); background: var(--ink); transform: translateY(-3px); }
.starter-grid span { font-weight: 700; }
.starter-grid small { color: var(--muted); }
.starter-grid a:hover small { color: rgba(255,255,255,.72); }
.starter-grid b { position: absolute; right: 18px; top: 50%; font-size: 1.2rem; transform: translateY(-50%); }

[aria-invalid="true"] { border-color: #9d2f22 !important; box-shadow: 0 0 0 2px rgba(157,47,34,.18); }

.catalog-view, .method-view { padding-right: max(30px, calc((100vw - var(--sidebar) - 1240px) / 2)); padding-bottom: 80px; padding-left: max(30px, calc((100vw - var(--sidebar) - 1240px) / 2)); }
.catalog-view { background: rgba(255,255,255,.24); }
.view-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 60px; padding: clamp(55px, 8vw, 105px) 0 55px; }
.view-heading .overline { grid-column: 1 / -1; }
.view-heading h2, .method-intro h2 { max-width: 780px; margin: 0; font-size: 5.25rem; line-height: .94; }
.view-heading > p:last-child { align-self: end; max-width: 480px; margin: 0; color: var(--muted); font-size: 1.14rem; }
.explore-section { scroll-margin-top: calc(var(--topbar) + 24px); }
.explore-section + .explore-section { margin-top: 115px; padding-top: 75px; border-top: 1px solid var(--line); }
.explore-section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.65fr); gap: 25px 70px; align-items: end; margin-bottom: 40px; }
.explore-section-heading h3 { max-width: 750px; margin: 0; font-size: 4.7rem; line-height: .96; }
.explore-section-heading > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 1.06rem; }
.format-switch { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.format-switch a { min-height: 125px; display: grid; align-content: space-between; gap: 8px; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; background: rgba(255,255,255,.35); text-align: left; text-decoration:none; transition:color .2s ease,background .2s ease,transform .22s var(--ease); }
.format-switch a:hover, .format-switch a:focus-visible { z-index:1;color: var(--white); background: var(--ink);transform:translateY(-4px); }
.format-switch span { color: var(--blue); font-size: .78rem; font-weight: 700; }
.format-switch a:hover span { color: var(--yellow); }
.format-switch strong { font-size: 1.05rem; line-height: 1.08; }
.format-switch small { color:var(--muted);font-size:.78rem;font-weight:700; }
.format-switch a:hover small { color:var(--yellow); }
.area-index { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 28px; }
.area-card { --area-color: var(--yellow); position: relative; min-height: 210px; display: grid; grid-template-columns: 1fr 64px; grid-template-rows: auto 1fr auto; gap: 10px; padding: 15px; overflow: hidden; border: 1px solid var(--line); border-top: 5px solid var(--area-color); color:inherit; background: rgba(255,255,255,.48); text-align: left; text-decoration:none; cursor: pointer; transition: transform .24s var(--ease), background .2s ease, border-color .2s ease; }
.area-card:hover, .area-card:focus-visible { transform: translateY(-5px); background: var(--white); }
.area-card img { grid-column: 2; grid-row: 1 / 3; width: 64px; height: 78px; align-self: start; object-fit: contain; transition: transform .25s var(--ease); }
.area-card:hover img { transform: translateY(-4px) rotate(2deg); }
.area-card-number { grid-column: 1; color: var(--blue); font-size: .76rem; font-weight: 700; }
.area-card-copy { grid-column: 1 / -1; display: grid; align-content: end; gap: 7px; }
.area-card-copy strong { max-width: 180px; font-size: 1.08rem; line-height: 1.08; }
.area-card-copy small { color: var(--muted); font-size: .78rem; line-height: 1.28; }
.area-card-arrow { position: absolute; right: 14px; bottom: 12px; color: var(--blue); font-size: 1.2rem; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 50px; padding: 12px 18px; border-radius: 3px; color: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary-action { border: 1px solid var(--ink); color: var(--white); background: var(--ink); }
.primary-action:hover { color: var(--ink); background: var(--yellow); }
.secondary-action { border: 1px solid var(--ink); background: transparent; }
.secondary-action:hover { color: var(--white); background: var(--ink); }
.solution-directory { display: grid; grid-template-columns: .7fr 1.3fr; gap: 55px; padding: 65px 0 20px; border-top: 1px solid var(--line); }
.solution-directory > div { display: grid; align-content: start; }
.solution-directory > div:last-child { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 0 18px; margin-top: 12px; }
.solution-directory > div:last-child .overline { grid-column: 1 / -1; }
.solution-directory .overline { margin-bottom: 12px; }
.solution-directory a { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.solution-directory a:hover { color: var(--blue); padding-left: 6px; }
.noscript-notice { max-width: 900px; margin: 40px auto; padding: 30px; background: var(--white); }
.noscript-notice a { display: block; padding: 8px 0; }

.method-view { padding-bottom: 120px; }
.method-intro { padding: clamp(60px, 9vw, 120px) 0 70px; }
.method-intro > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.15rem; }
.process-list { padding: 0; margin: 0 0 55px; list-style: none; border-top: 1px solid var(--line); }
.process-list li { min-height: 210px; display: grid; grid-template-columns: 70px 1fr 220px; align-items: center; gap: 25px; border-bottom: 1px solid var(--line); overflow: hidden; }
.process-list > li > span { align-self: start; padding-top: 38px; color: var(--blue); font-weight: 700; }
.process-list h3 { margin: 0 0 8px; font-size: 4rem; line-height: 1; }
.process-list p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.process-list img { width: 210px; height: 190px; object-fit: contain; }

.method-more { color: var(--blue); text-underline-offset: 3px; }
.method-more { display: inline-block; margin-left: 16px; font-weight: 700; }
.experience-proof { margin-top: 105px; padding-top: 70px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--topbar) + 24px); }
.trust-band { margin-top: 0; padding: 80px max(30px, calc((100vw - var(--sidebar) - 1240px) / 2)) 85px; background: var(--surface); }
.experience-proof-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 70px; align-items: end; }
.experience-proof-intro h2, .experience-proof-intro h3 { max-width: 760px; margin: 0; font-size: 3.45rem; line-height: 1; }
.experience-proof-intro > p { max-width: 540px; margin: 0 0 5px; color: var(--muted); font-size: 1.1rem; }
.organisation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 52px 0 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.organisation-list li { --organisation-accent: var(--violet); min-height: 122px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: center; gap: 12px; padding: 22px; border-top: 4px solid var(--organisation-accent); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.34); }
.organisation-list li:nth-child(3n + 2) { --organisation-accent: var(--teal); }
.organisation-list li:nth-child(3n + 3) { --organisation-accent: var(--orange); }
.organisation-list span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.organisation-list strong { align-self: start; font-size: 1.05rem; line-height: 1.2; }
.experience-proof-note { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: .86rem; }
.trust-action { margin-top: 28px; }

@media (max-width: 980px) {
  :root { --sidebar: 255px; }
  .format-switch { grid-template-columns: repeat(3, 1fr); }
  .area-index { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  :root { --sidebar: 0px; --topbar: 62px; }
  body.sidebar-open { overflow: hidden; }
  .app-shell { display: block; }
  .main-area { grid-column: auto; }
  .sidebar { width: min(330px, 88vw); visibility:hidden; transform: translateX(-105%); transition: transform .3s var(--ease),visibility 0s .3s; box-shadow: 8px 0 35px rgba(25,29,82,.18); }
  .sidebar.open { visibility:visible; transform: translateX(0); transition-delay:0s; }
  .sidebar-close, .menu-button { display: grid; }
  .scrim { position: fixed; z-index: 50; inset: 0; display: block; visibility: hidden; background: rgba(25,29,82,.48); opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
  .scrim.open { visibility: visible; opacity: 1; }
  .topbar { left: 0; padding-inline: 12px; border-bottom-color: var(--line); }
  .topbar-title { gap: 8px; }
  .language-switcher a { width: 46px; }
  .conversation { width: min(100% - 30px, 680px); }
  .welcome { padding-top: 30px; }
  .welcome-visual { width: 150px; height: 120px; }
  .welcome-character { width: 130px; height: 115px; }
  .welcome h1 { font-size: 3.45rem; }
  .starter-grid { grid-template-columns: 1fr; }
  .starter-grid a { min-height: 78px; }
  .catalog-view, .method-view { padding-inline: 18px; }
  .view-heading { grid-template-columns: 1fr; padding-top: 50px; }
  .view-heading h2, .method-intro h2 { font-size: 3.8rem; }
  .view-heading .overline { grid-column: auto; }
  .explore-section + .explore-section { margin-top: 80px; padding-top: 55px; }
  .explore-section-heading { grid-template-columns: 1fr; gap: 15px; }
  .explore-section-heading h3 { font-size: 3.1rem; }
  .format-switch { grid-template-columns: 1fr 1fr; margin-bottom: 55px; }
  .format-switch a { min-height: 105px; }
  .solution-directory { grid-template-columns: 1fr; gap: 35px; }
  .solution-directory > div:last-child { grid-template-columns: 1fr 1fr; }
  .area-index { display: flex; gap: 10px; padding: 4px 0 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .area-card { flex: 0 0 min(260px,78vw); min-height: 190px; scroll-snap-align: start; }
  .process-list li { min-height: 175px; grid-template-columns: 40px 1fr 120px; gap: 12px; }
  .process-list img { width: 120px; height: 145px; }
  .process-list h3 { font-size: 2.6rem; }
  .experience-proof { margin-top: 80px; padding-top: 55px; }
  .experience-proof-intro { grid-template-columns: 1fr; gap: 18px; }
  .experience-proof-intro h2, .experience-proof-intro h3 { font-size: 2.8rem; }
  .organisation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 38px; }
}

@media (max-width: 480px) {
  .topbar-title .topbar-status { display: none; }
  .topbar-title { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.05; }
  .language-switcher a { width: 36px; gap: 0; }
  .language-switcher a > span { display: none; }
  .welcome h1 { font-size: 2.7rem; }
  .hero-actions { width: 100%; }
  .hero-actions .primary-action, .hero-actions .secondary-action { width: 100%; }
  .welcome-copy { font-size: 1rem; }
  .format-switch { grid-template-columns: 1fr; }
  .process-list h3 { font-size: 2.25rem; }
  .format-switch a { min-height: 88px; }
  .view-heading h2, .method-intro h2 { font-size: 3.1rem; }
  .explore-section-heading h3 { font-size: 2.65rem; }
  .process-list li { grid-template-columns: 36px 1fr; padding: 28px 0; }
  .process-list img { grid-column: 2; width: 160px; height: 140px; }
  .experience-proof-intro h2, .experience-proof-intro h3 { font-size: 2.35rem; }
  .organisation-list { grid-template-columns: 1fr; }
  .organisation-list li { min-height: 92px; }
  .solution-directory > div:last-child { grid-template-columns: 1fr; }
  .primary-action, .secondary-action { max-width: 100%; white-space: normal; }
  .format-switch strong, .area-card, .primary-action, .secondary-action { overflow-wrap: normal; word-break: normal; }
}

@media (max-width: 380px) {
  .topbar { padding-inline: 8px; }
  .welcome h1 { font-size: 2.3rem; }
  .welcome-visual { width: 130px; height: 104px; }
  .welcome-character { width: 112px; height: 100px; }
  .conversation { width: calc(100% - 22px); }
  .view-heading h2, .method-intro h2 { font-size: 2.55rem; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .welcome { padding-top: 18px; }
  .welcome-visual { width: 105px; height: 78px; }
  .welcome-character { width: 92px; height: 78px; }
  .welcome-motif { display: none; }
  .welcome h1 { font-size: 2.5rem; }
  .welcome-copy { margin-block: 13px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .starter-grid a:hover, .starter-grid a:focus-visible, .format-switch a:hover, .format-switch a:focus-visible, .area-card:hover, .area-card:focus-visible { transform: none; }
}
