/* =============================================================
   Pincelada Painting Co. (demo) — warm canvas, serif editorial,
   brush strokes. --paint is the colour chosen in the visualizer
   and tints strokes and accents across the whole page.
   ============================================================= */

/* 1. Tokens */
@property --paint { syntax: "<color>"; inherits: true; initial-value: #8A9A78; }
:root {
  --canvas: #FBF6EE;
  --canvas-2: #F3EBDF;
  --paper: #FFFFFF;
  --ink: #1F1B17;
  --ink-2: #57504A;
  --mute: #8C847B;
  --line: rgba(31, 27, 23, .12);
  --paint: #8A9A78;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: --paint .6s; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; }
::selection { background: var(--paint); color: #fff; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* 3. Type */
.kicker { font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 26px; height: 8px; border-radius: 6px 2px 6px 2px; background: var(--paint); transform: rotate(-4deg); transition: background-color .6s; }
.kicker--light { color: #D9D0C4; }
.title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); margin-top: 1rem; }
.title em { font-style: italic; position: relative; z-index: 0; }
.title em::after { content: ""; position: absolute; left: -.08em; right: -.1em; bottom: .02em; height: .32em; z-index: -1; background: var(--paint); opacity: .45; border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%; transform: rotate(-1.5deg); transition: background-color .6s; }
.title--light { color: #fff; }
.head { margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.head--center { text-align: center; }
.head--center .title { margin-inline: auto; }
.head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.head-sub { max-width: 38ch; color: var(--ink-2); }

/* 4. Components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.35rem; border-radius: 14px; font-weight: 700; font-size: .95rem; line-height: 1; transition: transform .5s var(--ease-out), background-color .3s, color .3s, box-shadow .4s; position: relative; overflow: hidden; isolation: isolate; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-lg { padding: 1.1rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paint); clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path .6s var(--ease-out), background-color .6s; }
.btn-ink:hover::before { clip-path: polygon(0 0, 110% 0, 100% 100%, 0 100%); }
.btn-line { border: 2px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* 5. Nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(251, 246, 238, .94); border-bottom: 1px solid transparent; transition: border-color .3s; }
@supports (backdrop-filter: blur(10px)) { .nav { background: rgba(251, 246, 238, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.nav.is-scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.logo { position: relative; display: inline-flex; align-items: baseline; gap: .45rem; }
.logo-word { font-family: var(--serif); font-size: 1.7rem; line-height: 1; position: relative; z-index: 1; }
.logo-stroke { position: absolute; left: -4px; bottom: -4px; width: 118px; height: 14px; fill: var(--paint); transition: fill .6s; }
.logo small { font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.nav-links { display: none; }
.nav-links a:not(.btn) { font-weight: 600; font-size: .93rem; color: var(--ink-2); position: relative; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 5px; border-radius: 6px; background: var(--paint); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); opacity: .8; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.nav-toggle { width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--ink); display: grid; place-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .45s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-links.is-open { display: flex; flex-direction: column; gap: 1rem; position: absolute; top: 76px; left: 0; right: 0; padding: 1.4rem var(--gutter) 2rem; background: var(--canvas); border-bottom: 1px solid var(--line); }
.nav-links.is-open a:not(.btn) { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }

/* 6. Hero + visualizer */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); position: relative; }
.hero::before { content: ""; position: absolute; right: -10%; top: -10%; width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; z-index: -1; background: var(--paint); opacity: .14; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transition: background-color .8s; }
.hero-layout { display: grid; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(2.8rem, 7vw, 6rem); margin: 1.2rem 0 1.4rem; line-height: .98; }
.stroke-word { position: relative; display: inline-block; font-style: italic; z-index: 0; white-space: nowrap; }
.stroke-word svg { position: absolute; left: -6%; right: -6%; bottom: -.05em; width: 112%; height: .55em; z-index: -1; fill: var(--paint); transition: fill .6s; }
.stroke-word svg path { transform-origin: left; }
.hero-sub { max-width: 46ch; color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hand-note { display: none; font-family: var(--hand); font-size: 1.6rem; color: var(--ink-2); margin-top: 1.6rem; transform: rotate(-3deg); position: relative; width: max-content; }
.hand-note svg { position: absolute; left: 100%; top: .2em; width: 110px; height: 56px; fill: none; stroke: var(--ink-2); stroke-width: 2.4; stroke-linecap: round; }

.viz { background: var(--paper); border-radius: 30px; padding: .8rem; border: 1px solid var(--line); box-shadow: 0 50px 90px -50px rgba(31, 27, 23, .5); position: relative; }
.viz-room { border-radius: 22px; overflow: hidden; background: var(--canvas-2); }
.viz-room svg { width: 100%; height: auto; }
.wall { fill: var(--wall, #8A9A78); }
.wall-new { fill: var(--paint-new, transparent); }
.cushion { fill: var(--paint); transition: fill .6s; }
.roller-roll { fill: var(--paint-new, var(--paint)); }
.roller { opacity: 0; }
.viz-panel { padding: 1rem .6rem .4rem; display: grid; gap: 1rem; }
.viz-current { display: flex; align-items: center; gap: .8rem; }
.viz-chip { width: 44px; height: 44px; border-radius: 12px; background: var(--paint); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); flex: none; transition: background-color .6s; }
.viz-current b { display: block; font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; }
.viz-current span { font-size: .82rem; color: var(--mute); font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: .45rem; }
.sw { aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .35s var(--ease-out), box-shadow .3s; position: relative; }
.sw:hover { transform: translateY(-3px) scale(1.06); }
.sw.is-active { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); transform: scale(1.04); }

/* Ribbon */
.ribbon { background: var(--ink); color: var(--canvas); padding: 1.1rem 0; overflow: hidden; transform: rotate(-1.2deg); margin: 0 -2% ; width: 104%; }
.ribbon-track { display: flex; gap: 2rem; width: max-content; align-items: center; animation: marquee 38s linear infinite; }
.ribbon span { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem); white-space: nowrap; }
.ribbon i { font-style: normal; color: var(--paint); font-size: 1.4rem; transition: color .6s; }

/* Services: paint chips */
.services { padding: clamp(5rem, 10vw, 8rem) 0; }
.chips { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.chip { background: var(--paper); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 40px -32px rgba(31, 27, 23, .5); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.chip:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 40px 70px -40px rgba(31, 27, 23, .6); }
.chip-swatch { position: relative; aspect-ratio: 4 / 3; background: var(--c); overflow: hidden; }
.chip-swatch::after { content: ""; position: absolute; inset: 0; background: var(--c); mix-blend-mode: multiply; opacity: .35; transition: opacity .6s; }
.chip:hover .chip-swatch::after { opacity: 0; }
.chip-swatch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.chip:hover .chip-swatch img { transform: scale(1.06); }
.chip-info { padding: 1.2rem 1.3rem 1.4rem; border-top: 8px solid var(--c); }
.chip-info span { font-weight: 800; font-size: .74rem; letter-spacing: .14em; color: var(--mute); }
.chip-info h3 { font-size: 1.7rem; margin: .3rem 0 .4rem; }
.chip-info p { color: var(--ink-2); font-size: .93rem; }

/* Palettes */
.palettes { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--canvas-2); border-radius: 44px; margin-inline: clamp(.5rem, 2vw, 1.5rem); }
.pal-grid { display: grid; gap: 1rem; }
.pal { background: var(--paper); border-radius: 24px; padding: 1rem 1rem 1.4rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .6rem; }
.pal-strip { display: flex; height: 120px; border-radius: 16px; overflow: hidden; margin-bottom: .6rem; }
.pal-strip i { flex: 1; background: var(--c); transition: flex .6s var(--ease-out); }
.pal:hover .pal-strip i:first-child { flex: 2.4; }
.pal h3 { font-size: 1.55rem; padding-inline: .3rem; }
.pal p { color: var(--ink-2); font-size: .92rem; padding-inline: .3rem; }
.pal-try { margin-top: auto; align-self: flex-start; padding: .55rem .3rem 0; font-weight: 800; font-size: .9rem; border-bottom: 3px solid var(--paint); transition: border-color .6s, gap .3s; }
.pal-try:hover { color: var(--ink-2); }

/* Gallery masonry */
.gallery-sec { padding: clamp(5rem, 10vw, 8rem) 0; }
.masonry { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.m-item { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: var(--canvas-2); aspect-ratio: 4 / 3; }
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.m-item:hover img { transform: scale(1.05); }
.m-item figcaption { position: absolute; left: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .85rem .5rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: .84rem; font-weight: 700; }
.m-item figcaption i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* Estimate */
.estimate { padding: 0 0 clamp(5rem, 10vw, 8rem); }
.est-layout { display: grid; gap: 3rem; align-items: center; }
.est-text { color: var(--ink-2); margin-top: 1rem; max-width: 44ch; }
.est-img { margin: 2rem 0 0; border-radius: 26px; overflow: hidden; aspect-ratio: 3 / 2; display: none; }
.est-img img { width: 100%; height: 100%; object-fit: cover; }
.est-card { background: var(--paper); border-radius: 30px; padding: clamp(1.4rem, 4vw, 2.4rem); border: 1px solid var(--line); box-shadow: 0 50px 90px -60px rgba(31, 27, 23, .6); display: grid; gap: 1.4rem; }
.est-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: .3rem; border-radius: 16px; background: var(--canvas-2); }
.est-tabs label, .est-seg label { position: relative; }
.est-tabs input, .est-seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.est-tabs span { display: block; text-align: center; padding: .75rem; border-radius: 12px; font-weight: 800; transition: all .3s; }
.est-tabs input:checked + span { background: var(--ink); color: #fff; }
.est-tabs input:focus-visible + span, .est-seg input:focus-visible + span { outline: 3px solid var(--paint); outline-offset: 2px; }
.est-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.est-row[hidden] { display: none; }
.est-label { font-weight: 800; font-size: .95rem; padding: 0; }
.stepper { display: inline-flex; align-items: center; gap: .3rem; border: 2px solid var(--line); border-radius: 14px; padding: .25rem; }
.stepper button { width: 42px; height: 42px; border-radius: 10px; font-size: 1.4rem; font-weight: 700; transition: background-color .3s; }
.stepper button:hover { background: var(--canvas-2); }
.stepper output { min-width: 2.4rem; text-align: center; font-family: var(--serif); font-size: 1.6rem; }
.est-seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.est-seg span { display: block; padding: .6rem .9rem; border-radius: 12px; border: 2px solid var(--line); font-weight: 700; font-size: .85rem; transition: all .3s; }
.est-seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.est-extras { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.est-extras legend { margin-bottom: .7rem; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .93rem; cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: all .25s; }
.check input:checked + span { background: var(--paint); border-color: var(--paint); }
.check input:checked + span::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.est-result { padding: 1.2rem 1.3rem; border-radius: 20px; background: var(--canvas-2); position: relative; overflow: hidden; }
.est-result::before { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; background: var(--paint); opacity: .35; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transition: background-color .6s; }
.est-result span { font-weight: 800; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); position: relative; }
.est-result p { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; position: relative; }
.est-result small { color: var(--mute); font-size: .78rem; position: relative; }

/* Process */
.process { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--paper); border-block: 1px solid var(--line); }
.steps { display: grid; gap: 1.2rem; counter-reset: s; }
.steps li { position: relative; padding: 1.6rem 1.4rem; border-radius: 22px; background: var(--canvas); }
.step-n { display: inline-grid; place-items: center; width: 64px; height: 64px; font-family: var(--serif); font-size: 2.2rem; color: var(--ink); position: relative; z-index: 0; margin-bottom: .8rem; }
.step-n::before { content: ""; position: absolute; inset: 6px; z-index: -1; background: var(--paint); opacity: .55; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transition: background-color .6s; }
.steps h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.steps p { color: var(--ink-2); font-size: .95rem; }

/* Notes (reviews) */
.notes-sec { padding: clamp(5rem, 10vw, 8rem) 0; }
.notes { display: grid; gap: 1.6rem; max-width: 1100px; margin-inline: auto; }
.note { margin: 0; position: relative; padding: 2.2rem 1.8rem 1.6rem; background: var(--c); transform: rotate(var(--r)); box-shadow: 0 20px 30px -20px rgba(31, 27, 23, .45); border-radius: 4px 4px 18px 4px; transition: transform .6s var(--ease-out); }
.note:hover { transform: rotate(0deg) translateY(-4px); }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: rgba(255, 255, 255, .6); transform: rotate(-3deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .06); }
.note p { font-family: var(--hand); font-size: 1.7rem; line-height: 1.2; }
.note footer { margin-top: 1rem; font-weight: 700; font-size: .88rem; color: var(--ink-2); }

/* FAQ */
.faq-sec { padding: 0 0 clamp(5rem, 10vw, 8rem); }
.faq-layout { display: grid; gap: 2.5rem; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 0; font-family: var(--serif); font-size: 1.35rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--paint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .4s var(--ease-out), background-color .6s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--ink-2); max-width: 56ch; }

/* Contact */
.contact { background: var(--ink); color: #fff; padding: clamp(5rem, 10vw, 8rem) 0; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: -15%; bottom: -30%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; background: var(--paint); opacity: .25; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transition: background-color .8s; }
.contact-layout { position: relative; display: grid; gap: 3rem; align-items: center; }
.contact .title em::after { opacity: .7; }
.picked { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2rem; padding: .7rem 1.1rem .7rem .7rem; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.picked small { display: block; color: #CFC6BA; font-size: .75rem; font-weight: 700; }
.picked b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.c-list { margin-top: 2rem; display: grid; gap: .9rem; }
.c-list li { display: grid; gap: .1rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.c-list span { font-size: .8rem; color: #CFC6BA; font-weight: 700; }
.form { background: var(--canvas); color: var(--ink); border-radius: 28px; padding: clamp(1.4rem, 4vw, 2.2rem); display: grid; gap: 1rem; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); }
.f { display: grid; gap: .4rem; }
.f > span { font-weight: 800; font-size: .88rem; }
.f input, .f select { width: 100%; padding: .9rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); appearance: none; transition: border-color .3s, box-shadow .3s; }
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1B17' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.6rem; }
.f input:focus, .f select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(31, 27, 23, .1); }
.f.is-invalid input, .f.is-invalid select { border-color: #C0392B; }
.f-status { min-height: 1.4em; font-weight: 700; font-size: .92rem; color: #A93226; }
.f-status.is-ok { color: #2E7D32; }

/* Footer */
.footer { padding: 3rem 0 6rem; }
.footer-inner { display: grid; gap: 1.4rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.footer-row a, .demo-note a { text-decoration: underline; text-underline-offset: 3px; }
.demo-note { font-size: .8rem; color: var(--mute); max-width: 72ch; }
.demo-pill { position: fixed; left: 1rem; bottom: 1rem; z-index: 150; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .75rem; box-shadow: 0 12px 30px -12px rgba(31, 27, 23, .6); }
.demo-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.demo-pill:hover { background: #3A332C; }

/* 7. Effects (.fx only) */
.fx [data-in] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.fx [data-in].is-in { opacity: 1; transform: none; }
.fx .note[data-in] { transform: translateY(26px) rotate(var(--r)); }
.fx .note[data-in].is-in { transform: rotate(var(--r)); }
.fx .note[data-in].is-in:hover { transform: rotate(0deg) translateY(-4px); }
.fx .chips [data-in]:nth-child(3n+2), .fx .pal-grid [data-in]:nth-child(2), .fx .notes [data-in]:nth-child(2), .fx .steps [data-in]:nth-child(2) { transition-delay: .1s; }
.fx .chips [data-in]:nth-child(3n), .fx .pal-grid [data-in]:nth-child(3), .fx .notes [data-in]:nth-child(3), .fx .steps [data-in]:nth-child(3) { transition-delay: .2s; }
.fx .pal-grid [data-in]:nth-child(4), .fx .steps [data-in]:nth-child(4) { transition-delay: .3s; }
.fx .stroke-word svg path { transform: scaleX(0); transition: transform 1.2s var(--ease-out) .6s; }
.fx .stroke-word.is-drawn svg path { transform: none; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* 8. Responsive */
@media (min-width: 540px) {
  .chips { grid-template-columns: repeat(2, 1fr); }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .m-tall { grid-row: span 2; aspect-ratio: auto; }
  .m-wide { grid-column: span 2; aspect-ratio: 16 / 7; }
  .m-item:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 6; }
  .pal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .notes { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .est-extras { grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.2rem; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; align-items: center; gap: 1.8rem; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-cta-mobile { display: none; }
  .nav-links.is-open { all: unset; display: flex; align-items: center; gap: 1.8rem; }
  .hero-layout { grid-template-columns: .95fr 1.05fr; gap: 4rem; }
  .hand-note { display: block; }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .pal-grid { grid-template-columns: repeat(4, 1fr); }
  .masonry { grid-template-columns: repeat(3, 1fr); }
  .m-wide { grid-column: span 2; }
  .est-layout { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .est-img { display: block; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

/* 9. Reduced motion — intrusive only */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation-duration: 90s; }
}
