/* =========================================================
   Minimal, editorial look (after Group.G) with YC-17 pastels
   ========================================================= */
:root,
:root[data-theme="pastel"] {
  --sky: #c1dbe3;
  --tea: #c7dfc5;
  --lime: #f6feaa;
  --jasmine: #fce694;
  --graphite: #373737;

  --bg: #f1f1ef;
  --surface: #ffffff;
  --ink: #1f1f1f;
  --muted: #6b6b67;
  --line: #d3d3cf;
  --accent: var(--graphite);
  --on-accent: var(--lime);
  --hi: var(--jasmine);
  --soft-1: var(--sky);
  --soft-2: var(--tea);
  --soft-3: var(--jasmine);
  --soft-4: var(--lime);

  --font: "Jost", "Avenir Next", "Avenir", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
:root[data-theme="blue"] {
  --accent: #0c38a9;
  --on-accent: #fbf8f1;
  --hi: #ffd84d;
  --soft-1: #e3e9fb;
  --soft-2: #d6e0fa;
  --soft-3: #fff1b8;
  --soft-4: #eef2fd;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
main { overflow-x: clip; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -0.01em; line-height: 1.18; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
::selection { background: var(--hi); color: var(--ink); }

/* Soft pastel underline for *starred* words */
em {
  font-style: normal;
  background: linear-gradient(transparent 70%, var(--hi) 70%, var(--hi) 92%, transparent 92%) 0 0 / 0% 100% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1s .4s var(--ease);
}
.in em { background-size: 100% 100%; }

.mono-label {
  display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* ============ Buttons / links ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 500; font-size: 15px; letter-spacing: .02em;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--hi); color: var(--ink); }
.btn-small { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.link-arrow {
  background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 3px; cursor: pointer;
  font-size: 16px; letter-spacing: .02em; text-align: left; transition: color .2s, border-color .2s;
}
.link-arrow:hover { color: var(--muted); border-color: var(--muted); }

/* ============ Nav + menu ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: transparent; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(241, 241, 239, .92); backdrop-filter: blur(10px); border-color: var(--line); }
.logo img { height: 34px; width: auto; border-radius: 5px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.menu-btn {
  width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer;
  display: grid; place-content: center; gap: 7px;
}
.menu-btn span { display: block; width: 28px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; padding: 120px var(--gutter) 40px;
  background: var(--bg); display: flex; flex-direction: column; justify-content: space-between;
  animation: menu-in .45s var(--ease);
}
.menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu-links { display: flex; flex-direction: column; max-width: var(--max); width: 100%; margin: 0 auto; border-top: 1px solid var(--line); }
.menu-links a {
  display: flex; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-weight: 300; font-size: clamp(40px, 6.5vw, 80px); line-height: 1.1;
  transition: padding .35s var(--ease), background .35s;
}
.menu-links small { font-size: 14px; font-weight: 500; letter-spacing: .12em; color: var(--muted); min-width: 28px; }
.menu-links a:nth-child(1):hover { background: var(--soft-1); }
.menu-links a:nth-child(2):hover { background: var(--soft-2); }
.menu-links a:nth-child(3):hover { background: var(--soft-3); }
.menu-links a:nth-child(4):hover { background: var(--soft-4); }
.menu-links a:hover { padding-left: 20px; }
.menu-foot {
  max-width: var(--max); width: 100%; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 15px; color: var(--muted);
}
.menu-social { display: flex; gap: 20px; }

/* ============ Image slots ============ */
.media { position: relative; overflow: hidden; background: #e2e2de; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: rgba(0, 0, 0, .45); text-align: center; padding: 12px;
}
.ph-plus {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid currentColor; font-size: 20px; font-weight: 300; line-height: 1;
}
.ph-label { display: grid; gap: 2px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ph code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0; text-transform: none; }

/* ============ Hero ============ */
.hero { padding-top: 4px; }
.hero-media { aspect-ratio: 21 / 9; background: var(--soft-1); }
.sticker {
  display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(40px, 6vw, 72px);
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #5aa77d; box-shadow: 0 0 0 4px rgba(90, 167, 125, .18); }
.hero-title { font-size: clamp(38px, 5.4vw, 80px); line-height: 1.14; max-width: 18ch; margin: 22px 0 32px; }
.hero-sub { font-size: clamp(17px, 1.35vw, 19px); color: #4a4a46; max-width: 64ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; margin-top: 40px; }
.hero-clients { margin-top: clamp(72px, 9vw, 120px); display: grid; gap: 18px; }

/* Clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client {
  position: relative; height: 92px; padding: 0 16px; display: grid; place-items: center; text-align: center;
  font-size: 18px; font-weight: 500; letter-spacing: .02em; color: #7a7a75; transition: background .3s, color .3s;
}
.client img { max-height: 38px; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.client i { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 12px; opacity: 0; transition: opacity .3s; }
a.client:hover { color: var(--ink); }
a.client:hover img { filter: none; opacity: 1; }
a.client:hover i { opacity: .6; }
.clients li:nth-child(4n+1) a.client:hover { background: var(--soft-1); }
.clients li:nth-child(4n+2) a.client:hover { background: var(--soft-2); }
.clients li:nth-child(4n+3) a.client:hover { background: var(--soft-4); }
.clients li:nth-child(4n) a.client:hover { background: var(--soft-3); }

/* ============ Sections ============ */
.section { padding-top: clamp(110px, 14vw, 180px); }
.section-head { display: grid; gap: 16px; padding-bottom: 24px; margin-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(34px, 4.2vw, 60px); max-width: 22ch; }

/* ============ 01 / ME ============ */
.me-grid { display: grid; grid-template-columns: minmax(220px, 5fr) 7fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.portrait { aspect-ratio: 4 / 5; background: var(--soft-2); }
.me-copy { display: grid; gap: 28px; }
.me-lead { font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; line-height: 1.35; }
.me-body { font-size: 17px; color: #4a4a46; max-width: 60ch; }
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); }
.capability { display: grid; align-content: start; gap: 16px; padding: 36px 32px 8px 0; position: relative; }
.capability + .capability { padding-left: 32px; border-left: 1px solid var(--line); }
.capability::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--soft-1); }
.capability + .capability::before { left: 32px; }
.capability:nth-child(2)::before { background: var(--soft-2); }
.capability:nth-child(3)::before { background: var(--soft-3); }
.cap-num { font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.capability h3 { font-size: clamp(22px, 1.9vw, 27px); font-weight: 400; line-height: 1.25; }
.capability p { font-size: 16px; color: #4a4a46; }

/* ============ 02 / SERVICES ============ */
.services { border-top: 1px solid var(--line); }
.service { padding: clamp(36px, 4.5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.service-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.service-num { font-size: 14px; font-weight: 500; letter-spacing: .12em; color: var(--muted); flex: none; }
.service-head h3 { font-size: clamp(28px, 3.2vw, 44px); }
.service-head h3 {
  background: linear-gradient(transparent 72%, var(--soft-4) 72%, var(--soft-4) 94%, transparent 94%) 0 0 / 0% 100% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .6s var(--ease);
}
.service:nth-child(2) .service-head h3 { background-image: linear-gradient(transparent 72%, var(--soft-1) 72%, var(--soft-1) 94%, transparent 94%); }
.service:nth-child(3) .service-head h3 { background-image: linear-gradient(transparent 72%, var(--soft-2) 72%, var(--soft-2) 94%, transparent 94%); }
.service:hover .service-head h3 { background-size: 100% 100%; }
.service-body { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); padding-left: clamp(0px, 4vw, 56px); }
.service-body > div { display: grid; align-content: start; gap: 10px; }
.service-body h4 { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.service-body p, .service-body li { font-size: 16px; color: #3f3f3b; }
.service-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service-body li { position: relative; padding-left: 18px; }
.service-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--ink); }
.service-outcome p { font-size: 18px; font-weight: 400; color: var(--ink); line-height: 1.5; }
.engagement { margin-top: 40px; display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 7px 18px; border-radius: 999px; font-size: 15px; background: var(--soft-4); }
.chips li:nth-child(2) { background: var(--soft-3); }
.chips li:nth-child(3) { background: var(--soft-1); }

/* ============ 03 / FEATURED CASES ============ */
.cases { display: grid; gap: clamp(72px, 9vw, 120px); }
.case-open {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "img info";
  gap: clamp(28px, 4.5vw, 64px); align-items: center;
}
.case-card:nth-child(even) .case-open { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "info img"; }
.case-media { grid-area: img; aspect-ratio: 4 / 3; background: var(--soft-1); }
.case-info { grid-area: info; display: grid; gap: 16px; }
.case-card:nth-child(3n+2) .case-media { background: var(--soft-2); }
.case-card:nth-child(3n) .case-media { background: var(--soft-3); }
.case-open:hover .case-media img { transform: scale(1.04); }
.case-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
.case-cat { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.case-title { font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; }
.case-client { font-size: 15px; color: var(--muted); }
.case-metrics-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { display: grid; gap: 4px; align-content: start; padding: 16px 14px 14px 0; }
.metric + .metric { padding-left: 14px; border-left: 1px solid var(--line); }
.metric strong { font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.metric strong { background: linear-gradient(transparent 68%, var(--soft-1) 68%, var(--soft-1) 94%, transparent 94%); justify-self: start; }
.metric:nth-child(2) strong { background-image: linear-gradient(transparent 68%, var(--soft-2) 68%, var(--soft-2) 94%, transparent 94%); }
.metric:nth-child(3) strong { background-image: linear-gradient(transparent 68%, var(--soft-3) 68%, var(--soft-3) 94%, transparent 94%); }
.metric small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.case-summary { color: #4a4a46; font-size: 16px; }
.case-read { justify-self: start; font-size: 15px; letter-spacing: .02em; border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color .2s; }
.case-open:hover .case-read { color: var(--muted); }

/* ============ CTA ============ */
.cta { display: grid; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.12; max-width: 17ch; }
.cta p { font-size: clamp(17px, 1.4vw, 19px); max-width: 60ch; color: #4a4a46; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 16px; }
.cta-link {
  order: 2; display: inline-flex; align-items: center; gap: 12px; font-size: clamp(20px, 2vw, 26px); font-weight: 400;
  padding: 14px 32px; border-radius: 999px; background: var(--accent); color: #fff; transition: background .25s, color .25s;
}
.cta-link:hover { background: var(--hi); color: var(--ink); }
.cta-email { font-size: 17px; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.cta-email:hover { color: var(--muted); border-color: var(--muted); }

/* ============ Footer ============ */
.footer { margin-top: clamp(110px, 14vw, 180px); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer-logo img { height: 46px; width: auto; border-radius: 6px; }
.footer h4 { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-links { display: grid; gap: 8px; justify-items: start; font-size: 15px; }
.footer-links a:hover { color: var(--muted); }
.footer-social { display: flex; gap: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 22px 32px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; color: var(--muted); }

/* ============ Full case modal ============ */
dialog {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 0; background: var(--surface); color: var(--ink); overflow-y: auto;
}
#case-body { padding: 0 clamp(24px, 5vw, 64px) clamp(32px, 5vw, 64px); }
dialog[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } }
dialog::backdrop { background: rgba(20, 20, 20, .55); backdrop-filter: blur(3px); }
.close {
  position: sticky; top: 16px; float: right; margin: 16px 16px -60px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 14px; cursor: pointer;
}
.close:hover { border-color: var(--ink); }
.case-cover { aspect-ratio: 16 / 7; margin: 0 calc(-1 * clamp(24px, 5vw, 64px)) 40px; background: var(--soft-1); }
dialog h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 14px 0 10px; }
dialog .case-client { margin-bottom: 28px; }
.case-meta { display: grid; grid-template-columns: 160px 1fr; margin: 0; border-top: 1px solid var(--line); }
.case-meta > div { display: contents; }
.case-meta dt, .case-meta dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-meta dt { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 17px; }
.case-meta dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--soft-1); }
.tags span:nth-child(2) { background: var(--soft-2); }
.tags span:nth-child(3) { background: var(--soft-3); }
.tags span:nth-child(4) { background: var(--soft-4); }
.case-block { padding-top: 40px; display: grid; gap: 14px; }
.case-block h4 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.case-block > p { color: #3f3f3b; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--muted); padding-top: 4px; }
.steps strong { font-weight: 500; font-size: 18px; }
.steps p { color: #4a4a46; font-size: 16px; }
.impact { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.impact li { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.impact strong { font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1; justify-self: start; background: linear-gradient(transparent 66%, var(--soft-1) 66%, var(--soft-1) 94%, transparent 94%); }
.impact li:nth-child(2) strong { background-image: linear-gradient(transparent 66%, var(--soft-2) 66%, var(--soft-2) 94%, transparent 94%); }
.impact li:nth-child(3) strong { background-image: linear-gradient(transparent 66%, var(--soft-3) 66%, var(--soft-3) 94%, transparent 94%); }
.impact li:nth-child(4) strong { background-image: linear-gradient(transparent 66%, var(--soft-4) 66%, var(--soft-4) 94%, transparent 94%); }
.impact span { color: #3f3f3b; }
.case-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 40px; }

/* ============ Reveal ============ */
.reveal { opacity: 0; translate: 0 20px; transition: opacity 1s ease, translate 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .capabilities { grid-template-columns: 1fr; }
  .capability, .capability + .capability { padding: 28px 0 28px; border-left: 0; border-bottom: 1px solid var(--line); }
  .capability + .capability::before { left: 0; }
  .service-body { grid-template-columns: 1fr; padding-left: 0; }
  .case-open, .case-card:nth-child(even) .case-open { grid-template-columns: 1fr; grid-template-areas: "img" "info"; }
  .me-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo img { height: 30px; }
  .nav .btn-small { display: none; }
  .hero-media { aspect-ratio: 4 / 3; }
  .sticker { font-size: 11px; letter-spacing: .1em; align-items: flex-start; }
  .sticker .dot { margin-top: 5px; }
  .case-metrics-row { grid-template-columns: 1fr; }
  .metric, .metric + .metric { padding: 12px 0; border-left: 0; }
  .metric + .metric { border-top: 1px solid var(--line); }
  .impact li { grid-template-columns: 1fr; gap: 6px; }
  .case-meta { grid-template-columns: 1fr; }
  .case-meta dt { border-bottom: 0; padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .case-cover { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; }
  em { background-size: 100% 100%; }
}

/* =========================================================
   SaaS-clean layer (after Posting Machine): centred hero,
   badge, proof row, rounded cards, soft pastel glow
   ========================================================= */
:root { --r: 18px; }
h1, h2 { font-weight: 400; letter-spacing: -0.025em; }

/* Soft pastel glow behind the top of the page */
body {
  background:
    radial-gradient(60% 520px at 18% 0%, color-mix(in srgb, var(--soft-1) 55%, transparent), transparent 70%),
    radial-gradient(50% 480px at 85% 4%, color-mix(in srgb, var(--soft-4) 70%, transparent), transparent 70%),
    radial-gradient(40% 420px at 50% 12%, color-mix(in srgb, var(--soft-2) 45%, transparent), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
.nav.scrolled { background: rgba(241, 241, 239, .85); }

/* Centred hero */
.hero { text-align: center; padding-top: clamp(48px, 8vw, 104px); display: flex; flex-direction: column; align-items: center; }
.sticker {
  margin-top: 0; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  color: var(--ink); font-size: 12px; letter-spacing: .12em;
}
.hero-title { max-width: 20ch; margin: 28px auto 26px; font-size: clamp(38px, 5.6vw, 82px); line-height: 1.1; }
.hero-sub { margin: 0 auto; max-width: 66ch; }
.hero-cta { justify-content: center; margin-top: 36px; }
.btn-lg { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }

/* Proof row */
.hero-proof {
  list-style: none; margin: 44px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.hero-proof li {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.hero-proof strong { font-size: 18px; font-weight: 500; color: var(--ink); }

/* Hero image below, like a product shot */
.hero-media {
  width: 100%; margin-top: clamp(48px, 6vw, 80px); border-radius: var(--r);
  border: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .18);
}
.hero-clients { width: 100%; text-align: left; }
.hero-clients .mono-label { text-align: center; }
.clients { border: 0; gap: 10px; }
.clients li { border: 0; }
.client { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .6); }

/* Centred section heads */
.section-head { justify-items: center; text-align: center; border-bottom: 0; padding-bottom: 0; }
.section-head h2 { margin-inline: auto; }

/* Rounded media everywhere */
.media { border-radius: var(--r); }
.case-cover { border-radius: 0; }

/* Capabilities as numbered cards */
.capabilities { border-top: 0; gap: 16px; }
.capability, .capability + .capability {
  padding: 30px; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.capability:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .2); }
.capability::before { display: none; }
.cap-num {
  justify-self: start; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--soft-1); color: var(--ink); letter-spacing: 0;
}
.capability:nth-child(2) .cap-num { background: var(--soft-2); }
.capability:nth-child(3) .cap-num { background: var(--soft-3); }

/* Services as cards */
.services { border-top: 0; display: grid; gap: 16px; }
.service { padding: clamp(28px, 3.5vw, 44px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.service-num {
  display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; background: var(--soft-4); color: var(--ink); letter-spacing: 0;
}
.service:nth-child(2) .service-num { background: var(--soft-1); }
.service:nth-child(3) .service-num { background: var(--soft-2); }
.service-head { align-items: center; }
.service-body { padding-left: 0; }
.engagement { justify-content: center; }

/* Case rows: rounded image, card-like info */
.case-media { box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .25); }

/* CTA as a soft pastel panel, centred */
.cta {
  text-align: center; justify-items: center; border-top: 0; padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px);
  border-radius: calc(var(--r) * 1.5);
  background:
    radial-gradient(60% 120% at 0% 0%, var(--soft-1), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, var(--soft-4), transparent 60%),
    var(--soft-2);
}
.cta h2 { margin-inline: auto; }
.cta p { margin-inline: auto; color: #3f3f3b; }
.cta-actions { justify-content: center; }
.cta-link { order: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.cta em { background-image: linear-gradient(transparent 62%, var(--hi) 62%, var(--hi) 94%, transparent 94%); }

/* Modal rounded */
dialog { border-radius: var(--r); }

@media (max-width: 960px) {
  .capability, .capability + .capability { padding: 26px; }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(34px, 9vw, 44px); }
  .sticker { text-align: left; }
  .hero-proof li { width: 100%; justify-content: center; }
  .service-head { gap: 14px; }
}

/* Client logos: graphite silhouettes, optically balanced */
.client { height: 104px; padding: 0 20px; }
.client img {
  width: auto; height: 38px; max-width: 78%; object-fit: contain;
  filter: none; opacity: .7; transition: opacity .3s, transform .3s var(--ease);
}
.client img[src*="oiioii"] { height: 36px; }
.client img[src*="greencynia"] { height: 27px; }
.client img[src*="groupg"] { height: 32px; }
.client:hover img { opacity: 1; transform: scale(1.04); }
span.client img { opacity: .7; }
@media (max-width: 640px) {
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client { height: 88px; }
  .client img { height: 30px; }
  .client img[src*="groupg"], .client img[src*="greencynia"] { height: 21px; }
}

/* Hero image melts into the page: no frame, soft feathered edges */
.hero-media {
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 80%, transparent 100%);
  mask-composite: intersect;
}

/* Hero image at its original 3:2 proportion (no cropping) */
.hero-media, .hero-media img { aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .hero-media { aspect-ratio: 3 / 2; } }

/* Hero image slightly see-through so it sits softly on the page */
.hero-media img { opacity: .8; }
