:root {
  --ink: #111215;
  --muted: #6f737c;
  --line: rgba(17, 18, 21, 0.10);
  --paper: #ffffff;
  --soft: #f6f7f9;
  --blue: #1769ff;
  --blue-soft: #eef4ff;
  --lilac: #f4f2ff;
  --warm: #fff2d9;
  --green: #c9ffdc;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --shadow: 0 18px 70px rgba(18, 26, 47, 0.08);
  --container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body, button, input, textarea { font-family: inherit; }
button, input, textarea { font-size: inherit; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #dce8ff; color: var(--ink); }

.site-shell { min-height: 100vh; overflow: clip; }
.site-container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow--light { color: rgba(255,255,255,.58); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--ink); color: #fff; }
.button--primary:hover { background: #25262a; }
.button--ghost { border-color: var(--line); background: rgba(255,255,255,.7); }
.button--ghost:hover { border-color: rgba(17,18,21,.25); background: #fff; }
.button--light { background: #fff; color: #111; }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 100;
  pointer-events: none;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-row > * { pointer-events: auto; }
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 14px;
}
.brand img { width: 122px; height: auto; }
.header-cluster {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 17px;
  background: rgba(244,245,247,.74);
  box-shadow: inset 0 0 20px rgba(255,255,255,.8), 0 8px 30px rgba(20,24,32,.06);
  backdrop-filter: blur(28px);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}
.desktop-nav a { color: #747982; font-size: 14px; transition: color .18s ease; }
.desktop-nav a:hover, .desktop-nav a.router-link-active { color: var(--ink); }
.project-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 6px 4px 14px;
  border-radius: 12px;
  background: #fff;
  color: #6e737d;
  cursor: pointer;
}
.project-trigger span { line-height: .94; text-align: left; font-size: 13px; }
.project-trigger img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; }
.phone-wrap { position: relative; }
.phone-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #727780;
  font-size: 24px;
  transform: rotate(-35deg);
}
.phone-popover {
  position: absolute;
  top: 49px;
  right: 0;
  width: 220px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: .18s ease;
  pointer-events: auto;
  text-align: center;
}
.phone-wrap:hover .phone-popover,
.phone-wrap:focus-within .phone-popover { opacity: 1; visibility: visible; transform: translateY(0); }
.phone-popover img { width: 164px; margin: 0 auto 10px; image-rendering: pixelated; }
.phone-popover p { color: var(--muted); font-size: 12px; margin-bottom: 9px; }
.phone-popover a { display: block; padding: 10px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.mobile-menu-button { display: none; }
.header-contact-panel { position: relative; pointer-events: none; }
.contact-flyout {
  position: absolute;
  right: 52px;
  top: 10px;
  width: 360px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  pointer-events: auto;
}
.contact-person-small { display: flex; gap: 11px; align-items: center; padding: 8px 8px 14px; }
.contact-person-small img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.contact-person-small strong, .contact-person-small span { display: block; }
.contact-person-small strong { font-size: 14px; }
.contact-person-small span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.flyout-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  margin-top: 6px;
  border-radius: 15px;
  background: #fafafa;
  transition: transform .18s ease, background .18s ease;
}
.flyout-action:hover { transform: translateX(-2px); background: #f3f4f6; }
.flyout-action--mail { background: #f5f4ff; }
.flyout-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #6c717a; }
.flyout-action strong, .flyout-action small { display: block; }
.flyout-action strong { font-size: 14px; }
.flyout-action small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.mobile-nav-panel { display: none; }

/* Hero */
.hero-section {
  position: relative;
  min-height: 880px;
  padding: 182px 0 34px;
  overflow: hidden;
  background:
    linear-gradient(125deg, #fff8ec 0%, #fdf9ff 38%, #edf7ff 100%);
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
  pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .65; }
.hero-glow--one { width: 520px; height: 520px; right: 14%; top: 5%; background: rgba(178,208,255,.46); }
.hero-glow--two { width: 450px; height: 450px; left: 27%; top: -9%; background: rgba(243,202,255,.38); }
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 74px;
  align-items: end;
}
.hero-copy { padding-top: 54px; }
.hero-copy h1 {
  max-width: 980px;
  font-size: clamp(58px, 6.5vw, 106px);
  line-height: .93;
  letter-spacing: -.065em;
  font-weight: 520;
}
.hero-copy h1 span { color: var(--blue); }
.hero-lead {
  max-width: 740px;
  margin-top: 34px;
  color: #565b64;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.42;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-proof {
  position: relative;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 28px;
  background: rgba(255,255,255,.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-proof-head { display: flex; justify-content: space-between; padding: 10px 8px 18px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.hero-product {
  min-height: 128px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
}
.hero-product + .hero-product { margin-top: 8px; }
.hero-product strong { font-size: 27px; line-height: 1; letter-spacing: -.04em; }
.hero-product p { max-width: 330px; margin-top: 13px; color: #626873; font-size: 14px; }
.hero-product--vayx { background: linear-gradient(145deg, #fff, #fff5de); }
.hero-product--reegames { background: linear-gradient(145deg, #17134a, #33146f 68%, #0f7693); color: #fff; }
.hero-product--reegames p { color: rgba(255,255,255,.7); }
.hero-product--control { display: flex; justify-content: space-between; align-items: flex-start; background: #111216; color: #fff; }
.hero-product--control p { color: rgba(255,255,255,.65); }
.hero-product--control > span { font-size: 24px; }
.proof-strip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #666c75;
  font-size: 13px;
}
.proof-strip span::before { content: "•"; color: var(--blue); margin-right: 8px; }

/* Shared sections */
.page-section { padding-top: 160px; }
.page-section--tight { padding-top: 100px; }
.page-section--soft { width: 100%; padding: 130px 0; background: var(--soft); border-radius: var(--radius-lg); }
.section-heading { margin-bottom: 58px; }
.section-heading-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 80px; align-items: end; }
.section-heading h2 {
  max-width: 950px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.02;
  letter-spacing: -.052em;
  font-weight: 520;
}
.section-heading-grid > p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.section-title-row { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.section-title-row .section-heading { margin-bottom: 58px; }
.section-title-row .text-link { margin-bottom: 62px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.service-card:nth-child(2) { background: #f8f7ff; }
.service-card:nth-child(3) { background: #fbfbfb; }
.service-card:nth-child(4) { background: #f4f8ff; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(18,26,47,.08); }
.service-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.service-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.85); font-size: 18px; }
.service-card h3 { margin-top: 74px; font-size: clamp(34px, 3vw, 52px); line-height: 1; letter-spacing: -.045em; font-weight: 520; }
.service-card > p { max-width: 650px; margin-top: 20px; color: var(--muted); font-size: 16px; }
.service-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 32px; }
.service-card li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); color: #5e636c; font-size: 12px; }

/* Cases */
.cases-editorial { display: grid; grid-template-columns: repeat(12, 1fr); gap: 42px 14px; }
.case-card { grid-column: span 5; }
.case-card--featured { grid-column: span 7; }
.case-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  background: #eceef2;
}
.case-card--featured .case-media { aspect-ratio: 16 / 10; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.case-media:hover img { transform: scale(1.025); }
.case-role { position: absolute; top: 14px; left: 14px; padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); font-size: 11px; }
.case-copy { padding-top: 15px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.case-tags span { padding: 5px 8px; border-radius: 5px; background: var(--soft); color: var(--muted); font-size: 10px; }
.case-copy h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.case-copy p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.cases-editorial--compact .case-card { grid-column: span 6; }
.cases-editorial--all { row-gap: 70px; }

/* Control Place */
.control-section {
  margin-top: 170px;
  padding: 130px 0 110px;
  color: #fff;
  background: #111217;
  border-radius: 46px;
}
.control-section--embedded { margin-top: 150px; }
.control-section--page { margin-top: 70px; }
.control-copy-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 100px; align-items: end; }
.control-copy-grid h2 { max-width: 850px; font-size: clamp(48px, 5.5vw, 84px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.control-intro p { color: rgba(255,255,255,.65); font-size: 18px; line-height: 1.58; }
.control-intro .button { margin-top: 28px; }
.cp-demo { margin-top: 70px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 30px; background: #1a1b21; box-shadow: 0 34px 90px rgba(0,0,0,.3); }
.cp-demo-toolbar { height: 64px; display: flex; align-items: center; gap: 9px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.62); font-size: 12px; }
.cp-demo-toolbar strong { margin-left: 8px; color: #fff; font-size: 14px; }
.cp-dot { width: 8px; height: 8px; border-radius: 50%; background: #5b5e68; }
.cp-status { margin-left: auto; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.06); }
.cp-demo-body { display: grid; grid-template-columns: 178px 1fr; min-height: 500px; }
.cp-demo aside { display: flex; flex-direction: column; gap: 10px; padding: 24px 16px; border-right: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.55); font-size: 13px; }
.cp-demo aside > span { padding: 12px; border-radius: 11px; }
.cp-demo aside > span:nth-child(2) { background: rgba(255,255,255,.07); color: #fff; }
.cp-avatar { width: 36px; height: 36px; display: grid; place-items: center; margin: 0 0 18px 7px; border-radius: 10px; background: linear-gradient(140deg,#fff,#aabfff); color: #111; font-weight: 800; }
.cp-workspace { padding: 34px; }
.cp-project-switcher { display: flex; flex-wrap: wrap; gap: 7px; }
.cp-project-switcher button { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); cursor: pointer; }
.cp-project-switcher button.active { background: #fff; color: #111; }
.cp-workspace-head { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 62px; }
.cp-workspace-head small { color: rgba(255,255,255,.45); }
.cp-workspace-head h3 { margin-top: 8px; font-size: 38px; letter-spacing: -.04em; font-weight: 500; }
.cp-workspace-head > span { color: rgba(255,255,255,.45); font-size: 12px; }
.cp-modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 28px; }
.cp-module { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; min-height: 82px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.055); }
.cp-module span { color: rgba(255,255,255,.35); font-size: 11px; }
.cp-module strong { font-size: 15px; }
.cp-module i { color: rgba(255,255,255,.55); font-style: normal; }
.module-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.module-cloud span { padding: 10px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: rgba(255,255,255,.58); font-size: 12px; }

/* Own products */
.products-section { padding-top: 170px; }
.own-products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.own-product { position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; border-radius: 30px; overflow: hidden; }
.own-product--vayx { background: linear-gradient(140deg, #fff0cd, #fffaf0); }
.own-product--reegames { background: linear-gradient(135deg, #151344, #4f1e84 70%, #147d90); color: #fff; }
.own-product--control { grid-column: 1 / -1; min-height: 300px; background: #f1f4f8; }
.own-product-index { color: currentColor; opacity: .45; font-size: 12px; }
.own-product h3 { font-size: clamp(44px, 5vw, 74px); line-height: .95; letter-spacing: -.055em; font-weight: 520; }
.own-product p { max-width: 650px; margin-top: 15px; color: #646a73; font-size: 17px; }
.own-product--reegames p { color: rgba(255,255,255,.7); }
.own-product > span, .own-product > a { align-self: flex-start; font-size: 13px; font-weight: 600; }
.own-product-mark { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.55); }

/* Process and why */
.process-list { border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 80px minmax(200px, .8fr) minmax(300px, 1.2fr); gap: 30px; align-items: center; padding: 27px 0; border-bottom: 1px solid var(--line); }
.process-list span { color: var(--muted); font-size: 12px; }
.process-list h3 { font-size: 27px; letter-spacing: -.03em; font-weight: 550; }
.process-list p { color: var(--muted); }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reason-grid article { min-height: 330px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 26px; }
.reason-grid article > span { color: var(--muted); font-size: 12px; }
.reason-grid h3 { margin-top: auto; font-size: 28px; letter-spacing: -.035em; font-weight: 550; }
.reason-grid p { margin-top: 16px; color: var(--muted); font-size: 15px; }

/* Contact */
.contact-section { padding-top: 170px; }
.contact-surface {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .7fr 1fr;
  gap: 52px;
  align-items: end;
  min-height: 610px;
  padding: 52px;
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 95%, rgba(255,215,147,.58), transparent 28%),
    radial-gradient(circle at 96% 96%, rgba(161,222,255,.58), transparent 30%),
    #f8f8fa;
}
.contact-intro { align-self: start; }
.contact-intro h2 { max-width: 680px; font-size: clamp(48px, 5vw, 78px); line-height: .98; letter-spacing: -.055em; font-weight: 520; }
.contact-intro > p:last-child { max-width: 540px; margin-top: 24px; color: var(--muted); font-size: 17px; }
.contact-person { align-self: end; }
.person-visual { position: relative; width: 170px; height: 170px; }
.person-visual img { position: relative; z-index: 2; width: 150px; height: 150px; object-fit: cover; border-radius: 22px; }
.person-scribble { position: absolute; left: -22px; bottom: -5px; width: 180px; height: 100px; border: 12px solid rgba(255,196,96,.35); border-color: rgba(255,196,96,.35) transparent rgba(255,196,96,.35) transparent; border-radius: 50%; transform: rotate(-18deg); }
.contact-person strong, .contact-person span { display: block; }
.contact-person strong { margin-top: 16px; font-size: 18px; }
.contact-person span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.contact-actions { display: grid; gap: 8px; }
.contact-action { display: flex; justify-content: space-between; align-items: flex-end; min-height: 126px; padding: 20px; border-radius: 20px; background: #fff; }
.contact-action--primary { min-height: 150px; }
.contact-action--mail { background: #f4f3ff; }
.contact-action strong, .contact-action small { display: block; }
.contact-action strong { font-size: 20px; font-weight: 540; }
.contact-action small { margin-top: 7px; color: var(--muted); font-size: 12px; }
.contact-action b { font-size: 22px; font-weight: 400; }

/* Inner pages */
.inner-hero { padding-top: 200px; padding-bottom: 70px; }
.inner-hero h1 { max-width: 1150px; font-size: clamp(62px, 7vw, 112px); line-height: .93; letter-spacing: -.065em; font-weight: 520; }
.inner-hero-lead { max-width: 830px; margin-top: 34px; color: var(--muted); font-size: 21px; line-height: 1.5; }
.inner-hero--control h1 { color: var(--blue); }
.detail-grid, .related-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.detail-grid h2, .related-callout h2, .agency-story h2, .split-feature h2 { font-size: clamp(40px, 4.5vw, 66px); line-height: 1.02; letter-spacing: -.05em; font-weight: 520; }
.large-list { border-top: 1px solid var(--line); }
.large-list li { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.capability-grid article { min-height: 230px; padding: 24px; border-radius: 24px; background: #fff; }
.capability-grid span { color: var(--muted); font-size: 12px; }
.capability-grid h3 { margin-top: 90px; font-size: 24px; letter-spacing: -.03em; font-weight: 550; }
.capability-grid p { margin-top: 12px; color: var(--muted); }
.capability-grid--three { grid-template-columns: repeat(3, 1fr); }
.related-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-services a { display: grid; grid-template-columns: 1fr auto; min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; }
.related-services a > span { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.related-services strong { align-self: end; font-size: 22px; }
.related-services b { align-self: end; font-weight: 400; }
.related-callout { padding-bottom: 10px; }
.related-callout > div:last-child > p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.related-callout .text-link { margin-top: 24px; }
.principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.principles-grid article { min-height: 330px; padding: 28px; border: 1px solid var(--line); border-radius: 28px; }
.principles-grid article > span { color: var(--muted); font-size: 12px; }
.principles-grid h3 { margin-top: 88px; font-size: 29px; letter-spacing: -.035em; font-weight: 550; }
.principles-grid p { margin-top: 16px; color: var(--muted); }
.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.split-feature > div:first-child > p:last-child { margin-top: 25px; color: var(--muted); font-size: 17px; }
.module-list-large { display: flex; flex-wrap: wrap; align-content: start; gap: 8px; }
.module-list-large span { padding: 14px 16px; border-radius: 999px; background: #fff; font-size: 14px; }
.prose-stack { display: grid; gap: 20px; color: var(--muted); font-size: 18px; line-height: 1.6; }

/* Case detail */
.case-hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding-top: 200px; padding-bottom: 52px; }
.case-hero h1 { font-size: clamp(72px, 9vw, 138px); line-height: .88; letter-spacing: -.07em; font-weight: 520; }
.case-hero-subtitle { max-width: 780px; margin-top: 20px; color: var(--muted); font-size: 21px; }
.case-hero-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.case-hero-tags span, .case-focus span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.case-cover { overflow: hidden; border-radius: 32px; background: var(--soft); }
.case-cover img { width: 100%; max-height: 850px; object-fit: cover; }
.case-story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; }
.case-story-grid h2 { font-size: clamp(38px, 4.2vw, 62px); line-height: 1.05; letter-spacing: -.045em; font-weight: 520; }
.case-summary > p { color: var(--muted); font-size: 19px; line-height: 1.6; }
.case-focus { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.case-solution-list { border-top: 1px solid var(--line); }
.case-solution-list li { display: grid; grid-template-columns: 70px 1fr; gap: 30px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.case-solution-list span { color: var(--muted); font-size: 12px; }
.case-solution-list p { max-width: 900px; font-size: 22px; }

/* Agency */
.agency-story { display: grid; grid-template-columns: 150px 1fr; gap: 70px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.story-number { padding-top: 12px; color: var(--muted); font-size: 12px; }
.agency-story > div:last-child { max-width: 920px; }
.agency-story > div:last-child > p:not(.eyebrow) { max-width: 760px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.agency-story .text-link { margin-top: 22px; }

/* Brief */
.brief-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; padding-top: 190px; padding-bottom: 60px; }
.brief-copy h1 { font-size: clamp(54px, 6vw, 88px); line-height: .95; letter-spacing: -.06em; font-weight: 520; }
.brief-copy > p:not(.eyebrow) { margin-top: 28px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.brief-direct { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; font-weight: 600; }
.brief-form { padding: 28px; border-radius: 30px; background: var(--soft); }
.brief-form label { display: grid; gap: 8px; margin-bottom: 18px; }
.brief-form label > span { color: var(--muted); font-size: 12px; }
.brief-form input, .brief-form textarea { width: 100%; padding: 16px 17px; border: 1px solid transparent; border-radius: 15px; outline: 0; background: #fff; color: var(--ink); resize: vertical; }
.brief-form input:focus, .brief-form textarea:focus { border-color: #aac6ff; box-shadow: 0 0 0 3px rgba(23,105,255,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brief-submit { width: 100%; cursor: pointer; }
.brief-form > small { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* Footer */
.site-footer { margin-top: 150px; padding: 70px 0 34px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; }
.footer-brand { display: inline-block; font-size: 27px; font-weight: 700; letter-spacing: -.04em; }
.footer-grid > div:first-child p { max-width: 450px; margin-top: 16px; color: var(--muted); }
.footer-grid nav, .footer-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-grid nav a, .footer-contacts a { color: #50555e; }
.footer-grid nav a:hover, .footer-contacts a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

.error-page { min-height: 70vh; padding-top: 220px; }
.error-page h1 { max-width: 900px; font-size: 74px; line-height: .95; letter-spacing: -.055em; font-weight: 520; }
.error-page > p:not(.eyebrow) { margin: 24px 0 30px; color: var(--muted); }

@media (max-width: 1100px) {
  .site-container { width: min(calc(100% - 32px), var(--container)); }
  .desktop-nav { display: none; }
  .mobile-menu-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; cursor: pointer; }
  .mobile-menu-button span { display: block; width: 16px; height: 1px; background: #555b64; }
  .mobile-menu-button span + span { margin-top: 5px; }
  .mobile-nav-panel { display: block; position: fixed; inset: 72px 16px auto; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); pointer-events: auto; }
  .mobile-nav-inner { width: 100%; padding: 28px; }
  .mobile-nav-inner nav { display: flex; flex-direction: column; gap: 13px; }
  .mobile-nav-inner nav a { font-size: 28px; letter-spacing: -.04em; }
  .mobile-nav-contacts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 900px; }
  .hero-proof { max-width: 640px; }
  .hero-section { min-height: auto; padding-bottom: 150px; }
  .proof-strip { bottom: 42px; flex-wrap: wrap; justify-content: flex-start; }
  .section-heading-grid, .control-copy-grid, .detail-grid, .related-callout, .split-feature, .case-story-grid { grid-template-columns: 1fr; gap: 28px; }
  .control-copy-grid { gap: 36px; }
  .contact-surface { grid-template-columns: 1fr 1fr; }
  .contact-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .contact-action, .contact-action--primary { min-height: 130px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .brief-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-container { width: min(calc(100% - 24px), var(--container)); }
  .site-header { top: 10px; }
  .brand { padding-left: 4px; }
  .brand img { width: 104px; }
  .project-trigger { padding-left: 9px; }
  .project-trigger span { display: none; }
  .phone-wrap { display: none; }
  .contact-flyout { right: 0; width: min(94vw, 360px); }
  .hero-section { padding-top: 130px; }
  .hero-copy { padding-top: 28px; }
  .hero-copy h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-lead { font-size: 17px; }
  .proof-strip { display: none; }
  .hero-proof { border-radius: 22px; }
  .hero-product { min-height: 110px; padding: 17px; }
  .hero-product strong { font-size: 24px; }
  .page-section { padding-top: 100px; }
  .page-section--tight { padding-top: 70px; }
  .page-section--soft { padding: 85px 0; border-radius: 28px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading-grid { display: block; }
  .section-heading h2 { font-size: 43px; }
  .section-heading-grid > p { margin-top: 20px; font-size: 16px; }
  .section-title-row { display: block; }
  .section-title-row .section-heading { margin-bottom: 25px; }
  .section-title-row .text-link { margin-bottom: 34px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 340px; padding: 24px; border-radius: 24px; }
  .service-card h3 { margin-top: 58px; font-size: 39px; }
  .cases-editorial { display: grid; grid-template-columns: 1fr; gap: 38px; }
  .case-card, .case-card--featured, .cases-editorial--compact .case-card { grid-column: auto; }
  .case-media, .case-card--featured .case-media { aspect-ratio: 4 / 3; border-radius: 20px; }
  .control-section { margin-top: 110px; padding: 82px 0 60px; border-radius: 28px; }
  .control-copy-grid h2 { font-size: 48px; }
  .control-intro p { font-size: 16px; }
  .cp-demo { margin-top: 44px; border-radius: 20px; }
  .cp-demo-body { grid-template-columns: 1fr; min-height: auto; }
  .cp-demo aside { display: none; }
  .cp-workspace { padding: 18px; }
  .cp-project-switcher { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; }
  .cp-project-switcher button { white-space: nowrap; }
  .cp-workspace-head { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 35px; }
  .cp-workspace-head h3 { font-size: 30px; }
  .cp-modules { grid-template-columns: 1fr; }
  .own-products-grid { grid-template-columns: 1fr; }
  .own-product, .own-product--control { grid-column: auto; min-height: 300px; padding: 24px; border-radius: 24px; }
  .own-product h3 { font-size: 48px; }
  .process-list li { grid-template-columns: 46px 1fr; gap: 10px; }
  .process-list p { grid-column: 2; }
  .reason-grid, .principles-grid, .capability-grid, .capability-grid--three, .related-services { grid-template-columns: 1fr; }
  .reason-grid article, .principles-grid article { min-height: 280px; }
  .contact-section { padding-top: 110px; }
  .contact-surface { grid-template-columns: 1fr; gap: 38px; min-height: auto; padding: 26px; border-radius: 28px; }
  .contact-intro h2 { font-size: 49px; }
  .contact-actions { grid-column: auto; grid-template-columns: 1fr; }
  .inner-hero { padding-top: 145px; padding-bottom: 30px; }
  .inner-hero h1 { font-size: 54px; }
  .inner-hero-lead { font-size: 17px; }
  .case-hero { grid-template-columns: 1fr; padding-top: 145px; padding-bottom: 34px; }
  .case-hero h1 { font-size: 70px; }
  .case-hero-tags { justify-content: flex-start; }
  .case-cover { border-radius: 20px; }
  .case-solution-list li { grid-template-columns: 46px 1fr; }
  .case-solution-list p { font-size: 18px; }
  .agency-story { grid-template-columns: 1fr; gap: 14px; }
  .brief-layout { padding-top: 145px; gap: 45px; }
  .brief-copy h1 { font-size: 50px; }
  .brief-form { padding: 18px; border-radius: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .site-footer { margin-top: 110px; }
  .error-page h1 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
