/* StruXure.co v4 About Us. Tokens, drawing kit and chrome come from _shared/ (read-only). Shared by all three
   options (about-us.html / -2 / -3), same as products.css is shared by the 11 product pages' three options. */

/* 0. option 2/3 heroes (6 Nov, iso redraw): mirrors products.css's .p2-hero/.p3-hero family so the three About
   Us options read like the same family as schedule.html / -2 / -3. */
.p2-hero { background: var(--grid-paper), #fff; padding: 32px 0 48px; border-bottom: 1px solid var(--line); }
.p2-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.p2-copy .display { font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: none; }
.p2-copy .hero-sub { margin: 16px auto 0; max-width: 54ch; text-align: center; }
.p2-site { margin: 40px 0 0; grid-template-columns: minmax(0, 1fr); }
.p2-site .sx-area { padding: 16px 18px 8px; }

.p3-hero { padding: 48px 0 64px; color: var(--on-navy); }
@media (max-width: 900px) { .p3-hero { padding: 32px 0 48px; } }
.p3-copy h1 { color: #fff; max-width: 14ch; }
.p3-copy .lead { color: var(--on-navy); margin-top: 16px; max-width: 42ch; }
.p3-wall { margin: 40px 0 0; }
.p3-wall .k-obj.wl, .p3-wall .k-ground.wl { stroke: rgba(255, 255, 255, .85); }
.p3-wall .k-thin.wl { stroke: rgba(255, 255, 255, .5); }
.p3-wall .k-mon { stroke: #fff; }
.p3-wall .sx-tag.on-edge { background: var(--blue); border-color: var(--blue); color: #0a1f5c; }
@media (max-width: 960px) { .p2-copy .display { max-width: none; } }

/* 1. hero (option 1): the title and the Guido legacy photo, no gap under the title ------------------- */

/* 1. hero: the title and the Guido legacy photo, no gap under the title ------------------- */
.hero { background: var(--grid-paper), linear-gradient(180deg, #fff 0, var(--tint) 100%); border-bottom: 1px solid var(--line); padding: clamp(40px, 4.4vw, 64px) 0; }
.hero-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.4vw, 64px); align-items: center; }
.hero .display { font-size: clamp(2.6rem, 5vw, 4.25rem); max-width: 11ch; }
.hero-sub { margin-top: 22px; max-width: 30ch; font: 500 clamp(1.15rem, 1.6vw, 1.4rem)/1.4 var(--sans); letter-spacing: 0; color: var(--ink-soft); }
.hero-photo { margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--navy); }
.hero-photo img { width: 100%; aspect-ratio: 1102 / 793; object-fit: cover; }

/* 2. mission: option 1's two-column layer ----------------------------------------------- */
.mission-g { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); row-gap: clamp(40px, 4.4vw, 64px); align-items: center; }
.mission-a { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); align-items: end; padding-bottom: clamp(32px, 3.6vw, 48px); border-bottom: 1px solid var(--line); }
.mission-h { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--navy); }
.mission-a .lead { max-width: 48ch; }
.crew { margin: 0; }
.crew .vid { aspect-ratio: 940 / 573; box-shadow: var(--shadow); }
.crew .vid video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.crew figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.mission-b { padding-top: 6px; }
.mission-b .kicker { font-family: var(--sans); letter-spacing: 0; }
.mission-b-h { margin: 14px 0 20px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.mission-b p + p { margin-top: 14px; }
.mission-b .strong { font-weight: 600; color: var(--navy); }

/* 3. the Promise: sheet A-301 stays in view while the copy scrolls ---------------------- */
.prom-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.prom-fig { order: 2; position: sticky; top: 92px; }
.steps { order: 1; list-style: none; margin: 0; padding: 0; }
.step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; min-height: 56vh; justify-content: flex-start; padding-top: 0; }
.step:last-child { min-height: 70vh; }
.step .h2 { margin-bottom: 20px; }
.step .h3 { margin-bottom: 10px; }
.step p { max-width: 44ch; }
.js:not(.rm) .step { transition: opacity .35s ease-out; }
.bld-armed .step:not(.cur) { opacity: .55; }

.bld { margin: 0; grid-template-columns: minmax(0, 1fr); }
.bld .sx-area { container-type: inline-size; padding: 12px 14px 6px; }
.bld .sx-drawing { width: auto; height: min(calc(100vh - 200px), 98cqw); max-height: 820px; margin-inline: auto; }
.bld .sx-tb { flex-direction: row; margin: 0 6px 6px; border-left: 0; border-top: 1px solid var(--navy); }
.bld .sx-tb > div { border-bottom: 0; border-right: 1px solid var(--navy); padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; }
.bld .sx-tb > div:last-child { border-right: 0; }
.bld .sx-tb .ttl { flex: 1; font-size: 15px; }
.bld .sx-tb .no { font-size: 26px; }
.v-narrow { display: none; }
/* the 2014 screen: crop the video player's title bar off the top of the screenshot */
.scr-2014 .sx-scr-g img { aspect-ratio: 1200 / 575; object-fit: cover; object-position: 50% 100%; }

/* level states: only armed by about-us.js (html.bld-armed), so no JS and reduced motion show every level built */
.bld-armed .bld .lv { transition: transform .8s var(--ease), opacity .35s ease-out; }
.bld-armed .bld .lv:not(.on) { transform: translateY(-34px); opacity: 0; }
.bld-armed .bld .lv.l0:not(.on) { transform: none; }
.bld-armed .bld .lv .dr { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset calc(var(--dur, 650) * 1ms) cubic-bezier(.45, 0, .2, 1) calc((var(--d, 0) + 250) * 1ms); }
.bld-armed .bld .lv.on .dr { stroke-dashoffset: 0; }
.bld-armed .bld .lv .fd { opacity: 0; transition: opacity .45s ease-out calc((var(--d, 0) + 250) * 1ms); }
.bld-armed .bld .lv.on .fd { opacity: 1; }
/* lvt (tags + screens, not nested under .lv so the fast .lv:not(.on) parent-fade can't reach them): fade IN
   staggered by --d like everything else building up, but fade OUT immediately — otherwise a label from a
   level with a late --d (e.g. the roof flag at l5) sits on screen for up to a second after scrolling back
   past its level, reading as leftover ghost content from the level below. */
.bld-armed .bld .lvt { opacity: 0; transition: opacity .35s ease-out; }
.bld-armed .bld .lvt.on { opacity: 1; transition: opacity .45s ease-out calc((var(--d, 0) + 450) * 1ms); }
.bld .hook { transition: transform 1s cubic-bezier(.45, 0, .2, 1); }
.bld-armed .bld .hook { opacity: 0; }
.bld-armed .bld .lv.l0.on ~ g .hook { opacity: 1; transition: transform 1s cubic-bezier(.45, 0, .2, 1), opacity .4s ease-out .8s; }

/* 4. thank the builders (option 5) ----------------------------------------------------- */
.thanks-h { color: #fff; font-weight: 700; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; max-width: 16ch; }
.thanks-rule { display: block; width: min(320px, 50%); height: 8px; margin: clamp(24px, 3vw, 36px) 0 0; overflow: visible; }
.thanks-rule line { stroke: var(--blue); stroke-width: 6; }
.js:not(.rm) .thanks-rule line { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.45, 0, .2, 1) .3s; }
.js:not(.rm) .thanks-h.in + .thanks-rule line { stroke-dashoffset: 0; }
.thanks-g { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(36px, 4.4vw, 56px); align-items: start; }
.thanks .lead { color: var(--on-navy); max-width: 52ch; }
.note { display: flex; gap: 16px; padding: 24px; color: var(--ink); }
.note h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.note p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.note-i { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--teal-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 5. ready to start ------------------------------------------------------------------- */
.ready { background: var(--tint); }
.ready-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 48px); background: #fff; }
.ready-card .lead { margin-top: 12px; max-width: 52ch; }
.ready-card .btns { flex: none; }

/* ---- tablet and phone --------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-g, .mission-g, .thanks-g { grid-template-columns: minmax(0, 1fr); }
  .hero .display { max-width: 14ch; }
  .mission-a { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  /* the sheet sits at the top of the screen and the copy passes under it */
  .prom-g { display: block; }
  .prom-fig { position: sticky; top: 76px; z-index: 3; padding: 8px 0 10px; background: var(--tint); }
  .bld .sx-drawing { height: min(calc(58vh - 100px), 125cqw); }
  .step, .step:first-child { min-height: 46vh; justify-content: flex-start; padding: 28px 0 0; }
  .step:first-child { border-top: 0; }
  .step:last-child { min-height: 52vh; }
  .ready-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 639px) {
  .v-wide { display: none; }
  .v-narrow { display: block; }
  .bld .v-narrow .sx-drawing { width: 100%; height: auto; }  /* fit the column; aspect-ratio sets the height */
  .bld .sx-area { padding: 8px 8px 4px; }
  .bld .sx-tb > div { padding: 6px 10px; }
  .bld .sx-tb .firm, .bld .sx-tb .ttl { font-size: 14px; }
  .bld .sx-tb .no { font-size: 20px; }
  .bld .sx-tb > div:first-child { display: none; }
  .bld .sx-tag { font-size: 12px; padding: 3px 6px; }
  .bld .sx-scr-lab { font-size: 12px; padding: 3px 6px; }
  .note { padding: 20px; }
}

/* grid bubbles on sheet A-301 are HTML, so the letters keep the 12px floor at every width */
.bld .sx-tag.bub { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1.2px solid var(--teal-deep); border-radius: 50%; color: var(--teal-deep); font: 700 12.5px/1 var(--sans); }

/* 3b. a detail drawing under each step of the Promise, so the copy column carries its own picture (6 Nov) */
.det { margin-top: 28px; max-width: 460px; padding: 14px 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.det-k { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 600 12.5px/1.2 var(--sans); color: var(--muted); }
.det-k b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.2px solid var(--blue-deep); color: var(--blue-deep); font-size: 12px; }
.det .sx-drawing { width: 100%; }
.det .sx-tag.det-t { background: none; border: 0; box-shadow: none; padding: 0; font: 600 12.5px/1.2 var(--sans); color: var(--ink-soft); white-space: nowrap; transform: translate(-50%, -50%); }
.det .sx-tag.det-t.det-on { color: var(--navy); }
.det .sx-tag.det-on { font-weight: 700; color: var(--navy); }
.det .sx-tag.det-t.at-left0 { transform: translate(0, -50%); }
.det .sx-tag.det-t.at-right0 { transform: translate(-100%, -50%); }
.det-logos { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.det-logos img { height: 30px; width: auto; filter: grayscale(1); opacity: .75; }
.bld-armed .step:not(.cur) .det { opacity: .8; }
@media (max-width: 960px) { .det { max-width: none; } }

/* 7 Nov, scheme 1 pass ------------------------------------------------------------------- */
/* A-301 labels are tall boxes: the name, and a one-line description under it (build_about-us.py TALL) */
.bld .sx-tag.tall { display: grid; gap: 2px; padding: 6px 9px 7px; border-radius: 7px; text-align: left; white-space: normal; width: max-content; max-width: 158px; }
.bld .sx-tag.tall b { font: 700 12.5px/1.2 var(--display, var(--sans)); color: var(--navy); }
.bld .sx-tag.tall small { font: 500 11px/1.3 var(--sans); color: var(--ink-soft); }
/* on a phone the sheet is small: the name only, the description is in the Promise step beside it */
@media (max-width: 640px) {
  .bld .sx-tag.tall { padding: 3px 7px; max-width: 120px; }
  .bld .sx-tag.tall b { font-size: 11.5px; }
  .bld .sx-tag.tall small { display: none; }
}

/* Detail 4: three clocks facing the reader; the hands sweep on to a later hour, clock by clock */
.ck-fig { margin: 4px 0 0; }
.ck-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ck-rim { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.ck-face { fill: #f4f8fd; stroke: var(--line, #d5deea); stroke-width: 1; }
.ck-svg line { stroke: var(--navy); stroke-linecap: round; }
.ck-svg line[class^="ck-t"] { stroke-width: 1.2; stroke: #7d8aa3; }
.ck-svg line.ck-tm { stroke-width: 2.4; stroke: var(--navy); }
.ck-hr { stroke-width: 4; }
.ck-mn { stroke-width: 2.6; stroke: var(--teal-deep, #0a6f8f) !important; }
.ck-pin { fill: var(--amber-bright, #E6A700); stroke: var(--navy); stroke-width: 1.2; }
.ck-h { transform-box: view-box; transform-origin: var(--o); transform: rotate(var(--a)); }
.js:not(.rm) .det:not(.play) .ck-h { transform: rotate(0deg); }
.js:not(.rm) .det.play .ck-h { transition: transform 1.4s cubic-bezier(.65, 0, .35, 1) calc(200ms + var(--i, 0) * 260ms); }
.ck-cap { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; text-align: center; font: 600 12.5px/1.25 var(--sans); color: var(--navy); }
/* 7 Nov: sheet A-301 builds San Francesco di Paola (art/iso_about-us.py). Construction stages in the drawing
   kit's pale line style; the finished exterior (l6) in the church's own red brick, stone trim, stained glass,
   slate roof and white spire. */
.bld .sx-iso .cmu.ft { fill: #f4f1ec; } .bld .sx-iso .cmu.fl { fill: #e8e3da; } .bld .sx-iso .cmu.fr { fill: #dcd5ca; }
.bld .sx-iso .opening { fill: #9fb0c8; stroke: #102d7b; stroke-width: .5; }
.bld .sx-iso .truss { fill: none; stroke: #102d7b; stroke-width: .8; }
.bld .sx-iso .deck.ft, .bld .sx-iso .deck.fr { fill: #e9dcc4; stroke: #102d7b; stroke-width: .6; }
.bld .sx-iso .scf { stroke: #6b7a99; stroke-width: .9; }
.bld .sx-iso .plank.ft { fill: #e7c98a; } .bld .sx-iso .plank.fl, .bld .sx-iso .plank.fr { fill: #c9a25a; }
.bld .sx-iso .brk.ft { fill: #b65a43; } .bld .sx-iso .brk.fl { fill: #a24a35; } .bld .sx-iso .brk.fr { fill: #8c3d2b; }
.bld .sx-iso .brk { stroke: #4e1d12; stroke-width: .6; }
.bld .sx-iso .stn, .bld .sx-iso .stn.ft, .bld .sx-iso .stn.fl, .bld .sx-iso .stn.fr { fill: #efe8da; stroke: #6d5a49; stroke-width: .5; }
.bld .sx-iso .stn.fr { fill: #ddd3c1; }
.bld .sx-iso .trim { fill: #c87a62; stroke: #4e1d12; stroke-width: .5; }
.bld .sx-iso .sg { fill: #3e6cae; stroke: #efe8da; stroke-width: .7; }
.bld .sx-iso .door { fill: #4a4a44; stroke: #2b2b26; stroke-width: .5; }
.bld .sx-iso .louv { fill: #e6e1d7; stroke: #4e1d12; stroke-width: .5; }
.bld .sx-iso .saint { fill: #f6f2ea; stroke: #6d5a49; stroke-width: .4; }
.bld .sx-iso .cb { fill: none; stroke: #4e1d12; stroke-width: .55; }
.bld .sx-iso .slate.ft { fill: #7c8794; } .bld .sx-iso .slate.fr { fill: #66717e; } .bld .sx-iso .slate { stroke: #3c4450; stroke-width: .6; }
.bld .sx-iso .spire.fl { fill: #ffffff; } .bld .sx-iso .spire.fr { fill: #e3e8ee; } .bld .sx-iso .spire { stroke: #7a8696; stroke-width: .6; }
.bld .sx-iso .gold { fill: none; stroke: #d9a400; stroke-width: 2; stroke-linecap: round; }
/* the finish goes on from the ground up once the last step is read; the crane and scaffold leave the site */
.bld-armed .bld .lv.l6:not(.on) { transform: none; }
.bld-armed .bld .lv.l6 .fin { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s cubic-bezier(.65, 0, .35, 1); }
.bld-armed .bld .lv.l6.on .fin { clip-path: inset(0 0 0 0); }
.bld-armed .bld .crn, .bld-armed .bld .scaf { transition: opacity .7s ease-out .9s; }
.bld-armed .bld[data-level="6"] .crn, .bld-armed .bld[data-level="6"] .scaf { opacity: 0; }
.bld .sx-tag.fin-tag { border-color: #a24a35; }

/* links inside running text carry an underline, not colour alone (QA, 9 Nov) */
.lead > a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* a detail tag in mid-fade could sit past the right edge on a tablet and widen the page (QA, 9 Nov); clip keeps sticky working */
.det { overflow-x: clip; }
