/* Home page paint theme (spec 2026-11-05). Loaded by index.html only. */

/* ---------- Canvas: white hero (the old hero was navy) ---------- */
.paint-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero { background: var(--canvas); color: var(--ink); }
.hero .lead { color: var(--ink-2); }
.hero h1 span { color: var(--ink); }
.hero-note { color: var(--ink-2); }
.hero .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); }

/* "idea." gets a coral brush stroke painted in behind it */
.paint-word { position: relative; z-index: 0; font-style: normal; white-space: nowrap; }
.paint-word::before { content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; top: .3em; bottom: .02em;
  background: var(--coral); opacity: .9; border-radius: .35em .6em .4em .55em; transform: rotate(-1.5deg) scaleX(0); transform-origin: left;
  animation: paint-in .9s cubic-bezier(.6,.1,.2,1) .3s forwards; }
@keyframes paint-in { to { transform: rotate(-1.5deg) scaleX(1); } }

/* ---------- Hero: sketch to paint ---------- */
.hero-art { display: block; min-height: 0; }
.hero-frame { position: relative; margin: 0; background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(60,40,20,.35), 0 0 0 1px #ECE7DF; overflow: hidden; }
.hf-bar { display: flex; gap: 6px; padding: 10px 14px; background: #F3F0EB; }
.hf-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e0d9cf; }
.hf-canvas { position: relative; aspect-ratio: 800 / 560; background: #FBFAF7; overflow: hidden; }
.hf-sketch, .hf-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hf-img { object-fit: cover; object-position: top left; clip-path: inset(0 0 0 0); }
.hero-frame[data-state="sketch"] .hf-img { clip-path: inset(0 100% 0 0); }
.hero-frame[data-state="painting"] .hf-img { clip-path: inset(0 0 0 0); transition: clip-path 1.8s cubic-bezier(.6,.1,.2,1); }
.hf-brush { position: absolute; top: 40%; width: 120px; left: -130px; opacity: 0; pointer-events: none; }
.hero-frame[data-state="painting"] .hf-brush { opacity: 1; left: 100%; transition: left 1.8s cubic-bezier(.6,.1,.2,1); }
.hero-caption { display: grid; gap: 4px; padding: 14px 16px 16px; font: 500 15px/1.45 "Inter", sans-serif; color: var(--ink-2); }
.hc-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hc-name { font-weight: 600; color: var(--ink); }
.hc-note { font-size: 15px; color: var(--ink-2); }
.hero-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.hc-pause { min-height: 32px; padding: 4px 14px; border: 1.5px solid var(--ink-2); border-radius: 999px; background: #fff; color: var(--ink); font: 600 14px "Inter", sans-serif; cursor: pointer; }
.hc-pause:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.hc-dots { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.hc-dots span { width: 18px; height: 24px; display: grid; place-items: center; }
.hc-dots span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #ccc); opacity: .3; transition: opacity .3s, transform .3s; }
.hc-dots span[aria-current="true"]::before { opacity: 1; transform: scale(1.35); }
@media (prefers-reduced-motion: reduce) {
  .paint-word::before { animation: none; transform: rotate(-1.5deg) scaleX(1); }
  .hero-frame .hf-img { clip-path: none !important; transition: none !important; }
  .hf-brush { display: none; }
}

/* ---------- What we build: paint-chip fan ---------- */
.chip-fan .card { overflow: hidden; padding-top: 0; transition: transform .8s cubic-bezier(.3,1.3,.5,1), box-shadow .3s; }
.chip-swatch { height: 120px; margin: 0 -28px 20px; display: flex; align-items: flex-end; padding: 10px 28px; }
.chip-swatch span { font: 600 11px "Inter", sans-serif; letter-spacing: .12em; color: #fff; }
.chip-coral { background: var(--coral); } .chip-coral span { color: var(--ink); } .chip-cobalt { background: var(--cobalt); } .chip-violet { background: var(--violet); }
@media (min-width: 900px) {
  .js .chip-fan:not([data-fan="open"]) .card:nth-child(1) { transform: translateX(55%) rotate(-7deg); }
  .js .chip-fan:not([data-fan="open"]) .card:nth-child(3) { transform: translateX(-55%) rotate(7deg); }
  .chip-fan .card:nth-child(2) { position: relative; z-index: 1; }
  .chip-fan .card:hover, .chip-fan .card:focus-within { transform: translateY(-10px); box-shadow: 0 24px 40px -20px rgba(50,35,20,.4); z-index: 2; position: relative; }
}
@media (prefers-reduced-motion: reduce) { .chip-fan .card { transform: none !important; transition: none; } }

/* ---------- Our work: canvases pinned to the wall ---------- */
.work-kicker, .section-head .work-kicker { font-size: 28px; line-height: 1.1; color: var(--ink-2); margin: -4px 0 10px; transform: rotate(-2deg); transform-origin: left; }
#work .work-grid:not(.two) .work { position: relative; border: 0; border-radius: 4px; padding: 12px 12px 18px; box-shadow: 0 18px 30px -16px rgba(50,35,20,.45); }
#work .work-grid:not(.two) .work:nth-child(odd) { transform: rotate(-1.2deg); }
#work .work-grid:not(.two) .work:nth-child(even) { transform: rotate(1deg); }
#work .work-grid:not(.two) .work:hover, #work .work-grid:not(.two) .work:focus-within { transform: rotate(0) translateY(-4px); }
#work .work img { border-radius: 2px; }
.tape { position: absolute; top: -11px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(243,228,190,.88); transform: rotate(-3deg); z-index: 1; }
.site-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50% 44% 52% 46%; margin-right: 8px; vertical-align: 0; }
.dot-suba { background: #E8892C; } .dot-tni { background: #1F3B5C; } .dot-tniuk { background: #2A8FA0; }
.dot-amber { background: #5B00C8; } .dot-core { background: #5B3F8C; } .dot-sao { background: #2E9E4F; }
.dot-suba, .dot-tni, .dot-tniuk, .dot-amber, .dot-core, .dot-sao { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.08); }
/* Hover: a drip of the site's colour runs down from the canvas */
#work .work-grid:not(.two) .work::after { content: ""; position: absolute; left: 30%; width: 14px; top: 100%; height: 0; background: var(--coral); border-radius: 0 0 8px 8px; transition: height .5s cubic-bezier(.5,0,.3,1); }
#work .work-grid:not(.two) .work:nth-child(2)::after { background: var(--cobalt); left: 62%; }
#work .work-grid:not(.two) .work:nth-child(3)::after { background: var(--violet); left: 44%; }
#work .work-grid:not(.two) .work:nth-child(4)::after { background: var(--sap); left: 70%; }
#work .work-grid:not(.two) .work:nth-child(5)::after { background: var(--cobalt); left: 24%; }
#work .work-grid:not(.two) .work:hover::after { height: 22px; }
.gallery-link { margin-top: 22px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { #work .work { transform: none !important; } #work .work::after { display: none; } }

/* ---------- Prices: paint tins (decoration only; every detail stays visible) ---------- */
.tin { width: 84px; height: 77px; display: block; margin: 0 0 12px; overflow: visible; }
.tin-paint { fill: var(--tin, var(--coral)); }
.tin-coral { --tin: var(--coral); } .tin-violet { --tin: var(--violet); } .tin-cobalt { --tin: var(--cobalt); }
.tin-sap { --tin: var(--sap); } .tin-ink { --tin: var(--ink); } .tin-ochre { --tin: var(--ochre); }
.tin-lid { transition: transform .45s cubic-bezier(.3,1.6,.5,1); transform-box: view-box; transform-origin: 106px 14px; }
.plan:hover .tin-lid, .plan:focus-within .tin-lid { transform: translate(10px, -14px) rotate(22deg); }
@media (prefers-reduced-motion: reduce) { .tin-lid { transition: none; } .plan:hover .tin-lid, .plan:focus-within .tin-lid { transform: none; } }

/* ---------- How it works: Primer, Sketch, Paint, Varnish, Touch-ups ---------- */
@media (min-width: 1000px) { .paint-steps { grid-template-columns: repeat(5, 1fr); gap: 16px; } .paint-steps li { padding: 78px 20px 22px; } .paint-steps li::before { top: 26px; } }
.paint-steps li { overflow: hidden; }
.paint-steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.6,.1,.2,1) .2s; }
.paint-steps li.in::after, html:not(.js) .paint-steps li::after { transform: scaleX(1); }
.step-primer::after { background: #D8D4CD; }
.step-sketch::after { background: repeating-linear-gradient(90deg, #8D8A85 0 4px, transparent 4px 10px); height: 3px !important; top: 5px !important; }
.step-paint::after { background: linear-gradient(90deg, var(--coral), var(--ochre), var(--cobalt)); }
.step-varnish::after { background: linear-gradient(180deg, rgba(255,255,255,.6) 0 35%, var(--cobalt) 35%); }
.step-touch::after { background: var(--cobalt); right: auto; width: 34px; border-radius: 0 0 10px 0; }
.paint-steps .step-primer::before { background: #D8D4CD; } .paint-steps .step-sketch::before { background: #fff; box-shadow: inset 0 0 0 2px #8D8A85; }
.paint-steps .step-paint::before { background: #FF6B4A; } .paint-steps .step-varnish::before, .paint-steps .step-touch::before { background: var(--cobalt); color: #fff; }
@media (prefers-reduced-motion: reduce) { .paint-steps li::after { transform: scaleX(1); transition: none; } }

/* ---------- One brush stroke down the page (drawn by scroll) ---------- */
main { position: relative; }
.brush-line { position: absolute; left: 0; top: 100vh; width: 100%; height: calc(100% - 100vh - 300px); pointer-events: none; z-index: 0; opacity: .15; }
.brush-line path { stroke-width: 26px; stroke-dasharray: 1; stroke-dashoffset: 1; }
main > section { position: relative; z-index: 1; }
main > .section:not(.alt) { background: transparent; }
main > .section.alt { background: rgba(244, 247, 252, .82); }
@media (max-width: 699px) { .brush-line { display: none; } }
@media (prefers-reduced-motion: reduce) { .brush-line path { stroke-dashoffset: 0; } }

/* Improvement pass: tin size follows the size of the build */
.tin-coral .tin { width: 84px; height: 77px; } .tin-violet .tin { width: 108px; height: 99px; }
.tin-cobalt .tin { width: 76px; height: 70px; } .tin-sap .tin { width: 92px; height: 84px; } .tin-ink .tin { width: 108px; height: 99px; }
.tin-ochre .tin { width: 66px; height: 60px; }
@media (min-width: 701px) { #prices .plan h4 { min-height: 0; } }
/* Contact heading gets a brush stroke under it */
#contact h2 { position: relative; display: inline-block; z-index: 0; }
#contact h2::after { content: ""; position: absolute; z-index: -1; left: -.1em; right: 30%; bottom: .02em; height: .32em; background: var(--coral); opacity: .35; border-radius: .2em .5em .3em .4em; transform: rotate(-1deg) scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.6,.1,.2,1) .2s; }
#contact .reveal.in h2::after, html:not(.js) #contact h2::after { transform: rotate(-1deg) scaleX(1); }
@media (prefers-reduced-motion: reduce) { #contact h2::after { transform: rotate(-1deg) scaleX(1); transition: none; } }
/* Tins stand on a shared shelf so the card titles still line up */
.tin-coral .tin { margin-top: 22px; } .tin-cobalt .tin { margin-top: 29px; } .tin-sap .tin { margin-top: 15px; } .tin-ochre .tin { margin-top: 39px; }

/* ---------- Mix your colour (phase 2): nothing saved, resets on reload ---------- */
.mix-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.mix-board { background: #FBF8F3; border: 1px solid #E8E0D3; border-radius: 48% 52% 46% 54% / 40% 44% 56% 60%; padding: 40px 36px 32px; box-shadow: 0 30px 50px -30px rgba(60,40,20,.35); }
.mix-palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mix-paint { display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 6px; border-radius: 14px; cursor: grab; font: 600 14px "Inter", sans-serif; color: var(--ink); min-width: 64px; touch-action: manipulation; }
.mix-paint svg { width: 52px; height: 52px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.mix-coral svg path { fill: #FF6B4A; } .mix-cobalt svg path { fill: #2F5BEA; } .mix-ochre svg path { fill: #F2B33D; }
.mix-sap svg path { fill: #2FA36B; } .mix-violet svg path { fill: #8A4FD8; }
.mix-paint[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.mix-paint[aria-pressed="true"] svg, .mix-paint:hover svg { transform: scale(1.12) rotate(-6deg); }
.mix-paint.drop-target svg { transform: scale(1.2); }
.mix-paint:focus-visible, .mix-reset:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.mix-out { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 16px; margin-top: 24px; }
.mix-swatch { grid-row: span 2; width: 64px; height: 64px; border-radius: 50% 44% 52% 46%; background: var(--mix, #E8E0D3); transition: background .5s; }
.mix-swatch.swirl { animation: swirl .7s cubic-bezier(.3,1.4,.5,1); }
@keyframes swirl { from { transform: rotate(-120deg) scale(.6); } }
.mix-result { margin: 0; font-weight: 600; color: var(--ink); }
.mix-reset { justify-self: start; min-height: 32px; padding: 4px 14px; border: 1.5px solid var(--ink-2); border-radius: 999px; background: #fff; color: var(--ink); font: 600 14px "Inter", sans-serif; cursor: pointer; }
html.mixed :focus-visible { outline-color: var(--ink); }
@media (max-width: 900px) { .mix-grid { grid-template-columns: 1fr; } .mix-board { border-radius: 28px; padding: 28px 16px; } }
@media (prefers-reduced-motion: reduce) { .mix-swatch, .mix-paint svg { transition: none; } .mix-swatch.swirl { animation: none; } }
html.mixed .btn.accent, html.mixed .eyebrow, html.mixed .nav .btn.accent { color: var(--on-accent, var(--navy)); }
html.mixed .tag, html.mixed .brand.light b { color: var(--on-accent, var(--navy)) !important; }

/* "Good to know" key facts under the website prices (legal wording 5 Nov 2026; same size and colour as other small print) */
.key-facts-title { font-size: 15px; margin: 26px 0 10px; color: var(--ink); }
.key-facts { display: grid; grid-template-columns: 140px 1fr; gap: 0; margin: 0 0 8px; border-top: 1px solid var(--border); max-width: 860px; }
.key-facts dt, .key-facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); }
.key-facts dt { font-weight: 600; color: var(--ink); padding-right: 16px; }
@media (max-width: 600px) { .key-facts { grid-template-columns: 1fr; } .key-facts dt { border-bottom: 0; padding-bottom: 0; } .key-facts dd { padding-top: 2px; } }
