/* Shared components: brand, header, menu, buttons, links, forms, FAQ, page hero, CTA, footer, cookie. */

/* ---- Brand ---- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.097rem; letter-spacing: -0.03em; line-height: 1; color: inherit; }
.brand__mark { display: block; width: 24px; height: 24px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }

/* ---- Header ---- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  --nav-dim: var(--mute);
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: transform 0.42s var(--ease), background-color var(--t), color var(--t), border-color var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-ink .site-header:not(.is-solid) { --nav-dim: var(--mute-on-ink); background: var(--ink); color: var(--white); border-color: var(--ink); }
.site-header.is-menu-open { --nav-dim: var(--mute-on-ink); background: var(--ink) !important; color: var(--white) !important; border-color: var(--ink) !important; transform: none; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: none; }
.site-nav__list { display: flex; gap: clamp(22px, 2.4vw, 34px); }
/* Quiet until wanted: dim at rest, full colour on hover and for the current page. */
.site-nav__link { display: block; padding-block: 10px; font-weight: 500; font-size: 0.9375rem; letter-spacing: -0.008em; line-height: 1.2; color: var(--nav-dim); transition: color var(--t); }
.site-nav__link:hover, .site-nav__link[aria-current='page'] { color: inherit; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header .site-header__cta { display: none; min-height: 38px; padding-inline: 14px; font-size: 0.9375rem; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.menu-toggle__bars { position: relative; display: block; width: 24px; height: 12px; }
.menu-toggle__bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.32s var(--ease), top 0.32s var(--ease); }
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 10px; }
[aria-expanded='true'] .menu-toggle__bars span:first-child, .menu-toggle[aria-expanded='true'] .menu-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }
@media (min-width: 1024px) {
  .site-nav { display: block; margin-left: auto; }
  .site-header__inner { gap: clamp(24px, 2.8vw, 40px); }
  .site-header .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--ink); color: var(--white);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.55s var(--ease-box), visibility 0s 0.55s;
  overflow-y: auto;
}
.mobile-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.55s var(--ease-box); }
.mobile-menu__link { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; font-size: clamp(2.25rem, 11vw, 3.25rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.mobile-menu__link .icon { width: 24px; height: 24px; color: var(--mute-on-ink); }
.mobile-menu__foot { display: grid; gap: 20px; margin-top: 40px; }
.mobile-menu__meta { display: grid; gap: 4px; color: var(--mute-on-ink); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---- Buttons: one solid shape, no decoration ---- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white);
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding-inline: 24px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.1;
  cursor: pointer; white-space: nowrap; text-align: left;
}
.btn__box { display: grid; place-items: center; flex: none; }
.btn__box .icon { width: 18px; height: 18px; transition: transform 0.42s var(--ease); }
.btn:hover .btn__box .icon { transform: translateX(4px); }
.btn--white, .btn--orange, .on-ink .btn--ink, .header-ink .site-header:not(.is-solid) .btn--ink { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--line { background: transparent; color: inherit; outline: 1px solid currentColor; outline-offset: -1px; }
.btn--sm { min-height: 40px; padding-inline: 16px; font-size: 0.9375rem; }
.btn--sm .btn__box { display: none; }
.btn--block { display: flex; width: 100%; justify-content: space-between; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.tlink { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; letter-spacing: -0.012em; }
.tlink__label { position: relative; padding-bottom: 2px; }
.tlink__label::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform-origin: right; transition: transform 0.42s var(--ease); }
.tlink:hover .tlink__label::after { transform: scaleX(0); }
.tlink .icon { width: 1.1em; height: 1.1em; transition: transform 0.42s var(--ease); }
.tlink:hover .icon { transform: translateX(4px); }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---- Forms ---- */
.field { display: grid; gap: 8px; align-content: start; }
.field__label { font-size: var(--fs-sm); font-weight: 500; }
.field__label .req { color: var(--mute); font-weight: 400; }
.field__control {
  width: 100%; min-height: 56px; padding: 14px 16px; background: var(--white);
  border: 1px solid var(--line-field); appearance: none; -webkit-appearance: none;
  transition: background-color var(--t);
}
.field__control::placeholder { color: var(--mute); }
.field__control:focus { outline: 2px solid var(--ink); outline-offset: 0; }
select.field__control { padding-right: 44px; background-image: none; }
.field__select { position: relative; }
.field__select .icon { position: absolute; right: 16px; top: 50%; translate: 0 -50%; pointer-events: none; width: 18px; height: 18px; }
textarea.field__control { min-height: 168px; resize: vertical; line-height: 1.5; }
.field__error { font-size: var(--fs-xs); color: #b42000; font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }
.field--error .field__control { border-color: #b42000; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; background: var(--white); border: 1.5px solid var(--ink); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--white); }
.check input:checked::after { content: ''; width: 12px; height: 12px; background: var(--orange); }
.form-note { font-size: var(--fs-xs); color: var(--mute); }
.form-status { font-size: var(--fs-sm); font-weight: 500; color: #b42000; }
.form-status:empty { display: none; }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-block: 24px; cursor: pointer; list-style: none; font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 2px; right: 2px; top: 9px; height: 1.5px; background: var(--ink); transition: transform 0.32s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding-bottom: 28px; max-width: 62ch; color: var(--mute); }

/* ---- Inner page hero: a block of colour and one big line ---- */
.phero { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 128px)); padding-bottom: clamp(48px, 6vw, 96px); }
.phero__kicker { margin-bottom: clamp(20px, 2.4vw, 36px); }
.phero__title { max-width: 15ch; }
.phero__foot { display: grid; gap: 28px; margin-top: clamp(32px, 4.5vw, 72px); }
.phero__lede { max-width: 42ch; }
@media (min-width: 900px) {
  .phero__foot { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .phero__lede { grid-column: 1 / span 6; }
  .phero__foot .btns { grid-column: 8 / -1; justify-content: flex-end; }
}

/* ---- Section head ---- */
.shead { display: grid; gap: clamp(20px, 2.4vw, 32px); margin-bottom: clamp(40px, 5.4vw, 88px); }
.shead__title { max-width: 18ch; }
.shead__lede { max-width: 46ch; }
@media (min-width: 900px) {
  .shead--split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .shead--split > .kicker { grid-column: 1 / -1; }
  .shead--split > .shead__title { grid-column: 1 / span 8; }
  .shead--split > .shead__side { grid-column: 9 / -1; }
}
.shead__side { display: grid; gap: 16px; justify-items: start; }

/* ---- Numbered box grid: hairline cells ---- */
.cells { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.on-ink .cells { border-color: var(--line-on-ink); }
.cell { padding: clamp(22px, 2.2vw, 32px) 0 clamp(26px, 2.8vw, 44px); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.on-ink .cell { border-color: var(--line-on-ink); }
.cell__n { font-size: var(--fs-sm); color: var(--mute); font-variant-numeric: tabular-nums; }
.on-ink .cell__n { color: var(--mute-on-ink); }
.cell__title { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.cell__text { color: var(--mute); max-width: 38ch; }
.on-ink .cell__text { color: var(--mute-on-ink); }
@media (min-width: 640px) {
  .cells--2, .cells--3, .cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells .cell { padding-right: var(--gap); }
}
@media (min-width: 1024px) {
  .cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- Plain list ---- */
.blist { display: grid; }
.blist li { padding-block: 11px; border-bottom: 1px solid var(--line); }
.on-ink .blist li { border-color: var(--line-on-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.chip { font-size: var(--fs-sm); color: var(--mute); line-height: 1.4; }
.on-ink .chip { color: var(--mute-on-ink); }

/* ---- Closing CTA + footer ---- */
.closer { padding-block: clamp(32px, 3.6vw, 52px); display: grid; gap: 16px var(--gap); justify-items: start; }
.closer__title { max-width: 16ch; font-size: clamp(1.75rem, 3vw, 2.875rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.closer__row { display: grid; gap: 14px; justify-items: start; }
.closer__lede { max-width: 46ch; color: var(--mute-on-ink); font-size: var(--fs-body); line-height: 1.45; letter-spacing: 0; }
.closer__actions { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; }
@media (min-width: 900px) {
  .closer { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .closer__title { grid-column: 1 / span 6; max-width: none; }
  .closer__row { grid-column: 7 / -1; width: 100%; }
}
.closer__mail { order: 2; font-size: var(--fs-body); overflow-wrap: anywhere; }

.site-footer { background: var(--ink); color: var(--white); }
.site-footer__rule { border-top: 1px solid var(--line-on-ink); }
.site-footer__main { display: grid; gap: 36px var(--gap); padding-block: clamp(40px, 5vw, 64px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__contact-col { grid-column: 1 / -1; }
.site-footer__heading { font-size: var(--fs-sm); font-weight: 400; color: var(--mute-on-ink); margin-bottom: 12px; }
.site-footer__list { display: grid; gap: 6px; }
.site-footer__list a, .site-footer__contact a { transition: color var(--t); }
.site-footer__list a:hover, .site-footer__contact a:hover { color: var(--mute-on-ink); }
.site-footer__contact { display: grid; gap: 6px; }
.site-footer__contact address { color: var(--mute-on-ink); font-size: var(--fs-sm); margin-top: 6px; }
@media (min-width: 900px) {
  .site-footer__main { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
  .site-footer__contact-col { grid-column: auto; }
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-block: 20px 28px; border-top: 1px solid var(--line-on-ink); font-size: var(--fs-xs); color: var(--mute-on-ink); }
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__legal a:hover, .site-footer__legal button:hover { color: var(--white); }

/* ---- Cookie ---- */
.cookie {
  position: fixed; left: var(--gutter); bottom: 16px; z-index: 80; width: min(380px, calc(100% - 2 * var(--gutter)));
  padding: 20px; background: var(--white); color: var(--ink); border: 1.5px solid var(--ink);
  transform: translateY(16px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.cookie.is-visible { transform: none; opacity: 1; }
.cookie__text { font-size: var(--fs-sm); line-height: 1.4; }
.cookie__text a { text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cookie__actions button { min-height: 44px; font-weight: 500; font-size: var(--fs-sm); }
.cookie__accept { background: var(--ink); color: var(--white); }
.cookie__essential { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
