/* ==========================================================================
   Kati Lawrence — styles
   Brand brown is sampled from Kati's existing reviews graphic.
   ========================================================================== */

:root {
  /* Colour */
  --bg: #faf8f5;
  --bg-alt: #f2eee8;
  --surface: #ffffff;
  --ink: #302720;
  --muted: #6d645c;
  --line: #e5ded6;
  --brand: #7a5e48;
  --brand-deep: #6b4b36;
  --brand-deeper: #563a28;
  --cream-on-brand: #fbf6ef;
  --footer: #2e241d;
  --error: #a3341f;
  --success: #3d6b4a;
  --focus: #6b4b36;

  /* Type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --fs-h2: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
  --fs-h1: clamp(2.6rem, 1.2rem + 5vw, 5.75rem);

  /* Space (8pt rhythm) */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 72px;
  --frame-inset: 10px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(48, 39, 32, 0.04), 0 12px 32px -16px rgba(48, 39, 32, 0.18);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Word-by-word headline motion ---------- */
/* main.js wraps each word of a [data-split] heading in .word > .word-inner */

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.word-inner {
  display: inline-block;
}

.js .word-inner {
  transform: translateY(108%);
}

.js.is-loaded .hero-title .word-inner,
.js .is-visible .word-inner {
  transform: none;
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + var(--i) * 60ms);
}

.js .hero-title .word-inner {
  --d: 150ms;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.9rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--brand-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deeper);
  box-shadow: 0 10px 24px -12px rgba(86, 58, 40, 0.6);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:focus-visible {
  outline-color: var(--brand-deep);
  outline-offset: 4px;
}

.btn-small {
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */
/* Floats over the hero photo, then turns solid cream once the page scrolls */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: #fff;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: calc(var(--gutter) + var(--frame-inset));
  max-width: calc(1200px + 2 * var(--frame-inset));
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-list {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: inherit;
  opacity: 0.82;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="true"] {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link[aria-current="true"]::after {
  transform: scaleX(1);
}

.site-header:not(.is-scrolled):not(.menu-open) :focus-visible {
  outline-color: #fff;
}

.menu-toggle {
  display: none;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: -12px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
  }

  .menu-toggle-bars,
  .menu-toggle-bars::before,
  .menu-toggle-bars::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
  }

  .menu-toggle-bars {
    position: relative;
  }

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

  .menu-toggle-bars::before {
    top: -7px;
  }

  .menu-toggle-bars::after {
    top: 7px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bars {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 0.75rem calc(var(--gutter) + var(--frame-inset)) 1.75rem;
    background: var(--bg);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgba(48, 39, 32, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    min-height: 52px;
  }
}

/* ---------- Hero: full-screen photo ---------- */

.hero {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: var(--frame-inset);
}

.hero-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: #2b231d;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 21, 16, 0.55) 0%, rgba(28, 21, 16, 0) 22%),
    linear-gradient(0deg, rgba(28, 21, 16, 0.88) 0%, rgba(28, 21, 16, 0.6) 32%, rgba(28, 21, 16, 0.1) 62%, rgba(28, 21, 16, 0) 74%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 1.5rem;
  padding-bottom: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  color: #fff;
}

.hero-title {
  max-width: 13ch;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.hero-side {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero-text {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.7;
}

.hero-cta {
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
}

/* A real client line under the button, set off by a short rule */
.hero-quote {
  display: grid;
  gap: 0.2rem;
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.hero-quote figcaption {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 767px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(28, 21, 16, 0.55) 0%, rgba(28, 21, 16, 0) 20%),
      linear-gradient(0deg, rgba(28, 21, 16, 0.92) 0%, rgba(28, 21, 16, 0.74) 40%, rgba(28, 21, 16, 0.2) 68%, rgba(28, 21, 16, 0) 80%);
  }

  .hero-cta {
    width: 100%;
  }

  .hero-side {
    justify-items: stretch;
  }
}

/* Hero load sequence: the photo settles in while the headline rises word by word */
.js .hero-bg {
  transform: scale(1.14);
}

.js.is-loaded .hero-bg {
  transform: scale(1.02);
  transition: transform 2.6s var(--ease-out);
}

.js .hero-side {
  opacity: 0;
  transform: translateY(16px);
}

.js.is-loaded .hero-side {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease 0.75s, transform 1s var(--ease-out) 0.75s;
}

/* ---------- Shared section bits ---------- */

.section {
  padding-block: var(--section-y);
}

.section-title {
  font-size: var(--fs-h2);
}

.section-intro {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.section-intro p {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
}

/* Small label with a short rule that draws in when its section arrives */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-label::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}

.section-label-center {
  justify-content: center;
}

.section-label-center::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
}

.js .section-label::before,
.js .section-label::after {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out) 0.15s;
}

.js .is-visible .section-label::before,
.js .is-visible .section-label::after {
  transform: scaleX(1);
}

/* Gentle entrance for content further down the page */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease-out);
}

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

/* ---------- 2. Questions ---------- */

.questions {
  background: var(--bg-alt);
}

.question-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
  max-width: 960px;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 0;
}

.question-card {
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: opacity 0.8s ease, transform 0.9s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.js .question-card.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.question-card:hover {
  border-color: #d6cabd;
  box-shadow: var(--shadow);
}

.question-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.question-card h3 {
  font-size: var(--fs-h3);
}

.question-card p {
  margin-top: 0.75rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .question-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- 3. About ---------- */

.about {
  position: relative;
  z-index: 0;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 6vw, 7rem);
}

.about-media {
  position: relative;
  margin: 0;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 20px 20px -20px -20px;
  z-index: -1;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius);
}

.about-copy {
  max-width: 34rem;
}

.about-copy p {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
}

.about-copy .section-title + p {
  margin-top: 1.75rem;
}

/* Name badge sitting on the portrait */
.about-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px -14px rgba(48, 39, 32, 0.45);
}

.about-badge > span:last-child {
  display: grid;
  line-height: 1.25;
}

.about-badge-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
}

.about-badge-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-badge-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
}

.about-badge-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.js .about-badge {
  opacity: 0;
  transform: translateY(14px) scale(0.95);
}

.js .is-visible .about-badge {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease 0.7s, transform 0.9s var(--ease-out) 0.7s;
}

/* Signature "written" left to right as the section arrives */
.about-copy .about-signature {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 2rem + 1.6vw, 3.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: var(--brand);
  transform: rotate(-4deg);
  transform-origin: left;
}

.js .about-signature {
  clip-path: inset(-20% 100% -20% 0);
  transition: clip-path 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.7s;
}

.js .is-visible .about-signature {
  clip-path: inset(-20% -5% -20% 0);
}

@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 340px;
    margin-left: 20px;
  }
}

/* ---------- 4. Reviews: equal-size wide cards in a swipeable row ---------- */

.reviews {
  background: var(--brand);
  color: var(--cream-on-brand);
}

.reviews .section-label {
  color: #ead9c6;
}

.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
}

.review-controls {
  display: flex;
  flex: none;
  gap: 0.6rem;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(251, 246, 239, 0.45);
  border-radius: 50%;
  background: transparent;
  color: var(--cream-on-brand);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s var(--ease-out);
}

.round-btn:hover:not(:disabled) {
  background: var(--cream-on-brand);
  border-color: var(--cream-on-brand);
  color: var(--brand-deeper);
}

.round-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.round-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.round-btn:focus-visible {
  outline-color: var(--cream-on-brand);
}

.round-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0.25rem var(--gutter) 0.75rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.review-track::-webkit-scrollbar {
  display: none;
}

.review-track:focus-visible {
  outline: 2px solid var(--cream-on-brand);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

/* Every card is the same width, and the row stretches them all to the same height */
.review {
  display: flex;
  flex: 0 0 88%;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -32px rgba(30, 20, 12, 0.7);
  scroll-snap-align: start;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.review:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 56px -30px rgba(30, 20, 12, 0.75);
}

.review-mark {
  width: 34px;
  height: auto;
  fill: var(--brand);
  opacity: 0.6;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}

.review:hover .review-mark {
  opacity: 1;
  transform: translateY(-2px) rotate(-6deg);
}

.review-quote {
  flex: 1;
  margin: 0;
}

.review-quote p {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.review-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
}

.review-who {
  display: grid;
  line-height: 1.3;
}

.review-name {
  font-weight: 600;
  font-size: 0.975rem;
}

.review-context {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Cards slide in one after another when the row arrives */
.js .review-track.reveal {
  transform: none;
}

.js .review-track .review {
  opacity: 0;
  translate: 48px 0;
}

.js .review-track.is-visible .review {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.8s ease, translate 1s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.js .review-track.is-visible .review:nth-child(2) {
  transition-delay: 0.1s, 0.1s, 0s, 0s;
}

.js .review-track.is-visible .review:nth-child(3) {
  transition-delay: 0.2s, 0.2s, 0s, 0s;
}

.review-more {
  display: none;
  justify-self: start;
  margin-top: 0.6rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Phones and tablets: long reviews are trimmed so every card stays the same compact size */
@media (max-width: 999px) {
  .review-quote {
    display: grid;
    align-content: start;
  }

  .review-quote p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    overflow: hidden;
    font-size: 1.0625rem;
  }

  .review.is-expanded .review-quote p {
    -webkit-line-clamp: unset;
  }

  .review.is-clamped .review-more {
    display: inline-block;
  }
}

@media (min-width: 640px) {
  .review {
    flex-basis: 78%;
  }
}

/* Desktop: wide landscape cards, the next one peeking in at the edge */
@media (min-width: 1000px) {
  .review-track {
    gap: 1.5rem;
    margin: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .review {
    flex-basis: calc(62% - 0.75rem);
  }
}

@media (max-width: 520px) {
  .reviews-head {
    flex-wrap: wrap;
  }

  .reviews-head > div:first-child {
    flex: 1 1 100%;
  }

  .review-controls {
    margin-left: auto;
  }

  .round-btn {
    width: 46px;
    height: 46px;
  }
}
/* ---------- 5. Contact: form card over the porch photo ---------- */

.contact {
  padding: var(--frame-inset);
}

.contact-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4.5rem, 3rem + 6vw, 8rem);
  border-radius: var(--radius-lg);
  background: #2b231d;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  filter: blur(2px) saturate(0.9);
  transform: scale(1.16);
  transition: transform 2.4s var(--ease-out);
}

.contact-frame.is-visible .contact-bg {
  transform: scale(1.04);
}

.contact-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 21, 16, 0.6) 0%, rgba(28, 21, 16, 0.42) 45%, rgba(28, 21, 16, 0.72) 100%),
    linear-gradient(90deg, rgba(28, 21, 16, 0.55) 0%, rgba(28, 21, 16, 0.1) 75%);
}

/* The frame itself only fades; its contents carry the motion */
.js .contact-frame.reveal {
  transform: none;
}

.contact-inner {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.contact-intro {
  max-width: 30rem;
  color: #fff;
}

.contact-intro .section-label {
  color: #e9d9c7;
}

.contact-intro .section-title {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.contact-lede {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
}

.contact-card {
  width: 100%;
  max-width: 560px;
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.js .contact-card {
  opacity: 0;
  transform: translateY(28px);
}

.js .is-visible .contact-card {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease 0.2s, transform 1s var(--ease-out) 0.2s;
}

@media (min-width: 980px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  }

  .contact-card {
    justify-self: end;
  }
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

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

.field label {
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.field:focus-within label {
  color: var(--brand-deep);
}

.req {
  color: var(--brand-deep);
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #d9d0c6;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.field ::placeholder {
  color: #958a80;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #c4b6a8;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(107, 75, 54, 0.22);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field [aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(163, 52, 31, 0.2);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field select {
  padding-right: 2.75rem;
  cursor: pointer;
}

.field select:invalid {
  color: #7d736a;
}

.field-error {
  font-size: var(--fs-small);
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.form-summary {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(163, 52, 31, 0.35);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: #fbf1ee;
  color: #6e2414;
  font-size: 0.9375rem;
}

.form-summary:focus {
  outline: none;
}

.form-summary ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.form-summary a {
  color: inherit;
  font-weight: 500;
}

.form-note {
  font-size: var(--fs-small);
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.form-submit[aria-busy="true"] {
  cursor: progress;
  opacity: 0.85;
}

.form-submit[aria-busy="true"] .spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-success {
  padding: 0.5rem 0;
  animation: fade-lift 0.7s var(--ease-out) both;
}

.form-success:focus {
  outline: none;
}

.form-success h3 {
  font-size: var(--fs-h3);
}

.form-success p {
  margin-top: 0.6rem;
  color: var(--muted);
}

@keyframes fade-lift {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  background: var(--footer);
  color: #e9e1d8;
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.wordmark-light {
  color: #fbf6ef;
  font-size: 2rem;
}

.footer-tagline {
  margin-top: 0.85rem;
  max-width: 22rem;
  color: #c9bdb1;
}

.footer-contact,
.footer-social {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact {
  display: grid;
  gap: 0.5rem;
}

.footer-contact li {
  display: grid;
  gap: 0.15rem;
}

.footer-contact li + li {
  margin-top: 0.75rem;
}

.footer-contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8aa9c;
}

.footer-contact a {
  justify-self: start;
  display: inline-block;
  padding: 0.3rem 0;
  color: #f1eae2;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(241, 234, 226, 0.25);
  transition: border-color 0.2s ease;
}

.footer-contact a:hover {
  border-bottom-color: #f1eae2;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(241, 234, 226, 0.3);
  border-radius: 50%;
  color: #f1eae2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: #f1eae2;
  border-color: #f1eae2;
  color: var(--footer);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social svg.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.footer-social svg.stroke circle:last-child {
  fill: currentColor;
}

.site-footer :focus-visible {
  outline-color: #f1eae2;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(241, 234, 226, 0.14);
  font-size: var(--fs-small);
  color: #b8aa9c;
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------- Floating "Talk to Kati" button ---------- */

.float-cta {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  min-height: 54px;
  padding-inline: 1.5rem;
  border-radius: 999px;
  box-shadow: 0 18px 36px -14px rgba(30, 18, 10, 0.75), 0 0 0 1px rgba(255, 246, 236, 0.35);
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out), background-color 0.2s ease;
}

.float-cta.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.float-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
}

.float-cta:hover svg {
  transform: translateX(3px);
}

/* On phones it becomes a full-width bar at the bottom of the screen */
@media (max-width: 640px) {
  .float-cta {
    left: max(1rem, env(safe-area-inset-left));
    justify-content: center;
  }

  /* Keep the last line of the footer clear of the floating button */
  .footer-bottom {
    padding-bottom: 5.5rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .word-inner,
  .js .hero-bg,
  .js .hero-side,
  .js .contact-card,
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .contact-bg {
    transform: scale(1.04);
  }

  .js .review-track .review,
  .js .about-badge {
    opacity: 1;
    translate: 0 0;
    transform: none;
  }

  .js .section-label::before,
  .js .section-label::after {
    transform: none;
  }

  .js .about-signature {
    clip-path: none;
  }

  .spinner {
    animation: spin 1.6s linear infinite !important;
  }
}
