/* mastergroup.pro — the front page. Calm graphite and steel like the logo; each product keeps its own colour. */
:root {
  --ink: #0f141c; --ink-2: #4a5361; --ink-3: #7c8594; --line: #e6e9ee; --bg: #ffffff; --soft: #f5f6f8;
  --steel-1: #dfe3e9; --steel-2: #9aa3b0; --steel-3: #5b6472;
  --font: 'Onest', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--ink-3); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 600; font-size: 16px;
  transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.small { height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn.dark { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(15, 20, 28, .18); }
.btn.dark:hover { box-shadow: 0 12px 28px rgba(15, 20, 28, .24); }
.btn.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--steel-2); }
.btn.brand { background: var(--brand); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn.light { background: #fff; color: var(--ink); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo img { height: 35px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15.5px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

/* first screen */
.hero { position: relative; overflow: hidden; padding: 96px 0 110px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.o1 { width: 520px; height: 520px; left: -140px; top: -180px; background: radial-gradient(circle, #dfe4ec, transparent 70%); }
.o2 { width: 460px; height: 460px; right: -120px; top: 40px; background: radial-gradient(circle, color-mix(in srgb, #7b33f1 22%, #e8ecf3), transparent 70%); }
.o3 { width: 420px; height: 420px; left: 40%; bottom: -260px; background: radial-gradient(circle, color-mix(in srgb, #13b7a6 20%, #e8ecf3), transparent 70%); }
.grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: .7; }
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-3); }
.eyebrow.light { color: rgba(255, 255, 255, .7); }
h1 { margin: 0; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; max-width: 980px; text-wrap: balance; }
.nobr { white-space: nowrap; }
@media (max-width: 420px) { .nobr { white-space: normal; } }
.metal { background: linear-gradient(100deg, #2d3440 0%, #8c96a4 40%, #3a424e 60%, #9aa3b0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 680px; margin: 24px 0 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.chips { display: flex; gap: 10px; margin-top: 46px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 9px; border-radius: 23px; background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line); font-weight: 600; font-size: 15px; box-shadow: 0 2px 10px rgba(15, 20, 28, .04); transition: border-color .2s, transform .15s; }
.chip img { width: 28px; height: 28px; border-radius: 8px; }
.chip:hover { border-color: var(--brand); transform: translateY(-1px); }

/* sections */
section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
h2 { margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.section-head .muted { margin: 14px 0 0; font-size: 18px; }
.projects { background: var(--soft); }

/* one product */
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: 44px; margin-bottom: 24px; box-shadow: 0 1px 2px rgba(15, 20, 28, .03); }
.product:nth-child(odd of .product) .product-visual { order: -1; }
.product-logo { height: 44px; width: auto; }
.product-tag { margin: 18px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.product-lead { margin: 10px 0 0; font-size: 21px; line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }
.product-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.product-points li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.product-points li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 14%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.5L13 6.5' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.product-actions { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.product-note { font-size: 14.5px; color: var(--ink-3); font-weight: 500; }
.product-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 9%, #fff), color-mix(in srgb, var(--brand) 20%, #f3f4f7)); isolation: isolate; }
.product-visual .glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 38%, transparent), transparent 68%);
  filter: blur(20px); z-index: -1; transition: transform .5s; }
.product-visual img { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 22px 44px color-mix(in srgb, var(--brand) 32%, transparent), 0 2px 6px rgba(15, 20, 28, .08);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.product-visual:hover img { transform: translateY(-6px) scale(1.03); }
.product-visual:hover .glow { transform: scale(1.12); }
.visual-name { margin-top: 26px; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.visual-host { margin-top: 2px; font-size: 14px; color: var(--ink-3); }
/* the product's interface instead of the icon */
.product-visual.has-banner { display: block; padding: 0; background: color-mix(in srgb, var(--brand) 8%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 10%, transparent); }
.product-visual img.banner { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.product-visual.has-banner:hover img.banner { transform: scale(1.03); }

/* approach */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 30px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.pillar-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(145deg, #7d8695, #2c333e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.pillar h3 { margin: 20px 0 8px; font-size: 21px; letter-spacing: -.01em; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* contact */
.contact { padding-top: 0; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px; border-radius: 30px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #3a4250 0%, #141a23 55%, #0b0f15 100%); position: relative; overflow: hidden; }
.contact-card::after { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 163, 176, .35), transparent 70%); }
.contact-card h2 { color: #fff; }
.contact-card p { margin: 14px 0 0; color: rgba(255, 255, 255, .72); max-width: 520px; }
.contact-actions { position: relative; z-index: 1; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-row img { height: 25px; width: auto; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot .muted { margin-left: auto; font-size: 14px; }

/* soft appearance while scrolling */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .product { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .product:nth-child(odd of .product) .product-visual { order: 0; }
  .product-visual { aspect-ratio: auto; padding: 36px 16px 30px; }
  .product-visual.has-banner { aspect-ratio: 5 / 4; padding: 0; }
  .pillars { grid-template-columns: 1fr; }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top-row { height: 64px; justify-content: space-between; }
  .logo img { height: 28px; }
  .hero { padding: 64px 0 76px; }
  section { padding: 72px 0; }
  .product { padding: 22px; border-radius: 22px; }
  .product-lead { font-size: 18px; }
  .product-points { grid-template-columns: 1fr; }
  .product-visual img:not(.banner) { width: 96px; height: 96px; border-radius: 24px; }
  .btn { height: 48px; }
  .product-actions .btn { width: 100%; justify-content: center; }
  .foot .muted { margin-left: 0; }
}

/* a project without pictures yet: its first letter on its colour */
.product-title { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.mark-letter { display: grid; place-items: center; width: 128px; height: 128px; border-radius: 30px; background: var(--brand); color: #fff; font-size: 56px; font-weight: 800;
  box-shadow: 0 22px 44px color-mix(in srgb, var(--brand) 32%, transparent); }
.chip-letter { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 800; }
