/*
Theme Name: Artnation Studio
Theme URI: https://artnation3d.com
Author: ArtNation 3D
Description: Artnation Studio v3.1 — standalone storefront theme for CNC relief designs, STL/RLF files and 3D printed products. Live STL/OBJ/GLB 3D hero and previews with watermark, fast catalogue search and filters, WhatsApp enquiries, WooCommerce-ready.
Version: 3.1.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: artnation-studio
*/

/* =========================================================================
   Identity — "Carbon, Bone & Cobalt"
   Carbon: the dark studio stage the sculpture is lit on.
   Bone:   warm neutral paper that flatters ivory, wood and stone artwork.
   Cobalt: one precise technical accent (links, focus, primary actions).
   WhatsApp green is reserved for enquiries only.
   Type: Archivo (expanded) for display, Inter for reading, JetBrains Mono for design codes & specs.
   ========================================================================= */
:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --tint: #ebe9e3;
  --ink: #0f1115;
  --ink-2: #383d45;
  --muted: #5f656e;
  --line: #dedbd3;
  --line-2: #c9c5bb;
  --accent: #2e4bf0;
  --accent-d: #1f37c9;
  --accent-soft: #e5e9fe;
  --carbon: #0e1014;
  --carbon-2: #171a20;
  --carbon-3: #20242b;
  --carbon-line: #2a2f37;
  --on-carbon: #eef0f3;
  --on-carbon-2: #a3a9b3;
  --wa: #1fa855;
  --wa-d: #178a45;
  --radius: 10px;
  --radius-s: 6px;
  --shadow-1: 0 1px 2px rgba(15, 17, 21, .06), 0 2px 8px rgba(15, 17, 21, .04);
  --shadow-2: 0 18px 40px -20px rgba(15, 17, 21, .35), 0 2px 6px rgba(15, 17, 21, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-d: "Archivo", "Inter", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 64px;
}

/* ========================================================= base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-d); font-stretch: 112%; line-height: 1.04; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(30px, 3.8vw, 52px); }
h3 { font-size: 19px; letter-spacing: -.01em; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ans-skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.ans-skip:focus { top: 12px; }
.ans-lock { overflow: hidden; }
.ans-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.ans-i { width: 1.15em; height: 1.15em; flex: none; }
.ans-mono { font-family: var(--font-m); font-weight: 500; letter-spacing: .02em; }
kbd { font: 500 11px/1 var(--font-m); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 3px 6px; color: var(--muted); background: var(--surface); }

.ans-eyebrow { font: 500 12px/1.3 var(--font-m); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-d); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.ans-eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.ans-eyebrow--light { color: #9fb0ff; }
.ans-display { font-size: clamp(40px, 4.5vw, 74px); font-stretch: 116%; line-height: .96; letter-spacing: -.03em; font-weight: 750; margin-bottom: 22px; text-wrap: balance; }
.ans-lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 520px; }
.ans-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.ans-link .ans-i { transition: transform .3s var(--ease); }
.ans-link:hover { color: var(--accent-d); }
.ans-link:hover .ans-i { transform: translateX(4px); }

/* ========================================================= buttons, chips, tags */
.ans-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.ans-btn:active { transform: translateY(1px); }
.ans-btn--primary { background: var(--ink); color: #fff; }
.ans-btn--primary:hover { background: var(--accent); }
.ans-btn--accent { background: var(--accent); color: #fff; }
.ans-btn--accent:hover { background: var(--accent-d); }
.ans-btn--wa { background: var(--wa); color: #fff; }
.ans-btn--wa:hover { background: var(--wa-d); box-shadow: 0 8px 20px -8px rgba(31, 168, 85, .6); }
.ans-btn--ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.ans-btn--ghost:hover { border-color: var(--ink); }
.ans-btn--light { background: #fff; color: var(--ink); }
.ans-btn--light:hover { background: var(--accent); color: #fff; }
.ans-btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.ans-btn--block { width: 100%; }
.ans-btn.is-loading { opacity: .7; pointer-events: none; }

.ans-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.ans-chip small { color: var(--muted); font: 500 11px/1 var(--font-m); }
.ans-chip:hover { border-color: var(--ink); }
.ans-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ans-chip.is-active small { color: rgba(255, 255, 255, .7); }
.ans-tag { display: inline-flex; align-items: center; padding: 6px 0; font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; opacity: .82; transition: opacity .2s, color .2s; }
.ans-tag:hover { opacity: 1; color: var(--accent); }
.ans-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; font: 500 12px/1.2 var(--font-m); letter-spacing: .02em; background: var(--tint); }
.ans-pill .ans-i { width: 14px; height: 14px; }
.ans-pill--ghost { background: transparent; border: 1px solid var(--line-2); }
.ans-badge--digital-file { background: var(--accent-soft); color: var(--accent-d); }
.ans-badge--cnc-relief { background: #e6f2e9; color: #1d6532; }
.ans-badge--3d-printed { background: #f4e9dc; color: #7b4a12; }

/* ========================================================= header */
.ans-header { position: sticky; top: 0; z-index: 60; background: rgba(244, 243, 239, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); transition: background .25s; }
.ans-header.is-scrolled { background: rgba(244, 243, 239, .96); }
.ans-header__in { height: var(--header-h); display: flex; align-items: center; gap: 32px; max-width: 1440px; }
.ans-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.ans-logo__img { max-height: 38px; width: auto; }
.ans-logo__mark { width: 32px; height: 32px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.ans-logo__mark svg { width: 18px; height: 18px; }
.ans-logo__text { font: 750 19px/1 var(--font-d); font-stretch: 118%; letter-spacing: -.03em; }
.ans-logo__text b { font-weight: 500; color: var(--muted); margin-left: 3px; }
.ans-nav { flex: 1; }
.ans-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.ans-nav a:not(.ans-btn) { position: relative; display: block; padding: 8px 12px; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--ink-2); transition: color .2s; }
.ans-nav a:not(.ans-btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.ans-nav a:not(.ans-btn):hover { color: var(--ink); }
.ans-nav a:not(.ans-btn):hover::after, .ans-nav a[aria-current]::after { transform: scaleX(1); }
.ans-nav__wa { display: none; }
.ans-header__tools { display: flex; align-items: center; gap: 10px; }
.ans-searchbtn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 12px; min-width: 240px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.ans-searchbtn span { flex: 1; text-align: left; }
.ans-searchbtn:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.ans-header__wa { min-height: 40px; padding: 0 16px; }
.ans-burger { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); place-items: center; }
.ans-burger .ans-i { width: 20px; height: 20px; }

@media (max-width: 1100px) {
  .ans-searchbtn { min-width: 0; width: 44px; height: 44px; justify-content: center; padding: 0; }
  .ans-searchbtn span, .ans-searchbtn kbd { display: none; }
}
@media (max-width: 900px) {
  .ans-header__in { gap: 12px; }
  .ans-burger { display: grid; }
  .ans-header__wa span { display: none; }
  .ans-header__wa { width: 44px; min-height: 44px; padding: 0; }
  .ans-nav { position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h)); background: var(--bg); padding: 20px var(--gut) 32px; display: flex; flex-direction: column; gap: 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; overflow-y: auto; }
  .ans-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
  .ans-nav ul { flex-direction: column; gap: 0; }
  .ans-nav a:not(.ans-btn) { font: 700 28px/1.15 var(--font-d); font-stretch: 115%; letter-spacing: -.02em; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .ans-nav a:not(.ans-btn)::after { display: none; }
  .ans-nav__wa { display: inline-flex; align-self: flex-start; }
}

/* logged-in admin bar: keep sticky header and catalogue toolbar below it */
@media (min-width: 783px) { .admin-bar .ans-header { top: 32px; } .admin-bar .ans-toolbar { top: calc(var(--header-h) + 32px); } }

/* ========================================================= search overlay */
.ans-search { position: fixed; inset: 0; z-index: 100; background: rgba(14, 16, 20, .45); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: min(12vh, 110px) 16px 16px; opacity: 0; transition: opacity .18s; }
.ans-search.is-open { opacity: 1; }
.ans-search[hidden] { display: none; }
.ans-search__panel { width: 100%; max-width: 700px; background: var(--surface); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); overflow: hidden; transform: translateY(-8px) scale(.985); transition: transform .25s var(--ease); }
.ans-search.is-open .ans-search__panel { transform: none; }
.ans-search__form { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.ans-search__form > .ans-i { color: var(--muted); width: 20px; height: 20px; }
.ans-search__form input { flex: 1; height: 64px; border: 0; outline: 0; font-size: 18px; background: transparent; min-width: 0; }
.ans-search__close { width: 40px; height: 40px; border-radius: 8px; border: 0; background: var(--tint); display: grid; place-items: center; }
.ans-search__body { max-height: min(60vh, 520px); overflow-y: auto; }
.ans-search__results:empty { display: none; }
.ans-search__results { padding: 8px; }
.ans-search__idle { padding: 20px; }
.ans-search__idle[hidden] { display: none; }
.ans-search__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ans-search__tip { font-size: 13px; color: var(--muted); margin: 0; }
.ans-search__msg { padding: 18px 14px; margin: 0; color: var(--muted); }
.ans-sr { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.ans-sr:hover, .ans-sr[aria-selected="true"] { background: var(--tint); }
.ans-sr img, .ans-sr__ico { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--tint); flex: none; display: grid; place-items: center; font-weight: 700; color: var(--accent-d); }
.ans-sr b { display: block; font-weight: 600; font-size: 15px; }
.ans-sr small { color: var(--muted); font: 500 12px/1.4 var(--font-m); }
.ans-sr--all { justify-content: center; font-weight: 600; color: var(--accent-d); }

/* ========================================================= sections */
.ans-section { padding: clamp(72px, 9vw, 132px) 0; }
.ans-section--tint { background: var(--tint); }
.ans-section--ink { background: var(--carbon); color: var(--on-carbon); }
.ans-section--ink h2 { color: #fff; }
.ans-section--ink .ans-link { color: #fff; }
.ans-section--ink .ans-link:hover { color: #9fb0ff; }
.ans-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.ans-head h2 { margin: 0; text-wrap: balance; }
.ans-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }
.ans-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; max-width: none; align-items: baseline; }
@media (max-width: 760px) { .ans-head--split { grid-template-columns: 1fr; gap: 0; } }

/* ========================================================= HERO — live 3D on a studio stage */
.ans-hero { position: relative; background: var(--carbon); color: var(--on-carbon); overflow: hidden; isolation: isolate; }
/* cyclorama: a soft pool of light behind the sculpture, like a photo studio backdrop */
.ans-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 60% at 68% 52%, #2a2e36 0%, rgba(42, 46, 54, .35) 45%, transparent 75%); }
.ans-hero__in { position: relative; max-width: 1440px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr auto;
  min-height: clamp(640px, calc(100svh - var(--header-h)), 1020px); padding-top: clamp(40px, 7vh, 88px); column-gap: clamp(16px, 3vw, 48px); }
.ans-hero__copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
.ans-hero h1 { color: #fff; }
.ans-hero .ans-lead { color: var(--on-carbon-2); }
.ans-hero__actions { grid-column: 1; grid-row: 2; position: relative; z-index: 2; }
.ans-hero__stage { grid-column: 2; grid-row: 1 / 4; position: relative; margin-right: calc(var(--gut) * -1); min-height: 520px; }
.ans-hero__stage .ans-viewer { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; max-height: none; }
.ans-hero__still { position: absolute; inset: 8% 6%; width: 88%; height: 84%; object-fit: contain; }
.ans-hero__search { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--carbon-line); border-radius: 10px; padding: 6px 6px 6px 16px; max-width: 520px; margin: 8px 0 18px; transition: border-color .25s, background .25s; }
.ans-hero__search:focus-within { border-color: #6f84ff; background: rgba(255, 255, 255, .09); }
.ans-hero__search > .ans-i { color: var(--on-carbon-2); }
.ans-hero__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 46px; font-size: 16px; color: #fff; }
.ans-hero__search input::placeholder { color: #7d838d; }
.ans-hero__quick { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--on-carbon); }
.ans-hero__rail { grid-column: 1 / -1; grid-row: 4; position: relative; z-index: 2; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 18px 0 22px; margin-top: 24px; border-top: 1px solid var(--carbon-line); font-size: 14px; }
.ans-hero__model { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 600; }
.ans-hero__model .ans-mono { font-size: 12px; color: #9fb0ff; padding: 4px 8px; border: 1px solid #3a4258; border-radius: 4px; }
.ans-hero__model .ans-i { transition: transform .3s var(--ease); }
.ans-hero__model:hover .ans-i { transform: translateX(4px); }
.ans-hero__live { display: inline-flex; align-items: center; gap: 8px; color: var(--on-carbon-2); }
.ans-hero__live i { width: 7px; height: 7px; border-radius: 50%; background: #48d17c; box-shadow: 0 0 0 0 rgba(72, 209, 124, .6); }
.ans-motion .ans-hero__live i { animation: ans-pulse 2.4s ease-out infinite; }
@keyframes ans-pulse { 70% { box-shadow: 0 0 0 7px rgba(72, 209, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(72, 209, 124, 0); } }
.ans-hero__stats { display: flex; gap: 32px; margin: 0 0 0 auto; }
.ans-hero__stats div { display: flex; align-items: baseline; gap: 8px; }
.ans-hero__stats dt { font: 500 11px/1 var(--font-m); letter-spacing: .08em; text-transform: uppercase; color: #7d838d; order: 2; }
.ans-hero__stats dd { margin: 0; font: 700 20px/1 var(--font-d); font-stretch: 112%; color: #fff; }
@media (max-width: 1100px) { .ans-hero__stats { margin-left: 0; } }
@media (max-width: 900px) {
  .ans-hero__in { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; padding-top: 28px; }
  .ans-hero__copy, .ans-hero__actions, .ans-hero__stage, .ans-hero__rail { grid-column: 1; grid-row: auto; }
  .ans-hero__stage { margin: 0 calc(var(--gut) * -1); min-height: 0; height: min(64svh, 560px); }
  .ans-hero .ans-lead { margin-bottom: 0; }
  .ans-hero__actions { margin-top: 8px; }
  .ans-hero__rail { gap: 14px 24px; }
  .ans-hero__live { display: none; }
}
@media (max-width: 560px) {
  .ans-display { font-size: clamp(36px, 10.5vw, 48px); font-stretch: 112%; }
  .ans-hero__search { flex-wrap: wrap; padding: 6px 6px 6px 14px; }
  .ans-hero__search .ans-btn { width: 100%; }
  .ans-hero__stats { gap: 18px; flex-wrap: wrap; }
  .ans-hero__stats dd { font-size: 17px; }
  .ans-logo__text { font-size: 17px; }
  .ans-logo__mark { width: 28px; height: 28px; }
  .ans-header__tools { gap: 6px; }
}
@media (max-width: 380px) { .ans-logo__text b { display: none; } }

/* first screen: pure-CSS entrance, never waits for JavaScript */
@keyframes ans-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes ans-fade { from { opacity: 0; } }
.ans-motion .ans-hero__copy > *, .ans-motion .ans-hero__actions, .ans-motion .ans-hero__rail { animation: ans-rise .9s var(--ease-out) backwards; }
.ans-motion .ans-hero__copy > :nth-child(2) { animation-delay: .06s; }
.ans-motion .ans-hero__copy > :nth-child(3) { animation-delay: .12s; }
.ans-motion .ans-hero__actions { animation-delay: .18s; }
.ans-motion .ans-hero__rail { animation-delay: .3s; }
.ans-motion .ans-hero__stage { animation: ans-fade 1.2s ease backwards .1s; }

/* ========================================================= divisions (editorial index, not cards) */
.ans-divs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ans-div { display: grid; grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 1.25fr) 150px 52px; gap: 24px; align-items: center; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.ans-div__no { font-size: 13px; color: var(--muted); }
.ans-div__name { font: 700 clamp(22px, 2.6vw, 36px)/1.05 var(--font-d); font-stretch: 115%; letter-spacing: -.02em; transition: transform .45s var(--ease-out), color .25s; }
.ans-div__text { color: var(--ink-2); font-size: 15px; max-width: 440px; }
.ans-div__meta { font-size: 12px; color: var(--muted); text-align: right; }
.ans-div__go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s, transform .45s var(--ease-out); }
.ans-div__go .ans-i { width: 20px; height: 20px; transition: transform .45s var(--ease-out); }
.ans-div:hover .ans-div__name { transform: translateX(10px); color: var(--accent-d); }
.ans-div:hover .ans-div__go { background: var(--accent); border-color: var(--accent); color: #fff; }
.ans-div:hover .ans-div__go .ans-i { transform: rotate(-45deg); }
@media (max-width: 900px) {
  .ans-div { grid-template-columns: 36px minmax(0, 1fr) 44px; gap: 6px 14px; }
  .ans-div__no { grid-row: 1; align-self: start; padding-top: 6px; }
  .ans-div__name { grid-column: 2; }
  .ans-div__text { grid-column: 2; font-size: 14px; }
  .ans-div__meta { grid-column: 2; text-align: left; }
  .ans-div__go { grid-column: 3; grid-row: 1 / 4; width: 44px; height: 44px; }
}

/* ========================================================= collections */
.ans-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(14px, 2vw, 24px); }
.ans-col { position: relative; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.ans-col__img { display: block; aspect-ratio: 5 / 4; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.ans-col__img img, .ans-col__img .an3d-wm-frame { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.ans-col:hover .ans-col__img img { transform: scale(1.05); }
.ans-col__txt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.ans-col__name { font: 650 19px/1.2 var(--font-d); font-stretch: 108%; letter-spacing: -.01em; }
.ans-col__count { font-size: 12px; color: var(--muted); }
.ans-col:hover .ans-col__txt { border-color: var(--ink); }
.ans-col:hover .ans-col__name { color: var(--accent-d); }
@media (max-width: 900px) { .ans-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ans-col__name { font-size: 16px; } }

/* ========================================================= product cards */
.ans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.8vw, 24px); }
@media (max-width: 1100px) { .ans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }
.ans-card { position: relative; display: flex; flex-direction: column; }
.ans-card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--tint); border-radius: var(--radius); overflow: hidden; }
.ans-section--tint .ans-card__media { background: var(--bg); }
.ans-card__media img, .ans-card__media .an3d-wm-frame { width: 100%; height: 100%; object-fit: cover; }
.ans-card__media img { transition: transform 1s var(--ease-out); }
.ans-card:hover .ans-card__media img { transform: scale(1.05); }
.ans-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); }
.ans-card__ph .ans-i { width: 40px; height: 40px; }
.ans-card__badge, .ans-card__3d { position: absolute; z-index: 12; font: 500 11px/1 var(--font-m); letter-spacing: .03em; padding: 6px 8px; border-radius: 4px; }
.ans-card__badge { left: 10px; top: 10px; }
.ans-card__3d { right: 10px; top: 10px; background: var(--carbon); color: #fff; display: inline-flex; gap: 5px; align-items: center; }
.ans-card__3d .ans-i { width: 13px; height: 13px; }
.ans-card__view { position: absolute; left: 10px; bottom: 10px; z-index: 12; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .45s var(--ease-out); }
.ans-card__view .ans-i { width: 15px; height: 15px; }
.ans-card:hover .ans-card__view { opacity: 1; transform: none; }
@media (hover: none) { .ans-card__view { display: none; } }
.ans-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 2px 0; position: relative; z-index: 2; }
.ans-card__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); min-width: 0; }
.ans-card__code { color: var(--accent-d); flex: none; font-size: 12px; }
.ans-card__cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ans-card__title { font: 650 17px/1.3 var(--font-d); font-stretch: 104%; letter-spacing: -.01em; margin: 6px 0 12px; flex: 1; }
.ans-card__title a { text-decoration: none; }
.ans-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole card clickable */
.ans-card:hover .ans-card__title { color: var(--accent-d); }
.ans-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 3; padding-top: 10px; border-top: 1px solid var(--line); }
.ans-card__type { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ans-card__wa { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e6f5ec; color: var(--wa-d); transition: background .2s, color .2s, transform .2s; flex: none; }
.ans-card__wa:hover { background: var(--wa); color: #fff; transform: scale(1.06); }
@media (max-width: 720px) { .ans-card__title { font-size: 15px; } .ans-card__type { font-size: 12px; } .ans-card__cat { display: none; } }

/* reveal motion: only below-the-fold sections and freshly loaded cards animate; the first screen never waits for JS */
.ans-motion:not(.ans-failsafe) .ans-section [data-reveal]:not(.is-in),
.ans-motion:not(.ans-failsafe) .ans-section [data-reveal-group] > :not(.is-in),
.ans-motion:not(.ans-failsafe) [data-cards] > .ans-new:not(.is-in) { opacity: 0; transform: translateY(22px); }
.ans-motion [data-reveal], .ans-motion [data-reveal-group] > *, .ans-motion [data-cards] > * { transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .9s var(--ease-out) var(--d, 0ms); }

/* ========================================================= real work strip */
.ans-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 18px; scrollbar-width: thin; scrollbar-color: var(--carbon-line) transparent; }
.ans-strip__item { position: relative; flex: 0 0 clamp(250px, 30vw, 420px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--carbon-2); text-decoration: none; }
.ans-strip__item img, .ans-strip__item .an3d-wm-frame { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.ans-strip__item:hover img { transform: scale(1.04); }
.ans-strip__item > span:last-child { position: absolute; left: 0; right: 0; bottom: 0; z-index: 12; padding: 48px 16px 16px; color: #fff; font-size: 14px; font-weight: 500; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.ans-strip__item b { display: block; font-size: 11px; color: #9fb0ff; margin-bottom: 2px; }

/* ========================================================= steps */
.ans-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.ans-steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.ans-steps span { display: block; font-size: 13px; color: var(--accent-d); margin-bottom: 28px; }
.ans-steps h3 { font-size: 22px; }
.ans-steps p { color: var(--ink-2); margin: 0; max-width: 340px; }
@media (max-width: 860px) { .ans-steps { grid-template-columns: 1fr; } .ans-steps span { margin-bottom: 12px; } }

/* ========================================================= page heads, catalogue */
.ans-pagehead { padding: clamp(32px, 5vw, 72px) 0 clamp(20px, 2.5vw, 32px); }
.ans-pagehead__title { font-size: clamp(36px, 5.4vw, 76px); font-stretch: 118%; letter-spacing: -.03em; font-weight: 750; margin: 18px 0 14px; text-wrap: balance; }
.ans-pagehead__lead { color: var(--ink-2); max-width: 640px; font-size: 17px; }
.ans-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1.5 var(--font-m); color: var(--muted); }
.ans-crumbs a { text-decoration: none; }
.ans-crumbs a:hover { color: var(--accent-d); }
.ans-catalogue { padding-bottom: clamp(64px, 8vw, 120px); }
.ans-toolbar { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; margin-bottom: 6px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ans-toolbar__search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; height: 46px; transition: border-color .2s; }
.ans-toolbar__search:focus-within { border-color: var(--accent); }
.ans-toolbar__search .ans-i { color: var(--muted); }
.ans-toolbar__search input { flex: 1; border: 0; outline: 0; background: transparent; height: 100%; min-width: 0; }
.ans-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--tint); border-radius: 8px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.ans-seg::-webkit-scrollbar { display: none; }
.ans-seg__item { padding: 9px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--ink-2); transition: color .2s, background .2s; }
.ans-seg__item:hover { color: var(--ink); }
.ans-seg__item.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 600; }
.ans-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ans-sort select { height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); padding: 0 34px 0 14px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f656e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; color: var(--ink); }
.ans-chips { margin: 0 calc(var(--gut) * -1) 20px; position: relative; }
.ans-chips__track { display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--gut) 8px; scrollbar-width: none; }
.ans-chips__track::-webkit-scrollbar { display: none; }
.ans-gallery__count { font: 500 12px/1.4 var(--font-m); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.ans-gallery__count strong { color: var(--ink); }
.ans-gallery__more { display: flex; justify-content: center; padding: 44px 0 8px; }
.ans-gallery__end { color: var(--muted); font-size: 14px; }
.ans-gallery__sentinel { height: 1px; }
.ans-empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.ans-empty .ans-i { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--muted); }
.ans-empty p { max-width: 440px; margin: 0 auto 18px; color: var(--ink-2); }
.ans-pagination .nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.ans-pagination .page-numbers { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; font-family: var(--font-m); font-size: 13px; }
.ans-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 640px) { .ans-sort label { display: none; } .ans-toolbar { position: static; } }

/* ========================================================= product page */
.ans-product { padding-top: clamp(18px, 3vw, 32px); }
.ans-product__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(24px, 4vw, 64px); margin-top: 20px; align-items: start; }
.ans-product__media { position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }
.ans-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--tint); margin-bottom: 12px; }
.ans-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 9px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); min-height: 40px; }
.ans-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.ans-stage { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ans-stage__zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.ans-stage__zoom img { width: 100%; max-height: 80vh; object-fit: contain; margin: 0 auto; }
.ans-stage__hint { position: absolute; right: 12px; bottom: 12px; z-index: 12; display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .94); padding: 7px 11px; border-radius: 6px; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .25s; }
.ans-stage__zoom:hover .ans-stage__hint, .ans-stage__zoom:focus-visible .ans-stage__hint { opacity: 1; }
.ans-stage--empty { aspect-ratio: 4 / 3; display: grid; place-content: center; text-align: center; color: var(--muted); }
.ans-stage--empty .ans-i { width: 40px; height: 40px; margin: 0 auto 10px; }
.ans-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; }
.ans-thumb { flex: 0 0 76px; height: 76px; padding: 0; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: var(--tint); opacity: .65; transition: opacity .2s, border-color .2s; }
.ans-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ans-thumb.is-active, .ans-thumb:hover { opacity: 1; border-color: var(--ink); }
.ans-product__info { min-width: 0; }
.ans-product__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ans-product__cat { font: 500 12px/1.4 var(--font-m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.ans-product__cat:hover { color: var(--accent-d); }
.ans-product__title { font-size: clamp(30px, 3.4vw, 48px); font-stretch: 112%; letter-spacing: -.025em; font-weight: 750; margin: 8px 0 20px; text-wrap: balance; }
.ans-code { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.ans-code span:first-child { font: 500 11px/1 var(--font-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ans-code strong { font: 500 17px/1 var(--font-m); letter-spacing: .02em; flex: 1; color: var(--accent-d); white-space: nowrap; }
.ans-code__copy { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 500; min-height: 36px; }
.ans-code__copy:hover { border-color: var(--ink); }
.ans-price { font: 750 32px/1 var(--font-d); font-stretch: 112%; letter-spacing: -.02em; margin: 0 0 18px; }
.ans-price small { font: 600 13px/1 var(--font); color: var(--wa-d); margin-left: 8px; letter-spacing: 0; }
.ans-product__lead { color: var(--ink-2); }
.ans-product__assure { font-size: 13px; color: var(--muted); margin: 10px 0 26px; text-align: center; }
.ans-specs { margin: 0 0 22px; border-top: 1px solid var(--ink); }
.ans-specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ans-specs dt { font: 500 11px/1.9 var(--font-m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ans-specs dd { margin: 0; font-weight: 500; }
.ans-assure { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.ans-assure li { display: flex; gap: 10px; align-items: center; }
.ans-assure .ans-i { color: var(--accent); }
.ans-product__content { max-width: 820px; padding: clamp(48px, 6vw, 88px) 0; }
@media (max-width: 960px) {
  .ans-product__grid { grid-template-columns: 1fr; }
  .ans-product__media { position: static; }
}

/* prose (post/page content incl. plugin panels) */
.ans-prose { font-size: 17px; color: var(--ink-2); }
.ans-prose h2 { font-size: clamp(24px, 2.6vw, 34px); color: var(--ink); }
.ans-prose h3 { color: var(--ink); }
.ans-prose img { border-radius: var(--radius-s); }
.ans-prose a { color: var(--accent-d); }
.ans-prose .an3d-pcr-panel, .ans-prose .an3d-enquiry { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; padding: 22px 24px !important; }
.ans-prose .an3d-wa { background: var(--wa) !important; border-radius: 8px !important; }
.ans-page { padding-bottom: clamp(64px, 8vw, 110px); max-width: 860px; }
.ans-about { padding-bottom: clamp(64px, 8vw, 110px); display: grid; gap: 48px; }
.ans-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); gap: 24px; }
.ans-person { margin: 0; }
.ans-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.ans-person figcaption { padding: 14px 0; display: grid; border-bottom: 1px solid var(--line-2); }
.ans-person span { color: var(--muted); font-size: 14px; }
.ans-404 { padding-bottom: 120px; }
.ans-404 .ans-hero__search { background: var(--surface); border-color: var(--line); }
.ans-404 .ans-hero__search input { color: var(--ink); }
.ans-404 .ans-hero__search input::placeholder { color: var(--muted); }

/* ========================================================= 3D viewer */
.ans-viewer { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 80vh; border-radius: var(--radius); overflow: hidden; background: #f1f0ec; isolation: isolate; touch-action: none; outline: none; }
.ans-viewer--dark { background: #16181c; color: #e8e8e6; }
.ans-viewer--transparent { background: transparent; }
.ans-viewer--hero { background: transparent; border-radius: 0; color: var(--on-carbon); touch-action: pan-y; }
.ans-viewer__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; }
.ans-viewer__canvas:active { cursor: grabbing; }
.ans-viewer.is-locked .ans-viewer__canvas { cursor: default; }
.ans-viewer__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .35; filter: blur(2px); transition: opacity .6s; }
.ans-viewer--hero .ans-viewer__poster { inset: 10% 8%; width: 84%; height: 80%; opacity: .9; filter: none; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.ans-viewer.is-ready .ans-viewer__poster { opacity: 0; pointer-events: none; }
.ans-viewer.is-error .ans-viewer__poster { opacity: 1; filter: none; }
.ans-viewer__load { position: absolute; inset: auto 0 18% 0; z-index: 2; display: grid; place-content: center; gap: 12px; text-align: center; font: 500 12px/1.4 var(--font-m); color: var(--muted); }
.ans-viewer:not(.ans-viewer--hero) .ans-viewer__load { inset: 0; }
.ans-viewer--hero .ans-viewer__load, .ans-viewer--dark .ans-viewer__load { color: var(--on-carbon-2); }
.ans-viewer__load[hidden] { display: none; }
.ans-viewer__bar { width: 180px; height: 2px; background: rgba(127, 127, 127, .25); overflow: hidden; margin: 0 auto; }
.ans-viewer__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.ans-viewer--hero .ans-viewer__bar span { background: #9fb0ff; }

/* watermark: inside the viewer so it stays visible while rotating, zooming and in full screen; kept to a corner so it never covers the carving */
.ans-viewer__wm { position: absolute; left: 16px; bottom: 16px; z-index: 4; pointer-events: none; user-select: none; -webkit-user-select: none; display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-m); letter-spacing: .14em; color: rgba(15, 17, 21, .5); }
.ans-viewer__wm::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3 4 26h5.2l2.3-4.8h9l2.3 4.8H28L16 3Zm-2.6 14.3L16 11.6l2.6 5.7h-5.2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3 4 26h5.2l2.3-4.8h9l2.3 4.8H28L16 3Zm-2.6 14.3L16 11.6l2.6 5.7h-5.2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ans-viewer--dark .ans-viewer__wm, .ans-viewer--hero .ans-viewer__wm { color: rgba(238, 240, 243, .55); }
.ans-viewer--hero .ans-viewer__wm { left: auto; right: calc(var(--gut) + 4px); bottom: auto; top: 20px; }

.ans-viewer__ui { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow-1); }
.ans-viewer__ui[hidden] { display: none; }
.ans-viewer__ui button { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 9px; border-radius: 7px; border: 0; background: transparent; color: var(--ink); font: 500 12px/1 var(--font-m); transition: background .2s, color .2s; }
.ans-viewer__ui button:hover { background: rgba(15, 17, 21, .07); }
.ans-viewer__ui button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ans-viewer__ui svg { width: 18px; height: 18px; }
.ans-viewer--hero .ans-viewer__ui, .ans-viewer--dark .ans-viewer__ui { background: rgba(23, 26, 32, .78); box-shadow: 0 0 0 1px var(--carbon-line); }
.ans-viewer--hero .ans-viewer__ui button, .ans-viewer--dark .ans-viewer__ui button { color: var(--on-carbon); }
.ans-viewer--hero .ans-viewer__ui button:hover, .ans-viewer--dark .ans-viewer__ui button:hover { background: rgba(255, 255, 255, .1); }
.ans-viewer--hero .ans-viewer__ui button[aria-pressed="true"], .ans-viewer--dark .ans-viewer__ui button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.ans-viewer--hero .ans-viewer__ui { right: calc(var(--gut) + 4px); bottom: 16px; }
.ans-viewer__tap { display: none !important; }
@media (pointer: coarse) {
  .ans-viewer__tap { display: inline-flex !important; }
  .ans-viewer.is-locked .ans-viewer__tap { background: #fff !important; color: var(--ink) !important; }
}
.ans-viewer__hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3; margin: 0; font-size: 12px; background: rgba(15, 17, 21, .72); color: #fff; padding: 6px 12px; border-radius: 6px; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.ans-viewer--hero .ans-viewer__hint { display: none; }
.ans-viewer__hint[hidden] { display: none; }
.ans-viewer__note { position: absolute; left: 16px; bottom: 40px; z-index: 3; margin: 0; font-size: 11px; color: var(--muted); max-width: 46%; line-height: 1.3; }
.ans-viewer:fullscreen { max-height: none; border-radius: 0; }
.ans-viewer--hero:fullscreen { background: var(--carbon); }
.ans-viewer.is-max { position: fixed !important; inset: 0 !important; z-index: 400; max-height: none; height: 100% !important; aspect-ratio: auto; border-radius: 0; }
.ans-viewer--hero.is-max { background: var(--carbon); }
@media (max-width: 560px) {
  .ans-viewer__note, .ans-viewer__hint { display: none; }
  .ans-viewer__ui [data-light-name] { display: none; }
  .ans-viewer__ui button { min-width: 38px; padding: 0 7px; }
  .ans-viewer__ui [data-act="out"] { display: none; }
  /* phones: the control bar spans the bottom, so the watermark moves to the top corner */
  .ans-viewer__wm, .ans-viewer--hero .ans-viewer__wm { font-size: 11px; top: 14px; bottom: auto; left: var(--gut); right: auto; }
}

/* ========================================================= lightbox */
.ans-lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10, 11, 14, .95); display: grid; place-items: center; }
.ans-lightbox[hidden] { display: none; }
.ans-lightbox__stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; touch-action: pinch-zoom; }
.ans-lightbox.is-zoomed .ans-lightbox__stage { cursor: grab; }
.ans-lightbox__stage img, .ans-lightbox__stage .an3d-wm-frame { max-width: 94vw; max-height: 88vh; width: auto; object-fit: contain; transition: transform .25s var(--ease); user-select: none; -webkit-user-drag: none; }
.ans-lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.ans-lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.ans-lightbox__btn .ans-i { width: 22px; height: 22px; }
.ans-lightbox__close { top: 18px; right: 18px; }
.ans-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.ans-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.ans-lightbox__btn[hidden] { display: none; }
.ans-lightbox__hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .6); font-size: 13px; margin: 0; }

/* ========================================================= footer */
.ans-footer { background: var(--carbon); color: var(--on-carbon-2); padding: clamp(64px, 8vw, 112px) 0 28px; }
.ans-footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--carbon-line); }
.ans-footer__cta h2 { color: #fff; font-size: clamp(30px, 4vw, 56px); font-stretch: 118%; max-width: 760px; }
.ans-footer__cta p { margin: 0; max-width: 560px; }
.ans-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.ans-footer .ans-logo__text { color: #fff; font-size: 22px; }
.ans-footer .ans-logo__text b { color: #7d838d; }
.ans-footer__brand p { margin-top: 14px; max-width: 320px; }
.ans-footer h3 { color: #fff; font: 500 11px/1 var(--font-m); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.ans-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.ans-footer a { text-decoration: none; transition: color .2s; }
.ans-footer a:hover { color: #fff; }
.ans-footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--carbon-line); font-size: 13px; color: #7d838d; }
@media (max-width: 860px) { .ans-footer__grid { grid-template-columns: 1fr 1fr; } .ans-footer__brand { grid-column: 1 / -1; } }
.ans-fab { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: none; place-items: center; box-shadow: 0 12px 30px -8px rgba(31, 168, 85, .7); }
.ans-fab .ans-i { width: 28px; height: 28px; }
@media (max-width: 900px) { .ans-fab { display: grid; } }

/* watermark plugin wrappers inherit our image boxes */
.ans-card__media .an3d-wm-frame, .ans-col__img .an3d-wm-frame, .ans-strip__item .an3d-wm-frame { position: relative !important; display: block !important; height: 100%; }

/* WooCommerce (future) */
.ans-woo .products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; list-style: none; padding: 0; }
.ans-woo .button { background: var(--ink); color: #fff; border-radius: 8px; padding: 12px 20px; text-decoration: none; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* print */
@media print { .ans-header, .ans-footer, .ans-fab, .ans-search, .ans-viewer__ui { display: none !important; } }
