@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Noto+Sans+SC:wght@100..900&family=Poppins:wght@100..900&display=swap");

:root {
  --site-bg: #f2ede4;
  --paper: #f8f3eb;
  --paper-strong: #fdf9f3;
  --line: #cfc5b6;
  --line-strong: #a99882;
  --ink: #171411;
  --muted: #685f56;
  --accent: #8a755c;
  --accent-dark: #211b15;
  --shadow: 0 18px 48px rgba(31, 23, 15, 0.08);
  --shell: min(1320px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, var(--site-bg) 0%, #ebe3d8 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.site-body,
.admin-body {
  min-height: 100vh;
}

.site-shell,
.admin-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.admin-shell {
  width: max-content;
  min-width: var(--shell);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.site-header,
.admin-header,
.admin-card,
.admin-status-bar,
.module-block,
.hero-banner,
.site-footer {
  border: 1px solid var(--line);
  background: rgba(248, 243, 235, 0.88);
  box-shadow: var(--shadow);
}

.admin-card,
.admin-status-bar {
  overflow: visible;
}

.site-header,
.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-brand-mark {
  min-width: 110px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--accent-dark);
  color: #f5eee4;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.site-brand-name,
.site-brand-tagline,
.section-kicker,
.site-footer p,
.admin-status-bar p {
  margin: 0;
}

.site-brand-name {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.site-brand-tagline,
.site-nav,
.admin-header p,
.admin-card-head p,
.layout-size-readout,
.layout-item-label,
.layout-item-meta,
.status-muted {
  color: var(--muted);
}

.site-nav,
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.lang-switch-btn {
  min-height: 38px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.lang-switch-btn:last-child {
  border-right: 0;
}

.lang-switch-btn.is-active {
  background: var(--accent-dark);
  color: #f5eee4;
}

.site-nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.section-kicker,
.layout-drag-handle,
.layout-size-readout,
.layout-item-label,
.layout-item-meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.04em;
  max-width: 8.5ch;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 52px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.04em;
  max-width: 13ch;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 500;
}

.hero-banner-text,
.statement-text,
.review-band-inner p,
.materials-copy p,
.process-body p,
.project-category-card p,
.contact-row p,
.theme-preview-card p {
  line-height: 1.75;
  color: var(--muted);
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.layout-module {
  position: relative;
  width: 100%;
  min-height: 280px;
}

.layout-module-absolute {
  width: var(--module-width, 100%);
  height: var(--module-height, 360px);
  min-height: 0;
}

.layout-module-absolute .layout-item {
  position: absolute;
}

.layout-item {
  overflow: hidden;
}

.hero-banner {
  min-height: 720px;
}

.hero-banner.layout-module-absolute,
.layout-module-absolute.module-block,
.layout-module-absolute.contact-block,
.layout-module-absolute.review-band,
.layout-module-absolute.content-section {
  min-height: 0;
}

.hero-banner-media,
.project-feature,
.module-image-pan {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.runtime-image-block {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: 0;
  pointer-events: none;
  background: transparent;
}

.runtime-image-block img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  display: block;
  transform: translate(-50%, -50%);
  object-position: center;
  max-width: none;
  max-height: none;
}

.runtime-shape-block {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.runtime-shape-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transform-origin: center center;
}

.runtime-shape-line {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 4px;
  border: 0;
  transform-origin: center center;
}

.runtime-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 1);
  pointer-events: none;
}

.hero-banner-copy,
.about-heading,
.about-body,
.section-head,
.review-band-inner,
.materials-copy,
.materials-panels,
.contact-table,
.project-feature-grid,
.project-category-grid {
  padding: 28px;
}

.hero-banner-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.site-btn {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.site-btn:hover {
  transform: translateY(-1px);
}

.site-btn-dark {
  background: var(--accent-dark);
  color: #f5eee4;
}

.site-btn-outline {
  background: transparent;
  color: var(--ink);
}

.module-block {
  padding: 0;
}

.process-stack,
.project-category-grid,
.materials-panels,
.contact-table {
  display: grid;
  gap: 16px;
}

.process-row,
.project-category-card,
.materials-panel,
.contact-row {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
  padding: 18px;
}

.process-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
}

.process-index,
.materials-number,
.contact-row span {
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.project-feature-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr 1fr;
  gap: 16px;
}

.project-feature {
  min-height: 280px;
  border: 1px solid var(--line);
}

.project-feature-copy {
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.project-copy-inner {
  width: 100%;
  background: rgba(248, 243, 235, 0.84);
  border: 1px solid rgba(23, 20, 17, 0.12);
  padding: 18px;
}

.project-category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.materials-panels {
  grid-template-columns: repeat(3, 1fr);
}

.contact-table {
  grid-template-columns: repeat(4, 1fr);
}

.site-footer,
.admin-status-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 22px;
  margin-top: 24px;
}

.admin-header h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(36px, 4vw, 68px);
}

.admin-card {
  margin-top: 24px;
  padding: 22px;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-card-head h2 {
  font-size: clamp(26px, 3vw, 48px);
  max-width: none;
  margin-bottom: 0;
}

.theme-preview-shell {
  border: 1px solid var(--line);
  background: #f2ede4;
  margin-bottom: 16px;
}

.theme-preview-inner {
  padding: 20px;
}

.theme-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.theme-preview-body {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  border: 1px solid var(--line);
}

.theme-preview-card {
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.theme-preview-lines {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.theme-preview-lines div {
  border-bottom: 1px solid var(--line);
}

.theme-preview-lines div:last-child {
  border-bottom: 0;
}

.admin-theme-row,
.admin-editor-grid,
.admin-module-panels {
  display: grid;
  gap: 16px;
}

.admin-theme-row {
  grid-template-columns: minmax(220px, 380px);
}

.admin-editor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.admin-card label,
.admin-form-stack label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-card input,
.admin-card textarea,
.admin-form-stack input,
.admin-form-stack textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

.admin-card input:focus,
.admin-card textarea:focus,
.admin-form-stack input:focus,
.admin-form-stack textarea:focus {
  border-color: var(--ink);
}

.field-span-full {
  grid-column: 1 / -1;
}

.admin-module-panels {
  grid-template-columns: 1fr;
  min-width: max-content;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 248px minmax(max-content, 1fr);
  gap: 18px;
  align-items: start;
  min-width: max-content;
}

.admin-inspector {
  position: sticky;
  top: 18px;
  min-height: 420px;
  width: 248px;
  max-height: calc(100vh - 36px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  padding: 18px;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-inspector-card,
.admin-inspector-placeholder {
  display: grid;
  gap: 12px;
}

.admin-inspector-card .site-btn {
  margin-top: 6px;
  width: 100%;
}

.admin-inspector textarea,
.admin-inspector input,
.admin-inspector select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
  outline: none;
}

.color-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
}

.color-field.is-precision-color {
  grid-template-columns: 52px minmax(0, 1fr) auto 28px;
}

.color-field input[type="color"] {
  width: 52px;
  min-width: 52px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.color-hex-input {
  min-width: 0;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.color-hex-input.is-invalid {
  border-color: #b44a2f !important;
  color: #b44a2f;
}

.color-eyedropper-btn {
  min-width: 60px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: pointer;
}

.color-image-picker-btn {
  min-width: 60px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(248, 243, 235, 0.96);
  color: var(--ink);
  cursor: pointer;
}

.color-image-picker-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.color-chip {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(23, 20, 17, 0.18);
}

body.is-image-picker-open {
  overflow: hidden;
}

.image-color-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
}

.image-color-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 13, 10, 0.66);
}

.image-color-picker-panel {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 48px));
  height: min(86vh, 860px);
  margin: 7vh auto;
  border: 1px solid var(--line);
  background: #f8f3eb;
  box-shadow: 0 24px 60px rgba(16, 12, 9, 0.24);
  display: grid;
  grid-template-rows: auto 1fr;
}

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

.image-color-picker-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.image-color-picker-close {
  min-width: 72px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.image-color-picker-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.image-color-picker-sidebar {
  min-height: 0;
  border-right: 1px solid var(--line);
  padding: 16px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
}

.image-color-picker-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.image-color-picker-thumb {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.image-color-picker-thumb.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(199, 157, 87, 0.5);
}

.image-color-picker-thumb img {
  width: 70px;
  height: 56px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(23, 20, 17, 0.12);
}

.image-color-picker-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-color-picker-sample {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.image-color-picker-sample-chip {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(23, 20, 17, 0.18);
}

.image-color-picker-stage {
  min-height: 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.035) 75%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.035) 75%);
  background-position: 0 0, 14px 14px;
  background-size: 28px 28px;
}

.image-color-picker-stage img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  cursor: crosshair;
  box-shadow: 0 20px 48px rgba(17, 13, 10, 0.18);
}

.inspector-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-context-menu {
  position: fixed;
  z-index: 60;
  min-width: 180px;
  border: 1px solid var(--ink);
  background: #f8f3eb;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.admin-context-menu[hidden] {
  display: none !important;
}

.admin-context-menu button {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.admin-context-menu button:focus,
.admin-context-menu button:focus-visible {
  outline: none;
  box-shadow: none;
}

.admin-context-menu button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.admin-module-panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 16px;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.admin-module-panel.is-selected {
  box-shadow: 0 0 0 2px rgba(23, 20, 17, 0.18), 0 18px 36px rgba(0, 0, 0, 0.08);
}

.admin-module-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
  cursor: grab;
}

.admin-module-panel-head h3 {
  margin: 6px 0 0;
}

.layout-drag-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 8px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: grab;
}

.layout-drag-button:active {
  cursor: grabbing;
}

.admin-preview-label {
  margin-bottom: 8px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.admin-module-preview {
  min-width: 0;
}

.layout-module-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
  overflow: visible;
}

.layout-module-shell {
  position: relative;
  min-width: 0;
}

.layout-module-canvas {
  position: relative;
  min-height: 220px;
  max-width: none;
  border: 1px dashed var(--line-strong);
  background:
    linear-gradient(transparent 23px, rgba(23, 20, 17, 0.05) 24px),
    linear-gradient(90deg, transparent 23px, rgba(23, 20, 17, 0.05) 24px);
  background-size: 24px 24px;
  transition: width 80ms linear, height 80ms linear;
}

.layout-item-box {
  position: absolute;
  min-width: 1px;
  min-height: 1px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.76);
  padding: 0;
  cursor: move;
  user-select: none;
  overflow: visible;
  z-index: 5;
}

.layout-item-box::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px dashed rgba(23, 20, 17, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.layout-item-box:hover,
.layout-item-box.is-active {
  box-shadow: inset 0 0 0 1px rgba(23, 20, 17, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.layout-item-box.is-active {
  border-color: transparent;
}

.layout-item-box.is-selected {
  box-shadow: 0 0 0 2px rgba(23, 20, 17, 0.22), 0 10px 28px rgba(0, 0, 0, 0.12);
}

.layout-item-box.is-primary-selected {
  box-shadow: 0 0 0 2px rgba(33, 27, 21, 0.34), 0 12px 30px rgba(0, 0, 0, 0.16);
}

.layout-item-box:hover::after,
.layout-item-box.is-active::after,
.layout-item-box.is-selected::after {
  opacity: 1;
}

.layout-item-box.is-square-snapped {
  box-shadow: 0 0 0 2px rgba(138, 117, 92, 0.42), 0 12px 30px rgba(0, 0, 0, 0.14);
}

.layout-item-box.is-square-snapped::after {
  opacity: 1;
  border-color: rgba(138, 117, 92, 0.98);
  border-style: solid;
  border-width: 2px;
}

.layout-item-preview {
  width: 100%;
  height: 100%;
  min-height: 64px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
  line-height: 1.5;
  pointer-events: none;
}

.layout-item-box[data-preview-role="headerBrand"] .layout-item-preview,
.layout-item-box[data-preview-role="navProcess"] .layout-item-preview,
.layout-item-box[data-preview-role="navProjects"] .layout-item-preview,
.layout-item-box[data-preview-role="navMaterials"] .layout-item-preview,
.layout-item-box[data-preview-role="navContact"] .layout-item-preview,
.layout-item-box[data-preview-role="navLanguage"] .layout-item-preview {
  overflow: hidden;
}

.header-brand-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  overflow: hidden;
}

.header-brand-preview .site-brand-mark {
  min-width: 92px;
  width: 92px;
  height: 42px;
  flex: 0 0 92px;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.header-brand-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.header-brand-copy strong,
.header-brand-copy p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-brand-copy strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.1em;
}

.header-brand-copy p {
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
}

.header-nav-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

.header-lang-preview {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.header-lang-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.header-lang-chip:last-child {
  border-right: 0;
}

.header-lang-chip.is-active {
  background: var(--accent-dark);
  color: #f5eee4;
}

.layout-item-preview.is-image {
  padding: 0;
  background: transparent;
  color: rgba(23, 20, 17, 0.66);
}

.layout-item-preview.is-shape {
  padding: 0;
  background: transparent;
}

.layout-selection-box {
  position: absolute;
  border: 1px dashed rgba(33, 27, 21, 0.72);
  background: rgba(191, 166, 120, 0.12);
  pointer-events: none;
  z-index: 20;
}

.resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: transparent;
  padding: 0;
  border: 0;
  z-index: 3;
  opacity: 0;
}

.module-resize-handle {
  z-index: 2;
  opacity: 0;
}

.layout-module-shell > .resize-n,
.layout-module-shell > .resize-s {
  left: -7px;
  width: calc(100% + 14px);
  height: 8px;
}

.layout-module-shell > .resize-e,
.layout-module-shell > .resize-w {
  top: -7px;
  width: 8px;
  height: calc(100% + 14px);
}

.layout-module-shell > .resize-n {
  top: -8px;
}

.layout-module-shell > .resize-s {
  bottom: -8px;
}

.layout-module-shell > .resize-e {
  right: -8px;
}

.layout-module-shell > .resize-w {
  left: -8px;
}

.layout-module-shell > .resize-ne {
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
}

.layout-module-shell > .resize-nw {
  top: -8px;
  left: -8px;
  width: 16px;
  height: 16px;
}

.layout-module-shell > .resize-se {
  right: -8px;
  bottom: -8px;
  width: 16px;
  height: 16px;
}

.layout-module-shell > .resize-sw {
  left: -8px;
  bottom: -8px;
  width: 16px;
  height: 16px;
}

.layout-item-box > .resize-handle {
  box-shadow: none;
  z-index: 6;
}

.layout-item-box > .resize-n,
.layout-item-box > .resize-s {
  left: -4px;
  width: calc(100% + 8px);
  height: 10px;
}

.layout-item-box > .resize-e,
.layout-item-box > .resize-w {
  top: -4px;
  width: 10px;
  height: calc(100% + 8px);
}

.layout-item-box > .resize-n {
  top: -5px;
}

.layout-item-box > .resize-s {
  bottom: -5px;
}

.layout-item-box > .resize-e {
  right: -5px;
}

.layout-item-box > .resize-w {
  left: -5px;
}

.layout-item-box > .resize-ne {
  top: -6px;
  right: -6px;
  width: 14px;
  height: 14px;
}

.layout-item-box > .resize-nw {
  top: -6px;
  left: -6px;
  width: 14px;
  height: 14px;
}

.layout-item-box > .resize-se {
  right: -6px;
  bottom: -6px;
  width: 14px;
  height: 14px;
}

.layout-item-box > .resize-sw {
  left: -6px;
  bottom: -6px;
  width: 14px;
  height: 14px;
}

.runtime-text-block {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 18px;
  line-height: 1.6;
  white-space: pre-wrap;
  font-synthesis-weight: none;
}

.layout-item-box[data-preview-role="navProcess"] .runtime-text-block,
.layout-item-box[data-preview-role="navProjects"] .runtime-text-block,
.layout-item-box[data-preview-role="navMaterials"] .runtime-text-block,
.layout-item-box[data-preview-role="navContact"] .runtime-text-block {
  padding: 0 4px;
  font-size: 11px;
  line-height: 1;
}

.editor-rich-copy,
.editor-list-preview {
  width: 100%;
  height: 100%;
  padding: 18px;
  overflow: hidden;
}

.editor-rich-copy h3,
.editor-rich-copy p,
.editor-list-preview p,
.editor-list-preview strong {
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.editor-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editor-button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.editor-button-row span {
  border: 1px solid rgba(23, 20, 17, 0.18);
  padding: 8px 12px;
}

.editor-list-preview {
  display: grid;
  gap: 10px;
}

.editor-grid-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-runtime-item {
  border: 1px solid rgba(23, 20, 17, 0.12);
  overflow: hidden;
}

.resize-n,
.resize-s {
  left: calc(50% - 6px);
}

.resize-e,
.resize-w {
  top: calc(50% - 6px);
}

.resize-n {
  top: -7px;
  cursor: ns-resize;
}

.resize-s {
  bottom: -7px;
  cursor: ns-resize;
}

.resize-e {
  right: -7px;
  cursor: ew-resize;
}

.resize-w {
  left: -7px;
  cursor: ew-resize;
}

.resize-ne {
  right: -7px;
  top: -7px;
  cursor: nesw-resize;
}

.resize-nw {
  left: -7px;
  top: -7px;
  cursor: nwse-resize;
}

.resize-se {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.resize-sw {
  left: -7px;
  bottom: -7px;
  cursor: nesw-resize;
}

.layout-guide {
  position: absolute;
  background: rgba(33, 27, 21, 0.96);
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
  z-index: 25;
  box-shadow: 0 0 0 1px rgba(255, 245, 230, 0.42);
}

.layout-guide-x {
  top: 0;
  height: 100%;
  width: 2px;
}

.layout-guide-y {
  left: 0;
  width: 100%;
  height: 2px;
}

.gallery-inspector-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(194, 175, 146, 0.6);
}

.gallery-mode-panel {
  display: none;
}

.gallery-mode-panel.is-visible {
  display: block;
}

.gallery-image-list {
  display: grid;
  gap: 8px;
}

.gallery-image-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(194, 175, 146, 0.55);
  background: rgba(255, 255, 255, 0.75);
}

.gallery-image-index {
  font-size: 12px;
  color: var(--muted);
}

.gallery-image-path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.gallery-image-remove {
  border: 1px solid rgba(27, 24, 20, 0.16);
  background: #fff;
  cursor: pointer;
  padding: 6px 10px;
}

.gallery-empty {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.gallery-display-preview,
.runtime-gallery-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.runtime-gallery-shell {
  box-sizing: border-box;
  overflow: hidden;
  background: var(--gallery-display-bg, transparent);
  border-style: solid;
  border-width: var(--gallery-display-border-width, 0px);
  border-color: var(--gallery-display-border-color, transparent);
  border-radius: var(--gallery-display-radius, 0px);
  box-shadow: var(--gallery-display-shadow, none);
}

.runtime-gallery-stage {
  position: relative;
  height: 100%;
  min-height: 0;
}

.runtime-gallery-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.runtime-gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.runtime-gallery-slide {
  position: absolute;
  top: 6%;
  bottom: 6%;
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
  transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

.runtime-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.runtime-gallery-slide.is-active {
  left: 13%;
  width: 74%;
  z-index: 3;
  box-shadow: 0 16px 40px rgba(64, 42, 20, 0.14);
}

.runtime-gallery-slide.is-prev,
.runtime-gallery-slide.is-next {
  width: 16%;
  z-index: 2;
  opacity: 0.98;
  box-shadow: 0 10px 24px rgba(64, 42, 20, 0.12);
}

.runtime-gallery-slide.is-prev {
  left: 0;
}

.runtime-gallery-slide.is-next {
  right: 0;
}

.runtime-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #171411;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 18px rgba(33, 22, 12, 0.12);
}

.runtime-gallery-arrow.is-left {
  left: 18px;
}

.runtime-gallery-arrow.is-right {
  right: 18px;
}

.runtime-gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 10px;
}

.runtime-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(191, 166, 120, 0.38);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: width 160ms ease, background 160ms ease;
}

.runtime-gallery-dot.is-active {
  width: 22px;
  background: #c79d57;
}

.gallery-card-preview,
.runtime-gallery-card-shell {
  width: 100%;
  height: 100%;
  display: grid;
  background: #fff;
  min-height: 0;
}

.gallery-card-thumb,
.runtime-gallery-card-thumb {
  overflow: hidden;
  border-radius: inherit;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.gallery-card-thumb img,
.runtime-gallery-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card-label,
.runtime-gallery-card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px 5px;
  font-size: 12px;
  line-height: 1.1;
  background: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-preview.is-gallery-active-card {
  box-shadow: 0 0 0 1px rgba(199, 157, 87, 0.9) inset;
}

.gallery-role-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(194, 175, 146, 0.55);
  background: rgba(255, 255, 255, 0.7);
}

.admin-gallery-composite-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.admin-gallery-composite-box {
  position: absolute;
  pointer-events: none;
}

.admin-gallery-composite-box.is-display .runtime-gallery-shell {
  width: 100%;
  height: 100%;
}

.admin-gallery-composite-box.is-card .gallery-card-preview {
  width: 100%;
  height: 100%;
}

.admin-gallery-composite-box.is-active-card {
  box-shadow: 0 0 0 1px rgba(199, 157, 87, 0.95) inset, 0 10px 24px rgba(102, 73, 31, 0.12) !important;
}

.layout-item-box.is-gallery-managed {
  background: transparent !important;
}

.layout-item-box.is-gallery-managed > .layout-item-preview {
  opacity: 0;
}

.runtime-gallery-display-host {
  overflow: visible;
  touch-action: pan-y;
}

.runtime-gallery-display-host.is-gallery-dragging {
  cursor: grabbing;
}

.runtime-gallery-card-host {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.runtime-gallery-card-host.is-gallery-active {
  transform: translateY(-2px);
  border-color: #c79d57 !important;
  box-shadow: 0 16px 32px rgba(102, 73, 31, 0.14);
}

.runtime-gallery-shell.is-admin-preview .runtime-gallery-slide.is-active {
  left: 14%;
  width: 72%;
}

.runtime-gallery-shell.is-admin-preview .runtime-gallery-slide.is-prev,
.runtime-gallery-shell.is-admin-preview .runtime-gallery-slide.is-next {
  width: 15%;
}

.runtime-gallery-shell {
  --gallery-side-peek: 10%;
  --gallery-slide-gap: 2.5%;
  --gallery-transition-ms: 560ms;
  --gallery-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gallery-display-bg: transparent;
  --gallery-display-border-width: 0px;
  --gallery-display-border-color: transparent;
  --gallery-display-radius: 0px;
  --gallery-display-shadow: none;
  --gallery-active-width: calc(100% - (var(--gallery-side-peek) * 2) - (var(--gallery-slide-gap) * 2));
  --gallery-active-left: calc(var(--gallery-side-peek) + var(--gallery-slide-gap));
}

.runtime-gallery-carousel {
  user-select: none;
  cursor: grab;
}

.runtime-gallery-carousel.is-dragging {
  cursor: grabbing;
}

.runtime-gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.runtime-gallery-track.is-animating .runtime-gallery-slide,
.runtime-gallery-track .runtime-gallery-slide {
  transition:
    left var(--gallery-transition-ms) var(--gallery-ease),
    width var(--gallery-transition-ms) var(--gallery-ease),
    opacity var(--gallery-transition-ms) var(--gallery-ease),
    transform var(--gallery-transition-ms) var(--gallery-ease),
    box-shadow var(--gallery-transition-ms) var(--gallery-ease);
}

.runtime-gallery-track.is-dragging .runtime-gallery-slide {
  transition: none;
}

.runtime-gallery-track.is-resetting .runtime-gallery-slide {
  transition: none !important;
}

.runtime-gallery-slide[data-gallery-position] {
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 0;
  width: var(--gallery-side-peek);
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
  opacity: 0.94;
  z-index: 2;
  --gallery-slot-scale: 0.94;
  transform: translateX(var(--gallery-drag-offset, 0px)) scale(var(--gallery-slot-scale));
}

.runtime-gallery-photo-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-style: solid;
  border-width: var(--gallery-photo-border-width, 0px);
  border-color: var(--gallery-photo-border-color, #ffffff);
  border-radius: var(--gallery-photo-radius, 0px);
  box-shadow: var(--gallery-photo-shadow, none);
  background: transparent;
}

.runtime-gallery-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.runtime-gallery-slide[data-gallery-position="before-prev"] {
  left: calc((var(--gallery-side-peek) + var(--gallery-slide-gap) + 3%) * -1);
  opacity: 0;
  z-index: 1;
  --gallery-slot-scale: 0.9;
}

.runtime-gallery-slide[data-gallery-position="prev"] {
  left: 0;
}

.runtime-gallery-slide[data-gallery-position="active"] {
  left: var(--gallery-active-left);
  width: var(--gallery-active-width);
  opacity: 1;
  z-index: 3;
  --gallery-slot-scale: 1;
  box-shadow: 0 16px 40px rgba(64, 42, 20, 0.14);
}

.runtime-gallery-slide[data-gallery-position="next"] {
  left: calc(100% - var(--gallery-side-peek));
}

.runtime-gallery-slide[data-gallery-position="after-next"] {
  left: calc(100% + var(--gallery-slide-gap) + 3%);
  opacity: 0;
  z-index: 1;
  --gallery-slot-scale: 0.9;
}

.runtime-gallery-track[data-gallery-motion="next"] .runtime-gallery-slide[data-gallery-position="prev"] {
  left: calc((var(--gallery-side-peek) + var(--gallery-slide-gap) + 3%) * -1);
  opacity: 0;
  --gallery-slot-scale: 0.9;
}

.runtime-gallery-track[data-gallery-motion="next"] .runtime-gallery-slide[data-gallery-position="active"] {
  left: 0;
  width: var(--gallery-side-peek);
  opacity: 0.94;
  z-index: 2;
  --gallery-slot-scale: 0.94;
  box-shadow: 0 10px 24px rgba(64, 42, 20, 0.12);
}

.runtime-gallery-track[data-gallery-motion="next"] .runtime-gallery-slide[data-gallery-position="next"] {
  left: var(--gallery-active-left);
  width: var(--gallery-active-width);
  opacity: 1;
  z-index: 3;
  --gallery-slot-scale: 1;
  box-shadow: 0 16px 40px rgba(64, 42, 20, 0.14);
}

.runtime-gallery-track[data-gallery-motion="next"] .runtime-gallery-slide[data-gallery-position="after-next"] {
  left: calc(100% - var(--gallery-side-peek));
  width: var(--gallery-side-peek);
  opacity: 0.94;
  z-index: 2;
  --gallery-slot-scale: 0.94;
}

.runtime-gallery-track[data-gallery-motion="prev"] .runtime-gallery-slide[data-gallery-position="before-prev"] {
  left: 0;
  width: var(--gallery-side-peek);
  opacity: 0.94;
  z-index: 2;
  --gallery-slot-scale: 0.94;
}

.runtime-gallery-track[data-gallery-motion="prev"] .runtime-gallery-slide[data-gallery-position="prev"] {
  left: var(--gallery-active-left);
  width: var(--gallery-active-width);
  opacity: 1;
  z-index: 3;
  --gallery-slot-scale: 1;
  box-shadow: 0 16px 40px rgba(64, 42, 20, 0.14);
}

.runtime-gallery-track[data-gallery-motion="prev"] .runtime-gallery-slide[data-gallery-position="active"] {
  left: calc(100% - var(--gallery-side-peek));
  width: var(--gallery-side-peek);
  opacity: 0.94;
  z-index: 2;
  --gallery-slot-scale: 0.94;
  box-shadow: 0 10px 24px rgba(64, 42, 20, 0.12);
}

.runtime-gallery-track[data-gallery-motion="prev"] .runtime-gallery-slide[data-gallery-position="next"] {
  left: calc(100% + var(--gallery-slide-gap) + 3%);
  opacity: 0;
  z-index: 1;
  --gallery-slot-scale: 0.9;
}

.runtime-gallery-carousel[data-gallery-effect="soft"] {
  --gallery-ease: cubic-bezier(0.19, 1, 0.22, 1);
}

.runtime-gallery-carousel[data-gallery-effect="soft"] .runtime-gallery-slide[data-gallery-position="prev"],
.runtime-gallery-carousel[data-gallery-effect="soft"] .runtime-gallery-slide[data-gallery-position="next"] {
  opacity: 0.84;
  --gallery-slot-scale: 0.91;
}

.runtime-gallery-carousel[data-gallery-effect="snap"] {
  --gallery-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

.runtime-gallery-carousel[data-gallery-effect="snap"] .runtime-gallery-slide[data-gallery-position="prev"],
.runtime-gallery-carousel[data-gallery-effect="snap"] .runtime-gallery-slide[data-gallery-position="next"] {
  opacity: 0.98;
}

.runtime-gallery-shell.is-admin-preview .runtime-gallery-slide[data-gallery-position] {
  top: 7%;
  bottom: 7%;
}

.admin-module-panel.is-dragging {
  opacity: 0.82;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
  z-index: 5;
}

.admin-module-panel.is-resizing .layout-module-frame {
  box-shadow: inset 0 0 0 1px var(--accent-dark);
}

.admin-module-panel.drop-before::before,
.admin-module-panel.drop-after::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-dark);
}

.admin-module-panel.drop-before::before {
  top: -2px;
}

.admin-module-panel.drop-after::after {
  bottom: -2px;
}

@media (max-width: 1180px) {
  .project-category-grid,
  .materials-panels,
  .contact-table {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .site-shell,
  .admin-shell {
    width: min(100vw - 24px, 100%);
    padding: 12px 0 24px;
  }

  .site-header,
  .admin-header,
  .admin-card-head,
  .site-footer,
  .admin-status-bar {
    flex-direction: column;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .admin-header-actions {
    gap: 12px;
  }

  .layout-module,
  .layout-module-absolute {
    height: auto;
    min-height: 0;
  }

  .layout-module .layout-item,
  .layout-module-absolute .layout-item {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    border-bottom: 1px solid rgba(23, 20, 17, 0.08);
  }

  .layout-module .layout-item:last-child,
  .layout-module-absolute .layout-item:last-child {
    border-bottom: 0;
  }

  .hero-banner {
    min-height: 0;
  }

  .hero-banner-media {
    min-height: 320px;
  }

  .project-feature-grid,
  .project-category-grid,
  .materials-panels,
  .contact-table,
  .theme-preview-body,
  .admin-editor-grid {
    grid-template-columns: 1fr;
  }

  .process-row {
    grid-template-columns: 1fr;
  }

  .layout-module-frame {
    overflow: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-banner-copy,
  .about-heading,
  .about-body,
  .section-head,
  .review-band-inner,
  .materials-copy,
  .materials-panels,
  .contact-table,
  .project-feature-grid,
  .project-category-grid,
  .site-header,
  .admin-header,
  .admin-card {
    padding: 18px;
  }
}
