:root {
  --mid-blue: #15798B;
  --dark-blue: #1F3E55;
  --darker-blue: #162B3C;
  --lighter-blue: #6FA7AE;
  --accent: #A94722;
  --accent-dark: #7C351C;
  --shadow-blue: #2F808A;
  --background: #F7F7F7;
  --white: #FFFFFF;
  --line: rgba(31, 62, 85, 0.12);
  --text-soft: rgba(22, 43, 60, 0.76);
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--darker-blue);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 247, 0.95);
  backdrop-filter: blur(12px);
}

.brand-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-name {
  font-size: 1rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  white-space: nowrap;
}

.brand-name strong {
  font-weight: 800;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-actions {
  position: relative;
  flex: 0 0 auto;
}

.menu-toggle {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  color: var(--dark-blue);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle[aria-expanded="true"] {
  color: var(--white);
  background: var(--dark-blue);
  border-color: var(--dark-blue);
}

.menu-toggle__icon {
  display: grid;
  width: 20px;
  gap: 4px;
}

.menu-toggle__icon span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

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

.site-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100vh - 104px);
  padding: 24px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(22, 43, 60, 0.18);
}

.site-menu[hidden] {
  display: none;
}

.site-menu__label {
  margin: 0 0 10px;
  color: var(--mid-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-menu__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu__group {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.site-menu__link {
  display: block;
  width: 100%;
  padding: 10px 12px;
  color: var(--dark-blue);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-menu__link:hover,
.site-menu__link:focus-visible,
.site-menu__link[aria-current="page"] {
  color: var(--white);
  background: var(--mid-blue);
}

.site-menu__link[aria-current="page"]::after {
  content: "  / current";
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link {
  color: var(--dark-blue);
  padding: 10px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--mid-blue);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(31, 62, 85, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 62, 85, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 76% 38%, rgba(21, 121, 139, 0.14), transparent 28%);
  background-size: 72px 72px, 72px 72px, auto;
  mask-image: linear-gradient(to bottom, black, rgba(0,0,0,0.7), transparent 95%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  padding-block: 92px;
}

.hero-grid > *,
.mission-grid > * {
  min-width: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--mid-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.intro {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link {
  min-height: 48px;
  padding: 0 20px;
  color: var(--white);
  background: var(--mid-blue);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(47, 128, 138, 0.18);
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--dark-blue);
}

.primary-link--booking {
  background: var(--accent);
}

.primary-link--booking:hover,
.primary-link--booking:focus-visible {
  background: var(--accent-dark);
}

.hero-visual {
  position: relative;
  min-height: 450px;
  width: 100%;
  --hero-card-size: 320px;
}

.visual-card {
  position: absolute;
  z-index: 0;
  width: var(--hero-card-size);
  height: var(--hero-card-size);
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(214, 220, 223, 0.9), 0 0 24px rgba(196, 204, 208, 0.9);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  cursor: pointer;
}

.visual-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: var(--white);
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.visual-card-mid::after {
  opacity: 0;
}

.hero-visual:has(.visual-card:hover) .visual-card::after,
.hero-visual:has(.visual-card.is-raised) .visual-card::after {
  opacity: 0.58;
}

.hero-visual:has(.visual-card:hover) .visual-card:hover::after,
.hero-visual:has(.visual-card.is-raised) .visual-card.is-raised::after {
  opacity: 0;
}

.visual-card__logo {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  padding: 6px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
}

.visual-card__label {
  position: absolute;
  z-index: 4;
  max-width: 82%;
  color: var(--white);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(22, 43, 60, 0.55);
  pointer-events: none;
}

.visual-card__label--structured {
  right: 20px;
  bottom: 24px;
  text-align: right;
}

.visual-card__label--governed {
  right: 20px;
  bottom: 24px;
  text-align: right;
}

.visual-card__label--unstructured {
  bottom: 24px;
  left: 50%;
  width: calc(100% - 20px);
  max-width: none;
  text-align: right;
  transform: translateX(-50%);
}

.visual-card-back {
  z-index: 1;
  right: -30px;
  top: 2%;
  background-color: var(--dark-blue);
  background-image: url("../images/governed-intelligence-software-estate.webp");
  transform: rotate(7deg);
}

.visual-card-mid {
  z-index: 3;
  left: -30px;
  bottom: 2%;
  background-color: var(--lighter-blue);
  background-image: url("../images/hidden-unorganised-software-estate.webp");
  transform: rotate(-7deg);
}

.visual-card-front {
  z-index: 2;
  width: var(--hero-card-size);
  height: var(--hero-card-size);
  aspect-ratio: 1;
  inset: auto;
  top: 50%;
  left: 50%;
  background-color: var(--dark-blue);
  background-image: url("../images/discovered-structured-software-estate.webp");
  transform: translate(-50%, -50%);
}

.visual-card:hover,
.visual-card.is-raised {
  z-index: 4;
}

.mission-section {
  padding-block: clamp(88px, 10vw, 150px);
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.mission-grid > :first-child,
.availability-grid > :first-child,
.about-grid > :first-child,
.value-header > :first-child,
.case-study-content__rail {
  transform: translateY(-35px);
}

h2 {
  margin-bottom: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

blockquote {
  margin: 0;
  padding-left: 28px;
  border-left: 4px solid var(--mid-blue);
}

blockquote p {
  margin-bottom: 28px;
  color: var(--dark-blue);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.55;
}

blockquote footer {
  color: var(--mid-blue);
  font-weight: 800;
}

.availability-section,
.about-section,
.value-section,
.process-section,
.faq-section {
  padding-block: clamp(76px, 10vw, 140px);
  border-top: 1px solid var(--line);
}

.booking-section {
  padding-block: clamp(76px, 10vw, 140px);
  color: var(--white);
  background: var(--dark-blue);
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: start;
}

.booking-grid > * {
  min-width: 0;
}

.booking-section .section-label {
  color: var(--lighter-blue);
}

.booking-section h2 {
  max-width: 560px;
}

.booking-content {
  max-width: 760px;
}

.booking-content .section-intro,
.booking-content > p:not(.booking-terms) {
  color: rgba(255, 255, 255, 0.78);
}

.booking-content .section-intro {
  margin-bottom: 20px;
}

.booking-content > p:not(.booking-terms) {
  margin-bottom: 30px;
  font-size: 1.08rem;
}

.booking-terms {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.booking-terms a {
  color: var(--white);
  font-weight: 800;
  text-underline-offset: 4px;
}

.booking-terms a:hover,
.booking-terms a:focus-visible {
  color: var(--lighter-blue);
}

.availability-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: start;
}

.availability-grid > *,
.about-grid > * {
  min-width: 0;
}

.about-profile {
  --portrait-offset-x: 4%;
  --portrait-offset-y: 8%;
  --portrait-zoom: 1.2;
}

.about-portrait {
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 28px 0 30px;
  overflow: hidden;
  background: var(--darker-blue);
  border: 8px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 20px 44px rgba(22, 43, 60, 0.16);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translate(var(--portrait-offset-x), var(--portrait-offset-y)) scale(var(--portrait-zoom));
  transform-origin: center;
}

.about-linkedin {
  color: var(--mid-blue);
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 4px;
}

.about-linkedin-copy {
  max-width: 760px;
  margin: 24px 0 0;
}

.about-linkedin:hover,
.about-linkedin:focus-visible {
  color: var(--dark-blue);
  text-decoration: underline;
}

.external-link-mark {
  display: inline-block;
  margin-left: 0;
  font-size: 0.72em;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  vertical-align: super;
  -webkit-text-stroke: 0.25px currentColor;
}

.section-intro {
  max-width: 700px;
  margin-bottom: 34px;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-list li {
  min-height: 132px;
  padding: 0;
  background: var(--white);
}

.service-list button {
  display: flex;
  width: 100%;
  min-height: 132px;
  align-items: flex-start;
  padding: 24px;
  color: var(--darker-blue);
  background: var(--white);
  border: 0;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.service-list button:hover,
.service-list button:focus-visible,
.service-list button[aria-pressed="true"] {
  color: var(--white);
  background: var(--dark-blue);
}

.availability-hint {
  display: block;
  margin-top: 8px;
  color: var(--mid-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.availability-note,
.about-copy p,
.availability-intro {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.availability-intro {
  margin-bottom: 34px;
}

.about-copy p.about-copy__intro {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.availability-note {
  margin: 24px 0 0;
  padding: 20px 22px;
  color: var(--dark-blue);
  background: rgba(111, 167, 174, 0.13);
  border-left: 4px solid var(--mid-blue);
}

.secondary-services {
  max-width: 760px;
  margin-top: 28px;
  padding: 22px 24px;
  color: var(--dark-blue);
  background: rgba(111, 167, 174, 0.1);
  border-left: 4px solid var(--lighter-blue);
}

.secondary-services .section-label {
  margin-bottom: 8px;
}

.secondary-services h3,
.secondary-services h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.15;
}

.secondary-services p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
}

.detail-list__inline-note {
  display: none;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.value-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: start;
  margin-bottom: 46px;
}

.case-study-carousel__hint {
  margin: 18px 0 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-align: center;
}

.case-study-carousel {
  --case-study-slide-width: min(820px, calc(100vw - 208px));
  position: relative;
}

.case-study-carousel__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: max(24px, calc((100% - var(--case-study-slide-width)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.case-study-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.case-study-carousel__viewport:focus-visible {
  outline: 3px solid var(--mid-blue);
  outline-offset: 4px;
}

.case-study-carousel__viewport.is-dragging,
.case-study-carousel__viewport.is-settling {
  scroll-snap-type: none;
}

.case-study-carousel__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.case-study-carousel__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
  gap: 24px;
  padding: 8px max(24px, calc((100% - var(--case-study-slide-width)) / 2)) 16px;
}

.case-study {
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
}

.case-study-carousel .case-study {
  display: flex;
  flex: 0 0 var(--case-study-slide-width);
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  box-shadow: 0 16px 36px rgba(22, 43, 60, 0.08);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.case-study-carousel[data-case-study-carousel-ready] .case-study {
  opacity: 0.58;
  transform: scale(0.965);
}

.case-study-carousel[data-case-study-carousel-ready] .case-study.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 20px 44px rgba(22, 43, 60, 0.15);
}

.case-study--wide {
  grid-column: span 2;
}

.case-study__metric {
  margin: 0 0 18px;
  color: var(--mid-blue);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.case-study__metric--title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.04;
}

.case-study__metric a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 8px;
}

.case-study__metric a:hover,
.case-study__metric a:focus-visible {
  color: var(--dark-blue);
  text-decoration: underline;
}

.case-study h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.08;
}

.case-study p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
}

.case-study__more {
  display: inline-block;
  margin-top: auto;
  padding-top: 24px;
  color: var(--mid-blue);
  font-weight: 800;
  text-decoration: none;
}

.case-study__more:hover,
.case-study__more:focus-visible {
  color: var(--dark-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-study-carousel__controls {
  display: none;
  grid-template-columns: 48px minmax(0, auto) 48px;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}

.case-study-carousel[data-case-study-carousel-ready] .case-study-carousel__controls {
  display: grid;
}

.case-study-carousel__arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  color: var(--dark-blue);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.case-study-carousel__arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-study-carousel__arrow:hover,
.case-study-carousel__arrow:focus-visible {
  color: var(--white);
  background: var(--dark-blue);
  border-color: var(--dark-blue);
}

.case-study-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 122px;
}

.case-study-carousel__dot {
  width: 14px;
  height: 14px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--lighter-blue);
  border-radius: 50%;
  cursor: pointer;
}

.case-study-carousel__dot:hover,
.case-study-carousel__dot:focus-visible {
  border-color: var(--dark-blue);
}

.case-study-carousel__dot[aria-current="true"] {
  background: var(--mid-blue);
  border-color: var(--mid-blue);
}

.process-layout,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: start;
}

.process-layout > *,
.faq-grid > * {
  min-width: 0;
}

.faq-grid {
  margin-bottom: 46px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-grid li {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid button {
  display: flex;
  width: 100%;
  min-height: 180px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  color: var(--darker-blue);
  background: rgba(255, 255, 255, 0.38);
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.process-grid button:hover,
.process-grid button:focus-visible,
.process-grid button[aria-pressed="true"] {
  color: var(--white);
  background: var(--dark-blue);
}

.process-grid span {
  display: block;
  margin-bottom: auto;
  color: var(--lighter-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.process-grid button:hover span,
.process-grid button:focus-visible span,
.process-grid button[aria-pressed="true"] span {
  color: var(--white);
  opacity: 0.72;
}

@media (hover: none) {
  .service-list button:hover:not([aria-pressed="true"]) {
    color: var(--darker-blue);
    background: var(--white);
  }

  .process-grid button:hover:not([aria-pressed="true"]) {
    color: var(--darker-blue);
    background: rgba(255, 255, 255, 0.38);
  }

  .process-grid button:hover:not([aria-pressed="true"]) span {
    color: var(--lighter-blue);
    opacity: 1;
  }
}

.process-grid strong {
  font-size: 1.3rem;
  line-height: 1.08;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.faq-list summary {
  color: var(--dark-blue);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  cursor: pointer;
}

.faq-list summary::marker {
  color: var(--mid-blue);
}

.faq-list details p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.site-footer {
  color: var(--white);
  background: var(--darker-blue);
  padding-block: 54px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 44px;
}

.footer-row p {
  margin-bottom: 6px;
}

.footer-person {
  margin-bottom: 4px;
}

.footer-brand {
  font-weight: 800;
}

.footer-detail {
  margin-top: 14px;
}

.footer-address {
  margin: 0;
  font-style: normal;
  line-height: 1.45;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.footer-link {
  color: var(--white);
  font-weight: 700;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer-link:hover,
.footer-link:focus-visible,
.footer-link[aria-current="page"] {
  color: var(--lighter-blue);
}

.footer-contact > span {
  display: block;
}

.floating-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 15;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: var(--mid-blue);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(22, 43, 60, 0.24);
  cursor: pointer;
}

.floating-top[hidden] {
  display: none;
}

.floating-top:hover,
.floating-top:focus-visible {
  background: var(--dark-blue);
}

.floating-top__icon {
  display: block;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 12px solid currentColor;
  border-left: 8px solid transparent;
  transform: translateY(-2px);
}

.content-page {
  padding-block: clamp(70px, 10vw, 130px);
}

.content-page--grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.content-page--grid::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: min(440px, 100vw);
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(31, 62, 85, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 62, 85, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 76% 38%, rgba(21, 121, 139, 0.14), transparent 28%);
  background-size: 72px 72px, 72px 72px, auto;
  mask-image: linear-gradient(to bottom, black 12%, rgba(0, 0, 0, 0.7) 48%, transparent 100%);
}

.content-page__intro {
  max-width: 780px;
  margin-bottom: 58px;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: start;
}

.content-layout > * {
  min-width: 0;
}

.working-with-page .content-layout > :first-child h1 {
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.content-body {
  display: grid;
  gap: 34px;
}

.content-body section {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.content-body section.content-section--no-divider {
  padding-bottom: 0;
  border-bottom: 0;
}

.content-body h2 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.content-body p,
.content-body li {
  color: var(--text-soft);
}

.content-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.terms-services {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.terms-services li {
  margin-bottom: 0.45rem;
}

.secondary-services--content {
  margin-top: 0;
}

.terms-document {
  max-width: 960px;
}

.terms-status {
  max-width: 820px;
  margin: 30px 0;
  padding: 18px 20px;
  color: var(--dark-blue);
  background: rgba(169, 71, 34, 0.09);
  border-left: 4px solid var(--accent);
}

.terms-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin: 0 0 26px;
  background: var(--line);
  border: 1px solid var(--line);
}

.terms-metadata div {
  min-width: 0;
  padding: 14px 16px;
  background: var(--white);
}

.terms-metadata dt {
  margin-bottom: 4px;
  color: var(--mid-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terms-metadata dd {
  margin: 0;
  font-size: 0.94rem;
}

.terms-body {
  max-width: 860px;
}

.terms-body section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.terms-body h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.terms-body p {
  max-width: 820px;
  margin-bottom: 14px;
  color: var(--text-soft);
}

.terms-body p:last-child {
  margin-bottom: 0;
}

.terms-placeholder {
  color: var(--accent-dark);
}

.case-study-page {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.case-study-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.case-study-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(31, 62, 85, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 62, 85, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.case-study-hero__content {
  position: relative;
  padding-block: clamp(48px, 6vw, 72px);
}

.case-study-hero h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5.2vw, 4.6rem);
  line-height: 1.02;
}

.case-study-hero__description {
  max-width: 900px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.case-study-content {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 9vw, 140px);
  padding-top: clamp(72px, 10vw, 132px);
}

.case-study-content > * {
  min-width: 0;
}

.case-study-content__rail {
  position: sticky;
  top: 43px;
  align-self: start;
}

.case-study-content h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.8rem);
}

.case-study-experience-note {
  margin-top: 28px;
  padding: 16px 18px;
  color: var(--dark-blue);
  background: rgba(111, 167, 174, 0.1);
  border-left: 4px solid var(--mid-blue);
  font-size: 0.9rem;
}

.case-study-experience-note p {
  margin: 0;
}

.case-study-experience-note p:first-child {
  margin-bottom: 8px;
  color: var(--mid-blue);
}

.case-study-article {
  max-width: 780px;
}

.case-study-article > p,
.case-study-section > p,
.case-study-section > ul,
.case-study-section > ol {
  color: var(--text-soft);
  font-size: 1.06rem;
}

.case-study-article > p,
.case-study-section > p {
  margin-bottom: 22px;
}

.case-study-article code {
  padding: 0.1em 0.3em;
  color: var(--dark-blue);
  background: rgba(111, 167, 174, 0.16);
  font-size: 0.92em;
}

.case-study-section {
  margin-top: 76px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.case-study-section h2 {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.case-study-section .section-label {
  margin-bottom: 14px;
}

.case-study-section ul,
.case-study-section ol {
  margin: 0 0 28px;
  padding-left: 1.4rem;
}

.case-study-section li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.case-study-callout {
  margin-block: 32px;
  padding: 24px 26px;
  color: var(--dark-blue) !important;
  background: rgba(111, 167, 174, 0.14);
  border-left: 4px solid var(--mid-blue);
  font-size: 1.18rem !important;
}

.case-study-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-left: 0 !important;
  list-style: none;
  counter-reset: case-study-stage;
}

.case-study-stages li {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  color: var(--dark-blue);
  background: var(--white);
  border: 1px solid var(--line);
  counter-increment: case-study-stage;
}

.case-study-stages li::before {
  content: counter(case-study-stage, decimal-leading-zero);
  color: var(--mid-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.case-study-questions {
  padding-left: 1.4rem;
}

.case-study-section--closing {
  padding-bottom: 12px;
}

.case-study-cta .primary-link {
  margin-top: 8px;
}

.case-study-figure {
  margin: 56px 0 34px;
  padding: clamp(10px, 2vw, 16px) clamp(22px, 4vw, 34px) clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(22, 43, 60, 0.07);
}

.case-study-figure__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--mid-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-study-figure__number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--white);
  background: var(--dark-blue);
  border-radius: 50%;
  font-size: 0.7rem;
}

.case-study-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.case-study-flow span {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-height: 72px;
  padding: 14px 18px;
  color: var(--dark-blue);
  background: rgba(111, 167, 174, 0.16);
  border-right: 1px solid var(--white);
  font-size: 0.92rem;
  font-weight: 750;
}

.case-study-flow span:nth-child(even) {
  background: rgba(21, 121, 139, 0.1);
}

.case-study-flow span:last-child {
  border-right: 0;
  color: var(--white);
  background: var(--mid-blue);
}

.case-study-figure figcaption {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.case-study-image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  text-align: left;
}

.case-study-image-trigger:focus-visible {
  outline: 3px solid var(--mid-blue);
  outline-offset: 6px;
}

.case-study-image {
  display: block;
  width: 100%;
  height: auto;
}

.case-study-image-dialog {
  width: min(calc(100% - 32px), 1400px);
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 18px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(10, 28, 42, 0.35);
}

.case-study-image-dialog::backdrop {
  background: rgba(14, 34, 48, 0.78);
  backdrop-filter: blur(5px);
}

.case-study-image-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study-image-dialog__close {
  position: sticky;
  z-index: 1;
  top: 0;
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0 0 -40px auto;
  place-items: center;
  color: var(--dark-blue);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.case-study-image-dialog__close:hover,
.case-study-image-dialog__close:focus-visible {
  color: var(--white);
  background: var(--dark-blue);
}

.case-study-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.case-study-boundary__node {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 18px;
  color: var(--dark-blue);
  background: rgba(111, 167, 174, 0.14);
  border: 1px solid rgba(31, 62, 85, 0.12);
  text-align: center;
  font-weight: 750;
}

.case-study-boundary__node--boundary {
  color: var(--white);
  background: var(--dark-blue);
  border-color: var(--dark-blue);
}

.case-study-boundary__connector {
  color: var(--mid-blue);
  font-size: 1.5rem;
  font-weight: 800;
}

.case-study-placeholder {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lighter-blue);
  background: rgba(255, 255, 255, 0.56);
}

.case-study-placeholder h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.case-study-placeholder p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
}

.case-study-back-link {
  display: inline-flex;
  margin-top: 34px;
  color: var(--mid-blue);
  font-weight: 800;
  text-underline-offset: 4px;
}

.case-study-back-link:hover,
.case-study-back-link:focus-visible {
  color: var(--dark-blue);
}

.contact-dialog {
  width: min(calc(100% - 32px), 640px);
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  color: var(--darker-blue);
  background: var(--white);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(10, 28, 42, 0.35);
}

.contact-dialog::backdrop {
  background: rgba(14, 34, 48, 0.68);
  backdrop-filter: blur(5px);
}

.contact-dialog__surface {
  position: relative;
  padding: clamp(32px, 6vw, 54px);
  overflow-y: auto;
  max-height: inherit;
}

.contact-page {
  min-height: calc(100vh - 84px);
  padding-block: clamp(70px, 10vw, 130px);
}

.contact-page .contact-dialog {
  position: relative;
  inset: auto;
  display: block;
  margin: 0 auto;
  max-height: none;
}

.contact-page .contact-dialog::backdrop {
  display: none;
}

.contact-dialog h1,
.contact-dialog h2 {
  font-size: clamp(2.35rem, 7vw, 3.5rem);
}

.contact-dialog__dismiss {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--dark-blue);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.contact-dialog__dismiss:hover,
.contact-dialog__dismiss:focus-visible {
  color: var(--white);
  background: var(--dark-blue);
}

.contact-dialog__intro,
.contact-panel--thanks p:not(.section-label) {
  max-width: 480px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form__field {
  display: grid;
  gap: 7px;
}

.contact-form__contact-method {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
}

.contact-form__contact-method legend {
  padding-inline: 6px;
  font-weight: 750;
}

.contact-form__contact-method > p:not(.contact-form__field-error) {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.contact-form label {
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--darker-blue);
  background: var(--white);
  border: 1px solid rgba(31, 62, 85, 0.28);
  border-radius: 8px;
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(21, 121, 139, 0.28);
  outline-offset: 2px;
  border-color: var(--mid-blue);
}

.contact-form [aria-invalid="true"] {
  border-color: #A32020;
}

.contact-form__human-check {
  padding: 18px;
  background: rgba(111, 167, 174, 0.12);
  border-left: 3px solid var(--mid-blue);
}

.contact-form__human-check p {
  margin-bottom: 2px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__error,
.contact-form__field-error {
  margin: 0;
  color: #A32020;
  font-weight: 700;
}

.contact-form__field-error {
  font-size: 0.9rem;
}

.contact-form__turnstile {
  min-height: 65px;
}

.contact-form__send {
  justify-self: start;
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  background: var(--mid-blue);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(47, 128, 138, 0.18);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.contact-form__send:hover,
.contact-form__send:focus-visible {
  background: var(--dark-blue);
}

.contact-form__send:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .mission-grid,
  .availability-grid,
  .booking-grid,
  .about-grid,
  .value-header,
  .process-layout,
  .faq-grid,
  .content-layout,
  .case-study-content {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 72px;
  }

  .hero-visual {
    min-height: 360px;
    width: min(100%, 520px);
    margin-inline: auto;
  }

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

  .value-header {
    gap: 24px;
  }

  .case-study-content__rail {
    position: static;
  }

  .mission-grid > :first-child,
  .availability-grid > :first-child,
  .about-grid > :first-child,
  .value-header > :first-child,
  .case-study-content__rail {
    transform: none;
  }

}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .brand-row {
    min-height: 70px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: clamp(0.72rem, 3.3vw, 0.82rem);
    letter-spacing: 0.08em;
  }

  .contact-link {
    flex: 0 0 auto;
    padding: 8px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .hero-grid {
    gap: 42px;
    padding-block: 56px 70px;
  }

  .hero-visual {
    width: min(100%, 340px);
    min-height: 0;
    aspect-ratio: 1 / 0.9;
    --hero-card-size: 240px;
  }

  .visual-card-front {
    padding: clamp(20px, 8vw, 28px);
  }

  .mission-section {
    padding-block: 76px;
  }

  blockquote {
    padding-left: 20px;
  }

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

  .service-list {
    grid-template-columns: 1fr;
  }

  .case-study-carousel {
    --case-study-slide-width: calc(100vw - 72px);
  }

  .case-study-carousel__hint {
    margin-top: 14px;
    text-align: left;
  }

  .case-study-carousel__track {
    gap: 14px;
    padding-inline: 16px;
  }

  .case-study-carousel .case-study {
    padding: 28px 24px;
  }

  .case-study-carousel__controls {
    grid-template-columns: 44px minmax(0, auto) 44px;
    gap: 12px;
  }

  .case-study-carousel__arrow {
    width: 44px;
    height: 44px;
  }

  .case-study--wide {
    grid-column: auto;
  }

  .case-study-stages {
    grid-template-columns: 1fr;
  }

  .case-study-flow,
  .case-study-boundary {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .case-study-flow span {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--white);
  }

  .case-study-flow span:last-child {
    border-bottom: 0;
  }

  .case-study-boundary {
    display: grid;
  }

  .case-study-boundary__connector {
    justify-self: center;
    transform: rotate(90deg);
  }

  .process-grid button {
    min-height: 160px;
  }

  .availability-note.is-mobile-collapsed,
  .process-note.is-mobile-collapsed {
    display: none;
  }

  .detail-list__inline-note {
    display: block;
    max-height: 0;
    margin: 0;
    padding: 0 24px;
    overflow: hidden;
    color: var(--dark-blue);
    background: rgba(111, 167, 174, 0.13);
    border-left: 4px solid var(--mid-blue);
    font-size: 0.98rem;
    line-height: 1.5;
    opacity: 0;
    transition: max-height 220ms ease, padding-bottom 220ms ease, opacity 160ms ease;
  }

  .detail-list__inline-note.is-open {
    max-height: 20rem;
    padding-top: 20px;
    padding-bottom: 24px;
    opacity: 1;
  }

  .process-grid .detail-list__inline-note {
    padding-inline: 30px;
  }

  .process-grid .detail-list__inline-note.is-open {
    padding-top: 20px;
    padding-bottom: 30px;
  }

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

  .footer-contact {
    align-items: flex-start;
    text-align: left;
  }

  .contact-dialog {
    width: min(calc(100% - 20px), 640px);
    max-height: calc(100vh - 20px);
  }

  .contact-dialog__surface {
    padding: 44px 24px 28px;
  }

  .terms-metadata {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 600px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: clamp(32px, 6vw, 64px);
    padding-block: 44px;
  }

  .hero-visual {
    width: 100%;
    min-height: 250px;
    aspect-ratio: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-study-carousel .case-study {
    transition: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 16mm 14mm 18mm;
  }

  html,
  body {
    overflow: visible;
    background: var(--white);
  }

  .site-header,
  .site-footer,
  .floating-top {
    display: none !important;
  }

  .content-page {
    padding: 0;
  }

  .shell,
  .terms-document,
  .terms-body {
    width: auto;
    max-width: none;
  }

  .terms-status {
    margin: 6mm 0;
  }

  .terms-metadata {
    margin-bottom: 7mm;
  }

  .terms-body section,
  .terms-metadata,
  .terms-status {
    break-inside: avoid;
  }

  .terms-body section {
    padding: 5mm 0;
  }

  .terms-body h2 {
    break-after: avoid;
    font-size: 13pt;
  }

  .terms-body p,
  .terms-metadata dd,
  .terms-status {
    color: #17212B;
    font-size: 9.5pt;
    line-height: 1.42;
  }
}
