/* site.css: ImageEvent home and Features pages. One file, no other dependencies.
   Part 1: shared base, type, tiles, steps, accordions, lightbox, and the Features layout.
   Part 2: home page (site chrome look-alikes, rotating member-photo hero, tiles, packages band).
   Resets are scoped to .ie-pg, so the shared IE header and footer are not restyled.
   Built from prototype/css/proto.css + homepage-prototype/css/home.css. */

/* ===================================================================== PART 1: shared + Features */
:root {
  --ink: #1d2939;
  --ink-2: #475467;
  --ink-3: #667085;
  --line: #e6e9ef;
  --soft: #f5f7fa;
  --soft-2: #eef2f7;
  --accent: #336699;        /* ImageEvent blue */
  --accent-ink: #24527f;
  --accent-tint: #edf3f9;
  --focus: #1f6fbf;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-w: 216px;
  --content: 1040px;
  --gutter: clamp(20px, 4vw, 56px);
  --sec: clamp(72px, 9vw, 120px);
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.85rem, 1.3rem + 1.7vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 3.2vw, 4.25rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-photo: 0 1px 2px rgba(16, 24, 40, 0.05), 0 18px 40px -22px rgba(16, 24, 40, 0.35);
}

/* Resets are scoped to .ie-pg (the home <body>, and the .fx wrapper on Features pages) so the shared
   IE header and footer keep their own look. :where() keeps them at element-level specificity. */
:where(.ie-pg), :where(.ie-pg) *, :where(.ie-pg) *::before, :where(.ie-pg) *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.ie-pg {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(.ie-pg) :where(h1, h2, h3, p, ul, ol, figure, dl, dd) { margin: 0; }
:where(.ie-pg) :where(ul, ol) { padding: 0; list-style: none; }
:where(.ie-pg) :where(img, video) { display: block; max-width: 100%; height: auto; }
:where(.ie-pg) a { color: var(--accent); text-decoration: none; }
:where(.ie-pg) a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
:where(.ie-pg) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.ie-pg) strong { font-weight: 600; }
:where(.ie-pg) code { font-family: var(--mono); font-size: 0.88em; background: var(--soft); border-radius: 5px; padding: 1px 5px; }
:where(.ie-pg) :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
:where(.ie-pg) [tabindex="-1"]:focus { outline: none; }

/* Old engines without :where() (Safari < 14, Chrome < 88, Samsung < 15) drop the reset above. Same rules at element level.
   Skipped by every browser that supports :where(). */
@supports not selector(:where(a)) {
  .ie-pg, .ie-pg *, .ie-pg *::before, .ie-pg *::after { box-sizing: border-box; }
  h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, video { display: block; max-width: 100%; height: auto; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { color: var(--accent-ink); text-decoration: underline; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  strong { font-weight: 600; }
  code { font-family: var(--mono); font-size: 0.88em; background: var(--soft); border-radius: 5px; padding: 1px 5px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }

/* ---------- frame: quiet docs nav + content ---------- */
.fx { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); align-items: start; }

.fx-nav {
  position: -webkit-sticky; position: sticky; top: 0;
  max-height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 40px 12px 40px 28px;
  font-size: 0.875rem; line-height: 1.35;
  scrollbar-width: thin; scrollbar-color: #d5dae2 transparent;
}
.fx-nav .fx-nav-title { display: block; padding: 0; background: none; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 14px 10px; }
.fx-nav ul { display: grid; gap: 1px; }
.fx-nav a {
  position: relative; display: block;
  padding: 7px 10px; border-radius: 8px;
  color: var(--ink-2);
  transition: color 0.15s, background-color 0.15s;
}
.fx-nav a:hover { color: var(--ink); background: var(--soft); text-decoration: none; }
.fx-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* subtopics: only under the current topic, always open, never animate */
.fx-nav-on { margin: 22px 0 8px 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.fx-sub { margin: 0 0 8px 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.fx-sub a { padding: 5px 10px; color: var(--ink-3); font-size: 0.8125rem; }
.fx-sub a.is-here { color: var(--accent); }
.fx-sub a.is-here::before { content: ""; position: absolute; left: -11px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent); }
.fx-nav-toggle { display: none; }

.fx-main { min-width: 0; padding: 0 var(--gutter) 96px; }
.wrap { max-width: var(--content); margin: 0 auto; }

/* ---------- type ---------- */
.eyebrow { font-size: 0.9375rem; font-weight: 600; color: var(--accent); letter-spacing: 0; margin-bottom: 14px; }
.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.022em; font-weight: 700; text-wrap: balance; }
.nw { white-space: nowrap; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 28px; }
.center .actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem;
  transition: background-color 0.2s;
}
.btn:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }
.more { font-weight: 500; white-space: nowrap; }
.more::after { content: " \203A"; font-size: 1.15em; }

/* ---------- sections ---------- */
.sec { padding-top: var(--sec); scroll-margin-top: 24px; }
.sec-head { margin-bottom: 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head .lead { margin-top: 16px; }

/* hero */
.hero { padding-top: 48px; padding-top: clamp(48px, 7vw, 96px); }
.hero .lead { margin-top: 22px; }

.photo { border-radius: var(--r-lg); overflow: hidden; background: var(--soft-2); box-shadow: var(--shadow-photo); }
.photo img, .photo video { width: 100%; height: 100%; object-fit: cover; }
.photo-cap { margin-top: 14px; font-size: var(--fs-sm); color: var(--ink-3); }
.center .photo-cap { text-align: center; }

.hero-photo { margin-top: 40px; margin-top: clamp(40px, 5vw, 64px); aspect-ratio: 2.2 / 1; }

/* hub mosaic */
.mosaic {
  margin-top: 40px; margin-top: clamp(40px, 5vw, 64px);
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1.55fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 360px; height: clamp(360px, 40vw, 560px);
}
.mosaic .photo { box-shadow: none; border-radius: var(--r); position: relative; }
.mosaic .m-a { grid-row: 1 / 3; }
.mosaic .m-b { grid-column: 2; grid-row: 1 / 3; }
.mosaic .m-c { grid-column: 3; grid-row: 1; }
.mosaic .m-d { grid-column: 3; grid-row: 2; }
.tag {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 0.8125rem; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tag svg { width: 14px; height: 14px; }

/* feature band: big photo + short text */
.band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; gap: clamp(28px, 5vw, 72px); align-items: center; }
.band--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.band--flip .band-text { order: 2; }
.band .lead { margin-top: 16px; }
.band .photo { aspect-ratio: 3 / 2; }

/* benefit tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--soft); border-radius: var(--r-lg); overflow: hidden;
  color: var(--ink);
}
a.tile:hover { text-decoration: none; color: var(--ink); }
a.tile:hover .tile-img img { transform: scale(1.025); }
.tile-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft-2); }
.tile-img img, .tile-img video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.tile-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile .h3 { font-size: 1.25rem; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); letter-spacing: -0.015em; }
.tile-body p { color: var(--ink-2); }
.tile-body .more { margin-top: auto; padding-top: 10px; color: var(--accent); }
.tile--type { justify-content: flex-end; min-height: 300px; }
.tile-stat { font-size: 3.5rem; font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--accent); padding: 34px 28px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 34px 28px 0; }
.chip { padding: 6px 13px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 0.875rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.chip--on { background: var(--accent); color: #fff; box-shadow: none; }

.tiles--hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--hub .tile--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tiles--hub .tile--wide .tile-img { aspect-ratio: auto; min-height: 340px; }
.tiles--hub .tile--wide .tile-body { justify-content: center; padding: 36px 40px; }
.tiles--hub .tile--type { min-height: 0; }

/* video tile with play button */
.vid { position: relative; }
.vid-play {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: grid; place-items: center;
  background: linear-gradient(to top, rgba(16, 24, 40, 0.25), rgba(16, 24, 40, 0));
}
.vid-play span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font-weight: 600; font-size: 0.9375rem;
  box-shadow: 0 6px 20px -8px rgba(16, 24, 40, 0.4);
  transition: transform 0.2s var(--ease);
}
.vid-play:hover span { transform: scale(1.04); }
.vid-play svg { width: 18px; height: 18px; color: var(--accent); }
.vid.is-playing .vid-play { display: none; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.step { padding-top: 22px; border-top: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); display: block; font-size: 0.9375rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 0.9875rem; }

/* topic list (hub) */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.topics a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); color: var(--ink); }
.topics a:hover { text-decoration: none; }
.topics a:hover .t-name { color: var(--accent); }
.topics .t-name { font-weight: 650; font-size: 1.0625rem; transition: color 0.15s; }
.topics .t-desc { grid-column: 1; color: var(--ink-3); font-size: 0.9375rem; }
.topics .t-go { grid-row: 1 / 3; grid-column: 2; color: var(--ink-3); transition: transform 0.2s var(--ease), color 0.2s; }
.topics a:hover .t-go { transform: translateX(3px); color: var(--accent); }
.t-go svg { width: 18px; height: 18px; }

/* size explorer: the photo shows at its true CSS pixel size, capped only by the space available.
   The panel breaks out of the content column to nearly the full window width (centred on the window), so a
   1440px screen shows XX-Large at a real 1280px. The buttons and caption stay centred under the heading
   (the column centre is half the nav width right of the window centre); proto.js sizes and places the photo. */
.sizer {
  --sizer-pad: clamp(16px, 2.5vw, 48px);
  --bleed: calc(100vw - 2 * var(--sizer-pad));
  position: relative; z-index: 2;
  width: var(--bleed); max-width: none;
  margin-left: calc(50% - var(--bleed) / 2 - var(--nav-w) / 2);
  background: var(--soft); border-radius: var(--r-lg); padding: 20px; padding: clamp(20px, 3vw, 36px);
}
.sizer > .seg { position: relative; left: calc(var(--nav-w) / 2); }
.sizer > .sizer-read { padding-left: var(--nav-w); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; background: #fff; border-radius: 999px; padding: 4px; width: -moz-fit-content; width: fit-content; margin: 0 auto; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { padding: 8px 15px; border-radius: 999px; font-size: 0.9375rem; color: var(--ink-2); font-weight: 500; transition: background-color 0.2s, color 0.2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.sizer-stage { position: relative; margin-top: 26px; }
.sizer-photo { width: min(800px, 100%); margin: 0 auto; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-photo); background: #e4e7ec; }
.sizer-photo img { width: 100%; height: 100%; object-fit: cover; }
/* with JS: a fixed-height stage sized to the current choice; the photo is placed in pixels */
.sizer.is-live .sizer-stage { height: var(--stage-h, 0px); transition: height 0.6s var(--ease); }
.sizer.is-live .sizer-photo { position: absolute; top: 0; left: 0; margin: 0; width: var(--pw); height: var(--ph); transform: translateX(var(--px)); transition: width 0.6s var(--ease), height 0.6s var(--ease), transform 0.6s var(--ease), border-radius 0.6s var(--ease); }
.sizer[data-size="original"] .sizer-photo { border-radius: 12px; }
.sizer.is-instant .sizer-stage, .sizer.is-instant .sizer-photo { transition: none; }
@media (prefers-reduced-motion: reduce) { .sizer.is-live .sizer-stage, .sizer.is-live .sizer-photo { transition: none; } }
/* while the panel passes under the sticky nav, proto.js adds .is-tucked: fade out, then hide from clicks and Tab */
.fx-nav { transition: opacity 0.28s var(--ease), visibility 0s linear 0s; }
.fx-nav.is-tucked { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.28s var(--ease), visibility 0s linear 0.28s; }
@media (prefers-reduced-motion: reduce) { .fx-nav, .fx-nav.is-tucked { transition: none; } }
@media (max-width: 900px) {
  .sizer { margin-left: calc(50% - var(--bleed) / 2); }
  .sizer > .seg { left: 0; }
  .sizer > .sizer-read { padding-left: 0; }
}
@media (max-width: 640px) { .sizer { --sizer-pad: 12px; padding: 18px 12px; } }
.sizer-read { margin-top: 22px; text-align: center; min-height: 3.2em; }
.sizer-read strong { font-size: 1.0625rem; }
.sizer-read .muted { display: block; font-size: 0.9375rem; }

/* owner / guest */
.views { margin-top: 8px; }
.views-fig { display: none; }
.views-fig.is-on { display: block; }
.no-js .views-fig { display: block; margin-bottom: 18px; }

/* ---------- All the options ---------- */
.opts-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.opts-toggle { color: var(--accent); font-weight: 500; font-size: 0.9375rem; padding: 6px 2px; }
.opts-toggle:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.opts { border-bottom: 1px solid var(--line); }
.opt { border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.opt > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; align-items: center;
  padding: 22px 4px;
}
.opt > summary::-webkit-details-marker { display: none; }
.opt-title { font-size: 1.0625rem; font-weight: 650; }
.opt-sum { grid-column: 1; color: var(--ink-3); font-size: 0.9375rem; }
.opt-icon { grid-row: 1 / 3; grid-column: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--soft); transition: transform 0.3s var(--ease), background-color 0.2s; }
.opt-icon svg { width: 16px; height: 16px; }
.opt > summary:hover .opt-title { color: var(--accent); }
.opt[open] > summary .opt-icon { transform: rotate(45deg); background: var(--accent-tint); color: var(--accent); }
.opt-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 20px 40px; padding: 2px 4px 34px; }
.opt-body--wide { grid-template-columns: minmax(0, 1fr); }
.opt-text { display: grid; gap: 14px; align-content: start; color: var(--ink-2); font-size: 0.9875rem; }
.opt-text strong { color: var(--ink); }
.opt-text h4 { margin: 6px 0 0; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; }
.howto { counter-reset: h; display: grid; gap: 8px; }
.howto li { counter-increment: h; position: relative; padding-left: 32px; }
.howto li::before { content: counter(h); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; }
.facts { display: grid; gap: 6px; }
.facts li { padding-left: 16px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: #b8c2d0; }
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 0 18px; font-size: 0.9375rem; }
.kv > * { padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink); font-weight: 600; }
.kv dd { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.kv dd.r { text-align: right; color: var(--ink-3); }
.opt-shots { display: grid; gap: 18px; align-content: start; }
.opt-shots--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* small screenshots (always inside details) */
.shot a { display: block; position: relative; border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 6px 18px -12px rgba(16, 24, 40, 0.3); background: #fff; }
.shot img { width: 100%; height: auto; transition: opacity 0.2s; }
.shot a:hover img { opacity: 0.92; }
.shot a::after {
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23336699' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 2px 6px rgba(16,24,40,0.2); opacity: 0; transition: opacity 0.2s;
}
.shot a:hover::after, .shot a:focus-visible::after { opacity: 1; }
.shot figcaption { margin-top: 8px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-3); }
.shot figcaption b { color: var(--ink-2); font-weight: 600; }
.view-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); background: var(--soft); border-radius: 999px; padding: 2px 9px; margin-right: 6px; }

/* how-to quick list (hub) */
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; padding: 4px 4px 30px; }
.tasks a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.9875rem; }
.tasks a:hover { color: var(--accent); text-decoration: none; }

/* next topic */
.next { margin-top: var(--sec); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 0.9375rem; }
.next a { display: grid; gap: 2px; }
.next span { color: var(--ink-3); font-size: 0.8125rem; }
.next b { font-weight: 600; font-size: 1.0625rem; }
.next .n-next { text-align: right; margin-left: auto; }

/* ---------- reveal (motion only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .rv.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- lightbox (light) ---------- */
.lb[hidden] { display: none; }
.lb { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 1000; }
.lb-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: rgba(246, 248, 251, 0.985); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb-panel { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 84px 28px; }
.lb-figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; min-height: 0; }
.lb-img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(16, 24, 40, 0.45); }
.lb-cap { margin-top: 16px; max-width: 70ch; text-align: center; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.lb-count { position: absolute; top: 22px; left: 26px; color: var(--ink-3); font-size: 0.875rem; }
.lb-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 4px 12px -6px rgba(16,24,40,0.3); }
.lb-btn:hover { color: var(--accent); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 14px; right: 18px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
html.lb-open, html.lb-open body { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .lb:not([hidden]) .lb-backdrop { animation: lbfade 0.25s ease both; }
  .lb:not([hidden]) .lb-figure { animation: lbin 0.35s var(--ease) both; }
  @keyframes lbfade { from { opacity: 0; } }
  @keyframes lbin { from { opacity: 0; transform: scale(0.98); } }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  :root { --nav-w: 196px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 900px) {
  .tiles--hub { grid-template-columns: 1fr 1fr; }
  .tiles--hub .tile--type:last-child { grid-column: 1 / -1; }
  .fx { grid-template-columns: 1fr; }
  .fx-nav { position: static; max-height: none; overflow: visible; padding: 12px var(--gutter) 0; border-bottom: 1px solid var(--line); }
  .fx-nav .fx-nav-title { display: none; }
  .fx-nav-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 0 12px; font-size: 0.9375rem; color: var(--ink);
  }
  .fx-nav-toggle .lbl { color: var(--ink-3); }
  .fx-nav-toggle b { font-weight: 600; }
  .fx-nav-toggle svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.25s var(--ease); }
  .fx-nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .js .fx-nav-list[hidden] { display: none; }
  .fx-nav-list { padding-bottom: 14px; }
  .band, .band--flip { grid-template-columns: 1fr; }
  .band--flip .band-text { order: 0; }
  .opt-body { grid-template-columns: 1fr; }
  .opt-body .opt-shots { max-width: 460px; }
}
@media (max-width: 640px) {
  :root { --fs-base: 1rem; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; gap: 10px; }
  .mosaic .m-b { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 4 / 3; }
  .mosaic .m-a { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 5; }
  .mosaic .m-c { grid-column: 2; grid-row: 2; aspect-ratio: 4 / 5; }
  .mosaic .m-d { display: none; }
  .hero-photo { aspect-ratio: 4 / 3; border-radius: var(--r); }
  .tiles, .tiles--hub, .topics, .tasks { grid-template-columns: 1fr; }
  .tiles--hub .tile--wide { grid-template-columns: 1fr; }
  .tiles--hub .tile--wide .tile-img { aspect-ratio: 16 / 10; min-height: 0; }
  .tiles--hub .tile--wide .tile-body { padding: 22px 22px 26px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 18px 0; }
  .step::before { grid-row: 1 / 3; margin: 0; }
  .tile-body { padding: 22px 22px 26px; }
  .tile--type { min-height: 0; }
  .seg { border-radius: 18px; }
  .seg button { padding: 7px 11px; font-size: 0.875rem; }
  .opt-shots--row { grid-template-columns: 1fr; }
  .lb-panel { padding: 60px 12px 92px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .next .n-next { text-align: left; margin-left: 0; }
}

/* =====================================================================
   Topic-page additions (hero variants and signature moments)
   ===================================================================== */

/* split hero: text beside a tall photo */
.hero--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 32px; gap: clamp(32px, 5vw, 72px); align-items: center; text-align: left; }
.hero--split .lead { margin-left: 0; }
.hero--split .photo { aspect-ratio: 4 / 5; }
.hero--split .photo-cap { text-align: left; }

/* video hero (16:9, poster first) */
.hero-photo--video { aspect-ratio: 16 / 9; position: relative; }
.hero-photo--video video { width: 100%; height: 100%; object-fit: cover; background: #0e1726; }
.vid-play--big span { padding: 14px 24px 14px 18px; font-size: 1.0625rem; }
.vid-play--big svg { width: 22px; height: 22px; }

/* generic switch panels */
.pick-panel[hidden] { display: none; }
.no-js .pick-panel[hidden] { display: block; }

/* privacy levels */
.levels { background: var(--soft); border-radius: var(--r-lg); padding: 22px; padding: clamp(22px, 3vw, 40px); }
.level-panel { max-width: 680px; margin: 30px auto 0; text-align: center; }
.level-panel .h3 { font-size: 1.5rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; }
.level-panel .plain { margin-top: 10px; font-size: var(--fs-lead); color: var(--ink-2); }
.level-panel .live { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-3); }
.reach { margin: 30px auto 0; max-width: 560px; }
.reach-track { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #cfe0f0, var(--accent)); }
.reach-dot { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--accent), 0 4px 10px rgba(16,24,40,0.2); transition: left 0.5s var(--ease); }
.reach-ends { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.8125rem; color: var(--ink-3); }
.level-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }

/* video sizes follow the upload */
.ladder-wrap { background: var(--soft); border-radius: var(--r-lg); padding: 22px; padding: clamp(22px, 3vw, 40px); }
.ladder { position: relative; max-width: 760px; margin: 28px auto 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0e1726; }
.ladder img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 0.5s var(--ease); }
.ladder-r { position: absolute; left: 0; bottom: 0; border: 2px dashed rgba(255,255,255,0.35); border-left: 0; border-bottom: 0; transition: border-color 0.4s, background-color 0.4s; }
.ladder-r span { position: absolute; top: 6px; right: 8px; font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.55); letter-spacing: 0.02em; white-space: nowrap; transition: color 0.4s; }
.ladder-r.r8k { width: 100%; height: 100%; border: 0; }
.ladder-r.r4k { width: 50%; height: 50%; }
.ladder-r.r1080 { width: 25%; height: 25%; }
.ladder-r.r720 { width: 16.667%; height: 16.667%; }
.ladder-r.r720 span { right: auto; left: 6px; }
.ladder-r.is-on { border-style: solid; border-color: #fff; background: rgba(255,255,255,0.08); }
.ladder-r.is-on span { color: #fff; }
.ladder[data-level="8k"] img { opacity: 1; }
.ladder-read { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 2.4em; }
.ladder-note { margin-top: 10px; text-align: center; font-size: 0.9375rem; color: var(--ink-3); }

/* folder tree (organize) */
.tree-wrap { background: var(--soft); border-radius: var(--r-lg); padding: 22px; padding: clamp(22px, 3vw, 40px); }
.tree { max-width: 640px; margin: 0 auto; font-size: 0.9875rem; }
.tree ul { margin-left: 12px; padding-left: 14px; border-left: 1px solid #d7dde6; }
.tree li { margin: 2px 0; }
.tree summary { list-style: none; cursor: pointer; border-radius: 8px; }
.tree summary::-webkit-details-marker { display: none; }
.tree .node { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink); }
.tree summary:hover .node { background: #fff; }
.tree .node svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.tree .node .k { margin-left: auto; font-size: 0.75rem; color: var(--ink-3); }
.tree .node--album svg { color: var(--ink-3); }
.tree .node--album img { width: 34px; height: 26px; object-fit: cover; border-radius: 4px; flex: none; }
.tree details > summary .chev { width: 14px; height: 14px; color: var(--ink-3); transition: transform 0.25s var(--ease); }
.tree details[open] > summary .chev { transform: rotate(90deg); }
.tree .home { font-weight: 650; }

/* delivery set (client) */
.set { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.set-item { position: relative; border-radius: var(--r); overflow: hidden; background: var(--soft-2); }
.set-item figcaption { padding: 12px 14px 14px; font-size: 0.875rem; color: var(--ink-2); background: var(--soft); }
.set-item figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.set-media { aspect-ratio: 3 / 2; position: relative; overflow: hidden; }
.set-media img, .set-media video { width: 100%; height: 100%; object-fit: cover; }
.set-a { grid-column: span 4; } .set-a .set-media { aspect-ratio: auto; height: 100%; min-height: 0; }
.set-a { display: flex; flex-direction: column; } .set-a .set-media { flex: 1; }
.set-b { grid-column: span 2; }
.set-c, .set-d { grid-column: span 2; }
.set-e { grid-column: span 2; }
.set-doc { background: #e9edf3; display: grid; place-items: center; padding: 14px; }
.set-doc img { width: auto; height: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 18px -8px rgba(16,24,40,0.35); }
.set-kind { position: absolute; top: 10px; left: 10px; font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--ink); }
.set .vid-play span { padding: 8px 14px 8px 11px; font-size: 0.875rem; }
.set-cap { margin-top: 14px; text-align: center; font-size: var(--fs-sm); color: var(--ink-3); }

/* email chooser */
.chooser { background: var(--soft); border-radius: var(--r-lg); padding: 22px; padding: clamp(22px, 3vw, 40px); }
.choice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 30px; }
.choice .h3 { font-size: 1.4rem; font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem); letter-spacing: -0.02em; }
.choice p { color: var(--ink-2); margin-top: 10px; }
.choice .facts { margin-top: 16px; color: var(--ink-2); font-size: 0.9875rem; }
.msg { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(16,24,40,0.35); overflow: hidden; }
.msg-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-size: 0.875rem; color: var(--ink-3); }
.msg-head b { color: var(--ink); font-weight: 600; }
.msg-body { padding: 18px 20px 20px; }
.msg-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.msg-thumbs.two { grid-template-columns: repeat(2, 1fr); }
.msg-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.msg-line { margin-top: 12px; font-size: 0.875rem; color: var(--ink-3); }
.msg-link { display: inline-block; margin-top: 14px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.875rem; }

/* code block (embed) */
.code-notes { max-width: 860px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.code-notes div { font-size: 0.9375rem; color: var(--ink-2); }
.code-notes b { display: block; color: var(--ink); margin-bottom: 4px; }
/* Embed: three easy steps (an illustration only; the page shows no working embed code) */
.easy3 { max-width: 1000px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: e; }
.easy3 li { list-style: none; background: var(--soft); border-radius: var(--r-lg); padding: 24px 22px 22px; counter-increment: e; display: flex; flex-direction: column; }
.easy3 li::before { content: counter(e); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.875rem; }
.easy3 .h3 { margin: 14px 0 6px; font-size: 1.1875rem; }
.easy3 p { color: var(--ink-2); font-size: 0.9375rem; }
.easy3-art { margin-top: auto; padding: 16px; min-height: 150px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -18px rgba(16, 24, 40, 0.35); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.easy3 p + .easy3-art { margin-top: 18px; }
.easy3-art--copy { align-items: center; text-align: center; }
.code-chip { display: inline-block; max-width: 100%; padding: 8px 14px; border-radius: 12px; background: var(--accent-tint); color: #24324a; font-family: var(--mono); font-size: 0.78rem; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; user-select: none; -webkit-user-select: none; }
.code-chip i { font-style: italic; color: var(--accent); }
.easy3-note { font-size: 0.75rem; color: var(--ink-3); }
.wire { display: block; height: 9px; border-radius: 5px; background: var(--soft-2); }
.wire.s { width: 62%; }
.wire.t { width: 42%; height: 13px; background: #dde3ec; }
.paste-here { display: block; padding: 4px; border-radius: 14px; box-shadow: 0 0 0 2px var(--accent); }
.paste-here .code-chip { display: block; font-size: 0.7rem; padding: 6px 10px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-grid img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 6px; }

/* theme preview (themes & settings hero) */
.themer { margin-top: 40px; margin-top: clamp(40px, 5vw, 60px); }
.themer-frame {
  --t-bg: #252830; --t-title: #ffd700; --t-text: #f2f2f2; --t-link: #9db4cf;
  background: var(--t-bg); border-radius: var(--r-lg); overflow: hidden; padding: 18px 18px 22px; padding: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 40px) clamp(22px, 3vw, 40px);
  box-shadow: var(--shadow-photo); transition: background-color 0.6s var(--ease);
}
.themer-nav { font-size: 0.8125rem; color: var(--t-link); opacity: 0.9; transition: color 0.6s; }
.themer-title { margin-top: 10px; font-size: 1.5rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; color: var(--t-title); transition: color 0.6s; font-family: Georgia, "Times New Roman", serif; }
.themer-msg { margin-top: 4px; color: var(--t-text); opacity: 0.85; font-size: 0.9375rem; transition: color 0.6s; }
.themer-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.themer-grid figure { text-align: center; }
.themer-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.themer-grid figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--t-text); opacity: 0.85; transition: color 0.6s; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9375rem; color: var(--ink-2); transition: box-shadow 0.2s, color 0.2s; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); background: linear-gradient(135deg, var(--a) 0 55%, var(--b) 55% 100%); }
.swatch:hover { color: var(--ink); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .hero--split { grid-template-columns: 1fr; text-align: center; }
  .hero--split .lead { margin-left: auto; }
  .hero--split .photo { aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; }
  .hero--split .photo-cap { text-align: center; }
  .hero--split .actions { justify-content: center; }
  .choice { grid-template-columns: 1fr; }
  .set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-a { grid-column: 1 / -1; } .set-a .set-media { aspect-ratio: 3 / 2; flex: none; }
  .set-b, .set-c, .set-d, .set-e { grid-column: span 1; }
  .themer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .code-notes { grid-template-columns: 1fr; }
  .easy3 { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 640px) {
  .hero-photo--video { aspect-ratio: 16 / 9; }
  .ladder-r span { font-size: 0.625rem; top: 3px; right: 4px; }
  .ladder-r.r720 span { left: 3px; }
  .set { grid-template-columns: 1fr; }
  .set-b, .set-c, .set-d, .set-e { grid-column: 1 / -1; }
  .set-doc { aspect-ratio: 4 / 3; }
  .tree { font-size: 0.9375rem; }
  .tree ul { margin-left: 6px; padding-left: 10px; }
  .tree .node .k { display: none; }
}

/* topic pages: small helpers */
.vid--fill { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; }
.vid--fill video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ladder-read .chip { font-size: 0.8125rem; }
/* delivery: the PDF tile fills the row next to the big photo */
.set-b { display: flex; flex-direction: column; }
.set-b .set-media { flex: 1; aspect-ratio: auto; min-height: 240px; }
@media (max-width: 900px) { .set-b .set-media { aspect-ratio: 3 / 2; min-height: 0; flex: none; } }
/* tree: leaves line up with folder icons (chevron column) */
.tree li > .node { padding-left: 34px; }
/* a wide album strip beside a regular screenshot, at the same height: each figure sets --ar (width / height) */
.opt-shots--pair { display: flex; align-items: flex-start; gap: 18px; }
.opt-shots--pair > .shot { flex: var(--ar, 1) 1 0; min-width: 0; }
@media (max-width: 900px) { .opt-body .opt-shots--pair { max-width: none; } }
@media (max-width: 640px) {
  .opt-shots--pair { flex-direction: column; }
  .opt-shots--pair > .shot { flex: none; width: 100%; }
}


/* ===================================================================== PART 2: home page */
:root { --home-content: 1080px; --wide: 1240px; }
.home-wrap { max-width: var(--home-content); margin: 0 auto; padding: 0 var(--gutter); }
.home-wide { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- JSP chrome: top bar (look-alike of the live #336699 bar) ---------- */
.ie-top { position: -webkit-sticky; position: sticky; top: 0; z-index: 40; background: #336699; border-bottom: 1px solid #2b5986; color: #fff; }
.ie-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 20px 0 6px; }
.ie-top-logo { display: flex; align-items: center; flex: none; }
.ie-top-logo img { height: 44px; width: auto; opacity: 0.94; display: block; }
.ie-top-right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ie-top-wel { color: #FFF9C4; font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.ie-top-links { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ie-top-row { display: flex; gap: 6px; }
.ie-top a { color: #fff; font-size: 0.875rem; font-weight: 500; line-height: 1.35; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.ie-top a:hover { background: #5588bb; color: #fff; text-decoration: none; }
.ie-top a.ie-top-logo { padding: 0; }
.ie-top a.ie-top-logo:hover { background: none; }

/* ---------- hero ---------- */
.home-hero { padding-top: 48px; padding-top: clamp(48px, 6.5vw, 88px); text-align: center; }
.home-hero .h1 { max-width: 15ch; margin: 0 auto; }
.home-hero .lead { margin: 22px auto 0; max-width: 34em; }
.home-hero .actions { justify-content: center; margin-top: 30px; }
.home-hero .btn { padding: 13px 26px; font-size: 1.0625rem; }
.home-hero-photo { margin-top: 44px; margin-top: clamp(44px, 5.5vw, 72px); }
.home-hero-photo .photo { aspect-ratio: 2.2 / 1; }
.home-hero-photo .photo-cap { text-align: center; }

/* ---------- rotating member-photo hero (WEB-INF/inc/hero-pool.jspf sets --hero-focus / --hero-focus-m inline) ---------- */
.home-hero-photo .photo img { object-position: var(--hero-focus, 50% 50%); }
.home-hero-photo .photo-cap.hero-credit { margin-top: 10px; font-size: 12px; font-weight: 400; line-height: 1.4; color: #6e6e73; }
.hero-credit .sep { margin: 0 .4em; }

/* ---------- feature tiles: 2 large, then 3 + 3 ---------- */
.home-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.home-tiles .tile { grid-column: span 2; }
.home-tiles .tile--lg { grid-column: span 3; }
.home-tiles .tile--lg .tile-img { aspect-ratio: 4 / 3; }
.home-tiles .tile-img { position: relative; }
.home-tiles .tile:not(.tile--lg) .h3 { font-size: 1.2rem; font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.375rem); }
.home-tiles .tile:not(.tile--lg) .tile-body { padding: 22px 24px 26px; }
.home-tiles .tag { z-index: 1; }

/* email mock inside a tile */
.mock { display: grid; place-items: center; background: linear-gradient(160deg, #eef2f7, #e3e9f2); padding: 18px; }
.mock-mail { width: min(86%, 300px); background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(16,24,40,0.45); overflow: hidden; font-size: 0.75rem; line-height: 1.35; }
.mock-mail-head { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--ink-3); display: grid; gap: 1px; }
.mock-mail-head b { color: var(--ink); font-weight: 600; }
.mock-mail-body { padding: 10px 12px 12px; }
.mock-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
/* theme mock inside a tile (Paper white, one of the 151 themes) */
.mock-theme { width: min(88%, 310px); background: #fffbf5; border-radius: 10px; padding: 12px 14px 14px; box-shadow: 0 0 0 1px rgba(139,69,19,0.12), 0 14px 30px -18px rgba(16,24,40,0.45); }
.mock-theme-title { font-family: Georgia, "Times New Roman", serif; color: #8b4513; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.mock-theme-sub { color: #8b6a4f; font-size: 0.6875rem; margin: 1px 0 8px; }
.mock-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.mock-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }

/* ---------- quiet packages band ---------- */
.quiet { background: var(--soft); border-radius: var(--r-lg); padding: 36px 24px; padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px); text-align: center; }
.quiet-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; gap: clamp(24px, 4vw, 48px); text-align: center; max-width: 920px; margin: 0 auto; }
.quiet-list h3 { font-size: 1.35rem; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 8px; }
.quiet-list p { color: var(--ink-2); font-size: 0.9875rem; }
.quiet .actions { justify-content: center; margin-top: 28px; margin-top: clamp(28px, 4vw, 40px); }

/* steps: a little more room on the home page */
.home-steps .step h3 { font-size: 1.25rem; }

/* ---------- JSP chrome: footer (look-alike of the live footer) ---------- */
.ie-foot { margin-top: var(--sec); border-top: 1px solid var(--line); background: #fff; }
.ie-foot-in { max-width: 1280px; margin: 0 auto; padding: 40px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ie-foot-brand { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.ie-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.ie-foot nav a { font-size: 0.875rem; color: var(--ink-3); }
.ie-foot nav a:hover { color: var(--ink); text-decoration: none; }
.ie-foot-copy { font-size: 0.75rem; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .home-steps .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .home-steps .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tiles .tile, .home-tiles .tile--lg { grid-column: span 1; }
  .home-tiles .tile--lg .tile-img { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .ie-foot-in { flex-direction: column; text-align: center; }
  .quiet-list { grid-template-columns: 1fr; text-align: center; gap: 26px; }
}
@media (max-width: 640px) {
  .ie-top-in { padding-right: 10px; }
  .ie-top-logo img { height: 36px; }
  .ie-top a { font-size: 0.8125rem; padding: 2px 6px; }
  .ie-top-right { gap: 8px; }
  .ie-top-right.has-wel { flex-direction: column; align-items: flex-end; gap: 0; }
  .ie-top-right.has-wel .ie-top-links { flex-direction: row; gap: 0; }
  .ie-top-wel { font-size: 0.75rem; padding-right: 6px; max-width: 220px; }
  .home-hero-photo .photo { aspect-ratio: 4 / 3; border-radius: var(--r); }
  .home-hero-photo .photo img { object-position: var(--hero-focus-m, var(--hero-focus, 50% 50%)); }
  .home-steps .steps { grid-template-columns: 1fr; gap: 0; }
  .home-tiles { grid-template-columns: 1fr; gap: 16px; }
  .home-tiles .tile:not(.tile--lg) .tile-body { padding: 22px 22px 26px; }
  .ie-foot-in { padding: 32px 20px; }
}

/* ===================================================================== install additions */
/* Features pages: the shared IE footer (footer.jsp), styled the way about.jsp styles it. */
.fx-foot .site-footer { margin-top: 18px; padding: 6px 16px 28px; text-align: center; background: transparent; border-top: none; border-radius: 0; font-size: 11px; line-height: 1.2; }
.fx-foot .site-footer a { color: #1d1d1f; text-decoration: none; white-space: nowrap; transition: all .2s ease; opacity: .9; padding: 2px 8px; border-radius: 4px; display: inline-block; font-size: 11px; margin: 0 1px; }
.fx-foot .site-footer a:hover { opacity: 1; background: rgba(51,102,153,.14); box-shadow: inset 0 0 0 1px rgba(51,102,153,.2); text-decoration: none; color: #111; }
.fx-foot { border-top: 1px solid var(--line); }
/* Shared IE header logo: same sizing about.jsp gets from head2.jsp (img max-width), without loading head2.jsp. */
.m_hdr img { max-width: 100%; height: auto; }

/* ===================================================================== older-browser fallbacks (2026-10-09)
   Each block is skipped by browsers that support the feature, so current browsers render exactly as before. */

/* clamp() inside custom properties (Safari 12-13.0, iOS 12-13.3): fixed sizes instead of collapsing to 0 */
@supports not (width: clamp(1px, 1px, 1px)) {
  :root { --gutter: 32px; --sec: 96px; --fs-lead: 1.2rem; --fs-h2: 2.3rem; --fs-h1: 3.25rem; }
  .sizer { --sizer-pad: 24px; }
  @media (max-width: 640px) {
    :root { --gutter: 20px; --sec: 72px; --fs-lead: 1.125rem; --fs-h2: 1.85rem; --fs-h1: 2.5rem; }
    .sizer { --sizer-pad: 12px; }
  }
}

/* aspect-ratio (Safari < 15, Chrome < 88, Firefox < 89): padding-top boxes, media placed absolutely inside */
@supports not (aspect-ratio: 1 / 1) {
  .hero-photo, .band .photo, .tile-img, .hero--split .photo, .home-hero-photo .photo { position: relative; }
  .hero-photo > img, .band .photo > img, .band .photo > video, .tile-img > img, .tile-img > video, .tile-img > div,
  .tile-img > .vid-play, .hero--split .photo > img, .home-hero-photo .photo > img, .set-media > img, .set-media > video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  }
  .set-doc > img { left: 50%; top: 14px; width: auto; height: calc(100% - 28px); transform: translateX(-50%); }
  .hero-photo { padding-top: 45.4545%; }
  .band .photo { padding-top: 66.6667%; }
  .tile-img { padding-top: 62.5%; }
  .tiles--hub .tile--wide .tile-img { padding-top: 0; }
  .hero--split .photo { padding-top: 125%; }
  .hero-photo--video { padding-top: 56.25%; }
  .ladder { padding-top: 56.25%; }
  .set-media { padding-top: 66.6667%; }
  .set-a .set-media { padding-top: 0; }
  .set-b .set-media { padding-top: 0; }
  .home-hero-photo .photo { padding-top: 45.4545%; }
  .home-tiles .tile--lg .tile-img { padding-top: 75%; }
  @media (max-width: 960px) { .home-tiles .tile--lg .tile-img { padding-top: 62.5%; } }
  @media (max-width: 900px) {
    .hero--split .photo { padding-top: 75%; }
    .set-a .set-media, .set-b .set-media { padding-top: 66.6667%; }
  }
  @media (max-width: 640px) {
    .mosaic .photo > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .mosaic .m-b { padding-top: 75%; }
    .mosaic .m-a, .mosaic .m-c { padding-top: 125%; }
    .hero-photo { padding-top: 75%; }
    .hero-photo--video { padding-top: 56.25%; }
    .tiles--hub .tile--wide .tile-img { padding-top: 62.5%; }
    .set-doc { padding-top: 75%; }
    .set-b .set-media { padding-top: 66.6667%; }
    .home-hero-photo .photo { padding-top: 75%; }
  }
}

/* flexbox gap (Safari < 14.1, Chrome < 84, Samsung < 14): margins instead. inset support is the closest @supports match. */
@supports not (inset: 0) {
  /* an absolutely placed <button> does not stretch between left/right in these engines: size the play overlay explicitly */
  .vid-play { width: 100%; height: 100%; }
  .vid-play span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
  .vid-play:hover span { transform: translate(-50%, -50%) scale(1.04); }
  .actions { margin-left: -11px; margin-right: -11px; margin-bottom: -6px; }
  .actions > * { margin: 6px 11px; }
  .btn > svg:first-child, .vid-play span > svg:first-child, .tag > svg:first-child { margin-right: 8px; }
  .tag > svg:first-child { margin-right: 6px; }
  .btn > svg:last-child:not(:first-child) { margin-left: 8px; }
  .tile-body > * + * { margin-top: 8px; }
  .chips { margin-bottom: -8px; }
  .chips > * { margin: 0 8px 8px 0; }
  .seg > * + * { margin-left: 4px; }
  .opts-head > * + * { margin-left: 32px; }
  .tasks a > * + * { margin-left: 12px; }
  .next > * + * { margin-left: 16px; }
  .level-facts, .ladder-read, .swatches { margin-left: -4px; margin-right: -4px; }
  .level-facts > *, .ladder-read > *, .swatches > * { margin: 4px; }
  .swatch > i { margin-right: 8px; }
  .tree .node > svg, .tree .node > img { margin-right: 10px; }
  .easy3-art > * + * { margin-top: 8px; }
  .opt-shots--pair > * + * { margin-left: 18px; }
  .ie-top-in > * + * { margin-left: 12px; }
  .ie-top-right > * + * { margin-left: 18px; }
  .ie-top-links > * + * { margin-top: 2px; }
  .ie-top-row > * + * { margin-left: 6px; }
  .mock-dots > * + * { margin-left: 6px; }
  .ie-foot-in > * + * { margin-left: 24px; }
  .ie-foot nav { margin-left: -12px; margin-right: -12px; }
  .ie-foot nav > * { margin: 4px 12px; }
  @media (max-width: 900px) { .fx-nav-toggle > * + * { margin-left: 12px; } }
  @media (max-width: 760px) { .ie-foot-in > * + * { margin-left: 0; margin-top: 24px; } }
  @media (max-width: 640px) {
    .opt-shots--pair > * + * { margin-left: 0; margin-top: 18px; }
    .ie-top-right > * + * { margin-left: 8px; }
    .ie-top-right.has-wel > * + * { margin-left: 0; }
    .ie-top-right.has-wel .ie-top-links > * + * { margin-top: 0; }
  }
}
