/* A single DirectMeds signature: the existing arrow, interpreted in glass. */
.company-context {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-block: 30px;
  gap: 36px;
}
.context-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.context-grid > div + div {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.context-grid span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.context-grid strong,
.context-grid a {
  font-size: 15px;
  font-weight: 600;
}
.context-grid a {
  display: flex;
  align-items: center;
  gap: 18px;
}
.context-grid .icon {
  width: 18px;
  height: 18px;
}
.direction-section .section-intro {
  margin-bottom: 48px;
}
.direction-experience {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  background: var(--night);
  color: #fff;
  border-radius: 5px;
  overflow: hidden;
}
.direction-art {
  display: flex;
  flex-direction: column;
  padding: 35px 38px 30px;
  background: #0e1c30;
  min-width: 0;
}
.direction-wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #b5c4d9;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.direction-wordmark span {
  color: #7897f2;
}
.direction-object {
  flex: 1;
  min-height: 340px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}
.direction-mark {
  width: min(100%, 420px);
  height: auto;
  transform: translateX(-10px) rotate(-5deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.direction-experience[data-stage="1"] .direction-mark {
  transform: translateY(-9px) rotate(0deg);
}
.direction-experience[data-stage="2"] .direction-mark {
  transform: translateX(12px) rotate(5deg);
}
.direction-caption {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding-top: 10px;
}
.direction-caption p {
  color: #8fa2be;
  font-size: 19px;
  letter-spacing: -0.035em;
  line-height: 1.45;
}
.direction-caption strong {
  font-weight: 600;
  color: #eef3fc;
}
.direction-detail {
  padding: 35px 45px 38px;
  min-width: 0;
}
.direction-tabs {
  display: none;
  gap: 24px;
  border-bottom: 1px solid #34435b;
  margin-bottom: 39px;
}
.direction-experience[data-ready] .direction-tabs {
  display: flex;
}
.direction-tabs button {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 0 16px;
  margin-bottom: -1px;
  text-align: left;
  font-size: 14px;
  background: none;
  color: #91a4bf;
  border: 0;
  border-bottom: 2px solid transparent;
}
.direction-tabs button span {
  color: #90abf8;
  font-size: 10px;
}
.direction-tabs button[aria-selected="true"] {
  color: #fff;
  border-color: #7597ff;
}
.direction-tabs button:hover {
  color: #fff;
}
.direction-label {
  color: #89a8ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  margin-bottom: 19px;
}
.direction-panel h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.19;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.direction-panel > p:not(.direction-label) {
  color: #b5c4d9;
  font-size: 15px;
  margin-top: 22px;
  max-width: 430px;
  line-height: 1.85;
}
.direction-facts {
  margin: 27px 0 0;
  font-size: 12px;
}
.direction-facts > div {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 20px;
  padding-block: 11px;
  border-top: 1px solid #29394f;
}
.direction-facts dt {
  color: #8fa2be;
}
.direction-facts dd {
  margin: 0;
  color: #e1e8f3;
}
.direction-panel .text-link {
  color: white;
  border-color: #667893;
  font-size: 12px;
  margin-top: 22px;
}
.direction-panel .icon {
  filter: invert(1);
  width: 17px;
  height: 17px;
}
.direction-panel + .direction-panel {
  margin-top: 40px;
}
.direction-experience[data-ready] .direction-panel {
  margin-top: 0;
}
.direction-footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 17px;
  max-width: 730px;
}
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  background: url("images/direction-mark.webp") center / contain no-repeat;
  right: max(0px, calc((100vw - 1350px) / 2));
  top: 3%;
  opacity: 0.3;
  transform: rotate(-8deg);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
}
.hero-secondary .icon,
.button .icon {
  transition: transform 0.25s ease;
}
.hero-secondary:hover .icon,
.button:hover .icon {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: no-preference) {
  .page-home .hero-image {
    animation: hero-settle 1.7s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  }
  .page-home .hero h1 {
    animation: direction-enter 0.8s 0.08s both;
  }
  .page-home .hero-description {
    animation: direction-enter 0.8s 0.18s both;
  }
  .page-home .hero-actions {
    animation: direction-enter 0.8s 0.26s both;
  }
  .direction-object.is-playing .direction-mark {
    animation: signature-arrive 2.8s cubic-bezier(0.16, 0.7, 0.24, 1) both;
  }
  .direction-experience[data-ready] .direction-panel:not([hidden]) {
    animation: direction-enter 0.32s both;
  }
}
@keyframes hero-settle {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1);
  }
}
@keyframes direction-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes signature-arrive {
  0% {
    opacity: 0.1;
    transform: translateX(-55px) translateY(16px) rotate(-14deg) scale(0.86);
  }
  64% {
    opacity: 1;
    transform: translateX(7px) translateY(-8px) rotate(3deg) scale(1.025);
  }
  100% {
    opacity: 1;
  }
}
@media (max-width: 1100px) {
  .direction-art {
    padding: 30px 26px;
  }
  .direction-detail {
    padding: 30px;
  }
  .direction-object {
    min-height: 320px;
  }
  .direction-tabs {
    gap: 15px;
  }
  .direction-caption p {
    font-size: 17px;
  }
  .direction-wordmark {
    font-size: 8px;
    gap: 10px;
  }
  .context-grid {
    gap: 25px;
  }
  .context-grid > div + div {
    padding-left: 25px;
  }
  .context-grid strong,
  .context-grid a {
    font-size: 13px;
  }
}
@media (max-width: 800px) {
  .context-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-block: 23px;
  }
  .context-grid > div:last-child {
    display: none;
  }
  .context-grid > div + div {
    padding-left: 20px;
  }
  .context-grid span {
    font-size: 8px;
  }
  .context-grid strong {
    font-size: 11px;
  }
  .direction-experience {
    grid-template-columns: 1fr;
  }
  .direction-art {
    padding: 25px;
  }
  .direction-wordmark {
    font-size: 9px;
  }
  .direction-object {
    min-height: 0;
    height: 270px;
  }
  .direction-mark {
    width: 280px;
    max-height: 280px;
    object-fit: contain;
  }
  .direction-caption p {
    font-size: 19px;
  }
  .direction-detail {
    padding: 29px 25px 34px;
  }
  .direction-tabs {
    margin-bottom: 30px;
  }
  .direction-tabs button {
    font-size: 12px;
  }
  .direction-panel h3 {
    font-size: 30px;
  }
  .direction-panel > p:not(.direction-label) {
    max-width: none;
  }
  .direction-facts {
    font-size: 11px;
  }
  .direction-facts > div {
    gap: 14px;
    grid-template-columns: 64px 1fr;
  }
  .direction-footnote {
    font-size: 10px;
  }
  .page-hero::after {
    width: 260px;
    height: 260px;
    right: -80px;
    top: 70px;
    opacity: 0.13;
  }
}
@media (max-width: 360px) {
  .direction-art,
  .direction-detail {
    padding-inline: 20px;
  }
  .direction-tabs {
    gap: 12px;
  }
  .direction-tabs button {
    font-size: 10px;
  }
  .direction-panel h3 {
    font-size: 27px;
  }
  .direction-caption p {
    font-size: 17px;
  }
  .direction-wordmark {
    font-size: 8px;
  }
  .direction-facts > div {
    grid-template-columns: 55px 1fr;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .direction-mark,
  .button .icon,
  .hero-secondary .icon {
    transition: none;
  }
}

/* The signature leads the first impression; pharmaceutical imagery supplies atmosphere. */
.hero .hero-image {
  opacity: 0.11;
}
.hero-signature {
  position: absolute;
  width: min(43vw, 620px);
  right: max(16px, calc((100vw - 1410px) / 2));
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-signature .hero-model-poster {
  width: 100%;
  height: auto;
  transform: none;
  filter: drop-shadow(0 24px 36px #00000035);
}
.hero h1 {
  max-width: 64%;
}
.hero-description {
  max-width: min(53%, 650px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-signature .hero-model-poster {
    animation: hero-signature-enter 1.1s cubic-bezier(0.16, 0.7, 0.24, 1) both;
  }
}
@keyframes hero-signature-enter {
  from {
    opacity: 0.1;
    transform: translate(45px, 18px) scale(0.93);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(55px, 6.3vw, 69px);
  }
  .hero-description {
    font-size: 16px;
    max-width: 53%;
  }
  .hero-signature {
    width: 43vw;
    right: 5px;
  }
}
@media (max-width: 800px) {
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero .hero-content {
    padding: 48px 0 12px;
  }
  .hero h1 {
    max-width: 100%;
  }
  .hero-description {
    max-width: 500px;
  }
  .hero-location {
    margin-top: 28px;
  }
  .hero-signature {
    position: relative;
    order: 1;
    top: auto;
    right: auto;
    width: min(78vw, 330px);
    margin: -8px auto 8px;
    transform: none;
  }
  .hero .hero-image {
    opacity: 0.08;
  }
  .hero-image img {
    object-position: 70% center;
  }
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(38px, 11.5vw, 46px);
  }
}
/* Progressive enhancement: the original artwork stays in place if 3D is unavailable. */
.hero-signature {
  pointer-events: auto;
  z-index: 1;
}
.hero .hero-content {
  z-index: 2;
  pointer-events: none;
}
.hero .hero-content a {
  pointer-events: auto;
}
.hero-model-viewport {
  aspect-ratio: 1;
  position: relative;
}
.hero-model-viewport .hero-model-poster {
  position: absolute;
  inset: 0;
  transition: opacity 0.35s ease;
}
.hero-model-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  transition: opacity 0.35s ease;
  outline: none;
  border: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.model-ready .hero-model-poster {
  animation: none;
  opacity: 0;
  pointer-events: none;
}
.model-ready .hero-model-canvas {
  opacity: 1;
}
.model-dragging .hero-model-canvas {
  cursor: grabbing;
}
.hero-model-canvas:focus,
.hero-model-canvas:focus-visible {
  outline: none;
  box-shadow: none;
}
.hero-model-canvas:focus-visible:not([data-pointer-focus]) {
  filter: drop-shadow(0 0 12px #739dff80);
}
.model-keyboard-help {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 800px) {
  .hero-signature {
    margin-bottom: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-model-canvas,
  .hero-model-viewport .hero-model-poster {
    transition: none;
  }
}

@media (max-width: 420px) {
  .hero .hero-content {
    padding-top: 40px;
  }
  .hero-location {
    margin-top: 20px;
  }
  .hero-signature {
    width: 72vw;
  }
}
