/* Perelman Real Estate Investments House: Stone & Brass, Newsreader + Instrument Sans */
:root {
  --bg: #efede8;
  --surface: #e6e2da;
  --nav-bg: #dfdcd6;
  --ink: #22201c;
  --muted: #6e6a62;
  --line: #d6d0c5;
  --accent: #8a6a3b;
  --on-accent: #fbf8f2;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { max-width: 62ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; white-space: nowrap; }
.nav nav a { text-decoration: none; margin-left: 28px; font-size: .95rem; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.hero .actions { justify-content: center; }
.btn { display: inline-block; padding: 14px 26px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-size: .95rem; border-radius: 2px; transition: opacity .3s; }
.btn:hover { opacity: .88; }
.btn-ghost { background: none; color: var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 0; border-radius: 0; }

/* Photos */
.frame { overflow: hidden; background: var(--surface); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; gap: 56px; justify-items: center; text-align: center; }
.hero .lead { font-size: 1.08rem; color: var(--muted); margin: 22px 0 34px; }
.hero .lead p { margin: 0 auto; }
.hero .lead p + p { margin-top: 12px; }
.hero-img { width: 100%; max-width: 1000px; }
.hero-img img { height: auto; }

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }

/* The firm */
.firm { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.facts dt { font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.services h3 { font-size: 1.25rem; margin-bottom: 6px; }
.services p { color: var(--muted); font-size: .98rem; }

/* Track record */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer; }
.chips button:hover { color: var(--ink); border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; list-style: none; padding: 0; }
.deals li[hidden] { display: none; }
.card { display: block; width: 100%; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; }
.card .frame { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.card:hover .frame img, .card:focus-visible .frame img { transform: scale(1.04); }
.card .meta { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.card h3 { margin-bottom: 8px; }
.card .size { font-size: .98rem; color: var(--muted); }
.card .tenant { font-size: .95rem; margin-top: 4px; }

/* About */
.about { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 56px; align-items: center; }
.portrait { aspect-ratio: 4 / 5; }
.about .degrees { margin: 12px 0 22px; }
.about p + p { margin-top: 14px; }

/* Contact */
.contact p.muted { margin: 16px 0 36px; }
.contact-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 960px; }
.contact-list a { display: block; height: 100%; padding: 22px 24px; border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, background .3s; }
.contact-list a:hover { border-color: var(--accent); background: var(--surface); }
.c-label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.c-value { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); white-space: nowrap; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--nav-bg); padding: 32px 0; font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Deal view */
dialog { margin: auto; border: 0; padding: 0; width: 100%; max-width: min(1040px, 94vw); max-height: 92vh; background: var(--bg); color: var(--ink);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), overlay .5s allow-discrete, display .5s allow-discrete; }
dialog[open] { opacity: 1; transform: none; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(16px); } }
dialog::backdrop { background: rgb(15 14 12 / .55); opacity: 0; transition: opacity .5s; }
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }
.d-grid { display: grid; grid-template-columns: 1.4fr 1fr; }
.d-photo { aspect-ratio: 4 / 3; }
.d-body { padding: 44px 40px; position: relative; }
.d-body .meta { color: var(--muted); font-size: .9rem; margin: 14px 0 22px; }
.d-body p + p { margin-top: 14px; }
.d-body .btn { margin-top: 28px; }
.close { position: absolute; top: 16px; right: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.close:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame img, dialog, dialog::backdrop { transition: none; }
  .card:hover .frame img, .card:focus-visible .frame img { transform: none; }
}

@media (max-width: 860px) {
  .nav nav { display: none; }
  .firm, .about, .d-grid { grid-template-columns: 1fr; }
  .deals { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 320px; }
  .sec-head { flex-direction: column; align-items: start; gap: 8px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .brand .long { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero .wrap { gap: 40px; }
  section { padding: 64px 0; }
  .deals, .services, .facts, .contact-list { grid-template-columns: 1fr; }
  .d-body { padding: 28px 20px 32px; }
}
