:root {
  --bg: #64acce;
  --ink: #0f2b3c;
  --paper: #f3f6f8;
  --grey: #e6e6e6; /* black at 10% tint */
  --line: rgba(230, 230, 230, 0.4);
  --font: "Special Gothic", "Helvetica Neue", Arial, sans-serif;
  /* Shared page width: header, main and footer all use it */
  --w: calc(100% - 2 * clamp(1rem, 4vw, 3rem));
  /* The home page text image is 67% wide and its white area starts 3.03% in,
     so the white edge sits at about 2.03% of the page width. */
  --white-left: 2.03%;
  /* Same width as --w, but in pixels, so it can be used in sums with other lengths */
  --wpx: calc(100vw - 2 * clamp(1rem, 4vw, 3rem));
  /* Shared text sizes for the about, contact and work pages. They shrink on small screens
     and short windows so the pages don't need to scroll. */
  /* No upper limit, so on a large desktop browser the text grows with the window and keeps
     the same proportions as the preview. */
  --text-base: max(0.75rem, min(1.1vw, 1.8vh));
  /* Body text on the about, work and contact pages. On computers it is 2pt bigger (see the 760px rule below). */
  --body-size: var(--text-base);
  --head-size: max(1rem, min(1.8vw, 3vh));
  /* Nav, footer, header logo and timeline icons grow in step with the body text (same sizes as before on small windows) */
  /* Header menu and footer text are 50% bigger than before (1.3333 x 1.5 and 1.1333 x 1.5) */
  --nav-size: calc(var(--text-base) * 2);
  --footer-size: calc(var(--text-base) * 1.7);
  --logo-h: calc(var(--text-base) * 3.4667);
  --icon-size: calc(var(--text-base) * 3.125);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh; /* footer is pushed to the bottom of the screen on every page */
  display: flex;
  flex-direction: column;
}

/* Header: nav on the left (lined up with the white of the home image), logo link on the right */
.site-header {
  width: var(--w);
  margin: 0 auto;
  /* Header is 25% shorter (was 4.8rem tall, now 3.6rem) with equal space above and below,
     so the text sits centred between the page edge and the line */
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.logo-link {
  display: block;
  justify-self: end;
  order: -1;
  margin-right: -0.35rem;
}

.logo-link img {
  display: block;
  height: var(--logo-h); /* 2.6rem on small windows; grows with the window on large desktops */
  width: auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.btn, button {
  display: inline-block;
  font-family: var(--font);
  font-size: var(--nav-size);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--grey);
  background: transparent;
  border: 0;
  padding: 0.55rem 0;
  cursor: pointer;
  text-underline-offset: 0.3em;
}

.btn:hover, .btn:focus-visible, .btn[aria-current="page"], button:hover, button:focus-visible {
  text-decoration: underline;
}

main {
  flex: 1;
  width: var(--w);
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

/* Home page: both images centred between header and footer */
.home {
  display: flex;
  align-items: center;
}

/* The note above the logo is only shown on computers (see the 760px rule) */
.home-note { display: none; }

.home-grid {
  position: relative;
  width: 100%;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.home-grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* Inner pages */
.page, .page h1, .page p, .page a, .page label {
  color: #fff;
}

.page > * { margin-left: var(--white-left); }

.page h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.page p { max-width: 60ch; }

form { display: grid; gap: 1rem; max-width: 34rem; margin-top: 1.5rem; }
label { display: grid; gap: 0.3rem; font-weight: 600; }
input, textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}
input:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
button { justify-self: start; }
.page button[type="submit"] {
  font-size: var(--body-size);
  font-weight: 500;
  padding: 0.8rem 1.6rem 0.8rem 0;
  color: #fff;
}

/* About page: photo fills the screen height, text on the right */
.page.about-main { padding: 1rem 0; display: flex; align-items: center; }
.about-layout { width: 100%; display: grid; gap: 1.5rem; align-items: start; }
.about-photo { display: block; width: 100%; height: auto; }
.page .about-text h1 {
  font-size: var(--head-size);
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  margin: 0 0 1rem;
}
.page .about-text p { max-width: none; font-size: var(--body-size); line-height: 1.2; margin: 0 0 0.7rem; }

/* Registration and membership logos: one row under the text, all the same height,
   evenly spaced, first logo on the text's left edge and last on its right edge.
   Height is worked out from the row width (the four logos are about 7.4 heights wide together).
   Multiply blending lets the white backgrounds of the logo files take on the page blue. */
.about-text { display: flex; flex-direction: column; }
/* Logos sit at the bottom of the text column, level with the bottom of the photo.
   They are 10% smaller than before (0.9 x the earlier height). */
.about-logos { container-type: inline-size; margin-top: auto; padding-top: 1.1rem; background: var(--bg); isolation: isolate; }
.logo-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.logo-row img {
  display: block;
  width: auto;
  height: min(calc(0.9 * (100cqw - 3rem) / 7.4), 9vh);
  mix-blend-mode: multiply;
}

/* Contact page: heading and text on the left, form on the right (under 50% of the page width) */
.contact-layout { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.page .contact-text h1 {
  font-size: var(--head-size);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.page .contact-text p { max-width: none; font-size: var(--body-size); line-height: 1.35; margin: 0; }
.enquiry span { display: block; }
.enquiry .enquiry-or { margin-top: 1.35em; }
.enquiry .enquiry-rule { border-top: 1px solid var(--line); margin: 0.7em 0; }
.contact-layout form { margin: 0; max-width: none; gap: 0.75rem; font-size: var(--body-size); }
.contact-layout label { gap: 0.25rem; }
.contact-layout input, .contact-layout textarea { padding: 0.45rem 0.55rem; }
/* Message box is 15px taller (5 lines + padding + 15px). The text and form both sit 7.5px higher,
   so the form's centre stays where it was and the text stays level with the top of the form. */
/* Message box made longer (about 11 lines tall instead of about 7.5) */
.contact-layout textarea { height: calc(11em + 0.9rem + 15px); }
/* Contents moved up a further 10px (7.5px + 10px = 17.5px) */
.contact-layout { transform: translateY(-17.5px); }
/* Footer is at the bottom of the screen, like the other pages (main fills the space above it) */

/* Work page: three galleries side by side, as tall as the screen allows */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.work-main { padding-top: 0.3rem; }
.gallery-row { display: grid; gap: 1.25rem; margin-top: 0; }
.gallery { display: flex; flex-direction: column; min-height: 0; }
.page .gallery h2 {
  font-size: var(--head-size);
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  margin: 0 0 0.3rem;
  position: relative;
  top: -5px; /* headings moved up 5px; the pictures stay where they are */
}
/* Galleries are 5% smaller; scaling from the top left keeps them lined up under the headings */
.gallery-media { position: relative; width: 100%; height: 120vw; container-type: size; transform: scale(0.95); transform-origin: left top; }
/* Small white arrow (three lines) on the right edge, halfway down */
.gallery-arrow {
  /* A real button now, so the arrow can be clicked like the picture (next picture) */
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  /* Starts exactly at the picture's right edge (the same width as the text panel), so none of the
     arrow's tail shows over the picture's white border; the 1px offset is the tail's rounded end. */
  left: calc(min(100cqw, calc(100cqh * 0.588)) - 3px);
  top: 50%;
  transform: translateY(-50%);
  /* 50% smaller than before (was 1.6rem); the left edge stays where it was */
  width: 0.8rem;
  height: 0.8rem;
  z-index: 2;
}
/* Bigger invisible click area around the small arrow so it is easy to hit */
.gallery-arrow::after { content: ""; position: absolute; inset: -0.7rem; }
.gallery-arrow svg { display: block; width: 100%; height: 100%; transition: transform 0.15s ease; }
.gallery-arrow:hover svg, .gallery-arrow:focus-visible svg { transform: translateX(2px); }
.gallery-arrow:hover { text-decoration: none; }
.gallery-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.gallery-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
/* Text shown over the Architecture gallery on hover (clicks pass through to the pictures) */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* Same size as the picture beside it (the pictures are about 0.588 as wide as they are tall) */
  width: min(100cqw, calc(100cqh * 0.588));
  background: var(--bg);
  color: #fff;
  padding: 0.6rem 0.7rem;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-size: var(--body-size);
  line-height: 1.25;
}
/* Hover shows the text only until the visitor first clicks; after that the text is its own slide */
.gallery-media.intro:hover .gallery-overlay,
.gallery-media.intro:has(.gallery-frame:focus-visible) .gallery-overlay,
.gallery-media.show-text .gallery-overlay { opacity: 1; visibility: visible; }
.page .gallery-overlay p { max-width: none; margin: 0 0 0.6em; font-size: inherit; line-height: inherit; }
.page .gallery-overlay ul { margin: 0 0 0.8em; padding-left: 1.9em; }
.page .gallery-overlay li { margin: 0; }
.gallery-frame:hover, .gallery-frame:focus-visible { text-decoration: none; }
.gallery-frame:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gallery-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top; /* white edge of the picture starts at the left, under the heading */
  display: none;
}
.gallery-frame img.is-active { display: block; }

/* Approach page: Philosophy on top, Process timeline below, all on one screen.
   --fit is lowered by a small script if the window is short, so nothing needs scrolling. */
.approach-main {
  --fit: 1;
  --a-head: calc(var(--head-size) * var(--fit));
  --a-body: calc(var(--text-base) * 0.9 * var(--fit) + 1pt); /* Process body text, 1pt bigger than the original */
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: 0.5rem 0;
}
/* The whole page (Philosophy, line, Process) is centred vertically between the header and footer:
   the first and last sections have automatic outer margins. Philosophy sits close above the line. */
.approach-main .approach-section:first-of-type { flex: none; margin-top: auto; margin-bottom: clamp(1rem, 4vh, 2.5rem); }
/* Thin line between Philosophy and Process, same style as the header and footer lines, full width of the page content */
/* Shortened so it starts at the left edge of the headings and stops the same distance from the right */
.approach-main .approach-rule { width: auto; margin: 0 var(--white-left) clamp(1rem, 4vh, 2.5rem) var(--white-left); border: 0; border-top: 1px solid var(--line); flex: none; }
/* Padding under the Process section nudges it up the page a little */
.approach-main .approach-section:last-of-type { flex: none; margin-bottom: auto; }
.page .approach-section h2,
.page .approach-section h3 {
  font-size: var(--head-size); /* subheadings are the same size as the main headings */
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  margin: 0 0 0.4em;
}
/* Section headings (Philosophy, Process) sit a bit further above their contents */
.page .approach-section h2 { margin-bottom: 1em; font-size: var(--head-size); }
.page .approach-section p { max-width: none; margin: 0; }
.philosophy-grid { display: grid; gap: 1.25rem 2rem; }
.page .philosophy p { font-size: var(--a-head); line-height: 1.25; }
.value-item { display: block; margin-bottom: 0.4em; }
.value-item:last-child { margin-bottom: 0; }

.steps { display: grid; gap: 1.25rem; }
/* Icons are 25% smaller than before (50px, now 37.5px) */
.step img { display: block; width: var(--icon-size); height: auto; margin-bottom: 0.5rem; }
.page .process .step h3 { margin-bottom: 0.3em; }
.page .process .step p { font-size: var(--a-body); line-height: 1.3; }
.tl { display: none; }

/* Footer: text lines up with the white edge of the home image */
.site-footer {
  width: var(--w);
  margin: 0 auto;
  /* Footer is 25% shorter (was about 3.94rem tall, now about 2.95rem), text centred between the line and the page edge */
  padding: 0.88rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--footer-size);
  line-height: 1.4;
  color: var(--grey);
}

.footer-text {
  margin: 0;
  padding-left: var(--white-left);
}

/* Contact page: nothing bold */
.contact-page label, .contact-page p { font-weight: 400; }
.contact-page h1 { font-weight: 500; }
.page h2, .page h3 { font-weight: 500; text-transform: lowercase; }

@media (min-width: 760px) {
  /* Computers: body text on the about, work and contact pages is 2pt bigger. Header, footer,
     logo and the approach page keep their own sizes (they use --text-base). */
  :root {
    --body-size: calc(var(--text-base) + 2pt);
    /* Computers: the page (header, content, footer) spreads over 75% of the window width, centred.
       Sizes that follow the window width are scaled by 0.75 (1.1vw becomes 0.825vw, 1.8vw becomes 1.35vw)
       so the contents keep the same proportions inside the narrower width. */
    --w: 75%;
    --wpx: 75vw;
    --text-base: max(0.75rem, min(0.825vw, 1.8vh));
    --head-size: max(1rem, min(1.35vw, 3vh));
    /* The previous text size, kept so the header, footer and logo changes are measured from where they were */
    --old-base: max(0.75rem, min(1.1vw, 1.8vh));
    /* Header menu and footer text are 90% of the previous computer size (1.5 x and 1.275 x become 1.35 x and 1.1475 x) */
    --nav-size: calc(var(--old-base) * 1.35);
    --footer-size: calc(var(--old-base) * 1.1475);
    /* Header logo (right side) is 50% bigger than it was (3.4667 x becomes 5.2 x) */
    --logo-h: calc(var(--old-base) * 5.2);
  }
  /* Contact page: the text and the form use the same body size as the about page (--body-size).
     The text and form are centred vertically between the header and footer. */
  .contact-page main.page { display: flex; align-items: center; padding: 1rem 0; }
  .contact-page .contact-layout { flex: 1; min-width: 0; margin-top: 0; transform: none; }
  /* Home page: the note above the logo. Its left and right edges line up with the sides of the
     logo lettering, its top lines up with the top of the white part of the text image, and its
     bottom stops a little above the top of the lettering. Sizes are worked out from the page width. */
  .home-note {
    display: block;
    position: absolute;
    left: calc(var(--wpx) * 0.6521);
    top: calc(var(--wpx) * 0.0426);
    width: calc(var(--wpx) * 0.2662);
    height: calc(var(--wpx) * 0.222);
    overflow: hidden;
    color: #fff;
    font-size: calc(var(--wpx) * 0.0115 + 1pt); /* 1pt bigger than before */
    line-height: 1.25;
  }
  .home-note p { margin: 0 0 0.7em; }
  .home-note p:last-child { margin-bottom: 0; }
  /* Same 67% / 33% split as the home page images */
  .site-header { grid-template-columns: 67% 33%; }
  .site-header .nav-wrap { grid-column: 1; grid-row: 1; }
  /* The header logo no longer adds height to the header: it floats at the right, centred on the menu
     row (the file has empty space above and below the lettering). So the header and the line under it
     sit in the same place on every page, matching the home page. */
  .site-header { position: relative; }
  .logo-link { position: absolute; right: -0.35rem; top: 50%; transform: translateY(-50%); margin: 0; z-index: 1; }
  /* Nav spans the white area of the home image: 3.03% in, 2.44% short of the right edge */
  /* Nav now runs from the "approach" line (2.03% of page width) to the right white edge of the
     moved text image (about 59% of page width), so the right padding is 11.9% of this column */
  .nav { padding: 0 11.9% 0 3.03%; }
  .home-grid { grid-template-columns: 67% 33%; gap: 0; }
  /* Both home images are scaled to 90% from their centres, so their positions stay put */
  /* Text image is also moved left so its white edge lines up with "approach" and the footer */
  .home-grid .home-text-image { transform: translateX(-4.7%) scale(0.9); transform-origin: center; }
  /* Logo: scale 0.99, same shift to the right, moved down so the bottom of the lettering
     lines up with the bottom of the white area of the text image */
  /* Logo is centred sideways between the right white edge of the text image (about 59% of the
     content width) and the right edge of the browser window. */
  .home-grid .home-logo {
    /* Moved left so the gap between the text image and the lettering is half what it was */
    /* The page is now 80% wide, so the shift is worked out from the page width only */
    /* Moved slightly right (shift went from -0.065 to -0.05 of the page width) */
    transform: translate(calc(var(--wpx) * -0.05), 51.5%) scale(0.99);
    transform-origin: center;
  }
  /* Contact page: form is half the width of the page content (header line to header line), on the right */
  .contact-layout { grid-template-columns: 1fr 50%; gap: 2rem; align-items: start; }
  /* Work page: page is exactly one screen tall, galleries fill the space between heading and footer */
  .work-page { height: 100vh; height: 100svh; }
  /* Galleries fill the full space between the header and footer lines (as before), with equal
     space above and below. They are scaled to 95% from the top, so the block is moved down a
     little to leave the same gap above the headings as below the pictures. */
  /* Galleries (headings and pictures) fill 80% of the window height and are centred vertically
     between the header and footer lines. */
  .work-main { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 0.5rem 0; }
  .gallery-row { flex: none; height: 80vh; height: 80svh; max-height: 100%; min-height: 0; grid-template-columns: repeat(3, 1fr); }
  .gallery-media { flex: 1; height: auto; min-height: 10rem; transform: none; }
  .btn { font-size: min(var(--nav-size), 2vw); }
  /* Approach page: exactly one screen tall; three Philosophy columns, five Process columns */
  .approach-page { height: 100vh; height: 100svh; }
  .philosophy-grid { grid-template-columns: repeat(3, 1fr); }
  /* Philosophy section moved up 10px (visually only, so the line and Process stay where they are) */
  .approach-main .philosophy { transform: translateY(-10px); }
  /* The five sections are pulled in from both ends by --tl-pad (evenly spaced), and the timeline
     line and arrows still run out to the full width. */
  .steps { --tl-pad: 1.75rem; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto auto auto auto; gap: 0; padding: 0 var(--tl-pad); }
  .step {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    padding-right: 1rem;
    align-content: start;
  }
  /* Timeline: a line with an arrow at each end and a small upright tick at the left of each column */
  /* Timeline lines are 3px thick */
  .tl { display: block; position: relative; height: 1.1rem; margin: 0.35rem -1rem 0.6rem 0; }
  .tl::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: calc(50% - 1.5px);
    border-top: 3px solid #fff;
  }
  .tl::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    border-left: 3px solid #fff;
  }
  .step:first-child .tl::before { left: calc(-0.6rem - var(--tl-pad)); }
  .step:last-child .tl { margin-right: calc(-1rem - var(--tl-pad)); }
  .step:first-child .tl { overflow: visible; }
  .step:first-child .tl::after { left: 0; }
  .step:first-child .tl .head,
  .step:last-child .tl .head { display: block; }
  .tl .head {
    display: none;
    position: absolute;
    top: 50%;
    width: 0.7rem; height: 0.7rem;
  }
  .step:first-child .tl .head {
    /* arrowheads sit 3px further out from the line than before */
    left: calc(-0.55rem - var(--tl-pad) - 3px);
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translateY(-50%) rotate(45deg);
  }
  .step:last-child .tl .head {
    right: calc(0.1rem - 3px);
    border-right: 3px solid #fff;
    border-top: 3px solid #fff;
    transform: translateY(-50%) rotate(45deg);
  }
  /* About page: photo is as tall as the screen allows, with no scrolling */
  .about-layout { grid-template-columns: auto 1fr; gap: 2.5rem; align-items: stretch; }
  /* Photo is 10% bigger than before (was 100svh - 12rem tall). On very tall windows it is capped so the
     page still fits without scrolling. It stays vertically centred and on the left text edge. */
  .page.about-main { padding: 0.5rem 0; }
  /* Photo is now 15% smaller than that (x 0.85), centred vertically and kept on the left edge. */
  .about-photo {
    height: min(calc(0.935 * (100vh - 12rem)), calc(0.85 * (100vh - 7.6rem)));
    height: min(calc(0.935 * (100svh - 12rem)), calc(0.85 * (100svh - 7.6rem)));
    align-self: center;
    justify-self: start;
    width: auto;
    max-width: 45vw;
    object-fit: cover;
  }
  /* Footer stays pinned to the bottom of the window even if a page is taller than the window */
  .site-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: var(--bg);
    box-shadow: 0 0 0 100vmax var(--bg);
    clip-path: inset(0 -100vmax);
  }
}

@media (max-width: 759px) {
  /* Phones keep the original header menu and footer text sizes (the 50% increase is for computers only) */
  :root {
    --nav-size: calc(var(--text-base) * 1.3333);
    --footer-size: calc(var(--text-base) * 1.1333);
  }
  .btn { font-size: var(--nav-size); }
  .page > * { margin-left: 0; }
  .home-grid img { width: 90%; margin: 0 auto; }
  /* Home page on phones: picture, then the note, then the logo, stacked and centred between the header
     and footer. The page is exactly one screen tall, so nothing needs scrolling. The logo file has
     empty space above and below the lettering, so it is trimmed (cropped by the browser, the file is
     untouched). If space runs short, the picture shrinks first (and the script in index.html
     lowers the note's type size a little if the picture would get too small). */
  .home-page { height: 100vh; height: 100dvh; min-height: 0; }
  .home { padding: 0.5rem 0; min-height: 0; overflow: hidden; flex-direction: column; align-items: stretch; }
  .home-grid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; }
  .home-grid img { margin: 0; }
  /* The white parts of the picture sit slightly right of the picture's middle (their centre is at about 50.3%),
     so the picture is nudged left a touch to put the white parts exactly in the middle of the page. */
  .home-grid .home-text-image { flex: 0 1 auto; min-height: 0; object-fit: contain; transform: translateX(-0.3%); }
  /* The note is as wide as the "place" lettering in the logo beneath it, centred. The logo is 90% of the page
     wide and its lettering runs from about 9.08% to 90.63% of the logo (81.55% of it), so 0.9 x 0.8155 = 73.4%. */
  .home-note {
    display: block;
    flex: none;
    align-self: center;
    width: 73.4%;
    color: #fff;
    font-size: min(3.2vw, 1.8vh);
    font-size: min(3.2vw, 1.8dvh);
    line-height: 1.25;
  }
  .home-note p { margin: 0 0 0.55em; }
  .home-note p:last-child { margin-bottom: 0; }
  /* Logo centred sideways on the page and moved a little further down (visually only, so nothing else shifts) */
  .home-grid .home-logo { flex: none; transform: none; align-self: center; margin: 0 auto; position: relative; top: 0.7rem; aspect-ratio: 1024 / 415; object-fit: cover; object-position: center 66%; }
  .footer-text { padding-left: 0; }
  /* Work page on phones: each gallery runs the full width of the header line (left edge to right edge).
     No shrinking, and the height matches the pictures' shape (about 0.588 as wide as tall) so they fill the width. */
  .gallery-media { transform: none; height: calc(var(--wpx) / 0.588); }
  /* Work page contents sit 10px further below the header line on phones (5px, then another 5px) */
  .work-main { padding-top: calc(0.3rem + 10px); }
}
