/*-----------------------------------*\
  Metal Master — style.css  (v6, editorial — 'the cut')
  Continuous black. Light serif display, quiet geometric sans.
  No boxes: rhythm comes from whitespace, hairlines and imagery.
\*-----------------------------------*/

/* ===== TOKENS ===== */
:root {
  --bg-0: #080808;
  --bg-1: #0e0e10;
  --bg-2: #141417;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #efeae0;
  --text-2: #b3ada2;
  --muted: #8a847b; /* 5.4:1 on --bg-0, passes WCAG AA for the small uppercase labels */
  --gold: #c9a35a;
  --gold-2: #e6cd8c;
  --gold-soft: rgba(201, 163, 90, 0.12);
  --gold-line: rgba(201, 163, 90, 0.5);
  --wa: #3ad06a;

  --ff-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --ff-body: 'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', sans-serif;

  --fs-h2: clamp(2.6rem, 5vw, 5rem);
  --fs-h3: clamp(1.5rem, 2.2vw, 2.1rem);
  --fs-body: clamp(0.98rem, 1.05vw, 1.08rem);
  --fs-small: 0.84rem;
  --fs-xs: 0.68rem;

  --container: 1360px;
  --gutter: clamp(22px, 4.5vw, 64px);
  --section: clamp(64px, 7vw, 110px);
  --header-h: 88px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --t-fast: 0.35s var(--ease);
  --t-med: 0.7s var(--ease);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--header-h) + 72px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip; /* clip, unlike hidden, does not create a scroll container */
  min-height: 100vh;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
strong { font-weight: 400; color: var(--text); }
p, .lead { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--bg-0); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* Grain — very faint light noise, keeps blacks from reading flat.
   Plain alpha, no blend mode: a fixed full-screen blend layer is expensive on phones. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.ic { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

/* ===== TYPOGRAPHY ===== */
.h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
.h2 em, .hero-title em, .h3 em {
  font-style: italic; font-weight: 400; color: var(--gold-2);
}
.h3 { font-family: var(--ff-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.01em; }
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 26px;
}
.eyebrow-rule { display: inline-block; width: 40px; height: 1px; background: var(--gold-line); flex: 0 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: clamp(56px, 6vw, 96px); }
.section-head .eyebrow { margin-bottom: 22px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-2);
  position: relative; padding-bottom: 6px;
}
.link-arrow::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold-line); transform-origin: left; transition: transform var(--t-med); }
.link-arrow .ic { transition: transform var(--t-fast); }
.link-arrow:hover .ic { transform: translateX(8px); }
.link-arrow:hover::after { transform: scaleX(0); transform-origin: right; }

/* ===== BUTTONS ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 19px 34px; font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; line-height: 1;
  border: 1px solid transparent; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-med);
}
.btn .ic { width: 1.25em; height: 1.25em; transition: transform var(--t-fast); }
.btn:hover .ic { transform: translateX(4px); }
.btn-sm { padding: 13px 22px; }
.btn-gold { background: var(--gold); color: var(--bg-0); border-color: var(--gold); }
.btn-gold::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%); transform: translateX(-130%); transition: transform 0.9s var(--ease); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); box-shadow: 0 18px 50px -18px rgba(230, 205, 140, 0.55); }
.btn-gold:hover::before { transform: translateX(130%); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-outline { color: var(--gold-2); border-color: var(--gold-line); }
.btn-outline:hover { background: var(--gold-soft); border-color: var(--gold); }


/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--header-h);
  display: flex; align-items: center;
  transition: transform 0.7s var(--ease), height 0.5s var(--ease), background-color 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(8,8,8,0.7), rgba(8,8,8,0)); transition: opacity 0.5s ease; }
.site-header.is-solid { height: 72px; background: rgba(8, 8, 8, 0.7); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); border-bottom-color: var(--line); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: var(--text); }
.brand-mark { width: 38px; height: 36px; color: var(--text); transition: color var(--t-fast); }
.brand-word { font-family: var(--ff-body); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.34em; text-transform: uppercase; white-space: nowrap; }
.brand:hover .brand-mark { color: var(--gold-2); }
.nav-list { display: flex; gap: clamp(26px, 3vw, 46px); }
.nav-link { position: relative; display: block; padding: 10px 0; font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-2); transition: color var(--t-fast); }
.nav-link::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); transform: translateX(-50%) scale(0); transition: transform var(--t-fast); }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { transform: translateX(-50%) scale(1); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; width: 46px; height: 46px; position: relative; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color var(--t-fast); }
.nav-toggle:hover { border-color: var(--gold-line); }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1px; background: var(--text); transition: transform 0.6s var(--ease), top 0.6s var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-menu { position: fixed; inset: 0; z-index: 800; background: var(--bg-0); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s; display: flex; align-items: center; overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease-io); }
.mobile-menu-inner { width: 100%; padding: calc(var(--header-h) + 20px) var(--gutter) 44px; }
.mobile-links li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-links a { display: flex; align-items: baseline; gap: 20px; padding: 20px 0; font-family: var(--ff-display); font-weight: 300; font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1; transform: translateY(110%); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.6s ease; }
.mobile-links .num { font-family: var(--ff-body); font-size: 0.28em; letter-spacing: 0.3em; color: var(--gold); }
.mobile-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; color: var(--text-2); font-size: 0.92rem; opacity: 0; transform: translateY(16px); transition: transform 0.9s var(--ease), opacity 0.6s ease; }
.mobile-menu.is-open .mobile-links a, .mobile-menu.is-open .mobile-foot { transform: none; opacity: 1; transition-delay: calc(0.2s + var(--i) * 0.07s); }


/* ===== FRAMES =====
   Every photo sits in a frame shaped exactly like the photo (aspect-ratio set inline from
   the image manifest), so nothing is ever cropped or zoomed. The blurred preview is the
   frame's background until the photo decodes. */
.frame { position: relative; overflow: hidden; background-color: var(--bg-1); background-size: cover; background-position: center; }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.8s var(--ease); }
.frame.is-in > img, .is-in > .frame > img, .tile.is-in .frame > img { transform: scale(1); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ===== HERO — "the cut" ===== */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: center; padding: calc(var(--header-h) + 32px) 0 clamp(56px, 8vh, 96px); overflow: hidden; }
.hero::before { content: ''; position: absolute; left: 50%; top: 55%; width: min(120vw, 1500px); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(50% 50% at 50% 50%, rgba(201,163,90,0.07), transparent 70%); pointer-events: none; }
.hero-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 620px) auto; justify-content: space-evenly; gap: clamp(40px, 6vw, 120px); align-items: center; width: 100%; }
.hero-title { font-family: var(--ff-display); font-weight: 300; font-size: clamp(3.1rem, min(5.6vw, 11vh), 7rem); line-height: 0.98; letter-spacing: -0.025em; margin-top: 6px; }
.hero-title em { font-style: italic; color: var(--gold-2); padding-right: 0.08em; }
.cut-line { display: block; padding-bottom: 0.07em; }
.cut-text { display: inline-block; transition: color 2.4s ease; }
.cut-text em { transition: color 2.4s ease; }
/* freshly cut: a warm brass tone that settles into the normal colour */
.cut-text.is-hot, .cut-text.is-hot em { color: var(--gold-2); transition: none; }
/* revealed behind a soft, feathered edge that follows the torch (--p, set by script.js) */
.js .cut-text { --p: 0%; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 0.9em), transparent var(--p)); mask-image: linear-gradient(90deg, #000 calc(var(--p) - 0.9em), transparent var(--p)); }
.js .cut-text.is-cut { -webkit-mask-image: none; mask-image: none; }
.hero-sub { text-wrap: balance; max-width: 46ch; margin-top: clamp(22px, 3vh, 34px); color: var(--text-2); font-size: clamp(1.02rem, 1.15vw, 1.15rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.6vh, 40px); }
.js [data-hero-in] { opacity: 0; transform: translateY(16px); transition: opacity 1s ease var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.js [data-hero-in].is-in { opacity: 1; transform: none; }
.hero-frame { width: 100%; }
/* portrait cover photo: sized by height so it never towers past the fold */
.hero-frame-portrait { width: auto; height: min(calc(100svh - var(--header-h) - 64px), 900px, 69vw); }
.js .hero-frame { opacity: 0; transform: translateY(18px); }
.js .hero-frame.is-in { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.4s var(--ease); }

/* ===== WHAT WE MAKE ===== */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.2vw, 34px); align-items: start; }
.tile { display: block; color: var(--text); }
.tile:nth-child(even) { margin-top: clamp(28px, 4vw, 64px); }
.tile-frame > img { transition: transform 1.8s var(--ease); }
.tile:hover .tile-frame > img { transform: scale(1.035); }
.tile-cap { display: flex; align-items: baseline; gap: 12px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); position: relative; }
.tile-cap::after { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); }
.tile:hover .tile-cap::after, .tile:focus-visible .tile-cap::after { transform: scaleX(1); }
.tile-num { font-family: var(--ff-display); font-style: italic; color: var(--gold-2); font-size: 1.05rem; }
.tile-name { font-family: var(--ff-display); font-size: clamp(1.25rem, 1.6vw, 1.6rem); line-height: 1.1; transition: color var(--t-fast); }
.tile:hover .tile-name { color: var(--gold-2); }
.tile-count { margin-left: auto; font-size: var(--fs-xs); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ===== SIGNATURE ===== */
.signature-grid { display: grid; grid-template-columns: auto minmax(0, 560px); justify-content: space-evenly; gap: clamp(40px, 6vw, 120px); align-items: center; }
.signature-frame { height: min(calc(100svh - var(--header-h) - 48px), 920px, 85vw); width: auto; }
.lead { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.25rem, 1.6vw, 1.6rem); color: var(--text-2); margin-top: 18px; line-height: 1.4; }
.spec-list { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); max-width: 520px; }
.spec-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: var(--fs-xs); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.spec-list dd { color: var(--text); }
.signature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }

/* ===== PERGOLAS ===== */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.feature-frame { width: 100%; }

/* ===== WORKSHOP ===== */
.workshop-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "copy copy photo" "cap cap photo" "p1 p2 photo"; column-gap: clamp(12px, 1.4vw, 20px); align-items: start; }
.workshop-copy { grid-area: copy; }
.workshop-cap { grid-area: cap; margin-top: clamp(30px, 3.4vw, 48px); margin-bottom: 14px; color: var(--text-2); font-size: 0.98rem; }
.workshop-cap strong { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.25rem, 1.5vw, 1.45rem); color: var(--text); margin-right: 6px; }
.ws-p1 { grid-area: p1; }
.ws-p2 { grid-area: p2; }
/* width set by script.js so the photo's height matches the text column (no dead band) */
.workshop-frame { grid-area: photo; width: clamp(300px, 34vw, 560px); margin-left: clamp(28px, 4vw, 72px); }
.traits { margin-top: clamp(26px, 3vw, 40px); border-top: 1px solid var(--line); }
.traits li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.traits span { font-family: var(--ff-display); font-size: 1.25rem; color: var(--text); line-height: 1.2; }

/* ===== CONTACT ===== */
.contact { border-top: 1px solid var(--line); }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-inner .eyebrow { justify-content: center; }
.contact-inner .h2 { margin-bottom: clamp(28px, 3vw, 40px); }
.contact-list { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 0 clamp(28px, 4vw, 64px); margin-top: clamp(32px, 4vw, 48px); }
.contact-list li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.contact-list .label { font-size: var(--fs-xs); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-family: var(--ff-display); font-size: 1.15rem; color: var(--text); transition: color var(--t-fast); }
.contact-list a:hover { color: var(--gold-2); }
.contact-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 26px; color: var(--muted); font-size: 0.95rem; }
.contact-alt a { color: var(--text-2); transition: color var(--t-fast); }
.contact-alt a:hover { color: var(--gold-2); }


/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(44px, 5vw, 64px); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px 48px; padding-bottom: clamp(36px, 4vw, 52px); }
.footer-bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer-nav, .footer-contact { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.footer-nav a, .footer-contact a { color: var(--text-2); font-size: 0.92rem; transition: color var(--t-fast); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-2); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ===== COLLECTION PAGE — shelves: one per category, photos shown whole ===== */
.catalogue { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 90px)); padding-bottom: clamp(60px, 8vw, 120px); }
.catalogue-head { margin-bottom: clamp(26px, 3vw, 40px); }
.filters { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.6vw, 36px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.filter { position: relative; padding: 6px 0; font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); transition: color var(--t-fast); white-space: nowrap; }
.filter::after { content: ''; position: absolute; left: 0; bottom: -19px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform var(--t-med); }
.filter:hover { color: var(--text); }
.filter.is-active { color: var(--gold-2); }
.filter.is-active::after { transform: scaleX(1); transform-origin: left; }
.shelves { margin-top: clamp(18px, 2vw, 28px); }
.shelf { display: grid; grid-template-columns: clamp(180px, 17vw, 240px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); padding: clamp(30px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.shelf:last-child { border-bottom: 0; }
.shelf-head { display: flex; flex-direction: column; gap: 10px; align-self: start; position: sticky; top: calc(var(--header-h) + 80px); }
.shelf-num { font-family: var(--ff-display); font-style: italic; color: var(--gold-2); font-size: 1.1rem; }
.shelf-head h2 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.01em; }
.shelf-count { font-size: var(--fs-xs); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.shelf-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(14px, 1.8vw, 28px); }
.piece { display: block; flex: none; text-align: left; color: var(--text); max-width: 100%; }
.piece-frame { position: relative; display: block; overflow: hidden; background-color: var(--bg-1); background-size: cover; background-position: center; }
.piece-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease, transform 1.4s var(--ease); }
.piece-frame img.is-loaded { opacity: 1; }
.piece:hover .piece-frame img { transform: scale(1.025); }
.piece-cap { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.piece-cap::after { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.piece:hover .piece-cap::after, .piece:focus-visible .piece-cap::after { transform: scaleX(1); }
.piece-name { font-family: var(--ff-display); font-size: clamp(1.15rem, 1.4vw, 1.4rem); line-height: 1.15; transition: color var(--t-fast); }
.piece:hover .piece-name { color: var(--gold-2); }
.piece-meta { font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* category links stay in reach while browsing */
.filters { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg-0); padding-top: 14px; }
.js body:not(.header-shown) .filters { top: 0; }
.custom-cta { border-top: 1px solid var(--line); text-align: center; }
.custom-cta-inner { max-width: 720px; }
.custom-cta-inner .lead { margin-bottom: 32px; }

/* ===== FLOATING ===== */
.fab-wa { position: fixed; right: 24px; bottom: 24px; z-index: 700; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(14,14,16,0.85); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); color: var(--wa); box-shadow: 0 18px 44px -16px rgba(0,0,0,0.9); transition: transform var(--t-fast), border-color var(--t-fast), background-color var(--t-fast), opacity var(--t-fast); }
.fab-wa .ic { width: 25px; height: 25px; }
.fab-wa:hover { transform: translateY(-3px); border-color: var(--wa); }
/* floating WhatsApp waits until the hero (which has its own WhatsApp button) is scrolled past */
.js .fab-wa:not(.is-visible) { opacity: 0; pointer-events: none; transform: translateY(12px); }
html.is-locked .fab-wa { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ===== PRODUCT MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: clamp(12px, 2.4vw, 24px); visibility: hidden; opacity: 0; transition: opacity 0.5s ease, visibility 0s linear 0.5s; }
.modal.is-open { visibility: visible; opacity: 1; transition: opacity 0.5s ease; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 6, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal-panel { position: relative; width: min(1160px, 100%); height: min(92vh, 920px); height: min(92dvh, 920px); display: grid; grid-template-columns: 11fr 9fr; grid-template-rows: minmax(0, 1fr); background: var(--bg-1); box-shadow: 0 60px 140px -40px rgba(0,0,0,1); transform: translateY(30px) scale(0.985); transition: transform 0.8s var(--ease); overflow: hidden; }
.modal.is-open .modal-panel { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(8,8,8,0.55); border: 1px solid var(--line-strong); color: var(--text); transition: border-color var(--t-fast), color var(--t-fast), transform 0.6s var(--ease); }
.modal-close:hover { border-color: var(--gold); color: var(--gold-2); transform: rotate(90deg); }
.modal-media { position: relative; background: var(--bg-0); min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.modal-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; background-color: var(--bg-0); }
.modal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s ease, transform 0.7s var(--ease); }
.modal-nav { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; display: grid; place-items: center; background: rgba(8,8,8,0.55); border: 1px solid var(--line-strong); color: var(--text); opacity: 0; transition: opacity var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.modal-nav:hover { border-color: var(--gold); color: var(--gold-2); }
.modal-prev { left: 16px; }
.modal-prev .ic { transform: rotate(180deg); }
.modal-next { right: 16px; }
.modal-stage:hover .modal-nav, .modal-nav:focus-visible { opacity: 1; }
.modal-stage.is-single .modal-nav, .modal-stage.is-single .modal-count { display: none; }
.modal-count { position: absolute; left: 20px; bottom: 16px; z-index: 3; font-family: var(--ff-display); font-style: italic; font-size: 1.1rem; color: var(--text); text-shadow: 0 1px 12px rgba(0,0,0,0.8); }
.modal-img.is-switching { opacity: 0; transform: scale(1.02); }
.modal-thumbs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); scroll-padding-inline: 14px; display: flex; gap: 10px; padding: 14px; background: var(--bg-1); border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.modal-thumbs::-webkit-scrollbar { display: none; }
.modal-thumbs:empty { display: none; }
.modal-thumbs button { width: 64px; height: 64px; overflow: hidden; border: 1px solid var(--line); opacity: 0.55; transition: opacity var(--t-fast), border-color var(--t-fast); flex: 0 0 auto; }
.modal-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs button:hover, .modal-thumbs button.is-active { opacity: 1; border-color: var(--gold); }
.modal-body { min-width: 0; min-height: 0; padding: clamp(32px, 4vw, 56px); overflow-y: auto; overscroll-behavior: contain; }
.modal-body .eyebrow { margin-bottom: 18px; }
.modal-tagline { font-family: var(--ff-display); font-style: italic; font-size: 1.35rem; color: var(--gold-2); margin-top: 14px; }
.modal-desc { color: var(--text-2); margin-top: 20px; line-height: 1.8; }
.modal-specs { margin-top: 32px; border-top: 1px solid var(--line); }
.modal-specs div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.modal-specs dt { color: var(--muted); font-size: var(--fs-xs); letter-spacing: 0.24em; text-transform: uppercase; padding-top: 4px; }
.modal-specs dd { color: var(--text); }
.modal-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.modal-price { font-family: var(--ff-display); font-style: italic; font-size: 1.2rem; color: var(--text-2); }


/* ===== REVEAL ===== */
[data-reveal] { --d: 0s; opacity: 0; transform: translateY(30px); transition: opacity 1.1s ease var(--d), transform 1.4s var(--ease) var(--d); }
[data-reveal].is-in { opacity: 1; transform: none; }
.frame[data-reveal], .tile[data-reveal] .frame { clip-path: inset(10% 0 0 0); transition: opacity 1.1s ease var(--d), transform 1.4s var(--ease) var(--d), clip-path 1.4s var(--ease) var(--d); }
.frame[data-reveal].is-in, .tile[data-reveal].is-in .frame { clip-path: inset(0 0 0 0); }

/* ===== NO-JS SAFETY NET =====
   <html> gets .js from an inline script in <head>; it is removed again if script.js
   never finishes, and everything then shows without animation. */
html:not(.js) [data-reveal], html:not(.js) .frame, html:not(.js) .tile .frame { opacity: 1; transform: none; clip-path: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 1366px) {
  .hero-cta .btn { padding-inline: 26px; }
}
@media (max-height: 560px) {
  .modal-panel { grid-template-columns: 1fr; grid-template-rows: none; height: auto; max-height: 96dvh; overflow-y: auto; overscroll-behavior: contain; }
  .modal-stage { aspect-ratio: 16 / 10; max-height: 70dvh; flex: none; }
  .modal-body { overflow: visible; }
}
@media (max-width: 1100px) {
  /* stacked detail view from here down: a two-column modal can't fit a tall photo */
  .modal-panel { grid-template-columns: 1fr; grid-template-rows: none; height: auto; max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .modal-media { min-height: 0; }
  .modal-stage { aspect-ratio: 1 / 1; max-height: 58dvh; flex: none; }
  .modal-body { overflow: visible; }
}
@media (max-width: 1100px) {
  .signature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-content: stretch; }
  .signature-frame { width: 100%; height: auto; max-width: none; }
}
@media (max-width: 1100px) {
  /* tablets: text across the top, then the three portrait photos as one even row */
  .workshop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "copy copy copy" "cap cap cap" "p1 p2 photo"; }
  .workshop-frame { width: 100% !important; margin-left: 0; }
}
@media (min-width: 901px) and (max-width: 1100px) {
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(even) { margin-top: 36px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-frame-portrait { height: auto; width: 100%; max-width: none; }
  .hero-title { font-size: clamp(3rem, 13vw, 5.4rem); }
  .modal-nav { opacity: 1; width: 40px; height: 40px; margin-top: -20px; }
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }
  /* collection: the photo pins to the top of the screen, the list scrolls under it */
  /* while the header is showing, the pinned photo sits below it instead of under it */
  .shelf { grid-template-columns: 1fr; gap: 18px; }
  .shelf-head { position: static; flex-direction: row; align-items: baseline; gap: 14px; }
  .shelf-count { margin-left: auto; }
  .piece-cap { flex-direction: column; gap: 4px; }
  .filters { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 26px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; padding: 6px 0 18px; scroll-snap-align: start; }
  .filter::after { bottom: 0; }
}
@media (max-width: 767px) {
  :root { --header-h: 74px; }
  /* phones: no live blur behind the header or floating button, no full-screen grain layer;
     both are repainted on every scroll frame over photos and cause stutter */
  .site-header.is-solid { background: rgba(8, 8, 8, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .fab-wa { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(14, 14, 16, 0.96); }
  body::after { display: none; }
  .contact-list { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .contact-alt { flex-direction: column; align-items: center; gap: 8px; }
  .contact-alt span[aria-hidden] { display: none; }
  .tile-count { display: none; }
  .signature-grid { grid-template-columns: 1fr; gap: 36px; }
  .workshop-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "copy copy" "photo photo" "cap cap" "p1 p2"; }
  .workshop-frame { margin: 36px 0 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .signature-frame { height: auto; width: 100%; }
  .site-footer { padding-bottom: 72px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .contact-list { grid-template-columns: 1fr; }
  .brand-word { font-size: 0.74rem; letter-spacing: 0.26em; }
  .brand-mark { width: 32px; height: 30px; }
  .spec-list div { grid-template-columns: 90px 1fr; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], .js [data-hero-in], .frame, .tile .frame { opacity: 1; transform: none; clip-path: none; }
  .js .cut-text { -webkit-mask-image: none; mask-image: none; }
  .js .hero-frame { opacity: 1; transform: none; }
  .fx, .hero-sparks { display: none; }
}
