/* Copper Heron Electric: sample site. Design style: Immersive.
   One surface that changes tone as you move down it, giant two-tone type (a bold sans
   locked tight to a bold serif), contour loops, thick marker strokes, a nav that floats
   on the page with no bar, and a full-screen menu. --dark and --accent are the two brand
   colors "Make it yours" changes; every other tone is mixed from them.
   The conventions are written down in demo-src/copperheron-review/SYSTEM.md. */

/* ---------- Tokens ---------- */
:root {
  --dark: #1d1915;
  --accent: #f08a2e;
  --cream: #f3efe6;
  --paper: #e9e4d8;      /* chat bubbles only */
  --mid: #b5b1a9;        /* third ground: 29% of the dark in cream */
  --black: #100e0c;      /* fourth ground: the dark pushed toward black */
  --mute: #afaba3;       /* reading text and labels on dark grounds */
  --off: #de934f;        /* the accent, quietened: serif words on dark grounds */
  --sans: "Mona Sans", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --wrap: none;                          /* content runs to the gutter, no centred column */
  --gut: clamp(14px, 1.16vw, 24px);      /* the one side gutter and the grid gap */
  --r-s: 7px;                            /* buttons, chips, inputs, small cells */
  --r-l: clamp(28px, 3.1vw, 44px);       /* chat box, review cards, footer panel. Photos are square. */
  --pad: clamp(64px, 8vw, 120px);        /* an ordinary section */
  --pad-screen: clamp(90px, 12vw, 190px);/* a section that holds one idea on a full screen */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .1, 1);
}
@supports (color: color-mix(in srgb, #000, #fff)) {
  :root {
    --mid: color-mix(in srgb, var(--dark) 29%, var(--cream));
    --black: color-mix(in srgb, var(--dark) 55%, #000);
    --mute: color-mix(in srgb, var(--dark) 32%, var(--cream));
    --off: color-mix(in srgb, var(--accent) 72%, var(--mute));
  }
}

/* ---------- Grounds ----------
   The page is one surface. A section says which tone it wants with data-ground; site.js
   copies the tone of the section at mid-screen onto <body>, and the body fades to it.
   Sections are see-through, so everything on screen always sits on the same ground.
   --ground  the surface        --ink   headings and plain text
   --body    reading text       --em    the serif words
   --line    contour lines      --edge  hairline outlines
   Registered as colors so the change fades instead of snapping. */
@property --ground { syntax: "<color>"; inherits: true; initial-value: #f3efe6; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #1d1915; }
@property --body { syntax: "<color>"; inherits: true; initial-value: #1d1915; }
@property --em { syntax: "<color>"; inherits: true; initial-value: #1d1915; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #8a867f3d; }
@property --edge { syntax: "<color>"; inherits: true; initial-value: #8a867f80; }

body, body[data-ground=cream], .solid[data-ground=cream], .tone-cream, html:not(.js) [data-ground=cream] { --ground: var(--cream); --ink: var(--dark); --body: var(--dark); --em: var(--dark); --tint: var(--dark); --lw: 16%; }
body[data-ground=mid], .solid[data-ground=mid], .tone-mid, html:not(.js) [data-ground=mid] { --ground: var(--mid); --ink: var(--dark); --body: var(--dark); --em: var(--dark); --tint: var(--dark); --lw: 14%; }
body[data-ground=dark], .solid[data-ground=dark], .tone-dark, html:not(.js) [data-ground=dark] { --ground: var(--dark); --ink: var(--cream); --body: var(--mute); --em: var(--off); --tint: var(--off); --lw: 17%; }
body[data-ground=black], .solid[data-ground=black], .tone-black, html:not(.js) [data-ground=black] { --ground: var(--black); --ink: var(--cream); --body: var(--mute); --em: var(--off); --tint: var(--cream); --lw: 14%; }
body, .solid, .tone-cream, .tone-mid, .tone-dark, .tone-black, html:not(.js) [data-ground] { --line: #8a867f3d; --edge: #8a867f80; }
@supports (color: color-mix(in srgb, #000, #fff)) {
  body, .solid, .tone-cream, .tone-mid, .tone-dark, .tone-black, html:not(.js) [data-ground] {
    --line: color-mix(in srgb, var(--tint) var(--lw), var(--ground));
    --edge: color-mix(in srgb, var(--ink) 34%, var(--ground));
  }
}
/* .solid: a section that paints its own ground (the black group, the dark block on inner
   pages, the footer panel). .tone-*: the same for anything that is not a section.
   With no JavaScript every section paints itself. */
.solid, .tone-cream, .tone-mid, .tone-dark, .tone-black, html:not(.js) [data-ground] { background-color: var(--ground); color: var(--ink); }
.solid { position: relative; z-index: 1; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background-color: var(--ground); color: var(--ink); font: 400 16px/1.3 var(--sans); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; transition: --ground .7s linear, --ink .7s linear, --body .7s linear, --em .7s linear, --line .7s linear, --edge .7s linear; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
section { position: relative; padding: var(--pad) 0; overflow-x: clip; }
/* The 12-column grid, edge to edge. A section head puts its heading on the left half and
   its paragraph on the centre line. */
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.head h2 { grid-column: 1 / span 6; }
.head p { grid-column: 7 / span 3; max-width: 31ch; margin-top: 4px; font-size: clamp(15px, 1.16vw, 20px); color: var(--body); }
/* One idea on a full screen, centred. */
.screen { display: grid; align-content: center; min-height: 100vh; min-height: 100svh; padding: var(--pad-screen) 0; }

.sample { background: #000; color: #fff; font-size: 13px; letter-spacing: 0; text-align: center; padding: 7px 16px; position: relative; z-index: 60; }
.sample a { font-weight: 700; }

/* ---------- Type ----------
   Bold uppercase sans with chosen words in a bold serif, a touch larger, on tight lines.
   The serif words take the ink on light grounds and the quiet accent on dark ones.
   Full accent is for buttons and marker strokes. */
.big { font: 700 clamp(44px, 7.35vw, 150px)/.86 var(--sans); letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; }
.mid { font: 700 clamp(34px, 4.17vw, 84px)/.89 var(--sans); letter-spacing: -.028em; text-transform: uppercase; }
.sm { font: 700 clamp(22px, 2.4vw, 32px)/1 var(--sans); letter-spacing: -.01em; text-transform: uppercase; }
.big em, .mid em, .sm em { font-family: var(--serif); font-weight: 600; font-style: normal; font-size: 1.04em; line-height: .8; letter-spacing: -.022em; font-variant-numeric: lining-nums; color: var(--em); }
.mid em { display: block; }
.label { font: 700 10px/1.2 var(--sans); letter-spacing: 0; text-transform: uppercase; }
.quote { font: 400 clamp(20px, 1.85vw, 34px)/1.04 var(--serif); letter-spacing: .02em; }
.center { text-align: center; }
.fine { margin-top: 14px; font-size: 13.5px; opacity: .65; }

/* Contour lines behind a section: big closed loops, tinted to the ground. They run on past
   the section's top and bottom (under its neighbours) so no row of cut ends shows where
   two sections meet. A .solid section sits above them and clips its own. */
.topo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.solid > .topo, html:not(.js) .topo { overflow: hidden; }
.topo path { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.topo .blot { stroke: none; fill: var(--ink); opacity: .045; }

/* Marker strokes: thick hand-drawn accent lines laid over type. They draw themselves
   the first time they are on screen (site.js adds .in). Add .scrub and set --p (0 to 1)
   to drive the drawing from scroll instead. */
.mark { display: block; overflow: visible; fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.mark path { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; transition: stroke-dashoffset 1.1s var(--ease-io) .25s; }
.mark path + path { transition-delay: .9s; transition-duration: .6s; }
.mark.in path { stroke-dashoffset: 0; }
.mark.scrub path { stroke-dashoffset: calc(1.02 - 1.02 * var(--p, 0)); transition: none; }
.marked { position: relative; display: inline-block; }
.marked .mark { position: absolute; z-index: 1; }
.marked .under { left: -7%; width: 114%; top: 70%; }
.marked .loop { left: -18%; width: 136%; top: -30%; height: 165%; }
.marked .zigzag { left: -4%; width: 108%; top: 30%; }
.marked .tick { left: 100%; bottom: .08em; width: .95em; margin-left: .06em; }

/* Photos are square-cornered, with one small label line above the top-left corner */
.fig .label { display: block; margin-bottom: 8px; color: var(--body); }
.pic { position: relative; overflow: hidden; background: var(--edge); }
.pic img, .pic .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #1d19150d 0 16px, #1d19151c 16px 32px); font-size: 13px; font-weight: 700; color: var(--dark); opacity: .85; }
img + .ph { display: none; }

/* ---------- Buttons: heavy condensed capitals, 40px tall. One accent block, the rest quiet. ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-s); background: var(--accent); color: var(--dark); font: 800 13.5px/1 var(--sans); font-stretch: 86%; letter-spacing: 0; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .3s var(--ease), filter .3s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.line { background: none; box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; }
.btn.sq { padding: 0; width: 50px; height: 50px; font-size: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Floating nav ----------
   No bar. The wordmark sits top left, a quiet quote button, the phone number (the one
   accent block) and a square menu button top right. Their color follows the ground
   behind them: site.js writes light or dark to header[data-on]. */
header { position: sticky; top: 0; z-index: 58; height: 0; color: var(--dark); pointer-events: none; transition: color .75s; }
header[data-on=dark], html.menu-open header { color: var(--cream); }
/* Without script the nav does not stick: it sits where it falls in the page, just under the sample banner. */
html:not(.js) header { position: absolute; top: auto; left: 0; right: 0; }
.bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 17px var(--gut); }
.bar > * { pointer-events: auto; }
.logo { display: block; color: inherit; text-decoration: none; line-height: .86; text-transform: uppercase; }
.logo i { display: block; font: 600 27px/.9 var(--serif); letter-spacing: -.02em; }
.logo b { display: block; font: 800 26px/.9 var(--sans); letter-spacing: -.03em; }
.bar .logo { max-width: min(46vw, 440px); transform-origin: left top; }
/* In the nav the wordmark is always two lines. A long name from Make it yours is cut with an ellipsis, not wrapped onto a third. */
.bar .logo i, .bar .logo b { max-width: min(32vw, 440px); padding-bottom: .14em; margin-bottom: -.14em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.navr { display: flex; align-items: center; gap: 8px; transform-origin: right top; }
.bar .btn { height: 50px; padding: 0 16px; }
.bar .quote { gap: 0; transition: transform .3s var(--ease), filter .3s, background-color .75s; }
/* The two quiet controls carry a little of the ground, so type and photos passing under them stay out of the way. */
.bar .quote, .menu { background-color: #f3efe6d9; }
header[data-on=dark] .quote, html.menu-open .quote { background-color: #1d1915d9; }
@supports (color: color-mix(in srgb, #000, #fff)) { header[data-on=dark] .quote, html.menu-open .quote { background-color: color-mix(in srgb, var(--dark) 85%, transparent); } }
/* The wordmark gets the same plate wherever content passes straight under it: where the
   home page is not pinned (tablets, reduced motion) and on the inner pages (header.inner),
   once the sample banner has gone. On a plain ground it cannot be seen; over a photo or a
   row of text it is a readable chip. The pinned home page keeps the bare wordmark. */
html.js:not(.pins) header.small .bar .logo, header.inner.small .bar .logo { padding: 7px 9px 6px; margin: -7px -9px -6px; border-radius: var(--r-s); background-color: #f3efe6d9; transition: transform .6s var(--ease-io), background-color .75s; }
html.js:not(.pins) header.small[data-on=dark] .bar .logo, header.inner.small[data-on=dark] .bar .logo { background-color: #1d1915d9; }
html.menu-open header.small .bar .logo { background-color: transparent; }
@supports (color: color-mix(in srgb, #000, #fff)) {
  html.js:not(.pins) header.small .bar .logo, header.inner.small .bar .logo { background-color: color-mix(in srgb, var(--cream) 85%, transparent); }
  html.js:not(.pins) header.small[data-on=dark] .bar .logo, header.inner.small[data-on=dark] .bar .logo { background-color: color-mix(in srgb, var(--dark) 85%, transparent); }
  html.menu-open header.small .bar .logo { background-color: transparent; }
}
.bar .tel svg { width: 16px; height: 16px; fill: currentColor; }
.lockup { display: none; }
/* The menu button: two short bars set off from each other; a cross when the menu is open */
.menu { position: relative; flex: none; width: 50px; height: 50px; padding: 0; border: 0; border-radius: var(--r-s); color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; cursor: pointer; transition: background-color .75s, color .75s, box-shadow .75s; }
.menu i { position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; transition: transform .35s var(--ease); }
.menu i:first-child { transform: translate(2.5px, -3px); }
.menu i:last-child { transform: translate(-4.5px, 3px) scaleX(.75); }
header[data-on=dark] .menu, html.menu-open .menu { background: var(--cream); color: var(--dark); box-shadow: inset 0 0 0 1.5px var(--cream); }
html.menu-open .menu i:first-child { transform: rotate(45deg); }
html.menu-open .menu i:last-child { transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) {
  .menu:hover { background: var(--accent); color: var(--dark); box-shadow: inset 0 0 0 1.5px var(--dark); transition-duration: .2s; }
  header[data-on=dark] .menu:hover, html.menu-open .menu:hover { background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
  html:not(.menu-open) .menu:hover i:first-child { transform: translate(2.5px, -3px) scaleX(.75); }
  html:not(.menu-open) .menu:hover i:last-child { transform: translate(-4.5px, 3px); }
}
/* At the very top of the page everything in the nav is a fifth larger; it settles once
   the sample banner has scrolled away (site.js adds .small). */
@media (min-width: 981px) {
  .bar .logo, .navr { transform: scale(1.2); transition: transform .6s var(--ease-io); }
  header.small .logo, header.small .navr { transform: none; }
}
/* The mark at top centre: the first letter of each line of the wordmark in a ring (site.js
   fills it from the name). It belongs to the larger top-of-page nav and leaves with it. */
.navmono { display: none; }
@media (min-width: 981px) {
  .navmono { position: absolute; left: 50%; top: 22px; display: grid; grid-auto-flow: column; place-content: center; width: 50px; height: 50px; margin-left: -25px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; text-transform: uppercase; pointer-events: none; transition: opacity .4s, transform .6s var(--ease-io); }
  .navmono i { font: 700 22px/1 var(--serif); letter-spacing: -.01em; }
  .navmono b { font: 800 20px/1 var(--sans); letter-spacing: -.03em; }
  header.small .navmono, html.menu-open .navmono { opacity: 0; transform: translateY(-10px); }
}
/* Scroll indicator: a thin pill down the right edge with a thumb a tenth of its height.
   site.js moves the thumb and shows the pill while the page is moving. Wide screens with a
   mouse only. It takes the nav's ink, with a hairline of the other tone round the thumb so
   it still shows where the ground under it differs from the ground under the wordmark. */
.sbar { display: none; }
@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  .sbar { position: fixed; right: 5px; top: 10vh; z-index: 1; display: block; width: 6px; height: 80vh; border-radius: var(--r-s); opacity: 0; pointer-events: none; transition: opacity .5s .2s; }
  .sbar.on { opacity: 1; transition: opacity .2s; }
  .sbar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: .16; }
  .sbar i { position: absolute; left: 0; top: 0; width: 100%; height: 10%; border-radius: inherit; background: currentColor; box-shadow: 0 0 0 1px #f3efe680; will-change: transform; }
  header[data-on=dark] .sbar i { box-shadow: 0 0 0 1px #1d191580; }
  html.menu-open .sbar { display: none; }
}

/* ---------- Menu: a full-screen dark sheet under the nav ----------
   Left, four photos in two columns that drift with the pointer. Right, the page links in
   giant type with a wire struck through the current page, a small badge, and a contact row. */
.sheet { position: fixed; inset: 0; z-index: 55; overflow: hidden auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
html.menu-open .sheet { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet:focus { outline: 0; }
html.menu-open { overflow: hidden; }
html.menu-open body { padding-right: var(--sbw, 0px); }
html.menu-open .yours { display: none; }
/* The columns drift about 35px each way. --cw leaves room for that above (clear of the
   wordmark) and below (the caption under column one stays on screen); the clip is a guard,
   so the drift can never give the sheet something to scroll. */
.mpics { position: absolute; left: 3.3vw; top: 0; height: 100%; padding-top: 30px; display: flex; align-items: center; gap: 3.4vw; overflow: hidden; overflow: clip; --cw: min(21.3vw, calc((100vh - 250px - 3.4vw) * .46)); --my: 0; }
.mcol { position: relative; display: grid; gap: 3.4vw; transform: translateY(calc(var(--my) * min(7.8vh, 70px))); will-change: transform; }
.mcol + .mcol { transform: translateY(calc(var(--my) * -1 * min(7.8vh, 70px))); }
.mcol .label { position: absolute; left: 0; top: calc(100% + 10px); color: var(--body); white-space: nowrap; }
.mpic { position: relative; width: var(--cw); aspect-ratio: 12 / 13; overflow: hidden; background: var(--black); }
/* At rest a photo is a washed two-tone of the brand's dark and the mute tone: grey it,
   pull the lights down to the mute tone, lift the darks to the ground. Lit, it is itself. */
.mpic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.92); transition: filter .5s; }
.mpic img:not([src]) { visibility: hidden; }
.mpic::before, .mpic::after { content: ""; position: absolute; inset: 0; z-index: 1; transition: opacity .5s; }
.mpic::before { background: var(--mute); mix-blend-mode: multiply; }
.mpic::after { background: var(--dark); mix-blend-mode: lighten; }
.mpic.on img { filter: none; }
.mpic.on::before, .mpic.on::after { opacity: 0; }
.mside { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-height: 100%; margin-left: 58%; padding: 60px var(--gut) 27px; text-align: center; }
.mlinks { display: grid; justify-items: center; margin-top: auto; }
.mlinks a { display: block; overflow: hidden; padding: 0 12px; color: var(--ink); font: 800 clamp(40px, min(4.9vw, 8.2vh), 76px)/.94 var(--sans); letter-spacing: -.02em; text-transform: uppercase; text-decoration: none; transition: color .25s; }
.mlinks a > span { position: relative; display: inline-block; transform: translateY(105%); transition: transform 0s .3s; }
html.menu-open .mlinks a > span { transform: none; transition: transform .5s var(--ease) calc(60ms + var(--i) * 50ms); }
.mlinks a[aria-current] { color: var(--mute); }
.mlinks a:hover, .mlinks a:focus-visible, .mlinks a.lit { color: var(--accent); outline: 0; }
.strike { position: absolute; left: -6px; top: 50%; width: calc(100% + 12px); height: .5em; margin-top: -.27em; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; clip-path: inset(-20% 100% -20% 0); transition: clip-path 0s .3s; }
.strike path { vector-effect: non-scaling-stroke; }
html.menu-open .strike { clip-path: inset(-20% -2% -20% 0); transition: clip-path .6s var(--ease-io) .4s; }
.mbadge { display: flex; flex-direction: column; align-items: center; margin: 34px 0 24px; color: var(--mute); }
.bulb { width: 40px; margin-bottom: 8px; fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.mreach { display: grid; justify-items: center; gap: 20px; margin-top: auto; font: 800 14px/1 var(--sans); font-stretch: 86%; text-transform: uppercase; }
.mreach span { display: flex; gap: 25px; }
.mreach a { position: relative; padding: 3px 0; text-decoration: none; }
.mreach a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.mreach a:hover::after, .mreach a:focus-visible::after { transform: scaleX(1); }

/* ---------- Inner pages: a dark opening block, then simple bodies on cream ---------- */
.top { position: relative; padding: calc(clamp(50px, 7vw, 100px) + 80px) 0 clamp(50px, 7vw, 100px); overflow: hidden; }
.top p { margin-top: 18px; max-width: 48ch; font-size: clamp(15px, 1.16vw, 20px); color: var(--body); }
/* A row can be jumped to from a tile on the home page. The margin lands it clear of the floating nav (and takes up the .rise offset). */
.svc { display: grid; grid-template-columns: 90px 1fr auto; gap: clamp(18px, 3vw, 40px); align-items: center; padding: 28px 0; border-bottom: 1px solid var(--edge); scroll-margin-top: 120px; }
.svc svg { width: 80px; height: 80px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.svc p { margin-top: 6px; }
.svc .price { font: 500 28px/1 var(--serif); font-variant-numeric: lining-nums; white-space: nowrap; }
.svc p, .split p, .form, .list { max-width: 36rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 72px); align-items: center; }
.split .pic { aspect-ratio: 4 / 3; }
.split p { margin-top: 16px; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); }
.nums div, .three div { padding: 22px; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--edge); }
.nums b { display: block; font: 700 clamp(34px, 4.4vw, 60px)/1 var(--sans); letter-spacing: -.03em; }
.nums span { display: block; margin-top: 6px; font: 700 10px/1.2 var(--sans); text-transform: uppercase; }
.map iframe { display: block; width: 100%; height: clamp(320px, 46vw, 540px); border: 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); margin-top: 26px; }
.three .sm { margin-bottom: 12px; }
.three li { font-weight: 600; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font: 700 12px/1.2 var(--sans); text-transform: uppercase; }
.form input, .form textarea { padding: 14px; border: 1.5px solid #1d191544; border-radius: var(--r-s); background: #fff; color: var(--dark); font: 500 16px var(--sans); }
.form textarea { min-height: 130px; resize: vertical; }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--edge); }
.list span { font: 700 10px/1.2 var(--sans); text-transform: uppercase; }
.list b { font: 800 19px/1.2 var(--sans); font-stretch: 86%; text-transform: uppercase; text-align: right; }

/* Things rise into place the first time they are on screen */
.rise { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rise.in { opacity: 1; transform: none; }

/* ---------- Fixed furniture: push to call (phones) and Make it yours ---------- */
.callnow { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--dark); font: 800 14px/1 var(--sans); font-stretch: 86%; text-transform: uppercase; text-decoration: none; }
.callnow svg { width: 18px; height: 18px; fill: currentColor; }
.yours { position: fixed; right: var(--gut); bottom: var(--gut); z-index: 70; display: grid; justify-items: end; gap: 10px; pointer-events: none; }
.yours > * { pointer-events: auto; }
.yours > button { height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-s); background: var(--dark); color: var(--cream); font: 800 13.5px/1 var(--sans); font-stretch: 86%; text-transform: uppercase; box-shadow: 0 0 0 1.5px var(--accent), 0 8px 24px #0006; cursor: pointer; }
.panel { width: min(300px, calc(100vw - 32px)); padding: 20px; border-radius: var(--r-s); background: #fff; box-shadow: 0 14px 44px #0006; display: grid; gap: 12px; color: var(--dark); }
.panel[hidden] { display: none; }
.panel strong { font: 800 22px/1 var(--sans); font-stretch: 86%; text-transform: uppercase; }
.panel label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 700; }
.panel input[type=text] { padding: 10px 12px; border: 1.5px solid #1d191544; border-radius: var(--r-s); font: 500 16px var(--sans); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 44px; height: 32px; border-radius: var(--r-s); border: 2px solid #fff; box-shadow: 0 0 0 1px #0003; cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px #1d1915; }
.panel p { font-size: 13.5px; opacity: .75; }
.panel .reset { justify-self: start; padding: 0; border: 0; background: none; font: 600 13.5px var(--sans); text-decoration: underline; cursor: pointer; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 980px) {
  /* A tone change switches the six ground variables at once and only the surface fades:
     one restyle of the page, not one a frame for 0.7s (which stepped on phones). */
  body { transition: background-color .3s linear; }
  .btn { height: 44px; }
  .bar { padding: 14px var(--gut); }
  .bar .btn, .menu { height: 46px; }
  .menu { width: 46px; }
  .bar .tel { display: none; }
  .screen { display: block; min-height: 0; padding: var(--pad) 0; }
  .head p { grid-column: 1 / -1; margin-top: 14px; }
  .head h2 { grid-column: 1 / -1; }
  /* One strip along the bottom: push to call, with Make it yours as its last cell. Nothing floats over the page. */
  .callnow { display: flex; right: 132px; height: calc(52px + env(safe-area-inset-bottom, 0px)); padding: 0 12px env(safe-area-inset-bottom, 0px); }
  html.menu-open .callnow { right: 0; }
  .yours { right: 0; bottom: 0; gap: 0; }
  .yours > button { width: 132px; height: calc(52px + env(safe-area-inset-bottom, 0px)); padding: 0 8px env(safe-area-inset-bottom, 0px); border-radius: 0; box-shadow: none; }
  .panel { width: calc(100vw - 16px); max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); margin: 0 8px 8px; overflow: auto; box-shadow: 0 -6px 30px #0004; clip-path: inset(-50px -10px -6px -10px); }
  /* Menu: no photos, the links centred, the contact row lifted clear of the call strip */
  .mpics { display: none; }
  .mside { margin-left: 0; padding: 84px 20px calc(84px + env(safe-area-inset-bottom, 0px)); }
  .mlinks a { padding: 5px 12px; font-size: clamp(38px, 10.5vw, 56px); line-height: 1; }
  .split { grid-template-columns: 1fr; }
  .nums { grid-template-columns: 1fr 1fr; }
  .three { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 64px 1fr; }
  .svc svg { width: 60px; height: 60px; }
  .svc .price { grid-column: 2; }
}
/* Phones: only two things float at the top, the quote button and the menu square. The
   wordmark moves into the page (it scrolls away, so a long name can wrap). */
@media (max-width: 700px) {
  .bar { padding: 12px var(--gut); }
  .bar .logo { display: none; }
  .navr { flex: 1; justify-content: space-between; }
  .bar .btn, .menu { height: 48px; }
  .menu { width: 48px; }
  .bar .quote, header[data-on=dark] .quote, html.menu-open .quote { background: var(--accent); color: var(--dark); box-shadow: none; }
  .menu, header[data-on=dark] .menu { background: var(--cream); color: var(--dark); box-shadow: inset 0 0 0 1.5px var(--dark); }
  header[data-on=dark] .menu, html.menu-open .menu { box-shadow: inset 0 0 0 1.5px var(--cream); }
  main { position: relative; }
  .lockup { display: block; position: absolute; z-index: 5; left: 0; right: 0; top: 74px; padding: 0 6vw; text-align: center; color: var(--dark); }
  .lockup.on-dark { color: var(--cream); }
  .lockup > span { display: block; text-wrap: balance; }
  .lockup i, .lockup b { display: inline; font-size: clamp(20px, 6.6vw, 28px); line-height: 1; }
  .lockup small { display: block; margin-top: 7px; font: 700 10px/1.2 var(--sans); letter-spacing: 0; }
  /* --lockup is the height of the wordmark, measured by site.js, so a long name pushes the first block down */
  .top { padding-top: calc(112px + var(--lockup, 46px)); }
  .marked .tick { left: auto; right: -.1em; bottom: -.66em; width: .7em; }
}
@media (max-width: 379px) { .bar .quote span { display: none; } }

@media (prefers-reduced-motion: reduce) {
  body, header, .menu, .menu i, .bar .logo, .bar .quote, .navr, .mpic img, .mpic::before, .mpic::after { transition: none; }
  html.js:not(.pins) header.small .bar .logo, header.inner.small .bar .logo { transition: none; }
  .navmono, .sbar, .sbar.on { transition: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .log p { animation: none; }
  .mark path { stroke-dashoffset: 0; transition: none; }
  .mcol, .mcol + .mcol { transform: none; }
  .mlinks a > span, html.menu-open .mlinks a > span { transform: none; transition: none; }
  .strike, html.menu-open .strike { clip-path: none; transition: none; }
  html { scroll-behavior: auto; }
}
