/* Avinya Design Studio — shared styles for home, work and project pages */
:root {
  --bg: #eef3f5;
  --bg-2: #e2ebef;
  --white: #ffffff;
  --sage: #e6ebdd;
  --sage-2: #cdd6bd;
  --night: #3b4029;
  --olive: #434831;
  --ink: #23271a;
  --muted: #5b6767;
  --line: rgba(35, 39, 26, .12);
  --orange: #e7932e;
  --orange-ink: #a85f14;
  --cream: #fbecd2;
  --display: "Clash Display", "Helvetica Neue", Arial, sans-serif;
  --sans: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --g: 20px;              /* side gutter: one value for every section */
  --max: 1440px;
  --r: 22px;              /* corner radius */
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 700px) { :root { --g: 32px; --r: 26px; } }
@media (min-width: 1100px) { :root { --g: 56px; --r: 30px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--orange); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(231, 147, 46, .18); }
.label { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 14px; font-weight: 700; color: var(--olive); }
.label--light { color: var(--cream); }
.h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 7.4vw, 116px); line-height: 1.06; letter-spacing: -.025em; }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.02em; }
.h3 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 52ch; }
.soft { color: var(--muted); }
.accent { color: var(--orange-ink); }
.head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .head--split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 48px; } }

/* Buttons — orange leads */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 100px; background: var(--orange); color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap; transition: transform .4s var(--ease), box-shadow .4s, background .3s, color .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(231, 147, 46, .35); }
.btn b { font-weight: 700; transition: transform .4s var(--ease); }
.btn:hover b { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--orange); }
.btn--glass { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn--glass:hover { background: rgba(255, 255, 255, .26); box-shadow: inset 0 0 0 1px #fff; }
/* WhatsApp straight from the opening photo */
.btn--wa { gap: 10px; padding-left: 14px; }
.btn--wa .ico { width: 26px; height: 26px; }
@media (max-width: 699px) {
  .hero .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .btns .btn:first-child { grid-column: 1 / -1; }
  .hero .btns .btn--glass { padding: 0 10px; font-size: 14px; }
  .btn--wa { gap: 8px; }
  .btn--wa .ico { width: 24px; height: 24px; }
}
.btn--line { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(251, 236, 210, .4); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--cream); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Reveal on scroll (only when JS is running; content stays visible otherwise) */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; will-change: transform; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; opacity: 0; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, box-shadow .4s; }
.cursor span { font-size: 12px; font-weight: 700; color: var(--ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(231, 147, 46, .14); box-shadow: inset 0 0 0 1.5px var(--orange); }
.cursor.is-view { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.cursor.is-view span { opacity: 1; }
.cursor.is-hidden { opacity: 0 !important; }
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor * { cursor: none !important; } html.has-cursor input { cursor: text !important; } }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; transition: transform .7s var(--ease), opacity .5s, background .4s, box-shadow .4s; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav.is-solid { background: rgba(238, 243, 245, .96); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.nav__logo { position: relative; display: block; }
.nav__logo img { height: 38px; width: auto; transition: opacity .4s; }
.nav__logo-light { position: absolute; left: 0; top: 0; opacity: 0; }
.has-stage .nav:not(.is-solid) .nav__logo img:first-child { opacity: 0; }
.has-stage .nav:not(.is-solid) .nav__logo-light { opacity: 1; }
.has-stage .nav:not(.is-solid) .nav__links a { color: rgba(255, 255, 255, .82); }
.has-stage .nav:not(.is-solid) .nav__links a:hover { color: #fff; }
.nav__links { display: none; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { position: relative; padding: 6px 0; color: var(--muted); transition: color .3s; }
.nav__links a:hover, .nav__links a.is-on { color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .45s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-on::after { transform: scale(1); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__cta { min-height: 44px; padding: 0 20px; font-size: 14px; }
.nav__menu { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 100px; background: var(--white); font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.nav__menu i { position: relative; width: 16px; height: 10px; }
.nav__menu i::before, .nav__menu i::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__menu i::before { top: 0; }
.nav__menu i::after { top: 8px; }
.menu-open .nav__menu i::before { top: 4px; transform: rotate(45deg); }
.menu-open .nav__menu i::after { top: 4px; transform: rotate(-45deg); }
.nav__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
@media (max-width: 699px) { .nav__cta { display: none; } }
@media (min-width: 1100px) { .nav__links { display: flex; } .nav__menu { display: none; } }

/* Phone / tablet menu */
.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: flex-end; padding: 100px var(--g) calc(32px + env(safe-area-inset-bottom)); background: var(--night); color: var(--cream); clip-path: circle(0 at calc(100% - 60px) 36px); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 36px); visibility: visible; transition: clip-path .8s var(--ease); }
.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .nav__logo img:first-child { opacity: 0; }
.menu-open .nav__logo-light { opacity: 1; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(251, 236, 210, .14); font-family: var(--display); font-size: clamp(34px, 9vw, 56px); line-height: 1.1; }
.menu__links a small { font-family: var(--sans); font-size: 13px; color: var(--orange); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Entrance ---------- */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); }
.stage__sky { position: absolute; inset: 0; background: radial-gradient(42% 46% at 50% 42%, rgba(207, 224, 234, .14) 0%, rgba(207, 224, 234, 0) 70%), radial-gradient(120% 90% at 50% 40%, #4a5035 0%, var(--night) 70%, #2d3120 100%); }
/* wide screens: the pavilion sketch always covers the whole screen, fades softly at its edges,
   and is dimmed a little behind the name so the words stay clear */
.stage__lines { position: absolute; left: 50%; top: 48%; width: max(112vw, calc(112svh * 1280 / 832)); aspect-ratio: 1280 / 832; transform: translate(-50%, -50%); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%), radial-gradient(26% 15% at 50% 62%, rgba(0, 0, 0, .25) 0%, #000 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%), radial-gradient(26% 15% at 50% 62%, rgba(0, 0, 0, .25) 0%, #000 100%); mask-composite: intersect; }

.stage__lines svg { width: 100%; height: 100%; overflow: visible; }
.stage__lines path { stroke: rgba(251, 236, 210, .55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.stage__ring { position: absolute; left: 0; top: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(231, 147, 46, .6); opacity: 0; pointer-events: none; }
.world { position: absolute; inset: 0; clip-path: circle(0 at 50% 50%); }
.world img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27, 31, 19, .85) 0%, rgba(27, 31, 19, .45) 40%, rgba(27, 31, 19, 0) 70%), linear-gradient(180deg, rgba(27, 31, 19, .35) 0%, rgba(27, 31, 19, 0) 22%); opacity: var(--shade, 0); }
.logo { --mw: clamp(160px, 20vw, 290px); position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: calc(var(--mw) * .16); pointer-events: none; }
.mark { position: relative; width: var(--mw); aspect-ratio: 890 / 596; }
.piece { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand { text-align: center; }
.brand__name { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 32px); color: var(--cream); }
.tagline { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; font-size: clamp(10px, .9vw, 12px); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(251, 236, 210, .62); white-space: nowrap; }
.tagline i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.tagline span { display: inline-block; }

.hero { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(32px, 7vh, 64px); color: #fff; pointer-events: none; }
.hero.is-on { pointer-events: auto; }
.hero .h1 { max-width: 14ch; }
@media (min-width: 1100px) { .hero .h1 { max-width: none; } }
.hero .h1 em { font-style: normal; color: var(--orange); }
.ln { display: block; overflow: hidden; padding: .04em 0 .14em; margin-bottom: -.18em; }
.hero.is-on .ln { overflow: visible; }
.ln > span { display: block; }
.js .ln > span { transform: translateY(110%); }
.hero__row { display: grid; gap: 24px; margin-top: clamp(20px, 3.5vh, 36px); }
@media (min-width: 900px) { .hero__row { grid-template-columns: 1fr auto; align-items: end; } }
.hero__lead { max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255, 255, 255, .88); }
.hero__caption { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.js .hero__row, .js .hero__caption { opacity: 0; }
/* the logo and its name start hidden; the intro brings them in piece by piece */
.js .stage .piece, .js .brand__name, .js .tagline > * { opacity: 0; }

/* ---------- Statement ---------- */
.statement { padding-bottom: clamp(48px, 6vw, 72px); }
.statement + .work { padding-top: 0; }
.statement__text { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4.2vw, 62px); line-height: 1.12; letter-spacing: -.015em; max-width: 22ch; }
.statement__text .w { opacity: .18; transition: opacity .3s; }
.statement__text .w.is-lit { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 56px); line-height: 1; color: var(--orange-ink); }
.facts span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Lens (signature) ---------- */
.lens-sec { background: var(--night); color: var(--cream); }
.lens-sec .h2 { color: var(--cream); }
.lens-sec .lead { color: rgba(251, 236, 210, .72); }
.lens { position: relative; overflow: hidden; border-radius: var(--r); background: #2d3120; aspect-ratio: 16 / 9; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lens[data-shape="tall"] { aspect-ratio: 16 / 9; }
@media (max-width: 699px) { .lens { aspect-ratio: 4 / 5; } }
.lens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.lens__b { position: absolute; inset: 0; clip-path: circle(var(--lr, 160px) at var(--lx, 50%) var(--ly, 50%)); }
.lens__ring { position: absolute; left: 0; top: 0; width: calc(var(--lr, 160px) * 2); height: calc(var(--lr, 160px) * 2); border-radius: 50%; box-shadow: 0 0 0 2px var(--orange), 0 20px 60px rgba(0, 0, 0, .35); transform: translate(calc(var(--lx, 50%) - var(--lr, 160px)), calc(var(--ly, 50%) - var(--lr, 160px))); pointer-events: none; }
.lens__key { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; pointer-events: none; }
.lens__key span { padding: 8px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.lens__key .lens__in { background: var(--orange); color: var(--ink); }
.lens__tag { position: relative; padding: 8px 14px; border-radius: 100px; background: rgba(35, 39, 26, .85); font-size: 13px; font-weight: 700; color: var(--cream); }
.lens { cursor: pointer; outline: none; }
.lens:focus-visible { box-shadow: 0 0 0 3px var(--orange); }
.lens.is-anim .lens__b { transition: clip-path .9s var(--ease); }
.lens.is-full .lens__b { clip-path: circle(150% at var(--lx, 50%) var(--ly, 50%)); }
.lens__ring { transition: opacity .4s; }
.lens.is-full .lens__ring { opacity: 0; }
.lens__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 10px 18px 10px 14px; border-radius: 100px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); pointer-events: none; }
.lens__hint::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--orange); flex: 0 0 auto; }
.lens.is-full .lens__hint::before { background: var(--orange); }
.lens__note { margin-top: 16px; font-size: 15px; color: rgba(251, 236, 210, .72); }
.lens__note a { color: var(--orange); font-weight: 700; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: calc(var(--r) - 6px); text-align: left; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(251, 236, 210, .2); transition: background .3s, box-shadow .3s, color .3s; }
.choice:hover { box-shadow: inset 0 0 0 1.5px rgba(251, 236, 210, .55); }
.choice.is-on { background: var(--orange); color: var(--ink); box-shadow: none; }
.choice__img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
.choice__img img { width: 100%; height: 100%; object-fit: cover; }
.choice__text { display: grid; gap: 2px; min-width: 0; }
.choice__text b { font-size: 16px; line-height: 1.25; }
.choice__text small { font-size: 13px; font-weight: 500; opacity: .8; }
@media (max-width: 699px) {
  .choice { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .choice__img { width: 48px; height: 48px; }
  .choice__text b { font-size: 15px; }
}

/* ---------- Project cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 36px 24px; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; gap: 48px 24px; } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; }
.card.is-hidden { display: none; }
.card__media { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--bg-2); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
/* second photo fades in on hover (opacity works smoothly in every browser, Safari included) */
.card__alt { opacity: 0; transition: opacity .6s ease, transform 1.2s var(--ease) !important; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__alt { opacity: 1; }
  .card:hover .card__media > img:first-child { transform: scale(1.03); }
}
.card__no { position: absolute; left: 16px; top: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 700; }
.card__body { display: grid; gap: 8px; padding: 18px 2px 0; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__name { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
.card__name i { font-style: normal; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--orange-ink); margin-left: 10px; }
.card__cat { font-size: 14px; font-weight: 700; color: var(--olive); white-space: nowrap; }
.card__loc { font-size: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-s { padding: 5px 12px; border-radius: 100px; background: var(--white); font-size: 13px; font-weight: 500; color: var(--olive); box-shadow: inset 0 0 0 1px var(--line); }
.work__more { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--white); }
.work__more p { font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 100px; font-size: 14px; font-weight: 700; color: var(--muted); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s; }
.filters button:hover { color: var(--ink); }
.filters button.is-active { background: var(--orange); color: var(--ink); box-shadow: none; }

/* ---------- Services ---------- */
.services { background: var(--sage); }
.svc { display: grid; gap: 20px; }
@media (min-width: 900px) { .svc { grid-template-columns: repeat(3, 1fr); } }
.svc__card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--white); }
.svc__img { aspect-ratio: 4 / 3; overflow: hidden; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc__card:hover .svc__img img { transform: scale(1.04); }
.svc__body { display: grid; gap: 12px; padding: 24px; }
.svc__no { font-size: 13px; font-weight: 700; color: var(--orange-ink); }
.svc__body ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc__body li { padding: 5px 12px; border-radius: 100px; background: var(--sage); font-size: 13px; font-weight: 500; color: var(--olive); }
.svc__quote { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 20px; padding: 24px; border-radius: var(--r); background: var(--olive); color: var(--cream); }
.svc__quote p { max-width: 48ch; }
.svc__quote b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin-bottom: 4px; }

/* ---------- Process ---------- */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.steps::after { background: var(--orange); transform: scaleY(var(--fill, 0)); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: start; }
.step b { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; transition: background .5s, box-shadow .5s, color .5s; }
.step.is-on b { background: var(--orange); box-shadow: none; }
.step h3 { margin-top: 6px; }
.step p { margin-top: 6px; color: var(--muted); max-width: 34ch; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps::before, .steps::after { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform: scaleX(var(--fill, 0)); transform-origin: left; }
  .step { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Step inside (video band) ---------- */
.film { display: block; position: relative; overflow: hidden; border-radius: var(--r); background: var(--olive); aspect-ratio: 16 / 9; color: #fff; }
@media (max-width: 699px) { .film { aspect-ratio: 4 / 5; } }
.film video, .film > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.13); }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27, 31, 19, .78) 0%, rgba(27, 31, 19, 0) 55%); }
.film__text { position: absolute; left: clamp(20px, 3vw, 44px); right: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 44px); z-index: 1; display: grid; gap: 18px; justify-items: start; }
.film__text .h2 { font-size: clamp(28px, 3.6vw, 56px); max-width: 20ch; }

/* ---------- Team ---------- */
.team { background: var(--sage); }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.person { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.person__photo { margin-left: 6px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 6px var(--sage-2); transition: box-shadow .6s var(--ease); }
.person:hover .person__photo { box-shadow: 0 0 0 6px var(--orange); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; }
.person__role { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--orange-ink); }
.person__details { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
@media (min-width: 700px) { .people { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }
@media (min-width: 1100px) {
  .people { grid-template-columns: repeat(4, 1fr); }
  .person { grid-template-columns: 1fr; align-items: start; }
  .person__photo { width: 78%; margin: 8px 0 8px 8px; box-shadow: 0 0 0 8px var(--sage-2); }
  .person:hover .person__photo { box-shadow: 0 0 0 8px var(--orange); }
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--olive); color: var(--cream); padding: clamp(96px, 14vw, 180px) 0 36px; }
.contact::before { content: ""; position: absolute; left: 50%; top: 4%; width: 80vmin; height: 80vmin; margin-left: -40vmin; border-radius: 50%; background: radial-gradient(circle, rgba(207, 224, 234, .18), rgba(207, 224, 234, 0) 65%); pointer-events: none; }
.contact__top { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; }
.contact__mark { position: relative; width: 112px; aspect-ratio: 890 / 596; margin-bottom: 16px; }
.contact__mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact__title { font-family: var(--display); font-weight: 500; font-size: clamp(42px, 7vw, 116px); line-height: 1; letter-spacing: -.03em; }
.contact__lead { max-width: 44ch; font-size: clamp(17px, 1.4vw, 20px); color: rgba(251, 236, 210, .85); }
.contact__top .btns { justify-content: center; margin-top: 12px; }
.contact__info { position: relative; display: grid; gap: 26px; margin-top: clamp(64px, 9vw, 120px); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: rgba(251, 236, 210, .92); }
@media (min-width: 700px) { .contact__info { grid-template-columns: 1fr 1fr; gap: 28px 32px; } }
@media (min-width: 1100px) { .contact__info { grid-template-columns: 1.4fr 1.1fr 1.2fr 1fr; } }
.contact__info p { padding-top: 16px; border-top: 1px solid rgba(251, 236, 210, .18); }
.contact__info p > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.contact__info a:hover { color: #fff; }
.contact__info a[data-email] { overflow-wrap: anywhere; }
.contact__foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(251, 236, 210, .12); font-size: 14px; color: rgba(251, 236, 210, .62); }
/* credit line: who made the website */
.credit { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; padding: 18px 0 92px; border-top: 1px solid rgba(251, 236, 210, .12); font-size: 14px; color: rgba(251, 236, 210, .7); }
.credit__by { display: inline-flex; align-items: center; gap: 12px; color: rgba(251, 236, 210, .85); transition: color .3s; }
.credit__by b { font-weight: 700; color: var(--cream); }
.credit__mark { width: 30px; height: 30px; flex: 0 0 auto; color: var(--cream); transition: transform .8s var(--ease); }
.credit__by:hover .credit__mark { transform: rotate(-30deg); }
.credit__links { display: inline-flex; gap: 10px; }
.credit__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(251, 236, 210, .3); transition: box-shadow .3s, transform .4s var(--ease); }
.credit__icon svg { width: 20px; height: 20px; }
.credit__icon:hover { box-shadow: inset 0 0 0 1.5px var(--cream); transform: translateY(-2px); }
@media (max-width: 699px) { .credit { flex-wrap: nowrap; } .credit__by { font-size: 13px; gap: 10px; } }

/* ---------- Work page + project page ---------- */
.page-top { padding: 128px 0 clamp(40px, 6vw, 72px); }
.crumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 14px; font-weight: 700; color: var(--muted); }
.crumb:hover { color: var(--ink); }
.p-title { font-family: var(--display); font-weight: 500; font-size: clamp(56px, 11vw, 168px); line-height: .92; letter-spacing: -.04em; }
.p-meaning { margin-top: 14px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--orange-ink); }
.p-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .p-facts { grid-template-columns: repeat(5, 1fr); } }
.p-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.p-facts dd { margin: 6px 0 0; font-size: 16px; font-weight: 500; }
.p-cover { overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 9; background: var(--bg-2); }
@media (max-width: 699px) { .p-cover { aspect-ratio: 4 / 3; } }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-story { display: grid; gap: 28px; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
@media (min-width: 900px) { .p-story { grid-template-columns: 1fr 1fr; gap: 64px; } }
.p-story p { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); }
.p-intent { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; color: var(--ink) !important; }
.p-intent::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 20px; border-radius: 3px; background: var(--orange); }
.p-group { padding-bottom: clamp(56px, 7vw, 96px); }
.p-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.p-group__head span { font-size: 14px; color: var(--muted); }
.gallery { columns: 1; column-gap: 16px; }
@media (min-width: 700px) { .gallery { columns: 2; } }
.gallery button { display: block; width: 100%; margin: 0 0 16px; overflow: hidden; border-radius: calc(var(--r) - 8px); background: var(--bg-2); break-inside: avoid; }
.gallery img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.gallery button:hover img { transform: scale(1.02); }
.gallery--drawing button { background: #fff; }
.next { display: block; padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.next small { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.next span { font-family: var(--display); font-weight: 500; font-size: clamp(48px, 9vw, 140px); line-height: 1; letter-spacing: -.03em; transition: color .4s; }
.next:hover span { color: var(--orange-ink); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; background: rgba(27, 31, 19, .96); color: var(--cream); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.lb__top, .lb__bot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px var(--g); font-size: 14px; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 var(--g); min-height: 0; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lb button { min-height: 44px; padding: 0 18px; border-radius: 100px; font-weight: 700; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(251, 236, 210, .3); }

/* ---------- Assistant ---------- */
.launcher { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; height: 58px; padding: 0 10px; border-radius: 100px; background: var(--olive); color: var(--cream); box-shadow: 0 16px 36px rgba(35, 39, 26, .28), 0 0 0 1px rgba(251, 236, 210, .22); opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease), gap .6s var(--ease), padding .6s var(--ease); }
.launcher.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.launcher__mark { position: relative; width: 38px; aspect-ratio: 890 / 596; flex: 0 0 auto; }
.launcher__mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.launcher__label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 700; transition: max-width .6s var(--ease); }
.launcher:hover, .launcher.is-peek { gap: 12px; padding-right: 20px; }
.launcher:hover .launcher__label, .launcher.is-peek .launcher__label { max-width: 160px; }
.chat-open .launcher, .menu-open .launcher { opacity: 0; pointer-events: none; }
/* the little message that pops up beside the round button */
.launcher__tip { position: absolute; right: 0; bottom: calc(100% + 14px); width: max-content; max-width: min(250px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.35; text-align: left; white-space: normal; box-shadow: 0 14px 34px rgba(20, 23, 14, .3); opacity: 0; transform: translateY(8px) scale(.94); transform-origin: 100% 100%; pointer-events: none; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.launcher.is-tip .launcher__tip { opacity: 1; transform: none; pointer-events: auto; }
body:has(.bye.is-open) .launcher__tip { opacity: 0; }
/* while the message shows, a soft orange ring breathes out of the button */
.launcher::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(231, 147, 46, .55); pointer-events: none; }
.launcher.is-tip::after { animation: launcherRing 1.8s ease-out 3; }
@keyframes launcherRing { to { box-shadow: 0 0 0 16px rgba(231, 147, 46, 0); } }
@media (prefers-reduced-motion: reduce) { .launcher.is-tip::after { animation: none; } }
@media (min-width: 1100px) { .launcher { right: 24px; bottom: 24px; height: 62px; } }
.chat { position: fixed; z-index: 70; right: 0; bottom: 0; width: 100vw; height: min(86svh, 680px); display: flex; flex-direction: column; overflow: hidden; border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 40px 90px rgba(35, 39, 26, .25), 0 0 0 1px var(--line); opacity: 0; transform: translateY(24px); visibility: hidden; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
@media (min-width: 700px) { .chat { right: 24px; bottom: 24px; width: 390px; height: min(640px, calc(100svh - 48px)); border-radius: 26px; } }
.chat-open .chat { opacity: 1; transform: none; visibility: visible; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.chat__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--bg-2); }
.chat__title { font-family: var(--display); font-weight: 500; font-size: 20px; }
.chat__sub { margin-top: 2px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live { width: 7px; height: 7px; border-radius: 50%; background: #5f9a5a; box-shadow: 0 0 0 3px rgba(95, 154, 90, .2); }
.chat__close { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .8); font-size: 14px; }
/* the direct line: WhatsApp or call a person, right at the top of the chat */
.chat__direct { display: flex; gap: 10px; padding: 14px 16px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.chat__wa { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 16px 8px 10px; border-radius: 16px; background: #25d366; color: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.chat__wa:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 211, 102, .3); }
.chat__wa .ico { width: 36px; height: 36px; flex: 0 0 auto; }
.chat__wa .ico circle { fill: #fff; }
.chat__wa .ico path { stroke: #25d366; }
.chat__wa .ico path:last-child { fill: #25d366; stroke: none; }
.chat__wa span { display: grid; flex: 1; line-height: 1.25; }
.chat__wa b { font-size: 15px; }
.chat__wa small { font-size: 12.5px; opacity: .9; }
.chat__wa i { font-style: normal; font-size: 18px; }
.chat__call { display: grid; place-items: center; width: 58px; flex: 0 0 58px; border-radius: 16px; background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.chat__call svg { width: 22px; height: 22px; }
.chat__call:hover { background: var(--sage); }
.chat__quote { display: block; padding: 11px 20px; background: rgba(231, 147, 46, .12); font-size: 13px; color: var(--muted); box-shadow: 0 1px 0 var(--line); }
.chat__quote b { color: var(--orange-ink); }
.chat__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: #f6f9fa; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.45; }
.msg--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 0 var(--line); }
.msg--me { align-self: flex-end; background: var(--olive); color: var(--cream); border-bottom-right-radius: 6px; }
.msg--summary dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.msg--summary dt { color: var(--muted); }
.msg--summary dd { margin: 0; font-weight: 500; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 15px 16px; border-radius: 20px; background: #fff; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__input { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px; background: #f6f9fa; }
.chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 100px; font-size: 14px; font-weight: 500; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s, box-shadow .3s; }
.chip:hover { background: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); }
.chip--primary { background: var(--orange); box-shadow: none; font-weight: 700; }
.chip--ghost { background: transparent; }
.field { display: flex; gap: 8px; width: 100%; }
.field input { flex: 1; min-width: 0; padding: 14px 18px; border: 0; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.field input:focus { box-shadow: inset 0 0 0 1.5px var(--orange); }
.field button { width: 50px; height: 50px; border-radius: 50%; background: var(--orange); font-size: 18px; flex: 0 0 auto; }
.field__err { width: 100%; padding-left: 18px; font-size: 13px; color: #b5472c; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.film--clean::after { display: none; }

/* Phone: Nilaya runs edge to edge from the top and fades into the sky; the logo sits centred in the space below it */
@media (max-width: 699px) {
  .stage { --dh: min(calc(100vw * 1227 / 900), 64svh); }
  .stage__sky { background: radial-gradient(90% 45% at 50% 34%, rgba(207, 224, 234, .12) 0%, rgba(207, 224, 234, 0) 70%), radial-gradient(150% 100% at 50% 40%, #4a5035 0%, var(--night) 72%, #2d3120 100%); }
  .stage__lines { left: 50%; top: 0; width: auto; height: var(--dh); aspect-ratio: 900 / 1227; max-width: none; transform: translateX(-50%); transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%); mask-image: linear-gradient(to bottom, transparent 0%, #000 16%); }
  .stage .stage__lines.is-warm { opacity: .9; }
  .logo { --mw: 124px; top: calc(var(--dh) + (100svh - var(--dh)) / 2); gap: 18px; }
  .brand__name { font-size: 21px; }
  .tagline { gap: 9px; margin-top: 10px; font-size: 10px; letter-spacing: .16em; }
  .tagline i { width: 4px; height: 4px; }
}


@media (max-width: 380px) { .tagline { gap: 7px; letter-spacing: .12em; } }

/* Instagram / WhatsApp with their own logos */
.ico { width: 26px; height: 26px; flex: 0 0 auto; }
.social { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.social + .social { margin-top: 4px; }
.social span { text-decoration: underline; text-decoration-color: rgba(251, 236, 210, .3); text-underline-offset: 4px; }
.social:hover span { text-decoration-color: currentColor; }
.icon-btn { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(251, 236, 210, .35); }
.icon-btn .ico { width: 28px; height: 28px; }
.chip--wa { gap: 8px; padding-left: 8px; }
.chip--wa .ico { width: 26px; height: 26px; }

/* Phone intro: warm pen lines, orange ground line and pen tip, soft glow behind the logo */
.mark::before { content: ""; position: absolute; left: 50%; top: 55%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(231, 147, 46, .26) 0%, rgba(231, 147, 46, .08) 38%, rgba(231, 147, 46, 0) 66%); opacity: var(--bloom, 0); pointer-events: none; }
.stage__lines.is-warm path { stroke: url(#nl); stroke-width: 1.1; }
.stage__lines.is-warm { opacity: .62; }
.stage__lines .ground { stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; }
.stage__lines .pen { fill: var(--orange); stroke: rgba(231, 147, 46, .35); stroke-width: 8; transition: opacity .3s; }
/* wide screens: the pen tip that glides into the logo */
.stage__dot { position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 40px rgba(231, 147, 46, .45); opacity: 0; pointer-events: none; will-change: transform; }
@media (min-width: 700px) {
  .stage .logo, .stage .hero { z-index: 2; }
  .stage__dot { z-index: 3; }
  .stage__lines svg { transform-origin: 50% 55%; will-change: transform; }
}

/* the opening photo is chosen per screen: Nakshe at dusk on wide screens, Nilaya on phones */
.world picture { display: block; width: 100%; height: 100%; }
.world img { object-position: 50% 45%; }
@media (max-width: 699px) { .only-wide { display: none; } .world img { object-position: 50% 40%; } }
@media (min-width: 700px) { .only-phone { display: none; } }

/* Phones: what a mouse hover does on desktop, scrolling does here */
@media (hover: none), (pointer: coarse) {
  .card .card__media { transition: transform .35s var(--ease); }
  .card:active .card__media { transform: scale(.98); }
  .card.is-focus .card__alt { opacity: 1; }
  .person.is-focus .person__photo { box-shadow: 0 0 0 6px var(--orange); }
  .svc__img img { transform: scale(1.1); transition: transform 1.6s var(--ease); }
  .svc__card.is-focus .svc__img img { transform: scale(1); }
}

/* ---------- Project wall ---------- */
.wall { position: relative; overflow: hidden; background: var(--night); color: var(--cream); padding: clamp(72px, 7vw, 104px) 0; }
.wall .head { margin-bottom: clamp(28px, 3vw, 40px); }
.wall .h2 { color: var(--cream); }
.wall__soft { color: rgba(251, 236, 210, .55); }
.wall__lead { color: rgba(251, 236, 210, .75); }
.wall__bg { position: absolute; inset: 0; }
.wall__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .7s ease, transform 1.6s var(--ease); }
.wall__bg img.is-on { opacity: 1; transform: scale(1); }
.wall__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 31, 19, .82) 0%, rgba(27, 31, 19, .55) 45%, rgba(27, 31, 19, .88) 100%); }
.wall__in { position: relative; z-index: 1; }
.wall__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.tile { display: grid; align-content: center; justify-items: center; gap: 14px; padding: clamp(20px, 2vw, 28px) 10px; border-radius: var(--r); text-align: center; background: rgba(27, 31, 19, .38); box-shadow: inset 0 0 0 1px rgba(251, 236, 210, .12); transition: background .4s, box-shadow .4s; }
.tile:hover, .tile.is-on { background: rgba(27, 31, 19, .55); box-shadow: inset 0 0 0 1.5px var(--orange); }
.tile__mark { width: clamp(54px, 4.6vw, 78px); aspect-ratio: 1; background-color: var(--cream); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; transition: background-color .4s, transform .9s var(--ease); }
.tile.is-on .tile__mark { background-color: var(--orange); transform: rotate(-10deg) scale(1.08); }
.tile__text { display: grid; gap: 2px; }
.tile__name { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.15; }
.tile__mean { font-size: 14px; color: rgba(251, 236, 210, .62); transition: color .4s; }
.tile.is-on .tile__mean { color: var(--orange); }
/* the last tile is an invitation: your project could be next */
.tile--invite { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(231, 147, 46, .55); color: var(--cream); }
.tile--invite:hover { background: rgba(231, 147, 46, .14); box-shadow: inset 0 0 0 1.5px var(--orange); }
.tile__plus { position: relative; width: clamp(54px, 4.6vw, 78px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); transition: transform .9s var(--ease); }
.tile__plus::before, .tile__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36%; height: 2.5px; margin: -1.25px 0 0 -18%; border-radius: 2px; background: var(--ink); }
.tile__plus::after { transform: rotate(90deg); }
.tile--invite:hover .tile__plus { transform: rotate(90deg); }
.tile--invite .tile__mean { color: var(--orange); }
.wall__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: clamp(24px, 2.4vw, 32px); }
.wall__now { font-size: 15px; color: rgba(251, 236, 210, .78); min-height: 1.6em; }
.wall__now b { font-weight: 700; color: var(--cream); }
.deck { display: none; }
/* tablets and small laptops: four across, and the invitation fills the rest of the last row */
@media (max-width: 1099px) and (min-width: 700px) {
  .wall__grid { grid-template-columns: repeat(4, 1fr); }
  .tile { padding-inline: 8px; }
  .tile--invite { grid-column: span 3; grid-template-columns: auto auto; justify-content: center; gap: 22px; text-align: left; }
}
/* Phones: a deck of cards. Swipe left for the next project, right to bring the last one back */
@media (max-width: 699px) {
  .wall__grid { display: none; }
  .wall__bg img { transition: opacity .7s ease; transform: none; }
  .wall__bg::after { background: linear-gradient(180deg, rgba(27, 31, 19, .9) 0%, rgba(27, 31, 19, .78) 50%, rgba(27, 31, 19, .92) 100%); }
  .deck { display: block; }
  .deck__stack { position: relative; aspect-ratio: 4 / 5; max-height: 62svh; margin: 0 auto 30px; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
  .dcard { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: var(--r); background: var(--olive); color: var(--cream); box-shadow: 0 24px 50px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(251, 236, 210, .14); transform-origin: 50% 100%; transition: transform .55s var(--ease), opacity .45s ease; will-change: transform; -webkit-tap-highlight-color: transparent; }
  .deck.is-dragging .dcard { transition: none; }
  .dcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
  .dcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 31, 19, 0) 35%, rgba(27, 31, 19, .55) 62%, rgba(27, 31, 19, .94) 100%); }
  .dcard__no { position: absolute; left: 16px; top: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 700; }
  .dcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; justify-items: start; gap: 2px; padding: 22px; }
  .dcard__mark { width: 46px; aspect-ratio: 1; margin-bottom: 10px; background-color: var(--orange); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
  .dcard__name { font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.05; }
  .dcard__mean { font-size: 15px; color: var(--orange); }
  .dcard__type { margin-top: 4px; font-size: 14px; color: rgba(251, 236, 210, .72); }
  .dcard__open { display: inline-flex; gap: 8px; margin-top: 14px; padding: 10px 18px; border-radius: 100px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 700; }
  /* the last card: the marks of the other projects, and the way to all of them */
  .dcard--all { width: 100%; padding: 0; font: inherit; text-align: left; cursor: pointer; background: var(--night); }
  .dcard--all::after { background: radial-gradient(90% 60% at 50% 45%, rgba(231, 147, 46, .22), transparent 70%); }
  .dcard__marks { position: absolute; left: 22px; right: 22px; top: 24px; z-index: 2; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; justify-items: center; opacity: .55; }
  .dcard__mini { width: 100%; max-width: 32px; aspect-ratio: 1; background-color: var(--cream); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
  /* the big plus: your project is the next one on the wall */
  .dcard__big { position: absolute; left: 50%; top: 44%; z-index: 2; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(231, 147, 46, .5); animation: bigRing 2.4s ease-out infinite; }
  .dcard__big::before, .dcard__big::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 4px; margin: -2px 0 0 -22px; border-radius: 2px; background: var(--ink); }
  .dcard__big::after { transform: rotate(90deg); }
  @keyframes bigRing { 70%, 100% { box-shadow: 0 0 0 26px rgba(231, 147, 46, 0); } }
  .dcard--all:active .dcard__big { transform: scale(.94); }
  @media (prefers-reduced-motion: reduce) { .dcard__big { animation: none; } }
  .dcard--all .dcard__body { justify-items: center; text-align: center; }
  .dcard--all .dcard__name { font-size: 44px; }
  .dcard--all .dcard__mean { font-size: 16px; color: var(--cream); opacity: .85; }
  /* one "See all projects" button under the deck; the section's own button is not needed on phones */
  .deck__all { display: flex; width: max-content; margin: 18px auto 0; }
  .deck.is-end .deck__hint { visibility: hidden; }
  .deck.is-end .deck__count { display: none; }
  .wall__foot { display: none; }
  /* the swipe hint: while the card leans, "Swipe left" lights up and its arrow nudges left */
  .deck__left i { display: inline-block; font-style: normal; transition: transform .5s var(--ease); }
  .deck__left { transition: color .4s; }
  .deck.is-hint .deck__left { color: var(--orange); }
  .deck.is-hint .deck__left i { transform: translateX(-5px); }
  .deck__bar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 12px; }
  .deck__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(251, 236, 210, .4); color: var(--cream); font-size: 18px; transition: opacity .3s, box-shadow .3s; }
  .deck__btn:active { box-shadow: inset 0 0 0 1.5px var(--orange); }
  .deck__btn:disabled { opacity: .3; cursor: default; }
  .deck__hint { text-align: center; font-size: 14px; line-height: 1.45; color: rgba(251, 236, 210, .72); }
  .deck__hint span { font-weight: 700; color: var(--cream); }
  .deck__count { margin-top: 14px; text-align: center; font-size: 13px; letter-spacing: .04em; color: rgba(251, 236, 210, .55); }
  .wall__foot { justify-content: center; margin-top: 22px; }
  .wall__now { display: none; }
}

/* ---------- The way back: a small pill on phones once the top link has scrolled away ---------- */
.backpill { display: none; }
@media (max-width: 699px) {
  .backpill { position: fixed; left: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 100px; background: var(--night); color: var(--cream); font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(35, 39, 26, .28), 0 0 0 1px rgba(251, 236, 210, .2); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s var(--ease), transform .5s var(--ease); }
  .backpill.is-visible { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Before you go ---------- */
.bye { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80; width: min(560px, calc(100vw - 32px)); transform: translate(-50%, 30px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.bye.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.bye__card { position: relative; padding: 28px 28px 26px; border-radius: var(--r); background: var(--night); color: var(--cream); box-shadow: 0 30px 70px rgba(20, 23, 14, .45), inset 0 0 0 1px rgba(251, 236, 210, .16); }
.bye .label { margin-bottom: 12px; }
.bye__x { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1; color: rgba(251, 236, 210, .7); }
.bye__x:hover { color: var(--cream); background: rgba(251, 236, 210, .08); }
.bye__t { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; padding-right: 36px; }
.bye__p { margin-top: 10px; font-size: 16px; color: rgba(251, 236, 210, .75); }
.bye__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.bye__btns .btn { min-height: 48px; padding: 0 20px; }
.bye__wa .ico { width: 22px; height: 22px; }
@media (max-width: 699px) {
  .bye { left: 0; bottom: 0; width: 100%; transform: translateY(40px); }
  .bye.is-open { transform: none; }
  .bye__card { padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: var(--r) var(--r) 0 0; }
  .bye__btns { display: grid; grid-template-columns: 1fr 1fr; }
  .bye__wa { grid-column: 1 / -1; }
}

/* ---------- Quote booklet, opened inside the website ---------- */
.qv { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: var(--night); opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.qv.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.qv__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 60px; padding: env(safe-area-inset-top) 16px 0; background: var(--night); color: var(--cream); box-shadow: 0 1px 0 rgba(251, 236, 210, .14); }
.qv__back { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px; border-radius: 100px; background: var(--orange); color: var(--ink); font-size: 14px; font-weight: 700; }
.qv__back b { transition: transform .4s var(--ease); }
.qv__back:hover b { transform: translateX(-3px); }
.qv__title { font-family: var(--display); font-weight: 500; font-size: 18px; }
.qv__out { justify-self: end; font-size: 13px; color: rgba(251, 236, 210, .75); text-decoration: underline; text-decoration-color: rgba(251, 236, 210, .3); text-underline-offset: 4px; }
.qv__out:hover { color: var(--cream); }
.qv__frame { flex: 1; width: 100%; border: 0; background: #fff; }
html:has(body.qv-open) { overflow: hidden; }
.qv-open .launcher { opacity: 0; pointer-events: none; }
@media (max-width: 699px) { .qv__title, .qv__out { display: none; } .qv__bar { grid-template-columns: 1fr; min-height: 58px; } }
