/* Self-hosted fonts (SIL OFL 1.1, ../fonts/NOTICES.txt), latin subset. */
/* Instrument Serif is optional (preloaded, so it is used on a normal load): swapping it in late moved the intro under
   the headline (layout shift 0.14 in Lighthouse). */
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/instrument-serif-latin-italic.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/instrument-serif-latin-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/public-sans-latin-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/public-sans-latin-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/public-sans-latin-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Meridian Advisory: Swiss-minimal IT consulting. Instrument Serif display over Public Sans. White, black, deep teal. */
:root {
  --bg: #ffffff;
  --off: #f3f3f0;
  --ink: #0e0f0f;
  --muted: #5f6463;
  --line: #e2e2dd;
  --teal: #0f5b5c;
  --teal-l: #d9ebe9;
  --teal-ink: #0a4445;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
a {
  color: inherit;
}
svg {
  display: block;
}
.wrap {
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 12px;
  z-index: 9;
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.top .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 80px;
  border-bottom: 1px solid var(--ink);
}
.logo {
  text-decoration: none;
  font: 400 28px/1 var(--serif);
  letter-spacing: -0.01em;
}
.logo sup {
  font: 500 11px var(--sans);
  color: var(--teal);
  margin-left: 2px;
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  font-size: 15px;
  padding: 0 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover,
.nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.top .contact {
  justify-self: end;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}
h1 {
  font: 400 clamp(54px, 8.6vw, 140px)/0.92 var(--serif);
  letter-spacing: -0.025em;
}
h1 em,
h2 em {
  color: var(--teal);
}
h2 {
  font: 400 clamp(40px, 5vw, 76px)/0.98 var(--serif);
  letter-spacing: -0.02em;
}
h3 {
  font: 600 19px/1.3 var(--sans);
  letter-spacing: -0.01em;
}
.lbl {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.hero {
  padding: clamp(56px, 8vw, 112px) 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.hero h1 {
  grid-column: 1 / 11;
}
.hero .intro {
  grid-column: 7 / 13;
  margin-top: 40px;
  font-size: clamp(18px, 1.5vw, 20px);
  color: #2c2f2f;
}
.hero .intro p {
  margin: 0 0 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0;
}
.btn:hover {
  background: var(--teal);
}
.btn.teal {
  background: var(--teal);
}
.btn.teal:hover {
  background: var(--teal-ink);
}
.figure-row {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.figure-row div {
  padding: 20px 20px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 20px;
}
.figure-row div:last-child {
  border-right: 0;
}
.figure-row b {
  display: block;
  font: 400 clamp(44px, 4.6vw, 68px)/1 var(--serif);
}
.figure-row span {
  color: var(--muted);
  font-size: 14.5px;
}

.band {
  padding: clamp(80px, 10vw, 140px) 0;
}
.band.off {
  background: var(--off);
}
.band.teal {
  background: var(--teal);
  color: #eaf4f3;
}
.band.teal h2 em {
  color: #9fd6cf;
}
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.split > .l {
  grid-column: 1 / 5;
}
.split > .r {
  grid-column: 6 / 13;
}
.sticky {
  position: sticky;
  top: 32px;
}

.index {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink);
  counter-reset: i;
}
.index li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.index li::before {
  counter-increment: i;
  content: counter(i, decimal-leading-zero);
  font-size: 14px;
  color: var(--teal);
  padding-top: 4px;
}
.index p {
  margin: 6px 0 0;
  color: var(--muted);
}
.index .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.index .chips span {
  font-size: 13.5px;
  padding: 4px 10px;
  background: var(--off);
}

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.case {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case .art {
  aspect-ratio: 4 / 3;
  background: var(--teal-l);
  position: relative;
  overflow: hidden;
}
.case .art svg {
  width: 100%;
  height: 100%;
}
.case .k {
  font-size: 14px;
  color: var(--teal);
}
.case h3 {
  font: 400 30px/1.1 var(--serif);
  letter-spacing: -0.01em;
}
.case .res {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.case .res b {
  display: block;
  font: 400 28px/1 var(--serif);
  color: var(--ink);
}
.case:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.phases div {
  padding: 28px 24px 0 0;
}
.phases .w {
  font: 400 52px/1 var(--serif);
  color: #9fd6cf;
}
.phases h3 {
  color: #fff;
  margin: 14px 0 8px;
}
.phases p {
  color: #c8dedb;
  margin: 0;
  font-size: 15.5px;
}

.insights {
  border-top: 1px solid var(--ink);
}
.insight {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 140px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  align-items: baseline;
}
.insight time {
  color: var(--muted);
  font-size: 14px;
}
.insight h3 {
  font: 400 clamp(26px, 2.4vw, 34px)/1.15 var(--serif);
}
.insight span {
  text-align: right;
  color: var(--teal);
  font-size: 14px;
}
.insight:hover h3 {
  color: var(--teal);
}

.people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.p .ph {
  aspect-ratio: 1;
  background: #fff;
  display: grid;
  place-items: center;
  font: 400 64px var(--serif);
  color: #6f736f;
  margin-bottom: 14px;
}
.p span {
  color: var(--muted);
  font-size: 14.5px;
}

.end {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}
.end h2 {
  grid-column: 1 / 9;
  font-size: clamp(48px, 7vw, 112px);
}
.end .r {
  grid-column: 9 / 13;
  display: grid;
  gap: 14px;
  justify-items: start;
}
.end .r a.mail {
  font: 400 26px var(--serif);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Case page */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 48px 0;
}
.metrics div {
  border-top: 2px solid var(--teal);
  padding-top: 18px;
}
.metrics b {
  display: block;
  font: 400 64px/1 var(--serif);
  color: var(--teal);
}
.metrics span {
  color: var(--muted);
}
.prose h2 {
  font-size: clamp(34px, 3.6vw, 48px);
  margin: 0 0 16px;
}
.prose p {
  color: #2c2f2f;
  max-width: 40em;
}
.prose section + section {
  margin-top: 56px;
}
.arch {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--off);
  padding: 24px;
}
.quote {
  font: 400 clamp(28px, 3vw, 40px)/1.2 var(--serif);
  margin: 0;
  border-left: 2px solid var(--teal);
  padding-left: 24px;
}
.quote footer {
  font: 400 15px var(--sans);
  color: var(--muted);
  margin-top: 14px;
}

.foot {
  border-top: 1px solid var(--ink);
  padding: 32px 0;
  font-size: 14.5px;
  color: var(--muted);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  align-items: center;
}
.foot nav {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
}
.foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.rv {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 960px) {
  .top .wrap {
    grid-template-columns: 1fr auto;
  }
  .nav {
    display: none;
  }
  .hero h1,
  .hero .intro {
    grid-column: 1 / -1;
  }
  .figure-row {
    grid-template-columns: 1fr 1fr;
  }
  .figure-row div {
    margin-right: 0;
    padding-bottom: 20px;
  }
  .split > .l,
  .split > .r {
    grid-column: 1 / -1;
  }
  .sticky {
    position: static;
  }
  .cases,
  .people {
    grid-template-columns: 1fr 1fr;
  }
  .phases {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }
  .insight {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .insight span {
    text-align: left;
  }
  .end h2,
  .end .r {
    grid-column: 1 / -1;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .cases,
  .people,
  .phases {
    grid-template-columns: 1fr;
  }
}

.logo {
  min-height: 44px;
}
.logo {
  display: inline-flex;
  align-items: center;
}

/* RareBlooms sample strip: always on screen, so no one mistakes this for a real business. */
body {
  padding-bottom: 34px;
}
.rb-sample {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  margin: 0;
  padding: 7px 16px;
  background: #111;
  color: #fff;
  font:
    500 13px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  text-align: center;
}
