/* =========================================================================
   Jobstream — Brand & Market Evaluation
   Prepared by Wild Places
   Editorial-document register: typography + hairlines + air carry structure.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arbutus+Slab&family=Lato:wght@400;700&display=swap');

:root {
  --paper:      #f7f5ef;
  --panel:      #fffdf8;
  --panel-2:    #f1eee5;
  --ink-1:      #1c1a15;
  --ink-2:      rgba(28,26,21,0.66);
  --ink-3:      rgba(28,26,21,0.42);
  --ink-4:      rgba(28,26,21,0.22);
  --line:       rgba(28,26,21,0.10);
  --line-strong:rgba(28,26,21,0.20);

  --navy:       #0d2b6b;   /* structural accent — nods to Jobstream, elevated */
  --navy-soft:  rgba(13,43,107,0.08);
  --signal:     #b26a24;   /* warm ochre — rationed, marks "opportunity" */
  --signal-soft:rgba(178,106,36,0.10);
  --good:       #3f6f4a;

  --ivory:      #f4f1e8;   /* text on dark inverts */
  --dark:       #0a1c47;   /* deep navy invert ground */

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --maxw: 880px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-1);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}
::selection { background: rgba(13,43,107,0.16); }

/* ---- shell ---------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.scrim { display: none; } /* not a grid item on desktop; overlay only on mobile */

.sidebar {
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 30px 22px 22px;
  display: flex; flex-direction: column;
  z-index: 20;
}
.brand { display: flex; gap: 11px; align-items: center; margin-bottom: 30px; }
.brand-mark {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 7px;
  background: var(--dark); color: var(--ivory);
  display: grid; place-items: center;
}
.brand-mark svg { width: 15px; height: 15px; }
.brand-name { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em; }

.client-chip {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 26px; background: var(--paper);
}
.client-chip .name { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; }
.client-chip .proj { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-radius: 8px;
  padding: 9px 11px; color: var(--ink-2);
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out);
}
.nav button .n { font-variant-numeric: tabular-nums; color: var(--ink-4); font-size: 11px; width: 14px; }
.nav button:hover { background: var(--panel-2); color: var(--ink-1); }
.nav button.active { background: var(--navy); color: #fff; }
.nav button.active .n { color: rgba(255,255,255,0.55); }
.nav button:active { transform: scale(0.99); }

.sidebar-foot { margin-top: auto; padding-top: 20px; font-size: 11px; color: var(--ink-3); line-height: 1.7; border-top: 1px solid var(--line); }
.sidebar-foot b { color: var(--ink-2); font-weight: 600; }

/* ---- main / views --------------------------------------------------------- */
.main { min-width: 0; }
.view { display: none; }
.view.active { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* scroll-reveal — fail-safe: content is visible unless JS is present (html.js).
   NB: the .in rule is scoped under html.js so it outranks `html.js .reveal`. */
.reveal { transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); }
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---- typography ----------------------------------------------------------- */
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 16px;
}
.kicker.accent { color: var(--signal); }
h1.title {
  font-family: var(--serif); font-weight: 340;
  font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 22px;
}
h2.sec {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -0.018em;
  margin: 0 0 8px;
}
h3.sub { font-size: 15px; font-weight: 650; letter-spacing: -0.005em; margin: 0 0 6px; }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--ink-2); font-weight: 400; letter-spacing: -0.006em; }
p { margin: 0 0 15px; color: var(--ink-2); }
p.body { color: var(--ink-1); }
strong, b { color: var(--ink-1); font-weight: 600; }
a { color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(13,43,107,0.28); }
a:hover { border-color: var(--navy); }
.small { font-size: 12.5px; color: var(--ink-3); }
em.q { font-style: italic; color: var(--ink-1); }

/* section rhythm — air above, hug below */
.block { padding: 78px 0 0; }
.block:first-child { padding-top: 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule.strong { background: var(--line-strong); }

/* ---- hero (dark invert) --------------------------------------------------- */
.hero {
  background: var(--dark);
  color: var(--ivory);
  padding: 96px 0 84px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 82% 8%, rgba(91,127,208,0.22), transparent 55%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker { color: rgba(244,241,232,0.6); }
.hero h1.title { color: var(--ivory); }
.hero .lead { color: rgba(244,241,232,0.82); max-width: 640px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(244,241,232,0.16); }
.hero-meta .m .l { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,241,232,0.5); margin-bottom: 5px; }
.hero-meta .m .v { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--ivory); }

/* ---- stat row ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.stat .fig { font-family: var(--serif); font-size: 40px; font-weight: 380; letter-spacing: -0.02em; line-height: 1; color: var(--navy); }
.stat .fig.sig { color: var(--signal); }
.stat .lab { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }

/* ---- definition rows ------------------------------------------------------ */
.dl { margin: 0; }
.dl .row { display: grid; grid-template-columns: 170px 1fr; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.dl .row:last-child { border-bottom: 0; }
.dl .k { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.dl .d { color: var(--ink-1); font-size: 14.5px; }
.dl .d .muted { color: var(--ink-2); }

/* ---- assessment items (strength / opportunity) ---------------------------- */
.assess { display: grid; gap: 0; }
.assess .item { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 128px 1fr; gap: 24px; }
.assess .item:last-child { border-bottom: 0; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.tag.s { color: var(--good); }
.tag.o { color: var(--signal); }
.assess .item h3 { margin-bottom: 7px; }
.assess .item p { margin: 0; font-size: 14px; }

/* ---- brand specimen ------------------------------------------------------- */
.specimen { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.spec-logo { padding: 30px 28px; display: flex; align-items: center; justify-content: center; background: #ffffff; border-bottom: 1px solid var(--line); }
.spec-logo img { height: 34px; width: auto; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; }
.spec-cell { padding: 22px 24px; }
.spec-cell + .spec-cell { border-left: 1px solid var(--line); }
.spec-cell .l { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { text-align: left; }
.sw .chip { width: 100%; height: 40px; border-radius: 7px; border: 1px solid var(--line); }
.sw .hex { font-size: 10.5px; color: var(--ink-3); margin-top: 5px; font-variant-numeric: tabular-nums; }
.sw .nm { font-size: 10.5px; color: var(--ink-2); }
.type-arbutus { font-family: 'Arbutus Slab', serif; font-size: 27px; color: var(--navy); line-height: 1.1; }
.type-lato { font-family: 'Lato', sans-serif; font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* ---- competitor table ----------------------------------------------------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cmp th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
table.cmp td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-1); }
table.cmp td.name { font-weight: 600; white-space: nowrap; }
table.cmp td .dom { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
table.cmp td .pos { color: var(--ink-2); font-size: 13px; }
table.cmp tr.hl td { background: var(--signal-soft); }
table.cmp tr.hl td.name { color: var(--signal); }
.tier { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.tier.leading { color: var(--good); }
.tier.modern { color: var(--navy); }
.tier.dated { color: var(--ink-3); }
/* grouped-table ring headers + scale column */
table.cmp tr.grp td {
  padding: 26px 0 8px; border-bottom: 1px solid var(--line-strong);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--signal);
}
table.cmp tr.grp.first td { padding-top: 2px; }
table.cmp td.scale { color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: normal; }
/* neutral tag color modifiers (reused in research profiles / ring labels) */
.tag.n { color: var(--navy); }
.tag.m { color: var(--ink-3); }
/* source/methodology note */
.method { border-left: 2px solid var(--line-strong); padding: 4px 0 4px 18px; margin-top: 18px; }
.method .l { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.method p { font-size: 12px; color: var(--ink-3); margin: 0; font-style: italic; }

/* ---- positioning map ------------------------------------------------------ */
.map-frame { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 20px; }
.map { width: 100%; height: auto; display: block; }
.map-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--ink-2); }
.map-legend .li { display: flex; align-items: center; gap: 7px; }
.dot-key { width: 10px; height: 10px; border-radius: 50%; }

/* ---- numbered moves / recommendations ------------------------------------- */
.moves { display: grid; gap: 0; counter-reset: mv; }
.move { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.move:last-child { border-bottom: 0; }
.move .no { font-family: var(--serif); font-size: 30px; font-weight: 340; color: var(--ink-4); line-height: 1; }
.move h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.01em; }
.move p { margin: 0; font-size: 14px; }

/* ---- phase timeline ------------------------------------------------------- */
.phases { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.phase { padding: 22px 20px; }
.phase + .phase { border-left: 1px solid var(--line); }
.phase .ph { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--signal); font-weight: 700; margin-bottom: 9px; }
.phase h4 { font-family: var(--serif); font-size: 19px; font-weight: 420; margin: 0 0 8px; letter-spacing: -0.01em; }
.phase ul { margin: 0; padding-left: 16px; }
.phase li { font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }

/* ---- callout / pull ------------------------------------------------------- */
.pull { font-family: var(--serif); font-weight: 340; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.28; letter-spacing: -0.015em; color: var(--ink-1); border-left: 2px solid var(--signal); padding: 4px 0 4px 26px; margin: 8px 0; }
.pull .hi { color: var(--signal); font-style: italic; }

/* ---- closing invert ------------------------------------------------------- */
.close-band { background: var(--dark); color: var(--ivory); border-radius: 16px; padding: 56px 48px; margin-top: 24px; position: relative; overflow: hidden; }
.close-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(100% 120% at 12% 100%, rgba(91,127,208,0.24), transparent 52%); pointer-events: none; }
.close-band .wrapx { position: relative; z-index: 1; }
.close-band h2 { font-family: var(--serif); font-weight: 340; font-size: clamp(26px,3.4vw,38px); line-height: 1.12; letter-spacing: -0.018em; color: var(--ivory); margin: 0 0 16px; }
.close-band p { color: rgba(244,241,232,0.8); max-width: 560px; }
.close-band .sign { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(244,241,232,0.16); font-size: 12.5px; color: rgba(244,241,232,0.6); }
.close-band .sign b { color: var(--ivory); }

/* tags inline */
.pill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 9px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--paper); }
.pill.sig { color: var(--signal); border-color: rgba(178,106,36,0.35); background: var(--signal-soft); }

/* two-col prose */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.note { font-size: 12px; color: var(--ink-3); font-style: italic; }

/* footer inside views */
.view-foot { padding: 60px 0 70px; color: var(--ink-3); font-size: 12px; }

/* mobile menu toggle (hidden on desktop) */
.mobile-bar { display: none; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 264px; transform: translateX(-100%);
    transition: transform 260ms var(--ease-out); box-shadow: 0 0 40px rgba(0,0,0,0.18);
  }
  .sidebar.open { transform: none; }
  .mobile-bar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 15;
    background: var(--panel); border-bottom: 1px solid var(--line); padding: 12px 18px;
  }
  .mobile-bar button { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px; display: grid; place-items: center; cursor: pointer; color: var(--ink-1); }
  .mobile-bar .t { font-weight: 600; font-size: 14px; }
  .mobile-bar .t span { color: var(--ink-3); font-weight: 400; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(10,20,40,0.4); z-index: 18; }
  .scrim.on { display: block; }
  .wrap { padding: 0 22px; }
  .hero { padding: 60px 0 52px; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .cols2 { grid-template-columns: 1fr; gap: 22px; }
  .dl .row { grid-template-columns: 1fr; gap: 4px; }
  .assess .item { grid-template-columns: 1fr; gap: 8px; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-cell + .spec-cell { border-left: 0; border-top: 1px solid var(--line); }
  .phases { grid-template-columns: 1fr; }
  .phase + .phase { border-left: 0; border-top: 1px solid var(--line); }
  .move { grid-template-columns: 40px 1fr; gap: 14px; }
  .hero-meta { gap: 26px; }
  .close-band { padding: 38px 26px; }
}

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