:root {
  --paper: #F0F2F1;
  --ink: #1F2428;
  --slate: #4B555C;
  --chalk: #1C55B5;
  --on-chalk: #FFFFFF;
  --pine: #D6B47F;
  --rule: #B8C0C4;
  --surface: #FFFFFF;
  --night: #1F2428;
  --grid: rgba(28, 85, 181, .07);
  --display: "Big Shoulders", "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161A1D;
    --ink: #E4E9EA;
    --slate: #A7B1B6;
    --chalk: #8DB2F4;
    --on-chalk: #0F1416;
    --pine: #C9A46F;
    --rule: #353E43;
    --surface: #1D2226;
    --night: #0E1113;
    --grid: rgba(141, 178, 244, .06);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--chalk); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .92; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 10vw, 7.5rem); }
h2 { font-size: clamp(2.6rem, 6vw, 4.25rem); }
h3 { font-size: 1.875rem; line-height: 1; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.band { padding: clamp(56px, 7vw, 96px) 0; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 20; padding: 10px 14px; background: var(--ink); color: var(--paper); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.875rem/1 var(--display); }
.brand svg { width: 30px; height: 30px; flex: none; }
.mark-dot { fill: var(--chalk); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:hover { color: var(--chalk); }
.nav .call { padding: 10px 16px; border-radius: 4px; background: var(--ink); color: var(--paper); }
.nav .call:hover { background: var(--chalk); color: var(--on-chalk); }
@media (max-width: 860px) {
  .nav a:not(.call) { display: none; }
  .nav .num { display: none; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 2px solid currentColor; border-radius: 4px; color: var(--ink); font-weight: 700; line-height: 1.2; text-decoration: none; }
.btn:hover { color: var(--chalk); }
.btn-primary { background: var(--chalk); border-color: var(--chalk); color: var(--on-chalk); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Hero */
.hero { padding: clamp(44px, 8vw, 104px) 0 0; }
.lede { max-width: 56ch; margin: 28px 0 0; font-size: clamp(1.125rem, 1.6vw, 1.3rem); }

/* Walkthrough drawing */
.walk { margin: clamp(44px, 6vw, 76px) 0 0; }
.sheet { position: relative; aspect-ratio: 2 / 1; }
.art { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 8px; background-color: var(--surface); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 27px 27px; }
.art svg { display: block; width: 100%; height: 100%; color: var(--ink); }
.art .bg { fill: var(--surface); }
.art .lead { stroke: var(--chalk); }
.art .dot { fill: var(--chalk); }
.callouts { margin: 0; padding: 0; list-style: none; }
.callouts li { position: absolute; top: var(--y); width: min(230px, 25%); transform: translateY(-50%); font-size: .875rem; line-height: 1.3; color: var(--slate); }
.callouts strong { display: block; color: var(--ink); font-size: 1rem; }
.callouts .l { right: calc(100% - var(--x)); text-align: right; }
.callouts .r { left: var(--x); }
.walk figcaption { margin-top: 14px; font-size: 1rem; color: var(--slate); }
@media (max-width: 1000px) {
  .callouts li { font-size: .8125rem; }
  .callouts strong { font-size: .9375rem; }
}
@media (max-width: 760px) {
  .sheet { aspect-ratio: auto; }
  .art { position: relative; inset: auto; }
  .art svg { width: 217.7%; height: auto; margin-left: -58.86%; }
  .art .lead, .art .dot { display: none; }
  .callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 22px; }
  .callouts li { position: static; width: auto; transform: none; }
  .callouts .l { text-align: left; }
}

/* One orchestrated moment: the drawing draws itself, then the callouts appear */
.js .draw > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.4, 0, .2, 1) .15s forwards; }
.js .fill, .js .lead, .js .dot, .js .callouts li { opacity: 0; animation: fade .6s ease 1.35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .draw > *, .js .fill, .js .lead, .js .dot, .js .callouts li { animation: none; opacity: 1; stroke-dasharray: none; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 8px; background: var(--rule); }
.intro { max-width: 54ch; margin: 18px 0 0; font-size: 1.25rem; }
.lenses { display: grid; gap: 26px; margin: 36px 0 0; }
.lenses div { padding-left: 20px; border-left: 4px solid var(--pine); }
.lenses dt { font: 800 1.875rem/1 var(--display); }
.lenses dd { max-width: 60ch; margin: 8px 0 0; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
}

/* Services schedule */
.schedule { width: 100%; margin-top: 36px; border-collapse: collapse; background: var(--surface); border: 2px solid var(--ink); }
.schedule th, .schedule td { padding: 20px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.schedule thead th { padding-top: 14px; padding-bottom: 14px; font-size: .875rem; font-weight: 700; color: var(--slate); border-bottom: 2px solid var(--ink); }
.schedule tbody th { width: 24%; font: 800 1.75rem/1 var(--display); }
.schedule tbody td:last-child { width: 26%; color: var(--slate); }
.schedule tbody tr:last-child > * { border-bottom: 0; }
.note { max-width: 72ch; margin: 20px 0 0; font-size: 1rem; color: var(--slate); }
@media (max-width: 760px) {
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .schedule, .schedule tbody, .schedule tr { display: block; }
  .schedule tr { padding: 18px; border-bottom: 1px solid var(--rule); }
  .schedule tbody tr:last-child { border-bottom: 0; }
  .schedule tbody th, .schedule tbody td, .schedule tbody td:last-child { display: block; width: auto; padding: 0; border: 0; }
  .schedule tbody td { margin-top: 10px; }
  .schedule tbody td:last-child::before { content: "Good for: "; font-weight: 700; color: var(--ink); }
}

/* Projects */
.projects { background: var(--night); color: #C9D0D4; }
.projects h2, .projects h3 { color: #FFFFFF; }
.project { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(20px, 4vw, 48px); padding: 36px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.project:first-of-type { margin-top: 36px; }
.project p { margin: 12px 0 0; }
.strip { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 12px; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.strip a { flex: none; scroll-snap-align: start; border-radius: 4px; }
.strip img { width: auto; height: 260px; border-radius: 4px; background: #2B3237; }
@media (max-width: 760px) {
  .project { grid-template-columns: 1fr; }
  .strip img { height: 200px; }
}

/* Rentals */
.rental-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); margin-top: 36px; }
.rental img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: var(--rule); }
.rental h3 { margin-top: 22px; }
.facts { margin: 12px 0 10px; font-weight: 700; }
.rental .btn { margin-top: 6px; }
@media (max-width: 760px) {
  .rental-grid { grid-template-columns: 1fr; }
}

/* Contact title block */
.contact { background: var(--pine); color: #1F2428; }
.contact h2 { color: #1F2428; }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(300px, 480px); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-grid p { max-width: 46ch; margin-top: 18px; font-size: 1.2rem; }
.contact .btn, .listing-cta .btn { color: #1F2428; }
.contact .btn:hover, .listing-cta .btn:hover { color: #123E8A; }
.contact .btn-primary, .listing-cta .btn-primary { background: #1F2428; border-color: #1F2428; color: #F0F2F1; }
.contact .btn-primary:hover, .listing-cta .btn-primary:hover { background: #123E8A; border-color: #123E8A; color: #FFFFFF; }
.contact :focus-visible, .listing-cta :focus-visible { outline-color: #1F2428; }
.titleblock { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: #1F2428; border: 2px solid #1F2428; }
.titleblock div { padding: 12px 16px; background: #E6CFA6; }
.titleblock .wide { grid-column: 1 / -1; }
.titleblock dt { font-size: .8125rem; color: #4A3B22; }
.titleblock dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.titleblock .name dd { font: 800 2rem/1 var(--display); }
.titleblock a { color: #1F2428; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { padding: 36px 0; background: var(--night); color: #AEB8BD; font-size: .9375rem; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #FFFFFF; }

/* Photo viewer */
.lightbox { max-width: min(94vw, 1280px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 12, 14, .9); }
.lightbox img { width: auto; height: auto; max-width: 94vw; max-height: 88vh; border-radius: 4px; }
.lightbox form { position: fixed; top: 14px; right: 14px; }
.lightbox button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: #FFFFFF; color: #1F2428; font: 700 1rem var(--text); cursor: pointer; }

/* Rental listing page */
.crumb { margin: 0 0 18px; font-size: 1rem; }
.listing h1 { font-size: clamp(3rem, 8vw, 6rem); }
.spec { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 28px 0 36px; background: var(--surface); border: 2px solid var(--ink); }
.spec div { padding: 12px 18px; border-right: 1px solid var(--rule); }
.spec div:last-child { border-right: 0; }
.spec dt { font-size: .8125rem; color: var(--slate); }
.spec dd { margin: 2px 0 0; font: 800 1.5rem/1 var(--display); }
.listing-body { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.listing-body p { max-width: 64ch; }
.highlights { padding: 22px 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; }
.highlights h2 { font-size: 2rem; }
.highlights ul { margin: 12px 0 0; padding-left: 1.1em; }
.highlights li { margin: 6px 0; }
.address { margin: 16px 0 0; font-size: 1.2rem; color: var(--slate); }
.lead-photo { display: block; margin: 0 0 40px; border-radius: 8px; }
.lead-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--rule); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery a { border-radius: 4px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: var(--rule); }
.tour, .amenities { margin-top: clamp(56px, 7vw, 96px); }
.tour h3 { margin: 36px 0 14px; }
.amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 40px; margin-top: 30px; }
.amen-grid h3 { font-size: 1.5rem; }
.amen-grid ul { margin: 10px 0 0; padding-left: 1.1em; }
.amen-grid li { margin: 4px 0; }
.listing-cta { margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 48px); border-radius: 8px; background: var(--pine); color: #1F2428; }
.listing-cta h2 { color: #1F2428; }
.listing-cta p { max-width: 46ch; margin: 14px 0 0; font-size: 1.2rem; }
@media (max-width: 760px) {
  .listing-body { grid-template-columns: 1fr; }
  .lead-photo img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Not found */
.notfound p { max-width: 50ch; margin-top: 20px; font-size: 1.2rem; }
