/* Project pages (case study, password, workflows) in the uix look.
   Loaded after site.css and uix.css: same header, footer, fonts and colors as the uix home,
   a grey title band like the Blog and Résumé pages, and one centered column below it. */
:root {
  --accent: #0B6B63;
  --accent-dk: #095A53;
  --accent-ink: #fff;
  --ink: #232332;
  --soft: #E8F7FB;
  --soft-2: #D3F0F7;
  --surface: #F5F6F5;
  --surface-2: #EBEDEB;
  --r-lg: 4px;
  --r-md: 4px;
  --r-sm: 4px;
  --lift: 0 5px 25px rgba(35, 35, 50, 0.1);
  --nav-h: 70px;
  --col: 860px;
}
body { font-size: 16px; line-height: 1.6; }
a:hover { color: var(--accent); }
.foot .draft-note { background: none; padding: 0; color: var(--muted); }

/* title band */
main:has(> .story) { display: block; padding: 0 0 96px; }
main:has(> .story) > .page-head {
  position: static; max-height: none; overflow: visible; width: auto; margin: 0;
  padding: 56px max(20px, calc((100% - 1170px) / 2)) 48px;
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.crumbs { margin-bottom: 22px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.crumbs ol { justify-content: center; }
.crumbs li { opacity: 1; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease), color .3s var(--ease); }
.crumbs a:hover { color: var(--accent); border-bottom-color: var(--cyan); }
main:has(> .story) > .page-head h1 { font-size: 62px; line-height: 1.05; letter-spacing: -.01em; }
.proj-sub { margin-top: 10px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 600; opacity: 1; }
.proj-tabs { justify-content: center; gap: 10px; margin: 26px 0 0; }
.proj-tabs a { min-height: 40px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease); }
.proj-tabs a:hover { background: #fff; border-color: var(--cyan); color: var(--accent); }
.proj-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.dek { max-width: 760px; margin: 22px auto 0; color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.tags { justify-content: center; gap: 8px; margin: 22px auto 0; max-width: 900px; }
.tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 13px; font-weight: 400; line-height: 1.3; }
.facts {
  grid-template-columns: none; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: 6px 32px; max-width: 1080px; margin: 34px auto 0; padding-top: 26px; border-top: 1px solid var(--line); text-align: left;
}
.facts dt { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.facts dd { font-size: 14px; line-height: 1.5; color: var(--text); }

/* content column */
.story { width: min(1170px, 100% - 40px); margin: 0 auto; padding-top: 72px; }
.story section, .story section:has(.shot), .story section:has(> .ucs), .story section.sg-section, .story section.more { max-width: none; margin-top: 88px; }
.story > section:first-child, .story > .hero-board + section { margin-top: 0; }
.story > .hero-board + section { margin-top: 72px; }
.story section > h2, .story section > h3, .story section > p, .story section:has(.shot) > p, .story > .todo, .story section > .todo, .story .decisions {
  max-width: var(--col); margin-left: auto; margin-right: auto;
}
.story h2 { font-size: 44px; line-height: 1.1; letter-spacing: -.01em; }
.story section > h2::before { content: ""; display: block; width: 35px; height: 1px; margin-bottom: 18px; background: var(--cyan); }
.story p { color: var(--muted); }
.story p b, .story li b { color: var(--text); font-weight: 600; }
.story section > p:first-of-type { margin-top: 16px; }

/* screens: whole, framed like the home cards */
.hero-board img { border: 1px solid #EBEBEB; box-shadow: var(--lift); }
.shot img { border: 1px solid #EBEBEB; box-shadow: var(--lift); }
.shots { gap: 30px; margin-top: 40px; }
.figure { margin-top: 40px; }
.figure figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.shot-open:hover img { box-shadow: 0 1px 8px rgba(35, 35, 50, 0.1); transform: translateY(-2px); }

/* numbered steps as cards */
.flow { gap: 20px; margin-top: 32px; }
.flow li { padding: 26px 24px 24px; background: #fff; border: 1px solid #EBEBEB; box-shadow: var(--lift); color: var(--muted); font-size: 15px; line-height: 1.55; }
.flow li::before { margin-bottom: 14px; font-size: 40px; color: var(--cyan); }

/* Part 2, buttons, pager */
.next-step { margin-top: 96px; padding: 56px 40px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.next-step h2 { font-size: 44px; }
.next-step > p { max-width: 640px; margin: 12px auto 0; color: var(--muted); }
.part2 { max-width: 760px; margin: 32px auto 0; padding: 24px 28px; background: #fff; border: 1px solid #EBEBEB; box-shadow: var(--lift); text-align: left; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.part2:hover { color: var(--text); box-shadow: 0 1px 8px rgba(35, 35, 50, 0.1); }
.part2 small { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; opacity: 1; color: var(--muted); }
.part2 b { font-size: 30px; font-weight: 400; }
.part2 .lock { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.button { min-height: 44px; padding: 12px 22px; border-radius: 4px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; background: #fff; border: 1px solid var(--line); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.project-pager { gap: 30px; margin-top: 80px; padding-top: 0; }
.project-pager a { padding: 24px 28px; background: #fff; border: 1px solid #EBEBEB; box-shadow: var(--lift); transition: box-shadow .3s var(--ease); }
.project-pager a:hover { background: #fff; color: var(--text); box-shadow: 0 1px 8px rgba(35, 35, 50, 0.1); }
.project-pager a > span { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.project-pager b { font-size: 30px; }

/* password page and modal */
.story.unlock { max-width: 560px; padding-top: 56px; }
.unlock input, .pw-card input { border: 1px solid var(--line); background: #fff; }
.pw-modal { box-shadow: 0 10px 40px rgba(35, 35, 50, 0.18); }
.pw-modal::backdrop { background: rgba(245, 246, 245, 0.85); }
.pw-kicker { font-size: 12px !important; letter-spacing: 1px; text-transform: uppercase; }

@media (max-width: 991px) {
  .facts { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .facts dt, .facts dd { grid-column: auto; }
}
@media (max-width: 767px) {
  main:has(> .story) > .page-head { padding: 40px 20px 36px; }
  main:has(> .story) > .page-head h1 { font-size: 44px; }
  .dek { font-size: 16px; }
  .facts { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; }
  .facts dt { padding-top: 3px; }
  .story { padding-top: 48px; }
  .story section, .story section:has(.shot), .story section:has(> .ucs), .story section.sg-section, .story section.more { margin-top: 64px; }
  .story h2, .next-step h2 { font-size: 32px; }
  .next-step { padding: 36px 20px; }
  .part2 b, .project-pager b { font-size: 24px; }
  .project-pager { grid-template-columns: 1fr; gap: 16px; }
  .project-pager .next { align-items: flex-start; text-align: left; }
}
