:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --panel: #fffdf8;
  --panel-soft: #e9e4db;
  --ink: #171717;
  --muted: #625c54;
  --line: #171717;
  --soft-line: #d9d4ca;
  --red: #e53935;
  --yellow: #f4c542;
  --blue: #1e5eff;
  --purple: #6d28d9;
  --max: 1180px;
  --pad: 16px;
  --radius: 0;
  --radius-sm: 0;
  --shadow: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--red);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #867f74;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.1rem, 8vw, 4.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 750;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
}

p {
  max-width: 68ch;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ink);
  background: rgba(247, 244, 238, 0.98);
}

.site-header__inner {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: 12px 0 10px;
  display: grid;
  gap: 10px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 4px;
  padding-top: 4px;
  flex: 0 0 auto;
}

.brand-mark__cell {
  width: 10px;
  height: 10px;
}

.brand-mark__cell--red {
  background: var(--red);
}

.brand-mark__cell--yellow {
  background: var(--yellow);
}

.brand-mark__cell--blue {
  background: var(--blue);
}

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

.brand-name {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.35;
}

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

.site-nav a {
  text-decoration: none;
}

.site-nav-primary {
  order: 2;
}

.site-nav-secondary {
  order: 3;
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-chip-red {
  background: var(--red);
  color: #fff;
}

.nav-chip-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.nav-chip-blue {
  background: var(--blue);
  color: #fff;
}

.site-main {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: 18px 0 92px;
  display: grid;
  gap: 24px;
}

.hero,
.page-hero,
.sample-detail,
.risk-page,
.page-shell {
  display: grid;
  gap: 16px;
}

.grace-home-copy {
  display: grid;
}

.grace-copy-shell {
  display: grid;
  gap: 14px;
  border: 1px solid var(--ink);
  background: var(--panel);
}

.grace-copy-top {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(135deg, #fffdf8 0%, #f7f4ee 64%, rgba(244, 197, 66, 0.18) 100%);
  border-bottom: 1px solid var(--ink);
}

.grace-copy-top h1 {
  max-width: 16ch;
}

.grace-copy-lede {
  font-size: 1.05rem;
  color: var(--muted);
}

.grace-copy-statement {
  color: var(--ink);
  font-weight: 800;
}

.grace-copy-grid {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.grace-copy-card ul {
  display: grid;
  gap: 10px;
}

.grace-copy-card-wide {
  background: #fff;
}

.section-block {
  display: grid;
  gap: 12px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-heading a {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-copy,
.hero-panel,
.page-hero,
.info-card,
.stats article,
.sample-card,
.filter-panel,
.gallery-primary,
.gallery-thumbs a,
.pagination a,
.pagination span,
.entity-list li,
.data-table,
.legal-form,
.empty-state {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
}

.page-hero {
  padding: 18px;
}

.hero-copy {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice {
  font-size: 0.88rem;
  color: var(--muted);
}

.search-box {
  display: grid;
  gap: 10px;
}

.quick-links,
.browse-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-links a,
.browse-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  background: #fff;
  text-decoration: none;
}

.quick-links a:hover,
.browse-links a:hover,
.footer-links a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.stats {
  display: grid;
  gap: 10px;
}

.stats article {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.stats strong {
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 800;
}

.stats span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.content-grid,
.info-card-grid {
  display: grid;
  gap: 12px;
}

.info-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.info-card ul {
  padding-left: 18px;
}

.entity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.entity-list li {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.entity-list a {
  font-weight: 700;
  text-decoration: none;
}

.entity-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.visual-grid,
.sample-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-sample-sections {
  display: grid;
  gap: 24px;
}

.home-sample-section {
  display: grid;
  gap: 12px;
}

.sample-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 42vw);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.sample-rail .sample-card {
  scroll-snap-align: start;
}

.sample-card {
  overflow: hidden;
  display: grid;
}

.sample-card > a {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.sample-card img,
.sample-card-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e9e4db;
  border-bottom: 1px solid var(--soft-line);
}

.sample-card-placeholder,
.image-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.image-fallback {
  width: 100%;
  min-height: 180px;
  aspect-ratio: 3 / 4;
  padding: 16px;
  background: #e9e4db;
  border-bottom: 1px solid var(--soft-line);
}

.gallery-primary .image-fallback {
  min-height: 360px;
  aspect-ratio: 4 / 5;
  border-bottom: 0;
}

.gallery-thumbs .image-fallback {
  min-height: 120px;
  aspect-ratio: 1 / 1;
  border-bottom: 0;
}

.sample-card h3 {
  padding: 0 12px;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sample-card-meta,
.sample-card-submeta {
  padding: 0 12px 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.sample-card-meta {
  padding-top: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sample-gallery {
  display: grid;
  gap: 12px;
}

.gallery-primary {
  overflow: hidden;
}

.gallery-primary a {
  display: block;
  color: inherit;
  cursor: zoom-in;
}

.gallery-primary img {
  width: 100%;
  background: #e9e4db;
}

.gallery-primary figcaption {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23, 23, 23, 0.34);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
  animation: lightboxFadeIn 140ms ease-out;
}

.image-lightbox__frame {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  width: min(94vw, 1100px);
  min-height: 100%;
  margin: auto;
  transform: translateY(0);
  animation: lightboxFloatIn 170ms ease-out;
}

.image-lightbox__frame img {
  max-width: min(94vw, 1100px);
  max-height: calc(94dvh - 78px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 22px 86px rgba(0, 0, 0, 0.32);
}

.image-lightbox__frame button {
  min-width: 140px;
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.image-lightbox__frame button:hover {
  background: var(--ink);
  color: #fff;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightboxFloatIn {
  from { transform: translateY(8px) scale(0.985); opacity: 0.86; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.sample-community-update {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--panel);
}

.sample-community-update:not(.community-safe-update) > p {
  display: none;
}

.sample-community-update:not(.community-safe-update)::before {
  content: "3. Visual Reference Updates\A GraceAudit community sample updates\A The website is maintained and updated by the GraceAudit community, with new visual reference samples added weekly. Join Discord to get the latest samples.\A Watch our HD visual reference samples: review close-up details in a reference video before browsing the archive.";
  white-space: pre-line;
  color: var(--ink);
}

.home-community-update {
  border-color: var(--purple);
  background: #f5f0ff;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button-link:hover {
  background: #4c1d95;
  color: #fff;
}

.sample-detail-card-row {
  display: grid;
  gap: 12px;
}

.gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-thumbs a {
  display: block;
  overflow: hidden;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sample-detail {
  gap: 18px;
}

.sample-detail-hero {
  display: grid;
  gap: 12px;
}

.sample-detail-identity {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--panel);
}

.sample-detail-meta {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sample-detail-visual {
  display: grid;
  gap: 10px;
}

.sample-facts {
  display: grid;
  gap: 12px;
}

.sample-facts dl,
.info-card dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 12px;
  margin: 0;
}

.sample-facts dt,
.info-card dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sample-facts dd,
.info-card dd {
  margin: 0;
}

.filter-panel {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.filter-search-row {
  display: grid;
  gap: 8px;
}

.filter-search-row input {
  min-height: 52px;
  font-size: 1rem;
}

.filter-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.filter-chip-row label {
  min-width: 150px;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-chip-row input,
.filter-chip-row select {
  min-height: 42px;
  background: #fff;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
}

.result-summary {
  color: var(--muted);
}

.applied-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  background: #fffdf8;
}

.applied-filters-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  background: #fff;
  font-size: 0.82rem;
}

.filter-chip strong {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  background: #fff;
  text-decoration: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(244, 197, 66, 0.18);
}

.legal-form {
  max-width: 760px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.legal-form label,
.filter-panel label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.legal-form .checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.legal-form .checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  padding: 12px;
  border: 1px solid #f1b2b2;
  background: #fff3f3;
  color: #8f1d1d;
}

.empty-state {
  padding: 14px;
  color: var(--muted);
  background: #fff;
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.site-footer__inner {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: grid;
  gap: 10px;
}

.site-footer p {
  max-width: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.bottom-tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  background: rgba(247, 244, 238, 0.98);
}

.bottom-tab-bar a {
  min-height: 56px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--soft-line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.bottom-tab-bar a:last-child {
  border-right: 0;
}

.bottom-tab-bar a:hover {
  background: var(--ink);
  color: #fff;
}

/* ── Samples community section (Sourcing + QC + Discord) ── */
.samples-community-section {
  display: grid;
  gap: 12px;
  padding: 0;
}

.grace-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--panel);
}

.grace-card-amber {
  border-color: #d97706;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.grace-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #92400e;
}

.grace-subtitle {
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.grace-paragraph {
  max-width: 68ch;
}

.grace-paragraph .font-semibold {
  font-weight: 700;
  margin-bottom: 6px;
}

.grace-sublist {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin-top: 8px;
}

.grace-sublist li {
  line-height: 1.5;
}

.grace-feature {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--panel);
}

.grace-feature-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.grace-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.grace-button:hover {
  background: #1a4acc;
  color: #fff;
}

.grace-tip {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.samples-community-join {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--purple);
  background: #f5f0ff;
}

.samples-community-join p {
  max-width: none;
}

.discovery-columns {
  display: grid;
  gap: 12px;
}

.browse-links span {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (min-width: 720px) {
  :root {
    --pad: 20px;
  }

  body {
    font-size: 17px;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .site-nav-primary {
    order: 0;
    justify-content: flex-end;
  }

  .site-nav-secondary {
    order: 0;
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .site-main {
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .bottom-tab-bar {
    display: none;
  }

  .hero-copy,
  .hero-panel {
    padding: 20px;
  }

  .search-box {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .content-grid,
  .info-card-grid,
  .discovery-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-chip-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .filter-chip-row label {
    min-width: 180px;
    flex: 1 1 180px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sample-facts dl,
  .info-card dl {
    grid-template-columns: minmax(140px, 220px) 1fr;
  }

  .sample-detail-card-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .site-nav-secondary {
    grid-column: auto;
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  }

  .content-grid,
  .info-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .sample-detail-hero {
    grid-template-columns: minmax(420px, 1.08fr) minmax(320px, 0.92fr);
    align-items: start;
  }

  .sample-detail-visual {
    grid-column: 1;
    grid-row: 1;
  }

  .sample-detail-identity {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 96px;
  }

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

@media (min-width: 1280px) {
  .visual-grid,
  .sample-grid {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Customer trust / policy pages (list profile only) ===== */
.page-customer-policy .site-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px 48px;
}

.page-customer-policy .page-hero {
  text-align: center;
  padding: 28px 0 10px;
}

.policy-section {
  margin: 26px 0;
  padding: 20px 22px;
  background: #fafaf7;
  border: 1px solid #e8e6df;
  border-radius: 12px;
}

.policy-section h2 {
  margin-top: 0;
  font-size: 1.12rem;
  letter-spacing: 0.2px;
}

.policy-section ul,
.policy-section ol {
  padding-left: 22px;
  line-height: 1.7;
}

.policy-section li {
  margin: 6px 0;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.98rem;
}

.policy-table th,
.policy-table td {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid #e0ded5;
}

.policy-table th {
  background: #f0eee6;
}

.policy-cta {
  margin: 34px 0 10px;
  padding: 18px 22px;
  background: #fff8e5;
  border: 1px solid #f0dfae;
  border-radius: 12px;
  text-align: center;
}

/* Reviews / witness wall */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 26px 0;
}

.review-card {
  background: #fff;
  border: 1px solid #e5e2d9;
  border-radius: 14px;
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
}

.review-card blockquote {
  margin: 0 0 10px;
  padding: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #2b2b28;
  border-left: 3px solid #d8b56a;
  padding-left: 12px;
}

.review-meta {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #8a867a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.review-figure {
  margin: 0;
  order: -1;
  margin-bottom: 12px;
}

.review-figure img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f1ea;
  border: 1px solid #ebe7dc;
}

/* Home trust bar (list profile only) */
.trust-bar {
  background: linear-gradient(135deg, #1f2a37 0%, #2b3a4d 100%);
  color: #fff;
  border-radius: 14px;
  margin: 18px 0 8px;
  padding: 6px 10px;
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: stretch;
}

.trust-chip {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease;
}

.trust-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffe3a3;
}

.trust-chip strong {
  font-size: 0.98rem;
}

.trust-chip span {
  font-size: 0.8rem;
  opacity: 0.78;
}

/* Video QC + customer video witness wall (list profile only) */
.video-trust {
  background: #fff;
  border: 1px solid #e5e2d9;
  border-radius: 14px;
  padding: 22px 22px 18px;
  margin: 24px 0;
}

.video-trust h2 {
  margin: 6px 0 10px;
}

.video-trust h3 {
  margin: 22px 0 4px;
  font-size: 1.02rem;
  color: #4a463d;
}

.video-trust__lede {
  max-width: 68ch;
  color: #4a463d;
  line-height: 1.6;
}

.video-trust__more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.button-link--ghost {
  background: #fff;
  color: var(--purple);
}

.button-link--ghost:hover {
  background: #f5f2ff;
  color: #4c1d95;
}

.video-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 18px 0 6px;
}

.video-card {
  margin: 0;
  background: #fff;
  border: 1px solid #e5e2d9;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
}

.video-frame iframe,
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #111;
}

.video-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
}

.video-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2b2b28;
}

.video-meta {
  font-size: 0.78rem;
  color: #8a867a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

@media (max-width: 640px) {
  .video-trust {
    padding: 16px;
  }

  .video-wall {
    grid-template-columns: 1fr;
  }
}

/* Founder story page (P1) + founder strip on the home page */
.founder-figure {
  margin: 0 0 22px;
  display: flex;
  justify-content: center;
}

.founder-figure img {
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e5e2d9;
  background: #f3f1ea;
}

.founder-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e2d9;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0;
}

.founder-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e2d9;
  background: #f3f1ea;
  flex: 0 0 auto;
}

.founder-strip__body {
  min-width: 0;
}

.founder-strip__body .eyebrow {
  margin: 0 0 4px;
}

.founder-strip__line {
  margin: 0 0 10px;
  color: #2b2b28;
  line-height: 1.55;
}

.founder-strip__more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

@media (max-width: 640px) {
  .founder-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .founder-avatar {
    width: 72px;
    height: 72px;
  }
}
