/* Ask Charles, second pass: the portrait in the hero, sample jobs that run on the page, Minnesota. */

/* hero with the portrait */
.hero-2 { align-items: center; padding: 96px 0 clamp(30px, 4vw, 56px); }
.hero-grid { position: relative; display: grid; gap: 22px; width: 100%; }
.hero-2 .face { width: 148px; margin: 10px 0 0 10px; }
.hero-2 .face figcaption { margin-top: 14px; font-size: 12px; }
.hero-2 .mega { margin-top: 14px; font-size: clamp(40px, 14.6vw, 96px); font-variation-settings: "opsz" 96; letter-spacing: -.012em; }
@media (max-width: 619px) { .hero-2 .face figcaption span:last-child { display: none; } .hero-2 .kicker { font-size: 10.5px; letter-spacing: .1em; } }
.hero-2 .lede { max-width: 50ch; }
@media (min-width: 620px) { .hero-2 .face { width: 200px; } .hero-2 .face figcaption { font-size: 14px; } }
@media (min-width: 1000px) {
  .hero-2 { align-items: flex-end; padding-top: 112px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(270px, 25vw, 368px); gap: clamp(40px, 5vw, 84px); align-items: end; }
  .hero-2 .face { order: 2; width: 100%; margin: 0 0 8px; }
  .hero-2 .face figcaption { font-size: 15px; }
  .hero-2 .mega { margin-top: clamp(18px, 2.2vw, 30px); font-size: clamp(58px, 9vw, 132px); }
}

/* sample jobs */
#work { padding-top: clamp(72px, 8vw, 118px); }
.h2.wide { max-width: 16ch; }
.sub { max-width: 54ch; margin-top: clamp(18px, 2vw, 28px); font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.demo { margin-top: clamp(30px, 4.2vw, 60px); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(241, 233, 221, .045), rgba(241, 233, 221, .012)); }
.tabs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
html:not(.js) .tabs { display: none; }
.tabs button { flex: none; padding: 13px 16px 12px; border: 1px solid transparent; border-radius: 12px; background: none; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; cursor: pointer; transition: color .2s, background .25s, border-color .25s; }
.tabs button:hover { color: var(--text); border-color: var(--line-2); }
.tabs button[aria-selected="true"] { background: var(--sig); border-color: var(--sig); color: var(--on-sig); }
.panel { display: grid; }
.panel + .panel { border-top: 1px solid var(--line-2); }
.js .panel { display: none; border-top: 0; }
.js .panel.on { display: grid; }
.panel .in, .panel .out { position: relative; min-width: 0; padding: clamp(22px, 3vw, 42px); }
.panel .in { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .panel { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); min-height: 430px; }
  .panel .in { border-bottom: 0; border-right: 1px solid var(--line); }
  .panel .in::after { /* dots walking from what came in to what goes out */
    content: ""; position: absolute; left: clamp(22px, 3vw, 42px); right: 0; bottom: clamp(26px, 3vw, 46px); height: 6px; opacity: .6;
    background: radial-gradient(circle, var(--sig) 2px, transparent 2.6px) 0 0 / 14px 6px repeat-x;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 80%); mask-image: linear-gradient(90deg, transparent, #000 80%);
    animation: march .9s linear infinite;
  }
}
@keyframes march { to { background-position: 14px 0; } }
.cap { font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sig); }
.cap i { display: block; margin-top: 6px; font-style: normal; letter-spacing: .06em; color: var(--faint); }
.raw { margin-top: 20px; padding: 16px 18px; border-radius: 18px 18px 18px 4px; background: rgba(241, 233, 221, .075); font: 400 14.5px/1.62 var(--mono); color: var(--muted); }
.made { margin-top: 20px; max-width: 58ch; font-weight: 420; font-size: clamp(18px, 1.72vw, 25px); line-height: 1.42; letter-spacing: -.015em; }
.made.shots { font: 400 clamp(13.5px, 1.1vw, 15.5px)/1.9 var(--mono); letter-spacing: 0; white-space: pre-line; max-width: none; }
.rest { visibility: hidden; }
.typing .typed::after { content: ""; display: inline-block; width: .46em; height: .95em; margin-left: 3px; background: var(--sig); vertical-align: -.12em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px 8px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 8px var(--sig-glow); }
.js .chips li, .js .mini-page > * { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .done .chips li, .js .done .mini-page > * { opacity: 1; transform: none; transition-delay: calc(var(--k, 0) * 120ms + 80ms); }
.chips li:nth-child(2), .mini-page > :nth-child(2) { --k: 1; }
.chips li:nth-child(3), .mini-page > :nth-child(3) { --k: 2; }
.chips li:nth-child(4), .mini-page > :nth-child(4) { --k: 3; }
.mini-page > :nth-child(5) { --k: 4; }

/* the free first step stands apart on the menu */
.way.first { border-top-color: var(--sig); }
.way.first h3 b, .way.first .n { color: var(--sig); }
.way.first .go { color: var(--sig); }
@media (hover: hover) { .way.first:hover .go { color: var(--on-sig); } }

/* the sample website: a different brand on purpose, to show range */
.mini { margin-top: 20px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #F5F2EA; color: #15231D; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8); }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 11px 13px; background: #E6E1D4; font: 500 11px/1 var(--mono); color: rgba(21, 35, 29, .62); }
.mini-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(21, 35, 29, .24); }
.mini-bar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-page { padding: clamp(20px, 3vw, 38px); }
.mini-k { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #1D6A51; }
.mini-h { margin-top: 12px; max-width: 15ch; font-weight: 700; font-size: clamp(27px, 3.1vw, 44px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.mini-p { margin-top: 12px; max-width: 40ch; font-size: 15.5px; line-height: 1.5; color: rgba(21, 35, 29, .74); }
.mini-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.mini-btn { padding: 12px 18px; border-radius: 999px; background: #1D6A51; color: #F5F2EA; font-weight: 650; font-size: 14.5px; }
.mini-l { font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.mini-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.mini-cards span { padding: 14px 12px; border: 1px solid rgba(21, 35, 29, .16); border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.25; }
@media (max-width: 560px) { .mini-cards { grid-template-columns: 1fr; } }

/* Minnesota */
.home { display: grid; gap: 44px; }
.map { width: min(100%, 420px); justify-self: center; }
.map canvas { display: block; width: 100%; aspect-ratio: 44 / 50; }
.map-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font: 900 15px/1 var(--dot); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.map-cap span:nth-child(2) { color: var(--sig); }
@media (min-width: 1000px) { .home { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 88px; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  .js .chips li, .js .mini-page > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .panel .in::after { animation: none; }
}
