/* BDR Hecht LLC — single-page site */

:root {
  --bg:        #fbf8f4;
  --bg-alt:    #f3ece1;
  --surface:   #ffffff;
  --text:      #1f1813;
  --text-soft: #5c5046;
  --text-mute: #8d8073;
  --line:      #e6dccd;
  --accent:    #a4652c;
  --accent-tx: #ffffff;

  --maxw: 68rem;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 2px;

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0e0b08;
    --bg-alt:    #18130d;
    --surface:   #1b150f;
    --text:      #f7f2ea;
    --text-soft: #bcafa0;
    --text-mute: #8a7d6e;
    --line:      #30271d;
    --accent:    #d99a57;
    --accent-tx: #18130d;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 560;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  background: var(--accent);
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand:hover .brand-mark { transform: rotate(45deg); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
  font-size: 0.9375rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.site-header nav a:hover { color: var(--text); }

@media (max-width: 30rem) {
  .site-header nav a:not([href="#contact"]) { display: none; }
}

/* ---------- Layout ---------- */

main { display: block; }

.hero,
.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(4.5rem, 12vw, 8.5rem); }

/* The tinted band runs full-bleed, so the measured column has to be an inner
   wrapper. Centring the children individually would align each to its own
   max-width instead of to a shared left edge. */
.section-alt {
  max-width: none;
  padding-inline: 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

/* Carries the padding itself so that, under border-box, its 68rem measures the
   same as a plain .section's and both share one left edge. */
.section-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1.25rem;
}

.section-head { max-width: 42rem; }

.section-head h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
}

.section-lede {
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: 1.0625em;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(5rem, 16vw, 11rem) clamp(4rem, 10vw, 7rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 5.4vw, 5.25rem);
  letter-spacing: -0.04em;
}

.hero-tagline {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text-soft);
}

/* ---------- Leadership ---------- */

.person {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.person-initials {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--bg);
}

.person h3 {
  font-size: 1.25rem;
}

.person-title {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-mute);
}

/* ---------- Contact ---------- */

.contact { text-align: left; }

/* The address is painted into the canvas by main.js; the button carries the
   font and colour the canvas samples, so it inherits the palette and theme. */
.email-btn {
  display: inline-flex;
  align-items: flex-end;
  margin: 0;
  padding: 0 0 0.12em;
  border: 0;
  border-bottom: 2px solid var(--accent);
  background: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 1.6vw, 2rem);
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.email-btn:hover { color: var(--accent); }

.email-canvas {
  display: block;
  max-width: 100%;
}

.email-pending {
  font-size: 0.5em;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.email-wrap {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0;
}

.email-fallback {
  font-size: 1.0625rem;
  color: var(--text-soft);
}

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

.site-footer {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) clamp(3rem, 7vw, 4.5rem);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-mute);
}

.footer-brand {
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.footer-legal {
  margin-top: 0.5rem;
  max-width: 42rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-mute);
  opacity: 0.85;
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Photographic hero ---------- */

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.hero-photo {
  position: relative;
  isolation: isolate;
  max-width: none;
  padding-inline: 0;
  padding-block: clamp(6rem, 18vw, 12rem) clamp(5rem, 13vw, 9rem);
  color: #fdfaf6;
}

.hero-photo .hero-media {
  background-image: url("img/house-hero.jpg");
  background-size: cover;
  background-position: center 62%;
}

@media (max-width: 52rem) {
  .hero-photo .hero-media { background-image: url("img/house-hero-sm.jpg"); }
}

.hero-photo .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(26, 17, 10, 0.92) 0%,
      rgba(26, 17, 10, 0.74) 42%,
      rgba(26, 17, 10, 0.34) 100%),
    linear-gradient(to bottom,
      rgba(26, 17, 10, 0.55) 0%,
      rgba(26, 17, 10, 0) 30%,
      rgba(26, 17, 10, 0) 72%,
      var(--bg) 100%);
}

.hero-photo .eyebrow { color: rgba(253, 250, 246, 0.72); }

.hero-photo .hero-tagline {
  color: rgba(253, 250, 246, 0.88);
  text-shadow: 0 1px 16px rgba(20, 12, 6, 0.3);
}

.hero-photo h1 { text-shadow: 0 1px 24px rgba(20, 12, 6, 0.35); }
