/*
  home only (/assets/site-20261025/home.css). Loads after site.css.
  The hero title and the trace band, the apps showcase placement, the consulting grid, ddskills set at
  display size, and the background section with the photograph and the figures.
*/

/* ---------- Hero: the title, then the instrument ---------- */
.hero-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding: clamp(20px, 3vw, 44px) 0 clamp(28px, 3.2vw, 44px); }
.hero-head h1 { grid-column: 1 / span 8; }
.hero-side { grid-column: 9 / span 4; display: grid; justify-items: start; gap: 22px; padding-bottom: 0.3em; }
.hero-lead { margin: 0; max-width: 40ch; }

.trace-band { overflow-x: clip; padding: clamp(20px, 2.2vw, 32px) 0 clamp(24px, 2.6vw, 36px); }

/* ---------- Apps: the list drives the stage ---------- */
.apps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.apps-head { grid-column: 1 / span 6; grid-row: 1; }
.apps-head .lead { margin-top: 22px; }
.app-list { grid-column: 1 / span 6; grid-row: 2; margin: clamp(28px, 3.6vw, 52px) 0 0; padding: 0; list-style: none; }
.apps-more { grid-column: 1 / span 6; grid-row: 3; margin: 28px 0 0; }
.apps .stage { grid-column: 7 / span 6; grid-row: 1 / span 3; align-self: stretch; }
.app-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 14px 0; transition: opacity 180ms ease; }
.app-icon { width: 56px; height: 56px; border-radius: 13px; }
.app-name { font: 640 var(--t-item)/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.app-line { display: block; margin-top: 4px; font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.app-store { padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.24em; text-decoration-color: var(--line-2); transition: color 180ms ease, text-decoration-color 180ms ease; }
/* While the visitor is pointing into the list or moving through it by keyboard, the other rows step back. */
.app-list[data-engaged] .app-row:not([data-current]) { opacity: 0.45; }
.app-row[data-current] .app-name { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .app-store:hover { color: var(--ink); text-decoration-color: currentColor; }
}

/* ---------- Consulting: heading and the main service on the left, three beside it ---------- */
.consult-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(48px, 5vw, 72px); align-items: start; }
.consult-main { grid-column: 1 / span 6; display: grid; gap: clamp(48px, 5vw, 72px); }
.consult-head .lead { margin-top: 24px; max-width: 44ch; }
.consult-side { grid-column: 8 / span 5; padding-top: clamp(8px, 1vw, 16px); }
.consult-more { margin: 0; }

/* ---------- ddskills: the name at display size, then what it does ---------- */
.tools { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.tools-name { grid-column: 1 / span 6; font: 640 clamp(64px, 12.5vw, 200px)/0.84 var(--display); letter-spacing: -0.05em; }
.tools-text { grid-column: 7 / span 6; display: grid; gap: 18px; padding-bottom: 0.4em; }
.tools-text p { margin: 0; }
.tools .index { grid-column: 1 / -1; margin-top: clamp(48px, 5vw, 80px); }
.tools-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 40px; margin-top: clamp(40px, 4vw, 56px); }
.tools-old { margin: 0; color: var(--ink-2); }
.tools-old a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 0.24em; text-decoration-color: var(--line-2); transition: text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .tools-old a:hover { text-decoration-color: currentColor; }
}

/* ---------- Background: the photo, then the numbers ---------- */
.bg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.bg-photo { grid-column: 1 / span 5; position: sticky; top: calc(var(--head-h) + 24px); margin: 0; aspect-ratio: 4 / 5; overflow: clip; background: #141319; }
.bg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.bg-text { grid-column: 7 / span 6; }
.bg-text .lead { margin-top: 24px; max-width: 50ch; }
.bg .figs { margin-top: clamp(36px, 4vw, 56px); }
.bg .links { margin: clamp(36px, 4vw, 52px) 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }
.contact-text { grid-column: 1 / span 5; }
.contact-text .lead { margin-top: 24px; }
.contact-text p + p { margin: 16px 0 0; }
.contact-text a { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 0.24em; }
.contact-form { grid-column: 7 / span 6; min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-head h1 { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / span 9; padding: 26px 0 0; }
  .consult-main { grid-column: 1 / span 7; }
  .consult-side { grid-column: 8 / span 5; }
}
@media (max-width: 900px) {
  .apps { display: flex; flex-direction: column; }
  .apps .stage { order: 1; margin-top: 32px; }
  .app-list { order: 2; }
  .apps-more { order: 3; }
  .consult-main, .consult-side { grid-column: 1 / -1; }
  .consult-side { padding-top: 0; }
  .consult-side .points { max-width: 640px; }
  .tools-name { grid-column: 1 / -1; }
  .tools-text { grid-column: 1 / span 10; margin-top: 28px; }
  .bg-photo { grid-column: 1 / span 5; }
  .bg-text { grid-column: 6 / span 7; padding-left: var(--gutter); }
  .contact-text, .contact-form { grid-column: 1 / -1; }
  .contact-text .lead { max-width: 52ch; }
}
@media (max-width: 640px) {
  .hero-head { padding-top: 16px; }
  .hero-head h1 { font-size: clamp(38px, 10.6vw, 46px); }
  .hero-side { grid-column: 1 / -1; gap: 20px; padding-top: 18px; }
  .hero-side .btn { width: 100%; }

  .app-row { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "icon text" ". store"; gap: 0 16px; align-items: start; padding: 12px 0; }
  .app-icon { grid-area: icon; width: 48px; height: 48px; border-radius: 11px; margin-top: 2px; }
  .app-text { grid-area: text; }
  .app-store { grid-area: store; justify-self: start; padding: 10px 0 4px; }
  .app-line { font-size: 16px; }
  .tools-text { grid-column: 1 / -1; }
  .bg-photo { grid-column: 1 / -1; position: static; }
  .bg-text { grid-column: 1 / -1; padding: 32px 0 0; }
}
