:root {
  --paper: #f5f1ea;
  --paper-light: #f8f5ef;
  --surface: rgba(253, 251, 247, 0.78);
  --surface-strong: rgba(253, 251, 247, 0.96);
  --ink: #153a34;
  --headline: #173b35;
  --body: #383d3b;
  --muted: #746e66;
  --gold: #a97b35;
  --gold-soft: #c6a56c;
  --teal: #153f39;
  --teal-hover: #0f5149;
  --border: rgba(126, 101, 63, 0.20);
  --shadow: 0 16px 38px rgba(75, 59, 35, 0.055), 0 2px 5px rgba(75, 59, 35, 0.035);
  --radius: 10px;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lightbox-open { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.anchor-heading { scroll-margin-top: calc(var(--header-height) + 12px); }

.paper-section {
  position: relative;
  isolation: isolate;
  background-color: var(--paper-light);
  background-image:
    linear-gradient(rgba(248, 245, 239, 0.82), rgba(248, 245, 239, 0.82)),
    url("assets/paper-texture.jpg");
  background-size: cover, 1200px auto;
  background-position: center, center top;
  background-repeat: no-repeat, repeat-y;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  border-bottom: 1px solid rgba(169, 123, 53, 0.24);
}

.header-inner {
  width: min(calc(100% - 64px), 1480px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  width: fit-content;
  color: #172d29;
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.022em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #212826;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.nav a {
  position: relative;
  text-decoration: none;
  transition: color 160ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transition: right 160ms ease;
}
.nav a:hover,
.nav a[aria-current="location"] { color: var(--teal-hover); }
.nav a:hover::after,
.nav a[aria-current="location"]::after { right: 0; }
.nav span { color: rgba(169, 123, 53, 0.55); }
.header-inner > .button { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(8, 41, 38, 0.34);
  border-radius: 5px;
  background: linear-gradient(145deg, #184943, #113c37);
  color: #fffdf8;
  box-shadow: 0 9px 22px rgba(15, 59, 55, 0.13), inset 0 1px 0 rgba(255,255,255,0.12);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #176059, #104943);
  box-shadow: 0 12px 27px rgba(15, 59, 55, 0.17), inset 0 1px 0 rgba(255,255,255,0.14);
}
.button-small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.button-large { min-width: 250px; }

.button:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.project-image-button:focus-visible,
.project-link:focus-visible,
.contact-line a:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid rgba(169, 123, 53, 0.42);
  outline-offset: 4px;
}

/* Hero: the photograph itself is the full landing-page background. It fills the
   complete hero edge-to-edge, is anchored to the bottom, and may crop only unused
   image area from the top/sides. The lower edge of the source image is always preserved. */
.hero {
  position: relative;
  height: calc(100svh - var(--header-height));
  min-height: 760px;
  max-height: 900px;
  overflow: hidden;
  isolation: isolate;
  background: #f4f0e9;
  border-bottom: 1px solid rgba(169, 123, 53, 0.16);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(248,245,239,0.08) 0%, rgba(248,245,239,0.015) 42%, rgba(248,245,239,0) 66%),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.08), transparent 52%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 56px), 1040px);
  margin-inline: auto;
  padding-top: clamp(6px, 1.2vh, 14px);
  text-align: center;
}
.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 100%;
  transform: scale(1.10);
  transform-origin: center bottom;
  user-select: none;
  pointer-events: none;
}

h1, h2, h3 {
  margin: 0;
  color: var(--headline);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  max-width: 1030px;
  margin-inline: auto;
  font-size: clamp(54px, 5.15vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-copy {
  max-width: 825px;
  margin: 24px auto 0;
  color: #363c3a;
  font-size: 18px;
  line-height: 1.48;
}
.hero-meta {
  margin: 22px 0 18px;
  color: #966d31;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.02em;
}
.hero-meta em { font-style: normal; }
.hero-content > .button { margin-top: 4px; }

.section { padding: 68px 0 76px; }
.section-heading { margin-bottom: 32px; text-align: center; }
.section-heading h2 {
  font-size: clamp(39px, 3.5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.026em;
}
.accent-line {
  display: block;
  width: 42px;
  height: 1px;
  margin: 15px auto 0;
  background: var(--gold);
}

/* Different sections intentionally use different widths so the page does not read as one long centered tube. */
.build-shell { width: min(calc(100% - 72px), 1420px); margin-inline: auto; }
.work-shell { width: min(calc(100% - 56px), 1510px); margin-inline: auto; }
.talk-shell { width: min(calc(100% - 64px), 1160px); margin-inline: auto; }

.section-build {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(169, 123, 53, 0.20);
  scroll-margin-top: var(--header-height);
}
.section-build .build-shell { width: min(calc(100% - 72px), 1420px); }
.section-build .section-heading { margin-bottom: 28px; }
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.build-card {
  min-width: 0;
  padding: 10px 34px 22px;
  text-align: center;
  border-right: 1px solid rgba(126, 101, 63, 0.17);
}
.build-card:last-child { border-right: 0; }
.build-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  object-fit: contain;
}
.build-card h3 {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1.08;
}
.mini-rule {
  display: block;
  width: 28px;
  height: 1px;
  margin: 12px auto 16px;
  background: var(--gold-soft);
}
.build-card p {
  max-width: 390px;
  margin: 0 auto 11px;
  font-size: 15.5px;
  line-height: 1.5;
  text-align: left;
}

.section-work {
  padding-top: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(169, 123, 53, 0.20);
}
.work-heading { margin-bottom: 20px; }
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}
.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 251, 247, 0.72);
  box-shadow: 0 13px 34px rgba(72, 58, 39, 0.045), 0 1px 4px rgba(72, 58, 39, 0.03);
}
.project-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(126, 101, 63, 0.16);
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: inherit;
}
.project-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8.15;
  overflow: hidden;
  background: #eee9e0;
}
.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 280ms ease, filter 280ms ease;
}
.project-image-button:hover .project-screenshot { transform: scale(1.018); filter: saturate(1.02); }
.property-shot { object-position: 50% 13%; }
.dealsplit-shot { object-position: 50% 3%; }
.image-hint {
  position: absolute;
  right: 12px;
  bottom: 11px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  background: rgba(20, 49, 45, 0.80);
  color: #fffdf8;
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.project-image-button:hover .image-hint,
.project-image-button:focus-visible .image-hint { opacity: 1; transform: translateY(0); }
.project-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 19px 17px;
}
.project-copy h3 { margin-bottom: 7px; font-size: 24px; line-height: 1.08; }
.project-copy p { margin: 0 0 10px; font-size: 14.3px; line-height: 1.38; }
.project-meta {
  margin-top: auto !important;
  color: #936a30;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px !important;
  letter-spacing: 0.01em;
}
.project-meta em { font-style: normal; }
.project-link {
  width: fit-content;
  margin-top: auto;
  color: #875f27;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(135, 95, 39, 0.22);
}
.project-link:hover { color: var(--teal-hover); border-bottom-color: rgba(15,81,73,0.35); }

.partnership {
  padding: 42px 0 44px;
  border-bottom: 1px solid rgba(169, 123, 53, 0.20);
}
.partnership-inner {
  width: min(calc(100% - 96px), 1360px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.partnership-copy { max-width: 880px; }
.partnership-heading { margin-bottom: 13px; text-align: left; }
.partnership-heading .accent-line { margin-left: 0; }
.partnership-heading h2 { font-size: clamp(34px, 3vw, 44px); }
.partnership p { margin: 0 0 8px; font-size: 16.5px; line-height: 1.43; }
.partnership-button { white-space: nowrap; }

/* About: deliberately asymmetrical and text-led so it adds a human
   introduction without turning into a conventional résumé block. */
.about {
  padding: 58px 0 62px;
  border-bottom: 1px solid rgba(169, 123, 53, 0.20);
  scroll-margin-top: var(--header-height);
}
.about-inner {
  width: min(calc(100% - 96px), 1320px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: clamp(54px, 7vw, 100px);
  align-items: start;
}
.about-heading {
  margin: 2px 0 0;
  text-align: left;
}
.about-heading h2 {
  font-size: clamp(38px, 3.3vw, 48px);
}
.about-heading .accent-line { margin-left: 0; }
.about-name {
  margin: 17px 0 0;
  color: #936a30;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .035em;
}
.about-portrait {
  display: block;
  width: 112px;
  max-width: 56%;
  margin: 14px 0 0;
  filter: drop-shadow(0 6px 16px rgba(28, 37, 35, 0.08));
}

.about-copy {
  max-width: 860px;
}
.about-copy p {
  margin: 0 0 17px;
  font-size: 17px;
  line-height: 1.52;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .about-lead {
  color: #263a36;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 1.65vw, 23px);
  line-height: 1.38;
}

.section-talk { padding-top: 66px; padding-bottom: 74px; }
.talk-intro {
  max-width: 840px;
  margin: -2px auto 24px;
  text-align: center;
  font-size: 18px;
}
.talk-intro p { margin: 0 0 11px; }
.quote-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 1060px;
  margin-inline: auto;
}
blockquote {
  margin: 0;
  display: grid;
  grid-template-columns: 48px 1px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 82px;
  padding: 15px 24px 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(253, 251, 247, 0.72);
  box-shadow: 0 8px 21px rgba(72, 58, 39, 0.035);
}
.quote-mark {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 47px;
  line-height: 1;
  text-align: center;
  transform: translateY(3px);
}
.quote-rule { width: 1px; height: 44px; background: rgba(169,123,53,0.48); }
blockquote p {
  margin: 0;
  color: #263a36;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.24;
}

.closing {
  padding: 66px 0 34px;
  border-top: 1px solid rgba(169, 123, 53, 0.23);
}
.closing-inner {
  width: min(calc(100% - 96px), 1260px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  align-items: center;
  gap: clamp(56px, 8vw, 130px);
}
.closing-heading { margin-bottom: 16px; text-align: left; }
.closing-heading .accent-line { margin-left: 0; }
.closing-copy > p { max-width: 680px; margin: 0; font-size: 18px; }
.closing-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.closing-actions .button { margin-bottom: 4px; }
.contact-line {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  margin: 0;
  font-size: 16.5px;
}
.contact-line span { color: var(--muted); }
.contact-line a {
  color: #8f652b;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 101, 43, 0.30);
  width: fit-content;
}
.footer-rule {
  width: min(380px, 70vw);
  margin: 34px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-soft);
}
.footer-rule span { height: 1px; flex: 1; background: linear-gradient(to right, transparent, rgba(169,123,53,0.58)); }
.footer-rule span:last-child { background: linear-gradient(to left, transparent, rgba(169,123,53,0.58)); }
.footer-rule b { font-size: 9px; }
.footer-name {
  margin: 0;
  text-align: center;
  color: var(--headline);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}

/* In-page image lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 19, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 1580px);
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox-dialog img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.34);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  z-index: 2;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 50%;
  background: #f9f5ee;
  color: #173b35;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 36px;
}

@media (max-width: 1120px) {
  :root { --header-height: 112px; }
  .site-header { height: auto; min-height: var(--header-height); }
  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 13px 0 11px;
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 6px;
    padding-bottom: 2px;
  }
  .header-inner > .button { grid-column: 2; grid-row: 1; }
  .hero { height: calc(100svh - var(--header-height)); min-height: 740px; max-height: 860px; }
  .hero-content { padding-top: 30px; }
  .hero-art {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
    transform: scale(1.10);
    transform-origin: center bottom;
  }

  .section-build { min-height: calc(100svh - var(--header-height)); padding-top: 42px; padding-bottom: 46px; }
  .build-grid { gap: 0; }
  .build-card { padding-inline: 26px; }
  .projects { grid-template-columns: 1fr; max-width: 840px; margin-inline: auto; }
  .project-card { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); }
  .project-image-button { border-bottom: 0; border-right: 1px solid rgba(126,101,63,.16); height: 100%; }
  .project-visual { height: 100%; min-height: 260px; aspect-ratio: auto; }
  .partnership-inner { width: min(calc(100% - 64px), 1060px); grid-template-columns: 1fr; gap: 24px; }
  .partnership-copy { margin-inline: auto; text-align: center; }
  .partnership-heading { text-align: center; }
  .partnership-heading .accent-line { margin-left: auto; }
  .partnership-button { justify-self: center; }
  .about { padding: 52px 0 56px; }
  .about-inner { width: min(calc(100% - 64px), 980px); grid-template-columns: 1fr; gap: 24px; }
  .about-heading { text-align: center; }
  .about-heading .accent-line { margin-left: auto; }
  .about-name { text-align: center; }
  .about-portrait { margin-left: auto; margin-right: auto; }
  .about-copy { max-width: 820px; margin-inline: auto; }
  .closing-inner { width: min(calc(100% - 64px), 900px); grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .closing-heading { text-align: center; }
  .closing-heading .accent-line { margin-left: auto; }
  .closing-copy > p { margin-inline: auto; }
  .closing-actions { align-items: center; }
  .contact-line { grid-template-columns: auto auto; }
}

@media (max-width: 760px) {
  :root { --header-height: 108px; }
  body { font-size: 17px; }
  .header-inner { width: min(calc(100% - 32px), 1480px); }
  .brand { font-size: 21px; }
  .button-small { min-height: 39px; padding: 0 14px; font-size: 14px; }
  .nav { gap: 11px; font-size: 13.5px; }
  .desktop-break { display: none; }
  .hero {
    height: 790px;
    min-height: 0;
    background: #f4f0e9;
  }
  .hero-art {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 100%;
    transform: scale(1.10);
    transform-origin: center bottom;
  }
  .hero-content { width: min(calc(100% - 32px), 650px); padding-top: 28px; }
  h1 { font-size: clamp(42px, 12.4vw, 58px); line-height: 1.02; }
  .hero-copy { max-width: 570px; font-size: 16.5px; }
  .hero-meta { font-size: 11px; line-height: 1.5; }
  .section { padding: 60px 0 66px; }
  .section-build { min-height: 0; display: block; padding-top: 58px; padding-bottom: 60px; }
  .section-heading h2 { font-size: 38px; }
  .build-shell, .work-shell, .talk-shell { width: min(calc(100% - 32px), 760px); }
  .build-grid { grid-template-columns: 1fr; }
  .build-card { border-right: 0; border-bottom: 1px solid rgba(126,101,63,.17); padding: 22px 10px 30px; }
  .build-card:last-child { border-bottom: 0; }
  .build-card p { max-width: 560px; }
  .projects { gap: 16px; }
  .project-card { display: flex; }
  .project-image-button { border-right: 0; border-bottom: 1px solid rgba(126,101,63,.16); }
  .project-visual { aspect-ratio: 16 / 9; min-height: 0; }
  .partnership { padding: 42px 0 46px; }
  .partnership-inner { width: min(calc(100% - 32px), 760px); }
  .about { padding: 48px 0 52px; }
  .about-inner { width: min(calc(100% - 32px), 760px); gap: 20px; }
  .about-copy p { font-size: 16.5px; }
  .about-copy .about-lead { font-size: 20px; }
  blockquote { grid-template-columns: 36px 1px minmax(0,1fr); gap: 13px; padding: 14px 15px; }
  .quote-mark { font-size: 39px; }
  .quote-rule { height: 38px; }
  blockquote p { font-size: 18px; }
  .closing { padding-top: 58px; }
  .closing-inner { width: min(calc(100% - 32px), 760px); }
  .contact-line { grid-template-columns: 1fr; gap: 1px; text-align: center; }
  .contact-line a { margin-inline: auto; }
  .lightbox { padding: 16px; }
  .lightbox-close { top: -12px; right: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
