/* ==== HOME R4: the first screen (c3h) and "What I do" (ms) ====
   One file for these two sections so it never collides with the blocks other threads append to g22.css.
   Loaded last. Phone type scale 12/14/18/28/56, touch targets 44, one accent (olive in light, lime in dark). */

/* ---------- c3h: heading, tabs, a real screen that runs off the frame ---------- */
.c3h{overflow-x:clip}
.c3h__in{
  max-width:none;margin:0;
  grid-template-columns:minmax(0,460px) minmax(0,1fr);
  grid-template-areas:"top res" "ask res" ". res";
  grid-template-rows:auto auto 1fr;
  column-gap:56px;
  padding:136px 0 0 max(48px,calc((100vw - 1344px)/2 + 48px));
}
.c3h__k{margin:0 0 24px;font:600 12px/1.2 "Mona Sans",system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--lime)}

/* beats the generic h1/span rules in the inline sheet, hence !important */
html body .c3h h1.c3h__h{
  margin:0;font-family:"Mona Sans",system-ui,sans-serif!important;font-weight:560!important;font-stretch:100%!important;
  font-size:clamp(36px,3.9vw,56px)!important;line-height:1.04!important;letter-spacing:-.028em!important;text-transform:none!important;text-wrap:balance;color:var(--ink);
}
html body .c3h h1.c3h__h span{
  display:block;margin-top:.28em;font-family:inherit!important;font-weight:inherit!important;font-stretch:100%!important;
  font-size:inherit!important;letter-spacing:inherit!important;text-transform:none!important;color:var(--mute);
}

.c3h__ask{margin-top:48px}
.c3h__ask>p{margin:0 0 4px;font:400 14px/1.4 "Mona Sans",system-ui,sans-serif;color:var(--mute)}
.c3h__chips{gap:0 24px}
.c3h__chips button{
  position:relative;min-height:44px;padding:0;border-radius:0;background:none;box-shadow:none;
  font:600 14px/1 "Mona Sans",system-ui,sans-serif;color:var(--mute);
}
.c3h__chips button::after{content:"";position:absolute;left:0;right:0;bottom:8px;height:2px;background:var(--lime);transform:scaleX(0);transform-origin:0 50%;transition:transform .45s var(--e)}
.c3h__chips button:hover{box-shadow:none;color:var(--ink)}
.c3h__chips button[aria-pressed="true"]{background:none;color:var(--ink);box-shadow:none}
.c3h__chips button[aria-pressed="true"]::after{transform:scaleX(1)}
html[data-mode="light"] .c3h__chips button,html[data-mode="light"] .c3h__chips button[aria-pressed="true"]{background:none;box-shadow:none}
html[data-mode="light"] .c3h__chips button[aria-pressed="true"]{color:var(--ink)}

/* right column: counter above, then the caption, then the screen that bleeds off the right edge and the bottom */
.c3h__res{align-self:end;display:flex;flex-direction:column;min-width:0}
.c3h__nav{order:-1;margin:0 120px 24px 0;gap:16px}
.c3h__track{gap:24px;padding:0 0 0 2px;margin:0;scroll-padding-left:2px;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 140px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 140px),transparent)}
.c3h__p{flex:0 0 calc(100% - 120px);max-width:880px;display:flex;flex-direction:column}
.c3h__p figcaption{order:-1;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:8px;min-height:112px;margin:0 0 24px;padding-right:24px;font:400 16px/1.5 "Mona Sans",system-ui,sans-serif;color:var(--mute);max-width:62ch}
.c3h__p figcaption a{margin:0;min-height:44px;font-size:14px;align-self:start}

.c3h__win{
  display:block;position:relative;overflow:hidden;aspect-ratio:1048/617;
  border-radius:3.4% 3.4% 0 0/5.8% 5.8% 0 0;background:#E4E7D7;
  box-shadow:0 0 0 1px rgb(210 255 0/.22),0 -2px 0 0 rgb(244 244 237/.05),0 48px 80px -32px #000;
}
.c3h__win .c3h__ui{
  position:absolute;display:block;width:122.137%;max-width:none;height:auto;left:-3.149%;top:-6.645%;
  border-radius:0;box-shadow:none;background:none;
}
html[data-mode="light"] .c3h__win{
  box-shadow:0 0 0 1px rgb(40 44 32/.08),0 -1px 0 rgb(255 255 255/.7),-28px 0 56px -32px rgb(40 44 32/.4),0 40px 70px -30px rgb(40 44 32/.45),0 10px 24px -12px rgb(40 44 32/.3);
}
html[data-mode="light"] .c3h__ui{box-shadow:none}

@media (max-width:1100px) and (min-width:768px){
  .c3h__in{grid-template-columns:minmax(0,300px) minmax(0,1fr);column-gap:32px;padding:120px 0 0 32px}
  .c3h__p{flex-basis:calc(100% - 72px)}
  .c3h__nav{margin-right:72px}
  .c3h__p figcaption{font-size:14px;min-height:128px}
}

@media (max-width:767px){
  .c3h__in{
    grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "ask" "res";grid-template-rows:none;
    padding:88px 16px 0;
  }
  .c3h__k{margin-bottom:16px}
  html body .c3h h1.c3h__h{font-size:28px!important;line-height:1.12!important}
  .c3h__ask{margin-top:24px}
  .c3h__chips{gap:0 20px;margin:0 -16px;padding:0 16px}
  .c3h__res{margin:16px -16px 0}
  .c3h__nav{margin:0 16px 8px}
  .c3h__track{gap:12px;padding:0 16px;scroll-padding:0 16px;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
  .c3h__p{flex-basis:calc(100% - 40px)}
  .c3h__p figcaption{font-size:14px;line-height:1.45;min-height:136px;margin-bottom:12px;padding-right:0}
}
@media (prefers-reduced-motion:reduce){.c3h__chips button::after{transition:none!important}}

/* ---------- ms: one big number, two smaller ones, a note on top ---------- */
html body .ms{min-height:0}
html body .ms .ms__in{
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;row-gap:0;align-items:start;
  max-width:1344px;margin:0 auto;padding:120px 48px 128px;
}
html body .ms .ms__top{grid-column:1/-1;margin-bottom:48px}
html body .ms .ms__t{
  grid-column:1/span 9;max-width:none;font-family:var(--sans);font-weight:500;font-stretch:100%;
  font-size:clamp(32px,3.9vw,56px);line-height:1.06;letter-spacing:-.028em;text-transform:none;color:rgb(var(--on,244 244 237)/.96);text-wrap:balance;
}
html body .ms .ms__t em{font:inherit;font-style:normal;letter-spacing:inherit;color:rgb(var(--on,244 244 237)/.5)}
.ms__tools{grid-column:1/span 9;display:flex;flex-wrap:wrap;gap:4px 40px;margin:32px 0 0;font:400 14px/1.5 var(--sans);color:rgb(var(--on,244 244 237)/.72)}
.ms__tools span::before{display:block;margin-bottom:2px;font:600 12px/1.2 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--lt,#D2FF00)}
.ms__tools span:first-child::before{content:"Wire"}
.ms__tools span:last-child::before{content:"Run"}

html body .ms .ms__lz{
  grid-column:1/-1;margin-top:80px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;row-gap:0;align-items:stretch;
  --lz-bg:#FBFBF6;--lz-line:rgb(40 44 32/.08);--lz-bar0:rgb(40 44 32/.14);--lz-bar0-fg:#565C49;
  --lz-bar1:#4D5C00;--lz-bar1-fg:#F5F6EE;--lz-num:#4D5C00;
  --lz-shadow:0 36px 60px -34px rgb(40 44 32/.5),0 10px 22px -14px rgb(40 44 32/.3);
  --lz-chip:#EEF0E3;--lz-mute:#565C49;--lz-soft:#3d4231;
}
html[data-mode="dark"] body .ms .ms__lz{
  --lz-bg:#22271a;--lz-line:rgb(210 255 0/.16);--lz-bar0:rgb(244 244 237/.16);--lz-bar0-fg:#d6d9c8;
  --lz-bar1:#D2FF00;--lz-bar1-fg:#1c1f16;--lz-num:#D2FF00;
  --lz-shadow:0 40px 60px -30px #000,inset 0 1px 0 rgb(255 255 255/.06);
  --lz-chip:#F1F2E6;--lz-mute:#b6baa8;--lz-soft:#d6d9c8;
}

/* a client card: small mark, the result drawn as two bars on one scale, the line, three facts */
html body .ms .lz{
  position:relative;display:flex;flex-direction:column;gap:20px;border-radius:20px;overflow:visible;
  padding:24px 24px 64px;background:var(--lz-bg);box-shadow:0 0 0 1px var(--lz-line),var(--lz-shadow);
  color:rgb(var(--on,244 244 237))!important;text-decoration:none!important;
  transition:transform .6s var(--m-out,cubic-bezier(.2,.7,.1,1)),box-shadow .6s;
}
html body .ms .lz:hover{transform:translateY(-4px)}
html body .ms .lz--a{grid-column:1/span 6;padding:28px 28px 72px}
html body .ms .lz--b{grid-column:7/span 3}
html body .ms .lz--c{grid-column:10/span 3}

.lz__hd{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}
.lz__logo{display:inline-flex;align-items:center;height:36px;padding:0 12px;border-radius:10px;background:var(--lz-chip);color:#23261B;font:700 15px/1 var(--sans);letter-spacing:-.01em}
.lz__logo img{display:block;height:18px;width:auto}
.lz__tag{font:600 12px/1.2 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--lz-mute)}

.lz__g{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;height:168px}
.lz--a .lz__g{height:232px;gap:24px}
.lz__n{align-self:end;font:600 56px/.9 var(--sans);font-stretch:100%;letter-spacing:-.05em;color:var(--lz-num);margin:0 0 4px -.03em}
.lz--a .lz__n{font-size:clamp(72px,7.6vw,112px)}
.lz__chart{display:flex;flex-direction:column;height:100%}
.lz__bars{display:flex;align-items:flex-end;gap:8px;flex:1;min-height:0;padding-bottom:0}
.lz__bar{position:relative;display:block;width:44px;height:calc(var(--h) * 1%);border-radius:8px 8px 2px 2px;background:var(--lz-bar0);transform-origin:50% 100%}
.lz--a .lz__bar{width:68px}
.lz__bar--1{background:var(--lz-bar1)}
.lz__bar b{position:absolute;left:0;right:0;top:8px;text-align:center;font:600 14px/1 var(--sans);font-variant-numeric:tabular-nums;color:var(--lz-bar0-fg)}
.lz__bar--1 b{color:var(--lz-bar1-fg)}
.lz__ax{display:flex;gap:8px;margin-top:8px;font:500 12px/1.2 var(--sans);color:var(--lz-mute)}
.lz__ax span{width:44px;text-align:center}
.lz--a .lz__ax span{width:68px}
.lz__ix{margin:-8px 0 0;font:400 12px/1.3 var(--sans);color:rgb(var(--on,244 244 237)/.62)}

html body .ms .lz__k{display:block;font:600 18px/1.3 var(--sans);color:rgb(var(--on,244 244 237))}
html body .ms .lz--a .lz__k{font-size:28px;line-height:1.2}
.lz__ul{display:grid;gap:8px;margin:0;padding:0;list-style:none;font:400 14px/1.45 var(--sans);color:var(--lz-soft)}
.lz__ul li{position:relative;padding-left:16px}
.lz__ul li::before{content:"";position:absolute;left:0;top:.55em;width:6px;height:6px;border-radius:50%;background:var(--lz-num)}
html body .ms .lz__go{position:absolute;left:24px;bottom:12px;min-height:44px;display:inline-flex;align-items:center;gap:8px;font:600 12px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:rgb(var(--on,244 244 237))}
html body .ms .lz--a .lz__go{left:28px}

/* bars grow while the card scrolls into view; without support they simply stand */
@supports (animation-timeline:view()){
  .lz__bar{animation:lz-grow linear both;animation-timeline:view();animation-range:entry 5% entry 70%}
  .lz__bar--1{animation-range:entry 15% entry 90%}
  @keyframes lz-grow{from{transform:scaleY(.04)}to{transform:scaleY(1)}}
}

/* the note: paper on ink, raised under the cards and offset to the right */
html body .ms .ms__q{
  grid-column:4/span 9;grid-row:2;position:relative;z-index:2;justify-self:stretch;max-width:none;margin:40px 0 0;padding:40px 48px 44px;text-align:left;
  background:#F1F2E6;color:#23261B;border-radius:4px;
  box-shadow:0 56px 80px -36px #000,0 14px 28px -14px rgb(0 0 0/.55),0 0 0 1px rgb(255 255 255/.06);
}
html body .ms .ms__q::before{content:none}
html body .ms .ms__q p{font:500 clamp(22px,2.1vw,28px)/1.35 var(--serif);letter-spacing:-.005em;color:#23261B;text-wrap:pretty}
html[data-mode="light"] body .ms .ms__q,html[data-mode="light"] .ms .ms__q{
  background:#FFFFFF;box-shadow:0 44px 70px -34px rgb(40 44 32/.5),0 12px 26px -14px rgb(40 44 32/.35),0 0 0 1px rgb(40 44 32/.06);
}

@media (max-width:1100px) and (min-width:768px){
  html body .ms .ms__in{padding:104px 32px 96px}
  html body .ms .ms__t,.ms__tools{grid-column:1/-1}
  html body .ms .lz--a{grid-column:1/-1}
  html body .ms .lz--b{grid-column:1/span 6;margin-top:24px}
  html body .ms .lz--c{grid-column:7/span 6;margin-top:24px}
  html body .ms .ms__q{grid-column:3/span 10;grid-row:3}
}

@media (max-width:767px){
  html body .ms .ms__in{display:block;padding:96px 16px 64px}
  html body .ms .ms__top{margin-bottom:24px}
  html body .ms .ms__t{font-size:28px;line-height:1.14;letter-spacing:-.02em}
  .ms__tools{display:grid;gap:16px;margin-top:24px}
  html body .ms .ms__lz{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:40px}
  html body .ms .lz,html body .ms .lz--a,html body .ms .lz--b,html body .ms .lz--c{grid-column:1/-1;padding:20px 20px 60px}
  html body .ms .lz__go,html body .ms .lz--a .lz__go{left:20px}
  .lz__g,.lz--a .lz__g{height:152px}
  .lz__n,.lz--a .lz__n{font-size:56px}
  html body .ms .lz--a .lz__k{font-size:18px}
  html body .ms .ms__q{grid-column:1/-1;grid-row:auto;margin:16px 0 0;padding:24px 24px 28px}
  html body .ms .ms__q p{font-size:18px;line-height:1.4}
}
@media (prefers-reduced-motion:reduce){html body .ms .lz{transition:none}.lz__bar{animation:none!important}}
/* /HOME R4 */

/* ==== HOME DARK R6: the dark mode of Home as "Ink" (touches Home) ====
   Spec: docs in the handoff `revolution-modes.md`. Dark = ink ground, lime as the only accent, higher contrast, 1px lime hairlines,
   flat surfaces, no drop shadows, no glows, no gradients. Light mode is not touched: every rule here sits under html[data-mode="dark"].
   Two grounds only, alternating: A #10120C and B #171A11. A card sits on the other ground and is drawn with a hairline.
   Order on Home: hero A, c3h B, ms A, bf B, fix A, apps B, showcase A, cl A, promo (paper, kept on purpose), about B, career A,
   socials B, references A, newsletter B, footer A. */
html[data-mode="dark"]{--hd-a:#10120C;--hd-b:#171A11;--hd-line:rgb(210 255 0/.16);--hd-line2:rgb(210 255 0/.26)}

/* grounds */
html[data-mode="dark"] .s.c3h{background:var(--hd-b)}
html[data-mode="dark"] .s.ms{background:var(--hd-a)}
html[data-mode="dark"] .s.pl3{background:var(--hd-a)}
html[data-mode="dark"] .s.hm{background:var(--hd-b)}
html[data-mode="dark"] .s.hm.v4s,html[data-mode="dark"] .s.cl{background:var(--hd-a)}
html[data-mode="dark"] .s.sh{background:var(--hd-b)}
html[data-mode="dark"] .s.crb{background:var(--hd-a)}
html[data-mode="dark"] .s.rcs{background:var(--hd-a)}
html[data-mode="dark"] .s.sh::before{content:none}

/* c3h: the screen sits on ink with a hairline, not on a black drop shadow */
html[data-mode="dark"] .c3h__win{box-shadow:0 0 0 1px var(--hd-line2)}
html[data-mode="dark"] .c3h__bar{background:rgb(244 244 237/.2)}

/* ms: client cards are flat ink surfaces with a hairline; the bars are flat lime, no gradient, no shadow */
html[data-mode="dark"] body .ms .ms__lz{
  --lz-bg:var(--hd-b);--lz-line:var(--hd-line2);--lz-bar0:rgb(244 244 237/.2);--lz-bar0-fg:#F4F4ED;
  --lz-bar1:#D2FF00;--lz-bar1-fg:#10120C;--lz-num:#D2FF00;--lz-shadow:none;
  --lz-chip:#F4F4ED;--lz-mute:#C9CDBE;--lz-soft:#E4E7D8;
}
html[data-mode="dark"] body .ms .lz{border-radius:12px;box-shadow:0 0 0 1px var(--lz-line)}
html[data-mode="dark"] body .ms .lz:hover{box-shadow:0 0 0 1px #D2FF00}
html[data-mode="dark"] .lz__bar--1{box-shadow:none}
html[data-mode="dark"] .lz__ix{color:#C9CDBE}
html[data-mode="dark"] body .ms .ms__q{background:var(--hd-b);box-shadow:inset 0 0 0 1px var(--hd-line2);border-radius:12px}
html[data-mode="dark"] body .ms .ms__q p{color:#F4F4ED}
html[data-mode="dark"] .ms .contours{opacity:.05}

/* bf (before): was a beige block in the middle of an ink page. Ink ground, the chips stay light like every other window */
/* the pin script writes the beige into an inline style on the section, hence !important */
html[data-mode="dark"] .s.bf[data-theme="light"]{background:var(--hd-b)!important;color:#F4F4ED!important;--on:244 244 237}
html[data-mode="dark"] .bf__tag .b{background:#F4F4ED;color:#23261B}
html[data-mode="dark"] .bf__h .b{color:#F4F4ED}
html[data-mode="dark"] .bf__h .b b{color:#D2FF00;background:none}
html[data-mode="dark"] .bf__ln .cx{stroke:#B6BAA8;opacity:.6}
html[data-mode="dark"] .bf__it{box-shadow:0 0 0 1px rgb(210 255 0/.2)}

/* pl3 (what I fix): the two rows that are not in focus were at 30%, which fails contrast; 64% keeps the hierarchy */
html[data-mode="dark"] .pl3__nm[style*="opacity: 0.3"],html[data-mode="dark"] .pl3__kpi[style*="opacity: 0.3"]{opacity:.7!important}
html[data-mode="dark"] .pl3__tag{color:#C9CDBE}
html[data-mode="dark"] .pl3__row,html[data-mode="dark"] .pl3__p:first-child .pl3__row{border-color:var(--hd-line)}

/* apps: the stage behind each window was an accent gradient with dots; now a flat ink panel with a hairline */
html[data-mode="dark"] .gi .st{background:var(--hd-a);box-shadow:inset 0 0 0 1px var(--hd-line)}
html[data-mode="dark"] .gi::before{background:var(--hd-b)}
html[data-mode="dark"] .gi .win{box-shadow:0 0 0 1px var(--hd-line2)}

/* about: no glow behind the portraits (the topographic lines stay) */
html[data-mode="dark"] .sh .contours{opacity:.06}

/* socials: ink instead of a paper strip; the cards get a hairline instead of a drop shadow */
html[data-mode="dark"] .s.so[data-theme="light"]{background:var(--hd-b);color:#F4F4ED;--on:244 244 237}
html[data-mode="dark"] .so h2,html[data-mode="dark"] .so .intro{color:#F4F4ED}
html[data-mode="dark"] .so h2 span{color:#D2FF00}
html[data-mode="dark"] .so .ch{box-shadow:0 0 0 1px var(--hd-line2)}
html[data-mode="dark"] .so .contours{opacity:.06;color:#F4F4ED}

/* newsletter: the neon field around the card is gone; the card is ink on ink with a hairline */
html[data-mode="dark"] .s.nlb[data-theme="lime"]{background:var(--hd-b)}
html[data-mode="dark"] .nlb__in{background:var(--hd-a);box-shadow:inset 0 0 0 1px var(--hd-line2)}
html[data-mode="dark"] .nlb__in::after{content:none}
html[data-mode="dark"] .nlb__cup{box-shadow:none}

/* footer: the clip and the notch pieces share one ink, the lime/cream gradient behind the corners is replaced by the ground */
html[data-mode="dark"] .s.ft[data-theme="lime"]{background:var(--hd-a);--dark:#10120C}
html[data-mode="dark"] .ft .grad{background:var(--hd-a)}
html[data-mode="dark"] .ft .clip{background:var(--hd-a);box-shadow:inset 0 1px 0 var(--hd-line2)}
html[data-mode="dark"] .ft .legal,html[data-mode="dark"] .ft .legal a{color:#C9CDBE;opacity:1}
/* /HOME DARK R6 */
