/* MCR 3D portfolio: warm type, slate surfaces and the real captured products. */
:root {
  --bg: #282632;
  --panel: #343240;
  --text: #f1eee7;
  --muted: #c5c0ce;
  --line: #625c70;
  --accent: #e4a986;
  --portfolio-pad: clamp(22px, 4.5vw, 76px);
}

body { background: var(--bg); color: var(--text); }
body::selection { color: #282632; background: #e4a986; }
.header, .footer { border-color: var(--line); }
.header nav a, .footer a, .footer button { min-height: 44px; }
.brand .framed-brand { width: 145px; }
.footer .brand .framed-brand { width: 125px; }
.hero-image, .stage figure { background: #302e3b; }
.model-note strong, .promise strong { color: var(--accent); }
.button { background: var(--accent); border-color: var(--accent); color: #282632; }
.button:hover { background: #f2c3a7; color: #282632; }
.included, .deliverables { background: var(--panel); }
.header nav a:focus-visible, .footer a:focus-visible, .footer button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

/* The homepage is deliberately a portfolio rather than a stack of sales panels. */
body.portfolio-page { overflow-x: clip; }
.portfolio-page .wrap { width: min(100%, 1700px); padding-inline: var(--portfolio-pad); }
.portfolio-page .header {
  min-height: 104px;
  gap: 35px;
  border-bottom: 0;
}
.portfolio-page .header .brand .framed-brand { width: 145px; }
.portfolio-page .header .location { font-size: 12px; color: var(--muted); }
.portfolio-page .header nav { gap: clamp(22px, 3vw, 45px); font-size: 13px; }
.portfolio-page .header .nav-contact { gap: 10px; }
.portfolio-page .header nav a[aria-current] { text-decoration: none; color: var(--accent); }
.portfolio-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px 70px;
  padding-top: clamp(35px, 5.5vw, 86px);
  padding-bottom: clamp(38px, 4.5vw, 66px);
}
.portfolio-kicker {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.portfolio-intro h1 {
  margin: 0;
  max-width: 900px;
  color: var(--text);
  font-size: clamp(55px, 6.6vw, 90px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -.058em;
}
.portfolio-intro h1 em { font-weight: inherit; color: var(--accent); }
.portfolio-subtitle {
  flex: 0 1 295px;
  max-width: 330px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.portfolio-subtitle a { text-decoration: underline; text-underline-offset: 5px; }
.portfolio-gallery { padding-bottom: clamp(40px, 5vw, 75px); }
.gallery-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  margin-bottom: 14px;
}
.gallery-count { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.gallery-tools > div { display: flex; gap: 6px; }
.gallery-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 24px;
  line-height: 1;
}
.gallery-tools button:hover { border-color: var(--line); color: var(--accent); }
.gallery-tools button:disabled { opacity: .4; cursor: default; }
.asset-rail {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 2.25vw, 34px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #95899f transparent;
  padding: 0 0 17px;
}
.asset-rail::-webkit-scrollbar { height: 5px; }
.asset-rail::-webkit-scrollbar-thumb { background: #95899f; }
.asset-card {
  flex: 0 0 clamp(260px, 31vw, 470px);
  min-width: 0;
  scroll-snap-align: start;
}
.asset-art {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  isolation: isolate;
  overflow: hidden;
  background: var(--asset-bg, #343240);
}
.asset-poster, .asset-live {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.asset-poster { opacity: 1; }
.asset-poster img, img.asset-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.asset-live { pointer-events: none; background: transparent; --poster-color: transparent; }
.asset-live model-viewer, model-viewer.asset-live {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
  --poster-color: transparent;
}
.asset-live[hidden], .asset-poster[hidden] { display: none; }
.asset-open {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
.asset-open > span { display: none; }
.asset-open::after {
  content: '↗';
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border: 1px solid #f1eee78c;
  background: #282632a6;
  color: #f1eee7;
  font: 21px/1 Arial, Helvetica, sans-serif;
}
.asset-open:hover::after { border-color: var(--accent); background: #282632e8; color: var(--accent); }
.asset-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
.asset-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 18px;
  align-items: start;
  padding-top: 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.asset-caption h2, .asset-caption h3, .asset-name {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.01em;
}
.asset-caption p { margin: 0; }
.asset-index { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-align: right; }
.asset-material { grid-column: 1; color: var(--muted); font-size: 11px; }
.asset-status { color: var(--accent); font-size: 10px; line-height: 1.55; }
.asset-unavailable {
  display: flex;
  align-items: flex-end;
  position: absolute;
  inset: 0;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  background: var(--asset-bg, #343240);
}
.asset-unavailable p { max-width: 250px; }
.portfolio-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px 90px;
  padding-top: clamp(32px, 4vw, 55px);
  padding-bottom: clamp(44px, 5vw, 74px);
  border-top: 1px solid var(--line);
}
.portfolio-proof h2 { font-size: clamp(28px, 3.1vw, 43px); line-height: 1.13; font-weight: 500; letter-spacing: -.04em; max-width: 630px; }
.portfolio-proof p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 520px; }
.portfolio-proof strong { color: var(--text); font-weight: 500; }
.portfolio-proof .text-link { color: var(--text); margin-top: 7px; }
.portfolio-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 30px;
  padding-top: 26px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}
.portfolio-contact p { color: var(--muted); font-size: 13px; }
.portfolio-contact .email { margin: 0; gap: 20px; font-size: clamp(23px, 2.4vw, 34px); border: 0; }
.portfolio-page .footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px 30px; padding-top: 18px; padding-bottom: 24px; }
.portfolio-page .footer p { font-size: 11px; }
.portfolio-page .footer > div { margin-left: auto; font-size: 11px; gap: 8px 22px; }

/* One selected asset at a time; product stages stay free of text and controls. */
.asset-dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: var(--bg);
  box-shadow: 0 18px 100px #16131d99;
}
.asset-dialog::backdrop { background: #17131fce; backdrop-filter: blur(5px); }
.asset-dialog:not([open]) { display: none; }
.asset-dialog-header, .asset-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}
.asset-dialog h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.03em; }
.asset-dialog-header button, .asset-dialog > header button, .asset-dialog [data-asset-close] {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.asset-dialog-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); }
.asset-detail-stage { position: relative; min-width: 0; height: min(65svh, 680px); min-height: 350px; background: var(--asset-bg, #343240); }
.asset-detail-stage model-viewer, .asset-detail-stage > img { display: block; width: 100%; height: 100%; background: transparent; --poster-color: transparent; }
.asset-detail-stage > img { object-fit: contain; }
.asset-detail-info { min-width: 0; padding: clamp(24px, 3vw, 35px); }
.asset-detail-info h3 { font-size: 20px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 16px; }
.asset-detail-info p { margin: 0 0 18px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.asset-detail-info strong { color: var(--text); font-weight: 500; }
.asset-detail-info .model-load-status { margin: 0 0 18px; }
.asset-detail-info .button, .asset-detail-info .text-link { min-height: 44px; margin: 6px 0 18px; }
.asset-detail-info .button { min-width: 190px; justify-content: space-between; }
.asset-detail-info .phone-qr { width: 148px; margin: 12px 0 0; }
.asset-detail-info .phone-qr img { width: 132px; height: 132px; background: #fff; }
.asset-detail-info figure figcaption { max-width: 180px; font-size: 11px; line-height: 1.55; color: var(--muted); margin-top: 9px; }
.asset-detail-info .asset-detail-status, .asset-detail-info .asset-status { color: var(--accent); font-size: 12px; }
.asset-dialog a:focus-visible, .asset-dialog button:focus-visible, .asset-dialog model-viewer:focus-visible, .gallery-tools button:focus-visible, .asset-rail:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Existing page structure is retained; the same palette carries through the site. */
body:not(.portfolio-page) .header { min-height: 104px; }
body:not(.portfolio-page) .phone-header { min-height: 88px; }
body:not(.portfolio-page) .page-heading, body:not(.portfolio-page) .about-page { padding-top: 55px; }
.analytics-banner, .analytics-dialog { color: var(--text); background: #302d3b; border-color: #756d83; }
.analytics-banner a, .analytics-dialog a { color: var(--accent); }
.analytics-banner button, .analytics-dialog button { color: var(--text); background: #302d3b; border-color: var(--accent); }
.analytics-banner button:hover, .analytics-dialog button:hover { background: #40394b; }
.analytics-tool { border-color: #756d83; }
.analytics-tool input { accent-color: var(--accent); }
.analytics-banner button:focus-visible, .analytics-dialog button:focus-visible, .analytics-dialog input:focus-visible, .analytics-banner a:focus-visible, .analytics-dialog a:focus-visible, [data-cookie-settings]:focus-visible { outline-color: var(--accent); }

@media (max-width: 1000px) {
  .portfolio-intro { gap: 30px; }
  .portfolio-subtitle { flex-basis: 250px; font-size: 14px; }
  .asset-card { flex-basis: clamp(260px, 40vw, 420px); }
  .portfolio-proof { gap: 35px 45px; }
  .asset-dialog-grid { grid-template-columns: minmax(0, 1.4fr) minmax(235px, 1fr); }
}

@media (max-width: 700px) {
  .portfolio-page .header { min-height: 88px; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .portfolio-page .header .brand .framed-brand { width: 112px; }
  .portfolio-page .header nav { gap: 12px; font-size: 12px; }
  .portfolio-page .header .nav-contact { font-size: 12px; gap: 0; }
  .portfolio-page .header .nav-contact span { display: none; }
  .portfolio-intro { display: block; padding-top: 33px; padding-bottom: 34px; }
  .portfolio-kicker { font-size: 10px; letter-spacing: .1em; margin-bottom: 18px; }
  .portfolio-intro h1 { font-size: clamp(49px, 10.7vw, 72px); line-height: 1.03; letter-spacing: -.055em; }
  .portfolio-subtitle { margin-top: 23px; max-width: 410px; font-size: 14px; line-height: 1.75; }
  .portfolio-gallery { padding-bottom: 38px; }
  .gallery-tools { margin-bottom: 10px; }
  .gallery-count { font-size: 10px; letter-spacing: .075em; }
  .asset-rail { gap: 18px; overflow-x: auto; }
  .asset-card { flex-basis: min(82vw, calc(100% - 32px), 410px); }
  .asset-caption { gap: 5px 12px; padding-top: 13px; font-size: 11px; }
  .asset-caption h2, .asset-caption h3, .asset-name { font-size: 14px; }
  .portfolio-proof { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; padding-bottom: 38px; }
  .portfolio-proof h2 { font-size: 32px; }
  .portfolio-proof p { font-size: 14px; }
  .portfolio-contact { display: block; padding-top: 25px; padding-bottom: 28px; }
  .portfolio-contact .email { display: inline-flex; margin-top: 13px; font-size: clamp(22px, 5.6vw, 30px); gap: 14px; }
  .portfolio-page .footer { display: flex; gap: 12px 20px; align-items: center; }
  .portfolio-page .footer .brand .framed-brand { width: 115px; }
  .portfolio-page .footer p { flex-basis: 100%; order: 3; }
  .portfolio-page .footer > div { gap: 7px 15px; font-size: 11px; margin-left: auto; }
  .asset-dialog { width: calc(100% - 20px); max-height: calc(100svh - 20px); }
  .asset-dialog-header, .asset-dialog > header { padding: 12px 16px; gap: 15px; }
  .asset-dialog h2 { font-size: 21px; }
  .asset-dialog-grid { grid-template-columns: 1fr; }
  .asset-detail-stage { height: clamp(330px, 53svh, 550px); min-height: 0; }
  .asset-detail-info { padding: 24px 20px; }
  .asset-detail-info .button { width: 100%; }
  .asset-detail-info .phone-qr { display: none; }
  body:not(.portfolio-page) .header { min-height: 88px; }
  body:not(.portfolio-page) .header-with-about { gap: 10px; }
  body:not(.portfolio-page) .phone-header { min-height: 78px; }
  body:not(.portfolio-page) .brand .framed-brand { width: 128px; }
  body:not(.portfolio-page) .header-with-about .brand .framed-brand { width: 118px; }
  .phone-header > .text-link { flex: 0 1 155px; min-width: 0; line-height: 1.4; text-align: right; }
}

@media (max-width: 380px) {
  .portfolio-page .header { min-height: 116px; flex-wrap: wrap; gap: 0; padding-top: 15px; padding-bottom: 10px; }
  .portfolio-page .header .brand { flex-basis: 100%; }
  .portfolio-page .header nav { width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; }
  .portfolio-intro h1 { font-size: 48px; }
  .portfolio-kicker { max-width: 230px; }
  .gallery-count { max-width: 170px; }
  .portfolio-page .footer > div { margin-left: 0; }
  body:not(.portfolio-page) .header-with-about { min-height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  .asset-rail { scroll-behavior: auto; scroll-snap-type: none; }
  .portfolio-page *, .asset-dialog * { animation: none !important; transition: none !important; }
}

.gallery-hint{font-size:11px;color:var(--muted);margin-top:12px}.asset-dialog-open{overflow:hidden}.asset-live-model{height:100%;width:100%}

.asset-poster img,img.asset-poster{object-fit:cover}

[hidden]{display:none!important}
