:root {
  color-scheme: dark;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  background: #0b0908;
  color: #f4eadd;
  --copper: #edb47f;
  --muted: #c2b4a6;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #ffd4ac;
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cockpit {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
}
.scene-picture, .scene-picture img {
  display: block;
  width: 100%;
  height: 100%;
}
.scene-picture { position: absolute; inset: 0; z-index: -1; }
.site-nav button {
  border: 0;
  background: transparent;
  color: inherit;
}
.dashboard {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dashboard > ping-hologram {
  --ping-anchor-x: 50.4%;
  --ping-anchor-y: 55.36%;
  --ping-width: 10.6%;
}
.cockpit[data-startup="screen"] ping-hologram { visibility: hidden; }
.cockpit[data-startup="projection"] ping-hologram {
  animation: pengu-project .62s cubic-bezier(.22, .7, .23, 1) both;
}
@keyframes pengu-project {
  0% { clip-path: inset(96% 0 0); opacity: .22; }
  24% { clip-path: inset(78% 0 0); opacity: .62; }
  100% { clip-path: inset(0); opacity: 1; }
}
.touchscreen {
  position: absolute;
  left: 39.41%;
  top: 56.92%;
  width: 24.19%;
  height: 14.64%;
  pointer-events: auto;
  clip-path: polygon(1.6% 0, 98.4% 0, 100% 100%, 0 100%);
  background: #080706;
  font-size: clamp(11px, .8vw, 16px);
}
.screen-interface {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  background: radial-gradient(ellipse at 88% 0, #21160f, #100d0b 72%);
  color: #f4eadd;
}
.screen-boot {
  --boot-duration: 1.48s;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #efc39007 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at center, #1f140e, #080605 77%);
}
.cockpit[data-startup="screen"] .screen-boot {
  display: grid;
  animation: screen-boot var(--boot-duration) ease-in-out both;
}
.screen-boot::before {
  position: absolute;
  top: 50%;
  width: 72%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #f6b580 31%, #ffebd5 50%, #f6b580 69%, transparent);
  box-shadow: 0 0 12px #ffae6d9c;
  animation: boot-signal var(--boot-duration) ease-out both;
}
.screen-boot p {
  position: relative;
  margin: 0;
  padding-left: .26em;
  color: #f7e1cb;
  font-size: clamp(1rem, 1.65vw, 1.7rem);
  font-weight: 450;
  letter-spacing: .26em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 14px #ffae6d66;
  white-space: nowrap;
  animation: boot-wordmark var(--boot-duration) ease-out both;
}
.screen-boot strong { font-weight: 750; }
@keyframes screen-boot {
  0%, 81% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes boot-signal {
  0%, 8% { transform: scaleX(.035); opacity: 0; }
  16% { transform: scaleX(.38); opacity: .95; }
  30% { transform: scaleX(1); opacity: .66; }
  46%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes boot-wordmark {
  0%, 25% { clip-path: inset(49% 0 49% 0); opacity: 0; transform: scale(.96); }
  48%, 100% { clip-path: inset(0); opacity: 1; transform: scale(1); }
}
.screen-interface :focus-visible { outline-offset: -2px; }
.screen-bar {
  display: flex;
  justify-content: space-between;
  gap: .3em;
  padding: 0 .55em;
  border-bottom: 1px solid #5f412e;
  background: #eb9f6010;
}
.screen-tabs, .screen-controls { display: flex; align-items: stretch; }
.screen-controls { align-items: center; gap: .65em; }
.screen-tabs button, .screen-zoom {
  border: 0;
  padding: .31em .58em;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.screen-tabs button { border-bottom: 1px solid transparent; }
.screen-tabs button[aria-selected="true"] {
  border-bottom-color: var(--copper);
  background: #e4a16a18;
  color: #ffddb9;
}
.screen-tabs button:hover, .screen-zoom:hover { color: #fff1e5; }
.demo-label {
  align-self: center;
  color: #d6bfa9;
  font-size: .78em;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.demo-label::before {
  display: inline-block;
  width: .43em;
  height: .43em;
  margin: 0 .48em .13em 0;
  border-radius: 50%;
  background: #f6af70;
  box-shadow: 0 0 .6em #f6af7099;
  content: "";
}
.screen-zoom {
  display: grid;
  place-items: center;
  width: 2.15em;
  min-height: 1.9em;
  padding: .25em;
}
.zoom-icon {
  width: .9em;
  height: .9em;
  border: 1px solid currentColor;
  clip-path: polygon(0 0, 34% 0, 34% 34%, 66% 34%, 66% 0, 100% 0, 100% 34%, 66% 34%, 66% 66%, 100% 66%, 100% 100%, 66% 100%, 66% 66%, 34% 66%, 34% 100%, 0 100%, 0 66%, 34% 66%, 34% 34%, 0 34%);
}
.screen-zoom[aria-pressed="true"] .zoom-icon {
  clip-path: none;
  transform: scale(.78);
}
.screen-panel { min-width: 0; min-height: 0; }
.questions { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.chat-history, .information {
  position: relative;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #755237 transparent;
  padding: .35em .75em;
}
.welcome .message {
  margin-bottom: .38em;
  padding-block: .12em;
  color: #ffe5cb;
  line-height: 1.25;
  animation: greeting-arrive .22s ease-out both;
}
@keyframes greeting-arrive {
  from { opacity: 0; transform: translateY(.25em); }
  to { opacity: 1; transform: translateY(0); }
}
.prompts {
  display: flex;
  flex-wrap: wrap;
  gap: .3em;
}
.prompts button {
  padding: .12em .51em;
  border: 1px solid #644830;
  border-radius: 999px;
  background: #251b14;
  color: #f9dabe;
  font-size: .88em;
  white-space: nowrap;
}
.prompts button:hover { background: #422a1b; }
.messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35em;
}
.messages:not(:empty) { padding-top: .45em; }
.message {
  width: fit-content;
  max-width: 94%;
  margin: 0;
  padding: .25em .52em;
  border-radius: .45em;
  background: #262019;
  color: #f4eadd;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.visitor { align-self: flex-end; background: #432b1e; color: #ffe2c9; }
.composer {
  display: flex;
  gap: .35em;
  padding: .28em .7em .4em;
  border-top: 1px solid #5f412e;
  background: #120f0d;
}
.composer input {
  flex: 1;
  min-width: 0;
  padding: .21em .48em;
  border: 1px solid #684c37;
  border-radius: .4em;
  background: #191411;
  color: #f4eadd;
}
.composer input::placeholder { color: #ceb8a1; }
.composer button, .contact-form button {
  border: 1px solid #efba88;
  background: var(--copper);
  color: #211309;
  font-weight: 650;
}
.composer button, .contact-form button { border-radius: .4em; padding: .21em .58em; }
.composer button:hover, .contact-form button:hover { background: #ffd1a6; }
.contact-email { margin: 0 0 .55em; color: var(--muted); }
.contact-email a { color: var(--copper); overflow-wrap: anywhere; }
.contact-greeting { margin-bottom: .65em; }
.contact-form { display: grid; gap: .55em; }
.contact-form label { color: #ffdec1; }
.contact-form small { color: var(--muted); }
.contact-form :is(input, textarea) {
  display: block;
  width: 100%;
  margin-top: .2em;
  padding: .33em .48em;
  border: 1px solid #684c37;
  border-radius: .4em;
  background: #191411;
  color: #f4eadd;
}
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-status { margin: 0; line-height: 1.4; color: #ffdec1; }
.contact-status:empty { display: none; }
.screen-disclosures details + details { border-top: 1px solid #3d2c22; }
.screen-disclosures summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) .75em;
  align-items: center;
  gap: .6em;
  padding: .5em .35em;
  list-style: none;
  color: #ffdec1;
  font-weight: 600;
  cursor: pointer;
}
.screen-disclosures summary::-webkit-details-marker { display: none; }
.screen-disclosures summary::after {
  width: .42em;
  height: .42em;
  justify-self: center;
  border: solid var(--copper);
  border-width: 0 1px 1px 0;
  transform: translateY(-.1em) rotate(45deg);
  content: "";
}
.screen-disclosures details[open] > summary::after { transform: translateY(.1em) rotate(225deg); }
.screen-disclosures summary:hover, .screen-disclosures details[open] > summary { background: #e4a16a18; }
.screen-disclosures :is(summary, a):focus-visible { outline: 2px solid #ffd4ac; }
.screen-disclosures p, .prep-checklist {
  margin: 0;
  padding: .35em .75em .65em .35em;
  color: var(--muted);
  line-height: 1.4;
}
.prep-checklist { padding-left: 1.6em; }
.prep-checklist li + li { margin-top: .45em; }
.prep-checklist strong { color: #ffdec1; font-weight: 600; }
.prep-checklist a, .prep-checklist li::marker { color: var(--copper); }
.text-action {
  padding: .45em 0;
  border: 0;
  background: transparent;
  color: var(--copper);
  text-align: left;
}
.text-action:hover { text-decoration: underline; }

@media (min-width: 1081px) {
  .instrument-labels { position: absolute; inset: 0; }
  .instrument-labels::before {
    position: absolute;
    inset: 0;
    content: "";
    background: url("gauge-faces.webp") center / 100% 100% no-repeat;
    /* Keep the original rings, needles and shadows. Reveal the repair over the old labels only. */
    mask-image:
      radial-gradient(ellipse .39% .61% at 23.983% 59.511%, #000 68%, transparent 100%),
      radial-gradient(ellipse .39% .61% at 25.060% 57.705%, #000 68%, transparent 100%),
      radial-gradient(ellipse .39% .61% at 26.376% 57.173%, #000 68%, transparent 100%),
      radial-gradient(ellipse .39% .61% at 27.751% 57.705%, #000 68%, transparent 100%),
      radial-gradient(ellipse .39% .61% at 28.589% 59.511%, #000 68%, transparent 100%),
      radial-gradient(ellipse .39% .61% at 28.828% 61.849%, #000 68%, transparent 100%),
      radial-gradient(ellipse .39% .61% at 28.469% 63.974%, #000 68%, transparent 100%);
  }
  .instrument-labels span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    color: #9a6843;
    font: 600 .32vw/1 "Arial Narrow", Arial, sans-serif;
    white-space: nowrap;
  }
  .instrument-labels span:not(.dial-unit)::before {
    position: absolute;
    z-index: -1;
    inset: -.42em -.55em;
    background: radial-gradient(ellipse, #100b07 35%, #100b078c 60%, transparent 74%);
    content: "";
  }
  .instrument-labels .dial-unit {
    color: #8e5f3d;
    font-size: .24vw;
  }
  .speedometer {
    --start: -130deg;
    --sweep: 260deg;
    --major-step: calc(var(--sweep) / 6);
    --minor-step: calc(var(--major-step) / 5);
    --sweep-mask: conic-gradient(from var(--start),
      #000 0deg var(--sweep), transparent var(--sweep));
    position: absolute;
    left: 18.092%;
    top: 57.545%;
    width: 5.622%;
    aspect-ratio: 1;
    /* Follow the steering wheel rim and the edge of the adjacent dial. */
    clip-path: polygon(0 0, 89% 0, 86% 18%, 85% 28%, 71% 30%, 60% 31%,
      50% 33%, 42% 37%, 33% 41%, 25% 46%, 17% 53%, 8% 60%, 0 63%);
  }
  .speedometer-face, .speedometer::before, .speedometer::after {
    position: absolute;
    inset: 0;
  }
  .speedometer-face {
    /* Align the 94 px dial area to the corresponding pixels in the cockpit image. */
    background: url("speedometer-face.webp") 19.170% 63.931% / 1778.72% auto no-repeat;
    mask-image: radial-gradient(circle closest-side,
      transparent 54%, #000 65% 93%, transparent 97%);
  }
  .speedometer::before, .speedometer::after {
    z-index: 1;
    content: "";
    mask-composite: intersect;
    filter: blur(.012vw);
  }
  .speedometer::before {
    background: repeating-conic-gradient(from calc(var(--start) - .35deg),
      #65462d 0deg .7deg, transparent .7deg var(--minor-step));
    mask-image: radial-gradient(circle closest-side,
      transparent 88.4%, #000 89.5% 93%, transparent 94%), var(--sweep-mask);
  }
  .speedometer::after {
    background: repeating-conic-gradient(from calc(var(--start) - .6deg),
      #825839 0deg 1.2deg, transparent 1.2deg var(--major-step));
    mask-image: radial-gradient(circle closest-side,
      transparent 85%, #000 86.5% 93.4%, transparent 94.4%), var(--sweep-mask);
  }
  .speedometer span {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    color: #886344;
    font: 400 .26vw/1 "Arial Narrow", Arial, sans-serif;
    filter: blur(.012vw);
    white-space: nowrap;
  }
  .speed-number {
    --angle: calc(var(--start) + var(--step) * var(--major-step));
    left: calc(50% + 37% * sin(var(--angle)));
    top: calc(50% - 37% * cos(var(--angle)));
  }
  .speedometer .speed-unit {
    left: 50%;
    top: 25%;
    color: #795537;
    font-size: .19vw;
  }
  .scene-picture::before {
    position: absolute;
    left: 21.65%;
    top: 69.4%;
    width: 3.7%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: url("steering-badge.png") center 58% / 154% auto no-repeat;
    filter: brightness(.82) saturate(.82);
    box-shadow: 0 1px 3px #0009;
    content: "";
  }
  .scene-picture::after {
    position: absolute;
    inset: 0;
    content: "";
    background: url("windshield.webp") center / 100% 100% no-repeat;
    /* Blend the retouched windshield into the original cockpit photo. */
    mask-image: linear-gradient(to right, transparent 21%, #000 27%, #000 74%, transparent 80%),
      linear-gradient(to bottom, transparent 10.7%, #000 13.5%, #000 42.6%, transparent 46%);
    mask-composite: intersect;
  }
  .wordmark-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .wordmark-tuning {
    position: absolute;
    top: 3.43%;
    left: 25.35%;
    color: #e0d6c8;
    font: 400 1.3vw/1 "Instrument Sans", "Segoe UI", sans-serif;
    letter-spacing: .29em;
    text-transform: uppercase;
  }
  .site-nav button {
    position: absolute;
    font-size: 0;
    border-radius: 6px;
  }
  .site-nav button:hover {
    box-shadow: inset 0 0 0 1px #ffc6938f, 0 0 12px #ffc69330;
  }
  .site-nav button { top: 2.45%; height: 4.5%; }
  .site-nav button:nth-child(1) { left: 70.5%; width: 5.2%; }
  .site-nav button:nth-child(2) { left: 77.5%; width: 7.7%; }
  .site-nav button:nth-child(3) { left: 86.9%; width: 9.7%; }
  .intro {
    position: absolute;
    top: 12.4%;
    left: 50%;
    width: 54%;
    transform: translateX(-50%);
    text-align: center;
    text-shadow: 0 1px 8px #09121f55;
    pointer-events: none;
  }
  .intro h1 {
    margin: 0;
    color: #bdc6c9;
    font: 400 3.63vw/1.04 "Instrument Serif", Georgia, serif;
    letter-spacing: -.035em;
  }
  .intro h1 span { display: block; }
  .intro p {
    margin: .7em 0 0;
    color: #afbcc3;
    font-size: 1.33vw;
    letter-spacing: .005em;
  }

  .scene-picture, .dashboard {
    transform-origin: 51.5% 64.24%;
    transition: transform .45s cubic-bezier(.22, .7, .24, 1);
  }
  .cockpit[data-zoomed] :is(.scene-picture, .dashboard) {
    transform: translate(-1.5%, -18.5%) scale(2.15);
  }
  .cockpit[data-zoomed] :is(.site-header, .intro) { visibility: hidden; }
  .cockpit[data-zoomed] .touchscreen { font-size: clamp(9px, .62vw, 13px); }
}

@media (max-width: 1080px) {
  .cockpit { aspect-ratio: auto; min-height: 100svh; }
  .scene-picture { display: none; }
  .site-header { padding: 19px 16px 9px; text-align: center; }
  .wordmark {
    text-transform: uppercase;
    letter-spacing: .32em;
    font-size: 13px;
    color: #f7e1cb;
  }
  .wordmark strong { font-weight: 750; }
  .site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px 9px; margin-top: 7px; }
  .site-nav button { min-height: 40px; padding: 4px 7px; font-size: 13px; }
  .site-nav button:hover { color: var(--copper); }
  .intro {
    padding: 17px 18px 9px;
    text-align: center;
    background: radial-gradient(ellipse at bottom, #292b2d 0%, #0b0908 74%);
  }
  .intro h1 {
    max-width: 11em;
    margin: 0 auto;
    color: #c6ccd0;
    font: 400 clamp(32px, 7.8vw, 55px)/1.02 "Instrument Serif", Georgia, serif;
    letter-spacing: -.04em;
    text-wrap: balance;
  }
  .intro p { margin: 12px auto; color: #b7c0c5; font-size: 14px; }

  .dashboard {
    --dashboard-hood-height: clamp(116px, 36cqw, 160px);
    position: relative;
    inset: auto;
    max-width: 630px;
    margin: 0 auto;
    container-type: inline-size;
    background: linear-gradient(90deg, #1b1511, #100d0b 13%, #100d0b 87%, #211912);
  }
  .dashboard > ping-hologram {
    --ping-anchor-x: 48%;
    --ping-anchor-y: var(--dashboard-hood-height);
    --ping-width: clamp(144px, 50cqw, 216px);
  }
  /* Join the photo above and below the bezel around a taller touch display. */
  .dashboard::before, .dashboard::after {
    display: block;
    content: "";
    background-repeat: no-repeat;
    background-size: 100% 100%, 310% auto;
  }
  .dashboard::before {
    height: var(--dashboard-hood-height);
    /* The expanded photo crop includes the desktop buttons painted into the image. */
    --button-mask-end: max(0px, calc(var(--dashboard-hood-height) - 23cqw));
    background-image:
      linear-gradient(#0b0908 var(--button-mask-end), transparent calc(var(--button-mask-end) + 25px)),
      url("cockpit.png");
    background-position: center, 52% calc(var(--dashboard-hood-height) - 96.9cqw);
  }
  .dashboard::after {
    height: 25cqw;
    background-image: linear-gradient(transparent 40%, #0b0908), url("cockpit.png");
    background-position: center, 52% -128.8cqw;
  }
  .touchscreen {
    position: relative;
    inset: auto;
    width: 86%;
    height: clamp(238px, 65cqw, 330px);
    margin-left: 8%;
    padding: 5px;
    clip-path: none;
    border: 1px solid #79614f;
    border-top-color: #9a8a7f;
    border-bottom-color: #aa7e59;
    border-radius: 12px;
    background: #080706;
    box-shadow: 0 3px 6px #000, inset 0 0 0 1px #282420;
    font-size: 14px;
  }
  .screen-interface { overflow: hidden; border-radius: 7px; }
  .screen-bar { padding-inline: .32em .48em; }
  .screen-tabs button { min-height: 37px; padding-inline: .46em; font-size: .88em; }
  .screen-zoom { display: none; }
  .chat-history, .information { padding: .55em .6em; }
  .screen-disclosures summary { min-height: 33px; }
  .prompts button { min-height: 30px; }
  .message { padding: .4em .58em; }
  .composer { padding: .35em .4em; }
  .composer input { min-height: 37px; font-size: 16px; }
  .contact-form :is(input, textarea) { font-size: 16px; }
}
@media (max-width: 1260px) {
  .screen-bar { padding-inline: .35em; }
  .screen-controls { gap: .25em; }
  .screen-tabs button { padding-inline: .35em; }
}
@media (prefers-reduced-motion: reduce) {
  .cockpit[data-startup="screen"] .screen-boot { display: none; }
  .cockpit[data-startup="projection"] ping-hologram, .welcome .message { animation: none; }
  .scene-picture, .dashboard { transition: none; }
}
