:root {
  --background: #fff7fb;
  --surface: #ffffff;
  --primary: #db2777;
  --secondary: #2f2433;
  --accent: #fb7185;
  --teal: #a855f7;
  --soft-blue: #ffe4f1;
  --soft-indigo: #f4e8ff;
  --soft-gold: #fff1c7;
  --border: #f1bfd5;
  --text: #2f2433;
  --muted: #7a6574;
  --global-grid: rgba(219, 39, 119, 0.055);
  --digital-line: rgba(168, 85, 247, 0.12);
  --gold-highlight: rgba(251, 113, 133, 0.15);
  --radius: 10px;
  --shadow: 0 18px 42px rgba(190, 24, 93, 0.11);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(var(--global-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--global-grid) 1px, transparent 1px),
    radial-gradient(circle at 12% 10%, rgba(255, 228, 241, 0.92), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(244, 232, 255, 0.94), transparent 28%),
    radial-gradient(circle at 80% 82%, rgba(255, 241, 199, 0.70), transparent 24%),
    var(--background);
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(241, 191, 213, 0.9);
  background: rgba(255, 247, 251, 0.92);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.22);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 9px 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--primary);
  background: var(--soft-indigo);
  outline: none;
}

.hero {
  padding: 62px 0 70px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.84fr);
  gap: 24px;
  align-items: stretch;
}

.hero-shell > * {
  min-width: 0;
}

.brief-card,
.learning-panel,
.profile-avatar-card,
.profile-card,
.case-card,
.outcomes-shell,
.case-dialog .dialog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brief-card {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: clamp(28px, 4vw, 44px);
}

.brief-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(180deg, var(--primary), var(--teal), var(--accent));
}

.brief-card::after {
  content: "GLOBAL";
  position: absolute;
  right: 24px;
  bottom: 12px;
  color: rgba(219, 39, 119, 0.055);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 1;
}

.brief-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 20px;
  color: var(--secondary);
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.tagline {
  max-width: 740px;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1.12rem;
  font-weight: 800;
}

.lead {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--muted);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.identity-grid div,
.stats-row article {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.identity-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.portfolio-download {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.learning-panel {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 228, 241, 0.72), rgba(255, 255, 255, 0.96)),
    #fff;
}

.avatar-visual {
  display: grid;
  grid-template-columns: minmax(180px, 0.98fr) minmax(0, 0.92fr);
  gap: 14px;
  min-height: 292px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--digital-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--digital-line) 1px, transparent 1px),
    #fff;
  background-size: 30px 30px;
  padding: 16px;
}

.avatar-frame {
  min-height: 248px;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: var(--radius);
  background: var(--soft-blue);
  box-shadow: 0 18px 34px rgba(219, 39, 119, 0.15);
}

.avatar-frame img,
.profile-avatar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

.visual-stack {
  display: grid;
  gap: 12px;
}

.global-card,
.ai-note {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
}

.global-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.global-card strong {
  display: block;
  margin-top: 12px;
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
}

.mini-chart {
  display: flex;
  min-height: 96px;
  align-items: end;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--soft-blue));
  padding: 13px;
}

.mini-chart i {
  display: block;
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.ai-note {
  color: var(--secondary);
  background: var(--soft-gold);
  font-weight: 800;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.stats-row article {
  min-height: 92px;
}

.stats-row strong {
  display: block;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.15;
}

.stats-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.index-heading {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.index-heading h2,
.section-heading h2 {
  margin-bottom: 10px;
  color: var(--secondary);
  line-height: 1.12;
}

.index-heading h2 {
  font-size: 1.55rem;
}

.index-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.index-item b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--soft-blue);
  font-size: 0.78rem;
}

.index-item span {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.section {
  padding: 74px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.profile-avatar-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.profile-avatar-card img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--soft-indigo);
}

.profile-avatar-card h3 {
  margin-bottom: 8px;
}

.profile-avatar-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

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

.profile-card {
  min-height: 220px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.07);
}

.profile-label,
.case-type {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--soft-indigo);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 9px;
}

.profile-card h3,
.case-card h3,
.outcome-card h3 {
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 1.05rem;
  line-height: 1.35;
}

.profile-card p,
.case-card p,
.outcome-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: 0.82fr 1fr;
  gap: 28px;
  align-items: end;
}

.case-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 228, 241, 0.44);
}

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

.case-card {
  position: relative;
  display: flex;
  min-height: 378px;
  flex-direction: column;
  border-top: 5px solid var(--case-color, var(--primary));
  padding: 20px;
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.07);
}

.case-card.is-featured {
  background:
    linear-gradient(180deg, var(--gold-highlight), rgba(255, 255, 255, 0.96) 35%),
    #fff;
  box-shadow: 0 18px 42px rgba(219, 39, 119, 0.14);
}

.case-number {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--case-color, var(--primary));
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 11px;
}

.tag-row,
.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 8px;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 14px;
}

.button:hover,
.button:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
}

.button-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #fff;
}

.outcomes-shell {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 228, 241, 0.76), rgba(255, 241, 199, 0.52)),
    #fff;
}

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

.outcome-card {
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.outcome-index {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--soft-gold);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong {
  color: var(--text);
}

.case-dialog {
  width: min(940px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 28px));
  border: 0;
  background: transparent;
  padding: 0;
}

.case-dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  max-height: calc(100vh - 28px);
  overflow: auto;
  color: var(--text);
  padding: 30px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-card h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.dialog-tags {
  margin-bottom: 18px;
}

.case-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.case-note {
  border: 1px solid var(--border);
  border-left: 5px solid var(--case-color, var(--primary));
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 16px;
}

.case-note h3 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.case-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 1080px) {
  .hero-shell,
  .profile-layout,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .brief-card {
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav-shell {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    padding: 9px 8px;
    text-align: center;
  }

  .hero,
  .section {
    padding: 52px 0;
  }

  .brief-card,
  .learning-panel,
  .outcomes-shell,
  .dialog-card {
    padding: 20px;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .avatar-visual,
  .identity-grid,
  .stats-row,
  .profile-grid,
  .case-grid,
  .outcomes-grid,
  .case-notes {
    grid-template-columns: 1fr;
  }

  .avatar-frame {
    aspect-ratio: 4 / 5;
    max-height: 360px;
  }

  .case-card,
  .profile-card,
  .outcome-card {
    min-height: auto;
  }

  .case-actions,
  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
