:root {
  color-scheme: light;
  font-family: "Microsoft JhengHei UI", "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --ink: #0b3228;
  --surface: #fff3e9;
  --panel: #fffaf3;
  --outline: #c38d735e;
  --quiet: #5c6152;
  --accent: #bc3026;
  --action-foreground: #fff7ed;
  scroll-behavior: smooth;
}
:root[data-design="portal"] {
  color-scheme: dark;
  --ink: #fff3e4;
  --surface: #1c1726;
  --panel: #2e2336;
  --outline: #cc8c7685;
  --quiet: #dbc5c4;
  --accent: #ffbc6b;
  --action-foreground: #231522;
}
:root[data-design="glass"] {
  --ink: #091b53;
  --surface: #e8f0fe;
  --panel: #f4f8ff;
  --outline: #2856a94d;
  --quiet: #394e78;
  --accent: #074aca;
  --action-foreground: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; color: var(--ink); background: var(--surface); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.trial-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 8px 18px;
  background: #131b25;
  color: #eef4ff;
  font-size: .9rem;
}
.trial-bar > span { color: #b5c3d5; }
.trial-links { display: flex; gap: 4px; }
.trial-links a {
  padding: 6px 11px;
  border-radius: 6px;
  font-weight: 700;
}
.trial-links a:hover { background: #303e50; }
.trial-links a[aria-current="page"] { background: #e4efff; color: #192b47; }

.hero {
  position: relative;
  width: min(100%, 1920px, max(800px, calc((100svh - 45px) * 1.4055)));
  container-type: inline-size;
  aspect-ratio: 1487 / 1058;
  isolation: isolate;
  margin: 0 auto;
  background: var(--surface);
}
.hero-scene, .hero-scene img, .hero-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-scene { z-index: -1; overflow: hidden; }
.hero-scene img { object-fit: cover; user-select: none; }
.hero-scene canvas { display: block; pointer-events: none; }
.site-header {
  position: absolute;
  inset: 2.5% 5.4% auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font: 850 clamp(1.15rem, 2.35cqw, 2.55rem)/1.05 system-ui, sans-serif; letter-spacing: -.038em; }
.site-nav { display: flex; align-items: center; gap: clamp(13px, 4cqw, 62px); font-size: clamp(.9rem, 1.75cqw, 1.7rem); font-weight: 750; }
.site-nav a, .site-nav button { padding: 8px 1px; white-space: nowrap; }
.site-nav button { border: 0; background: none; }
.site-nav a:hover, .site-nav button:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-story { position: absolute; z-index: 2; }
.story-text h1 {
  font-size: clamp(2.4rem, var(--hero-type, 8.1cqw), 10.8rem);
  font-weight: 950;
  -webkit-text-stroke: .012em currentColor;
  letter-spacing: -.065em;
  line-height: 1.11;
  margin: 0;
}
.hero-period { margin-inline-start: -.20em; }
.story-text p {
  margin: clamp(.48rem, 1.55cqw, 1.5rem) 0 0;
  font-size: clamp(1rem, var(--hero-subtitle, 2.15cqw), 2.4rem);
  font-weight: 660;
  line-height: 1.48;
}
.browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  margin-top: clamp(.9rem, 3.1cqw, 3.2rem);
  padding: clamp(.58rem, 1.25cqw, 1.35rem) clamp(1.4rem, 4.3cqw, 4.8rem);
  border-radius: 100px;
  background: var(--accent);
  color: var(--action-foreground);
  font-size: clamp(1rem, 2.6cqw, 2.6rem);
  font-weight: 820;
  letter-spacing: .045em;
  box-shadow: 0 7px 20px #120e181f;
  transition: transform .24s ease, box-shadow .24s ease;
}
.browse:hover { transform: translateY(-4px); box-shadow: 0 10px 30px #120e183d; }
.browse:active { transform: translateY(1px); }
.hero-projects { position: absolute; z-index: 3; display: grid; }
.feature-link {
  display: flex;
  min-width: 0;
  min-height: 44px;
  border: 1px solid transparent;
  background: transparent;
  align-items: center;
  justify-content: center;
  font-size: clamp(.72rem, 1.38cqw, 1.34rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.feature-link:hover, .feature-link:focus-visible { transform: translateY(-4px); }
.feature-link img {
  flex: 0 0 auto;
  display: block;
  width: clamp(32px, 4.65cqw, 68px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 7px;
}
.feature-link span { overflow-wrap: anywhere; }
.project-preview {
  position: absolute;
  z-index: 5;
  width: min(33%, 410px);
  padding: clamp(8px, 1.15cqw, 16px);
  padding-inline-end: clamp(31px, 3cqw, 37px);
  border-radius: clamp(9px, 1.5cqw, 19px);
  border: 1px solid var(--outline);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 8px 28px #120e183a;
}
#preview-content { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(6px, .9cqw, 13px); }
#preview-content[data-project="fbauction"] { align-items: center; }
#preview-content[data-project="fbauction"] .preview-details { display: contents; }
#preview-content[data-project="fbauction"] .preview-details :is(p, .preview-domain, .preview-open) { grid-column: 1 / -1; }
#preview-content[data-project="fbauction"] .preview-open { justify-self: start; }
.project-preview img { width: clamp(29px, 4cqw, 55px); aspect-ratio: 1; object-fit: contain; border-radius: 5px; }
.preview-details h2 { margin: 0; font-size: clamp(.97rem, 1.55cqw, 1.5rem); }
.preview-details p { margin: 4px 0 6px; font-size: clamp(.76rem, 1.13cqw, 1.03rem); line-height: 1.4; }
.preview-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  line-height: 1;
  font-size: 1.3rem;
}
.preview-close:hover { background: var(--outline); }
.preview-open {
  display: inline-block;
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--accent);
  color: var(--action-foreground);
  font-size: clamp(.74rem, 1.1cqw, .97rem);
  font-weight: 750;
}
.preview-open:hover { text-decoration: underline; }
.preview-domain {
  display: block;
  margin-top: 4px;
  color: var(--quiet);
  font-size: clamp(.68rem, 1cqw, .86rem);
  overflow-wrap: anywhere;
}
.paper-stages, .portal-trigger, .glass-interaction { display: none; }

[data-design="paper"] .hero-story { inset: 17.2% auto auto 5.55%; width: 61%; --hero-type: 8.65cqw; --hero-subtitle: 2.35cqw; }
[data-design="paper"] .brand, [data-design="portal"] .brand {
  color: #fffaf3;
  padding: 8px 14px;
  border-inline: 3px solid #64dfce;
  border-block: 2px solid #6bcbee;
  border-radius: 2px 13px 2px 13px;
  background: #0f3428a8;
}
[data-design="paper"] .story-text::after {
  content: "";
  display: block;
  width: clamp(25px, 4.2cqw, 63px);
  height: 4px;
  border-radius: 4px;
  margin-top: .9cqw;
  background: #ce4535;
}
[data-design="paper"] .browse {
  margin-top: clamp(.6rem, 2.15cqw, 2.2rem);
  box-shadow: inset 0 1px 2px #ffcb8e, 0 6px 0 #8c2721, 0 14px 18px #86422c45;
  background: linear-gradient(155deg, #e9583f, #c1382e 65%, #a62c25);
}
[data-design="paper"] .hero-projects {
  right: 3.2%;
  bottom: 6.0%;
  width: 56.2%;
  grid-template-columns: repeat(8,minmax(0,1fr));
  gap: clamp(2px, .38cqw, 6px);
  padding: clamp(7px, .85cqw, 13px);
  border-radius: clamp(16px, 2.6cqw, 37px);
  border: 1px solid #fff9ef;
  background: #fff0e6f0;
  box-shadow: 0 25px 55px #7a493e39;
}
[data-design="paper"] .feature-link {
  grid-column: span 2;
  flex-direction: column;
  gap: 4px;
  padding: 5px 4px;
  border-radius: clamp(6px, .95cqw, 13px);
}
[data-design="paper"] .feature-link:nth-child(5) { grid-column: 2 / span 2; }
[data-design="paper"] .feature-link:hover { background: #fff9f3; }
[data-design="paper"] .feature-link[aria-pressed="true"] {
  background: #fff8ec;
  border-color: #cb644a;
  transform: translateY(-5px);
  box-shadow: 0 5px 13px #994a2b30;
}
[data-design="paper"] .project-preview { left: 4.4%; bottom: 5.4%; }
[data-design="paper"] .paper-stages { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.phase {
  position: absolute;
  left: var(--phase-x);
  top: var(--phase-y);
  transform: translate(calc(-50% + var(--fold-open, 0) * .9cqw), calc(-50% - var(--fold-lift, 0px)))
    rotate(calc(var(--tilt) - var(--fold-open, 0) * 6deg));
  padding: .13em .3em;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff7e6;
  text-shadow: 0 2px 1px #26190f67, 0 4px 6px #30201060;
  font-size: clamp(1rem, 3.5cqw, 3.7rem);
  font-weight: 950;
  white-space: nowrap;
  pointer-events: auto;
  transition: background .2s ease, scale .2s ease;
}
.phase:hover, .phase[aria-pressed="true"] { background: #44200938; scale: 1.05; }
.phase-learning { --phase-x: 27.5%; --phase-y: 72%; --tilt: -6deg; }
.phase-building { --phase-x: 43%; --phase-y: 57.5%; --tilt: 9deg; }
.phase-refining { --phase-x: 60.9%; --phase-y: 47%; --tilt: 5deg; }
.phase-sharing { --phase-x: 76%; --phase-y: 36.5%; --tilt: -10deg; }
.phase-detail {
  position: absolute;
  left: var(--detail-x, 25%);
  top: var(--detail-y, 64%);
  transform: translate(-50%, -100%);
  width: min(25cqw, 330px);
  padding: 13px 34px 13px 15px;
  background: #fffaf0;
  border: 1px solid #d7a994;
  border-radius: 13px;
  box-shadow: 0 12px 28px #44261444;
  pointer-events: auto;
}
.phase-detail b { font-size: 1.07rem; }
.phase-detail p { margin: 4px 0 0; font-size: .91rem; line-height: 1.45; }
.phase-close { position: absolute; top: 7px; right: 7px; border: 0; background: none; font-size: 1.38rem; line-height: 1; padding: 3px 7px; }

[data-design="portal"] .hero-story { inset: 58.4% auto auto 4.4%; width: 42%; --hero-type: 5.18cqw; --hero-subtitle: 1.8cqw; }
[data-design="portal"] .story-text { text-shadow: 0 3px 15px #120b1a; }
[data-design="portal"] .story-text h1 span { color: #ffc675; }
[data-design="portal"] .brand { background: #15131ca8; }
[data-design="portal"] .browse {
  border-color: #ffe4a2;
  background: linear-gradient(120deg, #ffd290, #ffb150 70%, #f88c55);
  box-shadow: inset 0 0 12px #fff1bc8f, 0 0 23px #ffb45667;
}
[data-design="portal"] .hero-projects {
  right: 3.6%;
  top: 18%;
  width: 24%;
  gap: clamp(4px, .52cqw, 8px);
  transform: perspective(1100px) rotateY(-8deg) skewY(-7deg);
}
[data-design="portal"] .feature-link {
  justify-content: flex-start;
  gap: clamp(6px, .85cqw, 13px);
  padding: clamp(4px, .52cqw, 8px) clamp(6px, .86cqw, 13px);
  border: 1px solid #f4b7aa9e;
  border-radius: clamp(8px, 1.5cqw, 23px);
  background: linear-gradient(155deg, #58434ce8, #2b1e2de3 65%);
  box-shadow: inset 0 0 16px #ef997a19, 0 9px 23px #110b15a0;
  font-size: clamp(.72rem, 1.38cqw, 1.35rem);
  text-align: start;
}
[data-design="portal"] .feature-link img { width: clamp(30px, 4.05cqw, 58px); }
[data-design="portal"] .feature-link:hover { transform: translate(-5px,-4px); background: #4b303b; box-shadow: 0 0 23px #ffb56a54; }
[data-design="portal"] .feature-link[aria-pressed="true"] {
  transform: translateX(-5px);
  background: #54343a;
  border-color: #ffd596;
  box-shadow: 0 0 13px #ffb66664;
}
[data-design="portal"] .project-preview { top: 35%; left: 4.4%; border-color: #f4b7aaab; }
#portal-fallback {
  position: absolute;
  left: 53.5%;
  top: 40.2%;
  transform: translate(-50%, -50%);
  font: 840 clamp(150px, 38cqw, 510px)/.9 system-ui, sans-serif;
  color: #ffe3ad;
  text-shadow: 0 0 45px #ffb65390, 10px 14px 0 #805775;
}
[data-design="portal"] .portal-trigger {
  display: block;
  position: absolute;
  z-index: 1;
  left: 38.5%;
  top: 11.5%;
  width: 30%;
  height: 57%;
  border-radius: 60% 58% 30% 29% / 43% 43% 22% 22%;
  cursor: pointer;
}
[data-design="portal"] .portal-trigger:hover { box-shadow: inset 0 0 32px #ffd59019; }
[data-design="portal"] .portal-trigger:focus-visible { outline-offset: 0; }

[data-design="glass"] .site-header { inset-inline: 4.05%; }
[data-design="glass"] .hero-scene {
  background:
    radial-gradient(ellipse 56% 14% at 50% 64%, #849dd075, transparent 100%),
    linear-gradient(163deg, transparent 58%, #eaf9ff85 67%, transparent 76%),
    linear-gradient(130deg, transparent 37%, #3a91f449 37.1%, #8fc5ff27 40.6%, transparent 40.7% 74%, #3a90fa55 74.1%, #b4d7fc50 79.5%, transparent 79.6%),
    linear-gradient(164deg, #f0f6ff, #d0dff7 64%, #e6effd 77%, #d6e4fa);
}
[data-design="glass"] #scene-image { display: none; }
[data-design="glass"] .brand::before {
  content: "";
  width: .42em;
  height: .82em;
  background: #1379ff;
  transform: skewX(-28deg);
  box-shadow: -.23em 0 0 #24aade;
  margin-inline: .22em .06em;
}
[data-design="glass"] .hero-story { display: contents; --hero-type: 7.35cqw; --hero-subtitle: 2.26cqw; }
[data-design="glass"] .story-text { position: absolute; z-index: 2; top: 9.4%; left: 6%; right: 6%; text-align: center; }
[data-design="glass"] .story-text p { margin-top: clamp(.35rem, .7cqw, .75rem); }
[data-design="glass"] .browse {
  position: absolute;
  z-index: 3;
  top: 71.7%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding-inline: clamp(1.35rem, 4.05cqw, 4.25rem);
  background: linear-gradient(150deg, #0064f9, #032a9e 70%, #078fe6);
  border-color: #7eeaff;
  box-shadow: inset 0 0 9px #72d9ff9e, 0 8px 20px #004fdb38;
}
[data-design="glass"] .browse:hover { transform: translate(-50%, -4px); }
[data-design="glass"] .hero-projects {
  bottom: 4.4%;
  left: 7%;
  width: 86%;
  grid-template-columns: repeat(7,minmax(0,1fr));
  align-items: stretch;
}
[data-design="glass"] .feature-link { justify-content: flex-start; flex-direction: column; gap: 5px; padding: 6px 4px; }
[data-design="glass"] .feature-link + .feature-link { border-inline-start-color: #204a9260; }
[data-design="glass"] .feature-link:hover { background: #eff7ffab; border-radius: 10px; }
[data-design="glass"] .feature-link[aria-pressed="true"] {
  background: #effaffdb;
  border-color: #247bdf;
  border-radius: 9px;
  transform: translateY(-3px);
  box-shadow: 0 3px 14px #0579ff30;
}
[data-design="glass"] .project-preview { bottom: 18.8%; left: 4.4%; }
[data-design="glass"] .glass-interaction {
  --ring-radius: 33.62cqw;
  --ring-drop: 8.76cqw;
  --ring-depth: 18.875cqw;
  --ring-visible-depth: calc(var(--ring-depth) * .966);
  --upper-arc-ratio: .83;
  --upper-arc-depth: calc(var(--ring-drop) * var(--upper-arc-ratio));
  --plinth-drop: 9.83cqw;
  display: block;
  position: absolute;
  z-index: 2;
  inset: 26.6% 9% 30%;
  isolation: isolate;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.glass-interaction.is-dragging, .glass-interaction.is-dragging .glass-frame { cursor: grabbing; }
.glass-plinth, .glass-ring {
  position: absolute;
  left: 50%;
  pointer-events: none;
}
.glass-plinth {
  top: calc(var(--ring-visible-depth) - 1.22cqw);
  width: 92%;
  height: calc(var(--plinth-drop) + 1.6cqw);
  transform: translateX(-50%);
  border-radius: 0 0 50% 50% / 0 0 var(--plinth-drop) var(--plinth-drop);
  mask-image: radial-gradient(ellipse 50% var(--plinth-drop) at 50% 0, transparent 99%, #000 100%);
  background:
    linear-gradient(0deg, #264b7c60, transparent 46%),
    linear-gradient(102deg, #afc9ee, #fcfeff 17%, #a0b6de 56%, #6184bb 88%, #aecced);
  box-shadow: inset 0 -.32cqw .45cqw #35548163;
}
.glass-ring {
  top: 0;
  width: 82%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.glass-ring::before {
  --back-rim-depth: .43cqw;
  --front-rim-depth: calc(var(--upper-arc-depth) + 2px);
  content: "";
  position: absolute;
  inset: calc(50% - var(--back-rim-depth)) 0 auto;
  height: calc(var(--back-rim-depth) + var(--front-rim-depth));
  border-radius: 50% 50% 50% 50% / var(--back-rim-depth) var(--back-rim-depth) var(--front-rim-depth) var(--front-rim-depth);
  background:
    radial-gradient(ellipse at 22% 4%, #cff6ff91, transparent 56%),
    radial-gradient(ellipse at calc(63% + 13% * sin(var(--ring-angle, 0rad))) 90%, #6addf5b3, transparent 59%),
    linear-gradient(165deg, #569ace 0%, #2566a8 33%, #245ca5 54%, #438fca 81%, #83dff7 100%);
  box-shadow: inset 0 1px 0 #d6faffbf, inset 0 .55cqw .92cqw #b1e7ff36, inset 0 -.25cqw .45cqw #79dffa90;
}
.glass-wall {
  position: absolute;
  inset: 50% 0 auto;
  height: calc(var(--ring-drop) + var(--ring-visible-depth));
  border-radius: 2.4cqw 2.4cqw 50% 50% / 1.5cqw 1.5cqw var(--ring-drop) var(--ring-drop);
  overflow: hidden;
  mask-image: radial-gradient(ellipse 50% var(--upper-arc-depth) at 50% 0, transparent 98.5%, #000 100%);
  background:
    linear-gradient(180deg, #cef7ffb0, #5cbeed52 2%, transparent 16%),
    linear-gradient(0deg, #07479bb0 2%, #43cbf663 9%, transparent 24%),
    linear-gradient(90deg, #388cdd, #103b87 15%, #2a69ba 43%, #164993 70%, #102f77 91%, #3485cc);
  box-shadow: inset 0 -.48cqw .65cqw #032859a8;
}
#glass-flutes, .glass-wall-view, .glass-frames {
  position: absolute;
  inset: 0;
}
#glass-flutes { display: block; width: 100%; height: 100%; }
.glass-wall-view {
  transform: rotateX(-15.1deg);
  transform-style: preserve-3d;
}
.glass-frames {
  transform: rotateY(calc(0rad - var(--ring-angle, 0rad)));
  transform-style: preserve-3d;
}
.glass-frame {
  --frame-inset: .5cqw;
  position: absolute;
  left: 50%;
  top: calc(50% + var(--ring-depth) / 2);
  display: grid;
  place-items: center;
  width: 12.8cqw;
  height: 12.25cqw;
  padding: 1.2cqw 1.5cqw;
  border: 1px solid #70c5ed;
  border-top-color: #061d50;
  border-radius: 1.1cqw;
  background: linear-gradient(160deg, #10396e, #061632 51%, #1a4d88);
  box-shadow: inset 0 .48cqw .68cqw #020d2b, inset 0 -.26cqw 0 #548bbda0;
  transform: translate(-50%, -50%) rotateY(var(--frame-angle))
    translateZ(calc(var(--ring-radius) - var(--frame-inset)))
    translateY(var(--frame-lift, 0px)) scale(var(--frame-scale, 1));
  transition: transform .24s ease-out;
  backface-visibility: hidden;
  pointer-events: auto;
}
.glass-frame[inert] { visibility: hidden; }
.glass-frame img {
  display: block;
  width: 9.1cqw;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10%;
}
.glass-caption {
  position: absolute;
  top: calc(var(--ring-visible-depth) + var(--ring-drop) + 1.6cqw);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: .27em .72em;
  border: 1px solid #80d9ff;
  border-radius: 100px;
  background: #102d66;
  color: #f3fbff;
  font-size: clamp(.66rem, 1.29cqw, 1.22rem);
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
}
.glass-frame[aria-current="true"] {
  /* Center the inset between the upper rim and the foot of the outer wall. */
  --frame-lift: calc((var(--upper-arc-depth) - var(--ring-drop) + var(--frame-inset) * .521) / 1.932);
  --frame-scale: 1.5;
  border-color: #b7f2ff;
  border-top-color: #225d8f;
  box-shadow: inset 0 .48cqw .68cqw #020d2b, inset 0 -.34cqw .55cqw #53cffa94;
}
.glass-frame:hover { border-color: #fff; }
.glass-frame:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.glass-arrow {
  position: absolute;
  z-index: 2;
  top: 47%;
  left: 0;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(44px, 4.95cqw, 64px);
  aspect-ratio: 1;
  padding: 0 0 .07em;
  border: 1px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbfdff, #c0dbf9);
  color: #114184;
  font: 500 clamp(1.85rem, 3.55cqw, 3rem)/1 system-ui, sans-serif;
  box-shadow: 0 .45cqw 1.25cqw #2a549d39;
}
#glass-next { left: 100%; }
.glass-arrow:hover { background: #fff; }

.catalog {
  width: min(100%, 1350px);
  margin: 0 auto;
  padding: clamp(25px, 5vw, 76px);
  scroll-margin-top: 52px;
}
.catalog:focus { outline: none; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 14px; }
.catalog h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.6rem); line-height: 1.2; letter-spacing: -.04em; }
.search { display: grid; gap: 4px; width: min(100%, 340px); font-weight: 700; font-size: .9rem; }
.search input { min-height: 46px; width: 100%; padding: 8px 12px; color: var(--ink); background: var(--panel); border: 1px solid var(--outline); border-radius: 9px; }
.search input::placeholder { color: var(--quiet); }
.catalog-toolbar { margin: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button {
  border: 1px solid var(--outline);
  border-radius: 30px;
  min-height: 40px;
  padding: 6px 13px;
  font-size: .9rem;
  font-weight: 680;
  background: var(--panel);
}
.filters button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--action-foreground); }
#results-count { font-size: .9rem; color: var(--quiet); }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.project-card {
  display: grid;
  grid-template-columns: 53px minmax(0,1fr);
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 6px 12px;
  padding: 15px;
  border: 1px solid var(--outline);
  border-radius: 13px;
  background: var(--panel);
}
a.project-card:hover { border-color: var(--accent); }
.project-card img { width: 53px; height: 53px; object-fit: contain; border-radius: 5px; grid-row: 1 / -1; }
.project-card h3 { margin: 0; font-size: 1.09rem; line-height: 1.25; }
.project-card p { margin: 0; font-size: .9rem; color: var(--quiet); line-height: 1.5; }
.preview-details p, .project-card p { white-space: pre-line; }
.project-card[data-project="fbauction"] { container-type: inline-size; }
.project-card[data-project="fbauction"] img { grid-row: auto; }
.project-card[data-project="fbauction"] p { grid-column: 1 / -1; font-size: clamp(.78rem, 5.8cqi, .9rem); }
.project-card[data-project="fbauction"] .domain { grid-column: 1 / -1; }
.project-card .domain { font-size: .8rem; font-weight: 700; color: var(--quiet); overflow-wrap: anywhere; }
.project-card .category { color: var(--quiet); font-size: .76rem; }
.empty { grid-column: 1 / -1; padding-block: 21px; }
.empty button { background: var(--panel); padding: 7px 10px; border: 1px solid var(--outline); border-radius: 6px; }
.back-home { display: inline-block; margin-top: 20px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
dialog {
  width: min(91vw, 465px);
  border: 1px solid var(--outline);
  border-radius: 17px;
  background: var(--panel);
  color: var(--ink);
  padding: 22px;
  line-height: 1.6;
}
dialog::backdrop { background: #060910a8; }
dialog h2 { margin: 0; }
.contact-note { color: var(--quiet); }
.dialog-close { float: right; background: none; border: 1px solid var(--outline); border-radius: 50%; width: 40px; height: 40px; font-size: 1.45rem; }

@media (max-width: 950px) {
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .trial-bar { gap: 5px 10px; justify-content: space-between; padding: 6px 8px; font-size: .77rem; }
  .trial-links a { padding: 6px; }
  .hero { width: 100%; aspect-ratio: auto; display: grid; grid-template-areas: "header" "story" "scene" "features" "preview"; }
  .site-header, [data-design="glass"] .site-header {
    grid-area: header;
    position: relative;
    inset: auto;
    padding: 15px;
  }
  .site-nav { gap: 15px; font-size: .9rem; }
  .brand { font-size: 1.2rem; }
  [data-design="paper"] .brand, [data-design="portal"] .brand { padding: 6px 8px; border-width: 1px 2px; }
  .hero .hero-story { grid-area: story; display: block; position: relative; inset: auto; width: auto; padding: 17px 15px 22px; }
  .story-text h1 { font-size: clamp(2.4rem, 8.8vw, 4.4rem); letter-spacing: -.07em; }
  .story-text p { font-size: clamp(.97rem,3vw,1.12rem); }
  .hero .story-text { position: relative; inset: auto; text-align: left; }
  .hero .browse { position: relative; inset: auto; transform: none; margin-top: 14px; padding: 8px 20px; font-size: 1rem; }
  .hero .browse:hover { transform: translateY(-2px); }
  .hero-scene { position: relative; grid-area: scene; aspect-ratio: 1487 / 1058; z-index: 0; }
  .hero .hero-projects {
    position: relative;
    grid-area: features;
    inset: auto;
    width: auto;
    margin: 10px 12px;
    padding: 8px;
    grid-template-columns: repeat(4,minmax(0,1fr));
    transform: none;
    gap: 4px;
  }
  .hero .feature-link { flex-direction: column; gap: 4px; padding: 5px 2px; text-align: center; font-size: .75rem; }
  .hero .feature-link img { width: clamp(33px, 10vw, 54px); }
  [data-design="paper"] .hero .feature-link:nth-child(n) { grid-column: auto; }
  .hero .project-preview { grid-area: preview; position: relative; inset: auto; width: auto; margin: 0 12px 10px; }
  [data-design="paper"] .story-text::after { margin-top: 6px; }
  [data-design="paper"] .paper-stages { grid-area: scene; position: relative; }
  .phase { padding: 4px 5px; font-size: clamp(.8rem, 3.65vw, 1.4rem); }
  .phase-detail { width: min(61vw, 280px); z-index: 4; left: 50%; }
  [data-design="portal"] .portal-trigger { grid-area: scene; position: relative; }
  [data-design="glass"] .hero-scene { aspect-ratio: 1.95; }
  [data-design="glass"] .glass-interaction {
    --ring-radius: 32.39cqw;
    --ring-drop: 8.44cqw;
    --plinth-drop: 9.47cqw;
    grid-area: scene;
    inset: 7% 10.5% 14%;
  }
  .glass-arrow { top: 58%; }
}
@media (max-width: 590px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .project-card { grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; padding: 12px; }
  .project-card img { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
