/* ==========================================================================
   Secure. Digitale. advent. — static site styles
   Palette and typography are carried over from the Squarespace site:
   ink black, off-white, orange-red accent, blue and yellow brand marks.
   ========================================================================== */

:root {
  --ink: #101114;
  --ink-soft: #3c4148;
  --muted: #6c727a;
  --line: #e4e6e9;
  --paper: #ffffff;
  --paper-2: #f5f6f7;
  --accent: #f0523d;
  --accent-dark: #d13f2c;
  --blue: #1ca7e0;
  --yellow: #f2b90d;
  --header-h: 76px;
  --radius: 2px;
  --shadow: 0 18px 45px rgba(16, 17, 20, 0.12);
  --font-head: "Futura", "Futura PT", "Jost", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.4rem);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

p,
ul,
ol,
blockquote {
  margin: 0 0 1.1em;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.2em;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

.container {
  width: min(100% - (var(--pad) * 2), var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow--center {
  justify-content: center;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--link {
  padding: 0;
  border: 0;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.btn--link:hover {
  color: var(--accent-dark);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.link-arrow--light {
  color: #fff;
}

.link-arrow--light:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(16, 17, 20, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 40px;
  width: auto;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.nav-chevron {
  position: relative;
  top: 1px;
  transition: transform 0.2s ease;
}

.nav-group[open] .nav-chevron {
  transform: rotate(180deg);
}

.nav-group summary {
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-sub {
  position: absolute;
  top: calc(100% + 1.4rem);
  left: -1rem;
  z-index: 10;
  min-width: 15rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav-sub::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.nav-sublink {
  display: block;
  padding: 0.6rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
  border-left: 2px solid transparent;
}

.nav-sublink:hover,
.nav-sublink.is-active {
  background: var(--paper-2);
  border-left-color: var(--accent);
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 2.6rem;
  height: 2.1rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.lang-switch:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

body.nav-open .nav-toggle-bar {
  background: transparent;
}

body.nav-open .nav-toggle-bar::before {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel-footer {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero and page headers
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(86vh, 880px);
  padding: clamp(6rem, 12vh, 9rem) 0 clamp(4rem, 8vh, 6rem);
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.62) 0%, rgba(9, 11, 15, 0.7) 55%, rgba(9, 11, 15, 0.9) 100%);
}

.hero h1 {
  max-width: 24ch;
  margin-bottom: 0.5em;
  color: #fff;
}

.hero .lead {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-head);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-header {
  padding: clamp(6rem, 11vh, 8.5rem) 0 clamp(3.5rem, 7vh, 5.5rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  max-width: 22ch;
}

.page-header .lead {
  max-width: 62ch;
}

.page-header--dark {
  position: relative;
  background-color: var(--ink);
  color: #fff;
  border-bottom: 0;
  overflow: hidden;
}

.page-header--dark::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.page-header--dark h1,
.page-header--dark .lead,
.page-header--dark a {
  color: #fff;
}

.page-header--dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

.page-header--dark .lead a {
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* Brand squares as a quiet decorative motif. */
.brand-mark {
  display: flex;
  gap: 6px;
  margin-bottom: 1.75rem;
}

.brand-mark span {
  width: 16px;
  height: 16px;
}

.brand-mark span:nth-child(1) {
  background: var(--blue);
}

.brand-mark span:nth-child(2) {
  background: var(--yellow);
  margin-top: 8px;
}

.brand-mark span:nth-child(3) {
  background: var(--accent);
  margin-top: -8px;
}

/* --------------------------------------------------------------------------
   Layout sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(3.75rem, 7vw, 6.5rem) 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.section--tint {
  background: var(--paper-2);
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark p,
.section--dark li {
  color: rgba(255, 255, 255, 0.78);
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head p {
  color: var(--ink-soft);
}

.section-head h2 + p {
  margin-top: 0.75rem;
}

.prose {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.78;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  margin-top: 2em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: var(--ink);
}

.prose--wide {
  max-width: 78ch;
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack-top {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--reverse .split-media {
  order: 2;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
}

.split-media--panel {
  background: var(--paper-2);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.media-frame {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.5rem;
}

.media-frame img {
  width: 100%;
}

.caption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.35rem, 2.6vw, 1.8rem);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card .link-arrow {
  margin-top: auto;
  padding-top: 0.75rem;
}

.card--plain {
  border-top-color: var(--line);
}

.card--plain:hover {
  transform: none;
  box-shadow: none;
}

/* Checklists */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 2rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
}

.checklist--single {
  grid-template-columns: 1fr;
}

/* Numbered steps */
.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.2;
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.stat span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Quote / pull quote */
.pullquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.45;
}

.pullquote cite {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote {
  background: var(--ink);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.quote-figure {
  margin: 0;
}

.quote-figure img {
  width: 100%;
  filter: grayscale(1) contrast(1.05);
}

.quote-text blockquote {
  margin: 0;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 300;
  line-height: 1.3;
}

.quote-text .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.quote-attribution {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(9, 11, 15, 0.92) 0%, rgba(9, 11, 15, 0.72) 60%, rgba(9, 11, 15, 0.58) 100%);
}

.band h2 {
  max-width: 24ch;
  margin-inline: auto;
  color: #fff;
}

.band p {
  max-width: 58ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.82);
}

.band .hero-actions {
  justify-content: center;
}

/* Logo grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.logo-card {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  padding: 1.5rem;
  background: #fff;
}

.logo-card img {
  max-width: 100%;
  max-height: 4.2rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.logo-card:hover img {
  filter: none;
  opacity: 1;
}

.logo-card--wide {
  grid-column: span 2;
}

.logo-card--wide img {
  max-height: 3.2rem;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2rem;
  min-height: 3rem;
}

.logo-row img {
  max-height: 3rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
}

/* People */
.people {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.person {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.person-photo {
  margin: 0;
}

.person-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.person h2 {
  margin-bottom: 0.15rem;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
}

.person-role {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.person p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.person a {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-wrap {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: #fff;
  border: 1px solid #d3d6da;
  border-radius: var(--radius);
  font-size: 0.98rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: 2px solid rgba(240, 82, 61, 0.35);
  outline-offset: 1px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--accent);
}

.field-error {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.78rem;
  min-height: 1em;
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.9rem 1rem;
  background: rgba(28, 167, 224, 0.08);
  border-left: 3px solid var(--blue);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.form-status:empty {
  display: none;
}

.contact-aside {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.office {
  padding: 1.5rem;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
}

.office h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.office address {
  color: var(--ink-soft);
  font-style: normal;
  line-height: 1.7;
}

.office .office-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Gallery and lightbox
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
}

.gallery button {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  border: 0;
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery button:hover img,
.gallery button:focus-visible img {
  transform: scale(1.04);
  opacity: 0.85;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(8, 9, 11, 0.96);
  color: #fff;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox-counter {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-figure {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 0;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.lightbox-caption {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-align: center;
}

.lightbox-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.lightbox button {
  padding: 0.65rem 1rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox button:hover {
  background: #fff;
  color: var(--ink);
}

body.lightbox-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
  background: #0c0e11;
  color: #a6abb3;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer-wordmark {
  margin: 0 0 0.75rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.wordmark-e {
  color: var(--blue);
}

.footer-tagline {
  max-width: 26ch;
  margin-bottom: 1.5rem;
  color: #8d939c;
}

.footer-heading {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact address {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1rem;
  font-style: normal;
  line-height: 1.6;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-list a {
  text-decoration: none;
}

.social-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #71767e;
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS is available)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 1.5rem var(--pad) 3rem;
    background: #fff;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, visibility 0s linear 0.22s, transform 0.22s ease;
  }

  body.nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s ease, visibility 0s, transform 0.22s ease;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 0.9rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-sub {
    position: static;
    min-width: 0;
    padding: 0 0 0.9rem 1rem;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .nav-sublink {
    padding: 0.45rem 0;
    border-left: 0;
  }

  .nav-sublink:hover,
  .nav-sublink.is-active {
    background: none;
    color: var(--accent);
  }

  .nav-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
  }

  .lang-switch--panel {
    min-width: 0;
    height: auto;
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    border-color: var(--ink);
  }

  .nav-panel-mail {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
  }

  .header-inner > .lang-switch {
    display: none;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 66px;
  }

  .brand img {
    height: 34px;
  }

  .hero {
    min-height: 78vh;
  }

  .split,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-media {
    order: 0;
  }

  .quote-figure {
    max-width: 32rem;
  }

  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .person {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  }

  .form {
    grid-template-columns: 1fr;
  }

  .logo-card--wide {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 72vh;
    padding-top: 5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .person {
    grid-template-columns: 1fr;
  }

  .person-photo img {
    aspect-ratio: 16 / 10;
    object-position: center 18%;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .step {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }
}

@media print {
  .site-header,
  .site-footer,
  .to-top,
  .hero-actions,
  .gallery {
    display: none !important;
  }

  .hero {
    min-height: 0;
    color: #000;
  }

  .hero::before {
    display: none;
  }
}
