/* Base */
:root {
  --bg: #F1F4EE;
  --surface: #FBFCF9;
  --text: #1C2A20;
  --muted: #4E5E52;
  --accent: #2F6B45;
  --accent-contrast: #FBFCF9;
  --plate-bg: #1C2A20;
  --plate-text: #F1F4EE;
  --line: #DCE3D8;
  --font-head: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --radius-card: 14px;
  --radius-btn: 10px;
  --pad-side: clamp(16px, 4vw, 40px);
  --section-gap: clamp(64px, 9vw, 128px);
  --shadow-soft: 0 1px 2px rgb(28 42 32 / .06), 0 12px 32px rgb(28 42 32 / .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.25; }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

ul { padding-left: 1.2em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-side); }
.wrap--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { left: 16px; top: 16px; }

.lead {
  font-family: var(--font-head);
  font-weight: 650;
  font-size: clamp(1.25rem, 1.6vw + 0.8rem, 1.75rem);
  line-height: 1.3;
  color: var(--accent);
}

/* Background layer */
.slice {
  padding: var(--section-gap) 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 55%, var(--bg) 100%);
  position: relative;
}
.slice:nth-of-type(even) {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 45%, var(--surface) 100%);
}
.slice::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgb(78 94 82 / .07) 1px, transparent 1px),
    radial-gradient(rgb(28 42 32 / .05) 1px, transparent 1px);
  background-size: 9px 9px, 14px 14px;
  background-position: 0 0, 5px 7px;
  pointer-events: none;
}
.slice > .wrap { position: relative; }

.slice__title { margin-bottom: 16px; }
.slice__intro { color: var(--muted); margin-bottom: 32px; }
.slice__split { display: grid; gap: 32px; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.topbar.is-scrolled {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgb(28 42 32 / .06);
}
.topbar__bar {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 72px;
  padding: 12px var(--pad-side);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.topbar__mail { margin: 0; font-size: 15px; justify-self: start; }
.topbar__mail-link { color: var(--muted); text-decoration: none; }
.topbar__mail-link:hover { color: var(--accent); text-decoration: underline; }
.topbar__brand {
  justify-self: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.menu__switch {
  justify-self: end;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.menu__switch:hover { background: #E8EEE4; transform: translateY(-1px); }
.menu__switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.menu__switch:active { transform: none; box-shadow: none; }

/* Menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--plate-bg);
  color: var(--plate-text);
  display: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.menu--open { display: block; opacity: 1; }
.menu__panel {
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px var(--pad-side);
  overflow-y: auto;
}
.menu__cols {
  display: grid;
  gap: 48px;
  max-width: 900px;
  width: 100%;
  margin: auto;
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__item { margin-bottom: 8px; }
.menu__link {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--plate-text);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  transition: background-color .25s ease, color .25s ease;
}
.menu__link:hover,
.menu__link:focus-visible,
.menu__link[aria-current="page"] {
  background: rgba(241 244 238 / .16);
  color: #FFFFFF;
  outline: none;
}
.menu__aside { border-left: 1px solid rgba(241 244 238 / .25); padding-left: 32px; }
.menu__aside-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.menu__aside ul { list-style: none; margin: 0; padding: 0; }
.menu__aside li { margin-bottom: 8px; font-size: 16px; }
.menu__aside li span { color: #B9C4BC; margin-right: 6px; }
.menu__aside a { color: #FFFFFF; }

/* Hero */
.hero { padding-top: clamp(48px, 6vw, 80px); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 8px solid var(--surface);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-card);
}
.plate {
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 56px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.plate__title { color: #FFFFFF; }
.plate__text { color: #D4DCD4; }
.plate__btn { margin-top: 12px; }
.hero__title { color: #FFFFFF; }
.hero__text { color: #D4DCD4; max-width: 44ch; font-size: 17px; line-height: 1.6; }
.hero__cta { margin-top: 32px; }

/* Stats */
.stats { padding: clamp(32px, 5vw, 56px) 0; }
.stats__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: center;
}
.stats__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
}
.stats__value {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3rem, 7vw + 1rem, 5.5rem);
  line-height: 1;
  color: var(--accent);
}
.stats__label { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.tile:hover,
.tile:focus-within { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.tile__figure { margin: 0; }
.tile__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.tile__body { padding: 24px; flex: 1; }
.tile__title { margin-bottom: 20px; }
.tile__text { color: var(--muted); margin: 0; }

/* FAQ */
.queries__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 16px;
  overflow: hidden;
}
.queries__q {
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 17px;
  line-height: 1.5;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  display: block;
}
.queries__q::-webkit-details-marker { display: none; }
.queries__q::before {
  content: "+";
  display: inline-block;
  margin-right: 12px;
  color: var(--accent);
  font-weight: 800;
}
.queries__item[open] .queries__q::before { content: "−"; }
.queries__item[open] { border-color: var(--accent); }
.queries__a { padding: 0 24px 20px 56px; margin: 0; color: var(--text); line-height: 1.6; }
.queries__item[open] .queries__a { animation: unfold .3s ease; }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }

/* Figures inside text */
.workshop__figure { margin: 24px 0; }
.workshop__figure img {
  border: 8px solid var(--surface);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-card);
  aspect-ratio: 3 / 4;
  max-width: 520px;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 32px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--accent) 0%, #3E7D56 55%, var(--accent) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  transition: background-position .3s ease, filter .25s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 8px rgb(47 107 69 / .25);
}
.btn:hover {
  background-position: 100% 50%;
  filter: brightness(.94);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
}
.btn:active { transform: none; box-shadow: none; }
.btn--quiet {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}
.btn--quiet:hover { background: #E4EDE6; filter: none; }

/* Announcement */
.notice {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(420px, calc(100% - 32px));
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: 16px 48px 16px 24px;
  box-shadow: var(--shadow-soft);
}
.notice__text { margin: 0; font-size: 14px; line-height: 1.6; color: #D4DCD4; }
.notice__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #D4DCD4;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.notice__close:hover { background: rgba(241 244 238 / .18); color: #fff; }
.notice__close:focus-visible { outline: 2px solid #F1F4EE; }
.notice.is-hidden { display: none; }

/* Form */
.request__row { margin-bottom: 20px; }
.request__tag {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
.request__box {
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
}
.request__box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(47 107 69 / .18); }
.request__area { resize: vertical; min-height: 120px; }
.request__agree { margin: 20px 0; font-size: 15px; }
.request__agree input { margin-right: 8px; accent-color: var(--accent); }
.request__note { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.request__err { color: #8C2B2B; font-size: 14px; font-weight: 600; margin: 6px 0 16px; }
.request.is-sending .request__send { opacity: .6; pointer-events: none; }

/* Contact plate */
.plate--contact { text-align: left; }

/* Footer */
.foot {
  background: var(--plate-bg);
  color: #C9D2CB;
  padding: clamp(48px, 6vw, 72px) 0 32px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.foot address { font-style: normal; }
.foot address p { margin: 0 0 8px; font-size: 15px; max-width: 40ch; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { font-size: 15px; margin-bottom: 8px; }
.foot li span { color: #A9B4AC; margin-right: 6px; }
.foot a { color: #E4EDE4; }
.foot a:hover { color: #FFFFFF; }
.foot__list { list-style: none; padding: 0; }
.foot__item { margin-bottom: 10px; }
.foot__copy { font-size: 14px; color: #A9B4AC; border-top: 1px solid rgba(241 244 238 / .2); padding-top: 24px; margin: 0; }

/* Prose (policies) */
.flow > * + * { margin-top: 1em; }
.flow h2 { margin-top: 2em; }
.flow h3 { font-size: 1.15rem; margin-top: 1.8em; }
.flow ul, .flow ol { margin: 0 0 1em; }
.flow li { margin-bottom: 6px; }
.flow table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 15px;
  margin-bottom: 1em;
}
.flow th, .flow td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--line);
}
.flow th { font-family: var(--font-head); font-weight: 700; }
.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Inner page header */
.page-head { padding-bottom: 0; }
.page-head__text { color: var(--muted); }

/* Reveal */
html.is-ready .appear {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
html.is-ready .appear.is-shown {
  opacity: 1;
  transform: none;
}

/* Images general */
.frame img {
  border: 8px solid var(--surface);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-card);
  object-fit: cover;
}

/* Misc pages */
.miss { text-align: center; }
.miss__code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  color: var(--accent);
}

/* Breakpoints */
@media (max-width: 479px) {
  .topbar__mail { display: none; }
  .topbar__bar { grid-template-columns: 1fr auto; }
  .topbar__brand { justify-self: start; }
  .queries__a { padding-left: 24px; }
  .hero .btn { width: 100%; }
  .notice { padding-right: 40px; }
}

@media (min-width: 480px) {
  .stats__row { grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
  .stats__item { height: 100%; }
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .menu__cols { grid-template-columns: 1.2fr .8fr; }
}

@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; }
  .hero .hero__plate { z-index: 2; }
  .hero__inner .hero__figure { grid-column: 2; grid-row: 1; margin-left: -32px; }
  .foot__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tile { height: 100%; }
  .slice__split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .workshop__figure { max-width: 100%; }
  .stats__row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .hero__inner { gap: 40px; }
  .hero .hero__figure { margin-left: -64px; }
}

@media (max-height: 600px) {
  .hero { min-height: auto; padding-top: 24px; }
  .menu__panel { padding: 24px var(--pad-side); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is-ready .appear { opacity: 1; transform: none; }
}

/* Editorial columns */
.slice__split .flow { max-width: 640px; }
.slice__split .flow p { line-height: 1.7; }
.slice__split .lead {
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.5rem);
  line-height: 1.4;
  margin-bottom: 24px;
}

/* FAQ column alignment */
.slice:has(.queries) { padding-top: 96px; padding-bottom: 96px; }
.slice:has(.queries) .wrap--narrow { max-width: 880px; }

/* Grid overflow fix */
.hero__inner > *, .grid > *, .slice__split > *, .stats__row > *, .foot__grid > *, .menu__cols > * { min-width: 0; }
.workshop__figure { max-width: 100%; }
.workshop__figure img { width: 100%; }
.hero__figure img, .tile__figure img, .frame img { width: 100%; }
@media (max-width: 479px) {
  .workshop__figure img { aspect-ratio: 4 / 3; }
}

/* Menu overlay stacking */
body:has(.menu--open) .topbar {
  z-index: 300;
  background: transparent;
  box-shadow: none;
}
body:has(.menu--open) .topbar__brand { color: #FFFFFF; }
body:has(.menu--open) .topbar__mail,
body:has(.menu--open) .topbar__mail-link { color: #D4DCD4; }
body:has(.menu--open) .menu__switch {
  background: var(--plate-text);
  color: var(--plate-bg);
  border-color: transparent;
}
body:has(.menu--open) .menu__switch:hover { background: #FFFFFF; }
body:has(.menu--open) .menu__switch:focus-visible { outline-color: var(--plate-text); }
body:has(.menu--open) .menu__panel { padding-top: 112px; }
