:root {
  --rymotio-white: #FFFFFF;
  --rymotio-ink: #0E0E10;
  --rymotio-slate: #515669;
  --rymotio-silver: #E7E6EC;
  --rymotio-red: #DD2632;
  --rymotio-red-dark: #B81822;
  --rymotio-black: #252123;
  --line-light: #EEF0F2;
}

@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hind';
  src: url('assets/fonts/hind-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hind';
  src: url('assets/fonts/hind-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  background: var(--rymotio-white);
}

body {
  background: var(--rymotio-white);
  color: var(--rymotio-ink);
  font-family: 'Hind', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--rymotio-white);
  background: var(--rymotio-red);
}

main {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  place-items: center;
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(100%, 1440px);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--rymotio-white);
  animation: rymotio-enter 700ms cubic-bezier(.16, 1, .3, 1) both;
}

.top-accent {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  height: 8px;
  background: var(--rymotio-red);
}

.technical-header,
.header-divider,
.technical-hero,
.metrics-divider {
  width: calc(100% - clamp(32px, 10.56vw, 152px));
  max-width: 1288px;
  margin-inline: auto;
}

.technical-header {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 55px;
  margin-top: 43px;
}

.brand {
  flex: 0 0 60px;
  width: 60px;
  height: 55px;
}

.badge {
  display: block;
  width: 60px;
  height: 55px;
  object-fit: cover;
}

.wordmark {
  box-sizing: border-box;
  flex: 0 0 240px;
  width: min(100%, clamp(180px, 52vw, 360px));
  max-width: 100%;
  height: 48px;
  min-height: 0;
  margin: 3px 0 0;
  aspect-ratio: 1024 / 180;
  overflow: hidden;
}

.wordmark img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transform: translateY(-41.21%);
}

.header-divider,
.metrics-divider {
  flex: 0 0 auto;
  height: 1px;
  background: var(--rymotio-ink);
}

.header-divider {
  margin-top: 20px;
}

.technical-hero {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  gap: clamp(28px, 5.28vw, 76px);
  min-height: 0;
  max-height: 596px;
  margin-top: 44px;
}

.message {
  container-type: inline-size;
  display: flex;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(24px, 18.8vh, 169px) 0 0;
}

.status {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500;
  font-size: clamp(12px, 2.6vw, 16px);
  letter-spacing: .3em;
  text-transform: uppercase;
}

.message .status {
  display: grid;
  gap: 0;
  width: max-content;
  max-width: 100%;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(46px, 3.9vw, 56px);
  font-size: 24.29cqw;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.message .status span {
  display: block;
}

.message .status span:last-child {
  width: max-content;
  padding: .03em .16em .08em .12em;
  color: var(--rymotio-white);
  background: var(--rymotio-red);
}

.product-diagram {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--rymotio-white);
}

.diagram-axis,
.diagram-grid {
  position: absolute;
  pointer-events: none;
}

.diagram-axis {
  z-index: 0;
  top: 50px;
  bottom: 50px;
  left: 54.8%;
  width: 1px;
  background: var(--rymotio-ink);
}

.diagram-grid {
  z-index: 0;
  background: var(--line-light);
}

.diagram-grid-horizontal {
  left: 7.2%;
  width: 87%;
  height: 1px;
  top: 21.8%;
}

.diagram-grid-two { top: 40.3%; }
.diagram-grid-three { top: 58.7%; }
.diagram-grid-four { top: 77.2%; }

.diagram-grid-vertical {
  top: 8.7%;
  bottom: 8.7%;
  left: 17.4%;
  width: 1px;
}

.diagram-grid-v-two { left: 33.4%; }
.diagram-grid-v-three { left: 76.2%; }
.diagram-grid-v-four { left: 92.2%; }

.hero {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 17.9%;
  display: grid;
  width: 64.2%;
  height: 94%;
  place-items: center;
  background: url('assets/product/bottle-front.webp') center / contain no-repeat;
}

.hero img {
  display: block;
  width: auto;
  height: clamp(200px, 52vh, 420px);
  max-width: 100%;
  object-fit: contain;
}

.product-diagram .hero img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  opacity: 0;
}

.diagram-callout {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 14px;
  pointer-events: none;
}

.diagram-callout::before,
.diagram-callout::after {
  content: '';
  display: block;
  height: 1px;
}

.diagram-callout::before {
  flex: 1;
  background: var(--rymotio-red);
}

.diagram-callout::after {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--rymotio-white);
  border-radius: 50%;
  background: var(--rymotio-red);
  box-shadow: 0 0 0 1px var(--rymotio-red);
}

.diagram-callout-one,
.diagram-callout-three {
  left: 8.5%;
  width: 47%;
}

.diagram-callout-one { top: 15.5%; }
.diagram-callout-three { top: 78%; }

.diagram-callout-two {
  left: 54.8%;
  width: 35%;
  flex-direction: row-reverse;
}

.diagram-callout-two { top: 47.8%; }

.diagram-callout-four {
  left: 54.8%;
  width: 37.4%;
  top: 15.5%;
}

.diagram-callout-four::after {
  display: none;
}

.metrics-divider {
  margin-top: 30px;
}

@media (max-width: 900px) {
  .technical-header,
  .header-divider,
  .technical-hero,
  .metrics-divider {
    width: calc(100% - 48px);
  }

  .technical-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    margin-top: clamp(16px, 3.5vh, 32px);
  }

  .message {
    flex: 0 0 auto;
    min-height: 0;
    padding: clamp(16px, 3vh, 28px) 0 clamp(14px, 2.5vh, 24px);
  }

  .message .status {
    font-size: min(24.29cqw, 88px, 12vh);
  }

  .product-diagram {
    flex: 1 1 auto;
    min-height: 0;
  }

  .hero {
    left: 17.9%;
    width: 64.2%;
  }

  .metrics-divider {
    margin-top: clamp(16px, 3vh, 30px);
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  .technical-header {
    gap: 10px;
    height: 48px;
    margin-top: 24px;
  }

  .brand {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .badge {
    width: 48px;
    height: 48px;
  }

  .wordmark {
    flex-basis: 190px;
    width: min(100%, 190px);
    height: 36px;
    margin-top: 6px;
  }

  .header-divider {
    margin-top: 16px;
  }

  .technical-hero,
  .header-divider,
  .metrics-divider {
    width: calc(100% - 32px);
  }

  .technical-hero {
    margin-top: clamp(12px, 3vh, 24px);
  }

  .message {
    padding: clamp(12px, 2.5vh, 20px) 0 clamp(10px, 2vh, 16px);
  }

  .diagram-axis {
    top: 28px;
    bottom: 28px;
  }

  .diagram-grid-vertical {
    top: 6%;
    bottom: 6%;
  }

  .hero {
    left: 14%;
    width: 73%;
    height: 94%;
  }

  .diagram-callout-one,
  .diagram-callout-three {
    left: 6%;
    width: 51%;
  }

  .diagram-callout-two {
    left: 54.8%;
    width: 38%;
  }

  .metrics-divider {
    margin-top: clamp(12px, 2.5vh, 22px);
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell {
    animation: none;
  }
}

@keyframes rymotio-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
