/* Floorwalk landing page (index.html): free 3D walks for BTO applicants.
   Builds on app.css tokens and site.css; the paper-and-ink drawing-sheet look stays. */

.home { --accent-ink: #a3461a; }  /* the accent, dark enough for small text on paper (5.3:1) */
.home .page { padding-top: 64px; }
.home .page section { padding: 64px 0; }
.home p, .home .part-text { text-wrap: pretty; }
.home ::selection { background: rgba(214, 102, 46, .22); }

/* ---- top bar: the three parts of the walk, named the same as the trio ---- */
.home .topbar nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 14px; }
.home .topbar nav a:not(.btn):hover { color: var(--accent-ink); }
.home .nav-short { display: none; }
@media (max-width: 860px) { .home .topbar nav a.nav-long { display: none; } }
@media (max-width: 640px) {
  .home .topbar nav { gap: 2px; }
  .home .topbar nav a:not(.btn) { display: inline-flex; justify-content: center; min-width: 44px; padding: 0 6px; font-size: 14px; font-weight: 500; }
  .home .topbar nav .btn, .home .nav-long, .home .topbar nav a.nav-long { display: none; }
  .home .nav-short { display: inline; }
}
@media (max-width: 360px) { .home .topbar .brand span { display: none; } }
/* the small back-to-poseidon pill keeps its look but gets a 44 px hit area */
.home .home-link { position: relative; }
.home .home-link::after { content: ''; position: absolute; inset: -8px -4px; }
.home .btn.lg { min-height: 44px; box-sizing: border-box; }

/* ---- hero: title, the film of a flat building itself, then the three parts ---- */
.home-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: ". film" "h film" "l film" "p film" ". film" "trio trio"; grid-template-rows: 1fr auto auto auto 1fr auto; column-gap: 48px; align-content: start; padding: 36px 0 56px; }
.home-hero h1 { grid-area: h; align-self: end; font-size: clamp(34px, 3.8vw, 50px); text-wrap: balance; }
.home-hero .lede { grid-area: l; margin-top: 16px; max-width: 44ch; }
.home-hero .promise { grid-area: p; align-self: start; }
.promise { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin: 18px 0 0; padding: 0; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.promise li + li::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 12px 2px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.hero-film { grid-area: film; position: relative; margin: 0; align-self: center; }
.hero-film video { display: block; width: 100%; height: auto; aspect-ratio: 960 / 600; border: 1.5px solid var(--ink); background: #e9e4da url(../assets/shots/bayshore-build-poster.jpg) center / cover; }
.hero-film figcaption { margin-top: 8px; }

/* The trio: one drawing strip in three panels, in walking order (estate, flat, styles). */
.trio { grid-area: trio; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border: 1.5px solid var(--ink); background: #faf8f3; counter-reset: part; }
.page a.part { display: flex; flex-direction: column; color: inherit; text-decoration: none; position: relative; transition: background .2s; }
.page a.part + a.part { border-left: 1px solid var(--ink); }
.part img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 0; border-bottom: 1px solid var(--ink); background: #e9e4da; }
.part-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 18px; }
.part-step { display: flex; align-items: center; gap: 8px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.part-step b { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%; font-weight: 500; color: var(--ink); letter-spacing: 0; }
.part-step i { font-style: normal; margin-left: auto; padding: 3px 6px; border-radius: 3px; border: 1px solid rgba(163, 70, 26, .35); background: rgba(214, 102, 46, .08); color: var(--accent-ink); }
.part-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-top: 4px; }
.part-text { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.part-title::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.page a.part:hover { background: #fff; }
.page a.part:hover .part-title { color: var(--accent-ink); }
.page a.part:hover .part-title::after { transform: translate(3px, -2px) rotate(45deg); }
.page a.part:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; grid-template-areas: "h" "film" "trio" "l" "p"; grid-template-rows: none; padding: 20px 0 40px; }
  .home-hero h1 { max-width: 14ch; margin-bottom: 16px; }
  .home-hero .lede { margin-top: 22px; }
  .trio { margin-top: 18px; }
}
@media (max-width: 700px) {
  .trio { grid-template-columns: 1fr; }
  .page a.part { flex-direction: row; align-items: center; min-height: 84px; }
  .page a.part + a.part { border-left: 0; border-top: 1px solid var(--ink); }
  .part img { flex: 0 0 112px; width: 112px; align-self: stretch; aspect-ratio: auto; height: auto; border-bottom: 0; border-right: 1px solid var(--ink); }
  .part-body { flex: 1; min-width: 0; gap: 2px; padding: 9px 12px 10px 14px; }
  .part-step { font-size: 11px; }
  .part-step b { width: 18px; height: 18px; }
  .part-step i { padding: 2px 5px; }
  .part-title { font-size: 16px; margin-top: 2px; }
  .part-text { font-size: 13px; line-height: 1.35; }
}
@media (max-width: 560px) {
  .home .page { padding-top: 56px; }
  .home-hero { padding-top: 16px; }
  .home-hero h1 { font-size: 31px; margin-bottom: 14px; }
  .hero-film video { aspect-ratio: 16 / 9; object-fit: cover; }
  .hero-film figcaption { display: none; }
  .part-body { padding-top: 7px; padding-bottom: 8px; }
  .page a.part { min-height: 0; }
}

/* ---- section heads: a heading and one plain line ---- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

/* ---- tags say what a link opens ---- */
.tag { display: inline-block; align-self: flex-start; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; margin-bottom: 10px; }
.tag-3d, .tag-new { color: var(--accent-ink); border-color: rgba(163, 70, 26, .35); background: rgba(214, 102, 46, .08); }

/* ---- how it works: the three stages, in a row (a swipe row on phones) ---- */
.build-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: b; }
.build-steps li { counter-increment: b; }
.build-steps figure { position: relative; margin-bottom: 14px; }
.build-steps figure::after { content: counter(b); position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; display: grid; place-items: center; font: 500 12px var(--mono); background: var(--paper); border: 1px solid var(--ink); border-radius: 50%; }
.build-steps h3 { margin-bottom: 4px; }
.build-steps p { margin: 0; font-size: 15px; }
@media (max-width: 760px) {
  .build-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .build-steps::-webkit-scrollbar { display: none; }
  .build-steps li { flex: 0 0 80%; scroll-snap-align: start; }
}

/* ---- flats: 4 across on desktop (two full rows of 4), thumbnail rows on phones ---- */
.home .project-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home .tile h3 { font-size: 15.5px; }
.home .tile p { font-size: 13.5px; }
@media (max-width: 1000px) { .home .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .home .project-grid { grid-template-columns: 1fr; gap: 10px; }
  .home .page a.tile { flex-direction: row; align-items: stretch; }
  .home .tile img { flex: 0 0 120px; width: 120px; height: auto; aspect-ratio: auto; object-fit: cover; border-bottom: 0; border-right: 1px solid var(--ink); }
  .home .flats .tile .body { padding: 10px 12px 12px; min-width: 0; }
  .home .tile .tag { margin-bottom: 6px; }
}
.flats .tile .body { padding: 14px 16px 18px; }
.page .tile:hover h3 { color: var(--accent-ink); }
.facts-only { margin-top: 36px; padding-top: 22px; border-top: 1px dashed var(--line); }
.facts-only h3 { font-size: 16px; }
.facts-only ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.page .facts-only a { display: inline-flex; align-items: baseline; gap: 7px; min-height: 44px; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; }
.facts-only a span { font: 400 11px var(--mono); color: var(--ink-2); }
.page .facts-only a:hover { border-color: var(--ink); background: #fff; }
.page .facts-only li:first-child a { border-color: var(--ink); font-weight: 600; }

/* ---- styles ---- */
.styles-band .split { align-items: center; }
.style-links { list-style: none; margin: 4px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.page .style-links a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; }
.page .style-links a:hover { border-color: var(--ink); background: #fff; }

/* ---- FAQ: bigger tap rows, darker accent ---- */
.home .faq details { padding: 0; }
.home .faq summary { padding: 14px 34px 14px 0; min-height: 44px; box-sizing: border-box; }
.home .faq summary::after { top: 10px; color: var(--accent-ink); }
.home .faq details p { margin: 0 0 16px; }

/* ---- the ask: a like and a follow ---- */
.follow { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 36px 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 8px; }
.follow h2 { color: var(--paper); margin-bottom: 8px; }
.follow p { color: #cfcabd; margin: 0; }
.follow .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.follow .btn.ghost { background: transparent; color: var(--paper); border-color: #6d6a62; }
@media (max-width: 760px) {
  .follow { grid-template-columns: 1fr; padding: 28px 22px; }
  .follow .row { flex-direction: column; align-items: stretch; }
  .follow .row .btn { text-align: center; padding: 14px 18px; }
}

/* ---- business: present, quiet, below the ask ---- */
.home .page section.business { padding: 40px 0 8px; border-top: 0; }
.business h2 { font-size: 20px; margin-bottom: 8px; }
.home .note-box { border-left-width: 1px; margin-top: 28px; }

/* ---- small accent text uses the darker accent ---- */
.home .kicker b { color: var(--accent-ink); }
.home .site-foot nav a { display: inline-block; padding: 8px 0; }
@media (prefers-reduced-motion: reduce) { .part-title::after { transition: none; } }
