/* Tamarack Custom Homes: a faithful copy of the Wix site as it stood on 2 Dec 2026.
   Wix builds desktop pages on a fixed grid (sections of set heights, things placed by
   pixel offsets), and phones get a separate 320-pixel layout scaled up to the screen.
   This file keeps that model so the copy lines up with the old site:
   - 1280 wide and up: each page section has a set height, and things inside sit at Wix's offsets;
   - 700 to 1279 (tablets, small laptops, half-screen windows): the same look, but the words flow
     and the sizes shrink with the screen, so nothing runs off the side. Wix had no such layout;
   - phones (max-width: 699px, the block at the end): Wix's 320-pixel layout. A one-line script in
     each page's head sets the viewport to 320 wide on screens under 700, as Wix does on phones.
     The switch is at 700, not the usual 768, so a small tablet (744 wide) gets the tablet layout. */

/* Headings: Wix used Avenir LT 85 Heavy, a Monotype font licensed for Wix sites only.
   Nunito Sans 800 (free, Google Fonts) stands in for it: the closest free match by eye
   (round, geometric, the same heavy weight and open shapes), and Jeremy's pick in design round 2.
   It is declared at weight 400 so the pages ask for it the way they asked for Avenir. */
@font-face {
  font-family: "Heading";
  src: url("../fonts/nunito-sans-800-latin.woff2") format("woff2");
  size-adjust: 98%;   /* Nunito's capitals run a little wider than Avenir's; at 98% every heading breaks on the same lines as on Wix */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Raleway exactly as Wix declared it: one file, named once for 400 and once for 700. */
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: rgb(6, 6, 6);          /* Wix color_15: text, buttons */
  --ink-2: rgb(39, 39, 39);     /* the current page in the menu, link hover */
  --paper: #fff;
  --panel: rgb(244, 244, 244);  /* the light grey panels */
  --sel: rgb(170, 188, 191);    /* phone menu: current page */
  --head: "Heading", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --body: "Raleway", Helvetica, Arial, sans-serif;
  --g: 80px;                    /* the side margin; shrinks with the screen from 700 to 1279 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.79 var(--body);
  -webkit-font-smoothing: antialiased;   /* as Wix sets it: lighter text on Macs */
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
img, video { display: block; }
blockquote { margin: 0; }
cite { font-style: normal; }
/* Visually hidden, still read by screen readers (form labels) */
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* A visible outline for keyboard users */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.home-hero a:focus-visible, .lb button:focus-visible { outline-color: #fff; box-shadow: 0 0 0 4px var(--ink); }
button { font: inherit; }

/* Text styles (Wix's site fonts) */
.h-xl { font: 88px/1.2 var(--head); }               /* 88px/105.6 */
.h-lg { font: 72px/1.25 var(--head); }              /* 72px/90 */
.h-71 { font: 71px/1.2 var(--head); }
.h-md { font: 40px/1.35 var(--head); }              /* 40px/54 */
.t-body { font: 20px/1.67 var(--body); }            /* 20px/33.4 */
.t-quote-by { font: 22px/1.41 var(--body); }
.t-small { font: 14px/1.79 var(--body); }
.c { text-align: center; }
.up { text-transform: uppercase; }
.bold { font-weight: 700 !important; }

/* Place things like Wix: absolute inside a section of set height */
.sec { position: relative; }
.at { position: absolute; }
/* centred block of a given width: style="--w:780px" */
.mid { position: absolute; left: calc(50% - var(--w, 780px) / 2 + var(--dx, 0px)); width: var(--w, 780px); }

/* Buttons: black, fade to 60% on hover (0.4s), as on Wix */
.btn {
  display: flex; align-items: center; justify-content: center;
  background: rgb(6, 6, 6);
  color: #fff;
  border: 0 solid rgba(6, 6, 6, 0);
  font: 20px/1.67 var(--body);
  transition: border-color .4s, background-color .4s;
  cursor: pointer;
}
@media (hover: hover) { a.btn:hover, button.btn:hover { background: rgba(6, 6, 6, .6); border-color: rgb(6, 6, 6); } }
button.btn:disabled { opacity: .6; cursor: default; }

/* Pictures that fill their box */
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.clip { position: absolute; overflow: hidden; }
/* Scroll effects (700 wide and up; off on phones and for anyone who asks for less motion).
   Measured on the live Wix site: picture offset = k x (scroll - box top), k = 0.8 or 1.
   data-fx="reveal" (k = 1): the picture stays still on screen while its box scrolls over it.
     Done with no sums at all: the picture is fixed to the screen and its box is a window onto
     it (clip-path cuts a fixed picture; overflow does not). Nothing moves, so nothing can
     shimmer or trail the page, in any browser. A fixed picture can't take its size from its
     box, so each box says where the picture starts and how wide it is: --fxl and --fxw
     (the whole width unless set).
   data-fx="parallax" (k = 0.8): the picture moves at 0.8 of the scroll speed. The browser runs
     this itself, tied to the scroll (a scroll-driven animation). Browsers without one
     (Firefox, Safari before 26) get the same sums from js/site.js. */
[data-fx] { overflow: hidden; overflow: clip; }
[data-fx] > .fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
[data-fx] > .fx img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fx-parallax { from { transform: translateY(-80vh); } to { transform: translateY(80%); } }
@media (min-width: 700px) and (prefers-reduced-motion: no-preference) {
  [data-fx="reveal"] { clip-path: inset(0); }
  /* 4 px wider than the box each side (the box cuts it off), so a rounding difference never shows as a hairline */
  [data-fx="reveal"] > .fx { position: fixed; left: calc(var(--fxl, 0px) - 4px); top: 0; width: calc(var(--fxw, 100%) + 8px); height: 100vh; height: 100lvh; }
  [data-fx="parallax"] > .fx { will-change: transform; }
  [data-fx="parallax"] > .fx img { height: max(100%, 100vh); }   /* as tall as the box or the screen, whichever is taller */
  @supports (animation-timeline: view()) {
    [data-fx="parallax"] { view-timeline: --fx block; }
    [data-fx="parallax"] > .fx { animation: fx-parallax linear both; animation-timeline: --fx; animation-range: cover; }
  }
}

/* "Skip to Main Content", shown only when reached with the Tab key (as on Wix) */
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; padding: 8px 14px; background: #fff; color: var(--ink); font: 15px/1.5 var(--body); border: 1px solid var(--ink); }
.skip:focus { top: 8px; }

/* ---------- Header (sticky on desktop) ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  height: 140px;
  background: var(--paper);
}
.hdr .logo { position: absolute; left: 80px; top: 30px; width: 136px; height: 80px; }
.hdr .logo img { width: 100%; height: 100%; object-fit: contain; }
.nav { position: absolute; right: 115px; top: 55px; display: flex; }
.nav a {
  display: block;
  padding: 0 10px;
  font: 14px/30px var(--body);
  color: var(--ink);
  transition: color .4s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.hdr .ig { position: absolute; right: 80px; top: 60px; }
.ig img { width: 20px; height: 20px; }
.ig::after, .ig-lg::after { content: ""; position: absolute; inset: -12px; }   /* a 44 px tap area round the small icons */
.burger, .menu { display: none; }

/* ---------- Footer ---------- */
.ftr { position: relative; height: 319px; }
.ftr .ig { position: absolute; left: calc(50% - 10px); top: 50px; }
.ftr p a { color: inherit; }
.ftr p { position: absolute; left: calc(50% - 235.5px); width: 471px; top: 113px; text-align: center; font: 14px/1.79 var(--body); }

/* ---------- Home ---------- */
.home-hero { height: 840px; }
.home-hero .shade { position: absolute; left: 0; top: 0; width: 50%; height: 100%; background: rgba(39, 39, 39, .4); }
.home-hero h1 { left: 160px; top: 142px; width: 400px; color: rgb(244, 244, 244); }
.home-hero h1 .b { font-weight: 700; }   /* Wix makes this line faux-bold */
.home-hero .btn { left: 160px; top: 640px; width: 330px; height: 60px; }

.home-trust { height: 1130px; }
.home-trust .row { position: absolute; left: 80px; right: 80px; top: 80px; height: 1010px; display: flex; }
.home-trust .col { position: relative; flex: 1 1 50%; }
.home-trust .col.grey { background: var(--panel); }
.home-trust h2 { left: 90px; top: 142px; width: 460px; }
.home-trust p { left: 90px; top: 590px; width: 460px; }

.home-who { height: 1200px; }
.home-who .band { position: absolute; left: 0; right: 0; top: 0; height: 560px; }
.home-who h2 { top: 626px; }
.home-who p { top: 742px; }
.home-who .btn { left: calc(50% - 61px); top: 1070px; width: 122px; height: 60px; }

.home-quote { height: 360px; }
.home-quote p { top: 64px; font: 40px/1.35 var(--head); }
.home-quote cite { top: 202px; }

.home-reveal { height: 660px; }
.home-reveal .band { position: absolute; inset: 0; }

.home-contact { height: 1329px; }
.home-contact .panel { position: absolute; left: 80px; right: 80px; top: 80px; height: 859px; background: var(--panel); }
.home-contact .map { position: absolute; left: 80px; right: 80px; top: 939px; height: 350px; background: var(--panel); }
.home-contact .map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.92) brightness(1.04); }
.home-contact .mid { --w: 940px; }
.home-contact h2 { top: 61px; }
.home-contact .addr { top: 172px; }
.home-contact .mail { top: 228px; }
.home-contact .tel { top: 283px; }
.home-contact .ig-lg { position: absolute; left: calc(50% - 13px); top: 336px; }
.ig-lg img { width: 26px; height: 26px; }
/* Call and Email buttons: phones only (people call from a phone, not a computer) */
.reach { display: none; }
#homecontact { position: absolute; top: 0; scroll-margin-top: 140px; }   /* lands where Wix lands: the section top, under the header */

/* The contact form */
.form { position: absolute; left: calc(50% - 470px); top: 406px; width: 940px; height: 417px; }
.form .f { position: absolute; height: 42px; }
.form input, .form textarea {
  width: 100%; height: 100%;
  margin: 0;
  padding: 3px 3px 3px 12px;
  border: 0 solid var(--ink); border-bottom-width: 1px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 15px/1.875 var(--body);
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.form textarea { resize: none; padding: 11px 12px 3px 16px; height: 126px; }
.form ::placeholder { color: var(--ink); opacity: 1; }
.form input:hover, .form textarea:hover, .form input:focus, .form textarea:focus { border-width: 1px; }
.form.tried :invalid { border: 1px solid rgb(255, 64, 64); background: rgb(245, 225, 225); }
.form input, .form textarea { scroll-margin-top: 150px; }
@media (max-width: 699px) { .form input, .form textarea { scroll-margin-top: 10px; } }
.form .send { position: absolute; left: 0; top: 319px; width: 940px; height: 50px; font-size: 18px; line-height: 1.75; }
.form .thanks { position: absolute; left: 0; top: 380px; width: 100%; text-align: center; font: 18px/normal var(--body); visibility: hidden; }
.form.sent .thanks { visibility: visible; }
.f-name { left: 0; top: 0; width: 465px; }
.f-email { left: 475px; top: 0; width: 465px; }
.f-phone { left: 0; top: 52px; width: 465px; }
.f-addr { left: 475px; top: 52px; width: 465px; }
.f-subj { left: 0; top: 104px; width: 940px; }
.f-msg { left: 0; top: 156px; width: 940px; height: 126px !important; }

/* Labels naming the home in each home-page photo (design pick 8) */
.tag { position: absolute; z-index: 2; left: 10px; bottom: 10px; padding: 9px 12px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 12px/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; }
#the-boat-house, #tamarack-point { scroll-margin-top: 140px; }

/* ---------- Services ---------- */
.svc-hero { height: 480px; background: rgb(6, 6, 6); }
.svc-hero h1 { --w: 940px; top: 191px; color: #fff; }
.svc-hero .fx img { opacity: .75; }   /* Wix: the picture at 75% over near-black */
.svc-rows { height: 1400px; }
.svc-rows .row { position: absolute; left: 80px; right: 80px; height: 660px; display: flex; gap: 20px; }
.svc-rows .r1 { top: 20px; }
.svc-rows .r2 { top: 700px; }
.svc-rows .col { position: relative; flex: 1 1 50%; }
.svc-rows .col.grey { background: var(--panel); }
.svc-rows .pic { --fxw: calc(50% - var(--g) - 10px); }   /* the fixed pictures: see "Scroll effects" */
.svc-rows .r1 .pic { --fxl: calc(50% + 10px); }
.svc-rows .r2 .pic { --fxl: var(--g); }
.svc-rows .col h2 { left: 85px; width: 460px; }
.svc-rows .col p { left: 85px; width: 460px; }
.svc-rows .r1 h2 { top: 156px; }
.svc-rows .r1 p { top: 239px; }
.svc-rows .r2 h2 { top: 144px; }
.svc-rows .r2 p { top: 282px; }

/* ---------- In the Works ---------- */
.works-intro { height: 380px; }
.works-intro h1 { left: calc(50% - 460px); top: 80px; width: 950px; font: 22px/normal var(--body); }
.works-intro h1 { line-height: 67px; }
.works-intro h1 span { font: 56px/67px var(--head); vertical-align: top; }
.works-intro p { left: calc(50% - 460px); top: 179px; width: 586px; font: 18px/1.8em var(--body); }
.works-intro p span { font-size: 16px; }
.works-video { height: 500px; }
.works-video.h495 { height: 495px; }
.vbox { position: absolute; left: calc(50% - 560px); top: 0; width: 1158px; height: 500px; overflow: hidden; cursor: pointer; background: #000; }
.h495 .vbox { width: 1153px; height: 495px; }
.vbox video, .vbox .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vbox .play { position: absolute; opacity: 0; transition: opacity .2s; pointer-events: none; }
.vbox.paused .play { opacity: .8; }
.vbox .play svg { width: 100%; height: 100%; }
.vbox .audio { opacity: 0; transition: opacity .2s; }
.vbox:hover .audio, .vbox .audio:focus-visible, .vbox.unmuted .audio { opacity: 1; }
.vbox .audio { position: absolute; right: 0; bottom: 0; width: 51px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; }
/* The play mark sits in the middle of the box (Wix: 522, 206 in the first box; 533, 204 in the others) */
.vbox .play.p113 { left: calc(50% - 57px); top: calc(50% - 44px); width: 113px; height: 88px; }
.vbox .play.p86 { left: calc(50% - 43.5px); top: calc(50% - 43.5px); width: 86px; height: 86px; }
.works-video.h495.last { height: 500px; }
.vbox .audio svg { width: 30px; height: 30px; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .4)); }
.vbox .audio .off { display: none; }
.vbox.unmuted .audio .on { display: none; }
.vbox.unmuted .audio .off { display: block; }
.works-slider { height: 620px; }

/* Slider (Wix Pro Gallery "slider") */
.slider { position: absolute; left: calc(50% - 608px); top: 74px; width: 1216px; height: 472px; }
.slider .track { display: flex; gap: 10px; height: 100%; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.slider .track::-webkit-scrollbar { display: none; }
.slider .item { flex: 0 0 354px; height: 100%; padding: 0; border: 0; background: #eee; cursor: pointer; }
.slider .item img { width: 100%; height: 100%; object-fit: cover; }
.slider .arrow {
  position: absolute; top: calc(50% - 17.5px); width: 40px; height: 40px;
  border-radius: 50%; border: 0; padding: 0; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.slider .arrow svg { width: 10px; height: 17px; fill: rgb(6, 6, 6); }
.slider .next { right: 23px; }
.slider .prev { left: 23px; }
.slider .prev svg { transform: scaleX(-1); }
.slider .arrow[hidden] { display: none; }

/* ---------- Our Projects: six cards, and a page for each project ---------- */
.pj-head { padding: 62px var(--g) 56px; text-align: center; }
.pj-head p { max-width: 780px; margin: 24px auto 0; }
.pj-back, .pj-link { font: 13px/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; }
.pj-back { display: inline-block; margin-bottom: 30px; padding: 8px 0; }
.pj-link { padding: 12px 0; }
.pj-back:hover, .pj-link:hover { text-decoration: underline; text-underline-offset: 6px; }
/* The cards: a photo with its name on a white bar along the bottom, and a one-line summary under it.
   Two across (Jeremy: his 1,470-wide desktop shows two), three only from 1700 wide, where all six
   fit on one screen; one on phones.
   On hover the bar turns black from left to right and the photo pushes in a little. The bar is
   two copies of the name, white under black; the black one is clipped away until the hover wipes
   it in (clip-path), so the letters change colour exactly where the edge passes. Phones have no
   hover: the white bar just sits there. Sizes inside a card follow the card's own width (cqw). */
.pj-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 52px 40px; padding: 0 var(--g) 110px; }
.pj-item { display: block; }
.pj-desc { margin-top: 16px; font: 17px/1.6 var(--body); }
@media (min-width: 1700px) { .pj-cards { grid-template-columns: repeat(3, 1fr); } }
.pj-card { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel); container-type: inline-size; }
.pj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s cubic-bezier(.37, 0, .22, 1); }
.pj-bar { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(48px, 12.5cqw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 5cqw; padding: 0 5cqw; background: var(--paper); color: var(--ink); font: clamp(15px, 4.1cqw, 24px)/1.15 var(--head); letter-spacing: .02em; text-transform: uppercase; }
.pj-bar .arr { flex: none; font-family: var(--body); }
.pj-bar.inv { background: var(--ink); color: var(--paper); clip-path: inset(0 100% 0 0); transition: clip-path .62s cubic-bezier(.7, 0, .12, 1); }
@media (hover: hover) {
  .pj-item:hover img { transform: scale(1.05); }
  .pj-item:hover .pj-bar.inv { clip-path: inset(0 0 0 0); }
}
.pj-item:focus-visible img { transform: scale(1.05); }
.pj-item:focus-visible .pj-bar.inv { clip-path: inset(0 0 0 0); }
/* A project's photos, packed into columns (three, two, or one) and read left to right.
   A column is cut into 40 rows. tools/build-pages.py works out where each picture goes for three
   columns (--a3) and for two (--a2): row, column, rows deep, columns wide. Most pictures are one
   column wide and keep their own shape; some are two columns wide, so the grid never opens on a row
   of same-size pictures. Phones stack them in one column, each as many rows as its shape needs (--s).
   --col is one column's width: 100cqw is the width of .pgal-wrap. */
.pgal-wrap { container-type: inline-size; padding: 0 calc(var(--g) - 1vw) 70px; }
.pgal { --cols: 3; --col: calc(100cqw / var(--cols)); display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-rows: calc(var(--col) / 40); }
.pgal .item { grid-area: var(--a3); position: relative; margin: calc(var(--col) * .035); padding: 0; border: 0; background: var(--panel); cursor: pointer; overflow: hidden; }
.pgal .item img { width: 100%; height: 100%; object-fit: cover; }
/* Under the photos: the project before, a way to get in touch, the project after */
.pj-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px var(--g) 110px; }
.pj-next .btn { flex: none; width: 330px; height: 60px; }
@media (max-width: 1099px) { .pgal { --cols: 2; } .pgal .item { grid-area: var(--a2); } }

/* Pictures you can open darken on hover (measured on Wix: about 40% black) */
.slider .item { position: relative; }
.pgal .item::after, .slider .item::after { content: ""; position: absolute; inset: 0; background: rgba(6, 6, 6, .4); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
@media (hover: hover) { .pgal .item:hover::after, .slider .item:hover::after { opacity: 1; } }
.pgal .item:focus-visible::after, .slider .item:focus-visible::after { opacity: 1; }

/* Lightbox (Wix's bright "expand" view) */
html.lb-open { overflow: hidden; }   /* the page behind the viewer stays put */
.lb { position: fixed; inset: 0; z-index: 100; background: #fff; display: none; opacity: 0; transition: opacity .8s; }
.lb.open { display: block; }
.lb.show { opacity: 1; }
/* Two pictures in one box, each fitted inside it: the one showing and the one coming. Moving on
   fades one into the other. Because every file is drawn in the same box, the small file and the
   large file of one picture land on exactly the same spot, so nothing jumps when the large one arrives. */
.lb figure { position: absolute; inset: 74px 90px; margin: 0; }
.lb figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .28s ease; }
.lb figure img.on { opacity: 1; }
.lb button { position: absolute; background: none; border: 0; padding: 0; cursor: pointer; color: rgb(6, 6, 6); }
.lb .x { right: 30px; top: 30px; width: 38px; height: 44px; padding: 10px 7px; }
.lb .lb-prev, .lb .lb-next { top: calc(50% - 25px); width: 50px; height: 50px; }
.lb .lb-prev { left: 20px; }
.lb .lb-next { right: 20px; }
.lb .lb-prev[hidden], .lb .lb-next[hidden] { display: none; }
.lb .full { left: 35px; top: 26px; width: 22px; height: 22px; }
.lb svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; }

@media (prefers-reduced-motion: reduce) {
  [data-fx] > .fx { transform: none !important; }
  .slider .track { scroll-behavior: auto; }
  .lb, .lb figure img, .menu, .btn, .nav a, .pgal .item::after, .slider .item::after, .pj-card img, .pj-bar { transition: none !important; }
}

/* ============ 700 to 1279 wide: tablets, small laptops, half-screen windows ============
   Wix had nothing here: its desktop page just ran off the side. Same look as the desktop layout,
   but the side margin and the big type shrink with the screen (vw), and the blocks of words sit
   in the page's flow, so they can take more lines without running into what comes next.
   Every value meets the desktop one at 1280 (88 px = 6.875vw, 80 px = 6.25vw, and so on). */
@media (min-width: 700px) and (max-width: 1279px) {
  :root { --g: 6.25vw; }
  .h-xl { font-size: 6.875vw; }
  .h-lg { font-size: 5.625vw; }
  .h-71 { font-size: 5.547vw; }
  .h-md { font-size: clamp(26px, 3.125vw, 40px); }
  .t-body { font-size: clamp(17px, 1.5625vw, 20px); }
  /* centred blocks never wider than the page */
  .mid { width: min(var(--w, 780px), 100% - 2 * var(--g)); left: calc(50% - min(var(--w, 780px), 100% - 2 * var(--g)) / 2); }

  .hdr .logo { left: var(--g); }
  .nav { right: calc(var(--g) + 35px); }
  .hdr .ig { right: var(--g); }

  /* Home */
  .home-hero { height: 65.625vw; }
  .home-hero h1 { left: 12.5vw; top: 11.1vw; width: 31.25vw; }
  .home-hero .btn { left: 12.5vw; top: 50vw; }
  .home-trust { height: auto; padding: var(--g) var(--g) calc(var(--g) / 2); }
  .home-trust .row { position: relative; left: auto; right: auto; top: auto; height: auto; min-height: 78.9vw; }
  .home-trust .col.grey { display: flex; flex-direction: column; justify-content: center; padding: 6vw 5vw; }
  .home-trust h2, .home-trust p { position: static; width: auto; }
  .home-trust p { margin-top: 22px; }
  .home-who { height: auto; padding-bottom: 70px; }
  .home-who .band { position: relative; height: 43.75vw; }
  .home-who h2, .home-who p { position: static; width: auto; max-width: 780px; margin: 0 auto; padding: 0 var(--g); box-sizing: content-box; }
  .home-who h2 { margin-top: 5.2vw; }
  .home-who p { margin-top: 26px; }
  .home-who .btn { position: static; margin: 28px auto 0; }
  .home-quote { height: auto; padding: 5vw var(--g) 9.9vw; }
  .home-quote p, .home-quote cite { position: static; display: block; width: auto; max-width: 780px; margin: 0 auto; }
  .home-quote p { font-size: clamp(30px, 3.125vw, 40px); }
  .home-quote cite { margin-top: 30px; }
  .home-reveal { height: 51.5625vw; }
  .home-contact { height: auto; padding: var(--g) var(--g) 40px; }
  .home-contact .panel { position: relative; left: auto; right: auto; top: auto; height: auto; padding: 61px 5vw 36px; }
  .home-contact .mid { position: static; width: auto; }
  .home-contact .addr { margin-top: 21px; }
  .home-contact .mail, .home-contact .tel { margin-top: 22px; }
  .home-contact .ig-lg { position: relative; left: auto; top: auto; display: block; width: 26px; margin: 20px auto 0; }
  .form { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: auto; max-width: 940px; height: auto; margin: 44px auto 0; }
  .form .f { position: static; width: auto; }
  .f-subj, .f-msg, .form .send, .form .thanks { grid-column: 1 / -1; }
  .form .send { position: static; width: auto; margin-top: 27px; }
  .form .thanks { position: static; min-height: 37px; margin-top: 1px; }
  .home-contact .map { position: relative; left: auto; right: auto; top: auto; }

  /* Services */
  .svc-hero { height: 37.5vw; }
  .svc-hero h1 { top: calc(50% - .625em); }
  .svc-rows { height: auto; padding: 20px var(--g) 40px; }
  .svc-rows .row { position: relative; left: auto; right: auto; top: auto; height: auto; min-height: 51.5625vw; }
  .svc-rows .r2 { margin-top: 20px; }
  .svc-rows .col.grey { display: flex; flex-direction: column; justify-content: center; padding: 5vw 4vw; }
  .svc-rows .col h2, .svc-rows .col p { position: static; width: auto; }
  .svc-rows .col p { margin-top: 29px; }

  /* In the Works */
  .works-intro { height: auto; padding: 80px var(--g) 40px calc(var(--g) + 7.8vw); }
  .works-intro h1, .works-intro p { position: static; width: auto; }
  .works-intro h1 span { font-size: clamp(40px, 4.375vw, 56px); }
  .works-intro p { max-width: 586px; margin-top: 32px; }
  .works-video, .works-video.h495, .works-video.h495.last { height: auto; }
  .vbox, .h495 .vbox { position: relative; left: auto; width: auto; height: auto; margin: 0 var(--g); aspect-ratio: 1158 / 500; }
  .works-slider { height: 48.4375vw; }
  .slider { left: calc(var(--g) * .4); width: calc(100% - var(--g) * .8); top: 5.78vw; height: 36.875vw; }
  .slider .item { flex-basis: 27.66vw; }

  /* Our Projects */
  .pj-cards { gap: 4vw 3.125vw; }
  .pj-next .btn { width: 300px; }
}

/* ======================= Phones (320-pixel layout) ======================= */
@media (max-width: 699px) {
  /* Always a 320-pixel column. Phones show it edge to edge (their viewport is set to 320 wide);
     a narrow window on a bigger screen gets it centred, and enlarged below once there is room. */
  body { width: 320px; margin: 0 auto; }
  [data-fx] > .fx { transform: none !important; }
  .h-xl { font-size: 32px; }
  .t-body { font: 18px/1.67 var(--body); }

  .hdr { position: relative; z-index: auto; height: 100px; }
  .hdr .logo { left: calc(50% - 52.5px); top: 19px; width: 105px; height: 62px; }   /* design pick 6: 1.55 times, same centre */
  .nav, .hdr .ig { display: none; }
  .burger { display: block; position: absolute; left: calc(50% - 160px + 263px); top: 23px; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 60; }
  .burger span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s, top .3s; }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 21px; }
  .burger span:nth-child(3) { top: 28px; }
  .menu-open .burger { position: fixed; }
  .menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
  .menu { display: block; position: fixed; inset: 0; z-index: 55; background: #fff; visibility: hidden; opacity: 0; transition: opacity .4s, visibility 0s .4s; overflow-y: auto; }
  .menu-open .menu { visibility: visible; opacity: 1; transition: opacity .4s; }
  .menu-open { overflow: hidden; }
  .menu nav { position: absolute; left: calc(50% - 160px + 20px); top: 75px; width: 280px; }
  .menu nav a { display: block; height: 50px; line-height: 50px; text-align: center; font: 20px/50px var(--body); color: var(--ink); }
  .menu nav a[aria-current="page"] { color: var(--sel); }
  .menu nav a.menu-call { margin: 18px 22px 0; background: var(--ink); color: #fff; }
  .menu .ig { position: absolute; left: calc(50% - 160px + 150px); top: 413px; }
  #the-boat-house, #tamarack-point, #homecontact { scroll-margin-top: 0; }

  .ftr { height: 238px; }
  .ftr .ig { left: calc(50% - 10px); top: 10px; }
  .ftr p { left: calc(50% - 150px); width: 300px; top: 51px; font: 12px/1.79 var(--body); }

  /* Home */
  .home-hero { height: 330px; }
  .home-hero .shade { width: 100%; }
  .home-hero h1 { left: 20px; top: 98px; width: 280px; font: 32px/1.2 var(--head); }
  .home-hero .btn { left: 10px; top: 187px; width: 292px; height: 45px; font: 18px/1.67 var(--body); }
  .home-trust { height: 814px; }
  .home-trust .row { left: 0; right: 0; top: 0; height: 814px; display: block; }
  .home-trust .col { position: absolute; left: 0; width: 100%; }
  .home-trust .col.pic { top: 0; height: 240px; }
  .home-trust .col.grey { top: 240px; height: 574px; }
  .home-trust h2 { left: 20px; top: 45px; width: 280px; font: 29px/1.2 var(--head); text-align: center; }
  .home-trust p { left: 20px; top: 161px; width: 280px; text-align: center; }
  .home-trust p.bold { font-weight: 400 !important; }   /* design pick 7 */
  .home-who { height: 1011px; }
  .home-who .band { height: 240px; }
  .home-who h2 { --w: 300px; top: 285px; font: 28px/1.25 var(--head); }
  .home-who p { --w: 300px; top: 332px; }
  .home-who .btn { left: calc(50% - 52px); top: 946px; width: 105px; height: 45px; font: 18px/1.67 var(--body); }
  .home-quote { height: 225px; }
  .home-quote p { --w: 280px; top: 22px; font: 24px/1.35 var(--head); }
  .home-quote cite { --w: 280px; top: 132px; font: 20px/1.41 var(--body); }
  .home-reveal { height: 260px; }
  .home-reveal .band { bottom: 20px; }
  /* Contact: Call and Email buttons first, then the form, then the address and the map.
     The buttons stand in for the email and phone lines, which phones don't show. */
  .home-contact { height: 1177px; }
  #homecontact { scroll-margin-top: 0; }
  .home-contact .panel { left: 0; right: 0; top: 1px; height: 1156px; }
  .home-contact .map { left: calc(50% - 150px); right: auto; width: 300px; top: 902px; height: 235px; background: none; }   /* 36 px under the contact block */
  .home-contact .mid { --w: 300px; }
  .home-contact h2 { top: 45px; font: 28px/1.25 var(--head); }
  .reach { display: block; position: absolute; left: calc(50% - 150px); top: 100px; width: 300px; }
  .reach .btn { height: 45px; gap: 10px; font: 500 16px/1 var(--body); letter-spacing: .04em; }
  .reach svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
  .reach .reach-mail { margin-top: 10px; background: transparent; color: var(--ink); border: 1px solid var(--ink); }
  .reach-or { margin-top: 16px; text-align: center; font: 15px/1.2 var(--body); }
  .home-contact .mail, .home-contact .tel { display: none; }
  .home-contact .addr { top: 768px; }   /* the street address takes two lines on phones */
  .home-contact .ig-lg { left: calc(50% - 10px); top: 846px; }
  .home-contact .t-body { font-size: 18px; }
  .form { left: calc(50% - 150px); top: 250px; width: 300px; height: 497px; }
  .f-name, .f-email, .f-phone, .f-addr, .f-subj, .f-msg { left: 0; width: 300px; }
  .f-name { top: 10px; } .f-email { top: 62px; } .f-phone { top: 114px; } .f-addr { top: 166px; } .f-subj { top: 218px; }
  .f-msg { top: 270px; }
  .form .send { top: 406px; width: 300px; }
  .form .thanks { top: 466px; }

  /* Services */
  .svc-hero { height: 330px; }
  .svc-hero h1 { --w: 300px; top: 148px; font: 28px/1.25 var(--head); }
  /* Each service: its photo, then its words on a grey panel, as the home page does on phones */
  .svc-rows { height: auto; padding-bottom: 10px; }
  .svc-rows .row { position: static; flex-direction: column; gap: 0; height: auto; }
  .svc-rows .r2 { margin-top: 10px; }
  .svc-rows .col { flex: none; }
  .svc-rows .col.pic { order: -1; height: 220px; }
  .svc-rows .col.grey { padding: 34px 20px 42px; }
  .svc-rows .col h2, .svc-rows .col p { position: static; width: auto; }
  .svc-rows .col h2 { font: 24px/1.25 var(--head); }
  .svc-rows .col p { margin-top: 16px; font: 16px/1.7 var(--body); }

  /* In the Works */
  .works-intro { height: 411px; }
  .works-intro h1 { left: 20px; top: 60px; width: 280px; font-size: 20px; }
  .works-intro h1 { line-height: 38px; }
  .works-intro h1 span { font-size: 32px; line-height: 38px; }
  .works-intro p { left: 20px; top: 118px; width: 280px; }
  .works-video, .works-video.h495, .works-video.h495.last { height: 182px; }
  .works-video.first { height: 164px; }
  .vbox, .h495 .vbox { left: calc(50% - 140px); top: 20px; width: 280px; height: 142px; }
  .first .vbox { height: 124px; }
  .vbox .play.p113, .vbox .play.p86 { left: 115px; top: 46px; width: 50px; height: 50px; }
  .first .vbox .play.p113 { top: 37px; }
  .works-slider { height: 149px; }
  .works-slider.tall { height: 439px; }
  .slider { left: calc(50% - 140px); top: 20px; width: 280px; height: 109px; }
  .slider .track { gap: 8px; }
  .slider .item { flex-basis: 82px; }
  .slider .next { right: 22px; top: calc(50% - 20px); }
  .slider .prev { left: 22px; top: calc(50% - 20px); }

  /* Our Projects */
  .pj-head { padding: 34px 20px 30px; }
  .pj-head p { margin-top: 14px; }
  .pj-back { margin-bottom: 14px; }
  .pj-cards { grid-template-columns: 1fr; gap: 30px; padding: 0 20px 64px; }
  .pj-desc { margin-top: 12px; font-size: 16px; }
  .pj-bar { height: 52px; padding: 0 16px; gap: 14px; font-size: 16px; }
  .pgal-wrap { padding: 0 9px 34px; }
  .pgal { --cols: 1; }
  .pgal .item { grid-area: auto; grid-row: span var(--s); }
  .pj-next { flex-direction: column; gap: 14px; padding: 6px 20px 64px; }
  .pj-next .btn { order: -1; width: 280px; height: 45px; margin-bottom: 10px; font-size: 18px; }

  .lb figure { inset: 60px 0; }
  .lb .lb-prev, .lb .lb-next, .lb .full { display: none; }
}
/* A narrow window on a big screen (half of a laptop screen, an iPad in split view): the same
   320-pixel column, enlarged to fill more of the window, as a phone would show it. */
@media (min-width: 480px) and (max-width: 699px) { body { zoom: 1.5; } }
@media (min-width: 640px) and (max-width: 699px) { body { zoom: 2; } }
