.home-page .page-main { padding-top: 16px; }
.home-page .site-shell { container-type: inline-size; }
.home-work-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.home-work-intro h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.25; text-transform: none; }
.home-work-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.home-page .home-text-link { font-size: 12px; white-space: nowrap; color: var(--text); }
.home-project-montage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 16px; height: 510px; }
.home-page .home-project { display: flex; flex-direction: column; min-width: 0; min-height: 0; color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--bevel-surface); }
.home-project-lead { grid-row: span 2; }
.home-project > header { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 11px 14px; background: var(--panel-strong); border-bottom: 1px solid var(--line); }
.home-project h2 { margin: 0; font-size: 17px; line-height: 1.3; text-transform: none; }
.home-project header > span { font-size: 10px; color: var(--muted); }
.home-project-media { flex: 1; min-height: 0; overflow: hidden; background: var(--frame-bg); }
.home-paired { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.home-project-media img { min-width: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.home-project-framing .home-project-media { background: #f5f6f1; }
.home-project-framing .home-project-media img { object-fit: cover; object-position: top left; }
.home-project-framing .home-project-media img:first-child { object-position: 20% 17%; }
.home-project-copy { position: relative; padding: 12px 34px 12px 14px; }
.home-project-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.home-project-copy small { display: block; margin-top: 8px; font-size: 10px; color: var(--dim); }
.home-project-copy > span { position: absolute; right: 14px; bottom: 14px; color: var(--accent); }
.home-page .home-project:hover { border-color: var(--accent); }
.home-software { padding-top: 28px; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.home-section-heading h2 { margin: 0; font-size: 20px; text-transform: none; }
.home-section-heading span { color: var(--dim); font-size: 11px; }
.home-app-montage { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px 16px; }
.home-page a.home-app { min-width: 0; color: var(--text); text-decoration: none; }
.home-app-image { aspect-ratio: 16/10; overflow: hidden; background: var(--frame-bg); border: 1px solid var(--line); position: relative; }
.home-app-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.home-app-cage .home-app-image { background: #f2ead8; }
.home-app-cage img { object-fit: contain; }
.home-app-phone .home-app-image img { height: auto; }
.home-app-focus .home-app-image img { position: absolute; top: -54.32%; }
.home-app h3 { font-size: 14px; margin: 10px 0 4px; line-height: 1.35; }
.home-app p { margin: 0; font-size: 10px; line-height: 1.5; color: var(--muted); }
.home-app:hover .home-app-image { border-color: var(--accent); }
.home-app:hover h3 { color: var(--accent); }
.home-page :is(.home-project,.home-app):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.home-page .background-grid .card { min-height: 0; }
.home-page .home-marketing-hero {
  position: relative;
  isolation: isolate;
  width: 100cqw;
  margin-left: calc(50% - 50cqw);
  min-height: 510px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #101214;
  border-bottom: 1px solid var(--line);
}
.home-screen-wall {
  position: absolute;
  z-index: -2;
  inset: -200px -90px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
  transform: rotate(-9deg) scale(1.05);
  pointer-events: none;
  opacity: .8;
}
.home-screen-track { display: grid; grid-auto-rows: 280px; gap: 24px; min-width: 0; }
.home-screen-track:nth-child(2) { transform: translateY(120px); }
.home-screen-track:nth-child(3) { transform: translateY(-40px); }
.home-screen-track img { width: 100%; height: 100%; object-fit: cover; object-position: top; border: 1px solid #53575a; }
.home-concept-backdrop { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.home-marketing-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(6,8,10,.28); }
.home-hero-copy { align-self: start; text-align: center; max-width: 660px; padding: 72px 24px 100px; }
.home-hero-byline { margin: 0 0 18px; color: #e0dbd7; font-size: 12px; }
.home-hero-byline span { margin: 0 10px; color: var(--accent); }
.home-page .home-hero-copy .home-hero-heading { margin: 0 0 20px; font-size: 42px; font-weight: 700; line-height: 1.12; color: #fff9f0; }
.home-page .home-hero-description { max-width: 520px; margin: 0 auto; color: #e2e0de; font-size: 16px; font-weight: 400; line-height: 1.65; text-transform: none; }
.home-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.home-page .page-main .home-hero-actions a { display: inline-flex; align-items: center; gap: 20px; padding: 10px 16px; border: 1px solid #787b7d; background: #24282b; color: #f3eee5; text-decoration: none; font-size: 12px; box-shadow: var(--bevel-control); }
.home-page .page-main .home-hero-actions a:first-child { background: #eeece7; border-color: #eeece7; color: #16191b; }
.home-page .page-main .home-hero-actions a { border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.home-page .page-main .home-hero-actions a:hover { border-color: #e9edf0; }
.home-hero-disciplines { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 34px; padding: 17px 20px; border-top: 1px solid rgba(255,255,255,.16); background: rgba(10,12,14,.7); color: #d6d6d6; font-size: 11px; }
@media(max-width:680px) {
  .home-page .page-main { padding-top: 0; }
  .home-page .home-marketing-hero { min-height: min(510px, calc(100svh - 150px)); }
  .home-screen-wall { inset: -80px -180px; gap: 14px; opacity: .8; }
  .home-screen-track { grid-auto-rows: 230px; gap: 14px; }
  .home-concept-backdrop { object-position: 22% center; }
  .home-marketing-hero::after { background: rgba(6,8,10,.5); }
  .home-hero-copy { padding: 48px 22px 100px; }
  .home-page .home-hero-copy .home-hero-heading { font-size: 36px; }
  .home-page .home-hero-description { font-size: 14px; max-width: 35ch; }
  .home-hero-byline { font-size: 11px; }
  .home-hero-byline span { margin: 0 5px; }
  .home-hero-disciplines { gap: 8px 18px; font-size: 10px; padding: 14px 18px; }
}
@media(max-width:360px) {
  .home-hero-copy { padding: 28px 18px 76px; }
  .home-page .home-hero-copy .home-hero-heading { font-size: 30px; margin-bottom: 14px; }
  .home-hero-byline { margin-bottom: 12px; font-size: 10px; }
  .home-page .home-hero-description { font-size: 13px; line-height: 1.6; }
  .home-hero-actions { margin-top: 18px; gap: 8px; }
  .home-page .page-main .home-hero-actions a { font-size: 11px; padding: 9px 12px; gap: 12px; }
}
@media(max-width:1000px) {
  .home-project-montage { height: 540px; grid-template-columns: 1fr 1fr; }
  .home-app-montage { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:680px) {
  .home-work-intro { display: block; padding-bottom: 16px; }
  .home-work-intro h1 { font-size: 23px; }
  .home-work-intro p { font-size: 12px; max-width: 40ch; }
  .home-text-link { display: inline-block; margin-top: 10px; }
  .home-project-montage { grid-template-columns: minmax(0,1fr); grid-template-rows: none; height: auto; }
  .home-project-lead { grid-row: auto; }
  .home-project-media { flex: none; height: 180px; }
  .home-project-lead .home-project-media { height: 220px; }
  .home-project h2 { font-size: 16px; }
  .home-project > header { padding: 10px 12px; }
  .home-app-montage { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .home-section-heading { align-items: start; }
  .home-section-heading span { text-align: right; max-width: 13ch; }
  .home-app h3 { font-size: 13px; overflow-wrap: anywhere; }
}
