:root {
  /* Brand greens sampled from the Medika logo */
  --green: #41b548;
  --green-dark: #218a45;

  --ink: #0b0f0c;
  --ink-2: #2b302c;
  --cream: #ecebe3;
  --text: #111511;
  --page: #f1f2ed;

  --nav-h: 36px;
  --gutter: clamp(16px, 2.5vw, 48px);
}

* { box-sizing: border-box; margin: 0; }

/* ---------- Preloader (kononenkogroup.com) ----------
   Their sizes are rem on a 1920px design (1rem = 1px at 1920), so vw here:
   80px counter = 4.1667vw, padding 38px / 30px. Mobile is a 375px design. */
.preloader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  color: #000;
}
.is-loading { overflow: hidden; }
.is-loading .preloader { display: block; }
.preloader-inner {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 1.979vw 1.5625vw;
}
.ln-mask {
  display: block;
  overflow: hidden;
}
.preloader-count {
  font-family: "Archivo", "Manrope", system-ui, sans-serif;
  font-size: 4.1667vw;
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  will-change: transform;
}
@media (max-width: 767px) {
  .preloader-inner { padding: 5.333vw 4vw; }
  .preloader-count { font-size: 8vw; }
}

html, body { height: 100%; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px calc(var(--gutter) + 10px);
  transition: transform .6s cubic-bezier(.53, .02, 0, .99);
}
/* Slid away while the team panel fills the screen (emblem.js) */
.nav-hidden .site-header { transform: translateY(-110%); }

.brand { display: inline-flex; flex-shrink: 0; }
.brand img {
  height: 52px;
  width: auto;          /* keep the logo's natural ratio — never stretch */
  display: block;
  /* Soft white halo that follows the logo's shape, so it reads over the photo */
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, .95))
    drop-shadow(0 0 6px rgba(255, 255, 255, .85))
    drop-shadow(0 0 14px rgba(255, 255, 255, .55));
}

.nav-list,
.submenu {
  list-style: none;
  padding: 0;
}

.nav-list {
  display: flex;
  gap: 6px;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 150px;
  height: var(--nav-h);
  padding: 0 14px;
  border: 0;
  border-radius: 2px;
  background: rgba(246, 246, 240, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(20, 35, 25, .08);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
}

/* Hover: a green fill rises from the bottom of the button */
.nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: center bottom;
  transition: transform .3s ease-out;
}
.nav-item:not(.is-active):not(.nav-cta):hover::after,
.has-submenu:hover > .nav-item::after,
.has-submenu:focus-within > .nav-item::after { transform: scaleY(1); }

/* Dropdown arrow (Iconsax arrow-down-2), flips while the menu is open */
.nav-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform .25s ease-out;
}
.has-submenu:hover .nav-arrow,
.has-submenu:focus-within .nav-arrow { transform: rotate(180deg); }

/* Dropdown: items drop in under their parent, no tray behind them */
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 100%;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .25s ease-out, transform .25s ease-out, visibility .25s;
}
/* Invisible bridge so the menu stays open while the pointer crosses the gap */
.submenu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.nav-item.is-active {
  background: var(--ink-2);
  color: var(--cream);
}
.nav-item.is-active::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--green);
}

.nav-cta {
  justify-content: center;
  background: var(--green);
  color: #06210c;
  font-weight: 700;
}

.nav-item:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Scroll showcase (hero shrinks into a card) ----------
   Layout mirrors sharplink.com: 3 columns, 28px padding & gaps,
   160px bands top and bottom; the hero lands in the middle column. */
.showcase {
  --pad: 28px;
  --gap: 28px;
  --band: 160px;
  --block: 172px;
  --col: calc((100% - 2 * var(--pad) - 2 * var(--gap)) / 3);
  --x1: calc(var(--pad) + var(--col));
  --x2: calc(var(--x1) + var(--gap));
  --x3: calc(var(--x2) + var(--col));
  --x4: calc(var(--x3) + var(--gap));
  --ink: #000;
  --off-white: #f3f3f3;
  position: relative;
  height: 250vh;
  font-family: "Archivo", "Manrope", system-ui, sans-serif;
}
.showcase-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}

.showcase-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 18% 0%, rgba(196, 218, 210, .95), transparent 70%),
    radial-gradient(70% 55% at 85% 10%, rgba(210, 224, 219, .85), transparent 70%),
    linear-gradient(180deg, #d9e5e0 0%, #e8eeeb 40%, #f5f5f2 72%, #f7f7f4 100%);
}

/* Dashed construction lines */
.sc-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sc-line {
  position: absolute;
  opacity: 0;
}
.sc-line.v {
  top: 0;
  bottom: 0;
  left: var(--x);
  border-left: 1px dashed rgba(0, 0, 0, .1);
}
.sc-line.h {
  left: 0;
  right: 0;
  top: var(--y);
  border-top: 1px dashed rgba(0, 0, 0, .1);
}
.sc-line.h.sc-line--left {
  right: auto;
  left: var(--pad);
  width: calc(var(--col) + var(--gap));
}

/* 6px corner pin */
.has-pin { position: relative; }
.has-pin::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 6px;
  height: 6px;
  background: var(--green);
  opacity: var(--pin, 1);
  pointer-events: none;
}

.sc-grid {
  position: absolute;
  inset: var(--band) var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--gap);
}

.sc-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sc-heading {
  height: var(--block);
  padding-top: 28px;
}
.sc-title {
  font-size: 68px;
  font-weight: 400;
  line-height: 72px;
  letter-spacing: -1.36px;
  color: var(--ink);
}
.sc-line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.sc-line-mask > span { display: block; }

.sc-description {
  height: var(--block);
  padding-top: 28px;
}
.sc-description p {
  max-width: 310px;
  font-size: 16px;
  font-weight: 500;
  line-height: 21.6px;
  color: var(--ink);
}

.sc-slot { pointer-events: none; }

.sc-points {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sc-point-wrap {
  flex: 1;
  min-height: 0;
}
.sc-point {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow: hidden;
  padding: 20px;
  background: #00000008;
}
.sc-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 4px;
  width: 30px;
  height: 22px;
  background: var(--ink);
  color: var(--off-white);
  font-family: "Archivo Narrow", "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.04px;
  text-transform: uppercase;
}
.sc-eyebrow::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
}
.sc-point-title {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
symbol path {
  stroke-width: var(--icon-stroke, 1.5);
  stroke-dasharray: var(--icon-dash, none);
}
/* Faint dotted line drawing, full card height on the right */
.sc-point-art {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  padding: 14px 10px;
  color: rgba(0, 0, 0, .28);
  --icon-stroke: .45;
  --icon-dash: 0 .7;
}

/* SharpLink tertiary button: label bar + 32px icon tile, text rolls up on hover */
.ui-button {
  display: flex;
  gap: 2px;
  overflow: hidden;
  color: var(--off-white, #f3f3f3);
  font-family: "Archivo Narrow", "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  text-decoration: none;
  user-select: none;
}
.ui-button > * {
  display: flex;
  flex-direction: column;
  height: 34px;
  overflow: hidden;
  background: rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: background-color .25s cubic-bezier(.455, .03, .515, .955);
}
.ui-button:hover > * { background: rgba(0, 0, 0, .34); }
.ui-button-content { flex-grow: 1; padding: 0 16px; }
.ui-button-icon { width: 32px; flex-shrink: 0; }
.ui-button > * > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 100%;
  white-space: nowrap;
  transition: transform .5s cubic-bezier(.785, .135, .15, .86);
}
.ui-button-icon svg { width: 16px; height: 16px; }
.ui-button:hover > * > span { transform: translateY(-100%); }
.ui-button:hover .ui-button-icon > span { transition-delay: .07s; }
.ui-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Data card the hero becomes (lives inside the hero, so its frame clips it) */
.hero-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 25px 28px 28px;
  color: #f3f3f3;
  font-family: "Archivo", "Manrope", system-ui, sans-serif;
  pointer-events: none;
  visibility: hidden;
}
.hero-panel:not([inert]) .hero-panel-cta { pointer-events: auto; }
/* Fills the whole hero frame; stops line up with the card once it has landed
   (160px bands top and bottom), so the shrinking frame never shows a box */
.hero-panel-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  visibility: hidden;
  background:
    linear-gradient(180deg,
      #020806 0px,
      #03100a 200px,
      #0a3a1e 46%,
      #1d7038 64%,
      rgba(86, 168, 104, .6) 78%,
      rgba(214, 228, 220, .35) calc(100% - 170px),
      rgba(214, 228, 220, 0) calc(100% - 120px));
}
.hero-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px dashed rgba(243, 243, 243, .18);
}
.hero-panel-row:first-child { padding-top: 0; }
.hero-panel-row:last-child { border-bottom: 0; }
.hero-panel-label {
  font-family: "Archivo Narrow", "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.04px;
  text-transform: uppercase;
}
.hero-panel-value {
  display: block;
  overflow: hidden;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}
.hero-panel-value > span { display: block; }

/* 3D capsules and tablets, fills the space between the rows and the button */
.hero-panel-pills {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 -28px;
}
.hero-panel-pills canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pills-axis {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  font-family: "Archivo Narrow", "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(243, 243, 243, .6);
}
.hero-panel-cta { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #e3e8df;
  /* Frame set from scroll progress by showcase.js */
  clip-path: inset(var(--clip-t, 10px) var(--clip-r, 10px) var(--clip-b, 10px) var(--clip-l, 10px) round var(--clip-radius, 26px));
}

.hero-media,
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img,
.hero-media video {
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-video {
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-video.is-playing { opacity: 1; }

/* Depth-of-field blur on the lower part only, behind the headline */
.hero-blur {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .65) 22%, transparent 46%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .65) 22%, transparent 46%);
}

/* Dark overlay on the lower part only (as on the Velox reference) so the
   headline reads; the top of the scene stays clean */
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(10, 15, 13, .7) 0%, rgba(10, 15, 13, .32) 28%, rgba(10, 15, 13, 0) 52%),
    radial-gradient(ellipse 60% 65% at 0% 100%, rgba(10, 15, 13, .45) 0%, rgba(10, 15, 13, 0) 70%);
}

/* Frosted glass (matches the Velox cards): light tint, strong blur,
   1px gradient border brighter at the top-left and bottom-right */
.glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .12) 100%),
    rgba(34, 40, 37, .34);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .22),
    0 24px 60px -24px rgba(0, 0, 0, .35);
  color: #fff;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .12) 35%, rgba(255, 255, 255, .06) 65%, rgba(255, 255, 255, .38) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Anniversary card (SharpLink "company news" style) */
.hero-news {
  position: absolute;
  bottom: 54px;
  right: calc(var(--gutter) + 14px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 532px;
  padding: 22px 20px 20px 20px;
  background: rgba(36, 42, 48, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #f3f3f3;
  font-family: "Archivo", "Manrope", system-ui, sans-serif;
  text-decoration: none;
}
.hero-news-meta {
  display: flex;
  justify-content: space-between;
  font-family: "Archivo Narrow", "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 18.2px;
  letter-spacing: 1.04px;
  text-transform: uppercase;
}
.hero-news-date { color: rgba(243, 243, 243, .55); }
.hero-news-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.hero-news-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 23px;
}
.hero-news-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: rgba(243, 243, 243, .08);
  transition: background-color .25s ease;
}
.hero-news-arrow svg { width: 16px; height: 16px; transition: transform .3s ease-out; }
.hero-news:hover .hero-news-arrow { background: var(--green); }
.hero-news:hover .hero-news-arrow svg { transform: translateX(2px); }
.hero-news:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Headline block */
.hero-content {
  position: absolute;
  left: calc(var(--gutter) + 14px);
  bottom: 54px;
  max-width: 780px;
}

/* Eyebrow above the title: green square + narrow caps, like the card meta */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Archivo Narrow", "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
.hero-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-title-line { display: block; }
/* Word masks for the intro reveal (built by intro.js) */
.wd-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
.wd { display: inline-block; will-change: transform; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  height: 46px;
  padding: 0 6px 0 18px;
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(20, 40, 25, .12);
}
.btn-pill-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  overflow: hidden;
}
.btn-pill-icon svg { width: 16px; height: 16px; transition: transform .3s ease-out; }
.btn-pill:hover .btn-pill-icon svg { transform: translateX(3px); }
.btn-pill:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Scroll cue */
.hero-scroll {
  position: absolute;
  right: 32px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, .85);
}
.hero-scroll span { writing-mode: vertical-rl; letter-spacing: .04em; }
.hero-scroll svg { width: 16px; height: 16px; }
.hero-scroll-bar {
  position: relative;
  width: 2px;
  height: 64px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}
.hero-scroll-bar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: var(--green);
  animation: scroll-cue 2.2s ease-in-out infinite;
}
@keyframes scroll-cue {
  from { transform: translateY(-100%); }
  to { transform: translateY(260%); }
}

/* ---------- Mobile toggle ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 36px;
  border: 0;
  border-radius: 2px;
  background: var(--cream);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--text);
  transition: transform .25s ease;
}
.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { top: 20px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-item { min-width: 0; }
}

@media (max-width: 980px) {
  .hero-scroll { display: none; }
  .hero-news {
    top: 96px;
    bottom: auto;
    left: calc(var(--gutter) + 10px);
    right: calc(var(--gutter) + 10px);
    width: auto;
    gap: 12px;
    padding: 16px;
  }
  .hero-news-title { font-size: 15px; line-height: 20px; }
  .hero-content { right: var(--gutter); bottom: 42px; left: calc(var(--gutter) + 10px); }

  /* No pinned shrink on small screens: hero first, content stacked below */
  .showcase { height: auto; }
  .showcase-stage {
    position: relative;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    padding-bottom: 56px;
  }
  /* `order` on the hero also changes paint order, so keep the backdrop behind */
  .showcase-bg { z-index: -1; }
  .sc-lines,
  .sc-slot,
  .hero-panel,
  .hero-panel-bg { display: none; }
  .hero {
    position: relative;
    order: -1;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
  }
  .sc-grid {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 36px var(--gutter) 0;
  }
  .sc-heading,
  .sc-description { height: auto; }
  .sc-title { font-size: 44px; line-height: 48px; letter-spacing: -.9px; }
  .sc-description { padding-top: 20px; }
  .sc-points { gap: 14px; }
  .sc-point { min-height: 150px; }
}

@media (max-width: 980px) {
  .site-header { padding-block: 16px; }
  .brand img { height: 42px; }
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    max-height: calc(100svh - 90px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-item { height: 46px; font-size: 15px; }

  /* On mobile, submenus open inline as an accordion */
  .nav-arrow { width: 18px; height: 18px; }
  .has-submenu:hover .nav-arrow,
  .has-submenu:focus-within .nav-arrow { transform: none; }
  .has-submenu.is-open .nav-arrow { transform: rotate(180deg); }

  .submenu {
    position: static;
    display: none;
    gap: 4px;
    min-width: 0;
    margin-top: 4px;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .submenu::before { display: none; }
  .has-submenu.is-open > .submenu { display: flex; }

  /* Touch has no real hover: only highlight the parent while open */
  .has-submenu:hover > .nav-item::after,
  .has-submenu:focus-within > .nav-item::after { transform: scaleY(0); }
  .has-submenu.is-open > .nav-item::after { transform: scaleY(1); }
}

/* ---------- About (Freeport Markets ship scroll, truck instead of the ship) ----------
   A 100vh stage pinned by about.js. The text sits centred; the truck drawing
   (top-down, facing left) crosses it, wiping the first text away and the second in. */
.about {
  position: relative;
  font-family: "Space Grotesk", "Archivo", sans-serif;
  color: #141414;
}
.about-stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.about-first,
.about-second {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 88vw;
  margin: 0;
  text-align: center;
  transform: translate(-50%, -50%);
}
.about-quote {
  font-size: max(2.8vw, 22px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.about-line { display: block; }
.about-line.is-muted { color: #9b9b9b; }
.about-line .wd { display: inline-block; }
.about-cite {
  margin-top: max(2vw, 18px);
  font-size: max(.75vw, 11px);
  color: #b3b3b3;
  letter-spacing: .01em;
}
.about-second {
  width: 20em; /* ~56vw, four lines like the reference */
  text-wrap: balance;
  font-size: max(2.8vw, 22px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  clip-path: inset(0 0 0 100%);
}
.about-accent { color: var(--green-dark); }

/* Truck: about 16.5vw tall like the ship, 7:1 long; about.js moves it with x */
.about-truck {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  height: max(16.5vw, 210px); /* tall enough to cover the wrapped text on phones */
  width: auto;
  aspect-ratio: 1400 / 200;
  color: var(--page);
  overflow: visible;
  transform: translate3d(100vw, -50%, 0);
  pointer-events: none;
}
.tk-fill,
.tk-k {
  fill: currentColor;
  stroke: #8a8a8a;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.tk-k { fill: #cfcfcc; }
.tk-d {
  fill: none;
  stroke: #9c9c9c;
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
}
.tk-c {
  fill: none;
  stroke: #d4d4d1;
  stroke-width: .6;
  vector-effect: non-scaling-stroke;
}
.tk-t {
  fill: #a3a3a3;
  font: 500 8px "Space Grotesk", sans-serif;
  letter-spacing: .06em;
}

/* Reduced motion: no truck, both texts one after the other */
.about.is-static .about-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12vh;
  height: auto;
  padding: 20vh 0;
}
.about.is-static .about-first,
.about.is-static .about-second {
  position: static;
  transform: none;
  clip-path: none;
}
.about.is-static .about-truck { display: none; }

/* ---------- Pill reveal (wearebulletproof.com's "B" section, values from their CSS) ----------
   The box is the logo pill's extruded outline as a clip-path (475.11 x 643.51 artboard); the line
   art sits on top. Below 981px (and with reduced motion) it is a regular team section. */
.emblem {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.emblem-anchor-back { position: absolute; top: -41dvh; }
.emblem-full {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  overflow: clip; /* the 100vw panel is wider than the page by the scrollbar */
}
.emblem-wrap {
  position: relative;
  width: 100%;
  height: 100svh;
}
.emblem-content { position: relative; overflow: hidden; background: #f6f4ef; }
.emblem-defs { position: absolute; }
.emblem-lines { display: none; }

/* Team panel ("Management Team" poster): photo / card checkerboard, banner, footer */
.team {
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
  color: #111;
}
.team-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  min-height: 0;
}
.team-photo { margin: 0; overflow: hidden; background: #ddd; }
.team-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6vw 1.4vw;
  background: #f6f4ef;
}
.team-role {
  align-self: flex-end;
  font-size: .78vw;
  line-height: 1.45;
  text-align: right;
  color: #333;
}
.team-role a { color: inherit; text-decoration: none; }
.team-role a:hover { color: var(--green-dark); }
.team-name { font-size: 1.15vw; font-weight: 400; letter-spacing: -.01em; }
.team-name b { font-weight: 700; }
.team-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2vw;
  padding: 2.4vw 2.8vw 2.2vw;
  background: var(--green-dark);
  color: #fff;
}
.team-title {
  font-size: 6.6vw;
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.035em;
}
.team-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1vw;
  padding-bottom: .4vw;
  text-align: right;
}
.team-aside p { font-size: .95vw; font-weight: 600; line-height: 1.35; }
.team-aside img { width: auto; height: 2.4vw; filter: brightness(0) invert(1); }
.team-foot {
  display: flex;
  justify-content: space-between;
  padding: .95vw 2.8vw;
  font-size: .85vw;
  background: #f6f4ef;
}
.team-foot b { font-weight: 600; }

/* Phones, tablets and reduced motion: a regular section, photo / card pairs
   alternating sides two to a row */
@media (max-width: 980px), (prefers-reduced-motion: reduce) {
  .emblem-full,
  .emblem-wrap { height: auto; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .team-photo { aspect-ratio: 1; }
  .team-grid > :nth-child(3) { order: 4; }
  .team-grid > :nth-child(4) { order: 3; }
  .team-grid > :nth-child(5) { order: 9; }
  .team-grid > :nth-child(6) { order: 6; }
  .team-grid > :nth-child(7) { order: 5; }
  .team-grid > :nth-child(8) { order: 7; }
  .team-grid > :nth-child(9) { order: 8; }
  .team-grid > :nth-child(10) { order: 10; }
  .team-card { padding: 16px 14px; }
  .team-role { font-size: 11px; overflow-wrap: anywhere; }
  .team-name { font-size: 15px; }
  .team-banner { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 20px; }
  .team-title { font-size: 18vw; }
  .team-aside { align-items: flex-start; text-align: left; }
  .team-aside p { font-size: 13px; }
  .team-aside img { height: 32px; }
  .team-foot { padding: 14px 20px; font-size: 12px; }
}

@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .emblem-wrap {
    width: 35vw;
    height: calc(35vw * 643.51 / 475.11);
    clip-path: url(#emblem-mask);
    -webkit-clip-path: url(#emblem-mask);
  }
  /* Laid out at full-screen size from the start, so nothing reflows while the box grows */
  .emblem-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100dvh;
    opacity: 0;
    transform: translate(-50%, -50%);
  }

  .emblem-lines {
    position: absolute;
    z-index: 2;
    display: block;
    width: 35vw;
    height: calc(35vw * 643.51 / 475.11);
    color: var(--page);
    pointer-events: none;
  }
  .emblem-lines path {
    stroke: #000;
    stroke-width: 1.5; /* ~1.6px at 1440, like their 2 units on a 637 artboard */
    stroke-dasharray: 1;
  }
  /* Front pill: same artboard as the outline, shrinks around the pill's centre */
  .emblem-face {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    transform-origin: 37.371% 57.381%;
    transform: scale(var(--scale, 1));
  }
  .emblem-face path { fill: currentColor; stroke-dashoffset: -1; }
  .emblem-outline { display: block; width: 100%; height: 100%; }
  .emblem-outline path { stroke-dashoffset: 1; }
}

/* ---------- Contact ----------
   Same system as the showcase: 28px page padding, Archivo 68/72 titles,
   Archivo Narrow uppercase labels, dashed rows like the data card. */
.contact {
  position: relative;
  z-index: 3;
  padding: 160px 28px;
  background: var(--page);
  font-family: "Archivo", "Manrope", sans-serif;
  color: #141414;
}
.contact-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: end;
  gap: 28px;
  margin-bottom: 72px;
}
.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: "Archivo Narrow", "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.04px;
  text-transform: uppercase;
}
.contact-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--green); }
.contact-title {
  font-size: 68px;
  font-weight: 400;
  line-height: 72px;
  letter-spacing: -1.36px;
}
.contact-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.contact-line > span { display: block; }
.contact-intro { max-width: 420px; font-size: 16px; font-weight: 500; line-height: 1.5; color: #4a4a4a; }

.contact-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 28px;
  align-items: stretch;
}
.contact-side { display: flex; flex-direction: column; gap: 56px; }
.contact-info { margin: 0; border-top: 1px dashed rgba(0, 0, 0, .2); }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, .2);
}
.contact-row dt,
.contact-field > span,
.footer-label {
  font-family: "Archivo Narrow", "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.04px;
  text-transform: uppercase;
}
.contact-row dt { color: #6b6b6b; }
.contact-row dd { margin: 0; font-size: 19px; font-weight: 500; text-align: right; }
.contact-row a,
.footer-col a { color: inherit; text-decoration: none; transition: color .2s ease; }
.contact-row a:hover { color: var(--green-dark); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
}
.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field.is-wide { grid-column: 1 / -1; }
.contact-field > span { color: #6b6b6b; }
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .25);
  border-radius: 0;
  background: transparent;
  font: 500 17px/1.4 "Archivo", sans-serif;
  color: #141414;
  outline: none;
  resize: vertical;
  transition: border-color .25s ease;
}
.contact-field input:focus,
.contact-field textarea:focus { border-bottom-color: var(--green-dark); }
.contact-submit {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 200px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.contact-submit > * { background: #141414; }
.contact-submit:hover > * { background: var(--green-dark); }

.contact-map {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: #e3e6df;
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05) brightness(1.02);
  transition: filter .6s ease;
}
.contact-map:hover iframe { filter: grayscale(.2); }
.contact-map-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
}
.contact-map-tag > * {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.contact-map-tag b { font-weight: 600; }
.contact-map-tag a { color: #fff; background: #141414; text-decoration: none; transition: background .25s ease; }
.contact-map-tag a:hover { background: var(--green-dark); }
.contact-map-tag svg { width: 15px; height: 15px; transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 88px 28px 28px;
  background: #06120b;
  color: #f1f2ed;
  font-family: "Archivo", "Manrope", sans-serif;
}
.footer-top {
  display: grid;
  grid-template-columns: 4fr repeat(4, 2fr);
  gap: 28px;
  padding-bottom: 72px;
  border-bottom: 1px dashed rgba(241, 242, 237, .18);
}
.footer-brand img { width: auto; height: 56px; }
.footer-brand p { max-width: 260px; margin-top: 20px; font-size: 16px; line-height: 1.45; color: rgba(241, 242, 237, .62); }
.footer-label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: rgba(241, 242, 237, .55); }
.footer-label::before { content: ""; width: 6px; height: 6px; background: var(--green); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col li { font-size: 15px; line-height: 1.4; }
.footer-col a:hover { color: var(--green); }

/* Giant wordmark, chars rise out of a mask (contact.js) */
.footer-word {
  overflow: hidden;
  margin: 40px -.02em 16px;
  font-size: 23.4vw;
  font-weight: 500;
  line-height: .78;
  letter-spacing: -.055em;
  text-align: center;
  color: #f1f2ed;
  white-space: nowrap;
}
.footer-word .char { display: inline-block; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px dashed rgba(241, 242, 237, .18);
  font-family: "Archivo Narrow", "Archivo", sans-serif;
  font-size: 13px;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  color: rgba(241, 242, 237, .55);
}
.footer-top-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.footer-top-link:hover { color: #f1f2ed; }
.footer-top-link svg { width: 14px; height: 14px; transform: rotate(-90deg); }

@media (max-width: 980px) {
  .contact { padding: 96px var(--gutter); }
  .contact-head { grid-template-columns: 1fr; margin-bottom: 48px; }
  .contact-title { font-size: 44px; line-height: 48px; letter-spacing: -.9px; }
  .contact-body { grid-template-columns: 1fr; }
  .contact-map { min-height: 380px; }
  .contact-row dd { font-size: 16px; }
  .contact-form { grid-template-columns: 1fr; }

  .site-footer { padding: 64px var(--gutter) 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 20px; padding-bottom: 48px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
