:root {
  --paper: #f4f0e8;
  --paper-2: #ebe4d8;
  --card: #fbf8f3;
  --ink: #161412;
  --muted: #5e574e;
  --line: #ddd4c6;
  --bronze: #7c5736;
  --bronze-deep: #5c3e24;
  --night: #12100e;
  --night-2: #1c1916;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(22, 20, 18, 0.12);
  --header: 4.6rem;
  --dock: 4.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 360;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 560;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: #f4f0e8;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  width: min(1180px, calc(100% - 1.25rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img { height: 46px; width: auto; }

.nav-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  content: "";
}

.nav-toggle span::before,
.nav-toggle span::after { position: absolute; left: 0; }

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem 1.5rem;
  position: fixed;
  inset: var(--header) 0 0 0;
  background: var(--paper);
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  overflow: auto;
  z-index: 50;
}

.nav-links.open { display: flex; }

.nav-links a {
  display: block;
  text-decoration: none;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
}

.nav-links a[aria-current="page"] { color: var(--bronze); }

.nav-cta {
  margin-top: 0.8rem;
  text-align: center;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 0 !important;
  border-radius: 999px;
  padding: 0.9rem 1.1rem !important;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  color: #f7f3ec;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media,
.hero-shade { position: absolute; inset: 0; }

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(18, 16, 14, 0.35) 0%, rgba(18, 16, 14, 0.28) 35%, rgba(18, 16, 14, 0.88) 72%, rgba(18, 16, 14, 0.96) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1.25rem;
  padding: 1.15rem 1.1rem calc(var(--dock) + 0.55rem);
  border-radius: 1.15rem;
  background: rgba(14, 12, 10, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero .eyebrow {
  color: #e8c9a4;
}

.hero h1 {
  font-size: clamp(2.5rem, 11vw, 6.4rem);
  max-width: 11ch;
  color: #fbf7f1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero .lede {
  color: rgba(251, 247, 241, 0.92);
  margin-top: 1rem;
  max-width: 36rem;
}

.hero .btn-line {
  background: rgba(14, 12, 10, 0.92);
  color: #fbf7f1;
  border-color: rgba(251, 247, 241, 0.95);
}

.hero-actions,
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
  font-weight: 560;
}

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-line {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.section { padding: 4.2rem 0; }
.section-tight { padding-top: 2.4rem; }

.split {
  display: grid;
  gap: 1.5rem;
}

.principles { list-style: none; margin: 1.4rem 0 0; padding: 0; }

.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.principles span {
  font-family: var(--serif);
  color: var(--bronze);
}

.doors, .mosaic, .team, .notes, .gallery, .hub-grid {
  display: grid;
  gap: 0.8rem;
}

.door, .tile, .note, .person, .panel {
  background: var(--card);
  border-radius: 1.2rem;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(22, 20, 18, 0.05);
}

.door img, .tile img, .gallery img, .page-hero img { width: 100%; object-fit: cover; }
.door img { aspect-ratio: 4/3; }
.tile img { aspect-ratio: 1/1; }
.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 1rem;
  overflow: hidden;
}
.gallery img { aspect-ratio: 4/3; transition: transform 0.45s ease; }
.gallery button:hover img { transform: scale(1.03); }

.door-copy, .tile-copy, .note, .person, .panel { padding: 1.1rem 1.15rem 1.25rem; }
.door h2, .tile h3, .note h3, .person h3 { font-size: 1.7rem; }
.tile h3 { font-size: 1.35rem; }
.meta { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; }

.night {
  background: var(--night);
  color: #f6f1ea;
}
.night > .wrap > .eyebrow,
.night > .wrap > h2 { color: inherit; }
.night .lede { color: rgba(246, 241, 234, 0.78); }
.night > .wrap > .eyebrow { color: #e2c7a4; }

/* Cream tiles must not inherit night light text (ratio ~1.06 before fix). */
.night .tile {
  color: var(--ink);
  background: var(--card);
}
.night .tile .eyebrow { color: var(--bronze); }
.night .tile h3 { color: var(--ink); }
.night .tile .meta { color: var(--muted); }

.cred-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.4rem;
}

.cred-row img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 0.8rem;
  padding: 0.45rem 0.6rem;
}

.page-hero { padding-top: 1.2rem; }
.page-hero img {
  width: 100%;
  height: min(62vw, 460px);
  object-fit: cover;
  border-radius: 1.3rem;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 8vw, 5rem);
  margin: 1rem 0 0.8rem;
  max-width: 14ch;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.92rem;
  background: var(--card);
}

.prose { display: grid; gap: 1rem; max-width: 44rem; }
.prose p { color: var(--muted); }

.form {
  display: grid;
  gap: 0.75rem;
  background: var(--card);
  border-radius: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
}

label { display: grid; gap: 0.35rem; font-size: 0.86rem; font-weight: 560; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.8rem;
  padding: 0.85rem 0.9rem;
  font-size: 1rem;
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

.form-ok {
  background: #eef6ef;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
}

.contact-grid, .legal { display: grid; gap: 1rem; }
.address { font-style: normal; }
.address a { color: var(--bronze-deep); }

.site-footer {
  background: var(--night-2);
  color: #efe8de;
  padding: 3rem 0 calc(var(--dock) + 1.5rem);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
/* .meta is muted-on-paper; on night footer that fails WCAG (~2.5). */
.site-footer .meta,
.site-footer .meta a {
  color: rgba(246, 241, 234, 0.88);
}
.foot-grid { display: grid; gap: 1.6rem; }
.site-footer h2 { font-size: 2rem; }
.site-footer h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #e2c7a4; }
.site-footer ul { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.foot-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(239, 232, 222, 0.65);
  font-size: 0.88rem;
  display: grid;
  gap: 0.4rem;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  background: var(--night);
  color: var(--paper);
}
.dock a {
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 0.3rem calc(0.85rem + env(safe-area-inset-bottom));
  font-size: 0.92rem;
  font-weight: 560;
}
.dock a:last-child { background: var(--bronze); color: #fff; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}
.lightbox::backdrop { background: rgba(12, 10, 8, 0.88); }
.lightbox img { max-height: 86vh; max-width: 94vw; margin: 0 auto; border-radius: 0.6rem; }
.lightbox-close {
  position: fixed;
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--paper);
}

@media (min-width: 760px) {
  .doors, .notes { grid-template-columns: 1fr 1fr; }
  .mosaic, .gallery, .hub-grid { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .cred-row { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: end; }
  .hero-copy { margin-bottom: 2.5rem; padding: 1.35rem 1.4rem 1.4rem; }
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    background: transparent;
    overflow: visible;
    inset: auto;
  }
  .nav-links a {
    border: 0;
    font-size: 0.98rem;
    padding: 0.45rem 0.7rem;
  }
  .nav-cta { margin: 0 0 0 0.4rem; padding: 0.55rem 0.95rem !important; }
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .gallery, .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .dock { display: none; }
  .site-footer { padding-bottom: 2rem; }
  body { padding-bottom: 0; }
}

@media (max-width: 979px) {
  body { padding-bottom: var(--dock); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
