/* Saunders Design — palette drawn from the Cornish coast:
   china clay white, slate, sea-glass and a touch of gorse. */
:root {
  --clay: #f3f0e9;
  --clay-deep: #e8e3d8;
  --slate: #1e2624;
  --slate-soft: #3a4441;
  --stone: #6f7773;
  --sea: #5b7a74;
  --sea-pale: #c9d6d1;
  --gorse: #b8913a;
  --line: rgba(30, 38, 36, 0.14);
  --line-light: rgba(243, 240, 233, 0.18);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  /* Uncial-style letterforms, after old Celtic manuscript lettering */
  --celtic: "Cormorant Unicase", "Newsreader", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 4.5rem;
}

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

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

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

/* Fine paper grain, fixed so it never repaints on scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.4 0 0 0 0 0.38 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--sea-pale); color: var(--slate); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--slate);
  color: var(--clay);
  z-index: 200;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

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

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--sea-pale); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.015em;
  margin: 0;
}
em { font-style: italic; color: var(--sea); }

/* Big headings use the Celtic face; it has no italic, so emphasis is colour only */
h1, h2 {
  font-family: var(--celtic);
  font-weight: 400;
  letter-spacing: 0;
}
h1 em, h2 em { font-style: normal; }

.h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  max-width: 16ch;
}
.h2--light { color: var(--clay); }
.h2--light em { color: var(--sea-pale); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(243, 240, 233, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

/* Wordmark: "Saunders" in a Celtic face, "Design" in plain spaced capitals */
.wordmark {
  text-decoration: none;
  font-family: "Metamorphous", var(--celtic);
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}
.wordmark__name { font-weight: 400; }
.wordmark__thin {
  font-family: var(--sans);
  font-size: max(0.46em, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sea);
}
.wordmark--small { font-size: 1.3rem; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  font-size: 0.9rem;
}
.nav a {
  text-decoration: none;
  color: var(--slate-soft);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--slate); }
.nav a:hover::after { transform: scaleX(1); }
.nav__cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--slate);
  border-radius: 999px;
  color: var(--slate) !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease) !important;
}
.nav__cta:hover { background: var(--slate); color: var(--clay) !important; }

@media (max-width: 720px) {
  .nav a:not(.nav__cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.6rem;
  background: var(--slate);
  color: var(--clay);
  border: 0;
  border-radius: 999px;
  font: 500 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--sea); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--light { background: var(--clay); color: var(--slate); }
.btn--light:hover { background: var(--sea-pale); }

.link {
  font-size: 0.95rem;
  color: var(--slate-soft);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero__title {
  font-size: clamp(2.9rem, 6.6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}
.hero__lede {
  max-width: 34rem;
  margin: 0 0 2.5rem;
  color: var(--slate-soft);
  font-size: 1.12rem;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}
.hero__figure {
  margin: 0;
  position: relative;
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: 30% center;
  border-radius: 2px;
}
.hero__figure figcaption,
.about__figure figcaption {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--stone);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__figure img { aspect-ratio: 3 / 2; }
}

/* ---------- Who it's for (slow ticker) ---------- */
.for {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.for__label {
  flex: none;
  margin: 0;
  padding: 1.35rem var(--gutter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  background: var(--clay);
  position: relative;
  z-index: 1;
  border-right: 1px solid var(--line);
}
.for__track {
  display: flex;
  width: max-content;
  animation: drift 70s linear infinite;
}
.for__row { display: flex; }
.for__row span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  padding: 0 1.4rem;
  white-space: nowrap;
  color: var(--slate-soft);
}
.for__row span::after {
  content: "·";
  font-style: normal;
  margin-left: 2.8rem;
  color: var(--gorse);
}
@keyframes drift {
  to { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .for__label { display: none; }
}

/* ---------- About ---------- */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(2.5rem, 7vw, 7.5rem);
  align-items: center;
}
.about__figure { margin: 0; }
.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.about__text .h2 { margin-bottom: 2rem; }
.about__text p:not(.eyebrow) {
  max-width: 36rem;
  color: var(--slate-soft);
  margin: 0 0 1.25rem;
}
.about__text .signoff {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sea);
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__figure { max-width: 26rem; }
}

/* ---------- Promise band ---------- */
.band {
  background: var(--clay-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band__list {
  list-style: none;
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(2.5rem, 5vw, 3.75rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.band__list li {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 300;
  line-height: 1.25;
  display: flex;
  gap: 1rem;
}
.band__num {
  font-style: italic;
  color: var(--gorse);
  flex: none;
}
@media (max-width: 760px) {
  .band__list { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---------- Sections shared ---------- */
.how,
.help {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter) 0;
}
.help { padding-bottom: clamp(5rem, 11vw, 9rem); }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- How it works: offset two-column steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 6vw, 6rem);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.step:nth-child(even) { transform: translateY(4.5rem); }
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gorse);
  padding-top: 0.35rem;
}
.step h3 {
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.step p {
  margin: 0;
  color: var(--slate-soft);
  max-width: 30rem;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { transform: none; }
}

/* ---------- What I do: editorial rows ---------- */
.help { padding-top: clamp(9rem, 16vw, 13rem); }
.services { margin: 0; }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem 3rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service dt {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 300;
  line-height: 1.15;
  transition: color 0.3s var(--ease);
}
.service dd {
  margin: 0;
  color: var(--slate-soft);
  max-width: 34rem;
}
@media (hover: hover) {
  .service:hover { padding-left: 1rem; }
  .service:hover dt { color: var(--sea); }
}
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.hello {
  background: var(--slate);
  color: var(--clay);
  padding: clamp(5rem, 11vw, 8.5rem) var(--gutter);
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.hello > * { max-width: 40rem; }
.hello__intro { justify-self: end; width: 100%; }
.hello__intro .h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  max-width: 20ch;
  margin-bottom: 1.75rem;
}
.hello__intro p:not(.eyebrow) { color: rgba(243, 240, 233, 0.72); max-width: 30rem; }

.form { display: grid; gap: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(243, 240, 233, 0.7);
  padding: 0;
}
.optional { color: rgba(243, 240, 233, 0.4); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: 400 1.05rem/1.5 var(--sans);
  color: var(--clay);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  border-radius: 0;
  padding: 0.5rem 0 0.7rem;
  transition: border-color 0.25s var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(243, 240, 233, 0.3); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--sea-pale); }
.field input:user-invalid,
.field textarea:user-invalid { border-bottom-color: #d39a7c; }

.field--choice { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.field--choice legend { margin-bottom: 0.75rem; width: 100%; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 0.9rem;
  color: rgba(243, 240, 233, 0.8);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.choice:hover span { border-color: rgba(243, 240, 233, 0.5); }
.choice input:checked + span { background: var(--clay); color: var(--slate); border-color: var(--clay); }
.choice input:focus-visible + span { outline: 2px solid var(--gorse); outline-offset: 3px; }

.form .btn { justify-self: start; margin-top: 0.5rem; }

@media (max-width: 860px) {
  .hello { grid-template-columns: 1fr; }
  .hello__intro { justify-self: start; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: rgba(243, 240, 233, 0.6);
  border-top: 1px solid var(--line-light);
  padding: 2.5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.site-footer .wordmark { color: var(--clay); }
.site-footer .wordmark__thin { color: var(--sea-pale); }
.site-footer__brand p { margin: 0.6rem 0 0; }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.site-footer__meta a { color: var(--clay); text-underline-offset: 4px; }

/* ---------- Simple page (thank you / 404) ---------- */
.simple {
  min-height: calc(100vh - 10rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.simple h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  max-width: 14ch;
}
.simple p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--slate-soft);
  margin: 0 0 2.5rem;
  font-size: 1.12rem;
}
.simple .btn { align-self: flex-start; }

/* ---------- Slides ----------
   On larger screens each part of the homepage fills one screen, like the
   hero, and scrolling settles on one slide at a time. Smaller screens keep
   normal scrolling, as some sections are taller than a phone screen. */
@media (min-width: 861px) and (min-height: 640px) {
  html:has(.slide) {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--header-h);
  }
  .slide {
    scroll-snap-align: start;
    min-height: calc(100svh - var(--header-h));
  }
  .site-footer { scroll-snap-align: end; }

  /* Main content centred, with its strip sitting along the bottom edge */
  .slide--intro,
  .slide--about {
    display: flex;
    flex-direction: column;
  }
  .slide--intro > .hero,
  .slide--about > .about {
    flex: 1;
    width: 100%;
    align-content: center;
  }
  /* Type and spacing also scale with screen height so each slide fits */
  .hero { padding-block: clamp(1.75rem, 5vh, 4rem); }
  .hero__title {
    font-size: min(clamp(2.9rem, 6.6vw, 5.9rem), 9.6vh);
    margin-bottom: clamp(1.25rem, 3vh, 2rem);
  }
  .hero__lede { margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem); }
  .hero__figure img { max-height: calc(100svh - var(--header-h) - 15rem); }
  .h2 { font-size: min(clamp(2.1rem, 4.4vw, 3.6rem), 6.4vh); }
  .about { padding-block: clamp(2rem, 5vh, 4rem); }
  .about__text .h2 { margin-bottom: clamp(1.25rem, 3vh, 2rem); }
  .about__figure img { max-height: calc(100svh - var(--header-h) - 19rem); }
  .band__list { padding-block: clamp(1.5rem, 3.5vh, 3rem); }

  .how,
  .help,
  .hello {
    display: grid;
    align-content: center;
  }
  .how { padding-block: clamp(2rem, 5vh, 4rem) clamp(6rem, 11vh, 8rem); }
  .help { padding-block: clamp(2rem, 5vh, 4rem); }
  .hello { padding-block: clamp(2rem, 5vh, 4rem); align-items: center; }
  .section-head { margin-bottom: clamp(1.5rem, 4vh, 3.5rem); }
  .step { padding-block: 1.75rem; }
  .service { padding-block: clamp(0.9rem, 2vh, 1.75rem); }
}

/* ---------- Motion ---------- */
.load {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 120ms + 80ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .step.reveal:nth-child(even) { transform: translateY(calc(4.5rem + 22px)); }
.js .step.reveal.is-visible:nth-child(even) { transform: translateY(4.5rem); }
@media (max-width: 860px) {
  .js .step.reveal:nth-child(even) { transform: translateY(22px); }
  .js .step.reveal.is-visible:nth-child(even) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .for__track { animation: none; }
}
