/* Pinned black stage. Scroll position drives two sentences, then five field cards that rise and fill the screen. */
.field-story { position:relative; display:grid; grid-template-columns:minmax(0,1fr); overflow:clip; background:#070b10; color:white; }
.field-story > * { grid-area:1 / 1; align-self:start; }
.field-stage { position:sticky; top:0; isolation:isolate; height:100svh; overflow:clip; background:#070b10; }
.field-story :is(.story-stop,.field-stop) { height:100svh; pointer-events:none; scroll-snap-align:start; }

.story-lines p { position:absolute; inset:0; margin:0; display:grid; place-content:center; text-align:center; font-size:clamp(40px,7.4vw,112px); font-weight:780; line-height:1.24; letter-spacing:-.055em; opacity:0; will-change:transform,opacity; }
.story-lines em { font-style:normal; transition:color .35s ease; }
.story-lines p.lit em { color:#ff5a5f; }

/* Field scenes share one place and cross-fade; nothing slides or scales. */
.field-expanded { position:absolute; inset:0; color:#fff; opacity:1; transition:opacity .32s ease-in-out; }
.field-expanded[inert] { opacity:0; pointer-events:none; }
.field-card { position:absolute; inset:0; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; padding-top:var(--tab-height); background:#1b1f24; }
.field-wall,.field-card::before { position:absolute; inset:0; height:100%; width:100%; z-index:-2; object-fit:cover; }
/* Neutral scrims only behind the tabs and the copy; the photograph itself stays bright. */
.field-card::before { content:""; z-index:-1; background:linear-gradient(to bottom,#000000a6 0,#00000073 14%,transparent 30%),radial-gradient(120% 90% at 0% 100%,#000000c7 0,#00000085 34%,transparent 62%); }
/* One left edge for the whole block: title, link, a small caption, then the cards. */
.field-body { display:grid; justify-items:start; gap:clamp(20px,3.4vh,34px); margin-inline:var(--gutter); padding-block:40px clamp(34px,6vh,64px); }
.field-caption { text-shadow:0 1px 12px #000b; }
.field-caption h2 { color:#fff; }
.field-more { display:inline-flex; align-items:center; min-height:44px; margin-top:12px; color:white; font-size:18px; font-weight:700; text-decoration:underline; text-underline-offset:.3em; text-decoration-thickness:1px; }
/* Related solutions: small in-use pictures with the name beneath, kept inside the left half so the people in the photograph stay clear. */
.field-offerings { display:grid; gap:10px; }
.field-offerings h3 { color:#ffffffd9; font-size:15px; font-weight:700; letter-spacing:.02em; text-shadow:0 1px 8px #000a; }
.field-offerings ul { display:flex; flex-wrap:wrap; gap:10px; max-width:min(680px,48vw); padding:0; margin:0; list-style:none; }
.field-offerings li > :is(div,a) { display:grid; height:100%; align-content:start; width:clamp(132px,10.4vw,156px); overflow:hidden; border-radius:10px; background:#0b0f14e6; color:inherit; text-decoration:none; box-shadow:0 6px 18px #0006; }
#fields .field-offerings ul { max-width:min(746px,55vw); }
#fields .field-offerings li > a { width:clamp(115px,10vw,146px); }
.field-offerings img { display:block; width:100%; aspect-ratio:3/2; object-fit:cover; transition:transform .3s ease; }
.field-offering-media { position:relative; display:block; }
.field-media-label { position:absolute; inset:auto 4px 4px 4px; width:fit-content; max-width:calc(100% - 8px); padding:3px 5px; border-radius:4px; background:#101e30; color:#fff; font-size:12px; line-height:1.3; }
.field-offering-media:has(.field-media-label) img,
.field-offerings img:is([src$=".svg"],[src$="/elly.png"],[src$="/solutions/safety-todo.webp"],[src$="/solutions/telecom-report.webp"]) { object-fit:contain; background:#edf3f5; }
.field-offerings li > a:is(:hover,:focus-visible) img { transform:scale(1.05); }
.field-offerings li > a:is(:hover,:focus-visible) strong { text-decoration:underline; text-underline-offset:.2em; }
.field-offerings strong { display:block; padding:8px 10px 9px; font-size:16px; line-height:1.3; word-break:keep-all; }
.field-offerings small { padding:0 10px 9px; color:#e1e8ef; font-size:13px; line-height:1.35; word-break:keep-all; }
.field-offerings a:has(small) strong { padding-bottom:3px; }
.field-expanded a:hover { text-decoration:underline; }
.field-expanded a:focus-visible { outline:2px solid #80dcff; outline-offset:3px; }

/* The site header stays on top of the field scenes; the field tabs sit directly under it. */
html:has(.field-story) { --tab-height:calc(var(--home-mast-height,68px) + 64px); }
.field-story .field-toolbar { position:absolute; inset:var(--home-mast-height,68px) 0 auto; height:calc(var(--tab-height) - var(--home-mast-height,68px)); z-index:8; }
/* A compact secondary row, clearly smaller than the site menu above it. */
.field-toolbar nav { display:flex; align-items:center; gap:clamp(4px,1vw,14px); height:100%; margin-inline:calc(var(--gutter) - 14px); }
.field-toolbar a { display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border-radius:999px; color:white; text-decoration:none; }

/* The current field is marked by red lettering, not an underline. */
.field-toolbar a > span { transition:color .25s ease; }
.field-toolbar a[aria-current] > span { color:#ff5a5f; }
@media (hover:hover) {
  .field-toolbar a:not([aria-current]):hover { background:#ffffff26; }
}
.field-toolbar a:focus-visible { outline:3px solid white; outline-offset:-4px; }
/* The label says which grouping this stage uses: by field or by work area. */
.stage-label { padding:0 16px 0 14px; margin-right:6px; border-right:1px solid #ffffff73; font-size:clamp(15px,1.15vw,17px); font-weight:650; color:#ffffffd9; white-space:nowrap; text-shadow:0 1px 6px #000b; }
.field-toolbar a > span { font-size:clamp(17px,1.35vw,20px); font-weight:750; line-height:1.2; text-shadow:0 1px 6px #000b; white-space:nowrap; }
.field-story .field-toolbar { transition:opacity .2s linear; }
/* A title breaks only between work names, so a middle dot never starts a line. */
.field-caption h2 span { white-space:nowrap; }
.field-caption h2 { max-width:11.5em; font-size:clamp(34px,3.7vw,62px); line-height:1.18; letter-spacing:-.05em; word-break:keep-all; text-wrap:balance; }
/* On the light scenes after the stage the header is white with dark text. */
.mast.over-opening.past-fields { background:#fffffff5; color:#101e30; border-bottom-color:#dde4ea; }
.mast.over-opening.past-fields .identity { color:#101e30; }
.mast.over-opening.past-fields .search-link::after { background:#101e30; }
.mast.over-opening.past-fields.over-panels { background:transparent; color:white; border-bottom-color:#ffffff38; }
.mast.over-opening.past-fields.over-panels .identity { color:white; }
.mast.over-opening.past-fields.over-panels .search-link::after { background:white; }
@media(max-width:720px) {
  html:has(.field-story) { --tab-height:calc(var(--home-mast-height,84px) + 56px); }
  .field-toolbar nav { margin-inline:8px; gap:0; }
  .stage-label { display:none; }
  .field-toolbar a { padding:0 9px; }
  .field-toolbar a > span { font-size:clamp(13px,3.6vw,16px); }
  .story-lines p { font-size:clamp(30px,8.6vw,44px); }
  .field-body { gap:14px; margin-inline:18px; padding-block:10px 22px; }
  .field-offerings ul { max-width:none; }
  #fields .field-offerings ul { max-width:none; }
  #fields .field-offerings li > a,
  .field-offerings li > :is(div,a) { width:calc((100vw - 36px - 20px) / 3); }
  .field-offerings strong { padding:6px 8px 8px; font-size:14px; }
  .field-offerings small { padding-inline:8px; }
}
@media(prefers-reduced-motion:reduce) {
  .field-expanded,.story-lines em,.field-story .field-toolbar,.field-toolbar a > span,.field-offerings img { transition:none; }
}
