/* =============================================================================
   [Your Name], REALTOR® — stylesheet

   Everything visual is controlled by the custom properties in :root below.
   Change a color there once and it updates across the whole page.
   ========================================================================== */

:root {
  /* --- Brand palette ----------------------------------------------------- */
  --forest-900: #101f16;
  --forest-800: #17301f;
  --forest-700: #1f3d29; /* primary dark forest green */
  --forest-600: #2b5237;
  --forest-500: #3d6a48;

  --sage: #7d8d74; /* muted natural secondary */
  --sage-soft: #a9b39d;
  --clay: #9a5a38; /* warm earth accent, used sparingly */
  --brass: #a6833d; /* small rules, numerals, underlines */
  --brass-bright: #d8ae4d; /* lighter brass, for gold text on dark backgrounds */

  --cream: #f7f2e6; /* page background */
  --cream-100: #fcf9f1;
  --cream-200: #efe7d5;
  --stone: #ded5c0;

  --ink: #1b2a20;
  --muted: #59685c;

  /* --- Type -------------------------------------------------------------- */
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Helvetica Neue', Helvetica, sans-serif;

  /* --- Rhythm ------------------------------------------------------------ */
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --measure: 1240px;
  --section-y: clamp(4.5rem, 10vw, 9rem);

  --shadow-soft: 0 24px 60px -32px rgba(16, 31, 22, 0.35);
  --shadow-lift: 0 34px 70px -34px rgba(16, 31, 22, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =============================================================================
   Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(1200px 600px at 88% -8%, rgba(125, 141, 116, 0.16), transparent 62%),
    radial-gradient(900px 520px at 4% 22%, rgba(166, 131, 61, 0.1), transparent 60%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: 'SOFT' 12, 'WONK' 0;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.1vw, 5.1rem);
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.35rem);
}

h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

/* Subtle paper grain over the whole page, fixed so it never repaints on scroll */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--forest-700);
  color: var(--cream-100);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 6px 0;
}

.skip:focus {
  left: 0;
}

:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--forest-600);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =============================================================================
   Shared pieces
   ========================================================================== */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow::before {
  content: '';
  width: clamp(1.5rem, 4vw, 2.75rem);
  height: 1px;
  background: var(--brass);
  flex: none;
}

.lede {
  font-size: clamp(1.06rem, 1rem + 0.32vw, 1.22rem);
  color: var(--muted);
  max-width: 46ch;
}

.prose p {
  color: var(--muted);
  max-width: 54ch;
}

.section-head {
  max-width: var(--measure);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding: 0 var(--gutter);
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-head h2 {
  max-width: 24ch;
}

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

.btn {
  --btn-bg: var(--forest-700);
  --btn-fg: var(--cream-100);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--forest-700);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--forest-800);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -18px rgba(16, 31, 22, 0.7);
}

.btn--ghost {
  background: transparent;
  color: var(--forest-700);
  border-color: rgba(31, 61, 41, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(31, 61, 41, 0.07);
  border-color: var(--forest-700);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

.btn:active {
  transform: translateY(0);
}

.btn__spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(252, 249, 241, 0.4);
  border-top-color: var(--cream-100);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.is-sending .btn__spinner {
  display: block;
}

.is-sending {
  pointer-events: none;
  opacity: 0.8;
}

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

/* --- The arch: a fanlight-inspired frame used for the hero and headshot ---- */

.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 8px 8px;
  background: var(--cream-200);
  box-shadow: var(--shadow-soft);
}

.arch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(31, 61, 41, 0.18);
  pointer-events: none;
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================================================
   Masthead
   ========================================================================== */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 230, 0.82);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

.masthead.is-stuck {
  border-bottom-color: rgba(31, 61, 41, 0.14);
  background: rgba(247, 242, 230, 0.94);
}

.masthead__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}

.wordmark__mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 61, 41, 0.3);
  border-radius: 999px 999px 4px 4px;
  color: var(--forest-700);
  transition: background-color 0.35s var(--ease);
}

.wordmark__mark svg {
  width: 1.35rem;
  height: 1.35rem;
}

.wordmark:hover .wordmark__mark {
  background: rgba(31, 61, 41, 0.07);
}

.wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark__text strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--forest-800);
}

.wordmark__text em {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--sage);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.35s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--forest-800);
}

.nav a:hover::after,
.nav a.is-active::after {
  right: 0;
}

.nav__cta {
  display: none;
}

.masthead__tel {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-700);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(31, 61, 41, 0.28);
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.masthead__tel:hover {
  background: var(--forest-700);
  border-color: var(--forest-700);
  color: var(--cream-100);
}

.burger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(31, 61, 41, 0.28);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--forest-800);
  transition: transform 0.3s var(--ease);
}

.burger[aria-expanded='true'] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.burger[aria-expanded='true'] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* =============================================================================
   Hero
   ========================================================================== */

.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-variation-settings: 'SOFT' 24, 'WONK' 1;
  color: var(--forest-700);
  font-size: 0.72em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 2.5rem;
}

.hero__facts {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(31, 61, 41, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.25rem, 3vw, 2.75rem);
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--forest-800);
  padding: 0.35rem 0;
}

.hero__facts span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.2rem;
}

.hero__figure {
  margin: 0;
  position: relative;
}

.hero__figure .arch {
  aspect-ratio: 9 / 11.5;
}

.hero__figure figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}

.figcaption__rule {
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: var(--brass);
  margin-top: 0.7rem;
}

/* =============================================================================
   Ribbon
   ========================================================================== */

.ribbon {
  background: var(--forest-700);
  color: rgba(252, 249, 241, 0.9);
}

.ribbon__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 3rem);
}

.ribbon__inner p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  padding-left: clamp(1rem, 2vw, 2rem);
  border-left: 1px solid rgba(252, 249, 241, 0.22);
}

.ribbon__inner p:first-child {
  padding-left: 0;
  border-left: 0;
}

.ribbon__inner strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--cream-100);
  margin-bottom: 0.15rem;
}

/* =============================================================================
   About + headshot
   ========================================================================== */

.about {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

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

.portrait {
  margin: 0;
  position: relative;
}

.portrait::before {
  content: '';
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid rgba(31, 61, 41, 0.22);
  border-radius: 999px 999px 8px 8px;
  z-index: -1;
}

.arch--portrait {
  aspect-ratio: 4 / 5;
  background: var(--cream-200);
}

.arch--portrait::after {
  border: none;
}

.portrait::before {
  border: none;
}

.arch--portrait img {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.arch--portrait img.is-loaded {
  opacity: 1;
}

.portrait__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 2rem;
  color: var(--sage);
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(125, 141, 116, 0.09) 14px 15px
    ),
    var(--cream-200);
}

.portrait__placeholder svg {
  width: 3.5rem;
  height: 3.5rem;
  opacity: 0.6;
}

.portrait__placeholder p {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--forest-600);
}

.portrait__placeholder span {
  font-size: 0.78rem;
  line-height: 1.5;
}

.portrait__placeholder code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.74rem;
  background: rgba(31, 61, 41, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.portrait figcaption {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 1.1rem;
  border-left: 1px solid var(--brass);
}

.portrait figcaption strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--forest-800);
}

.credentials {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.credentials li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--forest-800);
}

.credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--brass);
  border-radius: 999px 999px 1px 1px;
}

/* =============================================================================
   Quote band — full-bleed street scene with the quote laid over it
   ========================================================================== */

.band {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(24rem, 48vw, 40rem);
  background: var(--forest-800);
  color: var(--cream-100);
  overflow: hidden;
}

.band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.band__media img,
.band__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(16, 31, 22, 0.94) 0%, rgba(16, 31, 22, 0.78) 38%, rgba(16, 31, 22, 0.18) 72%,
      rgba(16, 31, 22, 0.32) 100%),
    linear-gradient(0deg, rgba(23, 48, 31, 0.45), rgba(23, 48, 31, 0.15));
}

.band__inner {
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
}

.band__quote {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.35rem);
  font-variation-settings: 'SOFT' 20, 'WONK' 0;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 38rem;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(16, 31, 22, 0.35);
}

.band__quote em {
  display: block;
  font-style: italic;
  font-variation-settings: 'SOFT' 24, 'WONK' 1;
  color: var(--sage-soft);
  font-size: 0.5em;
  letter-spacing: -0.005em;
  margin-top: 0.6rem;
}

/* =============================================================================
   How I work
   ========================================================================== */

.work {
  padding: var(--section-y) 0;
  background: var(--forest-800);
  color: rgba(252, 249, 241, 0.82);
}

.work .section-head h2 {
  color: var(--cream-100);
}

/* Expandable rows. Same disclosure pattern as the FAQ (a brass plus sign that
   rotates to a minus when open), with a heavier title weight. */

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

.work details {
  border-top: 1px solid rgba(252, 249, 241, 0.16);
}

.work details:last-of-type {
  border-bottom: 1px solid rgba(252, 249, 241, 0.16);
}

.work summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 3rem 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-weight: 600;
  color: var(--cream-100);
  position: relative;
  transition: color 0.3s var(--ease);
}

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

.work summary::after,
.work summary::before {
  content: '';
  position: absolute;
  right: 0.55rem;
  top: 50%;
  width: 0.85rem;
  height: 1px;
  background: var(--brass);
  transition: transform 0.35s var(--ease);
}

.work summary::before {
  transform: rotate(90deg);
}

.work details[open] summary::before {
  transform: rotate(0deg);
}

.work summary:hover {
  color: var(--brass);
}

.work summary:focus-visible {
  outline-color: var(--cream-100);
}

.work__body {
  padding: 0 clamp(0rem, 6vw, 4rem) 1.8rem 0;
}

.work__body p {
  color: rgba(252, 249, 241, 0.78);
  margin: 0;
  max-width: 68ch;
}

.work__body p strong {
  color: var(--cream-100);
}

/* =============================================================================
   Areas I Serve - three stacked full-width blocks
   ========================================================================== */

.areas {
  padding: var(--section-y) 0;
  background: linear-gradient(180deg, transparent, rgba(222, 213, 192, 0.42) 18%, transparent);
}

.area-rows {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(3.5rem, 8vw, 7rem);
}

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

/* Each area now shows two photos, the new one stacked above the existing
   one, both the same width as the text column beside them. */
.area-row__media {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
}

/* Photo on the right instead of the left. */
.area-row--flip .area-row__media {
  order: 2;
}

/* One area block, called out with the same dark green used for the quote
   band and "Different Moves" section, so it reads as a recurring anchor
   rather than a one-off treatment. */
.area-row--feature {
  background: var(--forest-800);
  color: rgba(252, 249, 241, 0.82);
  border-radius: 14px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-lift);
}

/* Same callout treatment as the dark green block above, but in a warm
   cream tone for the areas that don't need the dark background. */
.area-row--cream {
  background: var(--stone);
  border-radius: 14px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-lift);
}

.area-row--feature .area-row__text h3 {
  color: var(--cream-100);
}

.area-row--feature .area-row__lead {
  color: var(--sage-soft);
}

.area-row--feature .prose p {
  color: rgba(252, 249, 241, 0.78);
}

.area-row--feature .prose p > strong:only-child {
  color: var(--brass-bright);
}

.area-row--feature .area-frame {
  background: var(--forest-700);
}

.area-row--feature .area-frame::after {
  border-color: rgba(252, 249, 241, 0.22);
}

.area-row__text h3 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.area-row__text h3::after {
  content: '';
  display: block;
  width: 2.75rem;
  margin-top: 0.9rem;
  border-top: 1px solid var(--brass);
}

.area-row__lead {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest-700);
  margin: 1rem 0 0;
}

.area-row__text .prose p {
  max-width: 58ch;
}

.area-row__text .prose p:first-child {
  margin-top: 1rem;
}

.area-row__text .prose p:last-child {
  margin-bottom: 0;
}

/* The one bolded closing line in a block reads as a statement, not body copy. */
.area-row__text .prose p > strong:only-child {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--forest-700);
  margin-top: 0.5rem;
}

/* --- The image frame ------------------------------------------------------
   Swap in a photograph by saving it over the filename in the placeholder.
   The frame keeps its shape whether the photo is there or not.
   ----------------------------------------------------------------------- */

.area-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: var(--cream-200);
  box-shadow: var(--shadow-soft);
}

.area-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(31, 61, 41, 0.18);
  pointer-events: none;
}

/* Secondary (new) photo slot for each area. Same shape and width as the
   existing frame above/below it, but a dashed edge so an empty slot reads
   as "add a photo here" rather than a broken image. Swap in a photo the
   same way as the main image: save it over the filename named in the
   placeholder and this frame behaves exactly like the one above it. */
.area-frame--secondary {
  aspect-ratio: 4 / 3;
}

.area-frame--secondary::after {
  border-style: dashed;
  border-color: rgba(31, 61, 41, 0.3);
}

.area-row--feature .area-frame--secondary::after {
  border-color: rgba(252, 249, 241, 0.32);
}

.area-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.6s var(--ease),
    transform 0.9s var(--ease);
}

.area-frame__img.is-loaded {
  opacity: 1;
}

.area-row:hover .area-frame__img.is-loaded {
  transform: scale(1.04);
}

.area-frame__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 2rem;
  color: var(--sage);
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(125, 141, 116, 0.09) 14px 15px
    ),
    var(--cream-200);
}

.area-frame__placeholder svg {
  width: 3.25rem;
  height: 3.25rem;
  opacity: 0.6;
}

.area-frame__placeholder p {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--forest-600);
}

.area-frame__placeholder span {
  font-size: 0.78rem;
  line-height: 1.5;
}

.area-frame__placeholder code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.74rem;
  background: rgba(31, 61, 41, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

/* =============================================================================
   FAQ
   ========================================================================== */

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

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

.faq details {
  border-top: 1px solid rgba(31, 61, 41, 0.16);
}

.faq details:last-of-type {
  border-bottom: 1px solid rgba(31, 61, 41, 0.16);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 3rem 1.4rem 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  color: var(--forest-800);
  position: relative;
  transition: color 0.3s var(--ease);
}

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

.faq summary::after,
.faq summary::before {
  content: '';
  position: absolute;
  right: 0.55rem;
  top: 50%;
  width: 0.85rem;
  height: 1px;
  background: var(--brass);
  transition: transform 0.35s var(--ease);
}

.faq summary::before {
  transform: rotate(90deg);
}

.faq details[open] summary::before {
  transform: rotate(0deg);
}

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

.faq__body {
  padding: 0 clamp(0rem, 6vw, 4rem) 1.6rem 0;
}

.faq__body p {
  color: var(--muted);
  margin: 0 0 1.1em;
  max-width: 68ch;
}

.faq__body p:last-child {
  margin-bottom: 0;
}

/* =============================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--forest-700);
  color: var(--cream-100);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 92% 8%, rgba(125, 141, 116, 0.3), transparent 62%);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact .eyebrow {
  color: var(--sage-soft);
}

.contact__lede {
  color: rgba(252, 249, 241, 0.82);
  font-size: clamp(1.02rem, 1rem + 0.25vw, 1.15rem);
  max-width: 40ch;
  margin-top: 1.4rem;
}

.contact__list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.contact__list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(252, 249, 241, 0.16);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact__list li:last-child {
  border-bottom: 1px solid rgba(252, 249, 241, 0.16);
}

.contact__list span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-soft);
  padding-top: 0.25rem;
}

.contact__list a {
  color: var(--cream-100);
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 131, 61, 0.8);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease);
}

.contact__list a:hover {
  border-bottom-color: var(--cream-100);
}

/* --- Form ----------------------------------------------------------------- */

.contact__form-wrap {
  background: var(--cream-100);
  color: var(--ink);
  border-radius: 8px;
  padding: clamp(1.6rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lift);
}

.hp {
  position: absolute;
  left: -9999px;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label,
.field legend {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.opt {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--sage);
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(31, 61, 41, 0.2);
  border-radius: 4px;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(89, 104, 92, 0.7);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 82, 55, 0.12);
}

.field--choices {
  border: 0;
  margin: 0 0 1.35rem;
  padding: 0;
}

.field--choices legend {
  margin-bottom: 0.65rem;
  padding: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choices label {
  cursor: pointer;
}

.choices input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choices span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(31, 61, 41, 0.22);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.choices label:hover span {
  border-color: var(--forest-600);
  color: var(--forest-800);
}

.choices input:checked + span {
  background: var(--forest-700);
  border-color: var(--forest-700);
  color: var(--cream-100);
}

.choices input:focus-visible + span {
  outline: 2px solid var(--forest-600);
  outline-offset: 2px;
}

.field__error {
  margin: 0;
  font-size: 0.8rem;
  color: var(--clay);
  min-height: 0;
  display: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--clay);
  background: rgba(154, 90, 56, 0.05);
}

.field.has-error .field__error {
  display: block;
}

.form__note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 1rem 0 0;
  text-align: center;
}

.form__status {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--clay);
  text-align: center;
}

.form__success {
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem) 0;
  animation: rise 0.6s var(--ease) both;
}

.form__success svg {
  width: 3.1rem;
  height: 3.1rem;
  color: var(--forest-600);
  margin: 0 auto 1.25rem;
}

.form__success h3 {
  margin-bottom: 0.75rem;
}

.form__success p {
  color: var(--muted);
  max-width: 38ch;
  margin: 0 auto;
}

.form__success a {
  color: var(--forest-700);
  font-weight: 600;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* =============================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--forest-900);
  color: rgba(252, 249, 241, 0.78);
  font-size: 0.9rem;
}

.footer__top {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.75rem, 5vw, 4rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}

.footer__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--cream-100);
  margin: 0 0 0.35rem;
}

.footer__role,
.footer__lic {
  margin: 0;
  font-size: 0.85rem;
}

.footer__role {
  color: var(--sage-soft);
  letter-spacing: 0.04em;
}

.footer__lic {
  margin-top: 0.5rem;
  opacity: 0.66;
}

.footer__nav,
.footer__reach {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer__nav a,
.footer__reach a {
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.footer__nav a:hover,
.footer__reach a:hover {
  color: var(--cream-100);
  border-bottom-color: var(--brass);
}

.footer__top-link {
  color: var(--sage-soft);
}

.footer__legal {
  border-top: 1px solid rgba(252, 249, 241, 0.12);
}

.footer__legal > p {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  font-size: 0.72rem;
  line-height: 1.7;
  opacity: 0.55;
}

.footer__badges {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-soft);
  border: 1px solid rgba(252, 249, 241, 0.2);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}

.badge svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* =============================================================================
   Scroll reveal (kept deliberately quiet)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

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

.reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.reveal:nth-child(4) {
  transition-delay: 0.18s;
}

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

/* =============================================================================
   Anchor offset for the sticky masthead
   ========================================================================== */

section[id],
span#top {
  scroll-margin-top: 5.5rem;
}

/* =============================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream-100);
    border-bottom: 1px solid rgba(31, 61, 41, 0.14);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(31, 61, 41, 0.1);
  }

  .nav a::after {
    display: none;
  }

  .nav__cta {
    display: block;
    margin-top: 1.1rem;
    padding: 0.85rem 1.5rem;
    background: var(--forest-700);
    color: var(--cream-100);
    border-radius: 999px;
    border-bottom: 0;
    text-align: center;
    font-weight: 600;
  }

  .burger {
    display: grid;
  }

  .masthead__tel {
    display: none;
  }

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

  .hero__grid {
    gap: clamp(2.5rem, 8vw, 4rem);
  }

  .hero__figure {
    max-width: 30rem;
  }

  .about__grid {
    gap: 3rem;
  }

  .portrait {
    max-width: 22rem;
  }

  .portrait::before {
    inset: 1rem -1rem -1rem 1rem;
  }

  .band__media img,
  .band__media video {
    object-position: 50% 46%;
  }

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

  .ribbon__inner p {
    padding: 0.7rem 0;
    border-left: 0;
    border-top: 1px solid rgba(252, 249, 241, 0.18);
  }

  .ribbon__inner p:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .ribbon__inner strong {
    display: inline;
    margin-right: 0.5rem;
  }

  .contact__form-wrap {
    order: 2;
  }

  /* Areas: the photo stacks above the writing, every block the same way. */
  .area-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .area-row--flip .area-row__media {
    order: 0;
  }

  .area-row__text .prose p,
  .area-row__text h3 {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

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

  .hero__facts {
    gap: 0;
  }

  .hero__facts li {
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(31, 61, 41, 0.1);
  }

  .hero__facts span {
    margin: 0;
  }

  .area-row__text h3::after {
    margin-top: 0.75rem;
  }
}

/* =============================================================================
   Reduced motion & print
   ========================================================================== */

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .masthead,
  .grain,
  .form,
  .skip {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
