:root {
  --navy: #071b3f;
  --navy-2: #0d2b60;
  --orange: #ff6500;
  --orange-2: #ff8b3d;
  --blue: #0877e8;
  --pink: #f33a88;
  --yellow: #ffb11a;
  --cream: #fffaf4;
  --warm: #f7f4ef;
  --surface: #ffffff;
  --ink: #11213c;
  --muted: #647086;
  --line: #dde3ec;
  --line-dark: #c9d1df;
  --success: #198754;
  --shadow-sm: 0 8px 24px rgba(7, 27, 63, .08);
  --shadow-md: 0 18px 60px rgba(7, 27, 63, .14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --header-h: 76px;
  --max: 1220px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open,
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 101, 0, .22); color: var(--navy); }

h1, h2, h3, p { margin-top: 0; }
h1, h2.display, .display-title {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -.025em;
}
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.page-main { min-height: calc(100dvh - var(--header-h)); padding-top: var(--header-h); }
.page-section { padding: 88px 0; }
.page-section.soft { background: #f7f9fc; }
.page-section.warm { background: var(--cream); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: .16em;
  font-size: .74rem;
}
.eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--orange); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; margin: 10px 0 14px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.orange { color: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(8,119,232,.35); outline-offset: 3px; }
.btn-navy { color: #fff; background: var(--navy); box-shadow: 0 10px 24px rgba(7,27,63,.18); }
.btn-orange { color: #fff; background: var(--orange); box-shadow: 0 12px 26px rgba(255,101,0,.22); }
.btn-outline { color: var(--navy); border-color: var(--navy); background: rgba(255,255,255,.86); }
.btn-ghost { color: var(--navy); background: #f3f6fa; }
.btn-compact { min-height: 43px; padding-inline: 18px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--navy); font-weight: 800; }
.text-link span { color: var(--orange); transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-h);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(7,27,63,.08); border-color: rgba(7,27,63,.08); }
.header-shell {
  height: 100%;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.brand { display: inline-flex; flex-direction: column; line-height: 1; min-width: 178px; }
.brand-word { color: var(--navy); font-size: 1.48rem; font-weight: 900; letter-spacing: .2em; }
.brand-word span { color: var(--orange); }
.brand-sub { color: var(--navy); font-size: .54rem; letter-spacing: .31em; margin-top: 7px; font-weight: 700; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 38px; margin-left: auto; }
.desktop-nav > a,
.nav-product-trigger {
  position: relative;
  border: 0;
  background: none;
  color: var(--navy);
  font-weight: 750;
  padding: 26px 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.desktop-nav > a::after,
.nav-product-trigger::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 17px;
  height: 2px; background: var(--orange);
  transition: right .2s ease;
}
.desktop-nav > a:hover::after,
.desktop-nav > a.active::after,
.nav-product-trigger:hover::after,
.nav-product-trigger.active::after { right: 0; }
.nav-product-trigger svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-product { position: relative; }
.mega-menu {
  position: fixed;
  left: 50%; top: calc(var(--header-h) - 4px);
  width: min(1060px, calc(100vw - 48px));
  transform: translate(-50%, -12px);
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 32px;
  padding: 30px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .22s ease;
}
.nav-product.open .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega-intro { padding: 22px; background: var(--navy); color: #fff; border-radius: 18px; overflow: hidden; position: relative; }
.mega-intro::before { content: ""; position: absolute; width: 160px; height: 160px; right: -55px; bottom: -70px; background: radial-gradient(circle, var(--pink), transparent 68%); opacity: .5; }
.mega-intro h2 { font-family: var(--font-display); font-size: 2rem; line-height: 1.05; margin: 12px 0; color: #fff; }
.mega-intro p { color: rgba(255,255,255,.74); }
.mega-intro .text-link { color: #fff; }
.mega-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.mega-item { display: flex; gap: 14px; align-items: center; padding: 13px; border-radius: 13px; border: 1px solid transparent; transition: .2s ease; }
.mega-item:hover { border-color: rgba(255,101,0,.22); background: #fff8f2; transform: translateY(-1px); }
.mega-item b, .mega-item small { display: block; }
.mega-item b { color: var(--navy); }
.mega-item small { color: var(--muted); margin-top: 2px; }
.mega-item.material-item { background: #f2f6fb; }
.category-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.category-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.mega-item .category-icon { width: 45px; height: 45px; border-radius: 12px; background: #f4f7fb; flex: 0 0 auto; }
.mega-item:hover .category-icon { color: var(--orange); background: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

/* Homepage */
.home-page { overflow: hidden; }
.home-screen {
  height: 100dvh;
  min-height: 640px;
  padding-top: var(--header-h);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #fff;
  position: relative;
}
.hero-home { min-height: 0; position: relative; overflow: hidden; }
.hero-home::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 35%, rgba(8,119,232,.18), transparent 24%),
    radial-gradient(circle at 92% 54%, rgba(243,58,136,.14), transparent 20%),
    radial-gradient(circle at 70% 75%, rgba(255,177,26,.16), transparent 23%);
  pointer-events: none;
}
.hero-home::after {
  content: "";
  position: absolute;
  width: 520px; height: 290px; right: -30px; top: 60px;
  background: url('/assets/icons/splash.svg') center/contain no-repeat;
  opacity: .95;
  pointer-events: none;
}
.hero-home-inner {
  width: min(var(--max), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.hero-copy { padding: 28px 0 14px; max-width: 550px; }
.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5.25rem);
  line-height: .98;
  margin: 15px 0 22px;
  max-width: 680px;
}
.hero-copy p { color: var(--muted); font-size: clamp(.98rem, 1.25vw, 1.12rem); max-width: 560px; margin-bottom: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; gap: 26px; margin-top: 26px; }
.hero-point { display: flex; gap: 9px; align-items: center; color: var(--navy); font-size: .86rem; font-weight: 750; }
.hero-point i { width: 9px; height: 9px; border: 2px solid var(--orange); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,101,0,.1); }
.hero-visual {
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.hero-product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%);
  filter: saturate(.95) contrast(1.02);
  animation: heroFloat 8s ease-in-out infinite alternate;
}
.hero-doodle { position: absolute; border: 2px solid rgba(7,27,63,.24); border-radius: 50%; pointer-events: none; }
.hero-doodle.one { width: 70px; height: 70px; right: 7%; top: 15%; border-color: rgba(243,58,136,.35); }
.hero-doodle.two { width: 24px; height: 24px; right: 35%; bottom: 10%; border-color: rgba(8,119,232,.4); }
@keyframes heroFloat { to { transform: scale(1.025) translateY(-5px); } }

.home-categories {
  position: relative;
  z-index: 4;
  padding: 14px 0 18px;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 36px rgba(7,27,63,.06);
}
.home-categories h2 { font-size: clamp(1.15rem, 2vw, 1.7rem); text-align: center; margin: 0 0 11px; color: var(--navy); }
.category-rail { position: relative; width: min(var(--max), calc(100% - 58px)); margin: auto; }
.category-rail-viewport { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; }
.category-rail-viewport::-webkit-scrollbar { display: none; }
.home-category {
  scroll-snap-align: start;
  min-width: 0;
  padding: 9px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-radius: 13px;
  border: 1px solid transparent;
  transition: .22s ease;
  color: var(--navy);
}
.home-category .category-icon { width: 46px; height: 46px; border-radius: 14px; background: #f5f7fb; }
.home-category .category-icon svg { width: 29px; height: 29px; }
.home-category b { font-size: .78rem; text-align: center; line-height: 1.15; }
.home-category:hover { transform: translateY(-4px); background: #fff8f2; border-color: rgba(255,101,0,.26); box-shadow: var(--shadow-sm); }
.home-category:hover .category-icon { color: var(--orange); background: #fff; }
.rail-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); box-shadow: var(--shadow-sm);
}
.rail-arrow:hover { color: var(--orange); border-color: var(--orange); }
.rail-arrow.prev { left: -23px; }
.rail-arrow.next { right: -23px; }

/* Inner page hero */
.inner-hero { padding: 78px 0 70px; position: relative; overflow: hidden; background: #fff; }
.inner-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 48px; }
.inner-hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 5.2vw, 5rem); line-height: .98; color: var(--navy); margin: 14px 0 20px; }
.inner-hero p { color: var(--muted); font-size: 1.08rem; max-width: 620px; }
.inner-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.inner-hero-visual { position: relative; min-height: 390px; }
.inner-hero-visual::before { content: ""; position: absolute; inset: 0; background: url('/assets/icons/splash-soft.svg') center/contain no-repeat; }
.inner-hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; filter: drop-shadow(0 24px 22px rgba(7,27,63,.16)); }
.breadcrumbs { color: var(--muted); font-size: .84rem; margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--orange); }

/* Product index */
.category-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.category-index-card { display: grid; grid-template-columns: 42% 1fr; min-height: 250px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; transition: .22s ease; }
.category-index-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(255,101,0,.25); }
.category-index-card img { width: 100%; height: 100%; object-fit: cover; }
.category-index-card-content { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.category-index-card h2 { font-family: var(--font-display); font-size: 2rem; color: var(--navy); margin: 10px 0; }
.category-index-card p { color: var(--muted); }
.category-index-card .category-icon { color: var(--orange); justify-content: flex-start; }

/* Product category and gallery */
.product-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.product-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; transition: .22s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(255,101,0,.23); }
.product-card-image { aspect-ratio: 4/3; overflow: hidden; background: #f8f8f6; position: relative; }
.product-card-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .35s ease; }
.product-card:hover .product-card-image img { transform: scale(1.045); }
.product-card-badge { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 99px; background: rgba(7,27,63,.88); color: #fff; font-size: .7rem; font-weight: 800; }
.product-card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.55rem; margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: .93rem; }
.product-card .text-link { margin-top: auto; }

.product-detail-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr); gap: 24px; align-items: start; }
.media-gallery { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.media-stage { position: relative; aspect-ratio: 16/10; background: linear-gradient(145deg,#fbfaf7,#f2f4f7); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-stage::before { content: ""; position: absolute; width: 65%; height: 45%; left: 17%; bottom: 2%; background: radial-gradient(ellipse,rgba(7,27,63,.14),transparent 68%); filter: blur(12px); }
.media-stage img { width: 100%; height: 100%; object-fit: contain; padding: clamp(18px,4vw,46px); position: relative; z-index: 2; transition: opacity .18s ease, transform .18s ease; }
.media-stage img.switching { opacity: .15; transform: scale(.97); }
.media-label { position: absolute; left: 18px; top: 18px; z-index: 3; background: var(--navy); color: #fff; padding: 7px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.media-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 8px; padding: 12px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.media-thumbs::-webkit-scrollbar { display: none; }
.media-thumb { border: 1px solid var(--line); border-radius: 12px; padding: 7px; background: #fff; color: var(--navy); font-size: .76rem; font-weight: 750; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.media-thumb.active { border-color: var(--orange); color: var(--orange); background: #fff8f2; }
.media-thumb img { width: 46px; height: 35px; object-fit: contain; }
.product-info-panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; padding: 26px; position: sticky; top: calc(var(--header-h) + 24px); }
.product-info-panel h2 { font-family: var(--font-display); color: var(--navy); font-size: 2rem; margin-bottom: 10px; }
.product-info-panel > p { color: var(--muted); }
.spec-list { margin: 22px 0; border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-row span { color: var(--muted); }
.spec-row b { color: var(--navy); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.tag { padding: 7px 10px; border-radius: 999px; background: #f2f5f9; color: var(--navy); font-size: .78rem; font-weight: 750; }

.story-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.story-step { padding: 24px; background: #fff; position: relative; }
.story-step:not(:last-child) { border-right: 1px solid var(--line); }
.story-step strong { color: var(--orange); font-size: .72rem; letter-spacing: .12em; }
.story-step h3 { font-family: var(--font-display); font-size: 1.45rem; color: var(--navy); margin: 8px 0; }
.story-step p { color: var(--muted); font-size: .9rem; }

/* Materials & finishing */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-tabs button { border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 9px 15px; border-radius: 999px; font-weight: 750; }
.filter-tabs button.active, .filter-tabs button:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.material-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.material-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.material-swatch { height: 150px; position: relative; border-bottom: 1px solid var(--line); background-color: #eee; }
.material-swatch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg,rgba(255,255,255,.65),transparent 42%,rgba(0,0,0,.04)); }
.swatch-hvs { background: #f8f7f2; }
.swatch-book { background: #f1eadb; background-image: repeating-linear-gradient(0deg,transparent 0 4px,rgba(120,92,55,.025) 5px); }
.swatch-art { background: linear-gradient(135deg,#fff,#e9edf3); }
.swatch-ivory { background: #fff7e7; }
.swatch-duplex { background: linear-gradient(90deg,#efefec 50%,#ddd9cf 50%); }
.swatch-kraft { background: #b9854b; background-image: radial-gradient(rgba(80,42,14,.1) .7px,transparent .7px); background-size: 5px 5px; }
.swatch-corrugated { background: repeating-linear-gradient(90deg,#b9874e 0 8px,#c9955b 8px 14px); }
.swatch-rigid { background: #94928c; box-shadow: inset 0 0 0 10px #77756f; }
.swatch-linen { background-color: #ede8df; background-image: repeating-linear-gradient(0deg,rgba(90,80,64,.08) 0 1px,transparent 1px 4px),repeating-linear-gradient(90deg,rgba(90,80,64,.06) 0 1px,transparent 1px 5px); }
.swatch-sticker { background: linear-gradient(135deg,#fff,#d9ecff); }
.swatch-vinyl { background: linear-gradient(135deg,#eef7ff,#c8def2); }
.swatch-transparent { background: linear-gradient(135deg,rgba(225,242,255,.7),rgba(255,255,255,.2)); backdrop-filter: blur(6px); }
.material-card-content { padding: 18px; }
.material-card h3 { color: var(--navy); margin-bottom: 6px; }
.material-card p { color: var(--muted); font-size: .88rem; }
.material-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.material-meta span { background: #f2f5f9; color: var(--navy); border-radius: 999px; padding: 5px 8px; font-size: .72rem; font-weight: 750; }

.sample-lab { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.sample-preview-wrap { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg,#fafafa,#f1f2f4); min-height: 430px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.sample-preview {
  width: min(360px,75%); aspect-ratio: 1.25; border-radius: 16px; background: var(--navy); position: relative; box-shadow: 0 28px 45px rgba(7,27,63,.22); overflow: hidden; transform: perspective(900px) rotateX(7deg) rotateY(-8deg);
}
.sample-preview::before { content: "NEXORA"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #fff; font-weight: 900; letter-spacing: .16em; font-size: 1.5rem; }
.sample-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.sample-preview[data-sample="matte"]::after { background: rgba(255,255,255,.03); }
.sample-preview[data-sample="glossy"]::after { background: linear-gradient(115deg,transparent 20%,rgba(255,255,255,.72) 44%,transparent 60%); transform: translateX(-100%); animation: sheen 2.8s infinite; }
.sample-preview[data-sample="foil"]::before { color: #e7bb55; text-shadow: 0 1px 0 #fff0a6,0 4px 8px rgba(0,0,0,.4); }
.sample-preview[data-sample="spotuv"]::after { background: radial-gradient(ellipse at 50% 50%,rgba(255,255,255,.4),transparent 27%); mix-blend-mode: screen; }
.sample-preview[data-sample="emboss"]::before { color: var(--navy); text-shadow: -1px -1px 1px rgba(255,255,255,.9),2px 2px 4px rgba(0,0,0,.75); }
.sample-preview[data-sample="deboss"]::before { color: #0a2047; text-shadow: 1px 1px 0 rgba(255,255,255,.22),-2px -2px 4px rgba(0,0,0,.6); }
.sample-preview[data-sample="varnish"]::after { background: repeating-linear-gradient(125deg,transparent 0 22px,rgba(255,255,255,.1) 24px 26px); }
@keyframes sheen { 55%,100% { transform: translateX(100%); } }
.sample-controls { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: #fff; }
.sample-controls h3 { font-family: var(--font-display); font-size: 2rem; color: var(--navy); margin: 8px 0; }
.sample-controls p { color: var(--muted); }
.sample-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin-top: 22px; }
.sample-options button { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; color: var(--navy); font-weight: 750; }
.sample-options button.active, .sample-options button:hover { border-color: var(--orange); color: var(--orange); background: #fff8f2; }

/* Portfolio */
.portfolio-notice { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: 14px; background: #fff8e9; border: 1px solid #ffe0a3; color: #725009; margin-bottom: 30px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.portfolio-card { border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 4/3; background: #eee; border: 1px solid var(--line); }
.portfolio-card[hidden] { display: none; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.portfolio-card:hover img { transform: scale(1.04); }
.portfolio-overlay { position: absolute; inset: auto 0 0; padding: 50px 18px 18px; color: #fff; background: linear-gradient(transparent,rgba(7,27,63,.9)); }
.portfolio-overlay h3 { margin-bottom: 4px; }
.demo-badge { position: absolute; left: 13px; top: 13px; z-index: 2; background: #fff3cd; color: #73510a; border: 1px solid #ffe08a; padding: 5px 9px; border-radius: 99px; font-size: .7rem; font-weight: 900; }
.portfolio-card button { position: absolute; inset: 0; border: 0; background: transparent; color: transparent; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .2s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(4,14,33,.82); backdrop-filter: blur(8px); }
.lightbox-panel { position: relative; width: min(920px,calc(100% - 32px)); max-height: 90dvh; background: #fff; border-radius: 18px; overflow: hidden; z-index: 2; }
.lightbox-panel img { width: 100%; max-height: 72dvh; object-fit: contain; background: #f3f4f6; }
.lightbox-caption { padding: 18px 22px; }
.lightbox-close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(7,27,63,.92); color: #fff; font-size: 1.4rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.contact-card { border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: #fff; }
.contact-card h2 { font-family: var(--font-display); color: var(--navy); font-size: 2rem; }
.contact-list { display: grid; gap: 14px; margin: 24px 0; }
.contact-list a, .contact-list p { margin: 0; padding: 15px; border-radius: 12px; background: #f5f7fa; color: var(--navy); font-weight: 700; }
.contact-form { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.contact-form label, .form-grid label { display: grid; gap: 6px; color: var(--navy); font-weight: 750; font-size: .86rem; }
.contact-form .full, .form-grid .full { grid-column: 1/-1; }
input, textarea, select { width: 100%; border: 1px solid var(--line-dark); border-radius: 10px; padding: 12px 13px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(8,119,232,.15); border-color: var(--blue); }
.benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.benefit-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.benefit-card .category-icon { width: 48px; height: 48px; border-radius: 14px; background: #f4f7fb; color: var(--orange); }
.benefit-card h3 { color: var(--navy); margin: 14px 0 6px; }
.benefit-card p { color: var(--muted); font-size: .9rem; }
.order-flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; position: relative; }
.order-step { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; }
.order-number { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; background: var(--orange); font-weight: 900; }
.order-step h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.45rem; margin: 16px 0 7px; }
.order-step p { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding: 64px 0 20px; }
.footer-grid, .footer-bottom { width: min(var(--max),calc(100% - 40px)); margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 40px; }
.brand-footer .brand-word, .brand-footer .brand-sub { color: #fff; }
.footer-grid p { color: rgba(255,255,255,.66); max-width: 360px; }
.footer-grid h3 { margin-bottom: 14px; }
.footer-grid a { display: block; color: rgba(255,255,255,.74); margin: 8px 0; }
.footer-grid a:hover { color: var(--orange-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.55); font-size: .78rem; }

/* Modal */
.consultation-modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: .22s ease; }
.consultation-modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,17,40,.76); backdrop-filter: blur(8px); }
.consultation-panel { position: relative; z-index: 2; width: min(700px,calc(100% - 28px)); max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow-md); }
.modal-close { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f4f8; color: var(--navy); font-size: 1.35rem; }
.consultation-panel h2 { font-family: var(--font-display); color: var(--navy); font-size: 2.4rem; margin: 10px 0 8px; }
.modal-lead { color: var(--muted); }
.consult-progress { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 22px 0 28px; }
.consult-progress span { height: 4px; border-radius: 99px; background: #e4e8ee; }
.consult-progress span.active { background: var(--orange); }
.consult-step { display: none; border: 0; padding: 0; margin: 0; }
.consult-step.active { display: block; animation: stepIn .22s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } }
.consult-step legend { font-family: var(--font-display); font-size: 1.55rem; color: var(--navy); font-weight: 700; margin-bottom: 18px; }
.option-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.option-grid label { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 16px 8px; text-align: center; cursor: pointer; display: grid; justify-items: center; gap: 7px; }
.option-grid input { position: absolute; opacity: 0; }
.option-grid label:has(input:checked) { border-color: var(--orange); background: #fff8f2; color: var(--orange); }
.choice-list { display: grid; gap: 10px; }
.choice-list label { position: relative; display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 16px; cursor: pointer; }
.choice-list input { width: auto; }
.choice-list small { display: block; color: var(--muted); margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.consult-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 25px; }

/* CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; background: var(--navy); color: #fff; padding: 42px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 260px; right: -80px; top: -90px; background: url('/assets/icons/splash.svg') center/contain no-repeat; opacity: .4; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-family: var(--font-display); color: #fff; font-size: clamp(2rem,4vw,3.1rem); margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.7); margin: 0; }

/* Responsive */
@media (max-width: 1050px) {
  .desktop-nav { gap: 25px; }
  .header-shell { gap: 20px; }
  .product-card-grid { grid-template-columns: repeat(2,1fr); }
  .material-grid { grid-template-columns: repeat(3,1fr); }
  .benefit-grid, .order-flow { grid-template-columns: repeat(2,1fr); }
  .category-index-card { grid-template-columns: 38% 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h: 66px; }
  .container, .header-shell { width: min(100% - 28px,var(--max)); }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .brand { min-width: auto; }
  .brand-word { font-size: 1.16rem; }
  .brand-sub { font-size: .44rem; }
  .mobile-menu { display: block; position: fixed; inset: var(--header-h) 0 0; background: rgba(255,255,255,.98); backdrop-filter: blur(14px); transform: translateX(100%); transition: .25s ease; overflow-y: auto; padding: 20px 22px 32px; }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu nav { display: grid; gap: 4px; max-width: 550px; margin: auto; }
  .mobile-menu nav > a, .mobile-menu summary { padding: 15px 5px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-products { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; padding: 12px 0; }
  .mobile-products a { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; color: var(--navy); font-size: .83rem; font-weight: 750; }
  .mobile-products .category-icon svg { width: 25px; height: 25px; }
  .mobile-menu .btn { margin-top: 14px; }

  .home-screen { min-height: 600px; }
  .hero-home-inner { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .hero-copy { z-index: 4; padding: 20px 0 0; max-width: 62%; }
  .hero-copy h1 { font-size: clamp(2.4rem,7vw,3.8rem); }
  .hero-copy p { font-size: .91rem; margin-bottom: 17px; }
  .hero-buttons .btn { min-height: 42px; padding: 0 14px; font-size: .83rem; }
  .hero-points { display: none; }
  .hero-visual { position: absolute; inset: 3% -14% 0 32%; z-index: 1; opacity: .92; }
  .hero-product-photo { object-position: 62% center; mask-image: linear-gradient(90deg,transparent,#000 25%); -webkit-mask-image: linear-gradient(90deg,transparent,#000 25%); }
  .hero-home::after { width: 390px; height: 250px; right: -80px; top: 70px; }
  .home-categories { padding: 10px 0 14px; }
  .category-rail { width: calc(100% - 52px); }
  .category-rail-viewport { grid-auto-columns: 105px; }
  .home-category { padding: 6px 5px; }
  .home-category .category-icon { width: 39px; height: 39px; }
  .home-category .category-icon svg { width: 25px; height: 25px; }
  .home-category b { font-size: .7rem; }

  .inner-hero { padding: 48px 0; }
  .inner-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .inner-hero-visual { min-height: 330px; order: -1; }
  .category-index-grid, .contact-grid, .sample-lab, .product-detail-grid { grid-template-columns: 1fr; }
  .category-index-card { min-height: 220px; }
  .product-info-panel { position: static; }
  .story-steps { grid-template-columns: repeat(2,1fr); }
  .story-step:nth-child(2) { border-right: 0; }
  .story-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .material-grid { grid-template-columns: repeat(2,1fr); }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .page-section { padding: 62px 0; }
  .home-screen { min-height: 610px; }
  .hero-copy { max-width: 73%; padding-top: 14px; }
  .hero-copy .eyebrow { font-size: .62rem; }
  .hero-copy h1 { font-size: clamp(2.08rem,10vw,3rem); line-height: 1.01; margin: 10px 0 12px; }
  .hero-copy p { max-width: 94%; line-height: 1.4; }
  .hero-buttons { gap: 7px; }
  .hero-buttons .btn { min-height: 39px; padding-inline: 11px; font-size: .76rem; }
  .hero-visual { inset: 8% -36% 0 36%; }
  .hero-home::after { right: -150px; top: 54px; opacity: .7; }
  .home-categories h2 { font-size: 1rem; margin-bottom: 7px; }
  .category-rail-viewport { grid-auto-columns: 88px; gap: 3px; }
  .home-category .category-icon { width: 36px; height: 36px; }
  .home-category b { font-size: .62rem; }
  .rail-arrow { width: 34px; height: 34px; }

  .inner-hero h1 { font-size: 2.75rem; }
  .inner-hero-visual { min-height: 250px; }
  .category-index-grid, .product-card-grid, .material-grid, .portfolio-grid, .benefit-grid, .order-flow, .footer-grid { grid-template-columns: 1fr; }
  .category-index-card { grid-template-columns: 1fr; }
  .category-index-card img { aspect-ratio: 16/9; }
  .product-card-grid { gap: 14px; }
  .media-stage { aspect-ratio: 1.05; }
  .media-stage img { padding: 18px; }
  .story-steps { grid-template-columns: 1fr; }
  .story-step { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .story-step:last-child { border-bottom: 0; }
  .sample-preview-wrap { min-height: 320px; }
  .sample-options { grid-template-columns: 1fr; }
  .contact-form, .form-grid { grid-template-columns: 1fr; }
  .contact-form .full, .form-grid .full { grid-column: auto; }
  .cta-band { padding: 28px; flex-direction: column; align-items: flex-start; }
  .option-grid { grid-template-columns: repeat(2,1fr); }
  .consultation-panel { padding: 26px 18px 20px; border-radius: 20px; }
  .consultation-panel h2 { font-size: 2rem; }
  .footer-bottom { font-size: .72rem; }
}

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

/* Product explorer */
.product-explorer { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 22px; align-items: stretch; }
.explorer-list { display: grid; gap: 9px; align-content: start; }
.explorer-product-button { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 9px; background: #fff; color: var(--navy); transition: .2s ease; }
.explorer-product-button img { width: 58px; height: 52px; object-fit: contain; border-radius: 9px; background: #f6f6f4; }
.explorer-product-button b { display: block; }
.explorer-product-button small { color: var(--muted); display: block; margin-top: 2px; }
.explorer-product-button.active, .explorer-product-button:hover { border-color: var(--orange); background: #fff8f2; transform: translateX(3px); }
.explorer-stage { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.explorer-stage-top { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); }
.explorer-media { min-width: 0; }
.explorer-copy { border-left: 1px solid var(--line); padding: 24px; }
.explorer-copy h3 { font-family: var(--font-display); font-size: 2rem; color: var(--navy); margin-bottom: 9px; }
.explorer-copy > p { color: var(--muted); }
.explorer-states { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(115px,1fr); gap: 8px; padding: 12px; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
.explorer-states::-webkit-scrollbar { display: none; }
@media (max-width: 920px) {
  .product-explorer { grid-template-columns: 1fr; }
  .explorer-list { grid-template-columns: repeat(3,1fr); }
  .explorer-product-button { grid-template-columns: 1fr; text-align: center; }
  .explorer-product-button img { width: 100%; height: 82px; }
  .explorer-product-button.active, .explorer-product-button:hover { transform: translateY(-2px); }
}
@media (max-width: 700px) {
  .explorer-stage-top { grid-template-columns: 1fr; }
  .explorer-copy { border-left: 0; border-top: 1px solid var(--line); }
  .explorer-list { display: flex; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .explorer-list::-webkit-scrollbar { display: none; }
  .explorer-product-button { min-width: 145px; }
}

/* ========================================================================
   NEXORA v5.1 — C1 FULL-WIDTH RESPONSIVE LOCK
   Purpose: fluid desktop composition + dedicated mobile composition.
   ======================================================================== */
:root {
  --page-gutter: clamp(22px, 4.2vw, 88px);
  --page-gutter-mobile: 16px;
  --max: 9999px;
}

html, body { width: 100%; overflow-x: clip; }
.container,
.header-shell,
.footer-grid,
.footer-bottom {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--page-gutter);
}
.header-shell { gap: clamp(20px, 2.5vw, 48px); }
.desktop-nav { gap: clamp(24px, 2.2vw, 46px); }
.page-section { padding: clamp(68px, 6.5vw, 112px) 0; }
.section-heading { max-width: min(820px, 62vw); }

/* Full-width C1 homepage */
.home-screen {
  height: 100dvh;
  min-height: 680px;
  grid-template-rows: minmax(0, 1fr) clamp(136px, 17vh, 178px);
}
.hero-home { isolation: isolate; }
.hero-home::before {
  background:
    radial-gradient(circle at 72% 24%, rgba(8,119,232,.16), transparent 22%),
    radial-gradient(circle at 91% 47%, rgba(243,58,136,.14), transparent 18%),
    radial-gradient(circle at 74% 83%, rgba(255,177,26,.18), transparent 22%);
}
.hero-home::after { display: none; }
.hero-home-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(430px, .88fr) minmax(0, 1.22fr);
  gap: 0;
  align-items: stretch;
}
.hero-copy {
  max-width: 760px;
  padding: clamp(34px, 5vh, 76px) clamp(28px, 4vw, 72px) 24px 0;
  align-self: center;
  position: relative;
  z-index: 5;
}
.hero-copy h1 {
  font-size: clamp(3.7rem, 5.15vw, 6.25rem);
  line-height: .96;
  max-width: 780px;
  margin: 15px 0 22px;
}
.hero-copy p { max-width: 650px; }
.hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  align-self: stretch;
  isolation: isolate;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: url('/assets/icons/splash.svg') center/contain no-repeat;
  mix-blend-mode: multiply;
}
.hero-visual::before {
  width: min(650px, 58vw);
  height: min(520px, 62vh);
  right: -7%;
  top: 2%;
  opacity: .72;
  transform: rotate(-4deg);
}
.hero-visual::after {
  width: 360px;
  height: 260px;
  left: 1%;
  bottom: -9%;
  opacity: .34;
  transform: rotate(172deg);
}
.hero-product-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 100%);
}
.hero-doodle { z-index: 4; }
.home-categories { padding: 13px 0 17px; }
.category-rail {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--page-gutter);
}
.category-rail-viewport {
  grid-auto-flow: initial;
  grid-template-columns: repeat(8, minmax(108px, 1fr));
  grid-auto-columns: unset;
  gap: clamp(7px, 1vw, 16px);
  padding: 4px 2px;
}
.home-category { min-height: 82px; justify-content: center; }
.rail-arrow.prev { left: calc(var(--page-gutter) - 18px); }
.rail-arrow.next { right: calc(var(--page-gutter) - 18px); }

/* Full-width shared hero for all inner pages */
.inner-hero {
  padding: 0;
  min-height: clamp(500px, 55vh, 700px);
  background: #fff;
}
.inner-hero-grid {
  width: 100%;
  min-height: inherit;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(430px, .88fr) minmax(0, 1.12fr);
  gap: 0;
  align-items: stretch;
}
.inner-hero-grid > div:first-child {
  padding: clamp(62px, 7vw, 116px) clamp(34px, 4vw, 80px) clamp(54px, 6vw, 96px) var(--page-gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.inner-hero h1 {
  font-size: clamp(3.35rem, 4.65vw, 5.8rem);
  max-width: 760px;
}
.inner-hero p { max-width: 720px; }
.inner-hero-visual {
  min-height: inherit;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 22%, rgba(243,58,136,.15), transparent 22%),
    radial-gradient(circle at 55% 76%, rgba(8,119,232,.15), transparent 24%),
    #f8fafc;
}
.inner-hero-visual::before {
  inset: 2% -4% -2% 1%;
  background-image: url('/assets/icons/splash.svg');
  opacity: .52;
  mix-blend-mode: multiply;
  z-index: 2;
}
.inner-hero-visual img {
  z-index: 3;
  object-fit: cover;
  object-position: center;
  filter: none;
  padding: 0;
}

/* Fluid content sections */
.category-index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); }
.category-index-card {
  grid-template-columns: 1fr;
  min-height: 0;
  border-radius: 22px;
}
.category-index-card > img,
.category-index-card > .material-swatch { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background-color: #f8f8f6; }
.category-index-card-content { padding: clamp(22px, 2vw, 32px); }
.category-index-card h2 { font-size: clamp(1.65rem, 1.8vw, 2.15rem); }
.product-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.material-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-explorer {
  grid-template-columns: minmax(235px, .27fr) minmax(0, 1.73fr);
  gap: clamp(18px, 1.6vw, 30px);
}
.explorer-stage-top { grid-template-columns: minmax(0, 1.48fr) minmax(310px, .52fr); }
.media-stage { min-height: 460px; }
.contact-grid { grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr); gap: clamp(22px, 2vw, 38px); }
.cta-band { padding: clamp(36px, 4vw, 64px); }
.site-footer .footer-grid,
.site-footer .footer-bottom { padding-inline: var(--page-gutter); }

@media (min-width: 1800px) {
  .hero-home-inner { grid-template-columns: minmax(560px, .9fr) minmax(0, 1.35fr); }
  .hero-copy h1 { font-size: 6.5rem; }
  .category-rail-viewport { grid-template-columns: repeat(8, 1fr); }
  .product-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1240px) {
  .category-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .material-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-home-inner { grid-template-columns: minmax(390px, .9fr) minmax(0, 1.1fr); }
  .hero-copy h1 { font-size: clamp(3.25rem, 5vw, 5rem); }
}

/* Dedicated tablet/mobile composition — not a shrunken desktop */
@media (max-width: 820px) {
  :root { --header-h: 66px; }
  .container,
  .header-shell,
  .footer-grid,
  .footer-bottom { width: 100%; padding-inline: var(--page-gutter-mobile); }
  .page-section { padding: 54px 0; }
  .section-heading { max-width: 100%; }

  .home-screen {
    height: 100dvh;
    min-height: 620px;
    grid-template-rows: minmax(0, 1fr) clamp(154px, 23vh, 182px);
  }
  .hero-home-inner {
    width: 100%;
    padding: 10px 0 0 var(--page-gutter-mobile);
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
  }
  .hero-copy {
    max-width: none;
    padding: 8px 10px 8px 0;
    align-self: center;
  }
  .hero-copy .eyebrow { font-size: .58rem; letter-spacing: .12em; }
  .hero-copy .eyebrow::after { width: 22px; }
  .hero-copy h1 {
    font-size: clamp(1.82rem, 7.6vw, 2.85rem);
    line-height: .99;
    margin: 9px 0 12px;
  }
  .hero-copy p {
    font-size: clamp(.72rem, 2.2vw, .88rem);
    line-height: 1.42;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-buttons { gap: 7px; }
  .hero-buttons .btn { min-height: 37px; padding-inline: 10px; font-size: .71rem; border-radius: 8px; }
  .hero-points { display: none; }
  .hero-visual {
    position: relative;
    inset: auto;
    min-height: 0;
    height: 100%;
    opacity: 1;
  }
  .hero-product-photo {
    object-fit: cover;
    object-position: 63% center;
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
  }
  .hero-visual::before { width: 370px; height: 320px; right: -42%; top: 7%; opacity: .68; }
  .hero-visual::after { width: 240px; height: 190px; left: -18%; bottom: -4%; }
  .hero-doodle.one { width: 42px; height: 42px; right: 9%; top: 18%; }
  .hero-doodle.two { display: none; }

  .home-categories { padding: 8px 0 11px; }
  .home-categories h2 { font-size: 1rem; margin-bottom: 6px; }
  .category-rail { width: 100%; padding-inline: 10px; }
  .category-rail-viewport {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(58px, auto));
    grid-template-columns: none;
    grid-auto-columns: 88px;
    gap: 4px 5px;
    overflow-x: auto;
    padding: 2px 4px;
  }
  .home-category { min-height: 58px; padding: 3px; gap: 2px; border-radius: 10px; }
  .home-category .category-icon { width: 32px; height: 32px; border-radius: 10px; }
  .home-category .category-icon svg { width: 21px; height: 21px; }
  .home-category b { font-size: .58rem; line-height: 1.08; }
  .rail-arrow { display: none; }

  .inner-hero { min-height: auto; }
  .inner-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 0;
  }
  .inner-hero-grid > div:first-child {
    padding: 38px var(--page-gutter-mobile) 26px;
    order: 1;
  }
  .inner-hero h1 { font-size: clamp(2.55rem, 11vw, 4rem); }
  .inner-hero p { font-size: .95rem; }
  .inner-hero-visual {
    order: 2;
    min-height: 270px;
    height: 38vh;
    max-height: 390px;
  }
  .inner-hero-visual img { object-fit: cover; }
  .breadcrumbs { margin-bottom: 12px; }

  .category-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .category-index-card-content { padding: 18px; }
  .category-index-card h2 { font-size: 1.55rem; }
  .product-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-explorer { grid-template-columns: 1fr; }
  .explorer-stage-top { grid-template-columns: 1fr; }
  .explorer-copy { border-left: 0; border-top: 1px solid var(--line); }
  .media-stage { min-height: 340px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .home-screen { min-height: 600px; grid-template-rows: minmax(0, 1fr) 166px; }
  .hero-home-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
  .hero-copy h1 { font-size: clamp(1.72rem, 8.8vw, 2.35rem); }
  .hero-copy p { -webkit-line-clamp: 3; font-size: .72rem; }
  .hero-buttons .btn { font-size: .65rem; padding-inline: 8px; min-height: 34px; }
  .hero-visual::before { right: -68%; }
  .home-categories h2 { font-size: .95rem; }

  .inner-hero-grid > div:first-child { padding-top: 30px; }
  .inner-hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .inner-hero-visual { min-height: 235px; height: 34vh; }
  .category-index-grid,
  .product-card-grid,
  .material-grid,
  .portfolio-grid { grid-template-columns: 1fr; }
  .category-index-card > img,
  .category-index-card > .material-swatch { aspect-ratio: 16/10; }
  .media-stage { min-height: 290px; aspect-ratio: 1.15; }
}

/* v5.1.1 visual calibration against approved C1 board */
@media (min-width: 821px) {
  .hero-home-inner { grid-template-columns: minmax(410px, .8fr) minmax(0, 1.2fr); }
  .hero-copy h1 { font-size: clamp(3.45rem, 4.7vw, 5.55rem); }
  .hero-visual::before { opacity: .43; width: min(560px, 48vw); height: min(440px, 52vh); right: -4%; top: 8%; }
  .hero-visual::after { opacity: .2; }
}
@media (max-width: 820px) {
  .category-rail-viewport {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(58px, auto));
    grid-auto-columns: unset;
    overflow-x: hidden;
  }
  .hero-visual::before { opacity: .38; }
  .hero-visual::after { opacity: .16; }
}

/* ========================================================================
   NEXORA v5.2 — APPROVED C1 HOMEPAGE FINAL LOCK
   Scope: homepage only. Other pages intentionally remain unchanged.
   ======================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-c1-final {
  --c1-content: min(1280px, calc(100vw - 64px));
  --c1-category: min(1160px, calc(100vw - 80px));
}

.home-c1-final .site-header {
  background: rgba(255, 255, 255, .98);
  border-bottom-color: rgba(7, 27, 63, .06);
  box-shadow: none;
}
.home-c1-final .header-shell {
  width: var(--c1-content);
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 0;
}
.home-c1-final .brand-word { font-size: 1.34rem; }
.home-c1-final .brand-sub { font-size: .48rem; }
.home-c1-final .desktop-nav { gap: 42px; }
.home-c1-final .desktop-nav > a,
.home-c1-final .nav-product-trigger { font-size: .9rem; }
.home-c1-final .header-actions .btn { border-radius: 12px; min-height: 42px; padding-inline: 20px; }

.home-c1-final .home-screen {
  height: 100dvh;
  min-height: 690px;
  padding-top: var(--header-h);
  display: grid;
  grid-template-rows: minmax(0, 1fr) 132px;
  overflow: hidden;
  background: #fff;
}
.home-c1-final .hero-home {
  overflow: visible;
  background: #fff;
}
.home-c1-final .hero-home::before,
.home-c1-final .hero-home::after,
.home-c1-final .hero-visual::before,
.home-c1-final .hero-visual::after,
.home-c1-final .hero-doodle { display: none !important; }
.home-c1-final .hero-home-inner {
  width: var(--c1-content);
  max-width: 1280px;
  height: 100%;
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(420px, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 34px;
}
.home-c1-final .hero-copy {
  max-width: 520px;
  padding: 12px 0 42px;
  align-self: center;
}
.home-c1-final .hero-copy .eyebrow {
  font-size: .68rem;
  letter-spacing: .14em;
}
.home-c1-final .hero-copy .eyebrow::after { width: 30px; }
.home-c1-final .hero-copy h1 {
  max-width: 520px;
  margin: 15px 0 20px;
  font-family: var(--font-sans);
  font-size: clamp(3rem, 4.15vw, 4.35rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.035;
}
.home-c1-final .hero-copy p {
  max-width: 500px;
  margin-bottom: 24px;
  color: #55647a;
  font-size: .98rem;
  line-height: 1.65;
}
.home-c1-final .hero-buttons { gap: 14px; }
.home-c1-final .hero-buttons .btn {
  min-height: 46px;
  border-radius: 11px;
  padding-inline: 22px;
  font-size: .9rem;
}
.home-c1-final .hero-visual {
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}
.home-c1-final .hero-product-photo {
  width: min(100%, 760px);
  height: auto;
  max-height: calc(100dvh - var(--header-h) - 150px);
  object-fit: contain;
  object-position: center;
  mask-image: none;
  -webkit-mask-image: none;
  filter: none;
  animation: none;
}

.home-c1-final .home-categories {
  z-index: 10;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: flex-start;
}
.home-c1-final .home-categories h2 { display: none; }
.home-c1-final .category-rail {
  width: var(--c1-category);
  max-width: 1160px;
  margin: -30px auto 0;
  padding: 13px 18px;
  border: 1px solid rgba(7, 27, 63, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 38px rgba(7, 27, 63, .12);
}
.home-c1-final .category-rail-viewport {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-flow: initial;
  grid-auto-columns: unset;
  gap: 0;
  overflow: visible;
  padding: 0;
}
.home-c1-final .home-category {
  min-height: 90px;
  padding: 7px 10px;
  gap: 7px;
  border: 0;
  border-right: 1px solid #e5e9f0;
  border-radius: 0;
  background: transparent;
  justify-content: center;
  transition: color .2s ease, transform .2s ease;
}
.home-c1-final .home-category:last-child { border-right: 0; }
.home-c1-final .home-category:hover {
  transform: translateY(-3px);
  border-color: #e5e9f0;
  background: transparent;
  box-shadow: none;
  color: var(--orange);
}
.home-c1-final .home-category .category-icon {
  width: 42px;
  height: 42px;
  border-radius: 0;
  color: var(--navy);
  background: transparent;
}
.home-c1-final .home-category:hover .category-icon {
  color: var(--orange);
  background: transparent;
}
.home-c1-final .home-category .category-icon svg { width: 38px; height: 38px; }
.home-c1-final .home-category > span:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
}
.home-c1-final .home-category b {
  font-size: .86rem;
  line-height: 1.1;
  white-space: nowrap;
}
.home-c1-final .home-category small {
  color: #737f91;
  font-size: .68rem;
  line-height: 1.1;
  white-space: nowrap;
}
.home-c1-final .rail-arrow { display: none; }

@media (min-width: 1440px) {
  .home-c1-final { --c1-content: min(1360px, calc(100vw - 96px)); --c1-category: min(1240px, calc(100vw - 120px)); }
  .home-c1-final .header-shell,
  .home-c1-final .hero-home-inner { max-width: 1360px; }
  .home-c1-final .category-rail { max-width: 1240px; }
  .home-c1-final .hero-copy { max-width: 565px; }
  .home-c1-final .hero-copy h1 { max-width: 565px; font-size: clamp(3.5rem, 4.05vw, 4.9rem); }
  .home-c1-final .hero-product-photo { width: min(100%, 820px); }
}

@media (max-width: 1050px) and (min-width: 821px) {
  .home-c1-final { --c1-content: calc(100vw - 48px); --c1-category: calc(100vw - 64px); }
  .home-c1-final .hero-home-inner { grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr); gap: 18px; }
  .home-c1-final .hero-copy h1 { font-size: clamp(2.8rem, 5.1vw, 3.75rem); }
  .home-c1-final .hero-copy p { font-size: .9rem; }
  .home-c1-final .home-category small { font-size: .61rem; }
  .home-c1-final .home-category b { font-size: .75rem; }
}

/* Dedicated C1 mobile composition */
@media (max-width: 820px) {
  .home-c1-final {
    --c1-content: calc(100vw - 24px);
    --c1-category: calc(100vw - 20px);
  }
  .home-c1-final .site-header { height: 60px; }
  .home-c1-final .header-shell {
    width: 100%;
    padding-inline: 14px;
  }
  .home-c1-final .brand { min-width: 0; }
  .home-c1-final .brand-word { font-size: 1.02rem; }
  .home-c1-final .brand-sub { font-size: .38rem; margin-top: 5px; }
  .home-c1-final .header-actions .btn { display: none; }

  .home-c1-final .home-screen {
    height: 100dvh;
    min-height: 650px;
    padding-top: 60px;
    grid-template-rows: minmax(0, 1fr) 205px;
  }
  .home-c1-final .hero-home { min-height: 0; overflow: hidden; }
  .home-c1-final .hero-home-inner {
    width: 100%;
    height: 100%;
    padding: 10px 8px 8px 14px;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 4px;
    align-items: center;
  }
  .home-c1-final .hero-copy {
    max-width: none;
    padding: 0 2px 0 0;
    align-self: center;
  }
  .home-c1-final .hero-copy .eyebrow {
    font-size: .48rem;
    letter-spacing: .11em;
    gap: 6px;
  }
  .home-c1-final .hero-copy .eyebrow::after { width: 18px; height: 1px; }
  .home-c1-final .hero-copy h1 {
    max-width: 190px;
    margin: 8px 0 9px;
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    line-height: 1.04;
    letter-spacing: -.04em;
  }
  .home-c1-final .hero-copy p {
    max-width: 180px;
    margin-bottom: 11px;
    font-size: clamp(.58rem, 2vw, .7rem);
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .home-c1-final .hero-buttons {
    display: grid;
    width: max-content;
    gap: 6px;
  }
  .home-c1-final .hero-buttons .btn {
    min-height: 31px;
    padding-inline: 10px;
    border-radius: 7px;
    font-size: .6rem;
  }
  .home-c1-final .hero-visual {
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }
  .home-c1-final .hero-product-photo {
    width: 118%;
    max-width: none;
    max-height: none;
    height: auto;
    object-fit: contain;
    transform: translateX(-5%);
  }

  .home-c1-final .home-categories {
    align-items: stretch;
    padding: 0 0 10px;
  }
  .home-c1-final .category-rail {
    width: var(--c1-category);
    margin: -18px auto 0;
    padding: 8px 7px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(7, 27, 63, .12);
  }
  .home-c1-final .category-rail-viewport {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
  }
  .home-c1-final .home-category {
    min-height: 78px;
    padding: 5px 3px;
    border-right: 1px solid #e7eaf0;
    border-bottom: 1px solid #e7eaf0;
    gap: 3px;
  }
  .home-c1-final .home-category:nth-child(4),
  .home-c1-final .home-category:nth-child(7) { border-right: 0; }
  .home-c1-final .home-category:nth-child(n+5) { border-bottom: 0; }
  .home-c1-final .home-category .category-icon { width: 31px; height: 31px; }
  .home-c1-final .home-category .category-icon svg { width: 27px; height: 27px; }
  .home-c1-final .home-category b { font-size: .59rem; white-space: normal; }
  .home-c1-final .home-category small { display: none; }
}

@media (max-width: 430px) {
  .home-c1-final .home-screen { min-height: 620px; grid-template-rows: minmax(0, 1fr) 190px; }
  .home-c1-final .hero-home-inner { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); }
  .home-c1-final .hero-copy h1 { font-size: clamp(1.35rem, 6.7vw, 1.78rem); max-width: 175px; }
  .home-c1-final .hero-copy p { font-size: .57rem; max-width: 170px; }
  .home-c1-final .hero-product-photo { width: 125%; transform: translateX(-8%); }
  .home-c1-final .category-rail { margin-top: -14px; }
  .home-c1-final .home-category { min-height: 70px; }
}

@media (max-width: 370px) {
  .home-c1-final .home-screen { min-height: 590px; grid-template-rows: minmax(0, 1fr) 182px; }
  .home-c1-final .hero-copy h1 { font-size: 1.25rem; }
  .home-c1-final .hero-copy p { -webkit-line-clamp: 3; }
  .home-c1-final .hero-buttons .btn { min-height: 28px; font-size: .55rem; }
  .home-c1-final .hero-product-photo { width: 132%; }
  .home-c1-final .home-category { min-height: 66px; }
  .home-c1-final .home-category b { font-size: .54rem; }
}

/* ========================================================================
   NEXORA v5.3 — HOMEPAGE SCALE, CLEAN HERO & NAVIGATION REFINEMENT
   Scope: homepage only. Inner pages and their shared header remain unchanged.
   ======================================================================== */
.home-c1-final {
  --header-h: 82px;
  --c1-content: min(1780px, calc(100vw - clamp(48px, 5vw, 108px)));
  --c1-category: min(1600px, calc(100vw - clamp(76px, 8vw, 172px)));
}

.home-c1-final .site-header { height: var(--header-h); }
.home-c1-final .header-shell {
  width: var(--c1-content);
  max-width: 1780px;
}
.home-c1-final .brand { min-width: 205px; }
.home-c1-final .brand-word { font-size: clamp(1.42rem, 1.25vw, 1.72rem); }
.home-c1-final .brand-sub { font-size: clamp(.48rem, .43vw, .59rem); }
.home-c1-final .desktop-nav { gap: clamp(34px, 2.5vw, 58px); }
.home-c1-final .desktop-nav > a {
  font-size: clamp(.9rem, .78vw, 1rem);
  padding-block: 28px 26px;
}
.home-c1-final .header-actions .btn {
  min-height: 46px;
  padding-inline: 23px;
  font-size: .94rem;
}

.home-c1-final .home-screen {
  min-height: 720px;
  grid-template-rows: minmax(0, 1fr) clamp(142px, 15.5vh, 166px);
}
.home-c1-final .hero-home-inner {
  width: var(--c1-content);
  max-width: 1780px;
  grid-template-columns: minmax(500px, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 3vw, 68px);
}
.home-c1-final .hero-copy {
  max-width: 680px;
  padding: clamp(16px, 2.5vh, 34px) 0 clamp(32px, 4vh, 58px);
}
.home-c1-final .hero-copy .eyebrow {
  font-size: clamp(.72rem, .64vw, .82rem);
}
.home-c1-final .hero-copy h1 {
  max-width: 680px;
  margin: 17px 0 24px;
  font-size: clamp(4rem, 4.8vw, 6.15rem);
  line-height: .985;
  letter-spacing: -.052em;
}
.home-c1-final .hero-copy p {
  max-width: 630px;
  margin-bottom: 27px;
  font-size: clamp(1rem, .98vw, 1.18rem);
  line-height: 1.62;
}
.home-c1-final .hero-buttons .btn {
  min-height: 51px;
  padding-inline: 27px;
  font-size: .96rem;
}
.home-c1-final .hero-visual {
  justify-content: center;
  overflow: visible;
}
.home-c1-final .hero-product-photo {
  width: min(112%, 1020px);
  max-width: none;
  max-height: calc(100dvh - var(--header-h) - 112px);
  object-fit: contain;
  transform: translateX(1.5%) scale(1.025);
  image-rendering: auto;
  filter: none;
}

.home-c1-final .home-categories { align-items: flex-start; }
.home-c1-final .category-rail {
  width: var(--c1-category);
  max-width: 1600px;
  margin-top: -35px;
  padding: 15px 22px;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(7, 27, 63, .13);
}
.home-c1-final .home-category {
  min-height: 102px;
  padding: 9px 13px;
}
.home-c1-final .home-category .category-icon {
  width: 48px;
  height: 48px;
}
.home-c1-final .home-category .category-icon svg {
  width: 43px;
  height: 43px;
}
.home-c1-final .home-category b { font-size: clamp(.82rem, .76vw, .96rem); }
.home-c1-final .home-category small { font-size: clamp(.64rem, .59vw, .74rem); }

@media (min-width: 1900px) {
  .home-c1-final {
    --c1-content: min(1880px, calc(100vw - 116px));
    --c1-category: min(1700px, calc(100vw - 190px));
  }
  .home-c1-final .header-shell,
  .home-c1-final .hero-home-inner { max-width: 1880px; }
  .home-c1-final .category-rail { max-width: 1700px; }
  .home-c1-final .hero-home-inner { grid-template-columns: minmax(590px, .8fr) minmax(0, 1.25fr); }
  .home-c1-final .hero-copy { max-width: 760px; }
  .home-c1-final .hero-copy h1 { max-width: 760px; font-size: 6.5rem; }
  .home-c1-final .hero-product-photo { width: min(114%, 1120px); }
}

@media (max-width: 1180px) and (min-width: 821px) {
  .home-c1-final {
    --c1-content: calc(100vw - 44px);
    --c1-category: calc(100vw - 58px);
  }
  .home-c1-final .hero-home-inner {
    grid-template-columns: minmax(390px, .88fr) minmax(0, 1.12fr);
    gap: 18px;
  }
  .home-c1-final .hero-copy h1 { font-size: clamp(3.25rem, 5.5vw, 4.6rem); }
  .home-c1-final .hero-product-photo { width: 110%; }
  .home-c1-final .home-category { padding-inline: 7px; }
  .home-c1-final .home-category b { font-size: .74rem; }
  .home-c1-final .home-category small { font-size: .58rem; }
}

@media (max-width: 820px) {
  .home-c1-final {
    --header-h: 62px;
    --c1-content: calc(100vw - 20px);
    --c1-category: calc(100vw - 16px);
  }
  .home-c1-final .site-header { height: var(--header-h); }
  .home-c1-final .header-shell { padding-inline: 12px; }
  .home-c1-final .brand-word { font-size: 1.12rem; }
  .home-c1-final .brand-sub { font-size: .41rem; }
  .home-c1-final .home-screen {
    min-height: 660px;
    padding-top: var(--header-h);
    grid-template-rows: minmax(0, 1fr) 208px;
  }
  .home-c1-final .hero-home-inner {
    padding: 7px 6px 8px 12px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 3px;
  }
  .home-c1-final .hero-copy { padding-right: 3px; }
  .home-c1-final .hero-copy h1 {
    max-width: 205px;
    font-size: clamp(1.58rem, 7.1vw, 2.18rem);
    margin-bottom: 10px;
  }
  .home-c1-final .hero-copy p {
    max-width: 194px;
    font-size: clamp(.61rem, 2vw, .72rem);
    margin-bottom: 12px;
  }
  .home-c1-final .hero-buttons .btn {
    min-height: 34px;
    padding-inline: 11px;
    font-size: .64rem;
  }
  .home-c1-final .hero-product-photo {
    width: 132%;
    max-height: none;
    transform: translateX(-10%) scale(1.03);
  }
  .home-c1-final .category-rail {
    margin-top: -20px;
    padding: 9px 7px;
    border-radius: 15px;
  }
  .home-c1-final .home-category { min-height: 81px; }
  .home-c1-final .home-category .category-icon { width: 34px; height: 34px; }
  .home-c1-final .home-category .category-icon svg { width: 29px; height: 29px; }
  .home-c1-final .home-category b { font-size: .61rem; }
}

@media (max-width: 430px) {
  .home-c1-final .home-screen {
    min-height: 625px;
    grid-template-rows: minmax(0, 1fr) 194px;
  }
  .home-c1-final .hero-home-inner {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }
  .home-c1-final .hero-copy h1 { max-width: 185px; font-size: clamp(1.42rem, 7vw, 1.86rem); }
  .home-c1-final .hero-copy p { max-width: 176px; font-size: .58rem; }
  .home-c1-final .hero-product-photo { width: 140%; transform: translateX(-14%) scale(1.035); }
  .home-c1-final .home-category { min-height: 72px; }
}

/* ============================================================
   NEXORA v5.4 — Brand logo and Portfolio Results Experience
   ============================================================ */
.brand-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 214px;
  line-height: 1;
}
.brand-logo-image {
  width: clamp(172px, 12.8vw, 224px);
  height: auto;
  max-height: 38px;
  object-fit: contain;
  object-position: left center;
}
.brand-tagline {
  margin-top: 4px;
  padding-left: 54px;
  color: #647086;
  font-size: .49rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .22em;
  white-space: nowrap;
}
.brand-footer .brand-logo-image { filter: brightness(0) invert(1); opacity: .96; }
.brand-footer .brand-tagline { color: rgba(255,255,255,.68); }

.portfolio-page {
  background: #f7f9fc;
  --portfolio-gap: clamp(16px, 1.45vw, 24px);
}
.portfolio-page .page-main { padding-top: var(--header-h); }
.portfolio-experience { min-height: 100dvh; }
.portfolio-shell {
  width: min(100% - clamp(28px, 4vw, 72px), 1840px);
  margin-inline: auto;
  padding: clamp(28px, 3vw, 48px) 0 clamp(54px, 6vw, 90px);
}
.portfolio-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(22px, 2vw, 32px);
}
.portfolio-page-heading > div { max-width: 780px; }
.portfolio-page-heading h1 {
  margin: 8px 0 8px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 2.8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.portfolio-page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1vw, 1.08rem);
}
.portfolio-source-note {
  max-width: 390px;
  text-align: right;
  font-size: .82rem !important;
  color: #8590a2 !important;
}

.portfolio-filter-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e7ef;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(7,27,63,.08);
  margin-bottom: 18px;
}
.portfolio-filter {
  position: relative;
  min-height: 86px;
  border: 0;
  border-right: 1px solid #e8ecf2;
  background: #fff;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 9px;
  font-weight: 750;
  font-size: .78rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.portfolio-filter:last-child { border-right: 0; }
.portfolio-filter::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.portfolio-filter:hover { background: #fffaf6; transform: translateY(-1px); }
.portfolio-filter.active { color: var(--orange); background: #fffdfb; }
.portfolio-filter.active::after { transform: scaleX(1); }
.portfolio-filter-icon {
  width: 30px;
  height: 30px;
  color: currentColor;
  display: grid;
  place-items: center;
}
.portfolio-filter-icon svg {
  width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.portfolio-filter-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: .82rem;
}
.portfolio-filter-context button {
  border: 1px solid #f6c9aa;
  color: var(--navy);
  background: #fff8f2;
  border-radius: 999px;
  padding: 7px 11px;
}
.portfolio-load-status { min-height: 0; margin: 0; color: var(--muted); }

.portfolio-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(390px, .94fr);
  gap: var(--portfolio-gap);
  align-items: start;
}
.portfolio-gallery-area { min-width: 0; }
.portfolio-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--portfolio-gap);
}
.portfolio-result-card {
  min-width: 0;
  border: 1px solid #e0e5ed;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 18px rgba(7,27,63,.035);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.portfolio-result-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,101,0,.48);
  box-shadow: 0 13px 30px rgba(7,27,63,.1);
}
.portfolio-result-card.active {
  border: 2px solid var(--orange);
  box-shadow: 0 12px 28px rgba(255,101,0,.14);
}
.portfolio-result-card > button {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #fff;
  text-align: left;
  color: inherit;
}
.portfolio-card-image {
  display: block;
  aspect-ratio: 1.46 / 1;
  overflow: hidden;
  background: linear-gradient(145deg,#f4f2ef,#fff);
}
.portfolio-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.portfolio-result-card:hover .portfolio-card-image img { transform: scale(1.045); }
.portfolio-card-copy {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 11px 13px 13px;
}
.portfolio-card-copy b {
  color: var(--navy);
  font-size: clamp(.78rem, .78vw, .98rem);
  line-height: 1.22;
}
.portfolio-card-copy small { color: var(--muted); font-size: .74rem; }
.portfolio-card-check {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  opacity: 0;
  transform: scale(.7);
  transition: .2s ease;
  box-shadow: 0 7px 16px rgba(255,101,0,.3);
}
.portfolio-card-check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.3; }
.portfolio-result-card.active .portfolio-card-check { opacity: 1; transform: scale(1); }
.portfolio-empty {
  grid-column: 1 / -1;
  min-height: 420px;
  border: 1px dashed #cbd3df;
  border-radius: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.portfolio-empty-icon { width: 50px; color: var(--orange); }
.portfolio-empty-icon svg { width: 100%; fill: none; stroke: currentColor; }
.portfolio-empty h2 { color: var(--navy); margin: 16px 0 5px; }
.portfolio-empty p { color: var(--muted); }
.portfolio-gallery-footer {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}
.portfolio-gallery-footer p { margin: 0; color: var(--muted); font-size: .83rem; }
.portfolio-pagination { display: flex; align-items: center; gap: 7px; }
.portfolio-pagination button {
  width: 35px; height: 35px;
  border: 1px solid #dbe1ea;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 750;
}
.portfolio-pagination button:hover:not(:disabled),
.portfolio-pagination button.active { color: #fff; background: var(--orange); border-color: var(--orange); }
.portfolio-pagination button:disabled { opacity: .35; cursor: default; }
.portfolio-pagination svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }

.portfolio-detail-panel {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  min-height: calc(100dvh - var(--header-h) - 52px);
  border: 1px solid #dfe5ed;
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 38px rgba(7,27,63,.1);
  overflow: hidden;
}
.portfolio-detail-close {
  position: absolute;
  z-index: 4;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 5px 16px rgba(7,27,63,.12);
}
.portfolio-detail-close svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.portfolio-preview {
  position: relative;
  aspect-ratio: 1.53 / 1;
  border-radius: 15px;
  overflow: hidden;
  background: #f0efec;
}
.portfolio-preview > img { width: 100%; height: 100%; object-fit: cover; }
.preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(7,27,63,.14);
}
.preview-arrow.prev { left: 12px; }
.preview-arrow.next { right: 12px; }
.preview-arrow svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.preview-dots {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  display: flex; gap: 7px;
  padding: 5px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(5px);
}
.preview-dots button {
  width: 8px; height: 8px;
  border: 0; border-radius: 50%; padding: 0;
  background: #c8cdd5;
}
.preview-dots button.active { background: var(--orange); }
.portfolio-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0 14px;
}
.portfolio-detail-heading h2 {
  margin: 0 0 2px;
  color: var(--navy);
  font-size: clamp(1.25rem, 1.5vw, 1.75rem);
  line-height: 1.16;
}
.portfolio-detail-heading p { margin: 0; color: var(--orange); font-weight: 700; font-size: .88rem; }
.portfolio-share {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700;
}
.portfolio-share svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portfolio-spec-card {
  border: 1px solid #e1e6ed;
  border-radius: 13px;
  padding: 15px;
  box-shadow: 0 5px 16px rgba(7,27,63,.035);
}
.portfolio-spec-card h3,
.portfolio-description h3 { margin: 0 0 12px; color: var(--navy); font-size: .92rem; }
.portfolio-spec-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.portfolio-main-specs { margin: 0; padding-right: 15px; border-right: 1px solid #e5e9ef; }
.portfolio-main-specs > div {
  display: grid;
  grid-template-columns: minmax(96px,.75fr) 1fr;
  gap: 8px;
  padding: 7px 0;
}
.portfolio-main-specs dt {
  display: flex; align-items: center; gap: 7px;
  color: var(--navy);
  font-size: .75rem;
}
.portfolio-main-specs dt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.portfolio-main-specs dd { margin: 0; color: #526075; font-size: .74rem; }
.portfolio-extra-specs h4 { color: var(--navy); font-size: .75rem; margin: 4px 0 8px; }
.portfolio-extra-specs ul { list-style: none; padding: 0; margin: 0; }
.portfolio-extra-specs li {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 8px;
  padding: 5px 0 5px 12px;
  color: #526075;
  font-size: .72rem;
}
.portfolio-extra-specs li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--orange);
}
.portfolio-extra-specs li b { color: #526075; font-weight: 500; }
.portfolio-description { padding: 14px 1px 0; }
.portfolio-description p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.portfolio-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 16px;
}
.portfolio-detail-actions .btn { min-height: 48px; padding-inline: 14px; font-size: .82rem; }
.portfolio-detail-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.portfolio-detail-placeholder {
  min-height: 600px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 36px;
}
.portfolio-detail-placeholder > span { width: 54px; color: var(--orange); }
.portfolio-detail-placeholder svg { width: 100%; fill: none; stroke: currentColor; }
.portfolio-detail-placeholder h2 { color: var(--navy); margin: 16px 0 5px; }
.portfolio-detail-placeholder p { color: var(--muted); max-width: 290px; }

@media (min-width: 1600px) {
  .portfolio-workspace { grid-template-columns: minmax(0, 1.72fr) minmax(470px, .88fr); }
  .portfolio-result-grid { gap: 22px; }
  .portfolio-card-copy { min-height: 74px; }
}

@media (max-width: 1280px) {
  .portfolio-filter-bar { grid-template-columns: repeat(8, minmax(96px, 1fr)); }
  .portfolio-filter { font-size: .7rem; }
  .portfolio-workspace { grid-template-columns: minmax(0, 1.5fr) minmax(350px, .9fr); }
  .portfolio-result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-spec-columns { grid-template-columns: 1fr; }
  .portfolio-main-specs { border-right: 0; border-bottom: 1px solid #e5e9ef; padding-right: 0; padding-bottom: 8px; }
}

@media (max-width: 899px) {
  .brand-primary { min-width: 0; }
  .brand-logo-image { width: 148px; max-height: 29px; }
  .brand-tagline { padding-left: 37px; font-size: .38rem; letter-spacing: .16em; }
  .portfolio-shell { width: min(100% - 24px, 760px); padding-top: 25px; }
  .portfolio-page-heading { display: block; margin-bottom: 19px; }
  .portfolio-page-heading h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .portfolio-source-note { display: none; }
  .portfolio-filter-bar {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 14px;
    margin-inline: -12px;
  }
  .portfolio-filter-bar::-webkit-scrollbar { display: none; }
  .portfolio-filter {
    flex: 0 0 108px;
    min-height: 76px;
    scroll-snap-align: start;
    font-size: .68rem;
  }
  .portfolio-filter-icon { width: 25px; height: 25px; }
  .portfolio-workspace { display: block; }
  .portfolio-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .portfolio-card-image { aspect-ratio: 1.23 / 1; }
  .portfolio-card-copy { min-height: 62px; padding: 9px 10px 10px; }
  .portfolio-card-copy b { font-size: .78rem; }
  .portfolio-card-copy small { font-size: .67rem; }
  .portfolio-gallery-footer { flex-direction: column; align-items: flex-start; }
  .portfolio-pagination { align-self: center; }

  .portfolio-detail-panel {
    position: fixed;
    z-index: 240;
    inset: 0;
    top: 0;
    min-height: 100dvh;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 64px 16px 24px;
    overflow-y: auto;
    transform: translateY(105%);
    transition: transform .28s ease;
    visibility: hidden;
  }
  body.portfolio-detail-open { overflow: hidden; }
  body.portfolio-detail-open .portfolio-detail-panel { transform: translateY(0); visibility: visible; }
  .portfolio-detail-close {
    position: fixed;
    top: 14px; right: 14px;
    width: 40px; height: 40px;
    background: var(--navy); color: #fff;
  }
  .portfolio-preview { aspect-ratio: 1.35 / 1; }
  .portfolio-detail-heading { align-items: flex-start; }
  .portfolio-share span { display: none; }
  .portfolio-share { width: 40px; padding: 0; justify-content: center; }
  .portfolio-spec-columns { grid-template-columns: 1fr; }
  .portfolio-detail-actions { position: sticky; bottom: -24px; background: #fff; padding: 14px 0 10px; }
}

@media (max-width: 430px) {
  .portfolio-page-heading p { font-size: .9rem; }
  .portfolio-result-grid { gap: 10px; }
  .portfolio-card-copy b { font-size: .72rem; }
  .portfolio-card-copy small { font-size: .62rem; }
  .portfolio-detail-actions { grid-template-columns: 1fr; }
  .portfolio-main-specs > div { grid-template-columns: 105px 1fr; }
}

/* ========================================================================== 
   NEXORA v5.5 — PORTFOLIO LOCKED VIEWPORT
   Body page tidak scroll. Seluruh halaman portofolio dipadatkan ke satu layar,
   dengan pagination 8 item desktop / 6 tablet / 4 mobile.
   ========================================================================== */
body.portfolio-page {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}
.portfolio-page .site-footer { display: none; }
.portfolio-page .page-main,
.portfolio-page .portfolio-experience {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.portfolio-page .portfolio-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: clamp(8px, 1.05vh, 13px);
  padding-top: clamp(12px, 1.8vh, 20px);
  padding-bottom: clamp(10px, 1.5vh, 16px);
  overflow: hidden;
}
.portfolio-page .portfolio-page-heading {
  margin: 0;
  align-items: center;
}
.portfolio-page .portfolio-page-heading > div { max-width: 900px; }
.portfolio-page .portfolio-page-heading .eyebrow {
  font-size: clamp(.58rem, .58vw, .7rem);
  letter-spacing: .14em;
}
.portfolio-page .portfolio-page-heading h1 {
  margin: 3px 0 3px;
  font-size: clamp(1.7rem, 2.25vw, 2.7rem);
  line-height: 1;
}
.portfolio-page .portfolio-page-heading p {
  max-width: 860px;
  font-size: clamp(.74rem, .78vw, .92rem);
  line-height: 1.35;
}

/* Filter: komposisi ikon + nama mengikuti kategori homepage C1. */
.portfolio-page .portfolio-filter-bar {
  min-height: clamp(82px, 10.2vh, 102px);
  margin: 0;
  border-radius: 17px;
}
.portfolio-page .portfolio-filter {
  min-height: clamp(82px, 10.2vh, 102px);
  gap: 6px;
  padding: 8px 7px 10px;
  font-size: clamp(.7rem, .72vw, .86rem);
  line-height: 1.08;
  text-align: center;
}
.portfolio-page .portfolio-filter-icon {
  width: clamp(36px, 2.65vw, 46px);
  height: clamp(36px, 2.65vw, 46px);
}
.portfolio-page .portfolio-filter-icon svg {
  stroke-width: 1.65;
}
.portfolio-page .portfolio-filter::after {
  left: 17%;
  right: 17%;
  height: 3px;
}
.portfolio-page .portfolio-filter-context {
  min-height: 0;
  margin: 0;
}
.portfolio-page .portfolio-load-status { min-height: 0; height: 0; overflow: hidden; }

.portfolio-page .portfolio-workspace {
  height: 100%;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}
.portfolio-page .portfolio-gallery-area {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}
.portfolio-page .portfolio-result-grid {
  height: 100%;
  min-height: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.15vh, 16px);
  overflow: hidden;
}
.portfolio-page .portfolio-result-card {
  height: 100%;
  min-height: 0;
  border-radius: 13px;
}
.portfolio-page .portfolio-result-card > button {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}
.portfolio-page .portfolio-card-image {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}
.portfolio-page .portfolio-card-copy {
  min-height: clamp(47px, 6.2vh, 61px);
  padding: clamp(7px, .8vh, 10px) 11px;
  gap: 1px;
}
.portfolio-page .portfolio-card-copy b {
  font-size: clamp(.7rem, .72vw, .88rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portfolio-page .portfolio-card-copy small {
  font-size: clamp(.58rem, .58vw, .7rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portfolio-page .portfolio-card-check {
  width: 25px;
  height: 25px;
}
.portfolio-page .portfolio-gallery-footer {
  min-height: 34px;
  height: 34px;
  margin-top: 6px;
}
.portfolio-page .portfolio-gallery-footer p { font-size: .72rem; }
.portfolio-page .portfolio-pagination { gap: 5px; }
.portfolio-page .portfolio-pagination button {
  width: 29px;
  height: 29px;
  font-size: .72rem;
}

/* Panel kanan mengisi tinggi workspace, tanpa menambah tinggi halaman. */
.portfolio-page .portfolio-detail-panel {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 0;
  padding: clamp(12px, 1.15vw, 18px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.portfolio-page .portfolio-preview {
  flex: 0 0 clamp(165px, 31vh, 285px);
  min-height: 0;
  aspect-ratio: auto;
}
.portfolio-page .portfolio-detail-heading {
  flex: 0 0 auto;
  padding: clamp(8px, 1vh, 12px) 0;
}
.portfolio-page .portfolio-detail-heading h2 {
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(27vw, 380px);
}
.portfolio-page .portfolio-detail-heading p { font-size: .72rem; }
.portfolio-page .portfolio-share {
  min-height: 34px;
  font-size: .72rem;
}
.portfolio-page .portfolio-spec-card {
  flex: 0 0 auto;
  padding: clamp(9px, .85vw, 13px);
}
.portfolio-page .portfolio-spec-card h3,
.portfolio-page .portfolio-description h3 {
  margin-bottom: 7px;
  font-size: .78rem;
}
.portfolio-page .portfolio-spec-columns { gap: 10px; }
.portfolio-page .portfolio-main-specs { padding-right: 10px; }
.portfolio-page .portfolio-main-specs > div {
  grid-template-columns: minmax(82px, .72fr) 1fr;
  gap: 6px;
  padding: 3px 0;
}
.portfolio-page .portfolio-main-specs dt,
.portfolio-page .portfolio-main-specs dd,
.portfolio-page .portfolio-extra-specs h4,
.portfolio-page .portfolio-extra-specs li {
  font-size: clamp(.59rem, .58vw, .7rem);
}
.portfolio-page .portfolio-main-specs dt svg { width: 14px; height: 14px; }
.portfolio-page .portfolio-extra-specs h4 { margin: 1px 0 5px; }
.portfolio-page .portfolio-extra-specs li { padding-top: 3px; padding-bottom: 3px; }
.portfolio-page .portfolio-description {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 1px 0;
  overflow: hidden;
}
.portfolio-page .portfolio-description p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(.65rem, .64vw, .76rem);
  line-height: 1.42;
}
.portfolio-page .portfolio-detail-actions {
  flex: 0 0 auto;
  gap: 8px;
  padding-top: 9px;
}
.portfolio-page .portfolio-detail-actions .btn {
  min-height: 40px;
  padding-inline: 10px;
  font-size: .7rem;
}
.portfolio-page .portfolio-detail-placeholder { min-height: 0; height: 100%; }

@media (max-width: 1280px) and (min-width: 900px) {
  .portfolio-page .portfolio-shell {
    width: min(100% - 30px, 1840px);
  }
  .portfolio-page .portfolio-workspace {
    grid-template-columns: minmax(0, 1.42fr) minmax(330px, .88fr);
  }
  .portfolio-page .portfolio-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .portfolio-page .portfolio-spec-columns { grid-template-columns: 1fr 1fr; }
  .portfolio-page .portfolio-main-specs {
    border-right: 1px solid #e5e9ef;
    border-bottom: 0;
    padding-right: 8px;
    padding-bottom: 0;
  }
  .portfolio-page .portfolio-detail-heading h2 { max-width: 250px; }
}

@media (max-height: 820px) and (min-width: 900px) {
  .portfolio-page .portfolio-shell {
    gap: 7px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .portfolio-page .portfolio-page-heading .eyebrow { font-size: .52rem; }
  .portfolio-page .portfolio-page-heading h1 { font-size: clamp(1.55rem, 2vw, 2.15rem); }
  .portfolio-page .portfolio-page-heading p { font-size: .7rem; }
  .portfolio-page .portfolio-filter-bar,
  .portfolio-page .portfolio-filter { min-height: 72px; }
  .portfolio-page .portfolio-filter-icon { width: 34px; height: 34px; }
  .portfolio-page .portfolio-filter { font-size: .65rem; }
  .portfolio-page .portfolio-card-copy { min-height: 43px; padding-block: 5px; }
  .portfolio-page .portfolio-gallery-footer { height: 28px; min-height: 28px; }
  .portfolio-page .portfolio-preview { flex-basis: clamp(135px, 25vh, 190px); }
  .portfolio-page .portfolio-detail-panel { padding: 10px; }
  .portfolio-page .portfolio-spec-card { padding: 8px; }
  .portfolio-page .portfolio-main-specs > div { padding: 2px 0; }
  .portfolio-page .portfolio-description p { -webkit-line-clamp: 2; }
  .portfolio-page .portfolio-detail-actions { padding-top: 6px; }
  .portfolio-page .portfolio-detail-actions .btn { min-height: 36px; }
}

/* Mobile: halaman utama tetap terkunci satu viewport. Grid memakai 4 item/page.
   Detail tetap fullscreen dan dapat di-scroll internal bila informasi panjang. */
@media (max-width: 899px) {
  body.portfolio-page { overflow: hidden; }
  .portfolio-page .portfolio-shell {
    width: calc(100% - 20px);
    height: 100%;
    padding-top: 10px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .portfolio-page .portfolio-page-heading { margin: 0; }
  .portfolio-page .portfolio-page-heading .eyebrow { font-size: .52rem; }
  .portfolio-page .portfolio-page-heading h1 {
    margin: 2px 0;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
  .portfolio-page .portfolio-page-heading p {
    font-size: .68rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .portfolio-page .portfolio-filter-bar {
    min-height: 78px;
    margin-inline: 0;
  }
  .portfolio-page .portfolio-filter {
    flex-basis: 104px;
    min-height: 78px;
    font-size: .65rem;
    gap: 4px;
  }
  .portfolio-page .portfolio-filter-icon { width: 34px; height: 34px; }
  .portfolio-page .portfolio-workspace { height: 100%; min-height: 0; }
  .portfolio-page .portfolio-gallery-area { height: 100%; }
  .portfolio-page .portfolio-result-grid {
    height: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .portfolio-page .portfolio-card-copy { min-height: 43px; padding: 5px 7px; }
  .portfolio-page .portfolio-card-copy b { font-size: .66rem; }
  .portfolio-page .portfolio-card-copy small { font-size: .56rem; }
  .portfolio-page .portfolio-gallery-footer {
    height: 31px;
    min-height: 31px;
    margin-top: 4px;
    flex-direction: row;
    align-items: center;
  }
  .portfolio-page .portfolio-gallery-footer p { font-size: .58rem; }
  .portfolio-page .portfolio-pagination { align-self: auto; }
  .portfolio-page .portfolio-pagination button { width: 26px; height: 26px; font-size: .65rem; }

  .portfolio-page .portfolio-detail-panel {
    height: 100dvh;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .portfolio-page .portfolio-preview { height: auto; aspect-ratio: 1.35 / 1; }
  .portfolio-page .portfolio-detail-heading h2 {
    max-width: calc(100vw - 90px);
    white-space: normal;
  }
  .portfolio-page .portfolio-description p {
    display: block;
    overflow: visible;
  }
}

@media (max-width: 430px) and (max-height: 760px) {
  .portfolio-page .portfolio-page-heading p { display: none; }
  .portfolio-page .portfolio-filter-bar,
  .portfolio-page .portfolio-filter { min-height: 68px; }
  .portfolio-page .portfolio-filter-icon { width: 29px; height: 29px; }
  .portfolio-page .portfolio-filter { flex-basis: 94px; font-size: .59rem; }
  .portfolio-page .portfolio-card-copy { min-height: 38px; }
  .portfolio-page .portfolio-gallery-footer { height: 27px; min-height: 27px; }
}

/* v5.5.1 visual fit correction: detail actions/deskripsi wajib terlihat dalam viewport. */
@media (min-width: 900px) {
  .portfolio-page .portfolio-filter-icon {
    width: clamp(42px, 2.8vw, 50px);
    height: clamp(42px, 2.8vw, 50px);
  }
  .portfolio-page .portfolio-filter {
    font-size: clamp(.74rem, .76vw, .9rem);
  }
  .portfolio-page .portfolio-preview {
    flex-basis: clamp(165px, 25.5vh, 240px);
  }
  .portfolio-page .portfolio-detail-heading {
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .portfolio-page .portfolio-spec-card { padding: 10px 12px; }
  .portfolio-page .portfolio-main-specs > div { padding: 2px 0; }
  .portfolio-page .portfolio-extra-specs li { padding-top: 2px; padding-bottom: 2px; }
  .portfolio-page .portfolio-description {
    flex: 0 0 auto;
    padding-top: 6px;
  }
  .portfolio-page .portfolio-description h3 { margin-bottom: 4px; }
  .portfolio-page .portfolio-description p { -webkit-line-clamp: 2; }
  .portfolio-page .portfolio-detail-actions { padding-top: 7px; }
  .portfolio-page .portfolio-detail-actions .btn { min-height: 38px; }
}

/* v5.5.2 — restore fullscreen detail behaviour after locked desktop overrides. */
@media (max-width: 899px) {
  .portfolio-page .portfolio-detail-panel {
    position: fixed;
    z-index: 240;
    inset: 0;
    top: 0;
    width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: 62px 14px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(105%);
    transition: transform .28s ease;
    visibility: hidden;
    background: #fff;
  }
  body.portfolio-detail-open .portfolio-detail-panel {
    transform: translateY(0);
    visibility: visible;
  }
  .portfolio-page .portfolio-detail-close {
    position: fixed;
    top: 13px;
    right: 13px;
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: #fff;
  }
  .portfolio-page .portfolio-preview {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.35 / 1;
    margin-bottom: 10px;
  }
}

/* ========================================================================== 
   NEXORA v5.6 — PORTFOLIO FINAL FIT
   12 card (4x3) desktop, regular category labels, fixed-height detail panel.
   ========================================================================== */
@media (min-width: 1281px) {
  .portfolio-page .portfolio-result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, .9vh, 12px);
  }
  .portfolio-page .portfolio-card-copy {
    min-height: clamp(38px, 4.6vh, 48px);
    padding: 5px 9px 6px;
  }
  .portfolio-page .portfolio-card-copy b { font-size: clamp(.64rem, .62vw, .77rem); }
  .portfolio-page .portfolio-card-copy small { font-size: clamp(.52rem, .5vw, .62rem); }
  .portfolio-page .portfolio-preview {
    flex: 1 1 0;
    min-height: 180px;
    max-height: none;
  }
  .portfolio-page .portfolio-spec-card { flex: 0 0 auto; }
  .portfolio-page .portfolio-description {
    flex: 0 0 clamp(42px, 5.7vh, 64px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .portfolio-page .portfolio-description::-webkit-scrollbar { display: none; }
}
.portfolio-page .portfolio-filter { font-weight: 500; }
.portfolio-page .portfolio-filter.active { font-weight: 500; }
.portfolio-page .portfolio-detail-panel { height: 100%; }
.portfolio-page .portfolio-detail-actions { margin-top: auto; }

/* ========================================================================== 
   NEXORA v5.6 — DIGITAL SAMPLE LIBRARY / MATERIAL & FINISHING
   Desktop dan mobile memiliki komposisi khusus. Body utama terkunci satu viewport.
   ========================================================================== */
body.material-finishing-page {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: #f7f9fc;
}
.material-finishing-page .site-footer { display: none; }
.material-finishing-page .page-main,
.material-finishing-page .mf-experience {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.mf-shell {
  width: min(100% - clamp(28px, 4vw, 72px), 1840px);
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  padding: clamp(12px, 1.7vh, 20px) 0 clamp(10px, 1.4vh, 15px);
  display: grid;
  grid-template-rows: auto auto 0 minmax(0, 1fr) auto;
  gap: clamp(8px, 1vh, 12px);
  overflow: hidden;
}
.mf-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .58fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
}
.mf-heading-copy { max-width: 720px; }
.mf-page-heading .eyebrow { font-size: clamp(.58rem, .58vw, .7rem); }
.mf-page-heading h1 {
  margin: 5px 0 3px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 2.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.mf-page-heading p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(.74rem, .82vw, .96rem);
  line-height: 1.45;
}
.mf-mode-switch {
  justify-self: start;
  width: min(100%, 420px);
  min-height: clamp(62px, 7.8vh, 78px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(7,27,63,.06);
}
.mf-mode-switch button {
  border: 0;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
}
.mf-mode-switch button + button { border-left: 1px solid #e4e8ef; }
.mf-mode-switch button.active { color: #fff; background: var(--navy); }
.mf-mode-switch span { width: 25px; height: 25px; display: grid; place-items: center; }
.mf-mode-switch svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.mf-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  overflow: hidden;
  border: 1px solid #e0e5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(7,27,63,.07);
}
.mf-filter {
  position: relative;
  min-height: clamp(70px, 8.8vh, 88px);
  border: 0;
  border-right: 1px solid #e8ecf2;
  background: #fff;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: clamp(.64rem, .68vw, .82rem);
  font-weight: 500;
  line-height: 1.12;
  text-align: center;
  transition: color .2s ease, background .2s ease;
}
.mf-filter:last-child { border-right: 0; }
.mf-filter::after {
  content: "";
  position: absolute;
  left: 16%; right: 16%; bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.mf-filter:hover { background: #fffaf6; }
.mf-filter.active { color: var(--orange); background: #fffdfb; }
.mf-filter.active::after { transform: scaleX(1); }
.mf-filter-icon { width: clamp(31px, 2.25vw, 40px); height: clamp(31px, 2.25vw, 40px); display: grid; place-items: center; }
.mf-filter-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.mf-load-status { height: 0; min-height: 0; margin: 0; overflow: hidden; }

.mf-workspace {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(430px, .94fr);
  gap: clamp(12px, 1.25vw, 20px);
  align-items: stretch;
  overflow: hidden;
}
.mf-library {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 32px;
  overflow: hidden;
}
.mf-card-grid {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(9px, 1vh, 14px);
  overflow: hidden;
}
.mf-card {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dde3ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(7,27,63,.035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mf-card:hover { transform: translateY(-2px); border-color: rgba(255,101,0,.45); box-shadow: 0 10px 24px rgba(7,27,63,.08); }
.mf-card.active { border: 2px solid var(--orange); box-shadow: 0 9px 22px rgba(255,101,0,.12); }
.mf-card > button {
  position: relative;
  width: 100%; height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: inherit;
  text-align: left;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.mf-card-image { min-height: 0; overflow: hidden; background: #f2f1ee; }
.mf-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.mf-card:hover .mf-card-image img { transform: scale(1.035); }
.mf-card-copy { min-height: clamp(39px, 4.8vh, 51px); padding: 6px 9px 7px; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.mf-card-copy b { color: var(--navy); font-size: clamp(.64rem, .65vw, .8rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-card-copy small { color: var(--muted); font-size: clamp(.52rem, .5vw, .62rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-card-check {
  position: absolute;
  top: 7px; right: 7px;
  width: 25px; height: 25px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff; background: var(--orange);
  opacity: 0; transform: scale(.72);
  transition: .2s ease;
  box-shadow: 0 6px 15px rgba(255,101,0,.28);
}
.mf-card-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.mf-card.active .mf-card-check { opacity: 1; transform: scale(1); }
.mf-empty { grid-column: 1/-1; grid-row: 1/-1; border: 1px dashed #cbd3df; border-radius: 15px; background: #fff; display: grid; place-content: center; text-align: center; padding: 30px; }
.mf-empty > span { width: 48px; margin: 0 auto; color: var(--orange); }
.mf-empty svg { width: 100%; fill: none; stroke: currentColor; }
.mf-empty h2 { color: var(--navy); margin: 10px 0 3px; }
.mf-empty p { margin: 0; color: var(--muted); }
.mf-library-footer { height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mf-library-footer p { margin: 0; color: var(--muted); font-size: .68rem; }
.mf-pagination { display: flex; align-items: center; gap: 5px; }
.mf-pagination button { width: 28px; height: 28px; padding: 0; border: 1px solid #dbe1ea; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: .7rem; }
.mf-pagination button.active { color: #fff; background: var(--orange); border-color: var(--orange); }
.mf-pagination button:disabled { opacity: .35; cursor: not-allowed; }
.mf-pagination svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.mf-detail-panel {
  position: relative;
  height: 100%;
  min-height: 0;
  padding: clamp(11px, 1vw, 16px);
  border: 1px solid #dfe5ed;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(7,27,63,.09);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mf-detail-close { display: none; }
.mf-detail-preview {
  flex: 1 1 0;
  min-height: 170px;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f1ee;
}
.mf-detail-preview img { width: 100%; height: 100%; object-fit: cover; }
.mf-detail-heading { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0 8px; }
.mf-detail-heading h2 { margin: 0 0 1px; color: var(--navy); font-size: clamp(1.05rem, 1.28vw, 1.55rem); line-height: 1.08; }
.mf-detail-heading p { margin: 0; color: var(--orange); font-size: .66rem; font-weight: 650; }
.mf-share { min-height: 34px; padding: 0 10px; border: 1px solid #dfe4ec; border-radius: 8px; background: #fff; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .68rem; }
.mf-share svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mf-detail-scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.mf-detail-scroll::-webkit-scrollbar { display: none; }
.mf-info-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 8px 0 6px; border-top: 1px solid #e7ebf1; }
.mf-info-columns section + section { border-left: 1px solid #e7ebf1; padding-left: 13px; }
.mf-detail-panel h3 { margin: 0 0 6px; color: var(--navy); font-size: .72rem; }
.mf-info-columns dl { margin: 0; }
.mf-info-columns dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 7px; padding: 3px 0; font-size: .61rem; }
.mf-info-columns dt { color: var(--navy); }
.mf-info-columns dd { margin: 0; color: #526075; }
.mf-check-list { list-style: none; margin: 0; padding: 0; }
.mf-check-list li { display: flex; gap: 6px; align-items: center; padding: 2px 0; color: #526075; font-size: .61rem; }
.mf-check-list svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: var(--orange); stroke-width: 2.2; }
.mf-uses, .mf-combinations, .mf-notes, .mf-related { padding-top: 7px; }
.mf-uses > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.mf-uses span { min-width: 0; min-height: 45px; padding: 5px 3px; border: 1px solid #e2e7ef; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; color: var(--navy); }
.mf-uses svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.mf-uses b { max-width: 100%; font-size: .49rem; line-height: 1.08; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-combinations > div { display: flex; flex-wrap: wrap; gap: 5px; }
.mf-combinations span { padding: 4px 7px; border-radius: 999px; background: #f2f5f9; color: var(--navy); font-size: .55rem; }
.mf-notes p { margin: 0; color: var(--muted); font-size: .61rem; line-height: 1.42; }
.mf-related-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mf-related-heading h3 { margin-bottom: 5px; }
.mf-related-heading a { color: var(--navy); display: inline-flex; align-items: center; gap: 4px; font-size: .57rem; font-weight: 700; }
.mf-related-heading svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.mf-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.mf-related-grid a { min-width: 0; position: relative; overflow: hidden; border-radius: 7px; background: #f2f3f5; aspect-ratio: 1.25/1; }
.mf-related-grid img { width: 100%; height: 100%; object-fit: cover; }
.mf-related-grid span { position: absolute; inset: auto 0 0; padding: 13px 5px 4px; color: #fff; font-size: .45rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(transparent, rgba(7,27,63,.82)); }
.mf-related-empty { margin: 0; padding: 8px; border-radius: 7px; background: #f4f6f9; color: var(--muted); font-size: .58rem; }
.mf-detail-actions { flex: 0 0 auto; margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; }
.mf-detail-actions .btn { min-height: 43px; padding: 5px 10px; font-size: .67rem; }
.mf-detail-actions .btn > span { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.mf-detail-actions .btn small { margin-top: 2px; font-size: .5rem; font-weight: 500; opacity: .78; white-space: nowrap; }
.mf-detail-actions svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
.mf-detail-placeholder { height: 100%; display: grid; place-content: center; text-align: center; padding: 30px; }
.mf-detail-placeholder > span { width: 50px; margin: 0 auto; color: var(--orange); }
.mf-detail-placeholder svg { width: 100%; fill: none; stroke: currentColor; }
.mf-detail-placeholder h2 { color: var(--navy); margin: 12px 0 3px; }
.mf-detail-placeholder p { color: var(--muted); margin: 0; max-width: 280px; }

.mf-trust-strip {
  min-height: clamp(54px, 6.6vh, 68px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(7,27,63,.045);
}
.mf-trust-strip article { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 13px; }
.mf-trust-strip article + article { border-left: 1px solid #e7ebf1; }
.mf-trust-strip article > span { width: 28px; height: 28px; color: var(--navy); display: grid; place-items: center; }
.mf-trust-strip svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }
.mf-trust-strip div { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mf-trust-strip b { color: var(--navy); font-size: .68rem; }
.mf-trust-strip small { color: var(--muted); font-size: .55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1280px) and (min-width: 900px) {
  .mf-workspace { grid-template-columns: minmax(0, 1.5fr) minmax(350px, .9fr); }
  .mf-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .mf-info-columns { grid-template-columns: 1fr; }
  .mf-info-columns section + section { border-left: 0; border-top: 1px solid #e7ebf1; padding: 7px 0 0; }
  .mf-uses > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mf-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-height: 820px) and (min-width: 900px) {
  .mf-shell { padding-top: 8px; padding-bottom: 7px; gap: 6px; }
  .mf-page-heading h1 { font-size: clamp(1.6rem, 2.2vw, 2.45rem); }
  .mf-page-heading p { font-size: .68rem; }
  .mf-mode-switch { min-height: 54px; }
  .mf-filter, .mf-filter-bar { min-height: 62px; }
  .mf-filter-icon { width: 29px; height: 29px; }
  .mf-card-copy { min-height: 35px; padding-block: 4px; }
  .mf-detail-preview { min-height: 130px; }
  .mf-detail-heading { padding-block: 5px; }
  .mf-info-columns { padding-top: 5px; }
  .mf-uses, .mf-combinations, .mf-notes, .mf-related { padding-top: 4px; }
  .mf-trust-strip { min-height: 48px; }
}

/* Mobile: list page locked, detail opens fullscreen with internal scroll. */
@media (max-width: 899px) {
  body.material-finishing-page { overflow: hidden; }
  .mf-shell {
    width: calc(100% - 20px);
    height: 100%;
    padding-top: 10px;
    padding-bottom: 8px;
    gap: 8px;
    grid-template-rows: auto auto 0 minmax(0, 1fr);
  }
  .mf-page-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mf-page-heading .eyebrow { font-size: .52rem; }
  .mf-page-heading h1 { margin: 2px 0; font-size: clamp(1.45rem, 7vw, 2rem); }
  .mf-page-heading p { font-size: .68rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mf-mode-switch { width: 100%; min-height: 50px; justify-self: stretch; }
  .mf-mode-switch button { gap: 6px; font-size: .72rem; }
  .mf-mode-switch span { width: 20px; height: 20px; }
  .mf-filter-bar {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 13px;
  }
  .mf-filter-bar::-webkit-scrollbar { display: none; }
  .mf-filter { flex: 0 0 100px; min-height: 68px; scroll-snap-align: start; gap: 3px; font-size: .58rem; }
  .mf-filter-icon { width: 29px; height: 29px; }
  .mf-workspace { display: block; min-height: 0; height: 100%; }
  .mf-library { height: 100%; grid-template-rows: minmax(0, 1fr) 29px; }
  .mf-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mf-card-copy { min-height: 42px; padding: 5px 7px; }
  .mf-card-copy b { font-size: .67rem; }
  .mf-card-copy small { font-size: .56rem; }
  .mf-library-footer { height: 29px; }
  .mf-library-footer p { font-size: .56rem; }
  .mf-pagination button { width: 25px; height: 25px; font-size: .62rem; }
  .mf-trust-strip { display: none; }

  .mf-detail-panel {
    position: fixed;
    z-index: 240;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 58px 14px 18px;
    border: 0;
    border-radius: 0;
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(105%);
    transition: transform .28s ease;
    visibility: hidden;
  }
  body.mf-detail-open { overflow: hidden; }
  body.mf-detail-open .mf-detail-panel { transform: translateY(0); visibility: visible; }
  .mf-detail-close {
    display: grid;
    position: fixed;
    top: 12px; right: 12px;
    width: 40px; height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--navy);
    z-index: 3;
  }
  .mf-detail-close svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
  .mf-detail-preview { width: 100%; height: auto; min-height: 0; aspect-ratio: 1.45/1; flex: none; }
  .mf-detail-heading h2 { font-size: 1.2rem; }
  .mf-share span { display: none; }
  .mf-share { width: 38px; padding: 0; justify-content: center; }
  .mf-detail-scroll { overflow: visible; }
  .mf-info-columns { grid-template-columns: 1fr; }
  .mf-info-columns section + section { border-left: 0; border-top: 1px solid #e7ebf1; padding: 10px 0 0; }
  .mf-detail-panel h3 { font-size: .82rem; }
  .mf-info-columns dl > div { grid-template-columns: 92px 1fr; font-size: .7rem; padding: 4px 0; }
  .mf-check-list li { font-size: .7rem; padding: 3px 0; }
  .mf-uses > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mf-uses span { min-height: 52px; }
  .mf-uses b { font-size: .53rem; }
  .mf-notes p { font-size: .72rem; line-height: 1.5; }
  .mf-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mf-related-grid a { aspect-ratio: 1.35/1; }
  .mf-related-grid span { font-size: .55rem; }
  .mf-detail-actions { position: sticky; bottom: -18px; padding: 12px 0 9px; background: #fff; }
  .mf-detail-actions .btn { min-height: 48px; }
}

@media (max-width: 430px) and (max-height: 760px) {
  .mf-page-heading p { display: none; }
  .mf-mode-switch { min-height: 44px; }
  .mf-filter { min-height: 61px; flex-basis: 92px; }
  .mf-filter-icon { width: 26px; height: 26px; }
  .mf-card-copy { min-height: 37px; }
}

/* ========================================================================== 
   NEXORA v5.7.1 — MOBILE HOMEPAGE & NAVIGATION REFINEMENT
   Scope: mobile composition and shared mobile navigation only.
   Desktop layout is intentionally unchanged.
   ========================================================================== */
@media (max-width: 899px) {
  html { scroll-padding-top: var(--header-h); }
  body.menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
  }

  .site-header {
    background: #fff;
    border-bottom-color: #e9edf3;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header-shell {
    position: relative;
    z-index: 302;
    width: 100%;
    padding-inline: 18px;
    background: #fff;
  }
  .brand-primary { min-width: 0; }
  .brand-logo-image {
    width: clamp(170px, 48vw, 208px);
    max-height: 38px;
  }
  .brand-tagline {
    padding-left: 43px;
    font-size: .4rem;
    letter-spacing: .18em;
  }
  .header-actions .btn-compact { display: none; }
  .menu-toggle {
    display: grid;
    place-content: center;
    width: 48px;
    height: 48px;
    margin-right: -7px;
    padding: 9px;
    border-radius: 12px;
    z-index: 304;
  }
  .menu-toggle span {
    width: 28px;
    height: 2.5px;
    margin: 3.5px 0;
    border-radius: 999px;
    transform-origin: center;
  }
  .menu-toggle.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

  .mobile-menu {
    display: block;
    position: fixed;
    z-index: 300;
    inset: var(--header-h) 0 0;
    padding: 24px 20px max(24px, env(safe-area-inset-bottom));
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(.2,.75,.25,1), opacity .18s ease, visibility 0s linear .26s;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }
  .mobile-menu nav {
    width: min(100%, 520px);
    min-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .mobile-menu nav > a {
    min-height: 58px;
    padding: 0 4px;
    border-bottom: 1px solid #e8edf3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--navy);
    font-size: 1.06rem;
    font-weight: 650;
  }
  .mobile-menu nav > a::after {
    content: "→";
    color: #9aa6b7;
    font-weight: 500;
    transition: transform .18s ease, color .18s ease;
  }
  .mobile-menu nav > a:hover::after { transform: translateX(4px); }
  .mobile-menu nav > a.active,
  .mobile-menu nav > a[aria-current="page"] {
    color: var(--orange);
  }
  .mobile-menu nav > a.active::after,
  .mobile-menu nav > a[aria-current="page"]::after { color: var(--orange); }
  .mobile-menu .btn {
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    transform: none;
    flex: 0 0 auto;
  }

  /* Homepage: mobile-first vertical composition, no text/image overlap. */
  .home-c1-final {
    --header-h: 72px;
    overflow: hidden;
  }
  .home-c1-final .site-header { height: var(--header-h); }
  .home-c1-final .header-shell { padding-inline: 18px; }
  .home-c1-final .home-screen {
    height: calc(100dvh - 0px);
    min-height: 700px;
    padding-top: var(--header-h);
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
  }
  .home-c1-final .hero-home {
    min-height: 0;
    overflow: hidden;
  }
  .home-c1-final .hero-home-inner {
    width: 100%;
    height: 100%;
    padding: clamp(18px, 3vh, 28px) 20px 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(150px, 1fr) auto;
    grid-template-areas:
      "eyebrow"
      "title"
      "description"
      "visual"
      "actions";
    align-items: start;
    gap: 0;
  }
  .home-c1-final .hero-copy { display: contents; }
  .home-c1-final .hero-copy .eyebrow {
    grid-area: eyebrow;
    align-self: end;
    margin: 0 0 10px;
    font-size: .68rem;
    letter-spacing: .16em;
  }
  .home-c1-final .hero-copy h1 {
    grid-area: title;
    width: min(100%, 410px);
    max-width: none;
    margin: 0;
    font-size: clamp(2.15rem, 9.7vw, 3.05rem);
    line-height: .99;
    letter-spacing: -.045em;
    text-wrap: balance;
  }
  .home-c1-final .hero-copy p {
    grid-area: description;
    width: min(100%, 420px);
    max-width: none;
    margin: 12px 0 0;
    font-size: clamp(.78rem, 3.3vw, .92rem);
    line-height: 1.48;
  }
  .home-c1-final .hero-visual {
    grid-area: visual;
    min-height: 0;
    align-self: stretch;
    justify-content: center;
    overflow: hidden;
    margin: 2px -12px 0;
  }
  .home-c1-final .hero-product-photo {
    width: 100%;
    height: 100%;
    max-width: 540px;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transform: none;
    animation: none;
  }
  .home-c1-final .hero-buttons {
    grid-area: actions;
    margin-top: 4px;
  }
  .home-c1-final .hero-buttons .btn {
    min-height: 44px;
    padding-inline: 19px;
    border-radius: 10px;
    font-size: .78rem;
  }

  .home-c1-final .home-categories {
    padding: 0 14px max(12px, env(safe-area-inset-bottom));
    border-top: 0;
    background: #fff;
    box-shadow: none;
  }
  .home-c1-final .category-rail {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 34px rgba(7,27,63,.11);
  }
  .home-c1-final .category-rail-viewport {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 0;
    padding: 0;
    overflow: visible;
  }
  .home-c1-final .home-category {
    min-height: 76px;
    padding: 7px 3px 6px;
    gap: 4px;
    border: 0;
    border-right: 1px solid #e7ebf1;
    border-bottom: 1px solid #e7ebf1;
    border-radius: 0;
    transform: none;
  }
  .home-c1-final .home-category:nth-child(4),
  .home-c1-final .home-category:nth-child(7) { border-right: 0; }
  .home-c1-final .home-category:nth-child(n+5) { border-bottom: 0; }
  .home-c1-final .home-category:nth-child(5) { grid-column: 1 / 2; }
  .home-c1-final .home-category .category-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: transparent;
  }
  .home-c1-final .home-category .category-icon svg {
    width: 31px;
    height: 31px;
  }
  .home-c1-final .home-category b {
    font-size: clamp(.65rem, 2.7vw, .77rem);
    font-weight: 700;
    line-height: 1.08;
  }
  .home-c1-final .home-category small { display: none; }
  .home-c1-final .home-category:hover {
    background: #fff8f2;
    border-color: #e7ebf1;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 430px) {
  .home-c1-final .home-screen { min-height: 660px; }
  .home-c1-final .hero-home-inner {
    padding-inline: 18px;
    padding-top: clamp(15px, 2.3vh, 22px);
    grid-template-rows: auto auto auto minmax(140px, 1fr) auto;
  }
  .home-c1-final .hero-copy h1 {
    max-width: 360px;
    font-size: clamp(2rem, 10.4vw, 2.75rem);
  }
  .home-c1-final .hero-copy p {
    margin-top: 10px;
    font-size: clamp(.75rem, 3.45vw, .87rem);
  }
  .home-c1-final .hero-visual { margin-inline: -10px; }
  .home-c1-final .category-rail { padding: 7px; }
  .home-c1-final .home-category { min-height: 72px; }
  .home-c1-final .home-category .category-icon { width: 35px; height: 35px; }
  .home-c1-final .home-category .category-icon svg { width: 29px; height: 29px; }
}

@media (max-width: 370px), (max-height: 760px) and (max-width: 899px) {
  .home-c1-final .home-screen { min-height: 620px; }
  .home-c1-final .hero-home-inner {
    padding-top: 12px;
    grid-template-rows: auto auto auto minmax(115px, 1fr) auto;
  }
  .home-c1-final .hero-copy .eyebrow { margin-bottom: 7px; font-size: .61rem; }
  .home-c1-final .hero-copy h1 { font-size: clamp(1.82rem, 9.5vw, 2.35rem); }
  .home-c1-final .hero-copy p { margin-top: 7px; font-size: .72rem; line-height: 1.4; }
  .home-c1-final .hero-buttons .btn { min-height: 39px; }
  .home-c1-final .home-category { min-height: 65px; }
  .home-c1-final .home-category .category-icon { width: 32px; height: 32px; }
  .home-c1-final .home-category .category-icon svg { width: 26px; height: 26px; }
  .home-c1-final .home-category b { font-size: .61rem; }
}


/* ========================================================================== 
   NEXORA v5.7.2 — RESPONSIVE REFINEMENT
   - Compact professional mobile dropdown navigation
   - Stable stacked mobile homepage composition
   - Fixed bottom actions in Material & Finishing mobile detail
   - More proportional desktop scale
   ========================================================================== */
.hero-mobile-actions { display: none; }

@media (min-width: 900px) {
  /* Desktop homepage: reduce oversized visual scale without changing concept C1. */
  .home-c1-final {
    --c1-content: min(1480px, calc(100vw - 92px));
    --c1-category: min(1360px, calc(100vw - 132px));
  }
  .home-c1-final .header-shell,
  .home-c1-final .hero-home-inner { max-width: 1480px; }
  .home-c1-final .home-screen {
    grid-template-rows: minmax(0, 1fr) clamp(122px, 13.8vh, 146px);
  }
  .home-c1-final .hero-home-inner {
    grid-template-columns: minmax(440px, .82fr) minmax(0, 1.18fr);
    gap: clamp(30px, 3vw, 58px);
  }
  .home-c1-final .hero-copy { max-width: 600px; }
  .home-c1-final .hero-copy h1 {
    max-width: 600px;
    font-size: clamp(3.35rem, 4.15vw, 5.15rem);
    margin-bottom: 20px;
  }
  .home-c1-final .hero-copy p {
    max-width: 560px;
    font-size: clamp(.94rem, .88vw, 1.06rem);
    line-height: 1.55;
  }
  .home-c1-final .hero-product-photo {
    width: min(104%, 900px);
    max-height: calc(100dvh - var(--header-h) - 126px);
    transform: translateX(1%) scale(1);
  }
  .home-c1-final .category-rail {
    max-width: 1360px;
    margin-top: -24px;
    padding: 11px 17px;
    border-radius: 18px;
  }
  .home-c1-final .home-category { min-height: 88px; padding: 7px 10px; }
  .home-c1-final .home-category .category-icon { width: 41px; height: 41px; }
  .home-c1-final .home-category .category-icon svg { width: 36px; height: 36px; }
  .home-c1-final .home-category b { font-size: clamp(.72rem, .66vw, .84rem); }
  .home-c1-final .home-category small { font-size: clamp(.56rem, .5vw, .66rem); }

  /* Desktop portfolio and sample library: balanced margins and compact controls. */
  .portfolio-page .portfolio-shell,
  .material-finishing-page .mf-shell { width: min(calc(100% - 72px), 1480px); }
  .portfolio-page .portfolio-filter-bar,
  .portfolio-page .portfolio-filter { min-height: clamp(72px, 8.8vh, 88px); }
  .portfolio-page .portfolio-filter-icon { width: clamp(32px, 2.25vw, 40px); height: clamp(32px, 2.25vw, 40px); }
  .portfolio-page .portfolio-page-heading h1 { font-size: clamp(1.65rem, 2vw, 2.35rem); }
  .material-finishing-page .mf-page-heading h1 { font-size: clamp(1.75rem, 2.25vw, 2.7rem); }
  .material-finishing-page .mf-mode-switch { width: min(100%, 380px); min-height: clamp(56px, 6.8vh, 68px); }
  .material-finishing-page .mf-filter-bar,
  .material-finishing-page .mf-filter { min-height: clamp(68px, 8.2vh, 82px); }
  .material-finishing-page .mf-filter-icon { width: clamp(29px, 2vw, 36px); height: clamp(29px, 2vw, 36px); }
}

@media (max-width: 899px) {
  /* Compact dropdown: professional card, not a full-screen menu. */
  body.menu-open {
    overflow: hidden !important;
    touch-action: auto;
  }
  body.menu-open::before {
    content: "";
    position: fixed;
    z-index: 98;
    inset: var(--header-h) 0 0;
    background: rgba(7, 27, 63, .12);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
  }
  .site-header { overflow: visible; }
  .mobile-menu {
    display: block;
    position: fixed;
    z-index: 301;
    inset: calc(var(--header-h) + 10px) 12px auto auto;
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100dvh - var(--header-h) - 24px);
    padding: 9px;
    border: 1px solid #e1e7ef;
    border-radius: 18px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 22px 54px rgba(7,27,63,.2);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(.975);
    transform-origin: top right;
    transition: transform .2s ease, opacity .16s ease, visibility 0s linear .2s;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }
  .mobile-menu nav {
    width: 100%;
    min-height: 0;
    margin: 0;
    display: grid;
    gap: 2px;
  }
  .mobile-menu nav > a {
    position: relative;
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--navy);
    font-size: .92rem;
    font-weight: 620;
  }
  .mobile-menu nav > a::after { display: none; }
  .mobile-menu nav > a:hover { background: #f5f7fa; }
  .mobile-menu nav > a.active,
  .mobile-menu nav > a[aria-current="page"] {
    color: var(--orange);
    background: #fff6ef;
  }
  .mobile-menu nav > a.active::before,
  .mobile-menu nav > a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 5px;
    width: 3px;
    height: 22px;
    border-radius: 999px;
    background: var(--orange);
  }
  .mobile-menu .btn {
    width: 100%;
    min-height: 46px;
    margin-top: 7px;
    border-radius: 11px;
    font-size: .88rem;
  }

  /* Homepage: explicit normal-flow stack prevents text/image collision. */
  body.home-c1-final {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .home-c1-final .home-screen {
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-h);
    overflow: visible;
  }
  .home-c1-final .hero-home {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }
  .home-c1-final .hero-home-inner {
    width: 100%;
    height: auto;
    padding: clamp(24px, 4.2vh, 38px) 20px 4px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .home-c1-final .hero-copy {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .home-c1-final .hero-copy .eyebrow {
    margin: 0 0 11px;
    font-size: .67rem;
  }
  .home-c1-final .hero-copy h1 {
    width: 100%;
    max-width: 410px;
    margin: 0;
    font-size: clamp(2.2rem, 10.5vw, 3rem);
    line-height: 1;
    letter-spacing: -.045em;
  }
  .home-c1-final .hero-copy p {
    width: 100%;
    max-width: 420px;
    margin: 13px 0 0;
    font-size: clamp(.8rem, 3.45vw, .94rem);
    line-height: 1.5;
  }
  .home-c1-final .hero-copy .hero-buttons { display: none; }
  .home-c1-final .hero-visual {
    width: 100%;
    height: clamp(235px, 38vh, 335px);
    min-height: 0;
    margin: 4px 0 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }
  .home-c1-final .hero-product-photo {
    width: 100%;
    height: 100%;
    max-width: 540px;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
  .home-c1-final .hero-mobile-actions {
    display: flex;
    margin-top: 3px;
  }
  .home-c1-final .hero-mobile-actions .btn {
    min-height: 44px;
    padding-inline: 19px;
    border-radius: 10px;
    font-size: .8rem;
  }
  .home-c1-final .home-categories {
    flex: 0 0 auto;
    padding: 14px 14px max(14px, env(safe-area-inset-bottom));
  }
  .home-c1-final .category-rail { margin-top: 0; }

  /* Mobile detail: preview/header remain stable, content scrolls, actions lock at bottom. */
  .mf-detail-panel {
    padding: 56px 14px max(10px, env(safe-area-inset-bottom));
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .mf-detail-preview { flex: 0 0 auto; }
  .mf-detail-heading { flex: 0 0 auto; }
  .mf-detail-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding-bottom: 10px;
  }
  .mf-detail-scroll::-webkit-scrollbar { display: none; }
  .mf-detail-actions {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #e1e6ee;
    border-radius: 15px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -10px 28px rgba(7,27,63,.1);
  }
  .mf-detail-actions .btn { min-height: 50px; }
}

@media (max-width: 430px) {
  .home-c1-final .hero-home-inner { padding-inline: 18px; padding-top: 22px; }
  .home-c1-final .hero-copy h1 { font-size: clamp(2rem, 10.4vw, 2.72rem); }
  .home-c1-final .hero-visual { height: clamp(220px, 35vh, 300px); }
  .home-c1-final .home-categories { padding-top: 11px; }
  .mobile-menu { inset-inline: 10px; width: auto; }
  .mf-detail-actions { gap: 7px; }
  .mf-detail-actions .btn { padding-inline: 8px; font-size: .64rem; }
  .mf-detail-actions .btn small { font-size: .47rem; }
}

@media (min-width: 1281px) {
  .portfolio-page .portfolio-result-grid {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1280px) {
  .portfolio-page .portfolio-result-grid {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
}

/* v5.8.0 — dynamic Mobile Control data states */
.mf-check-list .mf-data-pending {
  color: #6b778c;
  font-style: italic;
}
.mf-check-list .mf-data-pending::before {
  display: none;
}


/* ========================================================================== 
   NEXORA v5.8.1 — PRODUCTION READINESS: SHARED HEADER UNIFICATION
   LOCKED: Homepage and all internal pages use one header geometry.
   ========================================================================== */
body.home-c1-final,
body.portfolio-page,
body.material-finishing-page,
body.contact-page {
  --header-h: 76px;
}

/* One fixed header geometry for every public page. */
.site-header,
.home-c1-final .site-header {
  height: var(--header-h);
  background: rgba(255,255,255,.94);
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header.scrolled,
.home-c1-final .site-header.scrolled {
  box-shadow: 0 8px 28px rgba(7,27,63,.08);
  border-color: rgba(7,27,63,.08);
}
.site-header .header-shell,
.home-c1-final .header-shell {
  width: min(1320px, calc(100% - 40px));
  max-width: none;
  height: 100%;
  margin-inline: auto;
  padding-inline: 0;
  gap: 34px;
}
.site-header .brand,
.site-header .brand-primary,
.home-c1-final .brand,
.home-c1-final .brand-primary {
  min-width: 214px;
}
.site-header .desktop-nav,
.home-c1-final .desktop-nav {
  gap: 38px;
}
.site-header .desktop-nav > a,
.home-c1-final .desktop-nav > a {
  padding: 26px 0 24px;
  font-size: .88rem;
}
.site-header .header-actions .btn,
.home-c1-final .header-actions .btn {
  min-height: 43px;
  padding-inline: 18px;
  border-radius: 10px;
  font-size: .88rem;
}

/* All page content begins below the same frozen header height. */
.home-c1-final .home-screen,
.portfolio-page .page-main,
.material-finishing-page .page-main,
.contact-page .page-main {
  padding-top: var(--header-h);
}

@media (max-width: 899px) {
  :root { --header-h: 76px; }
  body.home-c1-final,
  body.portfolio-page,
  body.material-finishing-page,
  body.contact-page {
    --header-h: 76px;
  }
  .site-header,
  .home-c1-final .site-header {
    height: var(--header-h);
    background: #fff;
    border-bottom-color: #e9edf3;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header .header-shell,
  .home-c1-final .header-shell {
    width: 100%;
    max-width: none;
    height: 100%;
    padding-inline: 18px;
    gap: 20px;
  }
  .site-header .brand,
  .site-header .brand-primary,
  .home-c1-final .brand,
  .home-c1-final .brand-primary {
    min-width: 0;
  }
  .site-header .brand-logo-image,
  .home-c1-final .brand-logo-image {
    width: clamp(170px, 48vw, 208px);
    max-height: 38px;
  }
  .site-header .brand-tagline,
  .home-c1-final .brand-tagline {
    padding-left: 43px;
    font-size: .4rem;
    letter-spacing: .18em;
  }
  .site-header .menu-toggle,
  .home-c1-final .menu-toggle {
    width: 48px;
    height: 48px;
    margin-right: -7px;
  }
  .site-header .mobile-menu,
  .home-c1-final .mobile-menu {
    top: calc(var(--header-h) + 10px);
  }
}

@media (max-width: 430px) {
  .site-header .header-shell,
  .home-c1-final .header-shell {
    padding-inline: 18px;
  }
}

/* ========================================================================== 
   NEXORA v5.8.2 — HEADER ALIGNMENT, CACHE-SAFE RELEASE & FILTER CALIBRATION
   LOCKED:
   - Header desktop aligns to the same 1480 px content axis on every page.
   - CSS/JS release URLs are versioned to prevent stale Preview/Production UI.
   - Portfolio and Material/Finishing filter icons scale down with viewport.
   ========================================================================== */
@media (min-width: 900px) {
  .site-header .header-shell,
  .home-c1-final .header-shell {
    width: min(1480px, calc(100% - 72px));
    max-width: 1480px;
    margin-inline: auto;
    padding-inline: 0;
  }

  .portfolio-page .portfolio-filter-icon {
    width: clamp(24px, 1.65vw, 30px);
    height: clamp(24px, 1.65vw, 30px);
  }
  .portfolio-page .portfolio-filter {
    gap: clamp(3px, .4vw, 5px);
    padding-inline: clamp(5px, .6vw, 9px);
  }

  .material-finishing-page .mf-filter-icon {
    width: clamp(22px, 1.5vw, 28px);
    height: clamp(22px, 1.5vw, 28px);
  }
  .material-finishing-page .mf-filter {
    gap: clamp(3px, .38vw, 5px);
    padding-inline: clamp(5px, .55vw, 8px);
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .site-header .header-shell,
  .home-c1-final .header-shell {
    width: calc(100% - 40px);
  }
  .portfolio-page .portfolio-filter-icon {
    width: 24px;
    height: 24px;
  }
  .material-finishing-page .mf-filter-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 899px) {
  .portfolio-page .portfolio-filter-icon {
    width: clamp(23px, 6.8vw, 28px);
    height: clamp(23px, 6.8vw, 28px);
  }
  .material-finishing-page .mf-filter-icon {
    width: clamp(22px, 6.4vw, 27px);
    height: clamp(22px, 6.4vw, 27px);
  }
}



/* ========================================================================== 
   NEXORA v5.8.3 — CONTACT PROPORTION & DYNAMIC FINISHING FILTER FIT
   LOCKED:
   - Contact page receives the same 1480 px desktop axis as public pages.
   - Contact hero is compact, balanced, and no longer stretches edge-to-edge.
   - Material/Finishing filters use their actual group count on desktop.
   - Seven finishing groups stay in one row with smaller responsive icons.
   ========================================================================== */
@media (min-width: 900px) {
  .contact-page .inner-hero {
    width: min(1480px, calc(100% - 72px));
    min-height: clamp(520px, 66vh, 640px);
    margin: clamp(14px, 1.7vh, 22px) auto clamp(28px, 3.5vh, 42px);
    border: 1px solid #e4e9f0;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(7,27,63,.07);
    background: #fff;
  }
  .contact-page .inner-hero-grid {
    min-height: inherit;
    grid-template-columns: minmax(470px, .88fr) minmax(0, 1.12fr);
  }
  .contact-page .inner-hero-grid > div:first-child {
    padding: clamp(46px, 5.4vw, 82px) clamp(42px, 4.4vw, 70px)
      clamp(46px, 5.4vw, 82px) clamp(72px, 8vw, 128px);
  }
  .contact-page .inner-hero h1 {
    max-width: 620px;
    margin: 12px 0 18px;
    font-size: clamp(3.15rem, 4.15vw, 4.65rem);
    line-height: .98;
  }
  .contact-page .inner-hero p {
    max-width: 610px;
    font-size: clamp(.9rem, 1vw, 1.02rem);
    line-height: 1.55;
  }
  .contact-page .inner-hero-actions { margin-top: 23px; }
  .contact-page .inner-hero-visual {
    min-height: inherit;
    border-left: 1px solid #edf0f5;
    background: #f5f7fa;
  }
  .contact-page .inner-hero-visual::before { opacity: .18; }
  .contact-page .inner-hero-visual img {
    object-fit: cover;
    object-position: center;
  }

  .material-finishing-page .mf-filter-bar {
    grid-template-columns: repeat(var(--mf-filter-count, 6), minmax(0, 1fr));
  }
  .material-finishing-page .mf-filter-bar[data-mf-mode="finishing"] .mf-filter {
    min-width: 0;
    min-height: clamp(58px, 7.2vh, 68px);
    gap: 3px;
    padding: 5px 4px;
    font-size: clamp(.57rem, .58vw, .7rem);
  }
  .material-finishing-page .mf-filter-bar[data-mf-mode="finishing"] .mf-filter-icon {
    width: clamp(17px, 1.12vw, 21px);
    height: clamp(17px, 1.12vw, 21px);
  }
  .material-finishing-page .mf-filter-bar[data-mf-mode="finishing"] .mf-filter::after {
    left: 20%;
    right: 20%;
    height: 2px;
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .contact-page .inner-hero {
    width: calc(100% - 40px);
    min-height: 520px;
  }
  .contact-page .inner-hero-grid {
    grid-template-columns: minmax(390px, .92fr) minmax(0, 1.08fr);
  }
  .contact-page .inner-hero-grid > div:first-child {
    padding: 44px 38px 44px 48px;
  }
  .contact-page .inner-hero h1 { font-size: clamp(2.8rem, 4.6vw, 3.75rem); }
  .material-finishing-page .mf-filter-bar[data-mf-mode="finishing"] .mf-filter-icon {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 899px) {
  .contact-page .inner-hero {
    width: 100%;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .contact-page .inner-hero-grid { grid-template-columns: 1fr; }
  .contact-page .inner-hero-grid > div:first-child {
    padding: 42px 18px 30px;
  }
  .contact-page .inner-hero h1 {
    max-width: 620px;
    margin: 10px 0 16px;
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    line-height: .98;
  }
  .contact-page .inner-hero p { font-size: .9rem; line-height: 1.5; }
  .contact-page .inner-hero-visual {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .material-finishing-page .mf-filter-bar[data-mf-mode="finishing"] .mf-filter {
    flex-basis: 86px;
    min-height: 58px;
    gap: 2px;
    font-size: .54rem;
  }
  .material-finishing-page .mf-filter-bar[data-mf-mode="finishing"] .mf-filter-icon {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 430px) {
  .contact-page .inner-hero-grid > div:first-child { padding-inline: 16px; }
  .material-finishing-page .mf-filter-bar[data-mf-mode="finishing"] .mf-filter {
    flex-basis: 80px;
  }
  .material-finishing-page .mf-filter-bar[data-mf-mode="finishing"] .mf-filter-icon {
    width: 18px;
    height: 18px;
  }
}
