/* Outright Web Design: shared styles. Mobile first, dark theme by default
   with a light theme, system fonts, no external files. */

:root {
  color-scheme: dark;
  --bg: #0d0c0b;
  --bg-deep: #090807;
  --surface: #161412;
  --surface-2: #1d1a17;
  --line: #2e2924;
  --line-strong: #463f37;
  --field-line: #7d7164;
  --field-bg: #090807;
  --text: #f6ece0;
  --muted: #b8ab9c;
  --accent: #feead3;
  --accent-hover: #fff6ec;
  --button: #feead3;
  --button-hover: #fff6ec;
  --on-button: #0d0c0b;
  --header-bg: rgba(13, 12, 11, 0.86);
  --glow-brass: rgba(217, 185, 138, 0.16);
  --glow-cream: rgba(254, 234, 211, 0.1);
  --glow-warm: rgba(254, 234, 211, 0.06);
  --tint: rgba(254, 234, 211, 0.07);
  --tint-line: rgba(254, 234, 211, 0.24);
  --logo-line: #feead3;
  --shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.85);
  --photo-filter: brightness(0.62) saturate(0.7) sepia(0.18);
  --radius: 4px;
  --radius-sm: 3px;
  --max: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-slab: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
}

/* Light theme: chosen with the switch, or the device's setting when no
   choice has been saved. The two blocks below hold the same values. */

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf3e9;
  --bg-deep: #f5e9da;
  --surface: #fffaf3;
  --surface-2: #f5e9da;
  --line: #e3d5c3;
  --line-strong: #cdbba5;
  --field-line: #8a7d6e;
  --field-bg: #fffaf3;
  --text: #16130f;
  --muted: #5d5349;
  --accent: #16130f;
  --accent-hover: #3a332c;
  --button: #16130f;
  --button-hover: #3a332c;
  --on-button: #feead3;
  --header-bg: rgba(251, 243, 233, 0.88);
  --glow-brass: rgba(217, 185, 138, 0.12);
  --glow-cream: rgba(254, 234, 211, 0.1);
  --glow-warm: rgba(217, 185, 138, 0.06);
  --tint: rgba(22, 19, 15, 0.05);
  --tint-line: rgba(22, 19, 15, 0.2);
  --logo-line: #16130f;
  --shadow: 0 30px 60px -38px rgba(60, 45, 25, 0.35);
  --photo-filter: saturate(0.8) sepia(0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fbf3e9;
    --bg-deep: #f5e9da;
    --surface: #fffaf3;
    --surface-2: #f5e9da;
    --line: #e3d5c3;
    --line-strong: #cdbba5;
    --field-line: #8a7d6e;
    --field-bg: #fffaf3;
    --text: #16130f;
    --muted: #5d5349;
    --accent: #16130f;
    --accent-hover: #3a332c;
    --button: #16130f;
    --button-hover: #3a332c;
    --on-button: #feead3;
    --header-bg: rgba(251, 243, 233, 0.88);
    --glow-brass: rgba(217, 185, 138, 0.12);
    --glow-cream: rgba(254, 234, 211, 0.1);
    --glow-warm: rgba(217, 185, 138, 0.06);
    --tint: rgba(22, 19, 15, 0.05);
    --tint-line: rgba(22, 19, 15, 0.2);
    --logo-line: #16130f;
    --shadow: 0 30px 60px -38px rgba(60, 45, 25, 0.35);
    --photo-filter: saturate(0.8) sepia(0.12);
  }
}

/* The logo comes in cream for the dark theme and ink for the light theme;
   both are in the markup and one is hidden per theme. */

.logo-ink {
  display: none !important;
}

:root[data-theme="light"] .logo-cream {
  display: none !important;
}

:root[data-theme="light"] .logo-ink {
  display: block !important;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-cream {
    display: none !important;
  }

  :root:not([data-theme="dark"]) .logo-ink {
    display: block !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* One glow layer from the top of the page, behind the header, the masthead
   and the first section, so they share a background with no seam. Every
   gradient fades out well inside the layer, so it has no visible edge. */

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 53.25rem;
  background:
    radial-gradient(55rem 26rem at 8% 20.25rem, var(--glow-brass), transparent 70%),
    radial-gradient(40rem 22rem at 95% 24.25rem, var(--glow-cream), transparent 70%);
  pointer-events: none;
}

.home::before {
  height: 68.25rem;
  background:
    radial-gradient(22rem 22rem at 22% 31.25rem, var(--glow-warm), transparent 70%),
    radial-gradient(40rem 30rem at 18% 29.25rem, var(--glow-brass), transparent 70%),
    radial-gradient(38rem 28rem at 88% 33.25rem, var(--glow-cream), transparent 70%);
}

h1,
h2,
h3 {
  font-family: var(--font-slab);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.75rem;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  flex-shrink: 0;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 50rem;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* Read by screen readers, not shown: for example "(opens in a new tab)". */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Skip link */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--button);
  color: var(--on-button);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--on-button);
}

/* Header */

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  /* Whole pixels, so the masthead below starts on a whole pixel row */
  padding-top: 14px;
  padding-bottom: 14px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.97rem;
  text-decoration: none;
  text-underline-offset: 0.45em;
  text-decoration-thickness: 2px;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration-line: underline;
}

.site-nav .nav-cta {
  margin-left: 0.25rem;
  color: var(--on-button);
  background: var(--button);
  font-weight: 600;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  color: var(--on-button);
  background: var(--button-hover);
}

/* The Plan your website button at the left of the top bar, wherever the
   header shows the Menu button. Styled like the nav's button. */
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  font-size: 0.97rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--on-button);
  background: var(--button);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.header-cta:hover,
.header-cta[aria-current="page"] {
  color: var(--on-button);
  background: var(--button-hover);
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: 999px;
  cursor: pointer;
}

.menu-toggle {
  border-radius: var(--radius-sm);
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--surface-2);
}

.switch-track {
  position: relative;
  display: inline-block;
  width: 2.4rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--bg-deep);
  border: 1px solid var(--field-line);
}

.switch-knob {
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}

.switch-knob .icon {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 2.4;
}

.switch-knob .icon-sun {
  display: none;
}

.theme-toggle[aria-pressed="true"] .switch-knob {
  left: calc(100% - 1.12rem);
}

.theme-toggle[aria-pressed="true"] .icon-sun {
  display: block;
}

.theme-toggle[aria-pressed="true"] .icon-moon {
  display: none;
}

.menu-toggle .icon {
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 59.99rem) {
  .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.25rem;
  }

  .js .site-nav a {
    display: block;
    padding: 0.7rem 0.9rem;
  }

  .js .site-nav .nav-cta {
    margin: 0.35rem 0 0;
    text-align: center;
  }
}

/* The top bar stays on one line down to 320 px: the theme switch hides its
   label, then the padding shrinks, then the Menu button shows only its icon
   (its name is still "Menu" for screen readers). */

@media (max-width: 31.99rem) {
  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 25.99rem) {
  .header-bar {
    column-gap: 0.5rem;
  }

  .header-cta {
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
  }

  .theme-toggle {
    padding: 0.4rem 0.5rem;
  }

  .menu-toggle {
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 22.49rem) {
  .menu-toggle {
    justify-content: center;
    min-width: 44px;
  }

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 60rem) {
  .header-cta {
    display: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Page links on the left; the Plan your website button sits on the
     right, next to the theme switch. */
  .site-nav {
    flex: 1;
  }

  .site-nav li:last-child {
    margin-left: auto;
  }

  .header-tools {
    margin-left: 0;
  }

  .menu-toggle {
    display: none !important;
  }
}

/* Seven page links, the button and the switch: tighter spacing until the
   page is wide enough, so the header stays on one line from 60rem. */
@media (min-width: 60rem) and (max-width: 74.99rem) {
  .header-bar {
    column-gap: 0.75rem;
  }

  .site-nav ul {
    column-gap: 0.15rem;
  }

  .site-nav a {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Masthead: the logo centred below the header. A 1 px line runs out from
   each side to the edge of the page, centred on the logo's height, which is
   where the logo's own middle line sits (50% of the way down). Logo sizes are
   odd numbers of pixels so that middle falls on a whole pixel row: a 1 px
   line beside a 333 px logo lands on row 166, the logo's own line. The logo
   is the same size on every page: 181 px on phones, 261 px from 48rem and
   333 px from 75rem. */

.masthead,
.home-top {
  --mast: 181px;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 8px;
}

@media (min-width: 48rem) {
  .masthead,
  .home-top {
    --mast: 261px;
  }
}

@media (min-width: 75rem) {
  .masthead,
  .home-top {
    --mast: 333px;
  }
}

.masthead::before,
.masthead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--logo-line);
}

.masthead-logo {
  position: relative;
  z-index: 1;
  flex: none;
  display: block;
  line-height: 0;
  border-radius: var(--radius-sm);
}

.masthead-logo img {
  display: block;
  width: var(--mast);
  height: var(--mast);
}

/* Sections */

main {
  display: block;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* No background of its own: the glow comes from the shared layer on body. */
.page-head {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-head .icon-badge + h1 {
  margin-top: 1.25rem;
}

.page-head .lead {
  max-width: 42rem;
  margin-bottom: 0;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  color: var(--on-button);
  background: var(--button);
  border: 1px solid var(--button);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--on-button);
  background: var(--button-hover);
  border-color: var(--button-hover);
}

.button-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--field-line);
}

.button-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--muted);
}

.button-large {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Home, top: the landing text, the logo, the Plan your website box, then
   the hero (the pitch and the call-back request). The markup order is h1,
   box, pitch, call back. On phones everything is stacked; on tablets the
   logo has its own row, with its side lines out to the page edges, the text
   and the box sit side by side beneath it, and the hero follows as its own
   block. From 64rem the logo stands alone and the hero's two columns start
   beneath it: the landing text then the pitch on the left, the box then the
   call back on the right. No background of its own, so the glow runs up
   behind the logo with no seam. */

.home-top {
  display: grid;
  grid-template-areas: "mast" "landing" "plan" "hero";
  padding-top: 16px;
}

.home-top .hero {
  grid-area: hero;
  min-width: 0;
}

.home-top .masthead {
  grid-area: mast;
  padding: 0;
}

.landing {
  grid-area: landing;
  margin: 8px var(--gutter) 0;
}

.landing h1 {
  font-size: clamp(1.85rem, 7.6vw, 2.35rem);
  margin-bottom: 0.5rem;
}

.landing .tagline {
  margin: 0;
}

.home-top .plan-panel {
  grid-area: plan;
  margin: 1rem var(--gutter) 0;
}

@media (min-width: 48rem) {
  .home-top {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "mast mast" "landing plan" "hero hero";
    column-gap: 1.5rem;
    align-items: center;
  }

  .landing {
    margin: 8px 0 0 var(--gutter);
  }

  .landing h1 {
    font-size: clamp(2rem, 3.6vw, 2.4rem);
  }

  .home-top .plan-panel {
    margin: 8px var(--gutter) 0 0;
  }
}

@media (min-width: 64rem) {
  /* The first and last columns are the space .wrap leaves either side of
     its content (its centring margin plus its padding), so both columns stay
     within the same content width as the sections below; between them is
     the hero's own gap. The masthead spans all five, so its side lines still
     run to the page edges. The hero's wrappers step aside (display:
     contents), so the pitch and the call back join this grid.

     Each column flows on its own. The second row holds only the landing
     text, so it is exactly as tall as that; the box spans it and the third
     row, which takes up whatever more the box needs, so the call back starts
     right under the box. The pitch spans the third and fourth rows, and the
     fourth is flexible, so the pitch only ever stretches the fourth row and
     never moves the call back. */
  .home-top {
    --inset: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    --hero-gap: clamp(2.5rem, 5vw, 4rem);
    grid-template-columns: var(--inset) 1fr var(--hero-gap) 1fr var(--inset);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "mast mast mast mast mast"
      ". landing . plan ."
      ". pitch . plan ."
      ". pitch . side .";
    column-gap: 0;
    align-items: start;
    padding: 16px 0 clamp(3rem, 8vw, 6rem);
  }

  /* Both columns start 28 px below the bottom of the logo */
  .home-top .masthead {
    padding-bottom: 28px;
  }

  .home-top .hero,
  .home-top .hero-grid {
    display: contents;
  }

  .landing,
  .home-top .plan-panel {
    margin: 0;
  }

  .landing h1 {
    font-size: clamp(2rem, 2.9vw, 2.6rem);
  }

  .home-top .hero-pitch {
    grid-area: pitch;
    margin-top: 1.5rem;
  }

  /* The same gap as between the stacked panels on the Contact page */
  .home-top .hero-side {
    grid-area: side;
    margin-top: 1.5rem;
  }
}

/* Home: the pitch and the call-back request, half and half */

/* No background of its own: the glow comes from the shared layer on body. */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tagline {
  margin: -0.15rem 0 1.25rem;
  font-family: var(--font-slab);
  font-size: 1rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-pitch .lead {
  margin-bottom: 1.75rem;
}

.benefits {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

/* A fixed icon column, so every row's text starts in the same place. */
.benefits li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.benefits strong {
  display: block;
  color: var(--text);
}

.benefits span {
  color: var(--muted);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: var(--tint);
  border: 1px solid var(--tint-line);
}

.icon-badge .icon {
  width: 1.3rem;
  height: 1.3rem;
}

.reassure {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reassure li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.reassure .icon {
  color: var(--accent);
  margin-top: 0.1rem;
}

.hero-side {
  display: grid;
  gap: 1.25rem;
}

/* Cards and panels */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
}

.panel-raised {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.plan-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(22rem 12rem at 100% 0%, var(--glow-cream), transparent 70%),
    radial-gradient(22rem 12rem at 0% 100%, var(--glow-brass), transparent 70%),
    var(--surface);
  border: 1px solid var(--tint-line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2rem);
}

.plan-panel h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.6rem);
}

.plan-panel p {
  color: var(--muted);
}

@media (min-width: 64rem) {
  .home-top .plan-panel h2 {
    font-size: 1.4rem;
  }
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 44rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.card > :last-child {
  margin-bottom: 0;
}

.card .icon-badge,
.card .tag {
  align-self: flex-start;
}

.card-title {
  margin-top: 1rem;
}

/* Stats */

/* A short photo strip across the top of each card, bleeding to its edges and
   fading into the card so the title and text below stay the focus. */
.stat {
  --card-pad: clamp(1.4rem, 3vw, 2rem);
  overflow: hidden;
}

.stat-photo {
  position: relative;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 1.25rem;
  height: clamp(7rem, 16vw, 9rem);
  background: var(--bg-deep);
}

.stat-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
}

/* Keep the word OPEN in the strip */
.stat-photo .photo-open-sign {
  object-position: center 70%;
}

.stat-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--surface));
  pointer-events: none;
}

.photo-credit {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.stat h3 {
  font-size: clamp(1.4rem, 3vw, 1.65rem);
  margin-bottom: 0.6rem;
}

.stat p {
  font-size: 1.05rem;
  color: var(--muted);
}

/* The figure stands out within the text: the full text colour, bold. */
.stat p strong {
  font-weight: 700;
  color: var(--text);
}

/* Why choose: the same cards as the stats, with an icon badge in place of
   the photo. */
.choose p {
  font-size: 1.05rem;
  color: var(--muted);
}

.choose h3 {
  font-size: clamp(1.4rem, 3vw, 1.65rem);
  margin-bottom: 0.6rem;
}

.stat .source {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

/* Prices */

.price-figure {
  display: block;
  margin: 1rem 0 0.5rem;
  font-family: var(--font-slab);
  font-size: clamp(2.6rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.price-card h3 {
  margin-bottom: 0.5rem;
}

.price-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

/* Work */

.work-card {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 52rem) {
  .work-card {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
  }
}

.work-visual {
  display: grid;
  place-items: center;
  min-height: 13rem;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    radial-gradient(16rem 10rem at 85% 50%, var(--glow-cream), transparent 70%),
    radial-gradient(16rem 10rem at 15% 50%, var(--glow-brass), transparent 70%),
    var(--bg-deep);
  color: var(--accent);
}

.work-visual svg {
  width: 100%;
  max-width: 20rem;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--tint-line);
  border-radius: var(--radius-sm);
}

.work-note {
  margin-top: 1.5rem;
  color: var(--muted);
}

.work-title {
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
}

/* Home: a compact tile per example, each one link to its entry on the
   My work page. */
.tile-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
}

.work-tile {
  display: grid;
  gap: 1rem;
  height: 100%;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 30rem) {
  .work-tile {
    grid-template-columns: 9rem 1fr;
    align-items: center;
  }
}

.work-tile:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.work-tile:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.work-visual-small {
  min-height: 6.5rem;
  padding: 0.85rem;
}

.work-tile .tag {
  margin-bottom: 0.5rem;
}

.work-tile h3 {
  margin-bottom: 0.35rem;
}

.work-tile p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
}

.work-more {
  margin: 1.5rem 0 0;
  font-weight: 600;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-slab);
  font-size: 1.15rem;
  color: var(--on-button);
  background: var(--button);
  box-shadow: 0 0 0 6px var(--tint);
}

.steps h2 {
  font-size: 1.25rem;
  margin: 0.45rem 0 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Lists */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.check-list .icon {
  color: var(--accent);
  margin-top: 0.15rem;
}

/* Two-column content */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.details {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.details div {
  display: grid;
  gap: 0.1rem;
}

.details dt {
  font-size: 0.88rem;
  color: var(--muted);
}

.details dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 60rem) {
  .contact-grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

.contact-main,
.contact-side {
  display: grid;
  gap: 1.5rem;
}

.contact-methods {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-methods li {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.contact-methods .label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-methods a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Forms */

.form-intro {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 36rem) {
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 600;
  font-size: 0.97rem;
}

.req {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: var(--muted);
}

input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.97rem;
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--button);
  flex-shrink: 0;
}

.form-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.form-reply {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

fieldset {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--font-slab);
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 400;
}

.question-list {
  margin: 0;
  padding: 0 0 0 1.9rem;
  display: grid;
  gap: 1.6rem;
}

.question-list > li {
  padding-left: 0.25rem;
}

.question-list > li::marker {
  color: var(--accent);
  font-weight: 700;
}

.question-list label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.question-list textarea {
  display: block;
}

/* Prose */

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  margin-top: 2.25rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Call to action band */

.cta-band {
  background:
    radial-gradient(40rem 18rem at 100% 100%, var(--glow-cream), transparent 70%),
    radial-gradient(30rem 16rem at 0% 0%, var(--glow-brass), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.cta-band p {
  max-width: 40rem;
  color: var(--muted);
}

.cta-contact {
  margin: 1.5rem 0 0;
}

/* Placeholders for facts still to come */

.placeholder {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  color: var(--text);
  background: var(--tint);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sm);
  font-style: italic;
}

/* Footer */

.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-logo img {
  display: block;
  width: 7.5rem;
  height: auto;
  margin-bottom: 1rem;
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-base p {
  margin: 0;
}

/* Motion: only when the visitor hasn't asked for less of it. Content is
   hidden for a fade-in only once the script has added .motion. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .home::before {
    animation: glow 14s ease-in-out infinite alternate;
  }

  .landing,
  .home-top .plan-panel,
  .hero-pitch,
  .hero-side,
  .page-head .wrap {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .home-top .plan-panel,
  .hero-side {
    animation-delay: 0.12s;
  }

  .motion .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.8s ease,
      transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .motion .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .button,
  .site-nav a,
  .card,
  .work-tile,
  .theme-toggle,
  .menu-toggle,
  input,
  textarea {
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  .switch-knob {
    transition: left 0.2s ease;
  }

  .button:hover {
    transform: translateY(-1px);
  }

  .card:hover,
  .work-tile:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* The full-width glow layer only fades and drifts down: scaling it would
   push it past the sides of the page. */
@keyframes glow {
  from {
    opacity: 0.75;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
