/* Home (/), built on tokens v1 "Night field" (review/base.css). Rules:
   review/site-swarm/BRAND-SYSTEM.md. Fonts, colors, focus, buttons, links,
   eyebrows, .lead, .section and the margin grid all come from base.css. */
.home-page{padding-bottom:0}
:where(.home-page) p{margin:0}

/* Hero */
.home-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:center;padding-block:clamp(44px,7vw,96px) var(--section-space)}
.home-hero h1{margin:16px 0 22px}
.home-lead{max-width:560px;margin-bottom:28px}
.home-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px}

/* Hero film: poster first, plays on click (data-film="click" in app/site.js) */
.home-film .media-frame video{cursor:pointer}

/* One real job, existing and proposed (the ZenDesign card) */
.home-job{position:relative;aspect-ratio:7/6;border:1px solid var(--rule);border-radius:var(--radius);overflow:hidden;background:#9ea29f}
.home-job-proposed{position:absolute;right:-7%;top:1%;width:90%;height:auto}
.home-job-existing{position:absolute;left:14px;bottom:14px;width:36%;padding:8px;background:#fff;border-radius:var(--radius-control);box-shadow:0 14px 30px rgb(19 26 22 / .35)}
.home-job-existing img{display:block;width:100%;height:auto}
.home-job-card{border:0;background:none}
.home-job-card .home-job{aspect-ratio:4/3;height:100%}
.home-job-card .home-job-existing{width:38%;left:10px;bottom:10px;padding:6px}

/* Sections */
.home-section{scroll-margin-top:24px}
.home-section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:36px}
.home-section-head h2{margin:10px 0 0}
.home-section-head>p{color:var(--text-muted);max-width:420px}

/* Products, each shown in use */
.home-products{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.home-product{display:flex;flex-direction:column;min-width:0}
.home-product.zenhome{--mark-ink:var(--zenhome-ink)}.home-product.zendesign{--mark-ink:var(--zendesign-ink)}.home-product.zenlink{--mark-ink:var(--zenlink-ink)}
.home-visual{position:relative;width:100%;min-width:0;margin:0;aspect-ratio:4/3;min-height:280px;border:1px solid var(--rule);border-radius:var(--radius);overflow:hidden;background:var(--surface)}
.home-visual>img{display:block;width:100%;height:100%;object-fit:cover}
.home-whole-home{display:grid;grid-template-columns:1.45fr 1fr;grid-template-rows:1fr 1fr;gap:4px}
.home-whole-home>img{min-width:0;min-height:0}
.home-whole-home .home-house{grid-row:1/3;object-position:70% center}
.home-day{display:flex;flex-direction:column;padding:0 14px 12px;background:var(--surface-sunk)}
.home-job-map{position:relative;min-height:52px;flex:1;margin:0 -14px 10px;overflow:hidden;border-bottom:1px solid var(--rule)}
.home-day-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:8px}
.home-day-head b{display:flex;align-items:center;gap:7px;font:600 13px/1.2 var(--font-head)}
.home-day-head span{font:10px/1 var(--font-mono);color:var(--text-faint);white-space:nowrap}
.home-day-head svg,.home-job-list svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-job-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.home-job-list li{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:9px}
.home-job-list img{display:block;width:56px;height:44px;object-fit:cover;border-radius:5px}
.home-job-list b{display:block;font:600 12px/1.3 var(--font-head)}
.home-job-list span{display:flex;align-items:center;gap:4px;margin-top:4px;font:10px/1.2 var(--font-body);color:var(--zenlink-ink)}
.home-job-list span svg{width:11px;height:11px}
.home-job-list time{font:10px/1.3 var(--font-mono);color:var(--text-muted)}
.home-product-id{display:flex;align-items:center;gap:12px;margin-bottom:12px;color:var(--text);text-decoration:none}
.home-product-id:hover{text-decoration:underline;text-underline-offset:5px}
.home-product-id .product-mark{width:40px;height:40px}
.home-product h3{font-size:24px;letter-spacing:-.03em;margin:0}
.home-tagline{font:600 17px/1.3 var(--font-head);color:var(--mark-ink);margin-bottom:8px}
.home-preview{position:relative;margin-bottom:20px}
.home-reveal{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:var(--radius);background:transparent;cursor:pointer}
.home-reveal:hover{background:transparent}
.home-reveal:focus-visible{outline:2px solid var(--mark-ink);outline-offset:4px}
.home-desc{font-size:16px;line-height:1.5;position:absolute;inset:auto 0 0;z-index:1;padding:42px 22px 22px;border-radius:0 0 var(--radius) var(--radius);background:linear-gradient(transparent,#101714 30%);color:var(--text);pointer-events:none}
.home-desc[hidden],.home-reveal[hidden]{display:none}
@media(prefers-reduced-motion:no-preference){.home-product[data-preview-ready] .home-desc{animation:product-detail-in 160ms ease-out}@keyframes product-detail-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}

/* How we got here */
.home-origin ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.home-origin li{padding:22px 28px 0 0;border-top:1px solid var(--rule)}
.home-origin li+li{padding-left:28px;border-left:1px solid var(--rule)}
.home-q{font-size:var(--text-body);line-height:1.45;margin-bottom:16px}
.home-built{display:flex;align-items:center;gap:10px;font:600 15px/1.3 var(--font-head);margin-bottom:10px}
.home-built .product-mark{width:32px;height:32px;border-radius:9px}
.home-learned{font-size:var(--text-small);line-height:1.5;color:var(--text-muted)}
.home-learned b{display:block;font:10.5px/1.4 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;font-weight:400;margin-bottom:4px;color:var(--text-faint)}
.home-close{margin-top:30px;color:var(--text-muted);max-width:720px}
.home-close a{color:var(--text)}

/* Where to start */
.home-doors{padding-bottom:clamp(40px,5vw,64px)}
.home-doors-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-door{display:flex;flex-direction:column;gap:10px;min-height:200px;padding:24px;border:1px solid var(--rule);border-radius:var(--radius);background:var(--surface);color:var(--text);text-decoration:none;transition:border-color var(--quick) var(--ease),background-color var(--quick) var(--ease)}
.home-door h3{font-size:21px;line-height:1.2;margin:0}
.home-door p{color:var(--text-muted);font-size:15px}
.home-door span{margin-top:auto;font-weight:600}
.home-door:hover{border-color:var(--rule-strong)}
.home-door.primary{background:var(--text);color:var(--bg);border-color:var(--text)}
.home-door.primary p{color:var(--sheet-muted)}
.home-door.primary:hover{background:color-mix(in srgb,var(--text) 86%,#fff)}

@media (max-width:900px){
  .home-hero{grid-template-columns:1fr}
  .home-section-head{display:block}.home-section-head>p{margin-top:12px}
  .home-products{grid-template-columns:1fr;gap:48px}
  .home-origin ol{grid-template-columns:1fr}
  .home-origin li,.home-origin li+li{padding:20px 0 22px;border-left:0}
  .home-doors-grid{grid-template-columns:1fr}
  .home-job-card .home-job-existing{width:40%}
  .home-door{min-height:0}
}
/* The map has its own viewport so mounting it never replaces the photo job list. */
.home-live{display:contents}
@media (max-width:900px){
  .home-day{padding-inline:18px;padding-bottom:16px}
  .home-job-map{margin-inline:-18px;min-height:70px}
  .home-day-head b{font-size:15px}
  .home-job-list{gap:10px}
  .home-job-list li{grid-template-columns:64px minmax(0,1fr) auto;gap:12px}
  .home-job-list img{width:64px;height:48px}
  .home-job-list b{font-size:14px}
  .home-job-list span,.home-job-list time{font-size:11px}
}
