/* ==========================================================================
   Avleen Consulting — site styles
   One page, one stylesheet. Lora for display type, Lato for text,
   petrol / teal / azure, light paper sections between dark bands.
   Every section sits on the same 12-column grid, so edges line up from
   the top of the page to the bottom. Fonts are served from /assets/fonts.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/lora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lato-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --petrol: #0e3742;
  --petrol-deep: #0a2a33;
  --petrol-line: rgba(211, 225, 229, 0.14);
  --teal: #05718b;            /* labels, links, numerals: 5.6:1 on white */
  --teal-dark: #04596d;
  --azure: #00bcf2;           /* accent: bars, marks, buttons on dark; never small text on white */
  --azure-soft: #7fdcf8;      /* small text on dark: 9.5:1 on petrol */
  --ember: #c76727;
  --ink: #1b1e25;
  --text: #2f3640;
  --muted: #59626c;           /* 6.2:1 on white, 5.7:1 on paper */
  --italic: #2b4a53;
  --line: #d9d8d2;
  --line-soft: #e8e7e2;
  --draw-line: #8fa7ae;
  --tint: #e3eef1;
  --paper: #f6f4f1;
  --white: #ffffff;
  --on-dark: #d3e1e5;         /* 8.2:1 on petrol, 9.7:1 on petrol-deep */
  --on-dark-muted: #a3bcc2;   /* 6.4:1 on petrol */

  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Lato", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);   /* 17 → 18px */
  --fs-small: 0.9375rem;                                      /* 15px */
  --fs-label: 0.75rem;                                        /* 12px */
  --fs-h1: clamp(2.375rem, 1.3rem + 3.2vw, 3.875rem);         /* 38 → 62px */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.3vw, 2.625rem);          /* 28 → 42px */
  --fs-h3: clamp(1.1875rem, 1.14rem + 0.2vw, 1.3125rem);      /* 19 → 21px */
  --fs-standfirst: clamp(1.1875rem, 1.1rem + 0.45vw, 1.5rem);

  /* the grid every section shares */
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --gap: clamp(16px, 2vw, 28px);
  --space: clamp(56px, 1.5rem + 4vw, 104px);
  --radius: 4px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(14, 55, 66, 0.06), 0 8px 24px -12px rgba(14, 55, 66, 0.18);
  --shadow-up: 0 2px 4px rgba(14, 55, 66, 0.06), 0 22px 40px -18px rgba(14, 55, 66, 0.32);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--petrol-deep); }
body { margin: 0; font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; color: var(--text); background: var(--white); font-kerning: normal; font-synthesis-weight: none; }
img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb { white-space: nowrap; }
::selection { background: #c9eefb; color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; text-rendering: optimizeLegibility; }
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p, li, dd, figcaption { text-wrap: pretty; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; color: var(--ink); }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: rgba(5, 113, 139, 0.4); transition: color .15s, text-decoration-color .15s, background-color .15s, border-color .15s; }
a:hover { color: var(--teal-dark); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.band-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--azure); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }

/* Placeholder marker: text still to be supplied. A production build refuses to ship these. */
.ph { background: #fff4c2; color: #5c4400; border-radius: 2px; padding: 0 .25em; box-shadow: inset 0 0 0 1px #ecd06a; }

/* ---------- Type helpers ---------- */
.label, .kicker, .group-label, .strip-label { font-family: var(--sans); font-size: var(--fs-label); font-weight: 700; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin: 0 0 0.9rem; }
.standfirst { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--fs-standfirst); line-height: 1.5; color: var(--italic); max-width: 32em; margin: 0 0 1.25em; }
.fig { font-family: var(--serif); font-style: italic; color: var(--ink); margin-right: 6px; }
.arr { display: inline-block; width: 0.85em; height: 0.85em; vertical-align: -0.1em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.arr-down { transform: rotate(90deg); }

/* ---------- Dark bands: hero, lessons, closing ---------- */
.band-dark { position: relative; background-color: var(--petrol); color: var(--on-dark); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center top; }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark b { color: var(--white); }
.band-dark .label, .band-dark .kicker, .band-dark .strip-label { color: var(--azure-soft); }
.band-dark .standfirst { color: var(--on-dark); }
.band-dark .fig { color: var(--white); }
.band-dark a:not(.btn) { color: var(--white); text-decoration-color: rgba(127, 220, 248, 0.6); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 42, 51, 0.94); border-bottom: 1px solid var(--petrol-line); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); }
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-mark { width: 26px; height: 32px; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: 0.07em; color: var(--white); }
.wordmark i { font-style: normal; font-family: var(--sans); font-weight: 700; font-size: 0.5625rem; letter-spacing: 0.47em; color: var(--azure-soft); margin-top: 6px; padding-left: 1px; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { position: relative; display: block; padding: 10px 14px; font-size: 0.96rem; color: var(--on-dark); text-decoration: none; }
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current] { color: var(--white); }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 1px; background: var(--azure); }
.nav-links .nav-contact { display: none; }
.nav-cta { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }

.nav-toggle { display: none; align-items: center; gap: 8px; height: 44px; margin-left: auto; padding: 0 2px 0 12px; border: 0; background: none; font: 700 0.75rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-toggle[aria-expanded="true"] .i-open, .nav-toggle:not([aria-expanded="true"]) .i-close { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent; font: 700 0.97rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-primary { background: var(--azure); color: var(--petrol-deep); box-shadow: 0 8px 24px -10px rgba(0, 188, 242, 0.65); }
.btn-primary:hover { background: #45d3fb; color: var(--petrol-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(211, 225, 229, 0.4); }
.btn-ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }

/* ---------- Sections and the shared grid ---------- */
.section { padding: var(--space) 0; }
.section-paper { background: var(--paper); }

.sec-head { max-width: 50rem; margin-bottom: clamp(28px, 3.5vw, 48px); }
.sec-head h2 { margin-bottom: 0.3em; }
.sec-head > p:last-child { margin: 0; color: var(--muted); font-size: 1.06rem; }
.band-dark .sec-head > p:last-child { color: var(--on-dark-muted); }
/* heading left, intro right, on wide screens */
.sec-head-row { max-width: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.sec-head-row > div { grid-column: 1 / span 7; }
.sec-head-row > div h2 { margin: 0; }
.sec-head-row > p:last-child { grid-column: 9 / -1; padding-bottom: 6px; }

/* 4 + 8 columns of the 12 */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.split > :first-child { grid-column: 1 / span 4; }
.split > :last-child { grid-column: 5 / -1; }

/* ---------- Drawings (static/assets/img/ill, inlined by build.py) ---------- */
svg.draw { color: var(--petrol); overflow: visible; }
svg.draw * { vector-effect: non-scaling-stroke; }
.draw .ln, .draw .ln2, .draw .fl, .draw .hl, .draw .em { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.draw .ln  { stroke: currentColor; stroke-width: 1.75; }
.draw .ln2, .draw .fl { stroke: var(--draw-line); stroke-width: 1; }
.draw .hl  { stroke: var(--azure); stroke-width: 3; }
.draw .em  { stroke: var(--ember); stroke-width: 2.5; }
.draw .wht { fill: #fff; }
.draw .pf { fill: var(--paper); }
.draw .tint { fill: var(--tint); }
.draw .hl-f { fill: var(--azure); }
.draw .ink-f { fill: var(--petrol); stroke: none; }

/* ---------- Hero: headline and the L0–L5 pyramid ---------- */
.hero { overflow: hidden; padding: clamp(40px, 1rem + 5vw, 96px) 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 40%, rgba(0, 188, 242, 0.16), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: center; }
.hero-text { grid-column: 1 / span 6; }
.pyramid-fig { grid-column: 7 / -1; margin: 0; }
.hero h1 { max-width: 17.5ch; }
.hero h1::after { content: ""; display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--azure); margin-top: 0.4em; }
.hero .standfirst { margin-bottom: 0; }

.pyramid { list-style: none; display: grid; gap: 6px; }
.lv { --t: 30%; --b: 41.7%; --cg: 16px; display: grid; grid-template-columns: 40% 52px minmax(0, 1fr); align-items: center; column-gap: var(--cg); }
.lv4 { --t: 41.7%; --b: 53.3%; }
.lv3 { --t: 53.3%; --b: 65%; }
.lv2 { --t: 65%; --b: 76.7%; }
.lv1 { --t: 76.7%; --b: 88.3%; }
.lv0 { --t: 88.3%; --b: 100%; }
.slab-wrap { position: relative; display: block; height: 100%; min-height: 58px; }
/* a leader line from each slab's edge to its label */
.slab-wrap::after { content: ""; position: absolute; top: 50%; left: calc(50% + (var(--t) + var(--b)) / 4 + 6px); right: calc(2px - var(--cg)); border-top: 1px dashed rgba(127, 220, 248, 0.35); }
.is-ours .slab-wrap::after { border-top: 1.5px solid var(--azure); }
.slab { display: flex; align-items: center; justify-content: center; height: 100%;
  clip-path: polygon(calc(50% - var(--t) / 2) 0, calc(50% + var(--t) / 2) 0, calc(50% + var(--b) / 2) 100%, calc(50% - var(--b) / 2) 100%);
  background: linear-gradient(rgba(255, 255, 255, 0.28) 0 1.5px, rgba(255, 255, 255, 0.12) 1.5px); }
.slab b { font: 700 0.8125rem/1 var(--sans); letter-spacing: 0.08em; margin-right: -0.08em; color: var(--on-dark); }
/* ERP above and control below glow towards L3: the links we build */
.lv4 .slab { background: linear-gradient(rgba(127, 220, 248, 0.6) 0 1.5px, transparent 1.5px), linear-gradient(rgba(0, 188, 242, 0.10), rgba(0, 188, 242, 0.45)); }
.lv2 .slab { background: linear-gradient(rgba(127, 220, 248, 0.6) 0 1.5px, transparent 1.5px), linear-gradient(rgba(0, 188, 242, 0.45), rgba(0, 188, 242, 0.10)); }
.is-ours .slab-wrap { filter: drop-shadow(0 0 18px rgba(0, 188, 242, 0.55)); }
.is-ours .slab { background: linear-gradient(105deg, var(--azure) 0%, var(--azure) 38%, #8fe6ff 50%, var(--azure) 62%, var(--azure) 100%); background-size: 260% 100%; background-position: 100% 0; animation: sweep 2.4s ease-in-out .8s 1; }
.pyramid-fig:hover .is-ours .slab { animation: sweep-again 2.4s ease-in-out 1; }
.is-ours .slab b { color: var(--petrol-deep); }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -60% 0; } }
@keyframes sweep-again { from { background-position: 100% 0; } to { background-position: -60% 0; } }
.lv-icon { display: flex; justify-content: center; }
.lv-icon svg { width: 52px; height: auto; }
.lv-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lv-text b { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 1rem; color: var(--white); }
.lv-text > span { font-size: 0.875rem; color: #b4cacf; }
.lv:not(.is-ours):not(.is-link) .lv-text b { color: var(--on-dark); }
.tag { display: inline-block; padding: 3px 8px 2px; border-radius: 3px; background: var(--azure); color: var(--petrol-deep); font-style: normal; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; }
.pyramid-fig figcaption { margin-top: 18px; font-size: var(--fs-small); color: var(--on-dark-muted); text-wrap: balance; }

/* the level icons are drawn for paper; on the dark band they take light lines */
.pyramid svg.draw { color: #dce9ec; }
.pyramid .draw .ln2, .pyramid .draw .fl { stroke: #6f949d; }
.pyramid .draw .wht { fill: var(--petrol); }
.pyramid .draw .tint, .pyramid .draw .pf { fill: rgba(255, 255, 255, 0.08); }
.pyramid .draw .ink-f { fill: #dce9ec; }

.platform-strip { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: clamp(48px, 5vw, 80px); padding: 22px 0 28px; border-top: 1px solid var(--petrol-line); }
.strip-label { margin: 0; }
.platform-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.platform-strip li { display: inline-flex; align-items: center; gap: 10px; font-size: 0.97rem; font-weight: 700; color: var(--on-dark); white-space: nowrap; }
.platform-strip li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--azure); }
@media (min-width: 1200px) { .platform-strip ul { flex: 1 0 100%; flex-wrap: nowrap; justify-content: space-between; } }
@media (min-width: 700px) and (max-width: 1199.98px) { .platform-strip ul { flex: 1 0 100%; display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; } }

/* ---------- Cards: services, two rows of three on one grid ---------- */
.group-label { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: var(--muted); }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards + .group-label { margin-top: clamp(32px, 4vw, 48px); }

/* rows inside each card line up across the row (subgrid): title, drawing, outcome, list */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--gap); }
.card { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 24px 26px 10px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--petrol); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card:hover::after { background: var(--azure); }
.card-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: min(var(--fs-h3), 1.25rem); }
.no { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--petrol); color: #fff; font: 600 0.95rem/1 var(--serif); font-variant-numeric: lining-nums; }
.no-plus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--petrol); }
.no-plus::before, .no-plus::after { content: ""; grid-area: 1 / 1; width: 12px; height: 1.5px; background: var(--petrol); }
.no-plus::after { transform: rotate(90deg); }
/* the arrow between stage cards: 1 → 2 → 3 */
.stages .card + .card::before { content: ""; position: absolute; top: 31px; left: calc(-1 * var(--gap) - 1px); width: var(--gap); height: 16px; background: var(--teal); -webkit-mask: var(--arrow) center / 14px 14px no-repeat; mask: var(--arrow) center / 14px 14px no-repeat; }

.card-draw { display: flex; align-items: flex-end; min-height: 132px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.card-draw svg { width: auto; height: 108px; max-width: 100%; }
.outcome { margin: 0 0 14px; font-family: var(--serif); font-size: 1.06rem; line-height: 1.45; color: var(--ink); }
.svc { list-style: none; }
.svc li { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.svc b { display: block; margin-bottom: 1px; font-size: 1rem; color: var(--ink); }

/* AI card: the ten plays as three waves of discs */
.wd { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; }
.wd-1 { background: var(--azure); }
.wd-2 { background: var(--petrol); }
.wd-3 { background: #fff; box-shadow: inset 0 0 0 2.5px var(--ember); }
.wave-dots { display: flex; width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 8px; align-items: flex-end; padding-bottom: 6px; color: inherit; text-decoration: none; }
/* the three waves climb, left to right */
.wave-dots .wd-group:nth-child(2) { margin-bottom: 28px; }
.wave-dots .wd-group:nth-child(3) { margin-bottom: 56px; }
.wave-dots .wd-group { display: flex; flex-direction: column; gap: 6px; }
.wd-row { display: flex; gap: 4px; }
@media (min-width: 1200px) { .wd { width: 20px; height: 20px; } .wd-row { gap: 5px; } }
.wave-dots small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; text-transform: uppercase; color: var(--muted); }
.wave-dots:hover small { color: var(--teal); }

/* Offshore card: hand-off drawing with its two captions */
.handoff { flex-direction: column; align-items: stretch; justify-content: flex-end; }
.handoff svg { height: 84px; width: auto; align-self: flex-start; }
.handoff figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; font-size: 0.8125rem; line-height: 1.3; color: var(--muted); }
.handoff figcaption span:last-child { text-align: right; }

/* Accelerators card: a track with go-live in the middle */
.track { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 4px 30px; }
.track::before { content: ""; position: absolute; left: 4px; right: 4px; bottom: 39px; height: 2px; background: var(--petrol); }
.track .stop { position: relative; width: 15px; height: 18px; background: var(--petrol); -webkit-mask: url("/assets/img/avleen-mark.svg") center / contain no-repeat; mask: url("/assets/img/avleen-mark.svg") center / contain no-repeat; }
.track .pole { position: relative; width: 2px; height: 64px; background: var(--petrol); }
.track .pole::after { content: ""; position: absolute; left: 2px; top: 0; width: 20px; height: 13px; background: var(--ember); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.track i { position: absolute; bottom: 0; font-family: var(--serif); font-size: 0.875rem; line-height: 1.2; color: var(--italic); }
.track-before { left: 4px; }
.track-flag { left: 50%; transform: translateX(-50%); font-style: normal; font-weight: 700; color: var(--ink) !important; font-family: var(--sans) !important; }
.track-after { right: 4px; }

/* ---------- Ten lessons: five by two on laptops ---------- */
.lessons { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; gap: var(--gap) var(--gap); counter-reset: lesson; }
.lesson { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 16px 18px 18px; background: #fff; border-radius: var(--radius); color: var(--text); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6); transition: transform .2s, box-shadow .2s; }
.lesson:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--azure), 0 24px 48px -24px rgba(0, 0, 0, 0.7); }
.lesson-no { position: absolute; top: 12px; right: 16px; font: 600 1.6rem/1 var(--serif); color: #6f949d; font-variant-numeric: lining-nums; }
.lesson-draw { display: flex; align-items: flex-end; justify-content: center; margin: 4px 0 14px; padding: 18px 0 12px; border-bottom: 1px solid var(--line-soft); }
.lesson-draw svg { width: 100%; max-width: 200px; }
.lesson h3 { margin: 0 0 6px; font-size: 1.06rem; line-height: 1.25; color: var(--ink); }
.lesson p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.lessons-band { background-color: var(--petrol-deep); }

/* ---------- Industries: three by two, same rows in every item ---------- */
.industries { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 0; margin-bottom: calc(-1 * clamp(36px, 4vw, 56px)); }
.ind { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding-bottom: clamp(36px, 4vw, 56px); }
.ind-draw { display: flex; align-items: flex-end; margin-bottom: 16px; border-bottom: 1px solid var(--draw-line); }
.ind-draw svg { width: 100%; max-width: 270px; }
.ind h3 { margin: 0 0 4px; }
.ind-caption { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.45; color: var(--italic); }
.dash-list { list-style: none; margin: 0; }
.dash-list li { position: relative; padding-left: 1.2em; margin-bottom: 0.3em; font-size: var(--fs-small); line-height: 1.45; }
.dash-list li::before { content: "\2013"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- About ---------- */
.founder { position: relative; padding: 26px 26px 22px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.founder::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--azure); }
.signature { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.2; color: var(--ink); }
.signature span { display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: var(--fs-small); color: var(--muted); }
.founder > p:not(.signature) { font-size: var(--fs-small); margin-bottom: 10px; }
.roles { position: relative; list-style: none; margin: 0 0 16px; }
.roles::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 2px; background: var(--petrol); }
.roles li { position: relative; padding: 4px 0 4px 26px; font-size: var(--fs-small); font-weight: 700; line-height: 1.4; color: var(--ink); }
.roles li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--petrol); }
.roles li:last-child::before { background: var(--azure); }
.founder .credentials { margin: 0 0 6px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-weight: 700; color: var(--ink); }
.founder-link { margin: 0 !important; }
.founder-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.how h3 { margin: 0 0 14px; }
.stack { position: relative; list-style: none; padding: 0 0 0 30px; display: grid; gap: 10px; }
.stack::before { content: ""; position: absolute; left: 9px; top: 4px; bottom: 6px; width: 1.5px; background: var(--petrol); }
.stack::after { content: ""; position: absolute; left: 5px; bottom: 4px; width: 8px; height: 8px; border-right: 1.5px solid var(--petrol); border-bottom: 1.5px solid var(--petrol); transform: rotate(45deg); }
.stack li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--petrol); border-radius: 2px; font-size: var(--fs-small); color: var(--muted); }
.stack b { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.stack .s1 { width: 100%; background: var(--tint); }
.stack .s2 { width: 80%; background-color: #fff; background-image: repeating-linear-gradient(45deg, transparent 0 5px, rgba(143, 167, 174, 0.55) 5px 6px); background-size: 32px 100%; background-position: right center; background-repeat: no-repeat; padding-right: 44px; }
.stack .s3 { width: 60%; background: #fff; border: 1.5px dashed var(--ember); }

/* Ways to work: five equal columns, every dot at its column's left edge */
.engage { margin-top: clamp(32px, 4vw, 44px); }
.engage h3 { margin: 0 0 16px; }
.wedge { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 16px; padding-top: 46px; }
.wedge::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 32px; background: var(--tint); clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 56%); }
.wedge li { position: relative; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.wedge li::before { content: ""; position: absolute; left: 0; top: -30px; width: var(--d, 10px); height: var(--d, 10px); border-radius: 50%; background: var(--petrol); transform: translateY(-50%); }
.wedge li:nth-child(2) { --d: 13px; }
.wedge li:nth-child(3) { --d: 16px; }
.wedge li:nth-child(4) { --d: 19px; }
.wedge li:nth-child(5) { --d: 22px; background: none; }
.wedge li:nth-child(5)::before { background: var(--azure); }
.wedge b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.wedge-ends { display: flex; justify-content: space-between; margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: var(--fs-small); color: var(--italic); }

/* ---------- Closing: contact and white paper ---------- */
.closing { overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 15% 30%, rgba(0, 188, 242, 0.14), transparent 70%); pointer-events: none; }
.closing-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.contact-text { grid-column: 1 / span 6; }
.papers-side { grid-column: 8 / -1; }
.big-mail { display: inline-block; margin: 0 0 22px; padding: 9px 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 0.9rem + 2vw, 2.5rem); line-height: 1.25; color: var(--white) !important; text-decoration-color: var(--azure) !important; text-decoration-thickness: 2px; text-underline-offset: 0.22em; overflow-wrap: anywhere; }
.big-mail:hover { color: var(--azure-soft) !important; }
.copy-status { font-size: var(--fs-small); color: var(--azure-soft); }

.papers { list-style: none; display: grid; gap: 12px; }
.paper-link { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 18px 22px; padding: 26px; border: 1px solid rgba(211, 225, 229, 0.22); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s; }
.band-dark a.paper-link { color: var(--on-dark); text-decoration: none; }
.paper-link:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--azure); transform: translateY(-2px); }
.paper-icon { position: relative; width: 50px; height: 64px; border: 1.5px solid var(--on-dark); border-radius: 2px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.paper-icon::before { content: ""; position: absolute; right: -1.5px; top: -1.5px; width: 14px; height: 14px; border-left: 1.5px solid var(--on-dark); border-bottom: 1.5px solid var(--on-dark); }
.paper-icon span { position: absolute; left: 9px; right: 11px; top: 24px; height: 16px; background: repeating-linear-gradient(var(--on-dark-muted) 0 1px, transparent 1px 5px); }
.paper-icon span::after { content: ""; position: absolute; left: 0; width: 60%; top: 24px; height: 3px; background: var(--azure); }
.paper-text .kicker { display: block; margin: 0 0 6px; }
.paper-title { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem); line-height: 1.2; color: var(--white); }
.paper-summary { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--on-dark); }
.paper-get { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--petrol-line); }
.paper-facts { font-size: var(--fs-small); color: var(--on-dark-muted); white-space: nowrap; }
.paper-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); background: var(--azure); color: var(--petrol-deep); font-weight: 700; font-size: 0.97rem; white-space: nowrap; }
.paper-link:hover .paper-cta { background: #45d3fb; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-deep); border-top: 1px solid var(--petrol-line); padding: clamp(32px, 4vw, 48px) 0 28px; font-size: var(--fs-small); color: var(--on-dark-muted); -webkit-font-smoothing: antialiased; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(127, 220, 248, 0.5); }
.site-footer a:hover { color: var(--white); }
.site-footer .brand, .site-footer .wordmark b { color: var(--white); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-bottom: 18px; border-bottom: 1px solid var(--petrol-line); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; }
.footer-nav a { display: inline-block; padding: 12px 0; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { margin-top: 18px; line-height: 1.7; }
.privacy { margin-top: 10px; }
.privacy summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--on-dark); font-weight: 700; list-style: none; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after { content: "+"; font: 600 1.15rem/1 var(--serif); color: var(--azure); }
.privacy[open] summary::after { content: "\2212"; }
.privacy-body { max-width: 50rem; padding: 4px 0 8px; }
.privacy-body p { margin: 0 0 0.7em; }
.privacy-body .muted { color: var(--on-dark-muted); }
.footer-colophon { margin: 8px 0 0; }
.version { display: inline-block; margin-left: 0.6em; padding-left: 0.75em; border-left: 1px solid var(--petrol-line); font-size: 0.8125rem; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(64px, 3rem + 6vw, 144px) 0; }
.notfound .code { font-family: var(--serif); font-weight: 600; font-size: clamp(4.5rem, 3rem + 6vw, 8rem); line-height: 1; color: #cfe1e6; margin: 0 0 0.15em; }
.go-list { list-style: none; border-top: 2px solid var(--ink); }
.go-list li { border-bottom: 1px solid var(--line); }
.go-list a { display: flex; justify-content: space-between; padding: 16px 0; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.go-list a::after { content: ""; width: 0.9rem; height: 0.9rem; align-self: center; background: var(--teal); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.go-list a:hover { color: var(--teal); }
.notfound .split > :first-child { grid-column: 1 / span 6; }
.notfound .split > :last-child { grid-column: 8 / -1; align-self: end; }

/* ---------- Gentle reveal as sections scroll in (main.js adds .pre, then .in) ---------- */
.pre { opacity: 0; transform: translateY(18px); }
.pre.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0s); }

/* ==========================================================================
   Smaller screens. Same grid, fewer columns; edges still line up.
   ========================================================================== */
@media (max-width: 1180px) and (min-width: 1001px) {
  .lessons { gap: 14px; }
  .lesson { padding: 12px 12px 14px; }
  .lesson-no { top: 10px; right: 12px; font-size: 1.2rem; }
  .lesson-draw { padding: 22px 0 10px; }
  .lesson h3 { font-size: 0.95rem; }
  .lesson p { font-size: 0.84rem; }
}
/* 721–1000px: two columns of wide lesson cards, drawing beside the text */
@media (max-width: 1000px) and (min-width: 721px) {
  .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson { grid-row: auto; grid-template-rows: auto 1fr; grid-template-columns: 40% minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .lesson-draw { grid-row: 1 / span 2; align-self: center; margin: 0; padding: 6px 0; border-bottom: 0; }
  .lesson h3, .lesson p { grid-column: 2; }
  .lesson h3 { padding-right: 2.4rem; }
}
@media (max-width: 1080px) {
  .nav-links a { padding-inline: 10px; }
  .nav-links a[aria-current]::after { left: 10px; right: 10px; }
  .hero h1 { font-size: clamp(2.375rem, 4.3vw, 2.875rem); }
  .lv { grid-template-columns: 36% 44px minmax(0, 1fr); --cg: 12px; }
  .lv-icon svg { width: 44px; }
}
@media (max-width: 900px) {
  .hero-text { grid-column: 1 / span 12; }
  .pyramid-fig { grid-column: 1 / span 12; max-width: 640px; }
  .hero h1 { max-width: 18ch; font-size: var(--fs-h1); }
  .lv { grid-template-columns: 40% 52px minmax(0, 1fr); --cg: 16px; }
  .lv-icon svg { width: 52px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .nav-links { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: var(--petrol-deep); border-bottom: 1px solid var(--petrol-line); padding: 4px var(--gutter) 20px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6); }
  .nav-links.open { display: flex; }
  .nav-links li + li { border-top: 1px solid var(--petrol-line); }
  .nav-links a { padding: 15px 0; font-size: 1.06rem; }
  .nav-links a[aria-current]::after { left: auto; right: 2px; top: 50%; bottom: auto; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-50%); }
  .nav-links .nav-contact { display: block; }

  .sec-head-row > div, .sec-head-row > p:last-child { grid-column: 1 / -1; }
  .sec-head-row > p:last-child { margin-top: 12px; padding: 0; }
  .split > :first-child, .split > :last-child,
  .notfound .split > :first-child, .notfound .split > :last-child { grid-column: 1 / -1; }
  .founder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .founder .signature { grid-column: 1 / -1; }
  .founder > p:not(.signature), .founder .roles { grid-column: 1; }
  .founder > p.credentials { grid-column: 2; grid-row: 3; align-self: start; margin-top: 0; padding-top: 0; border-top: 0; }
  .founder > p.founder-link { grid-column: 2; grid-row: 3; align-self: end; }

  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-text, .papers-side { grid-column: 1 / -1; }
  .nav-toggle { order: 1; }
}
/* tablets: one service card per row, drawing beside the text, so no card is left alone */
@media (min-width: 641px) and (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .card { grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 28px; align-content: start; padding-bottom: 16px; }
  .card-title { grid-column: 1 / -1; }
  .card-draw { grid-column: 1; grid-row: 2 / span 2; align-self: start; margin: 0; border-bottom: 0; min-height: 0; }
  .outcome, .svc { grid-column: 2; }
  .stages .card + .card::before { top: auto; bottom: 100%; left: 32px; width: 16px; height: var(--gap); transform: rotate(90deg); }
}
@media (max-width: 960px) and (scripting: none) {
  .nav-toggle { display: none; }
  .nav { height: auto; flex-wrap: wrap; padding-block: 12px; }
  .nav-links { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav-links li + li { border: 0; }
  .nav-links a { padding: 8px 10px 8px 0; font-size: 0.95rem; }
}

@media (max-width: 640px) {
  .wedge { grid-template-columns: 1fr; row-gap: 14px; padding: 0 0 0 44px; }
  .wedge::before { left: 0; top: 0; bottom: 0; right: auto; width: 26px; height: auto; clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); }
  .wedge li::before { left: -31px; top: 12px; transform: translate(-50%, -50%); margin-left: 13px; }
  .wedge-ends { display: none; }
}

@media (max-width: 720px) {
  .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lesson { padding: 12px 12px 14px; }
  .lesson-no { top: 10px; right: 12px; font-size: 1.25rem; color: #4f7b86; }
  .lesson-draw { padding: 16px 0 10px; margin-bottom: 10px; }
  .lesson h3 { font-size: 0.97rem; }
  .lesson p { font-size: 0.84rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .wordmark b { font-size: 1.12rem; }
  .wordmark i { font-size: 0.5rem; }
  .brand-mark { width: 22px; height: 27px; }
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }

  .hero h1 { font-size: clamp(1.75rem, 8.8vw, 2.25rem); max-width: none; }
  .actions .btn { flex: 1 1 auto; }
  .lv { grid-template-columns: 34% 40px minmax(0, 1fr); --cg: 12px; }
  .lv-icon svg { width: 40px; }
  .slab-wrap { min-height: 50px; }
  .slab b { font-size: 0.75rem; letter-spacing: 0.1em; }
  .lv-text b { font-size: 0.94rem; }
  .lv-text > span { font-size: 0.8125rem; }
  .platform-strip { gap: 10px 20px; }
  .platform-strip ul { gap: 6px 18px; }
  .platform-strip li { font-size: 0.9rem; }

  .cards, .industries { grid-template-columns: 1fr; }
  .card { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; padding-bottom: 6px; }
  .ind { grid-row: auto; grid-template-rows: none; display: block; }
  .ind-draw svg { max-width: 240px; }
  .stages .card + .card::before { top: auto; bottom: 100%; left: 32px; width: 16px; height: var(--gap); transform: rotate(90deg); transform-origin: center; }
  .card-draw { min-height: 0; }
  .card-draw svg { height: 92px; }
  .founder { display: block; }
  .founder > p.credentials { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line-soft); }
  .stack .s2 { width: 90%; }
  .stack .s3 { width: 78%; }
  .paper-link { padding: 20px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .lv { grid-template-columns: 30% 34px minmax(0, 1fr); --cg: 10px; }
  .lv-icon svg { width: 34px; }
  .lessons { gap: 10px; }
  .lesson p { font-size: 0.8125rem; }
}
@media (max-width: 340px) {
  .lessons { grid-template-columns: 1fr; }
  .lesson { grid-row: auto; grid-template-rows: none; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-content: center; padding: 14px; }
  .lesson-draw { grid-row: 1 / span 2; align-self: center; margin: 0; padding: 0; border-bottom: 0; }
  .lesson h3 { align-self: end; padding-right: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pre { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  body { font-size: 11pt; line-height: 1.5; color: #000; }
  .site-header, .nav-toggle, .skip-link, .actions, .footer-nav, .copy-mail { display: none !important; }
  details::details-content { content-visibility: visible; display: contents; }
  .band-dark, .site-footer { background: none !important; color: #000; }
  .band-dark *, .site-footer * { color: #000 !important; box-shadow: none !important; border-color: #999 !important; }
  .band-dark::before, .closing::before, .hero::before { display: none; }
  .section, .hero { padding: 12pt 0 !important; }
  a { color: #000; text-decoration: none; }
  .ph { background: none; box-shadow: none; }
  .pre { opacity: 1; transform: none; }
  .slab, .wd, .no, .stack, .roles, .wedge, .track, .lesson-draw { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card, .founder { box-shadow: none !important; }
  .slab { background: #e3eef1 !important; }
  .is-ours .slab { background: #00bcf2 !important; }
  .pyramid .draw .wht { fill: #fff; }
  .slab-wrap::after { display: none; }
  h2, h3, .sec-head, .group-label { break-after: avoid; }
  .card, .ind, .lesson, li { break-inside: avoid; }
}
