/* Home-only composition, 2026-11-03. Loaded after site-system.css.
   The existing hero, project art and other routes keep their own designs. */

/* The six-service chapter owns its own rhythm and explicit upper/lower rules. */
.home-rhythm .site-shell>main>.home-solutions { padding-block:0; }
.home-rhythm .site-shell>main>.home-projects { padding-block:var(--section-half); }
.home-rhythm .home-projects-heading { margin-bottom:32px; }

/* The supplied office photo sits behind the partnership copy with a strong smoky tint. */
.home-rhythm .site-shell>main>.home-partnership-editorial {
  display:block; padding-block:var(--section-half);
}
.home-rhythm .hp-panel {
  position:relative; isolation:isolate; display:flex; justify-content:flex-end;
  min-height:580px; overflow:hidden; border:1px solid #374049; border-radius:12px;
  background:#0c1217; color:#f4f5f6;
}
.home-rhythm .hp-photo {
  position:absolute; z-index:-1; inset:0; margin:0; overflow:hidden;
}
.home-rhythm .hp-photo>img {
  display:block; width:100%; height:100%; object-fit:cover; object-position:50% 0;
}
.home-rhythm .hp-photo::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(90deg,rgba(9,18,26,.48) 0%,rgba(9,18,26,.67) 36%,rgba(9,18,26,.9) 65%,rgba(9,18,26,.95) 100%);
}
.home-rhythm .hp-copy {
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  width:53%; min-width:0; padding:64px clamp(32px,4vw,64px);
}
.home-rhythm .hp-logos { display:flex; align-items:center; gap:22px; margin-bottom:28px; }
.home-rhythm .hp-logos>img { display:block; width:130px; height:40px; object-fit:contain; }
.home-rhythm .hp-logos>img:last-child { width:154px; height:36px; }
.home-rhythm .hp-logos>span { color:#9aa6b1; font:300 23px/1 var(--body); }
.home-rhythm .site-shell .hp-copy h2 {
  margin:0; font:400 var(--section-title)/1.04 var(--body);
  letter-spacing:-.04em; color:#f4f5f6;
}
.home-rhythm .hp-copy h2>span {
  display:inline-block; padding-bottom:.08em;
  font-family:'Instrument Serif',Georgia,serif; font-size:1.18em;
  letter-spacing:-.02em; font-weight:400; color:#f4f5f6;
}
.home-rhythm .hp-copy>p {
  max-width:48ch; margin:24px 0 0; font:400 17px/1.65 var(--body); color:#d4dce3;
  text-wrap:pretty;
}
.home-rhythm .hp-link {
  display:inline-flex; align-items:center; justify-content:space-between; gap:28px;
  max-width:100%; min-height:48px; margin-top:28px; padding:10px 0;
  font:500 15px/1.5 var(--body); color:#f4f5f6;
  text-decoration:underline; text-underline-offset:6px; text-decoration-color:#788b9b;
  transition:text-decoration-color 160ms ease-out;
}
.home-rhythm .hp-link svg { width:22px; height:22px; flex:none; transition:transform 160ms ease-out; }
.home-rhythm .hp-link:hover { text-decoration-color:#f4f5f6; }
.home-rhythm .hp-link:focus-visible { outline:2px solid #aac8e0; outline-offset:5px; border-radius:2px; }

@media(hover:hover) and (pointer:fine) {
  .home-rhythm .hp-link:hover svg { transform:translateX(3px); }
}
@media(max-width:1100px) {
  .home-rhythm .hp-panel { min-height:540px; }
  .home-rhythm .hp-copy { width:56%; padding:44px 36px; }
  .home-rhythm .hp-logos { gap:16px; margin-bottom:28px; }
  .home-rhythm .hp-logos>img { width:112px; }
  .home-rhythm .hp-logos>img:last-child { width:128px; }
  .home-rhythm .hp-copy>p { font-size:17px; }
}
@media(max-width:900px) {
  .home-rhythm .hp-panel { min-height:520px; }
  .home-rhythm .hp-copy { width:58%; padding:36px 28px; }
  .home-rhythm .hp-logos { gap:12px; }
  .home-rhythm .hp-logos>img { width:96px; }
  .home-rhythm .hp-logos>img:last-child { width:116px; }
  .home-rhythm .site-shell .hp-copy h2 { font-size:42px; }
  .home-rhythm .hp-link { gap:16px; font-size:14px; }
}
@media(max-width:760px) {
  .home-rhythm .site-shell>main>.home-solutions { padding-block:0; }
  .home-rhythm .site-shell>main>.home-projects { padding-block:var(--section-half); }
  .home-rhythm .site-shell>main>.home-partnership-editorial { padding-block:var(--section-half); }
  .home-rhythm .hp-panel { min-height:0; border-radius:10px; }
  .home-rhythm .hp-copy { width:100%; padding:clamp(150px,43vw,280px) 26px 32px; }
  .home-rhythm .hp-photo>img {
    height:auto; object-fit:contain;
    -webkit-mask-image:linear-gradient(#000 55%,transparent 100%);
    mask-image:linear-gradient(#000 55%,transparent 100%);
  }
  .home-rhythm .hp-photo::after {
    background:rgba(9,18,26,.42);
  }
  .home-rhythm .hp-logos { gap:14px; margin-bottom:28px; }
  .home-rhythm .hp-logos>img { width:100px; height:34px; }
  .home-rhythm .hp-logos>img:last-child { width:116px; height:30px; }
  .home-rhythm .hp-logos>span { font-size:19px; }
  .home-rhythm .site-shell .hp-copy h2 { font-size:36px; }
  .home-rhythm .hp-copy>p { font-size:16px; line-height:1.65; margin-top:20px; }
  .home-rhythm .hp-link { margin-top:20px; font-size:14px; gap:16px; }
}
@media(max-width:360px) {
  .home-rhythm .hp-copy { padding-inline:20px; }
  .home-rhythm .hp-logos { gap:10px; }
  .home-rhythm .hp-logos>img { width:90px; }
  .home-rhythm .hp-logos>img:last-child { width:94px; }
  .home-rhythm .hp-logos>span { font-size:16px; }
  .home-rhythm .site-shell .hp-copy h2 { font-size:34px; }
}
@media(prefers-reduced-motion:reduce) {
  .home-rhythm .hp-link:hover svg { transform:none; }
}

/* Shared section rhythm and restrained illustration density. */
.home-rhythm .site-shell .home-founder-quote { --quote-space-top:var(--section-space); padding-bottom:var(--section-half); }
.home-rhythm .site-shell .home-projects-heading h2 { font-size:var(--section-title); }
.home-rhythm .site-shell .home-projects-grid { gap:var(--grid-gap); }
.home-rhythm .site-shell .project-cover { min-height:480px; aspect-ratio:auto; }
.home-rhythm .site-shell .founder-quote-frame { padding:40px; background:#080b0e; border-color:#313a43; }
.home-rhythm .founder-quote-frame::before { opacity:.38; }
.home-rhythm .site-shell .founder-quote-copy blockquote { font-size:clamp(34px,3.6vw,52px); line-height:1.22; }
.home-rhythm .founder-quote-copy .quote-accent { color:var(--ui-accent); }
.home-rhythm .founder-quote-byline { margin-top:28px; }
.home-rhythm .site-shell .consultation-lead { color:var(--ui-muted); }
@media(min-width:1600px) {
  .home-rhythm .site-shell .project-cover { min-height:540px; }
}
@media(max-width:760px) {
  .home-rhythm .site-shell .founder-quote-frame { padding:28px 24px; }
  .home-rhythm .site-shell .founder-quote-copy blockquote { font-size:27px; }
  .home-rhythm .site-shell .project-cover { min-height:420px; }
}
@media(max-width:360px) {
  .home-rhythm .site-shell .founder-quote-frame { padding:24px 18px; }
  .home-rhythm .site-shell .founder-quote-copy blockquote { font-size:25px; }
}

/* Mobile project heading. Hero composition is owned by iceberg-hero.css. */
@media(max-width:760px) {
 .home-rhythm .site-shell .home-projects-heading h2 { max-width:14ch; text-wrap:balance; }
}

/* Identical secondary actions at the beginning and end of the home page. */
.home-rhythm .secondary-action-link {
  display:inline-flex; align-items:center; gap:12px; min-height:48px; max-width:100%;
  padding-block:10px; color:#b7b7b7; font:400 15px/1.5 var(--body);
  text-decoration:none; touch-action:manipulation;
  transition:color 160ms ease;
}
.home-rhythm .secondary-action-link>span {
  text-decoration:underline; text-decoration-thickness:1px;
  text-underline-offset:5px; text-decoration-color:#555;
}
.home-rhythm .secondary-action-link>svg {
  width:18px; height:18px; flex:none;
  transition:transform 160ms cubic-bezier(.22,1,.36,1);
}
.home-rhythm .secondary-action-link:focus-visible { outline:2px solid #a8bfd7; outline-offset:5px; border-radius:2px; }
.home-rhythm .secondary-action-link:active { color:#fff; }
@media(hover:hover) and (pointer:fine) {
  .home-rhythm .secondary-action-link:hover { color:#fff; }
  .home-rhythm .secondary-action-link:hover>svg { transform:translateX(3px); }
}
@media(max-width:760px) {
  .home-rhythm .secondary-action-link { font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
  .home-rhythm .secondary-action-link,.home-rhythm .secondary-action-link>svg { transition:none; }
  .home-rhythm .secondary-action-link:hover>svg { transform:none; }
}
