@font-face {
  font-family: Archivo; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: Archivo; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --ink: #0d2328;
  --text: #24393d;
  --muted: #55696c;
  --line: #d3dcdb;
  --tint: #f0f4f3;
  --signal: #ff4400; /* logo orange */
  --signal-text: #bd3300; /* darker, readable as text on white */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; font: 400 1.0625rem/1.65 Archivo, system-ui, sans-serif; color: var(--text); background: #fff; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); line-height: 1.15; font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { font-stretch: 115%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--signal-text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, 75rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.lead { font-size: 1.2rem; line-height: 1.55; margin: 1rem 0 0; max-width: 40rem; text-wrap: pretty; }
.tint { background: var(--tint); }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: #fff; padding: .5rem 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand img { width: 160px; }
.site-nav { display: flex; gap: 2rem; margin-left: auto; }
.site-nav a, .lang { color: var(--ink); font-weight: 550; font-size: 1rem; text-decoration: none; padding-block: .5rem; }
.site-nav a:hover, .lang:hover { color: var(--signal-text); }
.lang { border-left: 1px solid var(--line); padding-left: 1.5rem; }

/* Buttons */
.btn { display: inline-block; background: #d63a00; color: #fff; font-weight: 700; text-decoration: none; padding: .8rem 1.5rem; border: 2px solid #d63a00; } /* slightly darker than the logo so white text stays readable */
.btn:hover { background: var(--signal-text); border-color: var(--signal-text); }
.btn-line { background: none; color: #fff; border-color: #6d8589; }
.btn-line:hover { background: #fff; border-color: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.25rem 0 0; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #d3e0e1; }
.hero .wrap { display: grid; align-items: center; min-height: 36rem; }
.hero-text { position: relative; z-index: 1; max-width: 37rem; padding-block: 4rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.06; }
.hero-art { position: absolute; left: 53%; top: 0; height: 100%; width: auto; max-width: none; }
.hero-bar { fill: var(--signal); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 3rem 2.5rem; }
.services article { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.services h3, .topic h3 { font-size: 1.45rem; font-stretch: 108%; margin-bottom: .75rem; }
.services h3 a, .topic h3 a { color: inherit; text-decoration: none; }
.services h3 a:hover, .topic h3 a:hover { color: var(--signal-text); text-decoration: underline; }
.services li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.services li::before, .prose ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: .42rem; height: .65rem; background: var(--signal); transform: skewX(-20deg); }

/* Training */
.topic { display: grid; grid-template-columns: 5fr 7fr; gap: 1.5rem 4rem; border-top: 2px solid var(--ink); padding: 1.5rem 0 3rem; }
.topic li + li { border-top: 1px solid var(--line); }
.topic li a { display: flex; justify-content: space-between; gap: 1.5rem; padding: .7rem 0; color: var(--ink); font-weight: 550; text-decoration: none; }
.topic li a:hover { color: var(--signal-text); }
.topic li a:hover span:first-child { text-decoration: underline; }
.days { color: var(--muted); font-weight: 400; white-space: nowrap; }
.formats-title { font-size: 1.6rem; font-stretch: 108%; margin: 1rem 0 1.5rem; }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.formats > div { background: #fff; padding: 1.75rem; }
.formats h4 { font-size: 1.1rem; }
.formats p { margin: 0; }
.formats .price { font-size: 2.1rem; font-weight: 700; font-stretch: 112%; color: var(--ink); line-height: 1.2; margin-top: .9rem; }
.formats .unit { color: var(--muted); margin-bottom: 1rem; }
.note { margin: 1.5rem 0 0; max-width: 50rem; }

/* Flagship and ways of working */
.flagship { background: var(--ink); color: #d3e0e1; }
.flagship .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.flagship h2 { color: #fff; }
.diagram { width: 100%; font-size: 20px; font-weight: 600; text-anchor: middle; fill: #fff; }
.diagram .frame { fill: none; stroke: #486468; stroke-dasharray: 6 6; }
.diagram .caption { text-anchor: start; fill: #a9bec1; font-weight: 500; }
.diagram .node { fill: #17363d; stroke: #6d8589; }
.diagram .base { fill: #17363d; }
.diagram .pod { fill: #6d8589; }
.diagram .tip { fill: #a9bec1; }
.diagram .dashed { stroke-dasharray: 5 6; }
.diagram-panel { margin: 0 0 2.5rem; padding: clamp(1rem, 4vw, 2.5rem); background: var(--ink); }
.diagram .agent { fill: #d63a00; }
.diagram .wire { stroke: #a9bec1; stroke-width: 2; fill: none; }
.ways { margin: 0; padding: 0; list-style: none; counter-reset: way; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2.5rem; }
.ways li { counter-increment: way; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.ways h3 { font-size: 1.45rem; font-stretch: 108%; margin-bottom: .75rem; }
.ways h3::before { content: counter(way) " "; color: var(--signal-text); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about img { width: 100%; height: 100%; min-height: 24rem; object-fit: cover; clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); }
.about h2 { margin-bottom: 1.5rem; }

/* Contact */
.contact { background: var(--ink); color: #d3e0e1; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
.contact h2 { color: #fff; }
.contact dl { margin: 0; }
.contact dt { color: #a9bec1; }
.contact dd { margin: 0 0 1.25rem; font-size: 1.4rem; font-weight: 600; overflow-wrap: anywhere; }
.contact a { color: #fff; }

/* Content pages */
.page-head { background: var(--ink); color: #d3e0e1; padding-block: clamp(3rem, 6vw, 5rem); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 22ch; hyphens: auto; }
.page-head .btn { margin-top: 2rem; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 4rem; padding-block: 4rem 6rem; }
.page-photo { width: 100%; margin-bottom: 2.5rem; }
.prose { max-width: 46rem; overflow-wrap: break-word; }
.page-grid .prose :is(h2, h3, h4, h5, h6) { margin: 2.25rem 0 .75rem; font-size: 1.25rem; }
.page-grid .prose :is(h2, h3) { font-size: 1.6rem; font-stretch: 108%; letter-spacing: 0; }
.prose ul { margin-bottom: 1em; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: .3rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose :is(th, td) { text-align: left; padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); border-bottom: 2px solid var(--ink); }
.prose .fa { display: inline-block; width: .5rem; height: .85rem; margin-right: .4rem; background: var(--signal); transform: skewX(-20deg); }
.prose .link-list li { padding: 1.25rem 0; margin: 0; border-top: 1px solid var(--line); }
.prose .link-list li::before { content: none; }
.link-list a { font-size: 1.2rem; font-weight: 650; }
.link-list p { margin: .4rem 0 0; }
.facts { background: var(--tint); padding: 1.5rem; margin-bottom: 2.5rem; }
.facts dl { margin: 0 0 1.25rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0 0 .75rem; color: var(--ink); font-weight: 600; }
.facts a:not(.btn) { display: inline; padding: 0; border: 0; text-decoration: underline; color: var(--signal-text); }
.side .btn { display: block; text-align: center; color: #fff; padding: .8rem 1rem; border: 2px solid #d63a00; }
.side .btn:hover { border-color: var(--signal-text); }
.side nav + nav { margin-top: 2.5rem; }
.side h2 { font-size: 1.1rem; letter-spacing: 0; font-stretch: 100%; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.side a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.side a:hover, .side [aria-current] { color: var(--signal-text); }
.side [aria-current] { font-weight: 650; }

/* Footer */
.site-footer { background: #08181c; color: #a9bec1; padding-block: 4rem 2rem; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
.site-footer img { width: 160px; margin-bottom: 1.25rem; }
.site-footer address { font-style: normal; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; font-stretch: 100%; margin-bottom: .75rem; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { border-top: 1px solid #1d373d; margin-top: 3rem; padding-top: 1.5rem; }

@media (max-width: 60rem) {
  .hero .wrap { min-height: 0; }
  .hero-text { padding-bottom: 2rem; }
  .hero-art { position: static; height: auto; width: 130%; }
  .about, .contact .wrap, .flagship .wrap, .topic, .page-grid { grid-template-columns: minmax(0, 1fr); }
  .about img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .page-grid { gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) {
  html { scroll-padding-top: 6rem; }
  .diagram-panel { padding: .75rem .5rem; }
  .diagram-panel .diagram { font-size: 22px; }
  .site-header .wrap { flex-wrap: wrap; gap: 0 1rem; padding-block: .75rem .25rem; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: .75rem; }
  .site-nav a { font-size: .95rem; }
  .lang { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
