/* Qi Studio, Our Work and case studies. Base tokens, nav and footer shared with the other Qi pages
   (copied from qistudio-bt/site/css/site.css); page styles below follow Rajvi's Figma. */

:root {
  --burgundy: #4a222c; --burgundy-80: #6e4e56; --burgundy-60: #927a80; --burgundy-deep: #3b1a23;
  --cream: #feeddb; --cream-80: #fef1e2; --cream-40: #fff8f1;
  --lavender: #9e80b9; --lavender-40: #d8cce3; --lavender-20: #ece6f1;
  --peach: #fdd09c; --peach-60: #fee3c4; --caramel: #c3812a; --mauve: #c7afcb; --violet: #624086;
  --rule: rgba(74, 34, 44, .16); --rule-light: rgba(254, 237, 219, .24);
  --grad-lavender-light: linear-gradient(148deg, #936ebb 0%, #e2dcf4 34%, #fffffd 62%, #f7cc94 100%);
  --grad-peach-glow: linear-gradient(to bottom left, #f7ce99 0%, #fbe9d3 42%, #ffffff 100%);
  --display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 28px; --r-md: 18px; --r-sm: 10px;
  --wrap: 1240px; --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --paper: url(../assets/textures/paper-fine.jpg);
  /* the shared nav and footer speak in these names */
  --wine: #4a222c; --wine-deep: #3a1a22; --f-display: var(--display); --f-ui: var(--body); --ink-on-peach: #4a222c;
  --g: clamp(18px, 4.4vw, 72px); --z-nav: 50; --z-menu: 49;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--cream) var(--paper) center / 768px auto; background-blend-mode: soft-light; color: var(--burgundy); font-family: var(--body);
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums; }
main { overflow-x: clip; }
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ol, ul { list-style: none; }
::selection { background: var(--peach); color: var(--burgundy); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--peach); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--burgundy); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.eyebrow { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 1.9vw, 1.7rem); color: var(--caramel); margin-bottom: clamp(12px, 1.6vw, 18px); }
.on-dark .eyebrow { color: var(--peach); }
.h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4.5vw, 56px); }
.head-row h2 { max-width: 15ch; }
.head-row p { max-width: 40ch; color: var(--burgundy-80); font-size: 1.0625rem; }
.on-dark .head-row p { color: rgba(254, 237, 219, .82); }


/* ---------------------------------------------------------------- the shared Qi pieces */
.qi-mark { display: block; aspect-ratio: 548 / 436; background: currentColor;
  -webkit-mask: url(../assets/brand/qi-mark.png) center / contain no-repeat; mask: url(../assets/brand/qi-mark.png) center / contain no-repeat; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font-family: var(--f-ui); font-weight: 500; font-size: 14px; letter-spacing: .04em;
  text-decoration: none; padding: 14px 26px; border-radius: 999px; white-space: nowrap; transition: background .35s var(--ease), color .35s var(--ease); }
.btn--peach { background: var(--peach); color: var(--ink-on-peach); text-transform: uppercase; letter-spacing: .09em; font-size: 13px; }
@media (hover: hover) { .btn--peach:hover { background: var(--cream); } }

/* nav: the homepage's */
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); display: flex; align-items: center; gap: 28px; padding: 14px var(--g); color: var(--wine);
  transition: transform .5s var(--ease), background .4s var(--ease), box-shadow .4s; }
.nav.is-solid { background: rgba(255, 246, 236, .8); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(74, 34, 44, .08); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { width: 76px; color: inherit; flex: none; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 44px); margin-left: auto; }
.nav__links a { font-family: var(--f-ui); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; position: relative; padding: 6px 0; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 12px 20px; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; background: none; border: 0; cursor: pointer; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] { color: var(--cream); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--wine-deep); color: var(--cream); display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 90px var(--g) 40px; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-family: var(--f-display); font-weight: 500; font-size: clamp(38px, 10vw, 60px); line-height: 1.15; text-decoration: none; }
.menu .btn { align-self: flex-start; }
@media (max-width: 1240px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } .nav__burger { display: block; margin-left: 0; } }
@media (max-width: 820px) { .nav__cta { display: none; } .nav__burger { margin-left: auto; } }

/* footer: the Creative Direction page's, with the positioning line */
.foot { padding: clamp(60px, 10vh, 100px) var(--g) 28px; display: grid; justify-items: center; text-align: center; gap: 22px; color: var(--cream);
  background: var(--wine) var(--paper) center / 768px auto; background-blend-mode: soft-light; }
.foot__logo { color: var(--cream); }
.foot__logo .qi-mark { width: 74px; }
.foot__line { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; max-width: 30ch; }
.foot__line span { display: block; font-style: italic; color: var(--peach); }
.foot__nav, .foot__connect { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-family: var(--f-ui); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.foot__nav a, .foot__connect a { text-decoration: none; opacity: .85; }
.foot__nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.foot__position { font-family: var(--f-ui); font-size: 10.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--peach); opacity: .9; margin-top: 8px; }
.foot__base { font-family: var(--f-ui); font-size: 11px; opacity: .55; }


/* ================================================================ Our Work + case studies (Rajvi's Figma, 12 Nov 2026)
   Her pages are drawn on a 1920 px canvas. Case-study copy is laid out in container units on that canvas
   (1cqw = 19.2 px of hers), so columns, gaps and type keep her proportions at every width; the artwork
   bands between the copy are rendered from her PDFs and stack edge to edge. */
:root { --ink: #1c1517; --head: #62313d; --band: #602f3b; --orange: #c3812a; }
body { background-color: #fffaf4; }
.btn--wine { background: var(--wine); color: var(--cream); text-transform: uppercase; letter-spacing: .09em; font-size: 13px; }
@media (hover: hover) { .btn--wine:hover { background: var(--wine-deep); } }
.nav--solid { background: rgba(255, 248, 240, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(74, 34, 44, .08); }

/* ---------------------------------------------------------------- the index */
.w-hero { background: #f3e6ea center / cover no-repeat; padding: clamp(150px, 15vw, 230px) var(--g) clamp(70px, 7vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 6vw; align-items: center; }
.w-hero h1 { font-size: clamp(3.4rem, 6.6vw, 8rem); line-height: .95; color: var(--wine); padding-left: 0; }
.w-hero p { font-size: clamp(1rem, 1.25vw, 1.5rem); line-height: 1.45; color: var(--wine); max-width: 34ch; }
.w-grid { width: min(79.4vw, 1525px); margin: clamp(56px, 6vw, 100px) auto 0; display: grid; gap: clamp(56px, 5vw, 96px); }
.w-row--pair { display: grid; grid-template-columns: minmax(0, 1.065fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 76px); }
.w-card { display: block; text-decoration: none; color: var(--wine); }
.w-card figure { overflow: hidden; border-radius: clamp(12px, 1.3vw, 22px); background: #efe4dc; }
.w-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.w-card--wide figure { aspect-ratio: 1523 / 540; }
.w-card--tall figure { aspect-ratio: 747 / 871; }
.w-row--pair .w-card:nth-child(2) figure { aspect-ratio: 701 / 871; }
@media (hover: hover) { .w-card:hover img { transform: scale(1.03); } }
.w-card__brand { margin-top: clamp(14px, 1.3vw, 22px); font-size: clamp(.68rem, .75vw, .9rem); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.w-card__line { font-size: clamp(1.6rem, 2.3vw, 2.75rem); line-height: 1.12; margin-top: 4px; max-width: 30ch; }
.w-card__pills, .cs-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(10px, 1vw, 16px); }
.w-card__pills li { border: 1px solid rgba(74, 34, 44, .7); border-radius: 999px; padding: 4px 12px; font-size: clamp(.72rem, .8vw, .95rem); line-height: 1.4; }

/* ---------------------------------------------------------------- the closing card, hers */
.start { padding: clamp(80px, 9vw, 150px) var(--g) clamp(70px, 8vw, 130px); }
.start__card { width: min(80.4vw, 1543px); margin: 0 auto; aspect-ratio: 1543 / 1080; max-height: 86vh; border-radius: clamp(16px, 1.6vw, 28px);
  background: #c3812a center / cover no-repeat; display: grid; place-content: center; justify-items: center; text-align: center; gap: clamp(14px, 1.4vw, 26px); padding: 40px 24px; color: #fffaf3; }
.start__title { font-size: clamp(2.6rem, 5vw, 6rem); line-height: 1; color: #fffaf3; }
.start__card p { font-size: clamp(.95rem, 1.25vw, 1.5rem); line-height: 1.45; opacity: .95; }

/* ---------------------------------------------------------------- one case study */
.cs { padding-top: 88px; }
.cs-page { max-width: 1920px; margin: 0 auto; container-type: inline-size; background: #fff; color: var(--ink); }
.cs-art img { width: 100%; height: auto; display: block; }
.cs-art { line-height: 0; }
.cs-col p, .cs-col li, .cs-imp li { font-size: clamp(1rem, 1.04cqw, 1.25rem); line-height: 1.7; }
.cs-col p + p, .cs-col p + ul, .cs-col ul + p { margin-top: .55em; }
.cs-head { font-family: var(--display); font-weight: 500; text-transform: uppercase; color: var(--head); font-size: clamp(1.2rem, 2.08cqw, 2.5rem); line-height: 1.1; letter-spacing: 0; }
.cs-head--b { font-weight: 600; margin-bottom: .45em; }
.cs-lede { font-family: var(--display); font-weight: 500; color: var(--head); font-size: clamp(1.55rem, 2.75cqw, 3.3rem) !important; line-height: 1.22 !important; margin-top: .35em; max-width: 34.5cqw; text-wrap: pretty; }
.cs-kicker { margin-top: 1.1em; max-width: 32ch; }
.cs-kicker + .cs-lede { margin-top: .25em; }
.cs-col ul { list-style: disc; padding-left: 1.1em; }
.cs-col li + li, .cs-imp li + li { margin-top: .1em; }
.cs-col .lead { font-family: var(--display); font-size: clamp(1.2rem, 1.35cqw, 1.6rem); line-height: 1.3; color: var(--head); }

/* two columns on her grid: the left copy starts at 155 px, the right at 970 px of 1920 */
.cs-text, .cs-band__text { display: grid; grid-template-columns: 42.5cqw minmax(0, 1fr); padding: var(--pt, 6cqw) 11cqw var(--pb, 6cqw) 8cqw; align-items: start; }
.cs-text .cs-col--r { padding-top: calc(clamp(1.2rem, 2.08cqw, 2.5rem) * 1.1 + .35em); }
.cs-text .cs-col--r:has(.cs-head--b) { padding-top: 0; }
.cs-breakthrough .cs-col--r, .cs-solution .cs-col--r, .cs-result .cs-col--r { padding-top: 4cqw; }

/* the burgundy band: title, pills and the intro, then her inset image */
.cs-band { background: var(--band) url(../assets/textures/paper-fine.jpg) center / 768px auto; background-blend-mode: soft-light; color: #fff6ed; }
.cs-band__text { padding: var(--pt) 11cqw 4.5cqw 9.1cqw; }
.cs-title { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 4.6cqw, 5.6rem); line-height: 1; color: #fff6ed; letter-spacing: -.01em; }
.cs-sub { font-family: var(--body); font-weight: 500; font-size: clamp(1rem, 1.35cqw, 1.6rem); letter-spacing: 0; vertical-align: .15em; }
.cs-col ul.cs-pills { list-style: none; padding-left: 0; }
.cs-pills li { border: 1px solid rgba(255, 246, 237, .85); border-radius: 999px; padding: .3em 1em; font-size: clamp(.78rem, .9cqw, 1.08rem); line-height: 1.4; }
.cs-intro p { font-size: clamp(1rem, 1.04cqw, 1.25rem); line-height: 1.75; color: rgba(255, 246, 237, .92); max-width: 38em; }
.cs-intro p + p { margin-top: .5em; }

/* impact: three columns, each heading in its own colour */
.cs-impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 3cqw; padding: var(--pt) 9cqw 8cqw 10.6cqw; }
.cs-imp h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.3rem, 2.08cqw, 2.5rem); line-height: 1.08; margin-bottom: 1em; }
.cs-imp ul { list-style: disc; padding-left: 1.1em; }
.cs-imp p { font-size: clamp(1rem, 1.04cqw, 1.25rem); line-height: 1.7; }

.cs-next { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: clamp(28px, 3cqw, 48px) 8cqw; border-top: 1px solid rgba(74, 34, 44, .12); }
.cs-next a { color: var(--wine); text-decoration: none; }
.cs-next__all { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.cs-next__go { font-family: var(--display); font-size: clamp(1.4rem, 2.2cqw, 2.4rem); display: inline-flex; align-items: baseline; gap: .4em; }
.cs-next__go span { font-family: var(--body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.cs-next__go i { font-style: normal; transition: transform .4s var(--ease); }
@media (hover: hover) { .cs-next__go:hover i { transform: translateX(6px); } }

/* ---------------------------------------------------------------- phones and tablets */
@media (max-width: 820px) {
  .w-hero { grid-template-columns: minmax(0, 1fr); padding-top: 130px; }
  .w-grid { width: auto; margin: 48px var(--g) 0; }
  .w-row--pair { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .w-row--pair .w-card figure, .w-card--tall figure { aspect-ratio: 4 / 5; }
  .w-card--wide figure { aspect-ratio: 16 / 10; }
  .start__card { width: auto; aspect-ratio: auto; min-height: 420px; }
  .cs { padding-top: 74px; }
  .cs-text, .cs-band__text { grid-template-columns: minmax(0, 1fr); padding: max(var(--pt, 40px), 40px) var(--g) max(var(--pb, 40px), 40px); gap: 18px; }
  .cs-band__text { padding-bottom: 32px; }
  .cs-text .cs-col--r, .cs-breakthrough .cs-col--r, .cs-solution .cs-col--r, .cs-result .cs-col--r { padding-top: 0; }
  .cs-lede { max-width: none; }
  .cs-impact { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: max(var(--pt, 40px), 40px) var(--g) 56px; }
  .cs-next { padding: 28px var(--g); }
}
@media (prefers-reduced-motion: reduce) { .w-card img, .cs-next__go i { transition: none; } }
