/* ==========================================================
   Azadeh Forghani — site styles
   Sections: 1 Tokens · 2 Base · 3 Header & menu · 4 Layout
   5 Scenes & watercolour · 6 Cards · 7 Case study blocks
   8 Pages · 9 Footer · 10 Motion · 11 Mobile
   ========================================================== */

/* 1 · Tokens — change colours and fonts here */
:root {
  --cream: #F4EFE4;
  --paper: #FBF8F2;
  --ink: #2A2520;
  --ink-2: #3A332C;
  --muted: #4F473E;
  --line: rgba(42, 37, 32, 0.16);
  --accent: #E3B862;          /* amber "Get in Touch" */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --page: 1312px;             /* max content width */
  --gutter: clamp(20px, 4.4vw, 64px);

  /* Theme colours: one family per theme */
  --ai: #8FCFB8;      --ai-2: #7FC4C2;    --ai-3: #B3DCC8;    --ai-tint: #E3F2EB;
  --trust: #B8ACD9;   --trust-2: #A9B6DD;                     --trust-tint: #ECE8F5;
  --health: #EDB3BE;                                          --health-tint: #F7E4E7;
  --family: #F0C49A;  --family-2: #F3D1A8; --family-3: #EDB98F; --family-tint: #F6E3CF;
  --connect: #9CC3DD; --connect-2: #B5D2E6; --connect-3: #8DB4D3; --connect-tint: #E2EDF5;
  --impact: #B4B77E;  --impact-2: #9FAE78;                    --impact-tint: #E9EBD8;
}

/* 2 · Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #6B4E16; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
.eyebrow { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #5E554B; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); }
em.accent { font-style: italic; font-weight: 500; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* 3 · Header & menu */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(244, 239, 228, 0.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.logo { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.nav > a, .nav .dd > button {
  padding: 12px 14px; text-decoration: none; color: var(--ink);
  background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav [aria-current="page"], .nav .is-current { font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 15px;
}
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 2px 10px rgba(120, 90, 30, 0.18); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { color: var(--paper); background: #000; }
.btn-ghost { border: 1px solid rgba(42, 37, 32, 0.35); }
.nav .btn-accent { margin-left: 12px; }

.dd { position: relative; }
.dd-menu {
  display: none; position: absolute; left: 0; top: 100%; width: 260px;
  padding: 8px; border-radius: 12px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(42, 37, 32, 0.14);
  flex-direction: column; gap: 2px;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.is-open .dd-menu { display: flex; }
.dd-menu a { padding: 12px 14px; border-radius: 8px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: #EFE7D8; color: var(--ink); }
.dd-menu small { font-size: 12px; color: var(--muted); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }

/* 4 · Layout */
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); box-sizing: content-box; }
.section { padding: 110px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.section-head h1, .section-head h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.03; }
.section-head p { max-width: 400px; margin: 0; }

/* 5 · Scenes & watercolour — each scene has a theme wash */
.scene {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background-size: cover; background-position: center; background-color: var(--cream);
}
.scene--short { min-height: 70vh; }
.scene--band { min-height: 0; padding: 120px 0; }
.wash-intro { background-image: url(../img/wash-intro.webp); }
.wash-mint { background-image: url(../img/wash-mint.webp); }
.wash-teal { background-image: url(../img/wash-teal.webp); }
.wash-lightmint { background-image: url(../img/wash-lightmint.webp); }
.wash-lilac { background-image: url(../img/wash-lilac.webp); }
.wash-periwinkle { background-image: url(../img/wash-periwinkle.webp); }
.wash-blush { background-image: url(../img/wash-blush.webp); }
.wash-apricot { background-image: url(../img/wash-apricot.webp); }
.wash-sky { background-image: url(../img/wash-sky.webp); }
.wash-olive { background-image: url(../img/wash-olive.webp); }
.wash-stone { background-image: url(../img/wash-stone.webp); }
.wash-rose { background-image: url(../img/wash-rose.webp); }
.wash-sand { background-image: url(../img/wash-sand.webp); }
.page-top { margin-top: -86px; padding-top: 86px; }  /* lets the wash sit behind the sticky menu */

.hero-title { font-size: clamp(48px, 7.2vw, 104px); line-height: 1; letter-spacing: -0.03em; }
.page-title { font-size: clamp(44px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.03em; }

/* Image placeholders — swap for real images */
.ph {
  margin: 0; min-height: 260px; border: 1.5px dashed rgba(42, 37, 32, 0.35); background: rgba(255, 255, 255, 0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center; color: var(--muted); font-size: 14px; border-radius: 14px;
}
.ph svg { width: 26px; height: 26px; }

/* 6 · Cards */
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 0 0 24px; border-radius: 16px; overflow: hidden;
  background: rgba(251, 248, 242, 0.94); border: 1px solid rgba(42, 37, 32, 0.1); text-decoration: none; color: var(--ink);
  transition: transform .25s, box-shadow .25s;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(42, 37, 32, 0.1); color: var(--ink); }
.card-band { height: 92px; position: relative; overflow: hidden; }
.card-band::before, .card-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(14px); }
.card-band::before { left: -6%; top: -10%; width: 80%; height: 115%; background: var(--c1); }
.card-band::after { right: -8%; top: -25%; width: 50%; height: 100%; background: var(--c2); }
.card-meta { padding: 0 24px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.card-title { padding: 0 24px; font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.card-text { padding: 0 24px; font-size: 15px; color: var(--ink-2); margin: 0; }
.card-foot { margin-top: auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.card-foot strong { font-weight: 600; }
.lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lock svg { width: 14px; height: 14px; }
.card-img { margin: 0; height: 220px; border-bottom: 1.5px dashed rgba(42, 37, 32, 0.3); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); font-size: 13px; gap: 8px; flex-direction: column; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 11px; letter-spacing: 0.08em; }

/* theme helpers for cards & tints */
.t-ai { --c1: var(--ai); --c2: #B9E0D0; --tint: var(--ai-tint); }
.t-ai2 { --c1: var(--ai-2); --c2: #BFE3DF; --tint: var(--ai-tint); }
.t-ai3 { --c1: var(--ai-3); --c2: #D6EEE3; --tint: var(--ai-tint); }
.t-trust { --c1: var(--trust); --c2: #D8D0EA; --tint: var(--trust-tint); }
.t-trust2 { --c1: var(--trust-2); --c2: #CFD6EE; --tint: var(--trust-tint); }
.t-health { --c1: var(--health); --c2: #F4D3D8; --tint: var(--health-tint); }
.t-family { --c1: var(--family); --c2: var(--family-2); --tint: var(--family-tint); }
.t-connect { --c1: var(--connect); --c2: var(--connect-2); --tint: var(--connect-tint); }
.t-impact { --c1: var(--impact); --c2: var(--impact-2); --tint: var(--impact-tint); }
.tint { background: var(--tint); }

/* 7 · Case study blocks */
.cs-hero { display: flex; flex-direction: column; gap: 26px; padding: 120px 0 60px; }
.cs-hero .hero-title { max-width: 1100px; }
.chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; list-style: none; padding: 0; }
.chapters a { display: block; padding-top: 16px; border-top: 2px solid rgba(42, 37, 32, 0.25); text-decoration: none; }
.chapters a:hover { border-top-color: var(--ink); }
.chapters b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.meta-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.meta-strip div > div { margin-top: 8px; }
.chapter-scene { min-height: 64vh; margin-top: 80px; }
.chapter-scene h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1.06; max-width: 1100px; margin-top: 22px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(42, 37, 32, 0.3); background: rgba(251, 248, 242, 0.7); font-size: 14px; }
.read { display: grid; grid-template-columns: 1fr minmax(0, 680px) 1fr; gap: 56px; padding: 64px 0 0; }
.read-main { grid-column: 2; font-size: 19px; line-height: 1.75; color: #2E2823; }
.read-main h3 { font-size: 32px; margin: 36px 0 14px; }
.read-side { grid-column: 3; align-self: start; padding-top: 8px; border-top: 2px solid var(--ink); font-size: 15px; color: var(--ink-2); max-width: 280px; }
.read-side .label { display: block; margin-bottom: 8px; }
.dropcap::first-letter { float: left; font-family: var(--serif); font-size: 86px; line-height: 0.8; padding: 8px 12px 0 0; color: var(--ink-2); }
.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.caption { text-align: center; font-style: italic; font-size: 14px; color: var(--muted); margin-top: 12px; }
.pullquote { margin: 56px auto 0; max-width: 1000px; padding: 40px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; }
.quote { margin: 18px 0 0; padding: 24px 28px; border-radius: 14px; background: var(--tint, #EFE7D8); font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; }
.quote cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }
.big-number { font-family: var(--serif); font-size: clamp(110px, 15vw, 210px); line-height: 0.9; letter-spacing: -0.04em; }
.next-cs { display: block; padding: 90px 0; text-decoration: none; }
.next-cs h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08; max-width: 1000px; margin-top: 16px; }

/* Template F — phases */
.phase-strip { display: flex; gap: 4px; margin-top: 56px; list-style: none; padding: 0; }
.phase-strip li { flex: 1; }
.phase-strip a { display: block; padding: 22px 24px; text-decoration: none; height: 100%; }
.phase-strip li:first-child a { border-radius: 16px 0 0 16px; }
.phase-strip li:last-child a { border-radius: 0 16px 16px 0; }
.phase-strip b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.phase-strip span { display: block; font-size: 14px; color: var(--ink-2); }
.phase-scene { min-height: 56vh; margin-top: 72px; }
.phase-scene .inner { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: center; }
.phase-num { width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 36px; }
.phase-body { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 48px; padding-top: 56px; }

/* Protected page */
.gate { max-width: 520px; margin: 0 auto; background: var(--paper); border-radius: 20px; padding: 44px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(42, 37, 32, 0.12); }
.gate label { display: block; font-weight: 600; margin: 22px 0 8px; }
.gate input { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(42, 37, 32, 0.35); font: inherit; background: #fff; }
.gate .btn { margin-top: 16px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.note { font-size: 14px; color: var(--muted); }

/* 8 · Pages */
.method-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.method-list div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.method-list b { display: block; font-size: 19px; font-weight: 600; }
.method-list span { font-size: 15px; color: var(--muted); }
.testimonial { margin: 0; padding: 36px; border-radius: 16px; background: rgba(251, 248, 242, 0.88); border: 1px solid rgba(42, 37, 32, 0.08); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 340px; }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: 25px; line-height: 1.4; }
.testimonial figcaption { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.portrait { min-height: 560px; border-radius: 220px 220px 18px 18px; }
.tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs a { padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 1px solid rgba(42, 37, 32, 0.25); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pub-list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.pub-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.service { display: grid; grid-template-columns: 200px repeat(3, 1fr); gap: 40px; padding: 36px 40px; border-radius: 18px; background: rgba(251, 248, 242, 0.92); border: 1px solid var(--line); }
.service h3 { font-size: 22px; }
.service p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 40px; border-radius: 18px; }
.banner p { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.35; max-width: 760px; }

/* 9 · Footer */
.site-footer { padding: 56px var(--gutter); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* 10 · Motion — gentle, and off for people who prefer less motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  a.card:hover { transform: none; }
}

/* 11 · Mobile and tablet */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .read { grid-template-columns: minmax(0, 1fr); }
  .read-main, .read-side { grid-column: 1; }
  .read-side { max-width: none; }
  .service { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 24px; background: var(--paper); box-shadow: 0 12px 24px rgba(42, 37, 32, 0.12); }
  .nav.is-open { display: flex; }
  .nav > a, .nav .dd > button { padding: 14px 4px; width: 100%; justify-content: space-between; }
  .nav .btn-accent { margin: 12px 0 0; justify-content: center; }
  .dd-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; }
  .dd:hover .dd-menu { display: none; }
  .dd.is-open .dd-menu { display: flex; }
  .nav [aria-current="page"], .nav .is-current { box-shadow: none; text-decoration: underline; text-underline-offset: 6px; }
  .logo { font-size: 24px; }
  .grid-3, .grid-2, .split, .figure-row, .method-list, .phase-body, .phase-scene .inner { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 40px; }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .chapters, .meta-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-strip { flex-direction: column; }
  .phase-strip li a { border-radius: 12px !important; }
  .phase-body > div:first-child { display: none; }
  .service { grid-template-columns: 1fr; padding: 28px; }
  .banner { flex-direction: column; align-items: flex-start; padding: 28px; }
  .banner p { font-size: 22px; }
  .portrait { min-height: 380px; }
  .scene { min-height: auto; padding: 72px 0; }
  .chapter-scene, .phase-scene { min-height: auto; padding: 80px 0; margin-top: 40px; }
  .gate { padding: 28px; }
}
.phase-strip strong { display: block; margin-top: 4px; font-size: 18px; font-weight: 600; }
.scene > .wrap, .scene > a > .wrap { flex: 1 1 auto; min-width: 0; }
.card-img svg { width: 26px; height: 26px; flex: none; }

/* ==========================================================
   Option 5 — softer painted colour + modern display font
   ========================================================== */
:root { --serif: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }
.hero-title, .page-title { font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; }
.hero-title { font-size: clamp(46px, 6.6vw, 96px); }
em.accent, .pullquote, .quote, .testimonial blockquote { font-style: normal; }
.logo { font-weight: 700; font-size: 26px; }
.card-title, .read-main h3, .chapters b, .phase-strip b, .testimonial blockquote { font-weight: 500; }
.dropcap::first-letter { font-weight: 600; }
.big-number { font-weight: 600; }

/* Homepage hero with the "How I work" graphic */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 60px; align-items: center; }
.how { position: relative; margin: 0; width: 100%; aspect-ratio: 560 / 600; }
.how img { width: 100%; height: 100%; }
.how ol { list-style: none; margin: 0; padding: 0; }
.how-label { position: absolute; font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.15; color: #1F1B17; }
.how-label span { display: block; font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: 0.2em; color: #5E554B; margin-bottom: 4px; }
.how-label.l1 { left: 5.4%; top: 31.5%; }
.how-label.l2 { left: 67.5%; top: 42%; }
.how-label.l3 { left: 7.1%; top: 80%; }
.how-label.l4 { left: 57.1%; top: 85%; max-width: 42%; }

/* Painted case study cards */
.pcard {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  min-height: 300px; padding: 30px; text-decoration: none; color: var(--ink);
  background: center / 100% 100% no-repeat; transition: transform .25s;
}
a.pcard:hover { transform: translateY(-3px); color: var(--ink); }
.pcard-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #2A2520; }
.pcard-top .lock { color: #2A2520; }
.pcard-num { font-family: var(--serif); font-weight: 600; font-size: 60px; line-height: 1; }
.pcard-title { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.25; letter-spacing: -0.01em; }
.pcard-more { margin-top: 14px; font-size: 14px; font-weight: 600; }
.pcard-ph { flex: 1; min-height: 170px; border-radius: 12px; background: rgba(251, 248, 242, 0.55); border: 1.5px dashed rgba(42, 37, 32, 0.3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; text-align: center; font-size: 13px; color: #4F473E; }
.pcard-ph svg { width: 26px; height: 26px; }
.pcard.t-ai { background-image: url(../img/paint-mint.webp); }
.pcard.t-ai2 { background-image: url(../img/paint-teal.webp); }
.pcard.t-ai3 { background-image: url(../img/paint-lightmint.webp); }
.pcard.t-trust { background-image: url(../img/paint-lilac.webp); }
.pcard.t-trust2 { background-image: url(../img/paint-periwinkle.webp); }
.pcard.t-health { background-image: url(../img/paint-blush.webp); }
.pcard.t-family { background-image: url(../img/paint-apricot.webp); }
.pcard.t-connect { background-image: url(../img/paint-sky.webp); }
.pcard.t-impact { background-image: url(../img/paint-olive.webp); }
@media (prefers-reduced-motion: reduce) { a.pcard:hover { transform: none; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .how { max-width: 440px; }
  .pcard { min-height: 240px; padding: 26px; }
}
.big-number { font-size: clamp(76px, 15vw, 200px); overflow-wrap: anywhere; }
.nav > a.btn-accent { background: var(--accent); padding: 13px 22px; }
.cs-hero { padding: 120px var(--gutter) 60px; }

/* Case study layers: 30-second summary + research story with writing prompts */
.exec { margin-top: -40px; position: relative; z-index: 2; padding: 34px 38px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(42, 37, 32, 0.08); }
.exec-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.exec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.exec-grid p { margin: 8px 0 0; font-size: 16px; }
.exec-num { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.exec-insight { margin-top: 26px; padding: 20px 24px; border-radius: 14px; background: var(--tint, #EFE7D8); }
.exec-insight p { margin: 8px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.35; }
.story-head { padding-top: 110px; }
.story-head h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; max-width: 960px; margin-top: 14px; }
.chapters-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prompt { margin: 0 0 18px; padding: 16px 20px; border-radius: 12px; border: 1.5px dashed rgba(42, 37, 32, 0.32); background: rgba(251, 248, 242, 0.7); }
.prompt-label { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #8A5A12; margin-bottom: 6px; }
.prompt p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.insight { margin-bottom: 26px; }
.insight h3 { margin-top: 0 !important; }
.dtable { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 15px; }
.dtable th { text-align: left; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0 12px 10px 0; border-bottom: 2px solid var(--ink); }
.dtable td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 860px) {
  .exec { margin-top: 0; padding: 24px; }
  .exec-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .chapters-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtable { font-size: 14px; }
}
.exec-grid p.exec-num { font-size: 40px; margin-top: 8px; }
.big-number { margin: 10px 0 24px; line-height: 1; }

/* ==========================================================
   Homepage — research diary
   ========================================================== */
/* Bloom: grey watercolour that turns to colour where you move */
.bloom { position: absolute; inset: 0; overflow: hidden; }
.bloom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.bloom canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro { position: relative; min-height: calc(100vh - 92px); display: flex; align-items: center; }
.intro > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 60px; align-items: center; padding-top: 40px; padding-bottom: 80px; }
.hint { margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.hint i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--muted); flex: none; }

.diary-head { padding-top: 100px; padding-bottom: 30px; }
.diary-head h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; margin-top: 12px; max-width: 900px; }

/* Places navigation */
.rail { position: sticky; top: 88px; z-index: 40; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 12px var(--gutter); background: rgba(244, 239, 228, 0.9); backdrop-filter: blur(8px); border-top: 1px solid rgba(42, 37, 32, 0.08); border-bottom: 1px solid rgba(42, 37, 32, 0.08); }
.rail a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .25s, color .25s; }
.rail a b { font-family: var(--serif); font-size: 12px; color: var(--muted); font-weight: 600; }
.rail a:hover { background: rgba(42, 37, 32, 0.06); color: var(--ink); }
.rail a.is-here { background: var(--ink); color: var(--paper); }
.rail a.is-here b { color: rgba(251, 248, 242, 0.7); }

/* One chapter per place */
.chapter { position: relative; padding: 110px 0; }
.chapter > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.chapter.flip .place-pic { order: 2; }
.place-pic { position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(42, 37, 32, 0.10); }
.place-pic figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(251, 248, 242, 0.85); color: var(--muted); }
.place-num { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.place { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em; margin-top: 10px; }
.role { margin-top: 12px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.story { margin-top: 20px; font-size: 18px; color: var(--ink-2); }
.teaser { margin-top: 14px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.worked { margin-top: 26px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.projects { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid rgba(42, 37, 32, 0.18); }
.projects .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 2px; border-bottom: 1px solid rgba(42, 37, 32, 0.18); text-decoration: none; font-weight: 500; }
.projects a.row:hover { background: rgba(251, 248, 242, 0.6); color: var(--ink); }
.projects .t { display: flex; align-items: center; }
.projects .tag { flex: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.projects .tag svg { width: 12px; height: 12px; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; display: inline-block; margin-right: 12px; }

/* Portfolio & CV downloads */
.downloads { padding: 110px 0; border-top: 1px solid rgba(42, 37, 32, 0.1); }
.download { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 40px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.download h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin-top: 10px; }
.download p { margin: 10px 0 0; color: var(--ink-2); }
.paints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.paints i { aspect-ratio: 1; background: center / 100% 100% no-repeat; }
.dl-btns { display: flex; flex-direction: column; gap: 10px; }
.dl-btns .btn { justify-content: center; }

.closing { position: relative; padding: 120px 0; text-align: center; }
.closing > .wrap { position: relative; }
.closing h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; max-width: 900px; margin: 14px auto 0; }

@media (max-width: 860px) {
  .intro > .wrap, .chapter > .wrap { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .chapter.flip .place-pic { order: 0; }
  .chapter { padding: 70px 0; }
  .rail { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; top: 76px; }
  .rail a { flex: none; }
  .download { grid-template-columns: minmax(0, 1fr); padding: 28px; gap: 24px; }
  .paints { max-width: 200px; }
}
.bloom img { filter: none; }
.bloom canvas.water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Publications list */
.pub-group { margin-top: 64px; }
.pub-group h2 { font-size: 32px; display: flex; align-items: baseline; gap: 12px; }
.pub-list { margin-top: 14px; border-top: 2px solid var(--ink); }
.pub { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.pub:hover { background: rgba(251, 248, 242, 0.7); color: var(--ink); }
.pub-year { font-family: var(--serif); font-weight: 600; color: var(--muted); }
.pub-title { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.3; }
.pub-meta { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.pub-meta strong { font-weight: 600; color: var(--ink); }
.pub-link { font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) { .pub { grid-template-columns: 48px minmax(0, 1fr); } .pub-link { grid-column: 2; } }
.pub-list a.pub { display: grid; padding: 18px 0; }

/* Credentials under the intro: PhD and Human-Centred Design, given visible weight */
.creds { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.creds li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(251, 248, 242, 0.85); border: 1px solid rgba(42, 37, 32, 0.18); font-size: 14px; font-weight: 600; color: var(--ink); }
.creds li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.logo { letter-spacing: -0.02em; }

/* "How I work" steps: each step is a button that opens a proof card */
.how ol { position: absolute; inset: 0; }
.how-step { position: absolute; }
.how-step.l1 { left: 3.6%; top: 3.3%; width: 34%; height: 40%; }
.how-step.l2 { left: 60.7%; top: 6.7%; width: 32%; height: 41%; }
.how-step.l3 { left: 5.4%; top: 51.7%; width: 44.6%; height: 40%; }
.how-step.l4 { left: 57.1%; top: 55%; width: 40%; height: 45%; }
.how-hit { position: absolute; inset: 0; width: 100%; height: 100%; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 40%; z-index: 2; }
.how-hit:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.how-step .how-label { position: absolute; left: 0; pointer-events: none; font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.15; color: #1F1B17; transition: transform .25s; }
.how-step .how-label span { display: block; font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: 0.2em; color: #5E554B; margin-bottom: 4px; }
.how-step.l1 .how-label { top: 70%; left: 5%; }
.how-step.l2 .how-label { top: 77%; left: 0; }
.how-step.l3 .how-label { top: 70%; left: 4%; }
.how-step.l4 .how-label { top: 55%; left: 0; max-width: 100%; }
.how-step.is-open .how-label { transform: translateY(-2px); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.how-card { position: absolute; z-index: 5; width: 260px; padding: 16px 18px; border-radius: 14px; background: var(--paper); box-shadow: 0 14px 34px rgba(42, 37, 32, 0.18); font-size: 14px; line-height: 1.5; color: #3A332C;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.how-step.is-open .how-card { opacity: 1; visibility: visible; transform: none; }
.how-card-k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #5E554B; }
.how-card p { margin: 6px 0 10px; font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink); }
.how-card a { font-weight: 600; font-size: 14px; }
.how-step.l1 .how-card { left: 70%; top: 0; }
.how-step.l2 .how-card { right: 60%; top: 10%; }
.how-step.l3 .how-card { left: 70%; top: -20%; }
.how-step.l4 .how-card { right: 70%; top: -10%; }
@media (prefers-reduced-motion: reduce) { .how-card, .how-step .how-label { transition: none; } }
@media (max-width: 860px) { .how-card { width: 220px; } .how-step.l2 .how-card, .how-step.l4 .how-card { right: 30%; } }
.logo { display: inline-flex; flex-direction: column; line-height: 1.05; }
.logo small { margin-top: 5px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .logo small { font-size: 10px; letter-spacing: 0.1em; } }

/* AI sparkles on the 'how I work' links: AI supports the work between human steps */
.ai-spark { position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.ai-spark svg { width: 100%; height: 100%; display: block; fill: rgba(251,248,242,.9); stroke: rgba(42,37,32,.55); stroke-width: 1.4; stroke-linejoin: round; }

/* Homepage: selected work strip */
.recent { padding: 24px 0 96px; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.recent-all { font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.rcard { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 220px; padding: 28px 26px 24px; background: #FBF8F2; border: 1px solid rgba(42,37,32,.14); border-radius: 18px; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.rcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c); }
.rcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(42,37,32,.08); }
.rc-top { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #5E554B; }
.rc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.rc-title { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; flex: 1; }
.rc-more { font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .recent-grid { grid-template-columns: minmax(0,1fr); } .rcard { min-height: 0; } }

/* Make the name in the header read as a link home */
.logo { text-decoration: none; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.logo:hover, .logo:focus-visible { text-decoration: underline; }

/* Selected work carousel */
.cc-nav { display: flex; align-items: center; gap: 10px; }
.cc-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(42,37,32,.2); background: #FBF8F2; color: var(--ink); font-size: 18px; cursor: pointer; transition: background .2s; }
.cc-btn:hover:not(:disabled) { background: #fff; }
.cc-btn:disabled { opacity: .35; cursor: default; }
.cc-nav .recent-all { margin-left: 8px; }
.carousel { list-style: none; margin: 24px 0 0; padding: 4px 2px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.carousel > li { scroll-snap-align: start; min-width: 0; display: flex; }
.carousel:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.ccard { display: flex; flex-direction: column; width: 100%; background: #FBF8F2; border: 1px solid rgba(42,37,32,.14); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.ccard:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(42,37,32,.12); }
.cc-img { display: block; aspect-ratio: 16 / 10; background: #EFE8DA center / cover no-repeat; border-bottom: 6px solid var(--c); overflow: hidden; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ccard:hover .cc-img img { transform: scale(1.04); }
.cc-wash { display: grid; place-items: center; }
.cc-wash svg { width: 46%; height: auto; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cc-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.cc-title { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; flex: 1; }
.cc-lock { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 11.5px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.cc-lock svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ccard .rc-top { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1000px) { .carousel { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .carousel { grid-auto-columns: 82%; gap: 16px; } .cc-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .ccard, .cc-img img { transition: none; } }

/* Where I've worked: two big cards at a time */
.recent-head { align-items: flex-end; }
.wc-title { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 0; }
.carousel { grid-auto-columns: calc((100% - 28px) / 2); gap: 28px; margin-top: 30px; }
.wcard { display: flex; flex-direction: column; width: 100%; background: #FBF8F2; border: 1px solid rgba(42,37,32,.14); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 14px 40px rgba(42,37,32,.06); transition: transform .25s, box-shadow .25s; }
.wcard:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(42,37,32,.12); }
.wc-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #F4EFE4; }
.wc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.wcard:hover .wc-img img { transform: scale(1.04); }
.wc-in { display: flex; flex-direction: column; gap: 8px; padding: 22px 28px 28px; border-top: 6px solid var(--c); flex: 1; }
.wc-eye { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #5E554B; }
.wc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 8px; }
.wc-h { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.wc-p { font-size: 16.5px; line-height: 1.5; color: #3A332C; flex: 1; }
.wc-go { margin-top: 8px; font-weight: 600; font-size: 15px; color: var(--ci); border-bottom: 1.5px solid currentColor; align-self: flex-start; }
@media (max-width: 760px) { .carousel { grid-auto-columns: 86%; gap: 16px; } .wc-h { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .wcard, .wc-img img { transition: none; } }

/* contact strip */
html{scroll-behavior:smooth}
.contact-strip{padding:clamp(56px,7vw,96px) 0;background:url(../img/wash-sky.webp) center/cover;border-top:1px solid var(--line);scroll-margin-top:80px}
.contact-strip .cs-in{display:grid;grid-template-columns:1.4fr auto;gap:40px;align-items:center}
.contact-strip .cs-line{font-size:clamp(20px,2vw,26px);line-height:1.4;margin:12px 0 0;max-width:720px;font-family:var(--serif)}
.contact-strip .cs-h{margin:0;font-size:clamp(32px,3.6vw,48px);line-height:1.1}
.contact-strip .cs-btns{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:860px){.contact-strip .cs-in{grid-template-columns:1fr;gap:24px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
