:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #131313;
  --surface-2: rgba(25, 25, 25, 0.68);
  --surface-3: rgba(35, 35, 35, 0.82);
  --text: #f1eeee;
  --muted: #b7aaa0;
  --quiet: #74675e;
  --line: rgba(255, 152, 0, 0.18);
  --line-strong: rgba(255, 184, 112, 0.46);
  --primary: #ff9800;
  --primary-2: #ffc107;
  --primary-soft: rgba(255, 152, 0, 0.12);
  --container: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 152, 0, 0.09), transparent 28rem),
    radial-gradient(circle at 82% 24%, rgba(255, 193, 7, 0.07), transparent 34rem),
    linear-gradient(rgba(255, 152, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 152, 0, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  color: var(--text);
  font-family: Inter, "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px clamp(20px, 6vw, 80px);
  border-bottom: 1px solid rgba(255, 152, 0, 0.16);
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: Sora, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 22px;
  height: 16px;
  border-top: 4px solid var(--primary);
  border-bottom: 4px solid var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 30px);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--primary-2);
}

.nav a.active {
  color: var(--primary-2);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary-2);
  padding: 0 20px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--primary-2);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding: clamp(76px, 10vw, 140px) clamp(20px, 6vw, 80px);
}

.section-grid {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding: clamp(72px, 8vw, 120px) clamp(20px, 6vw, 80px);
}

.page-hero {
  min-height: 56vh;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1060px;
}

.page-content {
  padding-top: clamp(56px, 8vw, 100px);
}

.timeline-grid,
.expertise-list,
.journal-list {
  display: grid;
  gap: 22px;
}

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

.timeline-card,
.expertise-card,
.journal-card {
  padding: 32px;
}

.timeline-card span,
.journal-card span {
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.expertise-layout,
.journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: start;
  gap: clamp(28px, 6vw, 84px);
}

.reference-frame.wide {
  max-height: 560px;
  margin-bottom: 46px;
}

.reference-frame.tall {
  max-height: 720px;
}

.reference-frame.tall img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

.page-projects,
.page-services {
  margin-top: 0;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.system-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-label > span:first-child {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 18px rgba(255, 152, 0, 0.76);
}

.system-label > span:not(:first-child) {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Sora, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(48px, 7.2vw, 94px);
  line-height: 1.04;
}

h1 em {
  display: block;
  color: var(--primary);
  font-style: normal;
}

h2 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1.22;
}

.hero-lede,
.section-copy p,
.section-heading p,
.contact-section p {
  max-width: 700px;
  color: #d7c9bd;
  font-size: clamp(17px, 1.8vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #201100;
  box-shadow: 0 0 0 rgba(255, 152, 0, 0);
}

.button.primary:hover {
  box-shadow: 0 0 28px rgba(255, 152, 0, 0.38);
}

.button.ghost {
  border: 1px solid var(--primary);
  color: var(--primary-2);
}

.button.ghost:hover {
  background: var(--primary-soft);
}

.cms-preview-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 170, 32, 0.44);
  background: rgba(45, 29, 7, 0.96);
  color: #ffe5b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 18px;
  text-align: center;
}

.metrics {
  display: flex;
  gap: clamp(24px, 5vw, 54px);
  margin: 58px 0 0;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}

.metrics div {
  min-width: 82px;
}

.metrics dt {
  color: #ffc58a;
  font-family: Sora, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1;
}

.metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.glass-card,
.capability-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 184, 112, 0.08), transparent 38%),
    var(--surface-2);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.glass-card:hover,
.capability-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgba(255, 184, 112, 0.12), transparent 44%),
    var(--surface-3);
  box-shadow: 0 0 34px rgba(255, 152, 0, 0.1);
}

.capability-card {
  min-height: 224px;
  padding: 40px 32px;
}

.capability-card:nth-child(odd) {
  transform: translateY(-28px);
}

.capability-card:hover:nth-child(odd) {
  transform: translateY(-32px);
}

.card-icon,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.capability-card h2 {
  margin: 34px 0 8px;
  font-size: clamp(22px, 2.1vw, 28px);
}

.capability-card p,
.service-card p,
.project-card p,
.tool-card p,
.profile-card p {
  color: #cabbaf;
}

.split-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.section-kicker {
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-card {
  padding: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.service-card {
  min-height: 320px;
  position: relative;
  padding: 42px;
}

.index {
  position: absolute;
  top: 32px;
  right: 34px;
  color: #ffe0b5;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: #e9ded5;
  list-style: none;
}

.service-card li::before {
  content: "✓";
  margin-right: 10px;
  color: #ffc58a;
}

.work-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.reference-frame {
  max-height: 460px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #121212;
}

.reference-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.78;
}

.system-preview,
.motion-panel,
.expertise-orbit {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 152, 0, 0.2), transparent 16%),
    linear-gradient(rgba(255, 152, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 152, 0, 0.06) 1px, transparent 1px),
    rgba(18, 18, 18, 0.86);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.system-preview span,
.motion-panel span {
  position: absolute;
  border: 1px solid rgba(255, 184, 112, 0.36);
  border-radius: 18px;
  background: rgba(255, 152, 0, 0.08);
}

.system-preview span:nth-child(1) {
  inset: 44px 42px auto;
  height: 68px;
}

.system-preview span:nth-child(2) {
  left: 42px;
  right: 48%;
  bottom: 42px;
  height: 140px;
}

.system-preview span:nth-child(3) {
  left: 56%;
  right: 42px;
  bottom: 42px;
  height: 140px;
}

.motion-panel {
  min-height: 300px;
}

.motion-panel span {
  width: 46%;
  height: 46%;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
}

.motion-panel span:nth-child(2) {
  width: 62%;
  height: 24%;
  transform: translate(-50%, -50%) rotate(28deg);
}

.motion-panel span:nth-child(3) {
  width: 28%;
  height: 62%;
  transform: translate(-50%, -50%) rotate(-28deg);
}

.expertise-orbit {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.expertise-orbit::before {
  width: 168px;
  height: 168px;
  border: 1px solid rgba(255, 184, 112, 0.46);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 70px rgba(255, 152, 0, 0.14);
}

.expertise-orbit span {
  position: absolute;
  min-width: 72px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.expertise-orbit span:nth-child(1) {
  top: 88px;
}

.expertise-orbit span:nth-child(2) {
  right: 44px;
}

.expertise-orbit span:nth-child(3) {
  bottom: 88px;
}

.expertise-orbit span:nth-child(4) {
  left: 44px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: clamp(44px, 7vw, 88px) 0 42px;
}

.filter-row button {
  min-width: 86px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.7);
  color: #e7d7c9;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-row button.active {
  border-color: var(--primary-2);
  color: #ffc58a;
}

.project-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card,
.tool-card {
  min-height: 280px;
  padding: 32px;
}

.project-card .tag + .tag {
  margin-left: 8px;
}

.project-card h3 {
  margin-top: 42px;
}

.project-card a {
  display: inline-flex;
  margin-top: 22px;
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.toolkit-section {
  display: grid;
  gap: 48px;
}

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

.tool-card {
  min-height: 190px;
}

.tool-card h3 {
  font-size: 22px;
}

.quote-card {
  margin: 28px 0 0;
  padding: clamp(42px, 7vw, 84px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.quote-card p {
  max-width: 920px;
  margin: 0 auto 22px;
  font-family: Sora, sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.22;
}

.quote-card strong {
  color: var(--primary);
}

.quote-card cite {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.video-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
}

.video-teaser p:not(.system-label) {
  max-width: 620px;
  color: #d7c9bd;
}

.video-teaser .button {
  margin-top: 18px;
}

.video-teaser .reference-frame {
  max-height: 360px;
}

.video-hero {
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding-bottom: clamp(72px, 10vw, 132px);
}

.video-hero h1 {
  max-width: 620px;
  margin-bottom: 26px;
  font-size: clamp(50px, 6.4vw, 84px);
}

.video-hero h1 em {
  display: block;
  color: var(--primary);
  font-style: normal;
}

.video-action::before {
  content: "⊙";
  margin-right: 8px;
}

.featured-video-card {
  align-self: center;
}

.video-thumb,
.video-card-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #121212;
}

.video-thumb {
  min-height: 300px;
  border-radius: 18px;
}

.video-thumb img,
.video-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb::after,
.video-card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.play-button,
.mini-play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 184, 112, 0.62);
  border-radius: 50%;
  background: rgba(255, 152, 0, 0.24);
  box-shadow: 0 0 24px rgba(255, 152, 0, 0.24);
}

.play-button {
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
}

.mini-play {
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.play-button::before,
.mini-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid #ffdf9e;
}

.mini-play::before {
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left-width: 9px;
}

.video-meta {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 74px;
  bottom: 22px;
}

.video-meta span,
.video-category {
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-meta h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 2.4vw, 31px);
}

.video-thumb time,
.video-card-media time {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 2;
  color: #fff4e7;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
}

.video-filter-section {
  padding-top: 0;
  padding-bottom: 44px;
}

.video-filters {
  justify-content: flex-start;
  margin: 0;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recent-video-section {
  padding-top: 48px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
}

.section-title-row a {
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.section-title-row a::after {
  content: " →";
}

.video-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.video-exploration-card {
  padding: 14px;
  border-radius: 16px;
}

.video-card-media {
  height: 176px;
  border-radius: 12px;
}

.video-exploration-card h3 {
  margin: 10px 0 8px;
  font-size: clamp(19px, 1.8vw, 25px);
}

.video-exploration-card p {
  margin-bottom: 0;
  color: #d8c8bb;
  font-size: 14px;
}

.video-category {
  display: inline-block;
  margin-top: 16px;
}

.video-cta {
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(42px, 8vw, 86px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 152, 0, 0.16), transparent 36%),
    var(--surface-2);
}

.video-cta h2 {
  max-width: 680px;
  margin-inline: auto;
  font-size: clamp(34px, 4.5vw, 58px);
}

.video-cta p {
  max-width: 620px;
  margin-inline: auto;
  color: #d7c9bd;
}

.cta-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  color: #ffc58a;
  font-size: 24px;
}

.actions.centered {
  justify-content: center;
}

.admin-nav {
  margin-left: auto;
}

.admin-hero {
  min-height: 42vh;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.admin-compact-hero {
  min-height: 28vh;
}

.admin-login {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(100%, 820px);
  padding: clamp(36px, 7vw, 72px);
}

.admin-login-card h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.admin-section {
  padding-top: clamp(44px, 7vw, 84px);
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
}

.admin-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 28px;
}

.admin-sidebar-header h2,
.cms-editor-header h2 {
  margin: 8px 0 0;
}

.cms-page-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.cms-page-button {
  position: relative;
  width: 100%;
  display: grid;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 14px 16px;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.cms-page-button:hover,
.cms-page-button[aria-pressed="true"] {
  border-color: rgba(255, 170, 32, 0.42);
  background: rgba(255, 170, 32, 0.1);
}

.cms-page-button:hover {
  transform: translateX(3px);
}

.cms-page-button span {
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-page-button strong {
  font-family: Sora, sans-serif;
  font-size: 17px;
}

.cms-page-button.is-subpage {
  margin-left: 10px;
  width: calc(100% - 10px);
}

.cms-page-button.is-subpage strong {
  font-size: 15px;
}

.cms-page-group-button {
  margin-top: 16px;
  padding-right: 42px;
}

.cms-page-group-button::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 800;
  transform: translateY(-50%);
}

.cms-page-group-button[aria-expanded="true"]::after {
  content: "-";
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.admin-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
}

.admin-card span {
  color: #ffc58a;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.admin-card h2 {
  margin: 24px 0 12px;
  font-size: 28px;
}

.admin-card p {
  color: #d7c9bd;
  font-size: 15px;
}

.admin-card .button {
  margin-top: auto;
}

.admin-guide {
  margin-top: 28px;
  padding: clamp(28px, 5vw, 52px);
}

.admin-guide ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: #d7c9bd;
}

.cms-form {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
}

.cms-editor-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.cms-editor-header p:not(.system-label) {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.cms-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.cms-ar-panel {
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 32, 0.24);
  border-radius: 8px;
  background: #020617;
}

.cms-ar-panel iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
  background: #020617;
}

.cms-ar-panel[hidden],
.cms-fields[hidden],
.admin-form-actions[hidden],
#cms-preview-button[hidden] {
  display: none;
}

.cms-field {
  display: grid;
  gap: 8px;
}

.cms-field span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cms-field-hint {
  color: #ffc58a;
  font-size: 13px;
  line-height: 1.6;
}

.cms-field input,
.cms-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.72);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
}

.cms-field textarea {
  min-height: 128px;
  resize: vertical;
}

.cms-field input:focus,
.cms-field textarea:focus {
  outline: 1px solid var(--primary);
  border-color: var(--primary);
}

.cms-status {
  display: grid;
  gap: 4px;
  margin: 0;
  border: 1px solid rgba(255, 170, 32, 0.32);
  border-radius: 8px;
  background: rgba(255, 170, 32, 0.08);
  color: #ffe1a8;
  font-family: "JetBrains Mono", monospace;
  padding: 14px 16px;
}

.cms-status strong {
  font-size: 13px;
  font-weight: 800;
}

.cms-status span {
  color: #d7c9bd;
  font-size: 12px;
  line-height: 1.6;
}

.cms-status[data-type="ready"],
.cms-status[data-type="published"] {
  border-color: rgba(143, 240, 179, 0.42);
  background: rgba(143, 240, 179, 0.1);
  color: #8ff0b3;
}

.cms-status[data-type="draft"],
.cms-status[data-type="pending"] {
  border-color: rgba(255, 197, 138, 0.48);
  background: rgba(255, 197, 138, 0.1);
  color: #ffc58a;
}

.cms-status[data-type="preview"] {
  border-color: rgba(128, 201, 255, 0.44);
  background: rgba(128, 201, 255, 0.1);
  color: #a9d9ff;
}

.cms-status[data-type="loading"],
.cms-status[data-type="publishing"] {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4efe8;
}

.cms-status[data-type="error"] {
  border-color: rgba(255, 180, 171, 0.52);
  background: rgba(255, 180, 171, 0.1);
  color: #ffb4ab;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-section {
  margin-bottom: 90px;
  padding: clamp(42px, 8vw, 84px);
  text-align: center;
}

.contact-section h2,
.contact-section p {
  margin-inline: auto;
}

.contact-section .button {
  margin-top: 20px;
}

.site-footer {
  width: min(100%, var(--container));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
  padding: 42px clamp(20px, 6vw, 80px) 58px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.site-footer strong {
  color: #ffc58a;
  font-family: Sora, sans-serif;
  font-size: 22px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a:hover {
  color: var(--primary-2);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .work-hero,
  .video-hero,
  .video-teaser,
  .expertise-layout,
  .journal-layout,
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .hero-panel,
  .service-grid,
  .project-grid,
  .tool-grid,
  .video-card-grid,
  .admin-grid,
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-card:nth-child(odd),
  .capability-card:hover:nth-child(odd) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(16, 16, 16, 0.96);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 16px;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel,
  .service-grid,
  .project-grid,
  .tool-grid,
  .video-card-grid,
  .admin-grid,
  .cms-fields,
  .cms-editor-header,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .cms-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-thumb {
    min-height: 220px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .capability-card,
  .service-card,
  .project-card,
  .tool-card {
    min-height: auto;
    padding: 28px;
  }

  .metrics {
    flex-wrap: wrap;
  }

  .reference-frame {
    max-height: 300px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
