/* ─── Fonts ─────────────────────────────────────────── */

@font-face {
  font-family: 'Swinston Sans';
  src: url('Swinston Sans/WOFF/SwinstonSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Swinston Sans';
  src: url('Swinston Sans/WOFF/SwinstonSans-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Swinston Sans';
  src: url('Swinston Sans/WOFF/SwinstonSans-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Swinston Sans';
  src: url('Swinston Sans/WOFF/SwinstonSans-RegularItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ─── Animations ────────────────────────────────────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Orb ────────────────────────────────────────────── */

#cursor-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
  filter: blur(40px);
  will-change: transform;
  transform: translate(-50%, -50%);
}

/* ─── Scroll animations ──────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Reset ─────────────────────────────────────────── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── Base ───────────────────────────────────────────── */

:root {
  --bg: #ffffff;
  --fg: #111110;
  --muted: #888884;
  --border: #e2e0db;
  --card-bg: #eceae5;
  --hover-bg: #f0ede8;

  --font: 'Swinston Sans', system-ui, sans-serif;
  --size-xs: 0.75rem;
  --size-sm: 0.8125rem;
  --size-base: 1rem;
  --size-lg: 1.125rem;

  --side: clamp(1.25rem, 4vw, 3rem);
  --frame: clamp(2.5rem, 8vw, 7rem);
  --inner: clamp(3.5rem, 10vw, 9.5rem);
}


html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }


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


body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  z-index: 200;
  pointer-events: none;
}

body::before { left: var(--frame); }
body::after  { right: var(--frame); }

/* ─── Nav ────────────────────────────────────────────── */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--frame);
  right: var(--frame);
  height: 1px;
  background: var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--inner) + 1rem);
  height: 70px;
}

/* hamburger button — hidden on desktop, shown on mobile */
.nav-toggle { display: none; }

.nav-name a { color: var(--fg); }

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin-left: -0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

nav ul a {
  position: relative;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
  text-decoration: none;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

nav ul a:hover { color: var(--fg); }

nav ul a:hover::after,
nav ul a.active::after {
  transform: scaleX(1);
}

nav ul a.active { color: var(--fg); }

nav ul a.nav-cv {
  color: var(--muted);
}




/* ─── Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--inner) 3rem;
  gap: 1rem;
  overflow: hidden;
}

.hero::before {
  display: none;
}







.hero-name-band {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.5rem 0;
  display: flex;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(5rem, 12.5vw, 10.9375rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: var(--size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero-scroll:hover { color: var(--fg); }
.hero-scroll-arrow {
  animation: heroScrollBob 1.8s ease-in-out infinite;
}
@keyframes heroScrollBob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrow { animation: none; }
}

.hero-desc {
  font-size: 1.625rem;
  font-weight: 500;
  color: #4a4844;
  white-space: nowrap;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ─── Works ──────────────────────────────────────────── */

.works {
  display: flex;
  flex-direction: column;
  /* offset so the #works anchor lands below the fixed header */
  scroll-margin-top: 5.5rem;
}

.works-header {
  padding: 3rem calc(var(--inner) + 1rem);
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.works-header::before,
.works-header::after {
  content: '';
  position: absolute;
  left: var(--frame);
  right: var(--frame);
  height: 1px;
  background: var(--border);
}

.works-header::before { top: 0; }
.works-header::after  { bottom: 0; }

.works-label {
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.works-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.25;
  white-space: nowrap;
}
.works-meta-main {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.works-meta-sub {
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--inner) clamp(1.5rem, 3vw, 2.5rem) calc(var(--inner) + 1rem);
  position: relative;
}

.project + .project::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--frame);
  right: var(--frame);
  height: 1px;
  background: var(--border);
}


.project-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}


.project-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.project-desc {
  font-size: var(--size-base);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
  max-width: 28rem;
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-pills span {
  font-size: 1rem;
  border: 1.8px solid var(--border);
  border-radius: 3px;
  padding: 0.3rem 0.75rem;
  color: var(--fg);
  background: transparent;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--fg);
  padding-bottom: 2px;
  transition: gap 0.2s ease;
}

.project-btn:hover {
  gap: 0.7rem;
}

.project-right {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  aspect-ratio: 16 / 9;
}

/* transparent overlay so the whole thumbnail is clickable (sits above the iframe, which would otherwise swallow the click) */
.thumb-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
}

.project-thumb {
  width: 100%;
  height: 100%;
  background: var(--card-bg);
}

/* ─── About (inner pages) ────────────────────────────── */

.page-hero {
  padding: clamp(5rem, 12vw, 9rem) var(--inner) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: var(--size-lg);
  font-weight: 500;
  color: var(--muted);
}

.about-section,
.contact-section {
  padding: clamp(3rem, 6vw, 5rem) var(--inner) clamp(4rem, 10vw, 8rem);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.25rem 3rem;
  max-width: 50rem;
}

.about-label,
.contact-label {
  font-size: var(--size-base);
  font-weight: 600;
  color: var(--muted);
  padding-top: 0.2rem;
}

.about-body p {
  font-size: var(--size-lg);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.about-body p:last-child { margin-bottom: 0; }

.about-divider {
  grid-column: 1 / -1;
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.75rem 0;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.skills-list li {
  font-size: var(--size-base);
  font-weight: 500;
}

.contact-link {
  font-size: var(--size-lg);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  display: inline-block;
  transition: border-color 0.15s;
}

.contact-link:hover { border-color: var(--fg); }

/* ─── Case Study ─────────────────────────────────────── */

.case-study-hero {
  padding: clamp(5rem, 12vw, 9rem) calc(var(--inner) + 1rem) clamp(3rem, 6vw, 5rem);
  position: relative;
}

.case-study-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--frame);
  right: var(--frame);
  height: 1px;
  background: var(--border);
}

.case-study-hero h1 {
  font-size: clamp(2.125rem, 4vw, 3.625rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.case-study-hero p {
  font-size: var(--size-lg);
  font-weight: 500;
  color: var(--muted);
  max-width: 38rem;
}

.case-meta {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.case-meta-item span:first-child {
  font-size: 0.875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-meta-item span:last-child {
  font-size: 1rem;
  font-weight: 500;
}

.case-study-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--frame);
}

.case-study-body h2 {
  font-size: 43px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 640px;
  margin: 1.25rem 0 14px max(0px, calc((100% - 720px) / 2));
}

.case-study-body h2:first-child { margin-top: 0; }

.case-study-body p {
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 1.75rem max(0px, calc((100% - 720px) / 2));
}

.case-img {
  max-width: 880px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card-bg);
  border-radius: 4px;
  margin: 2.5rem auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--size-sm);
  color: var(--muted);
}

.case-screen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 880px;
  margin: 3rem auto;
}

.case-screen-text p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: unset;
}

.case-screen-phone {
  background: #EDF1ED;
  border-radius: 8px;
  padding: 48px 32px;
  display: flex;
  justify-content: center;
}

.case-screen-phone img {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: block;
}

.case-img-full {
  margin: 0 var(--frame);
  aspect-ratio: 21 / 9;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--size-sm);
  color: var(--muted);
}

.case-nav {
  display: flex;
  justify-content: space-between;
  padding: 2rem var(--inner);
  border-top: 1px solid var(--border);
  font-size: 20px;
}

.case-nav a {
  color: var(--fg);
  text-decoration: none;
  position: relative;
  transition: opacity 0.2s;
}
.case-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.25s ease;
}
.case-nav a:hover { opacity: 0.6; }
.case-nav a:hover::after { width: 100%; }

/* ─── Research Board ─────────────────────────────────── */

.research-embed {
  margin: 0 0 0.5rem max(0px, calc((100% - 720px) / 2));
  padding: 0 0 0.5rem;
}

.research-embed .board {
  padding: 0;
  min-height: unset;
}

.research-embed p {
  font-size: 16px;
  line-height: 1.55;
  max-width: unset;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.research-embed .method-strip {
  background: #fff;
  border: 1px dashed rgba(0,0,0,0.25);
  padding: 12px 18px;
  margin: 0 0 48px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--fg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.research-embed .method-strip strong { font-weight: 700; color: #1F3D2E; }

.research-embed .method-strip-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.research-embed .cluster { margin-bottom: 56px; }

.research-embed .cluster-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.research-embed .cluster-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }

.research-embed .cluster-meta { font-size: 12px; color: var(--muted); font-style: italic; }

.research-embed .people-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

.research-embed .person-tag {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 8px 14px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 1px 2px 0 rgba(0,0,0,0.04);
}

.research-embed .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1F3D2E;
  display: inline-block;
  flex-shrink: 0;
}

.research-embed .scribble { font-weight: 600; font-style: italic; color: #1A3A8C; font-size: 16px; }

.research-embed .stickies { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }

.research-embed .sticky {
  width: 220px;
  padding: 16px 18px;
  background: #FFE680;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.06), 0 8px 14px rgba(0,0,0,0.08);
  font-size: 14px;
  line-height: 1.4;
}

.research-embed .sticky.yellow { background: #FFE680; }
.research-embed .sticky.blue   { background: #BDDCFF; }
.research-embed .sticky.pink   { background: #FFCED1; }
.research-embed .sticky.green  { background: #C9E6B8; }

.research-embed .sticky .tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.55);
  margin-bottom: 6px;
  font-weight: 600;
}

.research-embed .sticky h4 { font-size: 16px; font-weight: 600; margin: 0 0 6px; line-height: 1.25; }

.research-embed .sticky p { font-size: 16px; line-height: 1.45; }

.research-embed .quote-pin {
  position: relative;
  max-width: 580px;
  margin: 48px 0;
  background: #fff;
  padding: 28px 32px 24px;
  box-shadow: 2px 4px 0 rgba(0,0,0,0.06), 0 10px 18px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
}

.research-embed .quote-pin::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: #b00;
  border-radius: 50%;
  box-shadow: inset -2px -2px 3px rgba(0,0,0,0.3), 0 2px 3px rgba(0,0,0,0.25);
}

.research-embed .quote-text { font-size: 22px; font-weight: 500; line-height: 1.45; margin-bottom: 12px; }

.research-embed .quote-attr { font-size: 11px; color: var(--muted); font-style: italic; }

.research-embed .survey-sheet {
  background: #fff;
  padding: 28px 32px;
  margin: 48px 0 24px;
  max-width: 680px;
  box-shadow: 2px 4px 0 rgba(0,0,0,0.05), 0 10px 22px rgba(0,0,0,0.08);
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
}

.research-embed .corner-tape {
  position: absolute;
  top: -10px; left: 24px;
  width: 80px; height: 22px;
  background: rgba(255, 230, 128, 0.7);
}

.research-embed .corner-tape.right { left: auto; right: 24px; }

.research-embed .survey-sheet h3 { font-size: 20px; font-weight: 600; margin: 0 0 6px; }

.research-embed .sheet-sub { font-size: 16px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }

.research-embed .survey-table-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1F3D2E;
  margin: 0 0 8px;
}

.research-embed .survey-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 16px;
}

.research-embed .survey-table td {
  padding: 7px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
  vertical-align: middle;
}

.research-embed .survey-table .pct { font-weight: 700; width: 50px; color: #1F3D2E; }

.research-embed .survey-table .bar-cell { width: 120px; padding-right: 12px; }

.research-embed .survey-table .bar { height: 6px; background: #1F3D2E; }

.research-embed .survey-table .bar.muted { opacity: 0.4; }

.research-embed .survey-stress {
  margin-top: 16px;
  font-size: 16px;
  padding: 12px 16px;
  background: rgba(31, 61, 46, 0.06);
  border-left: 3px solid #1F3D2E;
}

.research-embed .survey-stress strong { color: #1F3D2E; }

.research-embed .bridge-note {
  background: #FFE680;
  padding: 20px 24px;
  max-width: 520px;
  margin: 28px 0 0;
  box-shadow: 2px 4px 0 rgba(0,0,0,0.06), 0 10px 16px rgba(0,0,0,0.08);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.research-embed .bridge-note strong { font-weight: 700; }

@media (max-width: 780px) {
  .research-embed .sticky { width: 100%; }
  .research-embed .survey-table .bar-cell { display: none; }
  .research-embed .survey-sheet { padding: 20px; }
}

/* ─── How It Works ───────────────────────────────────── */

.hiw-embed {
  margin: 0 0 0.5rem max(0px, calc((100% - 720px) / 2));
  padding: 0 0 0.5rem;
}

.hiw-embed .board { padding: 0; min-height: unset; }

.hiw-embed p {
  font-size: inherit;
  line-height: inherit;
  max-width: unset;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.hiw-embed .scribble { font-weight: 600; font-style: italic; color: #1A3A8C; font-size: 16px; display: block; margin: 0 0 28px 4px; }

.hiw-embed .cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin-bottom: 32px;
}

.hiw-embed .card {
  background: #fff;
  padding: 24px 26px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 2px 4px 0 rgba(0,0,0,0.05), 0 8px 18px rgba(0,0,0,0.06);
}

.hiw-embed .card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1F3D2E;
  margin: 0 0 10px;
}

.hiw-embed .card h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }

.hiw-embed .card p { font-size: 16px; line-height: 1.55; margin-bottom: 10px; }

.hiw-embed .card p:last-of-type { margin-bottom: 12px; }

.hiw-embed .card .ref {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  border-top: 1px dashed rgba(0,0,0,0.15);
  padding-top: 10px;
  margin: 0;
}

.hiw-embed .disclaimer {
  padding: 18px 22px;
  background: rgba(31, 61, 46, 0.06);
  border-left: 3px solid #1F3D2E;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  max-width: 720px;
}

.hiw-embed .disclaimer strong { font-weight: 700; }

@media (max-width: 780px) {
  .hiw-embed .cards { grid-template-columns: 1fr; }
}

/* ─── Persona ────────────────────────────────────────── */

.persona-embed {
  margin: 0 0 0.5rem max(0px, calc((100% - 720px) / 2));
  padding: 0 0 0.5rem;
}

.persona-embed .board { padding: 0; min-height: unset; }

.persona-embed p {
  font-size: inherit;
  line-height: inherit;
  max-width: unset;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.persona-embed .scribble {
  font-style: italic;
  color: #1A3A8C;
  font-size: 13px;
  display: block;
  margin: 0 auto 24px;
  max-width: 920px;
}

.persona-embed .personas-row {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.persona-embed .persona-col {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.persona-embed .figure-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 2px 4px 0 rgba(0,0,0,0.05), 0 8px 18px rgba(0,0,0,0.06);
  padding: 24px;
  height: 100%;
}

.persona-embed .avatar-monogram {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #1F3D2E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.persona-embed .figure-name { font-size: 18px; font-weight: 700; margin-bottom: 2px; text-align: center; }

.persona-embed .figure-age { font-size: 15px; color: var(--muted); text-align: center; margin-bottom: 16px; }

.persona-embed .figure-facts {
  border-top: 1px dashed rgba(0,0,0,0.15);
  padding-top: 14px;
  font-size: 15px;
  line-height: 1.55;
}

.persona-embed .figure-facts .row { margin-bottom: 6px; }
.persona-embed .figure-facts .row:last-child { margin-bottom: 0; }

.persona-embed .figure-facts .key {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1px;
}

.persona-embed .friction {
  background: #FFE680;
  padding: 22px 26px;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.06), 0 8px 14px rgba(0,0,0,0.08);
}

.persona-embed .friction h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.persona-embed .friction ul { margin: 0; padding: 0; list-style: none; }

.persona-embed .friction li {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.18);
}

.persona-embed .friction li:last-child { border-bottom: none; }

.persona-embed .friction li .day { font-weight: 700; margin-right: 6px; }

.participants-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.participant-card {
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
}
.p-id {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.p-country {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.p-meta {
  font-size: 12px;
  color: var(--muted);
}
.persona-bridge-note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.55;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

@media (max-width: 780px) {
  .persona-embed .persona-col { grid-template-columns: 1fr; gap: 16px; }
  .participants-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── User Journey ───────────────────────────────────── */

.journey-embed {
  margin: 0 0 0.5rem max(0px, calc((100% - 720px) / 2));
  padding: 0 0 0.5rem;
}

.journey-embed .board { padding: 0; min-height: unset; }

.journey-embed p {
  font-size: inherit;
  line-height: inherit;
  max-width: unset;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.journey-embed .scribble { font-weight: 600; font-style: italic; color: #1A3A8C; font-size: 16px; display: block; margin: 0 0 24px; }

.journey-embed .curve-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 2px 4px 0 rgba(0,0,0,0.05), 0 8px 18px rgba(0,0,0,0.06);
  padding: 32px 24px 24px;
  margin-bottom: 28px;
  max-width: 1100px;
}

.journey-embed .curve-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  padding: 0 12px;
}

.journey-embed .curve-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1F3D2E;
}

.journey-embed .curve-svg { display: block; width: 100%; height: auto; }

.journey-embed .stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1100px;
}

.journey-embed .stage {
  background: #FFF8C9;
  padding: 10px 16px 18px;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.05), 0 6px 12px rgba(0,0,0,0.06);
  font-size: 15px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}

.journey-embed .stage.intervention { background: #D8EAD3; }

.journey-embed .stage-header {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.journey-embed .stage-day {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-bottom: 4px;
  color: rgba(0,0,0,0.5);
}

.journey-embed .stage.intervention .stage-day { color: #1F3D2E; }

.journey-embed .stage-name { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.2; }

.journey-embed .stage-line { margin-bottom: 8px; font-size: 15px; line-height: 1.45; font-weight: 500; }

.journey-embed .stage-line:last-child { margin-bottom: 0; }

.journey-embed .stage-line.feeling { font-style: italic; color: #555; }

.journey-embed .bridge-note {
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(31, 61, 46, 0.05);
  border-left: 3px solid #1F3D2E;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  max-width: 760px;
}

.journey-embed .bridge-note strong { font-weight: 700; }

@media (max-width: 900px) {
  .journey-embed .stages { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .journey-embed .stages { grid-template-columns: 1fr; }
  .journey-embed .curve-card { padding: 20px 16px; }
}

/* ─── User Flow ─────────────────────────────────────── */

.flow-embed {
  margin: 0 0 0.5rem max(0px, calc((100% - 720px) / 2));
  padding: 0 0 0.5rem;
}

.flow-embed .board { padding: 0; }

.flow-embed p { font-size: inherit; max-width: unset; margin: 0; line-height: inherit; }

.flow-embed .scribble { font-weight: 600; font-style: italic; color: #1A3A8C; font-size: 16px; display: inline-block; margin: 0 0 32px 4px; }

.flow-embed .legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.025);
  font-size: 12px;
  max-width: 720px;
}

.flow-embed .legend-item { display: flex; align-items: center; gap: 8px; color: #1A1A1A; }

.flow-embed .legend-dot { width: 10px; height: 10px; flex-shrink: 0; }

.flow-embed .legend-dot.step { background: #fff; border: 1.5px solid #1A1A1A; }

.flow-embed .legend-dot.decision { background: #B8312F; transform: rotate(45deg); }

.flow-embed .legend-dot.branch { background: #FFF8C9; border: 1.5px solid rgba(0,0,0,0.2); }

.flow-embed .legend-dot.outcome { background: #D8EAD3; border: 1.5px solid rgba(31,61,46,0.3); border-radius: 50%; }

.flow-embed .flow {
  position: relative;
  max-width: 760px;
  margin: 0;
  padding-left: 24px;
}

.flow-embed .flow::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: #1A1A1A;
}

.flow-embed .row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  margin-bottom: 18px;
  position: relative;
  align-items: start;
}

.flow-embed .row.has-children { margin-bottom: 10px; }

.flow-embed .marker {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-top: 14px;
}

.flow-embed .marker::before {
  content: '';
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #1A1A1A;
}

.flow-embed .marker.decision::before {
  background: #B8312F;
  border-color: #B8312F;
  transform: rotate(45deg);
  width: 14px;
  height: 14px;
}

.flow-embed .marker.outcome::before {
  background: #D8EAD3;
  border-color: #1F3D2E;
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

.flow-embed .row .step-num {
  position: absolute;
  left: -22px;
  top: 18px;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.04em;
  width: 18px;
  text-align: right;
}

.flow-embed .node {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 1px 2px 0 rgba(0,0,0,0.04), 0 4px 10px rgba(0,0,0,0.04);
  padding: 12px 16px;
}

.flow-embed .node h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px 0; line-height: 1.3; }

.flow-embed .node .node-detail { font-size: 14px; line-height: 1.45; color: #4a4a4a; margin: 0; }

.flow-embed .row.decision .node { border-color: rgba(184,49,47,0.3); background: rgba(184,49,47,0.04); }

.flow-embed .row.decision .node h3 { color: #B8312F; }

.flow-embed .row.outcome .node { background: #D8EAD3; border-color: rgba(31,61,46,0.2); }

.flow-embed .row.outcome .node h3 { color: #1F3D2E; }

.flow-embed .branches {
  grid-column: 2;
  margin-top: 8px;
  margin-bottom: 18px;
  margin-left: 32px;
  display: grid;
  gap: 10px;
}

.flow-embed .branch {
  background: #FFF8C9;
  padding: 10px 14px;
  box-shadow: 1px 2px 0 rgba(0,0,0,0.04), 0 3px 8px rgba(0,0,0,0.05);
  position: relative;
  font-size: 14px;
  line-height: 1.45;
}

.flow-embed .branch::before {
  content: '↳';
  position: absolute;
  left: -22px;
  top: 9px;
  color: rgba(0,0,0,0.35);
  font-size: 14px;
}

.flow-embed .branch .branch-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin-bottom: 2px;
}

.flow-embed .branch .branch-text { color: #1A1A1A; }

.flow-embed .branch.recover { background: #F4E1E1; }

.flow-embed .outcomes-row {
  grid-column: 2;
  margin-top: 8px;
  margin-bottom: 18px;
  margin-left: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  position: relative;
}

.flow-embed .outcome-card {
  padding: 12px 14px;
  box-shadow: 1px 2px 0 rgba(0,0,0,0.04), 0 3px 8px rgba(0,0,0,0.05);
  font-size: 13px;
  line-height: 1.45;
}

.flow-embed .outcome-card.pass { background: #D8EAD3; }
.flow-embed .outcome-card.review { background: #FFF8C9; }
.flow-embed .outcome-card.manual { background: #F4E1E1; }

.flow-embed .outcome-card .out-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin-bottom: 4px;
}

.flow-embed .outcome-card .out-title { font-size: 15px; font-weight: 700; margin: 0 0 4px 0; }

.flow-embed .outcome-card .out-text { margin: 0; color: #1A1A1A; }


.flow-embed .voice-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(31,61,46,0.05);
  border-left: 3px solid #1F3D2E;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  max-width: 760px;
}

.flow-embed .voice-note strong { font-weight: 700; }

@media (max-width: 720px) {
  .flow-embed .outcomes-row { grid-template-columns: 1fr; margin-left: 24px; }
  .flow-embed .branches { margin-left: 24px; }
  .flow-embed .legend { gap: 14px; }
}

/* ─── Wireframes ─────────────────────────────────────── */

.wire-embed {
  margin: 0 0 0.5rem max(0px, calc((100% - 720px) / 2));
  padding: 0 0 0.5rem;
}

.design-preview-embed {
  margin: 0 0 0.5rem max(0px, calc((100% - 720px) / 2));
  padding: 0 0 0.5rem;
}

.wire-embed .wireframes-frame {
  width: 100%;
  border: none;
  display: block;
}

/* ─── Footer ─────────────────────────────────────────── */

footer {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem var(--inner);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--frame);
  right: var(--frame);
  height: 1px;
  background: var(--border);
}

/* ─── Responsive ─────────────────────────────────────── */

/* ─── Mobile: home page ──────────────────────────────── */
@media (max-width: 1024px) {
  /* tighter side padding on phones */
  :root { --inner: 1.5rem; --frame: 1.25rem; }

  /* hamburger nav */
  nav { position: relative; padding: 0 var(--inner); }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: var(--fg);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1.5rem var(--inner) 2rem;
    border-bottom: 1px solid var(--border);
    z-index: 150;
    /* hidden state — animates smoothly */
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.32s;
  }
  nav.nav-open ul {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
  nav ul a { font-size: 1.5rem; padding: 0.35rem 0; }
  nav ul a::after { display: none; }   /* no underline in the dropdown */
  nav ul a.nav-cv { color: var(--muted); }  /* CV matches the other links in the dropdown */

  /* sleek staggered reveal of each link */
  nav ul li { opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; }
  nav.nav-open ul li { opacity: 1; transform: translateY(0); }
  nav.nav-open ul li:nth-child(1) { transition-delay: 0.06s; }
  nav.nav-open ul li:nth-child(2) { transition-delay: 0.11s; }
  nav.nav-open ul li:nth-child(3) { transition-delay: 0.16s; }
  nav.nav-open ul li:nth-child(4) { transition-delay: 0.21s; }
  /* hamburger → X when open */
  nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* hero: shrink the giant headline, let it wrap, lose the nowrap overflow */
  .hero { min-height: 78vh; padding: 6.5rem var(--inner) 3rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); white-space: normal; line-height: 1.04; }
  .hero-desc { font-size: 1.0625rem; white-space: normal; max-width: 22rem; }

  /* works header: stack the label and the year/role meta */
  .works-header { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 2.5rem var(--inner); }
  .works-meta { align-items: flex-start; text-align: left; }
  .works-meta-main { font-size: 1.4rem; }

  /* stack each project: text, then thumbnail, then the View Work button */
  .project {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--inner);
    gap: 1.25rem;
  }
  .project-left { display: contents; }
  .project-right { order: 1; width: 100%; }
  .project-btn { order: 2; }

  /* remove the full-height vertical frame lines on mobile (keep on desktop) */
  body::before,
  body::after { display: none; }

  /* remove the inter-project divider bars on mobile (keep on desktop) */
  .project + .project::before,
  .case-study-hero::after { display: none; }

  /* keep the bars above/below Selected Works, but run them edge to edge */
  .works-header::before,
  .works-header::after { left: 0; right: 0; }

  /* header underline edge to edge too */
  header::after { left: 0; right: 0; }

  /* more breathing room above the case study title (clears the fixed header) */
  .case-study-hero { padding-top: 7rem; }

  /* case study cards: break out of the body padding to span the full width */
  .case-study-body .research-embed,
  .case-study-body .hiw-embed,
  .case-study-body .journey-embed,
  .case-study-body .flow-embed,
  .case-study-body .wire-embed,
  .case-study-body .design-preview-embed,
  .lexa-board .lexa-card {
    margin-left: calc(-1 * var(--frame)) !important;
    margin-right: calc(-1 * var(--frame)) !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 600px) {
  nav ul { gap: 1.1rem; }

  .project {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-label,
  .contact-label { display: none; }

}


/* ─── Print / PDF export ─────────────────────────────── */
@media print {
  /* drop the site chrome so the navbar can't repeat on every page */
  header,
  footer,
  .case-nav,
  .case-pdf-link {
    display: none !important;
  }

  header { position: static !important; }

  main { padding-top: 0 !important; }

  /* keep blocks whole across page breaks */
  .research-embed,
  iframe,
  figure,
  .case-meta,
  .case-img-full,
  .lexa-card,
  img {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }

  body { background: #fff !important; }
}
