/* ---------------------------------------------------------------------------
   Agents on Demand — brand tokens

   GENERATED by patterns/brand/build/build_studio_exports.py
   Upstream (the only place these values are authored): patterns/brand/build/brand_source.py

   Hand edits will be overwritten by the next run. Change the value upstream and
   regenerate; `--check` fails the build on drift.

   Every property is namespaced --aod*. Since HyperFrames 0.7.61 a mounted
   sub-composition's mirrored --<slug> property no longer overrides a same-named
   property the host already authored, and the studio's 13-property theme contract
   uses exactly the at-risk generic names (--accent, --bg, --panel). A reusable
   brand intro/outro block is the pattern that trips it: mounted into a themed host
   it silently renders in the HOST's accent. Never add a generic name here — the
   generator's self-check fails the build if one appears.

   There is deliberately NO font-family property. A var()-driven font-family does
   not embed; families are substituted as literals at build time and shipped with
   an explicit @font-face. Palette may be a variable; type may not.
   --------------------------------------------------------------------------- */

/* Tier 1 — the nine authored identity values. The only literals in this file. */
:root {
  --aodIndigo: #343FB5;
  --aodDepth: #2A33A0;
  --aodNavy: #1B2843;
  --aodAmber: #F5A623;
  --aodPeriwinkle: #A9B4FF;
  --aodLift: #4653E0;
  --aodWhite: #FFFFFF;
  --aodMutedLight: #5A6478;
  --aodMutedDark: #6D7AA8;

  /* Type specs: sizes and tracking only — see the font note above. */
  --aodWordmarkSize: 52px;
  --aodWordmarkTracking: -2px;
  --aodTaglineSize: 19.55px;
  --aodTaglineTracking: 5px;
  --aodLockupWordmarkSize: 46px;
  --aodLockupWordmarkTracking: -1.8px;
  --aodLockupTaglineSize: 16.97px;
  --aodLockupTaglineTracking: 4.6px;
}

/* Tier 2 — roles. Components consume THESE, never tier 1, so a colour can change
   role without every component learning a new name.

   The dark treatment is the identity's video default. Rule 3 is all-or-nothing:
   on a dark ground the wordmark goes periwinkle AND the bubble lifts AND the face
   stays white. Switching ground switches the whole block, never half of it — put
   data-aod-surface="light" on an ancestor to take the other treatment whole. */
:root,
[data-aod-surface="dark"] {
  --aodBg: var(--aodNavy);
      /* the ground the work sits on. Dark is the identity's video default; light is the document/deck treatment */
  --aodCard: var(--aodDepth);
      /* a raised surface block. The palette's own luminance order — navy < depth < indigo < lift < periwinkle < white — is the elevation ladder, so no tint had to be invented. On light there is no tint below white, so a card is the ground and the edge does the separating */
  --aodCardEdge: var(--aodIndigo);
      /* the hairline that separates a surface block from its ground; one rung of the ladder above the card face so it reads without a shadow */
  --aodInk: var(--aodWhite);
      /* primary text. On dark this is white because the identity ships no cream and periwinkle is spent on the accent — it is not Rule 1, which governs the mark's face panel */
  --aodInkSoft: var(--aodMutedDark);
      /* secondary text — a URL, a sub-line. One grey per ground, never two: a second grey picked by eye on one asset is how a package starts looking assembled by committee */
  --aodAccent: var(--aodPeriwinkle);
      /* the brand colour for this ground, and the only thing that may carry emphasis. Rule 3 flips it: indigo type dies on navy, periwinkle dies on white */
  --aodAccentSoft: var(--aodIndigo);
      /* a recessive brand fill BEHIND accented content — a band, a chip, a media well. Periwinkle deliberately swaps role between grounds: accent on dark, tint on light */
  --aodAnnotate: var(--aodLift);
      /* strokes drawn OVER borrowed imagery — a box round a screenshot, an arrow. Lift is the system's one saturated blue and survives on someone else's light screenshot, where periwinkle washes out. On a light ground the accent already suits the job, so the two share a value */
  --aodTerminal: var(--aodNavy);
      /* a code or terminal well. Dark on every ground, like the studio's own theme contract — a light terminal is a different product, not a light theme */
  --aodOn: var(--aodAmber);
      /* the automation moment: the 'on' syllable, the antenna tip beside the wordmark, the pill's track. NEVER an underline, highlight, bullet or button. The instant amber decorates something, the antenna tip stops meaning anything */
  --aodGlow: rgba(169, 180, 255, 0.16);
      /* a soft accent bloom BEHIND something already accented — the halo under a lifted card, the glow on a focused well. It follows the accent role, so it changes with the ground. Never amber: a glow is decoration and amber is a signal. Lower alpha on light because a wash over white greys the ground rather than lighting it */
  --aodShadow: rgba(27, 40, 67, 0.55);
      /* the drop shadow under a raised surface. Navy on both grounds, because a shadow is the absence of the ground's light and this identity's darkest value is navy — a neutral black would introduce a tenth colour. Heavier on dark, where the ground is already navy and a light shadow does nothing */
}

/* The same roles on a light ground — the whole treatment, taken together. Each
   role means exactly what it means above; only the value moves. */
[data-aod-surface="light"] {
  --aodBg: var(--aodWhite);
  --aodCard: var(--aodWhite);
  --aodCardEdge: var(--aodPeriwinkle);
  --aodInk: var(--aodNavy);
  --aodInkSoft: var(--aodMutedLight);
  --aodAccent: var(--aodIndigo);
  --aodAccentSoft: var(--aodPeriwinkle);
  --aodAnnotate: var(--aodIndigo);
  --aodTerminal: var(--aodNavy);
  --aodOn: var(--aodAmber);
  --aodGlow: rgba(52, 63, 181, 0.12);
  --aodShadow: rgba(27, 40, 67, 0.22);
}

/* Roles this identity deliberately does NOT supply, so nobody fills the gap
   by inventing a colour: */
/*   --ok: STILL UNFILLED, and still for the same reason: the IDENTITY ships no success hue. Green would contradict the palette and amber would spend the 'on'. Semantic status colour belongs to the operator-surface system (patterns/visual-language.md), which the brand keeps deliberately separate from identity. Since 2026-08-16 this brand DOES ship status colour — but as a third, separately NAMED system, the CONTENT layer (--aodData / --aodOk / --aodWarn / --aodFail / --aodFailDeep), scoped to the surfaces a video authors INSIDE the frame and forbidden in chrome. It deliberately does not fill this slot: a composition that types the studio's generic --ok still gets nothing, which is the correct answer, because the generic slot would put a content hue where chrome can reach it. */
/*   --panel-2: One raised tier only (--aodCard). A second tier would need a tenth colour. */

/* ===========================================================================
   TIER 3 — THE CONTENT LAYER.  Ratified by the operator 2026-08-16.

   THE DOCTRINE, IN ONE LINE: the frame is the brand; the content breathes —
   and native content is never re-tinted.

   Everything above this line is the IDENTITY. Everything below is CONTENT: the
   authored surfaces INSIDE the frame — charts, verdict chips, cards, callouts,
   run logs, plates. None of it may touch chrome. The intro, the end card,
   title and section cards, lower thirds and the honesty banner render from
   --aodAccent / --aodInk / --aodBg / --aodOn alone, in every scene. A
   secondary in chrome is a brand change, not a CSS edit.

   THIS IS NOT A STATUS HUE FOR THE IDENTITY. The identity still ships none,
   and the studio's generic --ok is still deliberately unfilled (see the
   trailing gaps comment). These are a third, separately NAMED system: a
   composition that types --ok gets nothing, which is the correct answer.

   SCOPING: --aodOn is measured against and never used here. Every ratio in the
   comments below is computed from the hexes by the generator, against the
   ground brand.json names — nothing here is stored, so nothing here can go
   stale.

   TREATMENT: like every other AoD role these flip whole (Rule 3). A content
   plate may carry data-aod-surface="light" and its WHOLE subtree takes the
   light treatment — ground, ink, hairline, chip and secondary together, never
   half of it. The frame around that plate does not flip; the plate is inset
   inside a dark frame, which is the point.
   =========================================================================== */

/* The content layer on the DARK treatment — the video default. */
:root,
[data-aod-surface="dark"] {

  /* -- the four content roles, plus the plate half of the fail slot.
     Measured on ground, bg, plate, card, white, paper, term_warm; the worst legal ground is quoted.
     Separation from --aodOn #F5A623 is stated because amber is the 'on',
     and only the 'on'. -- */
  --aodData: #36C9C9;
      /* DATA / MEASUREMENT
         hue 180 deg · text-legal · legal on ground, bg, plate, card, term_warm
         worst legal ground 4.98:1 (on card)
         143 deg from --aodOn (-33 sat), 52 deg from --aodAccent — clears on hue (143 deg) */
  --aodOk: #7FD6A4;
      /* VERIFIED / DONE / REAL
         hue 146 deg · text-legal · legal on ground, bg, plate, card, term_warm
         worst legal ground 5.80:1 (on card)
         109 deg from --aodOn (-40 sat), 86 deg from --aodAccent — clears on hue (109 deg) */
  --aodWarn: #BBC12C;
      /* CAUTION / COST / THE CATCH / ESCALATED
         hue 62 deg · text-legal · legal on ground, bg, plate, card, term_warm
         worst legal ground 5.18:1 (on card)
         25 deg from --aodOn (-28 sat), 170 deg from --aodAccent — clears on saturation (28 pts below) */
  --aodFail: #F87777;
      /* FAILED / BROKE / DID NOT HOLD
         hue 0 deg · text-legal · legal on ground, bg, plate, term_warm
         worst legal ground 4.87:1 (on plate)
         37 deg from --aodOn (-1 sat), 128 deg from --aodAccent — clears on hue (37 deg) */
  --aodFailDeep: #B12F40;
      /* THE DEEP CRIMSON
         hue 352 deg · PLATE — not text · legal on white
         worst legal ground 6.27:1 (on white)
         --aodInk on it: 6.27:1
         45 deg from --aodOn (-33 sat), 120 deg from --aodAccent — clears on hue (45 deg) */
  --aodAgent: #E3A5E9;
      /* A MODEL TOUCHED THIS
         hue 295 deg · text-legal · legal on ground, bg, plate, card, term_warm
         worst legal ground 5.21:1 (on card)
         102 deg from --aodOn (-30 sat), 63 deg from --aodAccent — clears on hue (102 deg) */

  /* -- status chips: the site's own .14 / .40 recipe (globals.css:283). -- */
  --aodDataFill: rgba(54, 201, 201, 0.14);
  --aodDataLine: rgba(54, 201, 201, 0.4);
  --aodOkFill: rgba(60, 180, 110, 0.14);
  --aodOkLine: rgba(60, 180, 110, 0.4);
  --aodWarnFill: rgba(187, 193, 44, 0.14);
  --aodWarnLine: rgba(187, 193, 44, 0.4);
  --aodFailFill: rgba(248, 119, 119, 0.14);
  --aodFailLine: rgba(248, 119, 119, 0.4);
  --aodAgentFill: rgba(227, 165, 233, 0.14);
  --aodAgentLine: rgba(227, 165, 233, 0.4);

  /* -- the CONTENT ramp (image_floor.two_ramps). Brand beats keep
     --aodBg / --aodCard / --aodCardEdge; content beats stand on these. -- */
  --aodGround: #131B31;
      /* the content ground — a navy DARKER than --aodBg, which is what the site and the ad actually stand on. */
  --aodPlate: #223055;
      /* the quiet content plate — the recessed rung. On the site this is what an input is made of, so it reads as 'a surface something goes INTO' rather than 'a surface raised toward you', which is exactly the register a chart or a run log wants. */

  /* -- hairlines: two weights, one system, periwinkle-derived on dark.
     There is no neutral-grey border anywhere in this brand. -- */
  --aodLine: rgba(169, 180, 255, 0.14);
  --aodLineStrong: rgba(169, 180, 255, 0.3);

  /* -- the neutral chip: a label that is NOT carrying a status. -- */
  --aodChipFill: rgba(169, 180, 255, 0.1);
  --aodChipLine: rgba(169, 180, 255, 0.3);

  /* -- the reading ink tier on a content plate. --aodInk stays white
     for headlines and chrome; --aodInkSoft stays the one grey. -- */
  --aodInkBody: #C3CBE9;

  /* -- the one texture in the system: a faint periwinkle engineering
     grid. 26px in every shipped AoD surface, which is why it is a
     number and not a taste. Also the banding guard on the flat navy
     field (45% of the shipped master's pixels). -- */
  --aodGrid: radial-gradient(rgba(169, 180, 255, 0.05) 1px, transparent 1px);
  --aodGridPitch: 26px;
  --aodGridAlpha: 0.05;

  /* -- the coloured bloom under framed media or a content plate. Not
     --aodGlow, which is a wash BEHIND accented content. -- */
  --aodBloom: 0 24px 80px -32px rgba(70, 83, 224, 0.45);

  /* -- the ONLY licensed black in this brand: the ADDIE character's
     own drop shadow. A rendered character standing on the ground casts
     a real shadow; the no-black rule is about SURFACES, which take
     --aodShadow (navy) on both grounds. -- */
  --aodAddieShadow: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

/* The same content roles on the LIGHT treatment. Rule 3 is all-or-
   nothing: a subtree carrying data-aod-surface="light" takes every
   value here together, never half of them. Each light form is AA-gated
   at 4.5:1 on white by the generator. */
[data-aod-surface="light"] {
  --aodData: #1F7575;
      /* hue 180 deg · 5.44:1 on white · 143 deg from --aodOn, clears on hue (143 deg) */
  --aodOk: #267849;
      /* hue 146 deg · 5.43:1 on white · 109 deg from --aodOn, clears on hue (109 deg) */
  --aodWarn: #6A6300;
      /* hue 56 deg · 6.18:1 on white · 19 deg from --aodOn, clears on lightness (34 pts apart) */
  --aodFail: #B12F40;
      /* hue 352 deg (= fail_deep) · 6.27:1 on white · 45 deg from --aodOn, clears on hue (45 deg) */
  --aodFailDeep: #B12F40;
      /* unchanged: the deep crimson IS the light form — it is the fail
         INK on paper at 6.27:1, and the plate on dark */
  --aodAgent: #AC2DB8;
      /* hue 295 deg · 5.50:1 on white · 102 deg from --aodOn, clears on hue (102 deg) */

  --aodDataFill: #E9F1F1;
  --aodDataLine: #B1CFCF;
  --aodOkFill: #E7F3EC;
  --aodOkLine: #BFE0D2;
  --aodWarnFill: #F0EFE6;
  --aodWarnLine: #CBC8A6;
  --aodFailFill: #F7EAEC;
  --aodFailLine: #E4B6BC;
  --aodAgentFill: #F7EAF8;
  --aodAgentLine: #E2B6E6;

  --aodGround: #FFFFFF;
  --aodPlate: #FFFFFF;
      /* the light treatment has no tint below white — the edge separates */
  --aodLine: rgba(27, 40, 67, 0.14);
  --aodLineStrong: rgba(27, 40, 67, 0.3);
  --aodChipFill: rgba(52, 63, 181, 0.1);
  --aodChipLine: rgba(52, 63, 181, 0.3);
  --aodInkBody: var(--aodNavy);
  --aodGrid: radial-gradient(rgba(27, 40, 67, 0.06) 1px, transparent 1px);
  --aodGridPitch: 26px;
  --aodGridAlpha: 0.06;
  --aodBloom: 0 24px 80px -32px rgba(70, 83, 224, 0.45);
  --aodAddieShadow: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

/* The product's run log — the SECOND terminal, by meaning not by taste.
   --aodTerminal (navy) stays our own code and quote well. These eight are
   NATIVE values, read off the site's own fly-out terminal, and they are
   declared ONCE at :root and never flipped: a terminal is dark on every
   ground (a light terminal is a different product, not a light theme), so
   there is no light form to write. */
:root {
  --aodTermWarmGround: #14110E;
  --aodTermWarmBar: #2A241D;
  --aodTermWarmDot: #3A332A;
  --aodTermWarmName: #8A8175;
  --aodTermWarmLine: #CFC7BA;
  --aodTermWarmHeader: #EDE6DA;
  --aodTermWarmDim: #6A6357;
      /* 3.17:1 on its own ground — ATMOSPHERE TIER ONLY.
         Never a line the narration asks the viewer to read. */
  --aodTermWarmFound: #9FAEFF;
      /* the one periwinkle inside the warm terminal */
}

/* Roles the CONTENT layer still deliberately does NOT supply, so nobody
   fills the gap by inventing a colour. The identity's own gaps are above: */
/*   code: Two reasons, both hard. (1) Violet is RESERVED estate-wide: aod-chassis patterns/visual-language.md:63-77 — 'Violet is reserved. It means a model touched this, everywhere, forever, in every product. Nothing else may be violet.' A video that paints a file path violet is making a claim about model involvement. (2) Every violet legible on navy sits within 30° of periwinkle (232°) or lift (233°), so it would fail the separation gate against the accent regardless. Quoted code lives in --aodTerminal, the navy well the pack already ships (frame.md:107), or in the warm terminal (native_palettes.terminal_warm) when it is the product's own run log. */
/*   second_accent: frame.md:125-130: 'there is no second accent to reach for, on purpose.' The content layer names classes of information; it does not add a second voice. Emphasis stays --aodAccent. */
/*   amber_derived_anything: See relationship_to_amber and considered_and_rejected.warn_as_site_amber. This is the one refusal in the block that is not a matter of taste. */
/*   a_second_neutral_grey: aod-chassis patterns/brand/README.md:118-121 — 'There is one grey per ground, not two … A second grey picked by eye on one asset is how a package starts looking assembled by committee.' The content layer adds a reading INK tier (--aodInkBody, image_floor.ink_tiers) which is a luminance step in the existing family, not a second grey. */
/*   act_tint: AoD long-form has no act structure yet — the one shipped film is a seven-scene demonstration, not a three-act piece (inv-video §D.1). The tonal drift this pack ships instead is the two-ramp split (image_floor.two_ramps), which is a brand-beat / content-beat distinction rather than a temporal one. Revisit when an AoD piece actually has acts. */
/*   a_vignette: Measured absent everywhere: zero radial-gradient overlays other than the dot grids across the site (inv-site §C, 'No vignette anywhere'), none in the shipped Meta ad, none in the film ('There is no vignette and no film grain — the only texture is the dot grid', inv-video §C). Inventing one here would put a treatment on screen that no AoD surface has ever carried. */
