/* Faberly - stylesheet
   Plain CSS, no framework. Fonts self-hosted in /fonts (see README for licences). */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #fcfaf8; /* warm white */
  --color-surface: #ffffff;
  --color-bg-alt: #f6f0f3; /* soft plum tint */
  --color-bg-alt-strong: #eee3e9;
  --color-text: #21242b;
  --color-text-muted: #4b5160;
  --color-border: #e4dde1;
  --color-border-strong: #d3c4cc;
  /* Plum brand palette (approved with the logo) */
  --color-accent: #5e2a48; /* medium plum: buttons, links, focus */
  --color-accent-dark: #431e34; /* deep plum: hover, contact section */
  --color-accent-muted: #8e4e73; /* muted plum: labels, borders, markers */
  --color-accent-soft: #f6f0f3;
  --color-contact-bg: #431e34;
  --color-on-dark: #f6f2f4;
  --color-on-dark-muted: #e3d3dc;
  --color-on-accent: #fff; /* text on accent buttons */
  --color-header-bg: rgba(252, 250, 248, 0.94);
  --color-control-selected: var(--color-surface);
  --color-device: #2b1a24; /* phone frame */
  --color-label-bg: rgba(255, 255, 255, 0.92);
  --color-field-bg: #fff;
  --color-field-border: #c9bcc3;
  --color-panel-border: transparent;
  --color-error: #b3261e;
  --color-error-bg: #fdecea;
  --color-error-text: #7a1c15;
  --color-floor-shadow: rgba(67, 30, 52, 0.2);
  --logo-plinth: transparent; /* frame behind the large logo */
  --glow-color: 170, 118, 194;
  --glow-strength: 1;
  /* Deep plum backdrop of the logo entrance */
  --logo-sky:
    radial-gradient(ellipse 55% 45% at 50% 40%, rgba(158, 88, 128, 0.5), rgba(158, 88, 128, 0) 70%),
    radial-gradient(ellipse 80% 60% at 78% 12%, rgba(94, 42, 72, 0.55), rgba(94, 42, 72, 0) 70%),
    radial-gradient(ellipse 70% 55% at 15% 92%, rgba(94, 42, 72, 0.4), rgba(94, 42, 72, 0) 70%),
    linear-gradient(160deg, #3b1630 0%, #2c0f24 55%, #3d1732 100%);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --content-width: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --header-height: 76px;
  --radius: 8px;
  --radius-large: 16px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-soft: 0 1px 2px rgba(67, 30, 52, 0.06), 0 12px 32px -18px rgba(67, 30, 52, 0.28);
  --shadow-lift: 0 18px 36px -20px rgba(67, 30, 52, 0.4);
  --shadow-device: var(--shadow-lift);
  --shadow-control: 0 1px 3px rgba(67, 30, 52, 0.16);
  --shadow-label: 0 1px 3px rgba(67, 30, 52, 0.18);
  --shadow-button: 0 8px 18px -10px rgba(67, 30, 52, 0.55);

  color-scheme: light dark;
}

/* Dark theme: follows the device setting only (no toggle or stored choice).
   A deep aubergine page with lighter plum surfaces, warm off-white text and
   restrained lavender accents. Only tokens change here; components read them,
   so the theme also switches while the page is open, without JavaScript. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1b1118;
    --color-surface: #2c1b28;
    --color-bg-alt: #23151f;
    --color-bg-alt-strong: #3b2636;
    --color-text: #f4ece4;
    --color-text-muted: #cdbcc6;
    --color-border: #3e2b39;
    --color-border-strong: #5e4659;
    --color-accent: #d3b1ea; /* lavender: buttons, links, focus */
    --color-accent-dark: #e4cff2; /* hover: lighter on a dark page */
    --color-accent-muted: #c39ac0;
    --color-accent-soft: #35223f;
    --color-contact-bg: #260f20;
    --color-on-accent: #24111f;
    --color-header-bg: rgba(27, 17, 24, 0.94);
    --color-control-selected: #5a3d55;
    --color-device: #3d2a39;
    --color-label-bg: rgba(44, 27, 40, 0.94);
    --color-field-bg: #35222f;
    --color-field-border: #8c7187;
    --color-field-autofill: #3d2847;
    --color-panel-border: #4a3346;
    --color-error: #ff9d92;
    --color-error-bg: #3e1a1f;
    --color-error-text: #ffd2cc;
    --color-floor-shadow: rgba(36, 17, 31, 0.35);
    --color-mark-tile: #efe4e9; /* frame behind small logo marks */
    --logo-plinth: #cdb8cc;
    --glow-color: 196, 160, 224;
    --glow-strength: 0.5;
    /* The logo entrance dims to a deeper night plum with soft lavender light,
       so it still reads as a change of atmosphere on the dark page */
    --logo-sky:
      radial-gradient(ellipse 55% 45% at 50% 40%, rgba(150, 104, 178, 0.32), rgba(150, 104, 178, 0) 70%),
      radial-gradient(ellipse 80% 60% at 78% 12%, rgba(94, 42, 72, 0.5), rgba(94, 42, 72, 0) 70%),
      radial-gradient(ellipse 70% 55% at 15% 92%, rgba(94, 42, 72, 0.4), rgba(94, 42, 72, 0) 70%),
      linear-gradient(160deg, #1d0917 0%, #13050f 55%, #1f0a19 100%);

    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -18px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 18px 36px -20px rgba(0, 0, 0, 0.75);
    --shadow-device: 0 0 0 1px rgba(244, 236, 228, 0.1), var(--shadow-lift);
    --shadow-control: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-label: 0 1px 3px rgba(0, 0, 0, 0.45);
    --shadow-button: 0 8px 18px -10px rgba(0, 0, 0, 0.8);
  }

  /* Autofilled fields keep the plum surface instead of the browser's blue */
  .form-row input:autofill,
  .form-row input:-webkit-autofill {
    -webkit-box-shadow: inset 0 0 0 100px var(--color-field-autofill);
    box-shadow: inset 0 0 0 100px var(--color-field-autofill);
    -webkit-text-fill-color: var(--color-text);
    caret-color: var(--color-text);
  }

}

/* Reset and base */

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 var(--space-2);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
}

/* Accessibility helpers */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -60px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: var(--space-2);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* Layout helpers */

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

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

.section-tint,
.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-contact-bg);
  color: var(--color-on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-on-dark);
}

.section-intro {
  max-width: 640px;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.section-intro h2 {
  margin-bottom: 0.75rem;
}

.section-intro p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out),
    color 150ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.button-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-accent-dark);
}

.button-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Quiet button: secondary action beside a primary one */
.button-quiet {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-surface);
}

.button-block {
  width: 100%;
}

.button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.link-arrow {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--color-accent-muted);
  padding-bottom: 2px;
}

.link-arrow::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.4em;
  color: var(--color-accent-muted);
  transition: transform 150ms var(--ease-out);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(180%) blur(6px);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Logo symbol; the link text "faberly" provides the accessible name */
.wordmark-mark {
  width: auto;
  height: 32px;
}

/* In dark mode the original mark sits on a warm off-white tile, as in the
   favicon, so its darkest piece stays visible; the logo itself is unchanged.
   The negative margin keeps the layout exactly as in the light theme. */
@media (prefers-color-scheme: dark) {
  .wordmark-mark,
  .footer-mark {
    box-sizing: content-box;
    padding: 3px;
    margin: -3px;
    border-radius: 7px;
    background: var(--color-mark-tile);
    /* Kept in forced colours too: it only frames the original logo colours */
    forced-color-adjust: none;
  }
}

.site-nav {
  flex: 1;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  justify-content: center;
}

.site-nav a {
  position: relative;
  display: inline-block;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  transition: color 150ms var(--ease-out), transform 180ms var(--ease-out);
}

/* Keeps the hit area covering the resting position while the link lifts */
.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0 0 -4px;
}

/* Underline that grows from the centre on hover and focus, and marks the
   current section while scrolling */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 220ms var(--ease-out), background-color 150ms var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a.is-current::after {
  transform: scaleX(1);
  background: var(--color-accent-muted);
}

.site-nav a.is-current:hover::after,
.site-nav a.is-current:focus-visible::after {
  background: currentColor;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent);
}

.header-cta {
  white-space: nowrap;
  min-height: 44px;
  padding: 0.6rem 1.2rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  border-color: var(--color-accent-muted);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  position: relative;
  transition: transform 0.15s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.mobile-nav {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) var(--gutter) var(--space-3);
  border-top: 1px solid var(--color-border);
}

.mobile-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  display: block;
  padding: 0.6rem 0;
}

.mobile-nav a:not(.button):hover,
.mobile-nav a:not(.button):focus-visible {
  color: var(--color-accent);
}

/* Keep the menu's call-to-action styled as a button, not a plain link */
.mobile-nav a.button {
  display: flex;
  margin-top: var(--space-1);
  color: var(--color-on-accent);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
}

.mobile-nav[data-open="true"] {
  display: block;
}

/* Anchor offset so section headings clear the sticky header */

section[id],
[id="care"] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

/* Hero */

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-kicker {
  font-weight: 600;
  color: var(--color-accent-muted);
  margin-bottom: var(--space-2);
}

.hero-content h1 {
  max-width: 12ch;
  margin-bottom: var(--space-3);
}

.hero-lead {
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-4) 0 var(--space-3);
}

.hero-note {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* The price sentence has its own line, so a longer currency never rewraps
   the note and moves the page */
.hero-note-line {
  display: block;
}

/* Hero: a real client project, desktop with an overlapping phone. The whole
   composition is one link to the live website. */

.hero-figure {
  margin: 0;
}

.showcase {
  position: relative;
  display: block;
  padding: 0 11% 12.5% 0;
  border-radius: var(--radius-large);
  color: inherit;
  text-decoration: none;
}

.showcase-desktop {
  display: block;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

/* The phone overlaps only the lower-right corner of the desktop preview and
   takes its height from the screenshot, so nothing is cropped */
.showcase-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 21%;
  transition: transform 220ms var(--ease-out);
}

.showcase-phone.frame-phone {
  height: auto;
  padding: 5px;
  border-radius: 20px;
}

.showcase-phone.frame-phone img {
  height: auto;
  border-radius: 15px;
}

.showcase:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 8px;
}

.showcase-caption {
  margin-top: var(--space-3);
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.frame-bar {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.frame-bar span {
  display: block;
  width: 42%;
  height: 10px;
  margin: 0 auto;
  border-radius: 5px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

/* Featured work */

.section-intro--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.project-preview {
  display: grid;
  gap: var(--space-2);
}

.project-switch {
  justify-self: start;
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: var(--color-bg-alt-strong);
}

.project-switch-button {
  min-height: 40px;
  min-width: 96px;
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.project-switch-button:hover {
  color: var(--color-accent);
}

.project-switch-button[aria-pressed="true"] {
  background: var(--color-control-selected);
  color: var(--color-accent);
  box-shadow: var(--shadow-control);
}

/* The whole preview is a link to the live website; the switcher sits outside it */
.project-stage-link {
  display: block;
  border-radius: var(--radius-large);
  color: inherit;
  text-decoration: none;
}

.project-stage-link:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* Fixed-ratio stage so switching never shifts the layout */
.project-stage {
  display: block;
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-large);
  background: var(--color-bg-alt);
  overflow: hidden;
}

.project-shot {
  position: absolute;
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), visibility 220ms;
}

.project-shot--desktop {
  left: 5%;
  top: 7%;
  width: 76%;
}

.project-shot--mobile {
  right: 5%;
  bottom: 6%;
  height: 74%;
  aspect-ratio: 390 / 844;
}

.project-stage[data-view-current="desktop"] .project-shot--desktop,
.project-stage[data-view-current="mobile"] .project-shot--desktop {
  width: 90%;
  transform: none;
}

/* With the switcher, each view keeps one fixed position whether shown or
   hidden, so switching is a short crossfade with a 6 px drift and no jump */
.project-stage[data-view-current="desktop"] .project-shot--mobile,
.project-stage[data-view-current="mobile"] .project-shot--mobile {
  height: 88%;
  right: 50%;
  bottom: 6%;
  transform: translateX(50%);
}

.project-stage[data-view-current="mobile"] .project-shot--desktop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.99);
}

.project-stage[data-view-current="desktop"] .project-shot--mobile {
  opacity: 0;
  visibility: hidden;
  transform: translateX(50%) translateY(6px) scale(0.99);
}

.frame-browser {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.frame-phone {
  display: block;
  height: 100%;
  padding: 6px;
  border-radius: 26px;
  background: var(--color-device);
  box-shadow: var(--shadow-device);
}

.frame-phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  border-radius: 20px;
}

.frame-browser img {
  width: 100%;
  height: auto;
}

/* Small address label: always visible, so the link does not rely on hover */
.project-visit {
  position: absolute;
  left: 4%;
  bottom: 4%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--color-label-bg);
  box-shadow: var(--shadow-label);
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.project-visit::after {
  content: "\2197";
  transition: transform 180ms var(--ease-out);
}

.project-stage-link:hover .project-visit,
.project-stage-link:focus-visible .project-visit {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-category {
  font-weight: 600;
  color: var(--color-accent-muted);
  margin-bottom: var(--space-1);
}

.project-name {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.project-summary {
  color: var(--color-text-muted);
}

.project-decisions {
  list-style: none;
  margin: var(--space-3) 0;
  display: grid;
  gap: var(--space-2);
}

.project-decisions li {
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent-muted);
}

.project-link {
  margin: 0;
}

/* Packages */

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.package-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
}

.package-card--suggested {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-soft);
}

.package-name {
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.package-fit {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-accent);
  background: var(--color-bg-alt);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  margin-bottom: var(--space-2);
}

.package-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.package-price--quote {
  font-size: 1.75rem;
  padding-top: 0.45rem;
}

.package-price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Prices that follow the chosen currency (js/currency.js). Inline blocks, so
   the short change of currency can move them without moving the text around. */
.price {
  display: inline-block;
}

.package-price .price {
  font: inherit;
  color: inherit;
}

.package-price .price-currency-note {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.package-price .price-currency-note:not(:empty) {
  margin-left: 0.35em;
}

/* Where the longest prices would wrap, both currencies get the same room,
   so changing currency never changes a card's height */
@media (min-width: 901px) and (max-width: 940px) {
  .package-price {
    font-size: 2.2rem;
  }
}

/* "in USD" has its own reserved line wherever it would not fit beside
   "Individual quote": three narrow columns, and the smallest phones. The
   line is compact and takes the place of some of the quote's own spacing,
   so the Custom description still lines up with the other cards. */
@media (min-width: 901px), (max-width: 379px) {
  .package-price--quote {
    padding-top: 0.2rem;
    margin-bottom: 0.7rem;
  }

  .package-price .price-currency-note,
  .package-price .price-currency-note:not(:empty) {
    display: block;
    min-height: 1.15em;
    margin-left: 0;
    font-size: 0.85rem;
    line-height: 1.15;
  }
}

/* Services and pricing: introduction with the currency choice beside it,
   lined up over the Custom card on wide screens */
.pricing-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--space-3);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.pricing-head .section-intro {
  grid-column: 1 / 3;
  margin-bottom: 0;
}

.currency-toggle--pricing {
  grid-column: 3;
  justify-self: end;
}

/* Currency choice: two radio buttons drawn as a rounded segmented control
   with a plum highlight that slides to the chosen side */
.currency-toggle {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.currency-options {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--color-bg-alt-strong);
}

.currency-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: var(--shadow-control);
  transition: transform 250ms var(--ease-out);
}

[data-currency="USD"] .currency-thumb,
.currency-options:has(input[value="USD"]:checked) .currency-thumb {
  transform: translateX(100%);
}

.currency-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.currency-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.currency-option span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: color 250ms var(--ease-out);
}

.currency-option:hover span {
  color: var(--color-accent);
}

.currency-option input:checked + span {
  color: var(--color-on-accent);
}

.currency-option input:focus-visible + span {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.currency-legend {
  display: block;
  margin-bottom: 0.4rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.package-description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.package-list {
  list-style: none;
  margin: 0 0 var(--space-3);
  flex: 1;
}

.package-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}

/* Small check mark drawn with borders */
.package-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 6px;
  height: 11px;
  border: solid var(--color-accent-muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.package-aside {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.package-card .button {
  margin-top: auto;
}

.package-card .button-secondary:hover,
.package-card .button-secondary:focus-visible {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-on-accent);
}

/* Short disclosure above each package button */
.package-note {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* What the price covers */

.costs {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.costs-title {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.costs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-strong);
}

.costs-block h4 {
  margin-bottom: 0.6rem;
}

.costs-block p,
.costs-block li {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.costs-block ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.costs-block li {
  padding-left: 1rem;
  position: relative;
}

.costs-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-muted);
}

.care-price {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 0.15rem;
}

.costs-small {
  font-size: 0.9rem !important;
}

/* Working with Faberly */

.approach-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.approach-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-bottom: var(--space-4);
}

.approach-list {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.approach-list div {
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-strong);
}

.approach-list dt {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.approach-list dd {
  margin: 0;
  color: var(--color-text-muted);
}

/* Interactive logo. Without JavaScript the pieces sit stacked and aligned,
   which shows the assembled logo. js/logo-play.js adds the one-off entrance
   and dragging. The stage keeps a fixed size throughout, and it clips pieces
   that are waiting outside it or flying in. */

.logo-stage {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 42vw, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-large);
  background: var(--color-bg-alt);
  perspective: 900px;
  padding: var(--space-4) var(--space-2) var(--space-3);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Deep plum backdrop shown only during the entrance. js/logo-play.js fades
   its opacity in and out; at rest it is fully transparent, so the scene keeps
   its normal background. */
.logo-stage-sky {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--logo-sky);
}

.logo-stage-mark {
  position: relative;
  width: min(46%, 220px);
  aspect-ratio: 136 / 162;
  margin-bottom: var(--space-4);
}

/* Dark mode only: a lavender-mist tile behind the assembled logo, like the
   favicon and header mark, so all three original colours stay distinct. It
   sits below the entrance backdrop (the stage is its own stacking context),
   so the flight is unchanged. */
.logo-stage-mark::after {
  content: "";
  position: absolute;
  inset: -11% -17% -15%;
  z-index: -1;
  border-radius: 22%;
  background: var(--logo-plinth);
  forced-color-adjust: none;
  pointer-events: none;
}

/* Soft floor shadow gives the floating pieces something to sit above */
.logo-stage-mark::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--color-floor-shadow), transparent);
  pointer-events: none;
}

.logo-piece {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: var(--ox) var(--oy);
  transform-style: preserve-3d;
  /* Lift shadow, plus a soft light glow used only while flying in */
  filter: drop-shadow(0 calc(var(--lift, 0) * 14px) calc(var(--lift, 0) * 12px) rgba(43, 17, 32, calc(var(--lift, 0) * 0.35)))
    drop-shadow(0 0 calc(var(--glow, 0) * 12px) rgba(236, 184, 214, calc(var(--glow, 0) * 0.7)));
}

.logo-piece svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.logo-piece path {
  pointer-events: none;
}

.logo-piece-depth {
  transform: translate(0, calc(var(--lift, 0) * 6px));
}

/* Only the visible shapes are drag targets; the blank space around them
   keeps normal page scrolling. js/logo-play.js also claims touches that
   start on a shape, since some mobile browsers ignore touch-action on SVG. */
.logo-stage--ready .logo-piece-face {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.logo-piece.is-dragging .logo-piece-face {
  cursor: grabbing;
}

.logo-piece.is-dragging,
.logo-piece.is-moving {
  will-change: transform;
  z-index: 2;
}

/* Space is reserved so the hint can appear after assembly without moving anything */
.logo-stage-hint {
  position: relative;
  min-height: 1.5em;
  margin: 0 0 var(--space-1);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text-muted);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}

.logo-stage-hint.is-visible {
  opacity: 1;
}

.logo-stage-button {
  position: relative;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-accent);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.logo-stage-button:hover {
  border-color: var(--color-accent);
}

/* How it works */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
}

.step {
  counter-increment: step;
  position: relative;
  padding-top: 3.4rem;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-accent-muted);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Line connecting the step numbers */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 2.4rem;
  right: calc(var(--space-3) * -1);
  height: 1px;
  background: var(--color-border-strong);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--color-border-strong);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-strong);
}

.faq-item summary {
  padding: 1.15rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--color-accent-muted);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  color: var(--color-text-muted);
  padding-bottom: 1.25rem;
  max-width: 640px;
  margin: 0;
}

/* Enquiry */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-lead {
  color: var(--color-text-muted);
  font-size: 1.15rem;
}

.contact-next-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: var(--space-4) 0 var(--space-2);
}

.contact-next {
  list-style: none;
  counter-reset: next;
  display: grid;
  gap: 0.9rem;
}

.contact-next li {
  counter-increment: next;
  position: relative;
  padding-left: 2.2rem;
  color: var(--color-text-muted);
}

.contact-next li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-accent-muted);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* Homepage invitation to the enquiry page */
.contact-invite > * {
  max-width: 640px;
}

.contact-invite h2 {
  margin-bottom: 0.75rem;
}

.contact-invite-action {
  margin-top: var(--space-3);
}

/* Enquiry page: the same two-column layout, with the page heading as h1 */
.enquire-page .contact-intro h1 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.enquire-page .contact-intro .contact-next-title {
  margin-top: var(--space-4);
}

/* Thank-you page shown after a native (no JavaScript) submission */
.thanks-page .thanks-panel {
  max-width: 40rem;
}

.thanks-page .thanks-panel h1 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.thanks-page .thanks-actions {
  margin: var(--space-3) 0;
}

.contact-form-panel {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-panel-border);
  border-radius: var(--radius-large);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.contact-intro .contact-email {
  margin-top: var(--space-4);
  font-size: 1rem;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.contact-email a {
  color: var(--color-accent);
}

.contact-email a:hover {
  text-decoration-thickness: 2px;
}

/* Social profile links (enquiry section and footer): ordinary links with
   line icons in the current text colour and a 44px touch target */
.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.social-title {
  margin: 0;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  color: var(--color-text);
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.social-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.social-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.social--contact {
  margin-top: var(--space-2);
}

.social--contact .social-title {
  color: var(--color-text-muted);
}

.social--contact .social-link {
  color: var(--color-accent);
  border-color: var(--color-border-strong);
}

.social--contact .social-link:hover {
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
  background: var(--color-surface);
}

/* Spam trap for bots; kept out of view and out of the tab order */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-2);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row--wide {
  grid-column: 1 / -1;
}

.form-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-row .required {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--color-text-muted);
}

.form-required-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-row .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius);
  background: var(--color-field-bg);
  color: var(--color-text);
  width: 100%;
  min-height: 48px;
}

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

.form-row [aria-invalid="true"] {
  border-color: var(--color-error);
  box-shadow: inset 0 0 0 1px var(--color-error);
}

.form-hint {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  margin: 0;
}

.form-privacy {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  margin: 0;
}

.form-status {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  display: none;
}

.form-status[data-visible="true"] {
  display: block;
}

.form-status[data-state="success"] {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.form-status[data-state="error"] {
  border-color: var(--color-error);
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

/* Footer */

.site-footer {
  padding: var(--space-4) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.footer-inner p {
  margin-top: 0;
  margin-bottom: 0;
}

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.footer-mark {
  width: auto;
  height: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.footer-nav a {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.social--footer .social-title {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-left: auto;
}

/* Privacy notice */

.legal-content > * {
  max-width: 720px;
}

.legal-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: var(--space-1);
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

.legal-content h2 {
  font-size: 1.55rem;
  margin-top: var(--space-4);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: var(--space-3);
}

.legal-content ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: var(--space-1);
}

.legal-content a {
  overflow-wrap: anywhere;
}

.legal-back {
  margin-top: var(--space-4);
}

/* Responsive */

@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: var(--space-4);
  }

  .step:nth-child(3)::after {
    display: none;
  }

  .project {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-details {
    max-width: 640px;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .approach-layout,
  .faq-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-figure {
    max-width: 560px;
  }

  .package-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  /* The currency choice sits below the introduction, before the cards */
  .pricing-head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-3);
  }

  .pricing-head .section-intro,
  .currency-toggle--pricing {
    grid-column: 1;
    justify-self: start;
  }

  .costs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .approach-content {
    order: -1;
  }

  .faq-layout .section-intro {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .wordmark {
    gap: 0.5rem;
  }

  .wordmark-mark {
    height: 29px;
  }

  .menu-toggle {
    display: flex;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  /* Vertical timeline on narrow screens */
  .step {
    padding: 0 0 0 3.4rem;
    min-height: 2.4rem;
  }

  .step:not(:last-child)::after,
  .step:nth-child(3)::after {
    display: block;
    top: 2.4rem;
    bottom: calc(var(--space-3) * -1);
    left: 1.2rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .footer-meta {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  /* The hint may wrap to two lines on small phones; reserve that space */
  .logo-stage-hint {
    min-height: 3em;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-column: 1 / -1;
  }

  .showcase {
    padding: 0 10% 14% 0;
  }

  .project-visit {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
  }

  .showcase-phone {
    width: 24%;
  }

  .project-stage {
    aspect-ratio: 5 / 4;
  }

  .project-shot--desktop {
    left: 5%;
    top: 6%;
    width: 82%;
  }

  .project-shot--mobile {
    height: 66%;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }
}

/* Motion
   Transform, translate, opacity and box-shadow only. Everything that moves is
   limited to prefers-reduced-motion: no-preference. Scroll-linked styles are set
   inline by js/motion.js only, so content stays visible if the script does not run. */

.menu-toggle {
  transition: border-color 150ms var(--ease-out), transform 120ms var(--ease-out);
}

.package-card {
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.frame-browser img,
.frame-phone img {
  transition: transform 500ms var(--ease-out);
}

/* How it works sequence (js/motion.js): each number moves with its title
   and text through two custom properties. Without the script they are unset. */
.step::before,
.step > h3,
.step > p {
  opacity: var(--step-o, 1);
  transform: var(--step-t, none);
}

/* How it works progress (js/motion.js): a plum layer over the faint base
   line, filled by one shared scroll value. The base line never moves. */
.step-progress {
  position: absolute;
  top: calc(1.2rem - 0.5px);
  left: 2.4rem;
  right: calc(var(--space-3) * -1);
  height: 2px;
  border-radius: 1px;
  background: var(--color-accent-muted);
  transform: scaleX(var(--fill, 1));
  transform-origin: left center;
  pointer-events: none;
}

@media (max-width: 1080px) {
  .step:nth-child(3) .step-progress {
    display: none;
  }
}

@media (max-width: 760px) {
  .step-progress {
    top: 2.4rem;
    bottom: calc(var(--space-3) * -1);
    left: calc(1.2rem - 0.5px);
    right: auto;
    width: 2px;
    height: auto;
    transform: scaleY(var(--fill, 1));
    transform-origin: center top;
  }

  .step:nth-child(3) .step-progress {
    display: block;
  }
}

/* Pointer illumination (js/motion.js): a soft pool of light behind the
   screenshots and logo pieces. Only shown for precise pointers. */
.surface-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(260px, 58%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(closest-side, rgba(var(--glow-color), calc(0.3 * var(--glow-strength))), rgba(var(--glow-color), calc(0.12 * var(--glow-strength))) 50%, rgba(var(--glow-color), 0));
  transform: translate(-50%, -50%);
  transition: opacity 420ms var(--ease-out);
}

.surface-glow.is-on {
  opacity: 1;
}

/* The Work screenshot covers most of its stage, so the light there is wider
   and shows as a halo around the frame rather than on the screenshot */
.project-stage .surface-glow {
  width: clamp(360px, 85%, 760px);
  background: radial-gradient(closest-side, rgba(var(--glow-color), calc(0.42 * var(--glow-strength))), rgba(var(--glow-color), calc(0.16 * var(--glow-strength))) 50%, rgba(var(--glow-color), 0));
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero previews: the desktop, then the phone, within about a second.
     Separate translate and scale properties compose with the hover lift. */
  .showcase-desktop {
    animation: arrive-desktop 640ms var(--ease-out) backwards;
  }

  .showcase-phone {
    animation: arrive-phone 620ms var(--ease-out) 300ms backwards;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    transform: translateY(-2px);
  }

  .button:active:not([disabled]) {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
  }

  .menu-toggle:active,
  .project-switch-button:active,
  .logo-stage-button:active {
    transform: scale(0.96);
  }

  .package-card:has(:focus-visible) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }

  .link-arrow:hover::after,
  .link-arrow:focus-visible::after {
    transform: translateX(3px);
  }

  .showcase:focus-visible .showcase-desktop {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }

  .showcase:focus-visible .showcase-phone {
    transform: translateY(-7px);
  }

  .project-stage-link:focus-visible .project-visit::after {
    transform: translate(2px, -2px);
  }
}

@keyframes arrive-desktop {
  from {
    opacity: 0;
    translate: 0 16px;
    scale: 0.985;
  }
}

@keyframes arrive-phone {
  from {
    opacity: 0;
    translate: 10px 22px;
    scale: 0.96;
  }
}

/* Lift and zoom on hover only where hover is real, so it does not stick after a tap */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
  }

  /* Package cards already lift, so their buttons only gain the shadow */
  .package-card .button:hover:not([disabled]) {
    transform: none;
  }

  .button:active:not([disabled]),
  .package-card .button:active:not([disabled]) {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
  }

  .package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }

  .project-stage-link:hover .frame-browser img {
    transform: scale(1.015);
  }

  .project-stage-link:hover .project-visit::after {
    transform: translate(2px, -2px);
  }

  .showcase:hover .showcase-desktop {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }

  .showcase:hover .showcase-phone {
    transform: translateY(-7px);
  }
}

@media print {
  .logo-piece {
    transform: none !important;
    opacity: 1 !important;
  }

  .content-width,
  .step::before,
  .step > h3,
  .step > p {
    opacity: 1 !important;
    transform: none !important;
  }

  .step-progress {
    transform: none !important;
  }

  .surface-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .surface-glow {
    display: none;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Websites offer: one priced card, payment and currency controls */

.offer-intro {
  text-align: center;
  margin-inline: auto;
}

.offer-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 var(--space-4);
}

.offer-controls[hidden] {
  display: none;
}

.offer-toggle {
  text-align: center;
}

.offer-legend {
  display: block;
  width: 100%;
  margin: 0 auto 0.4rem;
  padding: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.offer-toggle--currency .offer-legend {
  font-size: 0.8rem;
}

.offer-mode-options {
  grid-template-columns: 1fr 1fr;
}

.offer-mode-options:has(input[value="monthly"]:checked) .currency-thumb,
.offer-mode-options:has(input[value="Pay monthly"]:checked) .currency-thumb {
  transform: translateX(100%);
}

.offer-mode-options .currency-option span {
  white-space: nowrap;
}

.offer-monthly-terms {
  max-width: 46rem;
  margin: var(--space-4) auto 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
}

.offer-monthly-terms[hidden] {
  display: none;
}

.offer-terms-title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.offer-monthly-terms ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.offer-custom {
  text-align: center;
  margin-top: var(--space-5);
}

.offer-custom-title {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.offer-custom p {
  color: var(--color-text-muted);
  margin: 0 auto var(--space-2);
  max-width: 36rem;
}

/* Three service cards on shared rows (desktop) */

.svc-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 38rem;
  margin-inline: auto;
}

.svc-card {
  display: flex;
  flex-direction: column;
}

.svc-card > * {
  min-width: 0;
}

.svc-card [hidden] {
  display: none;
}

.svc-price {
  margin: var(--space-2) 0 0;
}

.svc-from {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.svc-price-line {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
}

.svc-price-line .price {
  font-family: var(--font-display);
  font-size: 2.1rem;
}

.svc-prefix {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-right: 0.15rem;
}

.svc-unit {
  font-size: 1rem;
}

.svc-terms {
  margin-top: var(--space-2);
}

.svc-facts {
  margin: 0 0 0.5rem;
  display: grid;
  gap: 0.35rem;
}

.svc-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.35rem;
}

.svc-facts dt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.svc-facts dd {
  margin: 0;
  font-weight: 600;
}

.svc-note,
.svc-incl {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.svc-incl strong {
  color: var(--color-text);
}

.svc-list {
  margin-top: var(--space-2);
}

.svc-costs {
  margin: var(--space-2) 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.svc-costs p {
  margin: 0 0 0.4rem;
}

.svc-action {
  margin-top: auto;
}

.svc-footnote {
  margin: var(--space-3) 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (min-width: 981px) {
  .svc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    column-gap: var(--space-3);
    row-gap: 0;
  }

  .svc-card {
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .svc-title { grid-row: 1; }
  .svc-desc { grid-row: 2; }
  .svc-price { grid-row: 3; }
  .svc-terms { grid-row: 4; }
  .svc-list { grid-row: 5; }
  .svc-costs { grid-row: 6; }

  .svc-action {
    grid-row: 7;
    margin-top: 0;
    align-self: end;
  }
}

/* Enquiry choices: service, payment preference and quote currency */

.enquire-choices {
  display: grid;
  gap: 1rem;
  grid-column: 1 / -1;
  min-width: 0;
}

.enquire-choices .currency-toggle,
.enquire-choices .currency-options {
  max-width: 100%;
  min-width: 0;
}

.enquire-choices .offer-mode-options .currency-option span {
  white-space: normal;
  text-align: center;
}

.enquire-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 0.75rem;
  border-left: 2px solid var(--color-accent-muted);
}

.enquire-summary[hidden] {
  display: none;
}
