/*
Theme Name: Three Monkey IT
Theme URI: https://threemonkey.uk
Author: Three Monkey IT
Author URI: https://threemonkey.uk
Description: Warm, approachable classic theme for Three Monkey IT — domestic and small-business IT support in Dorset. Palette and tone per WPAdmin/3Monkey/COMPANY.md.
Version: 0.8.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: three-monkey-it
Tags: business, one-column, two-columns, custom-menu, custom-logo, featured-images, accessibility-ready
*/

/* ---------------------------------------------------------------
   Self-hosted webfonts (GDPR-friendly — no external requests).
   Fraunces  — warm old-style serif, for headings. Variable (opsz+wght).
   Mulish    — clean humanist sans, for body & UI. Variable (wght).
   Both SIL Open Font License 1.1 — see assets/fonts/LICENSE.md.
   Latin subset only. One variable file per family serves all weights.
   --------------------------------------------------------------- */
@font-face{
  font-family:"Fraunces";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url("assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Mulish";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url("assets/fonts/mulish-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------------------------------------------------------------
   Palette — must match WPAdmin/3Monkey/COMPANY.md exactly.
   Contrast verified 2026-07-24:
     --3mk-ink     on bg/sand/cream : 11.3 / 8.1 / 13.1  AA all sizes
     --3mk-primary on bg/sand/cream :  7.5 / 5.4 /  8.7  AA all sizes
     --3mk-mid     on bg      /cream:  3.8 /      /  4.5  LARGE TEXT ONLY
     --3mk-accent  : fails everywhere — DECORATIVE ONLY, never text
     #fff on --3mk-primary 9.3, on --3mk-ink 13.9  AA all sizes

   Splash accents, verified 2026-07-26 (ratios vs cream #FDF8EC / sand #F6E6C3):
     coral-text   #A9370F  6.11 / 5.25   AA small text
     teal-text    #0C7A73  4.90 / 4.21   AA small on cream; large-only on sand
     magenta-text #A81C50  6.72 / 5.78   AA small text
     Icon fills (graphics, need >=3): ink on coral 4.01, ink on teal 4.37,
       white on magenta 4.66, ink on gold 6.97 — all pass.
     On the dark ink band (#3B281E): coral-lite 4.89, teal-lite 6.39,
       gold-lite 8.67 — all pass AA small text.
     The four raw splash colours are FILLS/GRAPHICS ONLY — never small text
     on a light ground.

   Vivid section splashes, measured 2026-07-26 for text sitting ON a splash
   (worst case — most splashes bleed off the edges, clear of the text column).
   Body text --3mk-ink over a splash blended onto cream/sand:
     coral .62/.56  6.17 / 5.54     teal .62/.56  6.66 / 5.91
     magenta .50/.44 6.19 / 5.34    gold .62/.56  8.88 / 8.21
     → all pass AA for small text.
   Headings --3mk-primary over the same: 3.4–5.9. Headings are large text
   (h2 >=25.6px; h3 >=19px at weight 600), so the 3:1 threshold applies and
   all pass — but magenta is the tightest, which is why it is always run at a
   lower opacity than the other three.
   --------------------------------------------------------------- */
:root{
  --3mk-ink:#3B281E;
  --3mk-primary:#673D22;
  --3mk-mid:#996942;
  --3mk-accent:#B89670;
  --3mk-sand:#DEC196;
  --3mk-bg:#F6E6C3;
  --3mk-cream:#FDF8EC;
  --3mk-white:#fff;
  --3mk-focus:#1B5E9C;

  /* Splash accents — sampled from ThreeMonkey2.jpg (the paint-splash artwork).
     Used as SPOT ACCENTS ONLY. The warm palette above remains the base; these
     never become backgrounds for body copy and never dominate a section.
     Added 2026-07-26 at Steve's request ("bring something to the site").
     Contrast verified — see the table below the palette. */
  --3mk-splash-coral:#F0552C;   /* fills/graphics only */
  --3mk-splash-teal:#12A199;    /* fills/graphics only */
  --3mk-splash-magenta:#D6316B; /* fills/graphics only */
  --3mk-splash-gold:#F2A93B;    /* fills/graphics only */
  /* Text-safe deepened variants, for small text on cream/sand */
  --3mk-splash-coral-text:#A9370F;
  --3mk-splash-teal-text:#0C7A73;
  --3mk-splash-magenta-text:#A81C50;
  /* Brighter variants, for use on the dark ink band only */
  --3mk-splash-coral-lite:#FF6A3C;
  --3mk-splash-teal-lite:#2AC3BD;
  --3mk-splash-gold-lite:#FFC24D;
  /* Near-black ground of the ThreeMonkey2 artwork — used only behind that art. */
  --3mk-artdark:#191A1D;
  --font-head:"Fraunces","Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  --font-body:"Mulish",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --wrap:1120px;
  --gap:clamp(1rem,3vw,2rem);
  --radius:14px;
  --shadow:0 1px 2px rgba(59,40,30,.06),0 8px 24px rgba(59,40,30,.07);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}
 *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}}
body{margin:0;background:var(--3mk-cream);color:var(--3mk-ink);
 font-family:var(--font-body);font-size:clamp(1rem,.97rem + .18vw,1.125rem);line-height:1.7;
 -webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--3mk-primary);text-underline-offset:.18em;text-decoration-thickness:.08em;
 transition:color .15s ease}
a:hover{color:var(--3mk-splash-coral-text)}
:focus-visible{outline:3px solid var(--3mk-focus);outline-offset:2px;border-radius:4px}

h1,h2,h3,h4{font-family:var(--font-head);color:var(--3mk-primary);line-height:1.18;
 margin:0 0 .5em;font-weight:600;letter-spacing:-.01em;font-optical-sizing:auto;text-wrap:balance}
h1{font-size:clamp(2rem,1.5rem + 2.4vw,3.35rem)}
h2{font-size:clamp(1.6rem,1.3rem + 1.5vw,2.4rem)}
h3{font-size:clamp(1.18rem,1.1rem + .5vw,1.45rem)}
p{margin:0 0 1.1em}
.lede{font-size:clamp(1.1rem,1rem + .6vw,1.35rem);color:var(--3mk-ink);max-width:60ch}

.wrap{width:min(var(--wrap),100% - 2.5rem);margin-inline:auto}
.section{padding:clamp(3rem,7vw,6rem) 0}
.section--sand{background:var(--3mk-bg)}
/* The dark band is the one place the paint-splash artwork's own register —
   vivid colour on near-black — is allowed to come through properly. */
.section--ink{background:var(--3mk-ink);color:var(--3mk-cream);position:relative;overflow:hidden}
.section--ink h2,.section--ink h3{color:var(--3mk-bg)}
.section--ink a{color:var(--3mk-sand)}
/* Vivid paint splashes on near-black — the closest the site gets to the
   register of the original artwork. Run at high opacity because the dark
   ground is what makes these colours sing; kept to the far corners so the
   centred copy never sits on top of one. */
.section--ink::before,.section--ink::after{content:"";position:absolute;
 pointer-events:none;background:currentColor;aspect-ratio:1;z-index:0}
.section--ink::before{width:min(30rem,42vw);top:-16%;left:-9%;
 color:var(--3mk-splash-coral);opacity:.9;
 -webkit-mask:url("assets/images/splash-2.svg") center/contain no-repeat;
 mask:url("assets/images/splash-2.svg") center/contain no-repeat}
.section--ink::after{width:min(26rem,38vw);bottom:-18%;right:-7%;
 color:var(--3mk-splash-teal);opacity:.85;
 -webkit-mask:url("assets/images/splash-4.svg") center/contain no-repeat;
 mask:url("assets/images/splash-4.svg") center/contain no-repeat}
.section--ink>*{position:relative;z-index:1}
/* Thin paint rule across the very top of the band. */
.section--ink{border-top:4px solid transparent;
 border-image:linear-gradient(90deg,var(--3mk-splash-coral),var(--3mk-splash-gold) 34%,
 var(--3mk-splash-teal) 67%,var(--3mk-splash-magenta)) 1}
.eyebrow{font-family:var(--font-body);font-size:.82rem;font-weight:700;letter-spacing:.14em;
 text-transform:uppercase;color:var(--3mk-splash-coral-text);margin:0 0 .6rem;
 display:flex;align-items:center;gap:.55rem}
/* Short paint dash before each eyebrow — ties the sections together. */
.eyebrow::before{content:"";width:1.6rem;height:3px;border-radius:2px;flex:0 0 auto;
 background:var(--3mk-splash-coral)}
.section--ink .eyebrow{color:var(--3mk-splash-gold-lite)}
.section--ink .eyebrow::before{background:var(--3mk-splash-gold-lite)}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--3mk-ink);color:#fff;
 padding:.7rem 1.1rem;z-index:200}
.skip-link:focus{left:.5rem;top:.5rem}
.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}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-body);
 font-weight:600;font-size:1rem;padding:.85rem 1.5rem;border-radius:999px;border:2px solid transparent;
 text-decoration:none;cursor:pointer;transition:transform .15s ease,background-color .15s ease,color .15s ease}
.btn:hover{transform:translateY(-2px)}
.btn--primary{background:var(--3mk-primary);color:#fff}
.btn--primary:hover{background:var(--3mk-ink);color:#fff}
.btn--ghost{background:transparent;color:var(--3mk-primary);border-color:var(--3mk-primary)}
.btn--ghost:hover{background:var(--3mk-primary);color:#fff}
.section--ink .btn--ghost{color:var(--3mk-bg);border-color:var(--3mk-sand)}
.section--ink .btn--ghost:hover{background:var(--3mk-bg);color:var(--3mk-ink)}
/* Paint button — for the dark band. Gold on ink measures 8.67:1. */
.btn--paint{background:var(--3mk-splash-gold-lite);color:var(--3mk-ink)}
.btn--paint:hover{background:#fff;color:var(--3mk-ink)}

/* Header */
.site-header{position:sticky;top:0;z-index:100;background:rgba(253,248,236,.92);
 backdrop-filter:saturate(140%) blur(8px);border-bottom:1px solid var(--3mk-sand)}
/* A 3px paint stripe under the header — the splash palette present on every
   page without shouting. */
.site-header::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:3px;
 background:linear-gradient(90deg,var(--3mk-splash-coral) 0 25%,var(--3mk-splash-gold) 25% 50%,
 var(--3mk-splash-teal) 50% 75%,var(--3mk-splash-magenta) 75% 100%)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;
 min-height:76px}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--3mk-primary)}
.brand__mark{flex:0 0 auto;display:block}
.brand__mark img{height:clamp(34px,4.6vw,46px);width:auto;display:block}
.brand__text{font-family:var(--font-head);font-size:1.3rem;font-weight:600;line-height:1.1}
.brand__text small{display:block;font-family:var(--font-body);font-size:.66rem;font-weight:600;
 letter-spacing:.16em;text-transform:uppercase;color:var(--3mk-mid)}
.nav-toggle{display:none;background:none;border:2px solid var(--3mk-primary);border-radius:10px;
 padding:.5rem .7rem;color:var(--3mk-primary);font:inherit;font-weight:600;cursor:pointer}
.main-nav ul{display:flex;align-items:center;gap:.35rem;list-style:none;margin:0;padding:0}
.main-nav a{display:block;padding:.55rem .85rem;border-radius:8px;text-decoration:none;
 font-weight:500;color:var(--3mk-ink)}
.main-nav a:hover{background:var(--3mk-bg);color:var(--3mk-primary)}
.main-nav .current-menu-item>a,.main-nav .current_page_item>a{color:var(--3mk-primary);
 box-shadow:inset 0 -3px 0 var(--3mk-splash-coral)}
.header-cta{margin-left:.4rem}
@media (max-width:860px){
 .nav-toggle{display:block}
 .main-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--3mk-cream);
  border-bottom:1px solid var(--3mk-sand);padding:.75rem 1.25rem 1.25rem}
 .main-nav.is-open{display:block}
 .main-nav ul{flex-direction:column;align-items:stretch;gap:.15rem}
 .main-nav a{padding:.8rem .6rem;border-bottom:1px solid rgba(184,150,112,.35)}
 .header-cta{display:none}
}

/* Hero */
.hero{background:var(--3mk-bg);border-bottom:1px solid var(--3mk-sand);overflow:hidden;
 position:relative}
/* Two paint splashes behind the hero — coral top-right, teal bottom-left, so
   the first screen carries the motif from both corners. Kept behind the grid
   and off the headline's line length so the copy stays fully legible. */
.hero::before,.hero::after{content:"";position:absolute;pointer-events:none;z-index:0;
 background:currentColor;aspect-ratio:1}
.hero::before{top:-18%;right:-8%;width:min(38rem,52vw);
 color:var(--3mk-splash-coral);opacity:.6;
 -webkit-mask:url("assets/images/splash-2.svg") center/contain no-repeat;
 mask:url("assets/images/splash-2.svg") center/contain no-repeat}
.hero::after{bottom:-24%;left:-10%;width:min(28rem,38vw);
 color:var(--3mk-splash-teal);opacity:.5;
 -webkit-mask:url("assets/images/splash-4.svg") center/contain no-repeat;
 mask:url("assets/images/splash-4.svg") center/contain no-repeat}
.hero__grid{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(1.5rem,4vw,3.5rem);
 align-items:center;padding:clamp(2.5rem,6vw,5rem) 0;position:relative;z-index:1}
.hero__title{margin-bottom:.35em}
.hero__actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.6rem}
.hero__points{list-style:none;margin:1.8rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem 1.4rem}
.hero__points li{display:flex;align-items:center;gap:.5rem;font-size:.95rem;font-weight:600}
/* Tick marks in paint colours — a small, cheerful hit of the splash palette
   right in the hero without touching the illustration. */
.hero__points li>span[aria-hidden]{display:grid;place-items:center;width:1.4rem;height:1.4rem;
 border-radius:50%;font-size:.8rem;flex:0 0 auto;color:var(--3mk-ink)}
.hero__points li:nth-child(1)>span[aria-hidden]{background:var(--3mk-splash-coral)}
.hero__points li:nth-child(2)>span[aria-hidden]{background:var(--3mk-splash-teal)}
.hero__points li:nth-child(3)>span[aria-hidden]{background:var(--3mk-splash-gold)}
.hero__art{position:relative}
.hero__art img{border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--3mk-accent)}
@media (max-width:900px){.hero__grid{grid-template-columns:1fr}
 .hero__art{order:-1}}

/* Cards */
.grid{display:grid;gap:var(--gap)}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(255px,1fr))}
.grid--4{grid-template-columns:repeat(auto-fit,minmax(225px,1fr))}
.card{background:var(--3mk-cream);border:1px solid var(--3mk-accent);border-radius:var(--radius);
 padding:1.6rem 1.5rem;box-shadow:var(--shadow);transition:transform .18s ease}
.card:hover{transform:translateY(-3px)}
.section--sand .card{background:var(--3mk-cream)}
.card h3{margin-bottom:.4rem}
.card p:last-child{margin-bottom:0}
.card__icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;
 background:var(--3mk-bg);color:var(--3mk-primary);margin-bottom:1rem}
.section--sand .card__icon{background:var(--3mk-sand)}

/* Splash-coloured service icons. Each card gets its own paint colour so the
   services read as four distinct things at a glance. Glyph colour is chosen
   per fill for contrast (see the ratio table above). */
.card__icon--coral{background:var(--3mk-splash-coral);color:var(--3mk-ink)}
.card__icon--teal{background:var(--3mk-splash-teal);color:var(--3mk-ink)}
.card__icon--magenta{background:var(--3mk-splash-magenta);color:#fff}
.card__icon--gold{background:var(--3mk-splash-gold);color:var(--3mk-ink)}
.section--sand .card__icon--coral,.section--sand .card__icon--teal,
.section--sand .card__icon--magenta,.section--sand .card__icon--gold{background:inherit}
.section--sand .card__icon--coral{background:var(--3mk-splash-coral)}
.section--sand .card__icon--teal{background:var(--3mk-splash-teal)}
.section--sand .card__icon--magenta{background:var(--3mk-splash-magenta)}
.section--sand .card__icon--gold{background:var(--3mk-splash-gold)}

/* A hairline of paint along the top of each card, revealed on hover. */
.card{position:relative;overflow:hidden}
.card::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;
 background:linear-gradient(90deg,var(--3mk-splash-coral),var(--3mk-splash-gold) 34%,
 var(--3mk-splash-teal) 67%,var(--3mk-splash-magenta));
 transform:scaleX(0);transform-origin:left;transition:transform .28s ease}
.card:hover::before,.card:focus-within::before{transform:scaleX(1)}

/* Steps */
.steps{counter-reset:step;list-style:none;margin:0;padding:0;display:grid;gap:var(--gap);
 grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.steps li{counter-increment:step;position:relative;padding-top:3.4rem}
.steps li::before{content:counter(step);position:absolute;top:0;left:0;width:2.8rem;height:2.8rem;
 display:grid;place-items:center;border-radius:50%;background:var(--3mk-primary);color:#fff;
 font-family:var(--font-head);font-size:1.3rem;font-weight:600}
/* Numbers cycle through the paint colours — the steps ARE a real sequence,
   so the colour change tracks progress rather than just decorating. */
.steps li:nth-child(1)::before{background:var(--3mk-splash-coral);color:var(--3mk-ink)}
.steps li:nth-child(2)::before{background:var(--3mk-splash-teal);color:var(--3mk-ink)}
.steps li:nth-child(3)::before{background:var(--3mk-splash-magenta);color:#fff}
.steps h3{margin-bottom:.3rem}

/* Split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
@media (max-width:820px){.split{grid-template-columns:1fr}}
.split img{border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--3mk-accent)}

/* FAQ */
.faq{max-width:800px;margin-inline:auto}
.faq details{background:var(--3mk-cream);border:1px solid var(--3mk-accent);border-radius:12px;
 padding:1rem 1.25rem;margin-bottom:.75rem}
.faq summary{cursor:pointer;font-weight:600;font-family:var(--font-head);font-size:1.1rem;
 color:var(--3mk-primary);list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";float:right;font-size:1.4rem;line-height:1;
 color:var(--3mk-splash-coral-text);font-weight:700}
.faq details[open] summary::after{content:"\2212"}
/* Open question gets a paint edge, so the active item is obvious. */
.faq details[open]{border-left:4px solid var(--3mk-splash-coral)}
.faq details>p{margin:.8rem 0 0}

/* Forms */
.form-row{margin-bottom:1.1rem}
.form-row label{display:block;font-weight:600;margin-bottom:.35rem;font-size:.95rem}
.form-row .hint{display:block;font-weight:400;color:var(--3mk-mid);font-size:.85rem;margin-top:.15rem}
input[type=text],input[type=email],input[type=tel],textarea,select{
 width:100%;font:inherit;font-size:1rem;padding:.75rem .9rem;border-radius:10px;
 border:2px solid var(--3mk-accent);background:var(--3mk-white);color:var(--3mk-ink)}
input:focus,textarea:focus,select:focus{border-color:var(--3mk-primary);outline:3px solid var(--3mk-focus);outline-offset:1px}
textarea{min-height:150px;resize:vertical}
.hp-field{position:absolute!important;left:-9999px!important}
.notice{padding:1rem 1.15rem;border-radius:10px;margin-bottom:1.5rem;border-left:5px solid;
 border-radius:0 10px 10px 0}
.notice--ok{background:#EAF3DE;border-color:#3B6D11;color:#173404}
.notice--err{background:#FCEBEB;border-color:#A32D2D;color:#501313}

/* ---------------------------------------------------------------
   Paint splashes — the street-art motif from ThreeMonkey2.jpg, carried across
   the whole site as colour rather than as imagery.

   Every .section gets one splash via ::before. Four shapes, four colours and
   four corners rotate by position, so the effect is rhythmic rather than
   scattered — each section is visibly different from its neighbours, but the
   pattern repeats predictably down the page.

   Rules: splashes are decorative only, sit behind content (z-index 0), are
   masked so the colour comes from CSS, and never sit at an opacity that would
   pull body text below its documented contrast ratio.
   --------------------------------------------------------------- */
.section{position:relative;overflow:hidden}
.section>*{position:relative;z-index:1}
/* Excludes the dark band throughout — it already has its own blur blooms, and
   :not() keeps this rule from fighting them in the cascade. */
.section:not(.section--ink)::before{content:"";position:absolute;z-index:0;
 pointer-events:none;width:clamp(19rem,34vw,34rem);aspect-ratio:1;
 background:currentColor;opacity:.62;
 -webkit-mask:url("assets/images/splash-1.svg") center/contain no-repeat;
 mask:url("assets/images/splash-1.svg") center/contain no-repeat}

/* Second splash per section, opposite corner and a different colour, so the
   page reads as thrown paint rather than a single motif repeating. */
.section:not(.section--ink)::after{content:"";position:absolute;z-index:0;
 pointer-events:none;width:clamp(11rem,19vw,20rem);aspect-ratio:1;
 background:currentColor;opacity:.5;
 -webkit-mask:url("assets/images/splash-3.svg") center/contain no-repeat;
 mask:url("assets/images/splash-3.svg") center/contain no-repeat}
.section:nth-of-type(4n+1):not(.section--ink)::after{color:var(--3mk-splash-magenta);
 bottom:-7%;left:4%;
 -webkit-mask-image:url("assets/images/splash-4.svg");mask-image:url("assets/images/splash-4.svg")}
.section:nth-of-type(4n+2):not(.section--ink)::after{color:var(--3mk-splash-coral);
 top:-6%;right:6%;
 -webkit-mask-image:url("assets/images/splash-3.svg");mask-image:url("assets/images/splash-3.svg")}
.section:nth-of-type(4n+3):not(.section--ink)::after{color:var(--3mk-splash-teal);
 bottom:-8%;right:-4%;
 -webkit-mask-image:url("assets/images/splash-2.svg");mask-image:url("assets/images/splash-2.svg")}
.section:nth-of-type(4n):not(.section--ink)::after{color:var(--3mk-splash-gold);
 top:-8%;left:2%;
 -webkit-mask-image:url("assets/images/splash-1.svg");mask-image:url("assets/images/splash-1.svg")}

/* Shape / colour / corner rotate together, cycling every four sections. */
.section:nth-of-type(4n+1):not(.section--ink)::before{color:var(--3mk-splash-teal);
 top:-5%;right:-6%;
 -webkit-mask-image:url("assets/images/splash-1.svg");
 mask-image:url("assets/images/splash-1.svg")}
.section:nth-of-type(4n+2):not(.section--ink)::before{color:var(--3mk-splash-gold);
 bottom:-8%;left:-7%;
 -webkit-mask-image:url("assets/images/splash-2.svg");
 mask-image:url("assets/images/splash-2.svg")}
.section:nth-of-type(4n+3):not(.section--ink)::before{color:var(--3mk-splash-magenta);
 top:-7%;left:-6%;
 -webkit-mask-image:url("assets/images/splash-3.svg");
 mask-image:url("assets/images/splash-3.svg")}
.section:nth-of-type(4n):not(.section--ink)::before{color:var(--3mk-splash-coral);
 bottom:-6%;right:-5%;
 -webkit-mask-image:url("assets/images/splash-4.svg");
 mask-image:url("assets/images/splash-4.svg")}

/* Sand is a darker ground, so ease the opacity back to protect heading
   contrast — see the ratio table at the top of this file. */
.section--sand:not(.section--ink)::before{opacity:.56}
.section--sand:not(.section--ink)::after{opacity:.44}
/* Magenta is the weakest of the four against the warm grounds, so it is always
   run a little softer than the rest. */
.section:nth-of-type(4n+3):not(.section--ink)::before,
.section:nth-of-type(4n+1):not(.section--ink)::after{opacity:.5}
.section--sand:nth-of-type(4n+3)::before,
.section--sand:nth-of-type(4n+1)::after{opacity:.44}

/* Wet-paint drips. Sits at the top of the dark band so the section above looks
   as though it has run down into it. Masked, so the colour comes from CSS. */
.paint-drip{position:absolute;top:0;left:0;right:0;height:clamp(46px,6vw,74px);
 z-index:2;pointer-events:none;background:var(--3mk-bg);
 -webkit-mask:url("assets/images/paint-drip.svg") top center/100% 100% no-repeat;
 mask:url("assets/images/paint-drip.svg") top center/100% 100% no-repeat}
/* When the band follows a cream section rather than a sand one. */
.paint-drip--cream{background:var(--3mk-cream)}
/* Give the content room to clear the drips. */
.section:has(> .paint-drip){padding-top:clamp(4.5rem,9vw,7.5rem)}
/* Fallback for browsers without :has() — the drip still renders, the heading
   just sits a little closer to it. */
@supports not selector(:has(*)){.section--ink{padding-top:clamp(4.5rem,9vw,7.5rem)}}

/* Email reveal button — the address is assembled by JS on click, so it is
   never in the page source. Sized down a touch: it sits inside body copy and
   in the footer, not as a page-level call to action. */
.btn--email{font-size:.95rem;padding:.6rem 1.1rem;margin-top:.35rem}
.btn--email.is-revealed{font-family:var(--font-body);letter-spacing:0}
/* Footer variant: gold paint on the dark ground (8.67:1). */
.btn--email-footer{background:var(--3mk-splash-gold-lite);color:var(--3mk-ink)}
.btn--email-footer:hover{background:#fff;color:var(--3mk-ink)}
.email-fallback{font-weight:600;color:var(--3mk-primary)}
.site-footer .email-fallback{color:var(--3mk-sand)}

/* Contact detail list */
.contact-list{list-style:none;margin:0;padding:0}
.contact-list li{display:flex;gap:.75rem;align-items:flex-start;margin-bottom:1rem}
.contact-list a{font-weight:600}

/* Content pages */
.page-hero{background:var(--3mk-bg);border-bottom:1px solid var(--3mk-sand);
 padding:clamp(2.5rem,6vw,4.5rem) 0}
.entry-content{max-width:72ch}
.entry-content h2{margin-top:2em}
.entry-content ul,.entry-content ol{padding-left:1.3em}
.entry-content li{margin-bottom:.45em}
.entry-content blockquote{margin:2rem 0;padding:1.1rem 1.5rem;background:var(--3mk-bg);
 border-left:5px solid var(--3mk-mid);border-radius:0 10px 10px 0;font-style:italic}

/* Footer */
.site-footer{background:var(--3mk-ink);color:var(--3mk-bg);padding:clamp(2.5rem,5vw,4rem) 0 1.5rem;
 border-top:4px solid transparent;
 border-image:linear-gradient(90deg,var(--3mk-splash-magenta),var(--3mk-splash-teal) 34%,
 var(--3mk-splash-gold) 67%,var(--3mk-splash-coral)) 1}
.site-footer h3{color:var(--3mk-bg);font-size:1.1rem;display:flex;align-items:center;gap:.5rem}
.site-footer h3::before{content:"";width:.9rem;height:3px;border-radius:2px;flex:0 0 auto;
 background:var(--3mk-splash-gold-lite)}
.site-footer a{color:var(--3mk-sand)}
.site-footer a:hover{color:var(--3mk-splash-gold-lite)}
.footer-grid{display:grid;gap:var(--gap);grid-template-columns:1.4fr 1fr 1fr}
@media (max-width:760px){.footer-grid{grid-template-columns:1fr}}
.footer-grid ul{list-style:none;margin:0;padding:0}
.footer-grid li{margin-bottom:.5rem}
.footer-bottom{margin-top:2.5rem;padding-top:1.25rem;border-top:1px solid rgba(222,193,150,.28);
 display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between;font-size:.88rem;
 color:var(--3mk-sand)}
