/* ==========================================================
   Wayfound Advisory — styles
   Brand palette and type follow the Wayfound brand guide.
   ========================================================== */

:root {
  /* Brand palette */
  --navy: #142B3B;
  --terracotta: #C66F47;
  --sand: #D5A17A;
  --cream: #F5F0E7;
  --charcoal: #343638;
  --white: #FFFFFF;

  /* Semantic tokens */
  --bg: var(--white);
  --surface: var(--cream);
  --text: var(--charcoal);
  --heading: var(--navy);
  --muted: #5E6266;          /* 5.9:1 on white */
  --line: #E4DDD0;
  --accent: var(--terracotta);
  --accent-text: #A95730;    /* terracotta darkened for small text: 4.9:1 on white */
  --focus: #C66F47;

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: Aptos, "Figtree", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.2vw, 5.25rem);

  /* Space (8pt rhythm) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 7rem;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--heading); margin: 0; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

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

.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: var(--s2); top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: var(--s1) var(--s2); border-radius: 8px;
}
.skip-link:focus { top: var(--s2); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font: 500 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
  touch-action: manipulation;
}
.btn-sm { min-height: 44px; padding: 0 1.25rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #1f3e54; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--cream); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); border-color: var(--white); }
.btn-terracotta { background: var(--terracotta); color: var(--white); }   /* white on terracotta: 4.6:1 */
.btn-terracotta:hover { background: #B56039; }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Small label ---------- */
.label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); color: var(--muted); margin-bottom: var(--s3);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 40px; width: auto; }

.site-nav ul { display: flex; align-items: center; gap: var(--s4); }
.site-nav a:not(.btn) {
  text-decoration: none; color: var(--navy); font-weight: 500; font-size: .98rem;
  padding: .6rem 0; position: relative;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 1.5px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 13px; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-toggle-bars { top: 23px; }
.nav-toggle-bars::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bars::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 0 var(--s2) var(--s2); }
.hero-frame {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  min-height: min(860px, calc(100svh - var(--header-h) - 16px));
  display: flex; color: var(--white);
  background: var(--navy);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 50%; z-index: -2;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,43,59,.55) 0%, rgba(20,43,59,.15) 38%, rgba(20,43,59,.35) 62%, rgba(20,43,59,.88) 100%),
    linear-gradient(90deg, rgba(20,43,59,.55) 0%, rgba(20,43,59,0) 60%);
}
.hero-content {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
  display: flex; flex-direction: column;
}
.hero-kicker { font-size: var(--step--1); letter-spacing: .02em; opacity: .92; margin-bottom: var(--s3); }
.hero h1 {
  color: var(--white); font-size: var(--step-4); line-height: 1.02; max-width: 13ch;
  letter-spacing: -0.02em;
}
.hero-foot {
  margin-top: auto; padding-top: var(--s5);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,.28);
  padding-top: var(--s4);
}
.hero-lede { flex: 1 1 22rem; max-width: 36rem; }
.hero-lede p { font-size: var(--step-1); line-height: 1.5; margin-bottom: var(--s3); }


/* ---------- Statement (scroll-fill text) ---------- */
.statement { padding: var(--s7) 0 var(--s5); }
.statement-text {
  font-family: var(--font-display); font-size: var(--step-3); line-height: 1.18;
  color: var(--navy); max-width: 24ch; letter-spacing: -0.015em;
}
.statement-text .w { transition: color .35s linear; }
.statement-text.is-ready .w { color: #C9C4BB; }
.statement-text.is-ready .w.on { color: var(--navy); }

/* ---------- Intro ---------- */
.intro { padding-bottom: var(--s7); }
.intro-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--s5); }
.intro-grid { align-items: start; }
.intro-aside .label { padding-top: .35rem; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius-lg); }
.intro-body { padding-top: var(--s5); }
.intro-lead { font-size: var(--step-1); line-height: 1.6; color: var(--navy); margin-bottom: var(--s4); max-width: 40rem; }

/* ---------- Services ---------- */
.services { background: var(--cream); padding: var(--s7) 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--s5); align-items: end; margin-bottom: var(--s5);
}
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); max-width: 34rem; }

.service-rows { display: grid; gap: var(--s2); }
.service-row {
  display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: var(--s4); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s2);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.service-row:hover { border-color: var(--sand); box-shadow: 0 14px 30px -24px rgba(20,43,59,.45); }
.service-media { overflow: hidden; border-radius: var(--radius-md); }
.service-thumb { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease-out); }
.service-row:hover .service-thumb { transform: scale(1.05); }
.service-main h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: .7rem 0 .4rem; }
.service-main p { color: var(--muted); max-width: 40rem; }
.service-cta { margin-right: var(--s2); white-space: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  font-size: .82rem; line-height: 1; color: var(--navy);
  padding: .4rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--cream);
}

/* ---------- Approach ---------- */
.approach { padding: var(--s7) 0; }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.approach-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius-lg); }
.approach-body h2 { font-size: var(--step-3); margin-bottom: var(--s3); }
.approach-lead {
  font-family: var(--font-display); font-style: italic; font-size: var(--step-2); line-height: 1.3;
  color: var(--navy); margin-bottom: var(--s3);
}
.approach-body > p { max-width: 36rem; }
/* The path: three stops joined by a line, ending in a filled navy point (the way, found) */
.path-title { font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; color: var(--accent-text); margin: var(--s5) 0 var(--s3); letter-spacing: 0; }
.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path li { position: relative; padding: 0 0 var(--s4) 2.5rem; }
.path li:not(:last-child)::after {
  content: ""; position: absolute; left: 7px; top: calc(.3rem + 16px); bottom: calc(-.3rem); width: 2px;
  background: linear-gradient(180deg, var(--sand), var(--terracotta));
}
.path li:nth-child(2)::after { background: linear-gradient(180deg, var(--terracotta), var(--navy)); }
.path li:last-child { padding-bottom: 0; }
.path li::before {
  content: ""; position: absolute; left: 0; top: .3rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--terracotta);
}
.path li:first-child::before { border-color: var(--sand); }
.path li:last-child::before { background: var(--navy); border-color: var(--navy); box-shadow: 0 0 0 5px rgba(20,43,59,.12); }
.path strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--navy); line-height: 1.25; margin-bottom: .3rem; }
.path span { display: block; color: var(--muted); max-width: 30rem; }

/* ---------- Why Wayfound ---------- */
.why { background: var(--navy); color: #DCE3E8; padding: var(--s7) 0; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.why-word {
  font-family: var(--font-display); font-size: clamp(4rem, 2rem + 9vw, 10rem); line-height: .85;
  letter-spacing: -0.035em; margin: 0 0 var(--s4); color: var(--white);
}
.why-word span { display: block; }
.why-word span + span { font-style: italic; color: var(--sand); padding-left: .55em; }
.why h2 { color: var(--white); font-size: var(--step-2); max-width: 18ch; }
.why-body { padding-top: var(--s2); }
.why-lead { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.35; color: var(--white); margin-bottom: var(--s3); }
.why-body > p:not(.why-lead) { font-size: var(--step-1); line-height: 1.6; max-width: 34rem; }
.essence { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.2); }
.essence-title { font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; color: var(--sand); margin-bottom: var(--s2); letter-spacing: 0; }
.essence-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.essence-list li {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--white);
  padding: .45rem 1.05rem; border: 1px solid rgba(213,161,122,.55); border-radius: var(--radius-pill);
}

.contact-tagline { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--sand); margin: -.5rem 0 var(--s3); }

/* ---------- About ---------- */
.about { background: var(--cream); padding: var(--s7) 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about h2 { font-size: var(--step-4); }
.about-role { color: var(--accent-text); font-weight: 500; margin: .5rem 0 var(--s4); }
.about-body > p:not(.label):not(.about-role) { max-width: 36rem; }
.pull-quote {
  margin: var(--s4) 0 0; padding-left: var(--s3); border-left: 2px solid var(--terracotta);
  font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--navy);
}
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fff 0%, #EFE6D8 100%);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.photo-placeholder img { width: 38%; opacity: .9; }
.ticks { display: grid; gap: .6rem; margin: var(--s3) 0 0; }
.ticks li { display: flex; align-items: center; gap: .7rem; color: var(--navy); font-weight: 500; }
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 6px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D5A17A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Clare's portrait on its own, framed by a soft sand circle so the eye goes straight to her */
.about-photos { position: relative; justify-self: end; width: 100%; max-width: 460px; isolation: isolate; }
.about-circle {
  position: absolute; z-index: -1; right: -12%; top: -8%;
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  border: 28px solid rgba(213,161,122,.28);
}
.founder-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 50px -32px rgba(20,43,59,.55);
}

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #E9EEF2; padding: var(--s7) 0; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; z-index: -1; filter: grayscale(.3); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact h2 { color: var(--white); font-size: var(--step-4); margin-bottom: var(--s3); }
.contact-intro > p { font-size: var(--step-1); line-height: 1.55; max-width: 32rem; }

.contact-details { margin: var(--s5) 0 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.contact-details div {
  display: grid; grid-template-columns: 9rem 1fr; gap: var(--s2);
  padding: var(--s2) 0; border-bottom: 1px solid rgba(255,255,255,.2);
}
.contact-details dt { color: var(--sand); }
.contact-details dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.contact-details a { text-decoration-color: rgba(213,161,122,.6); text-underline-offset: 4px; }
.contact-details a:hover { text-decoration-color: var(--sand); }

.enquiry {
  background: var(--white); color: var(--text);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
}
.enquiry h3 { font-size: 1.75rem; margin-bottom: .4rem; }
.form-note { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--s3); }
.field { margin-bottom: var(--s3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.field label { display: block; font-weight: 500; color: var(--navy); margin-bottom: .4rem; font-size: .98rem; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .9rem;
  border: 1.5px solid #C9C2B6; border-radius: 10px; background: var(--white);
  font: inherit; font-size: 1rem; color: var(--text);
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover { border-color: #9E978B; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(198,111,71,.45); outline-offset: 1px; border-color: var(--terracotta); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .92rem; margin: .4rem 0 0; }
.form-status { margin: var(--s2) 0 0; font-size: .98rem; min-height: 1.5em; }
.form-status.is-ok { color: #1E6B45; }
.form-status.is-err { color: #B3261E; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); padding: var(--s5) 0 var(--s4); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s5); align-items: center; }
.footer-logo { width: 240px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s1) var(--s4); }
.site-footer nav a { text-decoration: none; color: var(--navy); padding: .5rem 0; display: inline-block; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-meta { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); padding-top: var(--s3); border-top: 1px solid var(--line); margin: 0; }

/* ---------- Scroll progress: a thin line under the header, sand to navy like the path ---------- */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--sand), var(--terracotta) 55%, var(--navy));
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(20,43,59,.35); }

/* ---------- Footer sign-off ---------- */
.footer-signoff {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3);
  padding-bottom: var(--s5); margin-bottom: var(--s5); border-bottom: 1px solid var(--line);
}
.signoff-line {
  font-family: var(--font-display); font-style: italic; color: var(--navy); margin: 0;
  font-size: clamp(2.4rem, 1.2rem + 5vw, 5.5rem); line-height: 1; letter-spacing: -0.02em;
}

/* ---------- Press feedback ---------- */
.btn:active { transform: scale(.98); }
.btn { transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .12s var(--ease-out); }

/* ---------- Hero load sequence (the one orchestrated motion moment) ---------- */
.motion .hero-img { animation: heroZoom 2.4s var(--ease-out) both; }
.motion .hero-kicker, .motion .hero h1, .motion .hero-foot { animation: rise .9s var(--ease-out) both; }
.motion .hero h1 { animation-delay: .12s; }
.motion .hero-foot { animation-delay: .3s; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* ---------- Scroll-triggered motion (only when html.motion is set) ---------- */
/* Each effect is two-way. The resting (hidden) state holds the quick exit transition with no delay;
   the .is-in state holds the slightly longer entrance, with its small stagger.
   .is-above means the element has scrolled up past the header, so it leaves (and returns) from above. */
.motion .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .45s var(--ease-out), transform .5s var(--ease-out);
}
.motion .reveal.is-above { transform: translateY(-24px); }
.motion .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* Images unveil upward like a curtain lifting, and close upward as they leave the top */
/* Photos fade in with a soft feathered edge that travels in the direction you're scrolling:
   scrolling down they fade in top-to-bottom (data-dir="down"), scrolling up bottom-to-top (data-dir="up").
   The mask is a tall gradient (solid -> feather -> clear); sliding it reveals the photo. */
.motion .wipe {
  opacity: 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%;
  -webkit-mask-image: linear-gradient(to bottom, #000 34%, transparent 66%); mask-image: linear-gradient(to bottom, #000 34%, transparent 66%);
  -webkit-mask-position: 0 0; mask-position: 0 0;
  transition: opacity .35s var(--ease-out);
}
.motion .wipe[data-dir="up"] {
  -webkit-mask-image: linear-gradient(to top, #000 34%, transparent 66%); mask-image: linear-gradient(to top, #000 34%, transparent 66%);
  -webkit-mask-position: 0 100%; mask-position: 0 100%;
}
/* Starting point, applied for one frame just before the fade begins */
.motion .wipe.prep { transition: none; -webkit-mask-position: 0 100%; mask-position: 0 100%; }
.motion .wipe.prep[data-dir="up"] { -webkit-mask-position: 0 0; mask-position: 0 0; }
.motion .wipe.is-in {
  opacity: 1;
  /* Slow, even fade so it reads clearly as a fade (not a pop) */
  transition: opacity 1.8s cubic-bezier(.4,0,.3,1), -webkit-mask-position 2.1s cubic-bezier(.4,0,.25,1), mask-position 2.1s cubic-bezier(.4,0,.25,1);
}
.motion .wipe img { transform: scale(1.06); transition: transform .5s var(--ease-out); }
.motion .wipe.is-in img { transform: scale(1); transition: transform 2.4s var(--ease-out); }

/* "Way" and "found." come together, and drift apart as they leave */
.motion .why-word span { opacity: 0; transition: opacity .45s var(--ease-out), transform .5s var(--ease-out); }
.motion .why-word span:first-child { transform: translateX(-40px); }
.motion .why-word span + span { transform: translateX(60px); }
.motion .why-word.is-in span { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.motion .why-word.is-in span + span { transition-delay: .18s; }

/* The path draws itself: dots appear in turn, the line grows between them; it clears quickly on exit */
.motion .path li::before { transform: scale(0); transition: transform .3s var(--ease-out); }
.motion .path li:not(:last-child)::after { transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease-out); }
.motion .path li > * { opacity: 0; transform: translateX(-10px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.motion .path.is-in li::before { transform: scale(1); transition: transform .45s cubic-bezier(.3,1.6,.5,1) calc(var(--i) * .4s); }
.motion .path.is-in li:not(:last-child)::after { transform: scaleY(1); transition: transform .45s var(--ease-out) calc(var(--i) * .4s + .2s); }
.motion .path.is-in li > * { opacity: 1; transform: none; transition: opacity .55s var(--ease-out) calc(var(--i) * .4s + .08s), transform .55s var(--ease-out) calc(var(--i) * .4s + .08s); }

/* Hero photo drifts slightly slower than the page (depth) */
.hero-img { translate: 0 var(--parallax, 0px); }

@media print {
  .motion .reveal, .motion .wipe, .motion .why-word span, .motion .path li > * { opacity: 1 !important; transform: none !important; -webkit-mask: none !important; mask: none !important; }
  .scroll-progress { display: none; }
}

/* Visitors who asked for reduced motion (no html.motion): everything is shown instantly */
html:not(.motion) { scroll-behavior: auto; }
html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { transition-duration: .01ms !important; animation: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-row { grid-template-columns: 200px minmax(0, 1fr); }
  .service-cta { grid-column: 2; justify-self: start; margin: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { height: 34px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgba(20,43,59,.35);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s1) var(--gutter) var(--s3); }
  .site-nav a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: var(--s2); width: 100%; }

  .intro-grid, .section-head, .approach-grid, .about-grid, .contact-grid, .why-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .why { padding-block: var(--s6); }
  .why-body { padding-top: 0; }
  .about-photos { order: -1; max-width: 440px; justify-self: start; }
  .approach-photo img { aspect-ratio: 4 / 3; }
  .statement { padding-top: var(--s6); }
  .intro, .services, .approach, .about, .contact { padding-block: var(--s6); }
  .intro { padding-top: 0; }
  .intro-body { padding-top: 0; }
}

@media (max-width: 600px) {
  .hero { padding: 0 .5rem .5rem; }
  .hero-frame { border-radius: 16px; min-height: calc(100svh - var(--header-h) - 8px); }
  .hero-img { object-position: 78% 50%; }
  .hero-lede p { font-size: var(--step-0); }
  .btn-row .btn { flex: 1 1 auto; }

  .service-row { grid-template-columns: 1fr; gap: var(--s2); padding: .75rem .75rem var(--s3); }
  .service-main { padding-inline: .5rem; }
  .service-cta { grid-column: 1; margin-left: .5rem; }
  .about-circle { border-width: 18px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-details div { grid-template-columns: 1fr; gap: .15rem; }

  .footer-inner { grid-template-columns: 1fr; }
  .site-footer nav ul { justify-content: flex-start; }
  .footer-logo { width: 210px; }
}
