@font-face { font-family: "Gutica"; src: url("fonts/Gutica-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gutica"; src: url("fonts/Gutica-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* Every desktop measurement is in mock pixels (1920 x 1080) times --u, so the page keeps the mock's proportions at any size. */
:root {
  --u: min(calc(100vw / 1920), calc(100vh / 1080));
  --u: min(calc(100vw / 1920), calc(100svh / 1080));
  --cu: var(--u);
  --mx: calc(100vw * 200 / 1920);
  --violet: #7575F9;
  --ink: #000;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-sine: cubic-bezier(0.61, 1, 0.88, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: "Gutica", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}
::selection { background: var(--violet); color: #fff; }
img, svg, canvas { display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* Header */
.bar {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  height: calc(157 * var(--u));
  padding: 0 var(--mx);
  background: #fff;
}
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { width: calc(407 * var(--u)); height: auto; }

.nav { margin-left: calc(175 * var(--u)); transform: translateY(calc(8.5 * var(--u))); }
.nav ul { display: flex; align-items: center; gap: calc(92 * var(--u)); }
.nav li { font-size: max(11.5px, calc(12 * var(--u))); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.nav span { cursor: default; display: inline-flex; align-items: center; }
.nav a[aria-current] { color: var(--violet); }
.chev { width: max(9px, calc(9.5 * var(--u))); height: auto; margin-left: max(7px, calc(9 * var(--u))); fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.search { margin-left: auto; flex: none; transform: translateY(calc(4.5 * var(--u))); }
.search input {
  display: block;
  width: calc(296 * var(--u));
  height: calc(50 * var(--u));
  min-height: 30px;
  padding: 0 0 0 calc(26 * var(--u));
  border: 1.3px solid #1b1b1b;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: max(11px, calc(12 * var(--u)));
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: #8d8d8d; opacity: 1; }
.search input:disabled { cursor: default; -webkit-text-fill-color: currentColor; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }

/* Hero */
.hero {
  position: relative;
  flex: 1 0 auto;
  min-height: calc(923 * var(--u));
  overflow: hidden;
  isolation: isolate;
}
.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #fff; }
.scene .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 62%;
  user-select: none;
  -webkit-user-drag: none;
}
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.scene.gl canvas { display: block; }
.scene.gl .layer { visibility: hidden; }
.scene.framed .layer { inset: auto; object-fit: fill; will-change: transform; }

.copy { position: absolute; left: var(--mx); top: calc(207.2 * var(--u)); }
h1 {
  font-weight: 500;
  font-size: calc(71.7 * var(--u));
  line-height: 0.976;
  letter-spacing: 0;
}
h1 span { display: block; }
.sub {
  margin-top: calc(62.6 * var(--u));
  font-size: calc(37.9 * var(--u));
  line-height: 1.2;
}

.card {
  position: absolute;
  top: calc(200 * var(--u));
  right: calc(100vw * 180 / 1920);
  width: calc(422 * var(--cu));
  padding: calc(39.3 * var(--cu)) 0 calc(37.85 * var(--cu)) calc(39 * var(--cu));
  border-radius: calc(40 * var(--cu));
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  backdrop-filter: blur(22px) saturate(1.08);
}
.card li + li { margin-top: calc(49.4 * var(--cu)); }
.card img { height: auto; }
.v-health { width: calc(288.4 * var(--cu)); }
.v-method { width: calc(302.8 * var(--cu)); }
.v-experience { width: calc(337.2 * var(--cu)); }

/* The search pill is decorative for now; drop it before it can crowd the menu. */
@media (max-width: 1180px) { .search { display: none; } }

/* Portrait screens: stack the copy and the card, keep the figure on the cliff in view below them. */
@media (max-aspect-ratio: 1/1), (max-width: 700px) {
  :root {
    --mx: clamp(20px, 6vw, 56px);
    --cu: clamp(0.6px, calc(100vw / 540), 0.95px);
  }
  .bar { height: auto; flex-wrap: wrap; row-gap: 16px; padding: 20px var(--mx) 16px; }
  .brand img { width: clamp(168px, 44vw, 260px); }
  .nav { order: 3; width: 100%; margin: 0; transform: none; }
  .nav ul { justify-content: space-between; gap: 12px; }
  .nav li { font-size: 12px; }
  .chev { width: 9px; margin-left: 6px; }
  .search { display: none; }

  .hero { min-height: 0; padding-bottom: clamp(200px, 36svh, 460px); }
  .copy { position: relative; left: auto; top: auto; padding: clamp(30px, 8vw, 72px) var(--mx) 0; }
  h1 { font-size: clamp(28px, 8.3vw, 66px); line-height: 1.02; }
  .sub { margin-top: clamp(12px, 3.4vw, 28px); font-size: clamp(17px, 4.7vw, 34px); }
  .card { position: relative; top: auto; right: auto; margin: clamp(26px, 7vw, 56px) var(--mx) 0; }
  .scene .layer { object-position: 80% 62%; }
}
@media (min-width: 600px) and (max-aspect-ratio: 1/1) {
  .nav { order: 0; width: auto; margin-left: auto; }
  .nav ul { gap: 28px; }
}

/* Entrance: one element after another. Hidden only when JS runs, so the page still reads without it. */
.js .f { opacity: 0; }
.js.ready .f {
  animation: fade 1300ms var(--ease-out-sine) var(--d, 0ms) both;
}
.js.ready .f.rise {
  animation: fade 1300ms var(--ease-out-sine) var(--d, 0ms) both, rise 1300ms var(--ease-out) var(--d, 0ms) both;
}
.js .scene { opacity: 0; transition: opacity 1800ms var(--ease-out-sine); }
.js .scene.in { opacity: 1; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js.ready .f, .js.ready .f.rise { animation: fade 600ms ease calc(var(--d, 0ms) * 0.3) both; }
  .js .scene { transition-duration: 600ms; }
}
