/* ============================================================
   Arwa Manzoor — Portfolio
   Design system: dark, typographic, proof-driven.
   Structural chips/thumbnails are allowed — kept flat and
   line-drawn rather than skeuomorphic pill/icon-box/gradient-cover clichés.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');
@import url('colors.css');

:root{
  /* Colours live in css/colors.css (one shared place for the whole site).
     Fonts (2026-10-06): Fraunces 400 for display, Instrument Sans for the
     rest (--mono now points at Instrument Sans too). No italics. */
  --serif: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;  /* headings: Geist since 2026-10-11 (Arwa) */
  --sans:  'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  'Geist', ui-sans-serif, system-ui, sans-serif;  /* labels: small sentence-case text, no monospace (2026-10-06) */

  --max: 1120px;
  --pad: clamp(24px, 5vw, 64px);
}


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

/* No italics anywhere (rule since 2026-09-22). Emphasis is carried by
   weight instead. Fraunces does ship an italic, but it isn't loaded. */
em, i, cite{ font-style: normal; font-weight: 500; }


html{ background: var(--bg); transition: background 0.3s ease; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Type ---------- */

h1, h2, h3, .display{
  font-family: var(--serif);
  font-weight:400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.eyebrow{
  font-family: var(--mono);
  font-size:13px;  
  color: var(--ink-dim);
}

.lede{
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 54ch;
}

/* ---------- Nav ---------- */

.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-right{
  display: flex;
  align-items: center;
  gap: 26px;
}

.theme-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover{ color: var(--ink); border-color: var(--accent); }

.theme-toggle svg{ width: 15px; height: 15px; }

.theme-toggle .icon-sun{ display: block; }
.theme-toggle .icon-moon{ display: none; }

html[data-theme="dark"] .theme-toggle .icon-sun{ display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display: block; }

.site-nav .brand{
  font-family: var(--serif);
  font-size: 18px;
  font-weight:400;
}

.site-nav .brand span{ color: var(--accent); }

.site-nav .links{
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-dim);
}

.site-nav .links a{
  position: relative;
  padding: 4px 0;
}

.site-nav .links a:hover,
.site-nav .links a.is-active{ color: var(--ink); }

.site-nav .links a.is-active::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Sections ---------- */

section{ padding: 96px 0; }
section.tight{ padding: 64px 0; }
section + section{ border-top: 1px solid var(--line-soft); }

/* ---------- Hero ---------- */

.hero{ padding: 120px 0 96px; }

.hero-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-visual{
  display: flex;
  justify-content: center;
}

.hero-visual img{
  width: 100%;
  max-width: 320px;
  height: auto;
}

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 220px; margin: 0 auto; }
}

.hero .eyebrow{ margin-bottom: 24px; }

.hero h1{
  font-size: clamp(34px, 5.4vw, 58px);
  max-width: 15ch;
  margin-bottom: 28px;
}

.hero h1 em{
  color: var(--accent);
}

.hero .lede.is-typing::after{
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--ink);
  vertical-align: text-bottom;
  animation: cursor-blink 0.9s step-end infinite;
}

@keyframes cursor-blink{ 50%{ opacity: 0; } }

@media (prefers-reduced-motion: reduce){
  .hero .lede.is-typing::after{ animation: none; display: none; }
}

.hero .role-line{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-dim);
}

.hero .role-line b{ color: var(--ink); font-weight: 500; }

/* ---------- Domain marquee ---------- */

.domain-marquee{
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.domain-marquee .track{
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}

.domain-marquee:hover .track{ animation-play-state: paused; }

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

.domain-chip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-dim);
  white-space: nowrap;
}

.domain-chip svg{
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--chip-color, var(--accent));
}

.domain-chip b{ color: var(--ink); font-weight: 500; }

@media (prefers-reduced-motion: reduce){
  .domain-marquee .track{ animation: none; flex-wrap: wrap; }
}

/* ---------- Statement block (full-bleed, black) ---------- */

.statement{
  background: var(--bg-panel);
  padding: 108px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.statement .num{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 22px;
  display: block;
}

.statement h2{
  font-size: clamp(26px, 4.2vw, 44px);
  max-width: 18ch;
  color: var(--ink);
}

.statement p.cap{
  margin-top: 22px;
  font-size: 16px;
  color: var(--ink-dim);
  max-width: 46ch;
}

/* ---------- Discipline / skills list ---------- */

.disc-list{
  border-top: 1px solid var(--line);
}

.disc-row{
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.disc-row .num{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
}

.disc-row h3{
  font-size: 20px;
  font-weight: 500;
}

.disc-row p{
  color: var(--ink-dim);
  font-size: 14.5px;
  text-align: right;
}

@media (max-width: 720px){
  .disc-row{ grid-template-columns: 1fr; gap: 6px; }
  .disc-row p{ text-align: left; }
}

/* ---------- Case study preview cards ---------- */

/* Each project accent is paired with its pastel wash, the way the
   reference site pairs e.g. color:#6d43b8 with background:#f1ebfc. */
.theme-teal   { --proj: var(--teal);   --proj-wash: var(--wash-teal); }
.theme-blue   { --proj: var(--blue);   --proj-wash: var(--wash-blue); }
.theme-coral  { --proj: var(--coral);  --proj-wash: var(--wash-red); }
.theme-violet { --proj: var(--violet); --proj-wash: var(--wash-violet); }
.theme-amber  { --proj: var(--amber);  --proj-wash: var(--wash-amber); }

.work-wrap{ margin-top: 48px; }

.cs-featured{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.2s ease;
}

.cs-featured:hover{ background: var(--bg-raised); }

.cs-featured .content{
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-featured .thumb{
  position: relative;
  min-height: 300px;
  background: var(--bg-raised);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.cs-featured .thumb img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.cs-featured:hover .thumb img{ transform: scale(1.03); }

.cs-featured .thumb::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--proj, var(--accent));
  z-index: 2;
}

.cs-featured .meta{
  font-family: var(--mono);
  font-size:13px;
  color: var(--proj, var(--ink-faint));
  margin-bottom: 14px; 
}

.cs-featured h3{ font-size: 26px; margin-bottom: 10px; }

.cs-featured p{
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 52ch;
}

.cs-featured .cs-tags{
  margin-top: 16px;
  font-family: var(--mono);
  font-size:13px; 
  color: var(--ink-faint);
}

.cs-featured .stats{ display: flex; gap: 28px; margin-top: 22px; }

.cs-featured .stat b{
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.cs-featured .stat span{ font-size: 12px; color: var(--ink-faint); }

.cs-featured .arrow{
  font-family: var(--mono);
  font-size: 13px; 
  color: var(--ink-dim);
  margin-top: 26px;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cs-featured:hover .arrow{ transform: translateX(4px); color: var(--proj, var(--accent)); }

.cs-stub-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: none;
}

.cs-stub-card{
  display: block;
  background: var(--bg);
  transition: background 0.2s ease;
}

.cs-stub-card:hover{ background: var(--bg-raised); }

.cs-stub-card .thumb{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  background: color-mix(in srgb, var(--proj, var(--accent)) 10%, var(--bg-raised));
}

.cs-stub-card .thumb svg{ width: 100%; height: 100%; display: block; }

.cs-stub-card .thumb::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--proj, var(--accent));
  z-index: 2;
}

.cs-stub-card .body{ padding: 22px 26px 28px; }

.cs-stub-card .meta{
  font-family: var(--mono);
  font-size:13px;
  color: var(--proj, var(--ink-faint));
  margin-bottom: 10px; 
}

.cs-stub-card h3{ font-size: 19px; margin-bottom: 6px; }
.cs-stub-card p{ font-size: 13.5px; color: var(--ink-faint); }

.cs-stub-card .cs-tags{
  margin-top: 12px;
  font-family: var(--mono);
  font-size:13px; 
  color: var(--ink-faint);
}

.cs-stub-card .arrow{
  font-family: var(--mono);
  font-size:13px; 
  color: var(--ink-dim);
  margin-top: 16px;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cs-stub-card:hover .arrow{ transform: translateX(4px); color: var(--proj, var(--accent)); }

@media (max-width: 860px){
  .cs-featured{ grid-template-columns: 1fr; }
  .cs-featured .thumb{ order: -1; min-height: 220px; border-left: none; border-bottom: 1px solid var(--line); }
  .cs-stub-grid{ grid-template-columns: 1fr; }
}

.cs-card.is-stub{ opacity: 0.55; }
.cs-card.is-stub:hover{ background: var(--bg); }
.cs-card.is-stub .arrow{ display:none; }

/* ---------- Testimonials ---------- */

.testimonials{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}

.testimonial{
  background: var(--bg);
  padding: 36px 32px;
}

.testimonial p{
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.testimonial cite{
  display: block;
  margin-top: 22px;
  font-style: normal;
}

.testimonial cite b{
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.testimonial cite span{
  display: block;
  font-family: var(--mono);
  font-size:13px;
  color: var(--ink-faint);
  margin-top: 3px;
}

@media (max-width: 860px){
  .testimonials{ grid-template-columns: 1fr; }
}

/* ---------- Principles ---------- */

.principles{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}

.principle{
  background: var(--bg);
  padding: 44px;
}

.principle .num{
  font-family: var(--serif);
  font-size: 30px;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}

.principle h3{
  font-size: 21px;
  font-weight: 500;
}

@media (max-width: 720px){
  .principles{ grid-template-columns: 1fr; }
}

/* ---------- Tools / AI in practice ---------- */

.tools-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-dim);
}

.tools-row b{ color: var(--ink); font-weight: 500; }

.ai-note{
  margin-top: 32px;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: var(--bg-raised);
  max-width: 60ch;
  font-size: 14.5px;
  color: var(--ink-dim);
}

/* ---------- Footer ---------- */

.site-footer{
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
}

.site-footer .wrap{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-faint);
}

.site-footer a:hover{ color: var(--ink); }

/* ---------- Buttons / links ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px; 
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.btn:hover{ color: var(--accent); }

/* ============================================================
   Case study page
   ============================================================ */

.cs-header{ padding: 72px 0 56px; }

.cs-header .back{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 40px;
  display: inline-block;
}

.cs-header .back:hover{ color: var(--accent); }

.cs-header h1{
  font-size: clamp(32px, 5vw, 52px);
  max-width: 18ch;
}

.cs-meta-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.cs-meta-grid div .k{
  font-family: var(--mono);
  font-size:13px; 
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.cs-meta-grid div .v{
  font-size: 15px;
  color: var(--ink);
}

@media (max-width: 800px){
  .cs-meta-grid{ grid-template-columns: repeat(2, 1fr); }
}

.thesis{
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.5;
  max-width: 42ch;
  margin-top: 44px;
  color: var(--ink);
}

/* Section framing within a case study */

.cs-section .tag{
  font-family: var(--mono);
  font-size:13px; 
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}

.cs-section h2{
  font-size: clamp(24px, 3.4vw, 34px);
  max-width: 20ch;
  margin-bottom: 20px;
}

.cs-section .body{
  max-width: 62ch;
  color: var(--ink-dim);
  font-size: 16px;
}

.cs-section .body p + p{ margin-top: 16px; }

.cs-section .body strong{ color: var(--ink); font-weight: 500; }

/* Part divider (for multi-part case studies like CGIAR) */

.part-divider{
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 8px;
}

.part-divider .n{
  font-family: var(--serif);
  font-size: 40px;
  color: var(--accent);
}

.part-divider .t{
  font-family: var(--mono);
  font-size: 13px; 
  color: var(--ink-faint);
}

/* Partner / list rows */

.tag-list{
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.tag-row{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.tag-row .who{ color: var(--ink); font-weight: 500; }
.tag-row .what{ color: var(--ink-dim); }

@media (max-width: 720px){
  .tag-row{ grid-template-columns: 1fr; gap: 4px; }
}

/* Roadmap / timeline */

.roadmap{
  margin-top: 32px;
  display: grid;
  gap: 0;
}

.rm-row{
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.rm-row .period{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.rm-row .desc{ font-size: 15px; color: var(--ink); }

.rm-row .desc .detail{
  font-size:13px;
  color: var(--ink-faint);
  margin-top: 4px;
  font-family: var(--mono);
}

.rm-row .milestone{
  font-family: var(--mono);
  font-size:13px;
  color: var(--ink-faint);
  text-align: right;
}

@media (max-width: 720px){
  .rm-row{ grid-template-columns: 1fr; gap: 4px; }
  .rm-row .milestone{ text-align: left; }
}

/* Pull quote */

.pull-quote{
  padding: 88px 0;
  background: var(--proj-wash, var(--bg-panel));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.pull-quote blockquote{
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.4;
  max-width: 24ch;
}

.pull-quote cite{
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 13px;
  color: var(--ink-dim);
}

/* Stat strip */

.stat-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.stat-strip .stat b{
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 38px);
  color: var(--ink);
}

.stat-strip .stat span{
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 6px;
  display: block;
}

@media (max-width: 800px){
  .stat-strip{ grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Phone mockup frame ---------- */

.phone-frame{
  max-width: 300px;
  margin-top: 40px;
  padding: 14px 10px;
  background: linear-gradient(155deg, #2a2a2a, #131313);
  border-radius: 40px;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.phone-frame .notch{
  width: 90px;
  height: 20px;
  margin: 0 auto 8px;
  background: #0d0d0d;
  border-radius: 0 0 14px 14px;
}

.phone-frame .home-bar{
  width: 100px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 4px;
  background: rgba(255,255,255,0.25);
}

/* ---------- WhatsApp chat demo ---------- */

.chat-demo{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #050505;
  background: #0b1410;
}

.chat-demo .chat-head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #101d17;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.chat-demo .chat-head .dot{
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
  flex-shrink: 0;
}

.chat-demo .chat-head .info b{ display:block; font-size: 14px; font-weight: 500; }
.chat-demo .chat-head .info span{ font-size: 11.5px; color: #6fae82; }

.chat-demo .chat-body{
  position: relative;
  padding: 16px 12px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #0a1611;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.025) 0, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,0.02) 0, transparent 45%),
    radial-gradient(circle at 40% 85%, rgba(255,255,255,0.02) 0, transparent 40%);
}

.chat-bubble{
  position: relative;
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  animation: bubble-in 0.3s ease forwards;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@keyframes bubble-in{
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.in{
  align-self: flex-start;
  background: #1f2c26;
  color: var(--ink);
  border-top-left-radius: 2px;
}

.chat-bubble.in::before{
  content: '';
  position: absolute;
  top: 0; left: -7px;
  border: 7px solid transparent;
  border-top-color: #1f2c26;
  border-left: 0;
}

.chat-bubble.out{
  align-self: flex-end;
  background: #2a4a35;
  color: var(--ink);
  border-top-right-radius: 2px;
}

.chat-bubble.out::before{
  content: '';
  position: absolute;
  top: 0; right: -7px;
  border: 7px solid transparent;
  border-top-color: #2a4a35;
  border-right: 0;
}

.chat-bubble ul{ margin: 6px 0 2px 16px; }

.chat-bubble .meta{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
}

.chat-bubble.out .meta .tick{ color: #6fc3f7; }

.chat-demo .chat-foot{
  padding: 12px 16px;
  background: #101d17;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.chat-demo .replay{
  font-family: var(--mono);
  font-size:13px;
  color: var(--ink-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.chat-demo .replay:hover{ color: var(--accent); }

.chat-typing{
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 13px;
  background: #1f2c26;
  border-radius: 9px;
  border-top-left-radius: 2px;
}

.chat-typing span{
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: typing-blink 1.1s infinite ease-in-out;
}

.chat-typing span:nth-child(2){ animation-delay: 0.15s; }
.chat-typing span:nth-child(3){ animation-delay: 0.3s; }

@keyframes typing-blink{
  0%, 60%, 100%{ opacity: 0.25; }
  30%{ opacity: 1; }
}

/* ---------- Role flow (3-node process diagram) ---------- */

.role-flow{
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 36px;
  flex-wrap: wrap;
}

.role-flow .node{
  flex: 1;
  min-width: 160px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.role-flow .node.is-you{
  background: color-mix(in srgb, var(--proj) 16%, var(--bg-raised));
  border-color: var(--proj);
}

.role-flow .node .k{
  font-family: var(--mono);
  font-size:13px; 
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.role-flow .node.is-you .k{ color: var(--proj); }

.role-flow .node .v{ font-size: 15.5px; color: var(--ink); line-height: 1.4; }

.role-flow .arrow{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 16px;
}

@media (max-width: 640px){
  .role-flow{ flex-direction: column; }
  .role-flow .arrow{ width: 100%; padding: 4px 0; transform: rotate(90deg); }
}

/* ---------- Before/after board comparison ---------- */

.board-compare{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}

.board-compare .label{
  font-family: var(--mono);
  font-size:13px; 
  color: var(--ink-faint);
  margin-bottom: 14px;
  display: block;
}

.raw-board{
  position: relative;
  height: 230px;
  border: 1px dashed var(--line);
  background: var(--bg-raised);
  overflow: hidden;
}

.raw-board .note{
  position: absolute;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 2px;
  opacity: 0.9;
}

@media (max-width: 720px){
  .board-compare{ grid-template-columns: 1fr; }
}

/* ---------- 4-ingredient row ---------- */

.ingredient-row{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.ingredient{
  flex: 1;
  min-width: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.ingredient .k{
  font-family: var(--mono);
  font-size:13px;
  color: var(--proj, var(--accent)); 
  margin-bottom: 8px;
}

.ingredient .v{ font-size: 13.5px; color: var(--ink-dim); }

.ingredient-op{
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink-faint);
}

.ingredient-result{
  flex: 1;
  min-width: 150px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--proj, var(--accent));
  background: color-mix(in srgb, var(--proj, var(--accent)) 14%, var(--bg-raised));
  font-weight: 500;
  color: var(--ink);
  font-size: 14.5px;
}

/* ---------- Before/after bar comparison ---------- */

.bar-compare{ margin-top: 32px; max-width: 500px; }

.bar-row{ display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }

.bar-row .label{
  width: 78px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size:13px;
  color: var(--ink-faint);
}

.bar-row .track{ flex: 1; height: 10px; background: var(--line-soft); }

.bar-row .fill{ height: 100%; background: var(--ink-faint); width: 0; transition: width 1s cubic-bezier(0.16,1,0.3,1); }

.bar-row.is-final .fill{ background: var(--proj, var(--accent)); }

.bar-row .value{
  width: 60px;
  flex-shrink: 0;
  text-align: right;
  font-family: var(--mono);
  font-size:13px;
  color: var(--ink);
}

/* ---------- Browser-framed screenshot (real UI, dark-mode chrome) ---------- */

.browser-frame{
  border: 1px solid var(--line);
  background: #1b1b1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}

.browser-frame .chrome{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #232220;
  border-bottom: 1px solid #2e2c29;
}

.browser-frame .chrome .dot{ width: 9px; height: 9px; border-radius: 50%; background: #48453f; }

.browser-frame .chrome .url{
  margin-left: 8px;
  font-family: var(--mono);
  font-size:13px;
  color: #8f8b84;
  background: #171614;
  padding: 5px 12px;
  border-radius: 4px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame img{ width: 100%; display: block; }

/* ---------- Text + side visual ---------- */

.text-visual{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 8px;
}

@media (max-width: 800px){
  .text-visual{ grid-template-columns: 1fr; }
}

/* ---------- HCD illustration: a living practice, not a poster ---------- */

.hcd-illustration{
  position: relative;
  width: 280px;
  height: 280px;
  max-width: 100%;
  margin: 0 auto;
}

.hcd-illustration .path-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hcd-illustration .pulse-dot{
  position: absolute;
  top: 0; left: 0;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent);
  offset-path: path("M140,50 C210,55 235,110 225,140 C235,175 205,225 140,230 C80,225 45,180 55,140 C45,100 75,55 140,50 Z");
  animation: hcd-travel 8s linear infinite;
}

@keyframes hcd-travel{
  from{ offset-distance: 0%; }
  to{ offset-distance: 100%; }
}

.hcd-illustration .person{
  position: absolute;
  width: 78px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.hcd-illustration .person .ring{
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  animation: hcd-glow 8s ease-in-out infinite;
}

.hcd-illustration .person svg{ width: 17px; height: 17px; stroke: var(--ink-dim); }

.hcd-illustration .ring-wrap{ position: relative; width: 34px; height: 34px; }

.hcd-illustration .mini-user{
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hcd-illustration .mini-user svg{ width: 7px; height: 7px; stroke: var(--coral); }

.hcd-illustration .mini-user.d1{ top: -4px; right: -6px; }
.hcd-illustration .mini-user.d2{ bottom: -2px; left: -7px; }

.hcd-illustration .person span{
  font-family: var(--mono);
  font-size:13px;
  line-height: 1.4;
  color: var(--ink-faint);
  text-align: center;
}

.hcd-illustration .person.p1{ top: 17%; left: 50%; }
.hcd-illustration .person.p2{ top: 50%; left: 81%; }
.hcd-illustration .person.p3{ top: 83%; left: 50%; }
.hcd-illustration .person.p4{ top: 50%; left: 19%; }

.hcd-illustration .person.p1 .ring{ animation-delay: 0s; }
.hcd-illustration .person.p2 .ring{ animation-delay: 2s; }
.hcd-illustration .person.p3 .ring{ animation-delay: 4s; }
.hcd-illustration .person.p4 .ring{ animation-delay: 6s; }

@keyframes hcd-glow{
  0%, 12%, 100%{ border-color: var(--line); box-shadow: none; }
  4%{ border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
}

.hcd-illustration .centre{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 110px;
}

.hcd-illustration .centre span{
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce){
  .hcd-illustration .pulse-dot{ animation: none; offset-distance: 0%; }
  .hcd-illustration .person .ring{ animation: none; }
}

.interview-visual{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 16px;
}

/* ---------- Stub / coming soon ---------- */

.stub-note{
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px dashed var(--line);
  color: var(--ink-faint);
  font-size: 14px;
  max-width: 50ch;
}

/* ============================================================
   Motion & personality
   ============================================================ */

/* Intro loader — tied to her method, not a generic spinner */

.loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.is-done{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader::before{
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  opacity: 0.25;
  animation: loader-pulse 1.8s ease-in-out infinite;
}

@keyframes loader-pulse{
  0%, 100%{ transform: scale(0.92); opacity: 0.18; }
  50%{ transform: scale(1.04); opacity: 0.3; }
}

.loader canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader .stage{
  position: relative;
  z-index: 2;
  text-align: center;
}

.loader .word{
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 44px);
  color: var(--ink);
}

.loader .count{
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px; 
  color: var(--ink-faint);
}

.loader .count b{ color: var(--accent); font-weight: 500; }

.loader .bar{
  width: 220px;
  height: 2px;
  margin: 22px auto 0;
  background: var(--line);
  overflow: hidden;
}

.loader .bar span{
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--teal), var(--blue));
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* Scroll reveal */

[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

[data-reveal].in-view{
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for repeated rows within one revealed container */
[data-reveal-group] > *:nth-child(1){ transition-delay: 0ms; }
[data-reveal-group] > *:nth-child(2){ transition-delay: 60ms; }
[data-reveal-group] > *:nth-child(3){ transition-delay: 120ms; }
[data-reveal-group] > *:nth-child(4){ transition-delay: 180ms; }
[data-reveal-group] > *:nth-child(5){ transition-delay: 240ms; }
[data-reveal-group] > *:nth-child(6){ transition-delay: 300ms; }
[data-reveal-group] > *:nth-child(7){ transition-delay: 360ms; }

/* Respect users who don't want motion */
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1; transform: none; transition: none; }
  .loader{ display: none; }
}

/* ---------- Artifact frame (real photos / screenshots) ---------- */

.artifact{
  margin-top: 36px;
  max-width: 620px;
}

.artifact .frame{
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  overflow: hidden;
}

.artifact .frame img{ width: 100%; display: block; }

.artifact .frame.is-placeholder{
  border-style: dashed;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.artifact .frame.is-placeholder .ph-label{
  font-family: var(--mono);
  font-size:13px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.7;
}

.artifact .frame.is-placeholder .ph-label b{
  display: block;
  color: var(--ink-dim);
  font-size: 13px;
  margin-bottom: 6px;
}

.artifact-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
  max-width: 900px;
}

.artifact-row .artifact{ margin-top: 0; max-width: none; }

@media (max-width: 720px){
  .artifact-row{ grid-template-columns: 1fr; }
}

.side-quote{
  margin-top: 28px;
  padding: 22px 28px;
  border-left: 2px solid var(--accent);
  background: var(--bg-raised);
  max-width: 58ch;
}

.side-quote p{
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.55;
}

.side-quote cite{
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-style: normal;
  font-size:13px;
  color: var(--ink-faint);
}

.artifact figcaption{
  margin-top: 12px;
  font-family: var(--mono);
  font-size:13px;
  color: var(--ink-faint);
}

/* Hand-marked annotation dot — for circling a detail on a real screenshot */

.mark{
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
}

.mark::after{
  content: '';
  position: absolute;
  top: 50%; left: 100%;
  width: 26px; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

.mark-note{
  position: absolute;
  left: calc(100% + 30px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Comparison panels ---------- */

.compare{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 32px;
}

.compare .panel{
  background: var(--bg-raised);
  padding: 28px;
}

.compare .panel .k{
  font-family: var(--mono);
  font-size:13px; 
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.compare .panel p{
  font-size: 14.5px;
  color: var(--ink-dim);
}

.compare .panel.is-after .k{ color: var(--proj, var(--accent)); }

@media (max-width: 720px){
  .compare{ grid-template-columns: 1fr; }
}

/* ---------- Micro stats (small trio, no borders) ---------- */

.micro-stats{
  display: flex;
  gap: 48px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.micro-stats .m b{
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  color: var(--ink);
}

.micro-stats .m span{
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 4px;
  display: block;
}

/* ---------- Card image hover (premium, subtle) ---------- */

.cs-card .frame img,
.artifact .frame img{
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.cs-card:hover .frame img{ transform: scale(1.02); }

/* ---------- Hover-reveal career timeline (About) ---------- */

.timeline{
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.tl-row{
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
}

.tl-row .tl-year{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
  padding-top: 2px;
}

.tl-row.is-current .tl-year{ color: var(--accent); }

.tl-role h3{
  font-size: 17px;
  font-weight: 500;
}

.tl-role h3 span{
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14.5px;
  color: var(--ink-dim);
}

.tl-detail{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.tl-row:hover .tl-detail,
.tl-row:focus-within .tl-detail{
  max-height: 120px;
  opacity: 1;
  margin-top: 10px;
}

@media (prefers-reduced-motion: reduce){
  .tl-detail{ transition: none; }
}

@media (max-width: 640px){
  .tl-row{ grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- About / Contact ---------- */

.about-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
}

@media (max-width: 800px){
  .about-grid{ grid-template-columns: 1fr; }
}

.contact-list{
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.contact-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row .label{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
}

.contact-row a, .contact-row span.val{ font-size: 16px; }
.contact-row a:hover{ color: var(--accent); }
