/* Reprise Property website. House style from tools/brand/reprise-brand.css:
   Cormorant Garamond for everything readable, Montserrat for small labels only,
   sage palette, pill shapes. Fonts are self-hosted (fonts.css), so the site makes
   no calls to Google and needs no cookie banner. */

:root {
  --sage:      #BDD8B7;
  --sage-pale: #E8F1E5;
  --sage-deep: #4A6B43;
  --ink:       #1B2318;
  --ink-soft:  #3D4A38;
  --muted:     #6E7A69;
  --rule:      #D8E2D4;
  --paper:     #FBFCFA;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink);
       font-family: var(--serif); font-size: 20px; line-height: 1.5;
       -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: lining-nums; }

.label { font-family: var(--sans); font-size: 11px; font-weight: 600;
         letter-spacing: .22em; text-transform: uppercase; color: var(--sage-deep); }

.pill { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
        padding: 13px 26px; font-family: var(--sans); font-size: 12px; font-weight: 600;
        letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
        transition: background .2s, color .2s, border-color .2s; }
.pill.solid { background: var(--sage-deep); color: #fff; border: 1px solid var(--sage-deep); }
.pill.solid:hover { background: var(--ink); border-color: var(--ink); }
.pill.ghost { color: #fff; border: 1px solid rgba(255,255,255,.7); }
.pill.ghost:hover { background: #fff; color: var(--ink); }
.pill.line { color: var(--sage-deep); border: 1px solid var(--sage-deep); }
.pill.line:hover { background: var(--sage-deep); color: #fff; }

/* ---------- Header ---------- */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between;
                   padding-top: 22px; padding-bottom: 22px; }
.logo { position: relative; z-index: 30; }
.logo img { width: 92px; height: auto; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .18em;
         text-transform: uppercase; color: #fff; text-decoration: none; opacity: .92; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav a.pill { padding: 10px 20px; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end;
        color: #fff; overflow: hidden; background: #2b3327; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
               background: linear-gradient(90deg, rgba(20,26,18,.72) 0%, rgba(20,26,18,.35) 45%, rgba(20,26,18,0) 75%),
                           linear-gradient(180deg, rgba(20,26,18,.5) 0%, rgba(20,26,18,0) 30%,
                                           rgba(20,26,18,.1) 60%, rgba(20,26,18,.6) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 9vh; width: 100%; }
.hero .label { color: var(--sage); }
.hero h1 { font-weight: 500; font-size: clamp(44px, 6.4vw, 86px); line-height: 1.02;
           margin: 14px 0 20px; max-width: 15ch; letter-spacing: -.005em; }
.hero p { font-size: clamp(19px, 1.7vw, 23px); max-width: 36ch; margin: 0 0 32px; opacity: .95; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Facts strip ---------- */
.facts { background: var(--sage); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 18px; text-align: center; border-left: 1px solid rgba(255,255,255,.55); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-weight: 500; font-size: 44px; line-height: 1; color: var(--ink);
          font-variant-numeric: lining-nums; }
.fact span { display: block; margin-top: 8px; font-family: var(--sans); font-size: 10.5px;
             font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
h2 { font-weight: 500; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; margin: 12px 0 22px; }
.lede { font-size: 22px; color: var(--ink-soft); margin: 0 0 18px; }
.intro .photo { border-radius: 260px 260px 24px 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.intro .photo img { width: 100%; height: 100%; object-fit: cover; }

.strands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.strand { background: var(--sage-pale); border-radius: 28px; padding: 22px 24px; }
.strand h3 { margin: 0 0 4px; font-weight: 600; font-size: 24px; }
.strand p { margin: 0; font-size: 18px; color: var(--ink-soft); line-height: 1.4; }

/* ---------- Projects ---------- */
.projects { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
                margin-bottom: 44px; }
.section-head h2 { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { text-decoration: none; display: block; }
.card .img { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.3; position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .img img { transform: scale(1.04); }
.card .tag { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.92);
             border-radius: 999px; padding: 7px 14px; font-family: var(--sans); font-size: 10px;
             font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); }
.card h3 { font-weight: 600; font-size: 28px; margin: 20px 0 2px; }
.card .where { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em;
               text-transform: uppercase; color: var(--muted); }
.card p { font-size: 19px; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.45; }

/* ---------- Film ---------- */
.film { background: var(--ink); color: #fff; }
.film .grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: center; }
.film .label { color: var(--sage); }
.film p { color: rgba(255,255,255,.82); }
.player { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; }
.player { background: #000; }
.player video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Update ---------- */
.update .grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: stretch; }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 32px; padding: 40px 44px; }
.panel h3 { font-weight: 600; font-size: 30px; margin: 10px 0 18px; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { padding: 14px 0 14px 34px; border-top: 1px solid var(--rule); position: relative; font-size: 20px; }
.panel li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 12px; height: 12px;
                    border-radius: 50%; background: var(--sage); }
.panel li.todo { color: var(--muted); font-style: italic; }
.signup { background: var(--sage-pale); border-radius: 32px; padding: 40px 44px; display: flex;
          flex-direction: column; justify-content: center; }
.signup h3 { font-weight: 600; font-size: 30px; margin: 10px 0 8px; }
.signup p { margin: 0 0 22px; color: var(--ink-soft); }
.signup form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input { flex: 1 1 220px; border: 1px solid var(--rule); border-radius: 999px; padding: 14px 22px;
                font-family: var(--serif); font-size: 19px; background: #fff; }
.signup small { display: block; margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---------- Work with us ---------- */
.work { background: #fff; border-top: 1px solid var(--rule); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { border: 1px solid var(--rule); border-radius: 32px; padding: 34px 32px; display: flex;
        flex-direction: column; gap: 12px; }
.tile h3 { font-weight: 600; font-size: 28px; margin: 0; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 19px; flex: 1; }
.tile .pill { align-self: flex-start; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--sage); color: var(--ink); padding: 56px 0 40px; }
.site-foot .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px;
                  flex-wrap: wrap; }
.site-foot img { width: 110px; }
.site-foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-foot nav a { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em;
                   text-transform: uppercase; text-decoration: none; }
.site-foot .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.6);
                    font-size: 15.5px; color: var(--ink-soft); }

.mock-flag { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: var(--ink); color: #fff;
             border-radius: 999px; padding: 9px 16px; font-family: var(--sans); font-size: 10px;
             font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .88; }

.hero { padding: 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.narrow { max-width: 820px; }
.as-of { font-size: 16px; color: var(--muted); margin: 0; }
.prose h3 { font-weight: 600; font-size: 25px; margin: 34px 0 6px; }
.prose p { margin: 8px 0; }
.prose a { color: var(--sage-deep); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; padding: 0;
             color: #fff; overflow: hidden; background: #2b3327; }
.page-hero.tall { min-height: 78vh; }
.page-hero.short { min-height: 44vh; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0;
                    background: linear-gradient(90deg, rgba(20,26,18,.7) 0%, rgba(20,26,18,.3) 55%, rgba(20,26,18,.05) 85%),
                                linear-gradient(180deg, rgba(20,26,18,.55) 0%, rgba(20,26,18,0) 30%, rgba(20,26,18,.55) 100%); }
.page-hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: 7vh; }
.page-hero .label { color: var(--sage); }
.page-hero .label a { text-decoration: none; }
.page-hero .label a:hover { text-decoration: underline; }
.page-hero h1 { font-weight: 500; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; margin: 12px 0 16px; max-width: 16ch; }
.page-hero p { font-size: clamp(19px, 1.6vw, 22px); max-width: 44ch; margin: 0 0 24px; opacity: .95; }
.page-hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Project pages ---------- */
.fact-row { background: var(--sage); }
.fact-row .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.fact-row .f { padding: 24px 16px; border-left: 1px solid rgba(255,255,255,.55); }
.fact-row .f:first-child { border-left: 0; padding-left: 0; }
.fact-row span { display: block; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .2em;
                 text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.fact-row b { font-weight: 600; font-size: 22px; line-height: 1.2; font-variant-numeric: lining-nums; }
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.story p { font-size: 21px; color: var(--ink-soft); margin: 10px 0 0; }
.before { padding-top: 0; }
.before-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.before-grid figure { margin: 0; }
.before-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; filter: saturate(.85); }
.before-grid figcaption { font-size: 17px; color: var(--muted); margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.next-project { padding: 56px 0; }
.next-project .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.plans figure { margin: 0; }
.plans a { display: block; background: #fff; border: 1px solid var(--rule); border-radius: 24px; padding: 14px; }
.plans img { width: 100%; height: 420px; object-fit: contain; }
.plans figcaption { font-size: 17px; color: var(--muted); margin-top: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.pills .pill { margin-top: 0; }
.values-line { text-align: center; padding: 0 16px 22px; font-size: 24px; color: var(--ink); letter-spacing: .01em; }
.update-photo { border-radius: 32px; overflow: hidden; min-height: 320px; }
.update-photo img { width: 100%; height: 100%; object-fit: cover; }
.working-on { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 32px; padding: 28px; }
.working-on .pic { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.working-on .pic img { width: 100%; height: 100%; object-fit: cover; }
.working-on h3 { font-weight: 600; font-size: 30px; margin: 8px 0 8px; }
.working-on p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- Photo viewer ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
            width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15,19,13,.92); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 14px; }
.lb-cap { color: #fff; margin: 14px 0 0; font-size: 18px; }
.lightbox button { position: fixed; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%;
                   width: 52px; height: 52px; font-size: 32px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }

/* ---------- Updates page ---------- */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.board .col { background: #fff; border: 1px solid var(--rule); border-radius: 32px; padding: 30px 32px; }
.board h3 { font-weight: 600; font-size: 26px; margin: 0 0 14px; }
.board-item { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule);
              text-decoration: none; }
.board-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 18px; flex: none; }
.board-item b { display: block; font-weight: 600; font-size: 21px; }
.board-item span { font-size: 17px; color: var(--muted); }
.board .empty { color: var(--muted); font-style: italic; margin: 0; }
.update-list .panel { margin-top: 26px; }
.panel > p { color: var(--ink-soft); margin: 0 0 12px; }

/* ---------- Work with us ---------- */
.routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.route { border: 1px solid var(--rule); border-radius: 32px; padding: 36px 34px; background: #fff;
         scroll-margin-top: 30px; }
.route h2 { font-size: 34px; margin: 10px 0 14px; }
.route .lede { font-size: 20px; }
.route p { color: var(--ink-soft); }
.band-cta { background: var(--sage-pale); text-align: center; }
.band-cta .lede { margin: 0 auto 26px; max-width: 46ch; }

/* ---------- About ---------- */
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.strands.wide { grid-template-columns: repeat(4, 1fr); margin-top: 0; }

/* ---------- Phone menu ---------- */
.menu-btn { cursor: pointer; background: transparent; }

/* ---------- Preview-only markers ---------- */
mark.todo { background: #FFE9A8; color: #5A4300; border-radius: 10px; padding: 2px 8px; font-style: italic; }

/* ---------- Phone and tablet ---------- */
@media (max-width: 960px) {
  body { font-size: 19px; }
  section { padding: 72px 0; }
  .menu-btn { display: inline-flex; position: relative; z-index: 30; }
  .nav { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { display: flex; position: fixed; inset: 0; z-index: 20; background: var(--ink);
                        flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 0 32px; }
  body.menu-open .nav a { font-size: 15px; }
  .fact-row .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact-row .f { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.55); }
  .story, .routes, .board, .strands.wide, .working-on { grid-template-columns: 1fr; gap: 26px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .narrow { max-width: none; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.55); }
  .intro, .film .grid, .update .grid { grid-template-columns: 1fr; gap: 40px; }
  .intro .photo { max-width: 420px; }
  .cards, .tiles { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .logo img { width: 72px; }
  .hero { min-height: 86vh; }
  .strands { grid-template-columns: 1fr; }
  .panel, .signup, .route, .board .col { padding: 30px 24px; }
  .fact b { font-size: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .page-hero .wrap { padding-top: 120px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; }
}
