/* RAJVASTRA — case study microsite */

/* self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-Italic-var.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/Lato-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/Lato-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/Lato-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --cream: #F7F0E4;
  --paper: #EFE3D0;
  --sand: #D6BE9C;
  --maroon: #6F1D2A;
  --maroon-deep: #4E1219;
  --mustard: #C98E2B;
  --mustard-ink: #8C5E12;
  --indigo: #1E2A4F;
  --terracotta: #B4532F;
  --olive: #4F5530;
  --ink: #2B1E17;
  --ink-soft: #5C4A3E;
  --line: rgba(43, 30, 23, .14);

  --serif: "Playfair Display", "Crimson Text", Georgia, serif;
  --sans: "Lato", "Poppins", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --g: clamp(20px, 4vw, 52px);
  --sp: clamp(84px, 11vw, 156px);
  --nav: 68px;
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* subtle paper grain */
body::before { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--maroon); color: var(--cream); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top, 0px); transition: background .35s, box-shadow .35s; }
.nav.is-solid, .nav.menu-open { background: rgba(247, 240, 228, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__in { max-width: 1380px; margin: 0 auto; height: var(--nav); padding: 0 var(--g); display: flex; align-items: center; gap: 28px; }
.nav__logo { font-family: var(--serif); font-size: 19px; letter-spacing: .28em; text-decoration: none; color: var(--maroon); }
.nav__links { display: flex; gap: clamp(14px, 1.7vw, 28px); margin-left: auto; font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; position: relative; transition: color .2s; }
.nav__links a:hover, .nav__links a.is-on { color: var(--maroon); }
.nav__links a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--maroon); }
.nav__back { font-size: 13.5px; text-decoration: none; padding: 8px 16px; border: 1px solid var(--maroon); color: var(--maroon); white-space: nowrap; transition: background .25s, color .25s; }
.nav__back:hover { background: var(--maroon); color: var(--cream); }
.nav__back--menu { display: none; }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; color: var(--maroon); }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- TYPE HELPERS ---------- */
.label { display: flex; align-items: baseline; gap: 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 20px; }
.label span { font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: 0; color: var(--maroon); }
.label--light { color: var(--sand); }
.label--light span { color: var(--mustard); }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 26px; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); max-width: 20ch; text-wrap: balance; }
.h2--light { color: var(--cream); }
.h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 18px; }
.lead { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.5; color: var(--ink); max-width: 36ch; margin-top: 26px; }
.body { font-size: 17px; line-height: 1.75; color: var(--ink-soft); max-width: 56ch; }
.head-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 72px; align-items: end; margin-bottom: clamp(44px, 5vw, 72px); }
.head-split .body + .btn { margin-top: 24px; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 26px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--terracotta); color: #FFF8EE; }
.btn--primary:hover { background: var(--maroon); }
.btn--line { border: 1px solid var(--maroon); color: var(--maroon); }
.btn--line:hover { background: var(--maroon); color: var(--cream); }
.btn--light { background: rgba(247, 240, 228, .95); color: var(--maroon); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 12px; }

/* ---------- 01 HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav) + 40px + env(safe-area-inset-top, 0px)) 0 110px; background: radial-gradient(70% 60% at 80% 40%, rgba(201, 142, 43, .16), transparent 70%), var(--cream); overflow: hidden; }
.hero__in { width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 var(--g); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1.04; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.hero__lede { margin-top: 28px; font-size: 18.5px; max-width: 40ch; color: var(--ink-soft); }
.hero__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 520px; }
.hero__meta dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.hero__meta dd { font-family: var(--serif); font-size: 17px; }
.hero__art { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 600px; justify-self: end; }
.hero__img { position: absolute; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(78, 18, 25, .6); transform: translate3d(0, var(--py, 0px), 0); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--main { left: 0; top: 0; width: 64%; height: 88%; z-index: 2; }
.hero__img--main img { animation: drift 22s ease-in-out infinite alternate; }
.hero__img--side { right: 0; bottom: 0; width: 48%; height: 50%; z-index: 3; border: 8px solid var(--cream); }
.hero__caption { position: absolute; right: 0; top: 10%; z-index: 4; width: 33%; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.35; color: var(--maroon); text-align: right; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--maroon), transparent); transform-origin: top; animation: thread 2.4s var(--ease) infinite; }
@keyframes thread { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.js .hero__copy > *, .js .hero__img, .js .hero__caption { opacity: 0; }
.is-loaded .hero__copy > * { animation: rise 1s var(--ease) forwards; }
.is-loaded .hero__copy > :nth-child(2) { animation-delay: .1s; }
.is-loaded .hero__copy > :nth-child(3) { animation-delay: .2s; }
.is-loaded .hero__copy > :nth-child(4) { animation-delay: .3s; }
.is-loaded .hero__img--main { animation: unveil 1.4s var(--ease) .15s forwards; }
.is-loaded .hero__img--side { animation: unveil 1.4s var(--ease) .45s forwards; }
.is-loaded .hero__caption { animation: rise 1s var(--ease) .7s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---------- SECTIONS ---------- */
.sec { padding: var(--sp) 0; position: relative; }
.sec--paper { background: var(--paper); }
.sec--maroon { background: var(--maroon); color: var(--cream); }

/* ---------- 02 CONTEXT ---------- */
.ctx { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ctx__text .body { margin-top: 26px; }
.four { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.four li { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--maroon); }
.four li:not(:last-child)::after { content: "·"; margin-left: 22px; color: var(--mustard); font-style: normal; }
.ctx__img { overflow: hidden; }
.ctx__img img { width: 100%; transition: transform 1.4s var(--ease); }
.ctx__img:hover img { transform: scale(1.04); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 30px 28px 30px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.4vw, 76px); line-height: 1; color: var(--maroon); }
.fact span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.facts__note { grid-column: 1 / -1; padding: 12px 0; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-soft); font-style: italic; }
.summary { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; align-items: center; width: 100%; margin-top: 40px; padding: 20px; background: #FBF6EE; border: 1px solid var(--line); cursor: zoom-in; transition: box-shadow .35s; }
.summary:hover { box-shadow: 0 24px 60px -34px rgba(78, 18, 25, .55); }
.summary__img { overflow: hidden; }
.summary__img img { transition: transform 1s var(--ease); }
.summary:hover .summary__img img { transform: scale(1.05); }
.summary__txt { display: flex; flex-direction: column; gap: 8px; max-width: 56ch; color: var(--ink-soft); font-size: 15.5px; }
.summary__txt b { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--ink); }
.summary__txt em, .fullboard { font-style: normal; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-top: 6px; }
.summary__txt em::after, .fullboard::after { content: ""; display: inline-block; width: 22px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; transition: width .35s var(--ease); }
.summary:hover em::after, .fullboard:hover::after { width: 40px; }

/* ---------- 03 BRIEF ---------- */
.brief { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: clamp(44px, 5vw, 72px); border-top: 1px solid rgba(247, 240, 228, .2); counter-reset: b; }
.brief li { counter-increment: b; position: relative; padding: 34px 24px 12px 0; }
.brief li + li { padding-left: 24px; border-left: 1px solid rgba(247, 240, 228, .2); }
.brief li::before { content: counter(b, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--mustard); line-height: 1; margin-bottom: 22px; }
.brief svg { width: 28px; height: 28px; fill: none; stroke: var(--sand); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.brief p { font-size: 15.5px; line-height: 1.6; color: rgba(247, 240, 228, .88); }
.brief strong { color: #fff; font-weight: 700; }

/* ---------- 04 STRATEGY ---------- */
.strat { text-align: center; background: radial-gradient(60% 50% at 50% 0%, rgba(180, 83, 47, .12), transparent 70%), var(--cream); }
.strat .label { justify-content: center; }
.strat__line { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8vw, 118px); line-height: 1; letter-spacing: -.02em; color: var(--maroon); }
.strat__line em { color: var(--terracotta); }
.strat__lead { margin: 34px auto 0; max-width: 40ch; }
.tensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: clamp(56px, 7vw, 88px) auto 0; text-align: left; }
.tension { padding: 34px 32px 30px; background: #FBF6EE; border: 1px solid var(--line); position: relative; }
.tension::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mustard); }
.tension__q { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--ink); }
.tension__a { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-soft); }
.tension__a span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 6px; }
.strat__note { margin: 26px auto 0; text-align: center; font-size: 15px; }
.bridge { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 12px 0; margin-top: clamp(56px, 7vw, 80px); }
.bridge li { display: flex; align-items: center; font-family: var(--serif); font-size: clamp(18px, 1.8vw, 24px); color: var(--c); }
.bridge li::before { content: ""; width: 10px; height: 10px; margin-right: 12px; border-radius: 50%; background: var(--c); }
.bridge li:not(:last-child)::after { content: ""; width: clamp(24px, 4vw, 64px); height: 1px; margin: 0 18px; background: linear-gradient(90deg, var(--c), var(--line)); }

/* ---------- 05 LAYERS ---------- */
.layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.layer { padding: 30px 26px 30px; background: var(--cream); border-top: 3px solid var(--c); }
.layer__n { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--c); }
.layer h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; margin: 18px 0 16px; }
.layer ul { display: grid; gap: 8px; }
.layer li { position: relative; padding-left: 16px; font-size: 15px; color: var(--ink-soft); }
.layer li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--c); }

/* ---------- 06 ARCHITECTURE ---------- */
.arch { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.arch::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--thumb-h, 150px) + 22px); height: 1px; background: repeating-linear-gradient(90deg, var(--maroon) 0 6px, transparent 6px 12px); opacity: .5; }
.arch__step { position: relative; display: flex; flex-direction: column; }
.arch__img, .arch__card { display: block; width: 100%; aspect-ratio: 767 / 505; overflow: hidden; background: var(--paper); cursor: zoom-in; box-shadow: 0 18px 40px -30px rgba(78, 18, 25, .6); }
.arch__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.arch__img:hover img { transform: scale(1.07); }
.arch__card { cursor: default; display: flex; align-items: center; justify-content: center; padding: 10px 12px; background: var(--maroon); color: var(--cream); }
.cols { display: grid; gap: 1px; width: 100%; font-size: 11.5px; line-height: 1.2; }
.cols li { display: flex; justify-content: space-between; gap: 6px; padding: 3px 0; border-bottom: 1px solid rgba(247, 240, 228, .15); color: rgba(247, 240, 228, .7); }
.cols b { font-weight: 700; color: var(--cream); }
.arch__card--ig { flex-direction: column; gap: 8px; background: linear-gradient(135deg, var(--terracotta), var(--maroon)); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.arch .arch__card--ig p { color: var(--cream); font-size: 12px; }
.arch__card--ig svg { width: 34px; height: 34px; fill: none; stroke: var(--cream); stroke-width: 1.4; }
.arch__n { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin: 14px 0 12px; border-radius: 50%; background: var(--cream); border: 1px solid var(--maroon); font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--maroon); }
.arch h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.15; margin-bottom: 6px; }
.arch p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.craft { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.craft span { font-family: var(--serif); font-style: italic; color: var(--maroon); font-size: 15px; }
.craft i { font-style: normal; color: var(--mustard); }

/* ---------- 07 QUOTE ---------- */
.quote { position: relative; padding: clamp(110px, 14vw, 200px) 0; background: var(--maroon-deep); color: var(--cream); overflow: hidden; }
.quote__bg { position: absolute; inset: 0; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .28; filter: saturate(.8); transform: scale(1.08); }
.quote__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(78, 18, 25, .96) 30%, rgba(78, 18, 25, .7)); }
.quote__in { position: relative; }
.quote blockquote p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.18; max-width: 22ch; text-wrap: balance; }
.quote__notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid rgba(247, 240, 228, .22); max-width: 900px; font-size: 16px; color: rgba(247, 240, 228, .82); }
.quote__notes em { color: var(--sand); }

/* ---------- 08 PILLARS ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: clamp(44px, 5vw, 64px); }
.pillars li { padding: 0 24px 8px; text-align: center; }
.pillars li + li { border-left: 1px solid var(--line); }
.pillars__ic { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; background: var(--c); box-shadow: 0 16px 34px -18px var(--c); transition: transform .4s var(--ease); }
.pillars li:hover .pillars__ic { transform: translateY(-4px) rotate(-4deg); }
.pillars__ic svg { width: 36px; height: 36px; fill: none; stroke: #FFF4E2; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pillars h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
.pillars p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 09 VISUALS ---------- */
.zoom { cursor: zoom-in; }
.vis { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.vis__mood { display: block; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -44px rgba(78, 18, 25, .7); }
.vis__mood img { width: 100%; transition: transform 1.2s var(--ease); }
.vis__mood:hover img { transform: scale(1.03); }
.vis__side { display: flex; flex-direction: column; gap: 36px; }
.palette ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.palette li { font-size: 14px; color: var(--ink-soft); }
.palette i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--c); margin-bottom: 8px; max-width: 72px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.type { padding-top: 28px; border-top: 1px solid var(--line); }
.type__serif { font-family: var(--serif); font-size: clamp(38px, 4vw, 54px); letter-spacing: .22em; line-height: 1.1; color: var(--ink); }
.type__sans { margin-top: 18px; font-family: var(--sans); font-size: 20px; color: var(--ink); }
.type__meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.vis__row { display: flex; gap: 20px; margin-top: 20px; }
.vis__tile { position: relative; display: block; overflow: hidden; background: #fff; }
.vis__tile:first-child { flex: 549 1 0; }
.vis__tile:last-child { flex: 363 1 0; }
.vis__tile img { width: 100%; transition: transform 1.2s var(--ease); }
.vis__tile:hover img { transform: scale(1.03); }
.vis__tile > span { display: block; padding: 12px 16px; font-size: 13px; color: var(--ink-soft); background: var(--cream); border-top: 1px solid var(--line); }
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.reel__item { display: block; overflow: hidden; }
.reel__item img { width: 100%; transition: transform 1.2s var(--ease); }
.reel__item:hover img { transform: scale(1.05); }
.fullboard { display: inline-block; margin-top: 30px; }

/* ---------- 10 SHOWCASE ---------- */
.showcase { background: linear-gradient(180deg, var(--cream), #F2E6D4); }
.browser { background: #FBF7F1; border-radius: 12px; overflow: hidden; box-shadow: 0 50px 110px -50px rgba(78, 18, 25, .7), 0 0 0 1px var(--line); }
.browser__bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: #EDE3D4; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #D8C8B2; }
.dots i:first-child { background: #D86F5E; }
.dots i:nth-child(2) { background: #E2B35A; }
.dots i:nth-child(3) { background: #8FA46A; }
.browser__url { display: block; text-decoration: none; transition: color .2s; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 14px; background: #FBF7F1; border-radius: 6px; font-size: 13px; color: var(--ink-soft); }
.tag { flex: none; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; background: var(--maroon); color: var(--cream); }
.browser__view { position: relative; aspect-ratio: 1536 / 1024; overflow: hidden; background: var(--paper); }
.browser__view > img { width: 100%; height: 100%; object-fit: cover; }
.browser__view iframe, .phone__screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.live-load { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); }
.browser figcaption { padding: 14px 18px; font-size: 13.5px; color: var(--ink-soft); background: #FBF7F1; border-top: 1px solid var(--line); }

/* ---------- 11 MOBILE ---------- */
.mob { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.mob__phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(20px, 3vw, 40px); }
.mob__board, .phone { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mob__board figcaption, .phone figcaption { font-size: 13px; color: var(--ink-soft); text-align: center; }
.mob__board img { width: 200px; filter: drop-shadow(0 30px 40px rgba(78, 18, 25, .35)); transition: transform .6s var(--ease); }
.mob__board button:hover img { transform: translateY(-4px); }
.phone__screen { position: relative; width: 240px; aspect-ratio: 9 / 19.5; border-radius: 34px; overflow: hidden; background: #111; border: 9px solid #1E1612; box-shadow: 0 40px 70px -30px rgba(78, 18, 25, .6); }
.phone__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.phone__screen .live-load { bottom: 18px; width: 84%; }
.phone__screen .live-load .btn { width: 100%; justify-content: center; text-align: center; min-height: 40px; padding: 6px 10px; line-height: 1.3; }
.mob__text .body { margin-top: 22px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 30px; }
.checks li { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); transform: translateY(-1px); }

/* ---------- 12 CONVERSION ---------- */
.ctas { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; align-items: stretch; }
.cta { padding: 30px 28px; background: #FBF6EE; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.cta p:last-child { font-size: 15px; color: var(--ink-soft); }
.cta__tier { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.cta__mock { align-self: flex-start; padding: 14px 22px; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; background: var(--terracotta); color: #FFF8EE; }
.cta--primary { background: var(--maroon); border-color: var(--maroon); color: var(--cream); }
.cta--primary .cta__tier { color: var(--mustard); }
.cta--primary p:last-child { color: rgba(247, 240, 228, .8); }
.cta--primary .cta__mock { font-size: 15px; padding: 18px 30px; background: #C1633C; }
.cta__mock--ghost { background: transparent; color: var(--maroon); border: 1px solid var(--maroon); }
.cta__mock--letter { background: transparent; color: var(--maroon); border: 0; padding: 0; font-family: var(--serif); font-style: italic; font-size: 26px; letter-spacing: 0; text-transform: none; }

/* ---------- 13 TOOLS ---------- */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 56px); }
.tools li { padding: 26px 24px; background: var(--cream); border-bottom: 3px solid var(--mustard); }
.tools b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.tools span { font-size: 14.5px; color: var(--ink-soft); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; margin-top: 44px; }
.flow li { display: flex; align-items: center; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.8vw, 23px); color: var(--maroon); }
.flow li:not(:last-child)::after { content: ""; width: clamp(18px, 3vw, 44px); height: 1px; margin: 0 14px; background: var(--mustard); }

/* ---------- 14 TAKEAWAY ---------- */
.take { position: relative; padding: clamp(110px, 14vw, 190px) 0; background: radial-gradient(60% 70% at 50% 100%, rgba(201, 142, 43, .22), transparent 70%), var(--maroon); color: var(--cream); text-align: center; }
.take .label { justify-content: center; }
.take__line { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 86px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.take__line em { color: var(--mustard); }
.take__reflect { margin: 44px auto 0; max-width: 58ch; font-size: 17.5px; color: rgba(247, 240, 228, .85); }

/* ---------- 15 FINAL ---------- */
.final { padding: clamp(80px, 10vw, 120px) 0; text-align: center; }
.final .h2 { margin: 0 auto; }
.final__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot b { font-family: var(--serif); font-weight: 400; letter-spacing: .2em; color: var(--maroon); }

/* ---------- LIGHTBOX ---------- */
.lb { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: max(18px, env(safe-area-inset-top, 0px)) 10px max(18px, env(safe-area-inset-bottom, 0px)); background: rgba(35, 18, 14, .96); }
.lb[hidden] { display: none; }
.lb__fig { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lb__fig img { max-width: 100%; max-height: calc(100vh - 100px); max-height: calc(100svh - 100px); object-fit: contain; }
.lb__fig figcaption { font-size: 14px; color: rgba(247, 240, 228, .8); text-align: center; }
#lbCount { color: rgba(247, 240, 228, .5); margin-left: 10px; }
.lb__btn { justify-self: center; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(247, 240, 228, .3); background: rgba(247, 240, 228, .06); color: var(--cream); transition: background .2s; }
.lb__btn:hover { background: rgba(247, 240, 228, .16); }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb__close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; width: 46px; height: 46px; }
body.lb-open { overflow: hidden; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1120px) {
  .nav__back:not(.nav__back--menu) { display: none; }
  .brief { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .brief li:nth-child(4) { padding-left: 0; border-left: 0; }
  .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .arch::before { display: none; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .pillars li:nth-child(4) { border-left: 0; }
}

@media (max-width: 900px) {
  :root { --nav: 60px; }
  .nav__burger { display: block; }
  .nav__links { position: fixed; inset: calc(var(--nav) + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 6px var(--g) 24px; background: var(--cream); box-shadow: 0 24px 40px -24px rgba(78, 18, 25, .4); font-size: 17px; max-height: calc(100vh - var(--nav)); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a.is-on::after { display: none; }
  .nav__back--menu { display: block; margin-top: 16px; text-align: center; border: 1px solid var(--maroon) !important; }

  .hero { min-height: 0; padding-bottom: 96px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__art { justify-self: center; max-width: 520px; }
  .head-split, .ctx, .vis, .mob { grid-template-columns: minmax(0, 1fr); }
  .ctx__img { max-width: 520px; }
  .tensions { grid-template-columns: 1fr; }
  .quote__notes { grid-template-columns: 1fr; gap: 16px; }
  .arch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctas { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mob__phones { order: 2; }

  .lb { grid-template-columns: 1fr; }
  .lb__prev, .lb__next { position: absolute; bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
  .lb__prev { left: calc(50% - 62px); }
  .lb__next { right: calc(50% - 62px); }
  .lb__fig { padding-bottom: 70px; }
  .lb__fig img { max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__title { font-size: clamp(34px, 9vw, 44px); }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .hero__caption { display: none; }
  .hero__art { aspect-ratio: 1 / 1.05; }
  .hero__img--main { width: 72%; height: 90%; }
  .hero__img--side { width: 52%; height: 50%; border-width: 6px; }
  .hero__scroll { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 22px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .summary { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 14px; }
  .summary__txt b { font-size: 21px; }
  .summary__txt > span { font-size: 14px; }
  .brief { grid-template-columns: 1fr; }
  .brief li, .brief li + li { padding: 26px 0 20px; border-left: 0; border-top: 1px solid rgba(247, 240, 228, .2); }
  .brief li:first-child { border-top: 0; }
  .brief li::before { display: inline-block; margin: 0 14px 0 0; font-size: 26px; vertical-align: middle; }
  .brief svg { display: inline-block; vertical-align: middle; margin-bottom: 12px; }
  .bridge { flex-direction: column; gap: 0; }
  .bridge li { flex-direction: column; }
  .bridge li::before { display: none; }
  .bridge li:not(:last-child)::after { width: 1px; height: 22px; margin: 8px 0; background: var(--c); }
  .layers, .tools { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; row-gap: 0; }
  .pillars li, .pillars li + li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; text-align: left; padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .pillars__ic { width: 60px; height: 60px; margin: 0; grid-row: span 2; }
  .pillars__ic svg { width: 28px; height: 28px; }
  .pillars h3 { margin-bottom: 4px; }
  .vis__row { flex-direction: column; }
  .reel { grid-template-columns: 1fr 1fr; }
  .reel__item:last-child { grid-column: 1 / -1; }
  .palette ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .browser__bar { gap: 10px; padding: 10px 12px; }
  .browser__url { font-size: 11.5px; padding: 5px 10px; }
  .tag { font-size: 10px; padding: 4px 7px; }
  .live-load { bottom: 12px; }
  .browser .btn--light { min-height: 40px; padding: 0 14px; font-size: 11.5px; }
  .mob__phones { gap: 16px; }
  .mob__board img { width: 140px; }
  .phone__screen { width: 170px; border-width: 7px; border-radius: 26px; }
  .checks { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: flex-start; gap: 0; }
  .flow li { flex-direction: column; align-items: flex-start; }
  .flow li:not(:last-child)::after { width: 1px; height: 16px; margin: 6px 0 6px 6px; }
  .foot__in { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero__copy > *, .js .hero__img, .js .hero__caption { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
.browser__url:hover { color: var(--maroon); }
