/* ==========================================================================
   Punya Jayarajan – portfolio
   Tokens → base → chrome → home sections → inner pages → motion → responsive
   ========================================================================== */

:root {
  --bg: #e9e8e4;
  --paper: #f4f3ef;
  --card: #fff;
  --ink: #0e0e0d;
  --mute: rgba(14, 14, 13, 0.6);
  --dim: rgba(14, 14, 13, 0.38);
  --line: rgba(14, 14, 13, 0.14);
  --dark: #131312;
  --accent: #4f3df5;
  --ok: #12b76a;
  --pad: clamp(20px, 8.33vw, 120px);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ring: 0 0 0 8px rgba(255, 255, 255, 0.38), 0 34px 50px -28px rgba(0, 0, 0, 0.32);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* soft diagonal light + film grain, fixed behind everything */
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
body::before {
  background:
    linear-gradient(118deg, transparent 8%, rgba(255, 255, 255, 0.5) 20%, transparent 34%),
    linear-gradient(118deg, transparent 52%, rgba(255, 255, 255, 0.34) 64%, transparent 78%),
    radial-gradient(120% 80% at 50% 0%, #f1f0ec 0%, var(--bg) 60%);
}
body::after {
  z-index: 100;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
ul, ol { padding: 0; }
h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ico { width: 24px; height: 24px; flex: none; }
.center { display: flex; justify-content: center; margin-top: 56px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; transition: top 0.3s; }
.skip:focus { top: 16px; }

/* ---------- type ---------- */
.h1 { font-size: clamp(40px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -0.06em; }
.h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.055em; }
.h1 em, .h2 em, .hero__title em, .foot__title em { font-style: normal; color: var(--dim); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--mute); max-width: 620px; margin: 24px auto 0; }
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 25px); font-weight: 300;
  letter-spacing: -0.02em; color: var(--mute); margin-bottom: 20px;
}
.eyebrow span { white-space: nowrap; }
.eyebrow::before, .eyebrow::after { content: ''; width: clamp(28px, 4.2vw, 60px); flex: none; height: 1px; background: currentColor; opacity: 0.45; transition: scale 1.1s var(--ease) 0.2s; }
.eyebrow::before { transform-origin: right; }
.eyebrow::after { transform-origin: left; }
html.js .eyebrow:not(.in)::before, html.js .eyebrow:not(.in)::after { scale: 0 1; }

.section { padding: clamp(72px, 9vw, 130px) var(--pad); position: relative; }
.section--tight { padding-top: 16px; }
.shead { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; padding: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 22px 28px -16px rgba(0, 0, 0, 0.4); transition: box-shadow 0.4s var(--ease); will-change: transform;
}
.btn__in {
  display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px; border-radius: 99px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 17px; white-space: nowrap; position: relative; overflow: hidden;
}
.btn__in::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  translate: -110% 0; transition: translate 0.9s var(--ease);
}
.btn:hover .btn__in::before { translate: 110% 0; }
.btn .ico { width: 20px; height: 20px; transition: translate 0.4s var(--ease); }
.btn:hover .ico { translate: 5px 0; }
.btn:hover { box-shadow: 0 28px 34px -16px rgba(0, 0, 0, 0.5); }
.btn--light { background: rgba(255, 255, 255, 0.4); box-shadow: 0 18px 26px -18px rgba(0, 0, 0, 0.3); }
.btn--light .btn__in { background: #fff; color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, 0.16); box-shadow: none; }
.btn--glass .btn__in { background: #000; height: 58px; padding: 0 30px; }

.status { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.72); padding: 9px 18px 9px 16px; border-radius: 99px; font-size: 16px; color: var(--mute); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.2s infinite; }
.status--plain { background: none; padding: 0; font-size: 14px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(18, 183, 106, 0); } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 18px; left: var(--pad); right: var(--pad); z-index: 60; display: flex; align-items: center; gap: 8px; transition: translate 0.6s var(--ease); }
.nav.is-hidden { translate: 0 -160%; }
.nav__logo, .nav__links, .nav__cta, .nav__toggle { height: 44px; border-radius: 99px; display: flex; align-items: center; }
.nav__logo { gap: 8px; padding: 0 20px 0 10px; background: #fff; font-weight: 600; font-size: 17px; box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.25); }
.nav__logo img { width: 26px; height: 26px; border-radius: 50%; transition: rotate 0.7s var(--ease); }
.nav__logo:hover img { rotate: -18deg; }
.nav__links { margin-left: auto; padding: 0 6px; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.2); }
.nav__links a { padding: 6px 14px; border-radius: 99px; font-size: 15px; color: var(--mute); transition: color 0.3s, background 0.3s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); background: rgba(14, 14, 13, 0.07); }
.nav__cta { gap: 8px; padding: 0 16px 0 20px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; }
.nav__cta .ico { width: 18px; height: 18px; transition: translate 0.4s var(--ease); }
.nav__cta:hover .ico { translate: 4px 0; }
.nav__toggle { display: none; width: 44px; justify-content: center; flex-direction: column; gap: 6px; background: #fff; margin-left: auto; box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.25); }
.nav__toggle span { width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.45s var(--ease); }
.nav__toggle[aria-expanded='true'] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--dark); color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--pad) 36px; clip-path: circle(0 at calc(100% - var(--pad) - 22px) 40px); visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - var(--pad) - 22px) 40px); visibility: visible; transition: clip-path 0.9s var(--ease); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { font-size: clamp(38px, 11vw, 64px); letter-spacing: -0.06em; line-height: 1.25; opacity: 0; translate: 0 24px; transition: opacity 0.5s, translate 0.7s var(--ease); }
.menu.is-open .menu__links a { opacity: 1; translate: 0 0; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.06s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.12s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.18s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.24s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: 0.3s; }
.menu__foot { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: rgba(255, 255, 255, 0.6); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px var(--pad) 48px; position: relative; }
.beams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.beams::before {
  content: ''; position: absolute; inset: -30% -10%;
  background: linear-gradient(118deg, transparent 30%, rgba(255, 255, 255, 0.55) 40%, transparent 50%, transparent 58%, rgba(255, 255, 255, 0.3) 64%, transparent 72%);
  animation: beam 14s ease-in-out infinite alternate;
}
@keyframes beam { from { transform: translateX(-9%); } to { transform: translateX(9%); } }
.hero__title { font-size: clamp(26px, 3.3vw, 48px); line-height: 1.14; letter-spacing: -0.06em; margin: 20px 0 18px; position: relative; }
.chip {
  display: inline-block; width: 1.3em; height: 0.86em; margin: 0 0.06em; vertical-align: -0.1em; border-radius: 0.22em; overflow: hidden;
  background: #111; border: 0.028em solid #111; box-shadow: 0.02em 0.1em 0.2em -0.04em rgba(0, 0, 0, 0.55); rotate: -6deg; transition: rotate 0.8s var(--ease), scale 0.8s var(--ease);
}
.chip img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.chip--b { rotate: 5deg; background: #1d1d1c; }
.chip--b img { object-fit: contain; padding: 0.1em; }
.chip:hover { rotate: 0deg; scale: 1.12; }
.hero__sub { max-width: 640px; color: var(--mute); font-size: clamp(16px, 1.4vw, 18px); position: relative; }
.hero__cta { display: flex; align-items: center; gap: 24px; margin-top: 26px; position: relative; flex-wrap: wrap; justify-content: center; }
.trust { text-align: left; font-size: 13px; color: var(--mute); }
.trust__logos { display: flex; list-style: none; margin-bottom: 4px; }
.trust__logos li { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: #fff; margin-right: -8px; transition: translate 0.4s var(--ease); }
.trust__logos li:hover { translate: 0 -4px; }
.trust__logos img { width: 100%; height: 100%; object-fit: cover; }
.trust__more { display: grid; place-items: center; background: var(--ink) !important; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0; }

/* ---------- showcase panel ---------- */
.show { padding: 0 var(--pad); }
.show__panel { position: relative; background: var(--dark); border-radius: clamp(24px, 3vw, 40px); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.4); padding: 0 clamp(14px, 4vw, 48px); overflow: clip; transform-origin: 50% 0; }
.show__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 4vw, 48px); margin: -40px 0; }
.show__col { display: grid; gap: clamp(14px, 4vw, 48px); align-content: start; will-change: transform; }
.show__col:last-child { margin-top: -110px; }
.show__col figure { border-radius: clamp(10px, 1.4vw, 16px); overflow: hidden; aspect-ratio: 4 / 3; background: #232322; }
.show__col img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.show__cta { position: sticky; top: calc(50svh - 64px); z-index: 2; height: 0; display: flex; flex-direction: column; align-items: center; }
.show__btn { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 30px 60px -10px rgba(0, 0, 0, 0.6); transition: scale 0.5s var(--ease); flex: none; }
.show__btn .ico { width: 30px; height: 30px; fill: var(--ink); }
.show__bubble { position: relative; background: #000; color: #fff; font-weight: 600; font-size: 18px; padding: 12px 24px; border-radius: 99px; rotate: 14deg; translate: 34px 14px; z-index: 1; white-space: nowrap; animation: bob 3.4s ease-in-out infinite; }
.show__bubble::after { content: ''; position: absolute; left: 32%; bottom: -6px; width: 16px; height: 16px; background: #000; rotate: 45deg; border-radius: 3px; }
.show__cta:hover .show__btn { scale: 1.08; }
@keyframes bob { 50% { translate: 34px 4px; } }

/* ---------- intro ---------- */
.intro { position: relative; padding: clamp(100px, 12vw, 170px) 0 clamp(70px, 8vw, 120px); text-align: left; overflow: hidden; }
.intro > .eyebrow { margin-left: var(--pad); justify-content: flex-start; }
.intro > .eyebrow::before { display: none; }
.intro__text { max-width: 880px; margin: 28px var(--pad) 0; font-size: clamp(30px, 4.4vw, 62px); line-height: 1.12; letter-spacing: -0.055em; font-weight: 400; }
.pills { margin-top: clamp(48px, 6vw, 90px); display: grid; gap: 18px; rotate: -2.2deg; scale: 1.06; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.prow { will-change: translate; }
.prow__track { list-style: none; display: flex; gap: 16px; width: max-content; padding: 14px 0; animation: pmarq 40s linear infinite; }
.prow--2 .prow__track { animation-direction: reverse; animation-duration: 52s; margin-left: -120px; }
.prow:hover .prow__track { animation-duration: 120s; }
.pillfloat { display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg, #fff, #f6f5f2); border-radius: 99px; padding: 9px 30px 9px 9px; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.035em; white-space: nowrap; box-shadow: var(--ring), 0 14px 26px -18px rgba(0, 0, 0, 0.35); transition: scale 0.45s var(--ease), translate 0.45s var(--ease), box-shadow 0.45s var(--ease); cursor: default; }
.pillfloat:hover { scale: 1.07; translate: 0 -6px; box-shadow: var(--ring), 0 26px 36px -18px rgba(0, 0, 0, 0.4); }
.pillfloat__ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.18), inset 0 4px 6px rgba(255, 255, 255, 0.35); transition: rotate 0.6s var(--ease), scale 0.6s var(--ease); }
.pillfloat:hover .pillfloat__ic { rotate: 360deg; scale: 1.1; }
.pillfloat__ic .ico { width: 22px; height: 22px; }
.intro__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); max-width: 1000px; margin: clamp(40px, 5vw, 70px) var(--pad) 0; }
.intro__cols p { border-top: 1px solid var(--line); padding-top: 20px; color: var(--mute); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.intro__cta { margin: 40px var(--pad) 0; text-align: center; }
.intro__text .w.on { color: var(--ink); }
@keyframes pmarq { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- stats + marquee ---------- */
.stats { padding: 20px var(--pad) clamp(60px, 8vw, 110px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat dt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stat__num { font-size: clamp(46px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.07em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat__title { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.12; letter-spacing: -0.045em; font-weight: 500; }
.stat__label { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--mute); }
.stat dd { color: var(--mute); font-size: 15px; margin-top: 14px; max-width: 30ch; }

.marquee { overflow: hidden; padding: 10px 0 30px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee span { font-size: clamp(22px, 2.8vw, 38px); letter-spacing: -0.055em; color: var(--dim); white-space: nowrap; display: flex; align-items: center; }
.marquee span::after { content: ''; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--accent); margin: 0 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- process ---------- */
.how { overflow: clip; }
.steps { list-style: none; display: flex; justify-content: center; gap: clamp(14px, 1.8vw, 28px); margin: clamp(90px, 9vw, 140px) 0 0; padding-bottom: clamp(60px, 6vw, 90px); }
.step {
  flex: 0 1 270px; min-width: 0; aspect-ratio: 3 / 4.1; margin: 0; padding: clamp(20px, 2vw, 30px); position: relative;
  display: flex; flex-direction: column; justify-content: space-between; background: #fff; border-radius: 28px; box-shadow: var(--ring);
  transition: rotate 0.7s var(--ease), translate 0.7s var(--ease), opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease);
}
.step--1 { rotate: -3deg; translate: 0 22px; }
.step--2 { rotate: 2deg; translate: 0 -18px; }
.step--3 { rotate: -1.5deg; translate: 0 24px; }
.step--4 { rotate: 3deg; translate: 0 -12px; }
.step--5 { rotate: -2deg; translate: 0 18px; }
.step:hover { rotate: 0deg; translate: 0 -12px; z-index: 3; }
.step__n { font-size: clamp(52px, 5vw, 72px); line-height: 1; letter-spacing: -0.05em; }
.step h3 { font-size: clamp(18px, 1.6vw, 23px); letter-spacing: -0.035em; margin-bottom: 8px; }
.step p { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.5; color: var(--mute); }
.step__sq { position: absolute; top: 22px; right: 20px; width: 74px; color: var(--accent); overflow: visible; }
.step__sq path { stroke-dasharray: 200; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) 0.5s; }
html.js .step:not(.in) .step__sq path { stroke-dashoffset: 200; }

/* ---------- philosophy ---------- */
.voices { display: grid; grid-template-columns: 1fr 1fr; padding: clamp(80px, 10vw, 150px) var(--pad) clamp(90px, 10vw, 150px); position: relative; }
.voices::before { content: ''; position: absolute; left: 50%; top: clamp(80px, 10vw, 150px); bottom: clamp(90px, 10vw, 150px); width: 1px; background: var(--line); }
.voice { max-width: 540px; padding-right: clamp(40px, 5vw, 80px); }
.voice--b { padding: 150px 0 0 0; margin-left: clamp(60px, 7vw, 110px); }
.voice blockquote { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.55; letter-spacing: -0.035em; }
.voice figcaption { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.voice figcaption img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #111; }
.voice figcaption b { display: block; font-weight: 500; font-size: 16px; }
.voice figcaption i { font-style: normal; color: var(--mute); font-size: 16px; }

/* ---------- work ---------- */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px) clamp(24px, 4.2vw, 60px); margin-top: 68px; }
.work__link { display: block; }
.work__media { aspect-ratio: 4 / 3; border-radius: clamp(20px, 2.4vw, 32px); background: var(--tint, #ddd); overflow: hidden; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.work__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 1.1s var(--ease); }
.work__link:hover .work__media img { scale: 1.05; }
.work__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.work__name { font-size: clamp(19px, 1.7vw, 23px); font-weight: 400; letter-spacing: -0.035em; color: var(--mute); transition: color 0.3s; white-space: nowrap; flex: none; }
.work__link:hover .work__name { color: var(--ink); }
.tags { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tags li { background: rgba(255, 255, 255, 0.62); padding: 4px 12px; border-radius: 99px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.work__sum { font-size: 15px; color: var(--mute); margin-top: 8px; max-width: 52ch; }
.work.is-out { display: none; }

.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.filters button { padding: 9px 20px; border-radius: 99px; background: rgba(255, 255, 255, 0.62); font-size: 15px; color: var(--mute); transition: background 0.3s, color 0.3s; }
.filters button[aria-pressed='true'] { background: var(--ink); color: #fff; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4.2vw, 60px); margin-top: 68px; align-items: start; }
.tiltcard { rotate: -2deg; border-radius: clamp(24px, 2.6vw, 36px); overflow: hidden; box-shadow: var(--ring); aspect-ratio: 5 / 4.4; background: #1a1a1a; transition: rotate 0.9s var(--ease); }
.tiltcard:hover { rotate: 0deg; }
.tiltcard img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.about__id { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 30px; }
.about__id p { text-align: right; }
.about__id b { display: block; font-weight: 500; font-size: 17px; }
.about__id p span { font-size: 13px; color: var(--mute); }
.about__social { list-style: none; display: flex; gap: 10px; color: var(--mute); }
.about__social a { transition: color 0.3s; display: block; }
.about__social a:hover { color: var(--accent); }
.about__more { margin-top: 18px; color: var(--mute); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; }
.svc__panelcta { margin-top: 26px; }
.foot__small { font-size: 14px; opacity: 0.7; margin-top: 18px; }
.stats .shead { margin-bottom: clamp(36px, 4vw, 60px); }
.about__bio { font-size: clamp(18px, 1.65vw, 22px); line-height: 1.5; letter-spacing: -0.03em; }
.xp { list-style: none; margin: 52px 0 44px; padding-left: clamp(0px, 4.2vw, 60px); border-left: 1px solid var(--line); }
.xp li { display: grid; grid-template-columns: 1.15fr 1.3fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.xp__co { color: var(--mute); }
.xp__yr { white-space: nowrap; font-variant-numeric: tabular-nums; }
.xp__yr i, .timeline__yr i { font-style: normal; color: var(--accent); }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 68px; padding: clamp(24px, 4.2vw, 60px); background: linear-gradient(150deg, #f8f7f4, #efeeea); border-radius: clamp(24px, 3vw, 40px); box-shadow: var(--ring); }
.svc__left { display: flex; flex-direction: column; align-items: flex-start; }
.seg { display: inline-flex; position: relative; background: rgba(14, 14, 13, 0.07); border-radius: 99px; padding: 4px; }
.seg button { position: relative; z-index: 1; padding: 9px 18px; border-radius: 99px; font-size: 16px; color: var(--mute); transition: color 0.35s; }
.seg button[aria-selected='true'] { color: #fff; }
.seg__thumb { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: var(--w, 0); transform: translateX(var(--x, 4px)); background: var(--accent); border-radius: 99px; transition: transform 0.55s var(--ease), width 0.55s var(--ease); box-shadow: 0 8px 16px -6px rgba(79, 61, 245, 0.6); }
.svc__panel { margin-top: 34px; }
html.js .svc__panel:not(.is-active), html.js .incl:not(.is-active) { display: none; }
html.js .svc__panel.is-active, html.js .incl.is-active { animation: panel 0.7s var(--ease) both; }
@keyframes panel { from { opacity: 0; filter: blur(8px); transform: translateY(14px); } }
.svc__name { font-size: clamp(34px, 4.7vw, 66px); line-height: 1; letter-spacing: -0.065em; margin-bottom: 22px; }
.svc__text { color: var(--mute); max-width: 44ch; margin-bottom: 20px; }
.svc__meta { font-size: 14px; color: var(--mute); max-width: 46ch; margin-top: 8px; }
.svc__meta b { font-weight: 500; color: var(--ink); margin-right: 6px; }
.svc__cta { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.svc__card { background: #fff; border-radius: 18px; padding: clamp(24px, 4vw, 56px); rotate: 1.5deg; box-shadow: 0 40px 60px -40px rgba(0, 0, 0, 0.3); transition: rotate 0.9s var(--ease); }
.svc__card:hover { rotate: 0deg; }
.svc__card-title { font-size: 24px; letter-spacing: -0.04em; font-weight: 500; margin-bottom: 26px; }
.incl { list-style: none; }
.incl li, .svcrow li { display: flex; align-items: center; gap: 16px; padding: 9px 0; color: var(--mute); font-size: 16px; }
.incl .ico, .svcrow .ico { color: var(--ink); }
.svc__note { margin-top: 36px; font-size: 16px; line-height: 1.55; letter-spacing: -0.02em; }
.quals { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px; margin-top: 60px; }
.quals li { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 16px; white-space: nowrap; }
.quals li i { flex: 1; height: 1px; background: var(--line); }

/* ---------- faq ---------- */
.faqwrap { display: grid; grid-template-columns: 5fr 6.3fr; gap: clamp(32px, 5.5vw, 76px); margin-top: 68px; align-items: start; }
.faqwrap--solo { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
.askcard { background: linear-gradient(150deg, #f8f7f4, #efeeea); border-radius: 28px; box-shadow: var(--ring); padding: clamp(24px, 3vw, 40px); rotate: -2deg; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 30px; transition: rotate 0.9s var(--ease); }
.askcard:hover { rotate: 0deg; }
.askcard__top { display: flex; align-items: center; gap: 22px; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.035em; line-height: 1.5; }
.askcard__top img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7), 0 14px 20px -8px rgba(0, 0, 0, 0.3); flex: none; background: #111; }
.askcard .btn { align-self: stretch; }
.askcard .btn__in { flex: 1; justify-content: center; }
.askcard__mail { text-align: center; font-size: 15px; color: var(--mute); }
.askcard__mail a { color: var(--accent); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q button { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; text-align: left; padding: clamp(22px, 2.6vw, 36px) 0; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.035em; line-height: 1.4; }
.faq__q .ico { color: var(--accent); margin-top: 4px; transition: rotate 0.5s var(--ease); }
.faq__q button[aria-expanded='true'] .ico { rotate: 135deg; }
html.js .faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
html.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 48px clamp(22px, 2.6vw, 36px) 0; color: var(--mute); max-width: 62ch; }

/* ---------- posts ---------- */
.posts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 68px; }
.posts a { display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 28px; border-radius: 26px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); transition: background 0.4s, translate 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.posts a:hover { background: #fff; translate: 0 -6px; box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.3); }
.posts h2, .posts h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; letter-spacing: -0.04em; font-weight: 500; }
.posts p { font-size: 16px; color: var(--mute); }
.posts__tag { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; }
.posts__meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--mute); }
.posts__meta .ico { width: 20px; height: 20px; transition: translate 0.4s var(--ease); }
.posts a:hover .posts__meta .ico { translate: 3px -3px; color: var(--accent); }
.posts:has(li:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
.posts--full { grid-template-columns: 1fr; max-width: 860px; margin-inline: auto; margin-top: 40px; }

/* ---------- footer ---------- */
.foot { padding: 8px; margin-top: clamp(40px, 6vw, 80px); }
.foot__panel { position: relative; overflow: hidden; min-height: calc(100svh - 16px); display: flex; flex-direction: column; background: #0a0a09; color: #fff; border-radius: clamp(20px, 2.4vw, 28px); }
.foot__beam { position: absolute; inset: -30% -20%; background: linear-gradient(122deg, transparent 22%, rgba(255, 255, 255, 0.13) 36%, transparent 50%, transparent 62%, rgba(255, 255, 255, 0.05) 70%, transparent 80%); animation: beam 12s ease-in-out infinite alternate; }
.foot__main { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 150px var(--pad) 60px; }
.foot .eyebrow { color: rgba(255, 255, 255, 0.6); }
.foot__title { font-size: clamp(32px, 5vw, 72px); line-height: 1.08; letter-spacing: -0.065em; }
.foot__title em { color: rgba(255, 255, 255, 0.5); }
.foot__text { max-width: 760px; margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.86); }
.foot__cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 38px; }
.foot__mail { font-size: 15px; color: rgba(255, 255, 255, 0.6); border-bottom: 1px solid rgba(255, 255, 255, 0.25); transition: color 0.3s, border-color 0.3s; }
.foot__mail:hover { color: #fff; border-color: #fff; }
.foot__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 28px calc(var(--pad) - 8px) 44px; }
.foot__copy { font-size: 15px; padding: 10px 16px; border-block: 1px solid rgba(255, 255, 255, 0.5); }
.foot__nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 15px; color: rgba(255, 255, 255, 0.6); }
.foot__nav a { transition: color 0.3s; }
.foot__nav a:hover { color: #fff; }
.foot__social { list-style: none; display: flex; gap: 14px; }
.foot__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); display: grid; place-items: center; transition: background 0.35s, color 0.35s, translate 0.5s var(--ease); }
.foot__social a:hover { background: #fff; color: #000; translate: 0 -4px; }
.foot__social .ico { width: 20px; height: 20px; }

/* ---------- cursor label ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform; }
.cursor span { display: block; translate: -50% -50%; scale: 0; background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 99px; white-space: nowrap; transition: scale 0.45s var(--ease); box-shadow: 0 14px 24px -10px rgba(79, 61, 245, 0.7); }
.cursor.is-on span { scale: 1; }

/* ---------- inner pages ---------- */
.phero { padding: clamp(110px, 11vw, 140px) var(--pad) clamp(32px, 4vw, 56px); text-align: center; }
.phero .h1 { font-size: clamp(32px, 5.2vw, 76px); line-height: 1.12; letter-spacing: -0.06em; max-width: 18ch; margin-inline: auto; overflow-wrap: break-word; }
.phero .lead { max-width: 640px; margin-top: 18px; }
.phero:has(+ .article) .h1 { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.06; max-width: 20ch; }
.crumbs { margin-bottom: 20px; font-size: 13px; color: var(--mute); }
.crumbs ol { list-style: none; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: rgba(255, 255, 255, 0.6); padding: 6px 16px; border-radius: 99px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

.prose p + p { margin-top: 20px; }
.prose { color: var(--mute); }
.prose .about__bio { color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; margin-top: 60px; }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 16px; }
.facts dt { font-family: var(--serif); font-style: italic; color: var(--mute); font-size: 18px; }
.facts a { border-bottom: 1px solid var(--line); }
.facts a:hover { color: var(--accent); }
.timeline { list-style: none; margin-top: 60px; }
.timeline li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__yr { font-size: 15px; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -0.04em; margin-bottom: 12px; }
.timeline h3 span { color: var(--dim); }
.timeline p + p { margin-top: 10px; }
.timeline div p { color: var(--mute); max-width: 70ch; font-size: 16px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 50px auto 0; max-width: 860px; }
.chips li { background: #fff; border-radius: 99px; padding: 10px 20px; font-size: 16px; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.35); transition: translate 0.4s var(--ease), background 0.3s, color 0.3s; }
.chips li:hover { translate: 0 -4px; background: var(--ink); color: #fff; }

.svclist { margin-top: 60px; }
.svcrow { display: grid; grid-template-columns: 90px 1.25fr 1fr; gap: 32px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.svcrow:last-child { border-bottom: 1px solid var(--line); }
.svcrow__n { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--accent); }
.svcrow h3 { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.055em; line-height: 1.1; margin-bottom: 16px; }
.svcrow p { color: var(--mute); max-width: 50ch; }
.svcrow__meta { font-size: 15px; margin-top: 12px; }
.svcrow__meta b { color: var(--ink); font-weight: 500; }
.svcrow ul { list-style: none; }
.plain-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 60px; }
.plain-steps li { background: rgba(255, 255, 255, 0.6); border-radius: 22px; padding: 22px; }
.plain-steps span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; margin-bottom: 40px; }
.plain-steps--3 { grid-template-columns: repeat(3, 1fr); }
.about__more-wrap { max-width: 760px; margin: 48px auto 0; text-align: center; }
.about__more-wrap .btn { margin-top: 8px; }
.plain-steps h3 { font-size: 19px; letter-spacing: -0.035em; margin-bottom: 8px; }
.plain-steps p { font-size: 14px; color: var(--mute); line-height: 1.5; }

/* case studies */
.cmeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.cmeta > div { border-top: 1px solid var(--line); padding-top: 14px; }
.cmeta dt { font-family: var(--serif); font-style: italic; color: var(--mute); font-size: 17px; }
.cmeta dd { font-size: 16px; }
.cvisit { margin: 0 0 14px; display: flex; justify-content: flex-end; }
.cvisit .btn { padding: 6px; }
.cvisit .btn__in { height: 46px; padding: 0 22px; font-size: 15px; gap: 10px; }
.cvisit .btn .ico { width: 18px; height: 18px; }
.chero { position: relative; }
@media (min-width: 1300px) { .chero .cvisit { position: absolute; top: 8px; right: 22px; margin: 0; z-index: 2; } }
.phero + .section--tight { padding-top: clamp(4px, 1vw, 16px); }
.chero { margin-top: clamp(40px, 4vw, 64px); border-radius: clamp(20px, 3vw, 40px); background: var(--tint, #ddd); padding: clamp(14px, 5vw, 72px); box-shadow: var(--ring); overflow: hidden; }
.chero img { width: 100%; border-radius: clamp(8px, 1.2vw, 16px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.45); }
.csplit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.csplit .shead { text-align: left; }
.csplit .eyebrow { justify-content: flex-start; }
.csplit .eyebrow::before { display: none; }
.csplit .prose { font-size: clamp(18px, 1.5vw, 21px); padding-top: 6px; }
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.ccard { background: rgba(255, 255, 255, 0.62); border-radius: 26px; padding: 14px 14px 28px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.ccard__media { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: #fff; margin-bottom: 22px; }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 1s var(--ease); }
.ccard:hover .ccard__media img { scale: 1.05; }
.ccard__k { font-family: var(--serif); font-style: italic; color: var(--accent); padding: 14px 14px 0; }
.ccard h3 { font-size: 23px; letter-spacing: -0.04em; padding: 0 14px; margin-bottom: 8px; }
.ccard > p:last-child { color: var(--mute); font-size: 16px; padding: 0 14px; }
.cnums { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 60px; }
.cnums > div { border-top: 1px solid var(--line); padding-top: 20px; }
.cnums dt { font-size: clamp(46px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.07em; font-weight: 500; }
.cnums b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 21px; color: var(--mute); margin-top: 6px; }
.cnums span { display: block; font-size: 15px; color: var(--mute); margin-top: 10px; max-width: 34ch; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cgrid--one { grid-template-columns: 1fr; }
.cfig { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35); }
.cfig img { width: 100%; }
.cfig figcaption { padding: 16px 22px 18px; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.4; letter-spacing: -0.02em; color: var(--mute); text-align: center; }

/* articles */
.article { padding: 0 var(--pad); max-width: calc(760px + var(--pad) * 2); margin-inline: auto; }
.article__meta { text-align: center; font-size: 15px; color: var(--mute); margin-bottom: 40px; }
.article__meta a { color: var(--ink); border-bottom: 1px solid var(--line); }
.answer { background: #fff; border-radius: 24px; padding: 28px 32px; box-shadow: var(--ring); margin-bottom: 52px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; letter-spacing: -0.03em; }
.answer__k { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; margin-bottom: 8px; }
.prose--article { color: rgba(14, 14, 13, 0.78); }
.prose--article h2 { color: var(--ink); font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.05em; line-height: 1.15; margin: 48px 0 16px; }
.prose--article ul, .prose--article ol { padding-left: 22px; margin: 16px 0; display: grid; gap: 10px; }
.prose--article strong { color: var(--ink); font-weight: 500; }
.prose--article a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose--article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
.prose--article th, .prose--article td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose--article th { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--mute); }
.prose--article td:first-child { color: var(--ink); }
.author { display: flex; gap: 24px; align-items: center; margin-top: 64px; padding: 28px; border-radius: 26px; background: rgba(255, 255, 255, 0.6); }
.author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; flex: none; background: #111; }
.author p { font-size: 16px; color: var(--mute); margin-bottom: 16px; }
.author b { color: var(--ink); font-weight: 500; }

/* contact */
.contact { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__info dl { display: grid; margin-bottom: 28px; }
.contact__info dl > div { padding: 18px 0; border-top: 1px solid var(--line); }
.contact__info dt { font-family: var(--serif); font-style: italic; color: var(--mute); }
.contact__info dd a { border-bottom: 1px solid var(--line); transition: color 0.3s; }
.contact__info dd a:hover { color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(22px, 4vw, 48px); background: linear-gradient(150deg, #f8f7f4, #efeeea); border-radius: clamp(22px, 3vw, 36px); box-shadow: var(--ring); }
.field { display: grid; gap: 8px; }
.field--full, .form__note, .form .btn { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--mute); }
.field label span { opacity: 0.7; }
.field input, .field select, .field textarea { font: inherit; letter-spacing: inherit; color: var(--ink); background: #fff; border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; width: 100%; transition: border-color 0.3s, box-shadow 0.3s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79, 61, 245, 0.14); }
.field .is-bad { border-color: #d92d20; }
.form .btn { justify-self: start; }
.form__note { font-size: 15px; color: var(--mute); min-height: 1.5em; }

.e404 { min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 160px var(--pad) 60px; gap: 8px; }
.e404 .h1 { font-size: clamp(90px, 20vw, 240px); }

/* ---------- case study: story rows, design system ---------- */
.cs-rows { padding: 0 var(--pad); }
.cs-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 84px); align-items: center; padding: clamp(40px, 6vw, 96px) 0; border-top: 1px solid var(--line); }
.cs-row--rev { grid-template-columns: 7fr 5fr; }
.cs-row--rev .cs-row__text { order: 2; }
.cs-row--tall { grid-template-columns: 1fr 1fr; }
.cs-row--tall .cs-frame img { max-width: 440px; margin-inline: auto; }
.cs-k { font-family: var(--serif); font-style: italic; color: var(--mute); font-size: 20px; margin-bottom: 14px; }
.cs-row h3 { font-size: clamp(26px, 3vw, 42px); line-height: 1.08; letter-spacing: -0.05em; font-weight: 400; margin-bottom: 18px; }
.cs-row__text > p:not(.cs-k) { color: var(--mute); max-width: 46ch; }
.cs-list { list-style: none; display: grid; gap: 11px; margin-top: 24px; }
.cs-list li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.45; }
.cs-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.cs-frame { background: var(--tint, #efeee9); border-radius: clamp(20px, 2.4vw, 32px); padding: clamp(14px, 2.6vw, 38px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); display: grid; gap: 16px; align-content: center; }
.cs-frame img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.4); }
.cs-h { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.045em; font-weight: 400; margin: clamp(48px, 6vw, 80px) 0 24px; }
.cs-sw { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 190px)); justify-content: center; gap: 12px; }
.shead + .cs-sw { margin-top: clamp(32px, 4vw, 52px); }
.cs-sw__item { display: grid; gap: 3px; padding: 10px 10px 14px; background: #fff; border-radius: 16px; box-shadow: var(--ring); align-content: start; }
.cs-sw__item i { display: block; height: 52px; border-radius: 10px; background: var(--c); margin-bottom: 8px; }
.cs-sw__item b { font-weight: 500; letter-spacing: -0.02em; font-size: 15px; }
.cs-sw__item code { font-size: 13px; color: var(--mute); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cs-sw__item span { font-size: 13px; color: var(--mute); line-height: 1.4; }
.cs-pats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.cs-pats li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; }
.cs-pats b { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--mute); font-size: 18px; }
.cs-comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.cs-comp { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--ring); display: grid; grid-template-rows: 1fr auto; }
.cs-comp__img { background: #f1f0ec; padding: 20px; display: grid; place-items: center; min-height: 180px; }
.cs-comps { grid-auto-flow: dense; }
.cs-comp--wide .cs-comp__img img, .cs-comp--full .cs-comp__img img { max-height: 340px; }
.cs-comp__img img { max-width: 100%; max-height: 260px; width: auto; height: auto; border-radius: 10px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35); }
.cs-comp figcaption { padding: 16px 20px 20px; display: grid; gap: 4px; }
.cs-comp figcaption b { font-weight: 500; letter-spacing: -0.02em; }
.cs-comp figcaption span { font-size: 14px; color: var(--mute); line-height: 1.4; }
.cs-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.cs-thumb { display: block; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--ring); transition: translate 0.5s var(--ease); }
.cs-thumb:hover { translate: 0 -6px; }
.cs-thumb__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f0ec; }
.cs-thumb__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 0.9s var(--ease); }
.cs-thumb:hover .cs-thumb__img img { scale: 1.04; }
.cs-thumb__cap { display: block; padding: 14px 18px 16px; font-size: 15px; letter-spacing: -0.02em; color: var(--mute); }
@media (min-width: 901px) {
  .cs-comp--wide { grid-column: span 2; }
  .cs-comp--full { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .cs-row, .cs-row--rev, .cs-row--tall { grid-template-columns: 1fr; }
  .cs-row--rev .cs-row__text { order: 0; }
  .cs-pats { grid-template-columns: 1fr; }
  .cs-thumbs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cs-thumbs, .cs-comps { grid-template-columns: 1fr; }
  .cs-pats li { grid-template-columns: 96px 1fr; }
}

/* ---------- case study: boards, scroll previews, parts ---------- */
.cs-part { padding-top: clamp(40px, 6vw, 90px); }
.cs-part .cmeta { margin-top: clamp(32px, 4vw, 56px); }
.cs-credit { margin: 20px auto 36px; max-width: 760px; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.5vw, 19px); color: var(--mute); }
.cs-boards { display: grid; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(28px, 4vw, 56px); }
.cs-boards--2 { grid-template-columns: 1fr 1fr; }
.cs-board { background: var(--tint, #efeee9); border-radius: clamp(18px, 2.2vw, 30px); padding: clamp(10px, 2vw, 28px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); margin-top: clamp(20px, 3vw, 40px); }
.cs-boards .cs-board { margin-top: 0; }
.cs-board img { width: 100%; height: auto; border-radius: 12px; display: block; }
.cs-board figcaption { padding: 14px 8px 4px; text-align: center; font-size: clamp(14px, 1.2vw, 16px); color: var(--mute); letter-spacing: -0.02em; }
.cs-longs { display: grid; gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 56px); }
.cs-long { background: #fff; border-radius: clamp(16px, 2vw, 26px); overflow: hidden; box-shadow: var(--ring), 0 40px 70px -40px rgba(0, 0, 0, 0.35); }
.cs-long__bar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: #f1f0ec; border-bottom: 1px solid var(--line); font-size: 14px; }
.cs-long__dots { display: flex; gap: 6px; }
.cs-long__dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfcdc6; }
.cs-long__bar b { font-weight: 400; color: var(--mute); flex: 1; letter-spacing: -0.02em; }
.cs-long__bar a { color: var(--ink); border-bottom: 1px solid var(--line); }
.cs-long__bar a:hover { color: var(--accent); }
.cs-long__scroll { max-height: min(78vh, 760px); overflow-y: auto; overscroll-behavior: contain; }
.cs-long__scroll img { width: 100%; height: auto; display: block; }
.cs-long__scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 900px) { .cs-boards--2 { grid-template-columns: 1fr; } }

/* ---------- motion (only when JS is running) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
html.js [data-split]:not(.is-split) { opacity: 0; }
.w { display: inline-block; }
html.js [data-split] .w { opacity: 0; transform: translateY(0.28em); filter: blur(12px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), filter 0.8s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0ms)); }
html.js [data-split].in .w { opacity: 1; transform: none; filter: none; }
html.js [data-split='hero'] .w { transition-duration: 1s, 1.1s, 1s; transition-delay: calc(var(--i) * 90ms + 150ms); }
/* elements that also animate rotate/translate keep those transitions alongside the reveal */
html.js .step[data-reveal], html.js .askcard[data-reveal] {
  transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), filter 0.9s var(--ease) var(--d, 0ms), rotate 0.7s var(--ease), translate 0.7s var(--ease);
}
html.js [data-split] .chip.w {
  transition: opacity 1s var(--ease) calc(var(--i) * 90ms + 150ms), transform 1.1s var(--ease) calc(var(--i) * 90ms + 150ms), filter 1s var(--ease) calc(var(--i) * 90ms + 150ms), rotate 0.8s var(--ease), scale 0.8s var(--ease);
}
html.js [data-fill] .w { opacity: 0.2; transition: opacity 0.35s linear; }
html.js [data-fill] .w.on { opacity: 1; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.5s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .plain-steps { grid-template-columns: repeat(3, 1fr); }
  .quals { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .intro__cols { grid-template-columns: 1fr; gap: 24px; }
  body { font-size: 17px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .steps { justify-content: flex-start; overflow-x: auto; margin: 44px calc(var(--pad) * -1) 0; padding: 30px var(--pad) 50px; gap: 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 240px; margin: 0 -6px; scroll-snap-align: center; }
  .voices { grid-template-columns: 1fr; gap: 56px; }
  .voices::before { display: none; }
  .voice { padding: 0; max-width: none; }
  .voice--b { padding: 56px 0 0; margin: 0; border-top: 1px solid var(--line); }
  .works, .about__grid, .svc, .faqwrap, .csplit, .contact, .cgrid, .facts { grid-template-columns: 1fr; }
  .askcard { position: static; }
  .posts, .ccards { grid-template-columns: 1fr; }
  .xp { padding-left: 0; border-left: 0; }
  .svcrow { grid-template-columns: 1fr; gap: 16px; }
  .cmeta { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .plain-steps { grid-template-columns: 1fr 1fr; }
  .foot__bar { justify-content: center; text-align: center; }
  .foot__nav { justify-content: center; }
  .show__btn { width: 88px; height: 88px; }
  .show__bubble { font-size: 15px; padding: 9px 18px; }
  .show__cta { top: calc(50svh - 48px); }
  .show__col:last-child { margin-top: -50px; }
}
@media (max-width: 560px) {
  .hero__title { line-height: 1.15; }
  .xp li { grid-template-columns: 1fr auto; }
  .xp__co { grid-column: 1 / -1; grid-row: 2; }
  .quals, .plain-steps, .form { grid-template-columns: 1fr; }
  .quals li { white-space: normal; }
  .facts > div { grid-template-columns: 96px 1fr; }
  .faq__a p { padding-right: 0; }
  .author { flex-direction: column; align-items: flex-start; }
  .work__meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .work__name { white-space: normal; }
  .tags { justify-content: flex-start; }
  .seg button { padding: 8px 13px; font-size: 15px; }
  .about__id { flex-direction: row; }
}
@media (hover: none) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal], html.js [data-split] .w, html.js [data-split]:not(.is-split), html.js [data-fill] .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  html.js .eyebrow::before, html.js .eyebrow::after { scale: 1 !important; }
  html.js .step__sq path { stroke-dashoffset: 0 !important; }
  @view-transition { navigation: none; }
}

/* ---------- Ru Antique Jewellery case study ---------- */
.ru-band { margin: clamp(48px, 7vw, 110px) var(--pad); padding: clamp(32px, 6vw, 88px); border-radius: clamp(20px, 3vw, 40px); background: #1c1a18; color: #f5e6d0; position: relative; overflow: hidden; }
.ru-band::after { content: ''; position: absolute; inset: auto -12% -42% auto; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(197, 168, 128, 0.22), transparent); pointer-events: none; }
.ru-band h2, .ru-band h3 { color: #faf8f5; }
.ru-band em { color: #c5a880; }
.ru-band p { color: rgba(245, 230, 208, 0.7); }
.ru-pal { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.6vw, 20px); margin-top: clamp(28px, 4vw, 56px); position: relative; z-index: 1; }
.ru-pal div { display: grid; gap: 4px; align-content: start; }
.ru-pal i { display: block; aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); margin-bottom: 10px; transition: transform 0.5s var(--ease); }
.ru-pal div:hover i { transform: translateY(-8px); }
.ru-pal b { font-weight: 500; font-size: 15px; color: #faf8f5; }
.ru-pal code { font-size: 12px; color: #c5a880; font-family: ui-monospace, Menlo, monospace; }
.ru-pal span { font-size: 13px; color: rgba(245, 230, 208, 0.55); line-height: 1.35; }
.ru-type { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); margin-top: clamp(24px, 3vw, 40px); position: relative; z-index: 1; }
.ru-type div { padding: clamp(20px, 3vw, 36px); border-radius: 22px; border: 1px solid rgba(197, 168, 128, 0.28); }
.ru-type strong { display: block; font-size: clamp(56px, 8vw, 112px); line-height: 1; font-weight: 400; color: #faf8f5; }
.ru-type .g { font-family: 'EB Garamond', Garamond, 'Iowan Old Style', Georgia, serif; }
.ru-type .i { font-family: Inter, var(--sans); letter-spacing: -0.04em; }
.ru-type span { display: block; margin-top: 12px; font-size: 14px; color: rgba(245, 230, 208, 0.65); }

.ru-coll { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(12px, 1.8vw, 24px); }
.ru-coll figure { position: relative; margin: 0; overflow: hidden; border-radius: clamp(16px, 2vw, 28px); background: #1c1a18; min-height: 260px; }
.ru-coll figure:first-child { grid-row: span 2; }
.ru-coll img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ru-coll figure:hover img { transform: scale(1.05); }
.ru-coll figcaption { position: absolute; inset: auto 0 0 0; padding: 56px 24px 22px; color: #faf8f5; background: linear-gradient(transparent, rgba(18, 16, 14, 0.82)); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ru-coll figcaption b { font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.03em; font-family: 'EB Garamond', Georgia, serif; }
.ru-coll figcaption span { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #c5a880; }

.ru-prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 24px); }
.ru-prod figure { margin: 0; border-radius: clamp(16px, 2vw, 26px); overflow: hidden; background: #fff; box-shadow: var(--ring); }
.ru-prod img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.9s var(--ease); }
.ru-prod figure:hover img { transform: scale(1.04); }
.ru-prod figcaption { padding: 14px 18px 16px; font-size: 15px; color: var(--mute); text-align: center; letter-spacing: -0.02em; }

.ru-origin { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 16px); margin-top: clamp(28px, 4vw, 52px); position: relative; z-index: 1; }
.ru-origin div { padding: 22px 22px 20px; border-radius: 20px; background: rgba(245, 230, 208, 0.06); border: 1px solid rgba(197, 168, 128, 0.22); }
.ru-origin b { display: block; font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); color: #faf8f5; letter-spacing: -0.02em; }
.ru-origin span { font-size: 14px; color: #c5a880; }

.ru-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.8vw, 24px); }
.ru-quote { margin: 0; padding: clamp(24px, 3vw, 40px); border-radius: 26px; background: #fff; box-shadow: var(--ring); }
.ru-quote::before { content: '\201C'; display: block; font-family: 'EB Garamond', Georgia, serif; font-size: 88px; line-height: 0.7; height: 40px; color: #c5a880; }
.ru-quote p { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.35; letter-spacing: -0.03em; color: var(--ink); }
.ru-quote footer { margin-top: 22px; font-size: 14px; color: var(--mute); }
.ru-quote footer b { color: var(--ink); font-weight: 500; }
.ru-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 24px); margin-top: clamp(12px, 1.8vw, 24px); }
.ru-trust div { padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line); display: grid; gap: 2px; }
.ru-trust b { font-weight: 500; letter-spacing: -0.02em; }
.ru-trust span { font-size: 14px; color: var(--mute); }

@media (max-width: 900px) {
  .ru-pal { grid-template-columns: repeat(3, 1fr); }
  .ru-type, .ru-quotes, .ru-trust { grid-template-columns: 1fr; }
  .ru-coll { grid-template-columns: 1fr; grid-template-rows: none; }
  .ru-coll figure:first-child { grid-row: auto; aspect-ratio: 4 / 5; }
  .ru-prod, .ru-origin { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .ru-prod, .ru-origin { grid-template-columns: 1fr; } .ru-pal { grid-template-columns: repeat(2, 1fr); } }

/* Five service tabs: scroll sideways on narrow screens instead of overflowing the page */
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; }
.svc__panelcta { display: flex; flex-wrap: wrap; gap: 10px; }
.svcrow__meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.svcrow__meta a:hover { color: var(--accent); }

/* Service pages */
.plain-steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .plain-steps--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plain-steps--4 { grid-template-columns: 1fr; } }
.cs-bestfor { text-align: center; margin: 28px auto 0; max-width: 60ch; font-size: 15px; color: var(--mute); }
.cs-bestfor b { color: var(--ink); font-weight: 500; }
.cs-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin-top: 28px; }
.cs-cta a:not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Services panel: the five tabs sit on their own row above the two columns, so the card is never squeezed */
@media (min-width: 901px) {
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 0; }
  .svc__left { display: contents; }
  .svc .seg { grid-column: 1 / -1; justify-self: start; }
  .svc__panel, .svc__cta { grid-column: 1; }
  .svc__card { grid-column: 2; grid-row: 2 / span 8; align-self: start; margin-top: 34px; }
}

/* Work cards: personal contribution */
.work__role { font-size: 14px; color: var(--mute); margin-top: 8px; }
.work__role b { color: var(--ink); font-weight: 500; margin-right: 6px; }

/* Service scope + project/ongoing comparison */
.ccards--2 { grid-template-columns: 1fr 1fr; }
.ccard__list { list-style: none; margin-top: 14px; padding: 0; }
.ccard__list li { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; color: var(--mute); font-size: 15px; line-height: 1.45; }
.ccard__list .ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ink); }
.ccard .svcrow__meta a { color: var(--ink); }
@media (max-width: 760px) { .ccards--2 { grid-template-columns: 1fr; } }

/* Enquiry form */
.svcpick { border: 0; padding: 0; min-width: 0; margin: 0; }
.svcpick legend { font-size: 14px; color: var(--mute); margin-bottom: 10px; padding: 0; }
.svcpick legend span { opacity: 0.7; }
.svcpick__list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 10px 16px; border-radius: 99px; background: #fff; font-size: 15px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.opt:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.next { list-style: none; counter-reset: n; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.next li { counter-increment: n; position: relative; padding-left: 40px; min-height: 26px; color: var(--mute); font-size: 15px; line-height: 1.45; }
.next li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.next b { color: var(--ink); font-weight: 500; }

/* ---------- Mobile: nothing may be wider than the screen ---------- */
html { overflow-x: clip; }
img, svg, video { max-width: 100%; }
.center { flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc__left { min-width: 0; max-width: 100%; }
}
@media (max-width: 760px) {
  /* long button labels wrap instead of pushing the page wider */
  .btn { max-width: 100%; }
  .btn__in { white-space: normal; text-align: left; height: auto; min-height: 52px; padding-block: 10px; }

  /* project filters: one scrollable row instead of 3-4 wrapped lines */
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; white-space: nowrap; }

  /* breadcrumbs: one scrollable line */
  .crumbs ol { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; white-space: nowrap; justify-content: flex-start; scrollbar-width: none; }
  .crumbs ol::-webkit-scrollbar { display: none; }
  .crumbs li { flex: none; }
}

/* Design-system palettes: two colours per row on phones */
@media (max-width: 760px) {
  .cs-sw { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .cs-sw__item { min-width: 0; }
  .cs-sw__item code, .cs-sw__item span, .cs-sw__item b { overflow-wrap: anywhere; }
  .ru-pal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ru-pal i { aspect-ratio: 1 / 1; }
}

/* Hero sections: less side padding so headings and intro text get more room */
.hero { padding-inline: clamp(12px, 3.2vw, 48px); }
.phero { padding-inline: clamp(12px, 3.2vw, 48px); }
