/* Pre-Revenue House. Warm off-white, near-black ink, no accent colour: Inter only, pill buttons, 2rem panels. */
:root {
  --bg: #FBFAF9;
  --surface: #F2F0EE;
  --stone: #ECEBE9;
  --line: #DBDAD6;
  --ink: #1F2023;
  --ink-2: #4A4C50;
  --ink-3: #636569;
  --sage: #636569;
  --sage-soft: #ECEBE9;
  --sage-light: #E6D9C9;
  --dark: #17181A;
  --radius: 2rem;
  --radius-photo: 1.5rem;
  --radius-sm: 1rem;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: var(--sans);
  --serif: var(--sans);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.04em; }
h1 em, h2 em, .footer-cta em { font-style: normal; font-weight: inherit; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: 112px 0; }
.label {
  font: 600 11px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; max-width: 16ch; }
h2 em { color: var(--ink-3); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 58ch; margin-top: 22px; }
.fine { font-size: 14px; color: var(--ink-3); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: #303135; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px max(20px, calc((100% - 1160px) / 2));
  transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  color: #fff;
}
.nav.scrolled { background: rgba(251, 250, 249, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: -0.01em; }
/* the mark: an italic serif p on a rounded tile (round 1's favicon) */
.pmark { display: block; width: 36px; height: 36px; }
.pmark rect { fill: var(--ink); transition: fill .3s var(--ease); }
.pmark text { font: italic 700 19px Georgia, 'Times New Roman', serif; fill: #FAFAF8; transition: fill .3s var(--ease); }
.nav .pmark rect { fill: #FAFAF8; }
.nav .pmark text { fill: var(--ink); }
.nav.scrolled .pmark rect { fill: var(--ink); }
.nav.scrolled .pmark text { fill: #FAFAF8; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.nav .btn-sm { background: #fff; color: var(--ink); border-color: #fff; }
.nav.scrolled .btn-sm { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* photos: a real image, or a quiet pattern while it's missing */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-photo); background: var(--stone); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.missing img { display: none; }
.photo[data-fallback="hide"]:not(.loaded) { display: none; }
.photo[data-fallback="stone"] { background: linear-gradient(160deg, #E4DED2, #CFC6B6); }
.photo[data-fallback="sage"] { background: linear-gradient(160deg, #C9D8CC, #8FAE98); }
.photo[data-fallback="sky"] { background: linear-gradient(170deg, #DCE3EA, #B7C6D3 60%, #E8DCC8); }
.photo.missing[data-fallback="stone"]::before,
.photo.missing[data-fallback="sage"]::before,
.photo.missing[data-fallback="sky"]::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 2px, transparent 2px 46px);
}
.photo figcaption {
  position: absolute; left: 14px; bottom: 14px;
  font: 500 12px/1 var(--sans); letter-spacing: .01em;
  background: rgba(251,250,249,.92); color: var(--ink); padding: 8px 10px; border-radius: 999px;
}

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-start; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; border-radius: 0; z-index: -1; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(23,24,26,.75) 0%, rgba(23,24,26,.62) 45%, rgba(23,24,26,.68) 100%); }
.hero-media.missing { background: radial-gradient(120% 90% at 80% 10%, #A9C1AF 0%, #6D8B78 45%, #2F3F3E 100%); }
.hero-media.missing::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(246,236,214,.16) 0 10px, transparent 10px 64px),
    linear-gradient(180deg, rgba(246,236,214,.14) 0 14px, transparent 14px);
  background-position: 0 0, 0 22%;
  background-size: auto, 100% 100%;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 85%);
}
.hero-inner { padding: 150px 0 72px; }
.eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #E6E7E8; opacity: .8; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); font-weight: 700; line-height: 1.02; max-width: 14ch; letter-spacing: -0.055em; }
.hero h1 em { color: rgba(250,250,248,.72); }
.hero h1 em { display: inline; }
.hero .lede { color: rgba(250,250,248,.9); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.hero-kicker { margin-top: 28px; font: 500 14px/1.4 var(--sans); opacity: .75; }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: -1px; border-bottom: 1px solid var(--line); }
.facts div { padding: 34px 0 30px; display: flex; flex-direction: column; gap: 6px; }
.facts div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts strong { font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.facts span { font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }

/* the five */
.five { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.five li { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.five .n { font: 500 13px/1 var(--mono); color: var(--sage); }
.five h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.five p { color: var(--ink-2); margin-top: 8px; }
.five li:last-child h3 { color: var(--sage); }
.five-signoff { margin-top: 40px; font: 700 clamp(28px, 4vw, 44px)/1.1 var(--sans); letter-spacing: -0.04em; color: var(--ink); }

/* 24/7 callout: a dark rounded panel */
.late { margin-bottom: 24px; }
.late-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #FAFAF8; border-radius: var(--radius); overflow: hidden; }
.late-media { border-radius: 0; min-height: 360px; }
.late-copy { padding: clamp(32px, 5vw, 72px); align-self: center; }
.late .label { color: #E6D9C9; opacity: .8; }
.late h2 { color: #FAFAF8; }
.late .lede { color: rgba(250,250,248,.75); }

/* the space */
.space { background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; }
.building { margin-top: 48px; aspect-ratio: 2206 / 1069; }
.photo-note { margin-top: 14px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 260px 260px; gap: 14px; margin-top: 14px; }
.gallery .g-wide { grid-row: span 2; }
.plan-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; margin-top: 96px; }
.plan-copy h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; }
.plan-key { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.plan-key li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.plan-key b { color: var(--ink); font-weight: 500; }
.k { flex: none; width: 14px; height: 14px; border-radius: 4px; margin-top: 4px; }
.k-office { background: var(--sage-soft); border: 1.5px solid var(--sage); }
.k-res { background: var(--ink); }
.k-studio { background: #D9CDB8; }
.k-shared { background: var(--stone); border: 1.5px solid var(--line); }
.fplan { margin: 0; background: var(--bg); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.fplan svg { width: 100%; height: auto; display: block; }
.fplan .shell { fill: #FBFAF7; stroke: var(--ink); stroke-width: 2; }
.fplan .office rect { fill: var(--sage-soft); stroke: var(--sage); stroke-width: 1.5; }
.fplan .desk rect { fill: var(--ink); }
.fplan .studio rect { fill: #D9CDB8; }
.fplan .glass { fill: #E7EEF2; stroke: #8EA6B6; stroke-width: 1.5; stroke-dasharray: 4 3; }
.fplan .shared { fill: var(--stone); stroke: var(--line); stroke-width: 1.5; }
.fplan .hatch { stroke: #D8D1C4; stroke-width: 2; }
.fplan .lobby { fill: var(--ink); }
.fplan .yard { fill: #E2E0DC; }
.fplan text { font-family: var(--mono); text-anchor: middle; fill: var(--ink-2); }
.fplan .label-sm { font-size: 13px; }
.fplan .label-xs { font-size: 11px; fill: var(--ink-3); }
.fplan .lobby + .label-xs { fill: var(--bg); }
.fplan .suite { font: 500 14px var(--sans); fill: var(--ink); }
.plan-flyer { margin-top: 40px; background: #FAFAF8; border: 1px solid var(--line); }
.plan-flyer img { object-fit: contain; height: auto; padding: 24px 24px 56px; }
.nearby { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.nearby li { background: var(--bg); border-radius: var(--radius-sm); padding: 18px; font-size: 15px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.nearby b { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* how it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.card h3 { font-size: 28px; }
.card-photo { aspect-ratio: 16 / 9; margin-bottom: 26px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps span { font: 600 11px/1.9 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.steps p { color: var(--ink-2); }

/* pricing */
.pricing { background: var(--bg); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; align-items: stretch; }
.plans .plan, .plans-row .plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plans .plan h3, .plans-row .plan h3 { font-size: 22px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 48px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--ink-3); font-size: 15px; }
.plan-sub { color: var(--ink-2); }
.plans .plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); flex: 1; }
.plans .plan li { padding-left: 24px; position: relative; }
.plans .plan li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage); transform: rotate(-45deg); }
.plans .plan .btn { align-self: stretch; }
.plan-main { border-color: var(--ink) !important; box-shadow: 0 24px 60px -30px rgba(31,32,35,.35); }
.tag { position: absolute; top: 20px; right: 20px; font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bg); background: var(--ink); padding: 7px 10px; border-radius: 999px; }
.founding { font-size: 14px; background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink-2); }
.founding b { color: var(--ink); font-weight: 500; }
.plans-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 18px; }
.plan-wide { flex-direction: row !important; justify-content: space-between; gap: 32px !important; }
.plan-wide .plan-sub { margin-top: 10px; max-width: 52ch; }
.plan-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex: none; }
.plan-quiet { background: transparent !important; }

/* who */
.who-photo { margin-top: 40px; aspect-ratio: 16 / 7; }
.who-photo img { object-position: center 60%; }
.who-list { list-style: none; padding: 0; margin: 40px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.who-list li { background: var(--surface); border: 0; border-radius: var(--radius-sm); padding: 20px 22px; color: var(--ink-2); }

/* faq */
.faq { margin-top: 44px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font: 300 26px/1 var(--sans); color: var(--sage); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 62ch; }

/* apply */
.apply { background: var(--surface); }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form { display: grid; gap: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.form input, .form textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--stone); }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form legend { font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.chip { display: inline-flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 400 !important; }
.chip:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.form-note { font: 400 13px/1.4 var(--sans); color: var(--ink-3); }

/* footer */
.footer { background: var(--ink); color: #FAFAF8; padding: 96px 0 40px; border-radius: var(--radius) var(--radius) 0 0; }
.footer-mark { display: inline-block; margin-bottom: 40px; }
.footer-mark .pmark { width: 48px; height: 48px; }
.footer-mark .pmark rect { fill: #FAFAF8; }
.footer-mark .pmark text { fill: var(--ink); }
.footer-cta { font-size: clamp(34px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; margin-bottom: 32px; }
.footer-cta em { color: rgba(250,250,248,.55); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; margin-top: 80px; padding-top: 24px; border-top: 1px solid rgba(250,250,248,.1); font: 400 13px/1.4 var(--sans); color: rgba(250,250,248,.6); }

/* subtle motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* tablet */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .plan-wrap, .apply-grid { grid-template-columns: 1fr; gap: 36px; }
  .plans { grid-template-columns: 1fr; }
  .plans-row { grid-template-columns: 1fr; }
  .nearby { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; }
  .late-panel { grid-template-columns: 1fr; }
  .late-media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .hero { min-height: 88vh; }
  .hero-inner { padding: 120px 0 44px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 24px 0; }
  .facts div + div { padding-left: 0; border-left: 0; }
  .facts div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .five li { grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px; gap: 10px; }
  .gallery .g-wide { grid-column: span 2; grid-row: auto; }
  .fplan { padding: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fplan svg { min-width: 680px; }
  .nearby { grid-template-columns: 1fr; margin-top: 48px; }
  .card { padding: 24px; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
  .plans .plan, .plans-row .plan { padding: 24px; }
  .plan-wide { flex-direction: column !important; gap: 18px !important; }
  .who-list { grid-template-columns: 1fr; }
  .who-photo { aspect-ratio: 4 / 3; }
  .building { aspect-ratio: 4 / 3; }
  .plan-flyer img { padding: 12px 12px 48px; }
  .form { padding: 22px; }
  .footer { padding: 72px 0 32px; }
  .footer-row { flex-direction: column; margin-top: 56px; }
}
