/* ============================================================
   EXPRESSIVE SKIN  —  html[data-skin="expressive"]
   A warmer, more human evolution of the Classic palette. Retains
   the purple foundation; expands it with cornflower + periwinkle
   (primary supporting) and coral / peach (intentional pops). This
   file is overrides ONLY; Classic is the absence of [data-skin]
   or data-skin="classic". The toggle lives in theme.js.
   Used selectors are html[data-skin="expressive"] so they win
   ties against :root regardless of load order.
   ============================================================ */

/* ---- Skin toggle (present in both skins) ---- */
.skin-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 1200;
  display: inline-flex; align-items: center; gap: 2px; padding: 4px;
  background: var(--surface-1); border: 1px solid var(--border-medium);
  border-radius: 999px; box-shadow: 0 10px 34px rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}
.skin-toggle button {
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 8px 15px; border-radius: 999px; color: var(--text-tertiary);
  cursor: pointer; transition: color .3s ease, background .3s ease; white-space: nowrap;
}
.skin-toggle button:hover { color: var(--text-secondary); }
.skin-toggle button[aria-pressed="true"] { color: #fff; background: var(--accent-1); }
@media (max-width: 560px) {
  .skin-toggle { right: 10px; bottom: 10px; }
  .skin-toggle button { padding: 7px 12px; }
}

/* ---- Expressive: dark (default) ---- */
html[data-skin="expressive"] {
  --aubergine-deep: #190734;   /* deep plum, page bg */
  --aubergine:      #28104A;   /* plum, cards */
  --aubergine-mid:  #3B2C88;   /* indigo */
  --slack-purple:       #4A2FA0; /* indigo, surface-3 */
  --slack-purple-light: #6D7CFF; /* bright periwinkle */
  --slack-blue:   #6D7CFF;     /* bright periwinkle -> accent-1 (the brand focal color) */
  --slack-green:  #6495ED;     /* cornflower        -> accent-2 (cool companion) */
  --slack-yellow: #FFC49B;     /* peach             -> accent-3 */
  --slack-red:    #FF7A6E;     /* coral             -> accent-4 */
  --accent-1: #6D7CFF;
  --accent-2: #6495ED;
  --accent-3: #FFC49B;
  --accent-4: #FF7A6E;
}

/* ---- Expressive: light (soft cream) ---- */
html[data-skin="expressive"][data-theme="light"] {
  --surface-0: #F7F4EE;
  --surface-1: #FFFFFF;
  --surface-2: #EFEAF8;
  --surface-3: #E3DAF4;
  --text-primary: #241046;
  --text-secondary: rgba(36,16,70,0.68);
  --text-tertiary: rgba(36,16,70,0.45);
  --border-subtle: rgba(36,16,70,0.08);
  --border-medium: rgba(36,16,70,0.16);
}

/* ---- Warm accent system: cool intelligence + human warmth ----
   Cornflower stays the cool intelligence. Goldenrod, coral, and peach
   are sparing editorial landmarks and emphasis, never backgrounds. */
html[data-skin="expressive"] { --gold: #F2C94C; --sage: #A6C36F; }

/* Section labels: cool cornflower text, small warm goldenrod dot */
html[data-skin="expressive"] .section__label::before,
html[data-skin="expressive"] .cs-section__label::before { background: var(--gold); }

/* About title: restrained cornflower -> coral -> goldenrod gradient */
html[data-skin="expressive"] #about .section__title {
  background: linear-gradient(100deg, #6D7CFF 0%, #FF7A6E 58%, #F2C94C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Journey: each milestone becomes its own colored landmark */
html[data-skin="expressive"] .journey__step:nth-child(1) .journey__dot { border-color: #6495ED; }
html[data-skin="expressive"] .journey__step:nth-child(1) .journey__dot::after { background: #6495ED; }
html[data-skin="expressive"] .journey__step:nth-child(2) .journey__dot { border-color: #A6C36F; }
html[data-skin="expressive"] .journey__step:nth-child(2) .journey__dot::after { background: #A6C36F; }
html[data-skin="expressive"] .journey__step:nth-child(3) .journey__dot { border-color: #FF7A6E; }
html[data-skin="expressive"] .journey__step:nth-child(3) .journey__dot::after { background: #FF7A6E; }
html[data-skin="expressive"] .journey__step:nth-child(4) .journey__dot { border-color: #F2C94C; }
html[data-skin="expressive"] .journey__step:nth-child(4) .journey__dot::after { background: #F2C94C; }

/* AI guide: a thoughtful guide, not a chatbot. Periwinkle is the focal,
   interactive brand color; a soft peach glow keeps it human. */
html[data-skin="expressive"] .composer__box { background: linear-gradient(180deg, rgba(109,124,255,0.06), transparent), var(--surface-1); box-shadow: 0 0 0 1px rgba(109,124,255,0.20), 0 18px 50px rgba(109,124,255,0.10); }
html[data-skin="expressive"] .composer__box:focus-within { border-color: #6D7CFF; box-shadow: 0 0 0 4px rgba(109,124,255,0.22), 0 22px 55px rgba(255,196,155,0.10); }
html[data-skin="expressive"] .response { box-shadow: 0 16px 50px rgba(109,124,255,0.08); }
html[data-skin="expressive"] .response__avatar { background: linear-gradient(135deg, rgba(109,124,255,0.26), rgba(255,196,155,0.22)); color: var(--accent-1); }
html[data-skin="expressive"] .answer a { border-bottom-color: rgba(109,124,255,0.40); }
html[data-skin="expressive"] .chip__spark { color: var(--gold); } /* warm goldenrod spark */

/* Periwinkle as a FOCAL color, not a wash: interactive + key moments */
html[data-skin="expressive"] .btn--primary:hover { box-shadow: 0 8px 30px rgba(109,124,255,0.34); }
html[data-skin="expressive"] .journey__node:hover .journey__dot { box-shadow: 0 0 0 6px rgba(109,124,255,0.14); }
/* ---- Semantic color language: each case study carries its meaning-color ----
   The per-page --cs-accent override flows automatically into section labels,
   key-insight callouts, pull-quote borders, stats, and links, so color
   reinforces the nature of the work instead of decorating it. */
html[data-skin="expressive"][data-cs="welcome"]    { --cs-accent: #6495ED; --cs-accent-rgb: 100,149,237; } /* Identity = trust, systems */
html[data-skin="expressive"][data-cs="search"]     { --cs-accent: #A6C36F; --cs-accent-rgb: 166,195,111; } /* Search = discovery */
html[data-skin="expressive"][data-cs="agentforce"] { --cs-accent: #FF7A6E; --cs-accent-rgb: 255,122,110; } /* Agentforce = human-AI collaboration */
html[data-skin="expressive"][data-cs="automation"] { --cs-accent: #6D7CFF; --cs-accent-rgb: 109,124,255; } /* Reliability = systems */
html[data-skin="expressive"][data-cs="apps"]       { --cs-accent: #F2C94C; --cs-accent-rgb: 242,201,76; }  /* Client apps = creation */

/* Kill the decorative colored glow behind case-study hero screenshots */
html[data-skin="expressive"] .cs-hero__gradient { opacity: 0.05; filter: blur(150px); }

/* ---- Portrait: bring the human into the same color world ----
   A B&W photo against a colorful identity reads as a mismatch. Grade the
   image into the brand palette with a soft editorial duotone wash
   (periwinkle -> coral -> gold, muted, not garish) and a gentler organic
   frame. Modern mixed-media editorial, not neon. */
html[data-skin="expressive"] .about__portrait {
  position: relative;
  border-radius: 18px 24px 20px 26px;
  box-shadow: 0 10px 44px rgba(40,16,70,0.28), 0 0 0 1px rgba(109,124,255,0.22);
}
html[data-skin="expressive"] .about__portrait img { filter: grayscale(0.12) contrast(1.05) brightness(1.02); }
html[data-skin="expressive"] .about__portrait::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(109,124,255,0.34) 0%, rgba(255,122,110,0.20) 54%, rgba(242,201,76,0.28) 100%);
  mix-blend-mode: soft-light;
}
/* Cut-out portrait over rough paint (same treatment as Editorial) */
html[data-skin="expressive"] .about__portrait--cutout {
  overflow: visible; border: none; background: transparent; box-shadow: none; border-radius: 0; isolation: isolate;
}
html[data-skin="expressive"] .about__portrait--cutout::before {
  content: ''; position: absolute; z-index: -1; left: -22%; right: -22%; top: -15%; bottom: -8%;
  background: url(images/editorial/portrait-brushes.svg) center/contain no-repeat; pointer-events: none;
}
html[data-skin="expressive"] .about__portrait--cutout img { opacity: 0; }
html[data-skin="expressive"] .about__portrait--cutout::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url(images/editorial/portrait-cutout.png) center/contain no-repeat;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: normal;
}

/* ---- Restraint: color belongs in the work, not behind it ----
   The large blurred ambient color blobs read as decoration disconnected
   from the actual projects. Pull them back to a faint atmospheric whisper
   so differentiation comes from content, type, labels, and metrics, not a
   colored wash behind every screenshot. */
html[data-skin="expressive"] .bg__gradient,
html[data-skin="expressive"] .hero__gradient { opacity: 0.05; filter: blur(150px); }
html[data-skin="expressive"] .bg__gradient--1,
html[data-skin="expressive"] .hero__gradient--1 { background: var(--slack-purple); }
html[data-skin="expressive"] .bg__gradient--2,
html[data-skin="expressive"] .hero__gradient--2 { background: var(--slack-purple-light); }
html[data-skin="expressive"] .bg__gradient--3,
html[data-skin="expressive"] .hero__gradient--3 { opacity: 0; } /* drop the third (warm) blob entirely */
