:root {
  --bg: #f6f3ee;
  --surface: #fffdf9;
  --ink: #2f2f2f;
  --muted: #6a6967;
  --line: #ddd4c8;
  --brand: #f5b111;
  --brand-deep: #d9960c;
  --accent: #4f4f4f;
  --ok: #13a777;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(56, 43, 18, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Montserrat", sans-serif;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.site-gridlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.site-gridlines::before {
  content: "";
  width: min(1100px, calc(100% - 80px));
  height: 100%;
  background:
    linear-gradient(rgba(0,0,0,0.04)) 0 0/1px 100% no-repeat,
    linear-gradient(rgba(0,0,0,0.04)) 25% 0/1px 100% no-repeat,
    linear-gradient(rgba(0,0,0,0.04)) 50% 0/1px 100% no-repeat,
    linear-gradient(rgba(0,0,0,0.04)) 75% 0/1px 100% no-repeat,
    linear-gradient(rgba(0,0,0,0.04)) 100% 0/1px 100% no-repeat;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 20px; }
h1, h2, h3, h4, p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  outline: 2px solid var(--brand);
}

/* ── Fixed header ───────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 200;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(0,0,0,0.05);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link i { transition: transform 0.2s; }
.back-link:hover { color: var(--ink); }
.back-link:hover i { transform: translateX(-3px); }

.site-logo {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

main {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 80px));
  margin: 0 auto;
  padding: 72px 0 120px;
}

.section { margin: 64px 0; }
.section h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  margin-bottom: 24px;
  line-height: 1.2;
}
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero h1 {
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero-sub {
  max-width: 72ch;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-section {
  min-height: 600px;
  padding: 24px 28px 10px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hangouts-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f0aa16;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 16px;
}

.hangouts-mark i {
  font-size: clamp(2.2rem, 5vw, 3.3rem);
}

.hero-p {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #494949;
  max-width: 640px;
  margin-bottom: 16px;
  line-height: 1.38;
}

.used-tools {
  margin-top: 26px;
}

.used-tools h3 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.1;
}

.tool-icons {
  display: flex;
  gap: 12px;
}

.tool {
  width: 68px;
  height: 68px;
  border: 1px solid #d8d8d8;
  background: #f4f4f4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #4e4e4e;
  font-size: 1.75rem;
}

.tool-figma,
.tool-zoom,
.tool-flowmapp,
.tool-miro {
  position: relative;
  overflow: hidden;
  background: #f6f6f6;
}

.tool-zoom {
  background: #fff;
}

.tool-zoom::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  background: linear-gradient(145deg, #4f94f7, #3062d6);
}

.tool-zoom i {
  position: relative;
  color: #fff;
  font-size: 2.05rem;
  z-index: 2;
}

.figma-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

.figma-dot.f1 { left: 16px; top: 12px; background: #f24e1e; border-radius: 12px 0 0 12px; width: 25px; }
.figma-dot.f2 { left: 40px; top: 12px; background: #ff7262; border-radius: 0 12px 12px 0; width: 25px; }
.figma-dot.f3 { left: 16px; top: 34px; background: #a259ff; border-radius: 12px 0 0 12px; width: 25px; }
.figma-dot.f4 { left: 40px; top: 34px; background: #1abcfe; }
.figma-dot.f5 { left: 16px; top: 56px; background: #0acf83; border-radius: 12px 12px 12px 12px; width: 25px; }

.tool-flowmapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fm {
  display: block;
  width: 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2f8ef1, #1f68cb);
}

.fm.b1 { height: 40px; }
.fm.b2 { height: 24px; }
.fm.b3 { height: 34px; }
.fm.b4 { height: 46px; }

.tool-miro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.m-shape {
  width: 18px;
  height: 40px;
  background: #0a0a60;
  transform: skewX(-18deg);
  display: inline-block;
}

.m-shape.m1 { height: 36px; }
.m-shape.m2 { height: 40px; }
.m-shape.m3 { height: 44px; }

.challenge-section {
  padding: 18px 22px;
}

.challenge-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.challenge-copy {
  padding-right: 16px;
}

.challenge-text {
  color: #3f3f3f;
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 8px 0 14px;
}

.challenge-list {
  margin: 4px 0 16px;
  padding-left: 24px;
}

.challenge-list li {
  color: #3d3d3d;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.target-flow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  font-size: 1.06rem;
  font-weight: 700;
  color: #3f3f3f;
}

.target-flow i {
  color: #d79c19;
}

.challenge-visual {
  position: relative;
  min-height: 470px;
  border-radius: 16px;
  overflow: hidden;
}

.scene-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: #e5dece;
  border-radius: 120px 120px 0 0;
}

.tree-trunk {
  position: absolute;
  right: 70px;
  bottom: 40px;
  width: 90px;
  height: 320px;
  background: #d9a1a1;
  border-radius: 60px 60px 20px 20px;
  transform: rotate(-6deg);
}

.tree-branch {
  position: absolute;
  background: #d9a1a1;
  border-radius: 20px;
}

.tree-branch.b1 { width: 160px; height: 24px; right: 140px; top: 136px; transform: rotate(15deg); }
.tree-branch.b2 { width: 140px; height: 20px; right: 70px; top: 82px; transform: rotate(-14deg); }
.tree-branch.b3 { width: 110px; height: 18px; right: 22px; top: 122px; transform: rotate(-4deg); }

.table-top {
  position: absolute;
  left: 130px;
  bottom: 130px;
  width: 170px;
  height: 26px;
  background: #f4c8a9;
  border-radius: 22px;
}

.person-shape {
  position: absolute;
  bottom: 90px;
  width: 78px;
  height: 132px;
  border-radius: 24px 24px 16px 16px;
}

.person-shape::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #f3b7b7;
}

.ps1 { left: 90px; background: #f5757f; transform: rotate(-10deg); }
.ps2 { left: 184px; background: #5f6499; }
.ps3 { left: 278px; background: #d89d31; transform: rotate(8deg); }

.stage-banner {
  margin: 28px 0;
}

.stage-surface {
  position: relative;
  border-radius: 24px;
  min-height: 360px;
  background: #f5b11f;
  overflow: hidden;
  padding: 28px;
}

.stage-surface h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1;
  color: #2f3348;
}

.stage-banner--research .stage-surface {
  display: grid;
  place-items: center;
}

.id-card {
  position: absolute;
  width: 170px;
  height: 142px;
  border-radius: 20px;
  background: #e9e9ef;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.12);
}

.id-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 18px;
  height: 58px;
  border: 4px solid #4a94db;
  border-radius: 14px;
}

.id-card::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 70px;
  height: 6px;
  background: #9ec1e8;
  box-shadow: 0 -14px 0 #9ec1e8, 82px -14px 0 #9ec1e8;
}

.id-left { left: 120px; top: 38px; }
.id-center { left: 430px; top: 88px; transform: scale(0.74); }
.id-right { right: 120px; top: 30px; }

.stage-people {
  position: absolute;
  bottom: 42px;
  width: 70px;
  height: 160px;
  border-radius: 20px;
}

.stage-people.left { left: 280px; background: #2d4f85; }
.stage-people.right { right: 280px; background: #2e365f; }

.stage-people::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 15px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f3bea3;
}

.stage-ground {
  position: absolute;
  left: 80px;
  right: 80px;
  bottom: 20px;
  height: 24px;
  border-radius: 999px;
  background: #4c4c52;
}

.stage-banner--design .stage-surface {
  min-height: 420px;
}

.stage-banner--design .stage-surface h2 {
  margin-top: 154px;
}

.stage-banner--design .stage-surface p {
  text-align: center;
  margin-top: 12px;
  color: #4a453f;
  font-size: 1.12rem;
}

.design-board {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 104px;
  border-radius: 2px;
  background: #3e3c5f;
}

.design-board::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  background: #ff6d8f;
  box-shadow: 94px 0 0 #e3b23f, 126px 0 0 #e3b23f, 62px 42px 0 #e3b23f;
}

.design-board::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 36px;
  width: 54px;
  height: 20px;
  border-top: 2px solid #e6e6ef;
  border-bottom: 2px solid #e6e6ef;
}

.design-card {
  position: absolute;
  top: 170px;
  width: 210px;
  height: 114px;
  border-radius: 2px;
  background: #ededed;
  border-top: 8px solid #3e3c5f;
}

.design-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 54px;
  height: 28px;
  background: #e2e2e2;
}

.design-card::after {
  content: "";
  position: absolute;
  left: 84px;
  right: 14px;
  top: 20px;
  height: 6px;
  background: #f9f9f9;
  box-shadow: 0 14px 0 #f9f9f9;
}

.design-card.d1 { left: 24px; }
.design-card.d2 { right: 24px; }

.design-dash-box {
  position: absolute;
  left: 110px;
  right: 110px;
  bottom: 34px;
  height: 146px;
  border: 3px dashed #4f4962;
  border-top: none;
}

.hero-visual {
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-card {
  position: absolute;
  width: 300px;
  height: 560px;
  background: #f6f1e9;
  border: 2px solid #e0b74f;
  border-radius: 34px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.13);
  padding: 14px 14px 12px;
}

.phone-left {
  left: 34px;
  top: 8px;
  transform: rotate(-5deg);
}

.phone-right {
  right: 12px;
  top: 10px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #323232;
  margin-bottom: 10px;
}

.phone-status span:last-child {
  display: inline-flex;
  gap: 2px;
}

.phone-title {
  background: #ece8e2;
  border-radius: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.floating-strip {
  position: absolute;
  left: -26px;
  right: -16px;
  min-height: 44px;
  border-radius: 12px;
  background: #efede9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.13);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a4a4a;
}

.floating-strip small {
  display: block;
  font-size: 0.72rem;
  color: #767676;
}

.floating-strip.profile { top: 84px; }
.floating-strip.points { top: 140px; left: 128px; right: -20px; font-size: 0.82rem; }

.search-row {
  margin-top: 114px;
  background: #f1efec;
  border-radius: 12px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9d9d9d;
  padding: 0 14px;
  box-shadow: inset 0 0 0 1px #dedad3;
}

.map-area {
  margin-top: 10px;
  height: 295px;
  border-radius: 14px;
  border: 1px solid #d8d2c7;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.52)),
    repeating-linear-gradient(45deg, #d8d8d8 0 12px, #ececec 12px 24px);
}

.map-area.small {
  height: 205px;
}

.fab-plus {
  position: absolute;
  right: 20px;
  bottom: 74px;
  width: 45px;
  height: 45px;
  border-radius: 999px;
  border: none;
  background: #f5b111;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 8px 14px rgba(224, 165, 29, 0.3);
}

.tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 48px;
  border-radius: 18px;
  background: #efece7;
  border: 1px solid #ddd8d1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  font-size: 0.72rem;
  color: #676767;
}

.progress-line {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-line::before {
  content: "";
  height: 14px;
  width: 68%;
  border-radius: 999px;
  background: #dbd7ce;
}

.progress-line span {
  position: absolute;
  margin-left: 0;
  width: 24%;
  height: 14px;
  border-radius: 999px;
  background: #f5b111;
}

.progress-line small {
  margin-left: auto;
  color: #f1a925;
  font-size: 0.72rem;
  font-weight: 700;
}

.label-line {
  margin-top: 12px;
  font-size: 0.86rem;
  color: #555;
}

.field-line {
  margin-top: 8px;
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid #ddd7cd;
  background: #f1efeb;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.field-line i {
  color: #f0aa16;
}

.next-btn {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 10px;
  height: 42px;
  background: #f5b111;
  color: #2b220f;
  font-weight: 800;
}

.section-title-accent {
  position: relative;
  padding-left: 26px;
  margin-bottom: 24px;
}

.section-title-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 4px;
  height: 1.05em;
  border-radius: 6px;
  background: #f0aa16;
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: end;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  padding-top: 6px;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 68px;
  left: 14%;
  right: 14%;
  border-top: 2px dashed #e1aa2f;
  z-index: 0;
}

.phase-col {
  position: relative;
  z-index: 1;
}

.phase-head {
  width: 146px;
  min-height: 120px;
  margin: 0 auto;
  border: 2px dashed #d9a021;
  border-radius: 14px;
  background: rgba(247, 247, 247, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #d39b17;
  font-weight: 800;
  font-size: 1.08rem;
}

.phase-head i {
  font-size: 2.8rem;
}

.phase-list {
  position: relative;
  margin-top: 18px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.phase-list::before {
  content: "";
  position: absolute;
  top: -14px;
  bottom: 8px;
  left: 50%;
  border-left: 1.5px dotted #a9a9a9;
}

.phase-list div {
  position: relative;
  z-index: 1;
  width: 148px;
  min-height: 50px;
  background: #efefef;
  border: 2px solid #4f4f4f;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
}

.process-illustration {
  position: relative;
  height: 230px;
}

.planet {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 240px;
  height: 170px;
  background: #4f4f52;
  border-radius: 52% 48% 46% 54% / 58% 40% 60% 42%;
}

.planet::before {
  content: "";
  position: absolute;
  left: 50px;
  top: 50px;
  width: 120px;
  height: 120px;
  background: #d39d23;
  border-radius: 999px;
}

.pin {
  position: absolute;
  color: #ff6a8e;
  font-size: 1.8rem;
}

.pin.p-a { left: 84px; top: 54px; }
.pin.p-b { left: 132px; top: 62px; }
.pin.p-c { left: 106px; top: 92px; }
.pin.p-d { left: 148px; top: 100px; }

.person {
  position: absolute;
  right: 2px;
  bottom: 6px;
  font-size: 6.2rem;
  color: #3f3f58;
}

.persona-sub {
  margin: -4px 0 12px 26px;
  font-size: 1.05rem;
  color: #454545;
}

.persona-board {
  background: #ebebeb;
  border: 1px solid #dbdbdb;
  border-radius: 20px;
  padding: 20px;
}

.persona-top-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 18px;
}

.persona-block {
  background: #efefef;
  border-radius: 12px;
  padding: 12px;
}

.persona-block h3 {
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.persona-block h3 i {
  color: #f0aa16;
  font-size: 1.7rem;
}

.story-block p {
  font-size: 0.96rem;
  color: #545464;
  margin-bottom: 8px;
  line-height: 1.4;
}

.persona-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.persona-mini-grid .persona-block h3 {
  font-size: 1.95rem;
}

.persona-mini-grid .persona-block ul {
  padding-left: 20px;
}

.persona-mini-grid .persona-block li {
  margin-bottom: 4px;
  color: #505a6b;
}

.persona-bottom-grid {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #d6d6d6;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 16px;
}

.persona-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
}

.persona-photo {
  width: 220px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background-image: url("assets/persona-malk.png");
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

.persona-photo i { display: none; }

.persona-meta h3 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.persona-meta p {
  margin-bottom: 5px;
  color: #545464;
}

.habit-col h4 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.habit-col ul {
  list-style: none;
  padding: 0;
}

.habit-col li {
  margin-bottom: 6px;
  color: #545464;
}

.wireframe-real-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wire-real {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d5d5d5;
  background: #fff;
}

.wire-real img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wire-real figcaption {
  padding: 8px 10px;
  font-size: 0.8rem;
  color: #585858;
  border-top: 1px solid #ececec;
}

.marquee-track {
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 0;
  cursor: grab;
}
.marquee-track:active { cursor: grabbing; }

.marquee-inner {
  display: flex;
  gap: 16px;
  animation: marquee-ltr 32s linear infinite;
  width: max-content;
}
.marquee-inner:hover { animation-play-state: paused; }

.marquee-item {
  flex-shrink: 0;
  width: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}
.marquee-item:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); transform: translateY(-4px); }
.marquee-item img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; display: block; }

@keyframes marquee-ltr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; }
}

.board-surface {
  background: #f5f1ea;
  border: 1px solid #e4ddd0;
  border-radius: 18px;
  padding: 28px;
}

.panel {
  background: #f9f6f0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card h4 { margin-bottom: 6px; }
.card p { color: var(--accent); }
.card ul li + li { margin-top: 4px; }

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.columns.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
}

blockquote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--brand);
  background: #fff;
  border-radius: 0 10px 10px 0;
  font-weight: 600;
}

.lead { color: var(--accent); margin-bottom: 10px; }

.synthesis-section {
  padding: 8px 0;
}

.synthesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.synthesis-card {
  border: 2px dashed #d8a232;
  border-radius: 12px;
  padding: 16px;
  background: #e5e5e5;
}

.synthesis-card__title,
.ip-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2.1vw, 2rem);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.notes-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notes-grid--compact .sticky {
  min-height: 84px;
  font-size: 0.78rem;
  line-height: 1.18;
  padding: 8px 7px;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.16);
  transform: rotate(0deg);
}

.notes-grid--compact .sticky:nth-child(2n) { transform: rotate(-0.5deg); }
.notes-grid--compact .sticky:nth-child(3n) { transform: rotate(0.8deg); }

.synthesis-connector {
  position: relative;
}

.synthesis-connector::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 14px;
  border-left: 2px dashed #d8a232;
}

.connector-arrow {
  position: absolute;
  left: 50%;
  width: 46px;
  border-top: 2px dashed #d8a232;
}

.connector-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #d8a232;
}

.connector-arrow.c1 { top: 132px; }
.connector-arrow.c2 { top: 286px; }
.connector-arrow.c3 { top: 438px; }

.themes-card .affinity-board {
  gap: 10px;
}

.themes-card .affinity-lane {
  border: 2px solid #4d4d4d;
  padding: 14px 10px 12px 48px;
}

.themes-card .lane-theme {
  min-height: 110px;
}

.themes-card .lane-individual {
  min-height: 408px;
}

.themes-card .lane-notes .sticky {
  width: 180px;
  min-height: 74px;
  font-size: 0.76rem;
}

.themes-card .lane-grid {
  gap: 11px;
}

.themes-card .lane-grid .sticky {
  min-height: 70px;
  font-size: 0.72rem;
  line-height: 1.14;
  padding: 7px 6px;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.14);
}

.ideation-priority-section {
  display: grid;
  gap: 14px;
}

.ip-card {
  border: 2px dashed #d8a232;
  border-radius: 12px;
  background: #e5e5e5;
  padding: 16px 18px;
}

.priority-panel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ideation-board--ref {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  gap: 12px;
}

.ideation-board--ref .sticky.big {
  min-height: 80px;
  font-size: 0.8rem;
  line-height: 1.14;
  padding: 8px 7px;
}

.priority-matrix.priority-matrix--ref {
  border: none;
  border-radius: 0;
  min-height: 600px;
  width: 960px;
  max-width: none;
  margin: 0 auto;
  padding: 18px 20px 62px 74px;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.22) 0 34%, transparent 34% 100%),
    #e3e3e3;
}

.priority-matrix.priority-matrix--ref .axis-y,
.priority-matrix.priority-matrix--ref .axis-x {
  position: absolute;
  background: #1f1f24;
}

.priority-matrix.priority-matrix--ref .axis-y {
  left: 72px;
  top: 70px;
  bottom: 54px;
  width: 4px;
}

.priority-matrix.priority-matrix--ref .axis-y::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -12px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid #1f1f24;
}

.priority-matrix.priority-matrix--ref .axis-x {
  left: 72px;
  right: 56px;
  bottom: 54px;
  height: 4px;
}

.priority-matrix.priority-matrix--ref .axis-x::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -6px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #1f1f24;
}

.priority-matrix.priority-matrix--ref .matrix-axis {
  font-size: 1.9rem;
  color: #393939;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.priority-matrix.priority-matrix--ref .matrix-axis-y {
  left: 10px;
  top: 58%;
  font-size: 1.75rem;
}

.priority-matrix.priority-matrix--ref .matrix-axis-x {
  bottom: 8px;
}

.priority-matrix.priority-matrix--ref .label-top,
.priority-matrix.priority-matrix--ref .label-bottom,
.priority-matrix.priority-matrix--ref .label-left,
.priority-matrix.priority-matrix--ref .label-right {
  z-index: 3;
  font-weight: 700;
}

.priority-matrix.priority-matrix--ref .label-top { left: 26px; top: 140px; font-size: 0.82rem; }
.priority-matrix.priority-matrix--ref .label-bottom { left: 30px; bottom: 134px; font-size: 0.82rem; }
.priority-matrix.priority-matrix--ref .label-left { left: 162px; bottom: 34px; font-size: 0.82rem; }
.priority-matrix.priority-matrix--ref .label-right { right: 124px; bottom: 34px; font-size: 0.82rem; }

.priority-matrix.priority-matrix--ref .matrix-mid-x {
  left: 72px;
  right: 56px;
  top: 54%;
  border-top-width: 2px;
  border-top-style: dashed;
  border-color: #2d2d53;
}

.priority-matrix.priority-matrix--ref .matrix-mid-y {
  left: 56%;
  top: 70px;
  bottom: 54px;
  border-left-width: 2px;
  border-left-style: dashed;
  border-color: #2d2d53;
}

.priority-matrix.priority-matrix--ref .sticky.m {
  width: 136px;
  min-height: 78px;
  font-size: 0.72rem;
  line-height: 1.12;
  padding: 8px 7px;
  box-shadow: 0 8px 11px rgba(0, 0, 0, 0.17);
  text-align: center;
  transform: none !important;
  z-index: 2;
}

.priority-matrix.priority-matrix--ref .s-yellow {
  background: #f0d638;
  border-color: #e5ca2f;
}

.priority-matrix.priority-matrix--ref .s-green {
  background: #9fdc8f;
  border-color: #8cc97c;
}

.priority-matrix.priority-matrix--ref .p1 { left: 96px; top: 84px; }
.priority-matrix.priority-matrix--ref .p2 { left: 96px; top: 178px; }

.priority-matrix.priority-matrix--ref .p3,
.priority-matrix.priority-matrix--ref .p4 {
  width: 142px;
  min-height: 84px;
  font-size: 0.68rem;
}

.priority-matrix.priority-matrix--ref .p3 { left: 434px; top: 88px; }
.priority-matrix.priority-matrix--ref .p4 { left: 574px; top: 88px; }

.priority-matrix.priority-matrix--ref .p5 {
  left: 434px;
  top: 194px;
  width: 166px;
  min-height: 92px;
  font-size: 0.62rem;
  line-height: 1.14;
}

.priority-matrix.priority-matrix--ref .p6 {
  left: 434px;
  top: 306px;
  width: 144px;
  min-height: 82px;
  font-size: 0.65rem;
}

.priority-matrix.priority-matrix--ref .p7 {
  left: 574px;
  top: 306px;
  width: 152px;
  min-height: 84px;
  font-size: 0.57rem;
  line-height: 1.15;
}

.priority-matrix.priority-matrix--ref .p8 {
  left: 434px;
  top: 416px;
  width: 150px;
  min-height: 80px;
  font-size: 0.66rem;
}

.priority-matrix.priority-matrix--ref .p9 {
  left: 582px;
  top: 416px;
  width: 154px;
  min-height: 84px;
  font-size: 0.74rem;
  line-height: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
}

.priority-matrix.priority-matrix--ref .priority-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.priority-matrix.priority-matrix--ref .priority-links path {
  fill: none;
  stroke: #1f1f24;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.s-note {
  background: #f2f4cf;
  border-color: #dadf89;
}

.priority-matrix.priority-matrix--ref .s-note {
  background: #ececec;
  border: 2px solid #e2d23d;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  transform: none !important;
  z-index: 3;
}

.priority-matrix.priority-matrix--ref .p10 {
  left: 425px;
  top: 20px;
  width: 300px;
  min-height: 56px;
  font-size: 0.58rem;
  line-height: 1.22;
  padding: 8px 9px;
}

.priority-matrix.priority-matrix--ref .p11 {
  left: 680px;
  top: 250px;
  width: 198px;
  min-height: 54px;
  font-size: 0.62rem;
  line-height: 1.22;
  padding: 8px 9px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sticky {
  padding: 12px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.15);
  min-height: 92px;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  color: #333;
}

.sticky:nth-child(2n) { transform: rotate(-1deg); }
.sticky:nth-child(3n) { transform: rotate(1.2deg); }
.sticky:nth-child(5n) { transform: rotate(-0.6deg); }

.s-yellow { background: #f3db3f; }
.s-green { background: #c8e58a; }
.s-cream { background: #ece9b0; }
.s-orange { background: #f7a653; }
.s-gray { background: #e8e8ea; }
.s-pink { background: #efc2d5; }
.s-blue { background: #a8c8ea; }
.s-cyan { background: #73cde8; }
.s-teal { background: #6dd2c9; }

.affinity-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.affinity-lane {
  position: relative;
  border: 2px solid #444;
  padding: 18px 14px 14px 54px;
}

.lane-theme {
  background: #c6df3d;
  min-height: 140px;
}

.lane-individual {
  background: #18ad92;
  min-height: 420px;
}

.lane-tag {
  position: absolute;
  left: 12px;
  top: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: #ff5f7a;
  color: #fff;
  padding: 4px 3px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.lane-individual .lane-tag {
  background: #1f2968;
}

.lane-notes {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  height: 100%;
}

.lane-notes .sticky {
  width: 200px;
  min-height: 94px;
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lane-grid .sticky {
  font-size: 0.88rem;
  min-height: 86px;
}

.ideation-board {
  border: 3px dashed #d0981f;
  border-radius: 18px;
  padding: 20px;
  background: #e7e7e7;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.ideation-board .big {
  min-height: 118px;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.priority-matrix {
  position: relative;
  min-height: 700px;
  background: #e7e7e7;
  border: 3px dashed #d0981f;
  border-radius: 18px;
  padding: 24px 24px 54px 72px;
  overflow: hidden;
}

.matrix-axis {
  position: absolute;
  font-size: 2rem;
  color: #222;
  font-weight: 600;
  opacity: 0.9;
}

.matrix-axis-y {
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  font-size: 1.9rem;
}

.matrix-axis-x {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.label-top,
.label-bottom,
.label-left,
.label-right {
  position: absolute;
  color: #444;
  font-weight: 600;
  font-size: 1.05rem;
}

.label-top { left: 26px; top: 42px; }
.label-bottom { left: 26px; bottom: 68px; }
.label-left { left: 160px; bottom: 24px; }
.label-right { right: 140px; bottom: 24px; }

.matrix-mid-x,
.matrix-mid-y {
  position: absolute;
  background: transparent;
  border-color: #5d5d83;
  border-style: dashed;
}

.matrix-mid-x {
  left: 72px;
  right: 24px;
  top: 53%;
  border-top-width: 2px;
}

.matrix-mid-y {
  top: 24px;
  bottom: 56px;
  left: 56%;
  border-left-width: 2px;
}

.priority-matrix .sticky.m {
  position: absolute;
  width: 165px;
  min-height: 86px;
  font-size: 0.88rem;
  padding: 10px 8px;
  text-align: center;
}

.priority-matrix .p1 { left: 170px; top: 94px; }
.priority-matrix .p2 { left: 170px; top: 198px; }
.priority-matrix .p3 { left: 640px; top: 66px; }
.priority-matrix .p4 { left: 820px; top: 66px; }
.priority-matrix .p5 { left: 640px; top: 186px; }
.priority-matrix .p6 { left: 640px; top: 348px; }
.priority-matrix .p7 { left: 820px; top: 348px; }
.priority-matrix .p8 { left: 640px; top: 490px; }
.priority-matrix .p9 { left: 820px; top: 490px; }

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.priority {
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}
.priority.high { background: #ffeab4; border: 1px solid #f5b111; }
.priority.med { background: #f3f0e8; border: 1px solid #cdc1af; }
.priority.low { background: #ececec; border: 1px solid #cfcfcf; }

.persona-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.persona-head img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.image-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.flow-diagram {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}

.flow-dark {
  background: #080808;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 20px;
}

.flow-plain {
  background: #ffffff;
  border: 1px solid #d9d0c3;
  border-radius: 10px;
  padding: 12px;
}

.flow-diagram svg {
  width: 100%;
  height: auto;
}
.flow-diagram text {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  fill: #2f2f2f;
  font-weight: 600;
}
.flow-diagram .node {
  fill: #fffdf9;
  stroke: #d9cfbf;
  stroke-width: 1.2;
}
.flow-diagram .node-main {
  fill: #ffecc0;
  stroke: #d29a1a;
}
.flow-diagram .node-sub {
  fill: #f2f0ea;
}
.flow-diagram .flow-line {
  stroke: #6a6967;
  stroke-width: 1.6;
  fill: none;
}

.flow-dark .node-dark {
  fill: #efd082;
  stroke: #f7df9f;
  stroke-width: 1.3;
}

.flow-dark .node-dark.main {
  fill: #f1c75e;
}

.flow-dark text {
  fill: #151515;
  font-size: 10px;
  font-weight: 700;
}

.flow-dark .flow-line-dark {
  stroke: #6b6b6b;
  stroke-width: 1.8;
  fill: none;
}

.journey-board {
  border: 2px solid #131313;
  background: #d9d9d9;
  overflow-x: auto;
}

.journey-head,
.journey-row {
  min-width: 980px;
  display: grid;
  grid-template-columns: 140px repeat(5, minmax(0, 1fr));
}

.journey-head > div,
.journey-row > div {
  border-right: 2px solid #131313;
  border-bottom: 2px solid #131313;
  padding: 10px;
  font-size: 0.8rem;
}

.journey-head > div:last-child,
.journey-row > div:last-child { border-right: none; }

.journey-head {
  background: #8698aa;
  color: #fff;
  font-weight: 700;
}

.jh-name {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-title {
  background: #bdc7d0;
  color: #36414d;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-row.tasks > div:not(.row-title) {
  background: #efefef;
  min-height: 130px;
}

.journey-row.map-row > div:not(.row-title) {
  background: #ececec;
  min-height: 170px;
  padding: 0;
}

.journey-row.feelings > div:not(.row-title) {
  background: #efefef;
  color: #3f78b3;
  min-height: 82px;
}

.map-canvas {
  grid-column: 2 / span 5;
}

.map-canvas svg {
  width: 100%;
  height: 170px;
}

.journey-path {
  fill: none;
  stroke: #4ea2ff;
  stroke-width: 3;
}

.mood { stroke: #d4a73a; stroke-width: 2; }
.mood.neutral { fill: #ffd86f; }
.mood.happy { fill: #f6d15a; }
.mood.good { fill: #f3c95a; }
.mood.love { fill: #ffdd7b; }

.map-canvas text {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  fill: #202020;
}

.wireframe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.wire-card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.wire-card h3 {
  margin: 0 0 8px;
  font-size: 0.88rem;
}
.wire-phone {
  border: 2px solid #cac1b5;
  border-radius: 18px;
  min-height: 230px;
  padding: 10px;
  background: repeating-linear-gradient(
    to bottom,
    #fbfaf7,
    #fbfaf7 20px,
    #f1ece2 20px,
    #f1ece2 21px
  );
}
.wire-block,
.wire-line,
.wire-btn,
.wire-search,
.wire-tile,
.wire-field {
  background: #ddd4c8;
  border-radius: 8px;
}
.wire-head { height: 20px; margin-bottom: 14px; }
.wire-circle {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 2px dashed #c2b8a8;
  margin: 10px auto;
}
.wire-line { height: 10px; margin: 10px auto; width: 76%; }
.wire-line.short { width: 46%; margin-left: 0; }
.wire-btn { height: 28px; width: 62%; margin: 14px auto 0; }
.wire-search { height: 22px; margin-bottom: 12px; }
.wire-tile { height: 44px; margin-bottom: 8px; }
.wire-field { height: 30px; margin-bottom: 8px; }

.styleguide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.style-guide-panel .lead {
  max-width: 74ch;
}

.styleguide-overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.sg-block {
  border: 1px solid #dfd6c9;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.sg-block h3,
.sg-components h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.sg-palette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.swatch {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--c);
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
}
.swatch span {
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  gap: 2px;
}

.swatch small {
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5c5c5c;
}

.sg-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sg-icon-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid #ded5c8;
  border-radius: 12px;
  background: #faf6ed;
  color: #4f4f4f;
  font-size: 1.2rem;
}

.sg-font-sample {
  border: 1px dashed #d5cab9;
  border-radius: 12px;
  padding: 12px;
  background: #fbf8f2;
}

.sg-font-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.sg-font-alpha {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.sg-font-spec {
  font-size: 0.78rem;
  color: #66615a;
}

.sg-components {
  border: 1px solid #dfd6c9;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.sg-component-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sg-component-card {
  border: 1px solid #e4ddcf;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfbf6, #f8f2e7);
  padding: 10px;
}

.sg-component-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #665a49;
  margin-bottom: 10px;
}

.sg-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sg-btn {
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
}

.sg-btn-primary {
  background: #f5b111;
  color: #2f2411;
  border-color: #d9960c;
}

.sg-btn-ghost {
  background: #fff;
  color: #444;
  border-color: #d5cab9;
}

.sg-search-line {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d6ccbf;
  border-radius: 10px;
  background: #fff;
  color: #69645d;
  font-size: 0.8rem;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.sg-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sg-chip {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid #d8cfbf;
  background: #fff;
  color: #5f5f5f;
  padding: 4px 8px;
}

.sg-chip-active {
  background: #ffecc0;
  border-color: #d29a1a;
  color: #5a4628;
}

.sg-place-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d7cdbe;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  margin-bottom: 8px;
  gap: 8px;
}

.sg-place-card strong {
  font-size: 0.82rem;
}

.sg-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6e5736;
}

.sg-progress {
  height: 8px;
  border-radius: 999px;
  background: #e4ddcf;
  overflow: hidden;
}

.sg-progress span {
  display: block;
  height: 100%;
  background: #f5b111;
}

.mobile-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.mobile-shot {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.phone-ui {
  min-height: 260px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #fffdf9, #f8f2e8);
}
.ui-status,
.ui-top {
  height: 16px;
  border-radius: 999px;
  background: #ddd5c7;
}
.ui-hero {
  background: #f5b111;
  color: #2f2411;
  border-radius: 12px;
  padding: 10px;
}
.ui-hero h3 {
  font-size: 0.98rem;
  line-height: 1.2;
  margin-bottom: 4px;
}
.ui-hero p {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 500;
}
.ui-btn {
  border: 0;
  border-radius: 10px;
  background: #2f2f2f;
  color: #fff;
  padding: 9px 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
}
.ui-btn.alt {
  background: #f5b111;
  color: #2f2411;
}
.ui-input {
  height: 30px;
  border: 1px solid #d9cfbf;
  border-radius: 9px;
  background: #fff;
}
.ui-map {
  height: 84px;
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(79, 79, 79, 0.08), rgba(79, 79, 79, 0.02)),
    repeating-linear-gradient(45deg, #efe7da 0 8px, #f8f2e8 8px 16px);
  border: 1px solid #d8cfbf;
}
.ui-card-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ui-chip {
  font-size: 0.66rem;
  font-weight: 700;
  background: #ffecc0;
  border: 1px solid #d29a1a;
  border-radius: 999px;
  padding: 4px 8px;
}
.ui-place-card,
.ui-list-item {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d9cfbf;
  background: #fff;
}
.ui-score {
  height: 48px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d9cfbf;
}
.ui-progress {
  height: 8px;
  border-radius: 999px;
  background: #e3ddcf;
  overflow: hidden;
}
.ui-progress span {
  display: block;
  height: 100%;
  background: #f5b111;
}
.ui-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #ddd4c8;
}
.ui-line {
  height: 9px;
  border-radius: 999px;
  background: #d7cebf;
  width: 72%;
}
.ui-line.long { width: 88%; }

.test-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.metric-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
.metric-card h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.metric-card p {
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 44px;
}
.meter {
  height: 8px;
  border-radius: 999px;
  background: #e5dfd1;
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: #2f2f2f;
}
.meter.warn span { background: #d9960c; }
.meter.ok span { background: #13a777; }

.repeat-box {
  margin-top: 12px;
  border: 1px dashed #c48d18;
  border-radius: 12px;
  padding: 12px;
  background: rgba(245, 177, 17, 0.08);
}

:focus-visible {
  outline: 3px solid #2f2f2f;
  outline-offset: 2px;
}

@media (max-width: 1200px) {
  .hero-layout,
  .challenge-layout,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-gallery-real {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .columns,
  .columns.two,
  .hero-grid,
  .priority-grid,
  .image-grid,
  .styleguide-overview,
  .sg-component-grid,
  .styleguide,
  .wireframe-grid,
  .test-board { grid-template-columns: 1fr; }

  .notes-grid,
  .lane-grid,
  .ideation-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .synthesis-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .synthesis-connector {
    display: none;
  }

  .notes-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .themes-card .lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ideation-board--ref {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .priority-matrix.priority-matrix--ref {
    min-height: auto;
    width: auto;
    max-width: none;
    margin: 0;
  }

  .priority-matrix.priority-matrix--ref .axis-y,
  .priority-matrix.priority-matrix--ref .axis-x,
  .priority-matrix.priority-matrix--ref .matrix-mid-x,
  .priority-matrix.priority-matrix--ref .matrix-mid-y,
  .priority-matrix.priority-matrix--ref .priority-links,
  .priority-matrix.priority-matrix--ref .label-top,
  .priority-matrix.priority-matrix--ref .label-bottom,
  .priority-matrix.priority-matrix--ref .label-left,
  .priority-matrix.priority-matrix--ref .label-right {
    display: none;
  }

  .priority-matrix.priority-matrix--ref .sticky.m,
  .priority-matrix.priority-matrix--ref .s-note {
    position: static;
    width: 100%;
    margin-bottom: 10px;
  }

  .hero-section {
    padding: 12px 14px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .challenge-layout {
    grid-template-columns: 1fr;
  }

  .challenge-copy {
    padding-right: 0;
  }

  .challenge-visual {
    min-height: 360px;
  }

  .tree-trunk {
    right: 40px;
    height: 250px;
  }

  .target-flow {
    flex-wrap: wrap;
  }

  .stage-surface {
    min-height: 300px;
    padding: 18px;
  }

  .id-left,
  .id-right {
    width: 140px;
    height: 120px;
  }

  .id-left { left: 26px; top: 26px; }
  .id-center { left: 50%; top: 74px; transform: translateX(-50%) scale(0.68); }
  .id-right { right: 26px; top: 26px; }

  .stage-people.left { left: 160px; }
  .stage-people.right { right: 160px; }

  .design-card {
    width: 170px;
    height: 96px;
    top: 168px;
  }

  .design-dash-box {
    left: 50px;
    right: 50px;
    height: 118px;
  }

  .hero-visual {
    min-height: 700px;
  }

  .phone-left {
    left: 12px;
    top: 20px;
  }

  .phone-right {
    right: 16px;
    top: 155px;
  }

  .process-layout {
    grid-template-columns: 1fr;
  }

  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-track::before {
    display: none;
  }

  .process-illustration {
    margin-top: 10px;
    height: 190px;
  }

  .persona-top-grid,
  .persona-mini-grid,
  .persona-bottom-grid,
  .persona-profile {
    grid-template-columns: 1fr;
  }

  .persona-photo {
    width: 100%;
    max-width: 260px;
    height: 220px;
  }

  .sg-palette {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wireframe-real-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-matrix {
    min-height: 900px;
    padding-left: 30px;
    padding-right: 14px;
  }

  .matrix-axis,
  .matrix-mid-x,
  .matrix-mid-y,
  .label-top,
  .label-bottom,
  .label-left,
  .label-right {
    display: none;
  }

  .priority-matrix .sticky.m {
    position: static;
    width: 100%;
    margin-bottom: 10px;
  }

  .mobile-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main { width: calc(100% - 32px); }
  .panel,
  .card { padding: 12px; }
  .hero h1 { font-size: 1.8rem; }
  .mobile-gallery { grid-template-columns: 1fr; }
  .styleguide-overview,
  .sg-component-grid,
  .sg-palette { grid-template-columns: 1fr; }

  .marquee-item { width: 160px; }
  .marquee-item img { height: auto; }

  .notes-grid,
  .lane-grid,
  .ideation-board {
    grid-template-columns: 1fr;
  }
  .notes-grid--compact,
  .themes-card .lane-grid,
  .ideation-board--ref {
    grid-template-columns: 1fr;
  }
  .lane-notes {
    flex-direction: column;
    align-items: stretch;
  }
  .lane-notes .sticky {
    width: 100%;
  }

  .tool {
    width: 58px;
    height: 58px;
    font-size: 1.45rem;
  }

  .fm { width: 11px; }

  .m-shape {
    width: 14px;
    height: 30px;
  }

  .used-tools h3,
  .persona-block h3,
  .persona-mini-grid .persona-block h3,
  .persona-meta h3,
  .habit-col h4 {
    font-size: 1.5rem;
  }

  .phone-card {
    width: 272px;
    height: 530px;
  }

  .challenge-text,
  .challenge-list li,
  .target-flow {
    font-size: 0.96rem;
  }

  .stage-banner {
    margin: 20px 0;
  }

  .stage-surface {
    min-height: 280px;
  }

  .id-center,
  .stage-ground,
  .stage-people.right {
    display: none;
  }

  .stage-people.left {
    left: 50%;
    transform: translateX(-50%);
  }

  .stage-banner--design .stage-surface {
    min-height: 360px;
  }

  .design-board {
    width: 180px;
    height: 90px;
    top: 38px;
  }

  .stage-banner--design .stage-surface h2 {
    margin-top: 130px;
  }

  .stage-banner--design .stage-surface p {
    font-size: 0.96rem;
    line-height: 1.3;
  }

  .design-card.d1 {
    left: 50%;
    transform: translateX(-50%);
  }

  .design-card.d2,
  .design-dash-box {
    display: none;
  }

  .hero-visual {
    min-height: 640px;
  }

  .phone-left {
    left: 0;
  }

  .phone-right {
    right: 0;
    top: 146px;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .phase-head,
  .phase-list div {
    width: 100%;
    max-width: 260px;
  }

  .wireframe-real-grid {
    grid-template-columns: 1fr;
  }

}

/* SVG integration overrides */
.tool-svg {
  background: #fff;
  border-color: #d8d8d8;
  padding: 0;
}

.tool-svg img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.challenge-visual {
  background: transparent;
}

.challenge-tree,
.challenge-scene,
.challenge-floor {
  position: absolute;
  height: auto;
}

.challenge-tree {
  right: 52px;
  bottom: 40px;
  width: min(44%, 281px);
}

.challenge-scene {
  left: 46px;
  bottom: 96px;
  width: min(66%, 362px);
}

.challenge-floor {
  left: 16px;
  right: 16px;
  bottom: 10px;
  width: calc(100% - 32px);
}

.phase-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.process-illustration {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.process-draw {
  width: min(246px, 100%);
  height: auto;
  margin-right: 6px;
}

.stage-banner--research .stage-surface {
  display: block;
}

.stage-banner--research .stage-surface h2 {
  position: relative;
  z-index: 3;
  margin-top: 124px;
}

.research-asset {
  position: absolute;
  z-index: 1;
  height: auto;
}

.ra-card-left {
  left: 120px;
  top: 30px;
  width: 131px;
}

.ra-card-mid {
  left: 50%;
  top: 90px;
  width: 91px;
  transform: translateX(-50%);
}

.ra-card-right {
  right: 120px;
  top: 30px;
  width: 123px;
}

.ra-plant {
  left: 220px;
  bottom: 48px;
  width: 99px;
}

.ra-person-left {
  left: 306px;
  bottom: 24px;
  width: 108px;
}

.ra-person-right {
  right: 300px;
  bottom: 24px;
  width: 99px;
}

.ra-floor {
  left: 80px;
  right: 80px;
  bottom: 20px;
  width: calc(100% - 160px);
}

.focusgroup-illustration {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.focusgroup-illustration img {
  width: min(320px, 100%);
  height: auto;
}

.design-asset {
  position: absolute;
  z-index: 1;
  height: auto;
}

.da-main {
  top: 44px;
  left: 50%;
  width: 195px;
  transform: translateX(-50%);
}

.da-left {
  left: 24px;
  top: 170px;
  width: 151px;
}

.da-right {
  right: 24px;
  top: 170px;
  width: 151px;
}

.stage-banner--design .stage-surface h2,
.stage-banner--design .stage-surface p {
  position: relative;
  z-index: 2;
}

.flow-image {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-gallery-real {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mobile-shot-real {
  padding: 6px;
  border-radius: 18px;
  background: #fff;
}

.mobile-shot-real img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

@media (max-width: 980px) {
  .challenge-tree {
    right: 24px;
    width: min(48%, 250px);
  }

  .challenge-scene {
    left: 16px;
    bottom: 88px;
    width: min(72%, 320px);
  }

  .challenge-floor {
    left: 8px;
    right: 8px;
    width: calc(100% - 16px);
  }

  .process-illustration {
    justify-content: center;
    height: auto;
  }

  .process-draw {
    margin-right: 0;
    width: min(246px, 72vw);
  }

  .ra-card-left {
    left: 24px;
    top: 26px;
    width: 118px;
  }

  .ra-card-mid {
    top: 70px;
    width: 80px;
  }

  .ra-card-right {
    right: 24px;
    top: 26px;
    width: 110px;
  }

  .ra-plant {
    left: 94px;
    bottom: 36px;
    width: 80px;
  }

  .ra-person-left {
    left: 170px;
    width: 96px;
  }

  .ra-person-right {
    right: 164px;
    width: 88px;
  }

  .ra-floor {
    left: 34px;
    right: 34px;
    width: calc(100% - 68px);
  }

  .da-left,
  .da-right {
    width: 132px;
    top: 186px;
  }

  .mobile-gallery-real {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tool-svg img {
    width: 30px;
    height: 30px;
  }

  .challenge-visual {
    min-height: 300px;
  }

  .challenge-tree {
    right: 12px;
    width: 170px;
    bottom: 28px;
  }

  .challenge-scene {
    left: 6px;
    bottom: 66px;
    width: 220px;
  }

  .challenge-floor {
    left: 4px;
    right: 4px;
    bottom: 8px;
    width: calc(100% - 8px);
  }

  .stage-banner--research .stage-surface h2 {
    margin-top: 110px;
  }

  .ra-card-left {
    left: 14px;
    top: 16px;
    width: 104px;
  }

  .ra-card-right {
    right: 14px;
    top: 16px;
    width: 98px;
  }

  .ra-card-mid,
  .ra-plant,
  .ra-person-right,
  .ra-floor {
    display: none;
  }

  .ra-person-left {
    left: 50%;
    transform: translateX(-50%);
    width: 94px;
    bottom: 22px;
  }

  .da-main {
    width: 170px;
    top: 38px;
  }

  .da-left {
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    top: 166px;
  }

  .da-right {
    display: none;
  }

  .mobile-gallery-real {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .mobile-gallery-real {
    grid-template-columns: 1fr;
  }
}

/* ── Project metadata ─────────────── */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.project-meta strong {
  color: var(--ink);
  margin-right: 4px;
}

/* ── Hero prototype link ─────────── */
.hero-actions {
  margin-bottom: 16px;
}
.proto-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.proto-link:hover { opacity: 0.85; }
.proto-link i { font-size: 1rem; }

/* ── Outcomes section ───────────── */
.outcomes-section .meter {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  margin: 10px 0 4px;
  overflow: hidden;
}
.outcomes-section .meter span {
  display: block;
  height: 100%;
  background: var(--ok);
  border-radius: 99px;
}
.outcomes-section .meter.ok span { background: var(--ok); }
.meter-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.outcome-quote {
  margin: 24px 0 12px;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}
.outcome-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}
.outcome-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
  font-style: italic;
}

/* ── Priority matrix mobile fallback ── */
@media (max-width: 768px) {
  .priority-matrix.priority-matrix--ref {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
    padding: 12px;
  }
  .priority-matrix.priority-matrix--ref .sticky.m {
    position: static !important;
    display: inline-flex;
    margin: 4px;
    font-size: 0.72rem;
  }
  .priority-matrix.priority-matrix--ref .axis-x,
  .priority-matrix.priority-matrix--ref .axis-y,
  .priority-links,
  .matrix-mid-x,
  .matrix-mid-y,
  .matrix-axis,
  .label-top, .label-bottom,
  .label-left, .label-right { display: none !important; }
  .priority-matrix.priority-matrix--ref::before {
    content: "Feature Priority (ranked by business value)";
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}
