/* ==========================================================================
   Infratelier — site stylesheet
   One hand-written file, no framework. Sections:
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Components  6. Sections
   7. Dialog  8. Utilities  9. Motion & print
   ========================================================================== */

/* 1. Fonts (self-hosted, SIL OFL — no third-party requests) ---------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens ------------------------------------------------------- */
:root {
  color-scheme: light;

  --paper: #fbf8f3;
  --paper-alt: #f3eee4;
  --surface: #ffffff;
  --ink: #13232b;
  --ink-soft: #46565e;
  --ink-faint: #5d6a70;
  --line: #e4dccf;
  --line-strong: #cfc5b5;

  --teal: #007184;          /* accessible teal for text and links (>= 4.9:1) */
  --teal-bright: #00a2be;   /* logo teal, decorative only */
  --amber: #ffb607;         /* logo amber, CTA background */
  --amber-deep: #e9a200;
  --amber-soft: #fff3d1;
  --green: #00be13;         /* logo green, decorative only */
  --night: #10212a;
  --night-soft: #1b313b;
  --on-night: #f3eee4;
  --on-night-soft: #b9c6c9;

  --brand-gradient: linear-gradient(90deg, #00a2be 0%, #ffb607 42%, #ffb607 58%, #00be13 100%);
  /* darker variant for gradient *text* (every stop >= 3.3:1 on paper, large text) */
  --brand-gradient-text: linear-gradient(90deg, #007f93 0%, #a87200 55%, #138a1d 100%);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.1rem + 0.25vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.8vw, 4rem);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(19, 35, 43, 0.06), 0 8px 24px -12px rgba(19, 35, 43, 0.18);
  --shadow-lg: 0 2px 4px rgba(19, 35, 43, 0.06), 0 24px 48px -20px rgba(19, 35, 43, 0.35);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 72px;
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  font-variation-settings: "SOFT" 50;
}
h1 { font-size: var(--step-4); font-weight: 650; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.005em; }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: 0.35em; }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

strong { font-weight: 650; }
em.accent, .accent {
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--amber-soft); color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 4. Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(760px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--paper-alt); }
.section-tight { padding-block: calc(var(--section-y) * 0.6); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-gradient);
}

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* 5. Components ---------------------------------------------------------- */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(19, 35, 43, 0.4); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .b-infra { color: #0096b0; }
.brand .b-telier { color: #00a811; }
.brand svg { width: 0.95em; height: 0.86em; margin: 0 1px 0.04em; }
.site-footer .brand .b-infra { color: var(--teal-bright); }
.site-footer .brand .b-telier { color: var(--green); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 12px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li + li { margin-top: 0; }
.site-nav a:not(.btn) {
  display: inline-block;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
}
.site-nav a:not(.btn):hover { color: var(--teal); background: rgba(0, 120, 140, 0.06); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.site-nav .nav-external::after { content: " ↗"; font-size: 0.85em; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(19, 35, 43, 0.45);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .site-nav a:not(.btn) { display: block; padding: 12px 8px; font-size: 1.05rem; }
  .js .site-nav a:not(.btn)[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); padding-left: 14px; }
  .js .site-nav .btn { margin-top: 10px; width: 100%; justify-content: center; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .no-js .site-nav ul { flex-wrap: wrap; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:hover svg.icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(233, 162, 0, 0.9); }
.btn-primary:hover { background: var(--amber-deep); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--teal); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-light { background: var(--on-night); color: var(--night); }
.btn-light:hover { background: #fff; color: var(--night); }
.btn-small { padding: 9px 16px; font-size: 0.95rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Cards */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-muted { color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300788c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--teal);
  background: rgba(0, 162, 190, 0.09);
  border-radius: 999px;
}

/* 6. Sections ------------------------------------------------------------ */

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
  isolation: isolate;
}
.hero::before {
  /* the "cutting mat" grid of a workshop bench */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(19, 35, 43, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 43, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.45em; }
.hero-lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 36em; line-height: 1.6; }
.hero .btn-row { margin-top: 28px; }

.hero-figure { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-photo {
  position: relative;
  background: var(--surface);
  padding: 12px 12px 16px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.2deg);
}
.hero-photo::before {
  /* a strip of masking tape */
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 28px;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(255, 182, 7, 0.55);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.hero-photo img { border-radius: 3px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero-photo figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.hero-badge {
  position: absolute;
  right: -28px;
  bottom: -62px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  padding: 10px 14px 10px 10px;
  background: var(--night);
  color: var(--on-night);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.3;
  transform: rotate(1.5deg);
  transition: transform 0.15s ease;
}
.hero-badge:hover { color: #fff; transform: rotate(0deg) translateY(-2px); }
.hero-badge img { width: 40px; height: auto; border-radius: 3px; flex: none; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.hero-badge .nowrap { white-space: nowrap; }

.proof-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.proof-bar li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.proof-bar svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { width: min(78%, 320px); margin: 8px auto 64px; }
  .hero-badge { right: -16px; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(19, 35, 43, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 43, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
.page-hero h1 { max-width: 18em; }
.page-hero .lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 40em; line-height: 1.6; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: var(--step--1); color: var(--ink-faint); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); text-decoration: underline; }

/* Offers (home) */
.offer {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.5vw, 40px);
  overflow: hidden;
}
.offer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--brand-gradient);
}
.offer-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.offer h3 { font-size: var(--step-2); }
.offer > p { color: var(--ink-soft); }
.offer .link-arrow { margin-top: auto; align-self: flex-start; }

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li { margin: 0; position: relative; padding-top: 58px; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
}
.steps li::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 54px;
  right: -10px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 64px; min-height: 44px; }
  .steps li::after { top: 52px; bottom: -22px; left: 21px; right: auto; width: 1.5px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
}

.craft-quote {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 820px;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 450;
  line-height: 1.35;
  color: var(--ink);
}

/* Criteria */
.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.criterion {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.criterion:hover { border-color: var(--amber); transform: translateY(-2px); }
.criterion h3 { font-size: 1.12rem; margin-bottom: 0.25em; display: flex; align-items: center; gap: 10px; }
.criterion h3::before { content: ""; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--amber); flex: none; }
.criterion p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Testimonials */
.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.testimonial blockquote {
  margin: 0 0 22px;
  font-size: 0.99rem;
  color: var(--ink);
}
.testimonial blockquote::before {
  content: "“";
  display: block;
  height: 0.55em;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--amber);
}
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper-alt); }
.testimonial cite { display: block; font-style: normal; font-weight: 650; }
.testimonial .role { display: block; color: var(--ink-faint); font-size: 0.9rem; }

/* Technologies */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tech-grid li {
  margin: 0;
  display: grid;
  place-items: center;
  height: 72px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.tech-grid img { width: auto; max-height: 34px; filter: grayscale(1) contrast(1.05); opacity: 0.78; transition: filter 0.2s ease, opacity 0.2s ease; }
.tech-grid li:hover img { filter: none; opacity: 1; }
.tech-note { margin-top: 22px; color: var(--ink-soft); }

/* Book */
.book {
  background: var(--night);
  color: var(--on-night);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.book::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  right: -200px;
  top: -220px;
  background: radial-gradient(circle, rgba(0, 162, 190, 0.22), transparent 65%);
}
.book .eyebrow { color: var(--amber); }
.book h2 { color: #fff; }
.book p { color: var(--on-night-soft); font-size: var(--step-1); line-height: 1.6; }
.book-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.book-cover { justify-self: center; width: min(100%, 300px); }
.book-cover img { border-radius: 4px 10px 10px 4px; box-shadow: -10px 0 0 -4px rgba(255, 255, 255, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.7); transform: perspective(900px) rotateY(10deg); }
.book .btn-row { margin-top: 26px; }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } .book-cover { width: min(60%, 240px); } }

/* Final call to action */
.cta-band {
  position: relative;
  padding: clamp(36px, 6vw, 64px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand-gradient); }
.cta-band h2 { font-size: var(--step-3); margin-bottom: 0.3em; }
.cta-band p { color: var(--ink-soft); margin: 0; font-size: var(--step-1); line-height: 1.55; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Trainings catalogue */
.grid-catalogue { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1140px) { .grid-catalogue { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.training.training-custom { background: var(--night); color: var(--on-night-soft); border-color: var(--night); }
.training.training-custom h3 { color: #fff; }
.training.training-custom .tag { background: rgba(255, 182, 7, 0.16); color: var(--amber); }
.training.training-custom .summary { color: var(--on-night-soft); }
.training.training-custom .link-arrow { color: var(--amber); }
.training.training-custom .link-arrow:hover { color: #fff; }
.training { display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 24px); }
.training .tag { align-self: flex-start; margin-bottom: 14px; }
.training h3 { font-size: 1.3rem; }
.training .summary { color: var(--ink-soft); }
.training dl { margin: 0 0 14px; font-size: 0.95rem; }
.training dt { font-weight: 650; color: var(--ink); }
.training dd { margin: 0 0 6px; color: var(--ink-soft); }
.training .checklist { font-size: 0.95rem; }
.training .link-arrow { margin-top: auto; align-self: flex-start; }

.formats .card { box-shadow: none; }
.formats h3 { display: flex; align-items: center; gap: 10px; }
.formats h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-gradient); flex: none; }
.formats p { color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* Services */
.service { padding-left: clamp(22px, 3vw, 32px); }
.service h3 { display: flex; align-items: baseline; gap: 12px; }
.service .num { font-family: var(--font-display); color: var(--amber-deep); font-size: 1rem; font-weight: 600; }
.service p { color: var(--ink-soft); }

/* Prose (Markdown content) */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul li::marker { color: var(--amber-deep); }
.prose blockquote { margin: 1.5em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 3px solid var(--amber); font-family: var(--font-display); font-style: italic; font-size: var(--step-1); }
.prose dl dt { font-weight: 650; margin-top: 0.8em; }
.prose dl dd { margin: 0; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.split aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split aside { position: static; } }

.about-portrait { background: var(--surface); padding: 12px; border-radius: 6px; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); max-width: 340px; margin: 0 auto; }
.about-portrait img { border-radius: 3px; width: 100%; }
.about-portrait figcaption { text-align: center; font-family: var(--font-display); font-style: italic; color: var(--ink-soft); margin-top: 8px; }

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.facts li { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.95rem; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }

/* Contact */
.contact-card { text-align: left; }
.contact-card .eyebrow { display: flex; }
.contact-email {
  display: inline-block;
  margin: 6px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background-image: var(--brand-gradient);
  background-size: 100% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 4px;
  word-break: break-word;
}
.contact-email:hover { color: var(--teal); }

/* Blog */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.post-list li { margin: 0; }
.post-meta { color: var(--ink-faint); font-size: var(--step--1); }

/* Footer */
.site-footer {
  background: var(--night);
  color: var(--on-night-soft);
  padding-block: clamp(48px, 7vw, 80px) 28px;
  font-size: 0.95rem;
}
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night); font-weight: 650; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 8px; }
.footer-about p { max-width: 34em; margin-top: 16px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.not-found { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.not-found .big { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 1; font-weight: 700; background: var(--brand-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.not-found .btn-row { justify-content: center; margin-top: 28px; }

/* 7. Book dialog --------------------------------------------------------- */
.book-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 80px -24px rgba(16, 33, 42, 0.55);
  overflow: hidden;
}
.book-dialog:focus { outline: none; }
.book-dialog::backdrop { background: rgba(16, 33, 42, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.book-dialog[open] { animation: dialog-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.book-dialog[open]::backdrop { animation: fade-in 0.32s ease; }
.book-dialog-inner { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.book-dialog-visual {
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--night);
  position: relative;
}
.book-dialog-visual::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-gradient); }
.book-dialog-visual img { width: 100%; max-width: 180px; border-radius: 3px 8px 8px 3px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.8); }
.book-dialog-body { padding: clamp(24px, 4vw, 36px); }
.book-dialog-body .eyebrow { margin-bottom: 10px; }
.book-dialog-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 0.4em; }
.book-dialog-body p { color: var(--ink-soft); }
.book-dialog-body .btn-row { margin-top: 20px; }
.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 35, 43, 0.06);
  color: var(--ink);
  cursor: pointer;
}
.dialog-close:hover { background: rgba(19, 35, 43, 0.12); }
.dialog-close svg { width: 20px; height: 20px; }

.book-dialog-thumb { display: none; }
.book-dialog-head h2 { margin-bottom: 0.4em; }
.book-dialog .accent { white-space: normal; }

@media (max-width: 600px) {
  /* bottom sheet on phones: the page stays visible above it */
  .book-dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; }
  .book-dialog[open] { animation: sheet-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .book-dialog-inner { display: block; }
  .book-dialog-visual { display: none; }
  .book-dialog-body { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
  .book-dialog-head { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; align-items: center; margin-bottom: 14px; padding-right: 36px; }
  .book-dialog-thumb { display: block; grid-row: 1 / span 2; width: 58px; border-radius: 2px 5px 5px 2px; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.6); }
  .book-dialog-head .eyebrow { margin-bottom: 4px; font-size: 0.75rem; }
  .book-dialog-head .eyebrow::before { display: none; }
  .book-dialog-head h2 { font-size: 1.35rem; margin: 0; }
  .book-dialog-body p { font-size: 0.95rem; }
  .book-dialog-body .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .book-dialog-body .btn { justify-content: center; }
}

@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* 8. Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.stack-lg > * + * { margin-top: clamp(40px, 6vw, 72px); }

/* 9. Motion & print ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .book-dialog, .cta-band, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 24px; }
  a { color: inherit; }
}
