:root {
  /* Cinematic graphite base + a single champagne-gold accent (2026 design-system pass) */
  --bg: #0B0D10;
  --bg-2: #12151A;
  --surface: #181C22;
  --text: #F4F4F2;
  --text-secondary: #C7CBD1;
  --muted: #A7ACB4;
  --accent: #D9A94B;
  --accent-hover: #E8BE6C;
  --accent-2: #7BC96F;
  --success: #7BC96F;
  --warm: #F2B705;
  --warning: #F2B705;
  --danger: #E5696D;
  --border: rgba(255,255,255,0.10);
  --shadow: rgba(0,0,0,0.38);
  --font-sans: "Inter", "Kantumruy Pro", -apple-system, "Segoe UI", sans-serif;
  --font-khmer: "Kantumruy Pro", "Noto Sans Khmer", Arial, sans-serif;
  --font-display: var(--font-sans);
}

/* 2026 portfolio workflow, curated work, and analytics refinements */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 480ms ease, transform 480ms ease;
}

.success-email-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px !important;
  padding: 11px 12px;
  border: 1px solid rgba(123, 201, 111, 0.26);
  background: rgba(123, 201, 111, 0.08);
  color: var(--text) !important;
  font-size: 0.9rem;
}
.success-email-state i { color: #7bc96f; }

.project-starter-section { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-side-copy { max-width: 340px; margin: 0; color: var(--muted); }
.project-starter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-starter-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.project-starter-card:hover, .project-starter-card:focus-visible { transform: translateY(-4px); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.project-starter-card > span { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border)); color: var(--accent); font-size: 1.35rem; }
.project-starter-card h3 { margin: 0 0 5px; font-size: 1.1rem; }
.project-starter-card p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.project-starter-card > i { color: var(--accent); }
.project-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 28px; border: 1px solid var(--border); background: var(--border); }
.project-process article { min-width: 0; padding: 22px; background: var(--bg); }
.project-process span { color: var(--accent); font-size: 0.76rem; font-weight: 800; }
.project-process strong { display: block; margin: 20px 0 8px; font-size: 1.05rem; }
.project-process p { margin: 0; color: var(--muted); }
.project-process.five-step { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1024px) { .project-process.five-step { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.store-live-indicator { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.project-process.four-step { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .project-process.four-step { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .project-process.four-step { grid-template-columns: 1fr; } }

.showreel-frame { position: relative; }
.showreel-status-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: rgba(5, 7, 10, 0.78);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  transition: opacity 220ms ease;
}
.showreel-spinner { width: 36px; height: 36px; border: 3px solid rgba(255, 255, 255, 0.18); border-top-color: var(--accent); border-radius: 50%; animation: showreelSpin 800ms linear infinite; }
@keyframes showreelSpin { to { transform: rotate(360deg); } }
.showreel-roles { margin-top: 22px; }
.showreel-empty { padding: 60px 24px; text-align: center; border: 1px dashed var(--border); color: var(--muted); }

.showreel-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  background: var(--bg-2);
  color: var(--muted);
  transition: border-color 180ms ease, background 180ms ease;
}
.showreel-dropzone i { font-size: 2rem; color: var(--accent); }
.showreel-dropzone p { margin: 0; }
.showreel-dropzone.is-dragging { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); }
.showreel-upload-status { padding: 14px; border: 1px solid var(--border); background: var(--bg-2); display: grid; gap: 8px; }
.showreel-upload-status > div { display: flex; justify-content: space-between; gap: 12px; }
.showreel-upload-status strong { overflow-wrap: anywhere; }
.showreel-progress-bar { height: 8px; background: var(--border); overflow: hidden; }
.showreel-progress-bar > div { height: 100%; background: var(--accent); transition: width 200ms ease; }

.uploader-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.uploader-queue { width: 100%; display: grid; gap: 8px; margin-top: 6px; }
.uploader-queue-item { padding: 12px 14px; border: 1px solid var(--border); background: var(--bg-2); display: grid; gap: 6px; text-align: left; }
.uploader-queue-info { display: flex; justify-content: space-between; gap: 12px; }
.uploader-queue-info strong { overflow-wrap: anywhere; font-size: 0.88rem; }
.uploader-queue-info span { color: var(--muted); font-size: 0.8rem; flex: none; }
.uploader-queue-item small { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.product-files-panel { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.optional-preview-panel { opacity: 0.92; }
.optional-badge { display: inline-block; margin-left: 10px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; vertical-align: middle; }
.showreel-upload-status small { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.portfolio-category-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.portfolio-category-nav a { padding: 10px 14px; border: 1px solid var(--border); color: var(--muted); background: var(--surface); font-weight: 700; }
.portfolio-category-nav a:hover, .portfolio-category-nav a.is-active { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.portfolio-filter-bar { grid-template-columns: minmax(210px, 1.4fr) minmax(170px, .8fr) minmax(190px, 1fr) 130px auto; margin-bottom: 16px; }
.filter-search { position: relative; min-width: 0; }
.filter-search i { position: absolute; left: 15px; top: 50%; z-index: 1; color: var(--muted); transform: translateY(-50%); }
.filter-search .form-control { padding-left: 42px; }
.portfolio-result-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 38px; color: var(--muted); }
.portfolio-result-summary p { margin: 0; }
.portfolio-result-summary strong { color: var(--text); font-size: 1.25rem; }
.portfolio-result-summary .text-link { margin: 0; gap: 7px; flex: 0 0 auto; }
.portfolio-collections { display: grid; gap: clamp(72px, 9vw, 124px); }
.portfolio-collection { scroll-margin-top: 110px; }
.portfolio-collection > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.portfolio-collection > header > div { min-width: 0; }
.portfolio-collection > header > div > span { float: left; margin: 6px 14px 0 0; color: var(--accent); font-size: 0.78rem; font-weight: 800; }
.portfolio-collection > header h2 { margin: 2px 0 8px; font-size: clamp(1.8rem, 4vw, 3.4rem); }
.portfolio-collection > header p:last-child { max-width: 700px; margin: 0; color: var(--muted); }
.portfolio-collection > header > strong { color: var(--muted); white-space: nowrap; }
.curated-grid { align-items: start; }
.portfolio-empty { display: grid; justify-items: start; gap: 12px; }
.portfolio-empty i { color: var(--accent); font-size: 2rem; }
.portfolio-empty h2, .portfolio-empty p { margin: 0; }

.dashboard-toast {
  position: fixed;
  top: 92px;
  right: max(18px, calc((100vw - 1320px) / 2));
  z-index: 3500;
  width: min(460px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 36px;
  gap: 14px;
  align-items: center;
  padding: 16px 14px 16px 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
  animation: dashboardToastIn 520ms cubic-bezier(.19, 1, .22, 1) both;
}
.dashboard-toast-success { border-color: rgba(123, 201, 111, .48); }
.dashboard-toast-warning { border-color: rgba(230, 173, 99, .48); }
.dashboard-toast-danger { border-color: rgba(217, 101, 112, .58); }
.dashboard-toast-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-2); color: #071015; font-size: 1.25rem; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-2) 13%, transparent); animation: dashboardIconPop 620ms ease 180ms both; }
.dashboard-toast-warning .dashboard-toast-icon { background: #e6ad63; }
.dashboard-toast-danger .dashboard-toast-icon { background: #d96570; }
.dashboard-toast strong { display: block; margin-bottom: 3px; font-size: 1rem; }
.dashboard-toast p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.dashboard-toast > a { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); }
.dashboard-toast > a:hover { color: var(--text); }
.dashboard-toast-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent-2); transform-origin: left; animation: dashboardProgress 8s linear both; }
.dashboard-toast-warning .dashboard-toast-progress { background: #e6ad63; }
.dashboard-toast-danger .dashboard-toast-progress { background: #d96570; }
@keyframes dashboardToastIn { from { opacity: 0; transform: translate3d(32px, -12px, 0) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dashboardIconPop { from { transform: scale(.45) rotate(-25deg); } to { transform: scale(1) rotate(0); } }
@keyframes dashboardProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.analytics-layout { grid-template-columns: minmax(0, 1.65fr) minmax(290px, .55fr); }
.analytics-side { max-height: 760px; overflow-y: auto; padding-right: 2px; }
.visitor-list { max-height: 760px; }
.visitor-row { grid-template-columns: minmax(110px, .72fr) minmax(150px, 1fr) minmax(140px, .85fr) minmax(170px, 1.15fr); align-items: start; }
.visitor-row > div { min-width: 0; }
.visitor-row small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.visitor-row .visitor-time time { margin-bottom: 7px; font-size: .78rem; }
.visitor-row .visitor-time strong { color: var(--accent); }
.model-dot { background: #9b8cff; box-shadow: 0 0 18px rgba(155, 140, 255, .72); }
.location-dot { background: #64d3a0; box-shadow: 0 0 18px rgba(100, 211, 160, .65); }
.signal-list span small { display: block; margin-top: 3px; color: var(--muted); }
.analytics-note { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.delivery-stamp { display: flex !important; align-items: center; gap: 5px; margin-top: 7px; color: var(--accent-2) !important; font-weight: 700; }

.inquiry-form-alert { margin-top: 20px; }
.inquiry-main-column { display: grid; gap: 18px; min-width: 0; }
.dashboard-decision-form { display: grid; gap: 0; }
.form-section { display: grid; gap: 8px; padding: 20px; border-bottom: 1px solid var(--border); }
.form-section-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 3px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.private-note-section { background: color-mix(in srgb, var(--surface) 75%, transparent); }
.private-note-section .form-section-kicker { color: #e6ad63; }
.form-section label { margin-top: 7px; font-weight: 800; }
.form-section small { color: var(--muted); line-height: 1.45; }
.dashboard-decision-form .decision-actions { padding: 20px; }
.btn-quiet { border: 1px dashed var(--border); color: var(--muted); background: transparent; }
.btn-quiet:hover { border-color: #e6ad63; color: var(--text); }
.message-history ol { list-style: none; margin: 0; padding: 0; }
.message-history li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 13px; padding: 17px 18px; border-bottom: 1px solid var(--border); }
.history-status { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); }
.history-failed { background: color-mix(in srgb, #d96570 14%, transparent); color: #d96570; }
.history-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.history-heading strong { overflow-wrap: anywhere; }
.history-heading time { flex: 0 0 auto; color: var(--muted); font-size: .76rem; }
.message-history p { margin: 8px 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.message-history li small { color: var(--muted); text-transform: capitalize; }
.privacy-copy h2 { margin-top: 34px; color: var(--text); font-size: 1.25rem; }

@media (max-width: 1100px) {
  .portfolio-filter-bar { grid-template-columns: 1fr 1fr; }
  .portfolio-filter-bar .filter-search { grid-column: 1 / -1; }
  .portfolio-filter-bar .btn { width: 100%; }
  .visitor-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  .project-starter-grid { grid-template-columns: 1fr; }
  .analytics-side { max-height: none; overflow: visible; }
}

@media (max-width: 640px) {
  .project-starter-grid, .project-process, .portfolio-filter-bar, .visitor-row { grid-template-columns: 1fr; }
  .project-starter-card { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 16px; }
  .project-starter-card > span { width: 44px; height: 44px; }
  .portfolio-category-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .portfolio-category-nav a { flex: 0 0 auto; }
  .portfolio-filter-bar .filter-search { grid-column: auto; }
  .portfolio-result-summary, .portfolio-collection > header, .history-heading { align-items: flex-start; grid-template-columns: 1fr; flex-direction: column; }
  .portfolio-collection > header > strong { white-space: normal; }
  .dashboard-toast { top: 76px; right: 12px; width: calc(100vw - 24px); grid-template-columns: 42px minmax(0, 1fr) 32px; gap: 10px; padding: 14px 10px 14px 12px; }
  .dashboard-toast-icon { width: 42px; height: 42px; }
  .history-heading time { flex: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-toast, .dashboard-toast-icon, .dashboard-toast-progress { animation: none; }
  .project-starter-card, .reveal { transition: none; }
}

html[data-theme="light"] {
  --bg: #F6F7F8;
  --bg-2: #ECEFF1;
  --surface: #FFFFFF;
  --text: #111820;
  --text-secondary: #33404A;
  --muted: #56616D;
  --accent: #96690F;
  --accent-hover: #7A550C;
  --accent-2: #4F8F46;
  --success: #4F8F46;
  --warm: #B78000;
  --warning: #B78000;
  --danger: #C0393E;
  --border: rgba(17,24,32,0.13);
  --shadow: rgba(17,24,32,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
/* Khmer text keeps Kantumruy Pro even though the base UI font is now Inter — Inter has no
   Khmer glyphs, so anything actually written in Khmer needs the dedicated typeface. */
.khmer-line, .nav-link small, [lang="km"] { font-family: var(--font-khmer); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container,
.hero-copy,
.video-feature-copy,
.console-head > *,
.console-panel,
.project-card,
.service-item,
.discipline-link {
  min-width: 0;
}
h1, h2, h3, h4, h5, h6, p, a, span, strong, small, td, th, dd {
  overflow-wrap: break-word;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-150%);
  background: var(--accent);
  color: #031014;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.portfolio-nav {
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .portfolio-nav { background: rgba(246, 247, 248, 0.88); }
.navbar-brand span { display: block; color: var(--text); font-weight: 800; letter-spacing: 0; }
.navbar-brand small { display: block; color: var(--muted); font-size: 0.78rem; }
.navbar-toggler { border-color: var(--border); }
html:not([data-theme="light"]) .navbar-toggler-icon { filter: invert(1); }
.nav-link { color: var(--muted); padding: 12px 16px; }
.nav-link span, .nav-link small { display: block; }
.nav-link small { font-size: 0.7rem; color: #707782; }
.nav-link.active, .nav-link:hover { color: var(--text); }
.nav-link.active { border-bottom: 1px solid var(--accent); }
.mobile-drawer { background: var(--bg-2); color: var(--text); }
.mobile-nav-list .nav-link { padding: 14px 0; }
.message-stack { padding-top: 98px; }
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-left: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.05rem;
}
.nav-cart-link:hover { border-color: var(--accent); color: var(--accent); }
.nav-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1200;
  font-size: 0.66rem;
  font-weight: 800;
}
.mobile-nav-list + .nav-cart-link { margin: 18px auto 0; }
.nav-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 14px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.nav-account-pill:hover { border-color: var(--accent); color: var(--accent); }
.nav-account-pill.nav-account-admin { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--accent); }
.mobile-nav-list + .nav-account-pill { margin: 18px 0 0; width: 100%; justify-content: center; }
.mobile-theme-toggle {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
}

.hero-section {
  position: relative;
  min-height: 88vh;
  padding: 118px 0 72px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 55%, color-mix(in srgb, var(--bg) 55%, transparent) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
}
.hero-grid, .split-section, .contact-grid, .case-grid, .timeline-grid, .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
}
.hero-copy h1, .page-hero h1, .project-detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 4.8rem);
  line-height: 1.02;
  font-weight: 700;
  max-width: 980px;
  text-wrap: balance;
}
.hero-copy h1 {
  font-size: clamp(2.25rem, 4.6vw, 4.55rem);
}
.hero-description, .lead-copy { font-size: clamp(1rem, 1.45vw, 1.18rem); max-width: 680px; color: var(--muted); }
.role-line { color: var(--accent); font-weight: 700; }
.khmer-line { color: var(--muted); font-size: 1rem; font-weight: 700; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { border-radius: 4px; font-weight: 700; padding: 12px 18px; }
.button-row .btn,
.showreel-panel .btn,
.request-actions .btn,
.decision-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-accent { background: var(--accent); color: #031014; border: 1px solid var(--accent); }
.btn-accent:hover { background: #6edcff; border-color: #6edcff; color: #031014; }
.btn-outline-light {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}
.btn-outline-light:hover {
  color: #031014;
  border-color: var(--text);
  background: var(--text);
}
.btn-outline-danger {
  color: #ffb3b3;
  border-color: rgba(255, 120, 120, 0.34);
  background: transparent;
}
.btn-outline-danger:hover {
  color: #1b0708;
  border-color: #ffb3b3;
  background: #ffb3b3;
}
.hero-visual { min-height: auto; }
.profile-stage {
  position: relative;
  min-height: clamp(560px, 62vw, 720px);
  display: flex;
  align-items: end;
  justify-content: center;
  padding-top: 86px;
}
.profile-frame {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 0.78 / 1;
  overflow: visible;
  border: 2px solid color-mix(in srgb, var(--accent) 58%, var(--border));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 38%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--success) 16%, transparent) 54%, transparent),
    var(--surface);
  box-shadow: 0 32px 82px var(--shadow);
}
.profile-frame::before,
.profile-frame::after {
  content: "";
  position: absolute;
  border: 1px solid var(--border);
  pointer-events: none;
}
.profile-frame::before {
  inset: 18px;
  border-color: rgba(255,255,255,0.15);
}
html[data-theme="light"] .profile-frame::before { border-color: rgba(17,24,32,0.12); }
.profile-frame::after {
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 26%;
  background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 86%, transparent), transparent);
  border: 0;
}
.profile-portrait {
  position: absolute;
  left: 50%;
  bottom: -6%;
  z-index: 1;
  width: 84%;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 30px rgba(0,0,0,0.36));
  -webkit-mask-image: linear-gradient(to bottom, #000 0 76%, rgba(0,0,0,0.96) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 76%, rgba(0,0,0,0.96) 82%, transparent 100%);
}
.profile-frame-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
}
.profile-frame-copy span,
.profile-glass-note span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}
.profile-frame-copy strong,
.profile-glass-note strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.2;
}
.profile-glass-note {
  position: absolute;
  z-index: 3;
  right: clamp(0px, 2vw, 26px);
  bottom: 10%;
  max-width: 240px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px var(--shadow);
}
.web-cover-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 2.63 / 1;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  animation: coverRise 900ms ease both;
}
.web-cover-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(11,13,16,0.96), rgba(11,13,16,0));
  pointer-events: none;
}
.web-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.02);
}
.web-cover-frame figcaption {
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 1;
}
.web-cover-frame figcaption span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}
.web-cover-frame figcaption strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  line-height: 1.15;
}
@keyframes coverRise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-marquee {
  position: relative;
  height: 50px;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-2) 88%, var(--surface));
  contain: layout paint;
}
.tool-marquee::before,
.tool-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 72px;
  height: 100%;
  pointer-events: none;
}
.tool-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.tool-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}
.tool-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  height: 48px;
  gap: 26px;
  padding: 0 26px;
  animation: toolScroll 34s linear infinite;
  will-change: transform;
}
.tool-logo {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  opacity: 0.84;
  filter: saturate(1.02);
}
.tool-logo img,
.tool-marquee img,
.tool-track img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  display: block !important;
}
@keyframes toolScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

.section { padding: clamp(72px, 9vw, 132px) 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-heading h2, .split-section h2, .cta-section h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.8vw, 3.6rem); line-height: 1.05; max-width: 780px; }
.portfolio-collection > header h2, .project-detail-hero h2 { font-family: var(--font-display); font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.editorial-grid .project-card:nth-child(2), .editorial-grid .project-card:nth-child(5) { transform: translateY(42px); }
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.14), transparent 80%);
  transform: translateX(-130%);
  transition: transform 700ms ease;
}
.project-card:hover {
  transform: translateY(-10px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 24px 70px rgba(0,0,0,0.36);
}
.project-card:hover::after { transform: translateX(130%); }
.project-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.project-media img,
.project-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.project-card:hover img { transform: scale(1.06) rotate(0.7deg); }
.poster-card .project-media {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent),
    var(--bg-2);
}
.poster-card .project-media img {
  object-fit: contain;
  padding: 16px;
}
.poster-card:hover img {
  transform: scale(1.025);
}
.project-placeholder { height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #151a20, #20252d); color: var(--muted); }
.text-badge { display: inline-flex; width: fit-content; border: 1px solid var(--border); color: var(--muted); font-size: 0.78rem; padding: 5px 8px; }
/* Badges live in the card body, never overlaid on the image — an overlay anchored to a
   corner can end up floating in empty letterbox space for a tall/narrow source image,
   disconnected from the visible artwork. */
.card-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.card-badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-secondary); font-size: 0.72rem; font-weight: 700; padding: 5px 9px; border-radius: 4px; }
.card-badge i { font-size: 0.7rem; }
.card-badge-accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--accent); }

.wishlist-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(11,13,16,0.72);
  backdrop-filter: blur(4px);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.wishlist-button:hover { border-color: var(--accent); transform: scale(1.06); }
.wishlist-button:disabled { opacity: 0.7; }
.wishlist-button.is-active { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
.wishlist-button-labeled .wishlist-button { position: static; width: 46px; height: 46px; font-size: 1.15rem; background: var(--bg-2); }
.product-price-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.store-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.cart-toggle-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 160ms ease, color 160ms ease;
}
.cart-toggle-button:hover { border-color: var(--accent); }
.cart-toggle-button.is-active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.add-to-cart-btn { width: 100%; justify-content: center; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid var(--border); background: var(--surface); padding: 14px; }
.cart-item.is-owned { opacity: 0.6; }
.cart-item-media { width: 84px; height: 84px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.cart-item-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-item-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.cart-item-price { margin: 0; color: var(--accent); font-weight: 700; }
.cart-item-price span { color: var(--muted); font-weight: 500; }
.cart-summary { position: sticky; top: 110px; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px minmax(0, 1fr); }
  .cart-item > button { grid-column: 1 / -1; justify-self: start; }
}
.project-card-body { padding: 20px; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.project-card h3 { font-size: 1.35rem; margin: 10px 0; }
.project-card p { color: var(--muted); }
.text-link { display: inline-flex; margin-top: 14px; color: var(--accent); font-weight: 700; }

.discipline-band { background: var(--bg-2); border-block: 1px solid var(--border); }
.discipline-grid, .service-grid, .skills-grid, .education-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}
.discipline-link, .service-item, .skill-group, .education-grid article {
  background: var(--bg);
  padding: 26px;
  min-height: 220px;
}
.education-grid span, .project-facts span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
}
.discipline-link span, .service-item span {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.discipline-link strong { display: block; margin-top: 60px; font-size: 1.35rem; }
.prose { color: var(--muted); font-size: 1.05rem; }
.narrow { max-width: 900px; }
.software-strip { border-block: 1px solid var(--border); background: var(--surface); }
.software-list { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 18px; }
.software-list span { border: 1px solid var(--border); padding: 8px 12px; color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span { border: 1px solid var(--border); padding: 6px 12px; color: var(--muted); background: var(--surface); font-size: 0.85rem; }
.project-facts .tag-cloud { margin-top: 4px; }
.project-facts .tag-cloud span { text-transform: none; font-size: 0.82rem; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid.large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-item h2, .service-item h3 { margin: 38px 0 12px; }
.service-item p { color: var(--muted); }
.video-feature-section {
  background: radial-gradient(circle at 75% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%), var(--bg);
}
.video-feature-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(320px, 1.26fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.video-feature-copy h2 {
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 1;
}
.video-feature-copy p {
  color: var(--muted);
  max-width: 560px;
}
.video-feature-player {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: #05070a;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0,0,0,0.42);
}
.video-feature-player::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(11,13,16,0.94), transparent);
  pointer-events: none;
}
.video-feature-fallback,
.video-feature-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-feature-fallback {
  filter: saturate(1.03) contrast(1.02);
}
.video-feature-player video {
  z-index: 1;
}
.video-feature-player.is-video-unavailable video {
  display: none;
}
.video-feature-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 42%),
    var(--surface);
}
.video-feature-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  background: rgba(244,244,242,0.92);
  color: #071015;
  font-weight: 800;
}
.showreel-panel, .cta-section { background: var(--surface); border: 1px solid var(--border); padding: clamp(28px, 6vw, 64px); }
.showreel-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.showreel-panel > div {
  min-width: 0;
}
.play-button { width: 84px; height: 84px; display: grid; place-items: center; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-size: 2.2rem; }
.video-modal { background: var(--bg); border: 1px solid var(--border); padding: 16px; }
.video-modal iframe, .video-modal video, .video-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }

.page-hero { padding: 160px 0 86px; }
.page-hero.compact { padding-bottom: 56px; }
.filter-bar { display: grid; grid-template-columns: minmax(180px, 1fr) 220px 160px auto auto; gap: 10px; margin-bottom: 32px; }
.form-control, .form-select { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 4px; min-height: 48px; }
.form-control:focus, .form-select:focus { background: var(--surface); color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 15%, transparent); }
.masonry-grid .project-card:nth-child(3n+2) .project-media { aspect-ratio: 4 / 5; }
.empty-state { grid-column: 1 / -1; border: 1px solid var(--border); padding: 28px; color: var(--muted); }
.pagination-row { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 42px; }

.project-detail-hero { padding: 150px 0 56px; }
.project-detail-hero p { color: var(--muted); max-width: 760px; font-size: 1.2rem; }
.project-kicker { display: flex; flex-wrap: wrap; gap: 10px; color: var(--accent); font-weight: 800; margin-bottom: 18px; }
.detail-cover { width: 100%; max-height: 760px; object-fit: cover; margin-top: 42px; }
.detail-video-frame {
  margin-top: 42px;
  aspect-ratio: 16 / 9;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  background: #05070a;
  overflow: hidden;
}
.detail-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.poster-detail-cover {
  max-height: min(86vh, 980px);
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(10px, 2vw, 22px);
}
.case-grid { align-items: start; grid-template-columns: 300px minmax(0, 1fr); }
.project-facts { position: sticky; top: 110px; border-top: 1px solid var(--border); }
.project-facts div { padding: 18px 0; border-bottom: 1px solid var(--border); }
.project-facts strong { display: block; margin-top: 4px; }
.case-copy section + section { margin-top: 46px; }
.case-copy p { color: var(--muted); }
.before-after, .gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.before-after img,
.gallery-item img,
.gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item { margin: 0; border: 1px solid var(--border); background: var(--surface); }
.gallery-item.full { grid-column: 1 / -1; }
.gallery-item.portrait img { aspect-ratio: 3 / 4; }
.gallery-item.landscape img, .gallery-item.full img { aspect-ratio: 16 / 9; }
.gallery-item figcaption { padding: 12px 14px; color: var(--muted); }
.project-nav { display: flex; justify-content: space-between; gap: 18px; }
.project-nav a { border: 1px solid var(--border); padding: 16px; color: var(--accent); }

.skill-group ul, .detail-list { list-style: none; padding: 0; margin: 0; }
.skill-group li, .detail-list li { padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.contact-grid { align-items: start; }
.contact-panel { border: 1px solid var(--border); background: var(--surface); padding: 26px; }
.contact-panel a, .contact-panel span { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.contact-panel i { color: var(--accent); width: 18px; }
.contact-panel p { color: var(--muted); margin-top: 28px; }
.inquiry-form { border: 1px solid var(--border); padding: 26px; background: var(--bg-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label { margin-bottom: 6px; color: var(--muted); }
.field-error { color: #ff9b9b; margin-top: 6px; }
.consent-row { margin: 22px 0; }

.success-celebration {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 8, 10, 0.72);
  backdrop-filter: blur(10px);
  animation: successFadeIn 220ms ease both;
}
.success-celebration.is-leaving {
  animation: successFadeOut 240ms ease both;
}
body.success-dialog-open { overflow: hidden; }
.success-card {
  position: relative;
  width: min(100%, 460px);
  padding: 34px 28px 30px;
  text-align: center;
  border: 1px solid rgba(123, 201, 111, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(123, 201, 111, 0.14), transparent 42%),
    var(--surface);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.5);
  animation: successPop 520ms cubic-bezier(.19, 1, .22, 1) both;
}
.success-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  z-index: 1;
}
.success-close:hover,
.success-close:focus-visible { border-color: var(--accent); color: var(--accent); }
.confirm-card {
  position: relative;
  width: min(100%, 480px);
  padding: 30px 26px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.5);
  animation: successPop 420ms cubic-bezier(.19, 1, .22, 1) both;
}
.confirm-card.is-resend { border-color: rgba(230, 173, 99, 0.5); }
.confirm-card h2 { margin: 4px 0 14px; font-size: 1.5rem; }
.confirm-card .confirm-subject { color: var(--muted); margin-bottom: 18px; }
.confirm-card .confirm-subject strong { color: var(--text); }
.confirm-card .confirm-warning { color: #e6ad63; font-size: 0.88rem; margin-bottom: 18px; }
.template-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.template-chip { border: 1px solid var(--border); background: transparent; color: var(--muted); padding: 6px 12px; font-size: 0.8rem; border-radius: 999px; }
.template-chip:hover { border-color: var(--accent); color: var(--text); }

.model-viewer-frame { position: relative; aspect-ratio: 16 / 10; border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent); background: #05070a; overflow: hidden; }
.model-viewer-frame model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.model-viewer-hint { position: absolute; left: 14px; bottom: 12px; margin: 0; color: var(--muted); font-size: 0.8rem; background: rgba(5,7,10,0.6); padding: 6px 10px; border-radius: 999px; pointer-events: none; }
.model-viewer-hint i { margin-right: 6px; }

.product-price { display: flex; align-items: baseline; gap: 8px; }
.product-price strong { font-size: 1.3rem; color: var(--accent); }
.product-price span { color: var(--muted); font-size: 0.85rem; }
.product-card .product-price { margin-top: 10px; }
.product-format-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.product-format-tags span { border: 1px solid var(--border); padding: 4px 9px; font-size: 0.74rem; color: var(--muted); }
.product-buy-panel { border: 1px solid var(--border); background: var(--surface); padding: 26px; position: sticky; top: 110px; }
.product-buy-panel .product-price strong { font-size: 2rem; }
.product-buy-panel .product-price { margin-bottom: 18px; }
.product-detail-facts { list-style: none; margin: 20px 0 0; padding: 0; }
.product-detail-facts li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.product-detail-facts li strong { color: var(--text); text-align: right; }
.product-quick-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.product-quick-specs span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--bg-2); padding: 6px 11px; font-size: 0.78rem; color: var(--text-secondary); border-radius: 999px; }
.product-quick-specs i { color: var(--success); font-size: 0.8rem; }
.product-trust-strip { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.product-trust-strip span { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.82rem; }
.product-trust-strip i { color: var(--accent); font-size: 0.95rem; width: 18px; text-align: center; }
.store-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 0.82rem; color: var(--muted); }
.store-breadcrumb a { color: var(--muted); }
.store-breadcrumb a:hover { color: var(--accent); }
.store-breadcrumb i { font-size: 0.62rem; }
.store-breadcrumb span:last-child { color: var(--text); }
.store-product-card .project-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent), var(--bg-2);
}
.store-product-card .project-media img { object-fit: contain; padding: 16px; }
.store-product-card:hover img { transform: scale(1.03); }

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 100vh;
}
.auth-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 6vw 60px clamp(24px, 6vw, 96px);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--bg-2);
  border-right: 1px solid var(--border);
}
.auth-split-copy h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.06; margin: 10px 0 16px; }
.auth-split-lede { color: var(--muted); font-size: 1.08rem; max-width: 480px; margin: 0 0 34px; }
.auth-benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 460px; }
.auth-benefit-list li { display: flex; gap: 16px; align-items: flex-start; }
.auth-benefit-list i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--accent); border-radius: 8px; font-size: 1.05rem; }
.auth-benefit-list strong { display: block; margin-bottom: 3px; }
.auth-benefit-list span { color: var(--muted); font-size: 0.92rem; }
.auth-split-form { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 140px 24px 60px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; border: 1px solid var(--border); background: var(--surface); padding: 34px; }
.auth-card .eyebrow { display: block; margin-bottom: 18px; }
@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; min-height: auto; }
  .auth-split-copy { padding: 116px 24px 44px; border-right: 0; border-bottom: 1px solid var(--border); }
  .auth-benefit-list { display: none; }
  .auth-split-form { padding: 44px 20px 60px; }
}

.account-hero-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.account-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.account-hero-head p { margin: 2px 0 0; color: var(--muted); }
.account-stat-row { display: flex; gap: 1px; background: var(--border); border: 1px solid var(--border); max-width: 560px; }
.account-stat-row article { flex: 1; background: var(--surface); padding: 16px 20px; }
.account-stat-row span { display: block; color: var(--muted); font-size: 0.74rem; text-transform: uppercase; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 6px; }
.account-stat-row strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
@media (max-width: 640px) {
  .account-hero-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .account-stat-row { max-width: none; }
}

.studio-section-title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 44px 0 20px; }
.studio-section-title:first-of-type { margin-top: 0; }
.studio-actions-panel { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.studio-action-list { list-style: none; margin: 0; padding: 0; }
.studio-action { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.studio-action:last-child { border-bottom: 0; }
.studio-action > i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 0.95rem; }
.studio-action > span { flex: 1; color: var(--text); }
.studio-action-action > i { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.studio-action-waiting > i { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.studio-action-issue > i { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.studio-action-good > i { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.account-order-card.studio-inquiry-card { display: block; padding: 24px; }
.studio-message-history { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.studio-message-history li { padding: 10px 0; }
.studio-message-history strong { display: block; margin-bottom: 4px; }
.studio-message-history p { margin: 0 0 4px; color: var(--muted); }
.studio-message-history time { color: var(--muted); font-size: 0.76rem; }

.account-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.account-toolbar form { margin: 0; }

.account-order-list { display: grid; gap: 20px; }
.account-order-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 22px;
  transition: border-color 200ms ease;
}
.account-order-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.account-order-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent), var(--bg-2);
  display: grid;
  place-items: center;
}
.account-order-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.account-order-body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.account-order-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; flex-wrap: wrap; }
.account-order-head h3 { margin: 0 0 4px; }
.account-order-body .content-item-list { margin: 0; }
@media (max-width: 720px) {
  .account-order-card { grid-template-columns: 1fr; }
  .account-order-media { aspect-ratio: 16 / 10; }
}
.success-check {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #7BC96F;
  box-shadow: 0 0 0 12px rgba(123, 201, 111, 0.13), 0 18px 44px rgba(123, 201, 111, 0.3);
  animation: checkPulse 900ms ease 260ms both;
}
.success-check::before {
  content: "";
  width: 38px;
  height: 20px;
  border-left: 6px solid #071015;
  border-bottom: 6px solid #071015;
  transform: rotate(-45deg) translate(3px, -2px);
}
.success-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}
.success-card p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
  font-weight: 700;
}
.success-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.success-actions .success-play { margin-top: 0; }
.success-play.is-playing { border-color: #7BC96F; color: #7BC96F; }
.success-hint {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}
@media (max-width: 520px) {
  .success-celebration { padding: 14px; }
  .success-card { padding: 30px 18px 24px; }
  .success-check { width: 72px; height: 72px; }
  .success-actions { display: grid; }
  .success-actions .btn { width: 100%; }
}
@keyframes successFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes successFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes successPop {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes checkPulse {
  0% { transform: scale(0.9); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.site-footer { padding: 70px 0 24px; background: #07090c; border-top: 1px solid var(--border); }
html[data-theme="light"] .site-footer { background: #E5E9EC; }
.footer-contact a, .footer-contact span { display: block; margin-bottom: 10px; color: var(--muted); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); }
.muted { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); }

.simple-lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,0.92); }
.simple-lightbox img { max-height: 88vh; max-width: 94vw; }
.simple-lightbox button { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.24); background: #0B0D10; color: #fff; font-size: 28px; }

.dashboard-auth,
.dashboard-hero {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.login-form {
  max-width: 520px;
  margin: 0 auto;
}
.login-form input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  min-height: 48px;
  border-radius: 4px;
  padding: 10px 12px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.metric-card,
.dashboard-panel {
  border: 1px solid var(--border);
  background: var(--surface);
}
.metric-card {
  min-height: 150px;
  padding: 20px;
}
.metric-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.metric-card strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}
.dashboard-panel { padding: 22px; }
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.panel-heading h2 {
  margin: 0;
  font-size: 1.4rem;
}
.panel-heading span { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.dashboard-panel table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.dashboard-panel th,
.dashboard-panel td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.dashboard-panel th {
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
}
.dashboard-panel td small {
  display: block;
  color: var(--muted);
}
.dashboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.dashboard-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.mt-panel { margin-top: 28px; }
.inquiry-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.inquiry-card {
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 18px;
}
.inquiry-card h3 { margin: 10px 0; }
.inquiry-card p,
.inquiry-card dd { color: var(--muted); }
.inquiry-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}
.inquiry-card dt {
  color: var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
}
.inquiry-card dd { margin: 0; overflow-wrap: anywhere; }

/* Admin operations console shell — hides the public marketing chrome and
   replaces it with a persistent, information-dense sidebar. */
body:has(.admin-shell) .portfolio-nav,
body:has(.admin-shell) .site-footer,
body:has(.admin-shell) .skip-link {
  display: none;
}
.admin-shell { display: flex; min-height: 100vh; background: var(--bg); align-items: stretch; }
.admin-sidebar {
  flex: 0 0 264px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 26px 18px;
}
.admin-sidebar-brand { display: block; padding: 0 10px 24px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.admin-sidebar-brand span { display: block; color: var(--text); font-weight: 800; font-size: 0.95rem; }
.admin-sidebar-brand small { display: block; color: var(--accent); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.admin-sidebar-nav { flex: 1; }
.admin-sidebar-group { margin-bottom: 22px; }
.admin-sidebar-group p { padding: 0 10px; margin: 0 0 6px; color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.admin-sidebar-group ul { list-style: none; margin: 0; padding: 0; }
.admin-sidebar-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-sidebar-group a i { width: 18px; text-align: center; color: var(--muted); }
.admin-sidebar-group a:hover { background: var(--bg-2); color: var(--text); }
.admin-sidebar-group a.is-active { background: color-mix(in srgb, var(--accent) 14%, var(--bg-2)); color: var(--accent); }
.admin-sidebar-group a.is-active i { color: var(--accent); }
.admin-sidebar-foot { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar-foot a, .admin-sidebar-foot button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.admin-sidebar-foot a:hover, .admin-sidebar-foot button:hover { background: var(--bg-2); color: var(--text); }
.admin-sidebar-foot i { width: 18px; text-align: center; }
.admin-content { flex: 1; min-width: 0; }
.admin-content .dashboard-console { padding: 40px 0 60px; background: var(--bg); }
.admin-mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1040;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.2rem;
}
.admin-mobile-drawer { background: var(--bg-2); color: var(--text); width: 280px; }
@media (max-width: 1024px) {
  .admin-sidebar { display: none; }
  .admin-mobile-toggle { display: grid; place-items: center; }
  .admin-content .dashboard-console { padding-top: 84px; }
}

.dashboard-console {
  min-height: 100vh;
  padding: 132px 0 82px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 28%),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto, auto;
}
html[data-theme="light"] .dashboard-console {
  background:
    linear-gradient(90deg, rgba(17,24,32,0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,24,32,0.04) 1px, transparent 1px),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 28%),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto, auto;
}
.console-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.console-head h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 0.98;
}
.console-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
}
.console-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dashboard-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 20px 0 0;
  border-radius: 0;
}
.dashboard-notice a { flex: 0 0 auto; font-weight: 800; }
.dashboard-operations {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  margin-top: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.live-refresh,
.delivery-readiness,
.decision-delivery-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.live-refresh-state,
.delivery-readiness span,
.decision-delivery-state span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.live-refresh small { color: var(--muted); }
.live-refresh-button { min-height: 38px; padding: 7px 11px; }
.status-dot.is-refreshing { animation: livePulse 700ms ease-in-out infinite alternate; }
.delivery-readiness { justify-content: flex-end; }
.delivery-readiness span,
.decision-delivery-state span { font-size: 0.82rem; }
.delivery-readiness .is-ready,
.decision-delivery-state .is-ready { color: var(--accent-2); }
.delivery-readiness .needs-setup,
.decision-delivery-state .needs-setup { color: #e6ad63; }
.decision-delivery-state {
  display: grid;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
@keyframes livePulse {
  from { opacity: 0.42; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1.16); }
}
.signal-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  background: var(--border);
  border: 1px solid var(--border);
}
.signal-strip article {
  min-height: 116px;
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}
.signal-strip span,
.console-panel-head small,
.visitor-row time,
.visitor-row span,
.ticket-top time,
.ticket-meta span {
  color: var(--muted);
}
.signal-strip span {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}
.signal-strip strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(2.1rem, 4.2vw, 4.8rem);
  line-height: 0.88;
}
.console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
  gap: 18px;
  align-items: start;
}
.console-side {
  display: grid;
  gap: 18px;
}
.console-panel {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 70px var(--shadow);
}
.console-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.console-panel-head div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.console-panel-head h2 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
}
.status-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px var(--accent-2);
}
.muted-dot { background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.warm-dot { background: var(--warm); box-shadow: 0 0 18px var(--warm); }
.message-dot { background: #D96570; box-shadow: 0 0 18px rgba(217,101,112,0.7); }
.visitor-list {
  max-height: 590px;
  overflow: auto;
}
.visitor-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.visitor-row:hover,
.message-ticket:hover {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.visitor-row strong,
.visitor-row span {
  display: block;
  overflow-wrap: anywhere;
}
.signal-list {
  list-style: none;
  margin: 0;
  padding: 6px 18px 12px;
}
.signal-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.signal-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.page-list span {
  max-width: 220px;
}
.message-board {
  margin-top: 18px;
}
.request-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.request-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: var(--surface);
}
.request-table th,
.request-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.request-table th {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.request-table td strong,
.request-table td a {
  display: block;
  color: var(--text);
  overflow-wrap: anywhere;
}
.request-table td small {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.status-new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 44%, var(--border)); }
.status-accepted { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 52%, var(--border)); }
.status-declined { color: #ffb3b3; border-color: rgba(255, 120, 120, 0.34); }
.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.request-actions .btn {
  min-height: 42px;
  padding: 9px 12px;
}
.content-editor-panel + .content-editor-panel { margin-top: 18px; }
.content-item-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.content-item-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.content-item-form.is-new { border-style: dashed; }
.content-item-form .form-field { display: flex; flex-direction: column; min-width: 0; }
.content-item-form .form-field label { font-size: 0.74rem; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.content-item-actions { display: flex; gap: 8px; align-self: end; flex-wrap: wrap; }
.message-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}
.message-ticket {
  min-height: 300px;
  padding: 18px;
  background: var(--surface);
}
.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.message-ticket h3 {
  margin: 18px 0 8px;
  font-size: 1.22rem;
}
.message-ticket p {
  color: var(--muted);
  min-height: 82px;
}
.ticket-meta {
  display: grid;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ticket-meta span {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.compact-console-head h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}
.inquiry-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}
.inquiry-detail-body {
  padding: 20px;
}
.detail-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--border);
}
.detail-matrix div {
  min-height: 112px;
  padding: 14px;
  background: var(--bg-2);
}
.detail-matrix dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.detail-matrix dd {
  margin: 10px 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.message-copy {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.message-copy h2 {
  font-size: 1rem;
  text-transform: uppercase;
}
.message-copy p {
  color: var(--muted);
  margin-bottom: 0;
}
.dashboard-decision-form {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.dashboard-decision-form label {
  color: var(--muted);
  font-weight: 800;
}
.review-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.review-toggle input {
  width: 18px;
  height: 18px;
}
.client-contact-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.client-contact-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.client-contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.client-contact-card i {
  color: var(--accent);
}
.decision-actions {
  display: grid;
  gap: 10px;
}
.decision-actions .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

@media (max-width: 991px) {
  .hero-grid, .split-section, .contact-grid, .case-grid, .timeline-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-section { min-height: auto; padding-bottom: 54px; }
  .hero-visual { min-height: auto; padding-left: 0; border-left: 0; }
  .project-grid, .service-grid, .service-grid.large, .skills-grid, .education-grid, .discipline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-feature-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .project-facts { position: static; }
  .profile-stage { min-height: 620px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-columns, .inquiry-admin-grid { grid-template-columns: 1fr; }
  .console-head,
  .console-layout {
    grid-template-columns: 1fr;
  }
  .inquiry-detail-layout {
    grid-template-columns: 1fr;
  }
  .console-actions {
    justify-content: start;
  }
  .dashboard-operations {
    align-items: flex-start;
    flex-direction: column;
  }
  .delivery-readiness { justify-content: flex-start; }
  .signal-strip,
  .message-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .navbar-brand span { font-size: 0.9rem; }
  .navbar-brand small { font-size: 0.7rem; }
  .section { padding: 54px 0; }
  .page-hero { padding: 118px 0 52px; }
  .page-hero.compact { padding-bottom: 38px; }
  .hero-section { padding: 96px 0 44px; }
  .hero-copy h1,
  .page-hero h1,
  .project-detail-hero h1,
  .console-head h1 {
    font-size: clamp(1.9rem, 10.5vw, 3.15rem);
    line-height: 1.08;
    hyphens: auto;
  }
  .hero-description,
  .lead-copy,
  .khmer-line {
    font-size: 0.96rem;
  }
  .button-row,
  .console-actions,
  .request-actions {
    width: 100%;
  }
  .button-row .btn,
  .console-actions .btn,
  .showreel-panel .btn {
    width: 100%;
    justify-content: center;
  }
  .project-grid, .service-grid, .service-grid.large, .skills-grid, .education-grid, .discipline-grid, .form-grid, .before-after, .gallery-grid, .filter-bar { grid-template-columns: 1fr; }
  .editorial-grid .project-card:nth-child(2), .editorial-grid .project-card:nth-child(5) { transform: none; }
  .section-heading, .showreel-panel, .footer-bottom, .project-nav { align-items: start; flex-direction: column; }
  .form-field.wide { grid-column: auto; }
  .profile-stage { min-height: 540px; padding-top: 72px; }
  .profile-frame { width: min(88vw, 420px); }
  .profile-portrait { width: 88%; bottom: -5%; }
  .profile-glass-note {
    left: 16px;
    right: 16px;
    bottom: 6%;
    max-width: none;
  }
  .dashboard-grid, .inquiry-card dl { grid-template-columns: 1fr; }
  .signal-strip,
  .message-grid,
  .visitor-row,
  .detail-matrix {
    grid-template-columns: 1fr;
  }
  .dashboard-console {
    padding-top: 96px;
    padding-bottom: 54px;
    background-size: 40px 40px, 40px 40px, auto, auto;
  }
  .dashboard-notice,
  .dashboard-operations { align-items: stretch; flex-direction: column; }
  .dashboard-notice a { width: fit-content; }
  .live-refresh { align-items: flex-start; }
  .live-refresh-button { width: 100%; justify-content: center; }
  .signal-strip article {
    min-height: 94px;
    padding: 14px;
  }
  .signal-strip strong {
    font-size: clamp(1.8rem, 11vw, 3rem);
  }
  .console-panel-head {
    align-items: start;
    flex-direction: column;
  }
  .request-table {
    min-width: 0;
    background: transparent;
  }
  .request-table,
  .request-table tbody,
  .request-table tr,
  .request-table td {
    display: block;
    width: 100%;
  }
  .request-table thead {
    display: none;
  }
  .request-table tr {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
  .request-table td {
    padding: 10px 0;
    border-bottom: 0;
  }
  .request-table td + td {
    border-top: 1px solid var(--border);
  }
  .request-actions .btn,
  .request-actions form {
    width: 100%;
  }
  .request-actions .btn {
    justify-content: center;
  }
  .visitor-list {
    max-height: none;
  }
  .tool-marquee {
    height: 46px;
  }
  .tool-track {
    height: 44px;
    gap: 20px;
  }
  .tool-logo {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
  .tool-logo img,
  .tool-marquee img,
  .tool-track img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }
}

/* Keep the new layouts authoritative after the legacy responsive layer. */
.portfolio-filter-bar { grid-template-columns: minmax(210px, 1.4fr) minmax(170px, .8fr) minmax(190px, 1fr) 130px auto; }
.analytics-layout { grid-template-columns: minmax(0, 1.65fr) minmax(290px, .55fr); }
.visitor-row { grid-template-columns: minmax(110px, .72fr) minmax(150px, 1fr) minmax(140px, .85fr) minmax(170px, 1.15fr); }

@media (max-width: 1100px) {
  .portfolio-filter-bar { grid-template-columns: 1fr 1fr; }
  .portfolio-filter-bar .filter-search { grid-column: 1 / -1; }
  .visitor-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  .analytics-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .portfolio-filter-bar, .visitor-row { grid-template-columns: 1fr; }
  .portfolio-filter-bar .filter-search { grid-column: auto; }
}

