/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-dark: #1f2a30;
  --color-deep: #072633;
  --color-slate: #4a5c63;
  --color-teal: #7fa3a0;
  --color-teal-dark: #255459;
  --color-teal-light: #a9c4c1;
  --color-cream: #f7f5f1;
  --color-white: #ffffff;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  /* Fluid unit for header + hero only; scoped here so other sections keep their rem sizing */
  --u: 0.833vw;
  --logo-h: calc(3.125 * var(--u));
}

@media (max-width: 1024px) {
  :root {
    --u: 2.083vw;
    --logo-h: calc(1.875 * var(--u));
  }
}

@media (max-width: 767px) {
  :root { --u: 4.444vw; }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: 12px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
  color: var(--color-dark);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--color-white);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header--scrolled {
  background: rgba(7, 38, 51, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(2.875 * var(--u));
}

.header__logo {
  width: calc(16.25 * var(--u));
  height: var(--logo-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: calc(var(--logo-h) * 0.22);
  color: var(--color-white);
}

.header__logo-mark {
  width: var(--logo-h);
  height: var(--logo-h);
  flex-shrink: 0;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  text-transform: uppercase;
}

.header__logo-name {
  font-size: calc(var(--logo-h) * 0.46);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.header__logo-sub {
  font-size: calc(var(--logo-h) * 0.3);
  font-weight: 400;
  letter-spacing: 0.45em;
  margin-right: -0.45em;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: calc(5.67 * var(--u));
  padding-right: calc(7.2 * var(--u));
}

.header__nav-list > li { position: relative; }

.header__nav-list a {
  display: flex;
  align-items: center;
  gap: calc(0.25 * var(--u));
  padding: calc(2.04 * var(--u)) 0;
  font-size: calc(1.12 * var(--u));
  font-weight: 400;
  line-height: 1.4;
  text-transform: capitalize;
  color: var(--color-white);
  transition: opacity 0.2s ease;
}

.has-sub > a::after {
  content: "";
  border-left: calc(0.1875 * var(--u)) solid transparent;
  border-right: calc(0.1875 * var(--u)) solid transparent;
  border-top: calc(0.25 * var(--u)) solid currentColor;
  transition: transform 0.3s ease;
}

.has-sub:hover > a::after,
.has-sub:focus-within > a::after { transform: rotate(180deg); }

.header__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  width: calc(12 * var(--u));
  padding: calc(1.65 * var(--u)) calc(1.65 * var(--u)) calc(1.65 * var(--u)) calc(1.35 * var(--u));
  background: var(--color-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(1.1 * var(--u));
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) scale(0);
  transform-origin: center top;
  transition: opacity 0.2s ease-in, transform 0.2s ease-in, visibility 0.2s;
}

.has-sub:hover .header__sub,
.has-sub:focus-within .header__sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.header__sub a {
  padding: 0;
  white-space: nowrap;
}

.header__nav-list a:hover,
.header__cta:hover { opacity: 0.7; }

.header__cta {
  display: flex;
  align-items: center;
  gap: calc(0.688 * var(--u));
  font-size: calc(1 * var(--u));
  font-weight: 400;
  line-height: 1;
  color: var(--color-white);
  transition: opacity 0.2s ease;
}

.header__cta-icon {
  width: calc(1.75 * var(--u));
  height: calc(1.75 * var(--u));
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__cta-icon svg {
  width: 55%;
  height: 55%;
}

.header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: calc(5.063 * var(--u));
  height: calc(2.813 * var(--u));
  padding: 0;
  background: none;
  border: calc(0.0625 * var(--u)) solid var(--color-white);
  border-radius: calc(2.5 * var(--u));
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: calc(0.88 * var(--u));
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-deep);
  z-index: 90;
  transition: right 0.35s ease;
  padding: 110px 40px;
}

.mobile-menu.is-open { right: 0; }

.mobile-menu ul { display: flex; flex-direction: column; gap: 28px; }

.mobile-menu a {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 38, 51, 0.64);
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: calc(60 * var(--u));
  padding: calc(7 * var(--u)) calc(8.75 * var(--u)) calc(1 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero__general {
  display: flex;
  flex-direction: column;
  gap: calc(1.625 * var(--u));
  max-width: calc(68 * var(--u));
}

.hero__title {
  font-size: calc(5.62 * var(--u));
  font-weight: 700;
  line-height: 1.22;
}

.hero__text {
  font-size: calc(1.75 * var(--u));
  line-height: 1.36;
  color: var(--color-white);
}

.hero__buttons {
  display: flex;
  gap: calc(3.438 * var(--u));
  margin-top: calc(4.5 * var(--u));
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.5 * var(--u));
  min-height: calc(3.125 * var(--u));
  padding: calc(0.7 * var(--u)) calc(5.62 * var(--u));
  border-radius: calc(2.5 * var(--u));
  border: calc(0.0625 * var(--u)) solid var(--color-white);
  font-size: calc(1.12 * var(--u));
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--color-white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-btn svg {
  width: 1.1em;
  height: 1.1em;
}

.hero-btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

.hero-btn--filled {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}

.hero-btn--filled:hover {
  background: #2f6a70;
  border-color: #2f6a70;
}

/* ---------- Intro ---------- */
.intro {
  padding: 120px 0 80px;
  text-align: center;
}

.intro__text {
  max-width: 680px;
  margin: 0 auto;
  color: var(--color-slate);
  font-size: 1.05rem;
}

/* ---------- Credibility ---------- */
.credibility {
  background: var(--color-cream);
  padding: 80px 0;
}

.credibility__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.credibility__item h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.credibility__item p {
  color: var(--color-slate);
  font-size: 0.95rem;
}

/* ---------- Services ---------- */
.services {
  padding: 120px 0;
}

.services h2 { max-width: 620px; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  border: 1px solid #e4e0d9;
  border-radius: 12px;
  padding: 36px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 12px 32px rgba(31, 42, 48, 0.08);
  transform: translateY(-4px);
}

.service-card__number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-teal-light);
  display: block;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-slate);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-card__price {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1rem;
}

/* ---------- Founder ---------- */
.founder {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 120px 0;
}

.founder__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

.founder__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--color-slate);
}

.founder h2 {
  color: var(--color-white);
  margin-bottom: 4px;
}

.founder__role {
  color: var(--color-teal-light);
  margin-bottom: 20px;
  font-weight: 500;
}

.founder__bio p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  max-width: 620px;
}

/* ---------- Contact ---------- */
.contact {
  padding: 120px 0;
  text-align: center;
}

.contact__text {
  color: var(--color-slate);
  max-width: 520px;
  margin: 0 auto 40px;
}

/* Calendly's inline widget needs an explicit height; it stacks taller on narrow screens */
.contact__calendly {
  min-width: 320px;
  height: 700px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .contact__calendly { height: 1050px; }
}

.contact__fallback {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-slate);
}

.contact__fallback a {
  color: var(--color-teal);
  font-weight: 600;
}

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--color-deep);
  color: var(--color-white);
}

.site-footer__inner {
  padding: calc(7.5 * var(--u)) calc(8.75 * var(--u)) calc(3 * var(--u));
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: calc(4 * var(--u));
}

.site-footer__nav {
  display: flex;
  gap: calc(4.5 * var(--u));
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: calc(1.1 * var(--u));
  font-size: calc(1 * var(--u));
}

.site-footer__col a { transition: opacity 0.2s ease; }
.site-footer__col a:hover { opacity: 0.7; }

.site-footer__heading {
  font-family: var(--font-serif);
  font-size: calc(1.25 * var(--u));
  font-weight: 600;
  margin-bottom: calc(0.4 * var(--u));
}

.site-footer__middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(2 * var(--u));
  margin-top: calc(5 * var(--u));
}

.site-footer__email {
  font-size: calc(1 * var(--u));
  color: var(--color-teal-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__actions {
  display: flex;
  align-items: center;
  gap: calc(1.5 * var(--u));
}

.site-footer__actions .hero-btn { padding-left: calc(3.5 * var(--u)); padding-right: calc(3.5 * var(--u)); }

.site-footer__to-top {
  display: flex;
  align-items: center;
  gap: calc(0.7 * var(--u));
  margin-left: calc(1.5 * var(--u));
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: calc(1 * var(--u));
  cursor: pointer;
}

.site-footer__to-top-icon {
  width: calc(2.2 * var(--u));
  height: calc(2.2 * var(--u));
  border: 1px solid var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.site-footer__to-top-icon svg { width: 50%; height: 50%; }
.site-footer__to-top:hover .site-footer__to-top-icon { background: rgba(255, 255, 255, 0.12); }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: calc(1.5 * var(--u)) calc(8.75 * var(--u));
  font-size: calc(0.9 * var(--u));
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Inner-page hero (split) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 38, 51, 0.5);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  min-height: calc(54.8 * var(--u));
  padding: calc(9 * var(--u)) calc(8.75 * var(--u)) calc(4 * var(--u));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(4 * var(--u));
  align-items: center;
}

.page-hero__title {
  font-size: calc(3.75 * var(--u));
  font-weight: 700;
  line-height: 1.2;
}

.page-hero__text {
  font-size: calc(1.25 * var(--u));
  line-height: 1.5;
  margin-bottom: calc(2.5 * var(--u));
}

/* ---------- Heading left, text right ---------- */
.split-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(4 * var(--u));
  align-items: start;
  margin-bottom: calc(4 * var(--u));
}

.split-intro h2 {
  font-size: calc(3.4 * var(--u));
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.split-intro p {
  font-size: calc(1.15 * var(--u));
  line-height: 1.6;
  color: var(--color-slate);
}

.page-section {
  padding: calc(7.5 * var(--u)) calc(8.75 * var(--u)) 0;
}

/* ---------- Orbit (click to reveal) ---------- */
.orbit {
  position: relative;
  background: #f1f3f2;
  min-height: calc(53 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit__stage {
  position: relative;
  width: calc(37.5 * var(--u));
  aspect-ratio: 1;
}

.orbit__rings {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.orbit__rings.is-shifted { transform: translate(calc(-0.8 * var(--u)), calc(0.6 * var(--u))) rotate(-4deg); }

.orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(7, 38, 51, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit__ring--1 { width: 100%; height: 100%; }
.orbit__ring--2 { width: 75.5%; height: 75.5%; }
.orbit__ring--3 { width: 53%; height: 53%; }

.orbit__item {
  position: absolute;
  transform: translate(-50%, -50%);
}

.orbit__item--1 { left: 50%; top: 12%; }
.orbit__item--2 { left: 70%; top: 66%; }
.orbit__item--3 { left: 5%; top: 71%; }

.orbit__toggle {
  width: calc(2.6 * var(--u));
  height: calc(2.6 * var(--u));
  border-radius: 50%;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.orbit__toggle:hover { transform: scale(1.08); }
.orbit__item--1 .orbit__toggle { background: var(--color-teal-dark); }
.orbit__item--2 .orbit__toggle { background: var(--color-deep); }
.orbit__item--3 .orbit__toggle { background: #7fb5b0; }

.orbit__toggle svg { width: 40%; height: 40%; }
.orbit__toggle .orbit__minus { display: none; }
.orbit__toggle[aria-expanded="true"] .orbit__plus { display: none; }
.orbit__toggle[aria-expanded="true"] .orbit__minus { display: block; }

.orbit__label {
  position: absolute;
  bottom: 50%;
  left: calc(100% + 1.2 * var(--u));
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: calc(1 * var(--u));
  align-items: start;
  width: calc(22 * var(--u));
}

.orbit__item--3 .orbit__label {
  left: auto;
  right: calc(100% + 1.2 * var(--u));
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
}

.orbit__item--2 .orbit__label { bottom: auto; top: 50%; transform: translateY(-50%); }

.orbit__number {
  grid-row: span 2;
  font-family: var(--font-serif);
  font-size: calc(4.2 * var(--u));
  line-height: 1;
  color: var(--color-teal-dark);
}

.orbit__item--3 .orbit__number { color: #7fb5b0; }

.orbit__title {
  font-size: calc(1 * var(--u));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--color-deep);
  padding-top: calc(0.4 * var(--u));
}

.orbit__desc {
  font-size: calc(0.95 * var(--u));
  line-height: 1.5;
  color: var(--color-slate);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.orbit__desc.is-open {
  max-height: calc(12 * var(--u));
  opacity: 1;
  margin-top: calc(0.6 * var(--u));
}

/* ---------- Hover tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(0.3 * var(--u));
}

.tile {
  position: relative;
  min-height: calc(37.4 * var(--u));
  padding: calc(2 * var(--u)) calc(1.6 * var(--u));
  border: calc(0.13 * var(--u)) solid #cfe0de;
  background: var(--color-white);
  color: var(--color-dark);
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: calc(1.5 * var(--u));
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tile--dark {
  background: var(--color-deep);
  border-color: var(--color-deep);
  color: var(--color-white);
}

.tile__heading {
  font-family: var(--font-serif);
  font-size: calc(1.6 * var(--u));
  font-weight: 400;
}

.tile__content {
  font-size: calc(1.05 * var(--u));
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tile__icon {
  position: absolute;
  right: calc(1.6 * var(--u));
  bottom: calc(1.6 * var(--u));
  width: calc(2.4 * var(--u));
  height: calc(2.4 * var(--u));
  border-radius: 50%;
  background: var(--color-deep);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tile--dark .tile__icon { background: transparent; border: 1px solid var(--color-white); }
.tile__icon svg { width: 45%; height: 45%; }

.tile.is-open,
.tile.is-open.tile--dark {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: var(--color-white);
}

.tile.is-open .tile__content { opacity: 1; }
.tile.is-open .tile__icon { opacity: 0; transform: translateY(calc(1 * var(--u))); }

@media (hover: hover) {
  .tile:hover {
    background: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
    color: var(--color-white);
  }

  .tile:hover .tile__content { opacity: 1; }
  .tile:hover .tile__icon { opacity: 0; transform: translateY(calc(1 * var(--u))); }
}

.tile:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }

/* Call-to-action tile used on About and Culture */
.cta-tile {
  background: var(--color-teal-dark);
  color: var(--color-white);
  padding: calc(2 * var(--u)) calc(1.6 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(2 * var(--u));
}

.cta-tile__small {
  display: block;
  font-size: calc(1 * var(--u));
  font-weight: 500;
  margin-left: calc(4.2 * var(--u));
  margin-bottom: calc(-0.8 * var(--u));
}

.cta-tile__big {
  font-family: var(--font-serif);
  font-size: calc(4 * var(--u));
  line-height: 1;
  color: #9ccfc9;
}

.cta-tile .hero-btn {
  padding-left: calc(1 * var(--u));
  padding-right: calc(1 * var(--u));
  width: 100%;
}

/* ---------- Values grid (Culture) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(0.4 * var(--u));
}

.value-card {
  aspect-ratio: 1;
  padding: calc(2 * var(--u)) calc(1.6 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--u));
}

.value-card h3 {
  font-size: calc(1.7 * var(--u));
  font-weight: 400;
  line-height: 1.2;
}

.value-card p {
  font-size: calc(1 * var(--u));
  line-height: 1.55;
}

.value-card--dark { background: var(--color-deep); color: var(--color-white); }
.value-card--outline { border: calc(0.13 * var(--u)) solid #cfe0de; color: var(--color-dark); }
.value-card--outline p { color: var(--color-slate); }

.values__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.values__cell--r1c1 { grid-column: 1; grid-row: 1; }
.values__cell--r1c2 { grid-column: 2; grid-row: 1; }
.values__cell--r1c3 { grid-column: 3; grid-row: 1; }
.values__cell--r2c2 { grid-column: 2; grid-row: 2; }
.values__cell--r2c3 { grid-column: 3; grid-row: 2; }
.values__cell--r2c4 { grid-column: 4; grid-row: 2; }
.values .cta-tile { aspect-ratio: 1; }

/* ---------- Contact block (inner pages) ---------- */
.contact-block {
  position: relative;
  margin-top: calc(7.5 * var(--u));
  padding: 0 calc(8.75 * var(--u)) calc(4 * var(--u));
}

.contact-block::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: var(--color-deep);
  z-index: 0;
}

.contact-block__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: calc(30 * var(--u));
  object-fit: cover;
}

.contact-block__card {
  position: relative;
  z-index: 2;
  width: calc(68% );
  margin: calc(-16 * var(--u)) auto 0;
  background: var(--color-white);
  padding: calc(3.5 * var(--u)) calc(4 * var(--u));
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: calc(3 * var(--u));
}

.contact-block__card h2 {
  font-size: calc(3 * var(--u));
  font-weight: 700;
  margin-bottom: calc(1.5 * var(--u));
}

.contact-block__card p {
  font-size: calc(1 * var(--u));
  line-height: 1.6;
  color: var(--color-slate);
  margin-bottom: calc(1.2 * var(--u));
}

.contact-block__card a:not(.hero-btn) { color: #b8732e; text-decoration: underline; text-underline-offset: 2px; }

.contact-block__card h3 {
  font-family: var(--font-sans);
  font-size: calc(1.15 * var(--u));
  font-weight: 700;
  margin-bottom: calc(0.6 * var(--u));
  padding-top: calc(1 * var(--u));
}

.contact-block__card .hero-btn { padding-left: calc(3 * var(--u)); padding-right: calc(3 * var(--u)); width: fit-content; }

/* ---------- Fade-up on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(calc(2 * var(--u)));
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orbit__rings, .orbit__desc, .tile, .tile__content, .tile__icon { transition: none; }
}

/* ---------- 404 ---------- */
.not-found-page { background: var(--color-deep); }

/* No nav on this page, so set the height the nav links give the homepage header */
.not-found-page .header__inner { min-height: calc(5.67 * var(--u)); }

.not-found {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(7 * var(--u)) calc(8.75 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: calc(1.625 * var(--u));
  color: var(--color-white);
}

.not-found__code {
  font-family: var(--font-serif);
  font-size: calc(1.75 * var(--u));
  color: var(--color-teal-light);
  letter-spacing: 0.12em;
}

.not-found__title {
  font-size: calc(5.62 * var(--u));
  font-weight: 700;
  line-height: 1.22;
}

.not-found__text {
  font-size: calc(1.75 * var(--u));
  line-height: 1.36;
  margin-bottom: calc(2.875 * var(--u));
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header__inner {
    padding: calc(1.25 * var(--u)) calc(2 * var(--u)) calc(1.438 * var(--u));
  }

  .header__logo { width: calc(9.75 * var(--u)); }

  .header__nav,
  .header__cta { display: none; }

  .header__menu-toggle { display: flex; }

  .hero__content {
    min-height: calc(50 * var(--u));
    padding-left: calc(2 * var(--u));
    padding-right: calc(2 * var(--u));
  }

  .hero__general { max-width: 100%; }

  .hero__title { font-size: calc(4.5 * var(--u)); }

  .hero__text { font-size: calc(1.5 * var(--u)); }

  .hero__buttons { gap: calc(2 * var(--u)); }

  .hero-btn {
    min-height: calc(2.813 * var(--u));
    padding: calc(0.7 * var(--u)) calc(3 * var(--u));
    font-size: calc(0.88 * var(--u));
  }

  .not-found-page .header__inner { min-height: 0; }

  .not-found {
    padding-left: calc(2 * var(--u));
    padding-right: calc(2 * var(--u));
  }

  .not-found__title { font-size: calc(4.5 * var(--u)); }

  .not-found__text { font-size: calc(1.5 * var(--u)); }
}

@media (max-width: 767px) {
  .hero__content {
    min-height: calc(44.375 * var(--u));
    padding-top: calc(7.938 * var(--u));
    padding-bottom: calc(5.375 * var(--u));
    justify-content: space-between;
  }

  .hero__general { gap: calc(1.813 * var(--u)); }

  .hero__title {
    font-size: calc(2.25 * var(--u));
    line-height: 1.17;
  }

  .hero__text {
    font-size: calc(1 * var(--u));
    line-height: 1.5;
  }

  .hero__buttons {
    flex-direction: column;
    gap: calc(0.875 * var(--u));
    margin-top: 0;
    width: 100%;
  }

  .hero-btn { width: 100%; }

  .not-found__title {
    font-size: calc(2.25 * var(--u));
    line-height: 1.17;
  }

  .not-found__text {
    font-size: calc(1 * var(--u));
    line-height: 1.5;
  }

  .not-found__code { font-size: calc(1 * var(--u)); }
}

@media (max-width: 900px) {
  .credibility__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .founder__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder__photo { margin: 0 auto; }
}

/* Inner pages, orbit, tiles, values, contact block, footer: tablet and phone */
@media (max-width: 1024px) {
  .page-hero__content {
    grid-template-columns: 1fr;
    min-height: calc(40 * var(--u));
    padding: calc(9 * var(--u)) calc(2 * var(--u)) calc(3 * var(--u));
    gap: calc(1.5 * var(--u));
    align-content: end;
  }

  .page-hero__title { font-size: calc(2.6 * var(--u)); }
  .page-hero__text { font-size: calc(1 * var(--u)); }

  .page-section { padding: calc(4.5 * var(--u)) calc(2 * var(--u)) 0; }

  .split-intro {
    grid-template-columns: 1fr;
    gap: calc(1 * var(--u));
    margin-bottom: calc(2 * var(--u));
  }

  .split-intro h2 { font-size: calc(2.2 * var(--u)); }
  .split-intro p { font-size: calc(1 * var(--u)); }

  /* Orbit becomes a stacked list: the ring layout needs a wide screen */
  .orbit {
    display: block;
    min-height: 0;
    padding: calc(1.5 * var(--u));
  }

  .orbit__stage { width: auto; aspect-ratio: auto; display: flex; flex-direction: column; gap: calc(1.5 * var(--u)); }
  .orbit__rings { display: none; }

  .orbit__item,
  .orbit__item--1,
  .orbit__item--2,
  .orbit__item--3 {
    position: static;
    transform: none;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    gap: calc(1 * var(--u));
  }

  .orbit__label,
  .orbit__item--2 .orbit__label,
  .orbit__item--3 .orbit__label {
    position: static;
    transform: none;
    width: auto;
    flex: 1;
  }

  .orbit__toggle { flex-shrink: 0; width: calc(2.4 * var(--u)); height: calc(2.4 * var(--u)); }
  .orbit__number { font-size: calc(2.6 * var(--u)); }
  .orbit__title { font-size: calc(0.85 * var(--u)); }
  .orbit__desc { font-size: calc(0.9 * var(--u)); }

  .tiles { grid-template-columns: 1fr 1fr; gap: calc(0.5 * var(--u)); }
  .tile { min-height: calc(14 * var(--u)); padding: calc(1.2 * var(--u)); gap: calc(0.8 * var(--u)); }
  .tile__heading { font-size: calc(1.3 * var(--u)); }
  .tile__content { font-size: calc(0.85 * var(--u)); opacity: 1; padding-bottom: calc(2.5 * var(--u)); }
  .tile__icon { display: none; }

  .cta-tile { padding: calc(1.2 * var(--u)); }
  .cta-tile__small { font-size: calc(0.85 * var(--u)); margin-left: calc(2.8 * var(--u)); margin-bottom: calc(-0.5 * var(--u)); }
  .cta-tile__big { font-size: calc(2.6 * var(--u)); }

  .values { grid-template-columns: 1fr 1fr; gap: calc(0.5 * var(--u)); }

  .values__cell--r1c1,
  .values__cell--r1c2,
  .values__cell--r1c3,
  .values__cell--r2c2,
  .values__cell--r2c3,
  .values__cell--r2c4 { grid-column: auto; grid-row: auto; }

  .value-card,
  .values .cta-tile { aspect-ratio: auto; min-height: calc(14 * var(--u)); padding: calc(1.2 * var(--u)); gap: calc(0.8 * var(--u)); }
  .values__img { aspect-ratio: 1; min-height: 0; }
  .value-card h3 { font-size: calc(1.3 * var(--u)); }
  .value-card p { font-size: calc(0.85 * var(--u)); }

  .contact-block { margin-top: calc(4.5 * var(--u)); padding: 0 calc(2 * var(--u)) calc(2 * var(--u)); }
  .contact-block__img { height: calc(14 * var(--u)); }

  .contact-block__card {
    width: 100%;
    margin-top: calc(-3 * var(--u));
    grid-template-columns: 1fr;
    gap: 0;
    padding: calc(1.8 * var(--u)) calc(1.5 * var(--u));
  }

  .contact-block__card h2 { font-size: calc(2 * var(--u)); margin-bottom: calc(0.8 * var(--u)); }
  .contact-block__card p { font-size: calc(0.9 * var(--u)); }
  .contact-block__card h3 { font-size: calc(1 * var(--u)); }

  .site-footer__inner { padding: calc(4 * var(--u)) calc(2 * var(--u)) calc(2 * var(--u)); }

  .site-footer__top,
  .site-footer__middle { flex-direction: column; align-items: flex-start; }

  .site-footer__nav { flex-wrap: wrap; gap: calc(1.5 * var(--u)) calc(2.5 * var(--u)); }
  .site-footer__col { font-size: calc(0.85 * var(--u)); gap: calc(0.6 * var(--u)); }
  .site-footer__heading { font-size: calc(1 * var(--u)); }
  .site-footer__middle { margin-top: calc(2.5 * var(--u)); }
  .site-footer__email { font-size: calc(0.9 * var(--u)); }
  .site-footer__actions { flex-wrap: wrap; gap: calc(0.8 * var(--u)); }
  .site-footer__actions .hero-btn { width: auto; }
  .site-footer__to-top { margin-left: 0; font-size: calc(0.85 * var(--u)); }
  .site-footer__bottom { padding: calc(1 * var(--u)) calc(2 * var(--u)); font-size: calc(0.75 * var(--u)); }
}

@media (max-width: 767px) {
  .page-hero__title { font-size: calc(2.1 * var(--u)); }
  .split-intro h2 { font-size: calc(1.9 * var(--u)); }
  .tiles,
  .values { grid-template-columns: 1fr; }
  .tile,
  .value-card,
  .values .cta-tile { min-height: 0; }
  .values__img { aspect-ratio: 16 / 10; }
  .site-footer__actions .hero-btn { flex: 1; }
}
