/* =========================================================================
   NOCTURNE — shared visual system
   A quiet, nocturnal interface: near-black planes, warm champagne accents,
   hairline rules and one large editorial voice.
   ========================================================================= */
:root {
  --bg: #060607;
  --bg-deep: #050506;
  --bg-panel: #070708;
  --bg-raised: #0e0f11;
  --text: #f2f0eb;
  --text-soft: #d4d1ca;
  --muted: #94918b;
  --muted-2: #65635f;
  --line: rgba(255, 255, 255, 0.105);
  --line-soft: rgba(255, 255, 255, 0.062);
  --accent: #c7a77a;
  --accent-rgb: 199, 167, 122;
  --nav-h: 78px;
  --panel-pad: clamp(30px, 3.7vw, 56px);
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 300px;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  animation: pageIn 0.8s var(--ease) both;
}

::selection {
  background: rgba(var(--accent-rgb), 0.28);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(22px, 3.5vw, 56px);
  background: rgba(6, 6, 7, 0.7);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.27em;
  line-height: 1;
}

.brand-mark {
  display: block;
  width: 15px;
  height: 17px;
  border: 1px solid rgba(var(--accent-rgb), 0.82);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.6vw, 40px);
}

.nav-link {
  position: relative;
  padding: 9px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  transition: color 0.32s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translate(-50%, 4px) scale(0.6);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 17px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 999px;
  color: #d9c29d;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0908;
}

/* -------------------------------------------------------------------------
   Split composition
   ------------------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: minmax(420px, 39%) minmax(0, 1fr);
  height: 100dvh;
  padding-top: var(--nav-h);
}

.panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 34%),
    var(--bg-panel);
  border-right: 1px solid var(--line-soft);
}

.panel-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 580px;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: clamp(30px, 4.5vh, 48px) var(--panel-pad) 26px;
}

.panel-inner::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.chapter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.chapter-current {
  color: var(--accent);
}

.chapter-rule {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--line);
}

.title-block {
  margin-top: clamp(24px, 4.2vh, 42px);
}

h1 {
  max-width: 8.4em;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.6rem, 4.55vw, 4.45rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.062em;
}

h1 span {
  display: block;
}

.lead {
  max-width: 37ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.78;
  letter-spacing: 0.015em;
}

/* Project facts */
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(22px, 3.8vh, 34px) 0 0;
  padding: 15px 0 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec {
  min-width: 0;
}

.spec dt {
  margin: 0 0 8px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

/* Spaces */
.spaces {
  margin-top: clamp(22px, 3.3vh, 30px);
}

.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}

.section-label h2 {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label span {
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.3;
  letter-spacing: 0.15em;
}

.space-list {
  border-top: 1px solid var(--line);
}

.space-accordion .space-item {
  border-bottom: 1px solid var(--line-soft);
}

.space-accordion .space-row {
  border-bottom: 0;
  min-height: 47px;
}

.space-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.35s var(--ease);
}

.space-item.is-open .space-detail {
  max-height: 128px;
  opacity: 1;
}

.space-item.is-open .space-row {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.055), transparent 78%);
}

.space-item.is-open .space-arrow {
  color: var(--accent);
  transform: rotate(90deg);
}

.space-detail-inner {
  padding: 0 30px 15px 37px;
}

.space-detail p {
  margin: 0 0 8px;
  color: #817d76;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.015em;
}

.space-detail-meta {
  display: block;
  color: rgba(var(--accent-rgb), 0.78);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 7.5px;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.space-row {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto 15px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 10px 7px 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.38s var(--ease), padding-left 0.38s var(--ease);
}

.space-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0;
  transition: height 0.38s var(--ease), opacity 0.3s var(--ease);
}

.space-row:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 78%);
  padding-left: 7px;
}

.space-row:hover::before,
.space-row.is-active::before {
  height: 18px;
  opacity: 1;
}

.space-row.is-active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.072), transparent 75%);
  padding-left: 7px;
}

.space-index {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.08em;
  align-self: start;
  padding-top: 4px;
  transition: color 0.3s var(--ease);
}

.space-row:hover .space-index,
.space-row.is-active .space-index {
  color: var(--accent);
}

.space-copy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  transition: transform 0.38s var(--ease);
}

.space-row:hover .space-copy {
  transform: translateX(2px);
}

.space-name {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  transition: color 0.3s var(--ease);
}

.space-row:hover .space-name,
.space-row.is-active .space-name {
  color: var(--text);
}

.space-en {
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.space-meta {
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.space-arrow {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  transform: translateX(-2px);
  transition: color 0.3s var(--ease), transform 0.38s var(--ease);
}

.space-row:hover .space-arrow,
.space-row.is-active .space-arrow {
  color: var(--accent);
  transform: translateX(0);
}

.note {
  max-width: 45ch;
  margin: 18px 0 0;
  color: #7d7a74;
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: 0.015em;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-footer .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.live-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.55);
}

/* -------------------------------------------------------------------------
   Overview exploration dock
   ------------------------------------------------------------------------- */
.panel--overview {
  display: flex;
  flex-direction: column;
}

.panel--overview .panel-inner {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.24) transparent;
}

.panel--overview .panel-inner::-webkit-scrollbar {
  display: block;
  width: 3px;
}

.panel--overview .panel-inner::-webkit-scrollbar-track {
  background: transparent;
}

.panel--overview .panel-inner::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(var(--accent-rgb), 0.24);
}

.panel--overview .note,
.panel--overview .panel-footer {
  display: none;
}

.explore-dock {
  flex: 0 0 auto;
  padding: 12px var(--panel-pad) 13px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.98), rgba(7, 7, 8, 0.98));
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.22);
}

.explore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.explore-head .section-label {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.explore-head h2 {
  color: var(--text-soft);
  font-size: 10px;
}

.explore-mode {
  color: rgba(var(--accent-rgb), 0.78);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.layer-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.layer-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: color 0.28s var(--ease);
  user-select: none;
}

.layer-toggle:hover {
  color: var(--text-soft);
}

.layer-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle-box {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.toggle-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 2.5px;
  height: 5px;
  border-right: 1px solid #0a0908;
  border-bottom: 1px solid #0a0908;
  opacity: 0;
  transform: rotate(42deg) scale(0.7);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.layer-toggle input:checked + .toggle-box {
  background: var(--accent);
  border-color: var(--accent);
}

.layer-toggle input:checked + .toggle-box::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}

.layer-toggle input:checked ~ .toggle-label {
  color: var(--text-soft);
}

.layer-toggle input:focus-visible + .toggle-box {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.light-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.light-label {
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.preset-buttons {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.preset-button {
  min-width: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.preset-button:hover {
  color: var(--text-soft);
}

.preset-button.is-active {
  background: rgba(255, 255, 255, 0.095);
  color: var(--text);
}

/* -------------------------------------------------------------------------
   Architecture study dock
   ------------------------------------------------------------------------- */
.panel--architecture {
  display: flex;
  flex-direction: column;
}

.panel--architecture .panel-inner {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.panel--architecture .note,
.panel--architecture .panel-footer {
  display: none;
}

.panel--architecture.is-study .title-block .lead,
.panel--architecture.is-study .specs {
  display: none;
}

.arch-dock {
  flex: 0 0 auto;
  padding: 12px var(--panel-pad) 14px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 14, 17, 0.98), rgba(7, 7, 8, 0.98));
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.22);
}

.arch-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.arch-dock .section-label {
  flex: 0 1 auto;
  margin-bottom: 0;
  gap: 10px;
}

.arch-dock .section-label h2 {
  color: var(--text-soft);
  font-size: 10px;
}

#arch-mode {
  color: rgba(var(--accent-rgb), 0.78);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.arch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blueprint-toggle {
  font-size: 9.5px;
}

.arch-reset {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.arch-reset:hover {
  color: var(--accent);
}

.section-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s var(--ease), opacity 0.35s var(--ease);
}

.arch-dock.is-expanded .section-body {
  max-height: 210px;
  margin-top: 10px;
  opacity: 1;
}

.section-drawing {
  padding: 7px 8px 5px;
  border: 1px solid rgba(111, 209, 255, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(90, 189, 236, 0.035), transparent 72%),
    rgba(4, 18, 27, 0.82);
}

.section-drawing svg {
  display: block;
  width: 100%;
  height: auto;
}

.bp-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.bp-line {
  stroke: #a9dfef;
  stroke-width: 0.9;
  opacity: 0.84;
}

.bp-glass {
  stroke: #6fd4ff;
  stroke-width: 0.7;
  opacity: 0.72;
}

.bp-dim {
  stroke: rgba(var(--accent-rgb), 0.76);
  stroke-width: 0.6;
}

.bp-label {
  fill: #d8bd93;
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 8.5px;
  letter-spacing: 0.09em;
  opacity: 0;
}

.bp-note {
  fill: #8d9497;
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
  opacity: 0;
}

.section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 7px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   Three-dimensional stage
   ------------------------------------------------------------------------- */
.viewer {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: var(--nav-h);
  background:
    radial-gradient(ellipse 70% 62% at 53% 43%, #1d2126 0%, #0e1012 44%, #060607 80%),
    #060607;
}

.stage-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.stage-sky--night {
  opacity: 1;
  background:
    radial-gradient(ellipse 70% 62% at 53% 43%, #1d2126 0%, #0e1012 44%, #060607 80%),
    #060607;
}

.stage-sky--dusk {
  background:
    radial-gradient(ellipse 80% 52% at 50% 64%, rgba(202, 112, 69, 0.28), transparent 70%),
    linear-gradient(180deg, #0a1322 0%, #232b46 38%, #5c3f44 65%, #120c0d 100%);
}

.stage-sky--day {
  background:
    radial-gradient(circle at 24% 17%, rgba(255, 248, 226, 0.88) 0%, rgba(255, 248, 226, 0) 33%),
    radial-gradient(ellipse 74% 58% at 50% 38%, #e9e7dc 0%, #ccd6d8 34%, #9aa9b0 70%, #60717b 100%);
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-color: #04131d;
  background-image:
    linear-gradient(rgba(96, 205, 250, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 205, 250, 0.085) 1px, transparent 1px),
    linear-gradient(rgba(96, 205, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 205, 250, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse 65% 55% at 50% 43%, rgba(31, 105, 139, 0.25), transparent 72%);
  background-size: 34px 34px, 34px 34px, 170px 170px, 170px 170px, 100% 100%;
  transition: opacity 0.55s var(--ease);
}

.viewer.is-blueprint .blueprint-grid {
  opacity: 1;
}

.blueprint-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: #03131d;
}

.viewer.is-blueprint .viewer-status,
.viewer.is-blueprint .viewer-caption,
.viewer.is-blueprint .viewer-hint {
  color: rgba(137, 226, 255, 0.68);
}

.viewer.is-blueprint .viewer-caption::before {
  background: rgba(111, 212, 255, 0.7);
}

.viewer.is-blueprint .viewer-status .live-dot {
  background: #75e0ff;
  box-shadow: 0 0 10px rgba(111, 212, 255, 0.65);
}

.viewer.is-blueprint::after {
  background:
    linear-gradient(90deg, rgba(2, 16, 25, 0.35), transparent 15%, transparent 85%, rgba(2, 16, 25, 0.35)),
    linear-gradient(0deg, rgba(2, 16, 25, 0.45), transparent 18%, transparent 88%, rgba(2, 16, 25, 0.22));
}

.viewer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%),
    radial-gradient(ellipse 48% 36% at 58% 66%, rgba(var(--accent-rgb), 0.065), transparent 76%);
}

.viewer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 6, 7, 0.18), transparent 14%, transparent 86%, rgba(6, 6, 7, 0.16)),
    linear-gradient(0deg, rgba(6, 6, 7, 0.34), transparent 17%, transparent 88%, rgba(6, 6, 7, 0.14));
  opacity: 0.85;
}

.viewer[data-preset="day"]::before {
  opacity: 0.38;
}

.viewer[data-preset="day"]::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.08)),
    linear-gradient(0deg, rgba(54, 62, 65, 0.18), transparent 17%, transparent 88%, rgba(54, 62, 65, 0.08));
  opacity: 0.55;
}

.viewer[data-preset="day"] .viewer-status {
  color: rgba(12, 18, 20, 0.78);
  font-weight: 500;
}

.viewer[data-preset="day"] .viewer-caption {
  color: rgba(12, 18, 20, 0.82);
}

.viewer[data-preset="day"] .viewer-hint {
  color: rgba(12, 18, 20, 0.5);
}

.viewer[data-preset="day"] .viewer-caption::before {
  background: rgba(91, 66, 35, 0.84);
}

.viewer[data-preset="day"] .viewer-status .live-dot {
  background: #7d5d35;
  box-shadow: 0 0 8px rgba(105, 78, 43, 0.4);
}

.viewer[data-preset="dusk"] .viewer-status,
.viewer[data-preset="dusk"] .viewer-caption,
.viewer[data-preset="dusk"] .viewer-hint {
  color: rgba(255, 242, 226, 0.62);
}

#scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  transition: opacity 1.4s var(--ease);
}

#scene:active {
  cursor: grabbing;
}

.viewer.is-ready #scene {
  opacity: 1;
}

.viewer-ui {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.viewer-status {
  top: 24px;
  left: clamp(22px, 3vw, 38px);
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(242, 240, 235, 0.38);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.7s var(--ease);
}

.viewer-status .live-dot {
  width: 3px;
  height: 3px;
}

.viewer-caption {
  left: clamp(22px, 3vw, 38px);
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(242, 240, 235, 0.68);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.7s var(--ease);
}

.viewer-caption::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.72);
}

#current-view {
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

#current-view.is-switching {
  opacity: 0;
  transform: translateY(3px);
}

.viewer-hint {
  right: clamp(22px, 3vw, 38px);
  bottom: 27px;
  color: rgba(242, 240, 235, 0.3);
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: right;
  transition: color 0.7s var(--ease);
}

.viewer-hint span {
  margin: 0 6px;
  color: rgba(var(--accent-rgb), 0.55);
}

.viewer-fallback {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  padding: 40px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

/* -------------------------------------------------------------------------
   CSS2D room labels
   ------------------------------------------------------------------------- */
.room-label-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.room-label {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  text-align: left;
}

.room-label-inner {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 10px 7px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.46);
  background:
    linear-gradient(120deg, rgba(20, 21, 21, 0.86), rgba(9, 10, 10, 0.72));
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(11px) saturate(0.82);
  -webkit-backdrop-filter: blur(11px) saturate(0.82);
  transform-origin: 50% 50%;
  white-space: nowrap;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.room-label:hover .room-label-inner,
.room-label:focus-visible .room-label-inner {
  border-color: rgba(var(--accent-rgb), 0.82);
  background:
    linear-gradient(120deg, rgba(30, 29, 26, 0.92), rgba(10, 11, 11, 0.82));
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.room-label:focus-visible {
  outline: none;
}

.room-label.is-selected .room-label-inner {
  border-color: rgba(var(--accent-rgb), 0.9);
  background:
    linear-gradient(120deg, rgba(42, 35, 25, 0.92), rgba(12, 12, 11, 0.82));
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(var(--accent-rgb), 0.16);
}

.room-label-mark {
  color: var(--accent);
  font-size: 8px;
  line-height: 1;
  opacity: 0.9;
}

.room-label-zh {
  color: rgba(245, 242, 236, 0.92);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.room-label-sep {
  color: rgba(var(--accent-rgb), 0.55);
  font-size: 8px;
  line-height: 1;
}

.room-label-en {
  color: rgba(242, 240, 235, 0.48);
  font-size: 7px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .room-label-inner {
    gap: 4px;
    padding: 5px 7px;
  }

  .room-label-zh {
    font-size: 8.5px;
  }

  .room-label-en,
  .room-label-sep {
    display: none;
  }

  .room-label-mark {
    font-size: 7px;
  }
}

/* -------------------------------------------------------------------------
   Spatial hotspots
   ------------------------------------------------------------------------- */
.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  will-change: transform, opacity;
}

.hotspot:focus {
  outline: none;
}

.hotspot-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 1px rgba(8, 8, 9, 0.55),
    0 0 0 6px rgba(var(--accent-rgb), 0.13),
    0 0 20px rgba(var(--accent-rgb), 0.3);
  transform: translate(-50%, -50%);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.hotspot-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.hotspot:hover .hotspot-dot,
.hotspot:focus-visible .hotspot-dot,
.hotspot.is-open .hotspot-dot {
  background: #f1dfc2;
  box-shadow:
    0 0 0 1px rgba(8, 8, 9, 0.6),
    0 0 0 8px rgba(var(--accent-rgb), 0.14),
    0 0 26px rgba(var(--accent-rgb), 0.4);
  transform: translate(-50%, -50%) scale(1.08);
}

.hotspot:hover .hotspot-dot::after,
.hotspot:focus-visible .hotspot-dot::after,
.hotspot.is-open .hotspot-dot::after {
  width: 23px;
  height: 23px;
  border-color: rgba(var(--accent-rgb), 0.5);
}

.hotspot.is-active .hotspot-dot {
  background: #f9d8a3;
  box-shadow:
    0 0 0 1px rgba(8, 8, 9, 0.6),
    0 0 0 7px rgba(249, 216, 163, 0.16),
    0 0 28px rgba(249, 216, 163, 0.5);
}

.hotspot.is-active .hotspot-dot::after {
  width: 25px;
  height: 25px;
  border-color: rgba(249, 216, 163, 0.6);
}

.hotspot-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  min-width: 154px;
  max-width: 190px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(8, 8, 10, 0.88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  color: var(--text);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: transform 0.18s var(--ease);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.hotspot:hover .hotspot-tooltip,
.hotspot:focus .hotspot-tooltip,
.hotspot:focus-visible .hotspot-tooltip,
.hotspot.is-open .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.hotspot.is-left .hotspot-tooltip {
  left: auto;
  right: calc(100% + 9px);
  bottom: auto;
  top: 50%;
  transform: translate(4px, -50%);
}

.hotspot.is-left:hover .hotspot-tooltip,
.hotspot.is-left:focus .hotspot-tooltip,
.hotspot.is-left.is-open .hotspot-tooltip {
  transform: translate(0, -50%);
}

.hotspot.is-below .hotspot-tooltip {
  top: calc(100% + 9px);
  bottom: auto;
  transform: translate(-50%, -4px);
}

.hotspot.is-below:hover .hotspot-tooltip,
.hotspot.is-below:focus .hotspot-tooltip,
.hotspot.is-below.is-open .hotspot-tooltip {
  transform: translate(-50%, 0);
}

.hotspot-title {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 8.5px;
  line-height: 1.3;
  letter-spacing: 0.12em;
}

.hotspot-text {
  display: block;
  color: #e6e1d7;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.viewer-fallback.is-visible {
  display: grid;
}

/* -------------------------------------------------------------------------
   Loading & entrance motion
   ------------------------------------------------------------------------- */
.reveal {
  animation: riseIn 1.05s var(--ease) both;
}

.reveal-1 { animation-delay: 0.06s; }
.reveal-2 { animation-delay: 0.14s; }
.reveal-3 { animation-delay: 0.22s; }
.reveal-4 { animation-delay: 0.3s; }
.reveal-5 { animation-delay: 0.38s; }

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------------------
   Responsive composition
   ------------------------------------------------------------------------- */
@media (min-width: 901px) and (max-height: 820px) {
  :root {
    --nav-h: 66px;
  }

  .panel-inner {
    padding-top: 26px;
    padding-bottom: 18px;
  }

  .title-block {
    margin-top: 20px;
  }

  h1 {
    font-size: clamp(2.2rem, 3.9vw, 3.4rem);
    line-height: 1.02;
  }

  .lead {
    margin-top: 16px;
    font-size: 12.5px;
    line-height: 1.65;
  }

  .specs {
    gap: 14px;
    margin-top: 20px;
    padding: 12px 0 11px;
  }

  .spaces {
    margin-top: 20px;
  }

  .space-row {
    min-height: 46px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .note {
    display: none;
  }

  .panel-footer {
    padding-top: 16px;
  }
}

@media (max-width: 1180px) {
  :root {
    --panel-pad: clamp(26px, 3.3vw, 40px);
    --nav-h: 72px;
  }

  .layout {
    grid-template-columns: minmax(370px, 41%) minmax(0, 1fr);
  }

  h1 {
    font-size: clamp(2.45rem, 4.4vw, 3.7rem);
  }

  .specs {
    gap: 12px;
  }

  .spec dd {
    font-size: 12.5px;
  }

  .space-meta {
    display: none;
  }

  .space-row {
    grid-template-columns: 24px minmax(0, 1fr) 15px;
  }
}

@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .site-nav {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding-inline: 20px;
  }

  .nav-links {
    gap: 17px;
  }

  .nav-link {
    font-size: 10.5px;
  }

  .nav-cta {
    display: none;
  }

  .layout {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    min-height: 100dvh;
    padding-top: var(--nav-h);
  }

  .viewer {
    height: min(64dvh, 620px);
    min-height: 390px;
  }

  .panel {
    border-right: 0;
    border-top: 1px solid var(--line-soft);
  }

  .panel--overview {
    display: block;
  }

  .panel--architecture {
    display: block;
  }

  .panel--overview .panel-inner,
  .panel--architecture .panel-inner {
    flex: none;
    height: auto;
    overflow: visible;
  }

  .panel--architecture .note {
    display: block;
  }

  .panel--architecture .panel-footer {
    display: flex;
  }

  .arch-dock {
    padding-top: 17px;
    padding-bottom: 19px;
  }

  .explore-dock {
    padding-top: 18px;
    padding-bottom: 20px;
  }

  .panel--overview .note {
    display: block;
  }

  .panel--overview .panel-footer {
    display: flex;
  }

  .panel-inner {
    max-width: none;
    height: auto;
    overflow: visible;
    padding-top: 38px;
    padding-bottom: 30px;
  }

  .title-block {
    margin-top: 34px;
  }

  h1 {
    font-size: clamp(2.6rem, 8.6vw, 3.5rem);
  }

  .lead {
    max-width: 45ch;
    font-size: 13.5px;
  }

  .specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .space-meta {
    display: block;
  }

  .space-row {
    grid-template-columns: 25px minmax(0, 1fr) auto 15px;
  }

  .panel-footer {
    margin-top: 34px;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 64px;
    --panel-pad: 22px;
  }

  .site-nav {
    grid-template-columns: auto 1fr;
    padding-inline: 16px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 9.5px;
    letter-spacing: 0.2em;
  }

  .brand-mark {
    width: 13px;
    height: 15px;
  }

  .nav-links {
    justify-content: flex-end;
    gap: 14px;
  }

  .nav-link {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .viewer {
    height: 56dvh;
    min-height: 360px;
  }

  .viewer-status {
    top: 17px;
    left: 17px;
    font-size: 7.5px;
  }

  .viewer-caption {
    left: 17px;
    bottom: 18px;
    font-size: 8.5px;
  }

  .viewer-hint {
    right: 17px;
    bottom: 18px;
    font-size: 7px;
  }

  .hotspot-tooltip {
    min-width: 138px;
    max-width: 165px;
    padding: 8px 10px;
  }

  .hotspot-text {
    font-size: 10px;
  }

  .panel-inner {
    padding-top: 30px;
    padding-bottom: 22px;
  }

  .explore-dock {
    padding: 17px var(--panel-pad) 19px;
  }

  .layer-options {
    gap: 9px 13px;
  }

  .layer-toggle {
    font-size: 9px;
  }

  .light-options {
    margin-top: 10px;
    padding-top: 10px;
  }

  .panel-head {
    align-items: flex-start;
  }

  .eyebrow {
    max-width: 22ch;
    font-size: 8.5px;
  }

  .chapter {
    font-size: 8.5px;
    padding-top: 2px;
  }

  .chapter-rule {
    width: 16px;
  }

  .title-block {
    margin-top: 28px;
  }

  h1 {
    max-width: 8em;
    font-size: clamp(2.4rem, 11.5vw, 3.2rem);
    line-height: 1.06;
  }

  .lead {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.75;
  }

  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    margin-top: 26px;
    padding: 15px 0;
  }

  .spec dd {
    font-size: 13px;
  }

  .spaces {
    margin-top: 26px;
  }

  .space-row {
    grid-template-columns: 22px minmax(0, 1fr) auto 14px;
    min-height: 55px;
    gap: 9px;
  }

  .space-copy {
    gap: 5px;
  }

  .space-name {
    font-size: 14px;
  }

  .space-meta {
    font-size: 8.5px;
  }

  .note {
    margin-top: 20px;
    font-size: 11px;
  }

  .panel-footer {
    padding-top: 24px;
    gap: 14px;
    font-size: 7.5px;
  }
}

@media (max-width: 380px) {
  .nav-links {
    gap: 11px;
  }

  .nav-link {
    font-size: 9.5px;
  }

  .brand {
    letter-spacing: 0.13em;
  }

  .space-meta {
    display: none;
  }

  .space-row {
    grid-template-columns: 22px minmax(0, 1fr) 14px;
  }
}

/* -------------------------------------------------------------------------
   NOCTURNE OS full-screen interface
   ------------------------------------------------------------------------- */
body.os-open {
  overflow: hidden;
}

.os-overlay {
  --accent: #b89b67;
  --accent-rgb: 184, 155, 103;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 62% at 50% 44%, rgba(199, 167, 122, 0.075), transparent 70%),
    radial-gradient(ellipse 45% 45% at 88% 18%, rgba(77, 128, 140, 0.07), transparent 72%),
    #050505;
  color: var(--text);
  font-family: var(--sans);
  transition: none;
  will-change: opacity;
}

.os-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.035) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 320px 320px, 320px 320px;
  mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 15%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 15%, transparent 85%);
}

.os-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
}

.os-topbar {
  position: absolute;
  top: clamp(18px, 3.2vw, 38px);
  left: clamp(20px, 4vw, 58px);
  right: clamp(20px, 4vw, 58px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.os-brand,
.os-topmeta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(242, 240, 235, 0.42);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.os-brand {
  color: rgba(242, 240, 235, 0.78);
  font-size: 9.5px;
}

.os-brand .os-mark {
  color: var(--accent);
  font-size: 10px;
}

.os-topmeta span + span {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.os-return {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 8, 8, 0.72);
  color: rgba(242, 240, 235, 0.82);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.os-return:hover,
.os-return:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.78);
  background: rgba(36, 30, 22, 0.36);
  color: var(--text);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.12);
  outline: none;
}

.os-stage {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(82px, 9.3vh, 118px) clamp(20px, 4vw, 64px) clamp(16px, 2vh, 26px);
}

.os-console {
  position: relative;
  width: min(1120px, 100%);
  padding: clamp(24px, 3.4vw, 46px) clamp(24px, 4vw, 54px);
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.022), transparent 38%),
    rgba(7, 7, 7, 0.72);
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.os-console::before,
.os-console::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.os-console::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid rgba(242, 240, 235, 0.64);
  border-left: 1px solid rgba(242, 240, 235, 0.64);
}

.os-console::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid rgba(242, 240, 235, 0.64);
  border-bottom: 1px solid rgba(242, 240, 235, 0.64);
}

.os-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(242, 240, 235, 0.38);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.os-kicker span:last-child {
  color: rgba(var(--accent-rgb), 0.7);
}

.os-title {
  margin: clamp(24px, 3.2vw, 42px) 0 0;
  color: rgba(244, 241, 235, 0.96);
  font-family: var(--display);
  font-size: clamp(2.7rem, 7vw, 6.6rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-align: center;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.08),
    0 0 58px rgba(var(--accent-rgb), 0.1);
}

.os-title em {
  display: block;
  margin-top: 0.1em;
  color: var(--accent);
  font-style: normal;
  font-size: 0.58em;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.os-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(20px, 2.8vw, 34px) 0 22px;
}

.os-rule span:first-child {
  width: min(220px, 32vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.9), transparent);
}

.os-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.75);
  animation: osPulse 2.4s var(--ease) infinite;
}

.os-terminal {
  min-height: 108px;
  padding: 14px 16px;
  border-left: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(0, 0, 0, 0.24);
  color: rgba(184, 224, 207, 0.8);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: clamp(9px, 1vw, 11px);
  line-height: 1.9;
  letter-spacing: 0.035em;
}

.os-line {
  min-height: 1.9em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-cursor {
  display: inline-block;
  width: 6px;
  height: 1.1em;
  margin-top: 3px;
  vertical-align: -0.2em;
  background: rgba(var(--accent-rgb), 0.8);
  animation: osBlink 1s steps(1) infinite;
}

.os-progress {
  position: relative;
  height: 2px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.os-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #736044, var(--accent), #e1c799);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.5);
}

.os-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 9px;
  color: rgba(242, 240, 235, 0.36);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7.5px;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.os-progress-meta span:last-child {
  color: rgba(var(--accent-rgb), 0.85);
}

.os-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(26px, 4vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.08);
}

.os-card {
  min-height: 104px;
  padding: 17px 18px;
  background: #070707;
}

.os-card > span {
  display: block;
  color: rgba(242, 240, 235, 0.32);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.os-card strong {
  display: block;
  margin-top: 16px;
  color: rgba(242, 240, 235, 0.86);
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.os-card small {
  display: block;
  margin-top: 9px;
  color: rgba(242, 240, 235, 0.28);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.os-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.os-mode {
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  color: rgba(242, 240, 235, 0.45);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.os-mode:hover,
.os-mode.is-active {
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--accent);
}

.os-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: rgba(242, 240, 235, 0.28);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.os-foot b {
  color: rgba(242, 240, 235, 0.62);
  font-weight: 400;
}

.os-status {
  color: rgba(var(--accent-rgb), 0.66);
}

.os-main-view {
  position: relative;
  z-index: 1;
  min-height: 642px;
}

.os-boot-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.os-boot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  color: rgba(242, 240, 235, 0.24);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.13em;
}

.os-skip-boot {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(242, 240, 235, 0.62);
  font: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.os-skip-boot:hover,
.os-skip-boot:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  outline: none;
}

.os-desktop {
  display: none;
  flex-direction: column;
  gap: 9px;
  min-height: 642px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.os-desktop.is-open {
  display: flex;
  visibility: visible;
}

.os-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 24px;
  padding: 0 2px;
  color: rgba(242, 240, 235, 0.4);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.os-menu-brand,
.os-menu-status,
.os-menu-app {
  display: flex;
  align-items: center;
  gap: 9px;
}

.os-menu-brand {
  color: rgba(242, 240, 235, 0.7);
}

.os-menu-brand .os-mark {
  color: var(--accent);
}

.os-menu-app {
  color: rgba(242, 240, 235, 0.34);
}

.os-menu-app span:first-child {
  color: rgba(var(--accent-rgb), 0.88);
}

.os-menu-sep {
  color: rgba(255, 255, 255, 0.18);
}

.os-menu-status {
  gap: 12px;
}

.os-menu-status span + span {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.os-window {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-height: 444px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 36%),
    #080808;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.os-window::before,
.os-window::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
}

.os-window::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.55);
  border-left: 1px solid rgba(var(--accent-rgb), 0.55);
}

.os-window::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.55);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.55);
}

.os-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 33px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
  color: rgba(242, 240, 235, 0.58);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.os-window-bar > span:nth-child(2) {
  color: rgba(242, 240, 235, 0.68);
}

.os-window-meta {
  margin-left: auto;
  color: rgba(242, 240, 235, 0.24);
}

.os-traffic {
  display: inline-flex;
  gap: 4px;
}

.os-traffic i {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.os-traffic i:first-child {
  border-color: rgba(var(--accent-rgb), 0.66);
  background: rgba(var(--accent-rgb), 0.45);
}

.os-window-body {
  position: relative;
  display: flex;
  flex: 0 0 410px;
  flex-direction: column;
  height: 410px;
  max-height: 410px;
  min-height: 0;
  padding: clamp(16px, 2.5vw, 28px);
  overflow: hidden;
}

.os-app {
  position: relative;
  display: none;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  height: auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.25) transparent;
}

.os-app::-webkit-scrollbar {
  width: 3px;
}

.os-app::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.28);
}

.os-app.is-active {
  display: flex;
}

.os-app-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-shrink: 0;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.os-app-head h2,
.os-app h2 {
  margin: 5px 0 0;
  color: rgba(244, 241, 235, 0.94);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.os-app-kicker {
  margin: 0;
  color: rgba(var(--accent-rgb), 0.7);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.os-app-meta {
  color: rgba(242, 240, 235, 0.28);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.os-home-layout {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  min-height: 0;
}

.os-home-copy {
  padding-left: 2px;
}

.os-home-title {
  margin: 17px 0 0;
  color: rgba(244, 241, 235, 0.95);
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.4vw, 5.3rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.os-home-title em {
  color: var(--accent);
  font-style: normal;
}

.os-home-desc {
  max-width: 500px;
  margin: 20px 0 0;
  color: rgba(242, 240, 235, 0.42);
  font-family: var(--sans);
  font-size: clamp(9px, 0.9vw, 11px);
  font-weight: 300;
  line-height: 1.9;
}

.os-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.os-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  color: rgba(242, 240, 235, 0.68);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.os-text-link:hover,
.os-text-link:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  outline: none;
}

.os-home-panel {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.os-home-metric {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.os-home-metric:last-child {
  border-bottom: 0;
}

.os-home-metric > span,
.os-home-metric > small {
  display: block;
  color: rgba(242, 240, 235, 0.3);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6.5px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.os-home-metric strong {
  display: block;
  margin: 7px 0 5px;
  color: rgba(242, 240, 235, 0.82);
  font-family: var(--display);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.os-home-strip {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.os-home-strip button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 9px;
  padding: 10px 11px;
  border: 0;
  background: #080808;
  color: rgba(242, 240, 235, 0.48);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.os-home-strip button:hover {
  background: rgba(var(--accent-rgb), 0.075);
  color: var(--accent);
}

.os-home-strip span {
  color: rgba(var(--accent-rgb), 0.5);
  font-size: 7px;
  grid-row: span 2;
}

.os-home-strip strong {
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.os-home-strip small {
  color: rgba(242, 240, 235, 0.22);
  font-size: 6px;
  letter-spacing: 0.06em;
}

.os-project-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.25) transparent;
}

.os-project-grid.is-hidden {
  display: none;
}

.os-project-card {
  position: relative;
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: #070707;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.os-project-card:hover,
.os-project-card:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.1);
  outline: none;
  transform: translateY(-2px);
}

.os-project-art {
  display: block;
  min-height: 0;
  overflow: hidden;
}

.os-project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.7s var(--ease), opacity 0.3s var(--ease);
}

.os-project-card:hover .os-project-art img {
  opacity: 1;
  transform: scale(1.045);
}

.os-project-index {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  color: rgba(242, 240, 235, 0.78);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1;
  text-shadow: 0 1px 8px #050505;
}

.os-project-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 13px 12px;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.1), #070707 35%);
}

.os-project-info small {
  color: rgba(var(--accent-rgb), 0.58);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.os-project-info strong {
  color: rgba(242, 240, 235, 0.8);
  font-family: var(--display);
  font-size: clamp(14px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.os-project-arrow {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: rgba(242, 240, 235, 0.32);
  font-size: 12px;
}

.os-project-detail {
  display: none;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.25) transparent;
}

.os-project-detail.is-open {
  display: block;
}

.os-inline-back {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(242, 240, 235, 0.4);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.os-inline-back:hover,
.os-inline-back:focus-visible {
  color: var(--accent);
  outline: none;
}

.os-project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 14px;
}

.os-project-detail-art {
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.os-project-detail-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-project-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3px 0;
}

.os-project-detail-copy h3 {
  margin: 10px 0 0;
  color: rgba(244, 241, 235, 0.94);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.os-project-detail-copy > p:not(.os-app-kicker) {
  max-width: 380px;
  margin: 14px 0 0;
  color: rgba(242, 240, 235, 0.42);
  font-size: 9px;
  line-height: 1.9;
}

.os-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.os-tag-row span {
  padding: 6px 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: rgba(var(--accent-rgb), 0.72);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.os-project-detail-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.os-project-detail-foot > span {
  color: rgba(242, 240, 235, 0.25);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.os-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.os-gallery-filters button {
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: transparent;
  color: rgba(242, 240, 235, 0.35);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6.5px;
  line-height: 1;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.os-gallery-filters button:hover,
.os-gallery-filters button.is-active {
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(var(--accent-rgb), 0.075);
  color: var(--accent);
}

.os-app[data-os-panel="gallery"] {
  overflow: hidden;
}

.os-gallery-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.25) transparent;
}

.os-gallery-tile {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #070707;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.os-gallery-tile:hover,
.os-gallery-tile:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.1);
  outline: none;
}

.os-gallery-image {
  display: block;
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
}

.os-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.7s var(--ease), opacity 0.3s var(--ease);
}

.os-gallery-tile:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.os-gallery-caption {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 8px 9px 9px;
}

.os-gallery-caption small {
  grid-column: 1 / -1;
  color: rgba(var(--accent-rgb), 0.5);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 5.5px;
  line-height: 1.2;
  letter-spacing: 0.07em;
}

.os-gallery-caption strong {
  overflow: hidden;
  color: rgba(242, 240, 235, 0.68);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-gallery-caption em {
  color: rgba(242, 240, 235, 0.24);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  font-style: normal;
}

.os-gallery-lightbox {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  padding: clamp(10px, 1.6vw, 18px);
  background: #050505;
}

.os-gallery-lightbox.is-open {
  display: flex;
}

.os-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.os-lightbox-bar > span {
  color: rgba(var(--accent-rgb), 0.62);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.os-lightbox-image {
  flex: 1;
  min-height: 0;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.os-lightbox-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-lightbox-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
}

.os-lightbox-caption h3 {
  margin: 7px 0 0;
  color: rgba(242, 240, 235, 0.9);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.os-lightbox-caption p {
  max-width: 540px;
  margin: 8px 0 0;
  color: rgba(242, 240, 235, 0.4);
  font-size: 8px;
  line-height: 1.7;
}

.os-lightbox-meta {
  display: block;
  margin-top: 6px;
  color: rgba(242, 240, 235, 0.22);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.07em;
}

.os-lightbox-nav {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
}

.os-lightbox-nav button {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  color: rgba(242, 240, 235, 0.5);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  cursor: pointer;
}

.os-lightbox-nav button:hover {
  border-color: rgba(var(--accent-rgb), 0.65);
  color: var(--accent);
}

.os-audio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  gap: clamp(22px, 4vw, 48px);
  min-height: 0;
}

.os-audio-now {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.os-audio-art {
  position: relative;
  display: grid;
  width: min(100%, 260px);
  aspect-ratio: 1;
  place-items: center;
  margin: 11px 0 13px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.18), transparent 36%),
    radial-gradient(circle at 70% 30%, rgba(127, 84, 99, 0.35), transparent 55%),
    #0b0a0a;
}

.os-audio-art[data-track="wind"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(108, 148, 155, 0.2), transparent 38%),
    radial-gradient(circle at 30% 70%, rgba(42, 73, 86, 0.4), transparent 58%),
    #0a0b0b;
}

.os-audio-art[data-track="jazz"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(190, 150, 91, 0.22), transparent 38%),
    radial-gradient(circle at 76% 64%, rgba(105, 55, 53, 0.42), transparent 56%),
    #0b0a09;
}

.os-audio-art[data-track="never"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(199, 119, 128, 0.28), transparent 38%),
    radial-gradient(circle at 30% 68%, rgba(76, 49, 91, 0.38), transparent 58%),
    #0b090a;
}

.os-audio-orbit {
  position: absolute;
  width: 72%;
  height: 72%;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 50%;
}

.os-audio-vinyl {
  position: absolute;
  width: 38%;
  height: 38%;
  border: 1px solid rgba(242, 240, 235, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(var(--accent-rgb), 0.7) 0 4%, transparent 5%),
    repeating-radial-gradient(circle at center, transparent 0 4px, rgba(255, 255, 255, 0.06) 5px 6px);
}

.os-audio-code {
  position: absolute;
  right: 9px;
  bottom: 8px;
  color: rgba(242, 240, 235, 0.34);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.1em;
}

.os-audio-now h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.os-audio-subtitle {
  margin: 8px 0 0;
  color: rgba(var(--accent-rgb), 0.62);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.os-audio-desc {
  max-width: 330px;
  margin: 10px 0 0;
  color: rgba(242, 240, 235, 0.36);
  font-size: 8px;
  line-height: 1.8;
}

.os-audio-transport {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.os-audio-transport button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  color: rgba(242, 240, 235, 0.5);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 9px;
  cursor: pointer;
}

.os-audio-transport button:hover {
  border-color: rgba(var(--accent-rgb), 0.7);
  color: var(--accent);
}

.os-audio-transport .os-audio-play {
  width: 36px;
  height: 36px;
  border-color: rgba(var(--accent-rgb), 0.48);
  color: var(--accent);
  font-size: 12px;
}

.os-audio-progress {
  width: 100%;
  height: 1px;
  margin-top: 13px;
  background: rgba(255, 255, 255, 0.09);
}

.os-audio-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

.os-audio-times {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: rgba(242, 240, 235, 0.26);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.05em;
}

.os-audio-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: rgba(242, 240, 235, 0.3);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.08em;
}

.os-audio-volume input {
  width: 100px;
  accent-color: var(--accent);
}

.os-audio-queue {
  min-height: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.os-queue-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 8px;
  color: rgba(242, 240, 235, 0.3);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6.5px;
  letter-spacing: 0.09em;
}

.os-queue-head span:last-child {
  color: rgba(var(--accent-rgb), 0.52);
}

.os-audio-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
  color: rgba(242, 240, 235, 0.5);
  text-align: left;
  cursor: pointer;
}

.os-audio-row:hover,
.os-audio-row.is-active,
.os-audio-row.is-selected {
  color: var(--accent);
}

.os-audio-row-code {
  color: rgba(242, 240, 235, 0.22);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
}

.os-audio-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.os-audio-row-main strong {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.os-audio-row-main small {
  color: rgba(242, 240, 235, 0.22);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 5.5px;
  letter-spacing: 0.06em;
}

.os-audio-row-state {
  color: rgba(242, 240, 235, 0.22);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 5.5px;
  letter-spacing: 0.06em;
}

.os-audio-row.is-active .os-audio-row-state {
  color: rgba(var(--accent-rgb), 0.75);
}

.os-audio-note {
  margin: 12px 0 0;
  color: rgba(242, 240, 235, 0.25);
  font-size: 7px;
  line-height: 1.7;
}

.os-env-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  min-height: 0;
}

.os-env-visual {
  position: relative;
  aspect-ratio: 1.6;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background:
    radial-gradient(ellipse at 50% 70%, rgba(199, 167, 122, 0.18), transparent 38%),
    linear-gradient(180deg, #090b10 0%, #11161a 54%, #070707 100%);
  transition: background 0.5s var(--ease);
}

.os-env-visual.is-dusk {
  background:
    radial-gradient(ellipse at 50% 64%, rgba(255, 160, 100, 0.26), transparent 34%),
    linear-gradient(180deg, #352528 0%, #54332d 52%, #100b0b 100%);
}

.os-env-sun {
  position: absolute;
  top: 26%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(242, 240, 235, 0.7);
  box-shadow: 0 0 22px rgba(242, 240, 235, 0.35);
  transform: translateX(-50%);
}

.os-env-visual.is-dusk .os-env-sun {
  background: #ffb078;
  box-shadow: 0 0 34px rgba(255, 157, 94, 0.6);
}

.os-env-horizon {
  position: absolute;
  right: 0;
  bottom: 23%;
  left: 0;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.28);
}

.os-env-visual::before,
.os-env-visual::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 46%;
  height: 27%;
  border-top: 1px solid rgba(242, 240, 235, 0.18);
  background: linear-gradient(180deg, rgba(242, 240, 235, 0.06), transparent);
}

.os-env-visual::before {
  left: 8%;
  transform: skewY(-10deg);
}

.os-env-visual::after {
  right: 7%;
  width: 31%;
  height: 18%;
  transform: skewY(9deg);
}

.os-env-readout {
  position: absolute;
  bottom: 10px;
  left: 12px;
  color: rgba(242, 240, 235, 0.5);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.12em;
}

.os-env-copy {
  padding: 4px 0;
}

.os-env-desc {
  max-width: 430px;
  margin: 16px 0 0;
  color: rgba(242, 240, 235, 0.4);
  font-size: 9px;
  line-height: 1.9;
}

.os-env-status {
  margin-top: 12px;
  color: rgba(var(--accent-rgb), 0.68);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6.5px;
  line-height: 1.5;
  letter-spacing: 0.07em;
}

.os-env-rule {
  width: 100%;
  height: 1px;
  margin: 18px 0 15px;
  background: rgba(255, 255, 255, 0.08);
}

.os-env-display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(242, 240, 235, 0.27);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.os-env-display .os-modes {
  margin-top: 0;
}

.os-env-display > span:last-child {
  margin-left: auto;
  color: rgba(var(--accent-rgb), 0.5);
}

.os-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 54px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 9, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.os-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 55px;
  height: 40px;
  padding: 4px 5px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(242, 240, 235, 0.35);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 5.5px;
  line-height: 1;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.os-dock-item svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-dock-item:hover,
.os-dock-item:focus-visible,
.os-dock-item.is-active {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.075);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.1);
  outline: none;
}

.os-dock-divider {
  width: 1px;
  height: 26px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.1);
}

.os-desktop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  margin-top: auto;
  color: rgba(242, 240, 235, 0.22);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  line-height: 1.3;
  letter-spacing: 0.09em;
}

.os-desktop-foot span:nth-child(2) {
  color: rgba(var(--accent-rgb), 0.46);
}

.os-controls .os-card {
  min-height: 118px;
}

.os-env-switch {
  gap: 6px;
}

.os-env-switch .os-mode {
  padding: 8px 9px;
}

.os-audio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.os-audio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
}

.os-audio i {
  width: 4px;
  height: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.os-audio.is-active {
  color: var(--accent);
}

.os-audio.is-active i {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.65);
}

.os-archive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  color: rgba(242, 240, 235, 0.68);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.os-archive:hover,
.os-archive:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.1);
  outline: none;
}

.os-subrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.os-subrow > span {
  color: rgba(242, 240, 235, 0.28);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.os-subrow .os-modes {
  margin-top: 0;
}

.os-subrow > span:last-child {
  margin-left: auto;
  color: rgba(var(--accent-rgb), 0.58);
}

.os-blueprint-view {
  position: absolute;
  inset: clamp(10px, 1.5vw, 20px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.045), transparent 40%),
    #050505;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.os-blueprint-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.os-blueprint-head span {
  display: block;
  color: rgba(var(--accent-rgb), 0.8);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.os-blueprint-head strong {
  display: block;
  margin-top: 8px;
  color: rgba(242, 240, 235, 0.8);
  font-family: var(--display);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
}

.os-blueprint-back {
  flex-shrink: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(242, 240, 235, 0.74);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.os-blueprint-back:hover,
.os-blueprint-back:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.74);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  outline: none;
}

.os-blueprint-sheet {
  display: grid;
  flex: 1;
  min-height: 0;
  place-items: center;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #050505;
  overflow: hidden;
}

.os-blueprint-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 520px);
}

.os-blueprint-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 11px;
  color: rgba(242, 240, 235, 0.28);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

@media (max-width: 760px) {
  .os-controls .os-card {
    min-height: 0;
  }

  .os-subrow {
    flex-wrap: wrap;
    gap: 9px;
  }

  .os-subrow > span:last-child {
    width: 100%;
    margin-left: 0;
  }

  .os-blueprint-view {
    inset: 6px;
    padding: 10px;
  }

  .os-blueprint-head {
    display: block;
  }

  .os-blueprint-back {
    margin-top: 10px;
  }

  .os-blueprint-sheet {
    overflow: auto;
    place-items: start stretch;
  }

  .os-blueprint-svg {
    width: 760px;
    max-width: none;
    max-height: none;
  }

  .os-blueprint-foot {
    flex-wrap: wrap;
    gap: 5px 12px;
    font-size: 6px;
  }
}

@keyframes osBlink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0.08;
  }
}

@keyframes osPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.86);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.15);
  }
}

@media (max-width: 760px) {
  .os-topbar {
    align-items: flex-start;
    gap: 10px;
  }

  .os-topmeta {
    display: none;
  }

  .os-return {
    max-width: 165px;
    padding: 8px 9px;
    font-size: 7px;
    text-align: right;
  }

  .os-stage {
    padding: 76px 12px 20px;
  }

  .os-console {
    padding: 20px 16px;
  }

  .os-kicker span:last-child {
    display: none;
  }

  .os-title {
    margin-top: 22px;
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .os-cards {
    grid-template-columns: 1fr;
  }

  .os-card {
    min-height: 0;
    padding: 13px 14px;
  }

  .os-card strong {
    margin-top: 10px;
    font-size: 18px;
  }

  .os-card small {
    display: none;
  }

  .os-foot {
    flex-wrap: wrap;
    gap: 9px 14px;
    font-size: 6.5px;
  }

  .os-terminal {
    min-height: 96px;
  }

  .os-main-view {
    min-height: 0;
    min-width: 0;
    max-width: 100%;
  }

  .os-boot-view {
    position: static;
    min-height: 540px;
  }

  .os-desktop {
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .os-console,
  .os-window,
  .os-window-body,
  .os-app,
  .os-menubar {
    min-width: 0;
    max-width: 100%;
  }

  .os-console,
  .os-window {
    width: 100%;
  }

  .os-home-layout,
  .os-home-panel,
  .os-home-strip,
  .os-project-grid,
  .os-project-card,
  .os-gallery-grid,
  .os-audio-layout,
  .os-env-layout {
    min-width: 0;
  }

  .os-menubar {
    flex-wrap: wrap;
    gap: 7px 12px;
  }

  .os-menu-app {
    order: 3;
    width: 100%;
  }

  .os-menu-status {
    margin-left: auto;
    gap: 8px;
  }

  .os-window {
    min-height: 0;
  }

  .os-window-body {
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 16px 13px;
  }

  .os-app {
    height: auto;
    overflow: visible;
  }

  .os-home-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .os-home-title {
    font-size: clamp(2.5rem, 11vw, 3.8rem);
  }

  .os-home-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 0;
  }

  .os-home-metric {
    padding: 11px 9px 11px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.065);
    border-bottom: 0;
  }

  .os-home-metric:last-child {
    border-right: 0;
    padding-left: 9px;
  }

  .os-home-metric strong {
    font-size: 14px;
  }

  .os-home-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os-project-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .os-project-card {
    grid-template-columns: 37% minmax(0, 1fr);
    min-height: 132px;
  }

  .os-project-detail-grid {
    grid-template-columns: 1fr;
  }

  .os-project-detail-art {
    min-height: 190px;
  }

  .os-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    overflow: visible;
  }

  .os-gallery-tile {
    display: block;
  }

  .os-gallery-image {
    flex: none;
    aspect-ratio: 1.42;
  }

  .os-gallery-lightbox {
    position: fixed;
    inset: 70px 12px 14px;
    z-index: 12;
    overflow-y: auto;
  }

  .os-audio-layout,
  .os-env-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .os-audio-art {
    width: min(58vw, 210px);
  }

  .os-audio-desc {
    max-width: none;
  }

  .os-env-visual {
    max-height: 220px;
  }

  .os-dock {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 7px;
    scrollbar-width: none;
  }

  .os-dock::-webkit-scrollbar {
    display: none;
  }

  .os-dock-item {
    flex: 0 0 46px;
    min-width: 46px;
    padding-inline: 3px;
  }

  .os-desktop-foot {
    flex-wrap: wrap;
    gap: 5px 12px;
    font-size: 5.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #scene {
    transition: none;
  }
}

/* -------------------------------------------------------------------------
   NOCTURNE OS / macOS Ventura glass skin
   Decorative overrides only. Interaction logic lives in js/app.js.
   ------------------------------------------------------------------------- */
body.os-open .layout {
  display: block !important;
  grid-template-columns: none !important;
  height: 100vh !important;
  padding-top: 0 !important;
}

body.os-open #viewer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 60 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
}

body.os-open #scene {
  width: 100% !important;
  height: 100% !important;
}

body.os-open .viewer-ui,
body.os-open .room-label-layer,
body.os-open .hotspot-layer {
  display: none !important;
}

.os-overlay {
  --os-font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --os-text: #e0e0e0;
  --os-muted: #888888;
  --os-bright: #f4f4f4;
  --accent: #f4f4f4;
  --accent-rgb: 244, 244, 244;
  background: rgba(8, 10, 14, 0.28) !important;
  color: var(--os-text) !important;
  font-family: var(--os-font) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.os-overlay::before,
.os-overlay::after {
  display: none !important;
  content: none !important;
}

.os-overlay * {
  font-family: var(--os-font) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.os-overlay h1,
.os-overlay h2,
.os-overlay h3,
.os-overlay strong,
.os-overlay .os-title em,
.os-overlay .os-home-title em,
.os-overlay .os-menu-brand,
.os-overlay #os-active-app,
.os-overlay .os-window-bar > span:nth-child(2) {
  color: var(--os-bright) !important;
}

.os-overlay p,
.os-overlay small,
.os-overlay .os-app-kicker,
.os-overlay .os-app-meta,
.os-overlay .os-window-meta,
.os-overlay .os-desktop-foot,
.os-overlay .os-menu-status,
.os-overlay .os-menu-app,
.os-overlay .os-menu-sep,
.os-overlay .os-kicker,
.os-overlay .os-progress-meta,
.os-overlay .os-env-status,
.os-overlay .os-audio-subtitle,
.os-overlay .os-audio-times,
.os-overlay .os-audio-note,
.os-overlay .os-project-info small,
.os-overlay .os-gallery-caption small,
.os-overlay .os-home-metric > span,
.os-overlay .os-home-metric > small,
.os-overlay .os-lightbox-meta,
.os-overlay .os-project-detail-foot > span,
.os-overlay .os-audio-row-main small,
.os-overlay .os-audio-row-state,
.os-overlay .os-audio-row-code,
.os-overlay .os-gallery-caption em,
.os-overlay .os-project-index,
.os-overlay .os-audio-code,
.os-overlay .os-env-readout {
  color: var(--os-muted) !important;
}

.os-overlay button {
  color: var(--os-text) !important;
  border-radius: 10px;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease !important;
}

.os-overlay button:hover,
.os-overlay button:focus-visible {
  color: var(--os-bright) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

.os-overlay .os-dock-item {
  color: var(--os-muted) !important;
}

.os-overlay .os-dock-item.is-active {
  color: var(--os-bright) !important;
}

.os-console {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  overflow: hidden;
}

.os-console::before,
.os-console::after {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.os-overlay[aria-hidden="false"] .os-console {
  animation: osGlassIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  transform-origin: center;
}

@keyframes osGlassIn {
  from {
    opacity: 0.15;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.os-return {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--os-text) !important;
  border-radius: 999px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.os-return:hover,
.os-return:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: var(--os-bright) !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08) !important;
}

.os-brand,
.os-topmeta {
  color: var(--os-muted) !important;
}

.os-brand {
  color: var(--os-text) !important;
}

.os-brand .os-mark {
  color: var(--os-bright) !important;
}

.os-home-title,
.os-title {
  color: var(--os-bright) !important;
  font-weight: 400 !important;
  letter-spacing: -0.055em !important;
}

.os-title em {
  color: rgba(244, 244, 244, 0.7) !important;
}

.os-home-title em {
  color: rgba(244, 244, 244, 0.7) !important;
}

.os-rule span:first-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent) !important;
}

.os-pulse {
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25) !important;
  animation: none !important;
}

.os-kicker b,
.os-session-mode {
  color: var(--os-text) !important;
  font-weight: 400 !important;
}

.os-terminal {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--os-muted) !important;
  border-radius: 10px;
}

.os-line {
  color: var(--os-muted) !important;
}

.os-cursor {
  display: none !important;
}

.os-progress {
  background: rgba(255, 255, 255, 0.1) !important;
}

.os-progress-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), #f4f4f4) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25) !important;
}

.os-progress-meta span:last-child {
  color: var(--os-text) !important;
}

.os-boot-actions {
  color: var(--os-muted) !important;
}

.os-skip-boot {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--os-text) !important;
}

.os-skip-boot:hover,
.os-skip-boot:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.os-desktop,
.os-boot-view,
.os-window-body,
.os-app {
  background: transparent !important;
}

.os-menubar {
  color: var(--os-muted) !important;
}

.os-menu-brand {
  color: var(--os-text) !important;
}

.os-menu-app span:first-child {
  color: var(--os-bright) !important;
}

.os-menu-status span + span {
  border-left-color: rgba(255, 255, 255, 0.12) !important;
}

.os-window {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(130%) !important;
  overflow: hidden;
}

.os-window::before,
.os-window::after {
  display: none !important;
}

.os-window-bar {
  background: rgba(255, 255, 255, 0.045) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--os-muted) !important;
}

.os-window-bar > span:nth-child(2) {
  color: var(--os-text) !important;
}

.os-window-meta {
  color: var(--os-muted) !important;
}

.os-traffic {
  gap: 7px !important;
  pointer-events: none;
}

.os-traffic i {
  width: 10px !important;
  height: 10px !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.35),
    inset 0 -1px 1px rgba(255, 255, 255, 0.2) !important;
}

.os-traffic i:nth-child(1) {
  background: #ff5f57 !important;
}

.os-traffic i:nth-child(2) {
  background: #febc2e !important;
}

.os-traffic i:nth-child(3) {
  background: #28c840 !important;
}

.os-app-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.os-app-head h2,
.os-app > h2 {
  color: var(--os-bright) !important;
  font-weight: 400 !important;
  letter-spacing: -0.035em !important;
}

.os-text-link,
.os-inline-back,
.os-gallery-filters button,
.os-mode,
.os-audio-transport button,
.os-lightbox-nav button {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--os-muted) !important;
}

.os-text-link:hover,
.os-inline-back:hover,
.os-gallery-filters button:hover,
.os-gallery-filters button.is-active,
.os-mode:hover,
.os-mode.is-active,
.os-audio-transport button:hover,
.os-lightbox-nav button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: var(--os-bright) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.06) !important;
}

.os-home-desc,
.os-env-desc,
.os-audio-desc,
.os-project-detail-copy > p:not(.os-app-kicker),
.os-lightbox-caption p {
  color: var(--os-muted) !important;
}

.os-home-panel {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.os-home-metric {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.os-home-metric strong {
  color: var(--os-bright) !important;
  font-weight: 400 !important;
}

.os-home-strip {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.os-home-strip button {
  background: rgba(255, 255, 255, 0.025) !important;
  color: var(--os-muted) !important;
}

.os-home-strip button:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  color: var(--os-text) !important;
}

.os-home-strip span {
  color: rgba(244, 244, 244, 0.5) !important;
}

.os-home-strip strong {
  color: var(--os-text) !important;
}

.os-project-grid,
.os-gallery-grid {
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent !important;
}

.os-project-card,
.os-gallery-tile {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
}

.os-project-card:hover,
.os-project-card:focus-visible,
.os-gallery-tile:hover,
.os-gallery-tile:focus-visible {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), 0 0 18px rgba(255, 255, 255, 0.05) !important;
}

.os-project-info {
  background: transparent !important;
}

.os-project-info small {
  color: var(--os-muted) !important;
}

.os-project-info strong {
  color: var(--os-text) !important;
  font-weight: 400 !important;
}

.os-project-index,
.os-project-arrow {
  color: rgba(224, 224, 224, 0.62) !important;
}

.os-project-detail-art {
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px;
}

.os-project-detail-copy h3 {
  color: var(--os-bright) !important;
  font-weight: 400 !important;
}

.os-tag-row span {
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: var(--os-muted) !important;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px !important;
}

.os-project-detail-foot {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.os-gallery-filters button.is-active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--os-bright) !important;
}

.os-gallery-caption strong {
  color: var(--os-text) !important;
  font-weight: 400 !important;
}

.os-gallery-caption small {
  color: var(--os-muted) !important;
}

.os-gallery-lightbox {
  background: rgba(12, 14, 18, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(20px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
}

.os-lightbox-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.os-lightbox-image {
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px;
}

.os-lightbox-caption h3 {
  color: var(--os-bright) !important;
  font-weight: 400 !important;
}

.os-audio-art {
  border-color: rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15), transparent 36%),
    linear-gradient(135deg, rgba(164, 188, 204, 0.18), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035) !important;
}

.os-audio-art[data-track="wind"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(190, 215, 230, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(138, 178, 196, 0.2), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035) !important;
}

.os-audio-art[data-track="jazz"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(225, 225, 235, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(154, 148, 170, 0.2), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035) !important;
}

.os-audio-art[data-track="never"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(214, 164, 174, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(166, 126, 171, 0.2), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035) !important;
}

.os-audio-orbit {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.os-audio-vinyl {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background:
    radial-gradient(circle at center, rgba(244, 244, 244, 0.8) 0 4%, transparent 5%),
    repeating-radial-gradient(circle at center, transparent 0 4px, rgba(255, 255, 255, 0.07) 5px 6px) !important;
}

.os-audio-now h2 {
  color: var(--os-bright) !important;
  font-weight: 400 !important;
}

.os-audio-subtitle {
  color: var(--os-muted) !important;
}

.os-audio-transport .os-audio-play {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: var(--os-bright) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.os-audio-progress {
  background: rgba(255, 255, 255, 0.12) !important;
}

.os-audio-progress span {
  background: var(--os-bright) !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;
}

.os-audio-volume {
  color: var(--os-muted) !important;
}

.os-audio-volume input {
  accent-color: var(--os-bright) !important;
}

.os-audio-queue {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.os-audio-row {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--os-muted) !important;
}

.os-audio-row:hover,
.os-audio-row.is-active,
.os-audio-row.is-selected {
  color: var(--os-bright) !important;
}

.os-audio-row-state {
  color: var(--os-muted) !important;
}

.os-audio-row.is-active .os-audio-row-state {
  color: var(--os-text) !important;
}

.os-env-visual {
  border-color: rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(220, 228, 235, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(24, 29, 38, 0.28) 0%, rgba(40, 49, 59, 0.22) 54%, rgba(255, 255, 255, 0.02) 100%) !important;
}

.os-env-visual.is-dusk {
  background:
    radial-gradient(ellipse at 50% 64%, rgba(255, 190, 170, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(95, 72, 82, 0.32) 0%, rgba(120, 82, 80, 0.22) 52%, rgba(255, 255, 255, 0.02) 100%) !important;
}

.os-env-sun {
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35) !important;
}

.os-env-visual.is-dusk .os-env-sun {
  background: rgba(255, 213, 196, 0.92) !important;
  box-shadow: 0 0 28px rgba(255, 189, 163, 0.35) !important;
}

.os-env-horizon {
  background: rgba(255, 255, 255, 0.22) !important;
}

.os-env-visual::before,
.os-env-visual::after {
  border-top-color: rgba(255, 255, 255, 0.18) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent) !important;
}

.os-env-rule {
  background: rgba(255, 255, 255, 0.1) !important;
}

.os-env-display > span:last-child {
  color: var(--os-muted) !important;
}

.os-dock {
  width: max-content;
  max-width: 100%;
  align-self: center;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 18px !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(22px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
}

.os-dock-item {
  border-radius: 12px !important;
  color: var(--os-muted) !important;
}

.os-dock-item:hover,
.os-dock-item:focus-visible {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: transparent !important;
  color: var(--os-text) !important;
  box-shadow: none;
}

.os-dock-item.is-active {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--os-bright) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.os-dock-item svg {
  stroke: currentColor !important;
}

.os-dock-divider {
  background: rgba(255, 255, 255, 0.14) !important;
}

.os-desktop-foot {
  color: var(--os-muted) !important;
}

.os-desktop-foot span:nth-child(2) {
  color: var(--os-text) !important;
}

.os-blueprint-view {
  background: rgba(12, 14, 18, 0.32) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
}

.os-blueprint-head {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.os-blueprint-head span {
  color: var(--os-muted) !important;
}

.os-blueprint-head strong {
  color: var(--os-bright) !important;
  font-weight: 400 !important;
}

.os-blueprint-back {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--os-text) !important;
}

.os-blueprint-back:hover,
.os-blueprint-back:focus-visible {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: var(--os-bright) !important;
}

.os-blueprint-sheet {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.os-blueprint-foot {
  color: var(--os-muted) !important;
}

.os-blueprint-foot span {
  color: var(--os-muted) !important;
}

.os-app,
.os-overlay * {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.os-overlay *::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
}

.os-overlay *::-webkit-scrollbar-track {
  background: transparent !important;
  border: 0 !important;
}

.os-overlay *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 0 !important;
  border-radius: 2px !important;
}

.os-overlay *::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4) !important;
}

.os-env-sun,
.os-env-horizon {
  pointer-events: none;
}

@media (max-width: 760px) {
  .os-overlay {
    background: rgba(8, 10, 14, 0.34) !important;
  }

  .os-console {
    border-radius: 16px !important;
  }

  .os-dock {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    border-radius: 14px !important;
  }

  .os-window {
    border-radius: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-overlay[aria-hidden="false"] .os-console {
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------
   NOCTURNE OS / Apple Vision Pro optical glass cards + floating dock
   ------------------------------------------------------------------------- */
.os-window {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 28px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(30px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(150%) !important;
}

.os-window-body {
  flex-basis: 500px !important;
  height: 500px !important;
  max-height: 500px !important;
}

.os-project-card,
.os-gallery-tile {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 28px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(30px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(150%) !important;
}

.os-project-card {
  padding: 32px !important;
  overflow: hidden;
}

.os-project-info {
  padding: 0 0 0 24px !important;
  background: transparent !important;
}

.os-project-info strong {
  color: #ffffff !important;
  font-size: clamp(16px, 1.8vw, 23px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
}

.os-project-info small {
  color: #888888 !important;
  font-size: 7px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.os-project-index {
  top: 32px !important;
  left: 32px !important;
  color: #ffffff !important;
  font-size: 7px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
}

.os-project-arrow {
  right: 32px !important;
  bottom: 32px !important;
  color: #ffffff !important;
}

.os-project-art {
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
}

.os-project-art img {
  border-radius: 20px !important;
}

.os-gallery-tile {
  padding: 32px !important;
  overflow: hidden;
}

.os-gallery-grid {
  grid-auto-rows: 260px !important;
}

.os-gallery-image {
  min-height: 0;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
}

.os-gallery-image img {
  border-radius: 20px !important;
}

.os-gallery-caption {
  padding: 16px 0 0 !important;
}

.os-gallery-caption strong {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

.os-gallery-caption small {
  color: #888888 !important;
  font-size: 6.5px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.os-gallery-caption em {
  color: #888888 !important;
  font-size: 6.5px !important;
}

.os-app-head h2,
.os-project-detail-copy h3,
.os-lightbox-caption h3,
.os-audio-now h2,
.os-home-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.os-app-kicker,
.os-app-meta,
.os-project-detail-copy .os-app-kicker,
.os-lightbox-caption .os-app-kicker,
.os-audio-subtitle {
  color: #888888 !important;
  font-size: 7px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.os-app-head h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;
}

.os-project-detail-art {
  border-radius: 20px !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
}

.os-project-detail-art img {
  border-radius: 20px !important;
}

.os-text-link {
  min-height: 34px;
  padding: 10px 24px !important;
  border-radius: 99px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.os-text-link:hover,
.os-text-link:focus-visible {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24) !important;
}

.os-gallery-filters button {
  border-radius: 99px !important;
  min-height: 28px;
  padding: 7px 14px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #888888 !important;
}

.os-gallery-filters button.is-active {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: #ffffff !important;
}

.os-dock {
  border: 0 !important;
  border-radius: 99px !important;
  padding: 10px 20px !important;
  margin-bottom: 20px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(30px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(150%) !important;
}

.os-dock-item,
.os-dock-item.is-active {
  border-color: transparent !important;
}

.os-dock-item.is-active {
  background: rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 760px) {
  .os-window {
    border-radius: 24px !important;
  }

  .os-window-body {
    flex-basis: auto !important;
    height: auto !important;
    max-height: none !important;
  }

  .os-project-card {
    padding: 22px !important;
  }

  .os-gallery-tile {
    padding: 22px !important;
  }

  .os-project-info {
    padding-left: 16px !important;
  }

  .os-project-index {
    top: 22px !important;
    left: 22px !important;
  }

  .os-project-arrow {
    right: 22px !important;
    bottom: 22px !important;
  }

  .os-gallery-grid {
    grid-auto-rows: auto !important;
  }

  .os-dock {
    border-radius: 22px !important;
    padding: 10px 12px !important;
    margin-bottom: 14px !important;
  }
}

/* External project actions + sandboxed live preview */
.os-project-grid {
  grid-auto-rows: minmax(0, 1fr) !important;
  overflow: hidden !important;
}

.os-project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.os-project-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.os-project-tabs button {
  padding: 7px 13px !important;
  border: 0 !important;
  border-radius: 99px !important;
  background: transparent !important;
  color: #888888 !important;
  font-size: 6.5px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  cursor: pointer;
}

.os-project-tabs button.is-active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

.os-project-tabs button:hover {
  color: #e0e0e0 !important;
}

.os-project-summary {
  color: #888888 !important;
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.os-project-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding-top: 10px;
  color: #888888;
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.os-project-page-buttons {
  display: flex;
  gap: 6px;
}

.os-project-page-buttons button {
  padding: 7px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 99px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e0e0e0 !important;
  font-size: 6.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  cursor: pointer;
}

.os-project-page-buttons button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.os-project-page-buttons button:disabled {
  opacity: 0.28;
  cursor: default;
}

.os-project-view {
  align-self: flex-start;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--os-font);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.9px;
  line-height: 1;
  text-transform: uppercase;
}

.os-project-card:hover .os-project-view {
  background: rgba(255, 255, 255, 0.2);
}

.os-app.is-detail .os-project-toolbar,
.os-app.is-detail .os-project-pagination {
  display: none !important;
}

@media (max-width: 760px) {
  .os-project-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .os-project-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .os-project-tabs button {
    flex: 1;
    padding: 7px 7px !important;
    font-size: 5.8px !important;
  }

  .os-project-summary {
    display: none;
  }

  .os-project-pagination {
    font-size: 5.8px;
  }

  .os-project-page-buttons button {
    padding: 7px 10px !important;
    font-size: 5.8px !important;
  }

  .os-project-grid {
    grid-auto-rows: auto !important;
    overflow: visible !important;
  }

  .os-project-view {
    margin-top: 10px;
    padding: 7px 11px;
    font-size: 6px;
  }
}

.os-project-card.is-external {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.os-project-external {
  position: absolute;
  top: 28px;
  right: 32px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: #888888;
  font-family: var(--os-font);
  font-size: 6px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.os-project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#os-project-preview[hidden] {
  display: none !important;
}

.os-project-preview-button {
  background: rgba(255, 255, 255, 0.06) !important;
}

.os-project-preview-button:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

.os-live-preview {
  position: fixed;
  inset: clamp(18px, 4vw, 64px);
  z-index: 40;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: #000000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.os-live-preview.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.os-live-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0a0a0a;
}

.os-preview-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  background: rgba(12, 14, 18, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.os-preview-close {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-family: var(--os-font);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.os-preview-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.os-preview-title {
  color: #ffffff !important;
  font-family: var(--os-font);
  font-size: 7px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-preview-meta {
  color: #888888 !important;
  font-family: var(--os-font);
  font-size: 6px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .os-project-grid {
    grid-auto-rows: auto !important;
  }

  .os-project-external {
    top: 20px;
    right: 22px;
  }

  .os-project-actions {
    justify-content: flex-start;
  }

  .os-live-preview {
    inset: 10px;
    border-radius: 12px;
  }

  .os-preview-meta {
    display: none;
  }

  .os-preview-bar {
    max-width: calc(100% - 20px);
    padding: 6px 10px;
  }
}

/* =========================================================================
   Garden map + onsen controls
   ========================================================================= */
.garden-map-trigger {
  position: absolute;
  right: 24px;
  bottom: 56px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  background: rgba(6, 6, 7, 0.68);
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: color 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease);
}

.garden-map-trigger:hover {
  border-color: rgba(var(--accent-rgb), 0.48);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--text);
}

.garden-map-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.75);
}

.garden-map-trigger > span:last-child {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0;
}

.onsen-hud {
  position: absolute;
  right: 24px;
  bottom: 105px;
  z-index: 7;
  width: min(304px, calc(100vw - 48px));
  padding: 19px 20px 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(7, 8, 9, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(9px);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease), visibility 280ms;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.onsen-hud.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.onsen-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--accent);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.onsen-hud-top span:last-child {
  color: var(--muted-2);
}

.onsen-hud h3 {
  margin: 20px 0 8px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.onsen-hud p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.onsen-controls {
  display: flex;
  gap: 6px;
  margin-top: 17px;
}

.onsen-controls button {
  flex: 1;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 6.8px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 200ms, background 200ms, color 200ms;
}

.onsen-controls button:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--text);
}

.onsen-controls button span {
  margin-left: 3px;
  color: var(--accent);
}

.onsen-controls button.is-off span {
  color: var(--muted-2);
}

.onsen-return {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms;
}

.onsen-return:hover {
  color: var(--accent);
}

.garden-map {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.garden-map.is-open {
  display: grid;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.garden-map-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 4, 0.72);
  backdrop-filter: blur(14px) saturate(80%);
  -webkit-backdrop-filter: blur(14px) saturate(80%);
}

.garden-map-panel {
  position: relative;
  z-index: 1;
  width: min(790px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px 26px 18px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 2px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(7, 8, 9, 0.93);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
}

.garden-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.garden-map-head p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.garden-map-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4.3vw, 50px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.garden-map-close {
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms;
}

.garden-map-close:hover {
  color: var(--accent);
}

.garden-map-canvas {
  position: relative;
  overflow: hidden;
  margin: 14px 0 0;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 55% 45%, rgba(255, 255, 255, 0.035), transparent 60%),
    rgba(255, 255, 255, 0.008);
}

.garden-map-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 680 / 360;
}

.map-contour {
  fill: rgba(255, 255, 255, 0.012);
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
}

.map-contour-inner {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-dasharray: 2 5;
}

.map-path {
  fill: none;
  stroke: rgba(var(--accent-rgb), 0.44);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
}

.map-path-secondary {
  stroke: rgba(255, 255, 255, 0.13);
}

.map-villa {
  fill: rgba(var(--accent-rgb), 0.08);
  stroke: rgba(var(--accent-rgb), 0.52);
  stroke-width: 1.3;
}

.map-villa-wing {
  fill: rgba(var(--accent-rgb), 0.045);
  stroke: rgba(var(--accent-rgb), 0.32);
  stroke-width: 1;
}

.map-garage,
.map-tea,
.map-deck {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}

.map-onsen {
  fill: rgba(154, 195, 189, 0.12);
  stroke: rgba(154, 195, 189, 0.72);
  stroke-width: 1.2;
}

.map-water {
  fill: rgba(154, 195, 189, 0.25);
  stroke: rgba(154, 195, 189, 0.5);
}

.map-slat {
  fill: none;
  stroke: rgba(154, 195, 189, 0.28);
  stroke-width: 0.7;
}

.map-tree {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
}

.map-tree-mark {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.8;
}

.map-svg-label {
  fill: rgba(255, 255, 255, 0.42);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.6px;
}

.map-svg-label-muted {
  fill: rgba(255, 255, 255, 0.22);
  font-size: 6px;
}

.garden-map-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: rgba(6, 6, 7, 0.84);
  color: var(--text);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: border-color 200ms, background 200ms, transform 200ms;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.garden-map-node:hover {
  z-index: 2;
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(var(--accent-rgb), 0.14);
  transform: translate(-50%, -50%) translateY(-2px);
}

.garden-map-node b {
  color: var(--accent);
  font-size: 6px;
  font-weight: 500;
}

.garden-map-node i {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 5.5px;
  font-style: normal;
  letter-spacing: 0.7px;
}

.garden-map-node.garden-node-onsen {
  border-color: rgba(154, 195, 189, 0.42);
}

.garden-map-node.garden-node-onsen b {
  color: #9ac3bd;
}

.garden-node-villa { left: 55%; top: 53%; }
.garden-node-tea { left: 31%; top: 33%; }
.garden-node-terrace { left: 60%; top: 24%; }
.garden-node-garage { left: 76%; top: 53%; }
.garden-node-onsen { left: 17%; top: 70%; }

.garden-map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 13px;
  color: var(--muted-2);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.garden-map-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .garden-map-trigger {
    right: 16px;
    bottom: 52px;
    padding: 9px 10px;
    font-size: 7px;
  }

  .onsen-hud {
    right: 16px;
    bottom: 94px;
    width: calc(100vw - 32px);
    padding: 14px 15px 13px;
  }

  .onsen-hud h3 {
    margin: 12px 0 5px;
    font-size: 23px;
  }

  .onsen-hud p {
    display: none;
  }

  .onsen-controls {
    margin-top: 10px;
  }

  .onsen-return {
    margin-top: 10px;
  }

  .garden-map {
    padding: 12px;
  }

  .garden-map-panel {
    width: calc(100vw - 24px);
    padding: 18px 16px 14px;
  }

  .garden-map-head h2 {
    font-size: 34px;
  }

  .garden-map-node {
    gap: 4px;
    padding: 5px 6px;
    font-size: 5.5px;
    letter-spacing: 0.6px;
  }

  .garden-map-node i {
    display: none;
  }

  .garden-map-node b {
    font-size: 5px;
  }

  .garden-node-villa { left: 55%; top: 54%; }
  .garden-node-tea { left: 28%; top: 31%; }
  .garden-node-terrace { left: 61%; top: 22%; }
  .garden-node-garage { left: 78%; top: 54%; }
  .garden-node-onsen { left: 18%; top: 73%; }

  .garden-map-foot {
    font-size: 5.5px;
  }

  .garden-map-foot span:last-child {
    display: none;
  }
}

/* =========================================================================
   My Favourite Song — album art, vinyl and metadata
   ========================================================================= */
.os-audio-cover-wrap {
  position: relative;
  z-index: 2;
  display: none;
  width: 260px;
  height: 260px;
}

.os-audio-cover {
  position: relative;
  z-index: 2;
  display: block;
  width: 260px;
  height: 260px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.os-audio-art[data-track="never"] {
  overflow: visible !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: none !important;
}

.os-audio-art[data-track="never"] .os-audio-cover-wrap {
  display: block;
}

.os-audio-art[data-track="never"] .os-audio-orbit {
  display: none;
}

.os-audio-art[data-track="never"] .os-audio-vinyl {
  top: 15px;
  right: -24px;
  left: auto;
  z-index: 1;
  width: 230px;
  height: 230px;
  border-color: rgba(255, 255, 255, 0.25) !important;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.75) 0 3.5%, transparent 4.5%),
    repeating-radial-gradient(circle at center, #050505 0 4px, #151515 4.5px 5.5px) !important;
  box-shadow: 8px 14px 34px rgba(0, 0, 0, 0.55);
}

.os-audio-art[data-track="never"] .os-audio-code {
  right: 14px;
  bottom: 12px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.7) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.os-audio-art .os-audio-vinyl {
  animation: osVinylSpin 18s linear infinite;
  animation-play-state: paused;
}

.os-audio-art.is-playing .os-audio-vinyl {
  animation-play-state: running;
}

@keyframes osVinylSpin {
  to {
    transform: rotate(360deg);
  }
}

.os-audio-label {
  margin: 12px 0 0;
  color: #888888 !important;
  font-family: var(--os-font, var(--sans));
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 1.6px;
  line-height: 1;
  text-transform: uppercase;
}

.os-audio-artist {
  margin: 7px 0 0;
  color: #b5b5b5 !important;
  font-family: var(--os-font, var(--sans));
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.os-audio-now.is-favourite h2 {
  color: #ffffff !important;
  font-weight: 700 !important;
}

@media (max-width: 760px) {
  .os-audio-cover-wrap {
    width: 100%;
    height: 100%;
  }

  .os-audio-cover {
    width: 100%;
    height: 100%;
  }

  .os-audio-art[data-track="never"] .os-audio-vinyl {
    top: 6%;
    right: -12px;
    width: 86%;
    height: 86%;
  }
}

/* Keep the featured cover, metadata and transport in one compact stage. */
.os-audio-now {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 24px;
  align-items: start;
}

.os-audio-now > .os-app-kicker {
  grid-column: 1 / -1;
}

.os-audio-now > .os-audio-art {
  grid-column: 1;
  grid-row: 2;
}

.os-audio-copy {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding-top: 11px;
}

.os-audio-copy .os-audio-label {
  margin-top: 0;
}

.os-audio-copy h2 {
  margin: 9px 0 0;
  font-size: clamp(1.65rem, 2.35vw, 2.15rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.96 !important;
}

.os-audio-copy .os-audio-artist {
  margin-top: 8px;
}

.os-audio-copy .os-audio-transport {
  margin-top: 18px;
}

.os-audio-copy .os-audio-progress {
  margin-top: 13px;
}

.os-audio-copy .os-audio-times {
  margin-top: 6px;
}

.os-audio-copy .os-audio-volume {
  margin-top: 12px;
}

.os-audio-now.is-favourite .os-audio-subtitle,
.os-audio-now.is-favourite .os-audio-desc {
  display: none;
}

@media (max-width: 760px) {
  .os-audio-now {
    grid-template-columns: 1fr;
  }

  .os-audio-now > .os-app-kicker,
  .os-audio-now > .os-audio-art,
  .os-audio-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .os-audio-copy {
    padding-top: 0;
  }
}

/* =========================================================================
   Immersive Vinyl & Tonearm audio room
   ========================================================================= */
.os-audio-immersive {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(ellipse at 28% 38%, rgba(74, 54, 38, 0.96) 0%, rgba(42, 30, 21, 0.94) 42%, #1a120c 100%);
}

.os-audio-immersive.is-active {
  display: block;
}

.os-overlay.is-audio-mode {
  overflow: hidden !important;
}

.os-overlay.is-audio-mode .os-topbar,
.os-overlay.is-audio-mode .os-menubar,
.os-overlay.is-audio-mode .os-dock,
.os-overlay.is-audio-mode .os-window-bar {
  display: none !important;
}

.os-overlay.is-audio-mode .os-stage {
  display: block !important;
  min-height: 0 !important;
  height: 100vh;
  padding: 0 !important;
}

.os-overlay.is-audio-mode .os-console,
.os-overlay.is-audio-mode .os-main-view {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.os-overlay.is-audio-mode .os-console::before,
.os-overlay.is-audio-mode .os-console::after,
.os-overlay.is-audio-mode .os-window::before,
.os-overlay.is-audio-mode .os-window::after {
  display: none !important;
}

.os-overlay.is-audio-mode .os-desktop {
  display: block !important;
  min-height: 0 !important;
  height: 100% !important;
  gap: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.os-overlay.is-audio-mode .os-window {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden !important;
}

.os-overlay.is-audio-mode .os-window-body {
  display: block !important;
  flex: 1 1 100% !important;
  height: 100vh !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: none !important;
}

.os-audio-minimize {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 6;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: color 200ms, background 200ms, border-color 200ms;
}

.os-audio-minimize:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.os-audio-immersive-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  height: 100%;
  min-height: 0;
}

.os-vinyl-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 6vh 3vw 5vh 5vw;
}

.os-vinyl-shell {
  position: relative;
  width: min(68vh, 52vw, 760px);
  aspect-ratio: 1;
}

.os-vinyl-disc {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #050403;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.55);
  animation: osVinylSpin 20s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.os-vinyl-disc.is-playing {
  animation-play-state: running;
}

.os-vinyl-disc::before {
  content: "";
  position: absolute;
  inset: -3%;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, #040303 0 7px, #15110e 7.5px 8.5px, #080605 9px 14px);
  box-shadow:
    inset 0 0 0 8px #050404,
    inset 0 0 0 9px rgba(255, 255, 255, 0.045);
}

.os-vinyl-cover {
  position: relative;
  z-index: 2;
  width: 58%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid #0a0807;
  border-radius: 50%;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}

.os-tonearm {
  position: absolute;
  top: -7%;
  left: 0;
  z-index: 4;
  width: 54%;
  height: 58px;
  transform: rotate(0deg);
  transform-origin: 6% 50%;
  pointer-events: none;
  will-change: transform;
}

.os-tonearm-base {
  position: absolute;
  top: 6px;
  left: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f0ece4, #8f8a80 42%, #2c2925 78%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.os-tonearm-arm {
  position: absolute;
  top: 27px;
  left: 34px;
  width: calc(100% - 42px);
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(180deg, #f1eee8, #b7b1a6 48%, #5b5750);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.os-tonearm-head {
  position: absolute;
  top: 20px;
  right: 0;
  width: 44px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  background: linear-gradient(180deg, #ded9cf, #807b72);
  transform: rotate(18deg);
  transform-origin: 0 50%;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.os-tonearm-head::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: -5px;
  width: 2px;
  height: 9px;
  background: #c9b48d;
}

.os-audio-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8vh 7vw 7vh 2vw;
}

.os-audio-info .os-audio-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
}

.os-audio-title {
  max-width: 9ch;
  margin: 22px 0 0;
  color: #ffffff;
  font-family: var(--display);
  font-size: clamp(3.1rem, 5.5vw, 6.1rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.os-audio-info .os-audio-artist {
  margin: 25px 0 0;
  color: #a0a0a0;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.2vw, 1.22rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.os-audio-album {
  margin: 9px 0 0;
  color: #666666;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.os-audio-player {
  width: 100%;
  max-width: 430px;
  margin-top: clamp(32px, 6vh, 64px);
}

.os-audio-info .os-audio-play {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin: 0 0 22px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-family: var(--sans);
  font-size: 24px !important;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  transition: opacity 160ms ease, transform 160ms ease;
}

.os-audio-info .os-audio-play:hover {
  opacity: 0.72;
  transform: scale(1.04);
}

.os-audio-info .os-audio-progress {
  width: 100%;
  height: 1px !important;
  margin: 0;
  background: rgba(255, 255, 255, 0.2) !important;
  overflow: hidden;
}

.os-audio-info .os-audio-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
}

.os-audio-info .os-audio-times {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #777777;
  font-family: var(--sans);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.os-audio-info .os-audio-volume {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: #777777;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.os-audio-info .os-audio-volume input {
  width: 140px;
  height: 16px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.os-audio-info .os-audio-volume input::-webkit-slider-runnable-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.os-audio-info .os-audio-volume input::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  margin-top: -3.5px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  -webkit-appearance: none;
}

.os-audio-info .os-audio-volume input::-moz-range-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.os-audio-info .os-audio-volume input::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
}

.os-audio-status {
  min-height: 12px;
  margin: 10px 0 0;
  color: #c79b76;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 1.4;
  text-transform: uppercase;
}

.os-vinyl-disc {
  cursor: pointer;
}

.os-audio-info .os-audio-progress {
  position: relative;
  display: block;
  width: 100%;
  height: 18px !important;
  margin: 0;
  background: transparent !important;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  overflow: visible !important;
}

.os-audio-info .os-audio-progress::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
}

.os-audio-info .os-audio-progress > span {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 0;
  height: 1px !important;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  transform: translateY(-50%);
}

.os-audio-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 160ms ease, height 160ms ease;
}

.os-audio-seek {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.os-audio-info .os-audio-progress:hover .os-audio-progress-thumb,
.os-audio-info .os-audio-progress:focus-visible .os-audio-progress-thumb {
  width: 11px;
  height: 11px;
}

.os-audio-info .os-audio-progress:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 6px;
}

.os-audio-digital {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 900px) {
  .os-audio-immersive-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 52% 48%;
  }

  .os-audio-minimize {
    top: 16px;
    left: 16px;
    font-size: 7px;
  }

  .os-vinyl-stage {
    padding: 9vh 8vw 0;
  }

  .os-vinyl-shell {
    width: min(42vh, 76vw);
  }

  .os-tonearm {
    top: -8%;
    width: 58%;
  }

  .os-audio-info {
    justify-content: flex-start;
    padding: 4vh 8vw 5vh;
  }

  .os-audio-title {
    max-width: 11ch;
    margin-top: 14px;
    font-size: clamp(2.25rem, 8vw, 3.3rem);
  }

  .os-audio-info .os-audio-artist {
    margin-top: 16px;
  }

  .os-audio-player {
    margin-top: 22px;
  }

  .os-audio-info .os-audio-play {
    margin-bottom: 14px;
  }
}

/* --------------------------------------------------------------------------
   HOME / live dashboard
   -------------------------------------------------------------------------- */
.os-home-panel {
  gap: 0;
  border-top-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.os-home-metric {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 0 10px;
}

.os-home-metric-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: rgba(242, 240, 235, 0.42);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6.5px;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.os-home-metric-head > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-home-metric-head em {
  margin-left: auto;
  color: #c3d3df;
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.06em;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.os-home-beacon {
  display: block;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f3ead8;
  box-shadow:
    0 0 0 1px rgba(243, 234, 216, 0.18),
    0 0 9px rgba(243, 234, 216, 0.55);
  animation: osBeaconPulse 2.6s ease-in-out infinite;
}

@keyframes osBeaconPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  45% { opacity: 1; transform: scale(1); }
}

.os-home-value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.os-home-value-beacon {
  flex: 0 0 5px;
  margin-right: 1px;
  background: #fff4df;
  box-shadow:
    0 0 0 1px rgba(255, 244, 223, 0.22),
    0 0 11px rgba(255, 239, 210, 0.65);
}

.os-home-value-row strong {
  margin: 0;
  color: rgba(242, 240, 235, 0.92);
  font-family: var(--display);
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.os-home-value-row small {
  margin-left: auto;
  color: rgba(242, 240, 235, 0.28);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 5.5px;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
}

.os-home-monitor {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 17px;
  padding-top: 2px;
  opacity: 0.95;
}

.os-home-monitor i {
  display: block;
  flex: 1 1 0;
  min-width: 1px;
  max-width: 5px;
  height: 34%;
  border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, rgba(255, 245, 220, 0.18), rgba(211, 231, 242, 0.9));
  box-shadow: 0 0 7px rgba(225, 238, 246, 0.24);
  transition: height 0.75s var(--ease), opacity 0.75s var(--ease);
}

.os-home-strip {
  gap: 8px;
  border: 0;
  background: transparent;
}

.os-home-module {
  position: relative;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 3px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 18px rgba(0, 0, 0, 0.24) !important;
  transition:
    border-color 0.28s var(--ease),
    background 0.28s var(--ease),
    color 0.28s var(--ease);
}

.os-home-module::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 9%;
  left: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 230, 0.72), transparent);
  box-shadow: 0 0 9px rgba(255, 244, 220, 0.3);
  opacity: 0.6;
  pointer-events: none;
}

.os-home-module:hover {
  border-color: rgba(255, 246, 229, 0.35) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02)) !important;
  color: #f5f0e6 !important;
}

.os-module-led {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f0e5d1;
  box-shadow: 0 0 0 rgba(255, 236, 200, 0);
  opacity: 0.48;
  pointer-events: none;
}

.os-home-module > span {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: rgba(255, 243, 224, 0.55);
  font-size: 6.5px;
  letter-spacing: 0.05em;
}

.os-home-module > strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-right: 10px;
  color: rgba(245, 243, 237, 0.82);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.os-home-module > small {
  grid-column: 2;
  grid-row: 2;
  color: rgba(242, 240, 235, 0.3);
  font-size: 5.7px;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   PROJECTS / digital gallery
   -------------------------------------------------------------------------- */
.os-project-tabs {
  gap: 4px;
  padding: 4px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(2, 3, 5, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.25);
}

.os-project-tabs button {
  padding: 7px 14px !important;
  border: 1px solid transparent !important;
  color: rgba(235, 238, 241, 0.42) !important;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.os-project-tabs button:hover {
  color: rgba(255, 255, 255, 0.86) !important;
}

.os-project-tabs button.is-active {
  border-color: rgba(255, 255, 255, 0.94) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, 0.075),
    0 0 18px rgba(220, 233, 245, 0.09) !important;
}

.os-project-art {
  position: relative;
  background: #050607;
}

.os-project-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 48% 44%, transparent 32%, rgba(0, 0, 0, 0.2) 66%, rgba(0, 0, 0, 0.62) 100%);
}

.os-project-card .os-project-art img {
  filter: brightness(0.8) contrast(1.1);
  transform-origin: 50% 50%;
  transition:
    transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.45s var(--ease),
    opacity 0.3s var(--ease);
}

.os-project-card:hover .os-project-art img,
.os-project-card:focus-visible .os-project-art img {
  filter: brightness(0.9) contrast(1.06);
  transform: scale(1.05);
}

.os-project-info {
  position: relative;
  z-index: 2;
}

.os-project-card:hover .os-project-view,
.os-project-card:focus-visible .os-project-view {
  border-color: rgba(232, 241, 250, 0.58);
  background: rgba(217, 230, 243, 0.13);
  color: #ffffff;
  box-shadow:
    0 0 18px rgba(205, 225, 245, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   ENVIRONMENT / precision control desk
   -------------------------------------------------------------------------- */
.os-app[data-os-panel="environment"] .os-env-layout {
  grid-template-columns: minmax(0, 1.14fr) minmax(290px, 0.86fr);
  gap: clamp(22px, 3.2vw, 44px);
  align-items: stretch;
}

.os-env-visual::before {
  content: none !important;
  display: none !important;
}

.os-env-visual {
  min-height: 330px;
  aspect-ratio: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 3px !important;
  background: #05070c !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 28px 60px rgba(0, 0, 0, 0.32);
}

.os-env-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, var(--env-top, #05070c) 0%, var(--env-mid, #0b121b) 56%, var(--env-low, #1a1a1d) 100%);
  transition: background 0.4s linear;
}

.os-env-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--env-stars, 1);
  background-image:
    radial-gradient(circle at 18% 16%, rgba(241, 244, 248, 0.85) 0 0.7px, transparent 1.1px),
    radial-gradient(circle at 73% 12%, rgba(231, 238, 248, 0.72) 0 0.8px, transparent 1.2px),
    radial-gradient(circle at 42% 28%, rgba(235, 241, 248, 0.5) 0 0.6px, transparent 1px),
    radial-gradient(circle at 87% 31%, rgba(240, 244, 250, 0.55) 0 0.6px, transparent 1px),
    radial-gradient(circle at 11% 38%, rgba(230, 237, 247, 0.48) 0 0.5px, transparent 0.9px);
  background-size: 100% 100%;
  transition: opacity 0.35s linear;
}

.os-env-orb {
  position: absolute;
  top: var(--env-orb-y, 24%);
  left: var(--env-orb-x, 66%);
  width: clamp(30px, 4vw, 46px);
  height: clamp(30px, 4vw, 46px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.98), var(--env-orb, #e9eef4) 46%, rgba(222, 232, 240, 0.08) 74%);
  box-shadow: 0 0 42px color-mix(in srgb, var(--env-orb, #e9eef4) 45%, transparent);
  opacity: 0.82;
  filter: blur(0.1px);
  transition:
    top 0.4s linear,
    left 0.4s linear,
    background 0.4s linear,
    box-shadow 0.4s linear;
}

.os-env-roof {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.os-env-roof-shadow {
  fill: rgba(1, 2, 4, 0.8);
}

.os-env-roof-deck {
  fill: rgba(8, 10, 12, 0.92);
  stroke: var(--env-line, rgba(220, 232, 244, 0.42));
  stroke-width: 1;
}

.os-env-roof-glass {
  fill: rgba(9, 14, 18, 0.72);
  stroke: var(--env-line, rgba(220, 232, 244, 0.42));
  stroke-width: 0.9;
}

.os-env-roof-wing {
  fill: rgba(8, 10, 12, 0.9);
  stroke: var(--env-line, rgba(220, 232, 244, 0.42));
  stroke-width: 1;
}

.os-env-mullions,
.os-env-roof-line,
.os-env-roof-base {
  fill: none;
  stroke: var(--env-line, rgba(220, 232, 244, 0.42));
  stroke-width: 0.8;
  opacity: 0.75;
}

.os-env-windows rect {
  fill: var(--env-window, rgba(255, 186, 111, 0.78));
  filter: drop-shadow(0 0 5px var(--env-window, rgba(255, 186, 111, 0.5)));
  transition: fill 0.4s linear;
}

.os-env-visual::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 3, 5, 0.52));
}

.os-env-visual-meta {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.os-env-readout,
.os-env-sky-readout {
  color: rgba(242, 240, 235, 0.55);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.os-env-sky-readout {
  color: rgba(242, 240, 235, 0.35);
}

.os-env-weather-fx {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  pointer-events: none;
}

.os-env-visual.is-rain .os-env-rain {
  display: block;
  opacity: 0.34;
  background:
    repeating-linear-gradient(104deg, transparent 0 17px, rgba(207, 228, 248, 0.55) 18px 19px, transparent 20px 39px);
  background-size: 190% 220%;
  animation: osEnvRain 0.55s linear infinite;
}

@keyframes osEnvRain {
  to { background-position: -90px 160px; }
}

.os-env-visual.is-wind .os-env-wind {
  display: block;
  opacity: 0.35;
  background:
    linear-gradient(90deg, transparent, rgba(223, 234, 244, 0.35) 35%, transparent 62%),
    linear-gradient(90deg, transparent, rgba(223, 234, 244, 0.18) 52%, transparent 78%);
  background-size: 72% 100%, 52% 100%;
  background-repeat: no-repeat;
  animation: osEnvWind 5.5s ease-in-out infinite alternate;
}

@keyframes osEnvWind {
  from { background-position: -30% 38%, 120% 72%; }
  to { background-position: 115% 46%, -20% 24%; }
}

.os-env-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.os-env-desc {
  margin-top: 0;
  max-width: 440px;
  font-size: 8px;
  line-height: 1.85;
}

.os-env-slider-block {
  margin-top: 16px;
}

.os-env-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(242, 240, 235, 0.34);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.os-env-slider-head b {
  color: #f4efe6;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.os-env-slider {
  position: relative;
  height: 34px;
  margin-top: 8px;
}

.os-env-slider-rail {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1c2938, #66505a 50%, #b8aa93);
  opacity: 0.55;
  transform: translateY(-50%);
}

.os-env-slider-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #dbe7f4, #f0d6b8);
  box-shadow: 0 0 10px rgba(229, 239, 249, 0.4);
  transform: translateY(-50%);
}

.os-env-slider-ticks i {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 7px;
  background: rgba(242, 240, 235, 0.3);
  transform: translate(-50%, -50%);
}

.os-env-slider-ticks i:nth-child(1) { left: 0; }
.os-env-slider-ticks i:nth-child(2) { left: 50%; }
.os-env-slider-ticks i:nth-child(3) { left: 100%; }

.os-env-slider-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: #f8f5ec;
  box-shadow:
    0 0 0 4px rgba(232, 240, 249, 0.07),
    0 0 18px rgba(231, 241, 252, 0.6);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.os-env-slider input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.os-env-slider-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(242, 240, 235, 0.28);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 5.6px;
  letter-spacing: 0.1em;
}

.os-env-weather {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.os-env-weather-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
}

.os-env-weather-row > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(242, 240, 235, 0.55);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.1em;
}

.os-weather-icon {
  color: rgba(185, 210, 228, 0.7);
  font-size: 7px;
  font-style: normal;
  letter-spacing: -0.08em;
}

.os-switch {
  position: relative;
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 20px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  background: #080a0c;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.os-switch i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5f6872;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.os-switch.is-on {
  border-color: rgba(214, 233, 249, 0.55);
  background: rgba(205, 226, 245, 0.16);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(207, 232, 253, 0.24);
}

.os-switch.is-on i {
  background: #f2f8ff;
  box-shadow: 0 0 9px rgba(218, 239, 255, 0.9);
  transform: translateX(16px);
}

.os-env-status {
  margin-top: 12px;
  color: rgba(217, 231, 242, 0.56);
  font-size: 6px;
}

.os-env-rule {
  margin: 13px 0 11px;
}

.os-env-display {
  display: block;
}

.os-env-display-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
  color: rgba(242, 240, 235, 0.32);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.os-env-display-head > span:last-child {
  margin: 0;
  color: rgba(217, 231, 242, 0.55);
}

.os-env-hardware {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(2, 3, 5, 0.6);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.8);
}

.os-env-hardware .os-mode {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 2px !important;
  background: linear-gradient(180deg, #0a0b0d, #050607) !important;
  color: rgba(230, 235, 241, 0.35) !important;
  font-size: 6px !important;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 1px 2px rgba(0, 0, 0, 0.5);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.os-env-hardware .os-mode:hover {
  color: rgba(255, 255, 255, 0.78) !important;
}

.os-env-hardware .os-mode.is-active {
  border-color: rgba(255, 255, 255, 0.38) !important;
  background: linear-gradient(180deg, #23272d, #111419) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 3px 9px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(214, 232, 249, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .os-home-module {
    padding: 8px 8px !important;
  }

  .os-home-value-row small {
    display: none;
  }

  .os-env-layout {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .os-env-visual {
    min-height: 220px;
  }

  .os-env-weather {
    margin-top: 12px;
  }

  .os-env-desc {
    display: none;
  }
}

/* ENVIRONMENT / AI night plate ------------------------------------------- */
.os-env-visual {
  border-radius: 12px !important;
  background: #05070c !important;
}

.os-env-visual::after {
  display: none !important;
}

.os-env-photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #05070c;
}

.os-env-photo > img {
  display: block;
  width: 110%;
  height: 110%;
  max-width: none;
  object-fit: cover;
  transform: translate(-5%, -5%);
  transition: filter 0.65s ease;
  filter: brightness(0.9) contrast(1.1) saturate(1.2);
}

.os-env-visual.is-dusk .os-env-photo > img {
  filter: sepia(0.5) hue-rotate(-15deg) brightness(1.1);
}

.os-env-visual.is-day .os-env-photo > img {
  filter: brightness(1.6) saturate(0.8);
}

.os-env-photo-shade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.os-env-photo-hud {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 247, 250, 0.86);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 1px;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

.os-env-photo-live {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff4a42;
  box-shadow: 0 0 8px rgba(255, 74, 66, 0.9);
  animation: osEnvBlink 1.05s steps(1) infinite;
}

@keyframes osEnvBlink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.18; }
}

.os-env-photo-divider {
  color: rgba(244, 247, 250, 0.34);
}

.os-env-photo-rain {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  pointer-events: none;
  opacity: 0.44;
  background-image: url("../images/rain.png");
  background-repeat: repeat;
  background-size: 64px 128px;
  animation: rainFall 0.5s linear infinite;
  mix-blend-mode: screen;
}

@keyframes rainFall {
  from { background-position: 0 0; }
  to { background-position: -32px 128px; }
}

.os-env-photo-wind {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  pointer-events: none;
  opacity: 0.26;
  background:
    linear-gradient(90deg, transparent, rgba(214, 232, 245, 0.55), transparent) 0 32% / 48% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(214, 232, 245, 0.28), transparent) 80% 64% / 62% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(214, 232, 245, 0.34), transparent) 30% 78% / 36% 1px no-repeat;
  animation: osEnvPhotoWind 4.8s ease-in-out infinite alternate;
}

@keyframes osEnvPhotoWind {
  from { transform: translateX(-7%); opacity: 0.12; }
  to { transform: translateX(7%); opacity: 0.3; }
}

.os-env-visual.is-rain .os-env-photo-rain {
  display: block;
}

.os-env-visual.is-wind .os-env-photo-wind {
  display: block;
}

.os-env-photo .os-env-visual-meta {
  right: 14px;
  bottom: 11px;
  left: 14px;
  z-index: 5;
}

.os-env-photo .os-env-readout,
.os-env-photo .os-env-sky-readout {
  color: rgba(255, 247, 233, 0.76);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

@media (max-width: 900px) {
  .os-env-photo {
    min-height: 220px;
  }

  .os-env-photo-hud {
    top: 13px;
    left: 13px;
    gap: 6px;
    font-size: 5px;
  }

  .os-env-photo .os-env-visual-meta {
    right: 11px;
    bottom: 9px;
    left: 11px;
  }
}

/* ENVIRONMENT / editorial design philosophy -------------------------------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin-italic.woff2") format("woff2");
}

.os-window-body.is-environment-mode {
  padding: 0 !important;
}

.os-app[data-os-panel="environment"],
.os-env-editorial-app {
  height: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.os-env-editorial {
  display: grid;
  grid-template-columns: 60% 40%;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #070707;
}

.os-env-editorial-plate {
  position: relative;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #050505;
}

.os-env-editorial-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 72%, rgba(7, 7, 7, 0.32)),
    linear-gradient(180deg, rgba(4, 4, 4, 0.06), rgba(4, 4, 4, 0.22));
}

.os-env-editorial-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 52%;
  filter: brightness(0.9) contrast(1.06) saturate(0.92);
}

.os-env-editorial-plate figcaption {
  position: absolute;
  bottom: 17px;
  left: 20px;
  z-index: 2;
  color: rgba(248, 240, 226, 0.56);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 5.5px;
  letter-spacing: 1px;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.os-env-editorial-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(28px, 4.2vh, 58px) clamp(26px, 3vw, 52px) clamp(54px, 7vh, 74px);
  background:
    radial-gradient(ellipse at 80% 12%, rgba(255, 245, 228, 0.035), transparent 48%),
    linear-gradient(160deg, rgba(15, 13, 12, 0.95), rgba(7, 7, 8, 0.92));
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.os-app[data-os-panel="environment"] .os-env-editorial-title {
  font-family: "Playfair Display", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.055em !important;
}

.os-app[data-os-panel="environment"] .os-env-editorial-body p {
  font-family: "Newsreader", "Songti SC", "STSong", Georgia, serif !important;
}

.os-env-editorial-kicker {
  margin: 0;
  color: rgba(199, 167, 122, 0.72);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 1.6px;
  line-height: 1.5;
  text-transform: uppercase;
}

.os-env-editorial-title {
  margin: clamp(14px, 2.5vh, 28px) 0 0;
  color: #f1e9dc;
  font-family: "Playfair Display", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: clamp(2.2rem, 3.3vw, 4.1rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.os-env-editorial-title span {
  display: block;
}

.os-env-editorial-title em {
  color: #c5a374;
  font-style: italic;
  font-weight: 400;
}

.os-env-editorial-body {
  max-width: 37ch;
  margin-top: clamp(16px, 2.5vh, 26px);
}

.os-env-editorial-body p {
  margin: 0 0 0.9em;
  color: rgba(241, 235, 224, 0.6);
  font-family: "Newsreader", "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(10.5px, 0.98vw, 13.2px);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.7;
}

.os-env-editorial-body p:first-child::first-letter {
  float: left;
  margin: 0.07em 0.1em 0 0;
  color: #d8c2a1;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.15em;
  line-height: 0.78;
}

.os-env-editorial-foot {
  position: absolute;
  right: clamp(26px, 3vw, 52px);
  bottom: clamp(20px, 3vh, 30px);
  left: clamp(26px, 3vw, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(241, 235, 224, 0.16);
  color: rgba(241, 235, 224, 0.4);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 5.5px;
  letter-spacing: 0.8px;
  line-height: 1.55;
  text-transform: uppercase;
}

.os-env-editorial-tag {
  color: rgba(216, 189, 154, 0.82);
  text-align: right;
}

@media (max-width: 900px) {
  .os-app[data-os-panel="environment"] {
    padding-bottom: 64px !important;
  }

  .os-env-editorial {
    grid-template-columns: 1fr;
    grid-template-rows: 36% 64%;
  }

  .os-env-editorial-copy {
    justify-content: flex-start;
    padding: 14px 16px 50px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
  }

  .os-env-editorial-title {
    margin-top: 10px;
    font-size: clamp(1.8rem, 7.6vw, 2.6rem);
  }

  .os-env-editorial-body {
    max-width: none;
    margin-top: 12px;
  }

  .os-env-editorial-body p {
    margin-bottom: 0.8em;
    font-size: 10.5px;
    line-height: 1.65;
  }

  .os-env-editorial-body p:first-child::first-letter {
    font-size: 2.5em;
  }

  .os-env-editorial-foot {
    right: 16px;
    bottom: 10px;
    left: 16px;
    padding-top: 7px;
    font-size: 4.7px;
  }

  .os-env-editorial-tag {
    max-width: 55%;
  }
}

/* Project identity / visible author and sources ---------------------------- */
.hero-cn {
  margin: 15px 0 0;
  color: rgba(var(--accent-rgb), 0.42);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.project-byline {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 520px;
  margin: 16px 0 0;
  padding-left: 11px;
  border-left: 1px solid rgba(var(--accent-rgb), 0.55);
  color: rgba(242, 240, 235, 0.54);
  font-size: 9.5px;
  font-weight: 300;
  line-height: 1.65;
}

.project-byline span {
  color: rgba(var(--accent-rgb), 0.86);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6.5px;
  letter-spacing: 0.85px;
  text-transform: uppercase;
}

.project-sources-inline {
  margin-top: 12px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
  background: transparent;
  color: rgba(var(--accent-rgb), 0.86);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6.5px;
  letter-spacing: 1px;
  line-height: 1.4;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.project-sources-inline:hover,
.project-sources-inline:focus-visible {
  color: var(--accent);
  outline: none;
}

.project-sources-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(var(--accent-rgb), 0.7);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.9px;
  line-height: 1.4;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.project-sources-link:hover,
.project-sources-link:focus-visible {
  color: var(--accent);
  outline: none;
}

@media (max-width: 760px) {
  .panel-footer {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .project-sources-link {
    order: 2;
    width: 100%;
    text-align: left;
  }
}
