/* Clear Skye Cleaning
   Brand is fixed: see DESIGN.md. Sky is the sea, grey blue is the land,
   brown is ink, butter is paper. */

/* Display face: Agrandir is the brand face. Until its web licence and files
   are in place, Archivo at 125% width stands in. To swap, add Agrandir's
   woff2 to /assets/fonts and put it first in the src list below. */
@font-face {
  font-family: "CS Display";
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"),
       url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}

:root {
  --brown: #432f2f;
  --butter: #ffefb8;
  --slate: #70889c;
  --mist: #9db1c2;
  --sky: #c4dae8;
  --chalk: #f2f1eb;  /* light gray */

  --ink: var(--brown);
  --paper: var(--butter);
  --rule: rgba(67, 47, 47, 0.28);

  --font-display: "CS Display", "Arial Narrow", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --step-0: 1.125rem;                                   /* 18px body */
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);      /* h2, serif caps */
  --step-4: clamp(2.6rem, 1.5rem + 4vw, 4.6rem);        /* h1, display caps */

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 6px;
  --shadow: 0 1.5rem 3rem -1.5rem rgba(67, 47, 47, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brown); color: var(--butter); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
:where(input, textarea) { caret-color: var(--brown); }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 4px; }
.on-ink :focus-visible { outline-color: var(--butter); }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; 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: 1rem; top: -4rem; z-index: 10;
  background: var(--brown); color: var(--butter); padding: 0.75rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Type */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.serif-caps {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.04;
  text-wrap: balance;
}
h2.serif-caps { font-size: var(--step-3); }
.signoff { font-family: var(--font-serif); font-style: italic; font-size: var(--step-2); line-height: 1; }
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 34ch; }
.measure { max-width: 62ch; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.8rem 1.6rem;
  background: var(--brown); color: var(--butter);
  border: 2px solid var(--brown); border-radius: var(--radius);
  font-weight: 600; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.button:hover { background: #2f2020; border-color: #2f2020; }
.button:active { transform: translateY(1px); }
.button svg { width: 1.15em; height: 1.15em; flex: none; transition: transform 0.25s var(--ease-out); }
.button:hover svg { transform: translateX(3px); }
.button[disabled] { opacity: 0.7; cursor: progress; }
.button--paper { background: var(--butter); color: var(--brown); border-color: var(--butter); }
.button--paper:hover { background: #fff6d6; border-color: #fff6d6; }

/* Header */
.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark {
  width: 3.25rem; height: 3.25rem; flex: none; border-radius: 50%;
  background: var(--butter); display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: 0.04em; line-height: 1;
}
.brand-mark img { width: 74%; height: 74%; object-fit: contain; align-self: center; justify-self: center; }
.site-header .brand-mark { background: none; width: 3.6rem; height: 3.6rem; }
.site-header .brand-mark img { width: 100%; height: 100%; }
.brand-name { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.08em; line-height: 1.15; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); font-weight: 500; }
.site-nav a:not(.button) { text-decoration: none; padding-block: 0.75rem; }
.site-nav a:not(.button):hover { text-decoration: underline; }
.site-nav .button { min-height: 2.9rem; padding: 0.6rem 1.25rem; white-space: nowrap; }
@media (max-width: 52rem) {
  .site-nav a:not(.button) { display: none; }
  .brand-name { font-size: 0.8rem; max-width: 9.5rem; }
}

/* Hero: the map */
.hero { padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas: "copy map";
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.hero-copy { grid-area: copy; padding-top: clamp(2rem, 7vh, 5.5rem); display: grid; gap: 1.5rem; }
.hero-copy h1 { font-size: var(--step-4); max-width: 11ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.hero-actions .text-link { font-weight: 600; padding-block: 0.75rem; }
.trust { list-style: none; padding: 0; display: grid; gap: 0.35rem; font-size: 1rem; line-height: 1.45; }
.trust li { display: flex; align-items: center; gap: 0.6rem; }
.trust svg { width: 1.15rem; height: 1.15rem; flex: none; }
.hero-aside { grid-area: map; align-self: end; justify-self: start; position: relative; z-index: 2; margin-bottom: 1.5rem; }
.elsewhere {
  background: var(--butter); border-radius: var(--radius); padding: 1.25rem 1.5rem;
  max-width: 26rem; display: grid; gap: 0.25rem; box-shadow: var(--shadow);
}
.elsewhere strong { font-weight: 600; font-size: var(--step-1); }
.elsewhere a { font-weight: 600; justify-self: start; padding-block: 0.5rem; }

.map {
  grid-area: map;
  position: relative;
  justify-self: center;
  width: min(100%, calc((100svh - 6rem) * 1000 / 1094), 50rem);
  aspect-ratio: 1000 / 1094;
  margin-top: -1rem;
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map .land { fill: var(--mist); stroke: var(--slate); stroke-width: 3; stroke-linejoin: round; }
.map .dot { fill: var(--brown); }
.map .ripple { fill: none; stroke: var(--brown); stroke-width: 2; opacity: 0; }
.map .svg-label { font-family: var(--font-serif); font-size: 58px; letter-spacing: 0.06em; fill: var(--brown); display: none; }
.map .home { fill: var(--brown); }

.villages { list-style: none; padding: 0; position: absolute; inset: 0; }
.villages li { position: absolute; left: var(--x); top: var(--y); }
.villages a {
  position: absolute; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.9rem; padding: 0.4rem 0.75rem;
  font-family: var(--font-serif); font-size: clamp(1.15rem, 0.9rem + 0.6vw, 1.45rem);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  text-decoration: none; border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.villages a:hover, .villages a[aria-current="true"] { background: var(--butter); box-shadow: var(--shadow); }
.villages a[aria-current="true"] { background: var(--brown); color: var(--butter); }
.villages .side-right a { left: 0.55rem; transform: translateY(-50%); }
.villages .side-left a { right: 0.55rem; transform: translateY(-50%); }
.villages .side-above a { left: 0; transform: translate(-50%, calc(-100% - 0.45rem)); }
.villages .side-below a { left: 0; transform: translate(-50%, 0.45rem); }
.villages .side-upright a { left: 0.45rem; transform: translateY(-100%); }
.villages .village-arrow { display: none; }

/* Portree: Michelle's home pin */
.villages .home a {
  left: 0.75rem; transform: translateY(-18%);
  background: var(--brown); color: var(--butter); padding: 0.4rem 1rem 0.4rem 0.4rem;
  box-shadow: var(--shadow);
}
.villages .home a:hover { background: #2f2020; }
.villages .home a[aria-current="true"] { outline: 3px solid var(--butter); outline-offset: 2px; }
.villages .home .photo {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; flex: none; overflow: hidden;
  border: 3px solid var(--butter); background: var(--sky);
}
.villages .home .photo img { width: 100%; height: 100%; object-fit: cover; }
.home-note { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.85rem; font-weight: 500; margin-top: 0.3rem; }

/* The opening moment: dots ripple out from Portree */
@media (prefers-reduced-motion: no-preference) {
  .js .map .dot { animation: dot-in 0.7s var(--ease-out) both; animation-delay: var(--d, 0ms); transform-box: fill-box; transform-origin: center; }
  .js .map .ripple { animation: ripple 2.2s var(--ease-out) 0.2s 1 both; transform-box: fill-box; transform-origin: center; }
  .js .villages li { animation: label-in 0.8s var(--ease-out) both; animation-delay: calc(var(--d, 0ms) + 120ms); }
}
@keyframes dot-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes ripple { 0% { transform: scale(0.2); opacity: 0.7; } 100% { transform: scale(9); opacity: 0; } }
@keyframes label-in { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }

@media (max-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "map" "aside"; }
  .hero-aside { grid-area: aside; justify-self: stretch; margin-bottom: 0; }
  .villages li.home { grid-column: 1 / -1; order: -1; }
  .hero-copy { padding-top: 1.5rem; }
  .hero-copy h1 { max-width: 12ch; }
  .map { width: min(100%, 34rem); margin-top: 2rem; }
  .map svg { position: relative; height: auto; }
  .map .svg-label { display: block; }
  .map .svg-label.no-small { display: none; }
  .villages a { white-space: normal; }
  .villages { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
  .villages li { position: static; animation: none !important; }
  .villages a, .villages .home a {
    position: static; transform: none !important; width: 100%; justify-content: space-between;
    min-height: 3.5rem; padding: 0.75rem 1rem;
    background: var(--butter); color: var(--brown); box-shadow: none;
    font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: var(--step-0);
  }
  .villages .home a { background: var(--brown); color: var(--butter); }
  .villages .home .photo { display: none; }
  .home-note { display: inline; margin: 0 0 0 0.4rem; }
  .villages .village-arrow { display: block; width: 1.2rem; height: 1.2rem; flex: none; }
  .villages a[aria-current="true"] { background: var(--brown); color: var(--butter); }
  .map { aspect-ratio: auto; }
  .hero-aside { margin-top: 1.5rem; }
  .elsewhere { max-width: none; box-shadow: none; }
}

/* Sections */
.section { padding-block: var(--section); }
.section--paper { background: var(--butter); }
.section--chalk { background: var(--chalk); }
.section--land { background: var(--mist); }
.section--ink { background: var(--brown); color: var(--butter); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Services */
.services { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.services-intro { display: grid; gap: 1.25rem; position: sticky; top: 2rem; }
.service-list { list-style: none; padding: 0; border-top: 2px solid var(--brown); }
.service-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 2rem;
  padding-block: 1.5rem; border-bottom: 1px solid var(--rule);
}
.service-list h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.service-list p { grid-column: 1; max-width: 46ch; }
.service-list .min { grid-column: 2; grid-row: 1 / span 2; align-self: start; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 0.15rem; }
.service-list .min b { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: var(--step-2); line-height: 1; }
.service-list .when { font-size: 1rem; font-style: italic; }

.addons { margin-top: clamp(3rem, 6vw, 4.5rem); }
.addons h3 { font-family: var(--font-serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--step-2); margin-bottom: 1rem; }
.price-list { display: grid; gap: 0; }
.price-list div { display: flex; align-items: baseline; gap: 0.75rem; padding-block: 0.7rem; }
.price-list dt { font-weight: 500; }
.price-list div::after { content: none; }
.price-list .leader { flex: 1; border-bottom: 2px dotted var(--brown); transform: translateY(-0.3em); min-width: 1.5rem; }
.price-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-list dd small { font-weight: 500; font-size: 1rem; }
.fine { font-size: 1rem; line-height: 1.6; max-width: 56ch; margin-top: 1rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sky);
  box-shadow: var(--shadow); transform: rotate(-1.5deg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.photos { position: relative; padding: 0 12% 18% 0; }
.portrait--small {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  transform: rotate(3deg); border: 6px solid var(--butter);
}
.about-copy { display: grid; gap: 1.1rem; }
.about-copy h2 { margin-bottom: 0.5rem; }
.about-copy p { max-width: 58ch; }
.about-copy .signoff { margin-top: 0.75rem; font-size: var(--step-3); }

/* How it works */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { display: grid; gap: 0.75rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--butter); }
.steps .n { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: var(--step-3); line-height: 1; }
.steps h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.steps p { font-size: 1.0625rem; }
.steps-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.steps-note p { max-width: 52ch; }

/* Form */
.quote-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.quote-intro { display: grid; gap: 1.25rem; position: sticky; top: 2rem; }
.quote-intro .greeting { font-weight: 600; font-size: var(--step-1); min-height: 1.6em; }
.quote-intro .contact { font-size: 1rem; }
.form-panel { background: var(--butter); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.form-panel form { display: grid; gap: 2.5rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.5rem; }
legend { float: left; width: 100%; padding: 0; margin-bottom: 1.25rem; font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--step-2); line-height: 1.05; }
legend + * { clear: both; }
fieldset + fieldset { border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.field { display: grid; gap: 0.5rem; align-content: start; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.label { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.label .opt { font-weight: 400; }
.hint { font-size: 1rem; line-height: 1.45; margin-top: -0.25rem; }
.input, .select, .textarea {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem;
  background: #fffbea; border: 2px solid var(--brown); border-radius: var(--radius);
  font-size: var(--step-0); line-height: 1.4; color: var(--brown);
  transition: box-shadow 0.2s, background-color 0.6s;
}
.input::placeholder, .textarea::placeholder { color: #6b5555; opacity: 1; }
.textarea { min-height: 7rem; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23432f2f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.25rem;
}
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--sky), 0 0 0 6px var(--brown); }
.select.just-set { background-color: var(--sky); }
[aria-invalid="true"] { border-color: #8a1f1f; border-width: 3px; }
.error-msg { color: #7a1a1a; font-weight: 600; font-size: 1rem; display: none; align-items: center; gap: 0.4rem; }
.error-msg svg { width: 1.1rem; height: 1.1rem; flex: none; }
.has-error .error-msg { display: flex; }

.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3.1rem; padding: 0.6rem 1.1rem;
  border: 2px solid var(--brown); border-radius: 999px; background: #fffbea; font-weight: 500; line-height: 1.25;
  transition: background-color 0.15s, color 0.15s;
}
.choice span::before {
  content: ""; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid currentColor; flex: none;
  transition: box-shadow 0.15s;
}
.choice input:hover + span { background: var(--sky); }
.choice input:checked + span { background: var(--brown); color: var(--butter); }
.choice input:checked + span::before { box-shadow: inset 0 0 0 3px var(--brown), inset 0 0 0 10px var(--butter); }
.choice input:focus-visible + span { outline: 3px solid var(--brown); outline-offset: 3px; }
.has-error .choices .choice span { border-color: #8a1f1f; }

.form-foot { display: grid; gap: 1rem; justify-items: start; border-top: 1px solid var(--rule); padding-top: 2rem; }
.form-foot .small { font-size: 1rem; line-height: 1.55; max-width: 52ch; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: #7a1a1a; background: #fde3d6; border-radius: var(--radius); padding: 1rem 1.25rem; }
.thanks { display: grid; gap: 1rem; padding-block: 1rem; }
.thanks h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: var(--step-2); line-height: 1.05; }
.thanks .signoff { font-size: var(--step-3); }
.thanks[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--brown); color: var(--butter); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer-grid .brand-mark { background: none; width: 3.6rem; height: 3.6rem; }
.footer-grid .brand-mark img { width: 100%; height: 100%; }
.footer-grid p, .footer-grid li { font-size: 1rem; line-height: 1.7; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid a { display: inline-block; padding-block: 0.35rem; }
.footer-title { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.35rem; margin-bottom: 0.5rem; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 239, 184, 0.3); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }

/* Legal pages */
.legal-head { padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.legal-head h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); max-width: 16ch; }
.legal-head p { margin-top: 1rem; }
.legal-body { background: var(--chalk); padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section); }
.legal-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.toc { position: sticky; top: 1.5rem; font-size: 0.95rem; line-height: 1.4; max-height: calc(100vh - 3rem); overflow: auto; }
.toc p { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.3rem; margin-bottom: 0.75rem; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 0.1rem; }
.toc a { display: block; padding: 0.4rem 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-family: var(--font-serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--step-2); line-height: 1.1; margin-top: 3rem; scroll-margin-top: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.prose li::marker { color: var(--slate); }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; border-bottom: 2px solid var(--brown); }
.prose .lead { font-size: var(--step-1); line-height: 1.55; }
.not-found { min-height: 70vh; display: grid; align-content: center; gap: 1.5rem; padding-block: 4rem; }

/* Responsive */
@media (max-width: 60rem) {
  .services, .about, .quote-layout, .legal-layout { grid-template-columns: 1fr; }
  .services-intro, .quote-intro, .toc { position: static; }
  .toc { max-height: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .photos { max-width: 30rem; }
}
@media (max-width: 36rem) {
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .service-list li { grid-template-columns: 1fr; }
  .service-list .min { grid-column: 1; grid-row: auto; text-align: left; display: flex; align-items: baseline; gap: 0.5rem; }
  .service-list .min b { display: inline; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose td { border: 0; padding: 0; }
  .prose tr { padding-block: 0.75rem; border-bottom: 1px solid var(--rule); }
  .prose td:first-child { font-weight: 600; }
}

@media print {
  .site-header nav, .hero, .site-footer { display: none; }
  body, .legal-body { background: #fff; }
}

/* Quote start panel (links to the ServiceM8 quote form) */
.quote-start { display: grid; gap: 1.75rem; justify-items: start; }
.quote-start .button--big { margin-block: 0.75rem; }
.quote-start h3 { font-family: var(--font-serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--step-2); line-height: 1.05; }
.quote-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: q; width: 100%; }
.quote-steps li { counter-increment: q; display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.quote-steps li::before { content: counter(q); grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--brown); color: var(--butter); display: grid; place-items: center; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.1rem; }
.quote-steps b { font-weight: 600; display: block; font-size: var(--step-1); line-height: 1.3; }
.button--big { min-height: 3.75rem; padding: 1rem 2rem; font-size: var(--step-1); }
.quote-start .small { font-size: 1rem; line-height: 1.55; max-width: 52ch; }

/* ---------- Animations ---------- */

/* Route lines from Portree to each village */
.map .route { fill: none; stroke: var(--brown); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.5 14; opacity: 0.75; }
.map .route-draw { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .map .route-draw { animation: route-draw 1.1s var(--ease-out) both; animation-delay: calc(var(--d, 0ms) + 250ms); }
}
@keyframes route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Highlighter sweep on "a Skye local" */
.hl { white-space: nowrap;
  color: inherit; padding: 0 0.15em; margin: 0 -0.05em;
  background: linear-gradient(transparent 55%, var(--butter) 55%, var(--butter) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .js .hl { background-size: 0% 100%; animation: hl-sweep 0.9s var(--ease-out) 0.9s forwards; }
}
@keyframes hl-sweep { to { background-size: 100% 100%; } }

/* Gentle fade-ups */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
}

/* How it works: lines fill step by step */
.steps li { border-top-color: rgba(255, 239, 184, 0.25); position: relative; }
.steps li::after {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--butter);
  transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  .js .steps li::after { transform: scaleX(0); transition: transform 0.8s var(--ease-out); }
  .js .steps.is-in li::after { transform: scaleX(1); }
  .js .steps.is-in li:nth-child(2)::after { transition-delay: 0.5s; }
  .js .steps.is-in li:nth-child(3)::after { transition-delay: 1s; }
  .js .steps.is-in li:nth-child(4)::after { transition-delay: 1.5s; }
  .js .steps li .n { transition: opacity 0.5s, transform 0.6s var(--ease-out); }
  .js .steps:not(.is-in) li .n { opacity: 0.25; transform: translateY(6px); }
  .js .steps.is-in li:nth-child(2) .n { transition-delay: 0.5s; }
  .js .steps.is-in li:nth-child(3) .n { transition-delay: 1s; }
  .js .steps.is-in li:nth-child(4) .n { transition-delay: 1.5s; }
}

/* About: a cascade of polaroids that "develop" as they arrive */
.photo-stack { position: relative; width: 100%; max-width: 30rem; aspect-ratio: 10 / 13.6; justify-self: center; }
.polaroid {
  margin: 0; position: absolute; width: 55%; background: var(--chalk); padding: 0.75rem 0.75rem 0;
  box-shadow: 0 1.4rem 2.4rem -1.3rem rgba(67, 47, 47, 0.6), 0 1px 2px rgba(67, 47, 47, 0.15);
  transform: rotate(var(--r)); transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.polaroid:nth-of-type(1) { top: 0; left: 0; z-index: 1; }
.polaroid:nth-of-type(2) { top: 21%; right: 0; z-index: 2; }
.polaroid:nth-of-type(3) { top: 50%; left: 3%; z-index: 3; }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.polaroid figcaption {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.4rem);
  text-align: center; padding: 0.6rem 0 0.85rem; line-height: 1.2;
}
.tape {
  position: absolute; top: -0.85rem; left: 50%; width: 5.5rem; height: 1.6rem; margin-left: -2.75rem;
  background: rgba(242, 241, 235, 0.72); box-shadow: 0 1px 2px rgba(67, 47, 47, 0.18);
  transform: rotate(calc(var(--r) * -1.4)); backdrop-filter: blur(1px);
}
@media (hover: hover) {
  .polaroid:hover { transform: rotate(0deg) scale(1.04); box-shadow: 0 2rem 3.2rem -1.4rem rgba(67, 47, 47, 0.65); z-index: 5; }
}
/* Depth on scroll: each polaroid drifts at its own pace (set by site.js) */
.polaroid { translate: 0 var(--py, 0px); }
@media (prefers-reduced-motion: no-preference) {
  .js .photo-stack { opacity: 1; transform: none; }
}
@media (max-width: 60rem) {
  .photo-stack { max-width: 24rem; }
}

/* Brand line icons, dotted subtly through the page */
.has-deco { position: relative; overflow: hidden; isolation: isolate; }
.has-deco > .wrap { position: relative; z-index: 1; }
.deco { position: absolute; z-index: 0; pointer-events: none; color: var(--brown); opacity: 0.16; width: var(--s, 6rem); aspect-ratio: var(--ar, 1); transform: rotate(var(--rot, 0deg));
  background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.section--ink .deco { color: var(--butter); opacity: 0.14; }
.deco--services { --s: 7rem; --rot: -10deg; left: 4%; bottom: 8%; }
.deco--services2 { --s: 5rem; --rot: 8deg; right: 2.5%; top: 2.5%; }
.deco--about { --s: 5.5rem; --rot: -6deg; right: 4%; top: 7%; }
.deco--how { --s: 8rem; --rot: 12deg; right: 4%; top: 10%; }
.deco--quote { --s: 8rem; --rot: -8deg; left: 3%; bottom: 6%; }
.deco--quote2 { --s: 5.5rem; --rot: 10deg; right: 2%; top: 5%; }

@media (max-width: 60rem) {
  .deco { --s: 4rem; opacity: 0.12; }
  .deco--services, .deco--quote { display: none; }
}

/* Reviews strip (two rows drifting in opposite directions) */
.reviews { padding-bottom: clamp(4rem, 3rem + 4vw, 6.5rem); }
.reviews h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.marquees { display: grid; gap: 1.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { overflow: hidden; }
.marquee-track, .marquee-dupe { display: flex; gap: 1.25rem; width: max-content; }
.marquee-dupe { padding-left: 1.25rem; }
.review { margin: 0; width: 20rem; flex: none; background: #fffdf6; border-radius: var(--radius); padding: 1.25rem 1.4rem;
  box-shadow: 0 1rem 2rem -1.4rem rgba(67, 47, 47, 0.45); display: grid; gap: 0.75rem; align-content: space-between; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.55; }
.review figcaption { font-size: 0.95rem; }
.review figcaption b { font-weight: 600; }
.review figcaption span { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; margin-left: 0.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: drift 60s linear infinite; }
  .marquee--reverse .marquee-track { animation-direction: reverse; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-dupe { display: none; }
}
.deco--reviews { --s: 4.5rem; --rot: 10deg; right: 4%; top: 8%; }

/* Instagram in the footer */
.insta { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 239, 184, 0.3); display: grid; gap: 1.25rem; }
.insta-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; }
.insta-handle { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; padding-block: 0.5rem; }
.insta-handle:hover { text-decoration: underline; }
.insta-handle svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Services: clickable cards ---------- */
.services-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.25rem clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.hint-tap { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; margin-top: 0.5rem; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.svc-col { display: grid; gap: 1.25rem; align-content: start; }
.svc {
  position: relative; background: #fffdf6; border-radius: 10px; padding: 1.5rem 1.6rem 1.25rem;
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1.1rem; row-gap: 0.4rem;
  box-shadow: 0 1px 2px rgba(67, 47, 47, 0.1), 0 1rem 2rem -1.6rem rgba(67, 47, 47, 0.4);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.35s;
}
.svc > *:not(.svc-icon) { grid-column: 2; }
.svc-icon { grid-row: 1 / span 3; width: 3.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--sky); position: relative; transition: transform 0.5s var(--ease-out), background-color 0.35s; }
.svc-icon::after { content: ""; position: absolute; inset: 18%; background: var(--brown); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.svc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; }
.svc h3 { margin: 0; font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.svc-toggle { all: unset; cursor: pointer; }
.svc-toggle::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }   /* whole card is the button */
.svc-toggle:focus-visible::after { outline: 3px solid var(--brown); outline-offset: 3px; }
.svc-min { font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.svc-min b { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.15rem; }
.svc-summary { font-size: 1.0625rem; line-height: 1.55; }
.svc-more { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 1rem; margin-top: 0.35rem; justify-self: start; }
.svc-more svg { width: 1.15rem; height: 1.15rem; transition: transform 0.4s var(--ease-out); }
.svc-more-close { display: none; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(67, 47, 47, 0.1), 0 1.6rem 2.6rem -1.6rem rgba(67, 47, 47, 0.5); }
.svc:hover .svc-icon { transform: rotate(-8deg) scale(1.06); }
.svc.is-open { background: var(--butter); }
.svc.is-open .svc-icon { background: #fffdf6; }
.svc.is-open .svc-more svg { transform: rotate(135deg); }
.svc.is-open .svc-more-open { display: none; }
.svc.is-open .svc-more-close { display: inline; }

.svc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease-out); }
.svc-panel-inner { overflow: hidden; min-height: 0; }
.js .svc:not(.is-open) .svc-panel { grid-template-rows: 0fr; }
.svc-list { list-style: none; padding: 0.9rem 0 0; margin: 0.6rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.55rem; }
.svc-list li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.6rem; align-items: start; font-size: 1rem; line-height: 1.5; }
.svc-list svg { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; }
.svc-note { font-size: 0.95rem; font-style: italic; margin: 0.9rem 0 0.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .svc .svc-list li { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
  .js .svc.is-open .svc-list li { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i) * 0.06s); }
}
@media (prefers-reduced-motion: reduce) { .svc-panel { transition: none; } }

.services-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); margin-top: clamp(3rem, 6vw, 4.5rem); align-items: start; }
.services-foot .addons { margin-top: 0; }
.not-included h3 { font-family: var(--font-serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--step-2); margin-bottom: 1rem; }
@media (max-width: 60rem) {
  .services-head, .services-foot { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  .svc { grid-template-columns: 2.75rem minmax(0, 1fr); padding: 1.25rem; column-gap: 0.9rem; }
  .svc-icon { width: 2.75rem; }
}

/* ---------- How it works: richer sequence ---------- */
.steps li::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--butter); box-shadow: 0 0 0 4px rgba(255, 239, 184, 0.18); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .js .steps.is-in li::before { animation: step-dot 0.8s var(--ease-out) both; }
  .js .steps.is-in li:nth-child(2)::before { animation-delay: 0.5s; }
  .js .steps.is-in li:nth-child(3)::before { animation-delay: 1s; }
  .js .steps.is-in li:nth-child(4)::before { animation-delay: 1.5s; }
  .js .steps li .n { transform-origin: left bottom; }
  .js .steps.is-in li .n { animation: num-pop 0.7s var(--ease-out) both; }
  .js .steps.is-in li:nth-child(2) .n { animation-delay: 0.5s; }
  .js .steps.is-in li:nth-child(3) .n { animation-delay: 1s; }
  .js .steps.is-in li:nth-child(4) .n { animation-delay: 1.5s; }
  .js .steps li h3, .js .steps li p { transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .js .steps:not(.is-in) li h3, .js .steps:not(.is-in) li p { opacity: 0; transform: translateY(10px); }
  .js .steps.is-in li:nth-child(1) h3 { transition-delay: 0.15s; } .js .steps.is-in li:nth-child(1) p { transition-delay: 0.25s; }
  .js .steps.is-in li:nth-child(2) h3 { transition-delay: 0.65s; } .js .steps.is-in li:nth-child(2) p { transition-delay: 0.75s; }
  .js .steps.is-in li:nth-child(3) h3 { transition-delay: 1.15s; } .js .steps.is-in li:nth-child(3) p { transition-delay: 1.25s; }
  .js .steps.is-in li:nth-child(4) h3 { transition-delay: 1.65s; } .js .steps.is-in li:nth-child(4) p { transition-delay: 1.75s; }
  .js .steps[data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}
@keyframes step-dot { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes num-pop { 0% { opacity: 0.2; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }

/* Equal card sizes (closed) */
.svc:not(.is-open) { min-height: var(--card-h, auto); }
.svc-more { align-self: end; }

/* Add-ons / Not included drawers */
.services-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.drawer { background: #fffdf6; border-radius: 10px; box-shadow: 0 1px 2px rgba(67, 47, 47, 0.1), 0 1rem 2rem -1.6rem rgba(67, 47, 47, 0.4); transition: background-color 0.35s; }
.drawer h3 { margin: 0; }
.drawer-toggle {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 0.75rem;
  padding: 1.15rem 1.5rem; min-height: 3.75rem; border-radius: 10px;
  font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--step-2); line-height: 1.1;
}
.drawer-toggle:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.drawer-sub { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 500; }
.drawer-toggle .chev { width: 1.4rem; height: 1.4rem; margin-left: auto; flex: none; transition: transform 0.4s var(--ease-out); }
.drawer.is-open { background: var(--butter); }
.drawer.is-open .chev { transform: rotate(180deg); }
.drawer-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease-out); }
.js .drawer:not(.is-open) .drawer-panel { grid-template-rows: 0fr; }
.drawer-inner { overflow: hidden; min-height: 0; padding: 0 1.5rem; }
.drawer-inner > :last-child { margin-bottom: 1.25rem; }
.drawer .price-list { border-top: 1px solid var(--rule); padding-top: 0.5rem; }
.not-list { list-style: none; padding: 0.9rem 0 0; margin: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.25rem; font-size: 1rem; }
.not-list li { display: flex; gap: 0.5rem; align-items: baseline; }
.not-list li::before { content: ""; width: 0.75rem; height: 2px; background: var(--brown); flex: none; transform: translateY(-0.3em); }
@media (prefers-reduced-motion: no-preference) {
  .js .drawer .drawer-inner > * { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
  .js .drawer.is-open .drawer-inner > * { opacity: 1; transform: none; transition-delay: 0.15s; }
  .js .drawer.is-open .drawer-inner > *:nth-child(2) { transition-delay: 0.25s; }
}
@media (prefers-reduced-motion: reduce) { .drawer-panel { transition: none; } }
@media (max-width: 60rem) { .services-foot { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { .not-list { grid-template-columns: 1fr; } }

/* Services heading centred, intro directly underneath */
.services-head { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1rem; }
.services-head .measure { max-width: 56ch; margin-inline: auto; text-wrap: balance; }
.services-head .hint-tap { margin-top: 0.75rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-head { display: grid; gap: 1rem; position: sticky; top: 2rem; }
.faq-list { display: grid; gap: 0.75rem; }
.faq-item .drawer-toggle { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: var(--step-1); font-weight: 600; line-height: 1.35; }
.faq-item .drawer-inner p { border-top: 1px solid var(--rule); padding-top: 0.9rem; max-width: 62ch; }
.deco--faq { --s: 5rem; --rot: -8deg; left: 3%; bottom: 6%; }
@media (max-width: 60rem) { .faq { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* ---------- Phone "Get a quote" bar ---------- */
.quote-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; align-items: center; gap: 1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); background: var(--brown); color: var(--butter);
  box-shadow: 0 -0.75rem 2rem -1rem rgba(67, 47, 47, 0.6);
  transform: translateY(110%); transition: transform 0.45s var(--ease-out);
}
.quote-bar .button { flex: 1; background: var(--butter); color: var(--brown); border-color: var(--butter); min-height: 3.1rem; }
.quote-bar span { font-size: 0.9rem; line-height: 1.3; max-width: 8rem; }
.quote-bar.is-shown { transform: none; }
@media (max-width: 60rem) { .quote-bar { display: flex; } body { padding-bottom: 4.75rem; } }

/* ---------- Map: Portree pulse and village tooltips ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .map .ripple { animation: ripple 3.2s var(--ease-out) 0.2s infinite; }
}
@media (min-width: 60.01rem) {
  .villages a[data-tip]::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 0.4rem); transform: translate(-50%, 4px);
    background: var(--brown); color: var(--butter); font-family: var(--font-body); text-transform: none; letter-spacing: 0;
    font-size: 0.85rem; font-weight: 500; white-space: nowrap; padding: 0.35rem 0.6rem; border-radius: 4px;
    opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease-out);
  }
  .villages a[data-tip]:hover::after, .villages a[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
  .villages .home a[data-tip]::after { background: var(--butter); color: var(--brown); }
}

/* ---------- Shoreline edges between sections ---------- */
.section, .site-footer { position: relative; }
.has-deco { overflow: visible; overflow-x: clip; }
.section--chalk::before, .section--land::before, .section--ink::before, #quote::before, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -27px; height: 28px; background: inherit; pointer-events: none; z-index: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28V18C120 8 220 4 360 10s250 18 400 12 260-20 400-18 200 10 280 6V28Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28V18C120 8 220 4 360 10s250 18 400 12 260-20 400-18 200 10 280 6V28Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
#quote { background: var(--sky); }
.section--ink::before { -webkit-mask-position: center bottom; transform: scaleX(-1); }

/* ---------- Button shine ---------- */
.button { position: relative; overflow: hidden; isolation: isolate; }
.button::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg);
}
@media (prefers-reduced-motion: no-preference) {
  .button:hover::after { animation: shine 0.9s var(--ease-out); }
}
@keyframes shine { to { left: 130%; } }

/* "Live somewhere else" card: smaller, light gray */
.elsewhere { background: var(--chalk); max-width: 20rem; padding: 0.9rem 1.1rem; gap: 0.1rem; box-shadow: 0 1rem 2rem -1.4rem rgba(67, 47, 47, 0.45); }
.elsewhere strong { font-size: 1.05rem; }
.elsewhere span { font-size: 0.95rem; line-height: 1.45; }
.elsewhere a { font-size: 0.95rem; padding-block: 0.35rem 0; }
.hero-aside { margin-bottom: 2.5rem; }
@media (max-width: 60rem) { .elsewhere { max-width: none; } }
@media (min-width: 60.01rem) { .hero-aside { justify-self: end; margin-bottom: 1.5rem; } }

/* Before and after slider */
.ba-block { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 48rem) { .ba-block { grid-template-columns: minmax(0, 26rem) minmax(0, 30rem); justify-content: center; } }
.ba-copy h3 { margin: 0 0 0.75rem; font-size: var(--step-2, 1.8rem); }
.ba-copy p { max-width: 34ch; }
.ba { --pos: 50%; position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1.5rem 3rem -1.5rem rgba(67,47,47,0.45); border: 0.6rem solid #fff; touch-action: pan-y; user-select: none; }
.ba img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--butter, #ffefb8); box-shadow: 0 0 0 1px rgba(67,47,47,0.25); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border-radius: 50%; background: var(--brown, #432f2f); box-shadow: 0 0.4rem 1rem -0.3rem rgba(67,47,47,0.6); transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.ba-knob::before, .ba-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -0.4rem; border: 0.4rem solid transparent; }
.ba-knob::before { left: 0.45rem; border-right-color: var(--butter, #ffefb8); }
.ba-knob::after { right: 0.45rem; border-left-color: var(--butter, #ffefb8); }
.ba:hover .ba-knob, .ba.is-dragging .ba-knob { transform: scale(1.1); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--brown, #432f2f); outline-offset: 3px; }
.ba-tag { position: absolute; top: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--brown, #432f2f); color: var(--butter, #ffefb8); pointer-events: none; transition: opacity 0.2s; }
.ba-tag--before { left: 0.75rem; }
.ba-tag--after { right: 0.75rem; background: var(--butter, #ffefb8); color: var(--brown, #432f2f); }

/* More before and after pairs: sideways strip */
.pairs { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pairs-head { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 600; text-align: center; }
.pairs-strip { display: flex; gap: 1.25rem; margin: 0 calc(-1 * var(--gutter, 1rem)); padding: 0.5rem var(--gutter, 1rem) 1.25rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter, 1rem); scrollbar-width: thin; scrollbar-color: rgba(67,47,47,0.35) transparent; }
.pairs-strip:focus-visible { outline: 3px solid var(--brown, #432f2f); outline-offset: 3px; }
.pair { flex: 0 0 auto; width: min(19rem, 78vw); scroll-snap-align: start; background: #fff; border-radius: 6px; padding: 0.5rem 0.5rem 0.75rem; box-shadow: 0 1rem 2rem -1.25rem rgba(67,47,47,0.45); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.pair:hover { transform: translateY(-4px) rotate(-0.6deg); }
.pair:nth-child(even):hover { transform: translateY(-4px) rotate(0.6deg); }
.pair-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.pair-shot { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; }
.pair-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pair-shot .ba-tag { top: 0.4rem; left: 0.4rem; right: auto; padding: 0.15rem 0.5rem; font-size: 0.7rem; }
.pair-title { margin: 0.6rem 0.25rem 0; font-size: 0.95rem; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .pair, .pair:hover { transition: none; transform: none; } }

/* ---------- Phone hero: tighter ---------- */
.villages-label { display: none; }
@media (max-width: 40rem) {
  .header-cta { display: none; }
  .site-header { padding-block: 1rem 0; }
  .hero-copy { padding-top: 1rem; gap: 1.1rem; }
  .hero-copy h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); max-width: none; line-height: 1.02; }
  .hero-copy .lede { font-size: 1.05rem; line-height: 1.6; }
  .hero-actions { margin-top: 0; gap: 0.75rem 1.25rem; }
  .trust { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.9rem; }
  .trust li { gap: 0.35rem; }
  .trust svg { width: 0.95rem; height: 0.95rem; }
  .map { margin-top: 1.25rem; }
  .villages-label { display: block; margin: 1.25rem 0 0.6rem; font-weight: 600; font-size: 1rem; }
  .villages { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0; }
  .villages li.home { order: -1; }
  .villages a, .villages .home a {
    width: auto; min-height: 2.75rem; padding: 0.45rem 1rem; justify-content: center;
    border-radius: 999px; border: 1.5px solid var(--brown); background: transparent;
    font-size: 0.98rem; font-weight: 500;
  }
  .villages .home a { background: var(--brown); border-color: var(--brown); }
  .villages a:hover, .villages a[aria-current="true"] { background: var(--brown); color: var(--butter); box-shadow: none; }
  .villages .village-arrow { display: none; }
  .home-note { font-size: 0.85rem; opacity: 0.85; }
  .villages a[data-tip]::after { display: none; }
  .hero { padding-bottom: 2.5rem; }
  .hero-aside { margin-top: 1rem; }
  .elsewhere { display: block; background: none; padding: 0; font-size: 0.95rem; }
  .elsewhere strong { font-size: 0.95rem; font-weight: 500; }
  .elsewhere span { display: none; }
  .elsewhere a { display: inline; padding: 0; margin-left: 0.3rem; }
}
