/* Macleod Stoves concept site.
   A stove just lit in a Highland living room on a dark winter afternoon: firelight on riven
   black slate, his navy as the cold iron, and the black twinwall flue running down the page.
   Display: Graduate (the face of his badge). Body: Libre Franklin. */

/* fonts: start. Generated by tools/fonts.py from tools/fonts.json; do not edit. */
@font-face{font-family:'Graduate';font-style:normal;font-weight:400;font-display:swap;src:url(images/fonts/graduate-v19-latin-normal-fba6da8ccb.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Libre Franklin';font-style:italic;font-weight:400;font-display:swap;src:url(images/fonts/librefranklin-v20-latin-italic-a40a8a19cf.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Libre Franklin';font-style:normal;font-weight:400 800;font-display:swap;src:url(images/fonts/librefranklin-v20-latin-normal-d21d154559.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* fonts: end */

:root {
  --slate-0: #111214;
  --slate-1: #18191c;
  --slate-2: #202125;
  --slate-3: #2b2d31;
  --slate-4: #3a3d43;
  --navy: #3B424D;
  --navy-d: #2a3039;
  --ember: #B8470F;
  --ember-d: #9a3a0b;
  --flame: #DB5A17;
  --flame-lt: #F39A5C;
  --yellow: #F5C726;
  --plaster: #F4F1EA;
  --plaster-2: #ebe5da;
  --cream: #D4C5B6;
  --oak: #9C6F48;
  --ink: #1E1A19;
  --muted: #bdb3a8;
  --muted-ink: #5d544e;
  --display: "Graduate", "Rockwell", Georgia, serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1260px;
  --gut: clamp(16px, 4vw, 48px);
  --flue-w: 48px;
  --flue-x: 18px;          /* from the wrap's inner left edge */
  --flue-pad: 112px;       /* content clear of the flue */
  --hdr-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); overflow-x: clip; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--plaster);
  background-color: var(--slate-1);
  /* riven slate, everywhere underfoot: anisotropic noise, lit from the top left */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.008 0.03' numOctaves='5' seed='7' stitchTiles='stitch'/><feDiffuseLighting surfaceScale='9' lighting-color='%23fff'><feDistantLight azimuth='225' elevation='25'/></feDiffuseLighting></filter><rect width='600' height='600' filter='url(%23n)' opacity='.055'/></svg>");
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--plaster); color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ------------------------------------------------------------------ type */
h1, .h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h2 { font-size: clamp(30px, 3.5vw, 50px); line-height: 1.04; }
h3 { font: 800 clamp(20px, 1.7vw, 24px)/1.2 var(--body); letter-spacing: -.01em; margin-bottom: .45em; }
.band--plaster { color: var(--ink); }
.band--plaster .h2 { color: var(--navy); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 20px;
  font: 700 16px/1.1 var(--body); text-decoration: none;
  border-radius: 3px; border: 2px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn--ember { background: var(--ember); color: #fff; box-shadow: 0 0 0 0 rgba(219, 90, 23, 0), 0 8px 30px -8px rgba(219, 90, 23, .55); }
.btn--ember:hover { background: var(--ember-d); }
.btn--wa { background: transparent; color: var(--plaster); border-color: rgba(244, 241, 234, .55); }
.btn--wa:hover { border-color: var(--plaster); background: rgba(244, 241, 234, .06); }
.band--plaster .btn--wa { color: var(--ink); border-color: rgba(30, 26, 25, .45); }
.btn--big { min-height: 56px; padding: 14px 24px; font-size: 17px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--flame-lt); text-decoration: none; border-bottom: 2px solid rgba(243, 154, 92, .4); padding-bottom: 2px; }
.arrow:hover { border-bottom-color: var(--flame-lt); }
.band--plaster .arrow { color: var(--ember); border-bottom-color: rgba(184, 71, 15, .35); }
.more { margin: 40px 0 0; }

/* ------------------------------------------------------------------ header (sticky, never fixed: the preview bar sits above it) */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .12));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 10px 30px -14px rgba(0, 0, 0, .8);
}
.hdr::after { /* the ceiling's edge: a thin dark plate line */
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: linear-gradient(180deg, #14171b, rgba(20, 23, 27, 0));
}
.hdr__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: var(--hdr-h); display: flex; align-items: center; gap: 28px; }
.hdr__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.hdr__brand img { width: 52px; height: 52px; }
.hdr__brand span { font: 400 21px/1 var(--display); letter-spacing: .01em; }
.hdr__nav { display: flex; gap: 26px; }
.hdr__nav a { font-weight: 600; font-size: 15px; text-decoration: none; color: rgba(244, 241, 234, .86); padding: 6px 0; border-bottom: 2px solid transparent; }
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--flame); }
.hdr__call { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.hdr__menu { display: none; }
.menu[hidden] { display: none; }

@media (max-width: 1060px) {
  :root { --hdr-h: 64px; }
  .hdr__nav, .hdr__call { display: none; }
  .hdr__brand img { width: 44px; height: 44px; }
  .hdr__brand span { font-size: 18px; }
  .hdr__menu {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
    background: transparent; color: var(--plaster); border: 2px solid rgba(244, 241, 234, .5); border-radius: 3px;
    font: 700 15px/1 var(--body); cursor: pointer;
  }
  .hdr__menu i, .hdr__menu i::before, .hdr__menu i::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .hdr__menu i::before, .hdr__menu i::after { content: ""; position: absolute; left: 0; }
  .hdr__menu i::before { top: -6px; }
  .hdr__menu i::after { top: 6px; }
  .hdr__menu[aria-expanded="true"] i { background: transparent; }
  .hdr__menu[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
  .hdr__menu[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
  .menu { background: var(--navy-d); border-top: 1px solid rgba(255, 255, 255, .08); }
  .menu__in { display: flex; flex-direction: column; padding: 10px var(--gut) 22px; gap: 4px; }
  .menu__in > a:not(.btn) { padding: 12px 0; font: 600 18px/1.2 var(--body); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .menu__in .btn { margin-top: 12px; }
}
@media (max-width: 400px) {
  .hdr__brand span { font-size: 16px; }
  .hdr__in { gap: 12px; }
}

/* ------------------------------------------------------------------ the fire: shared by every stove */
.stove { display: block; width: 100%; height: auto; overflow: visible; }
.stove .fl { transform-box: fill-box; transform-origin: 50% 100%; animation: lick 1.6s ease-in-out infinite alternate; }
.stove .fl1 { animation-duration: 1.71s; }
.stove .fl2 { animation-name: lick-b; animation-duration: 1.33s; animation-delay: -.4s; }
.stove .fl3 { animation-duration: 1.13s; animation-delay: -.7s; }
.stove .fl4 { animation-name: lick-b; animation-duration: 1.47s; animation-delay: -.2s; }
.stove .fl5 { animation-name: lick-c; animation-duration: .93s; }
.stove .fl6 { animation-name: lick-c; animation-duration: 1.21s; animation-delay: -.5s; }
.stove .fl7 { animation-duration: .87s; animation-delay: -.3s; }
@keyframes lick {
  0% { transform: scale(1, 1) skewX(0deg); }
  22% { transform: scale(.93, 1.08) skewX(-3.5deg); }
  48% { transform: scale(1.05, .9) skewX(2.5deg); }
  71% { transform: scale(.96, 1.12) skewX(-1.5deg); }
  100% { transform: scale(1.02, .95) skewX(1.5deg); }
}
@keyframes lick-b {
  0% { transform: scale(1, .96) skewX(1deg); }
  30% { transform: scale(1.06, 1.1) skewX(4deg); }
  60% { transform: scale(.94, .92) skewX(-2deg); }
  100% { transform: scale(1, 1.06) skewX(2.5deg); }
}
@keyframes lick-c {
  0% { transform: scale(1, 1) translateX(0); }
  35% { transform: scale(.9, 1.14) translateX(-2px); }
  70% { transform: scale(1.08, .9) translateX(2px); }
  100% { transform: scale(.97, 1.05) translateX(0); }
}
.stove .fire-glow { animation: breathe 3.3s linear infinite; }
.stove .fire-cast { animation: breathe 2.1s linear infinite; animation-delay: -1s; }
.stove .fire-floor { animation: breathe 2.7s linear infinite; animation-delay: -.6s; }
.stove .fire-back { animation: breathe 1.9s linear infinite; }
@keyframes breathe {
  0% { opacity: .82; } 9% { opacity: .95; } 16% { opacity: .78; } 27% { opacity: 1; } 38% { opacity: .86; }
  51% { opacity: .97; } 60% { opacity: .8; } 74% { opacity: .99; } 87% { opacity: .87; } 100% { opacity: .82; }
}
.stove .embers { animation: smoulder 2.4s ease-in-out infinite alternate; }
.stove .cracks path { animation: smoulder 1.7s ease-in-out infinite alternate; }
.stove .cracks path:nth-child(2n) { animation-duration: 2.3s; animation-delay: -.8s; }
.stove .cracks path:nth-child(3n) { animation-duration: 1.3s; animation-delay: -.4s; }
@keyframes smoulder { from { opacity: .55; } to { opacity: 1; } }
.stove .sp { transform-box: fill-box; transform-origin: center; animation: spark 2.6s ease-out infinite; opacity: 0; }
.stove .sp2 { animation-delay: .9s; animation-duration: 3.1s; }
.stove .sp3 { animation-delay: 1.6s; animation-duration: 2.2s; }
.stove .sp4 { animation-delay: 2.2s; animation-duration: 2.9s; }
@keyframes spark {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  70% { opacity: .6; }
  100% { transform: translate(14px, -170px); opacity: 0; }
}
.stove--out .cracks path, .stove--out .embers { animation-duration: 4.2s; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(600px, 76svh, 820px);
  background:
    radial-gradient(70% 60% at 72% 70%, rgba(120, 42, 10, .28), rgba(120, 42, 10, 0) 70%),
    linear-gradient(180deg, #141518 0%, #1b1b1e 60%, #151516 100%);
  isolation: isolate;
}
/* the floor line the hearth stands on, and boards fading into the dark */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13%; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 30%),
    repeating-linear-gradient(90deg, rgba(156, 111, 72, .10) 0 2px, rgba(60, 38, 24, .16) 2px 150px),
    linear-gradient(180deg, #23180f, #120c08);
  border-top: 1px solid rgba(255, 190, 120, .08);
}
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 1500px; height: 1300px; right: -380px; bottom: -560px;
  background: radial-gradient(closest-side, rgba(255, 128, 40, .42), rgba(219, 90, 23, .2) 38%, rgba(184, 71, 15, .07) 64%, rgba(184, 71, 15, 0) 100%);
  animation: breathe 3.7s linear infinite;
}
.hero__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 32px; align-items: center;
  min-height: inherit;
}
.hero__copy { padding: 64px 0 120px; }
.hero h1 {
  font-size: clamp(34px, 4.5vw, 66px); line-height: 1.03; margin-bottom: 26px;
  color: #fbf7ef;
  text-shadow: 0 0 1px rgba(255, 220, 180, .3), 18px 6px 60px rgba(219, 90, 23, .38);
}
.hero__lede { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; max-width: 34em; color: #e9e1d5; margin-bottom: 30px; }
.hero .mark { margin-top: 26px; }
.hero__art { align-self: stretch; position: relative; }
.hero__art .stove { position: absolute; left: 50%; top: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__in { grid-template-columns: 1fr; gap: 0; }
  .hero__art { order: -1; height: clamp(250px, 38svh, 340px); }
  .hero__copy { padding: 8px 0 44px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 44px); margin-bottom: 14px; }
  .hero__lede { font-size: 16px; margin-bottom: 18px; }
  .hero__cta { flex-wrap: nowrap; gap: 10px; }
  .hero__cta .btn { padding: 12px 12px; font-size: 15.5px; white-space: nowrap; min-height: 54px; }
  .hero__cta .btn--ember { flex: 1.45 1 auto; }
  .hero__cta .btn--wa { flex: 1 1 auto; }
  .hero__cta .wa-us { display: none; }
  .hero__glow { width: 900px; height: 900px; right: auto; left: 50%; margin-left: -450px; top: -260px; bottom: auto; }
  .hero::after { display: none; }
  .hero .mark { margin-top: 16px; }
}

/* ------------------------------------------------------------------ HETAS approved, on a riveted plate
   His badge navy, riveted like the register plates the flue passes through and the maker's plate on a
   stove: his own words, set in type. Text only, never the HETAS logo (we are not licensed for it). The
   same plate in the hero, on the wall of the about band and under the ways to get in touch. */
.mark {
  position: relative; display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%;
  margin: 0; padding: 12px 32px 13px;
  background: linear-gradient(180deg, #555e6b 0, var(--navy) 40%, var(--navy-d) 100%);
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(150, 160, 174, .5) inset, 0 -1px 0 rgba(0, 0, 0, .5) inset, 0 14px 26px -12px rgba(0, 0, 0, .75);
  color: #fff; line-height: 1.1;
}
/* a rivet at each end */
.mark::before, .mark::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8d96a2 0 1px, #0b0c0e 1.8px);
}
.mark::before { left: 12px; }
.mark::after { right: 12px; }
.mark b { font: 400 22px/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.mark span { font: 600 15px/1.2 var(--body); color: var(--cream); padding-left: 14px; border-left: 2px solid var(--flame); white-space: nowrap; }
.us__text .mark { margin-top: 30px; }
.phead .mark { margin-top: 22px; }
@media (max-width: 860px) {
  /* the phone: the width of the two call buttons above it */
  .mark { width: auto; justify-content: center; gap: 12px; padding: 12px 26px 13px; }
  .mark::before { left: 10px; }
  .mark::after { right: 10px; }
  .mark b { font-size: clamp(17px, 5.2vw, 21px); }
  .mark span { font-size: 14px; padding-left: 12px; }
}

/* ------------------------------------------------------------------ the photo hero (Home: index.html, and home-photo.html, its copy)
   His own lit stove, flue and all (the Opus Trio at Balnabeen, its twinwall straight up to the ceiling
   plate; images/fire-balnabeen-c9694b72.5fac014b12.webp), with its own fire brought to life by maps cut out of the same
   photo by tools/build-fire-hero.py. Every rule is under .hero--photo or .fire, so no other page
   renders differently.
   The stack, inside a frame that has the photo's own shape (so a per cent is a place in the photo):
   the photo; a cool veil that turns the daylit room to a dark evening; the photo again, warmed and
   masked to where the firelight falls (two lobes out of phase, so the light moves across the wall, the
   hearth and the floor), the stove itself cut out of them so firelight never lands on its iron or its
   logs; the logs alone, a little warmed and steady (wood in a dim room, not firelight); a dark glass for the moment before the fire is lit; then, screened (black adds nothing), the
   stove's own highlights (the reflective base ring, the round body's edges: the evening veil would
   flatten them), the firelight lying on the slate hearth, a halo round the glass and, in the glass, the
   ember bed, the glass as photographed and its flame tongues twice, licking out of step, and twice more
   through soft bands that rise (the light running up the flames), with a few sparks. Each layer is a
   pair: .fire__x plays the intro once, .fire__y loops. */
.hero--photo {
  --fire-bg: #0f1013;
  --ar: .7204;                                          /* the photo, 1170 x 1624 */
  /* the first screen under the header (and, on a preview, the 194px bar at 1440x900) */
  --hero-h: clamp(560px, calc(100svh - 270px), 820px);
  --frame-h: calc(var(--hero-h) * .95);                 /* ceiling plate to hearth, clear of the fold */
  min-height: var(--hero-h);
  background: var(--fire-bg);
}
.hero--photo::after { display: none; }
/* the fire's light reaching across the dark room to the copy, breathing with it */
.hero--photo::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: 0; bottom: -30%; width: 120%; height: 130%;
  background: radial-gradient(52% 50% at 78% 70%, rgba(219, 90, 23, .2), rgba(184, 71, 15, .07) 55%, rgba(184, 71, 15, 0) 100%);
  animation: fire-glow 3.7s linear -1.4s infinite;
}
.hero--photo .hero__in { position: relative; z-index: 1; }
.hero--photo .hero__copy { padding: 44px 0 56px; }
.hero--photo h1 { text-shadow: 0 2px 26px rgba(0, 0, 0, .6), 18px 6px 60px rgba(219, 90, 23, .3); }

/* the whole stove, ceiling plate to hearth, standing against the right edge with the flue rising
   straight out of the header */
.fire {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(50vw, calc(var(--frame-h) * var(--ar)));
  overflow: hidden; isolation: isolate;
  /* the photo's left edge (the door) melts into the room the copy stands in, and the fire's glow on it */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .16) 7%, rgba(0, 0, 0, .6) 18%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .16) 7%, rgba(0, 0, 0, .6) 18%, #000 30%);
}
.fire__frame {
  position: absolute; top: 0; right: 0; height: var(--frame-h); width: calc(var(--frame-h) * var(--ar));
  /* the hearth's front edge goes into the dark floor */
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 90%, transparent 100%);
}
.fire__photo, .fire__fx, .fire__x, .fire__y, .fire__fx img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.fire__photo { display: block; }
.fire__fx { pointer-events: none; }
.fire__x--veil { background: #0b0d12; opacity: .76; }
/* the firelight is warmer than the daylight the photo was taken in */
.fire__lit {
  background: linear-gradient(#ffb06e, #ffb06e), url("images/fire-balnabeen-c9694b72.5fac014b12.webp") 0 0 / 100% 100% no-repeat;
  background-blend-mode: multiply;
}
.fire__x--lit-l { -webkit-mask: url("images/fire-balnabeen-spill-l-b5f4a031.74051bad2d.webp") 0 0 / 100% 100% no-repeat; mask: url("images/fire-balnabeen-spill-l-b5f4a031.74051bad2d.webp") 0 0 / 100% 100% no-repeat; }
.fire__x--lit-r { -webkit-mask: url("images/fire-balnabeen-spill-r-7f3ea1eb.4f0916f14a.webp") 0 0 / 100% 100% no-repeat; mask: url("images/fire-balnabeen-spill-r-7f3ea1eb.4f0916f14a.webp") 0 0 / 100% 100% no-repeat; }
/* the logs in the log store: a slight, steady warmth, so the wood reads tan rather than the veil's blue-grey */
.fire__x--logs { -webkit-mask: url("images/fire-balnabeen-logs-8e63b5b2.2b1f581a56.webp") 0 0 / 100% 100% no-repeat; mask: url("images/fire-balnabeen-logs-8e63b5b2.2b1f581a56.webp") 0 0 / 100% 100% no-repeat; }
.fire__lit.fire__lit--logs { background-image: linear-gradient(#e4ac7c, #e4ac7c), url("images/fire-balnabeen-c9694b72.5fac014b12.webp"); }
.fire__x--logs .fire__y { opacity: .42; }
/* the stove's glass, both panes: the box tools/build-fire-hero.py prints (per cent of the photo) */
.fire__x--out, .fire__glass { position: absolute; left: 36.41%; top: 49.384%; width: 21.709%; height: 17.118%; }
.fire__x--out { background: #070606; border-radius: 5% / 4%; box-shadow: 0 0 4px 2px #070606; opacity: 0; }
.fire__x--gloss, .fire__x--sheen, .fire__x--halo, .fire__glass, .fire__glass .fire__x { mix-blend-mode: screen; }
.fire__glass { overflow: hidden; border-radius: 4% / 5%; }
.fire__x--lit-l .fire__y, .fire__x--lit-r .fire__y { opacity: .85; }
.fire__x--halo .fire__y, .fire__x--sheen .fire__y, .fire__x--gloss .fire__y { opacity: .85; }
.fire__x--bed .fire__y { opacity: .55; }
.fire__x--box .fire__y { opacity: .92; }
.fire__x--fa .fire__y { opacity: .75; transform-origin: 50% 88%; }
.fire__x--fb .fire__y { opacity: .45; transform-origin: 46% 90%; }
/* light running up the flames: the tongues again, seen through soft bands that rise (two periods, two
   speeds); invisible when still (reduced motion), so no band ever stands frozen */
.fire__x--fc .fire__y, .fire__x--fd .fire__y {
  opacity: 0;
  -webkit-mask: linear-gradient(0deg, transparent 0, #000 42%, transparent 84%) 0 0 / 100% 50% repeat-y;
  mask: linear-gradient(0deg, transparent 0, #000 42%, transparent 84%) 0 0 / 100% 50% repeat-y;
}
.fire__x--fd .fire__y { -webkit-mask-size: 100% 33.333%; mask-size: 100% 33.333%; }
.fire__spark { position: absolute; top: 0; left: 30%; width: 3px; height: 100%; opacity: 0; }   /* all inside the front pane (8-56% of the box) */
.fire__spark::before {
  content: ""; position: absolute; left: 0; top: 84%; width: 3px; height: 3px; border-radius: 50%;
  background: #ffe3a6; box-shadow: 0 0 4px 1px rgba(255, 150, 50, .9);
}
/* the room's edges: the ceiling, the page edge */
.fire__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 16, 19, .5) 0, rgba(15, 16, 19, 0) 10%),
    linear-gradient(270deg, rgba(15, 16, 19, .55) 0, rgba(15, 16, 19, 0) 12%);
}

/* the living fire: periods that never line up, so nothing repeats on a beat */
.fire__x--lit-l .fire__y { animation: fire-sway-l 5.3s ease-in-out infinite alternate; }
.fire__x--lit-r .fire__y { animation: fire-sway-r 4.1s ease-in-out -2.3s infinite alternate; }
.fire__x--sheen .fire__y { animation: fire-flick-a 2.3s linear infinite; }   /* in step with flame a: the slate follows the fire */
.fire__x--gloss .fire__y { animation: fire-flick-a 2.3s linear -.15s infinite; }   /* and the gloss on the iron, a beat behind */
.fire__x--halo .fire__y { animation: fire-glow 3.7s linear infinite; }
.fire__x--bed .fire__y { animation: fire-smoulder 2.9s ease-in-out infinite alternate; }
.fire__x--box .fire__y { animation: fire-breathe 4.3s linear infinite; }
.fire__x--fa .fire__y { animation: fire-flick-a 2.3s linear infinite, fire-lick-a 3.1s ease-in-out infinite alternate; }
.fire__x--fb .fire__y { animation: fire-flick-b 1.7s linear infinite, fire-lick-b 2.6s ease-in-out -1.2s infinite alternate; }
.fire__x--fc .fire__y { animation: fire-run 1.3s linear infinite, fire-flick-c 2.9s linear infinite; }
.fire__x--fd .fire__y { animation: fire-run .95s linear -.4s infinite, fire-flick-d 2.1s linear -.7s infinite; }
.fire__spark { animation: fire-rise-a 4.6s ease-out infinite; }
.fire__spark:nth-child(1) { left: 24%; animation-delay: -.4s; }
.fire__spark:nth-child(2) { left: 40%; animation-name: fire-rise-b; animation-duration: 5.9s; animation-delay: -2.1s; }
.fire__spark:nth-child(3) { left: 50%; animation-name: fire-rise-c; animation-duration: 3.8s; animation-delay: -1.2s; }
.fire__spark:nth-child(4) { left: 43%; animation-duration: 6.7s; animation-delay: -4.4s; }
.fire__spark:nth-child(5) { left: 33%; animation-name: fire-rise-c; animation-duration: 5.2s; animation-delay: -3.3s; }
.fire__spark:nth-child(6) { left: 29%; animation-name: fire-rise-b; animation-duration: 4.3s; animation-delay: -.9s; }
.fire__spark:nth-child(7) { left: 37%; animation-duration: 7.3s; animation-delay: -5.6s; }
@keyframes fire-flick-a {
  0% { opacity: .78; } 7% { opacity: .93; } 12% { opacity: .7; } 19% { opacity: .98; } 27% { opacity: .76; } 34% { opacity: .9; }
  41% { opacity: .66; } 50% { opacity: 1; } 58% { opacity: .8; } 66% { opacity: .94; } 73% { opacity: .71; } 81% { opacity: .97; }
  90% { opacity: .82; } 100% { opacity: .78; }
}
@keyframes fire-flick-b {
  0% { opacity: .42; } 9% { opacity: .6; } 16% { opacity: .3; } 25% { opacity: .55; } 37% { opacity: .36; } 46% { opacity: .68; }
  55% { opacity: .4; } 68% { opacity: .62; } 79% { opacity: .28; } 88% { opacity: .5; } 100% { opacity: .42; }
}
@keyframes fire-lick-a {
  0% { transform: none; }
  23% { transform: scale(1.015, 1.06) skewX(-1.2deg); }
  51% { transform: scale(.99, .97) skewX(.8deg); }
  77% { transform: scale(1.01, 1.045) skewX(-.5deg); }
  100% { transform: scale(1, .99) skewX(1deg); }
}
@keyframes fire-lick-b {
  0% { transform: translateX(0) scale(1, 1.02); }
  30% { transform: translateX(-1.5%) scale(.98, 1.08) skewX(1.5deg); }
  62% { transform: translateX(1%) scale(1.02, .96) skewX(-1deg); }
  100% { transform: translateX(.5%) scale(1, 1.05) skewX(.6deg); }
}
@keyframes fire-run { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes fire-flick-c { 0% { opacity: .3; } 18% { opacity: .5; } 31% { opacity: .22; } 47% { opacity: .46; } 63% { opacity: .28; } 80% { opacity: .52; } 100% { opacity: .3; } }
@keyframes fire-flick-d { 0% { opacity: .22; } 23% { opacity: .4; } 39% { opacity: .16; } 58% { opacity: .38; } 76% { opacity: .2; } 100% { opacity: .22; } }
@keyframes fire-sway-l { 0% { opacity: .6; } 30% { opacity: .95; } 55% { opacity: .72; } 80% { opacity: 1; } 100% { opacity: .78; } }
@keyframes fire-sway-r { 0% { opacity: .98; } 25% { opacity: .66; } 52% { opacity: .9; } 78% { opacity: .62; } 100% { opacity: .85; } }
@keyframes fire-glow {
  0% { opacity: .78; } 14% { opacity: .92; } 23% { opacity: .74; } 37% { opacity: 1; } 49% { opacity: .82; } 61% { opacity: .95; }
  70% { opacity: .76; } 84% { opacity: .98; } 100% { opacity: .78; }
}
@keyframes fire-smoulder { from { opacity: .38; } to { opacity: .72; } }
@keyframes fire-breathe { 0% { opacity: .86; } 20% { opacity: .97; } 33% { opacity: .84; } 52% { opacity: 1; } 68% { opacity: .88; } 85% { opacity: .96; } 100% { opacity: .86; } }
/* a spark lifts off the bed now and then: up most of the glass, drifting, gone well before the next */
@keyframes fire-rise-a { 0% { transform: translate(0, 0); opacity: 0; } 3% { opacity: 1; } 22% { opacity: .75; } 34% { transform: translate(7px, -74%); opacity: 0; } 100% { transform: translate(7px, -74%); opacity: 0; } }
@keyframes fire-rise-b { 0% { transform: translate(0, 0); opacity: 0; } 4% { opacity: 1; } 18% { opacity: .8; } 30% { transform: translate(-9px, -66%); opacity: 0; } 100% { transform: translate(-9px, -66%); opacity: 0; } }
@keyframes fire-rise-c { 0% { transform: translate(0, 0); opacity: 0; } 3% { opacity: 1; } 14% { transform: translate(4px, -30%); } 26% { opacity: .7; } 38% { transform: translate(-3px, -78%); opacity: 0; } 100% { transform: translate(-3px, -78%); opacity: 0; } }

/* the intro: the room starts dark with the glass black, the ember bed glows, the flames catch with a
   few false starts, then the glass, the halo and the light on the room come up (about 3s). JavaScript
   only (site.js sets data-fire once the photo and its maps are in); without it, the fire is simply lit. */
@media (prefers-reduced-motion: no-preference) {
  html.js .fire:not([data-fire]) .fire__x { opacity: 0; animation: fire-wake-1 .8s ease 4s forwards; }   /* a failsafe: lit at 4s whatever */
  html.js .fire:not([data-fire]) .fire__x--veil { opacity: .92; animation-name: fire-wake-veil; }
  html.js .fire:not([data-fire]) .fire__x--out { opacity: 1; animation-name: fire-wake-0; }
  .fire[data-fire="run"] .fire__x--veil { animation: fire-in-veil 3s ease-in-out both; }
  .fire[data-fire="run"] .fire__x--out { animation: fire-in-out 1.7s linear both; }
  .fire[data-fire="run"] .fire__x--bed { animation: fire-in-bed 1.2s ease-out both; }
  .fire[data-fire="run"] .fire__x--box { animation: fire-in-box 1.9s linear .25s both; }
  .fire[data-fire="run"] .fire__x--fa { animation: fire-in-flame 1.7s linear .7s both; }
  .fire[data-fire="run"] .fire__x--fb { animation: fire-in-flame 1.7s linear 1.05s both; }
  .fire[data-fire="run"] .fire__x--fc, .fire[data-fire="run"] .fire__x--fd { animation: fire-in-lit 1.2s ease 1.3s both; }
  .fire[data-fire="run"] .fire__x--halo { animation: fire-in-glow 2.2s ease-out .7s both; }
  .fire[data-fire="run"] .fire__x--lit-l, .fire[data-fire="run"] .fire__x--lit-r { animation: fire-in-lit 2.2s ease-in-out .9s both; }
  .fire[data-fire="run"] .fire__x--sheen, .fire[data-fire="run"] .fire__x--gloss { animation: fire-in-lit 1.8s ease-in-out .8s both; }
  .fire[data-fire="run"] .fire__x--logs { animation: fire-in-lit 1.8s ease-in-out 1s both; }
  .fire[data-fire="run"] .fire__x--sparks { animation: fire-in-lit .8s ease 1.5s both; }
}
@keyframes fire-wake-1 { to { opacity: 1; } }
@keyframes fire-wake-0 { to { opacity: 0; } }
@keyframes fire-wake-veil { to { opacity: .76; } }
@keyframes fire-in-veil { 0%, 22% { opacity: .92; } 100% { opacity: .76; } }
@keyframes fire-in-out {
  0%, 15% { opacity: 1; } 35% { opacity: .8; } 45% { opacity: .55; } 52% { opacity: .66; } 70% { opacity: .2; } 78% { opacity: .28; } 100% { opacity: 0; }
}
@keyframes fire-in-bed {
  0% { opacity: 0; } 14% { opacity: .25; } 30% { opacity: .7; } 38% { opacity: .5; } 58% { opacity: 1; } 70% { opacity: .82; } 100% { opacity: 1; }
}
@keyframes fire-in-box { 0% { opacity: 0; } 30% { opacity: .35; } 45% { opacity: .25; } 75% { opacity: .9; } 100% { opacity: 1; } }
@keyframes fire-in-flame {
  0% { opacity: 0; } 8% { opacity: .55; } 14% { opacity: .15; } 24% { opacity: .8; } 30% { opacity: .5; } 45% { opacity: 1; }
  55% { opacity: .7; } 72% { opacity: 1; } 82% { opacity: .85; } 100% { opacity: 1; }
}
@keyframes fire-in-glow { 0% { opacity: 0; } 30% { opacity: .35; } 38% { opacity: .2; } 70% { opacity: .9; } 100% { opacity: 1; } }
@keyframes fire-in-lit { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) {
  /* the phone: the whole stove, ceiling plate to its round base on the slab, centred under the header,
     the copy on the dark floor below; sized so the call buttons and the HETAS plate are on the first
     screen at 375x812 and up */
  .hero--photo { --fire-h: clamp(260px, calc(100svh - 476px), 470px); --frame-h: calc(var(--fire-h) * .94); min-height: 0; }
  .fire {
    left: 0; right: 0; bottom: auto; width: auto; height: var(--fire-h);
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 80%, rgba(0, 0, 0, .6) 92%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 80%, rgba(0, 0, 0, .6) 92%, transparent 100%);
  }
  /* the flue on the centre line; the frame's sides melt into the dark */
  .fire__frame {
    right: auto; left: calc(50% - var(--frame-h) * var(--ar) * .4726);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  }
  .hero--photo .hero__copy { padding: calc(var(--fire-h) - 56px) 0 40px; }
  .fire__shade { background: linear-gradient(180deg, rgba(15, 16, 19, .4) 0, rgba(15, 16, 19, 0) 9%); }
}
@media (max-width: 560px) {
  /* the phone: the photo runs edge to edge (a touch wider than the screen, since the flue sits at 47%
     of it), so the room's walls stay in the picture instead of a dark void either side; the frame is
     taller than the fire, so it shows the glass and the log store above the headline; the flue runs up out of shot */
  .hero--photo { --frame-h: max(calc(var(--fire-h) * .94), calc(106vw / var(--ar))); }
  .fire__frame {
    top: calc(var(--fire-h) * .5 - var(--frame-h) * .7);
    -webkit-mask-image: none; mask-image: none;
  }
}
/* ------------------------------------------------------------------ bands and the flue that runs through them */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); position: relative; }
.band { position: relative; padding: clamp(64px, 8vw, 120px) 0; }
.band--slate { background: transparent; }
.band--plaster {
  background-color: var(--plaster);
  background-image:
    radial-gradient(60% 80% at 15% 20%, rgba(212, 197, 182, .35), rgba(212, 197, 182, 0)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='360'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' seed='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0 0.35  0 0 0 0.55 -0.12'/></filter><rect width='360' height='360' filter='url(%23p)' opacity='.5'/></svg>");
}
.band--sea { background: linear-gradient(180deg, #13171c, #0f1216); }
.band--fire { background: radial-gradient(70% 70% at 80% 30%, rgba(184, 71, 15, .18), rgba(184, 71, 15, 0) 70%), var(--slate-1); }
.band--hearth { background: radial-gradient(60% 90% at 22% 100%, rgba(219, 90, 23, .22), rgba(219, 90, 23, 0) 70%), #141416; }

.flued { position: relative; }
.spine-wrap { display: none; }
.plate { display: none; }

@media (min-width: 1100px) {
  .flued .wrap, .last .wrap { padding-left: calc(var(--gut) + var(--flue-pad)); }
  .spine-wrap {
    display: block; position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 2; pointer-events: none;
    max-width: var(--wrap); margin: 0 auto;
  }
  .spine, .pipe {
    position: absolute; top: 0; bottom: 0; left: calc(var(--gut) + var(--flue-x)); width: var(--flue-w);
    background: linear-gradient(90deg, #0b0c0e 0%, #2d3138 22%, #3B424D 34%, #1c1f24 52%, #08090a 100%);
    box-shadow: 14px 0 30px -10px rgba(0, 0, 0, .55);
  }
  /* the long highlight a matt black pipe picks up */
  .spine::before, .pipe::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 24%; width: 7%; background: rgba(154, 164, 178, .08);
  }
  /* locking bands, one per length, a little proud of the pipe */
  .spine::after, .pipe::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -5px; right: -5px;
    background:
      linear-gradient(180deg, rgba(123, 133, 146, .55) 0 1.5px, rgba(0, 0, 0, 0) 1.5px 9.5px, rgba(0, 0, 0, .6) 9.5px 11px) 0 0 / 100% 460px repeat-y,
      linear-gradient(90deg, #0b0c0e 0%, #2d3138 22%, #3B424D 34%, #1c1f24 52%, #08090a 100%);
    -webkit-mask: linear-gradient(180deg, #000 0 11px, transparent 11px 460px) 0 140px / 100% 460px repeat-y;
    mask: linear-gradient(180deg, #000 0 11px, transparent 11px 460px) 0 140px / 100% 460px repeat-y;
  }
  /* the register plate each band's ceiling hangs at, where the flue passes through */
  .flued .plate, .last .plate, .phead__flue .plate {
    display: block; position: absolute; top: calc(-1 * clamp(64px, 8vw, 120px) - 11px); z-index: 3;
    left: calc(var(--gut) + var(--flue-x) - 56px); width: calc(var(--flue-w) + 112px); height: 22px;
    background: linear-gradient(180deg, #4b525d 0, #2a2e35 35%, #121417 100%);
    border-radius: 2px;
    box-shadow: 0 2px 0 rgba(107, 116, 128, .55) inset, 0 8px 16px -6px rgba(0, 0, 0, .7);
  }
  .flued .plate::before, .flued .plate::after, .last .plate::before, .last .plate::after, .phead__flue .plate::before, .phead__flue .plate::after {
    content: ""; position: absolute; top: 8px; width: 6px; height: 6px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #8d96a2 0 1px, #0b0c0e 1.5px);
  }
  .flued .plate::before, .last .plate::before, .phead__flue .plate::before { left: 12px; }
  .flued .plate::after, .last .plate::after, .phead__flue .plate::after { right: 12px; }
  /* a heading hung off the flue on a wall band */
  .flued .hung, .phead .hung { position: relative; }
  .flued .hung::before, .phead .hung::before {
    content: ""; position: absolute; top: .42em; height: 14px;
    left: calc(-1 * var(--flue-pad) + var(--flue-x) - 7px); width: calc(var(--flue-w) + 14px);
    background: linear-gradient(90deg, #0b0c0e 0%, #2d3138 22%, #4a5260 34%, #1c1f24 52%, #08090a 100%);
    border-radius: 3px; box-shadow: 0 2px 0 rgba(123, 133, 146, .5) inset; z-index: 3;
  }
  .flued .hung::after, .phead .hung::after {
    content: ""; position: absolute; top: calc(.42em + 4px); height: 6px;
    left: calc(-1 * var(--flue-pad) + var(--flue-x) + var(--flue-w) + 7px); width: calc(var(--flue-pad) - var(--flue-x) - var(--flue-w) - 20px);
    background: #14161a; border-radius: 0 3px 3px 0; z-index: 3;
  }
  .band--plaster .hung::after { background: #23262b; }
}

/* ------------------------------------------------------------------ a photo standing on its ledge
   Every job photo stands on a thin shelf of honed slate cut to exactly its width: from the top, a
   sliver of the lit top face, the arris (one bright hairline where the light catches the front
   edge), the front face, smooth as honed stone, a darker foot, and a soft contact shadow on the
   wall below. On the dark bands the arris is warm, firelight, to lift the ledge off the slate; on
   the plaster it is a cool light line and the shadow is warm and soft. The hearth's shape is not
   drawn into a 12px ledge: a caption that names it carries a fine-line mark of it instead (.hi). */
:root {
  --ledge-h: 12px;
  --ledge-top: #4c5057;
  --ledge-arris: #b3a28e;
  --ledge-face: #383b41;
  --ledge-face-2: #2d2f34;
  --ledge-foot: #141518;
  --ledge-shadow: rgba(0, 0, 0, .62);
  --photo-shadow: 0 14px 26px -14px rgba(0, 0, 0, .75);
}
.band--plaster {
  --ledge-top: #585c63;
  --ledge-arris: #e6e0d7;
  --ledge-face: #3b3e44;
  --ledge-face-2: #2d2f34;
  --ledge-foot: #1f2125;
  --ledge-shadow: rgba(58, 42, 28, .4);
  --photo-shadow: 0 14px 26px -14px rgba(58, 42, 28, .55);
}
.lay { position: relative; margin: 0; isolation: isolate; }
.lay img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; position: relative; z-index: 1; box-shadow: var(--photo-shadow); }
.ledge {
  display: block; position: relative; z-index: 2; height: var(--ledge-h); pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .3) 0 1px, rgba(0, 0, 0, 0) 1px),
    linear-gradient(180deg, var(--ledge-top) 0 3px, var(--ledge-arris) 3px 4px, var(--ledge-face) 4px, var(--ledge-face-2) calc(100% - 1px), var(--ledge-foot) calc(100% - 1px));
}
/* the contact shadow: tight and dark right under the foot, soft below, fading off at the ends */
.ledge::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 15px;
  background: linear-gradient(180deg, var(--ledge-shadow) 0, rgba(0, 0, 0, 0) 3px), linear-gradient(180deg, var(--ledge-shadow) 0, rgba(0, 0, 0, 0) 100%);
  opacity: .8;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  mask: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
}
.lay figcaption { position: relative; z-index: 1; margin-top: 16px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.lay figcaption b, .gal__pair figcaption b { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: var(--plaster); font-weight: 700; margin-bottom: 2px; }
.band--plaster .lay figcaption { color: var(--muted-ink); }
.band--plaster .lay figcaption b { color: var(--ink); }
/* the hearth's shape, in plan, as a fine line: right-aligned under the ledge's end */
.hi { width: 32px; height: 24px; flex: none; margin: -1px -3px -6px 0; color: var(--cream); opacity: .9; }
.band--plaster .hi { color: var(--navy); opacity: 1; }
@media (max-width: 640px) {
  :root { --ledge-h: 10px; }
  .ledge { background-image: linear-gradient(180deg, rgba(0, 0, 0, .3) 0 1px, rgba(0, 0, 0, 0) 1px),
      linear-gradient(180deg, var(--ledge-top) 0 2px, var(--ledge-arris) 2px 3px, var(--ledge-face) 3px, var(--ledge-face-2) calc(100% - 1px), var(--ledge-foot) calc(100% - 1px)); }
  .lay figcaption { margin-top: 13px; }
  .hi { width: 29px; height: 22px; margin: -1px -3px -5px 0; }
}

/* rows of photos stand on one line: each row's ledges level, its captions starting together. Each
   figure spans three rows of its row (photo, ledge, caption) on a subgrid; the columns are uneven,
   so the photos differ in size and the row's skyline varies while its ledge line holds. */
.fresh__row, .trio, .quad, .story__jobs, .flue__shots, .gal__row { row-gap: 0 !important; align-items: end; }
:is(.fresh__row, .trio, .quad, .story__jobs, .flue__shots, .gal__row) > figure {
  grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; margin: 0 0 var(--row-gap, 52px);
}
:is(.fresh__row, .trio, .quad, .story__jobs, .flue__shots, .gal__row) > figure > :first-child { align-self: end; }
:is(.fresh__row, .trio, .quad, .story__jobs, .flue__shots, .gal__row) > figure > figcaption { align-self: start; }

/* pairs: two photos on one ledge, bottoms level, the second a little in front of the first. Each
   photo has its own ledge; level, identical and overlapping, they read as one unbroken shelf under
   both (as the installs page's pairs, which share one ledge element). */
:is(.duo, .pair, .ba__pair, .phead__fig--pair) { display: grid; grid-template-rows: auto auto auto; align-items: end; }
:is(.duo, .pair, .ba__pair, .phead__fig--pair) > figure {
  grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; margin: 0; position: relative; isolation: isolate;
}
:is(.duo, .pair, .ba__pair, .phead__fig--pair) > figure > :first-child { align-self: end; }
:is(.duo, .pair, .ba__pair, .phead__fig--pair) > figure > figcaption { align-self: start; }
:is(.duo, .pair, .ba__pair, .phead__fig--pair) > figure:nth-child(2) { margin-left: -12%; z-index: 1; }
:is(.duo, .pair, .ba__pair, .phead__fig--pair) > figure:first-child figcaption { padding-right: 15%; }
:is(.duo, .pair, .ba__pair, .phead__fig--pair) img { box-shadow: var(--photo-shadow); }
/* the one in front throws a little shadow back onto the one behind (only onto the photo: clipped at
   its foot, so none of it lands on the ledge) */
:is(.duo, .pair, .ba__pair, .phead__fig--pair) > figure:nth-child(2) img, .gal__pair a:nth-child(2) img {
  box-shadow: var(--photo-shadow), -12px 0 22px -12px rgba(0, 0, 0, .55); clip-path: inset(-40px -40px 0 -40px);
}
/* under a pair the two contact shadows meet at the joint instead of doubling up under the overlap:
   the back one stops where the front one starts (--ov: the overlap as a share of the back photo's
   width, 12% of the front one's column), and neither fades at the joint */
:is(.duo, .pair, .ba__pair, .phead__fig--pair) { --ov: 12%; }
.duo { --ov: 9.23%; }                 /* 12% x 1 / 1.3 */
.duo--flue { --ov: 9.12%; }           /* 12% x .76 / 1 */
:is(.duo, .pair, .ba__pair, .phead__fig--pair) > figure:first-child .ledge::after {
  right: var(--ov);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 10px);
  mask: linear-gradient(90deg, transparent 0, #000 10px);
}
:is(.duo, .pair, .ba__pair, .phead__fig--pair) > figure:nth-child(2) .ledge::after {
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 10px), transparent 100%);
  mask: linear-gradient(90deg, #000 calc(100% - 10px), transparent 100%);
}

/* ------------------------------------------------------------------ recent installs */
.fresh { padding-top: clamp(72px, 9vw, 130px); }
.fresh__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 56px; }
.fresh__head p { max-width: 30em; margin: 0; color: var(--muted); }
.fresh__row { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .9fr) minmax(0, 1.04fr); column-gap: clamp(28px, 4.6vw, 72px); padding: 0 2%; }
@media (max-width: 900px) {
  /* the newest job across the top, the next two side by side on one line under it */
  .fresh__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 22px; padding: 0 4%; }
  .fresh__row > .lay:first-child { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ what we do */
.svc__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px 64px; align-items: start; margin-bottom: 64px; }
.svc__intro { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; margin: 0; }
.svc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 96px 56px; }
.svc__item { display: grid; gap: 30px; align-content: start; }
.svc__item p { margin: 0; }
.svc__text { max-width: 34em; }
.svc__item--fit { grid-column: 1 / span 7; }
.svc__item--out { grid-column: 8 / span 5; margin-top: 140px; }
.svc__item--flue { grid-column: 1 / span 6; margin-top: -60px; }
.svc__item--hearth { grid-column: 7 / span 6; align-self: center; margin-top: 60px; }
.duo { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
/* a second photo in a mount, where it overlaps the first on the plaster */
.duo--flue .duo__b img, .duo--tight .duo__b img, .duo--own .duo__b img { border: 7px solid var(--plaster); }
.duo--flue { grid-template-columns: minmax(0, 1fr) minmax(0, .76fr); }
.duo--flue img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pair__a img { filter: saturate(.75); }
.pair figcaption { font-size: 13px; font-weight: 700; margin-top: 14px; color: var(--muted-ink); }
.band--slate .pair figcaption, .band--fire .pair figcaption { color: var(--muted); }
/* the five hearth shapes, in plan: honed slabs hanging from one wall line, each named */
.hearths { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 34px 30px; align-items: start; margin-bottom: 12px; }
.hearths .hs:nth-child(-n+3) { grid-column: span 2; }
.hearths .hs:nth-child(4) { grid-column: 2 / span 2; }
.hearths .hs:nth-child(5) { grid-column: 4 / span 2; }
.hs { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; color: var(--muted-ink); }
.hs svg { display: block; width: 100%; height: auto; overflow: visible; color: #8a8178; }
.band--slate .hs svg { color: #8f99a6; }
@media (max-width: 1000px) {
  .svc__head { grid-template-columns: 1fr; margin-bottom: 48px; }
  .svc__grid { grid-template-columns: 1fr; gap: 72px; }
  .svc__item--fit, .svc__item--out, .svc__item--flue, .svc__item--hearth { grid-column: auto; margin-top: 0; }
  .duo { padding: 0 6%; }
  .svc__item--out .pair { padding-right: 8%; }
}
@media (max-width: 620px) {
  .hearths { gap: 24px 16px; }
}

/* ------------------------------------------------------------------ the islands and the map */
.isles__head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 64px; align-items: start; margin-bottom: 48px; }
.isles__head p { margin: 0; font-size: clamp(17px, 1.35vw, 20px); color: #e2dbd0; }
.isles__map { position: relative; }
.map { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(107, 118, 132, .25); }
.map__lbl { font: 600 15px/1 var(--body); fill: #efe8dc; paint-order: stroke; stroke: #14171b; stroke-width: 4px; stroke-linejoin: round; }
.map__lbl--minor { font-size: 13px; fill: #cfc6b9; }
.map__lbl--home { font: 400 24px/1 var(--display); fill: #fff; }
.map__lbl--sub { font-size: 13px; font-weight: 500; fill: var(--flame-lt); }
.map__lbl--port { font-size: 13px; font-style: italic; font-weight: 500; fill: #aeb7c2; }
.map__sea { font: italic 500 15px/1 var(--body); fill: #5f6c7b; letter-spacing: .12em; }
.map__port { fill: #14171b; stroke: #aeb7c2; stroke-width: 2; }
.map .ferry { fill: none; stroke: #e7dccb; stroke-width: 2.6; stroke-dasharray: 9 8; stroke-linecap: round; opacity: .85; animation: sail 2.2s linear infinite; }
@keyframes sail { to { stroke-dashoffset: -34px; } }
.map__halo { transform-box: fill-box; transform-origin: center; animation: ember 2.8s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -.37s); }
@keyframes ember { from { opacity: .55; transform: scale(.85); } to { opacity: 1; transform: scale(1.1); } }
.map__scale text { font: 600 13px/1 var(--body); fill: #d4c5b6; }
.isles__dog {
  position: absolute; right: 2.5%; top: 3%; width: clamp(150px, 19%, 230px); margin: 0; z-index: 1;
  background: var(--plaster); padding: 7px 7px 0; transform: rotate(1.6deg);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9);
}
.isles__dog img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.isles__dog figcaption { padding: 9px 4px 11px; font-size: 13.5px; line-height: 1.35; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) {
  .isles__head { grid-template-columns: 1fr; }
  .map__lbl--minor, .map__sea, .map__lbl--sub { display: none; }
  .map__lbl { font-size: 30px; stroke-width: 7px; }
  .map__lbl--port { display: none; }
  .map__lbl--hide-s { display: none; }
  .map__lbl--home { font-size: 34px; }
  .map__lbl--east { transform: translateY(30px); }
  .map__scale text { font-size: 22px; }
  .isles__dog { position: relative; right: auto; top: auto; width: 56%; margin: 20px 4% 0 auto; }
}

/* ------------------------------------------------------------------ reviews, each on a slab */
.words .h2 { max-width: 17em; margin-bottom: 64px; }
.words__wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 34px 30px; align-items: start; }
.slab { position: relative; margin: 0; padding: 38px 40px 40px; isolation: isolate; color: #f3ede3; }
/* honed slate, lying flat. Everything at its edge is a hard drop shadow, so it follows a curved or
   chamfered front exactly and never runs up the sides: a 1px light arris along the front, the slab's
   own edge face a true 5px under it, then a soft shadow */
.slab__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; filter: drop-shadow(0 1px 0 rgba(246, 234, 219, .3)) drop-shadow(0 5px 0 #1a1b1f) drop-shadow(0 16px 20px rgba(0, 0, 0, .5)); }
.slab p { font-size: 18px; line-height: 1.55; margin: 0 0 16px; }
.slab p::before { content: "\201C"; font: 400 50px/0 var(--display); color: var(--flame); vertical-align: -.38em; margin-right: 4px; }
.slab footer { font-weight: 800; color: var(--cream); }
.slab footer::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--flame); vertical-align: middle; margin-right: 10px; }
.slab--lead { grid-column: 1 / span 6; grid-row: 1 / span 2; padding: 60px 64px 110px; }
.slab--lead p { font: 500 clamp(24px, 2.4vw, 34px)/1.35 var(--body); letter-spacing: -.01em; }
.slab--lead p::before { font-size: 80px; vertical-align: -.42em; }
.slab--lead .slab__bg { filter: drop-shadow(0 1px 0 rgba(246, 234, 219, .3)) drop-shadow(0 6px 0 #1a1b1f) drop-shadow(0 22px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 60px rgba(219, 90, 23, .16)); }
.slab--sq { grid-column: 7 / span 6; grid-row: 1; }
.slab--ch { grid-column: 8 / span 5; grid-row: 2; padding-bottom: 56px; }
.slab--cv { grid-column: 2 / span 5; grid-row: 3; margin-top: 10px; padding-bottom: 74px; }
.slab--sq2 { grid-column: 7 / span 5; grid-row: 3; margin-top: 70px; }
@media (max-width: 1100px) {
  .slab--lead { grid-column: 1 / -1; grid-row: auto; padding: 44px 40px 92px; }
  .slab--sq, .slab--cv { grid-column: 1 / span 6; grid-row: auto; margin-top: 0; }
  .slab--ch, .slab--sq2 { grid-column: 7 / span 6; grid-row: auto; margin-top: 0; }
}
@media (max-width: 640px) {
  .words__wall { grid-template-columns: 1fr; gap: 26px; }
  .slab--lead, .slab--sq, .slab--cv, .slab--ch, .slab--sq2 { grid-column: auto; margin-top: 0; }
  /* not a stack of equal slabs: they step in from one side, then the other */
  .slab--sq { margin-right: 9%; }
  .slab--ch { margin-left: 9%; }
  .slab--cv { margin-right: 5%; }
  .slab--sq2 { margin-left: 6%; }
  .slab { padding: 30px 28px 32px; }
  .slab--cv { padding-bottom: 60px; }
  .slab--ch { padding-bottom: 48px; }
  .slab--lead { padding: 36px 30px 80px; }
}

/* ------------------------------------------------------------------ us */
.us__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
.us__text { grid-column: 1 / span 5; grid-row: 1 / span 2; padding-top: 12px; }
.us__text .h2 { margin-bottom: 28px; }
.us__text p { font-size: 18px; }
.us__home { grid-column: 6 / span 7; grid-row: 1; margin: 0; position: relative; }
.us__home img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .6); }
.us__home figcaption { text-align: right; padding-right: 40%; }
.us__van { grid-column: 10 / span 3; grid-row: 2; margin: -96px -24px 0 24px; z-index: 1; position: relative; }
.us__van img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 40% 60%; border: 8px solid var(--plaster); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .55); }
.us figcaption { font-size: 14px; font-weight: 700; color: var(--muted-ink); margin-top: 10px; }
@media (max-width: 900px) {
  .us__grid { grid-template-columns: 1fr; }
  .us__text, .us__home, .us__van { grid-column: auto; grid-row: auto; }
  .us__home { margin-top: 24px; }
  .us__home figcaption { text-align: left; padding-right: 0; }
  .us__van { width: 52%; margin: 18px 0 0 auto; }
}

/* ------------------------------------------------------------------ the last room: the flue comes down into the stove */
.last { padding-bottom: clamp(56px, 7vw, 96px); }
.last__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 64px; align-items: end; }
.last__stove { width: 300px; margin-top: calc(-1 * clamp(64px, 8vw, 120px)); align-self: start; }
.last__stove .stove { width: 100%; }
.last__text { padding-bottom: 60px; }
.last__text .h2 { margin-bottom: 22px; font-size: clamp(32px, 4.2vw, 60px); }
.last__text p { font-size: 19px; max-width: 32em; color: #e9e1d5; }
.last__text p a { color: var(--flame-lt); }
.last__text .cta { margin-top: 28px; }
@media (min-width: 1100px) {
  /* the stove sits under the page flue: its pipe lines up with the flue's */
  .last__stove { width: calc(var(--flue-w) * 640 / 116); margin-left: calc(var(--flue-x) + var(--flue-w) / 2 - var(--flue-pad) - var(--flue-w) * 320 / 116); }
}
@media (max-width: 1099px) {
  .last__grid { grid-template-columns: 1fr; gap: 20px; }
  .last__stove { width: min(240px, 60vw); margin: -24px auto 0; }
  .last__text { padding-bottom: 0; }
}

/* ------------------------------------------------------------------ inner page heads: one length of flue down from the ceiling */
.phead {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 90% at 85% 80%, rgba(150, 52, 12, .3), rgba(150, 52, 12, 0) 70%), linear-gradient(180deg, #141518, #1a1a1d);
  padding: 64px 0 80px;
}
.phead__glow { position: absolute; z-index: -1; right: -300px; bottom: -500px; width: 1200px; height: 1100px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 128, 40, .28), rgba(219, 90, 23, .1) 50%, rgba(219, 90, 23, 0)); animation: breathe 3.9s linear infinite; }
.phead__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.phead__flue { display: none; }
.phead h1 { font-size: clamp(36px, 5vw, 72px); line-height: 1.02; margin-bottom: 20px; color: #fbf7ef; text-shadow: 18px 6px 60px rgba(219, 90, 23, .35); }
.phead__lede { font-size: clamp(17px, 1.4vw, 20px); max-width: 34em; color: #e9e1d5; margin-bottom: 28px; }
.phead__fig { justify-self: center; width: min(360px, 80%); }
.phead__fig--pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(520px, 100%); }
.phead__stove { justify-self: center; width: min(300px, 70%); }
@media (min-width: 1100px) {
  .phead__in { padding-left: calc(var(--gut) + var(--flue-pad)); }
  .phead { padding-top: 88px; }
  .phead__flue { display: block; position: absolute; top: -88px; bottom: -80px; left: 0; right: 0; pointer-events: none; z-index: 2; }
  .phead__flue .pipe { left: calc(var(--gut) + var(--flue-x)); }
  .phead__flue .plate { top: auto; bottom: -11px; }
  .phead--404 .phead__flue { display: none; }
}
@media (max-width: 860px) {
  .phead { padding: 36px 0 52px; }
  .phead__in { grid-template-columns: 1fr; gap: 36px; }
  .phead__fig { width: 64%; }
  .phead__fig--pair { width: min(100%, 460px); }
  .phead__stove { order: -1; width: 46%; margin-bottom: -12px; }
  .phead .cta { flex-wrap: nowrap; gap: 10px; }
  .phead .cta .btn { padding: 12px; font-size: 15.5px; white-space: nowrap; min-height: 54px; }
  .phead .cta .btn--ember { flex: 1.45 1 auto; }
  .phead .cta .btn--wa { flex: 1 1 auto; }
  .phead .wa-us { display: none; }
}

/* ------------------------------------------------------------------ stoves page */
.sv__text { max-width: 36em; }
.sv__text .h2 { margin-bottom: 22px; }
.sv__text p { font-size: 18px; }
.sv__text--wide { max-width: 46em; margin-bottom: 56px; }
.sv__text .aside { font-size: 15px; color: var(--muted); border-left: 3px solid var(--flame); padding-left: 14px; }
.band--plaster .sv__text .aside { color: var(--muted-ink); }
.sv__split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.sv__split--rev .sv__text { order: 2; }
.trio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .88fr); column-gap: clamp(28px, 4.6vw, 72px); margin-top: 56px; padding: 0 2%; }
.duo--own, .duo--boil, .duo--tight, .duo--build { padding: 0 4%; }
.duo .lay figcaption { padding: 0 2px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.ba__pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ba__pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ba__b img { filter: saturate(.7) brightness(.9); }
.ba figcaption { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 14px; }
.flue__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.flueparts { display: block; width: 100%; height: auto; }
.fp-name { font: 800 21px/1 var(--body); fill: var(--ink); }
.fp-note { font: 500 16px/1 var(--body); fill: var(--muted-ink); }
.fp-fire { animation: breathe 2.2s linear infinite; }
.flue__side .h2 { margin-bottom: 24px; }
.flue__side > p { font-size: 18px; max-width: 34em; }
.flue__shots { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); column-gap: 36px; margin-top: 44px; --row-gap: 44px; }
.hearths--big { max-width: 1040px; margin: 0 auto 72px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 36px; }
.hearths--big .hs:nth-child(n) { grid-column: auto; }
.hearths--big .hs { color: var(--muted); font-size: 16px; }
.quad { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .9fr) minmax(0, 1.14fr) minmax(0, .88fr); column-gap: clamp(24px, 3.6vw, 52px); padding: 0 2%; }
.brands { font: 400 clamp(26px, 3vw, 42px)/1.35 var(--display); margin: 28px 0 24px; color: #fbf7ef; text-wrap: balance; }
.brands i { font-style: normal; color: var(--flame); padding: 0 .15em; }
.brands__note { font-size: 18px; color: #e2dbd0; max-width: 40em; }
@media (max-width: 1000px) {
  .flue__shots { padding: 0 5%; column-gap: 26px; }
  .sv__split { grid-template-columns: 1fr; gap: 40px; }
  .sv__split--rev .sv__text { order: 0; }
  .ba { grid-template-columns: 1fr; gap: 40px; }
  .flue__grid { grid-template-columns: 1fr; gap: 48px; }
  .flue__parts { max-width: 440px; }
  .quad { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 26px; }
  .hearths--big { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hearths--big .hs:nth-child(-n+3) { grid-column: span 2; }
  .hearths--big .hs:nth-child(4) { grid-column: 2 / span 2; }
  .hearths--big .hs:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 640px) {
  .trio { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 22px; padding: 0 4%; }
  .trio > .lay:first-child { grid-column: 1 / -1; }
  .ba { padding-right: 8%; }
  .fp-name { font-size: 26px; }
  .fp-note { font-size: 20px; }
}

/* ------------------------------------------------------------------ installs page: month by month, photos on their hearths */
.month { padding: clamp(56px, 7vw, 100px) 0 clamp(40px, 5vw, 70px); }
.month:nth-of-type(even) { background: radial-gradient(70% 60% at 20% 30%, rgba(184, 71, 15, .12), rgba(184, 71, 15, 0) 70%); }
.month__h { font-size: clamp(30px, 3.4vw, 48px); margin-bottom: 48px; display: flex; align-items: center; gap: 22px; }
.month__h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212, 197, 182, .35), rgba(212, 197, 182, 0)); }
/* each month is a run of rows; each row stands on one ledge line, its photos sized on a pattern of
   its own (big, small, mid; then small, mid, big ...), so no two rows in a month share a skyline */
.gal { padding: 0 2%; }
.month--2 .gal { padding: 0 6%; }
.gal__row { display: grid; grid-template-rows: auto auto auto; column-gap: clamp(28px, 4vw, 64px); }
.gal__row--bsm { grid-template-columns: minmax(0, 1.24fr) minmax(0, .82fr) minmax(0, 1fr); }
.gal__row--smb { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr) minmax(0, 1.24fr); }
.gal__row--mbs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr) minmax(0, .82fr); }
.gal__row--q1 { grid-template-columns: minmax(0, 1.18fr) minmax(0, .84fr) minmax(0, 1.02fr) minmax(0, .9fr); }
.gal__row--q2 { grid-template-columns: minmax(0, .9fr) minmax(0, 1.12fr) minmax(0, .84fr) minmax(0, 1.18fr); }
.gal__row--ps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); }
.gal__row--sp { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); }
.gal__row--sb { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.month--2 .gal__row--ps { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.gal__row--one { grid-template-columns: minmax(0, 1fr); }
.gal__row--one > .lay { width: 78%; justify-self: end; }
.gal .lay--wide img { aspect-ratio: 4 / 3; }
.gal .lay a { display: block; cursor: zoom-in; position: relative; z-index: 1; }
.gal .lay a:focus-visible { outline-offset: 6px; }
/* a before and after on one ledge: the after a little in front, the ledge under both */
.gal__row > .gal__pair { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative; isolation: isolate; }
.month--2 .gal__row > .gal__pair { grid-column: span 1; }
.gal__pair a { display: block; cursor: zoom-in; grid-row: 1; align-self: end; position: relative; }
.gal__pair a:first-child { grid-column: 1; }
.gal__pair a:first-child img { filter: saturate(.7) brightness(.9); }
.gal__pair a:nth-child(2) { grid-column: 2; margin-left: -12%; z-index: 1; }
.gal__pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--photo-shadow); }
.gal__pair .ledge { grid-row: 2; grid-column: 1 / -1; }
.gal__pair figcaption { grid-row: 3; grid-column: 1 / -1; margin-top: 16px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 30em; }
@media (max-width: 1000px) {
  .gal__row--q1 { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .gal__row--q2 { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
@media (max-width: 640px) {
  /* phones: two columns. In a row of three the big one takes the full width (first, last or, packed
     dense, under the other two); a before and after takes the full width, the photo with it most */
  .gal { padding: 0 3%; }
  .month--2 .gal { padding: 0 3%; }
  .gal__row { column-gap: 20px; grid-auto-flow: row dense; --row-gap: 40px; }
  .gal__row--bsm { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .gal__row--smb, .gal__row--mbs { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .gal__row--bsm > :nth-child(1), .gal__row--mbs > :nth-child(2), .gal__row--smb > :nth-child(3) { grid-column: 1 / -1; }
  .gal__row--ps, .gal__row--sp, .month--2 .gal__row--ps { grid-template-columns: minmax(0, 1fr); }
  .gal__row > .gal__pair, .month--2 .gal__row > .gal__pair { grid-column: 1 / -1; }
  .gal__row--ps > .lay { width: 70%; justify-self: end; }
  .gal__row--sp > .lay { width: 70%; justify-self: start; }
  .gal__row--sb { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .gal__row--one > .lay { width: 100%; }
  .gal .lay figcaption { font-size: 14px; }
}
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 12, .94); display: grid; place-items: center; padding: 56px 72px; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lb__fig img { max-height: calc(100vh - 170px); width: auto; max-width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lb__fig p { margin: 0; color: #e9e1d5; font-size: 16px; text-align: center; max-width: 46em; }
.lb button { position: absolute; background: rgba(244, 241, 234, .08); color: var(--plaster); border: 2px solid rgba(244, 241, 234, .4); border-radius: 3px; min-height: 48px; min-width: 48px; font: 700 15px/1 var(--body); cursor: pointer; display: grid; place-items: center; }
.lb__close { top: 16px; right: 16px; padding: 0 16px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
html.lb-open { overflow: hidden; }
@media (max-width: 640px) { .lb { padding: 64px 10px 80px; } .lb__prev, .lb__next { top: auto; bottom: 14px; transform: none; } .lb__prev .ic { transform: scaleX(-1); } }

/* ------------------------------------------------------------------ areas page */
.phead--areas .phead__in { grid-template-columns: minmax(0, 1fr); }
.phead--areas .phead__copy { max-width: 900px; }
.area-map { padding-top: clamp(40px, 5vw, 64px); }
.isles__map--big .map { box-shadow: 0 40px 90px -40px #000, 0 0 0 1px rgba(107, 118, 132, .3); }
.map__key { margin: 20px 0 0; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.map__key .k { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-left: 10px; vertical-align: middle; }
.map__key .k:first-child { margin-left: 0; }
.k--home { background: var(--plaster); box-shadow: 0 0 0 3px var(--ember); }
.k--job { background: #ffd27a; box-shadow: 0 0 10px 3px rgba(255, 138, 42, .7); }
.k--ferry { width: 30px !important; height: 0 !important; border-radius: 0 !important; border-top: 3px dashed #e7dccb; }
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 40px; align-items: start; }
.story__text { grid-column: 1 / span 6; }
.story__text .h2 { margin-bottom: 24px; }
.story__text p { font-size: 18px; color: #e2dbd0; }
.story__dog { grid-column: 8 / span 4; margin: 0; background: var(--plaster); padding: 8px 8px 0; transform: rotate(1.4deg); box-shadow: 0 30px 50px -20px #000; }
.story__dog img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.story__dog figcaption { padding: 10px 4px 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.story__jobs { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, .88fr) minmax(0, 1.04fr); column-gap: clamp(24px, 3.6vw, 52px); padding: 0 2%; margin-top: 20px; }
.places .h2 { margin-bottom: 44px; }
.places__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 56px; }
.places__grid h3 { font-size: 19px; color: var(--navy); }
.places__grid p { margin: 0; font-size: 17px; line-height: 1.7; }
@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .story__text, .story__dog { grid-column: 1 / -1; }
  .story__dog { width: 62%; justify-self: end; }
  .story__jobs { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 22px; }
  .places__grid { grid-template-columns: 1fr 1fr; gap: 28px 30px; }
}
@media (max-width: 560px) { .places__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ contact page */
.ways { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; max-width: 560px; }
.way {
  display: flex; align-items: center; gap: 18px; padding: 16px 22px; text-decoration: none; position: relative; isolation: isolate;
  border-left: 4px solid var(--flame); background: linear-gradient(90deg, rgba(46, 49, 53, .9), rgba(46, 49, 53, .35));
}
.way .ic { width: 28px; height: 28px; color: var(--flame-lt); }
.way span { display: grid; font: 400 clamp(22px, 2.6vw, 32px)/1.15 var(--display); color: #fff; overflow-wrap: anywhere; }
.way small { font: 700 14px/1.4 var(--body); color: var(--cream); }
.way--mail span { font: 700 clamp(19px, 1.9vw, 24px)/1.25 var(--body); }
.way--call { background: linear-gradient(90deg, var(--ember), rgba(184, 71, 15, .6)); border-left-color: var(--yellow); }
.way--call .ic { color: #fff; }
.way:hover { filter: brightness(1.12); }
.book__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.book__text .h2 { margin-bottom: 24px; }
.book__text p { font-size: 18px; }
.book__plain { font-weight: 600; }
.book__plain a { color: var(--ember); }
.book__pics { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.book__pics figure { margin: 0; }
.book__van img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 40% 60%; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .5); }
.book__dogs { margin: 200px 0 0 -40% !important; position: relative; z-index: 1; }
.book__dogs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid var(--plaster); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .55); }
.book figcaption { font-size: 14px; font-weight: 700; color: var(--muted-ink); margin-top: 10px; }
@media (max-width: 900px) {
  .book__grid { grid-template-columns: 1fr; gap: 40px; }
  .book__dogs { margin: 120px 0 0 -30% !important; }
}

/* ------------------------------------------------------------------ 404 */
.nf__links { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.phead--404 .phead__in { min-height: 56vh; }

/* ------------------------------------------------------------------ the last room on inner pages */
.last--inner .last__grid { grid-template-columns: minmax(0, 1fr); }
.last--inner .last__text { padding-bottom: 0; max-width: 820px; }
@media (min-width: 1100px) { .last--inner .wrap { padding-left: calc(var(--gut) + var(--flue-pad)); } }

/* ------------------------------------------------------------------ footer */
.ftr { background: var(--navy-d); color: #e6e0d6; padding: 64px 0 56px; border-top: 4px solid #101215; }
@media (max-width: 760px) { .ftr { padding-bottom: 110px; } }
.ftr__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: 160px repeat(2, minmax(0, 1fr)); gap: 40px; }
.ftr__brand img { width: 120px; height: 120px; opacity: .92; }
.ftr h2 { font: 400 20px/1.1 var(--display); margin-bottom: 14px; color: #fff; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr a { color: #fff; text-decoration-color: rgba(243, 154, 92, .6); text-underline-offset: 3px; }
.ftr__base { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; font-size: 14px; color: #c9c1b5; }
.ftr__base p { margin: 0 0 6px; }
.ftr__disclaimer { color: #e6e0d6; }
@media (max-width: 760px) {
  .ftr__in { grid-template-columns: 1fr; gap: 28px; }
  .ftr__brand img { width: 96px; height: 96px; }
}

/* ------------------------------------------------------------------ phone call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(24, 25, 28, .96); border-top: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(110%); transition: transform .3s;
  }
  .callbar.is-on { transform: none; }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 3px; font-weight: 700; text-decoration: none; }
  .callbar a:first-child { background: var(--ember); color: #fff; }
  .callbar a:last-child { border: 2px solid rgba(244, 241, 234, .5); }
}

/* ------------------------------------------------------------------ reveals: gated on html.js, so nothing is hidden without JavaScript */
html.js [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
html.js [data-rv].is-in { opacity: 1; transform: none; }
/* a photo settling onto its ledge: the ledge is there first, the photo sets down on it */
html.js .lay[data-rv] { transform: none; }
html.js .lay[data-rv] img { transform: translateY(-18px); transition: transform .9s cubic-bezier(.25, 1.25, .5, 1) .12s; }
html.js .lay[data-rv].is-in img { transform: none; }
.fresh__row .lay:nth-child(2) { transition-delay: .08s; }
.fresh__row .lay:nth-child(3) { transition-delay: .16s; }
.fresh__row .lay:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js [data-rv], html.js .lay[data-rv] img { opacity: 1; transform: none; }
  .stove .sp { opacity: 0; }
  .fire__spark { opacity: 0; }
}

/* stoves and the map off screen stop animating (site.js sets is-idle) */
.stove.is-idle *, .map.is-idle * { animation-play-state: paused; }
/* the photo hero's fire too, its loops only: the one-shot intro is left to finish */
.fire.is-idle .fire__y, .fire.is-idle .fire__spark { animation-play-state: paused; }
