/* Self-hosted Google Fonts (SIL Open Font License 1.1 — see the OFL-*.txt files here). */

/* IBM Plex Mono 400 normal — latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/driftfield-ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 400 normal — latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/driftfield-ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono 500 normal — latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/driftfield-ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 500 normal — latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/driftfield-ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Instrument Serif 400 italic — latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/driftfield-instrument-serif-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Instrument Serif 400 italic — latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/driftfield-instrument-serif-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Instrument Serif 400 normal — latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/driftfield-instrument-serif-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Instrument Serif 400 normal — latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/driftfield-instrument-serif-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.uichemy-driftfield-1 {
  --bg: var(--driftfield-bg, #cfe2f3);
  --fg: var(--driftfield-fg, #0f2138);
  --muted: var(--driftfield-muted, #4a6283);
  --line: rgba(15, 33, 56, 0.14);
  --glass: rgba(255, 255, 255, 0.62);
  --accent: var(--driftfield-accent, #e4572e);
  --gutter: clamp(16px, 2.4vw, 32px);
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.uichemy-driftfield-1 *,
.uichemy-driftfield-1 *::before,
.uichemy-driftfield-1 *::after {
  box-sizing: border-box;
}

.uichemy-driftfield-1,
.uichemy-driftfield-1 {
  margin: 0;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font: 400 12px/1.4 var(--mono);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.uichemy-driftfield-1 #driftfield-stage,
.uichemy-driftfield-1 #driftfield-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.uichemy-driftfield-1.is-pointing #stage canvas {
  cursor: pointer;
}
.uichemy-driftfield-1.is-dragging #stage canvas {
  cursor: grabbing;
}

.uichemy-driftfield-1 /* ---------- shared ---------- */
.label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.uichemy-driftfield-1 .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: 500 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.uichemy-driftfield-1 .btn--ghost {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.uichemy-driftfield-1 .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.uichemy-driftfield-1 .btn--ghost {
  background: rgba(255, 255, 255, 0.35);
  color: var(--fg);
  border-color: var(--line);
}
.uichemy-driftfield-1 .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--fg);
  border-color: var(--fg);
}
.uichemy-driftfield-1 .btn svg {
  width: 14px;
  height: 14px;
}
.uichemy-driftfield-1 button:focus-visible,
.uichemy-driftfield-1 a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.uichemy-driftfield-1 /* ---------- HUD ---------- */
.hud {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: var(--gutter);
  pointer-events: none;
}
.uichemy-driftfield-1 .hud > * {
  pointer-events: auto;
}
.uichemy-driftfield-1 .hud--top {
  top: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.35), transparent);
}
.uichemy-driftfield-1 .hud--bottom {
  bottom: 0;
  align-items: flex-end;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.45));
  padding-bottom: max(var(--gutter), env(safe-area-inset-bottom));
}

.uichemy-driftfield-1 .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
}
.uichemy-driftfield-1 .brand__mark {
  width: 28px;
  height: 28px;
}
.uichemy-driftfield-1 .brand__word {
  font: 400 30px/1 var(--serif);
  letter-spacing: -0.01em;
}

.uichemy-driftfield-1 .tagline {
  margin: 4px 0 0;
  font: 400 18px/1.1 var(--serif);
  color: var(--muted);
  text-align: center;
  pointer-events: none !important;
}
.uichemy-driftfield-1 .tagline em {
  color: var(--fg);
}

.uichemy-driftfield-1 .collection {
  display: flex;
  align-items: center;
  gap: 12px;
}
.uichemy-driftfield-1 .collection__seed {
  font-weight: 500;
  letter-spacing: 0.08em;
}

.uichemy-driftfield-1 .coords {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin: 0;
}
.uichemy-driftfield-1 .coords div {
  display: grid;
  gap: 4px;
}
.uichemy-driftfield-1 .coords dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.uichemy-driftfield-1 .coords dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.uichemy-driftfield-1 .coords .speed {
  width: 72px;
  height: 2px;
  margin-bottom: 7px;
  background: var(--line);
}
.uichemy-driftfield-1 .speed i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
.uichemy-driftfield-1 .hint {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: right;
}

.uichemy-driftfield-1 /* ---------- detail panel ---------- */
.panel {
  position: absolute;
  z-index: 20;
  top: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  width: min(420px, 36vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  overflow-y: auto;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(15, 33, 56, 0.35);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.uichemy-driftfield-1 .panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.uichemy-driftfield-1 .panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.uichemy-driftfield-1 .icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--fg);
  cursor: pointer;
}
.uichemy-driftfield-1 .icon-btn:hover {
  border-color: var(--fg);
}
.uichemy-driftfield-1 .icon-btn svg {
  width: 14px;
  height: 14px;
}
.uichemy-driftfield-1 .panel__art {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #fbfaf6;
  border-radius: 6px;
}
.uichemy-driftfield-1 .panel__art canvas {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.uichemy-driftfield-1 .panel__title {
  margin: 0;
  font: italic 400 34px/1.02 var(--serif);
  letter-spacing: -0.01em;
}
.uichemy-driftfield-1 .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.uichemy-driftfield-1 .meta dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.uichemy-driftfield-1 .meta dd {
  margin: 0;
}
.uichemy-driftfield-1 .swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 9.5px;
  color: var(--muted);
}
.uichemy-driftfield-1 .swatches span {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.uichemy-driftfield-1 .panel__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.uichemy-driftfield-1 /* ---------- small screens ---------- */
@media (max-width: 760px) {
  .tagline {
    display: none;
  }
  .brand__word {
    font-size: 24px;
  }
  .collection .label {
    display: none;
  }
  .coords {
    gap: 14px;
  }
  .coords div:nth-child(4),
  .coords .speed {
    display: none;
  }
  .hud--bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hint {
    text-align: left;
  }
  .panel {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 58vh;
    transform: translateY(24px);
  }
  .panel__art {
    display: none;
  }
}

.uichemy-driftfield-1 /* ---------- photo credits ---------- */
.meta a,
.uichemy-driftfield-1 .credit a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.uichemy-driftfield-1 .meta a:hover,
.uichemy-driftfield-1 .credit a:hover {
  border-color: var(--accent);
}
.uichemy-driftfield-1 #d-tones-label {
  margin: 0 0 -8px;
}
.uichemy-driftfield-1 .hud__right {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.uichemy-driftfield-1 .credit {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .uichemy-driftfield-1 .hud__right {
    justify-items: start;
  }
}

.uichemy-driftfield-1, .uichemy-driftfield-1 * { box-sizing: border-box; }
.uichemy-driftfield-1 { max-width: 100%; overflow: hidden; }
.uichemy-driftfield-1 img, .uichemy-driftfield-1 video, .uichemy-driftfield-1 iframe { max-width: 100%; }
.uichemy-driftfield-1 * { min-width: 0; }
@media (max-width: 1024px) { .uichemy-driftfield-1 { min-height: 540px; } }
@media (max-width: 768px) { .uichemy-driftfield-1 { min-height: 520px; } }
@media (max-width: 480px) { .uichemy-driftfield-1 { min-height: 500px; } }
