:root[data-design="reel"] {
  color-scheme: dark;
  --ink: #ffebc9;
  --surface: #10241b;
  --panel: #1d3629;
  --outline: #ba946065;
  --quiet: #dbc8aa;
  --accent: #ffa888;
  --action-foreground: #35190d;
}
:root[data-design="drawers"] {
  color-scheme: dark;
  --ink: #fff1dd;
  --surface: #440c1c;
  --panel: #641a28;
  --outline: #fba79659;
  --quiet: #f1c8b7;
  --accent: #ffecda;
  --action-foreground: #621628;
}
:is([data-design="reel"], [data-design="drawers"]) .hero {
  width: min(100%, 1920px, max(755px, calc((100svh - 126px) * 1.4055)));
  margin-bottom: clamp(65px, 8.5cqw, 120px);
}
:is([data-design="reel"], [data-design="drawers"]) .site-header { inset-inline: 3.9%; }
:is([data-design="reel"], [data-design="drawers"]) .hero-story { left: 3.75%; }
:is([data-design="reel"], [data-design="drawers"]) .story-text h1 { white-space: nowrap; }
:is([data-design="reel"], [data-design="drawers"]) .browse {
  gap: .6em;
  border-radius: .52em;
  clip-path: polygon(10% 0, 100% 0, 89% 100%, 0 100%);
  padding-inline: clamp(29px, 5cqw, 78px);
  margin-top: clamp(14px, 2.8cqw, 48px);
  text-shadow: 0 1px #fff2d73d;
}
:is([data-design="reel"], [data-design="drawers"]) .browse::after { content: "›"; font-size: 1.45em; line-height: .65; }
[data-design="reel"] .hero-story { top: 23.7%; width: 49%; --hero-type: 6.85cqw; --hero-subtitle: 2.17cqw; }
[data-design="drawers"] .site-header { align-items: flex-start; }
[data-design="drawers"] .brand {
  display: block;
  width: clamp(105px, 12.4cqw, 184px);
  aspect-ratio: 2.15;
  overflow: hidden;
  border: 1px solid #e9ac897d;
  border-radius: clamp(5px, .58cqw, 9px);
  background: #0d1c25;
  box-shadow: 0 .34cqw .65cqw #27030abb;
}
.drawer-brand-mark { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-design="drawers"] .hero-story { top: max(11.45%, 69px); width: 57%; --hero-type: 7.9cqw; --hero-subtitle: 2.18cqw; }
[data-design="drawers"] .browse { margin-top: clamp(14px, 2.4cqw, 43px); }
:is([data-design="reel"], [data-design="drawers"]) .hero-projects {
  inset: 100% 4% auto;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: .7cqw 0 .55cqw;
  border-bottom: 1px solid var(--outline);
}
:is([data-design="reel"], [data-design="drawers"]) .feature-link {
  flex-direction: column;
  gap: 5px;
  padding: 5px 2px;
  border-radius: 7px;
  text-align: center;
}
:is([data-design="reel"], [data-design="drawers"]) .feature-link img { width: clamp(29px, 3.1cqw, 48px); }
:is([data-design="reel"], [data-design="drawers"]) .feature-link[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-color: var(--outline);
}
[data-design="reel"] .project-preview { left: 3.75%; top: 66%; width: min(32%, 365px); }
[data-design="drawers"] .project-preview {
  left: 4%;
  top: calc(100% + clamp(65px, 8.1cqw, 116px));
  width: min(92%, 430px);
}
@media (min-width: 701px) {
  [data-design="drawers"] .hero:has(.project-preview:not([hidden])) {
    margin-bottom: calc(clamp(65px, 8.5cqw, 120px) + 120px);
  }
}

.machine { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.machine-stage { position: absolute; inset: 0; overflow: clip; isolation: isolate; touch-action: pan-y; }
.machine-stage.is-dragging { cursor: grabbing; }
.machine-camera, .machine-track { position: absolute; inset: 0; pointer-events: none; }
.machine-unit { position: absolute; pointer-events: none; }
.machine-unit[inert] { visibility: hidden; }
.machine-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  text-align: left;
  color: inherit;
  pointer-events: auto;
}
.machine-face img {
  flex: 0 0 auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 11%;
  box-shadow: 0 .38cqw .65cqw #07080663;
}
.machine-name { line-height: 1.1; font-weight: 900; }
.machine-controls {
  position: absolute;
  z-index: 2;
  left: 3.8%;
  top: 57.5%;
  display: flex;
  align-items: center;
  gap: clamp(7px, .85cqw, 14px);
  pointer-events: auto;
}
[data-design="drawers"] .machine-controls { top: 42.5%; }
.machine-controls button {
  display: grid;
  place-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 3.3cqw;
  height: 3.3cqw;
  border: 1px solid var(--outline);
  border-radius: 50%;
  padding: 0 0 .09em;
  background: var(--surface);
  font: 500 clamp(1.7rem, 2.85cqw, 2.35rem)/1 system-ui, sans-serif;
}
.machine-controls button:hover { color: var(--action-foreground); background: var(--accent); }
.machine-controls output { min-width: 4.7ch; color: var(--quiet); text-align: center; font: 700 clamp(.77rem, 1.09cqw, 1.03rem)/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }

[data-design="reel"] .machine-stage {
  pointer-events: auto;
  clip-path: polygon(79% 0, 100% 0, 100% 8%, 96% 14%, 94% 21%, 92% 27%, 90.4% 35%, 89.4% 43%, 88.9% 51%, 89% 59%, 89.4% 68%, 90.7% 76%, 92.8% 82%, 95.5% 87.3%, 56.9% 87.3%, 54.4% 83%, 52.3% 78%, 50.6% 72%, 49.6% 67%, 48.8% 60%, 48.4% 53%, 49% 46%, 50.2% 39%, 52.5% 31%, 55.3% 23%, 59.3% 16%, 64.7% 10%, 70.8% 5%);
}
[data-design="reel"] .machine-camera {
  --reel-radius: 19.1cqw;
  perspective: 118cqw;
  perspective-origin: 70.3% 51.4%;
}
[data-design="reel"] .machine-track {
  transform-origin: 70.3% 51.4%;
  transform: rotateX(var(--rotor-angle, 0deg));
  transform-style: preserve-3d;
}
[data-design="reel"] .machine-unit {
  top: 51.4%;
  left: 70.3%;
  width: 45%;
  height: 26%;
  transform: translate(-50%, -50%) rotateX(var(--slot-angle)) translateZ(var(--reel-radius));
  backface-visibility: hidden;
}
[data-design="reel"] .machine-face {
  gap: 2.05cqw;
  padding: 1.5cqw 5.15cqw 1.5cqw 8.1cqw;
  border: .38cqw solid #b46b36;
  border-top-color: #edaf6f;
  border-radius: 1.75cqw;
  background:
    linear-gradient(154deg, #95b5a32e 0%, transparent 38%),
    linear-gradient(112deg, #101d15, #223d2b 60%, #14271d);
  box-shadow: inset 0 0 0 .15cqw #f1d3a883, inset 0 .6cqw 1.1cqw #0b190f, 0 .55cqw 1.05cqw #050803c2;
  transition: background-color .22s, color .22s, box-shadow .25s;
}
[data-design="reel"] .machine-face img { width: 10.7cqw; background: #0d241a; }
[data-design="reel"] .machine-name {
  padding-inline-start: 1.45cqw;
  border-inline-start: 1px solid currentColor;
  font-size: clamp(.86rem, 2.62cqw, 3.1rem);
  overflow-wrap: anywhere;
}
[data-design="reel"] .machine-name-long { font-size: clamp(.75rem, 2.34cqw, 2.85rem); }
[data-design="reel"] .machine-face[aria-pressed="true"] {
  border-color: #f8bc84;
  color: #1c2b1e;
  background:
    linear-gradient(165deg, #fff4d7, #f6d9b5 57%, #c69266);
  box-shadow: inset 0 0 0 .17cqw #fff8e3b5, inset 0 0 3cqw #ea995181, 0 0 1.5cqw #ff9d67bd;
}
[data-design="reel"] .machine-face[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  left: 3.5%;
  top: calc(50% - .8cqw);
  width: 0;
  height: 0;
  border: .8cqw solid transparent;
  border-right: 0;
  border-left-color: #bd492f;
}
[data-design="reel"] .machine-face:hover { filter: brightness(1.13); }

[data-design="drawers"] .machine-unit {
  inset: 0 auto auto 0;
  width: 73%;
  height: 23.5%;
  transform-origin: 0 0;
  opacity: var(--drawer-visibility);
}
.drawer-volume {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
[data-design="drawers"] .machine-face {
  gap: 2.65cqw;
  padding: 1.4cqw 16.2cqw 1.4cqw 10cqw;
  border: .29cqw solid #ee9c7c;
  border-right-color: #a73525;
  border-bottom-color: #69120e;
  border-radius: 1cqw;
  background:
    linear-gradient(132deg, transparent 6%, #ffe4c986 11%, #ffaf964a 13%, transparent 24% 59%, #ffb09e3f 60%, transparent 72%),
    linear-gradient(174deg, #c8271e, #8e1a17 55%, #66130f);
  box-shadow:
    inset 0 .22cqw .46cqw #ffd1b77c,
    inset 0 -.58cqw .76cqw #47100eb5,
    inset 0 0 0 .17cqw #ffebc861,
    0 calc(.8cqw + var(--pull) * .85cqw) calc(.95cqw + var(--pull) * .7cqw) #200306ca;
}
[data-design="drawers"] .machine-face[aria-pressed="true"] {
  background:
    linear-gradient(132deg, transparent 6%, #ffddc1ab 11%, #ffe1ca58 14%, transparent 24% 59%, #ffdbbf50 60%, transparent 72%),
    linear-gradient(174deg, #ed3c26, #c21d16 59%, #78140f);
}
[data-design="drawers"] .machine-face::after {
  content: "";
  position: absolute;
  inset: .38cqw;
  border-radius: .58cqw;
  box-shadow: inset 0 .16cqw .16cqw #ffe3bb4d, inset -.33cqw -.31cqw .48cqw #570c0c6b;
  pointer-events: none;
}
[data-design="drawers"] .machine-face:hover { filter: brightness(1.13); }
[data-design="drawers"] .machine-face img { width: 10.45cqw; background: #6e241b; }
[data-design="drawers"] .machine-name {
  padding-inline-start: 2.4cqw;
  border-inline-start: .17cqw solid #fff0dbd9;
  font-size: clamp(.96rem, 3.55cqw, 3.7rem);
  overflow-wrap: anywhere;
}
.drawer-handle {
  position: absolute;
  right: 8%;
  top: 43%;
  width: 8.3cqw;
  height: 2.1cqw;
  border: .15cqw solid #f1d9c8;
  border-radius: .27cqw;
  background: linear-gradient(#b3a49d 5%, #f9e5d7 16%, #968580 33%, #ccb7a7 59%, #fff1e3 90%, #766058);
  box-shadow: inset .2cqw 0 .25cqw #fff0dc99, inset -.2cqw -.12cqw .24cqw #482423a6, 0 .4cqw .45cqw #351111c7;
  opacity: calc(1 - var(--pull));
}
.machine-action {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  border: 1px solid #fff8e9;
  border-radius: .66cqw;
  padding: .69cqw 1.2cqw;
  background: linear-gradient(#fff2e0, #eac5a7);
  box-shadow: 0 .34cqw .5cqw #460e0bc7;
  color: #661b21;
  font-size: clamp(.7rem, 1.8cqw, 1.68rem);
  font-weight: 900;
  white-space: nowrap;
}
a.machine-action:hover { background: #fff9ec; }

.drawer-theme-links { display: none; }
[data-design="drawers"] .drawer-theme-links {
  display: flex;
  gap: 4px;
  padding-inline-start: 9px;
  border-inline-start: 1px solid #c9d7ee47;
}
.drawer-theme-links a { padding-inline: 8px; white-space: nowrap; }
.drawer-mobile-link { display: none; }
[data-drawer-theme="lacquer"] .drawer-mobile-link { display: block; }
[data-trial-view="mobile"] .trial-bar { display: none; }

[data-drawer-theme="lacquer"] .brand {
  width: clamp(108px, 13.9cqw, 210px);
  aspect-ratio: 2.4;
  border-color: #e7a67e85;
  background: #340608;
}
[data-drawer-theme="lacquer"] [data-drawer-theme-link="lacquer"] { background: #ffe5d0; color: #651825; }

[data-drawer-theme="lacquer"] .story-text h1 {
  color: #ffebd0;
  text-shadow: .025em .045em #c48562, .05em .09em #792c27, .06em .13em .13em #25040add;
}

@supports (background-clip: text) {
  [data-drawer-theme="lacquer"] .story-text h1 {
    background: linear-gradient(176deg, #fffdf5 12%, #fff1d9 42%, #ffdfb6 54%, #fff0da 65%, #edbd92 92%);
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter:
      drop-shadow(.006em .012em 0 #f5c296)
      drop-shadow(.011em .022em 0 #cd8d67)
      drop-shadow(.014em .027em 0 #a05341)
      drop-shadow(.015em .031em 0 #782c28)
      drop-shadow(.025em .039em .039em #25040acc);
  }
}

[data-drawer-theme="lacquer"] .story-text p {
  color: #fff2db;
  text-shadow: 0 -.025em #fffaf1, .035em .065em #bf825e, .065em .119em #772e2a, .09em .19em .17em #25040acd;
}

@font-face {
  font-family: "Huninn";
  src: url("assets/Huninn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root[data-drawer-theme="neon"] {
  --ink: #eefcfd;
  --surface: #06131e;
  --panel: #132b39;
  --outline: #76dcd46b;
  --quiet: #b7dce3;
  --accent: #83f7d0;
  --action-foreground: #092221;
  font-family: "Huninn", "Microsoft JhengHei UI", "Noto Sans TC", system-ui, sans-serif;
}
[data-drawer-theme="neon"] [data-drawer-theme-link="neon"] { background: #9cf6dd; color: #092732; }
[data-drawer-theme="neon"] .brand {
  border-color: #65d5ce8f;
  background: #061621;
  box-shadow: 0 .34cqw .8cqw #000a12b8, 0 0 1cqw #60cfbd24;
}
[data-drawer-theme="neon"] .story-text h1 {
  font-weight: 400;
  letter-spacing: -.056em;
  -webkit-text-stroke: .019em currentColor;
  text-shadow: 0 .052em #6eb9c8, 0 .085em #21495e, 0 .115em .13em #020c15bd;
}
[data-drawer-theme="neon"] .story-text h1 > span:first-child {
  color: #a1f8dc;
  -webkit-text-stroke: .011em currentColor;
  text-shadow: 0 .052em #45baab, 0 .085em #1b6268, 0 .115em .13em #020c15bd;
}
[data-drawer-theme="neon"] .story-text p { color: #c8e8ed; }
[data-drawer-theme="neon"] .browse {
  background: linear-gradient(108deg, #d5faef, #8aebd3 54%, #72d9ec);
  border: 1px solid #b0fdf3;
  border-radius: 2em;
  clip-path: none;
  box-shadow: 0 .35cqw .6cqw #010b14c7, 0 0 1.4cqw #67ede65c;
}
[data-drawer-theme="neon"] .machine-face {
  border-color: #80dfe9;
  border-right-color: #94eea8;
  border-bottom-color: #195943;
  border-radius: 1.42cqw;
  background:
    linear-gradient(180deg, #e1fff92e, transparent 22% 58%, #041e2c52),
    linear-gradient(132deg, transparent 6%, #d0fcff43 12%, #68cfea2b 17%, transparent 27% 60%, #d4ffcf35 61%, transparent 74%),
    linear-gradient(104deg, #22698e, #267d99 27%, #276a75 45%, #32936d 62%, #57bb77 82%, #80e59c);
  box-shadow:
    inset 0 .22cqw .46cqw #a3f4fb72,
    inset 0 -.58cqw .76cqw #031c2aad,
    inset 0 0 0 .17cqw #bbecf53c,
    0 calc(.8cqw + var(--pull) * .85cqw) calc(.95cqw + var(--pull) * .7cqw) #010613dd;
}
[data-drawer-theme="neon"] .machine-face[aria-pressed="true"] {
  border-top-color: #cefff1;
  border-right-color: #c8ffd2;
  background:
    linear-gradient(180deg, #dffff538, transparent 23% 60%, #0326205c),
    linear-gradient(132deg, transparent 8%, #d6fffc73 12%, #a0f4ec44 15%, transparent 26% 58%, #d5ffde52 61%, transparent 74%),
    linear-gradient(103deg, #207bbc, #38a5cf 21%, #287d95 42%, #3aaf86 61%, #65df89 82%, #a2ffb0);
}
[data-drawer-theme="neon"] .machine-face::after {
  border-radius: .9cqw;
  box-shadow: inset 0 .14cqw .23cqw #ddfff15e, inset -.33cqw -.31cqw .48cqw #041d305e;
}
[data-drawer-theme="neon"] .machine-face img { background: #102834; }
[data-drawer-theme="neon"] .machine-name {
  border-inline-start-color: #9bf7e6b5;
  font-weight: 700;
  text-shadow: 0 .12cqw .22cqw #06151e;
}
[data-drawer-theme="neon"] .drawer-handle {
  border-color: #b6ecea;
  background: linear-gradient(#548080 5%, #d2f4f2 16%, #73979f 39%, #91c8cb 60%, #cef7ef 90%, #3b687a);
  box-shadow: inset .2cqw 0 .25cqw #defff799, inset -.2cqw -.12cqw .24cqw #0e3443a6, 0 .4cqw .45cqw #040e17c7;
}
[data-drawer-theme="neon"] .machine-action {
  border-color: #cbfff8;
  border-radius: 2em;
  background: linear-gradient(#cefff2, #78d5ca);
  box-shadow: 0 .34cqw .5cqw #051522c7;
  color: #092a32;
}
[data-drawer-theme="neon"] a.machine-action:hover { background: #dcfff7; }

@media (max-width: 700px) {
  :is([data-design="reel"], [data-design="drawers"]) .hero { width: 100%; margin-bottom: 0; }
  :is([data-design="reel"], [data-design="drawers"]) .site-header { inset: auto; }
  [data-design="drawers"] .site-header { align-items: center; }
  :is([data-design="reel"], [data-design="drawers"]) .hero-story { inset: auto; width: auto; }
  :is([data-design="reel"], [data-design="drawers"]) .story-text h1 { white-space: normal; }
  :is([data-design="reel"], [data-design="drawers"]) .hero-projects {
    inset: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  :is([data-design="reel"], [data-design="drawers"]) .project-preview { inset: auto; width: auto; }
  .machine { grid-area: scene; position: relative; inset: auto; }
  .machine-controls, [data-design="drawers"] .machine-controls { top: 6%; }
  [data-design="reel"] .machine-name { font-size: clamp(.66rem, 2.7cqw, 1.1rem); }
  [data-design="reel"] .machine-name-long { font-size: clamp(.58rem, 2.38cqw, .96rem); }
  [data-design="drawers"] .machine-name { font-size: clamp(.72rem, 3.15cqw, 1.1rem); }
  .machine-action { right: 4%; font-size: clamp(.59rem, 1.95cqw, .8rem); }

  [data-drawer-theme="lacquer"] .site-header { padding: 10px 15px 2px; }
  [data-drawer-theme="lacquer"] .site-nav :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; }
  [data-drawer-theme="lacquer"] .hero-story { padding: 12px 15px 12px; }
  [data-drawer-theme="lacquer"] .story-text h1 { font-size: clamp(1.93rem, 9.6cqw, 4.4rem); }
  [data-drawer-theme="lacquer"] .story-text p { font-size: clamp(.86rem, 3.54cqw, 1.12rem); }
  [data-drawer-theme="lacquer"] .hero .browse { padding-inline: 24px; }
  [data-drawer-theme="lacquer"] .machine-controls { top: 2%; }
  [data-drawer-theme="lacquer"] .machine-action { padding-block: .45em; }
  [data-drawer-theme="lacquer"] .hero-projects {
    gap: 5px;
    margin: 8px 12px 4px;
    padding: 0 0 8px;
  }
  [data-drawer-theme="lacquer"] .feature-link {
    gap: 4px;
    min-height: 62px;
    padding: 5px 2px;
    border-color: #ad675d55;
    background: linear-gradient(180deg, #711c29, #4d0e1b);
    box-shadow: inset 0 1px #ffd3ac23, 0 2px 3px #25040a55;
    touch-action: manipulation;
  }
  [data-drawer-theme="lacquer"] .feature-link[aria-pressed="true"] {
    border-color: #ffbf95;
    background: linear-gradient(180deg, #ffebd4, #eec29d);
    color: #501020;
    box-shadow: inset 0 1px #fff9e8, 0 2px 5px #25040a88;
  }
  [data-drawer-theme="lacquer"] .feature-link img { width: clamp(28px, 8.2cqw, 43px); }
  [data-drawer-theme="lacquer"] .project-preview { margin-top: 6px; }
  [data-drawer-theme="lacquer"] .preview-open { display: inline-grid; place-items: center; min-height: 44px; }
}

@media (max-width: 700px) and (hover: none) {
  [data-drawer-theme="lacquer"] .feature-link:hover:not(:focus-visible) { transform: none; }
  [data-drawer-theme="lacquer"] .machine-face:hover { filter: none; }
}
