/* ==========================================================================
   American Stone LS
   Limestone paper, pine-black, a single Italian red, fieldstone ochre.
   Fraunces for display, Instrument Sans for reading, Plex Mono for labels,
   Caveat for the "LS" signature.
   ========================================================================== */

:root {
  --paper: #ebe5d6;
  --paper-2: #e1d9c6;
  --chalk: #f5f1e8;
  --ink: #151512;
  --pine: #1a2420;
  --pine-2: #212d28;
  --pine-3: #2b3933;
  --rosso: #b5301f;
  --rosso-2: #96261a;
  --ochre: #c4933c;
  --ochre-2: #e0b35d;
  --mortar: #7b7466;
  --mortar-2: #55504a;
  --bluestone: #4e5b63;
  --line: rgba(21,21,18,0.14);
  --line-dark: rgba(233,227,213,0.14);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --font-script: "Caveat", cursive;

  --container: 1360px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 10vw, 150px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --cut: polygon(0.6% 1.2%, 99.2% 0, 100% 98.6%, 1.4% 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: var(--font-body); font-size: 1.05rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }
::selection { background: var(--rosso); color: var(--chalk); }
:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }

.grain { position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: 0.07; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Typography ---------- */
h1, h2, h3, .h1, .h2, .h3, .h4, .display { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; font-variation-settings: "opsz" 120, "SOFT" 30; }
h1, .h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1; letter-spacing: -0.025em; }
h2, .h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3, .h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); }
.h4 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.i, em.i { font-style: italic; }
.italic-word { font-style: normal; color: var(--rosso); }
.dark .italic-word { color: var(--ochre-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.01em; color: var(--rosso); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: currentColor; flex: none; }
.eyebrow.center::after { content: none; }
.eyebrow.brass { color: var(--ochre-2); }
.lede { font-size: clamp(1.1rem, 1.35vw, 1.28rem); line-height: 1.5; color: var(--mortar-2); }
.dark .lede { color: #c7c0b0; }
.small { font-size: 0.9rem; }
.muted { color: var(--mortar); }
.measure { max-width: 62ch; }
.center { text-align: center; }
.script { font-family: var(--font-script); font-weight: 700; }
.mono { font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
main { counter-reset: sec; }
main > .section:not(.cta)::before { counter-increment: sec; content: "No. 0" counter(sec); position: absolute; top: 28px; right: var(--gutter); font-family: var(--font-mono); font-size: 0.72rem; color: var(--mortar); }
.section.tight { padding-block: clamp(56px, 7vw, 100px); }
.dark { background: var(--pine); color: #e9e3d5; }
.dark-2 { background: var(--pine-2); color: #e9e3d5; }
.paper { background: var(--chalk); }
.stone-2 { background: var(--paper-2); }
.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); }
.dark .section-head, .dark-2 .section-head { border-color: var(--line-dark); }
.section-head .lede { max-width: 46ch; }
.section-head.stack { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head h2 { margin-top: 20px; max-width: 18ch; }
.section-head.stack h2 { max-width: 24ch; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .section-head { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons: cut from the wall ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 19px 30px; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; color: var(--chalk); text-shadow: 0 1px 2px rgba(0,0,0,0.7); background: #8f8676; clip-path: polygon(2% 12%, 9% 0, 62% 3%, 96% 0, 100% 40%, 98% 100%, 55% 96%, 8% 100%, 0 78%); isolation: isolate; white-space: nowrap; transition: transform 0.35s var(--ease-out), filter 0.35s; }
.btn::before { content: ""; position: absolute; inset: 3px; z-index: -1; background: var(--stone-tex, url("../img/ui/stone-warm.jpg")) center / cover; clip-path: polygon(2% 12%, 9% 0, 62% 3%, 96% 0, 100% 40%, 98% 100%, 55% 96%, 8% 100%, 0 78%); transition: filter 0.35s; }
.btn::after { content: ""; position: absolute; inset: 3px; z-index: -1; clip-path: polygon(2% 12%, 9% 0, 62% 3%, 96% 0, 100% 40%, 98% 100%, 55% 96%, 8% 100%, 0 78%); background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(0,0,0,0) 45%, rgba(0,0,0,0.38)); pointer-events: none; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before, .btn:focus-visible::before { filter: brightness(1.18) saturate(1.1); }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5)); }
.btn:hover .arrow { transform: translateX(3px) rotate(-12deg); }
.btn-primary { --stone-tex: url("../img/ui/stone-warm.jpg"); }
.btn-ghost, .btn-light { --stone-tex: url("../img/ui/stone-cool.jpg"); }
.nav .btn { padding: 12px 18px; font-size: 0.78rem; }
.link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.82rem; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color 0.3s; }
.link:hover { color: var(--rosso); }
.dark .link:hover { color: var(--ochre-2); }
.link .arrow { width: 13px; height: 13px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 900; padding: 22px 0; color: #e9e3d5; transition: padding 0.4s var(--ease-out), background 0.4s, color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.4s; }
.header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(21,21,18,0.6), rgba(21,21,18,0)); transition: opacity 0.4s; }
.header.is-scrolled { padding: 12px 0; color: var(--ink); background: rgba(235,229,214,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled::after { opacity: 0; }
.header.is-hidden { transform: translateY(-110%); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; line-height: 1; }
/* Official logo: white PNG used as a mask, so it takes the text color of wherever it sits */
.logo { display: block; height: 30px; aspect-ratio: 1616 / 190; background: currentColor; -webkit-mask: url("../img/logo-white.png") center / contain no-repeat; mask: url("../img/logo-white.png") center / contain no-repeat; }
@media (max-width: 480px) { .header .logo { height: 22px; } }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-family: var(--font-mono); font-size: 0.82rem; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-in-out); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 1001; }
.burger span { position: absolute; left: 10px; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-out), opacity 0.3s, top 0.3s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.menu-open .burger { color: #e9e3d5; }
@media (max-width: 1040px) { .nav { display: none; } .burger { display: block; } }

.menu { position: fixed; inset: 0; z-index: 950; background: var(--pine); color: #e9e3d5; display: grid; grid-template-rows: 1fr auto; padding: 110px var(--gutter) 40px; transform: translateY(-100%); visibility: hidden; transition: transform 0.7s var(--ease-in-out), visibility 0s 0.7s; }
.menu-open .menu { transform: translateY(0); visibility: visible; transition: transform 0.7s var(--ease-in-out), visibility 0s; }
.menu ul { display: grid; gap: 4px; align-content: center; }
.menu li a { font-family: var(--font-display); font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1.1; display: inline-flex; align-items: baseline; gap: 16px; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.menu li a small { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ochre-2); }
.menu-open .menu li a { opacity: 1; transform: none; }
.menu-open .menu li:nth-child(1) a { transition-delay: 0.25s } .menu-open .menu li:nth-child(2) a { transition-delay: 0.32s } .menu-open .menu li:nth-child(3) a { transition-delay: 0.39s } .menu-open .menu li:nth-child(4) a { transition-delay: 0.46s } .menu-open .menu li:nth-child(5) a { transition-delay: 0.53s } .menu-open .menu li:nth-child(6) a { transition-delay: 0.6s }
.menu-foot { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; font-family: var(--font-mono); font-size: 0.8rem; color: #b3ac9c; border-top: 1px solid var(--line-dark); padding-top: 24px; }
.menu-foot a { color: #e9e3d5; }
body.menu-open { overflow: hidden; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 9999; background: var(--pine); display: grid; place-items: center; color: #e9e3d5; overflow: hidden; }
.loader-wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 1fr; gap: 3px; padding: 3px; }
.loader-wall span { background: var(--pine-3); transform: translateY(110%); opacity: 0; }
.loader-wall span:nth-child(odd) { background: var(--pine-2); }
.loader-mark { position: relative; z-index: 2; text-align: center; opacity: 0; }
.loader-mark .logo { height: auto; width: min(560px, 80vw); margin: 0 auto; }
.loader-mark .tag { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ochre); }
.loader-line { position: absolute; left: 50%; bottom: 18%; width: 160px; height: 1px; background: rgba(255,255,255,0.15); transform: translateX(-50%); overflow: hidden; }
.loader-line i { position: absolute; inset: 0; background: var(--rosso); transform: scaleX(0); transform-origin: left; }
.loader.is-done { display: none; }


/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #efe9dc; overflow: hidden; padding-top: 100px; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; will-change: transform; transform: scale(1.08); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26,36,32,0.9) 0%, rgba(26,36,32,0.72) 38%, rgba(26,36,32,0.25) 70%, rgba(26,36,32,0.1) 100%), linear-gradient(to top, rgba(26,36,32,0.6), rgba(26,36,32,0) 40%); }
.hero .container { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 80px); }
.hero-panel { max-width: 640px; }
.hero h1 { margin-top: 22px; max-width: 13ch; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero .lede { margin-top: 24px; max-width: 40ch; color: #e2dbca; font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.hero .btn-group { margin-top: 36px; }
.hero-scroll { position: absolute; left: var(--gutter); bottom: 30px; z-index: 2; display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 0.7rem; color: #b3ac9c; }
.hero-scroll i { width: 1px; height: 46px; background: rgba(233,227,213,0.3); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ochre-2); transform: translateY(-100%); animation: scrollHint 2.2s var(--ease-in-out) infinite; }
@keyframes scrollHint { 0% { transform: translateY(-100%); } 60% { transform: translateY(100%); } 100% { transform: translateY(100%); } }
.hero-small { min-height: 68svh; align-items: end; }
.hero-small h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.hero-small .lede { max-width: 48ch; }
@media (max-width: 960px), (max-height: 740px) { .hero-scroll { display: none; } }
@media (max-width: 640px) { .hero { align-items: end; } .hero-media img { object-position: 60% center; } }

.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .wi { display: inline-block; transform: translateY(110%); will-change: transform; }
.split.is-done .wi { transform: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--font-mono); font-size: 0.86rem; white-space: nowrap; }
.marquee-track span i { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--rosso); }
.marquee-track svg { width: 10px; height: 10px; color: var(--ochre); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Intro / spec sheet ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.intro-grid .statement { font-family: var(--font-display); font-size: clamp(1.55rem, 2.6vw, 2.35rem); line-height: 1.25; font-variation-settings: "opsz" 60, "SOFT" 50; }
.intro-grid .statement strong { font-weight: 500; color: var(--rosso); }
.spec { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--mortar-2); padding-top: 3px; }
.spec dd { font-family: var(--font-display); font-size: 1.2rem; }
.intro-photo { position: relative; }
.intro-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; clip-path: var(--cut); }
.intro-photo figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--mortar); line-height: 1.5; }
@media (max-width: 960px) { .intro-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .spec > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.service { position: relative; overflow: hidden; background: var(--pine); color: #e9e3d5; min-height: 400px; display: flex; align-items: flex-end; isolation: isolate; }
.service:nth-child(1) { grid-column: span 7; min-height: 500px; }
.service:nth-child(2) { grid-column: span 5; min-height: 500px; }
.service:nth-child(3), .service:nth-child(4), .service:nth-child(5) { grid-column: span 4; }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26,36,32,0.96) 0%, rgba(26,36,32,0.3) 55%, rgba(26,36,32,0.1) 100%); }
.service:hover img { transform: scale(1.05); }
.service-body { padding: 26px; width: 100%; }
.service-body .num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ochre-2); }
.service-body h3 { margin-top: 8px; }
.service-body p { margin-top: 10px; max-width: 38ch; color: #c7c0b0; font-size: 0.95rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out), opacity 0.5s; }
.service:hover .service-body p, .service:focus-within .service-body p { max-height: 120px; opacity: 1; }
.service-body .link { margin-top: 14px; color: var(--ochre-2); }
@media (max-width: 960px) { .service:nth-child(1), .service:nth-child(2) { grid-column: span 12; min-height: 400px; } .service:nth-child(3), .service:nth-child(4), .service:nth-child(5) { grid-column: span 12; min-height: 340px; } .service-body p { max-height: none; opacity: 1; } }

/* ---------- Work grid ---------- */
.masonry { columns: 3; column-gap: 14px; }
.masonry > * { break-inside: avoid; margin-bottom: 14px; }
@media (max-width: 960px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.work-item { position: relative; display: block; overflow: hidden; background: var(--pine-2); }
.work-item img { width: 100%; transition: transform 1.2s var(--ease-out); }
.work-item:hover img { transform: scale(1.04); }
.work-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px; color: #efe9dc; background: linear-gradient(to top, rgba(26,36,32,0.92), rgba(26,36,32,0)); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; transform: translateY(10px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s; }
.work-item:hover figcaption, .work-item:focus-visible figcaption { transform: none; opacity: 1; }
.work-item figcaption b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; display: block; }
.work-item figcaption span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ochre-2); }
.work-item.is-hidden { display: none; }
@media (hover: none) { .work-item figcaption { transform: none; opacity: 1; } }
.filters { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 32px; border: 1px solid var(--ink); width: max-content; max-width: 100%; }
.filters button { padding: 12px 18px; font-family: var(--font-mono); font-size: 0.8rem; border-right: 1px solid var(--ink); transition: background 0.3s, color 0.3s; }
.filters button:last-child { border-right: 0; }
.filters button:hover { background: var(--paper-2); }
.filters button.is-active { background: var(--ink); color: var(--chalk); }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.story-media { position: relative; }
.story-media .main { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; clip-path: var(--cut); }
.story-media .float { position: absolute; width: 42%; right: -8%; bottom: -10%; border: 8px solid var(--paper-2); aspect-ratio: 3 / 4; object-fit: cover; }
.story-media .flag { position: absolute; top: 18px; left: 18px; display: inline-flex; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.story-media .flag i { width: 12px; height: 26px; display: block; }
.story-media .flag i:nth-child(1) { background: #009246 } .story-media .flag i:nth-child(2) { background: #f1f2f1 } .story-media .flag i:nth-child(3) { background: #ce2b37 }
.story-body h2 { margin-top: 18px; }
.story-body .lede { margin-top: 22px; }
.story-body p + p { margin-top: 14px; }
.story-body .btn-group { margin-top: 32px; }
.quote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem); font-style: italic; line-height: 1.3; font-variation-settings: "opsz" 60, "SOFT" 60; }
.quote cite { display: block; margin-top: 16px; font-family: var(--font-mono); font-style: normal; font-size: 0.75rem; color: var(--rosso); }
.dark .quote cite, .dark-2 .quote cite { color: var(--ochre-2); }
.quote-mark { font-family: var(--font-display); font-size: 6rem; line-height: 0.5; color: var(--rosso); display: block; margin-bottom: 30px; }
@media (max-width: 960px) { .story { grid-template-columns: 1fr; } .story-media { margin-bottom: 60px; } .story-media .float { right: 0; } }

/* ---------- Process ---------- */
.process { position: relative; }
.process-line { position: absolute; left: 0; right: 0; top: 34px; height: 2px; pointer-events: none; }
.process-line path { stroke: var(--ochre); stroke-width: 2; fill: none; stroke-dasharray: 6 8; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; }
.step { position: relative; }
.step .dot { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--pine-2); border: 1px solid rgba(196,147,60,0.5); color: var(--ochre-2); position: relative; z-index: 1; }
.step .dot svg { width: 28px; height: 28px; }
.step .num { position: absolute; top: -6px; left: 58px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ochre); }
.step h3 { margin-top: 24px; font-size: 1.4rem; }
.step p { margin-top: 10px; font-size: 0.95rem; color: #b8b1a1; }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); } .process-line { display: none; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Case strip ---------- */
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--ochre) transparent; }
.strip::-webkit-scrollbar { height: 4px; }
.strip::-webkit-scrollbar-thumb { background: var(--ochre); }
.strip figure { flex: 0 0 min(78vw, 420px); scroll-snap-align: start; }
.strip figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.strip figcaption { margin-top: 10px; display: flex; gap: 12px; align-items: baseline; font-size: 0.86rem; color: var(--mortar-2); }
.dark .strip figcaption { color: #b8b1a1; }
.strip figcaption b { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; color: var(--rosso); white-space: nowrap; }
.dark .strip figcaption b { color: var(--ochre-2); }
.strip figure.tall img { aspect-ratio: 3 / 4; }
.case-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.dark .case-head { border-color: var(--line-dark); }
.case-head h2 { margin-top: 20px; }
.case-head .meta { display: grid; grid-template-columns: auto auto; gap: 8px 28px; font-size: 0.86rem; color: var(--mortar-2); justify-content: start; }
.dark .case-head .meta { color: #b8b1a1; }
.case-head .meta dt { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ochre); }
@media (max-width: 960px) { .case-head { grid-template-columns: 1fr; } }

/* ---------- Compare ---------- */
.compare { position: relative; aspect-ratio: 4 / 3; overflow: hidden; user-select: none; background: var(--pine-2); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--chalk); transform: translateX(-50%); pointer-events: none; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--chalk); background: rgba(21,21,18,0.55); transform: translate(-50%, -50%); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f1e8' stroke-width='1.6'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E"); background-size: 26px; background-position: center; background-repeat: no-repeat; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 14px; padding: 7px 10px; background: var(--ink); color: var(--chalk); font-family: var(--font-mono); font-size: 0.7rem; pointer-events: none; }
.compare .tag.l { left: 14px; background: var(--rosso); } .compare .tag.r { right: 14px; }

/* ---------- Reels / embeds ---------- */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reel { position: relative; display: block; aspect-ratio: 9 / 14; overflow: hidden; background: var(--pine-2); }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.reel:hover img { transform: scale(1.04); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,36,32,0.9), rgba(26,36,32,0) 55%); }
.reel .play { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7); display: grid; place-items: center; color: var(--chalk); z-index: 1; background: rgba(21,21,18,0.35); }
.reel .play svg { width: 14px; height: 14px; margin-left: 2px; }
.reel figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: #efe9dc; font-size: 0.9rem; line-height: 1.4; }
.reel figcaption span { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ochre-2); }
.ig-embeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ig-embeds .ig-slot { min-height: 480px; overflow: hidden; background: var(--pine-3); }
.ig-embeds .instagram-media { margin: 0 !important; min-width: 0 !important; max-width: 100% !important; width: 100% !important; }
@media (max-width: 960px) { .reels, .ig-embeds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reels, .ig-embeds { grid-template-columns: 1fr; } .ig-embeds .ig-slot { min-height: 0; } }

/* ---------- Video ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pine-2) center / cover no-repeat; cursor: pointer; }
.yt::after { content: ""; position: absolute; inset: 0; background: rgba(26,36,32,0.25); transition: background 0.4s; }
.yt:hover::after { background: rgba(26,36,32,0.1); }
.yt .yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; background: var(--rosso); color: var(--chalk); display: grid; place-items: center; z-index: 1; transition: transform 0.4s var(--ease-out); }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); }
.yt .yt-play svg { width: 26px; height: 26px; margin-left: 4px; }
.yt .yt-title { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: var(--chalk); font-family: var(--font-mono); font-size: 0.72rem; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing::after, .yt.is-playing .yt-play, .yt.is-playing .yt-title { display: none; }
.video-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.video-grid .side { display: grid; gap: 14px; }
@media (max-width: 960px) { .video-grid { grid-template-columns: 1fr; } .video-grid .side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .video-grid .side { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; text-align: center; }
.testimonial { display: none; }
.testimonial.is-active { display: block; animation: fadeUp 0.9s var(--ease-out); }
.testimonial blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.22; max-width: 26ch; margin-inline: auto; font-variation-settings: "opsz" 96, "SOFT" 40; }
.testimonial blockquote em { font-style: italic; color: var(--rosso); }
.testimonial cite { display: block; margin-top: 26px; font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; color: var(--mortar); }
.testimonial cite b { color: var(--ink); font-weight: 500; }
.t-nav { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.t-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.t-nav button:hover { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.t-nav button svg { width: 16px; height: 16px; }
.t-dots { display: flex; gap: 8px; }
.t-dots i { width: 26px; height: 2px; background: var(--line); transition: background 0.3s; }
.t-dots i.is-active { background: var(--rosso); }
.stars { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: #efe9dc; }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: rgba(26,36,32,0.82); }
.cta .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.cta h2 { margin-top: 18px; max-width: 18ch; }
.cta .phones { display: grid; gap: 16px; justify-items: end; text-align: right; }
.cta .phones a.tel { font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1; transition: color 0.3s; }
.cta .phones a.tel:hover { color: var(--ochre-2); }
.cta .phones small { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ochre-2); margin-bottom: 8px; }
@media (max-width: 960px) { .cta .container { grid-template-columns: 1fr; } .cta .phones { justify-items: start; text-align: left; } }

/* ---------- Footer ---------- */
.footer { background: var(--pine); color: #b8b1a1; padding: clamp(64px, 8vw, 110px) 0 32px; position: relative; overflow: hidden; border-top: 3px solid var(--rosso); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .wordmark { color: #efe9dc; }
.footer .logo { height: 36px; max-width: 100%; }
.footer p { margin-top: 20px; max-width: 34ch; font-size: 0.95rem; }
.footer h4 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--ochre-2); margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: #efe9dc; }
.footer .tel { color: #efe9dc; font-family: var(--font-display); font-size: 1.4rem; }
.footer-bottom { margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; font-family: var(--font-mono); font-size: 0.74rem; }
.footer-bottom .flag { display: inline-flex; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.footer-bottom .flag i { width: 6px; height: 12px; display: block; }
.footer-bottom .flag i:nth-child(1) { background: #009246 } .footer-bottom .flag i:nth-child(2) { background: #f1f2f1 } .footer-bottom .flag i:nth-child(3) { background: #ce2b37 }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.socials a:hover { border-color: var(--ochre); background: var(--ochre); color: var(--ink); }
.socials svg { width: 17px; height: 17px; }
.footer-big { position: absolute; left: 0; right: 0; bottom: -0.18em; font-family: var(--font-display); font-style: italic; font-size: clamp(6rem, 18vw, 19rem); line-height: 1; text-align: center; color: rgba(255,255,255,0.03); white-space: nowrap; pointer-events: none; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--ochre), rgba(196,147,60,0.15)); }
.tl-item { position: relative; display: grid; grid-template-columns: 60px 170px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.tl-item::before { content: ""; position: absolute; left: 9px; top: 36px; width: 11px; height: 11px; border-radius: 50%; background: var(--ochre-2); box-shadow: 0 0 0 5px var(--pine); }
.tl-item .year { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ochre-2); grid-column: 2; padding-top: 6px; }
.tl-item .body { grid-column: 3; }
.tl-item h3 { font-size: 1.45rem; }
.tl-item p { margin-top: 8px; color: #b8b1a1; font-size: 0.98rem; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 40px 1fr; } .tl-item .year { grid-column: 2; } .tl-item .body { grid-column: 2; } }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--ink); }
.value { padding: 30px 26px; border-right: 1px solid var(--ink); background: var(--chalk); transition: background 0.4s; }
.value:last-child { border-right: 0; }
.value:hover { background: var(--paper-2); }
.value .glyph { width: 44px; height: 44px; color: var(--rosso); }
.value h3 { margin-top: 22px; font-size: 1.45rem; }
.value p { margin-top: 10px; font-size: 0.95rem; color: var(--mortar-2); }
.value .it { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ochre); }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } .value:nth-child(2) { border-right: 0; } .value:nth-child(1), .value:nth-child(2) { border-bottom: 1px solid var(--ink); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } .value { border-right: 0; border-bottom: 1px solid var(--ink); } .value:last-child { border-bottom: 0; } }
.portrait-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; }
.portrait-grid .col { display: grid; gap: 14px; }
.portrait-grid img { width: 100%; object-fit: cover; }
.portrait-grid .tall { aspect-ratio: 3 / 4; }
.portrait-grid .wide { aspect-ratio: 4 / 3; }
.portrait-grid figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--mortar); }
.dark .portrait-grid figcaption { color: #b8b1a1; }
@media (max-width: 640px) { .portrait-grid { grid-template-columns: 1fr; } }
.pull { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pull img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: var(--cut); }
@media (max-width: 960px) { .pull { grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; }
.svc:nth-child(even) .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media > img:first-child { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; clip-path: var(--cut); }
.svc-media .second { position: absolute; width: 38%; bottom: -8%; left: -6%; aspect-ratio: 3 / 4; border: 6px solid var(--paper); box-shadow: 0 30px 50px -25px rgba(21,21,18,0.5); }
.svc:nth-child(even) .svc-media .second { left: auto; right: -6%; }
.svc h2 { margin-top: 16px; font-size: clamp(1.9rem, 3.3vw, 3rem); }
.svc .lede { margin-top: 18px; }
.svc ul.checks { margin-top: 24px; display: grid; gap: 9px; }
.svc ul.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; }
.svc ul.checks svg { width: 16px; height: 16px; color: var(--rosso); flex: none; margin-top: 5px; }
.svc .btn-group { margin-top: 30px; }
@media (max-width: 960px) { .svc { grid-template-columns: 1fr; } .svc:nth-child(even) .svc-media { order: 0; } .svc-media { margin-bottom: 40px; } }
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 32px; height: 32px; border: 1px solid var(--ink); display: grid; place-items: center; flex: none; position: relative; transition: background 0.3s, color 0.3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; background: currentColor; }
.faq summary i::before { width: 12px; height: 1px; } .faq summary i::after { width: 1px; height: 12px; transition: transform 0.4s; }
.faq details[open] summary i { background: var(--rosso); border-color: var(--rosso); color: var(--chalk); }
.faq details[open] summary i::after { transform: rotate(90deg); }
.faq .answer { padding: 0 0 26px; color: var(--mortar-2); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 0.74rem; color: var(--mortar-2); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(21,21,18,0.3); background: transparent; font: inherit; color: var(--ink); border-radius: 0; transition: border-color 0.3s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--rosso); }
.field select { appearance: none; -webkit-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='%23151512' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; background-size: 18px; padding-right: 30px; }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.85rem; color: var(--mortar); }
.form-status { font-size: 0.9rem; padding: 14px 18px; display: none; }
.form-status.ok { display: block; background: #dfe6d6; color: #24401c; }
.form-status.err { display: block; background: #f0d9d3; color: var(--rosso-2); }
.contact-cards { display: grid; gap: 0; border: 1px solid var(--ink); }
.ccard { padding: 26px 28px; border-bottom: 1px solid var(--ink); background: var(--chalk); display: grid; gap: 6px; }
.ccard:last-child { border-bottom: 0; }
.ccard h3 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; color: var(--rosso); }
.ccard a.big { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
.ccard a.big:hover { color: var(--rosso); }
.ccard p { color: var(--mortar-2); font-size: 0.93rem; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.areas h3 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--ochre-2); margin-bottom: 14px; }
.areas li { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; }
.map { aspect-ratio: 16 / 7; min-height: 320px; overflow: hidden; filter: grayscale(1) contrast(1.05) sepia(0.25); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .areas { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9800; background: rgba(21,21,18,0.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; padding: 60px var(--gutter); }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s, visibility 0s; }
.lightbox img { max-height: 78vh; max-width: min(1200px, 100%); object-fit: contain; }
.lightbox figcaption { margin-top: 16px; color: #b8b1a1; text-align: center; font-size: 0.9rem; }
.lightbox figcaption b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #efe9dc; font-weight: 400; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); color: #efe9dc; display: grid; place-items: center; transition: background 0.3s, border-color 0.3s; }
.lightbox button:hover { background: var(--rosso); border-color: var(--rosso); }
.lightbox button svg { width: 18px; height: 18px; }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; } .lightbox { padding: 60px 16px; } }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); }
[data-reveal="clip"] { transform: none; clip-path: inset(100% 0 0 0); }
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-in-out), opacity 0.6s; }
.story-media .main[data-reveal="clip"].is-in { clip-path: var(--cut); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; clip-path: none; }
.set { overflow: hidden; }
.set img { transform-origin: bottom; }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; font-family: var(--font-mono); font-size: 0.76rem; color: var(--mortar-2); }
.badge-row span { display: inline-flex; align-items: center; gap: 9px; }
.badge-row svg { width: 16px; height: 16px; color: var(--rosso); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10000; background: var(--rosso); color: var(--chalk); padding: 12px 18px; }
.skip:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-media img { transform: none; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .split .wi { transform: none; }
}

/* ---------- Stonework articles ---------- */
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 3vw, 44px); }
.acard { display: grid; gap: 12px; align-content: start; }
.acard-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.acard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.acard:hover .acard-media img { transform: scale(1.04); }
.acard h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.15; }
.acard p:last-child { color: var(--mortar-2); font-size: 0.98rem; }
.acard:hover h3 { color: var(--rosso); }

.article-grid { display: grid; grid-template-columns: 220px minmax(0, 740px); gap: clamp(32px, 5vw, 80px); justify-content: center; }
.article-meta { position: sticky; top: 110px; align-self: start; display: grid; gap: 18px; font-size: 0.92rem; color: var(--mortar-2); }
.article-meta b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } .article-meta { position: static; } }

.prose { font-size: 1.1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-top: 2.2em; }
.prose h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--rosso); }
.prose a:not(.btn) { text-decoration: underline; text-decoration-color: var(--rosso); text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--rosso); }
.prose strong { font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--ochre); padding: 4px 0 4px 22px; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--mortar-2); }
.prose .faq { margin-top: 1.4em; }
.answer-box { background: var(--chalk); border-left: 4px solid var(--rosso); padding: 22px 26px; }
.answer-box p + p { margin-top: 8px; }
.sources ul { font-size: 0.95rem; }
.author-box { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: start; margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--line); font-size: 0.98rem; }
.author-box img { width: 110px; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 480px) { .author-box { grid-template-columns: 1fr; } }

/* Hide the "Powered by Netlify" badge Netlify injects on the live site */
#nl-badge-frame { display: none !important; }
