/* The page that rises like a sheet over the pipeline: two pages of a made-up biotech company (Nerith Bio), the light
   pipeline list and the deep green page of one product, plus the Get in touch modal. */
:root {
  --paper: #f3f7f7;          /* the pipeline page */
  --paper-light: #fbfdfd;    /* the soft light on the pipeline page, the modal panel */
  --mist: #e6efef;           /* the mist: words on the deep page */
  --ink: #0f2524;            /* the words on the light page */
  --muted: rgba(15, 37, 36, 0.55); /* the small words */
  --line: rgba(0, 84, 83, 0.13);   /* the thin lines on the light page */
  --petrol: #005453;         /* the petrol green of the brand */
  --petrol-deep: #003433;    /* the bottom of the product page */
  --teal: #16aba9;           /* the phase on show */
  --sea: #c6eceb;            /* the phase track on the deep page */
  --accent: #f55d5d;         /* coral: the Get in touch pill and the tick of the phase, nothing else */
  --veil: #011919;           /* the veil over the old page */
  --nav-h: clamp(50px, 10vh, 78px);
  --pad: clamp(16px, 4.4vw, 64px);
  --gap: clamp(8px, 3vh, 40px);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans Variable', 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* ---------------------------------------------------------------- the masked lines that rise */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.line__in {
  display: block;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 clamp(6px, 1.5vh, 16px);
  font-size: clamp(10px, 1.55vh, 12.5px);
  font-weight: 560;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--petrol);
}

.eyebrow--light {
  color: var(--sea);
  opacity: 0.82;
}

/* ---------------------------------------------------------------- the menu */
.nav {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--petrol);
  transition: color 0.45s var(--out);
  pointer-events: none;
}

.nav > * {
  pointer-events: auto;
}

.nav.is-on-dark {
  color: var(--mist);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: clamp(13px, 2.1vh, 16px);
}

.brand__mark {
  width: 1.35em;
  height: 1.35em;
  overflow: visible;
}

.brand__outer {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.brand__inner {
  fill: currentColor;
}

.brand__name {
  font-weight: 620;
  font-stretch: 92%;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: clamp(16px, 2.6vw, 36px);
  font-size: clamp(12px, 1.9vh, 14.5px);
}

.nav__link {
  opacity: 0.55;
}

.nav__link.is-current {
  opacity: 1;
}

.pill {
  position: relative;
  height: clamp(30px, 5.4vh, 40px);
  padding: 0 1.15em;
  font-size: clamp(11.5px, 1.85vh, 14px);
  font-weight: 560;
  color: #fff;
  border-radius: 999px;
}

.pill__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px -8px rgba(245, 93, 93, 0.8), 0 1px 2px rgba(120, 20, 20, 0.18);
  transition: transform 0.55s var(--spring);
}

.pill__label {
  position: relative;
  display: block;
  font-stretch: 92%;
  transition: font-stretch 0.45s var(--out), letter-spacing 0.45s var(--out);
}

.pill.is-hover .pill__bg {
  transform: scale(1.06, 1.1);
}

.pill.is-hover .pill__label {
  font-stretch: 100%;
  letter-spacing: 0.005em;
}

.pill.is-press .pill__bg {
  transform: scale(0.97);
  transition-duration: 0.09s;
}

/* ---------------------------------------------------------------- the pages */
.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + var(--gap)) var(--pad) var(--pad);
}

.page--list {
  z-index: 1;
  background:
    radial-gradient(80% 70% at 18% 0%, var(--paper-light), transparent 70%),
    var(--paper);
}

.veil {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: var(--veil);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* the sheet: soft shadow over its top edge, a one pixel line of light, rounded top corners while it travels */
.sheet {
  --r: 0px;
  --edge: 0;
  border-radius: var(--r) var(--r) 0 0;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.04),
    0 -14px 30px -14px rgba(0, 25, 25, 0.32),
    0 -50px 110px -30px rgba(0, 25, 25, 0.38);
}

.sheet::before {
  content: '';
  position: absolute;
  z-index: 5;
  top: 0;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55) 22%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.55) 78%, transparent);
  opacity: var(--edge);
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* ---------------------------------------------------------------- the pipeline list */
.list__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(12px, 4.4vh, 48px);
}

.title {
  margin: 0;
  font-family: 'Newsreader Variable', 'Newsreader', Georgia, serif;
  font-weight: 370;
  font-size: clamp(23px, min(5vw, 7.2vh), 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--petrol);
}

.list__note {
  margin: 0;
  max-width: 31ch;
  font-size: clamp(12px, 1.9vh, 15.5px);
  line-height: 1.5;
  color: var(--muted);
}

.rows {
  border-top: 1px solid var(--line);
}

.row {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(46px, 11vh, 100px);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.row__bg {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: calc(var(--pad) * -0.32);
  right: calc(var(--pad) * -0.32);
  border-radius: clamp(10px, 1.8vh, 16px);
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(0, 60, 60, 0.07),
    0 12px 32px -16px rgba(0, 60, 60, 0.32);
  opacity: 0;
  transform: scale(0.985, 0.94);
  transition: opacity 0.35s var(--out), transform 0.55s var(--spring), box-shadow 0.3s var(--out), background-color 0.3s var(--out);
}

.row.is-hover .row__bg {
  opacity: 1;
  transform: scale(1);
}

.row.is-press .row__bg {
  background: #fafcfc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 1px rgba(0, 60, 60, 0.08), 0 6px 16px -12px rgba(0, 60, 60, 0.3);
  transform: scale(0.994, 0.98);
  transition-duration: 0.09s;
}

/* the row we just came back from glows once, then fades */
.row.is-back .row__bg {
  opacity: 1;
  transform: scale(1);
  background: #eef6f6;
  box-shadow: inset 0 0 0 1px rgba(22, 171, 169, 0.22);
}

.row__in {
  position: relative;
  display: grid;
  grid-template-columns: 7.6em minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 1rem;
  height: 100%;
  transition: transform 0.5s var(--spring);
}

.row.is-press .row__in {
  transform: translateY(1px);
  transition-duration: 0.08s;
}

.row__code {
  font-size: clamp(10.5px, 1.6vh, 12.5px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.row__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row__name {
  font-family: 'Newsreader Variable', 'Newsreader', Georgia, serif;
  font-size: clamp(17px, min(2.5vw, 4vh), 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  transition: transform 0.55s var(--out), color 0.3s var(--out);
}

.row.is-hover .row__name {
  transform: translateX(3px);
  color: var(--petrol);
}

.row__ind,
.row__area {
  font-size: clamp(11px, 1.75vh, 14px);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row__ind {
  display: none;
}

.row__phase {
  display: flex;
  align-items: center;
  gap: 0.9em;
}

.segs {
  display: flex;
  gap: 3px;
}

.seg {
  width: clamp(10px, 1.5vw, 22px);
  height: 2px;
  border-radius: 1px;
  background: var(--line);
  overflow: hidden;
}

.seg__in {
  display: block;
  height: 100%;
  background: var(--petrol);
  transform-origin: 0 50%;
}

.seg.is-now .seg__in {
  background: var(--teal);
}

.row__stage {
  font-size: clamp(11px, 1.75vh, 14px);
  font-weight: 540;
  color: var(--petrol);
  white-space: nowrap;
}

.row__go {
  display: grid;
  place-items: center;
  width: clamp(28px, 5vh, 38px);
  height: clamp(28px, 5vh, 38px);
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--petrol);
  transition: background-color 0.35s var(--out), border-color 0.35s var(--out), color 0.35s var(--out), transform 0.5s var(--spring);
}

.row__go svg,
.back__ic svg,
.send__ic,
.close svg {
  width: 44%;
  height: 44%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--spring);
}

.row.is-hover .row__go {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
}

.row.is-hover .row__go svg {
  transform: translateX(2px);
}

.row.is-press .row__go {
  transform: scale(0.94);
  transition-duration: 0.09s;
}

/* ---------------------------------------------------------------- the product page */
.page--product {
  z-index: 3;
  overflow: hidden;
  color: var(--mist);
  background:
    radial-gradient(90% 70% at 88% -6%, #0b6c69 0%, transparent 62%),
    linear-gradient(180deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  visibility: hidden;
}

.product__light {
  position: absolute;
  top: -42vmax;
  right: -30vmax;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(99, 158, 165, 0.42), rgba(99, 158, 165, 0.12) 55%, transparent);
  pointer-events: none;
}

.product__mark {
  position: absolute;
  right: var(--pad);
  top: 50%;
  width: min(34vw, 52vh);
  height: min(34vw, 52vh);
  margin-top: calc(min(34vw, 52vh) * -0.56);
  pointer-events: none;
}

.mark {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.mark path {
  vector-effect: non-scaling-stroke;
}

.mark__a {
  stroke: rgba(230, 239, 239, 0.2);
}

.mark__b {
  stroke: rgba(230, 239, 239, 0.12);
}

.mark__c {
  fill: rgba(198, 236, 235, 0.14);
  stroke: rgba(198, 236, 235, 0.5);
}

.mark__d {
  stroke: rgba(230, 239, 239, 0.07);
}

.product__top,
.product__body,
.product__foot {
  position: relative;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-size: clamp(12px, 1.9vh, 14.5px);
  color: var(--mist);
}

.back__ic {
  display: grid;
  place-items: center;
  width: clamp(28px, 5vh, 36px);
  height: clamp(28px, 5vh, 36px);
  border-radius: 50%;
  border: 1px solid rgba(230, 239, 239, 0.24);
  transition: background-color 0.35s var(--out), border-color 0.35s var(--out), transform 0.5s var(--spring);
}

.back.is-hover .back__ic {
  background: rgba(230, 239, 239, 0.12);
  border-color: rgba(230, 239, 239, 0.42);
}

.back.is-hover .back__ic svg {
  transform: translateX(-2px);
}

.back.is-press .back__ic {
  transform: scale(0.93) translateY(1px);
  transition-duration: 0.09s;
}

.product__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.product__name {
  margin: 0;
  font-family: 'Newsreader Variable', 'Newsreader', Georgia, serif;
  font-weight: 340;
  font-size: clamp(40px, min(14vw, 15.5vh), 168px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #f2f7f7;
}

.product__desc {
  margin: clamp(6px, 1.6vh, 18px) 0 0;
  font-family: 'Newsreader Variable', 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 340;
  font-size: clamp(15px, min(4.4vw, 3.9vh), 34px);
  line-height: 1.14;
  color: rgba(230, 239, 239, 0.72);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(230, 239, 239, 0.14);
}

.stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding: clamp(8px, 2vh, 20px) 0.6em 0 0;
}

.stat + .stat {
  padding-left: clamp(8px, 1.6vw, 22px);
  border-left: 1px solid rgba(230, 239, 239, 0.1);
}

.stat__v {
  font-size: clamp(12px, min(3.5vw, 2.5vh), 22px);
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 520;
  letter-spacing: -0.01em;
  color: #f2f7f7;
  white-space: nowrap;
}

.stat__k {
  font-size: clamp(9.5px, 1.5vh, 12px);
  color: rgba(230, 239, 239, 0.52);
  white-space: nowrap;
}

.track {
  margin-top: clamp(12px, 3.2vh, 36px);
}

.track__labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: clamp(6px, 1.2vh, 10px);
  font-size: clamp(9px, 1.45vh, 12px);
  color: rgba(230, 239, 239, 0.42);
}

.track__labels span {
  white-space: nowrap;
  transition: color 0.5s var(--out);
}

.track__labels .is-done {
  color: rgba(230, 239, 239, 0.75);
}

.track__labels .is-now {
  color: #fff;
}

.track__bar {
  position: relative;
  height: 2px;
  border-radius: 1px;
  background: rgba(230, 239, 239, 0.12);
}

.track__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(198, 236, 235, 0.35), var(--sea));
  transform-origin: 0 50%;
}

.track__tick {
  position: absolute;
  right: -1px;
  top: -4px;
  width: 2px;
  height: 10px;
  border-radius: 1px;
  background: var(--accent);
}

/* ---------------------------------------------------------------- the Get in touch modal */
.modal {
  --side: clamp(8px, 2vw, 28px);
  --mgap: clamp(10px, 2.4vh, 28px);
  position: absolute;
  z-index: 6;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.modal__veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
  opacity: 0;
  visibility: hidden;
}

.modal__panel {
  --py: 1;
  --r: clamp(16px, 2.6vh, 28px);
  --edge: 1;
  position: absolute;
  left: var(--side);
  right: var(--side);
  top: clamp(10px, 7vh, 64px);
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--mgap);
  padding: var(--mgap);
  overflow: hidden;
  background: var(--paper-light);
  transform: translateY(calc(var(--py) * 100vh));
  outline: none;
}

.modal__panel::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 70%, transparent);
}

.mcard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(14px, 4vh, 44px);
  border-radius: clamp(12px, 2vh, 20px);
  background: #011919;
  color: #f3f8f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* the soft scene behind the words: the gradient of the site's opening, from deep green to mist */
.scene {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #011919 0%, #024546 34%, #639ea5 70%, #b1cbd4 88%, #e7f0f7 100%);
}

.scene__light {
  position: absolute;
  left: 38%;
  top: 28%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(231, 240, 247, 0.45), rgba(99, 158, 165, 0.2) 55%, transparent);
  mix-blend-mode: soft-light;
}

.scene__light--two {
  left: -20%;
  top: -30%;
  width: 80%;
  background: radial-gradient(closest-side, rgba(1, 25, 25, 0.6), transparent);
  mix-blend-mode: normal;
}

.mcard__eyebrow,
.mcard__title,
.mcard__contact {
  position: relative;
}

.mcard__eyebrow {
  margin-bottom: auto;
}

.mcard__title {
  margin: 0;
  font-family: 'Newsreader Variable', 'Newsreader', Georgia, serif;
  font-weight: 360;
  font-size: clamp(22px, min(3.8vw, 5.8vh), 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 18px rgba(1, 25, 25, 0.25);
}

.mcard__contact {
  margin: clamp(8px, 2vh, 20px) 0 0;
  font-size: clamp(11.5px, 1.8vh, 14.5px);
  color: rgba(1, 25, 25, 0.78);
  font-weight: 540;
}

.mform {
  --ry: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 2.4vh, 26px);
  padding: clamp(4px, 2vh, 28px) clamp(4px, 2.6vw, 40px);
  transform: translateY(calc(var(--ry) * 25vh));
  margin: 0;
}

.mform__title {
  margin: 0 0 clamp(0px, 0.6vh, 8px);
  max-width: 16em;
  font-size: clamp(15px, 2.9vh, 26px);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  padding-bottom: clamp(5px, 1vh, 10px);
}

.field__k {
  font-size: clamp(10px, 1.5vh, 12px);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.field__in {
  border: 0;
  outline: none;
  background: none;
  padding: 0;
  font-size: clamp(13px, 2.1vh, 16px);
  color: var(--ink);
  resize: none;
}

.field__in::placeholder {
  color: rgba(15, 37, 36, 0.3);
}

.field__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.field__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--out);
}

.field:focus-within .field__line::after {
  transform: scaleX(1);
}

.send {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  height: clamp(34px, 6vh, 46px);
  padding: 0 0.9em 0 1.25em;
  border-radius: 999px;
  font-size: clamp(12px, 1.9vh, 14.5px);
  font-weight: 560;
  color: #fff;
  background: var(--petrol);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px -10px rgba(0, 84, 83, 0.8);
  transition: transform 0.5s var(--spring), background-color 0.3s var(--out);
}

.send__ic {
  width: 1.1em;
  height: 1.1em;
}

.send.is-hover {
  background: #006664;
}

.send.is-hover .send__ic {
  transform: translateX(2px);
}

.send.is-press {
  transform: translateY(1px) scale(0.98);
  transition-duration: 0.09s;
}

.close {
  position: absolute;
  z-index: 2;
  top: calc(var(--mgap) + clamp(8px, 1.6vh, 16px));
  right: calc(var(--mgap) + clamp(8px, 1.6vh, 16px));
  display: grid;
  place-items: center;
  width: clamp(30px, 5.4vh, 40px);
  height: clamp(30px, 5.4vh, 40px);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px -8px rgba(0, 60, 60, 0.35);
  transition: transform 0.5s var(--spring);
}

.close.is-hover svg {
  transform: rotate(90deg);
}

.close.is-press {
  transform: scale(0.92);
  transition-duration: 0.09s;
}

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

.modal__panel:focus-visible {
  outline: none;
}

/* ---------------------------------------------------------------- the pointer of the walk on its own */
.cursor {
  position: absolute;
  z-index: 9;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: var(--ink);
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  opacity: 0;
}

/* ---------------------------------------------------------------- smaller windows */
@media (max-width: 900px) {
  .row__in {
    grid-template-columns: 6.4em minmax(0, 1.4fr) minmax(0, 1.2fr) auto;
  }
  .row__area {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav__links,
  .list__note,
  .product__mark {
    display: none;
  }
  .row__in {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.8rem;
  }
  .row__code,
  .segs {
    display: none;
  }
  .row__ind {
    display: block;
    margin-top: 0.15em;
  }
  .modal__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .mcard {
    min-height: clamp(110px, 30vh, 220px);
  }
}

@media (max-height: 620px) {
  .field--msg {
    display: none;
  }
}
