/* DARBEEN theme layer (26.11.2026): colour variants A/B/C and two type pairings, set on <html>
   as data-variant="a|b|c" and data-type="pair|inter". The default is chosen in src/config.js (SITE.theme);
   ?variant= and ?type= override it for side-by-side comparison. The wordmark keeps its original letterforms. */

/* ---------- Type ---------- */
html[data-type="pair"] {
  --font: "Inter", "Noto Sans Armenian", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Manrope", "Inter", "Noto Sans Armenian", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
}
html[data-type="inter"] {
  --font: "Inter", "Noto Sans Armenian", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter", "Noto Sans Armenian", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
}
/* Inter reads best with slightly tighter display tracking and the alternate shapes off for UI clarity */
html[data-type] body { font-feature-settings: "cv11", "ss01"; }
html[data-type="pair"] h1, html[data-type="pair"] h2, html[data-type="pair"] h3 { font-weight: 700; letter-spacing: -0.025em; }
html[data-type="pair"] .h-hero, html[data-type="pair"] .hero2 h1 { letter-spacing: -0.035em; }
html[data-type="inter"] h1, html[data-type="inter"] h2 { font-weight: 650; letter-spacing: -0.03em; }
html[data-type]:lang(hy) h1, html[data-type]:lang(hy) h2, html[data-type]:lang(hy) h3 { letter-spacing: 0; font-weight: 650; }
html[data-type]:lang(ru) h1, html[data-type]:lang(ru) h2 { letter-spacing: -0.02em; }

/* Header separated from the first screen by colour (owner request 26.11.2026): cool light grey-blue
   with a thin border; the page keeps its near-white background. Logo and Request a Quote stay black. */
html[data-header="tint"] header.site-header,
html[data-header="tint"] header.site-header[data-scrolled] {
  background: rgba(232, 237, 245, 0.96); /* #E8EDF5 */
  border-bottom: 1px solid #d5dde8;
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
html[data-header="tint"] .site-header .nav a { color: #2a3140; }
html[data-header="tint"] .site-header .nav a[aria-current="page"] { background: #ffffff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { html[data-header="tint"] .site-header .nav a:hover, html[data-header="tint"] .nav-drop__btn:hover { background: rgba(255, 255, 255, 0.75); color: var(--ink); } }
html[data-header="tint"] .site-header .lang-switch { background: #ffffff; border-color: #d5dde8; }
html[data-header="tint"] .site-header .icon-btn, html[data-header="tint"] .da-launcher { border-color: #d5dde8; }
html[data-header="tint"] .site-header .btn--quote { --btn-bg: #2444d8; --btn-fg: #ffffff; border-color: #2444d8; } /* cobalt (palette 27.11.2026) */
@media (hover: hover) and (pointer: fine) { html[data-header="tint"] .site-header .btn--quote:hover { --btn-bg: #1d36b5; border-color: #1d36b5; } }

/* Button colours (owner, 26.11.2026): primary #2444D8 / hover #1D36B5 / white text;
   secondary: #111318 text, #B8BEC9 outline, page background. */
html[data-type] .btn--accent { --btn-bg: #2444d8; --btn-fg: #ffffff; border-color: #2444d8; }
html[data-type] .btn--ghost { --btn-bg: transparent; --btn-fg: #111318; border-color: #b8bec9; }
@media (hover: hover) and (pointer: fine) {
  html[data-type] .btn--accent:hover { --btn-bg: #1d36b5; border-color: #1d36b5; }
  html[data-type] .btn--ghost:hover { --btn-bg: rgba(17, 19, 24, 0.04); border-color: #8f97a6; }
}

/* Direction titles "DARBEEN Creative / AI / Digital" (owner, 26.11.2026): one inscription in the header wordmark
   family for the whole title; one size, weight and line height for both words, one baseline, a plain space.
   letter-spacing: normal for the whole title (owner, 26.11.2026), DARBEEN in capitals as written.
   On small phones the whole title shrinks together. */
.dir { container-type: inline-size; }
.dir h3 { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.dirtitle { font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif; font-size: clamp(1.25rem, 8.4cqi, 1.75rem); font-weight: 760; line-height: 1.15; letter-spacing: normal; white-space: nowrap; }
.dirtitle .brandword { font: inherit; letter-spacing: normal; margin: 0; }
/* Direction cards: content flows naturally; the two links (example, then direction page) sit on a shared
   bottom line on desktop. On phones the card keeps its natural height. */
.dir { display: flex; flex-direction: column; gap: 18px; grid-template-rows: none; }
.dir ul { row-gap: 6px; }
.dir__links { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; }
.dir__links .link-arrow { width: fit-content; }
.dir__page { color: var(--ink-3) !important; font-weight: 500; }
@media (max-width: 960px) { .dir__links { margin-top: 4px; } }
/* Services in focus on direction pages */
.service-list li.is-highlight a { color: var(--ink); font-weight: 600; }
.hl-tag { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 8px; margin-left: 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.svc__ex { margin: 14px 0 0; }
/* Home direction markers (owner, 26.11.2026): brighter on the light card, one size (12 x 12, 3px radius),
   centred on the title line with one shared gap. Only the three home cards. */
.dir h3 { gap: 10px; }
.dir h3 .mod-mark { flex: none; width: 12px; height: 12px; border-radius: 3px; align-self: center; transform: translateY(var(--mark-nudge, 0px)); }
.dir.mod-creative .mod-mark { background: #d62d72; }
.dir.mod-ai .mod-mark { background: #3155ff; }
.dir.mod-digital .mod-mark { background: #009b68; }

/* The logo stays exactly as it was (system letterforms, spacing and weight) */
.wordmark { font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 760; letter-spacing: 0.14em; }

/* ---------- Colour A: warm light, graphite, saturated blue ---------- */
html[data-variant="a"] {
  --paper: #f6f4ef; --paper-2: #edeae3; --white: #fffefb;
  --ink: #16171b; --ink-2: #2d2f36; --ink-3: #5e616b; --ink-4: #8b8e97;
  --line: #e3e0d8; --line-2: #d2cec4;
  --accent: #2742dd; --accent-ink: #1b31b0; --accent-soft: #e6e9fc;
  --night: #16171b; --night-2: #202227; --night-line: #33353c;
}
html[data-variant="a"] .site-header { background: rgba(246, 244, 239, 0.86); }

/* ---------- Colour B: cool light, deep blue text, teal accent ---------- */
html[data-variant="b"] {
  --paper: #f3f6fa; --paper-2: #e8eef5; --white: #ffffff;
  --ink: #0c1b3a; --ink-2: #243556; --ink-3: #52617d; --ink-4: #8592a8;
  --line: #dce4ee; --line-2: #c9d4e2;
  --accent: #0a7a73; --accent-ink: #075c57; --accent-soft: #dff2f0;
  --ai: #1f4fd6; --digital: #0a7a73;
  --night: #0c1b3a; --night-2: #132649; --night-line: #263a61; --night-ink: #eef3fa; --night-ink-2: #a8b6cc;
}
html[data-variant="b"] .site-header { background: rgba(243, 246, 250, 0.88); }

/* ---------- Colour C: light base, dark sections for video and work, one shared accent ---------- */
html[data-variant="c"] {
  --paper: #fafaf9; --paper-2: #f0f0ee; --white: #ffffff;
  --ink: #0b0c0f; --ink-2: #2a2c31; --ink-3: #5c6068; --ink-4: #6b7078; /* ink-4 darkened for 4.5:1 on white (27.11.2026) */
  --line: #e6e6e3; --line-2: #d6d6d2;
  --accent: #3555f5; --accent-ink: #2440cf; --accent-soft: #e8ecfe;
  --night: #0b0c0f; --night-2: #15171b; --night-line: #2a2d33;
}
html[data-variant="c"] .site-header { background: rgba(250, 250, 249, 0.88); }
html[data-variant="c"] main p a:not(.btn):not(.link-arrow), html[data-variant="c"] .prose a { color: var(--accent-ink); }
html[data-variant="c"] .link-arrow { color: var(--accent-ink); }
html[data-variant="c"] #work .link-arrow, html[data-variant="c"] #films .link-arrow { color: #9fb0ff; }
/* Dark stages: work showcase and creative sections become cinema-dark */
html[data-variant="c"] #work, html[data-variant="c"] #showcase, html[data-variant="c"] #films, html[data-variant="c"] #sample {
  background: var(--night); color: var(--night-ink);
}
html[data-variant="c"] #work .lead, html[data-variant="c"] #showcase .lead, html[data-variant="c"] #films .lead,
html[data-variant="c"] #work p, html[data-variant="c"] #films p { color: var(--night-ink-2); }
html[data-variant="c"] #work h2, html[data-variant="c"] #work h3, html[data-variant="c"] #films h2, html[data-variant="c"] #films h3, html[data-variant="c"] #showcase h2 { color: var(--night-ink); }
html[data-variant="c"] #work .kind, html[data-variant="c"] #work .eyebrow { color: var(--night-ink-2); }
html[data-variant="c"] #work .btn--ghost, html[data-variant="c"] #films .btn--ghost { --btn-fg: var(--night-ink); border-color: var(--night-line); }
html[data-variant="c"] #work .shot, html[data-variant="c"] #films .shot { border-color: var(--night-line); }

/* Header mark: V1 chip-D is the site default since 27.11.2026 (SITE.theme.mark); the wordmark keeps its own
   tracking. Other keys are comparison trials. Earlier note — trial header mark (local comparison): ?mark=d = the favicon D in a graphite square, ?mark=g = a geometric D
   without a background. Both: 22px, 9px gap, same graphite as the wordmark, centred on the capitals,
   one link with the word. DARBEEN tracking is slightly reduced in both trials (0.14em -> 0.10em). */
.wordmark--mark { display: inline-flex; align-items: center; gap: 9px; }
.wordmark__mark { flex: none; width: 22px; height: 22px; display: block; transform: translateY(var(--mark-shift, 0px)); }
/* Microchip trials C1/C2 (?mark=c1|c2): 24px package, same graphite, light D trace inside. */
.wordmark__mark--chip { width: 24px; height: 24px; }

/* Keeps hyphenated compounds in the hero lead on one line (text unchanged) */
.nobr { white-space: nowrap; }

/* Colours follow each block's own background (owner P1, 27.11.2026). Dark sections (#sample, #lumen, #showcase,
   #films, #work) set light text; the white showcase cards inside them keep dark text, and their dark media
   areas keep light text. Captions placed straight on the dark section use the light secondary colour. */
html[data-variant="c"] .sc-card .sc-body { color: var(--ink); }
html[data-variant="c"] .sc-card .sc-body .sc-title { color: var(--ink); }
html[data-variant="c"] .sc-card .sc-media--night { color: #f2f2ee; }
html[data-variant="c"] #sample .sample__meta h2, html[data-variant="c"] #lumen .section-head h2 { color: var(--night-ink); }
html[data-variant="c"] #sample .sample__meta p, html[data-variant="c"] #lumen .lead, html[data-variant="c"] #showcase .note-line, html[data-variant="c"] #showcase .lead { color: var(--night-ink-2); }
html[data-variant="c"] #lumen .section-head .kind { color: var(--night-ink-2); }

/* DARBEEN palette (owner, 27.11.2026). Page background: light cream #FAF8F3. Request a Quote, Ask DARBEEN and the
   main submit buttons: cobalt #2444D8 with white text (hover #1D36B5). Compact phone chat button: light blue with a
   cobalt icon. Explore Work stays light with an outline. The light-blue header, white cards, dark sections and the
   demos' own palettes are unchanged (demos have their own stylesheets). */
html[data-variant="c"] { --paper: #faf8f3; }
html[data-variant="c"] .site-header { background: rgba(250, 248, 243, 0.88); }
.da-launcher { background: #2444d8; color: #ffffff; }
@media (hover: hover) and (pointer: fine) { .da-launcher:hover { background: #1d36b5; } }
.da-launcher .da-launcher__dot { background: #b9c7ff; }
.da-send { background: #2444d8; color: #ffffff; }
@media (hover: hover) and (pointer: fine) { .da-send:not([disabled]):hover { background: #1d36b5; } }
@media (max-width: 1180px) {
  .da-launcher, html[data-header="tint"] .da-launcher { background: #e3e9fd; color: #2444d8; border: 1px solid #c3d0fb; box-shadow: none; }
  @media (hover: hover) and (pointer: fine) { .da-launcher:hover { background: #d6dffc; } }
}

/* Warm cream site (owner, 27.11.2026). One background token for every page and language: --paper #F4EFE5 —
   header, first screen, main sections and footer. Cards and inputs use the lighter cream --white #FAF8F3.
   Large white / grey / cool-blue section fills are removed; the dark cinema sections, cobalt buttons and the
   demos' own palettes stay. Muted text is darkened so it keeps at least 4.5:1 on the new cream. */
html[data-variant="c"] {
  --paper: #f4efe5;
  --paper-2: #ece5d7;
  --white: #faf8f3;
  --line: #e3dbcb;
  --line-2: #d4c9b5;
  --ink-4: #62666e;
}
html[data-variant="c"] body { background: var(--paper); }
.section--white, .work-nav { background: var(--paper); }
/* Header: cream instead of cool blue, a warm hairline below it */
html[data-header="tint"] header.site-header,
html[data-header="tint"] header.site-header[data-scrolled] { background: rgba(244, 239, 229, 0.96); border-bottom-color: #e3dbcb; }
html[data-header="tint"] .site-header .nav a[aria-current="page"] { background: #faf8f3; }
@media (hover: hover) and (pointer: fine) { html[data-header="tint"] .site-header .nav a:hover, html[data-header="tint"] .nav-drop__btn:hover { background: rgba(250, 248, 243, 0.85); } }
html[data-header="tint"] .site-header .lang-switch { background: #faf8f3; border-color: #e3dbcb; }
html[data-header="tint"] .site-header .icon-btn { border-color: #e3dbcb; background: #faf8f3; }
/* Footer: same cream as the page, separated by a hairline; dark text */
.site-footer { background: var(--paper); color: var(--ink-3); border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); }
.footer-top h2 { color: var(--ink-3); }
.footer-brand .wordmark { color: var(--ink); }
.footer-bottom .lang-switch { background: var(--white); border-color: var(--line); }
.footer-bottom .lang-switch a { color: var(--ink-3); }
.footer-bottom .lang-switch a[aria-current="true"] { background: var(--ink); color: #ffffff; }

/* Digital green darkened for 4.5:1 on cream (#0C7F63 gave 4.33) */
html[data-variant="c"] { --digital: #0a7559; }

/* Compact footer (owner, 27.11.2026): headings and links in the navigation font (Inter); links 16 px, headings 13 px
   / 600. Desktop: MODULES, COMPANY and LEGAL form one block, columns as wide as their content, 44 px apart, 8 px
   between links. Phones: the columns share the screen width and every link keeps a 44 px tap area. */
.site-footer { padding: clamp(40px, 5vw, 64px) 0 calc(88px + env(safe-area-inset-bottom)); }
.footer-top { grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: start; }
.footer-brand p { margin-top: 10px; }
.footer-brand .tagline { color: var(--ink-3); }
.footer-cols { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 44px; justify-content: end; }
.footer-cols h2 { font-family: var(--font); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { font-family: var(--font); font-size: 1rem; line-height: 1.5; font-weight: 500; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); grid-auto-columns: auto; justify-content: stretch; gap: 20px 24px; }
  .footer-cols ul { gap: 0; }
  .footer-cols a { display: flex; align-items: center; min-height: 44px; overflow-wrap: break-word; }
}
html[data-type] .footer-cols h2 { font-weight: 600; letter-spacing: 0.06em; }
.footer-cols li a { display: inline-block; }
@media (max-width: 960px) {
  .footer-cols > div:last-child { grid-column: 1 / -1; }
  .footer-cols li a { display: flex; }
}
