:root {
  --shell-ink: #171918;
  --shell-paper: #e7e1d8;
  --shell-night: #0e110f;
  --shell-line: rgba(23, 25, 24, 0.18);
  --shell-light-line: rgba(243, 238, 231, 0.16);
  --shell-orange: #e85e3e;
}

.global-nav {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 50%;
  width: min(calc(100% - 32px), 1320px);
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--shell-line);
  border-radius: 12px;
  color: var(--shell-ink);
  background: rgba(231, 225, 216, 0.9);
  box-shadow: 0 12px 34px rgba(18, 21, 19, 0.1);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transform: translateX(-50%);
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease, backdrop-filter 260ms ease;
}

.global-nav--dark {
  color: #f3eee7;
  border-color: rgba(243, 238, 231, 0.13);
  background: rgba(10, 12, 10, 0.88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.global-nav--hero:not(.is-solid) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(0) saturate(100%);
  -webkit-backdrop-filter: blur(0) saturate(100%);
}

.global-nav--hero.is-solid {
  border-color: var(--shell-line);
  background: rgba(231, 225, 216, 0.9);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.site-brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
  border-radius: 4px;
}

.global-nav-links,
.global-nav-actions {
  display: flex;
  align-items: center;
}

.global-nav-links {
  justify-content: center;
  gap: 2px;
}

.global-nav-actions {
  justify-content: flex-end;
  gap: 8px;
}

.global-nav-link,
.global-nav-context,
.global-nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.global-nav-link {
  padding: 0 11px;
  color: color-mix(in srgb, currentColor 66%, transparent);
  font-size: 12px;
  font-weight: 620;
}

.global-nav-link:hover,
.global-nav-link[aria-current="page"] {
  color: currentColor;
  background: rgba(255, 255, 255, 0.32);
}

.global-nav--dark .global-nav-link:hover,
.global-nav--dark .global-nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
}

.global-nav-context {
  width: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  border: 0 solid color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  font-size: 12px;
  font-weight: 720;
}

.global-nav.has-case-study-link .global-nav-context {
  width: 158px;
  padding: 0 14px;
  border-width: 1px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.global-nav-cta {
  padding: 0 18px;
  color: #f7f1ea;
  background: var(--shell-ink);
  font-size: 12px;
  font-weight: 760;
}

.global-nav--dark .global-nav-cta {
  color: var(--shell-ink);
  background: #f3eee7;
}

.global-nav--hero:not(.is-solid) .global-nav-cta {
  color: var(--shell-ink);
  background: transparent;
}

.global-nav-cta:hover { transform: translateY(-1px); }

.global-nav a:focus-visible,
.shell-mobile-menu summary:focus-visible {
  outline: 2px solid var(--shell-orange);
  outline-offset: 2px;
}

.shell-mobile-menu { display: none; }

.site-footer {
  color: #f3eee7;
  background: #090b09;
  border-top: 1px solid rgba(243, 238, 231, 0.13);
}

.site-footer-inner {
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
  padding: 72px 0 30px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(130px, 0.7fr));
  gap: 52px;
}

.site-footer-brand p {
  max-width: 360px;
  margin: 22px 0 0;
  color: rgba(243, 238, 231, 0.6);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.site-footer-heading {
  margin: 4px 0 18px;
  color: rgba(243, 238, 231, 0.42);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer-links {
  display: grid;
  gap: 12px;
}

.site-footer-links a {
  width: fit-content;
  color: rgba(243, 238, 231, 0.76);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.site-footer-links a:hover { color: #fff; }

.site-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 238, 231, 0.12);
  color: rgba(243, 238, 231, 0.38);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}

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

.analytics-preferences {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}

.analytics-preferences:hover { color: rgba(243, 238, 231, 0.7); }

.analytics-consent {
  position: fixed;
  z-index: 2200;
  left: 22px;
  bottom: 22px;
  width: min(calc(100% - 44px), 470px);
  padding: 22px;
  color: #f3eee7;
  border: 1px solid rgba(243, 238, 231, 0.18);
  border-radius: 12px;
  background: rgba(10, 12, 10, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.analytics-consent[hidden] { display: none; }

.analytics-consent-label {
  margin: 0 0 10px;
  color: var(--shell-orange);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.analytics-consent-copy {
  margin: 0;
  color: rgba(243, 238, 231, 0.75);
  font-size: 14px;
  line-height: 1.55;
}

.analytics-consent-copy strong { color: #fff; }

.analytics-consent-note {
  display: block;
  margin-top: 8px;
  color: rgba(243, 238, 231, 0.45);
  font-size: 11px;
}

.analytics-consent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.analytics-consent-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(243, 238, 231, 0.2);
  border-radius: 7px;
  color: #f3eee7;
  background: transparent;
  cursor: pointer;
  font: 700 12px/1 system-ui, sans-serif;
}

/* No --accept modifier. Consent must be as easy to refuse as to accept, so the
   two buttons share one treatment. A filled "allow" beside an outlined refusal
   is the dark pattern EDPB guidance calls out. */

.analytics-consent-button:hover { transform: translateY(-1px); }
.analytics-consent-button:focus-visible,
.analytics-preferences:focus-visible {
  outline: 2px solid var(--shell-orange);
  outline-offset: 3px;
}

.contact-dialog-open { overflow: hidden; }

.contact-dialog {
  width: min(1080px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--shell-ink);
  background: transparent;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.45);
  overflow-x: hidden;
  overflow-y: auto;
}

.contact-dialog::backdrop {
  background: rgba(9, 11, 9, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.68fr);
  min-height: 650px;
  background: #eee8df;
}

.contact-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(243, 238, 231, 0.18);
  border-radius: 50%;
  color: #f3eee7;
  background: rgba(243, 238, 231, 0.08);
  cursor: pointer;
}

.contact-close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.contact-close:hover { background: rgba(243, 238, 231, 0.15); }

.contact-form-side { padding: 58px 64px 54px; }

.contact-kicker,
.contact-direct-kicker {
  margin: 0 0 18px;
  color: #d84f2a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-form-side h2 {
  max-width: 620px;
  margin: 0;
  color: #151715;
  font: 620 clamp(34px, 4.2vw, 56px)/0.98 Inter, system-ui, sans-serif;
  letter-spacing: -0.052em;
}

.contact-intro {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(21, 23, 21, 0.62);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.018em;
}

.contact-form { margin-top: 34px; }
.contact-form-fields[hidden], .contact-success[hidden] { display: none; }

.contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.contact-field > span {
  color: rgba(21, 23, 21, 0.68);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.025em;
}

.contact-field small { color: rgba(21, 23, 21, 0.38); font-size: inherit; font-weight: 580; }

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(21, 23, 21, 0.16);
  border-radius: 8px;
  color: #151715;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  font: 500 15px/1.4 Inter, system-ui, sans-serif;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-field input { height: 48px; padding: 0 14px; }
.contact-field select {
  height: 48px;
  padding: 0 40px 0 14px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(21, 23, 21, 0.55) 50%),
    linear-gradient(135deg, rgba(21, 23, 21, 0.55) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}
.contact-field textarea { min-height: 118px; padding: 12px 14px; resize: vertical; }
.contact-field textarea::placeholder { color: rgba(21, 23, 21, 0.34); }

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover { border-color: rgba(21, 23, 21, 0.28); }

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #d84f2a;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(216, 79, 42, 0.12);
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-submit {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 2px;
  padding: 0 20px;
  border: 1px solid #151715;
  border-radius: 8px;
  color: #f4efe8;
  background: #151715;
  cursor: pointer;
  font: 730 13px/1 Inter, system-ui, sans-serif;
}

.contact-submit svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.contact-submit:hover:not(:disabled) { transform: translateY(-1px); }
.contact-submit:disabled { cursor: wait; opacity: 0.66; }

.contact-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: rgba(21, 23, 21, 0.54);
  font-size: 12px;
  line-height: 1.45;
}

.contact-status[data-state="error"] { color: #a53920; }

.contact-success { max-width: 470px; padding-top: 42px; }
.contact-success-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f4efe8;
  background: #151715;
  font-size: 24px;
}
.contact-success h3 { margin: 24px 0 0; font-size: 32px; letter-spacing: -0.04em; }
.contact-success p { margin: 10px 0 0; color: rgba(21, 23, 21, 0.62); font-size: 16px; line-height: 1.5; }
.contact-success button {
  min-height: 44px;
  margin-top: 26px;
  padding: 0 18px;
  border: 1px solid rgba(21, 23, 21, 0.2);
  border-radius: 8px;
  color: #151715;
  background: transparent;
  cursor: pointer;
  font: 700 12px/1 Inter, system-ui, sans-serif;
}

.contact-direct-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 42px 30px;
  color: #f3eee7;
  background:
    linear-gradient(142deg, rgba(216, 79, 42, 0.16), transparent 40%),
    #111411;
}

.contact-direct-kicker { color: #e66a45; }
.contact-direct-copy { margin: 0; color: rgba(243, 238, 231, 0.58); font-size: 15px; line-height: 1.55; }
.contact-direct-options { display: grid; gap: 9px; margin: 36px 0 auto; }

.contact-direct-options > a {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px 12px;
  border: 1px solid rgba(243, 238, 231, 0.12);
  border-radius: 10px;
  color: inherit;
  background: rgba(243, 238, 231, 0.035);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-direct-options > a:hover {
  border-color: rgba(243, 238, 231, 0.26);
  background: rgba(243, 238, 231, 0.07);
  transform: translateY(-1px);
}

.contact-direct-options > a.contact-booking-option {
  border-color: rgba(230, 106, 69, 0.52);
  background: linear-gradient(135deg, rgba(216, 79, 42, 0.19), rgba(243, 238, 231, 0.045));
}

.contact-direct-options > a.contact-booking-option:hover {
  border-color: rgba(230, 106, 69, 0.78);
  background: linear-gradient(135deg, rgba(216, 79, 42, 0.27), rgba(243, 238, 231, 0.07));
}

.contact-option-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #f3eee7;
  background: rgba(243, 238, 231, 0.08);
}

.contact-option-icon svg { width: 22px; }
.contact-option-icon--email {
  color: #fff;
  background: linear-gradient(145deg, #4f99ff, #2566d4);
}
.contact-option-icon--email svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.contact-option-icon--email svg rect { fill: rgba(255, 255, 255, 0.12); }
.contact-option-icon--gmail { background: #fff; }
.contact-option-icon--gmail svg { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.7; }
.contact-option-icon--gmail svg path:nth-child(1) { stroke: #4285f4; }
.contact-option-icon--gmail svg path:nth-child(2) { stroke: #ea4335; }
.contact-option-icon--gmail svg path:nth-child(3) { stroke: #fbbc04; }
.contact-option-icon--gmail svg path:nth-child(4) { stroke: #34a853; }
.contact-option-icon--linkedin { background: #0a66c2; }
.contact-option-icon--linkedin svg { fill: #fff; }
.contact-option-icon--calendar { background: #d84f2a; }
.contact-option-icon--calendar svg { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.contact-option-icon--calendar svg path:last-child { fill: rgba(255, 255, 255, 0.18); }
.contact-direct-options strong, .contact-direct-options small { display: block; }
.contact-direct-options strong { font-size: 13px; line-height: 1.2; }
.contact-direct-options small { margin-top: 5px; color: rgba(243, 238, 231, 0.43); font-size: 12px; line-height: 1.35; }
.contact-option-arrow { color: rgba(243, 238, 231, 0.34); font-size: 15px; }

.contact-copy-email {
  width: fit-content;
  margin-top: 34px;
  color: rgba(243, 238, 231, 0.58);
  text-underline-offset: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.contact-dialog button:focus-visible,
.contact-dialog a:focus-visible {
  outline: 2px solid #e66a45;
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  .global-nav-links { display: none; }
  .global-nav { grid-template-columns: auto 1fr auto; }
  .shell-mobile-menu {
    position: relative;
    display: block;
    justify-self: end;
  }
  .shell-mobile-menu summary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 720;
  }
  .shell-mobile-menu summary::-webkit-details-marker { display: none; }
  .shell-mobile-menu[open] .shell-mobile-links { display: grid; }
  .shell-mobile-links {
    position: absolute;
    top: 48px;
    right: 0;
    width: 240px;
    display: none;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--shell-line);
    border-radius: 10px;
    color: var(--shell-ink);
    background: rgba(239, 234, 226, 0.98);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
  }
  .shell-mobile-links a {
    padding: 11px 10px;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
  }
  .shell-mobile-links a:hover { background: rgba(23, 25, 24, 0.07); }
  .global-nav-actions .global-nav-context { display: none; }
  .site-footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .site-footer-column:last-child { grid-column: 2; }
}

@media (max-width: 720px) {
  .global-nav {
    top: 8px;
    width: calc(100% - 16px);
    gap: 8px;
    padding-left: 10px;
  }
  .global-nav-actions .global-nav-cta { display: none; }
  .site-footer-inner { width: min(calc(100% - 36px), 1240px); padding-top: 52px; }
  .site-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 28px; }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-column:last-child { grid-column: auto; }
  .site-footer-meta { align-items: flex-start; flex-direction: column; }
  .analytics-consent { left: 10px; bottom: 10px; width: calc(100% - 20px); padding: 14px 16px 12px; }
  .analytics-consent-label { margin-bottom: 6px; font-size: 9.5px; }
  .analytics-consent-copy { font-size: 12.5px; line-height: 1.45; }
  .analytics-consent-note { margin-top: 5px; font-size: 10px; line-height: 1.4; }
  .analytics-consent-actions { flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .analytics-consent-button { min-height: 34px; padding: 0 12px; font-size: 11px; }
  .contact-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; overflow-y: auto; }
  .contact-panel { grid-template-columns: 1fr; min-height: 0; }
  .contact-close { position: fixed; top: 20px; right: 20px; color: #151715; border-color: rgba(21, 23, 21, 0.18); background: rgba(238, 232, 223, 0.92); }
  .contact-form-side { padding: 38px 22px 30px; }
  .contact-form-side h2 { padding-right: 32px; font-size: 38px; }
  .contact-field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-direct-side { min-height: 430px; padding: 34px 22px 26px; }
}
