/* =========================================================
   gochalifour.ca · Chalifour Solutions
   The look of chalifourit.com (Brendan’s favourite earlier site), brought into 2026: a dark see-through header box
   with the logo over faceted blue brand art, a full-screen homepage, tall art banners with the page title in a
   see-through box, light-and-bold Myriad Pro headlines, white panels on the light grey page, a dark testimonial band,
   and the plain white footer bar. See README, Design system.
   Rules, written once and used everywhere:
   - Type: Myriad Pro (the logo’s font). Headlines mix Light and Bold (<b>), like the old site.
   - Accent: set in colors.css, nowhere else.
   - Sizes, corners, shadows, spacing, and motion come from the values below. A missing value gets added here, never on one page.
   - Card text: titles --ink, descriptions --ink-2, small labels --ink-3.
   - Text is 15px or larger; contrast is 4.5:1 or better (banner text is 3:1 or better at 36px and up).
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face { font-family: "Myriad Pro"; src: url("fonts/myriad-pro-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Myriad Pro"; src: url("fonts/myriad-pro-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Myriad Pro"; src: url("fonts/myriad-pro-it.woff2") format("woff2"); font-weight: 300 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Myriad Pro"; src: url("fonts/myriad-pro-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Myriad Pro"; src: url("fonts/myriad-pro-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- DESIGN SYSTEM: shared values ---------- */
:root {
  color-scheme: light;
  /* colours (accent comes from colors.css) */
  --page: #efefee;          /* the light grey page of chalifourit.com, with its squairy pattern */
  --panel: #ffffff;         /* white panels on it */
  --ink: #1f2a33;           /* titles */
  --ink-2: #4d5760;         /* descriptions, body */
  --ink-3: #5f6870;         /* small labels and details */
  --line: rgba(31, 42, 51, 0.12);
  --accent: var(--accent-day);
  --accent-fill: var(--accent);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --on-accent: #ffffff;
  --bar: rgba(10, 10, 10, 0.7);            /* the header box: exactly the old site’s see-through black, no frost */
  --dark: #2f363c;                          /* testimonial slider */
  --home-shade: rgba(8, 40, 70, 0.16);      /* a light veil over the homepage blue so the white headline reads */
  --photo-shade: rgba(10, 20, 30, 0.12);    /* a lighter one over the page photos (no text on them) */
  --mark-ink: #1f2a33;
  --logo-plate: transparent;

  /* type */
  --sans: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;   /* body text */
  --head: var(--sans);      /* headlines: Myriad Pro too (Light, with Bold words) */
  --menu: var(--sans);      /* the menu and footer bar: Myriad Pro */
  --content-w: 1216px;      /* header box and content width (the old site used 1020px; widened in 2026, like brendanchalifour.ca) */
  --fs-body: 1.1875rem;     /* 19px: Myriad reads small */
  --fs-small: 1rem;         /* 16px */
  --fs-lede: 1.375rem;      /* 22px */
  --fs-h3: 1.625rem;        /* panel titles */
  --label-ls: 0.14em;
  /* fluid sizes: full size at --full-w (1216px) and up, shrink in proportion below, stop at the phone size */
  --full-w: 1216;
  --fs-display: clamp(2.6rem, calc(100vw * 96 / var(--full-w)), 6rem);      /* homepage headline: 96px full, 42px phone */
  --fs-caption: clamp(1.125rem, calc(100vw * 23 / var(--full-w)), 1.4375rem); /* the line under it: 23px full, 18px phone */
  --fs-h1: clamp(2.3rem, calc(100vw * 64 / var(--full-w)), 4rem);           /* page titles: 64px full, 37px phone */
  --fs-h2: clamp(1.9rem, calc(100vw * 42 / var(--full-w)), 2.625rem);       /* section titles: 42px full, 30px phone */
  --fs-quote: clamp(1.35rem, calc(100vw * 28 / var(--full-w)), 1.75rem);    /* testimonials: 28px full, 22px phone */
  --corner: clamp(36px, calc(100vw * 44 / var(--full-w)), 44px);            /* the logo mark in the corner */
  --banner-h: clamp(200px, 27vw, 330px);                                    /* page art banners: 330px, like the old site */
  --foot-space: 140px;      /* the footer bar and the grey gap above it: the homepage art leaves this much room */
  --logo-w: 188px;          /* the header logo (the old site’s size) … */

  /* shape */
  --r-sm: 6px;              /* buttons */
  --r-md: 8px;              /* screenshots, logo chips */
  --r-panel: 12px;          /* panels and the testimonial band’s quote area */
  --r-pill: 999px;
  --sh-panel: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 34px -20px rgba(20, 30, 40, 0.3);
  --sh-shot: 0 2px 4px rgba(0, 0, 0, 0.08), 0 16px 34px -16px rgba(0, 0, 0, 0.4);
  --sh-lift: 0 2px 4px rgba(0, 0, 0, 0.08), 0 20px 40px -16px rgba(0, 0, 0, 0.35);

  /* spacing */
  --wrap: 1216px;
  --gutter: clamp(16px, 4vw, 40px);
  --edge: clamp(16px, 2.4vw, 28px);   /* the top bar’s distance from the window edges */
  --gap: clamp(18px, 2.4vw, 30px);
  --pad: clamp(24px, 4vw, 52px);      /* inside panels */
  --band: clamp(56px, 8vw, 104px);    /* between sections */

  /* motion */
  --rise: -3px;
  --t-move: 0.3s;
  --ease-soft: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #13181d;
    --panel: #1b2228;
    --ink: #eef1f4;
    --ink-2: #c2c9d0;
    --ink-3: #a3acb5;
    --line: rgba(238, 241, 244, 0.12);
    --accent: var(--accent-night);
    --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--panel));
    --on-accent: #0b1520;
    --bar: rgba(8, 12, 16, 0.7);
    --dark: #0e1317;
    --home-shade: rgba(4, 18, 34, 0.5);
    --photo-shade: rgba(4, 10, 16, 0.4);
    --mark-ink: #eef1f4;
    --logo-plate: #ffffff;
    --sh-panel: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -20px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page) url("img/squairy-light.png") repeat; color: var(--ink-2); font: 400 var(--fs-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 300; color: var(--ink); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 b, h2 b, h3 b { font-weight: 700; }   /* the old site’s mix: light words, bold words */
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }   /* read by screen readers and search engines, not shown */
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--panel); padding: 8px 14px; }

/* small uppercase label */
.label { display: block; font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.label.spaced { margin-top: 1.75rem; }
/* the thin blue rule under a title, from the old site’s intro line */
.stick { display: block; width: 64px; height: 3px; background: var(--accent); border: 0; margin: 1.25rem auto 0; }

/* fade in on scroll (only when the script runs) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s var(--ease-soft); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Header: the chalifourit.com box, in 2026 glass ---------- */
/* A dark see-through box as wide as the content, at the top over the art: logo on the left, menu on the right.
   It scrolls away with the page like a normal header (it no longer stays pinned or slims down). */
.site-head { position: absolute; z-index: 6; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--content-w); display: flex; justify-content: space-between; align-items: flex-end; background: var(--bar); }
.logo-wrap { padding: 34px 40px; flex: none; }   /* the logo centred top to bottom in the box: 34px above and below its letters (measured) */
.logo-wrap img { width: var(--logo-w); height: auto; margin-bottom: 0; }
.nav { font-family: var(--menu); display: flex; flex-wrap: wrap; justify-content: flex-end; padding: 0 22px 0 0; margin-bottom: 13px; }   /* lifts the menu so its text sits on the same line as the bottom of “SOLUTIONS” in the logo (measured) */
.nav a { display: inline-block; font-size: 16px; line-height: 1; padding: 18px 16px 17px; color: #b4b4b4; text-decoration: none; }   /* hover switches instantly, like the old site (a fade made it flash on the way out) */
.nav a:hover { background: #dfdee4; color: #444; }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.nav a[aria-current="page"]:hover { color: #000; }
/* under 960px, like the old theme: the header sits above the art, full width, logo and menu centred */
@media (max-width: 959px) {
  .site-head { position: static; transform: none; max-width: none; flex-direction: column; align-items: center; background: #1f262c; }
  .logo-wrap { padding: 34px 20px 6px; }
  .logo-wrap img { width: 170px; margin-bottom: 13px; }
  .nav { justify-content: center; padding: 0 8px; margin: 0; }
}
@media (max-width: 479px) { .nav a { padding-inline: 10px; } }

/* ---------- Banners: faceted brand art ---------- */
/* Banner art, set with --art: the homepage (and the offline and 404 pages) use the 2500px faceted blue from the
   Brand folder (Brand/8); the inner pages use their pictures from the live site (below). The art never moves. */
.banner { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #3c9ad3; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--photo-shade), var(--photo-shade)), var(--art, none) center / cover no-repeat; }
.banner { --art: url("../media/banners/faceted-blue.jpg"); }
/* the inner pages use the same banner pictures as the live gochalifour.ca (largest copies from the live site) */
.banner.web { --art: url("../media/banners/web-tablet.jpg"); }
.banner.business { --art: url("../media/banners/business-team.jpg"); }
.banner.design { --art: url("../media/banners/design-abstract.jpg"); }
.banner.about { --art: url("../media/banners/about-edmonton.jpg"); }
/* home: the art fills the window less the footer (--foot-space), so the footer bar shows; the art stays still */
.banner.home { min-height: max(480px, calc(100vh - var(--foot-space))); min-height: max(480px, calc(100svh - var(--foot-space))); display: grid; place-items: center; text-align: center; padding: 150px var(--gutter) 110px; }
.banner.home::before { background: linear-gradient(var(--home-shade), var(--home-shade)), var(--art) center / cover no-repeat; }
.caption h1 { font-family: var(--head); font-size: var(--fs-display); font-weight: 300; line-height: 1.02; color: #fff; margin: 0 auto 28px; max-width: 11em; text-shadow: 0 2px 30px rgba(0, 20, 40, 0.25); }
.caption h1 b { font-weight: 700; }
.caption-body { font-family: var(--menu); font-size: var(--fs-caption); line-height: 1.4; color: #fff; max-width: 24em; margin: 0 auto; text-shadow: 0 1px 14px rgba(0, 20, 40, 0.3); }
/* home, modern: words on the left in line with the logo, two screenshots layered on the right */
.banner.home.modern { place-items: center stretch; text-align: left; }
.hero-grid { width: 100%; max-width: var(--content-w); margin-inline: auto; display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .banner.home.modern { padding-inline: 0; } .hero-grid { grid-template-columns: 1fr 1fr; padding-inline: 40px; } .modern .caption h1 b { white-space: nowrap; } }   /* 40px = the header's logo padding, so the headline lines up with the logo */
.modern .caption h1 { font-size: clamp(2.5rem, calc(100vw * 66 / var(--full-w)), 4.125rem); line-height: 1.02; letter-spacing: -0.02em; max-width: none; margin: 0 0 22px; }   /* sized so the bold line fits half the width on one line */
.modern .caption h1 b { display: block; }   /* the headline changes weight once: light first line, bold second line */
.modern .caption-body { max-width: 26em; margin: 0; opacity: 0.92; }
.hero-label { display: inline-block; margin-bottom: 26px; padding: 7px 16px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.04em; color: #fff; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn.light { background: #fff; border-color: #fff; color: #0b4f80; }
.hero-stack { --stagger: 80px; display: grid; gap: 14px; width: 86%; margin-left: auto; }   /* the two sites stacked, close together */
.hero-pic { display: block; width: calc(100% - var(--stagger)); border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 20, 40, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15); transition: transform var(--t-move) var(--ease-soft); }
.hero-pic img { display: block; width: 100%; height: auto; }
.hero-pic.p1 { justify-self: end; }   /* the second site starts --stagger further left than the first */
.hero-pic.p2 { justify-self: start; }
.hero-stack:hover .p1 { transform: translateY(-4px); }
.hero-stack:hover .p2 { transform: translateY(4px); }
@media (max-width: 959px) { .banner.home.modern { text-align: center; } .modern .caption h1, .modern .caption-body { margin-inline: auto; } .hero-btns { justify-content: center; } }
@media (max-width: 959px) { .hero-stack { display: none; } }
@media (max-width: 599px) { .banner.home.modern { padding-block: 36px; } .hero-label { margin-bottom: 18px; } .hero-btns { margin-top: 24px; } .hero-btns .btn { padding: 11px 18px; } }   /* phones: tighter, so the footer stays in view */   /* the screenshots only show beside the words, so the footer stays in view on phones and tablets */
@media (max-width: 959px) { .banner.home { min-height: max(360px, calc(100svh - var(--foot-space) - 210px)); padding-top: 64px; padding-bottom: 64px; } }   /* the header sits above the art here */
/* every other page: a short art banner (330px, like the old site), then the light-and-bold title centred on the grey page */
.banner.page { height: var(--banner-h); }
.page-title { padding-block: clamp(36px, 5vw, 56px) clamp(28px, 3.5vw, 40px); text-align: center; }
.page-title p { font-size: var(--fs-lede); max-width: 44rem; margin: 1.1rem auto 0; }
.btn.ghost.light { color: #fff; border-color: rgba(255, 255, 255, 0.7); }

/* ---------- Button ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; line-height: 1.2; padding: 13px 26px; border-radius: var(--r-sm); border: 2px solid var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); text-decoration: none; cursor: pointer; transition: transform var(--t-move) var(--ease-soft), box-shadow var(--t-move); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-shot); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btns.center { justify-content: center; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

/* ---------- Panels: white boxes on the grey page ---------- */
.section { padding-bottom: var(--band); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(24px, 3vw, 36px); }
.section-head p { margin-top: 0.9rem; font-size: var(--fs-lede); }
.panel { background: var(--panel); padding: var(--pad); box-shadow: var(--sh-panel); border-radius: var(--r-panel); }
.panel + .panel { margin-top: var(--gap); }
.panel h2 { margin-bottom: 1rem; }
.cols .panel h2 { font-size: var(--fs-h3); font-weight: 400; }   /* side-by-side panels: a card-size title */
.panel .lede { font-size: var(--fs-lede); }
.intro { text-align: center; padding-block: var(--band); }
.intro p { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 300; line-height: 1.45; max-width: 46rem; margin: 0 auto; color: var(--ink); }
.cols { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cols.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
a.panel { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform var(--t-move) var(--ease-soft), box-shadow var(--t-move); }
a.panel:hover { transform: translateY(var(--rise)); box-shadow: var(--sh-lift); }
a.panel:hover .more { text-decoration: underline; }
.panel .more { margin-top: auto; padding-top: 1.25rem; }
.icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); display: grid; place-items: center; margin-bottom: 1.25rem; }
.icon svg { width: 28px; height: 28px; }
.center .icon { margin-inline: auto; }
.feature h3 { margin-bottom: 0.5rem; }

/* ---------- Modern layout (2026): open bands instead of boxes, headings on the left, words beside pictures ---------- */
.band { padding-block: var(--band); }
.band.white { background: var(--panel); }
.band + .band { padding-top: 0; }
.band.white + .band, .band + .band.white { padding-top: var(--band); }
.band-head { margin-bottom: clamp(24px, 3.5vw, 40px); max-width: 44rem; }
.band-head h2 { font-size: var(--fs-h2); }
.big-title { font-size: clamp(2rem, calc(100vw * 48 / var(--full-w)), 3rem); line-height: 1.08; margin-bottom: 1.25rem; }
.duo { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1.15fr; } }
.hero-shot .frame { box-shadow: var(--sh-lift); }
/* the Essentials as an open grid: a blue quarter mark and a short line each, divided by hairlines */
.tick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line); }
.tick-grid li { position: relative; padding: 18px 12px 18px 34px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: var(--fs-lede); line-height: 1.35; }
.tick-grid li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 14px; height: 14px; background: var(--accent); border-bottom-right-radius: 100%; }
/* the work as an open gallery, the first site large across two columns */
.gallery.modern { gap: clamp(28px, 3.4vw, 44px) var(--gap); align-items: start; }
@media (min-width: 900px) { .gallery.modern { grid-template-columns: repeat(3, 1fr); } .gallery.modern .shot.big { grid-column: span 2; grid-row: span 2; } }
.gallery.modern .shot figcaption { font-size: var(--fs-body); }
.duo.top { align-items: start; }
/* two halves: on the left the heading, words, and a list; on the right a picture from the first line of the words down. Phones: heading, words, picture, list */
.side-by { display: grid; grid-template-areas: "head" "text" "side" "list"; column-gap: clamp(32px, 5vw, 72px); }
.side-by .s-head { grid-area: head; } .side-by .s-text { grid-area: text; } .side-by .s-side { grid-area: side; margin-top: 1.5rem; } .side-by .s-list { grid-area: list; }
@media (min-width: 900px) { .side-by { grid-template-columns: 1fr 1fr; grid-template-areas: "head ." "text side" "list side"; } .side-by .s-side { margin-top: 0; } }
.side-by .s-text p:last-child { margin-bottom: 0; }
.side-by .s-list { margin-top: 1.5rem; }
@media (min-width: 900px) { .duo.even { grid-template-columns: 1fr 1fr; } .duo.wide-right { grid-template-columns: 1fr; } }
@media (min-width: 1200px) { .duo.wide-right { grid-template-columns: 1fr 1.4fr; } }   /* side by side only when the chart has room; stacked below that */
.duo > * { min-width: 0; }   /* a wide chart scrolls inside its column instead of stretching it */
.flow-title.first { margin-top: 0; }
@media (min-width: 600px) { .product-cards.two { grid-template-columns: 1fr 1fr; } }   /* the two email products side by side */
.duo .tick-grid.one { margin-top: 1.5rem; }   /* a short list under the words */
.tick-grid.across { grid-column: 1 / -1; }   /* the points in one row across the whole width under the words and chart */
@media (min-width: 900px) { .tick-grid.across { grid-template-columns: repeat(4, 1fr); } }
.flow-title { font-size: var(--fs-h3); margin: clamp(28px, 3vw, 40px) 0 16px; }
.tick-grid.one { grid-template-columns: 1fr; }
/* Email & Phone: each email product as a small white card with its logo and apps */
.product-cards { display: grid; gap: var(--gap); }
.product-card { background: var(--panel); border-radius: var(--r-panel); box-shadow: var(--sh-panel); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; justify-items: center; align-content: center; }   /* logo and apps centred in the card at every size */
.product-card .logo-chip { max-width: 100%; }
.product-card .logo-chip img { width: auto; height: auto; max-width: 100%; max-height: 30px; }   /* shrinks evenly in a narrow card, never stretched */
.product-card > img { width: 100%; max-width: 360px; height: auto; }
.band.white .flow-node, .band.white .fc-box { fill: var(--panel); }

/* ---------- Lists ---------- */
.checks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.checks li { position: relative; padding-left: 1.6rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 0.7em; height: 0.7em; background: var(--accent); border-bottom-right-radius: 100%; }   /* the logo’s blue quarter */
.checks.cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0.6rem var(--gap); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.steps b { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0.25rem 0 0; }
.chips li { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 16px; color: var(--ink); font-size: var(--fs-small); }

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
.shot .frame { display: block; overflow: hidden; border-radius: var(--r-md); background: var(--panel); box-shadow: var(--sh-shot); border: 1px solid var(--line); cursor: zoom-in; }
.shot .frame img { width: 100%; height: auto; transition: transform 0.6s var(--ease-soft); }
.shot .frame:hover img { transform: scale(1.04); }
/* full-size view of a screenshot (script.js opens it; without the script the link opens the picture) */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, calc(100vw - 208px)); max-height: 92vh; overflow: visible; }   /* room at the sides for the arrows */
.lightbox::backdrop { background: rgba(8, 12, 16, 0.86); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; border-radius: var(--r-md); box-shadow: var(--sh-lift); cursor: pointer; }   /* a click goes to the next picture */
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox .lb-count { opacity: 0.7; font-size: var(--fs-small); margin-top: 4px; }
/* the buttons sit fixed on the screen, outside the picture, the same place whatever its size */
.lightbox button { position: fixed; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox button { display: grid; place-items: center; padding: 0; }
.lightbox button svg { width: 45%; height: 45%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; width: 52px; height: 52px; transform: translateY(-50%); font-size: 2rem; }
.lightbox .lb-prev { left: 28px; }
.lightbox .lb-next { right: 28px; }
@media (max-width: 699px) { .lightbox { max-width: calc(100vw - 24px); } .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; } .lightbox .lb-prev, .lightbox .lb-next { background: rgba(8, 12, 16, 0.6); } }   /* phones: no room beside the picture, so the arrows sit over its edges */
.shot figcaption { padding-top: 12px; color: var(--ink); font-weight: 600; line-height: 1.3; }
.shot figcaption span { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--fs-small); }
.gallery { display: grid; gap: clamp(24px, 3vw, 36px) var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
/* the retro picture: the 2013 site shown as a framed print */
.retro { margin: 0; }
.retro .print { background: #fff; padding: clamp(10px, 1.6vw, 18px); box-shadow: var(--sh-lift); transform: rotate(-1deg); border-radius: 2px; }
.retro figcaption { margin-top: 1.25rem; color: var(--ink-3); font-size: var(--fs-small); text-align: center; font-style: italic; }

/* ---------- Testimonials: a full-width dark band, the faceted art faint behind it, one big quote at a time ---------- */
.quotes-band { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff; padding-block: var(--band); }
.quotes-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../media/banners/faceted-blue.jpg") center / cover no-repeat; opacity: 0.14; mix-blend-mode: luminosity; }
.quotes-band .section-head h2 { color: #fff; }
.slider { position: relative; }
.slide { margin: 0 auto; max-width: 980px; display: grid; gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (min-width: 760px) { .slide { grid-template-columns: 1fr auto; } }
.slide + .slide { margin-top: 48px; }
.js .slider .slides { display: grid; }
.js .slider .slide { grid-area: 1 / 1; margin-top: 0; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity 0.8s ease, transform 0.8s var(--ease-soft), visibility 0.8s; }
.js .slider .slide.on { visibility: visible; opacity: 1; transform: none; }
.slide blockquote { margin: 0; font-weight: 300; font-size: var(--fs-quote); line-height: 1.45; color: #fff; }
.slide figcaption { margin-top: 1.25rem; font-weight: 600; color: #fff; font-size: var(--fs-small); }
.slide figcaption span { font-weight: 400; color: rgba(255, 255, 255, 0.78); }
.slide .face { width: clamp(96px, 12vw, 150px); height: clamp(96px, 12vw, 150px); border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, 0.15); }
.slide .face.blank { display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); padding: 26%; }
.dots { display: none; justify-content: center; gap: 4px; margin-top: 1.5rem; }
.js .dots { display: flex; }
.dots button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background var(--t-move); }
.dots button[aria-current="true"]::before { background: #fff; }

/* ---------- Call flow (Email & Phone): the live page’s chart, redrawn as an SVG ---------- */
.flow { margin: 0; }
.flow-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fc { display: block; width: 100%; min-width: 900px; height: auto; font-family: var(--sans); }   /* under 900px it scrolls sideways, so the words stay readable */
.fc-line { fill: none; stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 2; }
.fc-box { fill: var(--panel); stroke: color-mix(in srgb, var(--ink) 16%, transparent); stroke-width: 1.5; filter: drop-shadow(0 6px 12px rgba(20, 30, 40, 0.08)); }
.fc-text { fill: var(--ink); font-size: 18px; }
.fc-ico { stroke: var(--ink-2); }
.fc-key circle { fill: var(--panel); stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 2; }
.fc-key text { fill: var(--ink-3); font-size: 24px; font-weight: 300; }
.fc-tag rect { fill: #3a4148; }
.fc-tag text { fill: #fff; font-size: 15px; }
.fc-end circle { fill: var(--panel); stroke-width: 2; stroke: currentColor; }
.fc-end .fc-ico { stroke: currentColor; }
.fc-end.fc-incoming { color: #3d9a46; }
.fc-end.fc-rings { color: var(--accent); }
.fc-end.fc-forward { color: #7b55c7; }
.fc-end.fc-repeat { color: #e6a12a; }
.fc-end.fc-hangup { color: #e0413b; }
.fc-rings { fill: currentColor; font-size: 20px; }
.flow-hint { display: none; margin: 0 0 0.75rem; text-align: center; color: var(--ink-3); font-size: var(--fs-small); }
@media (max-width: 959px) { .flow-hint { display: block; } }   /* the chart is wider than the screen here */
/* the compact chart (half the width) fits a column: it only scrolls on small phones */
.fc.compact { min-width: 520px; max-width: 800px; }   /* fits its column from 1024 wide up; scrolls sideways only on phones */
.fc.compact .fc-text { font-size: 15px; }
.flow.compact .flow-hint { display: none; }
@media (max-width: 619px) { .flow.compact .flow-hint { display: block; } }
.flow.compact figcaption { text-align: left; margin-inline: 0; }
.flow figcaption { margin-top: 1.25rem; color: var(--ink-3); font-size: var(--fs-small); text-align: center; max-width: 46rem; margin-inline: auto; }
@media (prefers-color-scheme: dark) { .fc-tag rect { fill: #5a636c; } }

/* ---------- Contact strip ---------- */
.contact { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (min-width: 860px) { .contact { grid-template-columns: auto 1fr auto; } }
.contact .face { width: clamp(110px, 12vw, 150px); height: clamp(110px, 12vw, 150px); border-radius: 50%; object-fit: cover; }
.contact-list { margin: 0; display: grid; gap: 0.9rem; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--ink-3); }
.contact-list dd { margin: 0; font-weight: 300; font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.3; color: var(--ink); word-break: break-word; }

/* email and phone slots: same rules as brendanchalifour.ca */
[data-reveal] { display: inline-flex; align-items: center; min-height: 2.3rem; max-width: 100%; vertical-align: middle; }
[data-reveal] a { font-size: inherit; line-height: 1.3; white-space: nowrap; text-decoration: none; }   /* same size as the other contact details */
.reveal-btn { font: inherit; background: none; border: 0; border-bottom: 1px dashed currentColor; border-radius: 0; padding: 0 0 2px; cursor: pointer; color: inherit; line-height: 1.3; white-space: nowrap; }   /* same font and size as the details, a quiet dashed line says it can be tapped */

/* ---------- Logos ---------- */
ul.logos { margin: 0; padding: 0; }
.logos { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-items: center; }   /* two across on phones */
.logos li { list-style: none; background: var(--logo-plate); border-radius: var(--r-md); padding: 12px 16px; display: grid; place-items: center; height: clamp(80px, 8vw, 100px); }
.logos img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; }
/* Design: the client logos straight on the page, no boxes, two across. Everything is a share of the wall's width
   (each logo's space is a 2:1 box, the gap 6%), so the wall looks the same at any screen size, only larger or
   smaller. In dark mode they sit on a white plate (--logo-plate), since most are dark ink. */
.logos.wall { --wall-gap: 6%; grid-template-columns: repeat(2, 1fr); gap: 0 var(--wall-gap); align-self: start; align-content: start; width: 100%; max-width: 572px; justify-self: center; }   /* only as tall as its logos; never wider than on a full-size screen (572px), so tablets don't blow the logos up */
.logos.wall li { height: auto; aspect-ratio: 2 / 1; padding: 0; }
.logos.wall img { width: auto; height: auto; max-width: calc(86% * var(--logo-scale, 1)); max-height: calc(64% * var(--logo-scale, 1)); }   /* a share of its box, so it can't stretch */
.logos.wall li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--wall-gap)) / 2); }   /* an odd last logo sits centred on its own row, the same size as the others */
@media (min-width: 900px) { .side-by .logos.wall li:nth-child(-n+2) { align-items: start; } }   /* beside words: the top logos level with the first line of the words */
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.logo-row img { height: 26px; width: auto; }
.logo-chip { background: var(--logo-plate); border-radius: var(--r-md); padding: 8px 12px; display: inline-block; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (min-width: 820px) { .about { grid-template-columns: minmax(200px, 280px) 1fr; } }
.about .photo { width: 100%; border-radius: var(--r-sm); }
.about .who { margin-top: 1.5rem; color: var(--ink-3); font-size: var(--fs-small); }
.about .who b { display: block; color: var(--ink); font-size: var(--fs-body); font-weight: 600; }
.about .who { margin-bottom: 1rem; }
.about .map { max-width: 320px; margin-top: 1.5rem; }
/* Contact, modern: the client map beside the words, and the person (photo, name, role) beside the details */
.client-map { margin: 0; justify-self: center; width: min(100%, 300px); }
/* a duo that sits together in the middle: each side only as wide as its content, centred with a set gap */
@media (min-width: 900px) { .duo.snug { grid-template-columns: auto auto; justify-content: center; column-gap: clamp(64px, 9vw, 140px); } .duo.snug .client-map { width: 340px; align-self: end; } }   /* the map's bottom level with the bottom of the name and role */
.client-map img { width: 100%; height: auto; }
.duo .contact-list { margin-top: 1.75rem; }
.person { justify-self: center; display: grid; justify-items: center; text-align: center; gap: 1rem; }
.person .photo { width: clamp(160px, 18vw, 240px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--sh-panel); }
.person .who { margin: 0; color: var(--ink-3); font-size: var(--fs-small); }
.person .who b { display: block; color: var(--ink); font-size: var(--fs-lede); font-weight: 600; }
/* the person as a small row under the details: round photo, then name and role */
.person.row { justify-self: start; grid-template-columns: auto 1fr; align-items: center; justify-items: start; text-align: left; gap: 1rem; margin-top: 2rem; }
.person.row .photo { width: 72px; }
/* Email & Phone: each product’s logo with its apps */
.products { display: grid; gap: 18px; margin-top: 1.5rem; }

/* ---------- Footer bar: copied from chalifourit.com, the colour logo mark centred on a plain white bar ---------- */
/* The bar stays right after the content; on short pages the white carries on below it to the bottom of the window
   (the window behind the page is white, and the grey belongs to the page itself). */
html { background: #fff; }
/* one line: the mark on the left of the copyright, centred */
.site-foot { margin-top: 60px; background: #fff; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 10px; padding: 30px var(--gutter); font-family: var(--menu); font-size: 13px; line-height: 1.3; color: #555; }
.site-foot a { display: block; flex: none; position: relative; top: -0.108em; }   /* the mark's middle level with the middle of the capital letters (measured), not the line box */
.site-foot img { width: 18px; height: auto; }
.site-foot p { margin: 0; }
@media (prefers-color-scheme: dark) { html { background: var(--panel); } body { background-image: none; } .site-foot { background-color: var(--panel); } .site-foot p { color: var(--ink-3); } }

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

/* ---------- PRINT: plain black and white for every page ---------- */
@media print {
  :root { --accent: #000; --accent-fill: #fff; --on-accent: #000; --ink: #000; --ink-2: #000; --ink-3: #333; --page: #fff; --panel: #fff; --line: #999; --accent-soft: #fff; --dark: #fff; --bar: #fff; }
  body { font-size: 11pt; background: #fff; }
  .site-head { position: static; transform: none; background: none; padding: 0 0 12pt; }
  .logo-wrap { padding: 0; } .logo-wrap img { filter: invert(1); width: 160px; }
  .nav, .btns, .skip, .reveal-btn, .dots, .site-foot, .lightbox { display: none !important; }
  .banner { background: none !important; min-height: 0 !important; padding: 0 0 12pt !important; color: #000; text-align: left; }
  .banner::before, .quotes-band::before { display: none; }
  .banner.page { display: none !important; }
  .caption h1, .caption-body { color: #000; text-shadow: none; margin-inline: 0; }
  .caption h1 { font-size: 24pt; }
  .quotes-band { background: none; color: #000; padding: 0; }
  .quotes-band .section-head h2 { color: #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .slider .slide { visibility: visible !important; opacity: 1 !important; margin-bottom: 12pt; }
  .js .slider .slides { display: block; }
  .slider, .slide blockquote, .slide figcaption, .slide figcaption span { color: #000; }
  .slider::after { display: none; }
  .panel, .shot .frame, .retro .print { box-shadow: none !important; border: 1px solid #999; transform: none !important; break-inside: avoid; }
  .shot .frame { max-width: 60%; }
  .section, .intro { padding-block: 10pt; }
  h1 { font-size: 24pt; } h2 { font-size: 18pt; } h3 { font-size: 14pt; }
  a { color: #000; text-decoration: none; }
}
