:root {
  color-scheme: light;
  --ink: #181818;
  --muted: #53504f;
  --caldera: #f8320d;
  --caldera-deep: #bd290d;
  --line: #e6e2de;
  --paper: #f7f4f1;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:is(a, button, summary):focus-visible {
  outline: 3px solid var(--caldera-deep);
  outline-offset: 4px;
}
.wrap { width: min(100% - 5rem, 78rem); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 5;
  width: auto;
  height: auto;
  margin: 0;
  padding: .75rem;
  clip-path: none;
  background: var(--white);
}

.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  min-height: 4.85rem;
  padding-block: .6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}
.brand img { width: 3.5rem; height: auto; flex: none; }
.brand small {
  display: block;
  margin-top: .22rem;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .22em;
}
.top-links, .languages, .footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
}
.access {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: .88rem;
  font-weight: 700;
  text-underline-offset: .22em;
}
.access:hover, .footer a:hover { color: var(--caldera-deep); }
.languages { gap: .125rem; }
.languages a {
  display: grid;
  place-items: center;
  min-width: 2.125rem;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.languages [aria-current] {
  color: var(--caldera-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .3rem;
}
.header-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: .55rem;
}
.header-actions .cta {
  min-height: 2.75rem;
  padding: .5rem .7rem;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.75rem);
  padding-block: clamp(3rem, 5vw, 5.5rem);
}
.kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.05rem;
  color: var(--caldera-deep);
  font-size: .9rem;
  font-weight: 750;
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  flex: none;
  background: var(--caldera);
}
h1, h2 { text-wrap: balance; }
h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -.065em;
}
.intro {
  max-width: 37rem;
  margin: 1.3rem 0 1.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.16vw, 1.125rem);
  line-height: 1.65;
}
.cta {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  background: var(--caldera-deep);
  color: var(--white);
  font-size: .95rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.cta:hover { background: #9e200b; }
.cta-outline {
  border-color: var(--caldera-deep);
  background: var(--white);
  color: var(--caldera-deep);
}
.cta-outline:hover { background: #fff4ef; }

.hero-photo, .learning-photo { position: relative; margin: 0; }
.hero-photo {
  border-bottom: .42rem solid var(--caldera);
  border-radius: 1rem;
  overflow: hidden;
  background: #242322;
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.2;
  object-fit: cover;
  object-position: 78% center;
}
.hero-photo figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: .7rem 1rem;
  border-radius: .4rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.service-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.service-inner { padding-block: clamp(2.75rem, 5.7vw, 5.5rem); }
.service-inner h2, .contact h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.9rem, 3.25vw, 3.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.055em;
}
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.services {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .85rem;
  list-style: none;
  background: var(--white);
}
.services li + li { border-top: 1px solid var(--line); }
.service-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  width: 100%;
  min-height: 5rem;
  padding: 1rem clamp(1rem, 2vw, 1.5rem);
  border: 0;
  border-radius: .6rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.service-trigger:hover { background: #fff4ef; }
.service-label strong {
  display: block;
  margin-bottom: .3rem;
  font-size: clamp(1.12rem, 1.65vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.service-label span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.service-plus {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  border: 1px solid #e5a597;
  border-radius: 50%;
  color: var(--caldera-deep);
  font-size: 1.45rem;
  line-height: 1;
}
.service-trigger:is(:hover, :focus-visible) .service-plus {
  border-color: var(--caldera-deep);
  background: var(--caldera-deep);
  color: var(--white);
}
.learning-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.48;
  object-fit: cover;
  border-radius: .85rem;
}
.learning-photo figcaption {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .81rem;
}
.map { margin-top: 1.1rem; }
.map summary {
  min-height: 2.75rem;
  width: fit-content;
  padding-block: .65rem;
  color: var(--caldera-deep);
  font-weight: 750;
  cursor: pointer;
}
.map img { width: min(100%, 65rem); height: auto; margin-top: .75rem; border-radius: .85rem; }

.contact { border-top: 4px solid var(--caldera); background: var(--ink); color: var(--white); }
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: clamp(2rem, 4.7vw, 3.5rem);
}
.contact h2 { margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; }
.contact .cta { background: var(--white); color: var(--ink); }
.contact .cta:hover { background: #ffdfd6; }
.contact-diagnostic {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .92rem;
  font-weight: 700;
  text-underline-offset: .24em;
}
.contact a:focus-visible { outline-color: #ffad99; }
.funding { background: var(--paper); }
.funding-inner { padding-block: 2.25rem; }
.funding h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.funding-panels {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: .85rem;
}
.funding-programme, .funding-enisa {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: 1rem;
}
.funding-programme p {
  margin: 0 0 .75rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.55;
}
.funding-logos {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: .45rem .85rem;
  align-items: center;
}
.funding-logos img {
  width: 100%;
  height: 3.75rem;
  object-fit: contain;
}
.funding-enisa { display: grid; place-items: center; }
.funding-enisa img { width: min(100%, 10rem); height: auto; }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.2rem;
  padding-block: 1.25rem;
  color: var(--muted);
  font-size: .86rem;
}
.footer a { display: inline-flex; min-height: 2.75rem; align-items: center; text-underline-offset: .2em; }

.service-detail {
  width: min(100% - 2rem, 37rem);
  max-height: calc(100% - 2rem);
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--caldera);
  border-radius: .9rem;
  background: var(--white);
  color: var(--ink);
}
.service-detail::backdrop { background: #181818b8; }
.service-detail form { display: flex; justify-content: flex-end; margin: 0 0 .55rem; }
.service-detail button {
  min-height: 2.75rem;
  padding: .4rem .75rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.service-detail h2 { margin: 0 0 .65rem; font-size: clamp(1.65rem, 5vw, 2.4rem); line-height: 1.1; letter-spacing: -.04em; }
.service-detail p { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }

@media (max-width: 67rem) {
  .header-actions {
    flex: 0 0 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 54rem) {
  .wrap { width: min(100% - 2.5rem, 40rem); }
  .hero, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2.25rem 2.75rem; gap: 1.6rem; }
  h1 { font-size: clamp(2.3rem, 7.2vw, 3.8rem); }
  .hero-photo img { aspect-ratio: 1.44; object-position: 82% center; }
  .funding-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 31rem) {
  .wrap { width: calc(100% - 2rem); }
  .topbar .wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .2rem .45rem;
  }
  .brand img { width: 2.75rem; }
  .top-links { display: contents; }
  .languages { grid-area: 1 / 2; justify-self: end; }
  .access { grid-column: 1 / -1; width: fit-content; }
  .header-actions { grid-column: 1 / -1; margin-bottom: .25rem; }
  .footer nav { column-gap: .7rem; }
  .funding-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funding-logos .funding-eu { grid-column: 1 / -1; }
  .hero-photo figcaption { right: .65rem; bottom: .65rem; padding: .55rem .65rem; font-size: .92rem; }
}
