/*
 * hidayahtech.com one-page redesign (KB-45, 2026-10-16), on the HidayahTech 2020 Design Manual.
 * Type (2026-11-12, Basil's October picks, KB-52 synthesis): Newsreader headings (Editorial report),
 * IBM Plex Sans body and Plex Mono labels (Operations desk). Self-hosted, OFL (fonts/*-OFL.txt).
 * Color: the manual's six brand colors (04) plus white; every other value is a tint or shade of one of them.
 * Motif: the arch colonnade in the home hero (Arch and pattern), the brand rosette in the hero and the
 * contact band only, small teardrops as glyphs, and the manual's gradient once, on the product cards.
 */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Light, Dark or Auto (2026-11-13, Basil's pick "Add all three" on card web12-site-features-1333).
 * Auto, the default, follows the device; view-head.js sets data-theme on <html> for Light or Dark before
 * the first paint. Every role below is light-dark(light value, dark value), resolved by each element's
 * color-scheme, so the two dark blocks (the closing band and the footer) are simply color-scheme: dark. */
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

:root {
  /* Brand palette (Design Manual, 04 Color Codes). */
  --deep-purple: #221629;
  --deep-grey-blue: #2b2c3d;
  --mid-blue-1: #51627b;
  --mid-blue-2: #597087;   /* not used for text: 4.4:1 on the tinted surfaces */
  --light-blue: #88afc2;   /* decoration only on light surfaces: 2.3:1 on white */
  --warm-pale-grey: #f0eeef;

  /* Roles: light-dark(light, dark). Light contrast is against white, Warm Pale Grey and the Light Blue
   * 20% band; dark contrast against Deep Purple, Deep Grey Blue and the #313446 tint. */
  --c-ink: light-dark(var(--deep-purple), var(--warm-pale-grey));   /* 17.3:1 white · 15.0:1 Deep Purple, 11.9:1 Deep Grey Blue */
  --c-body: light-dark(var(--deep-grey-blue), #dcdadb);              /* 13.7:1 white · 12.2:1 / 9.7:1 */
  --c-muted: light-dark(var(--mid-blue-1), #acb8c3);                 /* 6.2:1 white, 5.3:1 band · 8.6:1 / 6.8:1 */
  --c-primary: light-dark(var(--mid-blue-1), var(--light-blue));     /* links · 7.4:1 / 5.9:1 */
  --c-primary-hover: light-dark(var(--deep-grey-blue), #c4d7e1);
  --c-on-primary: light-dark(#ffffff, var(--deep-purple));
  --c-accent: var(--light-blue);                                     /* rules and glyphs only */
  --c-bg: light-dark(#ffffff, var(--deep-purple));
  --c-surface: light-dark(#ffffff, var(--deep-grey-blue));
  --c-band: light-dark(#e7eff3, var(--deep-grey-blue));              /* Light Blue at 20% on white */
  --c-pale: light-dark(var(--warm-pale-grey), var(--deep-grey-blue));
  --c-tint: light-dark(#e7eff3, #313446);
  --c-tile: light-dark(#e7eff3, #313446);
  --c-border: light-dark(#d4d8de, #424c62);                          /* decorative; cards are not controls */
  --c-rule: light-dark(#c9d6de, #424c62);
  --c-focus: light-dark(var(--deep-purple), var(--warm-pale-grey));
  --c-button: light-dark(var(--deep-purple), var(--light-blue));     /* white on Deep Purple 17.3:1 · Deep Purple on Light Blue 7.4:1 */
  --c-button-hover: light-dark(var(--deep-grey-blue), #c4d7e1);
  --c-on-button: light-dark(#ffffff, var(--deep-purple));
  --c-rosette: light-dark(rgb(81 98 123 / 0.2), rgb(136 175 194 / 0.2));  /* decoration only */
  /* The manual's gradient (07): Light Blue to Deep Grey Blue to Deep Purple. No text sits on it. */
  --gradient: linear-gradient(90deg, var(--light-blue), var(--deep-grey-blue) 70%, var(--deep-purple));
  /* A small filled teardrop, pointing down, for markers and separators. */
  --drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath fill='%2351627b' d='M6 14L1.4 7.9A5 5 0 1 1 10.6 7.9Z'/%3E%3C/svg%3E");

  --font: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-label: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 72rem;
  --measure: 65ch;
  --gutter: clamp(1rem, 4cqw, 2rem);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --section-pad: clamp(3.5rem, 8cqw, 6rem);
  --shadow: 0 1px 2px rgb(34 22 41 / 0.06), 0 8px 24px rgb(34 22 41 / 0.05);
  --shadow-lift: 0 4px 10px rgb(34 22 41 / 0.08), 0 14px 32px rgb(34 22 41 / 0.08);
}

/* In light, a light page with two dark blocks: the closing band and the footer (Basil, 2026-10-13: "a mix
 * of dark and light elements"). In dark, the whole page is dark and the two blocks keep their look. */
.cta-band, .site-footer {
  color-scheme: dark;
  color: var(--c-body);
  background: var(--c-bg);
}
/* Hero: Warm Pale Grey with Deep Purple text and buttons; in dark, Deep Grey Blue. */
.hero {
  --c-body: light-dark(var(--deep-purple), #dcdadb);   /* 15.0:1 · 9.7:1 */
  --c-primary: light-dark(var(--deep-purple), var(--light-blue));
  --c-primary-hover: light-dark(var(--deep-grey-blue), #c4d7e1);
  --c-tint: light-dark(#e0dcdf, #313446);
  --c-hero-ink: light-dark(var(--deep-purple), var(--warm-pale-grey));
  --c-hero-rule: light-dark(#d9d4d8, #424c62);
  color: var(--c-body);
  background: var(--c-pale);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.65;
  color: var(--c-body);
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;   /* focused and anchored targets clear the sticky header (2.4.11) */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-size: 1.0625rem;
  background: var(--c-bg);
  overflow-wrap: break-word;
  /* The text size control zooms <html>, and media queries don't see zoom, so every width break below
   * is a container query on the page (body > *, since a container can't query itself) and widths use
   * cqw, not vw: at 200% a 1280 px screen lays out as 640 px. */
  container: page / inline-size;
}
@container page (min-width: 48rem) { body > * { font-size: 1.125rem; } }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.15; font-family: var(--font-head); font-weight: 500; margin: 0 0 0.75rem; }
h1 {
  font-size: clamp(2.5rem, 6cqw, 4.25rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em;
  max-width: 18ch; text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.8cqw, 2.75rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.012em; text-wrap: balance; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }

/* Inline links are underlined everywhere; color is never the only cue. */
a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { color: var(--c-primary-hover); text-decoration-thickness: 0.14em; }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--c-surface); color: var(--c-primary);
  padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Icon and rosette sprites are drawn with strokes in the current text color. */
.icon, .rosette { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.8; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border: 2px solid var(--c-button);
  border-radius: 0.5rem;
  background: var(--c-button);
  color: var(--c-on-button);
  font-weight: 600; font-size: 1.05rem; line-height: 1.3;
  text-decoration: none;
}
/* One button look per surface: Deep Purple on light surfaces, Light Blue in the dark band. */
.button:hover { background: var(--c-button-hover); border-color: var(--c-button-hover); color: var(--c-on-button); }
.button--quiet { background: transparent; color: var(--c-button); }
.button--quiet:hover { background: var(--c-tint); color: var(--c-button); border-color: var(--c-button); }
.button--small { padding: 0.45rem 0.95rem; font-size: 0.98rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--c-bg) 94%, transparent);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.375rem; }
.brand { display: inline-flex; padding: 0.5rem 0; }
.brand picture { display: block; }
.brand img { display: block; width: clamp(10rem, 100cqw - 9.5rem, 15rem); height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { display: flex; gap: 1.1rem; list-style: none; }
.site-nav ul a {
  display: inline-block; padding: 0.4rem 0.1rem;
  color: var(--c-ink); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: var(--c-primary); border-bottom-color: currentColor; }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--c-accent); }
.nav-cta { white-space: nowrap; }
/* Between the fold and wide screens the logo and five items are tight: narrow the logo and gaps. */
@container page (min-width: 52.01rem) and (max-width: 64rem) {
  .brand img { width: 11.5rem; }
  .site-nav { gap: 0.9rem; }
  .site-nav ul { gap: 0.8rem; }
  .site-nav ul a { font-size: 0.95rem; }
}

.nav-toggle { display: none; }

@container page (max-width: 52rem) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0.25rem 0 1rem; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--c-border); }
  .site-nav ul a:hover { border-bottom-color: var(--c-border); text-decoration: underline; }
  .nav-cta { align-self: flex-start; }

  /* With JS, the nav folds behind a real button; without JS it simply stays open. */
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.55rem;
    min-height: 2.75rem; padding: 0.4rem 0.85rem;
    border: 2px solid var(--c-border); border-radius: 0.5rem;
    background: var(--c-surface); color: var(--c-ink);
    font: inherit; font-weight: 700; cursor: pointer;
  }
  .js .nav-toggle:hover { border-color: var(--c-primary); }
  .js .nav-toggle[aria-expanded="false"] + .site-nav { display: none; }
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 1px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Rosette (decoration; never behind text) ---------- */
.has-rosette { position: relative; overflow: hidden; }
.has-rosette > .wrap, .has-rosette > .panel-wrap { position: relative; z-index: 1; }
.rosette {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(260px, 34cqw, 460px); height: auto; aspect-ratio: 1;
  color: var(--c-rosette); stroke-width: 1.3;
}
/* Centered behind the arch colonnade, so the arches stand in front of the pattern. */
.rosette--hero { right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); top: 50%; translate: 4% -58%; width: clamp(300px, 36cqw, 520px); }
.rosette--contact { right: -120px; bottom: -160px; }
@container page (max-width: 64rem) { .rosette--hero { right: -22%; } }
@container page (max-width: 52rem) { .rosette--hero { display: none; } }
@container page (max-width: 40rem) { .rosette--contact { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8cqw, 6rem) 0 clamp(2.5rem, 5cqw, 3.5rem); }
.hero-text { max-width: 40rem; }
/* The manual's "—— Label" device, in sentence case. */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-label); font-weight: 400; font-size: 0.9rem; color: var(--c-muted); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; flex: 0 0 2rem; height: 2px; border-radius: 1px; background: var(--c-accent); }
.hero .eyebrow::before { background: var(--c-hero-ink); }
.lede { font-size: clamp(1.15rem, 2.2cqw, 1.375rem); font-weight: 500; line-height: 1.5; max-width: 38rem; color: var(--c-body); }
.lede + p { max-width: 38rem; }

/* Home hero: the arch colonnade from Arch and pattern (Basil, 2026-10-17: "The arch and pattern really
 * stood out to me with the hero section"), beside the text on wide screens and small above it on phones.
 * Screens are desaturated with a Mid Blue wash, as the brandbook treats imagery. */
.hero-grid {
  display: grid; align-items: center; column-gap: clamp(2rem, 5cqw, 4rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "text arches" "proof proof";
}
.hero-grid > .hero-text { grid-area: text; }
.hero-grid > .colonnade { grid-area: arches; }
.hero-grid > .hero-proof { grid-area: proof; }
.colonnade {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end;
  gap: clamp(0.6rem, 1.8cqw, 1.25rem); width: min(100%, 32rem); justify-self: end;
}
.arch { margin: 0; }
.arch-mask { position: relative; overflow: hidden; border-radius: 9999px 9999px 0 0; aspect-ratio: 4 / 5; background: #c3d5de; }
.arch--tall .arch-mask { aspect-ratio: 2 / 3; }
.arch-mask img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.arch--tall img { object-position: center top; }
.treated img { filter: grayscale(0.6) contrast(0.95); }
.treated::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--mid-blue-1); mix-blend-mode: multiply; opacity: 0.22; }
@container page (max-width: 52rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "arches" "text" "proof"; }
  .colonnade { width: min(100%, 15rem); justify-self: start; margin-bottom: 2rem; }
}

.hero-proof { margin-top: clamp(2.5rem, 5cqw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--c-hero-rule); position: relative; }
/* Every name carries its own teardrop, so a wrapped line never starts with a stray separator. */
.hero-proof ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.6rem; list-style: none; }
.hero-proof li { font-family: var(--font-label); font-size: 0.95rem; color: var(--c-hero-ink); white-space: nowrap; }
/* On phones a long item wraps instead of running out of the clipped hero. */
@container page (max-width: 36rem) { .hero-proof li { white-space: normal; } }
.hero-proof li::before {
  content: ""; display: inline-block; width: 7px; height: 8px; margin-right: 0.55rem;
  vertical-align: 0.15em; background: var(--drop) center / contain no-repeat;
}

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section--band { background: var(--c-band); }
.section--pale { background: var(--c-pale); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3cqw, 2.5rem); }
.section-head > h2::after, .split-head > h2::after {
  content: ""; display: block; width: 2.5rem; height: 3px; margin-top: 0.75rem;
  border-radius: 2px; background: var(--c-accent);
}
.section-intro { font-size: 1.15rem; max-width: 42rem; margin: 1rem 0 0; }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }

/* Inset rounded panel (the cost, how we work). */
.panel {
  max-width: calc(var(--max) + 4rem); margin: 0 auto;
  border-radius: var(--radius-lg); border: 1px solid var(--c-border);
  padding: clamp(2.25rem, 6cqw, 4.5rem) 0;
}
.panel-wrap { padding: 0 var(--gutter); }
.panel--blue { background: var(--c-band); }
.panel--pale { background: var(--c-pale); }
/* Inset panels carry their own padding, so the section around them only needs half. */
.section--inset { padding-inline: var(--gutter); padding-block: calc(var(--section-pad) / 2); }
/* On phones the inset panels go full width, so nested cards keep a readable measure. */
@container page (max-width: 40rem) {
  .section--inset { padding-inline: 0; }
  .panel { border-radius: 0; border-inline: 0; }
}

/* ---------- The cost ---------- */
.cost-close { margin-top: 2.25rem; display: grid; gap: 0 4rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); padding-top: 2rem; border-top: 1px solid var(--c-rule); }
.cost-close p { margin: 0; }
.cost-close .cost-turn { font-family: var(--font-head); font-size: 1.5rem; font-weight: 400; color: var(--c-ink); line-height: 1.35; }
@container page (max-width: 52rem) { .cost-close { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 3cqw, 1.85rem); border-radius: var(--radius);
  background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.6rem; }
.card p { margin-bottom: 0.85rem; }
.icon-tile {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem;
  border-radius: 0.75rem; background: var(--c-tile); color: var(--c-primary);
}
.section--band .icon-tile { background: light-dark(var(--warm-pale-grey), #313446); }
.example {
  margin-top: auto !important; padding-top: 1rem; border-top: 1px solid var(--c-border);
  font-size: 1rem; line-height: 1.55; color: var(--c-body);
}
.example strong { color: var(--c-ink); font-weight: 700; }
.card p.example { margin-bottom: 0; }


/* Engagements: 3, then 2, then 1 columns; six divide evenly. */
.engagement-grid { list-style: none; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Four services: four across on the home page, two by two on the services page. */
.engagement-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.engagement-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.engagement-grid h2 { font-size: 1.35rem; margin-bottom: 0.6rem; }
@container page (max-width: 64rem) { .engagement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 36rem) { .engagement-grid { grid-template-columns: minmax(0, 1fr); } }

/* Services and the door pages: Editorial report's content layout (Basil, 2026-10-17: "I liked the
 * editorial some aspects of it, like the layout of the content"). Ruled rows, the claim on the left,
 * its example in the margin beside it; no card boxes. One column on narrow screens. */
.engagement-grid.engagement-grid--two { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--mid-blue-1); }
.engagement-grid--two > .card {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: clamp(2rem, 5cqw, 4rem);
  align-content: start; padding: clamp(1.75rem, 3cqw, 2.25rem) 0;
  background: none; border: 0; border-bottom: 1px solid var(--c-border); border-radius: 0; box-shadow: none;
}
.engagement-grid--two > .card > * { grid-column: 1; }
.engagement-grid--two .icon-tile { display: none; }
.engagement-grid--two h2 { font-size: clamp(1.5rem, 2.6cqw, 1.9rem); margin-bottom: 0.75rem; }
.engagement-grid--two > .card > .example {
  grid-column: 2; grid-row: 1 / span 4; align-self: start;
  margin: 0.35rem 0 0 !important; padding: 0 0 0 1.25rem; border-top: 0; border-left: 2px solid var(--c-accent);
}
@container page (max-width: 52rem) {
  .engagement-grid--two > .card { grid-template-columns: minmax(0, 1fr); }
  .engagement-grid--two > .card > .example { grid-column: 1; grid-row: auto; margin-top: 0.5rem !important; }
}

/* ---------- Record ---------- */
.meaning { color: var(--c-ink); }
/* Portfolio: everyone we've worked with, in one ruled list of names (Basil, 2026-11-12: "mention them
 * all in aggregate, rather than in a timeline"). */
.client-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--c-border);
}
.client-list li { font-family: var(--font-label); font-size: 0.95rem; color: var(--c-ink); white-space: nowrap; }
.client-list li::before {
  content: ""; display: inline-block; width: 7px; height: 8px; margin-right: 0.55rem;
  vertical-align: 0.15em; background: var(--drop) center / contain no-repeat;
}

/* ---------- Products ---------- */
/* Two by two: at four across the cards were too narrow for their sentences and domains. */
.product-grid { list-style: none; display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container page (max-width: 36rem) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.product-card {
  background: var(--gradient) top / 100% 0.375rem no-repeat border-box, var(--c-surface);
  padding-top: calc(clamp(1.4rem, 3cqw, 1.85rem) + 0.375rem);
}
.product-kind { font-family: var(--font-label); font-size: 0.88rem; font-weight: 400; color: var(--c-muted); margin-bottom: 0.35rem !important; }
.product-link { margin-top: auto !important; padding-top: 0.5rem; font-weight: 700; }
.product-card .badge { align-self: flex-start; margin-top: auto; margin-bottom: 0; }
/* Portfolio: HidayahONE spans the row, with its customer quote inside; the other three share the next row. */
.product-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container page (max-width: 52rem) { .product-grid--three { grid-template-columns: minmax(0, 1fr); } }
.product-card--wide { grid-column: 1 / -1; }
.product-card .quote { margin: 0.5rem 0 1rem; max-width: 48rem; background: var(--c-pale); }

/* ---------- Quotes ---------- */
.quote { margin: 0; position: relative; padding: 2.75rem 1.75rem 1.5rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); }
/* Decorative mark; the "/ ''" alt text keeps screen readers from announcing it. */
.quote::before {
  content: "\201C" / ""; position: absolute; top: 0.4rem; left: 1.4rem;
  font-family: var(--font-head); font-size: 4.5rem; line-height: 1; font-weight: 400; color: var(--light-blue);
}
.quote blockquote { margin: 0 0 1.25rem; }
.quote blockquote p { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--c-ink); margin: 0; }
.quote figcaption { display: flex; flex-direction: column; font-size: 0.98rem; }
.quote-name { font-weight: 700; color: var(--c-ink); }
.quote-role { color: var(--c-muted); }
.quote--single { max-width: 48rem; margin-top: 2rem; }

/* ---------- How we work ---------- */
.steps { list-style: none; counter-reset: n; display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container page (max-width: 64rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 36rem) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps > li { counter-increment: n; padding: 1.35rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); }
.steps > li::before {
  content: counter(n); display: grid; place-items: center; margin-bottom: 0.85rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--c-button); color: var(--c-on-button); font-family: var(--font-label); font-size: 0.95rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.steps p { margin: 0; font-size: 1rem; }
.steps-close { margin: 1.75rem 0 0; font-family: var(--font-head); font-size: 1.5rem; font-weight: 400; color: var(--c-ink); }
/* On phones a single-column list needs no card chrome. */
@container page (max-width: 36rem) {
  .steps { gap: 1.25rem; }
  .steps > li { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: 0 0.85rem; background: none; border: 0; padding: 0; }
  .steps > li::before { margin: 0; grid-row: span 2; }
}

.trust { margin-top: clamp(2.5rem, 5cqw, 3.5rem); }
.trust > h3, .trust > h2, .offer h3, .offer h2 { font-size: clamp(1.3rem, 2.6cqw, 1.6rem); margin-bottom: 1.25rem; }

/* The check-up is one notice among the content, at the same weight as everything else. */
.offer {
  margin-top: clamp(2.5rem, 5cqw, 3.5rem); max-width: 50rem;
  padding: clamp(1.5rem, 4cqw, 2.25rem); border-radius: var(--radius);
  background: var(--c-surface); border: 1px solid var(--c-border);
}
.offer h3, .offer h2 { margin-bottom: 0.5rem; }
.panel-wrap > .offer:first-child { margin-top: 0; }
.badge {
  display: inline-block; margin: 0 0 0.9rem; padding: 0.2rem 0.75rem;
  border: 1.5px solid var(--c-primary); border-radius: 999px;
  color: var(--c-primary); font-family: var(--font-label); font-weight: 400; font-size: 0.85rem; line-height: 1.5;
}
.offer .actions { margin-top: 1.25rem; }
.disclosure { font-size: 1rem; }
.disclosure strong { color: var(--c-ink); }

/* ---------- Trust ---------- */
.trust-grid { list-style: none; display: grid; gap: 1.25rem 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container page (max-width: 44rem) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }
.trust-grid li { display: flex; gap: 1rem; align-items: flex-start; }
.trust-grid .icon { color: var(--c-primary); margin-top: 0.15rem; width: 1.75rem; height: 1.75rem; }
.trust-grid p { margin: 0; }
.trust-grid strong { display: block; color: var(--c-ink); font-size: 1.1rem; }

/* ---------- Contact ---------- */
.cta-band h2 { color: var(--c-ink); }
.cta-band .section-head > h2::after { background: var(--light-blue); }
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; }
@container page (max-width: 44rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { padding: 1.6rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.contact-card p { margin-bottom: 1rem; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-link { font-size: 1.2rem; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-border); padding: 2.5rem 0; font-size: 0.98rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.footer-brand img { width: 12rem; height: auto; display: block; }
.footer-legal { margin: 0; color: var(--c-body); flex-basis: 100%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; }
.footer-links a { display: inline-block; padding-block: 0.25rem; }

/* ---------- Privacy page ---------- */
.hero--page { padding-bottom: clamp(2rem, 5cqw, 3rem); }
.policy { display: grid; gap: clamp(1.75rem, 4cqw, 2.5rem); max-width: 46rem; }   /* inside a full .wrap, so it lines up with the h1 */
.policy h2 { font-size: clamp(1.3rem, 2.6cqw, 1.6rem); margin-bottom: 0.5rem; }
.policy p:last-child { margin-bottom: 0; }
.plain-list { padding-left: 1.25rem; display: grid; gap: 0.6rem; }
.updated { color: var(--c-muted); font-weight: 600; }


/* ---------- View controls and search (2026-11-13; hidayahtech-knowledge web-ui-repertoire.md) ---------- */
/* The row above the header: Search, then the text size and color theme controls copied from Hub Live.
 * It keeps one size at every zoom, as Hub Live's .vctl does, and is hidden without JS (nothing to drive it). */
.site-tools { zoom: calc(1 / var(--hl-zoom, 1)); background: var(--c-pale); border-bottom: 1px solid var(--c-border); }
html:not(.js) .site-tools { display: none; }
.tools-inner { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem 0.75rem; flex-wrap: wrap; min-height: 2.5rem; padding-block: 0.25rem; }
.site-tools button { font: inherit; font-family: var(--font-label); font-size: 13px; line-height: 1; min-height: 28px; color: var(--c-muted); background: transparent; border: 0; border-radius: 999px; padding: 0 9px; cursor: pointer; }
.site-tools button:hover:not(:disabled):not([aria-pressed="true"]) { color: var(--c-ink); background: var(--c-tint); }
.site-tools button:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.vctl { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-bg); }
.vctl > span { display: inline-flex; gap: 2px; }
.vctl .vsize { padding-right: 3px; margin-right: 1px; border-right: 1px solid var(--c-border); }
.vctl .vsize button:nth-child(2) { min-width: 3.6em; font-variant-numeric: tabular-nums; }
.vctl button[aria-pressed="true"] { color: var(--c-on-button); background: var(--c-button); }
.vctl button:disabled { opacity: 0.45; cursor: default; }
.search-open { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: auto; }
.search-open .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2; }
@container page (max-width: 30rem) {
  .tools-inner { justify-content: space-between; }
  .site-tools button { padding: 0 7px; min-height: 32px; }
  .search-open-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* The header logo: the dark artwork on light, the light artwork on dark. */
.brand .logo-for-dark { display: none; }
:root[data-theme="dark"] .brand .logo-for-light { display: none; }
:root[data-theme="dark"] .brand .logo-for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-for-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-for-dark { display: block; }
}

/* Search: a dialog over the page (/ or the Search button); matches marked, best first. */
.search-dialog {
  width: min(40rem, calc(100% - 2rem)); max-height: min(36rem, calc(100% - 4rem)); margin: 4rem auto auto; padding: 0;
  color: var(--c-body); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
}
.search-dialog::backdrop { background: rgb(34 22 41 / 0.45); }
.search-dialog form { display: flex; gap: 0.5rem; align-items: center; padding: 0.75rem; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; background: var(--c-surface); }
.search-dialog input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 0.6rem 0.75rem; color: var(--c-ink); background: var(--c-bg); border: 1px solid var(--c-muted); border-radius: 0.5rem; }
.search-dialog input:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; }
.search-close { font: inherit; font-weight: 600; padding: 0.55rem 0.8rem; color: var(--c-ink); background: transparent; border: 1px solid var(--c-border); border-radius: 0.5rem; cursor: pointer; }
.search-status { margin: 0; padding: 0.6rem 1rem; font-size: 0.95rem; color: var(--c-muted); }
.search-results { list-style: none; padding: 0 0.5rem 0.75rem; }
.search-results a { display: block; padding: 0.6rem 0.6rem; border-radius: 0.5rem; text-decoration: none; color: var(--c-body); }
.search-results a:hover, .search-results a:focus-visible { background: var(--c-tint); }
.search-results strong { display: block; color: var(--c-ink); font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; }
.search-results span { display: block; font-size: 0.95rem; line-height: 1.5; }
mark { color: inherit; background: color-mix(in srgb, var(--light-blue) 35%, transparent); border-radius: 2px; }


/* ---------- Page images (2026-11-14, Basil's picks on the image audition, web12/audition-photos) ---------- */
/* One image per page beside the title, in the home page's arch and blue wash; above the title on phones. */
.page-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; column-gap: clamp(2rem, 5cqw, 4rem); }
.page-arch { margin: 0; justify-self: end; width: min(100%, 19rem); }
.page-arch figcaption { margin-top: 0.6rem; font-family: var(--font-label); font-size: 0.8rem; line-height: 1.4; color: var(--c-muted); }
@container page (max-width: 52rem) {
  .page-hero { grid-template-columns: minmax(0, 1fr); }
  .page-arch { grid-row: 1; justify-self: start; width: min(100%, 11rem); margin-bottom: 1.75rem; }
}
/* Portfolio: each product's screenshot at the top of its card. */
.product-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; margin-bottom: 1.1rem; border: 1px solid var(--c-border); border-radius: 0.5rem; }
.product-card--wide .product-shot { aspect-ratio: 21 / 8; }
