/* Full home page with imagery (Director's SPEC.md, Nov 11, plus Kassem's notes). Loads after
   site.css and only adds the art placements; the code-drawn visuals live in art.js. Layout
   numbers are tokens here so the build can move them without touching markup. */
:root {
  --plate-cols: 7;   /* hero text keeps columns 1-7; the plate starts at column 8 */
  --pad: 96px;       /* section rhythm: every section's top and bottom padding */
}
@media (max-width: 760px) { :root { --pad: 48px; } }

.plate { overflow: hidden; pointer-events: none; }
.plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---- Hero: text in columns 1-7, the sand plate from column 8 to the right edge ---------------
   The fold: nav + hero + logo band fill the first screen exactly (vars set in full.js). */
.hero { position: relative; grid-template-columns: minmax(0, calc((100% + var(--gap)) * var(--plate-cols) / 12 - var(--gap)));
  min-height: calc(100svh - var(--nav-h, 83px) - var(--logos-h, 120px)); padding-top: 40px; padding-bottom: 40px; align-content: center; }
.hero .lead { max-width: 30em; }
.hero__plate { position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--margin) + (100% - 2 * var(--margin) + var(--gap)) * var(--plate-cols) / 12); }

/* ---- Sections: one rhythm ---- */
.section { padding-top: var(--pad); padding-bottom: var(--pad); }

/* ---- Close: Night, the scan on the right; the land runs to the bottom of the page and the
   footer sits inside it, content left, clear of the land ---- */
/* Rules in ../css/nav.css (shared by all three pages). */

@media (max-width: 760px) {
  /* The plate takes whatever the fold leaves under the CTA (at least 120px), so the logo band
     still ends exactly at the bottom of the first screen. */
  .hero { padding-top: 48px; padding-bottom: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(120px, 1fr); align-content: stretch; }
  .hero__plate { position: relative; inset: auto; justify-self: stretch; margin: 0 calc(-1 * var(--margin)); }
}

/* The nav stays showing while scrolling (Kassem, Nov 11). Sticky keeps it in flow, so the
   first-screen fit (nav + hero + logo band) is unchanged. */
.nav { position: sticky; top: 0; z-index: 20; }

/* ---- The problem: the grass panel with the statements on a liquid-glass card (SPEC-glass.md A).
   glass.js paints grass + glass in one canvas and then sets .is-glass. Until then (and with no
   WebGL) the same layout shows the CSS frost card over the panel's photo, so mounting never
   shifts anything. */
.prob__panel { position: relative; height: 620px; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: url(../assets/img/services-grass.jpg) 50% 50% / cover no-repeat; }
.prob__glass { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }
.prob__card { position: absolute; left: 14%; right: 14%; top: 150px; bottom: -24px;
  border-radius: 20px 20px 0 0; padding: 48px 48px 72px; display: grid; gap: 32px; align-content: start;
  background: rgba(255, 255, 255, .62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .prob__card { background: rgba(255, 255, 255, .88); }
}
.prob__panel.is-glass { background: none; }
.is-glass .prob__card { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.prob__card .label { color: var(--ink); } /* label and statements in ink (spec) */
.prob .pain { padding-right: 24px; }
@media (max-width: 760px) {
  .prob__panel { height: auto; padding: 120px 16px 0; background-position: 70% 50%; }
  .prob__card { position: relative; left: auto; right: auto; top: auto; bottom: auto; padding: 24px 24px 48px; gap: 24px; margin-bottom: -24px; }
  .prob__card .grid3 { gap: 24px; }
}

/* ---- Services figure: one Hairline drawing (hairline/services.js, mounted by full.js).
   Rhythm: rule to figure 48px (the link's 24px padding + 24), the figure, figure to h3 48px (the
   link's 16px gap + 32); 48 / 220 / 32 at 390. Side by side, each column keeps an empty slot
   (.fig--hl) and one stage (.svc-row) lies over the three slots: one camera, one slab. Its height
   follows the row's width (1280 x 280 at 1440; --svc-h from full.js). Stacked, each slot holds its own
   stage. A stage keeps its viewBox's aspect, since the kernel maps the pointer over the stage's box. */
.section--wide-gap .grid3 { position: relative; }
.fig--hl { height: var(--svc-h, 280px); margin: 24px -96px 32px 0; }
.svc-row { position: absolute; left: 0; right: 0; top: 49px; z-index: 1; cursor: pointer; }
.svc-row [data-hairline] { width: 100%; aspect-ratio: 1280 / 280; }
.fig--hl [data-hairline] { width: 100%; aspect-ratio: 480 / 295; }
.discipline.is-hot::before { transform: scaleX(1); } /* the pointer over a column's object, as on hover */
@media (max-width: 760px) {
  .svc-row { display: none; }
  .fig--hl { height: 220px; margin: 24px -48px 16px 0; }
  .section--wide-gap .grid3 { row-gap: 48px; }
}

/* One drawing family with The problem's figures: the kernel's palette, restyled through its own
   variables. Every structure line is 1px ink #111 at .45; the plate is paper; each object's one
   bright stroke is 1.5px in its column's colour, so the colour reads as information; dots ink at .34. */
.svc-row, .fig--hl {
  --hairline-plate: var(--paper); --hairline-stroke: 1;
  --hairline-edge: rgba(17, 17, 17, .45); --hairline-mid: rgba(17, 17, 17, .45); --hairline-lo: rgba(17, 17, 17, .45);
}
[data-hairline] svg .hi { stroke-width: 1.5px; }
[data-hairline] [data-kind="strategy"] .hi { stroke: var(--strategy); }
[data-hairline] [data-kind="design"] .hi { stroke: var(--design); }
[data-hairline] [data-kind="software"] .hi { stroke: var(--software); }
[data-hairline] svg .dot.off { fill: rgba(17, 17, 17, .34); }

/* Kassem, Nov 14: the logo band is not on the first screen; it is the first thing you meet on scroll.
   The hero alone fills the screen under the nav. */
.hero { min-height: calc(100svh - var(--nav-h, 83px)); }
