/* =========================================================
   2026-11 upgrade layer (loaded last).
   - taste skill: no scroll fade-ins, one hero entrance, no tilted cards,
     no captions on pictures, photographs lead, quiet hover layer
   - Vercel Web Interface Guidelines: skip link, focus-visible rings,
     balanced headings, scroll-margin, explicit transitions, tap sizes
   ========================================================= */

/* ---------- motion: nothing fades in because the page scrolled ---------- */
.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.page { animation: none; }

/* the hero enters once on load */
@keyframes enterUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  [data-enter] .sh-text > *, [data-enter] .sh-side { animation: enterUp .7s var(--ease) both; }
  [data-enter] .sh-text > :nth-child(2) { animation-delay: .06s; }
  [data-enter] .sh-text > :nth-child(3) { animation-delay: .12s; }
  [data-enter] .sh-text > :nth-child(4) { animation-delay: .18s; }
  [data-enter] .sh-text > :nth-child(n+5) { animation-delay: .24s; }
  [data-enter] .sh-side { animation-delay: .1s; animation-duration: .9s; }
}

/* ---------- guidelines: type, anchors, focus, transitions ---------- */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
main [id], section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; background: #141414; color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid #141414; outline-offset: 2px; }
.studio-hero .sh-input input:focus-visible { outline: 2px solid #141414; outline-offset: 3px; }
.tpl-card:focus-visible, .prod-card a:focus-visible, .g-photo:focus-within, .promo:focus-visible { outline: 3px solid #141414; outline-offset: 3px; }
.icon-btn { transition: border-color .2s, background-color .2s, color .2s; }
.price, .cart-count, .sh-facts b, .rc-n { font-variant-numeric: tabular-nums; }
.cart-link { min-height: 44px; }
@media (max-width: 900px) { .nav a { min-height: 48px; display: flex; align-items: center; } }
@media (pointer: coarse) { .sh-chip, .pill { min-height: 44px; } }

/* underline that draws on hover */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; padding: 10px 0; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 100% 2px no-repeat; transition: background-size .3s var(--ease); }
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover { background-size: 0 2px; background-position: 100% 100%; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- hero ---------- */
@media (min-width: 901px) {
  .studio-hero .sh-grid { align-items: center; }
  .studio-hero .sh-text { padding-top: 0; }
}
.studio-hero { padding: 40px 0 48px; }
.studio-hero h1 { font-size: clamp(40px, 4.2vw, 62px); line-height: .98; margin: 10px 0 14px; }
.studio-hero .lead { margin-bottom: 16px; font-size: 17px; }
.studio-hero .sh-opts { margin: 14px 0 20px; gap: 8px; }
.sh-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0 0 20px; }
@media (min-width: 901px) { .studio-hero .sh-side { max-width: 470px; justify-self: end; width: 100%; } }
.sh-facts li { display: grid; gap: 2px; padding: 0 22px; border-left: 1px solid rgba(20, 20, 20, .16); }
.sh-facts li:first-child { padding-left: 0; border-left: 0; }
.sh-facts b { font-family: var(--display); font-size: 26px; line-height: 1.05; font-weight: 700; color: #141414; }
.sh-facts span { font-size: 13px; color: #6b5a3a; letter-spacing: .02em; }
.sh-input { display: block; }
.sh-input-label { display: block; font-size: 14px; font-weight: 600; color: #4a4237; margin: 0 0 8px 4px; letter-spacing: .02em; }
.sh-group { align-items: center; }
.sh-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6b5a3a; margin: 0 2px 0 4px; }
.sh-label:not(:first-child) { margin-left: 12px; }
.sh-tools { align-items: center; margin-bottom: 14px; }
.sh-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #4a4237; }
.sh-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2f9a5a; box-shadow: 0 0 0 4px rgba(47, 154, 90, .18); }
.sh-logo-btn { display: inline-flex; }
.sh-side:not(.cine) .sh-logo-btn { visibility: hidden; }

@media (max-width: 700px) {
  .studio-hero { padding: 28px 0 40px; }
  .studio-hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .sh-facts { order: 3; margin: 0 0 18px; }
  .sh-facts li { padding: 0 14px; }
  .sh-facts b { font-size: 20px; }
  .sh-facts span { font-size: 12px; }
  .studio-hero .sh-side { order: 4; }
  .studio-hero .sh-input { order: 5; }
  .studio-hero .sh-opts { order: 6; }
  .studio-hero .hero-ctas { order: 7; }
  .sh-label { display: none; }
}

/* ---------- products: photographs lead, each shown once ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.prod-grid.prod-1 { grid-template-columns: minmax(0, 640px); justify-content: center; }
.prod-grid.prod-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prod-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.prod-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(17, 17, 17, .35); }
.prod-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #141414; }
.prod-photo img, .prod-photo canvas { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prod-card:hover .prod-photo img { transform: scale(1.03); }
.prod-photo .p-badge { z-index: 1; }
.prod-info { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.prod-ctas { margin-top: auto !important; padding-top: 4px; }
.prod-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.prod-top h3 { margin: 0; font-family: var(--display); font-size: 26px; text-transform: uppercase; min-width: 0; }
.prod-top .price { font-size: 26px; white-space: nowrap; }
.prod-text { margin: 0; color: var(--ink-3); font-size: 16px; }
.prod-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.prod-meta .swatches { display: inline-flex; gap: 6px; }
.prod-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.prod-more { margin-top: 28px; text-align: center; }
@media (max-width: 900px) { .prod-grid, .prod-grid.prod-3 { grid-template-columns: 1fr; } .prod-photo { aspect-ratio: 1 / 1; } }
@media (max-width: 520px) { .prod-info { padding: 18px; } .prod-top h3, .prod-top .price { font-size: 22px; } .prod-ctas { flex-direction: column; } .prod-ctas .btn { width: 100%; } }
@media (max-width: 900px) { .site-header .cart-link { margin-left: auto; } .site-header .menu-btn { margin-left: 4px; width: 44px; height: 44px; } }

/* ---------- why: flat cards on the brand band, nothing tilted ---------- */
.why::after, .section-yellow::after { display: none; }
.why-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.why-grid.why-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.why-grid.why-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why-grid.why-2, .why-grid.why-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.why-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px 22px; background: #0f0f0f; color: #fff; border-radius: var(--r); }
.why-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); }
.why-ico svg { width: 22px; height: 22px; stroke: #111; }
.why-card h3 { margin: 6px 0 0; font-family: var(--display); font-size: 20px; line-height: 1.1; text-transform: uppercase; }
.why-card p { margin: 0; color: #c9c9c9; font-size: 15px; line-height: 1.5; }
@media (max-width: 1100px) { .why-grid, .why-grid.why-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .why-grid, .why-grid.why-4, .why-grid.why-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .why-grid, .why-grid.why-4, .why-grid.why-3, .why-grid.why-2 { grid-template-columns: 1fr; } .why .section-head p { display: block !important; } .why.section { padding: 52px 0; } }

/* ---------- templates: one compact row ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
#templates { display: grid !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
#templates .tpl-card { flex: none !important; }
.tpl-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.tpl-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(17, 17, 17, .4); border-color: var(--line-2); }
.tpl-card .p-media { aspect-ratio: 4 / 5; display: grid; place-items: center; }
.tpl-card .p-media canvas { width: 100%; height: 100%; object-fit: contain; }
.tpl-card .tpl-body { padding: 12px 14px; font-size: 13px; gap: 8px; }
.tpl-card .tpl-body b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-go { transition: transform .2s var(--ease); }
.tpl-card:hover .tpl-go { transform: translateX(3px); }
@media (max-width: 1100px) { .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- gallery: an even grid, no captions on pictures ---------- */
.gallery { columns: auto !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery figure { margin: 0 !important; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--bg-2); display: block !important; }
.gallery img, .gallery canvas { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery .g-photo:hover img { transform: scale(1.03); }
.gallery figcaption { display: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- catalogue: no half-empty row when there are only two products ---------- */
@media (min-width: 601px) { #plist:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- contact block ---------- */
.contact-title { font-size: clamp(30px, 3.4vw, 40px); margin: 8px 0 12px; }

/* ---------- mobile: one column, full-width actions ---------- */
@media (max-width: 520px) {
  .studio-hero .hero-ctas .btn-primary, .contact-grid .btn-primary { width: 100%; }
}
